@yext/visual-editor 0.0.34 → 0.0.36
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/dist/index.d.cts +193 -103
- package/dist/index.d.ts +193 -103
- package/dist/plugin/plugin.cjs +2 -11
- package/dist/plugin/plugin.js +10 -19
- package/dist/style.css +1 -1
- package/dist/visual-editor.cjs +62 -62
- package/dist/visual-editor.js +12838 -11952
- package/package.json +23 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yext/visual-editor",
|
|
3
3
|
"description": "Component library for Yext Pages Visual Editor",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.36",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "sumo@yext.com",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -31,15 +31,23 @@
|
|
|
31
31
|
"build:components": "tsc && vite build",
|
|
32
32
|
"build:plugin": "vite build --config vite.config.plugin.ts",
|
|
33
33
|
"build": "pnpm run build:components && pnpm run build:plugin",
|
|
34
|
-
"test": "
|
|
34
|
+
"test": "pnpm run test:editor && pnpm run test:components",
|
|
35
|
+
"test:editor": "vitest run --exclude './src/components/**/*.test.tsx' --browser.enabled false",
|
|
36
|
+
"test:components": "vitest run ./src/components/**",
|
|
35
37
|
"prettier": "prettier --write --cache .",
|
|
36
38
|
"lint": "eslint --cache --fix src/ --ignore-pattern 'src/vite-plugin/templates/*'",
|
|
37
39
|
"autofix": "pnpm run lint && pnpm run prettier",
|
|
38
40
|
"prepare": "pnpm build",
|
|
39
|
-
"generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite"
|
|
41
|
+
"generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite",
|
|
42
|
+
"docs:dev": "vitepress dev .",
|
|
43
|
+
"docs:build": "vitepress build .",
|
|
44
|
+
"docs:preview": "vitepress preview .",
|
|
45
|
+
"generate-registry": "tsx src/components/registry/build-registry.cts",
|
|
46
|
+
"build-registry-docs": "pnpm run docs:build && pnpm run generate-registry"
|
|
40
47
|
},
|
|
41
48
|
"dependencies": {
|
|
42
49
|
"@measured/puck": "0.18.2",
|
|
50
|
+
"@radix-ui/react-accordion": "^1.2.3",
|
|
43
51
|
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
44
52
|
"@radix-ui/react-label": "^2.1.0",
|
|
45
53
|
"@radix-ui/react-popover": "^1.1.6",
|
|
@@ -49,7 +57,6 @@
|
|
|
49
57
|
"@radix-ui/react-switch": "^1.1.0",
|
|
50
58
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
51
59
|
"@tanstack/react-query": "^5.71.5",
|
|
52
|
-
"@radix-ui/react-accordion": "^1.2.3",
|
|
53
60
|
"class-variance-authority": "^0.7.0",
|
|
54
61
|
"clsx": "^2.1.1",
|
|
55
62
|
"cmdk": "^1.1.1",
|
|
@@ -70,21 +77,21 @@
|
|
|
70
77
|
"tsx": "^4.16.3"
|
|
71
78
|
},
|
|
72
79
|
"engines": {
|
|
73
|
-
"node": "^
|
|
80
|
+
"node": "^18 || ^20.2.0 || ^22"
|
|
74
81
|
},
|
|
75
82
|
"packageManager": "pnpm@9.12.3",
|
|
76
83
|
"lint-staged": {
|
|
77
84
|
"*": "prettier --write --cache --ignore-unknown",
|
|
78
|
-
"*.{ts,js,tsx,jsx}": "eslint --cache --fix"
|
|
85
|
+
"*.{ts,js,tsx,jsx}": "eslint --cache --fix src/ --ignore-pattern 'src/vite-plugin/templates/*'"
|
|
79
86
|
},
|
|
80
87
|
"devDependencies": {
|
|
81
88
|
"@eslint/compat": "^1.1.1",
|
|
82
89
|
"@eslint/eslintrc": "^3.1.0",
|
|
83
90
|
"@eslint/js": "^9.8.0",
|
|
84
91
|
"@testing-library/dom": "^10.4.0",
|
|
85
|
-
"@testing-library/react": "^16.0
|
|
86
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
92
|
+
"@testing-library/react": "^16.3.0",
|
|
87
93
|
"@types/fs-extra": "^11.0.4",
|
|
94
|
+
"@types/jest-axe": "^3.5.9",
|
|
88
95
|
"@types/minimist": "^1.2.5",
|
|
89
96
|
"@types/node": "^20.14.11",
|
|
90
97
|
"@types/prompts": "^2.4.9",
|
|
@@ -96,24 +103,31 @@
|
|
|
96
103
|
"@typescript-eslint/eslint-plugin": "^8.0.1",
|
|
97
104
|
"@typescript-eslint/parser": "^8.0.1",
|
|
98
105
|
"@vitejs/plugin-react": "^4.3.1",
|
|
106
|
+
"@vitest/browser": "^3.1.1",
|
|
99
107
|
"autoprefixer": "^10.4.2",
|
|
108
|
+
"axe-core": "^4.10.3",
|
|
100
109
|
"eslint-plugin-import": "^2.29.1",
|
|
101
110
|
"execa": "^8.0.1",
|
|
102
111
|
"fs-extra": "^11.2.0",
|
|
103
112
|
"generate-license-file": "^3.5.0",
|
|
113
|
+
"gray-matter": "^4.0.3",
|
|
104
114
|
"husky": "^9.1.4",
|
|
115
|
+
"jest-axe": "^10.0.0",
|
|
105
116
|
"jsdom": "^24.1.1",
|
|
106
117
|
"libphonenumber-js": "^1.11.19",
|
|
107
118
|
"lint-staged": "^15.2.7",
|
|
108
119
|
"minimist": "^1.2.8",
|
|
120
|
+
"playwright": "^1.51.1",
|
|
109
121
|
"react-icons": "^5.2.1",
|
|
110
122
|
"semver": "^7.6.3",
|
|
111
123
|
"tailwindcss": "^3.4.6",
|
|
124
|
+
"ts-node": "^10.9.2",
|
|
112
125
|
"tsup": "8.3.5",
|
|
113
126
|
"typescript": "^5.5.4",
|
|
114
127
|
"uuid": "11.0.3",
|
|
115
128
|
"vite": "^5.3.5",
|
|
116
|
-
"
|
|
129
|
+
"vitepress": "^1.6.3",
|
|
130
|
+
"vitest": "^3.1.1",
|
|
117
131
|
"zod": "^3.23.8"
|
|
118
132
|
},
|
|
119
133
|
"peerDependencies": {
|