434 Commits

Author SHA1 Message Date
Simon Jackson d619b19305 Merge branch 'develop' into fix/4648-directions 2026-05-12 17:25:42 +01:00
pbrolin47 a9990da19f Merge pull request #7740 from mermaid-js/master
Merge back v11.15.0 to develop
2026-05-11 12:05:33 +00:00
Simon Jackson e3a3344d24 Merge branch 'develop' into fix/4648-directions 2026-05-07 17:50:43 +01:00
Alois Klink 883d4dca9f Merge commit from fork
fix: create CSS styles using the CSSOM
2026-05-07 21:26:17 +09:00
autofix-ci[bot] 8c3f4594f6 [autofix.ci] apply automated fixes 2026-05-07 09:22:06 +00:00
ydah 33941a8c1d Fix Langium type narrowing in railroad parser and update docs
Add explicit type assertions for RailroadPrimary/RailroadPostfix
subtypes since Langium-generated base interfaces do not include
subtype-specific properties. Also remove the orientation limitation
note from docs since the config option has been removed.
2026-05-07 17:30:10 +09:00
ydah b9d9bf6951 Document railroad limitations and drop generated docs 2026-05-07 17:27:46 +09:00
ydah 373a5e3a1f Add railroad diagram documentation and fix formatting issues 2026-05-07 17:25:49 +09:00
autofix-ci[bot] d20bf50e7f [autofix.ci] apply automated fixes 2026-05-02 03:46:11 +00:00
ragelink 0323b90522 refactor(cynefin): rename registered id and config key to 'cynefin'
Aligns Cynefin with the radar diagram convention so that the diagram's
internal identity matches the rest of the codebase. Previously cynefin
diverged: the registered detector id and config key were 'cynefin-beta',
which forced bracket-access (DEFAULT_CONFIG['cynefin-beta']) — the only
such case in defaultConfig.ts. Radar by contrast uses id 'radar' / config
key 'radar' with the '-beta' marker living only in the syntax keyword.

Changes:
- Detector id: 'cynefin-beta' -> 'cynefin'
- Config schema key (cynefin-beta -> cynefin) in config.schema.yaml,
  defaultConfig.ts, .build/jsonSchema.ts, and the regenerated
  config.type.ts
- Example id back to 'cynefin' (matches the registered diagram id)
- Test/spec config-object keys updated (multi-diagram uniqueness spec,
  cypress cynefin spec)
- Docs source updates for the config-key references; generated docs
  regenerated via pnpm --filter mermaid docs:build

Unchanged: the syntax keyword 'cynefin-beta' remains the trigger token
in the Langium grammar, parser tokenBuilder, detector regex, and all
diagram code examples — exactly mirroring radar-beta.
2026-04-27 10:11:48 -06:00
ragelink 98d6993b13 Merge branch 'develop' into feature/cynefin-diagram 2026-04-21 08:42:55 -06:00
autofix-ci[bot] 8019a0a57b [autofix.ci] apply automated fixes 2026-04-20 10:20:10 +00:00
ragelink dfa88d769b fix(cynefin): address round 3 review feedback
- Honor `useMaxWidth` config in renderer (match radar reference pattern)
- Rename config/detector/schema key to `cynefin-beta` to match keyword
  and align with the `wardley-beta` convention
- Simplify transition control-point math into a single coordinate space
- Document the expectation that quadrant item counts stay small
2026-04-17 10:03:18 -06:00
ragelink 4a46bf17b1 merge: upstream/develop into feature/cynefin-diagram 2026-04-10 11:58:27 -06:00
Alois Klink 37ff937f1d fix: create CSS styles using the CSSOM
Currently, we're creating CSS styles using strings, which isn't ideal,
since it can lead to CSS injections other other CSS bugs.

However, we can instead use Constructable Stylesheets and the CSSOM to
better construct a CSS stylesheet.

This new API scrubs invalid syntax from the CSS stylesheet and does
some normalization (e.g. removing unnecessary spaces).

[1]: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replaceSync

