Compare commits

...
Author SHA1 Message Date
Matthieu MORELandGitHub 88d520c058 Update dependabot.yml 2021-11-28 22:12:24 +01:00
Matthieu MORELandGitHub b46a97c660 define dependabot schedule 2021-11-28 22:09:48 +01:00
Sidharth VinodandGitHub 0a684dcc1d Merge pull request #501 from mermaid-js/develop
update mermaid
2021-11-19 00:06:58 +05:30
Sidharth Vinod b38e6c4435 update mermaid 2021-11-18 23:46:08 +05:30
Sidharth VinodandGitHub 1bb312d0d8 Merge pull request #489 from mermaid-js/develop
Develop
2021-11-14 16:45:49 +05:30
Matthieu MORELandGitHub aee4e0e4f1 Merge branch 'master' into develop 2021-11-12 18:11:17 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>mmorel-35
b5adf8e282 chore(deps): bump monaco-editor from 0.30.0 to 0.30.1 (#495)
* chore(deps): bump monaco-editor from 0.30.0 to 0.30.1

Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.30.0 to 0.30.1.
- [Release notes](https://github.com/microsoft/monaco-editor/releases)
- [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoft/monaco-editor/compare/v0.30.0...v0.30.1)

---
updated-dependencies:
- dependency-name: monaco-editor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update Monaco-editor

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mmorel-35 <mmorel-35@users.noreply.github.com>
2021-11-12 18:07:38 +01:00
Matthieu MORELandGitHub 8327ed004a Rename update-Monaco-editor.yml to update-monaco-editor.yml 2021-11-12 18:01:25 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
f4c5f31269 chore(deps-dev): bump eslint-plugin-tailwindcss from 1.17.0 to 1.17.1 (#500)
Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 1.17.0 to 1.17.1.
- [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases)
- [Commits](https://github.com/francoismassart/eslint-plugin-tailwindcss/compare/v1.17.0...v1.17.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 16:28:04 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9e3281e69e chore(deps-dev): bump cypress-localstorage-commands from 1.6.0 to 1.6.1 (#499)
Bumps [cypress-localstorage-commands](https://github.com/javierbrea/cypress-localstorage-commands) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/javierbrea/cypress-localstorage-commands/releases)
- [Changelog](https://github.com/javierbrea/cypress-localstorage-commands/blob/master/CHANGELOG.md)
- [Commits](https://github.com/javierbrea/cypress-localstorage-commands/compare/v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: cypress-localstorage-commands
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 16:27:38 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
844a5e57fa chore(deps): bump random-word-slugs from 0.1.5 to 0.1.6 (#493)
Bumps [random-word-slugs](https://github.com/nas5w/random-word-slugs) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/nas5w/random-word-slugs/releases)
- [Commits](https://github.com/nas5w/random-word-slugs/compare/v0.1.5...v0.1.6)

---
updated-dependencies:
- dependency-name: random-word-slugs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 15:06:01 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5d4f6c7225 chore(deps): bump daisyui from 1.16.1 to 1.16.2 (#494)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 1.16.1 to 1.16.2.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v1.16.1...v1.16.2)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 15:05:42 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3c589a4601 chore(deps-dev): bump cssnano from 5.0.9 to 5.0.10 (#496)
Bumps [cssnano](https://github.com/cssnano/cssnano) from 5.0.9 to 5.0.10.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano@5.0.9...cssnano@5.0.10)

---
updated-dependencies:
- dependency-name: cssnano
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 15:05:21 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8b929d1dc4 chore(deps-dev): bump @sveltejs/kit (#497)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.0.0-next.194 to 1.0.0-next.196.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 15:04:49 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Matthieu MORELYash Singh
a053659aa1 chore(deps): bump monaco-editor from 0.29.1 to 0.30.0 (#486)
* chore(deps): bump monaco-editor from 0.29.1 to 0.30.0

Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.29.1 to 0.30.0.
- [Release notes](https://github.com/microsoft/monaco-editor/releases)
- [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoft/monaco-editor/compare/v0.29.1...v0.30.0)

---
updated-dependencies:
- dependency-name: monaco-editor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
2021-11-07 22:20:01 +01:00
Sidharth VinodandGitHub 593d95c50d Merge pull request #487 from mmorel-35/develop
Update Browserlist and add dedicated workflow
2021-11-06 13:33:09 +05:30
Matthieu MORELandGitHub 8cdcb2f593 Update update-browserlist.yml 2021-11-05 15:11:00 +01:00
Matthieu MORELandGitHub f302052de7 Update update-browserlist.yml 2021-11-05 15:07:17 +01:00
mmorel-35 236499666a Update Browserslist 2021-11-05 14:00:07 +00:00
Matthieu MORELandGitHub f024d844e9 Create update-browserlist.yml 2021-11-05 14:57:31 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0fc3984eac chore(deps-dev): bump @sveltejs/kit (#485)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.0.0-next.192 to 1.0.0-next.194.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-05 14:22:00 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
730bbcc504 chore(deps): bump daisyui from 1.16.0 to 1.16.1 (#483)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 1.16.0 to 1.16.1.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v1.16.0...v1.16.1)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-05 14:21:42 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c48d333e95 chore(deps-dev): bump cssnano from 5.0.8 to 5.0.9 (#484)
Bumps [cssnano](https://github.com/cssnano/cssnano) from 5.0.8 to 5.0.9.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano@5.0.8...cssnano@5.0.9)

---
updated-dependencies:
- dependency-name: cssnano
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-05 14:10:32 +01:00
Matthieu MORELandGitHub 5a828f5944 Update update-Monaco-editor.yml 2021-11-05 14:08:46 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2e8198a882 chore(deps): bump node from 16.12.0 to 17.0.1 (#473)
Bumps node from 16.12.0 to 17.0.1.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 18:09:34 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34a455d965 chore(deps): bump analytics from 0.7.17 to 0.7.18 (#481)
Bumps [analytics](https://github.com/DavidWells/analytics) from 0.7.17 to 0.7.18.
- [Release notes](https://github.com/DavidWells/analytics/releases)
- [Commits](https://github.com/DavidWells/analytics/compare/analytics@0.7.17...analytics@0.7.18)

---
updated-dependencies:
- dependency-name: analytics
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 18:02:00 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
570e89ca97 chore(deps-dev): bump svelte from 3.44.0 to 3.44.1 (#479)
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.44.0 to 3.44.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.44.0...v3.44.1)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 18:01:23 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ce1f5356c6 chore(deps-dev): bump cypress-localstorage-commands from 1.5.0 to 1.6.0 (#480)
Bumps [cypress-localstorage-commands](https://github.com/javierbrea/cypress-localstorage-commands) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/javierbrea/cypress-localstorage-commands/releases)
- [Changelog](https://github.com/javierbrea/cypress-localstorage-commands/blob/master/CHANGELOG.md)
- [Commits](https://github.com/javierbrea/cypress-localstorage-commands/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: cypress-localstorage-commands
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 18:00:22 +01:00
Sidharth VinodandGitHub eaaf53cc56 Merge pull request #477 from mermaid-js/develop
Develop
2021-10-30 11:31:51 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d17c1c26e9 chore(deps): bump analytics from 0.7.16 to 0.7.17 (#475)
Bumps [analytics](https://github.com/DavidWells/analytics) from 0.7.16 to 0.7.17.
- [Release notes](https://github.com/DavidWells/analytics/releases)
- [Commits](https://github.com/DavidWells/analytics/compare/analytics@0.7.16...analytics@0.7.17)

---
updated-dependencies:
- dependency-name: analytics
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 16:00:57 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c2353fe5b9 chore(deps-dev): bump tailwindcss from 2.2.17 to 2.2.19 (#476)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.17 to 2.2.19.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.17...v2.2.19)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 16:00:40 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dff4fb0f51 chore(deps-dev): bump autoprefixer from 10.3.7 to 10.4.0 (#469)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.3.7 to 10.4.0.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.7...10.4.0)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 15:49:22 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9930b62373 chore(deps-dev): bump node-html-parser from 5.0.0 to 5.1.0 (#474)
Bumps [node-html-parser](https://github.com/taoqf/node-fast-html-parser) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/taoqf/node-fast-html-parser/releases)
- [Changelog](https://github.com/taoqf/node-html-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taoqf/node-fast-html-parser/compare/v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: node-html-parser
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 15:45:16 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
92a980a9ae chore(deps-dev): bump @sveltejs/kit (#468)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.0.0-next.188 to 1.0.0-next.192.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 15:35:55 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d43d50d8a7 chore(deps): bump daisyui from 1.15.0 to 1.16.0 (#471)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 15:35:16 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
30d75acdf4 chore(deps-dev): bump lint-staged from 11.2.3 to 11.2.6 (#472)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 11.2.3 to 11.2.6.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v11.2.3...v11.2.6)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 15:34:37 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
afe1de2e33 chore(deps-dev): bump cypress from 8.6.0 to 8.7.0 (#470)
Bumps [cypress](https://github.com/cypress-io/cypress) from 8.6.0 to 8.7.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](https://github.com/cypress-io/cypress/compare/v8.6.0...v8.7.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-29 15:34:06 +02:00
Sidharth VinodandGitHub 170cf3bad9 Merge pull request #466 from mermaid-js/develop
Develop
2021-10-23 21:59:55 +05:30
Sidharth VinodandGitHub 193c13a171 Merge pull request #465 from mermaid-js/dependabot/npm_and_yarn/develop/daisyui-1.15.0
chore(deps): bump daisyui from 1.14.3 to 1.15.0
2021-10-23 21:59:34 +05:30
dependabot[bot]andGitHub 190746c581 chore(deps): bump daisyui from 1.14.3 to 1.15.0
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 1.14.3 to 1.15.0.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v1.14.3...v1.15.0)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 12:55:20 +00:00
Sidharth VinodandGitHub 8210a37628 Merge pull request #462 from mermaid-js/develop
Develop
2021-10-22 20:53:55 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
929fbd4bb4 chore(deps-dev): bump @sveltejs/kit (#463)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.0.0-next.184 to 1.0.0-next.188.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-22 16:27:05 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
e213b98858 chore(deps-dev): bump svelte from 3.43.2 to 3.44.0 (#459)
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.43.2 to 3.44.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.43.2...v3.44.0)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-22 16:13:18 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6a3baa9145 chore(deps): bump node from 16.11.1 to 16.12.0 (#461)
Bumps node from 16.11.1 to 16.12.0.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-22 16:09:00 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
f73e629ad2 chore(deps-dev): bump husky from 7.0.2 to 7.0.4 (#458)
Bumps [husky](https://github.com/typicode/husky) from 7.0.2 to 7.0.4.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v7.0.2...v7.0.4)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-22 16:05:28 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
da1f3872f4 chore(deps): bump analytics from 0.7.15 to 0.7.16 (#457)
Bumps [analytics](https://github.com/DavidWells/analytics) from 0.7.15 to 0.7.16.
- [Release notes](https://github.com/DavidWells/analytics/releases)
- [Commits](https://github.com/DavidWells/analytics/compare/analytics@0.7.15...analytics@0.7.16)

---
updated-dependencies:
- dependency-name: analytics
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-22 16:04:49 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
505ad4dd5f chore(deps-dev): bump postcss from 8.3.9 to 8.3.11 (#460)
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.9 to 8.3.11.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.9...8.3.11)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-22 16:02:47 +02:00
Sidharth VinodandGitHub 579b3edf33 Merge pull request #449 from mermaid-js/develop
Develop
2021-10-17 11:24:33 +05:30
Sidharth Vinod d637c539a4 update DaisyUI 2021-10-17 10:30:28 +05:30
Sidharth Vinod ddfd58da57 update DaisyUI 2021-10-17 10:23:25 +05:30
Sidharth Vinod 72d2221e0e Merge branch 'master' into develop
* master:
2021-10-17 10:23:11 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
950101a6f8 chore(deps-dev): bump mocha from 9.1.2 to 9.1.3 (#447)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.2 to 9.1.3.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.2...v9.1.3)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 22:36:04 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ba509f6464 chore(deps-dev): bump svelte from 3.43.1 to 3.43.2 (#456)
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.43.1 to 3.43.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.43.1...v3.43.2)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 22:33:34 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
44dea7585c chore(deps-dev): bump @sveltejs/kit (#453)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.0.0-next.180 to 1.0.0-next.184.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 22:24:01 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
533f254e81 chore(deps-dev): bump tailwindcss from 2.2.16 to 2.2.17 (#454)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.16 to 2.2.17.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v2.2.17/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...v2.2.17)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 22:21:31 +02:00
Sidharth VinodandGitHub 5d961af1d0 Merge pull request #455 from mermaid-js/update-monaco
Update Monaco-editor on pull_request
2021-10-16 01:41:11 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7d8b71aa79 chore(deps-dev): bump cypress from 8.5.0 to 8.6.0 (#452)
Bumps [cypress](https://github.com/cypress-io/cypress) from 8.5.0 to 8.6.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](https://github.com/cypress-io/cypress/compare/v8.5.0...v8.6.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 22:06:14 +02:00
Matthieu MORELandGitHub 5751052299 Create update-Monaco-editor.yml 2021-10-15 22:00:42 +02:00
Sidharth Vinod 46bcd5543a Update Monaco 2021-10-16 01:15:49 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
332b9aac1b chore(deps-dev): bump @sveltejs/adapter-static (#451)
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 1.0.0-next.20 to 1.0.0-next.21.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 21:43:27 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
09167dfdff chore(deps): bump monaco-editor from 0.28.1 to 0.29.1 (#446)
Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.28.1 to 0.29.1.
- [Release notes](https://github.com/microsoft/monaco-editor/releases)
- [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoft/monaco-editor/commits/v0.29.1)

---
updated-dependencies:
- dependency-name: monaco-editor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 21:43:03 +02:00
Sidharth VinodandGitHub 5cf342f9b3 Merge pull request #448 from mermaid-js/dependabot/docker/develop/node-16.11.1
chore(deps): bump node from 16.10.0 to 16.11.1
2021-10-16 01:02:16 +05:30
Sidharth VinodandGitHub d68772bd50 Merge pull request #443 from mermaid-js/dependabot/npm_and_yarn/develop/lint-staged-11.2.3
chore(deps-dev): bump lint-staged from 11.2.0 to 11.2.3
2021-10-16 01:02:10 +05:30
Sidharth VinodandGitHub dec930b301 Merge pull request #444 from mermaid-js/dependabot/npm_and_yarn/develop/node-html-parser-5.0.0
chore(deps-dev): bump node-html-parser from 4.1.5 to 5.0.0
2021-10-16 01:02:02 +05:30
Sidharth VinodandGitHub d932ae39a2 Merge pull request #445 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-4.4.4
chore(deps-dev): bump typescript from 4.4.3 to 4.4.4
2021-10-16 01:01:53 +05:30
dependabot[bot]andGitHub 5f210afbeb chore(deps): bump node from 16.10.0 to 16.11.1
Bumps node from 16.10.0 to 16.11.1.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-15 13:09:25 +00:00
dependabot[bot]andGitHub 688a99204c chore(deps-dev): bump typescript from 4.4.3 to 4.4.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.3 to 4.4.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.3...v4.4.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-15 13:03:27 +00:00
dependabot[bot]andGitHub 8353ea9495 chore(deps-dev): bump node-html-parser from 4.1.5 to 5.0.0
Bumps [node-html-parser](https://github.com/taoqf/node-fast-html-parser) from 4.1.5 to 5.0.0.
- [Release notes](https://github.com/taoqf/node-fast-html-parser/releases)
- [Changelog](https://github.com/taoqf/node-html-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taoqf/node-fast-html-parser/compare/v4.1.5...v5.0.0)

---
updated-dependencies:
- dependency-name: node-html-parser
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-15 13:03:17 +00:00
dependabot[bot]andGitHub e7af839443 chore(deps-dev): bump lint-staged from 11.2.0 to 11.2.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 11.2.0 to 11.2.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v11.2.0...v11.2.3)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-15 13:03:09 +00:00
Sidharth VinodandGitHub 1f4f4a94a3 Merge pull request #442 from mermaid-js/develop
Develop
2021-10-15 02:36:48 +05:30
Sidharth Vinod b30d2995f3 Merge branch 'master' into develop
* master:
2021-10-15 02:30:52 +05:30
Sidharth Vinod 206d2982b0 Update mermaid 2021-10-15 02:30:31 +05:30
Sidharth VinodandGitHub 0efcbfb20b Merge pull request #438 from mermaid-js/develop
feat: Add troubleshooting if link is broken
2021-10-09 17:37:52 +05:30
Sidharth Vinod 9aba3693f1 fix: revert stateStr change 2021-10-09 11:24:41 +05:30
Sidharth Vinod 5494911830 Merge branch 'master' into develop
* master:
  feat: Add renderer url config
  feat: Add renderer url config
2021-10-09 11:23:17 +05:30
Sidharth Vinod 8a79c81e2b test: Add troubleshoot test 2021-10-09 10:43:44 +05:30
Sidharth Vinod b3cc9f70ff feat: Add troubleshooting if link is broken 2021-10-09 10:33:50 +05:30
Sidharth Vinod d4b0c905ac Fix redirection check 2021-10-09 09:53:21 +05:30
Sidharth VinodandGitHub cf195b08f1 Merge pull request #434 from mermaid-js/develop
Develop
2021-10-08 21:08:10 +05:30
Sidharth Vinod a2483c3212 Update random-word-slug 2021-10-08 20:55:00 +05:30
Sidharth VinodandGitHub 04192f4c82 Merge pull request #428 from mermaid-js/dependabot/npm_and_yarn/develop/sveltejs/kit-1.0.0-next.180
chore(deps-dev): bump @sveltejs/kit from 1.0.0-next.178 to 1.0.0-next.180
2021-10-08 20:23:15 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43daa687c2 chore(deps-dev): bump svelte-preprocess from 4.9.7 to 4.9.8 (#436)
Bumps [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) from 4.9.7 to 4.9.8.
- [Release notes](https://github.com/sveltejs/svelte-preprocess/releases)
- [Changelog](https://github.com/sveltejs/svelte-preprocess/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte-preprocess/compare/v4.9.7...v4.9.8)

---
updated-dependencies:
- dependency-name: svelte-preprocess
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-08 16:43:19 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9caa2e8994 chore(deps-dev): bump postcss from 8.3.8 to 8.3.9 (#429)
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.8 to 8.3.9.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.8...8.3.9)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-08 16:35:24 +02:00
dependabot[bot]andGitHub 75de5014db chore(deps-dev): bump @sveltejs/kit
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.0.0-next.178 to 1.0.0-next.180.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 14:24:18 +00:00
Sidharth VinodandGitHub 1265812270 Merge pull request #427 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/parser-4.33.0
chore(deps-dev): bump @typescript-eslint/parser from 4.32.0 to 4.33.0
2021-10-08 19:51:01 +05:30
Sidharth VinodandGitHub 891abf7383 Merge pull request #432 from mermaid-js/dependabot/npm_and_yarn/develop/eslint-plugin-tailwindcss-1.17.0
chore(deps-dev): bump eslint-plugin-tailwindcss from 1.16.0 to 1.17.0
2021-10-08 19:49:22 +05:30
dependabot[bot]andGitHub 0e23b71d67 chore(deps-dev): bump @typescript-eslint/parser from 4.32.0 to 4.33.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.32.0 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 14:10:45 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0a19853b46 chore(deps-dev): bump autoprefixer from 10.3.6 to 10.3.7 (#430)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.3.6 to 10.3.7.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.6...10.3.7)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-08 16:07:32 +02:00
dependabot[bot]andGitHub b71d876a86 chore(deps-dev): bump eslint-plugin-tailwindcss from 1.16.0 to 1.17.0
Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases)
- [Commits](https://github.com/francoismassart/eslint-plugin-tailwindcss/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 14:07:18 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c27e4d48c3 chore(deps-dev): bump lint-staged from 11.1.2 to 11.2.0 (#431)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 11.1.2 to 11.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v11.1.2...v11.2.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-08 16:05:34 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
abc951703e chore(deps-dev): bump @typescript-eslint/eslint-plugin (#426)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.32.0 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-08 15:52:56 +02:00
Sidharth VinodandGitHub 4626d2bb32 Merge pull request #422 from mermaid-js/feat/RendererConfig
Feat/RendererConfig
2021-10-04 09:27:31 +05:30
Sidharth VinodandGitHub 4b9534ed4d Merge pull request #423 from mermaid-js/develop
Develop
2021-10-03 00:21:58 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0860484704 chore(deps-dev): bump tailwindcss from 2.2.15 to 2.2.16 (#420)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.15 to 2.2.16.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...v2.2.16)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-02 18:49:35 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
b84d9c8f71 chore(deps-dev): bump autoprefixer from 10.3.5 to 10.3.6 (#419)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.3.5 to 10.3.6.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.5...10.3.6)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-02 18:49:12 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4fe68eab75 chore(deps-dev): bump mocha from 9.1.1 to 9.1.2 (#418)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.1 to 9.1.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.1...v9.1.2)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-02 18:46:41 +02:00
Sidharth VinodandGitHub ec1a9eb7e9 Merge pull request #417 from mermaid-js/develop
Update dependencies
2021-10-02 13:50:17 +05:30
Sidharth Vinod ace89a4f28 feat: Add renderer url config 2021-10-02 13:43:29 +05:30
Sidharth Vinod aadf4ec8dc feat: Add renderer url config 2021-10-02 13:39:07 +05:30
Sidharth Vinod 7bde0beb76 Merge branch 'master' into develop
* master:
  Fix test
  Use esm build
  Use esm build
  Use esm build
  Use esm build
  ESM
  Use esm build
  v8.13.2 build issue
  Add actor support on sequence diagram
2021-10-01 19:58:26 +05:30
Sidharth Vinod 356a9b55d5 Update deps 2021-10-01 19:56:55 +05:30
Sidharth VinodandGitHub f14013a729 Merge pull request #406 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-3.43.1
chore(deps-dev): bump svelte from 3.43.0 to 3.43.1
2021-10-01 19:48:01 +05:30
Sidharth VinodandGitHub ffdaaa3c5d Merge pull request #384 from Yash-Singh1/patch-1
Add actor support
2021-10-01 19:47:45 +05:30
Sidharth VinodandGitHub d3726de7a4 Merge pull request #407 from mermaid-js/dependabot/npm_and_yarn/develop/eslint-plugin-tailwindcss-1.16.0
chore(deps-dev): bump eslint-plugin-tailwindcss from 1.15.0 to 1.16.0
2021-10-01 19:47:27 +05:30
Sidharth VinodandGitHub 30a6de665b Merge pull request #409 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/parser-4.32.0
chore(deps-dev): bump @typescript-eslint/parser from 4.31.2 to 4.32.0
2021-10-01 19:47:17 +05:30
Sidharth VinodandGitHub ff3a87098a Merge pull request #410 from mermaid-js/dependabot/npm_and_yarn/develop/analytics-0.7.15
chore(deps): bump analytics from 0.7.14 to 0.7.15
2021-10-01 19:47:02 +05:30
Sidharth VinodandGitHub e4d4feaf65 Merge pull request #411 from mermaid-js/fix/build
Fix/build
2021-10-01 19:42:33 +05:30
Sidharth Vinod 50d1ce03ea Fix test 2021-10-01 19:34:26 +05:30
dependabot[bot]andGitHub 087421ab6b chore(deps): bump analytics from 0.7.14 to 0.7.15
Bumps [analytics](https://github.com/DavidWells/analytics) from 0.7.14 to 0.7.15.
- [Release notes](https://github.com/DavidWells/analytics/releases)
- [Commits](https://github.com/DavidWells/analytics/compare/analytics@0.7.14...analytics@0.7.15)

---
updated-dependencies:
- dependency-name: analytics
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-01 14:04:05 +00:00
dependabot[bot]andGitHub 7977616e1a chore(deps-dev): bump svelte from 3.43.0 to 3.43.1
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.43.0 to 3.43.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.43.0...v3.43.1)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-01 14:03:48 +00:00
Sidharth VinodandGitHub 3811f90e37 Merge pull request #408 from mermaid-js/dependabot/npm_and_yarn/develop/daisyui-1.14.2
chore(deps): bump daisyui from 1.14.1 to 1.14.2
2021-10-01 19:30:29 +05:30
Sidharth Vinod a1687b7da4 Use esm build 2021-10-01 19:12:48 +05:30
Sidharth Vinod 7f936e9ab5 Use esm build 2021-10-01 19:05:37 +05:30
Sidharth Vinod b28fc87b0e Use esm build 2021-10-01 18:56:07 +05:30
Sidharth Vinod 2be4c64eaf Use esm build 2021-10-01 18:55:35 +05:30
Sidharth Vinod 289ad5b969 ESM 2021-10-01 18:43:30 +05:30
Sidharth Vinod 4680245695 Use esm build 2021-10-01 18:35:09 +05:30
dependabot[bot]andGitHub 4026a83917 chore(deps-dev): bump @typescript-eslint/parser from 4.31.2 to 4.32.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.31.2 to 4.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.32.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-01 13:03:51 +00:00
dependabot[bot]andGitHub d9a904f77a chore(deps): bump daisyui from 1.14.1 to 1.14.2
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 1.14.1 to 1.14.2.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v1.14.1...v1.14.2)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-01 13:03:26 +00:00
dependabot[bot]andGitHub 26eed13844 chore(deps-dev): bump eslint-plugin-tailwindcss from 1.15.0 to 1.16.0
Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases)
- [Commits](https://github.com/francoismassart/eslint-plugin-tailwindcss/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-01 13:03:12 +00:00
Sidharth Vinod 1d5ce4b2a4 Merge branch 'master' into fix/build
* master:
2021-10-01 00:39:10 +05:30
Sidharth VinodandGitHub 1652bcfbe4 Merge pull request #395 from mermaid-js/develop
Develop
2021-10-01 00:38:34 +05:30
Sidharth Vinod 31ab44718e v8.13.2 build issue 2021-10-01 00:36:44 +05:30
Sidharth VinodandGitHub 506f0f4133 Merge pull request #403 from Yash-Singh1/patch-2
Fix documentation for requirement diagram element
2021-10-01 00:17:48 +05:30
Yash SinghandGitHub 9ff8bb54eb Fix documentation for requirement diagram element 2021-09-25 16:36:16 -07:00
Sidharth VinodandGitHub 7c2cb42861 Merge pull request #398 from mermaid-js/dependabot/npm_and_yarn/develop/autoprefixer-10.3.5
chore(deps-dev): bump autoprefixer from 10.3.4 to 10.3.5
2021-09-25 14:47:21 +05:30
dependabot[bot]andGitHub c0fbd2e17b chore(deps-dev): bump autoprefixer from 10.3.4 to 10.3.5
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.3.4 to 10.3.5.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.4...10.3.5)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 08:58:25 +00:00
Sidharth VinodandGitHub 4ab170dc8b Merge pull request #402 from mermaid-js/dependabot/npm_and_yarn/develop/postcss-8.3.8
chore(deps-dev): bump postcss from 8.3.7 to 8.3.8
2021-09-25 14:25:08 +05:30
Sidharth VinodandGitHub 96780c6b38 Merge pull request #401 from mermaid-js/dependabot/npm_and_yarn/develop/sveltejs/adapter-static-1.0.0-next.20
chore(deps-dev): bump @sveltejs/adapter-static from 1.0.0-next.19 to 1.0.0-next.20
2021-09-25 14:24:59 +05:30
dependabot[bot]andGitHub acf8e48336 chore(deps-dev): bump @sveltejs/adapter-static
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 1.0.0-next.19 to 1.0.0-next.20.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 08:26:52 +00:00
dependabot[bot]andGitHub 3bba5c0ed1 chore(deps-dev): bump postcss from 8.3.7 to 8.3.8
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.7 to 8.3.8.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.7...8.3.8)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 08:26:13 +00:00
Sidharth VinodandGitHub 2c567ada01 Merge pull request #400 from mermaid-js/dependabot/npm_and_yarn/develop/daisyui-1.14.1
chore(deps): bump daisyui from 1.14.0 to 1.14.1
2021-09-25 13:54:10 +05:30
Sidharth VinodandGitHub 47f8c6aa88 Merge pull request #399 from mermaid-js/dependabot/npm_and_yarn/develop/cypress-8.4.1
chore(deps-dev): bump cypress from 8.4.0 to 8.4.1
2021-09-25 13:54:03 +05:30
dependabot[bot]andGitHub 314ac81046 chore(deps): bump daisyui from 1.14.0 to 1.14.1
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 1.14.0 to 1.14.1.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v1.14.0...v1.14.1)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 08:02:17 +00:00
dependabot[bot]andGitHub bb1779b41c chore(deps-dev): bump cypress from 8.4.0 to 8.4.1
Bumps [cypress](https://github.com/cypress-io/cypress) from 8.4.0 to 8.4.1.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](https://github.com/cypress-io/cypress/compare/v8.4.0...v8.4.1)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 08:02:05 +00:00
Sidharth VinodandGitHub d1f5ff384c Merge pull request #391 from mermaid-js/dependabot/npm_and_yarn/develop/eslint-plugin-tailwindcss-1.15.0
chore(deps-dev): bump eslint-plugin-tailwindcss from 1.14.3 to 1.15.0
2021-09-25 13:29:55 +05:30
Sidharth VinodandGitHub b8806bf784 Merge pull request #394 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-3.43.0
chore(deps-dev): bump svelte from 3.42.6 to 3.43.0
2021-09-25 13:29:47 +05:30
Sidharth VinodandGitHub ce5927c826 Merge pull request #396 from mermaid-js/dependabot/npm_and_yarn/develop/sveltejs/kit-1.0.0-next.173
chore(deps-dev): bump @sveltejs/kit from 1.0.0-next.170 to 1.0.0-next.173
2021-09-25 13:29:38 +05:30
Sidharth VinodandGitHub 05f587f4b1 Merge pull request #397 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/parser-4.31.2
chore(deps-dev): bump @typescript-eslint/parser from 4.31.1 to 4.31.2
2021-09-25 13:29:30 +05:30
dependabot[bot]andGitHub f126c9905b chore(deps-dev): bump @typescript-eslint/parser from 4.31.1 to 4.31.2
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.31.1 to 4.31.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 07:10:23 +00:00
dependabot[bot]andGitHub 472f2f5411 chore(deps-dev): bump eslint-plugin-tailwindcss from 1.14.3 to 1.15.0
Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 1.14.3 to 1.15.0.
- [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases)
- [Commits](https://github.com/francoismassart/eslint-plugin-tailwindcss/compare/v1.14.3...v1.15.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 07:10:14 +00:00
dependabot[bot]andGitHub abec15bfbb chore(deps-dev): bump @sveltejs/kit
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.0.0-next.170 to 1.0.0-next.173.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 07:10:14 +00:00
dependabot[bot]andGitHub 871a19a8c6 chore(deps-dev): bump svelte from 3.42.6 to 3.43.0
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.42.6 to 3.43.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.42.6...v3.43.0)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-25 07:10:10 +00:00
Sidharth VinodandGitHub 464a728ce4 Merge pull request #392 from mermaid-js/dependabot/npm_and_yarn/develop/js-base64-3.7.2
chore(deps): bump js-base64 from 3.7.1 to 3.7.2
2021-09-25 12:36:14 +05:30
Sidharth Vinod a2084bbf42 feat: add docker compose 2021-09-25 12:35:37 +05:30
Sidharth VinodandGitHub 42805e58d5 Merge pull request #383 from mermaid-js/dependabot/npm_and_yarn/nth-check-2.0.1
chore(deps): bump nth-check from 2.0.0 to 2.0.1
2021-09-25 00:44:59 +05:30
Sidharth Vinod 15ad228b6e Merge branch 'master' into develop
* master:
2021-09-24 23:59:19 +05:30
dependabot[bot]andGitHub eecb7ca4aa chore(deps): bump js-base64 from 3.7.1 to 3.7.2
Bumps [js-base64](https://github.com/dankogai/js-base64) from 3.7.1 to 3.7.2.
- [Release notes](https://github.com/dankogai/js-base64/releases)
- [Commits](https://github.com/dankogai/js-base64/compare/3.7.1...3.7.2)

---
updated-dependencies:
- dependency-name: js-base64
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 17:09:21 +00:00
Sidharth VinodandGitHub 5e7143c88d Merge pull request #386 from mermaid-js/dependabot/npm_and_yarn/develop/monaco-editor-0.28.1
chore(deps): bump monaco-editor from 0.27.0 to 0.28.1
2021-09-24 22:36:10 +05:30
Sidharth VinodandGitHub 36a759887a Merge pull request #387 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/eslint-plugin-4.31.2
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.31.1 to 4.31.2
2021-09-24 22:28:16 +05:30
Sidharth VinodandGitHub ec203ab582 Merge pull request #388 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-preprocess-4.9.5
chore(deps-dev): bump svelte-preprocess from 4.9.4 to 4.9.5
2021-09-24 22:28:08 +05:30
Sidharth VinodandGitHub 7110beaca0 Merge pull request #389 from mermaid-js/dependabot/npm_and_yarn/develop/postcss-8.3.7
chore(deps-dev): bump postcss from 8.3.6 to 8.3.7
2021-09-24 22:28:00 +05:30
Sidharth VinodandGitHub 2314e1a85a Merge pull request #390 from mermaid-js/dependabot/docker/develop/node-16.10.0
chore(deps): bump node from 16.9.1 to 16.10.0
2021-09-24 22:27:52 +05:30
dependabot[bot]andGitHub 31803eae7e chore(deps): bump node from 16.9.1 to 16.10.0
Bumps node from 16.9.1 to 16.10.0.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 13:10:23 +00:00
dependabot[bot]andGitHub 15836ace17 chore(deps-dev): bump postcss from 8.3.6 to 8.3.7
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.6 to 8.3.7.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.6...8.3.7)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 13:04:22 +00:00
dependabot[bot]andGitHub a7095febbf chore(deps-dev): bump svelte-preprocess from 4.9.4 to 4.9.5
Bumps [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) from 4.9.4 to 4.9.5.
- [Release notes](https://github.com/sveltejs/svelte-preprocess/releases)
- [Changelog](https://github.com/sveltejs/svelte-preprocess/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte-preprocess/compare/v4.9.4...v4.9.5)

---
updated-dependencies:
- dependency-name: svelte-preprocess
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 13:04:14 +00:00
dependabot[bot]andGitHub b23719fbb4 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.31.1 to 4.31.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.2/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 13:04:04 +00:00
dependabot[bot]andGitHub c681cf60a2 chore(deps): bump monaco-editor from 0.27.0 to 0.28.1
Bumps [monaco-editor](https://github.com/Microsoft/monaco-editor) from 0.27.0 to 0.28.1.
- [Release notes](https://github.com/Microsoft/monaco-editor/releases)
- [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Microsoft/monaco-editor/commits)

---
updated-dependencies:
- dependency-name: monaco-editor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 13:03:44 +00:00
Yash SinghandGitHub bcad69e2d0 Add actor support on sequence diagram 2021-09-23 19:09:27 -07:00
dependabot[bot]andGitHub 167093d64d chore(deps): bump nth-check from 2.0.0 to 2.0.1
Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](https://github.com/fb55/nth-check/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-22 23:09:00 +00:00
Sidharth VinodandGitHub b9fe9f3df1 Merge pull request #382 from mermaid-js/develop
fix: #381 URL mismatch
2021-09-22 16:26:29 +05:30
Sidharth Vinod dfe32b93c0 fix: #381 URL mismatch 2021-09-22 12:05:25 +05:30
Sidharth VinodandGitHub f76c89ff1f Merge pull request #380 from mermaid-js/develop
Develop
2021-09-20 23:41:15 +05:30
Sidharth Vinod 07f28f2baf docs: Update beta release docs 2021-09-20 23:40:59 +05:30
Sidharth Vinod 814869d4b6 Merge branch 'master' into develop
* master: (26 commits)
  Add tests for themes
  Fix: Light theme not being set by default
  Apply suggestions from code review
  chore: rename theme
  fix: Mermaid Theme
  fix: menu width
  fix: Use span instead of a in menu
  Update src/lib/components/navbar.svelte
  [ImgBot] Optimize images
  Add powered by netlify
  add netlify badge
  test deploy
  update test
  update
  fix: resize CSS
  fix: ResizeHandler
  fix: Auto sync margin
  fix: Scroll
  chore: Update daisyUI
  fix: Aqua dark
  ...
2021-09-20 23:34:30 +05:30
Sidharth Vinod 9e2b03c1d8 Update svelteKit 2021-09-20 23:34:00 +05:30
Sidharth VinodandGitHub 7e1957ca13 Merge pull request #296 from mermaid-js/daisyUI
Themes
2021-09-19 16:25:31 +05:30
Sidharth Vinod 687ac6428b Add tests for themes 2021-09-18 10:52:14 +05:30
Sidharth Vinod 45c5958b56 Fix: Light theme not being set by default 2021-09-18 10:10:53 +05:30
Sidharth Vinod 15a90149be Merge branch 'master' into daisyUI
* master:
  Fix " > base64State is not defined"
  chore(deps-dev): bump svelte-preprocess from 4.8.0 to 4.9.4
  chore(deps-dev): bump eslint-plugin-cypress from 2.11.3 to 2.12.1
  chore(deps-dev): bump cypress from 8.3.1 to 8.4.0
  chore(deps-dev): bump @typescript-eslint/eslint-plugin
  chore(deps): bump js-base64 from 3.7.0 to 3.7.1
  chore(deps-dev): bump svelte from 3.42.5 to 3.42.6
  chore(deps): bump node from 16.9.0 to 16.9.1
  chore(deps-dev): bump prettier from 2.4.0 to 2.4.1
  chore(deps-dev): bump @sveltejs/adapter-static
  chore(deps-dev): bump @typescript-eslint/parser from 4.31.0 to 4.31.1
2021-09-18 10:04:10 +05:30
Sidharth VinodandGitHub 649bfee23c Merge pull request #373 from mermaid-js/develop
Develop
2021-09-18 10:01:01 +05:30
Sidharth Vinod 113c50e255 Fix " > base64State is not defined" 2021-09-17 23:51:26 +05:30
Sidharth VinodandGitHub 4804046d9f Merge pull request #356 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-preprocess-4.9.4
chore(deps-dev): bump svelte-preprocess from 4.8.0 to 4.9.4
2021-09-17 19:47:37 +05:30
Sidharth VinodandGitHub 5a8f28b229 Merge pull request #375 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/eslint-plugin-4.31.1
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.31.0 to 4.31.1
2021-09-17 19:47:27 +05:30
Sidharth VinodandGitHub 0e38b66461 Merge pull request #378 from mermaid-js/dependabot/npm_and_yarn/develop/eslint-plugin-cypress-2.12.1
chore(deps-dev): bump eslint-plugin-cypress from 2.11.3 to 2.12.1
2021-09-17 19:47:19 +05:30
Sidharth VinodandGitHub 5ea4267768 Merge pull request #377 from mermaid-js/dependabot/npm_and_yarn/develop/cypress-8.4.0
chore(deps-dev): bump cypress from 8.3.1 to 8.4.0
2021-09-17 19:47:08 +05:30
30651c41de Apply suggestions from code review
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
2021-09-17 19:46:28 +05:30
Sidharth Vinod 2868870065 chore: rename theme 2021-09-17 19:41:50 +05:30
Sidharth Vinod 4ed439b3ad fix: Mermaid Theme 2021-09-17 19:39:27 +05:30
Sidharth Vinod d2673d5326 Merge branch 'master' into daisyUI
* master: (25 commits)
  chore(deps-dev): bump typescript from 4.4.2 to 4.4.3
  chore(deps-dev): bump svelte from 3.42.4 to 3.42.5
  chore(deps): bump js-base64 from 3.6.2 to 3.7.0
  chore(deps): bump node from 16.8.0 to 16.9.0
  Skip beta deploy
  [ImgBot] Optimize images
  Dont allow lookbehind in regexp
  Fix no lookbehinds in comments
  chore(deps-dev): bump tailwindcss from 2.2.11 to 2.2.15
  chore(deps-dev): bump eslint-plugin-svelte3 from 3.2.0 to 3.2.1
  chore(deps-dev): bump prettier from 2.3.2 to 2.4.0
  Test deploy on PRs
  Fix manifest issue
  Update node
  Add back Highlighting. #340
  chore(deps-dev): bump @typescript-eslint/eslint-plugin
  chore(deps-dev): bump @typescript-eslint/parser from 4.30.0 to 4.31.0
  chore(deps): bump js-base64 from 3.6.1 to 3.6.2
  chore(deps-dev): bump tailwindcss from 2.2.9 to 2.2.11
  chore(deps): bump node from 14.17.0 to 16.8.0
  ...
2021-09-17 19:19:54 +05:30
dependabot[bot]andGitHub a14c9a7e9d chore(deps-dev): bump svelte-preprocess from 4.8.0 to 4.9.4
Bumps [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) from 4.8.0 to 4.9.4.
- [Release notes](https://github.com/sveltejs/svelte-preprocess/releases)
- [Changelog](https://github.com/sveltejs/svelte-preprocess/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte-preprocess/compare/v4.8.0...v4.9.4)

---
updated-dependencies:
- dependency-name: svelte-preprocess
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:49:07 +00:00
dependabot[bot]andGitHub 2ecd56fe8a chore(deps-dev): bump eslint-plugin-cypress from 2.11.3 to 2.12.1
Bumps [eslint-plugin-cypress](https://github.com/cypress-io/eslint-plugin-cypress) from 2.11.3 to 2.12.1.
- [Release notes](https://github.com/cypress-io/eslint-plugin-cypress/releases)
- [Commits](https://github.com/cypress-io/eslint-plugin-cypress/compare/v2.11.3...v2.12.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:48:58 +00:00
dependabot[bot]andGitHub 41c1ed8c5d chore(deps-dev): bump cypress from 8.3.1 to 8.4.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 8.3.1 to 8.4.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](https://github.com/cypress-io/cypress/compare/v8.3.1...v8.4.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:48:49 +00:00
dependabot[bot]andGitHub efdfba2812 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.31.0 to 4.31.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:48:45 +00:00
Sidharth VinodandGitHub eb33a59ac2 Merge pull request #372 from mermaid-js/dependabot/docker/develop/node-16.9.1
chore(deps): bump node from 16.9.0 to 16.9.1
2021-09-17 19:16:58 +05:30
Sidharth VinodandGitHub 89c64ae0cb Merge pull request #376 from mermaid-js/dependabot/npm_and_yarn/develop/js-base64-3.7.1
chore(deps): bump js-base64 from 3.7.0 to 3.7.1
2021-09-17 19:16:47 +05:30
Sidharth VinodandGitHub e094efabf6 Merge pull request #374 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-3.42.6
chore(deps-dev): bump svelte from 3.42.5 to 3.42.6
2021-09-17 19:16:39 +05:30
Sidharth Vinod 2b757cc433 fix: menu width 2021-09-17 19:16:05 +05:30
Sidharth Vinod b890622543 fix: Use span instead of a in menu 2021-09-17 19:08:23 +05:30
dependabot[bot]andGitHub cf3457a983 chore(deps): bump js-base64 from 3.7.0 to 3.7.1
Bumps [js-base64](https://github.com/dankogai/js-base64) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/dankogai/js-base64/releases)
- [Commits](https://github.com/dankogai/js-base64/compare/3.7.0...3.7.1)

---
updated-dependencies:
- dependency-name: js-base64
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:17:11 +00:00
dependabot[bot]andGitHub 40b21f05de chore(deps-dev): bump svelte from 3.42.5 to 3.42.6
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.42.5 to 3.42.6.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.42.5...v3.42.6)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:16:32 +00:00
91fe1911fb Update src/lib/components/navbar.svelte
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
2021-09-17 18:43:40 +05:30
Sidharth VinodandGitHub 6fc2968901 Merge pull request #368 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/parser-4.31.1
chore(deps-dev): bump @typescript-eslint/parser from 4.31.0 to 4.31.1
2021-09-17 18:42:54 +05:30
Sidharth VinodandGitHub 61fa0bda71 Merge pull request #370 from mermaid-js/dependabot/npm_and_yarn/develop/prettier-2.4.1
chore(deps-dev): bump prettier from 2.4.0 to 2.4.1
2021-09-17 18:42:40 +05:30
Sidharth VinodandGitHub 55149fa616 Merge pull request #369 from mermaid-js/dependabot/npm_and_yarn/develop/sveltejs/adapter-static-1.0.0-next.19
chore(deps-dev): bump @sveltejs/adapter-static from 1.0.0-next.18 to 1.0.0-next.19
2021-09-17 18:42:28 +05:30
dependabot[bot]andGitHub 0dc8582bd6 chore(deps): bump node from 16.9.0 to 16.9.1
Bumps node from 16.9.0 to 16.9.1.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:10:29 +00:00
dependabot[bot]andGitHub 7517614429 chore(deps-dev): bump prettier from 2.4.0 to 2.4.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.4.0...2.4.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:03:00 +00:00
dependabot[bot]andGitHub 1cc55e210a chore(deps-dev): bump @sveltejs/adapter-static
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 1.0.0-next.18 to 1.0.0-next.19.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:02:48 +00:00
dependabot[bot]andGitHub 1f0e6e7a36 chore(deps-dev): bump @typescript-eslint/parser from 4.31.0 to 4.31.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.31.0 to 4.31.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 13:02:30 +00:00
Sidharth VinodandGitHub 548f3206ad Merge pull request #366 from Yash-Singh1/master
Optimize images with `imgbot`
2021-09-14 19:58:24 +05:30
Yash SinghandGitHub 782cf66274 Merge pull request #1 from Yash-Singh1/imgbot
[ImgBot] Optimize images
2021-09-13 16:38:37 -07:00
Sidharth VinodandGitHub 21049c7fff Merge pull request #365 from mermaid-js/develop
Develop
2021-09-13 22:40:05 +05:30
Sidharth VinodandGitHub 6b0183fbe9 Merge pull request #363 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-3.42.5
chore(deps-dev): bump svelte from 3.42.4 to 3.42.5
2021-09-13 21:37:58 +05:30
Sidharth VinodandGitHub 94c4ea3322 Merge pull request #364 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-4.4.3
chore(deps-dev): bump typescript from 4.4.2 to 4.4.3
2021-09-13 21:37:50 +05:30
dependabot[bot]andGitHub 9ba0b53a10 chore(deps-dev): bump typescript from 4.4.2 to 4.4.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.2...v4.4.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 15:58:30 +00:00
dependabot[bot]andGitHub 86be314d2c chore(deps-dev): bump svelte from 3.42.4 to 3.42.5
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.42.4 to 3.42.5.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.42.4...v3.42.5)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 15:58:09 +00:00
Sidharth VinodandGitHub 07a2bb8ca1 Merge pull request #360 from Yash-Singh1/fixNoLookBehindComment
Fix no lookbehinds in comments
2021-09-13 21:26:10 +05:30
Sidharth VinodandGitHub d683a80f40 Merge pull request #359 from mermaid-js/dependabot/docker/develop/node-16.9.0
chore(deps): bump node from 16.8.0 to 16.9.0
2021-09-13 21:25:49 +05:30
Sidharth VinodandGitHub 6d47808298 Merge pull request #357 from mermaid-js/dependabot/npm_and_yarn/develop/eslint-plugin-svelte3-3.2.1
chore(deps-dev): bump eslint-plugin-svelte3 from 3.2.0 to 3.2.1
2021-09-13 21:25:39 +05:30
Sidharth VinodandGitHub f9d1c55f25 Merge pull request #358 from mermaid-js/dependabot/npm_and_yarn/develop/tailwindcss-2.2.15
chore(deps-dev): bump tailwindcss from 2.2.11 to 2.2.15
2021-09-13 21:25:30 +05:30
Sidharth VinodandGitHub d9b475a82f Merge pull request #362 from mermaid-js/dependabot/npm_and_yarn/develop/js-base64-3.7.0
chore(deps): bump js-base64 from 3.6.2 to 3.7.0
2021-09-13 21:25:17 +05:30
dependabot[bot]andGitHub 0b938cefa8 chore(deps): bump js-base64 from 3.6.2 to 3.7.0
Bumps [js-base64](https://github.com/dankogai/js-base64) from 3.6.2 to 3.7.0.
- [Release notes](https://github.com/dankogai/js-base64/releases)
- [Commits](https://github.com/dankogai/js-base64/compare/3.6.2...3.7.0)

---
updated-dependencies:
- dependency-name: js-base64
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 15:39:41 +00:00
Sidharth VinodandGitHub 2637621671 Merge pull request #355 from mermaid-js/dependabot/npm_and_yarn/develop/prettier-2.4.0
chore(deps-dev): bump prettier from 2.3.2 to 2.4.0
2021-09-13 21:06:48 +05:30
dependabot[bot]andGitHub 44281abb4e chore(deps): bump node from 16.8.0 to 16.9.0
Bumps node from 16.8.0 to 16.9.0.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 15:36:48 +00:00
Sidharth VinodandGitHub 007e6f1896 Merge pull request #361 from mermaid-js/develop
Skip beta deploy
2021-09-13 20:42:20 +05:30
Sidharth Vinod 479fe86ca5 Skip beta deploy 2021-09-13 10:53:06 +05:30
ImgBotApp deb449cf4f [ImgBot] Optimize images
*Total -- 109.33kb -> 75.69kb (30.77%)

/static/icon-512.png -- 78.09kb -> 47.40kb (39.3%)
/static/icon-192.png -- 15.46kb -> 12.59kb (18.56%)
/static/favicon.png -- 15.78kb -> 15.70kb (0.48%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-09-11 22:09:11 +00:00
Yash-Singh1 ebd7a9cdb4 Dont allow lookbehind in regexp 2021-09-11 12:24:35 -07:00
Yash-Singh1 5e5c869ada Fix no lookbehinds in comments 2021-09-11 12:22:14 -07:00
dependabot[bot]andGitHub 6532a9a947 chore(deps-dev): bump tailwindcss from 2.2.11 to 2.2.15
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.11 to 2.2.15.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v2.2.15)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-10 13:03:29 +00:00
dependabot[bot]andGitHub 36c16781b5 chore(deps-dev): bump eslint-plugin-svelte3 from 3.2.0 to 3.2.1
Bumps [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte3/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte3/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-10 13:03:18 +00:00
dependabot[bot]andGitHub 2c4b8246c8 chore(deps-dev): bump prettier from 2.3.2 to 2.4.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.3.2...2.4.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-10 13:02:55 +00:00
Sidharth VinodandGitHub cacf434709 Merge pull request #354 from mermaid-js/develop
Develop
2021-09-10 11:39:56 +05:30
Sidharth Vinod fa8a261fed Test deploy on PRs 2021-09-10 11:33:36 +05:30
Sidharth Vinod dab9761e6e Fix manifest issue 2021-09-10 11:30:36 +05:30
Sidharth VinodandGitHub c32d5e565d Merge pull request #352 from mermaid-js/develop
Develop
2021-09-10 10:47:44 +05:30
Sidharth Vinod 2328294f1b Update node 2021-09-10 10:33:35 +05:30
Sidharth Vinod 7abb08cdff Merge branch 'develop' of https://github.com/mermaid-js/mermaid-live-editor into develop
* 'develop' of https://github.com/mermaid-js/mermaid-live-editor:
  chore(deps): bump node from 14.17.0 to 16.8.0
2021-09-10 10:30:14 +05:30
Sidharth VinodandGitHub 570c2f4c8b Merge pull request #346 from mermaid-js/dependabot/docker/develop/node-16.8.0
chore(deps): bump node from 14.17.0 to 16.8.0
2021-09-10 10:30:08 +05:30
Sidharth Vinod 8c9e29c3da Add back Highlighting. #340 2021-09-10 10:29:50 +05:30
Sidharth VinodandGitHub 5a806c0d56 Merge pull request #350 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/eslint-plugin-4.31.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.30.0 to 4.31.0
2021-09-09 08:40:33 +05:30
dependabot[bot]andGitHub 740c9c827e chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.30.0 to 4.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-08 06:15:46 +00:00
Sidharth VinodandGitHub 2e8ac60684 Merge pull request #348 from mermaid-js/dependabot/npm_and_yarn/develop/js-base64-3.6.2
chore(deps): bump js-base64 from 3.6.1 to 3.6.2
2021-09-08 11:42:29 +05:30
Sidharth VinodandGitHub 339c023447 Merge pull request #349 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/parser-4.31.0
chore(deps-dev): bump @typescript-eslint/parser from 4.30.0 to 4.31.0
2021-09-08 11:42:14 +05:30
Sidharth VinodandGitHub ca9d6faaed Merge pull request #347 from mermaid-js/dependabot/npm_and_yarn/develop/tailwindcss-2.2.11
chore(deps-dev): bump tailwindcss from 2.2.9 to 2.2.11
2021-09-08 11:42:02 +05:30
Sidharth Vinod 40a0c22d56 Merge branch 'master' into develop
* master:
  rollback #288 due to #338
  hide netlify on github
  format netlify
  hide netlify on github
  Fix clock
  Fix clock
  Fix test
  Fix test
  Fix test
  Fix test
  remove eslint ignors
  Fix test
  Add powered by netlify
2021-09-08 11:37:46 +05:30
dependabot[bot]andGitHub 129c296121 chore(deps-dev): bump @typescript-eslint/parser from 4.30.0 to 4.31.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.30.0 to 4.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-08 06:07:28 +00:00
dependabot[bot]andGitHub 7491d8fd99 chore(deps): bump js-base64 from 3.6.1 to 3.6.2
Bumps [js-base64](https://github.com/dankogai/js-base64) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/dankogai/js-base64/releases)
- [Commits](https://github.com/dankogai/js-base64/compare/3.6.1...3.6.2)

---
updated-dependencies:
- dependency-name: js-base64
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-08 06:07:08 +00:00
dependabot[bot]andGitHub 3db6543024 chore(deps-dev): bump tailwindcss from 2.2.9 to 2.2.11
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.9 to 2.2.11.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-08 06:06:54 +00:00
Sidharth VinodandGitHub 26afd28a85 Merge pull request #345 from mermaid-js/dependabot/github_actions/develop/actions/stale-4
chore(deps): bump actions/stale from 3 to 4
2021-09-08 11:36:25 +05:30
dependabot[bot]andGitHub fbb93ab813 chore(deps): bump node from 14.17.0 to 16.8.0
Bumps node from 14.17.0 to 16.8.0.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-08 06:05:01 +00:00
dependabot[bot]andGitHub 2a24199756 chore(deps): bump actions/stale from 3 to 4
Bumps [actions/stale](https://github.com/actions/stale) from 3 to 4.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-08 06:04:48 +00:00
Sidharth VinodandGitHub 52afad3e97 Merge pull request #343 from mermaid-js/develop
Develop
2021-09-08 11:34:28 +05:30
Sidharth VinodandGitHub 1810dad5f9 Merge pull request #330 from mermaid-js/dependabot/npm_and_yarn/develop/sveltejs/adapter-static-1.0.0-next.18
chore(deps-dev): bump @sveltejs/adapter-static from 1.0.0-next.17 to 1.0.0-next.18
2021-09-08 11:09:17 +05:30
Sidharth VinodandGitHub b40506bd9f Merge pull request #334 from mermaid-js/dependabot/npm_and_yarn/develop/autoprefixer-10.3.4
chore(deps-dev): bump autoprefixer from 10.3.3 to 10.3.4
2021-09-08 10:55:41 +05:30
Sidharth VinodandGitHub dc9cff4a2d Merge pull request #342 from mmorel-35/patch-1
chore(dependabot) : add github-actions and docker
2021-09-08 10:54:09 +05:30
Matthieu MORELandGitHub b4f3e42da3 chore(dependabot) : add github-actions and docker 2021-09-08 07:05:22 +02:00
Sidharth VinodandGitHub c7e8e8625f Merge pull request #339 from mermaid-js/fix/Safari
rollback #288 due to #338
2021-09-08 10:15:25 +05:30
Sidharth Vinod 5e94ea222c rollback #288 due to #338 2021-09-08 10:08:13 +05:30
Sidharth Vinod 8e6898b5d5 Merge branch 'master' into daisyUI
* master:
  hide netlify on github
  format netlify
  hide netlify on github
  Fix clock
  Fix clock
  Update mermaid
  Fix test
  Fix test
  Fix test
  Fix test
  remove eslint ignors
  Fix test
  Add powered by netlify
2021-09-07 00:29:11 +05:30
Sidharth VinodandGitHub 7d1c3a153f Merge pull request #336 from mermaid-js/develop
Update mermaid
2021-09-07 00:26:42 +05:30
Sidharth VinodandGitHub 7641b2e25c Merge pull request #337 from mermaid-js/netlify
Netlify
2021-09-05 22:43:59 +05:30
Sidharth Vinod f9b92d6026 hide netlify on github 2021-09-05 17:59:39 +05:30
Sidharth Vinod 952791cb5f Merge branch 'master' into netlify
* master:
2021-09-05 17:55:18 +05:30
Sidharth Vinod d4110403e6 format netlify 2021-09-05 17:53:24 +05:30
Sidharth Vinod 533970d83f hide netlify on github 2021-09-05 17:49:18 +05:30
Sidharth VinodandGitHub bcd6bb5f11 Merge pull request #335 from mermaid-js/netlify
Add powered by netlify
2021-09-05 17:40:39 +05:30
Sidharth Vinod d40d476ea1 Fix clock 2021-09-05 17:34:22 +05:30
Sidharth Vinod 90bc10577e Fix clock 2021-09-05 17:33:34 +05:30
dependabot[bot]andGitHub 1e5a516679 chore(deps-dev): bump autoprefixer from 10.3.3 to 10.3.4
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.3.3 to 10.3.4.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.3...10.3.4)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-05 11:40:02 +00:00
Sidharth Vinod c213366181 Update mermaid 2021-09-05 17:07:36 +05:30
Sidharth Vinod 6d0919fcda Fix test 2021-09-05 17:05:42 +05:30
Sidharth Vinod 5818db68f7 Fix test 2021-09-05 16:50:32 +05:30
Sidharth Vinod 8a0a2c83eb Fix test 2021-09-05 16:50:10 +05:30
Sidharth Vinod 2c516f395e Fix test 2021-09-05 16:42:18 +05:30
Sidharth Vinod 7738e3ee48 remove eslint ignors 2021-09-05 16:41:01 +05:30
Sidharth Vinod f4fd865c81 Fix test 2021-09-05 16:40:11 +05:30
Sidharth Vinod 8bbfa59a32 Add powered by netlify 2021-09-05 16:33:59 +05:30
Sidharth Vinod 70ed3a4700 Add powered by netlify 2021-09-05 16:30:18 +05:30
Sidharth Vinod 0fd98ce271 add netlify badge 2021-09-05 16:17:02 +05:30
Sidharth Vinod 4e37ea9c8f test deploy 2021-09-05 16:09:57 +05:30
Sidharth Vinod 47bf6b8867 Merge branch 'master' into daisyUI
* master:
2021-09-03 22:56:04 +05:30
Sidharth VinodandGitHub c3ed8ae636 Merge pull request #311 from mermaid-js/develop
Develop
2021-09-03 22:55:39 +05:30
dependabot[bot]andGitHub cd42d0dee0 chore(deps-dev): bump @sveltejs/adapter-static
Bumps @sveltejs/adapter-static from 1.0.0-next.17 to 1.0.0-next.18.

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 14:24:18 +00:00
Sidharth Vinod dc47b749f2 Merge branch 'develop' into daisyUI
* develop:
  chore(deps): bump analytics from 0.7.13 to 0.7.14
  chore(deps-dev): bump svelte from 3.42.3 to 3.42.4
  chore(deps-dev): bump @typescript-eslint/parser from 4.29.2 to 4.30.0
2021-09-03 19:54:04 +05:30
Sidharth VinodandGitHub c0215f0e04 Merge pull request #331 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-3.42.4
chore(deps-dev): bump svelte from 3.42.3 to 3.42.4
2021-09-03 19:50:22 +05:30
Sidharth VinodandGitHub 644faf8700 Merge pull request #333 from mermaid-js/dependabot/npm_and_yarn/develop/analytics-0.7.14
chore(deps): bump analytics from 0.7.13 to 0.7.14
2021-09-03 19:50:05 +05:30
Sidharth Vinod 830ecaa8af update test 2021-09-03 19:38:59 +05:30
dependabot[bot]andGitHub 17a1ce6548 chore(deps): bump analytics from 0.7.13 to 0.7.14
Bumps [analytics](https://github.com/DavidWells/analytics) from 0.7.13 to 0.7.14.
- [Release notes](https://github.com/DavidWells/analytics/releases)
- [Commits](https://github.com/DavidWells/analytics/compare/analytics@0.7.13...analytics@0.7.14)

---
updated-dependencies:
- dependency-name: analytics
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 14:04:03 +00:00
dependabot[bot]andGitHub a5cf1a1cd6 chore(deps-dev): bump svelte from 3.42.3 to 3.42.4
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.42.3 to 3.42.4.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.42.3...v3.42.4)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 14:04:00 +00:00
Sidharth VinodandGitHub 23ffef7843 Merge pull request #329 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/parser-4.30.0
chore(deps-dev): bump @typescript-eslint/parser from 4.29.2 to 4.30.0
2021-09-03 19:30:02 +05:30
dependabot[bot]andGitHub ec23d055cc chore(deps-dev): bump @typescript-eslint/parser from 4.29.2 to 4.30.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.2 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 04:10:10 +00:00
Sidharth Vinod 0897aca3b9 update 2021-09-03 09:36:31 +05:30
Sidharth Vinod 05bcfb13ca Merge branch 'develop' into daisyUI
* develop: (50 commits)
  update
  chore(deps-dev): bump tailwindcss from 2.2.7 to 2.2.9
  chore(deps-dev): bump prettier-plugin-svelte from 2.3.1 to 2.4.0
  chore(deps-dev): bump @typescript-eslint/eslint-plugin
  chore(deps-dev): bump mocha from 9.1.0 to 9.1.1
  chore(deps-dev): bump husky from 7.0.1 to 7.0.2
  Comment support
  Add variables, types, and multiple refactors and fixes
  colons are brackets in class diagrams
  Remove unneccessary groups
  Refactor syntax highlighting
  chore(deps-dev): bump svelte-preprocess from 4.7.4 to 4.8.0
  chore(deps-dev): bump cypress from 8.3.0 to 8.3.1
  chore(deps-dev): bump @typescript-eslint/eslint-plugin
  chore(deps-dev): bump typescript from 4.3.5 to 4.4.2
  chore(deps-dev): bump autoprefixer from 10.3.1 to 10.3.3
  chore(deps-dev): bump svelte from 3.42.2 to 3.42.3
  Gitgraph options
  Directives highlighting
  Requirement diagrams
  ...
2021-09-03 09:36:20 +05:30
Sidharth Vinod 3402c86bf2 Merge branch 'develop' of https://github.com/mermaid-js/mermaid-live-editor into develop
* 'develop' of https://github.com/mermaid-js/mermaid-live-editor:
  chore(deps-dev): bump tailwindcss from 2.2.7 to 2.2.9
  chore(deps-dev): bump prettier-plugin-svelte from 2.3.1 to 2.4.0
2021-09-03 09:34:08 +05:30
Sidharth Vinod 5a307c3547 update 2021-09-03 09:34:04 +05:30
Sidharth VinodandGitHub 8c46f9a892 Merge pull request #328 from mermaid-js/dependabot/npm_and_yarn/develop/prettier-plugin-svelte-2.4.0
chore(deps-dev): bump prettier-plugin-svelte from 2.3.1 to 2.4.0
2021-09-03 09:33:22 +05:30
Sidharth VinodandGitHub 48f5853d03 Merge pull request #323 from mermaid-js/dependabot/npm_and_yarn/develop/tailwindcss-2.2.9
chore(deps-dev): bump tailwindcss from 2.2.7 to 2.2.9
2021-09-03 09:33:11 +05:30
dependabot[bot]andGitHub 8b39836353 chore(deps-dev): bump tailwindcss from 2.2.7 to 2.2.9
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.7 to 2.2.9.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.7...v2.2.9)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 03:59:20 +00:00
Sidharth VinodandGitHub 3c6b14cee3 Merge pull request #288 from Yash-Singh1/patch-2
Improve Syntax Highlighting
2021-09-03 09:28:53 +05:30
dependabot[bot]andGitHub 015e112e6b chore(deps-dev): bump prettier-plugin-svelte from 2.3.1 to 2.4.0
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/sveltejs/prettier-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 03:56:24 +00:00
Sidharth VinodandGitHub cb6bf6570d Merge pull request #325 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/eslint-plugin-4.30.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.29.3 to 4.30.0
2021-09-03 09:22:58 +05:30
Sidharth VinodandGitHub 8ee71a6f08 Merge pull request #326 from mermaid-js/dependabot/npm_and_yarn/develop/mocha-9.1.1
chore(deps-dev): bump mocha from 9.1.0 to 9.1.1
2021-09-03 09:22:49 +05:30
dependabot[bot]andGitHub 7ad1c2098c chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.29.3 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-02 06:15:36 +00:00
dependabot[bot]andGitHub 2c0d7db7cc chore(deps-dev): bump mocha from 9.1.0 to 9.1.1
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.0...v9.1.1)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-02 06:11:54 +00:00
Sidharth VinodandGitHub 5ce24780c0 Merge pull request #324 from mermaid-js/dependabot/npm_and_yarn/develop/husky-7.0.2
chore(deps-dev): bump husky from 7.0.1 to 7.0.2
2021-09-02 11:37:13 +05:30
dependabot[bot]andGitHub ad1cec76c7 chore(deps-dev): bump husky from 7.0.1 to 7.0.2
Bumps [husky](https://github.com/typicode/husky) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v7.0.1...v7.0.2)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-01 04:39:37 +00:00
Sidharth VinodandGitHub bdd6ca2c3d Merge pull request #317 from mermaid-js/dependabot/npm_and_yarn/develop/cypress-8.3.1
chore(deps-dev): bump cypress from 8.3.0 to 8.3.1
2021-09-01 10:05:45 +05:30
Sidharth VinodandGitHub 9f05ec4460 Merge pull request #318 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-preprocess-4.8.0
chore(deps-dev): bump svelte-preprocess from 4.7.4 to 4.8.0
2021-09-01 10:05:36 +05:30
Sidharth VinodandGitHub 6701dd2dd7 Merge pull request #319 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-eslint/eslint-plugin-4.29.3
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.29.2 to 4.29.3
2021-09-01 10:05:25 +05:30
Yash-Singh1 5bcb495569 Comment support 2021-08-29 19:42:27 -07:00
Yash-Singh1 4bdb5a0750 Add variables, types, and multiple refactors and fixes 2021-08-29 19:34:21 -07:00
Yash-Singh1 51c9488d0e colons are brackets in class diagrams 2021-08-29 12:46:21 -07:00
Yash-Singh1 65a1fa72a0 Remove unneccessary groups 2021-08-29 12:44:36 -07:00
Yash-Singh1 abc63488a1 Merge branch 'develop' of github.com:mermaid-js/mermaid-live-editor into patch-2 2021-08-29 12:02:32 -07:00
Yash-Singh1 a49819e120 Refactor syntax highlighting 2021-08-29 11:56:49 -07:00
dependabot[bot]andGitHub 980706b487 chore(deps-dev): bump svelte-preprocess from 4.7.4 to 4.8.0
Bumps [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) from 4.7.4 to 4.8.0.
- [Release notes](https://github.com/sveltejs/svelte-preprocess/releases)
- [Changelog](https://github.com/sveltejs/svelte-preprocess/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte-preprocess/compare/v4.7.4...v4.8.0)

---
updated-dependencies:
- dependency-name: svelte-preprocess
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-28 04:01:58 +00:00
dependabot[bot]andGitHub 7fc789ab0f chore(deps-dev): bump cypress from 8.3.0 to 8.3.1
Bumps [cypress](https://github.com/cypress-io/cypress) from 8.3.0 to 8.3.1.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](https://github.com/cypress-io/cypress/compare/v8.3.0...v8.3.1)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-28 04:01:45 +00:00
dependabot[bot]andGitHub f245180882 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.29.2 to 4.29.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.3/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-28 04:01:27 +00:00
Sidharth VinodandGitHub bb7b4d3f78 Merge pull request #313 from mermaid-js/dependabot/npm_and_yarn/develop/autoprefixer-10.3.3
chore(deps-dev): bump autoprefixer from 10.3.1 to 10.3.3
2021-08-28 09:27:53 +05:30
Sidharth VinodandGitHub d617524172 Merge pull request #312 from mermaid-js/dependabot/npm_and_yarn/develop/svelte-3.42.3
chore(deps-dev): bump svelte from 3.42.2 to 3.42.3
2021-08-27 22:01:23 +05:30
Sidharth VinodandGitHub 834db65ecd Merge pull request #316 from mermaid-js/dependabot/npm_and_yarn/develop/typescript-4.4.2
chore(deps-dev): bump typescript from 4.3.5 to 4.4.2
2021-08-27 22:01:07 +05:30
dependabot[bot]andGitHub 4238f1285c chore(deps-dev): bump typescript from 4.3.5 to 4.4.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-27 13:03:40 +00:00
dependabot[bot]andGitHub bba0ae4ba1 chore(deps-dev): bump autoprefixer from 10.3.1 to 10.3.3
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.3.1 to 10.3.3.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.1...10.3.3)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-27 13:02:53 +00:00
dependabot[bot]andGitHub f612a5c703 chore(deps-dev): bump svelte from 3.42.2 to 3.42.3
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.42.2 to 3.42.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/compare/v3.42.2...v3.42.3)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-27 13:02:43 +00:00
Yash-Singh1 0b6dbf6857 Merge branch 'develop' of github.com:mermaid-js/mermaid-live-editor into patch-2 2021-08-22 15:41:41 -07:00
Yash-Singh1 1358185692 Gitgraph options 2021-08-22 14:54:26 -07:00
Yash-Singh1 b8d4ada693 Directives highlighting 2021-08-22 13:59:11 -07:00
Yash-Singh1 b34942355f Requirement diagrams 2021-08-22 13:06:49 -07:00
Yash-Singh1 c8e217d0c9 Git graphs 2021-08-22 11:47:29 -07:00
Yash-Singh1 536db58698 Pie charts 2021-08-22 11:45:07 -07:00
Yash-Singh1 d6d987e962 Ganntt diagrams 2021-08-22 11:17:20 -07:00
Yash-Singh1 4ae314c5c0 User-journey diagrams 2021-08-22 11:14:11 -07:00
Yash-Singh1 6868b0d761 Entity relationship diagrams 2021-08-22 11:11:28 -07:00
Yash-Singh1 0dd010336a States are blocks and notes 2021-08-22 11:04:14 -07:00
Yash-Singh1 d7e7121666 Allow scroll behind end to prevent suggestion cuts 2021-08-22 11:01:43 -07:00
Yash-Singh1 bfa35ca86e States 2021-08-22 11:00:52 -07:00
Yash-Singh1 d7a6ac2aa7 stateDiagram-v2 2021-08-22 10:57:20 -07:00
Yash-Singh1 3f843f29bf directives arent comments 2021-08-22 10:06:37 -07:00
Yash-Singh1 bcb8031c8f style comments 2021-08-22 09:52:31 -07:00
Yash-Singh1 b60718a18e Prevent dup keywords 2021-08-22 09:50:35 -07:00
Yash-Singh1 db5ce6b74b block keyword highlighting and class is also a normal keyword 2021-08-22 09:45:46 -07:00
Sidharth Vinod a1a085e526 fix: Writable 2021-08-22 19:32:35 +05:30
Sidharth Vinod 6675267d45 Merge branch 'master' into develop
* master:
  fix: renovate
  Create renovate.json
  fix(gist): warnings
  Gist URL
  Fix base path
  Fix tests
  Fix gist loading and code not updating issue
  Fix loading issue
  Loading Gist
  More tests
  Format names
  Fix test
  Show git revision history
  Fix file name
  Update file names
  Fix types
  Load data from urls
  Load data from gists
2021-08-22 18:56:00 +05:30
Sidharth Vinod 00bdd4500e chore: Update svelte 2021-08-22 18:55:48 +05:30
Yash-Singh1 7a04384b7d class is a block and its snippet 2021-08-21 21:00:06 -07:00
Yash-Singh1 ea0e8b9883 class, annotations, callbacks, classes, and much more 2021-08-21 20:55:50 -07:00
Yash-Singh1 7ef1f1325b finally...done...with...regexp 2021-08-21 20:30:01 -07:00
Yash-Singh1 3b5af96ab0 Keyword snippets 2021-08-21 19:38:03 -07:00
Yash-Singh1 3a4c437536 Auto closing brackets 2021-08-21 19:21:24 -07:00
Sidharth Vinod 4de2c97fbe Merge branch 'master' into daisyUI
* master:
  chore: Update monaco
  Revert "chore(deps-dev): bump @sveltejs/kit from 1.0.0-next.147 to 1.0.0-next.154"
  chore(deps-dev): bump @sveltejs/kit
  chore(deps-dev): bump cssnano from 5.0.7 to 5.0.8
  chore(deps-dev): bump mocha from 9.0.3 to 9.1.0
  chore(deps-dev): bump eslint-plugin-tailwindcss from 1.14.1 to 1.14.3
  chore(deps-dev): bump svelte from 3.42.1 to 3.42.2
  chore(deps-dev): bump @typescript-eslint/eslint-plugin
  chore(deps-dev): bump @typescript-eslint/parser from 4.29.1 to 4.29.2
  chore(deps-dev): bump cypress from 8.2.0 to 8.3.0
  chore(deps): bump @macfja/svelte-persistent-store from 1.1.1 to 1.2.0
  fix: renovate
  Create renovate.json
2021-08-21 09:47:25 +05:30
Sidharth VinodandGitHub dcaa313c0b Merge pull request #303 from mermaid-js/develop
Develop
2021-08-21 09:46:17 +05:30
Sidharth Vinod 2f7b0973fd fix: resize CSS 2021-08-21 09:26:39 +05:30
Sidharth Vinod 354ae063d7 fix: ResizeHandler 2021-08-21 09:24:42 +05:30
Sidharth Vinod 8d727e5cac fix: Auto sync margin 2021-08-21 09:14:20 +05:30
Sidharth Vinod 8957627cfc fix: Scroll 2021-08-21 08:58:05 +05:30
Sidharth Vinod 2c31be0b02 chore: Update monaco 2021-08-21 08:57:35 +05:30
Sidharth Vinod 626a600dae chore: Update daisyUI 2021-08-21 08:52:22 +05:30
Sidharth Vinod 045ab4df22 fix: Aqua dark 2021-08-20 23:44:53 +05:30
Sidharth Vinod 8956201dab fix: Button casing 2021-08-20 23:41:50 +05:30
Sidharth VinodandGitHub 0f63e777ae Merge pull request #310 from mermaid-js/revert-309-dependabot/npm_and_yarn/develop/sveltejs/kit-1.0.0-next.154
Revert "chore(deps-dev): bump @sveltejs/kit from 1.0.0-next.147 to 1.0.0-next.154"
2021-08-20 23:11:13 +05:30
Sidharth Vinod 19a6190b56 feat: Proper theme support 2021-08-19 00:19:22 +05:30
Yash-Singh1 c5348e9a81 Add more code block keywords 2021-08-17 17:44:47 -07:00
Yash-Singh1 7983b5d94c Different color for keywords 2021-08-17 17:43:20 -07:00
Yash-Singh1 ff48d906ae Non-bold non-type-keywords and orientations 2021-08-17 17:36:45 -07:00
Yash-Singh1 ae2880c8a2 Asymmetric, rhombus, hexagonal nodes 2021-08-17 17:11:22 -07:00
Yash-Singh1 ca07ed764d HTML Entities 2021-08-17 17:01:08 -07:00
Yash-Singh1 76a70be939 Proper theme name 2021-08-17 16:54:23 -07:00
Yash-Singh1 56cd1b5a78 Merge branch 'develop' of github.com:mermaid-js/mermaid-live-editor into patch-2 2021-08-16 18:05:34 -07:00
Yash-Singh1 3b63e9a9aa Finalize sequence diagrams 2021-08-16 17:57:54 -07:00
Yash-Singh1 b73afb400b Info diagrams 2021-08-16 17:31:21 -07:00
Sidharth Vinod a1b01cae2c fix: renovate 2021-08-16 21:50:28 +05:30
Sidharth VinodandGitHub 64b213aad9 Create renovate.json 2021-08-16 21:47:13 +05:30
Sidharth Vinod ffe260893d Merge branch 'master' of https://github.com/mermaid-js/mermaid-live-editor into daisyUI
* 'master' of https://github.com/mermaid-js/mermaid-live-editor:
  Lint
  Pointer cursor on card
2021-08-16 09:18:23 +05:30
Sidharth Vinod 166d08532b testing text 2021-08-16 09:15:53 +05:30
Sidharth Vinod a67481a4e7 Merge branch 'develop' of https://github.com/mermaid-js/mermaid-live-editor
* 'develop' of https://github.com/mermaid-js/mermaid-live-editor:
  Lint
  Pointer cursor on card
2021-08-16 08:52:40 +05:30
Yash-Singh1 b4814d7b13 Fix for + and - 2021-08-15 17:36:26 -07:00
Yash-Singh1 45b1c9f32c Merge branch 'develop' of github.com:mermaid-js/mermaid-live-editor into patch-2 2021-08-15 17:34:03 -07:00
Sidharth Vinod 2acde71f37 feat: Move theme into navbar 2021-08-16 00:17:29 +05:30
Sidharth Vinod 73fc573a2d feat: daisyUI 2021-08-16 00:09:30 +05:30
Sidharth Vinod d5a433bcdc feat: add daisyUI 2021-08-15 23:07:37 +05:30
Sidharth VinodandGitHub c5de0dca9f Merge pull request #113 from mermaid-js/gists
Load data from gists
2021-08-15 20:04:12 +05:30
Sidharth Vinod 76aef33868 Merge branch 'master' of https://github.com/mermaid-js/mermaid-live-editor into gists
* 'master' of https://github.com/mermaid-js/mermaid-live-editor: (50 commits)
  chore: update deps
  chore: update deps
  chore: update deps
  update cache logic
  fix: remove yarn cache
  chore: update deps
  chore: update deps
  chore: update deps
  chore: update deps
  fix: editor undefined issue
  Upgrade of Mermaid to version 8.11.4
  Update mermaid 8.11.3
  Update
  Fix tests
  Update mermaid
  Update deps
  fix: mermaid import
  Typo fix
  Bump autoprefixer from 10.3.0 to 10.3.1
  Bump eslint from 7.29.0 to 7.30.0
  ...
2021-08-15 19:58:09 +05:30
Yash SinghandGitHub dec0c58092 More arrows 2021-08-14 21:49:17 -07:00
Sidharth Vinod 9801dd606d fix(gist): warnings 2021-06-15 21:26:27 +05:30
Sidharth Vinod b762d1a44a Merge branch 'master' into gists
* master: (28 commits)
  fix: SecurityLevel
  Trigger an alert when securityLevel is stripped
  Only strip securityLevel option when state is loaded from URL
  Fix lint issues
  Update monaco
  Bump tslib from 2.2.0 to 2.3.0
  Bump monaco-editor from 0.24.0 to 0.25.0
  Bump eslint from 7.27.0 to 7.28.0
  Bump cssnano from 5.0.5 to 5.0.6
  Bump postcss from 8.3.0 to 8.3.2
  Bump eslint-plugin-tailwindcss from 1.9.1 to 1.13.2
  Bump cypress from 7.4.0 to 7.5.0
  Handle <img> tag support in graphs
  Force securityLevel option to 'strict' by default to mitigate XSS attacks
  Bump mocha from 8.4.0 to 9.0.0
  Bump @typescript-eslint/eslint-plugin from 4.26.0 to 4.26.1
  Bump prettier from 2.3.0 to 2.3.1
  Bump @typescript-eslint/parser from 4.26.0 to 4.26.1
  Bump normalize-url from 4.5.0 to 4.5.1
  Fix typo in grammer
  ...
2021-06-15 21:20:28 +05:30
Sidharth Vinod 88f9c3b6ea Gist URL 2021-06-05 17:35:44 +05:30
Sidharth Vinod 29ffa1a0a4 Fix base path 2021-06-05 16:31:22 +05:30
Sidharth Vinod 103f02bb90 Fix tests 2021-06-05 16:26:37 +05:30
Sidharth Vinod bf8160e31e Fix gist loading and code not updating issue 2021-06-05 15:55:59 +05:30
Sidharth Vinod 5961c7d451 Fix loading issue 2021-06-05 15:44:26 +05:30
Sidharth Vinod cc3f4fabc2 Loading Gist 2021-06-05 15:31:22 +05:30
Sidharth Vinod aed37c19c7 More tests 2021-06-05 12:18:59 +05:30
Sidharth Vinod 43bac28b30 Format names 2021-06-05 12:13:19 +05:30
Sidharth Vinod ed2057312a Fix test 2021-06-05 11:57:39 +05:30
Sidharth Vinod fdff260f7f Show git revision history 2021-06-05 11:52:13 +05:30
Sidharth Vinod f5878feaa5 Fix file name 2021-06-05 02:53:35 +05:30
Sidharth Vinod aef1afe3f4 Update file names 2021-06-05 02:48:06 +05:30
Sidharth Vinod f2cf3e8111 Fix types 2021-06-05 02:27:42 +05:30
Sidharth Vinod 32351ab24e Load data from urls 2021-06-05 02:25:12 +05:30
Sidharth Vinod bd3b39a2c5 Merge branch 'master' into gists
* master: (338 commits)
  Update build image version
  Update dependencies
  Remove test run on push
  Update dependencies
  Fix docker build issue
  Bump typescript from 4.2.4 to 4.3.2
  Bump autoprefixer from 10.2.5 to 10.2.6
  Enable recording
  Bump tailwindcss from 2.1.2 to 2.1.4
  Bump @macfja/svelte-persistent-store from 1.1.0 to 1.1.1
  Bump @typescript-eslint/eslint-plugin from 4.22.1 to 4.26.0
  Bump eslint-plugin-tailwindcss from 1.8.0 to 1.9.1
  Disable lint
  Fix snapshot
  Fix editor
  Touchup
  Bump prettier from 2.2.1 to 2.3.0
  Test
  Delete docs
  Fix snapshot
  ...
2021-06-05 00:44:55 +05:30
Sidharth Vinod 6708615c48 Load data from gists 2021-03-01 00:25:31 +05:30
52 changed files with 2422 additions and 2345 deletions
+5
View File
@@ -0,0 +1,5 @@
**/node_modules
**/.git
**/.svelte-kit
**/dist
**/docs
+13 -3
View File
@@ -7,8 +7,17 @@ module.exports = {
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier'
],
plugins: ['svelte3', 'tailwindcss', '@typescript-eslint'],
ignorePatterns: ['docs/*', '*.cjs', '*.md', 'snapshots.js', 'svelte.config.js', 'package.json'],
plugins: ['svelte3', 'tailwindcss', '@typescript-eslint', 'es'],
ignorePatterns: [
'docs/*',
'*.cjs',
'*.md',
'snapshots.js',
'svelte.config.js',
'renovate.json',
'package.json',
'tsconfig.json'
],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
@@ -33,6 +42,7 @@ module.exports = {
}
],
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off'
'@typescript-eslint/no-unsafe-assignment': 'off',
'es/no-regexp-lookbehind-assertions': 'error'
}
};
+20 -5
View File
@@ -1,8 +1,23 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
target-branch: 'develop'
- package-ecosystem: docker
directory: /
target-branch: develop
schedule:
interval: 'weekly'
day: 'friday'
interval: weekly
day: friday
time: "07:00"
- package-ecosystem: github-actions
directory: /
target-branch: develop
schedule:
interval: weekly
day: friday
time: "07:00"
- package-ecosystem: npm
directory: /
target-branch: develop
schedule:
interval: weekly
day: friday
time: "07:00"
+1
View File
@@ -9,6 +9,7 @@ on:
jobs:
cypress-run:
runs-on: ubuntu-latest
# Update after https://github.com/cypress-io/cypress-docker-images/issues/487
container: cypress/browsers:node14.16.0-chrome90-ff88
steps:
+3 -1
View File
@@ -6,13 +6,14 @@ on:
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- name: Checkout
uses: actions/checkout@v2
@@ -45,6 +46,7 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
+1 -1
View File
@@ -8,7 +8,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: 'retained'
+16
View File
@@ -0,0 +1,16 @@
name: Update Browserslist
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx browserslist@latest --update-db
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: 'Update Browserslist'
@@ -0,0 +1,20 @@
name: Update Monaco-editor
on:
workflow_dispatch:
pull_request:
types: [opened]
branches:
- 'dependabot/npm_and_yarn/develop/monaco-editor-**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ./bin/update-monaco
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: 'Update Monaco-editor'
+1 -1
View File
@@ -6,7 +6,7 @@
# Stop : press ctrl + c
# or
# docker stop mermaid-live-editor
FROM node:14.17.0 as mermaid-live-editor-builder
FROM node:17.0.1 as mermaid-live-editor-builder
COPY --chown=node:node . /home
WORKDIR /home
RUN yarn install
+8
View File
@@ -0,0 +1,8 @@
FROM node:17
WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN npm install
COPY . .
RUN ls
CMD ["yarn", "dev"]
+17 -3
View File
@@ -1,4 +1,4 @@
[![Mermaid Live Editor](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/detailed/2ckppp/master&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/2ckppp/runs) [![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)
[![Mermaid Live Editor](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/detailed/2ckppp/master&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/2ckppp/runs) [![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)[![Netlify Status](https://api.netlify.com/api/v1/badges/27fa023d-7c73-4a3f-9791-b3b657a47100/deploy-status)](https://app.netlify.com/sites/mermaidjs/deploys)
# Contributors are welcome!
@@ -17,14 +17,27 @@ Edit, preview and share mermaid charts/diagrams.
## Live demo
You can try out a live version [here](https://mermaid-js.github.io/mermaid-live-editor/).
You can try out a live version [here](https://mermaid.live/).
## Docker
### Run published image
```bash
docker run --publish 8000:80 ghcr.io/mermaid-js/mermaid-live-editor
```
### To configure renderer URL
When building, Set the Environment variable MERMAID_RENDERER_URL to the rendering service.
Default is `https://mermaid.ink`
### Development
```bash
docker compose up --build
```
Then open http://localhost:8000
## Setup
@@ -47,6 +60,7 @@ This app is created with Svelte Kit.
## Release
When a PR is created targeting master, it will be built and deployed as a beta in http://mermaid-js.github.io/mermaid-live-editor/beta
When a PR is created targeting master, it will be built and deployed by Netlify.
The URL will be indicated in a Comment in the PR.
Once the PR is merged, it will automatically be released.
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
monacoVersion="$(jq -r '.dependencies."monaco-editor"' package.json)"
monacoVersion="${monacoVersion:1}"
if [[ $(uname) == "Darwin" ]];
then
sed -i '' -E "s/monaco-editor\/[^/]*/monaco-editor\/$monacoVersion/g" ./src/app.html
else
sed -i'' -E "s/monaco-editor\/[^/]*/monaco-editor\/$monacoVersion/g" ./src/app.html
fi
+6 -2
View File
@@ -1,9 +1,7 @@
describe('Check actions', () => {
// eslint-disable-next-line mocha/no-hooks-for-single-case
beforeEach(() => {
cy.clearLocalStorage();
cy.visit('/edit');
cy.contains('Actions').click();
});
it('should update markdown code', () => {
cy.get('#markdown')
@@ -17,4 +15,10 @@ describe('Check actions', () => {
});
});
});
it('should load gists from URL', () => {
cy.get('#gist').type('https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a');
cy.contains('Load Gist').click();
cy.contains('Go shopping!!');
});
});
+4 -1
View File
@@ -1,8 +1,12 @@
describe('Save History', () => {
beforeEach(() => {
cy.clock();
cy.clearLocalStorage();
cy.visit('/edit');
cy.contains('Actions').click();
cy.contains('History').click();
});
it('should save when clicked', () => {
cy.get('#historyList').find('li').should('have.length', 0);
cy.get('#historyList').contains('No items in History');
@@ -43,7 +47,6 @@ describe('Save History', () => {
});
it('should auto save history', () => {
cy.clock();
cy.get('#editor').type(' C --> HistoryTest');
cy.tick(70000);
cy.contains('Timeline').click();
+36 -3
View File
@@ -17,9 +17,8 @@ describe('Site Loads', () => {
);
cy.url().should(
'include',
'/edit/eyJjb2RlIjoiZ3JhcGggVERcbiAgICBBW0NocmlzdG1hc10gLS0-fEdldCBtb25leXwgQihHbyBzaG9wcGluZylcbiAgICBCIC0tPiBDe0xldCBtZSB0aGlua31cbiAgICBDIC0tPnxPbmV8IERbTGFwdG9wXVxuICAgIEMgLS0-fFR3b3wgRVtpUGhvbmVdXG4gICAgQyAtLT58VGhyZWV8IEZbZmE6ZmEtY2FyIENhcl0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9LCJ1cGRhdGVFZGl0b3IiOmZhbHNlfQ'
'/edit#eyJjb2RlIjoiZ3JhcGggVERcbiAgICBBW0NocmlzdG1hc10gLS0-fEdldCBtb25leXwgQihHbyBzaG9wcGluZylcbiAgICBCIC0tPiBDe0xldCBtZSB0aGlua31cbiAgICBDIC0tPnxPbmV8IERbTGFwdG9wXVxuICAgIEMgLS0-fFR3b3wgRVtpUGhvbmVdXG4gICAgQyAtLT58VGhyZWV8IEZbZmE6ZmEtY2FyIENhcl0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9LCJ1cGRhdGVFZGl0b3IiOmZhbHNlfQ'
);
cy.contains('History').click();
cy.getLocalStorage('codeStore').snapshot();
});
@@ -32,6 +31,35 @@ describe('Site Loads', () => {
cy.contains('classDiagram');
});
it('should load diagram from gist', () => {
cy.visit(`/edit?gist=https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a`);
cy.contains('History').click();
cy.contains('Go shopping!!');
cy.contains('Revisions');
cy.contains('sidharthv96 v8f8f1e2');
cy.contains('sidharthv96 v7851e19');
cy.getLocalStorage('codeStore').snapshot();
});
it('should load diagram from gist revision', () => {
cy.visit(
'/edit?gist=https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/ec9b4ab0e41e4ff6287326cd3cb47affd7851e19'
);
cy.contains('History').click();
cy.contains('Party');
cy.contains('Revisions');
cy.contains('sidharthv96 v7851e19');
cy.getLocalStorage('codeStore').snapshot();
});
it('should load diagram from raw files', () => {
cy.visit(
'/edit?code=https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/code.mmd&config=https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/config.json'
);
cy.contains('Party');
cy.getLocalStorage('codeStore').snapshot();
});
it('should prevent setting the "securityLevel" option via URL', () => {
const b64State = toBase64(
`{"code":"graph TD\\nA[\\"<img src='https://via.placeholder.com/64' width=64 />\\"]","mermaid":"{\\"securityLevel\\": \\"loose\\", \\"theme\\": \\"forest\\"}","updateEditor":true,"autoSync":true,"updateDiagram":true}`,
@@ -44,7 +72,7 @@ describe('Site Loads', () => {
cy.contains('securityLevel').should('not.exist');
cy.get('#view').find('img').should('not.exist');
cy.get('#view').contains('<img');
cy.get('#view').contains('src="https://via.placeholder.com/64"');
cy.get('#view').contains(`src='https://via.placeholder.com/64'`);
});
it('should allow persisting "securityLevel" using confirm dialogue', () => {
@@ -59,4 +87,9 @@ describe('Site Loads', () => {
cy.contains('securityLevel');
cy.get('#view').find('img').should('be.visible');
});
it('should show troubleshooting steps if loading fails', () => {
cy.visit('/#/edit/eyJjb2RlIjoiZ3JhcGggVERcbiAg');
cy.contains('Please Click here to Raise an issue in github.');
});
});
+57
View File
@@ -0,0 +1,57 @@
describe('Test themes', () => {
describe('Test light themes', () => {
beforeEach(() => {
cy.clearLocalStorage();
cy.visit('/edit', {
onBeforeLoad(win) {
cy.stub(win, 'matchMedia')
.callThrough()
.withArgs('(prefers-color-scheme: dark)')
.returns({
matches: false
});
}
});
cy.contains('Change Theme').click();
});
it('should set light theme as default', () => {
cy.contains('light').parent().should('have.class', 'bordered');
cy.contains('dark').parent().should('not.have.class', 'bordered');
cy.getLocalStorage('themeStore').snapshot();
});
it('should change themes when clicked', () => {
cy.contains('light').parent().should('have.class', 'bordered');
cy.contains('cupcake').click();
cy.contains('cupcake').parent().should('have.class', 'bordered');
cy.contains('light').parent().should('not.have.class', 'bordered');
cy.contains('dark').parent().should('not.have.class', 'bordered');
cy.getLocalStorage('themeStore').snapshot();
});
});
describe('Test dark mode', () => {
// eslint-disable-next-line mocha/no-hooks-for-single-case
beforeEach(() => {
cy.clearLocalStorage();
cy.visit('/edit', {
onBeforeLoad(win) {
cy.stub(win, 'matchMedia')
.callThrough()
.withArgs('(prefers-color-scheme: dark)')
.returns({
matches: true
});
}
});
cy.contains('Change Theme').click();
});
it('should set dark theme as default', () => {
cy.contains('light').parent().should('not.have.class', 'bordered');
cy.contains('dark').parent().should('have.class', 'bordered');
cy.getLocalStorage('themeStore').snapshot();
});
});
});
+35 -2
View File
@@ -4,10 +4,19 @@ module.exports = {
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":true,\"autoSync\":true,\"updateDiagram\":true}"
},
"Check Redirect from old URL": {
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":false}"
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true}"
},
"should load diagram from gist": {
"1": "{\"code\":\"graph TD\\n A[Party] -->|Get money| B(Go shopping!!)\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"forest\\\",\\n \\\"test\\\": \\\"hello world\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true,\"loader\":{\"type\":\"gist\",\"config\":{\"url\":\"https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a\"}}}"
},
"should load diagram from gist revision": {
"1": "{\"code\":\"graph TD\\n A[Party] -->|Get money| B(Go shopping)\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"forest\\\",\\n \\\"test\\\": \\\"hello\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true,\"loader\":{\"type\":\"gist\",\"config\":{\"url\":\"https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/ec9b4ab0e41e4ff6287326cd3cb47affd7851e19\"}}}"
},
"should load diagram from raw files": {
"1": "{\"code\":\"graph TD\\n A[Party] -->|Get money| B(Go shopping!!)\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"forest\\\",\\n \\\"test\\\": \\\"hello world\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true,\"loader\":{\"type\":\"files\",\"config\":{\"codeURL\":\"https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/code.mmd\",\"configURL\":\"https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/config.json\"}}}"
}
},
"__version": "8.2.0",
"__version": "8.5.0",
"Auto sync tests": {
"should dim diagram when code is edited": {
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n C --> Test\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":false,\"updateDiagram\":false}"
@@ -15,5 +24,29 @@ module.exports = {
"should not dim diagram when code is in sync": {
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n C --> Testing\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":false}"
}
},
"Test themes": {
"should set light theme as default": {
"1": "{\"theme\":\"light\",\"isDark\":false}"
},
"should change themes when clicked": {
"1": "{\"theme\":\"cupcake\",\"isDark\":false}"
},
"should set dark theme as default": {
"1": "{\"theme\":\"dark\",\"isDark\":true}"
},
"Test light themes": {
"should set light theme as default": {
"1": "{\"theme\":\"light\",\"isDark\":false}"
},
"should change themes when clicked": {
"1": "{\"theme\":\"cupcake\",\"isDark\":false}"
}
},
"Test dark mode": {
"should set dark theme as default": {
"1": "{\"theme\":\"dark\",\"isDark\":true}"
}
}
}
}
+11
View File
@@ -0,0 +1,11 @@
version: '3.7'
services:
mermaid:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./src:/app/src
ports:
- 8080:8080
- 24678:24678
+30 -27
View File
@@ -2,7 +2,7 @@
"name": "mermaid-live-editor",
"version": "2.0.67",
"scripts": {
"dev": "svelte-kit dev",
"dev": "svelte-kit dev --host 0.0.0.0",
"build": "svelte-kit build",
"preview": "svelte-kit preview",
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
@@ -15,46 +15,49 @@
},
"devDependencies": {
"@cypress/snapshot": "^2.1.7",
"@sveltejs/adapter-static": "1.0.0-next.16",
"@sveltejs/kit": "1.0.0-next.147",
"@sveltejs/adapter-static": "1.0.0-next.21",
"@sveltejs/kit": "1.0.0-next.196",
"@types/mermaid": "^8.2.7",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"autoprefixer": "^10.3.1",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"autoprefixer": "^10.4.0",
"chai": "^4.3.4",
"cssnano": "^5.0.8",
"cypress": "8.3.0",
"cypress-localstorage-commands": "^1.5.0",
"cssnano": "^5.0.10",
"cypress": "8.7.0",
"cypress-localstorage-commands": "^1.6.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-es": "^4.1.0",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-postcss-modules": "^1.2.1",
"eslint-plugin-svelte3": "^3.2.0",
"eslint-plugin-tailwindcss": "^1.14.3",
"husky": "^7.0.1",
"lint-staged": "^11.1.2",
"mocha": "^9.1.0",
"postcss": "^8.3.6",
"eslint-plugin-svelte3": "^3.2.1",
"eslint-plugin-tailwindcss": "^1.17.1",
"husky": "^7.0.4",
"lint-staged": "^11.2.6",
"mocha": "^9.1.3",
"node-html-parser": "^5.1.0",
"postcss": "^8.3.11",
"postcss-load-config": "^3.1.0",
"prettier": "~2.3.2",
"prettier-plugin-svelte": "^2.3.1",
"svelte": "^3.42.2",
"svelte-preprocess": "^4.7.4",
"tailwindcss": "^2.2.7",
"prettier": "~2.4.1",
"prettier-plugin-svelte": "^2.4.0",
"svelte": "^3.44.1",
"svelte-preprocess": "^4.9.8",
"tailwindcss": "^2.2.19",
"tslib": "^2.3.1",
"typescript": "^4.3.5"
"typescript": "^4.4.4"
},
"type": "module",
"dependencies": {
"@analytics/google-analytics": "^0.5.3",
"@macfja/svelte-persistent-store": "^1.2.0",
"analytics": "^0.7.13",
"js-base64": "^3.6.1",
"mermaid": "^8.11.4",
"analytics": "^0.7.18",
"daisyui": "1.16.2",
"js-base64": "^3.7.2",
"mermaid": "8.13.4",
"moment": "^2.29.1",
"monaco-editor": "^0.25.2",
"random-word-slugs": "^0.0.5"
"monaco-editor": "^0.30.1",
"random-word-slugs": "^0.1.6"
},
"lint-staged": {
"*.{ts,svelte,js,css,md,json}": [
+28
View File
@@ -0,0 +1,28 @@
{
"extends": [
"config:base",
":rebaseStalePrs",
"group:allNonMajor",
"schedule:earlyMondays",
":automergeMinor",
":automergeTesters",
":automergeLinters",
":automergeTypes",
":automergePatch"
],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
},
{
"matchDatasources": ["npm"],
"stabilityDays": 3
}
],
"dependencyDashboard": true,
"major": {
"dependencyDashboardApproval": true
},
"dependencyDashboardAutoclose": true
}
+6 -6
View File
@@ -8,7 +8,7 @@
name="og:image"
content="https://github.com/mermaid-js/mermaid/raw/develop/img/header.png"
/>
<link rel="canonical" href="https://mermaid-js.github.io/mermaid-live-editor/" />
<link rel="canonical" href="https://mermaid.live" />
<meta
name="description"
content="Simplify documentation and avoid heavy tools. Open source Visio Alternative. Commonly used for explaining your code! Mermaid is a simple markdown-like script language for generating charts from text via javascript."
@@ -21,27 +21,27 @@
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.25.2/min/vs/editor/editor.main.min.css"
href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs/editor/editor.main.min.css"
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<script>
var require = {
paths: { vs: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.25.2/min/vs' }
paths: { vs: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs' }
};
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.25.2/min/vs/loader.min.js"
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs/loader.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.25.2/min/vs/editor/editor.main.nls.min.js"
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs/editor/editor.main.nls.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.25.2/min/vs/editor/editor.main.js"
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs/editor/editor.main.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
+3 -7
View File
@@ -2,13 +2,9 @@
@tailwind components;
@tailwind utilities;
.nav-btn {
@apply lg:p-2 py-3 px-0 block border-b-2 border-transparent hover:border-white;
}
.btn {
@apply bg-indigo-500 hover:bg-indigo-700 rounded px-4 shadow;
.input {
@apply flex-1 border-primary border-solid border-2 rounded;
}
.action-btn {
@apply rounded p-2 bg-indigo-400 shadow flex-auto text-white hover:bg-indigo-500;
@apply btn btn-primary;
}
+80 -24
View File
@@ -1,7 +1,9 @@
<script lang="ts">
import { browser } from '$app/env';
import Card from '$lib/components/card/card.svelte';
import type { State } from '$lib/types';
import { codeStore } from '$lib/util/state';
import { rendererUrl } from '$lib/util/env';
import { base64State, codeStore } from '$lib/util/state';
import { toBase64 } from 'js-base64';
import moment from 'moment';
@@ -105,65 +107,119 @@
);
};
const onCopyMarkdown = (event: Event) => {
event.target.select();
const onCopyMarkdown = () => {
document.getElementById('markdown').select();
document.execCommand('Copy');
};
let gistURL = '';
codeStore.subscribe((state) => {
if (state.loader?.type === 'gist') {
// @ts-ignore Gist will have url
gistURL = state.loader.config.url;
}
});
const loadGist = () => {
if (!gistURL) {
alert('Please enter a Gist URL first');
}
window.location.href = `${window.location.pathname}?gist=${gistURL}`;
};
let iUrl: string;
let svgUrl: string;
let mdCode: string;
let imagemodeselected = 'auto';
let userimagesize = 1080;
codeStore.subscribe((state: State) => {
const stateCopy = JSON.parse(JSON.stringify(state));
let isNetlify = false;
if (browser && ['mermaid.live', 'netlify'].some((path) => window.location.host.includes(path))) {
isNetlify = true;
}
base64State.subscribe((encodedState: string) => {
const stateCopy = JSON.parse(JSON.stringify($codeStore));
if (typeof stateCopy.mermaid === 'string') {
stateCopy.mermaid = JSON.parse(stateCopy.mermaid);
}
const b64Code = toBase64(JSON.stringify(stateCopy), true);
iUrl = `https://mermaid.ink/img/${b64Code}`;
svgUrl = `https://mermaid.ink/svg/${b64Code}`;
mdCode = `[![](${iUrl})](${window.location.protocol}//${window.location.host}${window.location.pathname}#${window.location.hash})`;
iUrl = `${rendererUrl}/img/${b64Code}`;
svgUrl = `${rendererUrl}/svg/${b64Code}`;
mdCode = `[![](${iUrl})](${window.location.protocol}//${window.location.host}${window.location.pathname}#${encodedState})`;
});
</script>
<Card title="Actions" isOpen={false}>
<Card title="Actions" isOpen={true}>
<div class="flex flex-wrap gap-2 m-2">
{#if isClipboardAvailable()}
<button class="action-btn w-full" on:click={onCopyClipboard}
><i class="far fa-copy" /> Copy Image to clipboard
><i class="far fa-copy mr-2" /> Copy Image to clipboard
</button>
{/if}
<button class="action-btn flex-auto" on:click={onDownloadPNG}>
<i class="fas fa-download" /> PNG
<i class="fas fa-download mr-2" /> PNG
</button>
<button class="action-btn flex-auto" on:click={onDownloadSVG}>
<i class="fas fa-download" /> SVG
<i class="fas fa-download mr-2" /> SVG
</button>
<button class="action-btn flex-auto">
<a target="_blank" href={iUrl}><i class="fas fa-external-link-alt" /> PNG</a>
<a target="_blank" href={iUrl}><i class="fas fa-external-link-alt mr-2" /> PNG</a>
</button>
<button class="action-btn flex-auto">
<a target="_blank" href={svgUrl}><i class="fas fa-external-link-alt" /> SVG</a>
<a target="_blank" href={svgUrl}><i class="fas fa-external-link-alt mr-2" /> SVG</a>
</button>
<div class="flex gap-2 items-center">
PNG size
<input type="radio" value="auto" id="autosize" bind:group={imagemodeselected} />
<label for="autosize">Auto</label>
<input type="radio" value="width" id="width-active" bind:group={imagemodeselected} />
<label for="width">Width</label>
<input type="radio" value="height" id="height-active" bind:group={imagemodeselected} />
<label for="height">Height</label>
<label for="autosize">
<input type="radio" value="auto" id="autosize" bind:group={imagemodeselected} /> Auto
</label>
<label for="width">
<input type="radio" value="width" id="width" bind:group={imagemodeselected} /> Width
</label>
<label for="height">
<input type="radio" value="height" id="height" bind:group={imagemodeselected} /> Height
</label>
{#if imagemodeselected !== 'auto'}
<input id="height" type="number" min="3" max="10000" bind:value={userimagesize} />
<input
id="height"
class="input"
type="number"
min="3"
max="10000"
bind:value={userimagesize} />
{/if}
</div>
<div class="w-full flex gap-2 items-center">
<label for="markdown">Copy Markdown</label>
<input class="flex-1" id="markdown" type="text" value={mdCode} on:click={onCopyMarkdown} />
<input class="input" id="markdown" type="text" value={mdCode} on:click={onCopyMarkdown} />
<label for="markdown">
<button class="btn btn-primary btn-md flex-auto" on:click={onCopyMarkdown}>
Copy Markdown
</button>
</label>
</div>
<div class="w-full flex gap-2 items-center">
<input
class="input"
id="gist"
type="text"
bind:value={gistURL}
placeholder="Enter Gist URL" />
<label for="gist">
<button class="btn btn-primary btn-md flex-auto" on:click={loadGist}> Load Gist </button>
</label>
</div>
{#if isNetlify}
<div class="w-full flex items-center justify-center">
<a class="link underline text-gray-500 text-sm" href="https://netlify.com">
This site is powered by Netlify
</a>
</div>
{/if}
</div>
</Card>
+5 -4
View File
@@ -7,21 +7,22 @@
export let tabs: Tab[] = [];
export let title: string;
$: isOpen = isCloseable ? isOpen : true;
$: isTabsShown = isOpen && tabs.length > 0;
</script>
<div class="bg-white rounded overflow-hidden shadow m-2 flex-grow flex flex-col">
<div class="card rounded overflow-hidden m-2 flex-grow flex flex-col shadow-2xl">
<div
class="bg-indigo-400 border-gray-400 p-2 flex-none cursor-pointer"
class="bg-primary p-2 {isTabsShown ? 'pb-0' : ''} flex-none cursor-pointer"
on:click={() => (isOpen = !isOpen)}>
<div class="flex justify-between">
<Tabs on:select {tabs} bind:isOpen {title} {isCloseable} />
<div class="flex gap-x-4 items-center text-white">
<div class="flex gap-x-4 items-center {isTabsShown ? '-mt-2' : ''}">
<slot name="actions" />
</div>
</div>
</div>
{#if isOpen}
<div class="flex-grow overflow-auto" transition:slide>
<div class="card-body p-0 flex-grow overflow-auto text-base-content" transition:slide>
<slot />
</div>
{/if}
+9 -14
View File
@@ -7,7 +7,7 @@
export let title: string;
export let isOpen = false;
let activeTabID: string = tabs[0]?.id;
$: activeTabID = tabs[0]?.id;
const dispatch = createEventDispatcher<TabEvents>();
const toggleTabs = (tab: Tab) => {
@@ -17,25 +17,20 @@
</script>
<div class="flex cursor-default">
<span class="text-white mr-2 font-semibold" on:click|stopPropagation={() => (isOpen = !isOpen)}>
<span class="mr-2 font-semibold" on:click|stopPropagation={() => (isOpen = !isOpen)}>
{#if isCloseable}
<i class="fas fa-chevron-right icon" class:isOpen />
{/if}
{title}</span>
{#if isOpen && tabs}
<ul class="flex flex-wrap flex-row" transition:fade>
<ul class="tabs" transition:fade>
{#each tabs as tab}
<li class="mr-2 last:mr-0 w-28 h-6 flex-auto text-center">
<div
class="text cursor-pointer font-semibold min-w-16 w-auto px-2 py-1 -mb-4 rounded-t block leading-normal {activeTabID ===
tab.id
? 'text-indigo-500 bg-white border-white'
: 'text-white bg-indigo-500 border-indigo-500 hover:bg-indigo-600'}"
on:click|stopPropagation={() => toggleTabs(tab)}>
<i class={tab.icon} />
{tab.title}
</div>
</li>
<div
class="tab tab-lifted text-primary-content {activeTabID === tab.id ? 'tab-active' : ''}"
on:click|stopPropagation={() => toggleTabs(tab)}>
<i class="mr-1 {tab.icon}" />
{tab.title}
</div>
{/each}
</ul>
{/if}
+9 -5
View File
@@ -1,6 +1,7 @@
<script lang="ts">
import type { EditorEvents } from '$lib/types';
import { codeStore } from '$lib/util/state';
import { themeStore } from '$lib/util/theme';
import type monaco from 'monaco-editor';
import { createEventDispatcher, onMount } from 'svelte';
import { initEditor } from './util';
@@ -14,11 +15,10 @@
export let editorOptions: monaco.editor.IStandaloneEditorConstructionOptions = {
value: text,
language: language,
scrollBeyondLastLine: false,
minimap: {
enabled: false
},
theme: 'myCoolTheme',
theme: 'mermaid',
overviewRulerLanes: 0
};
export let errorMarkers: monaco.editor.IMarkerData[] = [];
@@ -34,12 +34,16 @@
editor && Monaco?.editor.setModelMarkers(editor.getModel(), 'test', errorMarkers);
}
themeStore.subscribe(({ isDark }) => {
editor && Monaco?.editor.setTheme(isDark ? 'mermaid-dark' : 'mermaid');
});
const dispatch = createEventDispatcher<EditorEvents>();
const loadMonaco = async () => {
let i = 0;
while (i++ < 10) {
try {
//@ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
// @ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
Monaco = monaco;
return;
} catch {
@@ -50,7 +54,7 @@
};
onMount(async () => {
try {
//@ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
// @ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
Monaco = monaco;
} catch {
await loadMonaco(); // Fix https://github.com/mermaid-js/mermaid-live-editor/issues/175
@@ -63,7 +67,7 @@
text
});
});
Monaco?.editor.setTheme($themeStore.isDark ? 'mermaid-dark' : 'mermaid');
const resizeObserver = new ResizeObserver((entries) => {
editor.layout({
height: entries[0].contentRect.height,
+524 -49
View File
@@ -5,73 +5,548 @@
export const initEditor = (monacoEditor): void => {
monacoEditor.languages.register({ id: 'mermaid' });
// Register a tokens provider for the language
monacoEditor.languages.setMonarchTokensProvider('mermaid', {
typeKeywords: [
'graph',
'stateDiagram',
'sequenceDiagram',
'classDiagram',
'pie',
'erDiagram',
'flowchart',
'gantt',
'gitGraph',
'journey'
],
keywords: ['participant', 'as'],
arrows: ['---', '===', '-->', '==>', '->>', '->'],
tokenizer: {
root: [
[/[{}]/, 'delimiter.bracket'],
[/[a-z_$][\w$]*/, { cases: { '@typeKeywords': 'keyword', '@keywords': 'keyword' } }],
[/[-=>ox]+/, { cases: { '@arrows': 'transition' } }],
[/[[{(}]+.+?[)\]}]+/, 'string'],
[/".*"/, 'string']
const requirementDiagrams = [
'requirement',
'functionalRequirement',
'interfaceRequirement',
'performanceRequirement',
'physicalRequirement',
'designConstraint'
];
const keywords: {
[key: string]: {
typeKeywords: string[];
blockKeywords: string[];
keywords: string[];
};
} = {
flowchart: {
typeKeywords: ['flowchart', 'flowchart-v2', 'graph'],
blockKeywords: ['subgraph', 'end'],
keywords: [
'TB',
'TD',
'BT',
'RL',
'LR',
'click',
'call',
'href',
'_self',
'_blank',
'_parent',
'_top',
'linkStyle',
'style',
'classDef',
'class',
'direction',
'interpolate'
]
},
whitespace: [
[/[ \t\r\n]+/, 'white'],
[/%%.*$/, 'comment']
]
sequenceDiagram: {
typeKeywords: ['sequenceDiagram'],
blockKeywords: ['alt', 'par', 'and', 'loop', 'else', 'end', 'rect', 'opt', 'alt', 'rect'],
keywords: [
'participant',
'as',
'Note',
'note',
'right of',
'left of',
'over',
'activate',
'deactivate',
'autonumber',
'title',
'actor'
]
},
classDiagram: {
typeKeywords: ['classDiagram', 'classDiagram-v2'],
blockKeywords: ['class'],
keywords: [
'link',
'click',
'callback',
'call',
'href',
'cssClass',
'direction',
'TB',
'BT',
'RL',
'LR'
]
},
stateDiagram: {
typeKeywords: ['stateDiagram', 'stateDiagram-v2'],
blockKeywords: ['state', 'note', 'end'],
keywords: ['state', 'as', 'hide empty description', 'direction', 'TB', 'BT', 'RL', 'LR']
},
erDiagram: {
typeKeywords: ['erDiagram'],
blockKeywords: [],
keywords: []
},
journey: {
typeKeywords: ['journey'],
blockKeywords: ['section'],
keywords: ['title']
},
info: {
typeKeywords: ['info'],
blockKeywords: [],
keywords: ['showInfo']
},
gantt: {
typeKeywords: ['gantt'],
blockKeywords: [],
keywords: [
'title',
'dateFormat',
'axisFormat',
'todayMarker',
'section',
'excludes',
'inclusiveEndDates'
]
},
requirementDiagram: {
typeKeywords: ['requirement', 'requirementDiagram'],
blockKeywords: requirementDiagrams.concat('element'),
keywords: []
},
gitGraph: {
typeKeywords: ['gitGraph'],
blockKeywords: [],
keywords: ['commit', 'branch', 'merge', 'reset', 'checkout', 'LR', 'BT']
},
pie: {
typeKeywords: ['pie'],
blockKeywords: [],
keywords: ['title', 'showData']
}
};
// Register a tokens provider for the mermaid language
monacoEditor.languages.setMonarchTokensProvider('mermaid', {
...Object.entries(keywords)
.map((entry) =>
Object.fromEntries(
Object.entries(entry[1]).map((deepEntry) => [
entry[0] + deepEntry[0][0].toUpperCase() + deepEntry[0].slice(1),
deepEntry[1]
])
)
)
.reduce((overallKeywords, nextKeyword) => ({ ...overallKeywords, ...nextKeyword }), {}),
tokenizer: {
root: [
[/%%(?=.*%%$)/, { token: 'string', nextEmbedded: 'json' }],
[/%%$/, { token: 'string', nextEmbedded: '@pop' }],
[/^\s*gitGraph/m, 'typeKeyword', 'gitGraph'],
[/^\s*info/m, 'typeKeyword', 'info'],
[/^\s*pie/m, 'typeKeyword', 'pie'],
[/^\s*(flowchart|flowchart-v2|graph)/m, 'typeKeyword', 'flowchart'],
[/^\s*sequenceDiagram/, 'typeKeyword', 'sequenceDiagram'],
[/^\s*classDiagram(-v2)?/, 'typeKeyword', 'classDiagram'],
[/^\s*journey/, 'typeKeyword', 'journey'],
[/^\s*gantt/, 'typeKeyword', 'gantt'],
[/^\s*stateDiagram(-v2)?/, 'typeKeyword', 'stateDiagram'],
[/^\s*erDiagram/, 'typeKeyword', 'erDiagram'],
[/^\s*requirement(Diagram)?/, 'typeKeyword', 'requirementDiagram'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
gitGraph: [
[/option(?=s)/, { token: 'typeKeyword', next: 'optionsGitGraph' }],
[/(^\s*branch|reset|merge|checkout)(.*$)/, ['keyword', 'variable']],
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@gitGraphBlockKeywords': 'typeKeyword',
'@gitGraphKeywords': 'keyword'
}
}
],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/".*?"/, 'string'],
[/\^/, 'delimiter.bracket']
],
optionsGitGraph: [
[/s$/, { token: 'typeKeyword', nextEmbedded: 'json', matchOnlyAtLineStart: false }],
['end', { token: 'typeKeyword', next: '@pop', nextEmbedded: '@pop' }]
],
info: [
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@infoBlockKeywords': 'typeKeyword',
'@infoKeywords': 'keyword'
}
}
]
],
pie: [
[/(title)(.*$)/, ['keyword', 'string']],
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@pieBlockKeywords': 'typeKeyword',
'@pieKeywords': 'keyword'
}
}
],
[/".*?"/, 'string'],
[/\s*\d+/, 'number'],
[/:/, 'delimiter.bracket'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
flowchart: [
[/[ox]?(--+|==+)[ox]/, 'transition'],
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@flowchartBlockKeywords': 'typeKeyword',
'@flowchartKeywords': 'keyword',
'@default': 'variable'
}
}
],
[/\|+.+?\|+/, 'string'],
[/\[+(\\.+?[\\/]|\/.+?[/\\])\]+/, 'string'],
[/[[>]+[^\]|[]+?\]+/, 'string'],
[/{+.+?}+/, 'string'],
[/\(+.+?\)+/, 'string'],
[/-\.+->?/, 'transition'],
[/(-[-.])([^->]+?)(-{3,}|-{2,}>|\.-+>)/, ['transition', 'string', 'transition']],
[/(==+)([^=]+?)(={3,}|={2,}>)/, ['transition', 'string', 'transition']],
[/<?(--+|==+)>|===+|---+/, 'transition'],
[/:::/, 'transition'],
[/[;&]/, 'delimiter.bracket'],
[/".*?"/, 'string'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
sequenceDiagram: [
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@sequenceDiagramBlockKeywords': 'typeKeyword',
'@sequenceDiagramKeywords': 'keyword',
'@default': 'variable'
}
}
],
[/(--?>?>|--?[)x])[+-]?/, 'transition'],
[/(:)([^:\n]*?$)/, ['delimiter.bracket', 'string']],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
classDiagram: [
[/(?!class\s)([a-zA-Z]+)(\s+[a-zA-Z]+)/, ['type', 'variable']],
[/(\*|<\|?|o)?(--|\.\.)(\*|\|?>|o)?/, 'transition'],
[/^\s*class\s(?!.*\{)/, 'keyword'],
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@classDiagramBlockKeywords': 'typeKeyword',
'@classDiagramKeywords': 'keyword',
'@default': 'variable'
}
}
],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/(<<)(.+?)(>>)/, ['delimiter.bracket', 'annotation', 'delimiter.bracket']],
[/".*?"/, 'string'],
[/:::/, 'transition'],
[/:|\+|-|#|~|\*\s*$|\$\s*$|\(|\)|{|}/, 'delimiter.bracket']
],
journey: [
[/(title)(.*)/, ['keyword', 'string']],
[/(section)(.*)/, ['typeKeyword', 'string']],
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@journeyBlockKeywords': 'typeKeyword',
'@journeyKeywords': 'keyword',
'@default': 'variable'
}
}
],
[
/(^\s*.+?)(:)(.*?)(:)(.*?)([,$])/,
[
'string',
'delimiter.bracket',
'number',
'delimiter.bracket',
'variable',
'delimiter.bracket'
]
],
[/,/, 'delimiter.bracket'],
[/(^\s*.+?)(:)([^:]*?)$/, ['string', 'delimiter.bracket', 'variable']],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
gantt: [
[/(title)(.*)/, ['keyword', 'string']],
[/(section)(.*)/, ['typeKeyword', 'string']],
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@ganttBlockKeywords': 'typeKeyword',
'@ganttKeywords': 'keyword'
}
}
],
[/(^\s*.*?)(:)/, ['string', 'delimiter.bracket']],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/:/, 'delimiter.bracket']
],
stateDiagram: [
[/note[^:]*$/, { token: 'typeKeyword', next: 'stateDiagramNote' }],
['hide empty description', 'keyword'],
[/^\s*state\s(?!.*\{)/, 'keyword'],
[/(<<)(fork|join|choice)(>>)/, 'annotation'],
[/(\[\[)(fork|join|choice)(]])/, ['delimiter.bracket', 'annotation', 'delimiter.bracket']],
[
/[a-zA-Z][\w$]*/,
{
cases: {
'@stateDiagramBlockKeywords': 'typeKeyword',
'@stateDiagramKeywords': 'keyword',
'@default': 'variable'
}
}
],
[/".*?"/, 'string'],
[/(:)([^:\n]*?$)/, ['delimiter.bracket', 'string']],
[/{|}/, 'delimiter.bracket'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/-->/, 'transition'],
[/\[.*?]/, 'string']
],
stateDiagramNote: [
[/^\s*end note$/, { token: 'typeKeyword', next: '@pop' }],
[/.*/, 'string']
],
erDiagram: [
[/[}|][o|](--|\.\.)[o|][{|]/, 'transition'],
[/".*?"/, 'string'],
[/(:)(.*?$)/, ['delimiter.bracket', 'string']],
[/:|{|}/, 'delimiter.bracket'],
[/([a-zA-Z]+)(\s+[a-zA-Z]+)/, ['type', 'variable']],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/[a-zA-Z_-][\w$]*/, 'variable']
],
requirementDiagram: [
[/->|<-|-/, 'transition'],
[/(\d+\.)*\d+/, 'number'],
[
/[a-zA-Z_-][\w$]*/,
{
cases: {
'@requirementDiagramBlockKeywords': 'typeKeyword',
'@default': 'variable'
}
}
],
[/:|{|}|\//, 'delimiter.bracket'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/".*?"/, 'string']
]
}
});
monacoEditor.editor.defineTheme('myCoolTheme', {
base: 'vs',
inherit: false,
monacoEditor.editor.defineTheme('mermaid-dark', {
base: 'vs-dark',
inherit: true,
rules: [
{ token: 'keyword', foreground: '880000', fontStyle: 'bold' },
{ token: 'typeKeyword', foreground: '9650c8', fontStyle: 'bold' },
{ token: 'transition', foreground: '008800', fontStyle: 'bold' }
],
colors: {}
});
monacoEditor.editor.defineTheme('mermaid', {
base: 'vs',
inherit: true,
rules: [
{ token: 'typeKeyword', foreground: '9650c8', fontStyle: 'bold' },
{ token: 'keyword', foreground: '649696' },
{ token: 'custom-error', foreground: 'ff0000', fontStyle: 'bold' },
{ token: 'string', foreground: 'AA8500' },
{ token: 'transition', foreground: '008800', fontStyle: 'bold' },
{ token: 'delimiter.bracket', foreground: '000000', fontStyle: 'bold' }
]
{ token: 'delimiter.bracket', foreground: '000000', fontStyle: 'bold' },
{ token: 'annotation', foreground: '4b4b96' },
{ token: 'number', foreground: '4b4b96' },
{ token: 'comment', foreground: '888c89' },
{ token: 'variable', foreground: 'A22889' },
{ token: 'type', foreground: '2BDEA8' }
],
colors: {}
});
// Register a completion item provider for the new language
// Register a completion item provider for the mermaid language
monacoEditor.languages.registerCompletionItemProvider('mermaid', {
provideCompletionItems: () => {
const suggestions = [
{
label: 'simpleText',
kind: monacoEditor.languages.CompletionItemKind.Text,
insertText: 'simpleText'
},
{
label: 'testing',
kind: monacoEditor.languages.CompletionItemKind.Keyword,
insertText: 'testing(${1:condition})',
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet
},
{
label: 'ifelse',
label: 'loop',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['if (${1:condition}) {', '\t$0', '} else {', '\t', '}'].join('\n'),
insertText: ['loop ${1:Loop text}', '\t$0', 'end'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'If-Else Statement'
}
documentation: 'Sequence Diagram Loops'
},
{
label: 'alt',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['alt ${1:Describing text}', '\t$0', 'else', '\t', 'end'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Alternative Path'
},
{
label: 'opt',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['opt ${1:Describing text}', '\t$0', 'end'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Optional Path'
},
{
label: 'par',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: [
'par ${1:[Action 1]}',
'\t$0',
'and ${2:[Action 2]}',
'\t',
'and ${3:[Action 3]}',
'\t',
'end'
].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Parallel Actions'
},
{
label: 'rect',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['rect ${1:rgb(0, 255, 0)}', '\t$0', 'end'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Background Color'
},
{
label: 'subgraph',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['subgraph ${1:title}', '\t$0', 'end'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Subgraph'
},
{
label: 'class',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['class ${1:className} {', '\t$0', '}'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Class'
},
{
label: 'state',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['state ${1:stateName} {', '\t$0', '}'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'State'
},
{
label: 'note',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['note ${1:right of State1}', '\t$0', 'end note'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'State'
},
{
label: 'section',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['section ${1:Go to work}', '\t$0'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'User-journey Section'
},
{
label: 'element',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['element ${1:test_entity} {', '\t$0', '}'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Requirement Diagram Element'
},
{
label: 'options',
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: ['options', '{', ' $0', '}', 'end'].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: 'Git Graph Options'
},
...requirementDiagrams.map((requirementDiagramType) => ({
label: requirementDiagramType,
kind: monacoEditor.languages.CompletionItemKind.Snippet,
insertText: [
requirementDiagramType + ' ${1:test_req} {',
'\tid: 1',
'\ttext: the test text.',
'\trisk: high',
'\tverifyMethod: test',
'}'
].join('\n'),
insertTextRules: monacoEditor.languages.CompletionItemInsertTextRule.InsertAsSnippet,
documentation: requirementDiagramType
.split(/(?=[A-Z])/)
.map((part) => part[0].toUpperCase() + part.slice(1))
.join(' ')
})),
...[
...new Set(
Object.values(keywords)
.map((diagramKeywords) =>
Object.entries(diagramKeywords)
.filter((keywordType) => keywordType[0] !== 'annotations')
.map((entry) => entry[1])
)
.flat(2)
)
].map((keyword) => ({
label: keyword,
kind: monacoEditor.languages.CompletionItemKind.Keyword,
insertText: keyword
}))
];
return { suggestions: suggestions };
}
});
monacoEditor.languages.setLanguageConfiguration('mermaid', {
autoClosingPairs: [
{
open: '(',
close: ')'
},
{
open: '{',
close: '}'
},
{
open: '[',
close: ']'
}
],
brackets: [
['(', ')'],
['{', '}'],
['[', ']']
]
});
};
+51 -26
View File
@@ -3,29 +3,30 @@
import { codeStore, getStateString } from '$lib/util/state';
import {
addHistoryEntry,
autoHistoryMode,
historyModeStore,
clearHistoryData,
getPreviousState,
historyStore
historyStore,
loaderHistoryStore
} from './history';
import { notify, prompt } from '$lib/util/notify';
import { onMount } from 'svelte';
import moment from 'moment';
import type { State, Tab } from '$lib/types';
import type { HistoryType, State, Tab } from '$lib/types';
const HISTORY_SAVE_INTERVAL = 60000;
const tabSelectHandler = (message: CustomEvent<Tab>) => {
autoHistoryMode.set('timeline' === message.detail.id);
historyModeStore.set(message.detail.id as HistoryType);
};
const tabs: Tab[] = [
let tabs: Tab[] = [
{
id: 'saved',
id: 'manual',
title: 'Saved',
icon: 'far fa-bookmark'
},
{
id: 'timeline',
id: 'auto',
title: 'Timeline',
icon: 'fas fa-history'
}
@@ -38,7 +39,7 @@
addHistoryEntry({
state: $codeStore,
time: Date.now(),
auto
type: auto ? 'auto' : 'manual'
});
} else if (!auto) {
notify('State already saved.');
@@ -62,52 +63,76 @@
};
onMount(() => {
autoHistoryMode.set(false);
historyModeStore.set('manual');
setInterval(() => {
saveHistory(true);
}, HISTORY_SAVE_INTERVAL);
});
let isOpen = true;
loaderHistoryStore.subscribe((entries) => {
if (entries.length > 0 && tabs.length === 2) {
tabs = [
{
id: 'loader',
title: 'Revisions',
icon: 'fab fa-git-alt'
},
...tabs
];
historyModeStore.set('loader');
}
});
let isOpen = false;
</script>
<Card on:select={tabSelectHandler} bind:isOpen {tabs} title="History">
<div slot="actions">
<button
id="saveHistory"
class="btn"
class="btn btn-xs btn-success w-12"
on:click|stopPropagation={() => saveHistory()}
title="Save current state"><i class="far fa-save" /></button>
<button
id="clearHistory"
class="btn text-red-400"
on:click|stopPropagation={() => clearHistory()}
title="Delete all saved states"><i class="fas fa-trash-alt" /></button>
{#if $historyModeStore !== 'loader'}
<button
id="clearHistory"
class="btn btn-xs btn-error w-12"
on:click|stopPropagation={() => clearHistory()}
title="Delete all saved states"><i class="fas fa-trash-alt" /></button>
{/if}
</div>
<ul class="p-2 space-y-2 overflow-auto h-56" id="historyList">
{#if $historyStore.length > 0}
{#each $historyStore as { state, time, name }}
{#each $historyStore as { state, time, name, url, type }}
<li class="rounded p-2 shadow flex-col">
<div class="flex">
<div class="flex-1">
<div class="flex flex-col">
<span>{name}</span>
<div class="flex flex-col text-base-content">
{#if url}
<a
href={url}
target="_blank"
title="Open revision in new tab"
class="hover:underline text-blue-500">{name}</a>
{:else}
<span>{name}</span>
{/if}
<span class="text-gray-400 text-sm">{relativeTime(time)}</span>
</div>
</div>
<div class="flex gap-2 content-center">
<button
class="rounded px-2 w-24 bg-green-200 hover:bg-green-300"
on:click={() => restoreHistory(state)}><i class="fas fa-undo" /> Restore</button>
<button
class="rounded px-2 w-24 bg-red-200 hover:bg-red-300"
on:click={() => clearHistory(time)}><i class="fas fa-trash-alt" /> Delete</button>
<button class="btn btn-success" on:click={() => restoreHistory(state)}
><i class="fas fa-undo mr-1" />Restore</button>
{#if type !== 'loader'}
<button class="btn btn-error" on:click={() => clearHistory(time)}
><i class="fas fa-trash-alt mr-1" />Delete</button>
{/if}
</div>
</div>
</li>
{/each}
{:else}
<div class="m-2 text-gray-600">
<div class="m-2">
No items in History<br />
Click the Save button to save current state and restore it later.<br />
Timeline will automatically be saved every minute.
+29 -12
View File
@@ -1,12 +1,13 @@
import { derived, Readable, Writable, writable, get } from 'svelte/store';
import { derived, writable, get } from 'svelte/store';
import type { Readable, Writable } from 'svelte/store';
import { persist, localStorage } from '@macfja/svelte-persistent-store';
import { generateSlug } from 'random-word-slugs';
import type { HistoryEntry } from '../../types';
import type { HistoryEntry, HistoryType } from '$lib/types';
const MAX_AUTO_HISTORY_LENGTH = 30;
export const autoHistoryMode: Writable<boolean> = persist(
writable(true),
export const historyModeStore: Writable<HistoryType> = persist(
writable('manual'),
localStorage(),
'autoHistoryMode'
);
@@ -23,17 +24,30 @@ const manualHistoryStore: Writable<HistoryEntry[]> = persist(
'manualHistoryStore'
);
export const loaderHistoryStore: Writable<HistoryEntry[]> = writable([] as HistoryEntry[]);
export const historyStore: Readable<HistoryEntry[]> = derived(
[autoHistoryMode, autoHistoryStore, manualHistoryStore],
([autoMode, autoHistories, manualHistories], set) => {
set(autoMode ? autoHistories : manualHistories);
[historyModeStore, autoHistoryStore, manualHistoryStore, loaderHistoryStore],
([historyMode, autoHistories, manualHistories, loadedHistories], set) => {
if (historyMode === 'auto') {
set(autoHistories);
} else if (historyMode === 'manual') {
set(manualHistories);
} else if (historyMode === 'loader') {
set(loadedHistories);
} else {
set(autoHistories);
}
}
);
export const addHistoryEntry = (entry: HistoryEntry): void => {
if (entry.type === 'loader') {
loaderHistoryStore.update((entries) => [entry, ...entries]);
return;
}
entry.name = generateSlug(2);
if (!entry.auto) {
if (entry.type !== 'auto') {
manualHistoryStore.update((entries) => [entry, ...entries]);
return;
}
@@ -46,9 +60,12 @@ export const addHistoryEntry = (entry: HistoryEntry): void => {
};
export const clearHistoryData = (time?: number): void => {
(get(autoHistoryMode) ? autoHistoryStore : manualHistoryStore).update((entries) =>
entries.filter((entry) => time && entry.time != time)
);
(get(historyModeStore) === 'auto' ? autoHistoryStore : manualHistoryStore).update((entries) => {
if (get(historyModeStore) !== 'loader') {
entries = entries.filter((entry) => time && entry.time != time);
}
return entries;
});
};
export const getPreviousState = (auto: boolean): string => {
+21 -19
View File
@@ -7,6 +7,8 @@
</script>
<script lang="ts">
import Theme from './theme.svelte';
interface Link {
title: string;
href: string;
@@ -37,11 +39,12 @@
];
</script>
<header class="p-2 bg-indigo-400 text-white font-bold flex flex-wrap items-center">
<div class="flex-1 flex justify-between items-center">
<a href="/">Mermaid<span class="text-xs font-thin">v{version}</span> Live Editor</a>
<div class="navbar mb-2 shadow-lg bg-primary">
<div class="flex-1 px-2 mx-2">
<span class="text-lg font-bold">
<a href="/">Mermaid<span class="text-xs font-thin">v{version}</span> Live Editor</a>
</span>
</div>
<label for="menu-toggle" class="pointer-cursor lg:hidden block"
><svg
class="fill-current "
@@ -53,28 +56,27 @@
></label>
<input class="hidden" type="checkbox" id="menu-toggle" />
<Theme />
<div class="hidden lg:flex lg:items-center lg:w-auto w-full" id="menu">
<nav>
<ul class="lg:flex items-center justify-between text-base pt-4 lg:pt-0">
{#each links as { title, href, icon }}
<li>
<a class="nav-btn" target="_blank" {href}>
{#if icon}
<i class={icon} />
{/if}
{title}</a>
</li>
{/each}
</ul>
</nav>
<ul class="lg:flex items-center justify-between text-base pt-4 lg:pt-0">
{#each links as { title, href, icon }}
<li>
<a class="btn btn-ghost" target="_blank" {href}>
{#if icon}
<i class={icon} />
{/if}
{title}</a>
</li>
{/each}
</ul>
</div>
</header>
</div>
<style>
#menu-toggle:checked + #menu {
display: block;
}
header {
.navbar {
z-index: 10000;
}
</style>
+2 -1
View File
@@ -108,7 +108,8 @@ merge newbranch
<Card title="Sample Diagrams" isOpen={false}>
<div class="flex gap-2 flex-wrap p-2">
{#each Object.keys(samples) as sample}
<button class="action-btn" on:click={() => loadSampleDiagram(sample)}>{sample}</button>
<button class="btn btn-primary normal-case btn-sm" on:click={() => loadSampleDiagram(sample)}
>{sample}</button>
{/each}
</div>
</Card>
+59
View File
@@ -0,0 +1,59 @@
<script>
import { setTheme, themeStore } from '$lib/util/theme';
const themes = [
'🌝 light',
'🌚 dark',
'🧁 cupcake',
'🐝 bumblebee',
'✳️ emerald',
'🏢 corporate',
'🌃 synthwave',
'👴 retro',
'🤖 cyberpunk',
'🌸 valentine',
'🎃 halloween',
'🌷 garden',
'🌲 forest',
'🐟 aqua',
'👓 lofi',
'🖍 pastel',
'🧚‍♀️ fantasy',
'📝 wireframe',
'🏴 black',
'💎 luxury',
'🧛‍♂️ dracula'
];
</script>
<div class="hidden lg:block dropdown">
<div tabindex="0" class="btn btn-ghost ">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
class="inline-block w-6 h-6 stroke-current md:mr-2"
><path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01" /></svg>
<span class="hidden md:inline"> Change Theme </span>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1792 1792"
class="inline-block w-4 h-4 ml-1 fill-current"
><path
d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z" /></svg>
</div>
<div
class="mt-14 overflow-y-auto shadow-2xl top-px dropdown-content h-96 w-56 bg-base-200 text-base-content">
<ul tabindex="0" class="p-4 menu compact">
{#each themes as theme}
<li class={theme.includes($themeStore.theme) ? 'bordered' : ''}>
<span class="btn btn-ghost justify-start" on:click={() => setTheme(theme)}>{theme}</span>
</li>
{/each}
</ul>
</div>
</div>
+5 -4
View File
@@ -3,11 +3,12 @@
import { codeStore } from '$lib/util/state';
import { onMount } from 'svelte';
import * as mermaid from 'mermaid';
import mermaid from 'mermaid';
let code = '';
let config = '';
let container: HTMLDivElement;
let view: HTMLDivElement;
let error = false;
let outOfSync = false;
let manualUpdate = true;
@@ -26,13 +27,13 @@
}
code = state.code;
config = state.mermaid;
const scroll = container.parentElement.parentElement.parentElement.scrollTop;
const scroll = view.parentElement.scrollTop;
delete container.dataset.processed;
mermaid.initialize(Object.assign({}, JSON.parse(state.mermaid)));
mermaid.render('graph-div', code, (svgCode) => {
container.innerHTML = svgCode;
});
container.parentElement.parentElement.parentElement.scrollTop = scroll;
view.parentElement.scrollTop = scroll;
error = false;
} else if (manualUpdate) {
manualUpdate = false;
@@ -55,7 +56,7 @@
});
</script>
<div id="view" class="p-2" class:error class:outOfSync>
<div id="view" bind:this={view} class="p-2" class:error class:outOfSync>
<div id="container" bind:this={container} class="flex-1 overflow-auto" />
</div>
+22 -1
View File
@@ -29,11 +29,32 @@ export interface State {
updateEditor: boolean;
updateDiagram: boolean;
autoSync: boolean;
loader?: LoaderConfig;
}
export interface GistLoaderConfig {
url: string;
}
export interface LoadingState {
loading: boolean;
message?: string;
}
export interface FileLoaderConfig {
codeURL: string;
configURL?: string;
}
export interface LoaderConfig {
type: 'gist' | 'files';
config: GistLoaderConfig | FileLoaderConfig;
}
export type HistoryType = 'auto' | 'manual' | 'loader';
export interface HistoryEntry {
state: State;
time: number;
name?: string;
auto: boolean;
type: HistoryType;
url?: string;
}
type Loader = (url: string) => Promise<State>;
+1
View File
@@ -0,0 +1 @@
export const rendererUrl = import.meta.env.MERMAID_RENDERER_URL ?? 'https://mermaid.ink';
+105
View File
@@ -0,0 +1,105 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { State } from '$lib/types';
import { defaultState } from '../state';
import { addHistoryEntry } from '../../components/history/history';
const codeFileName = 'code.mmd';
const configFileName = 'config.json';
const isValidGist = (files: any): boolean => {
return codeFileName in files;
};
const getFileContent = async (file: any): Promise<string> => {
if (file.truncated) {
return await (await fetch(file.raw_url)).text();
}
return file.content;
};
interface GistData {
code: string;
config?: string;
author: string;
time: number;
version: string;
url: string;
}
const getGistData = async (gistURL: string): Promise<GistData> => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, __, gistID, revisionID] = gistURL.split('github.com').pop().split('/');
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { html_url, files, history } = await (
await fetch(`https://api.github.com/gists/${gistID}${revisionID ? '/' + revisionID : ''}`)
).json();
if (isValidGist(files)) {
const code = await getFileContent(files[codeFileName]);
let config: string;
if (configFileName in files) {
config = await getFileContent(files[configFileName]);
}
const currentItem = history[0];
return {
url: `${html_url}/${currentItem.version}`,
code,
config,
author: currentItem.user.login,
time: new Date(currentItem.committed_at).getTime(),
version: (currentItem.version as string).slice(-7)
};
} else {
throw 'Invalid gist provided';
}
};
const getStateFromGist = (gist: GistData, gistURL: string = gist.url): State => {
const state: State = {
...defaultState,
code: gist.code,
loader: {
type: 'gist',
config: {
url: gistURL
}
}
};
gist.config && (state.mermaid = gist.config);
return state;
};
export const loadGistData = async (gistURL: string): Promise<State> => {
try {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, __, gistID, revisionID] = gistURL.split('github.com').pop().split('/');
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { history } = await (
await fetch(`https://api.github.com/gists/${gistID}${revisionID ? '/' + revisionID : ''}`)
).json();
const gistHistory: GistData[] = [];
for (const entry of history) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const data: GistData = await getGistData(entry.url).catch(() => undefined);
data && gistHistory.push(data);
}
if (gistHistory.length === 0) {
throw 'Invalid gist provided';
}
gistHistory.reverse();
const state = getStateFromGist(gistHistory.slice(-1).pop(), gistURL);
for (const gist of gistHistory) {
addHistoryEntry({
state: getStateFromGist(gist),
time: gist.time,
type: 'loader',
url: gist.url,
name: `${gist.author} v${gist.version}`
});
}
return state;
} catch (err) {
console.error(err);
}
};
+58
View File
@@ -0,0 +1,58 @@
import { loadGistData } from './gist';
import { updateCodeStore, defaultState } from '../state';
import type { Loader, State } from '$lib/types';
const loaders: Record<string, Loader> = {
gist: loadGistData
};
export const loadDataFromUrl = async (): Promise<void> => {
const searchParams = new URLSearchParams(window.location.search);
let state: State = defaultState;
let code: string, config: string;
let loaded = false;
const codeURL: string = searchParams.get('code');
const configURL: string = searchParams.get('config');
if (codeURL) {
code = await (await fetch(codeURL)).text();
loaded = true;
}
if (configURL) {
config = await (await fetch(configURL)).text();
} else {
config = defaultState.mermaid;
}
if (!code) {
for (const [key, value] of searchParams.entries()) {
if (key in loaders) {
try {
state = await loaders[key](value);
loaded = true;
break;
} catch (err) {
console.error(err);
}
}
}
} else {
state = {
code,
mermaid: config,
loader: {
type: 'files',
config: {
codeURL,
configURL
}
}
} as State;
}
loaded &&
updateCodeStore({
...state,
autoSync: true,
updateDiagram: true,
updateEditor: true
});
// window.location.search = '';
};
+20
View File
@@ -0,0 +1,20 @@
import { writable } from 'svelte/store';
import type { Writable } from 'svelte/store';
import type { LoadingState } from '$lib/types';
const defaultLoading: LoadingState = {
loading: false
};
export const loadingStateStore: Writable<LoadingState> = writable(defaultLoading);
export const initLoading = async <T>(message: string, task: Promise<T>): Promise<T> => {
loadingStateStore.set({
loading: true,
message
});
const result: T = await task;
loadingStateStore.set({
loading: false
});
return result;
};
+31 -8
View File
@@ -1,10 +1,11 @@
import { writable, get, derived } from 'svelte/store';
import type { Readable } from 'svelte/store';
import { toBase64, fromBase64 } from 'js-base64';
import { persist, localStorage } from '@macfja/svelte-persistent-store';
import type { State } from '$lib/types';
import { saveStatistcs } from './stats';
import { saveStatistics } from './stats';
const defaultState: State = {
export const defaultState: State = {
code: `graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
@@ -24,8 +25,19 @@ const defaultState: State = {
updateDiagram: true
};
const urlParseFailedState = `graph TD
A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.)
B --> C{Is the JSON correct?}
C -->|Yes| D(Please Click here to Raise an issue in github.<br/>Including the broken link in the issue <br/> will speed up the fix.)
C -->|No| E{Did someone <br/>send you this link?}
E -->|Yes| F[Ask them to send <br/>you the complete link]
E -->|No| G{Did you copy <br/> the complete URL?}
G --> |Yes| D
G --> |"No :("| H(Try using the Timeline tab in History <br/>from same browser you used to create the diagram.)
click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`;
export const codeStore = persist(writable(defaultState), localStorage(), 'codeStore');
export const base64State = derived([codeStore], ([code], set) => {
export const base64State: Readable<string> = derived([codeStore], ([code], set) => {
set(toBase64(JSON.stringify(code), true));
});
@@ -33,7 +45,7 @@ export const loadState = (data: string): void => {
let state: State;
try {
const stateStr = fromBase64(data);
console.log(`Tring to load state: ${stateStr}`);
console.log(`Trying to load state: ${stateStr}`);
state = JSON.parse(stateStr);
const mermaidConfig =
typeof state.mermaid === 'string' ? JSON.parse(state.mermaid) : state.mermaid;
@@ -49,11 +61,11 @@ export const loadState = (data: string): void => {
state.mermaid = JSON.stringify(mermaidConfig, null, 2);
} catch (e) {
state = get(codeStore);
if (data) {
console.error('Init error', e);
state.code = urlParseFailedState;
}
state = get(codeStore);
console.log(state);
}
updateCodeStore({ ...state, updateEditor: true });
};
@@ -66,12 +78,12 @@ export const updateCodeStore = (newState: State): void => {
let prompted = false;
export const updateCode = (code: string, updateEditor: boolean, updateDiagram = false): void => {
saveStatistcs(code);
saveStatistics(code);
const lines = (code.match(/\n/g) || '').length + 1;
if (lines > 50 && !prompted && get(codeStore).autoSync) {
const turnOff = confirm(
'Long diagram deteced. Turn off Auto Sync? Click the sync logo to manually sync.'
'Long diagram detected. Turn off Auto Sync? Click the sync logo to manually sync.'
);
prompted = true;
if (turnOff) {
@@ -92,6 +104,17 @@ export const updateConfig = (config: string, updateEditor: boolean): void => {
});
};
export const toggleDarkTheme = (dark: boolean): void => {
codeStore.update((state) => {
const config = JSON.parse(state.mermaid);
if (!config.theme || ['dark', 'default'].includes(config.theme)) {
config.theme = dark ? 'dark' : 'default';
}
return { ...state, mermaid: JSON.stringify(config, null, 2), updateEditor: true };
});
};
export const initURLSubscription = (): void => {
base64State.subscribe((state: string) => {
history.replaceState(undefined, undefined, `#${state}`);
+2 -2
View File
@@ -34,10 +34,10 @@ const detectType = (text: string): string => {
// manual debounce
let timeout;
export const saveStatistcs = (graph: string): void => {
export const saveStatistics = (graph: string): void => {
if (analytics) {
clearTimeout(timeout);
// Only save statistcs after a 5 sec delay
// Only save statistics after a 5 sec delay
timeout = setTimeout(function () {
const graphType = detectType(graph);
console.debug('ga:', 'send', 'event', 'render', graphType);
+36
View File
@@ -0,0 +1,36 @@
import { writable } from 'svelte/store';
import type { Writable } from 'svelte/store';
import { persist, localStorage } from '@macfja/svelte-persistent-store';
export interface ThemeConfig {
isDark: boolean;
theme?: string;
}
export const themeStore: Writable<ThemeConfig> = persist(
writable({
isDark: false
}),
localStorage(),
'themeStore'
);
const darkThemes = [
'dark',
'synthwave',
'halloween',
'aqua',
'forest',
'luxury',
'black',
'dracula'
];
export const setTheme = (theme: string): void => {
if (theme.includes(' ')) {
theme = theme.split(' ')[1].trim();
}
const isDark = darkThemes.includes(theme);
console.log('Setting theme', theme);
themeStore.set({ theme, isDark });
};
+3
View File
@@ -1,6 +1,8 @@
import type { State } from '$lib/types';
import { initURLSubscription, loadState, updateCodeStore } from './state';
import { analytics, initAnalytics } from './stats';
import { loadDataFromUrl } from './fileLoaders/loader';
import { initLoading } from './loading';
export const loadStateFromURL = (): void => {
loadState(window.location.hash.slice(1));
@@ -14,6 +16,7 @@ export const syncDiagram = (): void => {
export const initHandler = async (): Promise<void> => {
loadStateFromURL();
await initLoading('Loading Gist...', loadDataFromUrl().catch(console.error));
syncDiagram();
initURLSubscription();
await initAnalytics();
+2
View File
@@ -0,0 +1,2 @@
import { get as manifestGet } from '../manifest.json';
export const get = manifestGet;
+59 -1
View File
@@ -2,6 +2,10 @@
import '../app.postcss';
import { base } from '$app/paths';
import { onMount } from 'svelte';
import { loadingStateStore } from '$lib/util/loading';
import { setTheme, themeStore } from '$lib/util/theme';
import { toggleDarkTheme } from '$lib/util/state';
// This can be removed once https://github.com/sveltejs/kit/issues/1612 is fixed.
// Then move it into src and vite will bundle it automatically.
onMount(() => {
@@ -17,9 +21,63 @@
console.log('Service worker registration failed, error:', error);
});
}
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
if ($themeStore.theme === undefined) {
setTheme(isDarkMode ? 'dark' : 'light');
}
themeStore.subscribe(({ theme, isDark }) => {
if (theme) {
document.getElementsByTagName('html')[0].setAttribute('data-theme', theme);
toggleDarkTheme(isDark);
}
});
});
</script>
<main class="h-screen">
<main class="h-screen text-primary-content">
<slot />
</main>
{#if $loadingStateStore.loading}
<div
class="w-screen h-screen z-50 absolute left-0 top-0 bg-gray-600 opacity-50 flex align-middle justify-center">
<div class="text-indigo-100 text-4xl font-bold my-auto">
<div class="loader mx-auto" />
<div>{$loadingStateStore.message}</div>
</div>
</div>
{/if}
<style>
.loader {
border: 0.45em solid #f3f3f3;
border-radius: 50%;
border-top: 0.45em solid #6365f1;
width: 3em;
height: 3em;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
+30 -27
View File
@@ -10,11 +10,12 @@
import { initHandler, syncDiagram } from '$lib/util/util';
import { errorStore } from '$lib/util/error';
import { onMount } from 'svelte';
import * as mermaid from 'mermaid';
import mermaid from 'mermaid';
import type monaco from 'monaco-editor';
import type { EditorUpdateEvent, State, Tab } from '$lib/types';
import { base } from '$app/paths';
base64State; // Weird fix for error > base64State is not defined. Treeshaking?
let selectedMode = 'code';
const languageMap = {
code: 'mermaid',
@@ -120,25 +121,32 @@
});
</script>
<div class="h-full flex flex-col overflow-hidden bg-gray-100">
<div class="h-full flex flex-col overflow-hidden">
<Navbar />
<div class="flex-1 flex overflow-hidden">
<div class="hidden md:flex flex-col" id="editorPane" style="width: 40%">
<Card on:select={tabSelectHandler} {tabs} isCloseable={false} title="Mermaid">
<div slot="actions">
{#if !$codeStore.autoSync}
<button
class="bg-indigo-500 hover:bg-indigo-700 rounded px-4 mx-2"
title="Sync Diagram"
data-cy="sync"
on:click={syncDiagram}><i class="fas fa-sync" /></button>
{/if}
<label
for="autoSync"
style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<input type="checkbox" id="autoSync" bind:checked={$codeStore.autoSync} />
Auto sync
</label>
<div class="flex flex-row items-center">
{#if !$codeStore.autoSync}
<button
class="btn btn-secondary btn-xs"
title="Sync Diagram"
data-cy="sync"
on:click={syncDiagram}><i class="fas fa-sync" /></button>
{/if}
<div class="form-control">
<label class="cursor-pointer label" for="autoSync">
<input
type="checkbox"
class="toggle toggle-primary mr-1"
id="autoSync"
bind:checked={$codeStore.autoSync} />
<span> Auto sync</span>
</label>
</div>
</div>
</div>
<Editor on:update={updateHandler} {language} bind:text {errorMarkers} />
@@ -150,20 +158,20 @@
<Actions />
</div>
</div>
<div id="resizeHandler" />
<div id="resizeHandler" class="hidden md:block" />
<div class="flex-1 flex flex-col overflow-hidden">
<Card title="Diagram" isCloseable={false}>
<button
slot="actions"
class="btn"
class="btn btn-primary btn-xs shadow-lg"
title="View diagram in new page"
on:click|stopPropagation={() => viewDiagram()}><i class="far fa-eye" /> View</button>
on:click|stopPropagation={() => viewDiagram()}><i class="far fa-eye mr-2" /> View</button>
<div class="flex-1 overflow-auto">
<View />
</div>
</Card>
<div class="md:hidden bg-white rounded shadow p-2 mx-2">
<div class="md:hidden rounded shadow p-2 mx-2">
Code editing not supported on mobile. Please use a desktop browser.
</div>
</div>
@@ -182,19 +190,14 @@
top: 0;
content: '';
position: absolute;
background-color: #ccc;
background-color: hsla(var(--b3));
margin-left: -1px;
transition-duration: 0.2s;
}
#resizeHandler:hover::after {
margin-left: -2px;
background-color: #818cf8;
background-color: hsla(var(--p));
width: 4px;
}
@media screen and (max-width: 768px) {
#resizeHandler {
display: none;
}
}
</style>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 47 KiB

+1
View File
@@ -24,6 +24,7 @@ const config = {
target: '#svelte',
trailingSlash: 'ignore',
vite: {
envPrefix: 'MERMAID_',
optimizeDeps: { include: ['mermaid'] }
}
}
+3 -17
View File
@@ -1,21 +1,7 @@
const { tailwindExtractor } = require('tailwindcss/lib/lib/purgeUnusedStyles');
module.exports = {
mode: 'aot',
purge: {
content: ['./src/**/*.{html,js,svelte,ts}'],
options: {
defaultExtractor: (content) => [
// If this stops working, please open an issue at https://github.com/svelte-add/tailwindcss/issues rather than bothering Tailwind Labs about it
...tailwindExtractor(content),
// Match Svelte class: directives (https://github.com/tailwindlabs/tailwindcss/discussions/1731)
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
([_match, group, ..._rest]) => group
)
]
},
safelist: [/^svelte-[\d\w]+$/]
},
mode: 'jit',
plugins: [require('daisyui')],
purge: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {}
},
+1 -1
View File
@@ -2,7 +2,7 @@
"compilerOptions": {
"moduleResolution": "node",
"module": "es2020",
"lib": ["es2020", "ESNext"],
"lib": ["es2020", "ESNext", "DOM.Iterable"],
"target": "es2019",
/**
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
+921 -2068
View File
File diff suppressed because it is too large Load Diff