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
This commit is contained in:
Sidharth Vinod
2023-05-23 10:34:08 +05:30
7 changed files with 155 additions and 99 deletions

View File

@@ -27,9 +27,9 @@
"directory": "packages/mermaid-zenuml"
},
"contributors": [
"Peng Xiao",
"Sidharth Vinod <github@sidharth.dev> (https://sidharth.dev)",
"Dong Cai"
"Peng Xiao (https://github.com/MrCoder)",
"Sidharth Vinod (https://sidharth.dev)",
"Dong Cai (https://github.com/dontry)"
],
"license": "MIT",
"dependencies": {

View File

@@ -53,7 +53,7 @@ export const draw = async function (text: string, id: string) {
const { foreignObject, container, app } = createForeignObject(id);
svgContainer.appendChild(foreignObject);
// @ts-expect-error @zenuml/core@3.0.0 exports the wrong type for ZenUml
const zenuml = new ZenUml(app);
// default is a theme name. More themes to be added and will be configurable in the future
await zenuml.render(text, 'theme-mermaid');