@portabletext/editor 3.3.16 → 4.0.0
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/lib/index.js +1 -1
- package/lib/plugins/index.js +1 -1
- package/package.json +20 -43
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useSelector, useActorRef } from "@xstate/react";
|
|
4
4
|
import { createContext, useContext, useEffect, useState, useRef, forwardRef, Component, startTransition } from "react";
|
|
5
5
|
import { Element as Element$1, Text, Range, Editor, Node, Point, Path, Transforms, deleteText, Operation, createEditor } from "slate";
|
package/lib/plugins/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portabletext/editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Portable Text Editor made in React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -27,32 +27,13 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"type": "module",
|
|
29
29
|
"exports": {
|
|
30
|
-
".":
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"./
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
"./plugins": {
|
|
39
|
-
"source": "./src/plugins/_exports/index.ts",
|
|
40
|
-
"default": "./lib/plugins/index.js"
|
|
41
|
-
},
|
|
42
|
-
"./selectors": {
|
|
43
|
-
"source": "./src/selectors/_exports/index.ts",
|
|
44
|
-
"default": "./lib/selectors/index.js"
|
|
45
|
-
},
|
|
46
|
-
"./test": {
|
|
47
|
-
"default": "./src/test/_exports/index.ts"
|
|
48
|
-
},
|
|
49
|
-
"./test/vitest": {
|
|
50
|
-
"default": "./src/test/vitest/_exports/index.ts"
|
|
51
|
-
},
|
|
52
|
-
"./utils": {
|
|
53
|
-
"source": "./src/utils/_exports/index.ts",
|
|
54
|
-
"default": "./lib/utils/index.js"
|
|
55
|
-
},
|
|
30
|
+
".": "./lib/index.js",
|
|
31
|
+
"./behaviors": "./lib/behaviors/index.js",
|
|
32
|
+
"./plugins": "./lib/plugins/index.js",
|
|
33
|
+
"./selectors": "./lib/selectors/index.js",
|
|
34
|
+
"./test": "./src/test/_exports/index.ts",
|
|
35
|
+
"./test/vitest": "./src/test/vitest/_exports/index.ts",
|
|
36
|
+
"./utils": "./lib/utils/index.js",
|
|
56
37
|
"./package.json": "./package.json"
|
|
57
38
|
},
|
|
58
39
|
"main": "./lib/index.js",
|
|
@@ -62,24 +43,23 @@
|
|
|
62
43
|
],
|
|
63
44
|
"dependencies": {
|
|
64
45
|
"@portabletext/to-html": "^5.0.0",
|
|
65
|
-
"@sanity/schema": "^
|
|
66
|
-
"@sanity/types": "^
|
|
46
|
+
"@sanity/schema": "^5.0.0",
|
|
47
|
+
"@sanity/types": "^5.0.0",
|
|
67
48
|
"@xstate/react": "^6.0.0",
|
|
68
49
|
"debug": "^4.4.3",
|
|
69
|
-
"react-compiler-runtime": "^1.0.0",
|
|
70
50
|
"slate": "^0.120.0",
|
|
71
51
|
"slate-dom": "^0.119.0",
|
|
72
52
|
"slate-react": "^0.120.0",
|
|
73
53
|
"xstate": "^5.25.0",
|
|
74
|
-
"@portabletext/
|
|
75
|
-
"@portabletext/
|
|
76
|
-
"@portabletext/markdown": "^1.1.
|
|
77
|
-
"@portabletext/patches": "^2.0.
|
|
78
|
-
"@portabletext/schema": "^2.1.
|
|
54
|
+
"@portabletext/block-tools": "^5.0.0",
|
|
55
|
+
"@portabletext/keyboard-shortcuts": "^2.1.2",
|
|
56
|
+
"@portabletext/markdown": "^1.1.1",
|
|
57
|
+
"@portabletext/patches": "^2.0.3",
|
|
58
|
+
"@portabletext/schema": "^2.1.1"
|
|
79
59
|
},
|
|
80
60
|
"devDependencies": {
|
|
81
61
|
"@sanity/diff-match-patch": "^3.2.0",
|
|
82
|
-
"@sanity/pkg-utils": "^10.1
|
|
62
|
+
"@sanity/pkg-utils": "^10.2.1",
|
|
83
63
|
"@types/debug": "^4.1.12",
|
|
84
64
|
"@types/node": "^20",
|
|
85
65
|
"@types/react": "^19.2.7",
|
|
@@ -101,21 +81,18 @@
|
|
|
101
81
|
"vite": "^7.1.12",
|
|
102
82
|
"vitest": "^4.0.14",
|
|
103
83
|
"vitest-browser-react": "^2.0.2",
|
|
104
|
-
"@portabletext/sanity-bridge": "
|
|
84
|
+
"@portabletext/sanity-bridge": "2.0.0",
|
|
105
85
|
"@portabletext/test": "^1.0.3",
|
|
106
|
-
"racejar": "2.0.
|
|
86
|
+
"racejar": "2.0.2"
|
|
107
87
|
},
|
|
108
88
|
"peerDependencies": {
|
|
109
|
-
"@portabletext/sanity-bridge": "^
|
|
110
|
-
"react": "^
|
|
89
|
+
"@portabletext/sanity-bridge": "^2.0.0",
|
|
90
|
+
"react": "^19.2.3",
|
|
111
91
|
"rxjs": "^7.8.2"
|
|
112
92
|
},
|
|
113
93
|
"engines": {
|
|
114
94
|
"node": ">=20.19 <22 || >=22.12"
|
|
115
95
|
},
|
|
116
|
-
"publishConfig": {
|
|
117
|
-
"access": "public"
|
|
118
|
-
},
|
|
119
96
|
"scripts": {
|
|
120
97
|
"build": "pkg-utils build --strict --check --clean",
|
|
121
98
|
"check:lint": "biome lint .",
|