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 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 [![Build Status](https://travis-ci.org/mermaid-js/mermaid.svg?branch=master)](https://travis-ci.org/mermaid-js/mermaid) [![NPM](https://img.shields.io/npm/v/mermaid)](https://www.npmjs.com/package/mermaid) [![Coverage Status](https://coveralls.io/repos/github/mermaid-js/mermaid/badge.svg?branch=master)](https://coveralls.io/github/mermaid-js/mermaid?branch=master) [![Join our Slack!](https://img.shields.io/static/v1?message=join%20chat&color=9cf&logo=slack&label=slack)](https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE) [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/Mermaid/mermaid)
8
2
 
9
- <!-- <Main description> -->
10
- __mermaid is a Javascript based diagramming and charting tool. It generates diagrams flowcharts and more, using markdown-inspired text for ease and speed.__
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
+ ![banner](./img/header.png)
4
+ **Edit this Page** [![N|Solid](./docs/assets/img/GitHub-Mark-32px.png)](https://github.com/mermaid-js/mermaid/blob/develop/docs/README.md)
18
5
 
19
- ## New diagram
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
- This version comes with a new diagram type, user journey diagrams.
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
- ## New diagrams in 8.4
10
+ ## About
24
11
 
25
- With version 8.4 class diagrams have got some new features, bug fixes and documentation. Another new feature in 8.4 is the new diagram type, state diagrams.
26
-
27
- ![Image show the two new diagram types](./docs/img/new-diagrams.png)
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
- Closed issues:
15
+ > Doc-Rot is a Catch-22 that Mermaid helps to solve.
37
16
 
38
- ⚠️ **Note** : This changes the default behaviour of mermaid so that after upgrade to 8.2, if the securityLevel is not configured, tags in flowcharts are encoded as tags and clicking is prohibited.
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
- If your application is taking resposibility for the diagram source security you can set the securityLevel accordingly. By doing this clicks and tags are again allowed.
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
- ```javascript
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
- __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).__
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
- # Contributors [![Help wanted](https://img.shields.io/github/labels/mermaid-js/mermaid/Help%20wanted!)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Help+wanted%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors)
204
+ ## Contributors [![Help wanted](https://img.shields.io/github/labels/mermaid-js/mermaid/Help%20wanted!)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Help+wanted%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](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
- # Appreciation
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[anchor test]
398
- C[mailto test]
399
- D[other protocol test]
400
- E[script test]
401
- TITLE --> A & B & C & D & E
402
- click A "https://mermaid-js.github.io/mermaid/#/" "link test"
403
- click B "#link-clicked" "anchor test"
404
- click C "mailto:user@user.user" "mailto test"
405
- click D "notes://do-your-thing/id" "other protocol test"
406
- click E "javascript:alert('test')" "script test"
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">