Sidharth Vinod
807e1f303d
Use cytoscape esm
2023-02-28 20:40:56 +05:30
Sidharth Vinod
65f5f9dc45
Revert "chore: Defer elk loading"
...
This reverts commit 037504785c
.
2023-02-28 20:39:06 +05:30
Sidharth Vinod
b8b8c4740a
Revert "Split cytoscape"
...
This reverts commit f81f9f7c95
.
2023-02-28 20:31:03 +05:30
Sidharth Vinod
f8f7d94d5a
fix: Class with members and styles
2023-02-28 19:34:54 +05:30
Knut Sveidqvist
fda0c8d0a9
Merge branch 'develop' into sidv/fix4157
2023-02-28 13:20:37 +01:00
Knut Sveidqvist
b932cd0930
Merge pull request #4128 from kshitijsaksena/bug/3949_erdiagram_attribute_comment
...
Added grammar to skip comment in attribute block
2023-02-28 13:14:50 +01:00
Sidharth Vinod
1ab3ed1a1a
chore: Add vitest imports
2023-02-28 16:58:41 +05:30
Sidharth Vinod
1981f12976
chore: Fix snapshots
2023-02-28 16:58:04 +05:30
Sidharth Vinod
733967f65a
fix #4157 : Inject only fontFamily without replacing themeVariables
2023-02-28 16:55:25 +05:30
Sidharth Vinod
56d27d555b
Merge branch 'sidv/fixRunAsync' of https://github.com/mermaid-js/mermaid into sidv/fixRunAsync
...
* 'sidv/fixRunAsync' of https://github.com/mermaid-js/mermaid :
Update packages/mermaid/src/mermaid.ts
2023-02-28 16:49:02 +05:30
Sidharth Vinod
7cee8cb6dc
Merge branch 'develop' into sidv/fixRunAsync
...
* develop: (23 commits)
Fix test
refactor(deps): replace `moment` with `dayjs`
test(gantt): test daylight savings in ganttdb
Update .lycheeignore
chore: dagre-d3-es@7.0.9
chore: Add tsdoc for registerLazyLoadedDiagrams
feat: Ensure proper detection for flowcharts
fix: Class label not visible if class is already defined
Update import
fix TS errors
fix TS errors
feat: Match timeline section width to tasks
chore: TimelineRenderer in TS
Fix types
fix: Detector order
Lint
Cleanup nodes.js
docs: Update classdiagram docs
classLabel tests
Formatting
...
2023-02-28 16:48:54 +05:30
Knut Sveidqvist
c91fa192aa
Update packages/mermaid/src/mermaid.ts
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-02-28 12:14:35 +01:00
Knut Sveidqvist
3f93edaaf3
Merge pull request #4086 from sidharthv96/sidv/classDiagramLabels
...
feat: Add support for classDiagram labels
2023-02-28 12:03:22 +01:00
Knut Sveidqvist
0bed5d717b
Merge pull request #4126 from mermaid-js/sidv/timelineSectionWidth
...
💄 section width now covers all tasks - Timeline
2023-02-28 11:59:14 +01:00
Knut Sveidqvist
1b56071eb3
Merge pull request #4124 from mermaid-js/sidv/fixDetectorOrder
...
fix: Detector order
2023-02-28 11:49:08 +01:00
Sidharth Vinod
9b2f503dc7
Merge branch 'develop' into sidv/classDiagramLabels
...
* develop:
refactor(deps): replace `moment` with `dayjs`
test(gantt): test daylight savings in ganttdb
Update .lycheeignore
chore: dagre-d3-es@7.0.9
Update docs
Doc (typo): remove duplicate "be"
💄 section width now covers all tasks
2023-02-28 14:20:11 +05:30
Alois Klink
a5db04b01c
refactor(deps): replace `moment` with `dayjs`
...
Replace Mermaid's dependency on `moment` with `dayjs`.
[Moment is now in maintenance mode][1], and they don't recommend
using it.
[Dayjs][2] has almost exactly the same API as moment, and is still
curently being maintained. Unlike moment, dayjs objects are immutable,
which makes our life much easier, but we need to do
`a = a.add(1, "day")` instead of just `a.add(1, "day")`.
We can't use `dayjs.duration`, because unlike `moment.duration`,
[dayjs durations always degrade to ms][3].
This causes issues with daylight savings, since it assumes that each
day is 24 hours, when some days have 23/25 hours with daylight savings.
(it also assumes that each month is 30 days).
However, `dayjs.add(1, "d");` correctly adds 1 days, even when that
day is only 23 hours long, so we can use that instead.
[1]: https://momentjs.com/docs/#/-project-status/
[2]: https://day.js.org/
[3]: https://day.js.org/docs/en/durations/durations
2023-02-26 22:31:12 +00:00
Alois Klink
06640aba06
test(gantt): test daylight savings in ganttdb
...
Add a quick test that ensures `ganttDb` correctly adds `1d` (1 day),
even on days with 25 hours.
This test only runs if the test PC has the TZ='America/Los_Angeles'
set (California has daylight savings).
I've added a test to the GitHub Actions `test.yml` action too for this.
It should only add about 5 seconds to each test, so it isn't too bad.
2023-02-26 06:43:14 +00:00
Billiam
b079fb4710
fixup! feat(pie): adding outer border, text position options
2023-02-25 15:43:16 -06:00
Billiam
a2855931d2
Update packages/mermaid/src/diagrams/pie/pieRenderer.js
...
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
2023-02-24 22:21:51 -06:00
Sidharth Vinod
fa8a887ae1
chore: dagre-d3-es@7.0.9
2023-02-25 08:56:18 +05:30
Billiam
6e4e529af2
feat(pie): adding outer border, text position options
2023-02-24 18:56:29 -06:00
Sidharth Vinod
275a54a562
core: Fix render tsdoc
...
Co-authored-by: Dmitry Stratiychuk <dmstrati@microsoft.com>
2023-02-24 23:10:01 +05:30
Sidharth Vinod
1bace23cea
Merge branch 'develop' into sidv/fixRunAsync
...
* develop:
Update docs
fix: fix exports
Doc (typo): remove duplicate "be"
💄 section width now covers all tasks
2023-02-24 20:54:55 +05:30
Sidharth Vinod
f62c4831ad
Merge pull request #4074 from l2fprod/feature/user_journey_expand_section
...
💄 section width now covers all tasks
2023-02-24 20:00:17 +05:30
Sidharth Vinod
7b4ce7c6ea
chore: Add tsdoc for registerLazyLoadedDiagrams
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-02-24 17:32:39 +05:30
Sidharth Vinod
dda0d00fb9
Merge branch 'develop' into sidv/fixDetectorOrder
...
* develop:
Update docs
fix Lint
Update CHANGELOG.md
Update CHANGELOG.md
fix: fix exports
Doc (typo): remove duplicate "be"
Fix readme link
Regenerate mermaid docs
Add deepdwn to cspell
Add Deepdwn to native integrations list
2023-02-24 17:27:47 +05:30
Sidharth Vinod
4bf5c9f3d8
feat: Ensure proper detection for flowcharts
2023-02-24 17:27:24 +05:30
Sidharth Vinod
19e5ccfdda
Merge pull request #4133 from Julez404/patch-1
...
Doc (typo): remove duplicate "be"
2023-02-24 14:00:20 +05:30
Sidharth Vinod
b13707fa7b
fix: Class label not visible if class is already defined
2023-02-24 13:46:56 +05:30
Sidharth Vinod
716a4d2cbc
Update import
2023-02-24 13:29:34 +05:30
Sidharth Vinod
3b2d55efec
Merge branch 'develop' into sidv/classDiagramLabels
...
* develop: (85 commits)
fix Lint
Update CHANGELOG.md
Update CHANGELOG.md
fix: fix exports
Fix readme link
Regenerate mermaid docs
Add deepdwn to cspell
Add Deepdwn to native integrations list
docs: Fix changelog
docs: v10 breaking changes
Remove `null` from diagrams before render
fix docs diagram
Updated version
Minor cleanup to trigger build.
Fix spellings
Wrap option working in test case
Fix typos
Minor cleanup
Removed the deprecated use of mindmap in Demo
Minor cleanup
...
2023-02-24 13:28:28 +05:30
Sidharth Vinod
0206ff540a
fix( #4140 ): Deprecate mermaidAPI.render
2023-02-24 12:20:31 +05:30
Sidharth Vinod
1e5d9ae1f4
fix( #4140 ): Remove direct usage of mermaidAPI.render
2023-02-24 12:15:55 +05:30
Mr.Hope
f8abc9c6d5
fix: fix exports
...
"types" import should always be first
2023-02-23 15:20:17 +08:00
Yoshi404
ef20e0b77a
Doc (typo): remove duplicate "be"
2023-02-22 22:34:30 +01:00
Kshitij
285a7448ae
Added grammar to skipcomment in attribute block
2023-02-22 08:36:44 +05:30
Billiam
fd6ce89933
Add Deepdwn to native integrations list
2023-02-21 20:56:26 -06:00
Sidharth Vinod
c8e351c2bb
fix TS errors
2023-02-22 02:15:15 +05:30
Sidharth Vinod
a59904cf16
fix TS errors
2023-02-22 02:14:16 +05:30
Sidharth Vinod
df36968ec8
feat: Match timeline section width to tasks
2023-02-22 02:10:35 +05:30
Sidharth Vinod
2ab1e15b86
chore: TimelineRenderer in TS
2023-02-22 02:09:14 +05:30
Sidharth Vinod
eca4163363
Fix types
2023-02-21 23:24:11 +05:30
Sidharth Vinod
1ac219282b
fix: Detector order
2023-02-21 23:00:03 +05:30
Sidharth Vinod
0df8c149f9
Merge branch 'master' into develop
...
* master:
docs: Fix changelog
docs: v10 breaking changes
Remove `null` from diagrams before render
fix docs diagram
2023-02-21 21:40:29 +05:30
Sidharth Vinod
b868777184
docs: v10 breaking changes
2023-02-21 21:35:54 +05:30
Sidharth Vinod
fe2ef5e0c6
Remove `null` from diagrams before render
2023-02-21 16:33:42 +05:30
Sidharth Vinod
ac21fe2d5c
fix docs diagram
2023-02-21 16:25:18 +05:30
Per Brolin
6b251de227
Merge branch 'master' into develop
2023-02-21 10:29:21 +01:00
Per Brolin
3b25cd3238
Updated version
2023-02-21 10:25:02 +01:00
Sidharth Vinod
555d4f2cdc
Fix spellings
2023-02-21 13:27:37 +05:30
Florian Kohrt
bfb8a75fca
Fix typos
2023-02-20 22:06:38 +01:00
Sidharth Vinod
14c15b221a
Minor cleanup
...
Co-authored-by: Per Brolin <per@mermaidchart.com>
2023-02-20 19:28:31 +05:30
pbrolin47
22b18a4320
Merge pull request #4113 from mermaid-js/3192_invisible_edges
...
Adding the ability to use invisible edges
2023-02-20 14:40:43 +01:00
pbrolin47
786023ffa6
Merge pull request #4110 from mermaid-js/sidv/splitDiagrams
...
splitDiagrams
2023-02-20 13:54:27 +01:00
Sidharth Vinod
68cdc759a7
Minor cleanup
...
Co-authored-by: Per Brolin <per@mermaidchart.com>
2023-02-20 17:53:07 +05:30
Knut Sveidqvist
b6cac3a431
#3192 Adding docs and visual test
2023-02-20 11:19:23 +01:00
Knut Sveidqvist
3a71618a49
#3192 Adding the ability to create invisible links in flowcharts(v2)
2023-02-20 11:08:25 +01:00
Sidharth Vinod
38b2cbc3d1
chore: Update RunOptions docs
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-02-20 13:10:54 +05:30
Sidharth Vinod
2272af38b9
Merge branch 'release/10.0.0' into sidv/splitDiagrams
...
* release/10.0.0:
Cleanup
2023-02-20 01:32:12 +05:30
Sidharth Vinod
40b5f868de
Cleanup
2023-02-20 01:19:07 +05:30
Sidharth Vinod
c9c4320f89
fix unit tests
2023-02-20 00:14:39 +05:30
Sidharth Vinod
543e4de0c8
chore: Remove lazyLoadedDiagrams from config
2023-02-19 23:55:22 +05:30
Sidharth Vinod
8174c7ca16
Cleanup
2023-02-19 22:42:26 +05:30
Sidharth Vinod
014ab85420
Cleanup
2023-02-19 22:41:44 +05:30
Sidharth Vinod
c7d9103ede
Merge pull request #4107 from rodja/develop
...
add links to NiceGUI integration
2023-02-19 22:12:43 +05:30
Sidharth Vinod
638362baea
Merge branch 'release/10.0.0' into sidv/splitDiagrams
...
* release/10.0.0: (333 commits)
10.0.0-rc.3
Export more types
no side effects
10.0.0-rc.2
skip failing elk test
Cleanup
Update docs
fix(#3406 , #3394 ): Remove init & initThrowsErrors
chore: Rename lazy loaded diagram definitions
Skip flowchart-elk failing test
Fix docs
fix Server
Fix lint
Remove Readme
Fix E2E Tests
Fix tests
feat: Break render and parse types
chore: Remove all non async render/parse/init
Remove CJS builds from docs
chore: Remove cjs from build
...
2023-02-19 20:18:26 +05:30
Sidharth Vinod
e22171c5bc
10.0.0-rc.3
2023-02-19 20:07:07 +05:30
Sidharth Vinod
77207e0452
Export more types
2023-02-19 20:04:46 +05:30
Sidharth Vinod
4a721a2d25
no side effects
2023-02-19 18:59:08 +05:30
Sidharth Vinod
db8a14cdaf
10.0.0-rc.2
2023-02-19 18:36:04 +05:30
Sidharth Vinod
4ea7294eeb
fix( #3406 , #3394 ): Remove init & initThrowsErrors
...
New run function added as replacement.
2023-02-19 16:10:08 +05:30
Sidharth Vinod
57fd3e586a
chore: Rename lazy loaded diagram definitions
2023-02-19 14:58:55 +05:30
Sidharth Vinod
e6b4e2c084
Remove Readme
2023-02-19 14:13:57 +05:30
Sidharth Vinod
6aa3ea43ae
Remove Readme
2023-02-19 14:13:30 +05:30
Sidharth Vinod
735aceb37a
Fix E2E Tests
2023-02-19 14:03:11 +05:30
Sidharth Vinod
d2927435ab
Fix tests
2023-02-19 13:09:31 +05:30
Sidharth Vinod
eaa84d2d91
feat: Break render and parse types
...
Both render and parse are async now.
Return type of render contains svg and bindFunctions.
Parse will not throw error if parseOptions.silent is passed.
2023-02-19 13:08:13 +05:30
Rodja Trappe
941b959da3
add links to NiceGUI integration
2023-02-19 05:40:45 +01:00
Sidharth Vinod
d22e8d92c6
chore: Remove all non async render/parse/init
2023-02-19 01:10:15 +05:30
Sidharth Vinod
45adc5fb6b
Remove CJS builds from docs
2023-02-19 00:58:36 +05:30
Sidharth Vinod
c1aad5975c
Merge branch 'release/9.4.2' into release/10.0.0
...
* release/9.4.2:
RC version
Revert #4034
Revert #4034
fix: Vite, D3, Vitest Types
fix(api): tree shaking package.json import
2023-02-19 00:55:23 +05:30
Sidharth Vinod
631ff8fb9e
chore: Remove cjs from build
2023-02-19 00:37:11 +05:30
Sidharth Vinod
735faa83e9
Merge branch 'release/9.4.2' into pr/AielloChan/4101
...
* release/9.4.2:
RC version
Revert #4034
Revert #4034
fix: Vite, D3, Vitest Types
2023-02-19 00:05:53 +05:30
Sidharth Vinod
2c062d648a
Merge branch 'develop' into release/9.4.2
...
* develop:
Add highlight tag info in contributing.md
chore(deps): update dependency cypress to v12
docs: fix links
Fix types
chore(deps): update dependency vite to v4
2023-02-19 00:04:44 +05:30
Sidharth Vinod
ea8128e881
RC version
2023-02-18 23:48:09 +05:30
Sidharth Vinod
bd98f1477f
Revert #4034
2023-02-18 23:46:11 +05:30
Sidharth Vinod
0f36bbf3e1
Revert #4034
2023-02-18 23:45:45 +05:30
Sidharth Vinod
3c4a6a19bb
fix: Vite, D3, Vitest Types
2023-02-18 22:35:14 +05:30
Aiello
e31924eadc
fix(api): tree shaking package.json import
...
Manually tree shaking import statement of package.json
2023-02-18 23:21:20 +08:00
Sidharth Vinod
bb8bd111f8
Merge branch 'develop' into sidv/classDiagramLabels
...
* develop: (39 commits)
Add highlight tag info in contributing.md
chore(deps): update dependency cypress to v12
docs: fix links
Skip precommit hooks on CI
Fix release-publish
Fix timeline and mindmap
Updating integration instructions for timeline and mindmap
Remove node heap
Revert "chore: Set node heap size"
Revert "Remove text hint"
Split cytoscape
Linear build
Remove text hint
Fix elk import
Dynamic elk import
Remove heap option
elk web-worker
Test publish docs
chore: Add file extension for dynamic import
chore: Defer elk loading
...
2023-02-16 18:06:41 +05:30
Sidharth Vinod
4ed6ec1a4d
Add highlight tag info in contributing.md
2023-02-16 18:00:41 +05:30
Sidharth Vinod
17238c0326
Merge branch 'master' into develop
...
* master: (24 commits)
docs: fix links
Skip precommit hooks on CI
Fix release-publish
Fix timeline and mindmap
Updating integration instructions for timeline and mindmap
Remove node heap
Revert "chore: Set node heap size"
Revert "Remove text hint"
Split cytoscape
Linear build
Remove text hint
Fix elk import
Dynamic elk import
Remove heap option
elk web-worker
Test publish docs
chore: Add file extension for dynamic import
chore: Defer elk loading
Update vitepress
Fix links to integrations.md
...
2023-02-16 17:52:07 +05:30
Sidharth Vinod
ac231949f0
Merge pull request #4071 from mermaid-js/renovate/vite-4.x
...
chore(deps): update dependency vite to v4
2023-02-16 17:50:08 +05:30
Sidharth Vinod
d543bc0411
docs: fix links
2023-02-16 17:27:51 +05:30
Sidharth Vinod
b22978dfb2
Fix timeline and mindmap
2023-02-16 16:52:15 +05:30
Knut Sveidqvist
71e4f1152b
Updating integration instructions for timeline and mindmap
2023-02-16 12:05:38 +01:00
Sidharth Vinod
8c7043ffaf
Revert "Remove text hint"
...
This reverts commit ec6ef35d21
.
2023-02-16 15:27:43 +05:30
Sidharth Vinod
f81f9f7c95
Split cytoscape
2023-02-16 15:21:45 +05:30
Sidharth Vinod
ec6ef35d21
Remove text hint
2023-02-16 15:07:55 +05:30
Sidharth Vinod
c815c84e1c
Fix elk import
2023-02-16 15:00:35 +05:30
Sidharth Vinod
b8315cec6c
Dynamic elk import
2023-02-16 14:42:47 +05:30
Sidharth Vinod
83797eef38
elk web-worker
2023-02-16 14:21:33 +05:30
Sidharth Vinod
a1a252cc29
Merge branch 'master' into release/9.4.1
...
* master:
Update vitepress
Fix links to integrations.md
chore: Set node heap size
2023-02-16 13:01:10 +05:30
Sidharth Vinod
533bd7da3c
chore: Add file extension for dynamic import
2023-02-16 12:56:32 +05:30
Sidharth Vinod
037504785c
chore: Defer elk loading
2023-02-16 12:47:28 +05:30
Sidharth Vinod
62f7fb082e
Update vitepress
2023-02-16 12:47:00 +05:30
Sidharth Vinod
b89b90dbb9
Fix links to integrations.md
2023-02-16 12:35:43 +05:30
Sidharth Vinod
31afd7499b
chore: Linear build
2023-02-16 12:05:41 +05:30
Knut Sveidqvist
25da0c6c8e
Merge branch 'master' into develop
2023-02-15 16:31:44 +01:00
Per Brolin
98bec36f81
Merge branch 'release/9.4.0'
2023-02-15 16:20:22 +01:00
Per Brolin
97614b8af5
Updated to 9.4.0
2023-02-15 15:54:02 +01:00
Knut Sveidqvist
343e48302e
Fix for direction issue with elk rendering
2023-02-15 15:12:52 +01:00
Per Brolin
aef989fe03
Corrected sequenceRenderer
2023-02-15 15:11:23 +01:00
Per Brolin
0c38f20281
Clearing sequence diagram before rendering
2023-02-15 14:17:46 +01:00
Knut Sveidqvist
eed427b4ac
Adding simple direction logic
2023-02-15 14:10:38 +01:00
Knut Sveidqvist
027296df68
Working version before applying direction logic
2023-02-15 13:54:33 +01:00
Sidharth Vinod
10e6c92766
Lint
2023-02-14 10:56:16 +05:30
Sidharth Vinod
e1710fddd9
Cleanup nodes.js
2023-02-14 10:22:17 +05:30
Sidharth Vinod
bcfefefbd4
docs: Update classdiagram docs
2023-02-14 00:56:40 +05:30
Sidharth Vinod
ef4fbd8bb3
classLabel tests
2023-02-14 00:54:42 +05:30
Sidharth Vinod
17e317385a
Formatting
2023-02-14 00:37:17 +05:30
Sidharth Vinod
102900749e
Add support for classDiagram labels
2023-02-14 00:36:43 +05:30
Sidharth Vinod
46f2aebabc
Cleanup Renderer
2023-02-13 22:48:11 +05:30
Sidharth Vinod
b9c2f62b47
Cleanup classDB
2023-02-13 21:31:43 +05:30
Sidharth Vinod
9d75665460
Fix links to integrations.md
2023-02-13 10:55:24 +05:30
Per Brolin
a956be7bbf
Release candidate
2023-02-10 11:03:25 +01:00
Sidharth Vinod
fd8fb96ec2
chore: Copy readme before publishing
2023-02-10 12:14:58 +05:30
Sidharth Vinod
ad6a43cf81
Add logo to readme
2023-02-09 12:46:05 +05:30
Sidharth Vinod
f6d9868e35
chore: Lint fix
2023-02-09 11:34:20 +05:30
Sidharth Vinod
94d4ee3a2c
Merge pull request #4015 from JeffTrain/develop
...
docs: minor fix on markdown
2023-02-09 11:33:28 +05:30
Sidharth Vinod
004432fae9
Fix types
2023-02-09 11:28:27 +05:30
Sidharth Vinod
07764348eb
Merge pull request #4069 from mermaid-js/renovate/jsdom-21.x
...
chore(deps): update dependency jsdom to v21
2023-02-09 11:13:03 +05:30
Frederic Lavigne
f791cd2b24
💄 section width now covers all tasks
2023-02-08 22:02:19 -06:00
renovate[bot]
72e8b7fb38
chore(deps): update dependency rimraf to v4
2023-02-09 00:49:20 +00:00
renovate[bot]
3a89cc7993
chore(deps): update dependency jsdom to v21
2023-02-09 00:47:08 +00:00
renovate[bot]
d45eda1c60
chore(deps): update dependency @types/uuid to v9
2023-02-09 00:41:24 +00:00
Sidharth Vinod
f83f09d8b0
Fix vitest type
2023-02-09 01:29:41 +05:30
Knut Sveidqvist
74df4a7a68
Mind map coming in from the cold. A lazy loaded diagram in the same way as timeline.
2023-02-08 17:42:58 +01:00
Knut Sveidqvist
580903051f
Fixing broken test
2023-02-08 13:40:41 +01:00
Knut Sveidqvist
ce037a84ca
Fixing build after last batch of changes
2023-02-08 13:16:33 +01:00
Sidharth Vinod
7f254e37e9
Cleanup
2023-02-08 16:01:29 +05:30
Sidharth Vinod
d562a81019
Merge branch 'develop' into timeline
...
* develop: (45 commits)
Showcase section to the docs - keepings docs up to date (#4055 )
bugfix: add missing d3 curves to flowchart and docs
fix(deps): update dependency dagre-d3-es to v7.0.8
build(pre-commit): cache eslint in pre-commit
build(lint): cache eslint with strategy content
Update cypress/integration/rendering/sequencediagram.spec.js
feat(er): allow leading underscore for attributes name
ci(lint): show nice error on lint failure
chore: add moment to dependencies
Update docs
Update mindmap.md
chore: remove moment-mini
docs(readme-ch): fix twitter link
build(lint): cache prettier on `pnpm run lint`
fix: moment-mini default exporter
docs(readme): update broken twitter badge
test(er): improve tests on multiple key constraints
Fixes Typo, remove console.log
doc(er): add documentation on multiple key constraints
feat(er): allow multiple constraints on attributes
...
2023-02-08 15:57:09 +05:30
Knut Sveidqvist
6a045db83c
Fix for e2e issue with mindmap tests, not related to timeline
2023-02-08 11:24:09 +01:00
Omer Rosenbaum
73ee9e9a92
Showcase section to the docs - keepings docs up to date ( #4055 )
...
* Add a Showcase section to the docs with Swimm
* Build docs
* Move FAQ to Config
* Create showcases page
* Build docs
* Prettier
* feat: Redirect old docs URLs
---------
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
2023-02-07 23:15:48 +05:30
Sidharth Vinod
923ddc8309
Merge pull request #4038 from natasha-jarus/bug/missing-flowchart-curves
...
bugfix: add missing d3 curves to flowchart and docs
2023-02-07 14:00:53 +05:30
Sidharth Vinod
64096b22dc
Merge pull request #3965 from oleveau/feature/AddBoxForSeqDiagrams
...
Add Box support in Sequence Diagrams
2023-02-07 13:58:32 +05:30
Natasha Jarus
84d563584f
bugfix: add missing d3 curves to flowchart and docs
2023-02-06 13:28:40 -08:00
renovate[bot]
ac67794fb2
fix(deps): update dependency dagre-d3-es to v7.0.8
2023-02-06 01:07:08 +00:00
Sidharth Vinod
71e5a53172
Merge pull request #4034 from emersonbottero/develop
...
fix: moment-mini default exporter
2023-02-05 11:48:56 +05:30
Tom PERRILLAT-COLLOMB
c2ec63d4fd
feat(er): allow leading underscore for attributes name
2023-01-30 12:34:06 +01:00
Emerson Bottero
df10d64989
chore: add moment to dependencies
2023-01-29 11:24:48 -03:00
GavinPen
cb1a20264d
Update mindmap.md
...
Minor Improvement to wording
2023-01-28 17:42:30 +00:00
Emerson Bottero
7179f1bcba
chore: remove moment-mini
2023-01-26 20:55:57 -03:00
ashishj
61f33567ae
Making timeline diagram lazy-loaded internal, removing separate package
2023-01-26 10:29:35 +01:00
Olivier Leveau
9fb6f1998f
Merge branch 'develop' into feature/AddBoxForSeqDiagrams
2023-01-26 09:14:18 +01:00
Emerson Bottero
19e3624e89
fix: moment-mini default exporter
2023-01-26 01:23:41 -03:00
Sidharth Vinod
c51f6df82c
Merge pull request #4030 from tomperr/feature/4009_er_multiple_constraints
...
feat(er): add multiple key constraints
2023-01-26 00:16:58 +05:30
Tom PERRILLAT-COLLOMB
dc0a46f742
test(er): improve tests on multiple key constraints
2023-01-25 19:40:40 +01:00
Sidharth Vinod
c76728b423
Merge pull request #3902 from weedySeaDragon/bug/3858_state_named_state_container
...
Bug/3858 [state] trailing whitespace in ids for named state container
2023-01-25 22:51:34 +05:30
Sidharth Vinod
0aa7da261f
Merge pull request #3962 from aloisklink/build/add-autogenerated-header-after-yaml-codeblocks
...
Add support for YAML frontmatter in Markdown docs (used for Vitepress config)
2023-01-25 22:50:20 +05:30
ashishj
52bd5181f9
More Lint Fixes
2023-01-25 18:03:04 +01:00
ashishj
49ce5222c9
Lint Fixes
2023-01-25 17:49:35 +01:00
ashishj
5c14df0aeb
Added jest test cases
2023-01-25 17:45:47 +01:00
ashishj
8af5c4c341
Fix parser grammer conflicts
2023-01-25 17:44:34 +01:00
Olivier Leveau
f7756ccc00
Fixes Typo, remove console.log
2023-01-25 17:02:10 +01:00
Tom PERRILLAT-COLLOMB
3066a4b43a
doc(er): add documentation on multiple key constraints
2023-01-25 15:13:58 +01:00
Tom PERRILLAT-COLLOMB
26e9b1790b
feat(er): allow multiple constraints on attributes
...
little changes in grammar to get a list of constraints (PK, FK or UK), so little changes in renderer to handle this list
2023-01-24 21:20:11 +01:00
Sidharth Vinod
6792bb94b7
chore: Use logger
2023-01-24 16:11:04 +05:30
Sidharth Vinod
b36e5d0d3b
fix: Remove unnecessary void's.
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-01-24 16:08:43 +05:30
Sidharth Vinod
a28f6bf80c
Merge branch 'develop' into sidv/fixUnhandledPromise
...
* develop:
chore: Skip 57-elk test
Update docs
Update integrations.md
2023-01-24 16:00:35 +05:30
Alois Klink
816f2f512e
build(docs): hide YAML when building for GitHub
...
YAML front-matter is currently only used for Vitepress.
Because of that, to avoid confusion, we can remove this YAML
front-matter when converting the Markdown in packages/mermaid/src/docs
to go into the `docs/` folder for GitHub browsing.
2023-01-22 19:23:57 +00:00
Alois Klink
76c3716b2d
docs: add vitepress metadata to flowchart docs
...
Changes the title in Vitepress, as well as using `outline: "deep"`
for a better outline/table-of-contents for the page.
See https://vitepress.vuejs.org/config/theme-configs#outline
for docs on what `outline: "deep"` does.
2023-01-22 19:21:53 +00:00
Alois Klink
2f1a521db6
build(docs): add auto-generated header after YAML
...
Add the auto-generated header after any YAML front-matter blocks.
YAML front-matter is normally only valid in Markdown when it's at the
beginning of the Markdown file. GitHub/Vitepress may otherwise render
it incorrectly.
2023-01-22 19:21:53 +00:00
Alois Klink
8f4caa4537
refactor(docs): use remark-compatible plugin
...
Change the `transformBlocks` function, which transforms a markdown str,
and instead making it into a
`transformMarkdownAst` function, which transforms a Markdown AST.
This means we can use the remark/unifiedjs plugin infrastructure, see
https://unifiedjs.com/learn/guide/create-a-plugin/
2023-01-22 19:21:51 +00:00
Alois Klink
b26cdb3e46
build(docs): support YAML frontmatter in markdown
...
Vitepress uses YAML frontmatter to configure Vitepress specific
settings, see https://vitepress.vuejs.org/config/frontmatter-configs
We just need to use `remark-frontmatter` to add support for it.
GitHub also renders the YAML front-matter nicely in a table
automatically, but maybe we should instead strip it, if it's only
used by Vitepress?
2023-01-22 19:21:18 +00:00
Knut Sveidqvist
de8928b2d9
#4016 Fix for max_sections in mindmap renderer
2023-01-20 12:48:06 +01:00
pbrolin47
e5b33087f3
Merge pull request #4013 from mermaid-js/4012-handling-rows-wiht-only-spaces
...
Mindmaps: Handling rows with only spaces in them (#4012 )
2023-01-20 10:23:06 +01:00
Knut Sveidqvist
bc56a7d4f1
#4012 Neater grammar for the rows before mindmap
2023-01-20 10:21:13 +01:00
Knut Sveidqvist
80903e427c
#4012 Allowing multiple lines before the mindmap statement
2023-01-20 10:18:26 +01:00
Per Brolin
e8db9b2bd5
Merge branch 'master' of github.com:mermaid-js/mermaid
2023-01-20 09:01:48 +01:00
Knut Sveidqvist
023f2354cd
2023-01-20 08:31:01 +01:00
cnjeftia
96d5bc7695
docs: minor fix on markdown
2023-01-20 11:29:16 +08:00
ashishj
7ef71cc04d
Remove old test cases
2023-01-19 21:05:38 +01:00
Knut Sveidqvist
3cd15cdcf2
#4012 Handling rows with only spaces in them
2023-01-19 20:50:36 +01:00
ashishj
e865368649
Updating version and clean up package.json
2023-01-19 20:42:33 +01:00
ashishj
be818ad57f
Pushing fix for broken themeVariable functionality
2023-01-19 20:30:11 +01:00
ashishj
ca22e85e55
Merge branch 'release/9.4.0' into timeline
2023-01-19 19:20:29 +01:00
ashishj
652a42fe1a
Add directive parsing functionality to timeline diagram
2023-01-19 19:03:05 +01:00
Bastian Ebeling
3aeef7b846
Update integrations.md
...
Corrected `Vs Code` to `VS Code` and inserted `Markdown Preview Enhanced`
2023-01-19 07:15:32 +01:00
Olivier Leveau
250f1f9687
Merge branch 'develop' into feature/AddBoxForSeqDiagrams
2023-01-18 11:35:39 +01:00
Sidharth Vinod
5b9839cbd0
fix package.json
...
add `@types/cytoscape`
2023-01-18 00:53:00 +05:30
Sidharth Vinod
afe3f593e1
fix( #4003 ): Remove unhandled promises
...
Add eslint rules to check for unhandled promises
Fix all existing unhandled promise issues
2023-01-18 00:47:49 +05:30
Sidharth Vinod
8a485c3c88
Merge pull request #3993 from jonabc/bug/sequence-firefox-font-size
...
Parse style string and number font size values from configuration inputs
2023-01-17 22:07:11 +05:30
Jon Ruskin
9629c8d8d6
use undefined not null
2023-01-17 08:31:36 -07:00
Sidharth Vinod
c0f9b3c00b
Merge branch 'develop' into sidv/internalFCV3
...
* develop:
Update docs
docs(sequenceDiagram): subvert prettification of arrow types
2023-01-17 14:07:12 +05:30
Sidharth Vinod
3c12e66f73
Merge pull request #3988 from cakemanny/docs/correct-arrow-type-display
...
docs(sequenceDiagram): subvert prettification of arrow types
2023-01-16 15:18:59 +05:30
renovate[bot]
ea3d7bc594
fix(deps): update dependency dagre-d3-es to v7.0.6
2023-01-16 05:18:31 +00:00
Sidharth Vinod
1c8c69f8db
Merge branch 'sidv/properlyWaitTests' into sidv/internalFCV3
...
* sidv/properlyWaitTests:
feat: Wait for rendering to finish before taking image snapshots
Update docs
chore(deps): update all non-major dependencies
Fix: Too many `primaryBorderColor`
2023-01-16 02:11:59 +05:30
Jon Ruskin
b93ce24c3d
handle string and number font size configurations
2023-01-14 14:05:05 -07:00
Daniel Golding
0a4a3bda16
docs(sequenceDiagram): subvert prettification of arrow types
...
The rendering of the arrows becomes prettified using some sort of font library on mermaid.js.org .
Quote in backticks to indicate these are code.
2023-01-13 17:05:53 +01:00
Howard He
e44e1210e2
Fix: Too many `primaryBorderColor`
...
Only keep one `primaryBorderColor` field in Theme Variables part.
before:
![before](https://s2.loli.net/2023/01/13/I657QWjsAlVokfE.png )
after:
![after](https://s2.loli.net/2023/01/13/ZQ7PSfcdIKBtGsm.png )
2023-01-13 17:13:56 +08:00
Sidharth Vinod
05d1fc44e8
Merge branch 'develop' into sidv/internalFCV3
...
* develop:
test(sequenceDiagram): mock more d3 curve* types
test(docs): fix test failure due to bad merge
chore(dev-deps): update vitest to `^0.27.1`
2023-01-13 10:23:59 +05:30
Alois Klink
164b9bc2cb
test(sequenceDiagram): mock more d3 curve* types
...
vitest is throwing an error, since these types are used in
packages/mermaid/src/utils.ts, but are not being mocked.
I've added all the curve types I needed to make Vitest happy.
At some point, we may need to improve these mocks, since in d3,
they have the type CurveFactory, not string.
2023-01-13 00:27:48 +00:00
Alois Klink
16540f3005
test(docs): fix test failure due to bad merge
...
Fixes a semantic merge conflict due to the PRs:
- https://github.com/mermaid-js/mermaid/pull/3954
Changed `docs.mts` to use a remark object created by `remark()`
- https://github.com/mermaid-js/mermaid/pull/3946
Added test code that mocked the frozen remark object
(e.g. `remark` not `remark()`).
To fix this issue, we can mock `remark()` so that it always returns
the same remark object, which can then be used the `docs.mts` script,
as well as spied on in the `docs.spec.ts` test file.
Reported-by: Sidharth Vinod <sidharthv96@gmail.com>
2023-01-13 00:17:17 +00:00
Sidharth Vinod
242a508d50
feat: Flowchart-elk integration
2023-01-12 18:26:08 +05:30
Sidharth Vinod
9acd562b9e
Merge pull request #3954 from aloisklink/build/support-GFM-in-markdown-documentation
...
Support GitHub Flavored Markdown in markdown documentation
2023-01-12 12:47:07 +05:30
Sidharth Vinod
3238ee4c2e
Merge pull request #3972 from atmikeguo/develop
...
Fix nonstandard syntax
2023-01-12 12:44:03 +05:30
oleveau
7b5bebd9c4
Sanitize text of the box
2023-01-11 22:10:41 +01:00
Ashish Jain
b67c023b0a
Merge pull request #3938 from mermaid-js/layout-v3-continued
...
Layout v3 continued
2023-01-11 20:01:24 +01:00
Knut Sveidqvist
e28a766e7d
Cleanup, updating the module name and description for flowchart in package.json
2023-01-11 19:56:04 +01:00
Knut Sveidqvist
3f7f04e02f
Adjusted as per @ashishjain0512 review comments
2023-01-11 19:40:25 +01:00
ashishj
68609fd8d0
Merge develop in timeline branch
2023-01-11 18:13:26 +01:00
Knut Sveidqvist
ce6f62e24e
Merge pull request #3946 from weedySeaDragon/chore/3922_doc-diagram-only
...
(chore) Docs: add tag to produce only a diagram, not code example
2023-01-11 18:04:41 +01:00
Knut Sveidqvist
094b97de12
Merge branch 'develop' into layout-v3-continued
2023-01-11 18:03:09 +01:00
Knut Sveidqvist
0e3dadc53c
Updated as per the suggestions from @weedySeaDragon
2023-01-11 17:58:05 +01:00
Knut Sveidqvist
1fca5131c3
Merge pull request #3947 from nekikara/bug/3865_c4_context_border_color
...
Bug/3865 C4Context: $borderColor has no effect
2023-01-11 17:56:00 +01:00
renovate[bot]
a56d0bc36b
fix(deps): update dependency dompurify to v2.4.3
2023-01-09 02:52:02 +00:00
Chidozie Nnachor
568a3329e1
docs: update sequenceDiagram.md to include line break ( #3960 )
...
Included an example for adding a line break to notes. It seems like an issue irking a lot of (new) users
Co-authored-by: Alois Klink <alois@aloisklink.com>
Co-authored-by: Chidozie Nnachor <Chidozie.Nnachor@keylane.com>
2023-01-07 23:39:36 +00:00
atmikeguo
1968d1bb28
Fix nonstandard syntax
2023-01-07 20:05:57 +08:00
Olivier Leveau
117f0ab6da
Fix test / Add Tests
2023-01-06 13:38:03 +01:00
Olivier Leveau
64a935515c
Better color detection + fix win32 path handling
2023-01-06 12:47:09 +01:00
Olivier Leveau
e6befbaa3f
Merge branch 'develop' into feature/AddBoxForSeqDiagrams
2023-01-06 11:06:00 +01:00
Olivier Leveau
e659601e03
Add Box support in Sequence Diagrams
2023-01-05 15:40:40 +01:00
Guilherme Gonzaga
10cb3e26d5
docs: Remove duplicate in ER-diagram documentation
2023-01-03 14:49:20 -04:00
Alois Klink
ef51111b86
build(docs): support GFM in markdown docs
...
Support using GFM in markdown documentation.
GitHub has some custom features in their Markdown documentation.
For example, they support using tables, footnotes, and task lists.
Vitepress supports tables too.
However, remark sometimes throws an error when parsing tables,
so we should use `remark-gfm` to handle them.
2023-01-01 21:28:03 +00:00
Ashley Engelund (weedySeaDragon @ github)
36c0a30c50
Merge remote-tracking branch 'MERMAID/develop' into chore/3922_doc-diagram-only
2022-12-28 12:10:20 -08:00
nekikara
f233ce1fed
add double quote
2022-12-27 20:43:33 +01:00
nekikara
d13c1bce47
fix the way to set stroke and stroke-width properties
2022-12-27 19:49:18 +01:00
Sidharth Vinod
06c357916e
Merge pull request #3943 from nekikara/bug/3876_fix_typo_in_c4_svg-draw
...
fix typos accessing techn property in drawC4Shape function
2022-12-27 10:33:09 +05:30
Ashley Engelund (weedySeaDragon @ github)
78443861a6
test/spec for some of docs.mts
2022-12-26 13:13:47 -08:00
Ashley Engelund (weedySeaDragon @ github)
34aef1a6f5
refactor: transformBlocks(); + MERMAID_DIAGRAM_ONLY behavior; comments, constants
2022-12-26 13:13:02 -08:00
steph
7d0cec0a49
add margin to left and right side of team cards
2022-12-26 12:48:36 -08:00
steph
d8c3f8fc16
updates to the homepage
2022-12-26 12:04:58 -08:00
nekikara
d8aa44f0c5
fix typos accessing techn property in drawC4Shape function
2022-12-24 20:25:59 +01:00
Sidharth Vinod
2c88c6b526
Merge pull request #3921 from tomperr/fix/3795_class_tilde_visibility
...
fix(generic): fix generic type detection
2022-12-24 00:33:39 +05:30
Sidharth Vinod
8ed1ad5a8e
Merge pull request #3907 from huynhicode/docs/formatting
...
docs: fix text overflow
2022-12-24 00:30:31 +05:30
Alois Klink
a58b41a38e
Merge branch 'develop' into fix/3706_support-indented-yaml-only-in-html
2022-12-22 19:24:33 +00:00
Tom PERRILLAT-COLLOMB
df42f96b5a
docs(classDiagram): add nested generic type example in docs
2022-12-22 11:17:44 +01:00
Knut Sveidqvist
c535b10534
Adding info in the docs for enabling elk flowcharts.
2022-12-22 11:00:30 +01:00
Knut Sveidqvist
913ba34386
#815 Adding possibility to configure elk as renderer for flowcharts
2022-12-22 10:33:41 +01:00
steph
dbfb29de27
Merge branch 'develop' into docs/formatting
2022-12-21 14:43:56 -08:00
steph
22b66193dc
update outdate format info formatting
2022-12-21 11:24:48 -08:00
Omer Rosenbaum
895c16a793
Add Swimm to the list of integrations
2022-12-21 10:56:09 +02:00
Steph
b220718b96
Update packages/mermaid/src/docs/syntax/gantt.md
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2022-12-20 09:37:42 -08:00
Steph
0f337d654f
Update packages/mermaid/src/docs/syntax/gantt.md
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2022-12-20 09:37:26 -08:00
Sidharth Vinod
cdba2b4ac8
Update CDN links
2022-12-20 10:56:39 +05:30
steph
469bdcef2f
add support for vitepress blocks
2022-12-19 21:14:39 -08:00
Sidharth Vinod
2baa36fd1f
Merge pull request #3930 from Frank-Mayer/patch-1
...
fixed Composition arrow
2022-12-20 10:40:54 +05:30
steph
fca58f5942
remove text and add social icons
2022-12-19 17:45:25 -08:00