Commit Graph

303 Commits

Author SHA1 Message Date
Nikolay Rozhkov e1c9aec775 Merge remote-tracking branch 'nirname/develop' into feature/4492_sankey-diagrams 2023-06-27 16:25:18 +03:00
Nikolay Rozhkov 32c8524317 Put d3-sankey under mermaid package 2023-06-27 15:15:34 +03:00
renovate[bot] 1730a229a5
chore(deps): update dependency workbox-window to v7 2023-06-27 09:21:55 +00:00
renovate[bot] b7af9bace4
chore(deps): update dependency eslint-plugin-unicorn to v47 2023-06-27 08:00:16 +00:00
Sidharth Vinod a167d61d2a
Merge pull request #4546 from mermaid-js/renovate/jsdom-22.x
chore(deps): update dependency jsdom to v22
2023-06-27 13:28:56 +05:30
renovate[bot] f48652322d
chore(deps): update dependency jsdom to v22 2023-06-27 07:13:43 +00:00
renovate[bot] 120029913d
chore(deps): update dependency eslint-plugin-jsdoc to v46 2023-06-27 06:23:27 +00:00
Yokozuna59 760548335c
Merge branch 'develop' into standardized-pie-definitions 2023-06-27 01:45:35 +03:00
renovate[bot] f90a7dc784 fix(deps): update all patch dependencies 2023-06-26 03:12:45 +00:00
Nikolay Rozhkov d9036c7af1 Added gradient for sankey and cleaned code 2023-06-22 21:26:39 +03:00
Nikolay Rozhkov bc33c8210c Merge branch 'develop' into feature/4492_sankey-diagrams 2023-06-21 03:00:27 +03:00
Yokozuna59 a92571d588 add type-fest to mermaid dev deps 2023-06-19 17:40:01 +03:00
Yokozuna59 34a47706fd update pnpm-lock.yaml 2023-06-19 13:41:36 +03:00
Yokozuna59 906d909d87 Merge branch develop into standardized-pie-definitions 2023-06-19 13:39:41 +03:00
renovate[bot] 14582fb13d
fix(deps): update all patch dependencies 2023-06-19 04:53:17 +00:00
Nikolay Rozhkov 726efdad53 Fixed packaged 2023-06-19 01:09:21 +03:00
Nikolay Rozhkov 81542142f5 Fix errors 2023-06-19 01:05:33 +03:00
renovate[bot] 2ee37752c8 chore(deps): update all minor dependencies 2023-06-18 06:35:43 +00:00
Yokozuna59 6941814729 update pnpm-lock.yaml 2023-06-17 15:01:20 +03:00
Yokozuna59 32d3001e2a
Merge branch 'develop' into standardized-pie-definitions 2023-06-17 14:54:44 +03:00
Yokozuna59 452e543e77
Merge branch 'develop' into standardized-pie-definitions 2023-06-17 14:43:51 +03:00
Sidharth Vinod 6c96650043
chore: update deps 2023-06-17 16:51:30 +05:30
Yokozuna59 f2338f5b66 remove vanilla-extract from dev dependencies 2023-06-17 00:42:29 +03:00
Sidharth Vinod 8a0a874d1c
Merge coverages 2023-06-17 01:24:15 +05:30
Yokozuna59 a3901f691a add `@types/d3-scale` and @types/d3-shape` to mermaid dev deps 2023-06-16 22:47:40 +03:00
Sidharth Vinod ecc4aa734b
Merge branch 'develop' into sidv/E2ECoverage
* develop: (43 commits)
  rename plugin variable into info in infoDetector.ts
  remove cypress/platform/index.html
  update pnpm-lock.yaml
  indent info.html files
  update pnpm-lock.yaml
  remove empty options in cypress info.spec.ts
  format and add theme to cypress info.html
  convert the cypress info.spec.js into ts
  add messing timeline and info demoes links
  change infoDb db export
  remove default export in info files
  resolve db import in info.spec.ts
  remove assigned variables to their variables and export db without default
  use object destructuring for getConfig in infoRenderer
  move default_info_db into infoDbOF
  remove id and diagram assigning in info loader
  assign returned variables to their variables
  remove handled `ts-ignore` in info diagram
  handle optional `.styles`
  add info fields interface
  ...
2023-06-16 20:31:52 +05:30
Sidharth Vinod 547358fc7e
Add coverage for E2E tests 2023-06-16 20:25:40 +05:30
Yokozuna59 302f335704 update pnpm-lock.yaml 2023-06-15 23:52:11 +03:00
Yokozuna59 9928a15a66 update pnpm-lock.yaml 2023-06-15 14:44:26 +03:00
Yokozuna59 2b388ec6ec
Merge branch 'develop' into standardized-diagrams-definitions 2023-06-15 11:38:41 +03:00
Sidharth Vinod d4a473b88a
Revert patch changes 2023-06-15 12:25:10 +05:30
Yokozuna59 ab0eb6c9bf add `@types/d3-selection` to mermaid dev deps 2023-06-13 17:58:25 +03:00
Yokozuna59 5b3e565b63 update pnpm-lock.yaml file 2023-06-12 13:25:36 +03:00
renovate[bot] a754f7b699
Update all patch dependencies 2023-06-12 05:43:36 +00:00
Knut Sveidqvist 75f9de3d4a UPdated version to 10.2.3 2023-06-08 16:24:25 +02:00
Sidharth Vinod d148a65967
Merge branch 'develop' into sidv/zenuml
* develop: (22 commits)
  Update docs
  Added CKEditor and GitHub Writer to available integrations.
  chore(deps): update all patch dependencies
  build(deps): fix broken pnpm-lock.yaml file
  Mermaid version 10.2.0
  Mermaid Version 10.2.0-rc.4
  Label background fix
  Test commit
  Fix for regression error in sequenceDiagrams
  Fix visibility issue for fields
  fix parsing issue with class diagrams
  fix: Use unicode arrows in quadrant chart axis
  fix: Use unicode arrows in quadrant chart axis
  fix lint command
  Bump version
  Back to JS with jsdoc types
  Add unsupported text
  Reduce changes in test
  Fix deps
  Fix lockfile
  ...
2023-06-02 11:59:12 +05:30
renovate[bot] 38d9ebc5da chore(deps): update all patch dependencies 2023-05-29 05:19:50 +00:00
Alois Klink 6093383d45 build(deps): fix broken pnpm-lock.yaml file
Looks like a bad merge conflict resolution broke this file,
and for some reason, the `packages/mermaid/src/vitepress` bit got
removed when releasing v10.2.0-rc.4.

Fixes: bd1343648e
Fixes: 9c12c42a26
2023-05-24 22:19:49 +01:00
Knut Sveidqvist bd1343648e Merge branch 'master' into develop 2023-05-24 19:20:47 +02:00
Knut Sveidqvist 9c12c42a26 Mermaid Version 10.2.0-rc.4 2023-05-24 18:18:54 +02:00
Sidharth Vinod 102b9bc8c3
Merge branch 'develop' into sidv/zenuml
* develop:
  Update all minor dependencies
  Update all patch dependencies
2023-05-23 10:36:02 +05:30
Sidharth Vinod 9cec5ae1c4
Merge branch 'sidv/zenuml' of https://github.com/mermaid-js/mermaid into sidv/zenuml
* 'sidv/zenuml' of https://github.com/mermaid-js/mermaid:
  Update docs
  Add contributors profile url
  ignore ZenUML types
  fixed typo and update peerDependencies version
  update pnpm-lock.yaml
  Address mermaid-zenuml PR comments
  Update all minor dependencies
  Update all patch dependencies
  Fix vitepress build
2023-05-23 10:34:08 +05:30
renovate[bot] ac23787084 Update all minor dependencies 2023-05-22 07:53:27 +00:00
renovate[bot] ad61f4c6b1 Update all patch dependencies 2023-05-22 06:06:37 +00:00
Alois Klink acc19db5bb Merge branch 'develop' into sidv/zenuml
Conflicts:
	pnpm-lock.yaml
2023-05-17 19:59:58 +01:00
Alois Klink e984b34af4 Merge branch 'develop' into sidv/zenuml
* develop: (66 commits)
  Update docs
  Update docs
  Improve the wording of security level values
  Added quadrantChart to the side bar
  Added e2e test cases with some fixes
  Added documentation for the quadrantChart
  Restructured the build function and addressed more review comment
  Fixed some parser issue and added test cases for the parser
  Fixed review comment
  Update docs
  Converted files to typescript and added proper types
  Fix blog linting
  Debug fetch-contributors
  Fix lockfile
  Revert "Replace esno & ts-node with tsx"
  [draft] Added support for quadrant chart
  Fix lockfile
  Fix build
  Update pnpm-lock
  Replace esno & ts-node with tsx
  ...

Merge conflicts:
  - pnpm-lock.yaml
2023-05-17 19:25:29 +01:00
Dong Cai 507e24cc72 update pnpm-lock.yaml 2023-05-17 19:10:03 +01:00
renovate[bot] 9eeeb97e15 Update all patch dependencies 2023-05-17 09:17:43 +00:00
Sidharth Vinod 97be4983f0
Merge branch 'develop' into sidv/zenuml
* develop: (66 commits)
  Update docs
  Update docs
  Improve the wording of security level values
  Added quadrantChart to the side bar
  Added e2e test cases with some fixes
  Added documentation for the quadrantChart
  Restructured the build function and addressed more review comment
  Fixed some parser issue and added test cases for the parser
  Fixed review comment
  Update docs
  Converted files to typescript and added proper types
  Fix blog linting
  Debug fetch-contributors
  Fix lockfile
  Revert "Replace esno & ts-node with tsx"
  [draft] Added support for quadrant chart
  Fix lockfile
  Fix build
  Update pnpm-lock
  Replace esno & ts-node with tsx
  ...
2023-05-16 23:26:35 +05:30
Dong Cai c889ef0c30 update pnpm-lock.yaml 2023-05-16 21:08:25 +10:00
Sidharth Vinod 17c798a1b3
Merge branch 'develop' into release/10.2.0
* develop: (49 commits)
  Debug fetch-contributors
  Fix lockfile
  Revert "Replace esno & ts-node with tsx"
  Fix lockfile
  Fix build
  Update pnpm-lock
  Replace esno & ts-node with tsx
  chore(deps): update all minor dependencies
  chore(deps): update all patch dependencies
  Fix missing `await` in usage document
  Add integrations
  test: fix classDiagramGrammer unit test
  restore path calculation for grammar test
  Allow overlapping notes
  remove spellcheck warnings
  Fix path in test
  fix import issue
  requested update
  Reject ridiculous years in Gantt charts.
  Remove unnecessary dependencies
  ...
2023-05-09 10:13:15 +05:30
Sidharth Vinod 45139470a3
Fix lockfile 2023-05-08 22:08:47 +05:30
Sidharth Vinod 3677d44a58
Revert "Replace esno & ts-node with tsx"
This reverts commit 75337287ea.
2023-05-08 22:08:11 +05:30
Sidharth Vinod b27d018c09
Fix lockfile 2023-05-08 19:04:21 +05:30
Sidharth Vinod 1b48c19897
Merge branch 'develop' into sidv/contributors
* develop:
  chore(deps): update all minor dependencies
  requested update
  Update packages/mermaid/src/docs/syntax/flowchart.md
  Update docs
  Docs: Flowchart - minor verbiage update
2023-05-08 18:51:10 +05:30
Sidharth Vinod 500efda8d6
Update pnpm-lock 2023-05-08 18:47:22 +05:30
Sidharth Vinod 8e9d1bfc35
Merge branch 'develop' into sidv/contributors
* develop:
  chore(deps): update all patch dependencies
2023-05-08 18:46:39 +05:30
Sidharth Vinod 75337287ea
Replace esno & ts-node with tsx 2023-05-08 18:46:14 +05:30
renovate[bot] b04155178a
chore(deps): update all minor dependencies 2023-05-08 10:09:26 +00:00
renovate[bot] d7e140a829 chore(deps): update all patch dependencies 2023-05-08 10:08:10 +00:00
Sidharth Vinod cb3982de7e
Remove unnecessary dependencies
Co-authored-by: Alois Klink <alois.klink@gmail.com>
2023-05-02 14:16:35 +05:30
Sidharth Vinod 110cd61c64
Fix lockfile 2023-04-29 10:17:51 +05:30
Sidharth Vinod 99abd4c31b
Fix avatar fetching 2023-04-29 10:12:47 +05:30
Sidharth Vinod a01343bf1b
Fix lockfile 2023-04-27 10:37:35 +05:30
Sidharth Vinod 395a794758
Fix deps 2023-04-26 10:37:03 +05:30
Sidharth Vinod 1f2af83a0c
Fix lockfile 2023-04-26 10:35:24 +05:30
Sidharth Vinod 4d3e5e42e1
Use mdast-util-from-markdown instead of simple-markdown 2023-04-26 10:30:13 +05:30
Sidharth Vinod ec62c2bf5b
Merge branch 'develop' into sidv/zenuml
* develop: (33 commits)
  Update version
  Fix classParser
  Check for conflict when linting jison
  Update class grammar test
  fix Class diagram grammar
  Skip sourcemap
  Bump version
  Update deps
  Fix unit tests
  Update vite
  Fix applitools cypress
  Update packages/mermaid/package.json
  chore(deps): update dependency typescript to v5
  fix typedoc
  fix(deps): update all minor dependencies
  chore(deps): update pnpm to v8
  chore(deps): update fregante/setup-git-user action to v2
  fix(deps): update all minor dependencies
  chore(deps): update dependency start-server-and-test to v2
  chore(deps): update dependency rimraf to v5
  ...
2023-04-26 00:15:52 +05:30
Sidharth Vinod b9e7ba023f
Update ZenUML 2023-04-26 00:12:39 +05:30
Sidharth Vinod b0c58a9764
Update deps 2023-04-23 23:15:26 +05:30
Sidharth Vinod bbe3909627
Update vite 2023-04-23 22:34:19 +05:30
renovate[bot] 9e58f7bd99
chore(deps): update dependency typescript to v5 2023-04-22 20:51:24 +00:00
Sidharth Vinod 5c6773a47c
Merge branch 'renovate/all-minor' of https://github.com/mermaid-js/mermaid into renovate/all-minor
* 'renovate/all-minor' of https://github.com/mermaid-js/mermaid:
  fix(deps): update all minor dependencies
  chore(deps): update pnpm to v8
  chore(deps): update fregante/setup-git-user action to v2
2023-04-23 02:04:28 +05:30
Sidharth Vinod 5634c6ca1a
fix typedoc 2023-04-23 02:03:28 +05:30
renovate[bot] 1c17f4c770
fix(deps): update all minor dependencies 2023-04-22 20:30:38 +00:00
renovate[bot] bed9e8daab
chore(deps): update pnpm to v8 2023-04-22 20:04:11 +00:00
renovate[bot] e4bc3e2269
fix(deps): update all minor dependencies 2023-04-22 20:01:25 +00:00
renovate[bot] e6d11b9443
chore(deps): update dependency start-server-and-test to v2 2023-04-22 19:26:13 +00:00
Sidharth Vinod c624cbb910
Merge pull request #4325 from mermaid-js/renovate/eslint-plugin-unicorn-46.x
chore(deps): update dependency eslint-plugin-unicorn to v46
2023-04-23 00:51:33 +05:30
Sidharth Vinod 12ed81855a
Add zenuml 2023-04-23 00:34:59 +05:30
renovate[bot] f597f15f82
chore(deps): update dependency rimraf to v5 2023-04-22 18:53:56 +00:00
renovate[bot] 909c063a67
chore(deps): update dependency eslint-plugin-unicorn to v46 2023-04-22 18:51:50 +00:00
renovate[bot] 8cb3318d94 chore(deps): update dependency eslint-plugin-jsdoc to v43 2023-04-22 18:46:44 +00:00
renovate[bot] ddde451915
fix(deps): update dependency dompurify to v3 2023-04-22 08:28:31 +00:00
renovate[bot] 93eb72248a
chore(deps): update dependency concurrently to v8 2023-04-20 04:15:28 +00:00
Sidharth Vinod 2fe0a1360f
Upgrade vitepress 2023-04-20 09:35:28 +05:30
Remco Haszing aa5c1a5f78
Merge branch 'develop' into fix-node16-module-resolution 2023-04-13 14:58:17 +02:00
Alois Klink b4164b6ab5 test: test that styles and themes return valid CSS
Test that `src/diagrams/*/styles.ts` module returns a valid
CSS stylesheet that can be parsed via [stylis][1] and then
becomes a valid CSS that [csstree-validator][2] validates.

We test this for every diagram and for every theme, because
many of the invalid CSS bugs are caused by missing theme vars.

There are some CSS errors that I couldn't easily fix, so I've written
the tests to ignore the following CSS errors:
  - 'Unknown property `rx`' (Valid in SVG2 draft and in some browsers)
  - 'Unknown property `ry`' (Valid in SVG2 draft and in some browsers)
  - 'Unknown property `dy`'
    - This doesn't seem to be valid CSS in any SVG version, but maybe
      some browsers support it 🤷 I feel like we should probably change
      this though.

[1]: https://github.com/thysultan/stylis
[2]: https://github.com/csstree/validator
2023-04-13 08:27:32 +01:00
Sidharth Vinod d1e369e68d
revert pnpm changes 2023-04-05 16:32:48 +05:30
chriskim-au1 3b861ab91f doc update 2023-04-05 13:11:22 +10:00
Knut Sveidqvist 89193d7360 Simple markdown in lock file 2023-03-29 09:35:42 +02:00
Knut Sveidqvist 89eec225ce Merge branch 'develop' into 4220-string-synax-and-features 2023-03-29 09:34:49 +02:00
Knut Sveidqvist a1c50b8079 #4220 Parsing the text as markdown and rendering accordingly 2023-03-20 14:15:26 +01:00
renovate[bot] 8b37ceffe1 chore(deps): update pnpm to v7.30.0 2023-03-20 04:21:23 +00:00
Remco Haszing f3bebf25ea
Merge branch 'develop' into fix-node16-module-resolution 2023-03-17 20:52:50 +01:00
Remco Haszing 8c69ecd5ac
Update @types/lodash-es
This adds support for the TypeScript `"moduleResolution": "node16"`.
2023-03-17 12:26:41 +01:00
renovate[bot] f3a9f81bfb fix(deps): update all non-major dependencies 2023-03-13 09:45:30 +00:00
renovate[bot] 4b462d717c chore(deps): update node.js to v18.15.0 2023-03-13 04:42:20 +00:00
Remco Haszing b7d31adda4
Support node16 module resolution
The `node16` module resolution requires imports to use the `.js` file
extension in type definitions.

`@rollup/plugin-typescript` is needed to make this work with the Vite
setup used by Mermaid.

The module option for Mermaid internally is set to `nodenext`. This is
needed to support `.json` imports. Note that setting `module` to
`node16` or `nodenext` implies a matching `moduleResolution` value.
2023-03-11 14:54:21 +01:00
Sidharth Vinod 4e4f2fcfc5
Merge branch 'master' into develop
* master:
  Updated import of cytoscape for consistent behavior
  v9.4.3
  fix: dayjs import extension
  9.4.2
  Fix mindmap demo
  9.4.2-rc.2
  chore: Rename diagram-definitions with specific names
  Use cytoscape esm
  Revert "chore: Defer elk loading"
  Revert "Split cytoscape"
  test(gantt): test daylight savings in ganttdb
  refactor(deps): replace `moment` with `dayjs`
  fix(E2E): Add cors package
  fix Server
  Fix lockfile
  Remove Readme
2023-03-08 00:13:54 +05:30