prosekit 0.0.21 → 0.0.22
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/_tsup-dts-rollup.d.ts +20 -11
- package/dist/prosekit-core.d.ts +3 -4
- package/dist/prosekit-react.d.ts +4 -0
- package/package.json +15 -15
|
@@ -182,9 +182,11 @@ import { defineMention } from '@prosekit/extensions/mention';
|
|
|
182
182
|
import { defineMentionSpec } from '@prosekit/extensions/mention';
|
|
183
183
|
import { defineNodeSpec } from '@prosekit/core';
|
|
184
184
|
import { defineNodeView } from '@prosekit/core';
|
|
185
|
+
import { defineNodeViewEffect } from '@prosekit/core';
|
|
185
186
|
import { defineParagraph } from '@prosekit/core';
|
|
186
187
|
import { definePlaceholder } from '@prosekit/extensions/placeholder';
|
|
187
188
|
import { definePlugin } from '@prosekit/core';
|
|
189
|
+
import { defineReactNodeView } from '@prosekit/react';
|
|
188
190
|
import { defineSuggestion } from '@prosekit/extensions/suggestion';
|
|
189
191
|
import { defineText } from '@prosekit/core';
|
|
190
192
|
import { deleteSelection } from '@prosekit/pm/commands';
|
|
@@ -259,6 +261,7 @@ import { NodeSpecOptions } from '@prosekit/core';
|
|
|
259
261
|
import { NodeType } from '@prosekit/pm/model';
|
|
260
262
|
import { NodeView } from '@prosekit/pm/view';
|
|
261
263
|
import { NodeViewConstructor } from '@prosekit/pm/view';
|
|
264
|
+
import { NodeViewEffectOptions } from '@prosekit/core';
|
|
262
265
|
import { NodeViewOptions } from '@prosekit/core';
|
|
263
266
|
import { openDoubleQuote } from '@prosekit/pm/inputrules';
|
|
264
267
|
import { openSingleQuote } from '@prosekit/pm/inputrules';
|
|
@@ -269,8 +272,8 @@ import { pcBaseKeymap } from '@prosekit/pm/commands';
|
|
|
269
272
|
import { PlaceholderOptions } from '@prosekit/extensions/placeholder';
|
|
270
273
|
import { Plugin as Plugin_2 } from '@prosekit/pm/state';
|
|
271
274
|
import { pluginFacet } from '@prosekit/core';
|
|
272
|
-
import { PluginFacetInput } from '@prosekit/core';
|
|
273
275
|
import { PluginKey } from '@prosekit/pm/state';
|
|
276
|
+
import { PluginPayload } from '@prosekit/core';
|
|
274
277
|
import { PluginSpec } from '@prosekit/pm/state';
|
|
275
278
|
import { PluginView } from '@prosekit/pm/state';
|
|
276
279
|
import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
|
|
@@ -302,6 +305,8 @@ import { ProseKitProps as ProseKitProps_alias_3 } from '@prosekit/vue';
|
|
|
302
305
|
import { ProseMirrorFragment } from '@prosekit/pm/model';
|
|
303
306
|
import { ProseMirrorNode } from '@prosekit/pm/model';
|
|
304
307
|
import { ProseMirrorPlugin } from '@prosekit/pm/state';
|
|
308
|
+
import { ReactNodeViewComponentProps } from '@prosekit/react';
|
|
309
|
+
import { ReactNodeViewOptions } from '@prosekit/react';
|
|
305
310
|
import { redo } from '@prosekit/pm/history';
|
|
306
311
|
import { redoDepth } from '@prosekit/pm/history';
|
|
307
312
|
import { RemoveMarkStep } from '@prosekit/pm/transform';
|
|
@@ -331,8 +336,6 @@ import { smartQuotes } from '@prosekit/pm/inputrules';
|
|
|
331
336
|
import { splitBlock } from '@prosekit/pm/commands';
|
|
332
337
|
import { splitBlockAs } from '@prosekit/pm/commands';
|
|
333
338
|
import { splitBlockKeepMarks } from '@prosekit/pm/commands';
|
|
334
|
-
import { StateConfigCallback } from '@prosekit/core';
|
|
335
|
-
import { StateConfigContext } from '@prosekit/core';
|
|
336
339
|
import { StateField } from '@prosekit/pm/state';
|
|
337
340
|
import { StateJson } from '@prosekit/core';
|
|
338
341
|
import { Step } from '@prosekit/pm/transform';
|
|
@@ -365,7 +368,7 @@ import { useKeymap } from '@prosekit/preact';
|
|
|
365
368
|
import { useKeymap as useKeymap_alias_1 } from '@prosekit/react';
|
|
366
369
|
import { useKeymap as useKeymap_alias_2 } from '@prosekit/solid';
|
|
367
370
|
import { useKeymap as useKeymap_alias_3 } from '@prosekit/vue';
|
|
368
|
-
import {
|
|
371
|
+
import { useNodeViewContext } from '@prosekit/react';
|
|
369
372
|
import { withPriority } from '@prosekit/core';
|
|
370
373
|
import { wrapIn } from '@prosekit/pm/commands';
|
|
371
374
|
import { wrappingInputRule } from '@prosekit/pm/inputrules';
|
|
@@ -740,12 +743,16 @@ export { defineNodeSpec }
|
|
|
740
743
|
|
|
741
744
|
export { defineNodeView }
|
|
742
745
|
|
|
746
|
+
export { defineNodeViewEffect }
|
|
747
|
+
|
|
743
748
|
export { defineParagraph }
|
|
744
749
|
|
|
745
750
|
export { definePlaceholder }
|
|
746
751
|
|
|
747
752
|
export { definePlugin }
|
|
748
753
|
|
|
754
|
+
export { defineReactNodeView }
|
|
755
|
+
|
|
749
756
|
export { defineSuggestion }
|
|
750
757
|
|
|
751
758
|
export { defineText }
|
|
@@ -894,6 +901,8 @@ export { NodeView }
|
|
|
894
901
|
|
|
895
902
|
export { NodeViewConstructor }
|
|
896
903
|
|
|
904
|
+
export { NodeViewEffectOptions }
|
|
905
|
+
|
|
897
906
|
export { NodeViewOptions }
|
|
898
907
|
|
|
899
908
|
export { openDoubleQuote }
|
|
@@ -912,10 +921,10 @@ export { Plugin_2 as Plugin }
|
|
|
912
921
|
|
|
913
922
|
export { pluginFacet }
|
|
914
923
|
|
|
915
|
-
export { PluginFacetInput }
|
|
916
|
-
|
|
917
924
|
export { PluginKey }
|
|
918
925
|
|
|
926
|
+
export { PluginPayload }
|
|
927
|
+
|
|
919
928
|
export { PluginSpec }
|
|
920
929
|
|
|
921
930
|
export { PluginView }
|
|
@@ -978,6 +987,10 @@ export { ProseMirrorNode }
|
|
|
978
987
|
|
|
979
988
|
export { ProseMirrorPlugin }
|
|
980
989
|
|
|
990
|
+
export { ReactNodeViewComponentProps }
|
|
991
|
+
|
|
992
|
+
export { ReactNodeViewOptions }
|
|
993
|
+
|
|
981
994
|
export { redo }
|
|
982
995
|
|
|
983
996
|
export { redoDepth }
|
|
@@ -1036,10 +1049,6 @@ export { splitBlockAs }
|
|
|
1036
1049
|
|
|
1037
1050
|
export { splitBlockKeepMarks }
|
|
1038
1051
|
|
|
1039
|
-
export { StateConfigCallback }
|
|
1040
|
-
|
|
1041
|
-
export { StateConfigContext }
|
|
1042
|
-
|
|
1043
1052
|
export { StateField }
|
|
1044
1053
|
|
|
1045
1054
|
export { StateJson }
|
|
@@ -1104,7 +1113,7 @@ export { useKeymap_alias_2 }
|
|
|
1104
1113
|
|
|
1105
1114
|
export { useKeymap_alias_3 }
|
|
1106
1115
|
|
|
1107
|
-
export {
|
|
1116
|
+
export { useNodeViewContext }
|
|
1108
1117
|
|
|
1109
1118
|
export { withPriority }
|
|
1110
1119
|
|
package/dist/prosekit-core.d.ts
CHANGED
|
@@ -30,10 +30,12 @@ export { defineNodeSpec } from './_tsup-dts-rollup';
|
|
|
30
30
|
export { NodeSpecOptions } from './_tsup-dts-rollup';
|
|
31
31
|
export { defineNodeView } from './_tsup-dts-rollup';
|
|
32
32
|
export { NodeViewOptions } from './_tsup-dts-rollup';
|
|
33
|
+
export { defineNodeViewEffect } from './_tsup-dts-rollup';
|
|
34
|
+
export { NodeViewEffectOptions } from './_tsup-dts-rollup';
|
|
33
35
|
export { defineParagraph } from './_tsup-dts-rollup';
|
|
34
36
|
export { definePlugin } from './_tsup-dts-rollup';
|
|
35
37
|
export { pluginFacet } from './_tsup-dts-rollup';
|
|
36
|
-
export {
|
|
38
|
+
export { PluginPayload } from './_tsup-dts-rollup';
|
|
37
39
|
export { defineText } from './_tsup-dts-rollup';
|
|
38
40
|
export { CommandArgs } from './_tsup-dts-rollup';
|
|
39
41
|
export { Extension } from './_tsup-dts-rollup';
|
|
@@ -50,6 +52,3 @@ export { Priority } from './_tsup-dts-rollup';
|
|
|
50
52
|
export { SimplifyUnion } from './_tsup-dts-rollup';
|
|
51
53
|
export { getMarkType } from './_tsup-dts-rollup';
|
|
52
54
|
export { getNodeType } from './_tsup-dts-rollup';
|
|
53
|
-
export { StateConfigContext } from './_tsup-dts-rollup';
|
|
54
|
-
export { StateConfigCallback } from './_tsup-dts-rollup';
|
|
55
|
-
export { ViewProps } from './_tsup-dts-rollup';
|
package/dist/prosekit-react.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export { useNodeViewContext } from './_tsup-dts-rollup';
|
|
1
2
|
export { ProseKit_alias_1 as ProseKit } from './_tsup-dts-rollup';
|
|
2
3
|
export { ProseKitProps_alias_1 as ProseKitProps } from './_tsup-dts-rollup';
|
|
4
|
+
export { defineReactNodeView } from './_tsup-dts-rollup';
|
|
5
|
+
export { ReactNodeViewComponentProps } from './_tsup-dts-rollup';
|
|
6
|
+
export { ReactNodeViewOptions } from './_tsup-dts-rollup';
|
|
3
7
|
export { useEditor_alias_1 as useEditor } from './_tsup-dts-rollup';
|
|
4
8
|
export { UseEditorOptions } from './_tsup-dts-rollup';
|
|
5
9
|
export { useExtension_alias_1 as useExtension } from './_tsup-dts-rollup';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosekit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.22",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -478,16 +478,16 @@
|
|
|
478
478
|
"dist"
|
|
479
479
|
],
|
|
480
480
|
"dependencies": {
|
|
481
|
-
"@prosekit/basic": "0.0.
|
|
482
|
-
"@prosekit/core": "0.0.
|
|
483
|
-
"@prosekit/extensions": "0.0.
|
|
484
|
-
"@prosekit/lit": "0.0.
|
|
481
|
+
"@prosekit/basic": "0.0.17",
|
|
482
|
+
"@prosekit/core": "0.0.13",
|
|
483
|
+
"@prosekit/extensions": "0.0.15",
|
|
484
|
+
"@prosekit/lit": "0.0.17",
|
|
485
485
|
"@prosekit/pm": "0.0.6",
|
|
486
|
-
"@prosekit/preact": "0.0.
|
|
487
|
-
"@prosekit/react": "0.0.
|
|
488
|
-
"@prosekit/solid": "0.0.
|
|
489
|
-
"@prosekit/svelte": "0.0.
|
|
490
|
-
"@prosekit/vue": "0.0.
|
|
486
|
+
"@prosekit/preact": "0.0.14",
|
|
487
|
+
"@prosekit/react": "0.0.17",
|
|
488
|
+
"@prosekit/solid": "0.0.15",
|
|
489
|
+
"@prosekit/svelte": "0.0.15",
|
|
490
|
+
"@prosekit/vue": "0.0.18"
|
|
491
491
|
},
|
|
492
492
|
"peerDependencies": {
|
|
493
493
|
"preact": ">= 9.0.0",
|
|
@@ -519,16 +519,16 @@
|
|
|
519
519
|
},
|
|
520
520
|
"devDependencies": {
|
|
521
521
|
"@prosekit/dev": "*",
|
|
522
|
-
"@types/react": "^18.2.
|
|
523
|
-
"@types/react-dom": "^18.2.
|
|
522
|
+
"@types/react": "^18.2.31",
|
|
523
|
+
"@types/react-dom": "^18.2.14",
|
|
524
524
|
"preact": "^10.18.1",
|
|
525
525
|
"react": "^18.2.0",
|
|
526
526
|
"react-dom": "^18.2.0",
|
|
527
|
-
"solid-js": "^1.8.
|
|
528
|
-
"svelte": "^4.2.
|
|
527
|
+
"solid-js": "^1.8.3",
|
|
528
|
+
"svelte": "^4.2.2",
|
|
529
529
|
"tsup": "^7.2.0",
|
|
530
530
|
"typescript": "^5.2.2",
|
|
531
|
-
"vue": "^3.3.
|
|
531
|
+
"vue": "^3.3.6"
|
|
532
532
|
},
|
|
533
533
|
"scripts": {
|
|
534
534
|
"build:tsup": "tsup",
|