{"_id":"@aomao/plugin-mermaid","_rev":"2-6f042633cf954404b0a0c755f2965d25","name":"@aomao/plugin-mermaid","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@aomao/plugin-mermaid","version":"1.0.0","description":"mermaid","keywords":["mermaid","editor"],"main":"dist/index.js","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"18576648902@163.com"},"license":"MIT","homepage":"https://github.com/yanmao-cc/am-editor#readme","repository":{"type":"git","url":"git+https://github.com/yanmao-cc/am-editor.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"bugs":{"url":"https://github.com/yanmao-cc/am-editor/issues"},"dependencies":{"@babel/runtime":"^7.13.10","markdown-it":"^13.0.1","mermaid":"^9.1.7","murmurhash-js":"^1.0.0"},"devDependencies":{"@types/markdown-it":"^12.2.3","@types/mermaid":"^9.1.0","@types/murmurhash-js":"^1.0.3"},"peerDependencies":{"@aomao/engine":">=2.9"},"gitHead":"83ae4885f060982d971be459e30b35a7f1860d0f","_id":"@aomao/plugin-mermaid@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"lerna/3.22.1/node@v16.16.0+x64 (win32)","dist":{"integrity":"sha512-pXykk3MKKvBmD6oP0NGKL4FyPNoDxVmi1U6/jx6q/Ifx037XKyTS2tNij1OaXOnRkjQFHUucsQzNDf30u+V0oA==","shasum":"0438e25963623583173d680cf0990ef066aacbbc","tarball":"https://registry.npmjs.org/@aomao/plugin-mermaid/-/plugin-mermaid-1.0.0.tgz","fileCount":14,"unpackedSize":48198,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwpwqGKalpC0Ur7zzgQsITPUbMScpqUIj1ruW7iTxFLwIhAP5gWW0MAoVx7a4/Jehbzi8g7DgxNxv10UlubZcicZy8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQEKpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXMA/+MKLZO9Ryc8JsAEy3ilqDk/jeaUsODBhddbR+zToiMcTHNQbd\r\ngZrnaDCxeG9Kvwx2kggPDdhfMf4vAHAKho5HqziE6dlREIzFyHD1jCaVY9Bi\r\nqQ6vdC2w5j3rz8QdaPY9QBVBNFRHx0kqaepicBPKzAcUgyG8D/uYXxPUfS0Q\r\nJSu0EwMoYmOQSjvonng/O/DR9QcmM+ttPc1V4Qfm0dWrSnP/8/DACF9ELE/j\r\niaddbU2FmyzFadMcdRuIFmaQNUewCId1SDt+cs9YozGtfJXL7NptZLQAV4g5\r\nk/JKh5bxwg8l01J7EvWGjTRKfgeYvEFvR4VNDhtKFns/5Qs+pcOiJ0viva2R\r\nzmN4oop56mF1QjCNceTNkKyhoU+I8JcPzrlv515rT+nMHKYC8mhgbf2Fvg1D\r\nD1MlBnjVEEhgGx//CiY7MTSi+GwpqEEWgQ5kOSPasioxTLCPl9LL4a+u3g/z\r\nBso/Vstlz9zUMWKDwCiDiZw9KAbEvJbRi3C0vA4r49A1WBbnaZ7NfPqmLHyD\r\nyjxh4Vb0DW4ZHTHRsdkHUnJk/g4s9FrNkLYxDnovEWyRb/LV12Uw+ST7uTfy\r\nr9wC8uH0kSPWyZcNIaTM7cIHIg+SYeU8bohTH8Tov7lptr8a9bTPZ89gjb/n\r\ne72JU6lT0PJxwkkX0gFRD7JP9EwpFIzyyzI=\r\n=eD+k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aomao","email":"me@aomao.com"},"directories":{},"maintainers":[{"name":"aomao","email":"me@aomao.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-mermaid_1.0.0_1665155752839_0.9503744249341253"},"_hasShrinkwrap":false},"1.1.0":{"name":"@aomao/plugin-mermaid","version":"1.1.0","description":"mermaid","keywords":["mermaid","editor"],"main":"dist/index.js","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"18576648902@163.com"},"license":"MIT","homepage":"https://github.com/big-camel/am-editor#readme","repository":{"type":"git","url":"git+https://github.com/big-camel/am-editor.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"bugs":{"url":"https://github.com/big-camel/am-editor/issues"},"dependencies":{"@babel/runtime":"^7.13.10","markdown-it":"^13.0.1","mermaid":"^9.1.7","murmurhash-js":"^1.0.0"},"devDependencies":{"@types/markdown-it":"^12.2.3","@types/mermaid":"^9.1.0","@types/murmurhash-js":"^1.0.3"},"peerDependencies":{"@aomao/engine":">=2.9"},"gitHead":"de7d34813cb5a37233cb68d7ad95a7f9dbc95d33","_id":"@aomao/plugin-mermaid@1.1.0","_nodeVersion":"16.16.0","_npmVersion":"lerna/3.22.1/node@v16.16.0+x64 (win32)","dist":{"integrity":"sha512-uezipt6Lk3IHkXGHQFTCSz5YDHWIhS1kgvfjLOKYgt1Pur+oJG0yhM1gikvfiZMM43sQBNv3mv/861EdhDk95A==","shasum":"60a2b48a62ae6769454be3536ec76a3f50a5249d","tarball":"https://registry.npmjs.org/@aomao/plugin-mermaid/-/plugin-mermaid-1.1.0.tgz","fileCount":14,"unpackedSize":48198,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEBTFsENSRWG3L99C2wjj9Ee6GNSz7qpHMzxA1bNqm4pAiEA6lcpkeHl8Oxfff42Obtm7HPQmbBLT+Uh03OKBegjx2w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFJe8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZbhAAl/XF7Op6epixFl9zA/m59hw3L8SYeRNhTUytffMIDM0HtUxE\r\njT02XJzT7S4Q9hBEUE1cgx4kYhGv+CydjxFt/7BSroCnWE9YBYpSWSGMqL9r\r\nj0W/zA3fsx0c7NBE1laj/+vyHi2BNfvUueS2Gn7t+Tujr7Pf46xOaRGx06FH\r\nzKQ9Y00yjFo4T/Z2ueotZHd5UlMU9+3P1oT28qdJF9h+k6jhUG1B6+0XkQWT\r\nQBRsZ02ULOifp2cZ5ENHo0wafGAJp16lW7lUfTbyMlq9/hrMMXwPwJK4/dzk\r\nY5kGKnjSzBT15xpE/8lwyNEy4QVQ/PQHd5hmyU60aYJyw/dLHwbtk4WtRD4o\r\nGh+EU+thOzgsnCPnjRfl0qxmWdXhdjZsXnYWdqtE96Gr0tmqHgrF3bBT8/h6\r\nv3g25oSlqLjw19y5Ui8W5PojCWWas2hvsxe1wD4s9pnndb6sJYDL0rqCKIAY\r\nongHQCAIUSRPlQ4nnKqsCuvQYjKq6m03z9XjSf8BGP/HZSvDl0c/nnwPKp09\r\nEKARedNfFtAYXvGUjo3UlZ9HUuQ/fm4D4YdzeiRVHmcDNw3NtRVnK/LzUD6f\r\ngd9cwxGPplCSMXjfDhidm+OmGbUhRqPv/h2eskUH4bQiYGLg/N19GN2s0eb8\r\nsM8kGBcWY5NCAutacd44oh/FnjDtJEV67UE=\r\n=9U02\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aomao","email":"me@aomao.com"},"directories":{},"maintainers":[{"name":"aomao","email":"me@aomao.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-mermaid_1.1.0_1679071164629_0.2675483651289332"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-07T15:15:52.838Z","1.0.0":"2022-10-07T15:15:53.035Z","modified":"2023-03-17T16:39:24.894Z","1.1.0":"2023-03-17T16:39:24.786Z"},"maintainers":[{"name":"aomao","email":"me@aomao.com"}],"description":"mermaid","homepage":"https://github.com/big-camel/am-editor#readme","keywords":["mermaid","editor"],"repository":{"type":"git","url":"git+https://github.com/big-camel/am-editor.git"},"author":{"name":"18576648902@163.com"},"bugs":{"url":"https://github.com/big-camel/am-editor/issues"},"license":"MIT","readme":"# @aomao/plugin-mermaid\n\nmermaid 插件 (支持 markdown 语法生成 mermaid 图表)\n\n## 安装\n\n```bash\n$ yarn add @aomao/plugin-mermaid\n```\n\n添加到引擎\n\n```ts\nimport Engine, { EngineInterface } from '@aomao/engine';\nimport Mermaid , { MermaidComponent } from '@aomao/plugin-mermaid';\n\nnew Engine(...,{ plugins:[Mermaid] , cards:[MermaidComponent]})\n```\n\n## 语法\n\n```mermaid\n\tmermaid 语法（目前支持流程图、时序图、饼图、甘特图、gitGraph、erDiagram、journey、stateDiagram）\n```\n\nps:\n语法参考：\n1、https://mermaid-js.github.io/mermaid-live-editor/edit#pako:eNptjzsOwjAQRK-ybEtyARdBSBSEljbNypmQSP6AYwtFiLtjB-jSjWbfW2lerH0PVtw5ohmPBKdxmuQWxJaK6Ggmjbpp9hc_OkVnGOOp5IpG_yQJoMWnwyb8xbS4gtAICWTxQ8utzmi9Ovnx9LUraldjpbO228ZbGgBDtwCJO67YIliZ-rzkVYSO4wiLjlWOPQZJJnZ55DujkqK_Lk6ziiGh4nTvJf5HsxrEzHh_AOMAWgk\n\n2、https://mermaid-js.github.io/mermaid/#/n00b-syntaxReference\n\n```mermaid\n\tsequenceDiagram\n\t\tparticipant Alice\n\t\tparticipant Bob\n\t\tAlice->>John: Hello John, how are you?\n\t\tloop Healthcheck\n\t\t\tJohn->>John: Fight against hypochondria\n\t\tend\n\t\tNote right of John: Rational thoughts <br/>prevail!\n\t\tJohn-->>Alice: Great!\n\t\tJohn->>Bob: How about you?\n\t\tBob-->>John: Jolly good!\n```\n\n## 命令\n\n```ts\n// 可携带参数，第二个mermaid语法\nengine.command.execute(\n\t'mermaid',\n\t`sequenceDiagram\n\t\tparticipant Alice\n\t\tparticipant Bob\n\t\tAlice->>John: Hello John, how are you?\n\t\tloop Healthcheck\n\t\t\tJohn->>John: Fight against hypochondria\n\t\tend\n\t\tNote right of John: Rational thoughts <br/>prevail!\n\t\tJohn-->>Alice: Great!\n\t\tJohn->>Bob: How about you?\n\t\tBob-->>John: Jolly good!`,\n);\n```\n","readmeFilename":"README.md"}