See: https://web.dev/articles/constructable-stylesheets
2026-04-08 19:34:05 +09:00
Maddy Guthridge 01b85680c1 docs auto-gen 2026-04-08 03:55:10 +10:00
Ladislav Gazo 3bf1a68531 Merge branch 'develop' into feature/event-modeling-diagram 2026-04-01 19:37:16 +02:00
autofix-ci[bot] e6f5e317db [autofix.ci] apply automated fixes (attempt 2/3) 2026-03-29 10:44:12 +00:00
autofix-ci[bot] 916db68801 [autofix.ci] apply automated fixes 2026-03-29 03:38:02 -07:00
autofix-ci[bot] 2be4bf3348 [autofix.ci] apply automated fixes 2026-03-29 03:38:02 -07:00
Zainan Victor Zhou (MBP2023) 077957d2c4 feat(sankey): add Apple-style rendering with smart labels and custom node colors
- Add smart label positioning based on node layer relative to central node
- Add outlined label style (labelStyle: 'outlined') as new default
- Add nodeColors config option for custom node color mapping
- Add configurable nodeWidth and nodePadding options
- Update styles.js with new CSS for outlined labels
- Fix YAML frontmatter indentation in demos/sankey.html
- Add Cypress tests for new features

BREAKING CHANGE: labelStyle now defaults to 'outlined' instead of 'default'
2026-03-29 03:38:02 -07:00
ragelink 7463c3c6dd feat(cynefin): add Cynefin framework diagram type
Add a Cynefin framework diagram type for categorizing problems by
complexity domain. Five fixed domains (Complex, Complicated, Clear,
Chaotic, Confusion) with wavy organic boundaries, items placed within
domains, and transition arrows between them.

Features:
- Langium grammar with domain blocks, items, and transitions
- Wavy SVG bezier boundaries (deterministic via seeded PRNG)
- The "cliff" between Clear and Chaotic
- Domain labels with decision model and practice type subtitles
- Item badges stacked within each domain
- Curved transition arrows with optional labels
- Full theme integration (5 themes with domain-specific colors)
- Schema-driven config (width, height, padding, boundaryAmplitude)
- Accessibility (ARIA roles, labels)

