Commit Graph

259 Commits

Author SHA1 Message Date
Alois Klink a0a25ed756 chore: remove unused `devDependency` on coveralls
This `devDependency` hasn't been used for a long time.
2023-07-16 00:21:43 +01:00
renovate[bot] d46ef4cc91
chore(deps): update all patch dependencies 2023-07-11 17:19:31 +00:00
renovate[bot] 47f46c8a46
chore(deps): update all minor dependencies 2023-07-10 01:17:36 +00:00
Alois Klink 7c3a73d4a8 build(types): add script to generate Config types
Add script `packages/mermaid/scripts/create-types-from-json-schema.mts`
to automatically generate the TypeScript definition for `MermaidConfig`
from the `MermaidConfig` JSON Schema at
`packages/mermaid/src/schemas/config.schema.yaml`.

To do this, we are using this library
[`json-schema-to-typescript`][1], which is also used by Webpack to
generate their types from their JSON Schema.

In order to make sure that this isn't a breaking change, the script
makes all fields **optional**, as that is what the original typescript
file has.

Additionally, I've put in some custom logic into the script, so that
the exact same order is used for the TypeScript file, to make the
`git diff` easier to review. In the future, we can remove this custom
logic, once we no longer need to worry about `git merge` conflicts.

[1]: https://github.com/bcherny/json-schema-to-typescript
2023-07-06 03:53:40 +01:00
Alois Klink 0230722d36 build(docs): build JSON Schema docs
Automatically build documentation for JSON Schema.

This is only built when running with `--vitepress`,
as it currently produces loads of markdown files, which I feel like
we shouldn't be committing.

This currently manually uses some internal `jsonschema2md` functions
so that we can manually control the Markdown output.
2023-07-06 03:53:40 +01:00
Alois Klink 52a1243da5 build: use vite to get default mermaid config
Adds a vitepress JsonSchema plugin that automatically loads
the Mermaid Config JSON Schema from a .schema.yaml file and
gets the default values from it.
2023-07-06 03:53:40 +01:00
renovate[bot] d6731a07db
Update all patch dependencies 2023-07-03 05:18:01 +00:00
renovate[bot] b55a9328f4
Update all patch dependencies 2023-07-02 05:07:56 +00:00
Nikolay Rozhkov cd7fce4e4d Merge branch 'develop' into feature/4492_sankey-diagrams 2023-06-30 22:58:56 +03:00
Knut Sveidqvist 453b337e6e Updated mermaid version to 10.2.4 2023-06-30 13:10:22 +02:00
Nikolay Rozhkov 06cb0c3be9 Fixed package json 2023-06-29 20:22:06 +03:00
Nikolay Rozhkov e7ad294283 Merge branch 'develop' into feature/4492_sankey-diagrams 2023-06-29 16:50:38 +03:00
Nikolay Rozhkov 408c32781e Contributors fetching failure must not hinder docs development 2023-06-29 15:24:14 +03:00
Sidharth Vinod 0d833fb4ce
Use v8 coverage 2023-06-28 23:28:23 +05:30
Nikolay Rozhkov 8b111760b1 Updates after review 2023-06-27 17:50:51 +03:00
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
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
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
Sidharth Vinod 6c96650043
chore: update deps 2023-06-17 16:51:30 +05:30
Sidharth Vinod 8a0a874d1c
Merge coverages 2023-06-17 01:24:15 +05:30
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