Mason Malone
1b201bf462
Fix TS errors
2022-11-19 13:01:21 -08:00
Mason Malone
3316aa5f4f
Add interface for DiagramDb and other minor changes
2022-11-19 12:52:49 -08:00
Mason Malone
a11ab3d5ea
Disallow leading whitespace before delimiter
2022-11-19 12:52:49 -08:00
Sidharth Vinod
2e028ce36d
chore: Unify registerLazyLoadedDiagrams
2022-11-20 00:38:35 +05:30
Doug Finke
2a0f6d4cc9
Integrations added - Visual Studio Code [Polyglot Interactive Notebooks]
2022-11-19 11:20:13 -05:00
endolith
e3b9dbdf13
Fix typos
2022-11-19 09:33:01 -05:00
Mason Malone
70f024735b
Add title support using YAML frontmatter
2022-11-18 20:42:54 -08:00
Alois Klink
fd76e0e270
chore: replace dagre/dagre-d3 with dagre-d3-es
...
Replace the dagre and dagre-d3 libraries with dagre-d3-es.
Both dagre and dagre-d3 are deprecated and unmaintained,
and haven't been updated for more than 3 years.
Since dagre-d3 still requires an old version of d3, this causes
a bunch of security warnings,
e.g. https://github.com/advisories/GHSA-36jr-mh4h-2g58
The [dagre-d3-es](https://github.com/tbo47/dagre-es ) package is a fork
that contains support for `"d3": "^7.6.1"`. Also, it's ESM, so we will
hopefully get smaller bundle sizes too. The only issue is that this
fork isn't very well used (only has 3000 weekly downloads),
compared to `dagre-d3`'s 250,000 weekly downloads.
(although to be fair, a large proportion of dagre-d3's downloads
probably come from mermaid)
Since it's is a less popular package,
**I've pinned `dagre-d3-es` to `"7.0.2"` instead of `"^7.0.2"`**.
This does mean if there is a bug in `dagre-d3-es`, we will have to
manually bump it ourselves, but it also means we won't accidentally
be sending a buggy version of `dagre-d3-es` out to users in cases
something changes (it might be worth disabling renovate for this
if we're feeling paranoid!)
2022-11-18 18:33:05 +00:00
Alois Klink
537a627b75
test(e2e): test for mindmap before snapshot
...
Sometimes, the mindmap e2e tests take a snapshot when the mindmap
SVG has been created, but hasn't yet been fully rendered.
This adds a quick check for a mindmap section root, so that the
snapshot is only taken after the mindmap diagram has started
rendering.
I was also running into JSDoc ESLint warnings, so I moved the file
into a TypeScript file to fix those warnings.
2022-11-18 18:31:14 +00:00
Alois Klink
57edcfe87d
test(e2e): remove unused mermaid.spec.js file
...
All tests have been moved to `mindmap.spec.js` in a previous commit.
2022-11-18 18:07:40 +00:00
Alois Klink
b9dcdb00a5
test(e2e): move mindmap tests to mindmap.spec.js
...
Currently, we have mindmap tests in the
cypress/integration/rendering/mermaid.spec.js which is a bit
odd. They should probably all be in the mindmap.spec.js file.
2022-11-18 17:58:17 +00:00
Sidharth Vinod
09ed41b7d2
Merge pull request #3807 from aloisklink/docs/update-code-highlighting-theme
...
Use `github-dark` to highlight fence blocks in vitepress docs
2022-11-18 23:09:59 +05:30
Alois Klink
6e234f135d
docs: create some basic mermaid mindmap demos
2022-11-18 17:32:23 +00:00
Sidharth Vinod
7306b5ac45
feat: Add size inspection plugin
2022-11-18 17:52:55 +05:30
Sidharth Vinod
0854bab124
fix: Remove diagram dependency from mermaidAPI
2022-11-18 16:51:50 +05:30
Sidharth Vinod
fa51121f29
chore(split): Error
2022-11-18 16:30:54 +05:30
Sidharth Vinod
0b4c6f6477
chore(split): Journey
2022-11-18 16:22:38 +05:30
Sidharth Vinod
e5768454f1
chore(split): State Diagram
2022-11-18 16:19:38 +05:30
Sidharth Vinod
89b5eb56f2
chore(split): Orchestration
2022-11-18 16:11:19 +05:30
Sidharth Vinod
616c969a03
chore(split): Flow type
2022-11-18 16:11:03 +05:30
Sidharth Vinod
4fd826ac8c
chore(split): Sequence
2022-11-18 16:10:51 +05:30
Sidharth Vinod
6d5a6ad0c8
chore(split): Requirement
2022-11-18 16:10:42 +05:30
Sidharth Vinod
e0cd76e6fd
chore(split): Pie
2022-11-18 16:10:25 +05:30
Sidharth Vinod
f03364f328
chore(split): Info
2022-11-18 16:10:15 +05:30
Sidharth Vinod
25bc381361
chore(split): gitGraph
2022-11-18 16:10:06 +05:30
Sidharth Vinod
38e5c3a81e
chore(split): Gantt
2022-11-18 16:09:56 +05:30
Sidharth Vinod
43aa831dd2
chore(split): ER
2022-11-18 16:09:45 +05:30
Sidharth Vinod
4492c5ed4e
chore(split): classDiagram
2022-11-18 16:09:36 +05:30
Sidharth Vinod
5dec9eb2f5
fix: C4 type
2022-11-18 16:09:10 +05:30
pbrolin47
e2a0c434cc
Merge pull request #3810 from mermaid-js/sidv/doc/mindmap
...
Mindmap integration docs
2022-11-18 11:01:38 +01:00
pbrolin47
804a23595d
Merge pull request #3797 from mermaid-js/sidv/redirectOldDocs
...
feat: Redirect old documentation links.
2022-11-18 10:46:34 +01:00
Knut Sveidqvist
8655db371e
Merge pull request #3762 from avijit1258/bug/3728_comments_not_ignored_composite_states
...
comments in states are skipped now
2022-11-18 10:45:01 +01:00
Knut Sveidqvist
9b8d5c1b3b
Merge pull request #3641 from ishuen/bug/3637_extra_arrow
...
Remove extra arrow and adjust cross position
2022-11-18 10:38:57 +01:00
Sidharth Vinod
02903be558
feat: Split C4 & Flow
2022-11-18 14:28:28 +05:30
Sidharth Vinod
e9f8ba6915
doc: Add mindmap integration docs
2022-11-18 11:28:29 +05:30
Ashley Engelund (weedySeaDragon @ github)
67a015c71d
re-re-fixed the contributing doc
2022-11-17 16:58:18 -08:00
Ashley Engelund (weedySeaDragon @ github)
69526402e2
format .md files
2022-11-17 16:51:23 -08:00
Ashley Engelund (weedySeaDragon @ github)
b51759d36e
set describeby to accessible description element id
2022-11-17 15:50:52 -08:00
Ashley Engelund (weedySeaDragon @ github)
68b1805c40
(minor) fix typo, whitespace formatting
2022-11-17 15:49:37 -08:00
Ashley Engelund (weedySeaDragon @ github)
9cc862b951
doc: adding diagrams: revise a11y section
2022-11-17 15:48:17 -08:00
Ashley Engelund (weedySeaDragon @ github)
4fb4aa417c
doc: revise A11y: fix multi-line ex, +describedby, alpha sort examples
2022-11-17 15:47:22 -08:00
Ashley Engelund (weedySeaDragon @ github)
0adc6a6112
remove a11y from individual diagrams; now happens in mermaidAPI render
2022-11-17 12:28:11 -08:00
Ashley Engelund (weedySeaDragon @ github)
29efc116f3
put a11y into mermaidAPI render; add render spec (mock diagram renderers etc)
2022-11-17 12:27:17 -08:00
Ashley Engelund (weedySeaDragon @ github)
f62c5d9698
add diagram renderer mocks
2022-11-17 12:25:14 -08:00
Ashley Engelund (weedySeaDragon @ github)
1ad537bc4d
d3 mock: use MockedD3; remove sequence specific mock code
2022-11-17 12:24:58 -08:00
Ashley Engelund (weedySeaDragon @ github)
1fc02940ae
move mocks specific to only seq spec files out of global d3 mock
2022-11-17 12:24:16 -08:00
Ashley Engelund (weedySeaDragon @ github)
8a3c4f64b2
MockedD3: node() return Element; add selectAll()
2022-11-17 12:23:01 -08:00
Ashley Engelund (weedySeaDragon @ github)
4d7496b8dd
add error checking (empty diagramType, title, desc) to a11y methods
2022-11-17 12:21:45 -08:00
Ashley Engelund (weedySeaDragon @ github)
03a11e103e
(minor) fix typo
2022-11-17 12:19:31 -08:00
Ashley Engelund (weedySeaDragon @ github)
c3313050ce
Merge remote-tracking branch 'MERMAID/develop' into feat/3626-aria-roledescription-for-svg
2022-11-17 11:17:18 -08:00