Ref: mermaid-js/mermaid#7534
2026-03-26 19:51:03 -06:00
omkarht e9d4c110ff Merge pull request #7501 from mermaid-js/feature/neo-look-base
feature: implement neo look and themes for mermaid diagrams
2026-03-25 21:17:01 +01:00
Ladislav Gazo 9bc9eb2a35 Merge branch 'develop' into feature/event-modeling-diagram 2026-03-22 17:35:54 +01:00
leentaylor 83064874d4 Merge branch 'develop' of github.com:lee-treehouse/mermaid into 1661_wardley-maps
# Conflicts:
#	docs/config/setup/mermaid/interfaces/MermaidConfig.md
#	packages/examples/src/index.ts
#	packages/mermaid/src/config.type.ts
#	packages/mermaid/src/diagram-api/diagram-orchestration.ts
#	packages/mermaid/src/schemas/config.schema.yaml
#	packages/parser/src/language/index.ts
#	packages/parser/src/parse.ts
2026-03-14 13:37:31 +11:00
Lee Taylor dbce824ff9 Merge branch 'develop' into 2645_add_tree_view_diagram_update 2026-03-13 07:44:26 +11:00
leentaylor 08db6517d0 Merge branch 'develop' of github.com:lee-treehouse/mermaid into 2645_add_tree_view_diagram_update
# Conflicts:
#	packages/mermaid/src/docs/.vitepress/config.ts
2026-03-12 07:59:06 +11:00
Alex Turner 168348802a Merge branch 'develop' into bug/5741_fix-duplicate-svg-element-ids 2026-03-09 16:37:42 -07:00
Ashish Jain 8e81b8b72b merge v11.13.0 to develop 2026-03-09 14:27:57 +01:00
Claude 590ac4972a docs: regenerate LayoutData docs for diagramId property
https://claude.ai/code/session_01SPyLYoNghEHAXG6a5Vtr2X
2026-03-08 16:37:10 +00:00
leentaylor f57ac0d29e update parser to require spaces around content 2026-03-07 14:32:22 +11:00
leentaylor 397e942c10 Merge branch 'develop' of github.com:lee-treehouse/mermaid into 2645_add_tree_view_diagram_update
# Conflicts:
#	demos/index.html
#	docs/config/setup/defaultConfig/variables/configKeys.md
#	docs/config/setup/mermaid/interfaces/MermaidConfig.md
#	packages/examples/src/index.ts
#	packages/mermaid/src/docs/.vitepress/config.ts
2026-03-07 13:53:18 +11:00
Alex Turner 7731a336da Merge branch 'develop' into bug/5741_fix-duplicate-svg-element-ids 2026-02-28 18:29:38 +00:00
darshanr0107 33c7c72064 Merge pull request #7276 from mermaid-js/markdown-specific-changes
Fix non-markdown labels in flowcharts being treated like markdown
2026-02-27 11:35:34 +01:00
autofix-ci[bot] 52dfde9b3f [autofix.ci] apply automated fixes 2026-02-26 14:27:13 +00:00
Knut Sveidqvist 12f3afc386 Merge branch 'develop' into ishikawa-diagram 2026-02-26 15:21:48 +01:00
autofix-ci[bot] 79a199a686 [autofix.ci] apply automated fixes 2026-02-21 07:38:31 +00:00
TATSUNO “Taz” Yasuhiro acce4db7a1 feat: Add Ishikawa diagram 2026-02-18 18:03:11 +09:00
leentaylor c8c664e262 fix more typos introduced while addressing merge conflict 2026-02-16 11:46:45 +11:00
autofix-ci[bot] ab1269612f [autofix.ci] apply automated fixes 2026-02-10 23:37:28 +00:00
TATSUNO “Taz” Yasuhiro 1e74c0090d Merge remote-tracking branch 'origin/develop' into 2583-venn
# Conflicts:
#	docs/config/setup/mermaid/interfaces/MermaidConfig.md
2026-02-11 08:29:26 +09:00
autofix-ci[bot] 64833313be [autofix.ci] apply automated fixes 2026-01-28 13:45:12 +00:00
autofix-ci[bot] b11b63013a [autofix.ci] apply automated fixes 2026-01-12 13:32:21 +00:00
darshanr0107 9745f325cb Merge pull request #6995 from mermaid-js/deprecate-flowchart.htmlLabels
Deprecate flowchart-level htmlLabels config option
2026-01-12 00:58:59 -08:00
autofix-ci[bot] 0ac78ffff1 [autofix.ci] apply automated fixes 2026-01-11 14:12:59 +09:00
exoego 810e2f8e07 init venn diagram 2026-01-11 14:12:58 +09:00
tractorjuice 79179c9f27 Merge branch 'develop' into feature/1661_wardley-maps 2025-12-17 19:36:18 +02:00
autofix-ci[bot] b33ce14932 [autofix.ci] apply automated fixes 2025-11-14 06:55:46 +00:00
tractorjuice 6c48706dc2 fix(wardley): Address PR review comments - add beta suffix and version tag
Changes requested by @sidharthv96:
- Add version tag to documentation (v<MERMAID_RELEASE_VERSION>+)
- Rename diagram type from 'wardley' to 'wardley-beta' for beta release
- Update all examples to use 'wardley-beta' syntax

Updated files:
- wardleyDetector.ts: Changed id and detector regex to 'wardley-beta'
- wardleyDb.ts: Updated config access to use 'wardley-beta'
- wardleyRenderer.ts: Updated config access to use 'wardley-beta'
- config.schema.yaml: Renamed config key from 'wardley' to 'wardley-beta'
- wardley.md: Added version tag and updated all code examples
- wardley.ts: Updated 4 examples to use 'wardley-beta'
- wardley.spec.js: Updated 6 E2E tests to use 'wardley-beta'
- demos/wardley.html: Updated 6 demo examples to use 'wardley-beta'
- Changeset: Updated description to indicate beta status

Note: Parser refactoring to use Jison/Langium will be addressed in a follow-up commit.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 08:29:21 +00:00
tractorjuice 9cd687a7a8 feat(wardley): Add Wardley Maps diagram type
Complete implementation of Wardley Maps as a new diagram type for Mermaid.

Features:
- Component positioning with [visibility, evolution] OWM coordinates
- Anchors for users/customers
- Multiple link types (→, +>, +<, +<>, labeled)
- Evolution arrows and trend indicators
- Custom evolution stages with dual labels and custom widths
- Pipeline components with visibility inheritance
- Annotations, notes, and visual elements
- Source strategy markers (build, buy, outsource, market)
- Inertia indicators
- Theme integration

Implementation includes:
- Parser supporting OnlineWardleyMaps (OWM) syntax
- D3.js-based SVG renderer
- Unit tests (7 tests covering parser functionality)
- E2E tests (12 comprehensive visual regression tests)
- Complete documentation with examples
- Configuration schema

Resolves #1661

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 04:49:38 +00:00