mermaid 8.6.4 → 8.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -40
- package/dist/index.html +13 -11
- package/dist/mermaid.core.js +7044 -4439
- package/dist/mermaid.core.js.map +1 -1
- package/dist/mermaid.js +43643 -61885
- package/dist/mermaid.js.map +1 -1
- package/dist/mermaid.min.js +5 -22
- package/dist/mermaid.min.js.map +1 -1
- package/package.json +12 -7
- package/dist/info.html +0 -41
- package/dist/xssi.html +0 -202
package/README.md
CHANGED
|
@@ -1,54 +1,37 @@
|
|
|
1
|
-
<!-- <Remove this in the future> -->
|
|
2
|
-
| :mega: :mega: :mega: |
|
|
3
|
-
| :----: |
|
|
4
|
-
| * If you're upgrading from a version __< v8.2.0__, there are [non-backward-compatible changes](http://mermaid-js.github.io/mermaid/#/usage?id=to-enable-click-event-and-tags-in-nodes) related to security issues. Default behaviour of the library might have changed for your implementation.|
|
|
5
|
-
<!-- </Remove this in the future> -->
|
|
6
|
-
|
|
7
1
|
# mermaid [](https://travis-ci.org/mermaid-js/mermaid) [](https://www.npmjs.com/package/mermaid) [](https://coveralls.io/github/mermaid-js/mermaid?branch=master) [](https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE) [](https://percy.io/Mermaid/mermaid)
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Check out the list of [Integrations and Usages of Mermaid](https://github.com/mermaid-js/mermaid/blob/develop/docs/integrations.md)
|
|
13
|
-
|
|
14
|
-
For more information and help in getting started, please view our [documentation](http://mermaid-js.github.io/mermaid/) and start simplifying yours. Alternatively, you can also play with our [live editor](https://mermaidjs.github.io/mermaid-live-editor/).
|
|
15
|
-
<!-- </Main description> -->
|
|
16
|
-
|
|
17
|
-
:trophy: **Mermaid was nominated and won the [JS Open Source Awards (2019)](https://osawards.com/javascript/#nominees) in the category "The most exciting use of technology"!!! Thanks to all involved, people committing pull requests, people answering questions and special thanks to Tyler Long who is helping me maintain the project.**
|
|
3
|
+

|
|
4
|
+
**Edit this Page** [](https://github.com/mermaid-js/mermaid/blob/develop/docs/README.md)
|
|
18
5
|
|
|
19
|
-
|
|
6
|
+
:trophy: **Mermaid was nominated and won the [JS Open Source Awards (2019)](https://osawards.com/javascript/2019) in the category "The most exciting use of technology"!!!**
|
|
20
7
|
|
|
21
|
-
|
|
8
|
+
**Thanks to all involved, people committing pull requests, people answering questions and special thanks to Tyler Long who is helping me maintain the project 🙏**
|
|
22
9
|
|
|
23
|
-
##
|
|
10
|
+
## About
|
|
24
11
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-

|
|
28
|
-
|
|
29
|
-
## Special note regarding version 8.2
|
|
30
|
-
|
|
31
|
-
In version 8.2 a security improvement was introduced. A securityLevel configuration was introduced which sets the level of trust to be used on the parsed diagrams.
|
|
32
|
-
|
|
33
|
-
- **true**: (default) tags in text are encoded, click functionality is disabled
|
|
34
|
-
- false: tags in text are allowed, click functionality is enabled
|
|
12
|
+
<!-- <Main description> -->
|
|
13
|
+
Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. The main purpose of Mermaid is to help documentation catch up with development.
|
|
35
14
|
|
|
36
|
-
|
|
15
|
+
> Doc-Rot is a Catch-22 that Mermaid helps to solve.
|
|
37
16
|
|
|
38
|
-
|
|
17
|
+
Diagramming and documentation costs precious developer time and gets outdated quickly.
|
|
18
|
+
But not having diagrams or docs ruins productivity and hurts organizational learning. <br/>
|
|
19
|
+
Mermaid addresses this problem by cutting the time, effort and tooling that is required to create modifiable diagrams and charts, for smarter and more reusable content.
|
|
20
|
+
The text definitions for Mermaid diagrams allows for it to be updated easily, it can also be made part of production scripts (and other pieces of code).
|
|
21
|
+
So less time needs be spent on documenting, as a separate and laborious task. <br/>
|
|
22
|
+
Even non-programmers can create diagrams through the [Mermaid Live Editor](https://github.com/mermaidjs/mermaid-live-editor). <br/>
|
|
23
|
+
[Tutorials](./docs/getting-started/Tutorials.md) has video tutorials.
|
|
24
|
+
Use Mermaid with your favorite applications, check out the list of [Integrations and Usages of Mermaid](./docs/overview/integrations.md).
|
|
39
25
|
|
|
40
|
-
|
|
26
|
+
For a more detailed introduction to Mermaid and some of its more basic uses, look to the [Beginner's Guide](./docs/overview/n00b-overview.md) and [Usage](./docs/getting-started/usage.md).
|
|
41
27
|
|
|
42
|
-
|
|
43
|
-
mermaidAPI.initialize({
|
|
44
|
-
securityLevel: 'loose'
|
|
45
|
-
});
|
|
46
|
-
```
|
|
28
|
+
🌐 [CDN](https://unpkg.com/mermaid/) | 📖 [Documentation](https://mermaidjs.github.io) | 🙌 [Contribution](https://github.com/mermaid-js/mermaid/blob/develop/CONTRIBUTING.md) | 📜 [Changelog](./docs/tutorials-and-community/CHANGELOG.md)
|
|
47
29
|
|
|
48
|
-
For more information and help in getting started, please view our [documentation](http://mermaid-js.github.io/mermaid/) and start simplifying yours. Play with our [live editor](https://mermaidjs.github.io/mermaid-live-editor/) or jump straight to the [installation and usage](http://mermaid-js.github.io/mermaid/#/usage).
|
|
49
30
|
<!-- </Main description> -->
|
|
50
31
|
|
|
51
|
-
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
__The following are some examples of the diagrams, charts and graphs that can be made using Mermaid and the Markdown-inspired text specific to it. Click here jump into the [text syntax](https://mermaid-js.github.io/mermaid/#/n00b-syntaxReference).__
|
|
52
35
|
<table>
|
|
53
36
|
<!-- <Flowchart> -->
|
|
54
37
|
<tr><td colspan=2 align="center">
|
|
@@ -218,13 +201,13 @@ pie
|
|
|
218
201
|
- [Live Editor](https://github.com/mermaid-js/mermaid-live-editor)
|
|
219
202
|
- [HTTP Server](https://github.com/TomWright/mermaid-server)
|
|
220
203
|
|
|
221
|
-
|
|
204
|
+
## Contributors [](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Help+wanted%21%22) [](https://github.com/mermaid-js/mermaid/graphs/contributors) [](https://github.com/mermaid-js/mermaid/graphs/contributors)
|
|
222
205
|
|
|
223
206
|
Mermaid is a growing community and is always accepting new contributors. There's a lot of different ways to help out and we're always looking for extra hands! Look at [this issue](https://github.com/mermaid-js/mermaid/issues/866) if you want to know where to start helping out.
|
|
224
207
|
|
|
225
208
|
Detailed information about how to contribute can be found in the [contribution guide](CONTRIBUTING.md)
|
|
226
209
|
|
|
227
|
-
|
|
210
|
+
## Appreciation
|
|
228
211
|
A quick note from Knut Sveidqvist:
|
|
229
212
|
>*Many thanks to the [d3](http://d3js.org/) and [dagre-d3](https://github.com/cpettitt/dagre-d3) projects for providing the graphical layout and drawing libraries!*
|
|
230
213
|
>*Thanks also to the [js-sequence-diagram](http://bramp.github.io/js-sequence-diagrams) project for usage of the grammar for the sequence diagrams. Thanks to Jessica Peter for inspiration and starting point for gantt rendering.*
|
package/dist/index.html
CHANGED
|
@@ -393,17 +393,19 @@ graph TB
|
|
|
393
393
|
<div class="mermaid">
|
|
394
394
|
graph TB
|
|
395
395
|
TITLE["Link Click Events<br>(click the nodes below)"]
|
|
396
|
-
A[link test]
|
|
397
|
-
B[
|
|
398
|
-
C[
|
|
399
|
-
D[
|
|
400
|
-
E[
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
click
|
|
404
|
-
click
|
|
405
|
-
click
|
|
406
|
-
click
|
|
396
|
+
A["link test (open in same tab)"]
|
|
397
|
+
B["link test (open in new tab)"]
|
|
398
|
+
C[anchor test]
|
|
399
|
+
D[mailto test]
|
|
400
|
+
E[other protocol test]
|
|
401
|
+
F[script test]
|
|
402
|
+
TITLE --> A & B & C & D & E & F
|
|
403
|
+
click A "https://mermaid-js.github.io/mermaid/#/" "link test (open in same tab)"
|
|
404
|
+
click B "https://mermaid-js.github.io/mermaid/#/" "link test (open in new tab)" _blank
|
|
405
|
+
click C "#link-clicked"
|
|
406
|
+
click D "mailto:user@user.user" "mailto test"
|
|
407
|
+
click E "notes://do-your-thing/id" "other protocol test"
|
|
408
|
+
click F "javascript:alert('test')" "script test"
|
|
407
409
|
</div>
|
|
408
410
|
<hr/>
|
|
409
411
|
<div class="mermaid">
|