Knut Sveidqvist
ef9cbb61e5
Merge pull request #6009 from mermaid-js/chore/fix-changeset-for-#5880
...
chore: update changeset for #5880
2024-10-30 16:17:20 +01:00
Alois Klink
8a0ecc1fe9
chore: update changeset for #5880
...
This isn't documented, but apparently changesets supports this in 91d1ef2ef7
This is needed to give @yari-dewalt credit for PR #5880
2024-10-31 00:09:10 +09:00
Ashish Jain
c6e1271ef7
Merge pull request #6007 from mermaid-js/release/11.4.0
...
Release v11.4.0
2024-10-30 15:19:37 +01:00
autofix-ci[bot]
b02294376a
[autofix.ci] apply automated fixes
2024-10-30 14:05:05 +00:00
Ashish Jain
97c61d818c
added changeset for class diagram
2024-10-30 14:11:41 +01:00
Alois Klink
1c66237fa8
test(unit): update docs unit test snapshot
...
This snapshot should have been modified in
c1ca3511c (Fix (tmp) for handling of config of htmlLabels ion note. MOvint class box out of flowchart docs, 2024-10-30
Fixes: c1ca3511c4428cdb4643b6ebc7a047a190d473de
2024-10-30 21:41:38 +09:00
Knut Sveidqvist
8ef5d324fd
Typescript fixes
2024-10-30 13:32:03 +01:00
Knut Sveidqvist
c1ca3511c4
Fix (tmp) for handling of config of htmlLabels ion note. MOvint class box out of flowchart docs
2024-10-30 11:54:31 +01:00
Alois Klink
953d288957
refactor(types): fix kanbanRenderer types
...
Add the appropriate type checks to ensure that we're only ever calling:
- `insertCluster()` with `ClusterNode`
- `insertNode()` with a `NonClusterNode`
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
2024-10-30 19:00:35 +09:00
Alois Klink
143806b360
refactor(types): assert insertNode
returns non-empty
...
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
2024-10-30 19:00:35 +09:00
Alois Klink
a381ab6c41
refactor(types): separate ClusterNode
s
...
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
2024-10-30 19:00:34 +09:00
Ashish Jain
93e20fdaa3
Merge from develop
2024-10-30 10:38:51 +01:00
Knut Sveidqvist
ece3b254db
Merge pull request #6006 from yari-dewalt/fix-note-non-html-text
...
Fix note non html text
2024-10-30 10:37:35 +01:00
Yari DeWalt
dd42305e8c
Merge branch 'develop' into fix-note-non-html-text
2024-10-29 12:21:52 -07:00
yari-dewalt
c34fd152d5
Add handling for ' characters in non-html text so they don't get sanitized into html code values
2024-10-29 11:57:22 -07:00
yari-dewalt
8f0e0b9c39
Change useHtmlLabels to use general config's htmlLabels attribute not flowchart's
2024-10-29 11:55:34 -07:00
yari-dewalt
fe8932e906
Set node.centerLabel before using labelHelper()
2024-10-29 11:54:25 -07:00
Knut Sveidqvist
73bbde8476
Update of the background-fix
2024-10-29 16:21:56 +01:00
Knut Sveidqvist
01a41ef530
Merge branch 'release/11.4.0' of github.com:mermaid-js/mermaid into release/11.4.0
2024-10-29 14:52:25 +01:00
Knut Sveidqvist
124d2f72dd
Fix for icon borders
2024-10-29 14:51:55 +01:00
Alois Klink
34e8946c58
refactor(types): fix kanbanItem circular types
...
Exclude the `node.shape` type from `kanbanItem()`, as otherwise it
causes a circular dependency in the types.
2024-10-29 22:18:38 +09:00
Ashish Jain
0197c08916
revert adding kanban section to shape
2024-10-29 14:04:57 +01:00
Alois Klink
ef30283fe9
refactor: fix more type errors in kanbanItem
...
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
2024-10-29 21:44:34 +09:00
Ashish Jain
dffaf9fa8f
fix for kanban section shape
2024-10-29 13:41:20 +01:00
Alois Klink
9168d5d1f4
refactor(types): fix some type errors in kanbanItem
...
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
2024-10-29 21:14:51 +09:00
Alois Klink
f33ebfaf7a
refactor: fix broken generic on insertLabel()
...
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
2024-10-29 21:14:48 +09:00
Alois Klink
054f929150
refactor: remove unused param from labelHelper()
...
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
2024-10-29 21:14:40 +09:00
Knut Sveidqvist
8d0902de4c
Merge pull request #6002 from aloisklink/fix/make-parse-error-on-invalid-shape
...
fix: make `mermaid.parse` throw an error on invalid shapes
2024-10-29 10:46:02 +01:00
Knut Sveidqvist
f6c32b6da4
Merge branch 'develop' into fix/make-parse-error-on-invalid-shape
2024-10-29 10:45:50 +01:00
Knut Sveidqvist
bdf145ffe3
Merge pull request #5880 from yari-dewalt/update-class-diagram
...
Update class diagram to v3 using new renderer
2024-10-29 10:44:07 +01:00
Knut Sveidqvist
75ca802b62
Merge branch 'develop' into update-class-diagram
2024-10-29 10:40:39 +01:00
Ashish Jain
3f85b6179d
Merge pull request #5999 from mermaid-js/knsv/5342-kanban
...
Knsv/5342 kanban
2024-10-29 10:38:18 +01:00
yari-dewalt
b315d70af5
Merge branch 'develop' into update-class-diagram and fix conflicts
2024-10-28 10:32:19 -07:00
autofix-ci[bot]
848be3d129
[autofix.ci] apply automated fixes
2024-10-28 14:33:47 +00:00
Alois Klink
5fabd414fb
fix: error mermaid.parse
on invalid shapes
...
Currently, invalid shapes cause an error when rendering, but not when
parsing. This confuses the Mermaid Live Editor, e.g. by not showing the
error message.
Instead, I've added an `isValidShape()` that validates if the shape is
valid at parse time. This only checks shapes using the new extended
shapes syntax. Currenlty, using `A(-this is an ellipse node-)` is broken
(see #5976 ) and also causes an invalid shape error at render time, but
I've ignored it in this PR, so it will continue pass at parse-time
(we have unit tests checking ellipse parsing).
See: https://github.com/mermaid-js/mermaid/issues/5976
2024-10-28 23:17:13 +09:00
Alois Klink
17e2f9e0d4
refactor: fix addVertex
type
parameter
...
I went through
`packages/mermaid/src/diagrams/flowchart/parser/flow.jison` and found
every possible value this `type` parameter could be.
2024-10-28 23:17:13 +09:00
Alois Klink
7fa8b35bdc
refactor: convert if-statements to switch..case
2024-10-28 23:17:13 +09:00
Knut Sveidqvist
e6ea4eae50
Fix for missing function
2024-10-28 14:29:06 +01:00
Knut Sveidqvist
7401cb8f6a
Merge branch 'develop' into knsv/5342-kanban
2024-10-28 14:22:10 +01:00
Sidharth Vinod
e765007b21
Merge pull request #5974 from aloisklink/refactor/improving-rendering-shape-types
...
refactor: TypeScript improvements to `packages/mermaid/src/rendering-util/rendering-elements`
2024-10-28 18:22:23 +05:30
Sidharth Vinod
b5cd101d86
Merge branch 'develop' into refactor/improving-rendering-shape-types
2024-10-28 18:11:41 +05:30
autofix-ci[bot]
da12ace593
[autofix.ci] apply automated fixes
2024-10-28 12:08:48 +00:00
Knut Sveidqvist
2c676b6222
Moving kanbanItem out of the shapes doc
2024-10-28 13:03:18 +01:00
Knut Sveidqvist
0af08276d2
#5232 Enabling handdrawn mode
2024-10-28 12:53:03 +01:00
Knut Sveidqvist
d790e353b0
#5432 Theme based text color for labels
2024-10-28 11:51:44 +01:00
Knut Sveidqvist
e07e9b9daf
Merge branch 'knsv/5342-kanban' of github.com:mermaid-js/mermaid into knsv/5342-kanban
2024-10-28 11:47:17 +01:00
Knut Sveidqvist
948ec4d1ce
#5342 Handing of wide section texts
2024-10-28 11:43:56 +01:00
autofix-ci[bot]
e62d268c89
[autofix.ci] apply automated fixes
2024-10-28 09:19:37 +00:00
Knut Sveidqvist
742ad7c130
Adding changeset and kanban in the docs sidenav
2024-10-28 10:03:42 +01:00
Knut Sveidqvist
56cc3728c5
End to end tests and docs
2024-10-25 15:40:58 +02:00