plitejs 0.0.1 → 54.0.0-beta.3
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/LICENSE +4 -1
- package/README.md +83 -0
- package/dist/annotation-store-metrics-Ccjkef45.js +12 -0
- package/dist/annotations/index.d.ts +2 -0
- package/dist/annotations/index.js +2 -0
- package/dist/authored/index.d.ts +596 -0
- package/dist/authored/index.js +18558 -0
- package/dist/authored-veto-DSnQcHGR.js +6 -0
- package/dist/browser-protocol-pvt4HFF7.js +5 -0
- package/dist/comparison-plan-CEQL0ooW.js +1338 -0
- package/dist/comparison-types-Dt-unJZY.d.ts +179 -0
- package/dist/create-editor-CkHtPWXV.js +1107 -0
- package/dist/diff/index.d.ts +32 -0
- package/dist/diff/index.js +1748 -0
- package/dist/dom/index.d.ts +2 -0
- package/dist/dom/index.js +2 -0
- package/dist/dom-Cgfscvnm.js +9220 -0
- package/dist/editor-owner-IUmkTeXz.js +171 -0
- package/dist/editor-view-lifetime-GJKa_QGh.js +23 -0
- package/dist/history/index.d.ts +170 -0
- package/dist/history/index.js +6718 -0
- package/dist/hyperscript/index.d.ts +2 -0
- package/dist/hyperscript/index.js +2 -0
- package/dist/hyperscript-FPuoArEi.js +299 -0
- package/dist/index-BpQx2UG4.d.ts +1093 -0
- package/dist/index-Cw-oC2ps.d.ts +190 -0
- package/dist/index-DPWyk3lG.d.ts +65 -0
- package/dist/index-DpltOCot.d.ts +9753 -0
- package/dist/index-HPYawTae.d.ts +119 -0
- package/dist/index-K0Za9YXc.d.ts +1246 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/internal/index.d.ts +2 -0
- package/dist/internal/index.js +156 -0
- package/dist/mapped-view-store-ld-6uxEU.js +120 -0
- package/dist/native-grouping-input-DMNcsIaW.js +8 -0
- package/dist/pagination/index.d.ts +169 -0
- package/dist/pagination/index.js +2 -0
- package/dist/pagination/react.d.ts +33 -0
- package/dist/pagination/react.js +1509 -0
- package/dist/pagination-D_A8iPJP.js +1021 -0
- package/dist/plugin-DWzkJbnJ.js +50999 -0
- package/dist/range-geometry-BLAHRE11.d.ts +38 -0
- package/dist/range-geometry-BjeLHOnl.js +486 -0
- package/dist/react/index.d.ts +5 -0
- package/dist/react/index.js +7 -0
- package/dist/react/virtualized.d.ts +13 -0
- package/dist/react/virtualized.js +209 -0
- package/dist/react-DZ15gmz2.js +1018 -0
- package/dist/retraction-BMem8Rfk.js +109 -0
- package/dist/src-cT1OTKP_.js +1386 -0
- package/dist/store-Cz2mXyDe.js +704 -0
- package/dist/testing/index.d.ts +183 -0
- package/dist/testing/index.js +96 -0
- package/dist/use-editor-dom-scope-BbMDSCpW.js +28354 -0
- package/dist/yjs/index.d.ts +2 -0
- package/dist/yjs/index.js +2 -0
- package/dist/yjs/react/index.d.ts +26 -0
- package/dist/yjs/react/index.js +85 -0
- package/dist/yjs-DOK-m7kl.js +13413 -0
- package/package.json +191 -43
package/package.json
CHANGED
|
@@ -1,56 +1,204 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plitejs",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"keywords": [
|
|
3
|
+
"version": "54.0.0-beta.3",
|
|
4
|
+
"description": "A headless-first framework for building rich text editors.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"contenteditable",
|
|
7
|
+
"document",
|
|
8
|
+
"editor",
|
|
9
|
+
"headless",
|
|
10
|
+
"plitejs",
|
|
11
|
+
"react",
|
|
12
|
+
"richtext",
|
|
13
|
+
"wysiwyg"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://platejs.org",
|
|
6
16
|
"bugs": {
|
|
7
|
-
"url": "https://github.com/udecode/
|
|
17
|
+
"url": "https://github.com/udecode/plate/issues"
|
|
8
18
|
},
|
|
19
|
+
"license": "MIT",
|
|
9
20
|
"repository": {
|
|
10
21
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/udecode/
|
|
22
|
+
"url": "https://github.com/udecode/plate.git",
|
|
23
|
+
"directory": "packages/plitejs"
|
|
12
24
|
},
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"sideEffects": false,
|
|
15
|
-
"exports": {
|
|
16
|
-
".": "./dist/index.mjs",
|
|
17
|
-
"./package.json": "./package.json"
|
|
18
|
-
},
|
|
19
|
-
"main": "./dist/index.mjs",
|
|
20
|
-
"module": "./dist/index.mjs",
|
|
21
|
-
"types": "./dist/index.d.mts",
|
|
22
25
|
"files": [
|
|
23
|
-
"dist"
|
|
26
|
+
"dist/**/*"
|
|
24
27
|
],
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
"type": "module",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"module": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"import": "./dist/index.js",
|
|
37
|
+
"default": "./dist/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./internal": {
|
|
40
|
+
"types": "./dist/internal/index.d.ts",
|
|
41
|
+
"import": "./dist/internal/index.js",
|
|
42
|
+
"default": "./dist/internal/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./dom": {
|
|
45
|
+
"types": "./dist/dom/index.d.ts",
|
|
46
|
+
"import": "./dist/dom/index.js",
|
|
47
|
+
"default": "./dist/dom/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./authored": {
|
|
50
|
+
"types": "./dist/authored/index.d.ts",
|
|
51
|
+
"import": "./dist/authored/index.js",
|
|
52
|
+
"default": "./dist/authored/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./history": {
|
|
55
|
+
"types": "./dist/history/index.d.ts",
|
|
56
|
+
"import": "./dist/history/index.js",
|
|
57
|
+
"default": "./dist/history/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./hyperscript": {
|
|
60
|
+
"types": "./dist/hyperscript/index.d.ts",
|
|
61
|
+
"import": "./dist/hyperscript/index.js",
|
|
62
|
+
"default": "./dist/hyperscript/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./pagination": {
|
|
65
|
+
"types": "./dist/pagination/index.d.ts",
|
|
66
|
+
"import": "./dist/pagination/index.js",
|
|
67
|
+
"default": "./dist/pagination/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./pagination/react": {
|
|
70
|
+
"types": "./dist/pagination/react.d.ts",
|
|
71
|
+
"import": "./dist/pagination/react.js",
|
|
72
|
+
"default": "./dist/pagination/react.js"
|
|
73
|
+
},
|
|
74
|
+
"./react": {
|
|
75
|
+
"types": "./dist/react/index.d.ts",
|
|
76
|
+
"import": "./dist/react/index.js",
|
|
77
|
+
"default": "./dist/react/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./react/virtualized": {
|
|
80
|
+
"types": "./dist/react/virtualized.d.ts",
|
|
81
|
+
"import": "./dist/react/virtualized.js",
|
|
82
|
+
"default": "./dist/react/virtualized.js"
|
|
83
|
+
},
|
|
84
|
+
"./annotations": {
|
|
85
|
+
"types": "./dist/annotations/index.d.ts",
|
|
86
|
+
"import": "./dist/annotations/index.js",
|
|
87
|
+
"default": "./dist/annotations/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./diff": {
|
|
90
|
+
"types": "./dist/diff/index.d.ts",
|
|
91
|
+
"import": "./dist/diff/index.js",
|
|
92
|
+
"default": "./dist/diff/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./testing": {
|
|
95
|
+
"types": "./dist/testing/index.d.ts",
|
|
96
|
+
"import": "./dist/testing/index.js",
|
|
97
|
+
"default": "./dist/testing/index.js"
|
|
98
|
+
},
|
|
99
|
+
"./package.json": "./package.json",
|
|
100
|
+
"./yjs": {
|
|
101
|
+
"types": "./dist/yjs/index.d.ts",
|
|
102
|
+
"import": "./dist/yjs/index.js",
|
|
103
|
+
"default": "./dist/yjs/index.js"
|
|
104
|
+
},
|
|
105
|
+
"./yjs/react": {
|
|
106
|
+
"types": "./dist/yjs/react/index.d.ts",
|
|
107
|
+
"import": "./dist/yjs/react/index.js",
|
|
108
|
+
"default": "./dist/yjs/react/index.js"
|
|
109
|
+
}
|
|
35
110
|
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@biomejs/biome": "2.3.7",
|
|
38
|
-
"@changesets/changelog-github": "^0.5.1",
|
|
39
|
-
"@changesets/cli": "2.29.7",
|
|
40
|
-
"@rollup/plugin-babel": "^6.1.0",
|
|
41
|
-
"@types/node": "^24.7.2",
|
|
42
|
-
"@typescript-eslint/parser": "^8.47.0",
|
|
43
|
-
"babel-plugin-react-compiler": "^1.0.0",
|
|
44
|
-
"barrelsby": "^2.8.1",
|
|
45
|
-
"eslint": "^9.39.1",
|
|
46
|
-
"eslint-plugin-react-hooks": "7.0.1",
|
|
47
|
-
"lefthook": "^2.0.0",
|
|
48
|
-
"tsdown": "^0.16.6",
|
|
49
|
-
"typescript": "5.9.3",
|
|
50
|
-
"ultracite": "6.3.6"
|
|
51
|
-
},
|
|
52
|
-
"packageManager": "bun@1.3.3",
|
|
53
111
|
"publishConfig": {
|
|
54
112
|
"access": "public"
|
|
113
|
+
},
|
|
114
|
+
"dependencies": {
|
|
115
|
+
"@noble/hashes": "^1.8.0",
|
|
116
|
+
"csstype": "3.2.3",
|
|
117
|
+
"lodash": "^4.17.21",
|
|
118
|
+
"scroll-into-view-if-needed": "^3.1.0"
|
|
119
|
+
},
|
|
120
|
+
"devDependencies": {
|
|
121
|
+
"@babel/core": "7.29.0",
|
|
122
|
+
"@chenglou/pretext": "^0.0.7",
|
|
123
|
+
"@cloudflare/vitest-plugin": "1.4.10",
|
|
124
|
+
"@cloudflare/workers-types": "5.20261028.1",
|
|
125
|
+
"@happy-dom/global-registrator": "20.11.15",
|
|
126
|
+
"@tanstack/react-virtual": "^3.13.25",
|
|
127
|
+
"@testing-library/dom": "10.4.0",
|
|
128
|
+
"@testing-library/jest-dom": "6.6.3",
|
|
129
|
+
"@testing-library/react": "16.3.0",
|
|
130
|
+
"@types/jsdom": "^21.1.7",
|
|
131
|
+
"@types/lodash": "^4.14.200",
|
|
132
|
+
"@types/node": "24.12.0",
|
|
133
|
+
"@types/react": "19.2.7",
|
|
134
|
+
"@types/react-dom": "19.2.3",
|
|
135
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
136
|
+
"diff-match-patch-ts": "^0.6.0",
|
|
137
|
+
"fast-check": "^3.23.2",
|
|
138
|
+
"jsdom": "20.0.3",
|
|
139
|
+
"react": "19.2.8",
|
|
140
|
+
"react-dom": "19.2.8",
|
|
141
|
+
"vitest": "^4.1.0",
|
|
142
|
+
"yjs": "13.6.30"
|
|
143
|
+
},
|
|
144
|
+
"peerDependencies": {
|
|
145
|
+
"@chenglou/pretext": "^0.0.7",
|
|
146
|
+
"@tanstack/react-virtual": "^3.13.25",
|
|
147
|
+
"diff-match-patch-ts": "^0.6.0",
|
|
148
|
+
"react": ">=19.2.0",
|
|
149
|
+
"react-dom": ">=19.2.0",
|
|
150
|
+
"yjs": ">=13.6.30"
|
|
151
|
+
},
|
|
152
|
+
"peerDependenciesMeta": {
|
|
153
|
+
"@chenglou/pretext": {
|
|
154
|
+
"optional": true
|
|
155
|
+
},
|
|
156
|
+
"@tanstack/react-virtual": {
|
|
157
|
+
"optional": true
|
|
158
|
+
},
|
|
159
|
+
"diff-match-patch-ts": {
|
|
160
|
+
"optional": true
|
|
161
|
+
},
|
|
162
|
+
"react": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
165
|
+
"react-dom": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
168
|
+
"yjs": {
|
|
169
|
+
"optional": true
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"scripts": {
|
|
173
|
+
"brl": "echo 'No barrels to generate'",
|
|
174
|
+
"build": "tsdown --config tsdown.config.mts --log-level warn",
|
|
175
|
+
"clean": "rimraf dist lib",
|
|
176
|
+
"lint": "node ../../tooling/scripts/run-entrypoint-package-task.mjs plitejs lint",
|
|
177
|
+
"lint:fix": "node ../../tooling/scripts/plate-pkg.cjs p:lint:fix",
|
|
178
|
+
"lint:partition:authored": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs authored",
|
|
179
|
+
"lint:partition:core": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs core",
|
|
180
|
+
"lint:partition:diff": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs diff",
|
|
181
|
+
"lint:partition:dom": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs dom",
|
|
182
|
+
"lint:partition:history": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs history",
|
|
183
|
+
"lint:partition:pagination": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs pagination",
|
|
184
|
+
"lint:partition:react": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs react",
|
|
185
|
+
"lint:partition:react-virtualized": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs react-virtualized",
|
|
186
|
+
"lint:partition:testing": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs testing",
|
|
187
|
+
"lint:partition:yjs": "node ../../tooling/scripts/run-entrypoint-task.mjs lint plitejs yjs",
|
|
188
|
+
"test": "node ../../tooling/scripts/run-entrypoint-package-task.mjs plitejs test",
|
|
189
|
+
"test:bun": "BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 bun test --timeout 30000 --preload ../../config/plite-source-test-setup.ts --path-ignore-patterns 'test/react/**' --path-ignore-patterns 'test/sync/cloudflare/**'",
|
|
190
|
+
"test:partition:authored": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs authored",
|
|
191
|
+
"test:partition:core": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs core",
|
|
192
|
+
"test:partition:diff": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs diff",
|
|
193
|
+
"test:partition:dom": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs dom",
|
|
194
|
+
"test:partition:history": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs history",
|
|
195
|
+
"test:partition:pagination": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs pagination",
|
|
196
|
+
"test:partition:react": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs react",
|
|
197
|
+
"test:partition:react-virtualized": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs react-virtualized",
|
|
198
|
+
"test:partition:testing": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs testing",
|
|
199
|
+
"test:partition:yjs": "node ../../tooling/scripts/run-entrypoint-task.mjs test plitejs yjs",
|
|
200
|
+
"test:react": "vitest run --config ./vitest.config.mjs",
|
|
201
|
+
"test:workers": "vitest run --config ./vitest.config.workers.mjs",
|
|
202
|
+
"typecheck": "node ../../tooling/scripts/typecheck.mjs plitejs"
|
|
55
203
|
}
|
|
56
|
-
}
|
|
204
|
+
}
|