@zenuml/core 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.html CHANGED
@@ -29,7 +29,6 @@
29
29
  <link
30
30
  rel="stylesheet"
31
31
  href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.1/codemirror.min.css"
32
- crossorigin="anonymous"
33
32
  integrity="sha512-uf06llspW44/LZpHzHT6qBOIVODjWtv4MxCricRxkzvopAlSWnTf6hpZTFxuuZcuNE9CBQhqE0Seu1CoRk84nQ=="
34
33
  crossorigin="anonymous"
35
34
  referrerpolicy="no-referrer"
@@ -74,6 +73,10 @@
74
73
  singleCursorHeightPerLine: false,
75
74
  });
76
75
 
76
+ // Fixing an issue of wrong cursor position
77
+ // https://github.com/codemirror/codemirror5/issues/5724#issuecomment-470950897
78
+ document.fonts.ready.then(() => { editor.refresh(); });
79
+
77
80
  // implement a waitUntil function
78
81
  function waitUntil(condition, callback) {
79
82
  if (condition()) {
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
+ "license": "MIT",
5
6
  "repository": {
6
7
  "url": "https://github.com/mermaid-js/zenuml-core"
7
8
  },
@@ -11,6 +12,7 @@
11
12
  "build": "vite build -c vite.config.lib.js",
12
13
  "test": "vitest",
13
14
  "cy": "cypress run",
15
+ "cy:update": "cypress run --env updateSnapshots=true",
14
16
  "cy:open": "cypress open",
15
17
  "cy:smoke": "cypress run --spec cypress/e2e/smoke.spec.js",
16
18
  "antlr:setup": "python3 -m pip install antlr4-tools",
@@ -112,7 +114,6 @@
112
114
  "browserslist": [
113
115
  "last 2 years"
114
116
  ],
115
- "packageManager": "pnpm@7.18.1",
116
117
  "engines": {
117
118
  "node": ">=12.0.0"
118
119
  },