@yext/visual-editor 0.0.22 → 0.0.24
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 +47 -33
- package/dist/index.d.ts +47 -33
- package/dist/style.css +1 -1
- package/dist/visual-editor.cjs +61 -60
- package/dist/visual-editor.js +8002 -7148
- package/package.json +10 -10
- package/README.md +0 -25
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.24",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "sumo@yext.com",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,16 +28,14 @@
|
|
|
28
28
|
"build": "tsc && vite build",
|
|
29
29
|
"test": "vitest run",
|
|
30
30
|
"prettier": "prettier --write --cache .",
|
|
31
|
-
"lint": "eslint --cache --fix src/
|
|
31
|
+
"lint": "eslint --cache --fix src/",
|
|
32
32
|
"autofix": "pnpm run lint && pnpm run prettier",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"prepare": "husky && pnpm build",
|
|
36
|
-
"generate-notices": "generate-license-file",
|
|
33
|
+
"prepare": "pnpm build",
|
|
34
|
+
"generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite",
|
|
37
35
|
"generate-registry": "tsx src/components/puck/registry/build-registry.ts"
|
|
38
36
|
},
|
|
39
37
|
"dependencies": {
|
|
40
|
-
"@measured/puck": "0.
|
|
38
|
+
"@measured/puck": "0.18.0",
|
|
41
39
|
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
42
40
|
"@radix-ui/react-label": "^2.1.0",
|
|
43
41
|
"@radix-ui/react-progress": "^1.1.0",
|
|
@@ -47,6 +45,7 @@
|
|
|
47
45
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
48
46
|
"class-variance-authority": "^0.7.0",
|
|
49
47
|
"clsx": "^2.1.1",
|
|
48
|
+
"dompurify": "^3.2.3",
|
|
50
49
|
"eslint": "^9.8.0",
|
|
51
50
|
"eslint-plugin-react": "^7.35.0",
|
|
52
51
|
"lucide-react": "^0.414.0",
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
"prettier": "^3.3.3",
|
|
56
55
|
"prompts": "^2.4.2",
|
|
57
56
|
"react-color": "^2.19.3",
|
|
57
|
+
"react-error-boundary": "^5.0.0",
|
|
58
58
|
"sonner": "^1.5.0",
|
|
59
59
|
"tailwind-merge": "^2.4.0",
|
|
60
60
|
"tsx": "^4.16.3"
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
"tailwindcss": "^3.4.6",
|
|
100
100
|
"tsup": "8.3.5",
|
|
101
101
|
"typescript": "^5.5.4",
|
|
102
|
-
"vite": "^5.3.5",
|
|
103
102
|
"uuid": "11.0.3",
|
|
103
|
+
"vite": "^5.3.5",
|
|
104
104
|
"vitest": "^2.0.5",
|
|
105
105
|
"zod": "^3.23.8"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
|
+
"@yext/pages-components": "^1.0.0",
|
|
108
109
|
"react": "^17.0.2 || ^18.2.0",
|
|
109
|
-
"react-dom": "^17.0.2 || ^18.2.0"
|
|
110
|
-
"@yext/pages-components": "^1.0.0"
|
|
110
|
+
"react-dom": "^17.0.2 || ^18.2.0"
|
|
111
111
|
}
|
|
112
112
|
}
|
package/README.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# visual-editor
|
|
4
|
-
This library provides components necessary to set up a Pages repository that can interact with Visual Editor in the Yext platform.
|
|
5
|
-
|
|
6
|
-
## Hooks
|
|
7
|
-
|
|
8
|
-
| Hook |
|
|
9
|
-
|------------------------------------------------------------------|
|
|
10
|
-
| [usePlatformBridgeDocument](./src/hooks/README.md#usePlatformBridgeDocument) |
|
|
11
|
-
| [usePlatformBridgeEntityFields](./src/hooks/README.md#usePlatformBridgeEntityFields) |
|
|
12
|
-
|
|
13
|
-
## Components
|
|
14
|
-
|
|
15
|
-
| Component |
|
|
16
|
-
|-------------------------------------------------------|
|
|
17
|
-
| [Editor](src/editor/README.md#editor) |
|
|
18
|
-
| [EntityField](src/editor/README.md#entityfield) |
|
|
19
|
-
| [YextEntityFieldSelector](src/editor/README.md#YextEntityFieldSelector) |
|
|
20
|
-
|
|
21
|
-
## Utils
|
|
22
|
-
|
|
23
|
-
| Function |
|
|
24
|
-
|--------------------------------------------------------------------------|
|
|
25
|
-
| [resolveYextEntityField](./src/utils/README.md#resolveYextEntityField) |
|