@divkitframework/visual-editor 0.4.6 → 0.4.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divkitframework/visual-editor",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Visual editor for DivKit",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -19,24 +19,32 @@
19
19
  "dist/*"
20
20
  ],
21
21
  "scripts": {
22
- "dev": "vite",
22
+ "dev": "npm run build:grammar && vite",
23
23
  "build": "vite build",
24
- "build-lib": "vite build --config vite-lib.config.ts && terser dist/divkit-editor.js -o dist/divkit-editor.js && terser dist/editor.js -o dist/editor.js && terser dist/lottieApi.js -o dist/lottieApi.js",
24
+ "build:grammar": "lezer-generator src/lib/grammar/div.grammar -o src/lib/grammar/div.js",
25
+ "build-lib": "npm run build:grammar && vite build --config vite-lib.config.ts && terser dist/divkit-editor.js -o dist/divkit-editor.js && terser dist/editor.js -o dist/editor.js && terser dist/lottieApi.js -o dist/lottieApi.js",
25
26
  "build-typings": "rollup --config rollup-typings.config.ts --configPlugin typescript",
26
27
  "preview": "vite preview",
27
- "check:ts": "tsc --noEmit",
28
+ "check:ts": "npm run build:grammar && tsc --noEmit",
28
29
  "check:eslint": "eslint --quiet .",
29
- "check:svelte": "svelte-check --threshold error",
30
+ "check:svelte": "npm run build:grammar && svelte-check --threshold error",
30
31
  "test:unit": "vitest",
31
32
  "prepublishOnly": "cp ../LICENSE ./ && npm run build-lib && npm run build-typings"
32
33
  },
33
34
  "devDependencies": {
35
+ "@codemirror/autocomplete": "6.18.6",
36
+ "@codemirror/commands": "6.8.1",
34
37
  "@codemirror/lang-json": "6.0.1",
38
+ "@codemirror/language": "6.11.0",
35
39
  "@codemirror/lint": "6.2.1",
40
+ "@codemirror/search": "6.5.10",
36
41
  "@codemirror/state": "6.4.1",
37
42
  "@codemirror/theme-one-dark": "6.1.2",
38
43
  "@codemirror/view": "6.27.0",
39
- "@divkitframework/divkit": "31.2.0",
44
+ "@divkitframework/divkit": "31.13.0",
45
+ "@lezer/generator": "1.7.3",
46
+ "@lezer/highlight": "1.2.1",
47
+ "@lezer/lr": "1.4.2",
40
48
  "@rollup/plugin-typescript": "11.1.6",
41
49
  "@sveltejs/vite-plugin-svelte": "3.1.1",
42
50
  "@tsconfig/svelte": "5.0.4",