@yext/visual-editor 0.0.23 → 0.0.25
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 +65 -39
- package/dist/index.d.ts +65 -39
- package/dist/style.css +1 -1
- package/dist/visual-editor.cjs +77 -63
- package/dist/visual-editor.js +11166 -8455
- package/package.json +9 -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.25",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "sumo@yext.com",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,16 +28,13 @@
|
|
|
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",
|
|
37
|
-
"generate-registry": "tsx src/components/puck/registry/build-registry.ts"
|
|
33
|
+
"prepare": "pnpm build",
|
|
34
|
+
"generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite"
|
|
38
35
|
},
|
|
39
36
|
"dependencies": {
|
|
40
|
-
"@measured/puck": "0.
|
|
37
|
+
"@measured/puck": "0.18.2",
|
|
41
38
|
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
42
39
|
"@radix-ui/react-label": "^2.1.0",
|
|
43
40
|
"@radix-ui/react-progress": "^1.1.0",
|
|
@@ -47,6 +44,8 @@
|
|
|
47
44
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
48
45
|
"class-variance-authority": "^0.7.0",
|
|
49
46
|
"clsx": "^2.1.1",
|
|
47
|
+
"lz-string": "1.5.0",
|
|
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",
|
|
@@ -91,9 +90,9 @@
|
|
|
91
90
|
"execa": "^8.0.1",
|
|
92
91
|
"fs-extra": "^11.2.0",
|
|
93
92
|
"generate-license-file": "^3.5.0",
|
|
94
|
-
"globals": "^15.8.0",
|
|
95
93
|
"husky": "^9.1.4",
|
|
96
94
|
"jsdom": "^24.1.1",
|
|
95
|
+
"libphonenumber-js": "^1.11.19",
|
|
97
96
|
"lint-staged": "^15.2.7",
|
|
98
97
|
"minimist": "^1.2.8",
|
|
99
98
|
"semver": "^7.6.3",
|
|
@@ -102,7 +101,7 @@
|
|
|
102
101
|
"typescript": "^5.5.4",
|
|
103
102
|
"uuid": "11.0.3",
|
|
104
103
|
"vite": "^5.3.5",
|
|
105
|
-
"vitest": "^
|
|
104
|
+
"vitest": "^3.0.5",
|
|
106
105
|
"zod": "^3.23.8"
|
|
107
106
|
},
|
|
108
107
|
"peerDependencies": {
|
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) |
|