@yext/visual-editor 0.0.33 → 0.0.35
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 +717 -222
- package/dist/index.d.ts +717 -222
- 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 +81 -97
- package/dist/visual-editor.js +24985 -19043
- package/package.json +26 -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.35",
|
|
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",
|
|
@@ -48,9 +56,10 @@
|
|
|
48
56
|
"@radix-ui/react-slot": "^1.1.0",
|
|
49
57
|
"@radix-ui/react-switch": "^1.1.0",
|
|
50
58
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
59
|
+
"@tanstack/react-query": "^5.71.5",
|
|
51
60
|
"class-variance-authority": "^0.7.0",
|
|
52
61
|
"clsx": "^2.1.1",
|
|
53
|
-
"cmdk": "^1.
|
|
62
|
+
"cmdk": "^1.1.1",
|
|
54
63
|
"dompurify": "^3.2.3",
|
|
55
64
|
"eslint": "^9.8.0",
|
|
56
65
|
"eslint-plugin-react": "^7.35.0",
|
|
@@ -60,6 +69,7 @@
|
|
|
60
69
|
"picocolors": "^1.0.1",
|
|
61
70
|
"prettier": "^3.3.3",
|
|
62
71
|
"prompts": "^2.4.2",
|
|
72
|
+
"pure-react-carousel": "^1.32.0",
|
|
63
73
|
"react-color": "^2.19.3",
|
|
64
74
|
"react-error-boundary": "^5.0.0",
|
|
65
75
|
"sonner": "^1.5.0",
|
|
@@ -67,21 +77,21 @@
|
|
|
67
77
|
"tsx": "^4.16.3"
|
|
68
78
|
},
|
|
69
79
|
"engines": {
|
|
70
|
-
"node": "^
|
|
80
|
+
"node": "^18 || ^20.2.0 || ^22"
|
|
71
81
|
},
|
|
72
82
|
"packageManager": "pnpm@9.12.3",
|
|
73
83
|
"lint-staged": {
|
|
74
84
|
"*": "prettier --write --cache --ignore-unknown",
|
|
75
|
-
"*.{ts,js,tsx,jsx}": "eslint --cache --fix"
|
|
85
|
+
"*.{ts,js,tsx,jsx}": "eslint --cache --fix src/ --ignore-pattern 'src/vite-plugin/templates/*'"
|
|
76
86
|
},
|
|
77
87
|
"devDependencies": {
|
|
78
88
|
"@eslint/compat": "^1.1.1",
|
|
79
89
|
"@eslint/eslintrc": "^3.1.0",
|
|
80
90
|
"@eslint/js": "^9.8.0",
|
|
81
91
|
"@testing-library/dom": "^10.4.0",
|
|
82
|
-
"@testing-library/react": "^16.0
|
|
83
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
92
|
+
"@testing-library/react": "^16.3.0",
|
|
84
93
|
"@types/fs-extra": "^11.0.4",
|
|
94
|
+
"@types/jest-axe": "^3.5.9",
|
|
85
95
|
"@types/minimist": "^1.2.5",
|
|
86
96
|
"@types/node": "^20.14.11",
|
|
87
97
|
"@types/prompts": "^2.4.9",
|
|
@@ -93,24 +103,31 @@
|
|
|
93
103
|
"@typescript-eslint/eslint-plugin": "^8.0.1",
|
|
94
104
|
"@typescript-eslint/parser": "^8.0.1",
|
|
95
105
|
"@vitejs/plugin-react": "^4.3.1",
|
|
106
|
+
"@vitest/browser": "^3.1.1",
|
|
96
107
|
"autoprefixer": "^10.4.2",
|
|
108
|
+
"axe-core": "^4.10.3",
|
|
97
109
|
"eslint-plugin-import": "^2.29.1",
|
|
98
110
|
"execa": "^8.0.1",
|
|
99
111
|
"fs-extra": "^11.2.0",
|
|
100
112
|
"generate-license-file": "^3.5.0",
|
|
113
|
+
"gray-matter": "^4.0.3",
|
|
101
114
|
"husky": "^9.1.4",
|
|
115
|
+
"jest-axe": "^10.0.0",
|
|
102
116
|
"jsdom": "^24.1.1",
|
|
103
117
|
"libphonenumber-js": "^1.11.19",
|
|
104
118
|
"lint-staged": "^15.2.7",
|
|
105
119
|
"minimist": "^1.2.8",
|
|
120
|
+
"playwright": "^1.51.1",
|
|
106
121
|
"react-icons": "^5.2.1",
|
|
107
122
|
"semver": "^7.6.3",
|
|
108
123
|
"tailwindcss": "^3.4.6",
|
|
124
|
+
"ts-node": "^10.9.2",
|
|
109
125
|
"tsup": "8.3.5",
|
|
110
126
|
"typescript": "^5.5.4",
|
|
111
127
|
"uuid": "11.0.3",
|
|
112
128
|
"vite": "^5.3.5",
|
|
113
|
-
"
|
|
129
|
+
"vitepress": "^1.6.3",
|
|
130
|
+
"vitest": "^3.1.1",
|
|
114
131
|
"zod": "^3.23.8"
|
|
115
132
|
},
|
|
116
133
|
"peerDependencies": {
|