prosekit 0.2.6 → 0.2.8
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.
|
@@ -124,6 +124,7 @@ import { Decoration } from '@prosekit/pm/view';
|
|
|
124
124
|
import { DecorationAttrs } from '@prosekit/pm/view';
|
|
125
125
|
import { DecorationSet } from '@prosekit/pm/view';
|
|
126
126
|
import { DecorationSource } from '@prosekit/pm/view';
|
|
127
|
+
import { defaultBlockAt } from '@prosekit/core';
|
|
127
128
|
import { DefaultStateOptions } from '@prosekit/core';
|
|
128
129
|
import { defineAutocomplete } from '@prosekit/extensions/autocomplete';
|
|
129
130
|
import { defineBaseCommands } from '@prosekit/core';
|
|
@@ -149,6 +150,8 @@ import { defineCommands } from '@prosekit/core';
|
|
|
149
150
|
import { defineDefaultState } from '@prosekit/core';
|
|
150
151
|
import { defineDoc } from '@prosekit/core';
|
|
151
152
|
import { defineDocChangeHandler } from '@prosekit/core';
|
|
153
|
+
import { defineDropCursor } from '@prosekit/extensions/drop-cursor';
|
|
154
|
+
import { defineFocusChangeHandler } from '@prosekit/core';
|
|
152
155
|
import { defineHeading } from '@prosekit/extensions/heading';
|
|
153
156
|
import { defineHeadingCommands } from '@prosekit/extensions/heading';
|
|
154
157
|
import { defineHeadingInputRule } from '@prosekit/extensions/heading';
|
|
@@ -212,6 +215,7 @@ import { DOMEventMap } from '@prosekit/pm/view';
|
|
|
212
215
|
import { DOMOutputSpec } from '@prosekit/pm/model';
|
|
213
216
|
import { DOMParser as DOMParser_2 } from '@prosekit/pm/model';
|
|
214
217
|
import { DOMSerializer } from '@prosekit/pm/model';
|
|
218
|
+
import { DropCursorOptions } from '@prosekit/extensions/drop-cursor';
|
|
215
219
|
import { dropPoint } from '@prosekit/pm/transform';
|
|
216
220
|
import { Editor } from '@prosekit/core';
|
|
217
221
|
import { EditorOptions } from '@prosekit/core';
|
|
@@ -231,6 +235,7 @@ import { ExtractNodes } from '@prosekit/core';
|
|
|
231
235
|
import { Facet } from '@prosekit/core';
|
|
232
236
|
import { FacetOptions } from '@prosekit/core';
|
|
233
237
|
import { findWrapping } from '@prosekit/pm/transform';
|
|
238
|
+
import { FocusChangeHandler } from '@prosekit/core';
|
|
234
239
|
import { Fragment } from '@prosekit/pm/model';
|
|
235
240
|
import { _getId } from '@prosekit/core';
|
|
236
241
|
import { getMarkType } from '@prosekit/core';
|
|
@@ -309,6 +314,7 @@ import { NodeView } from '@prosekit/pm/view';
|
|
|
309
314
|
import { NodeViewConstructor } from '@prosekit/pm/view';
|
|
310
315
|
import { NodeViewFactoryOptions } from '@prosekit/core';
|
|
311
316
|
import { NodeViewOptions } from '@prosekit/core';
|
|
317
|
+
import { OBJECT_REPLACEMENT_CHARACTER } from '@prosekit/core';
|
|
312
318
|
import { openDoubleQuote } from '@prosekit/pm/inputrules';
|
|
313
319
|
import { openSingleQuote } from '@prosekit/pm/inputrules';
|
|
314
320
|
import { Options } from 'tsup';
|
|
@@ -470,6 +476,7 @@ import { VueNodeViewComponent } from '@prosekit/vue';
|
|
|
470
476
|
import { VueNodeViewOptions } from '@prosekit/vue';
|
|
471
477
|
import { VueNodeViewProps } from '@prosekit/vue';
|
|
472
478
|
import { withPriority } from '@prosekit/core';
|
|
479
|
+
import { withSkipCodeBlock } from '@prosekit/core';
|
|
473
480
|
import { wrapIn } from '@prosekit/pm/commands';
|
|
474
481
|
import { wrappingInputRule } from '@prosekit/pm/inputrules';
|
|
475
482
|
|
|
@@ -733,6 +740,8 @@ export declare namespace default_alias {
|
|
|
733
740
|
|
|
734
741
|
export declare const default_alias_1: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
735
742
|
|
|
743
|
+
export { defaultBlockAt }
|
|
744
|
+
|
|
736
745
|
export { DefaultStateOptions }
|
|
737
746
|
|
|
738
747
|
export { defineAutocomplete }
|
|
@@ -783,6 +792,10 @@ export { defineDoc }
|
|
|
783
792
|
|
|
784
793
|
export { defineDocChangeHandler }
|
|
785
794
|
|
|
795
|
+
export { defineDropCursor }
|
|
796
|
+
|
|
797
|
+
export { defineFocusChangeHandler }
|
|
798
|
+
|
|
786
799
|
export { defineHeading }
|
|
787
800
|
|
|
788
801
|
export { defineHeadingCommands }
|
|
@@ -909,6 +922,8 @@ export { DOMParser_2 as DOMParser }
|
|
|
909
922
|
|
|
910
923
|
export { DOMSerializer }
|
|
911
924
|
|
|
925
|
+
export { DropCursorOptions }
|
|
926
|
+
|
|
912
927
|
export { dropPoint }
|
|
913
928
|
|
|
914
929
|
export { Editor }
|
|
@@ -947,6 +962,8 @@ export { FacetOptions }
|
|
|
947
962
|
|
|
948
963
|
export { findWrapping }
|
|
949
964
|
|
|
965
|
+
export { FocusChangeHandler }
|
|
966
|
+
|
|
950
967
|
export { Fragment }
|
|
951
968
|
|
|
952
969
|
export { _getId }
|
|
@@ -1103,6 +1120,8 @@ export { NodeViewFactoryOptions }
|
|
|
1103
1120
|
|
|
1104
1121
|
export { NodeViewOptions }
|
|
1105
1122
|
|
|
1123
|
+
export { OBJECT_REPLACEMENT_CHARACTER }
|
|
1124
|
+
|
|
1106
1125
|
export { openDoubleQuote }
|
|
1107
1126
|
|
|
1108
1127
|
export { openSingleQuote }
|
|
@@ -1423,6 +1442,8 @@ export { VueNodeViewProps }
|
|
|
1423
1442
|
|
|
1424
1443
|
export { withPriority }
|
|
1425
1444
|
|
|
1445
|
+
export { withSkipCodeBlock }
|
|
1446
|
+
|
|
1426
1447
|
export { wrapIn }
|
|
1427
1448
|
|
|
1428
1449
|
export { wrappingInputRule }
|
package/dist/prosekit-core.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export { DefaultStateOptions } from './_tsup-dts-rollup';
|
|
|
17
17
|
export { defineDoc } from './_tsup-dts-rollup';
|
|
18
18
|
export { defineDocChangeHandler } from './_tsup-dts-rollup';
|
|
19
19
|
export { DocChangeHandler } from './_tsup-dts-rollup';
|
|
20
|
+
export { defineFocusChangeHandler } from './_tsup-dts-rollup';
|
|
21
|
+
export { FocusChangeHandler } from './_tsup-dts-rollup';
|
|
20
22
|
export { defineMountHandler } from './_tsup-dts-rollup';
|
|
21
23
|
export { defineUnmountHandler } from './_tsup-dts-rollup';
|
|
22
24
|
export { defineUpdateHandler } from './_tsup-dts-rollup';
|
|
@@ -64,6 +66,7 @@ export { StateJSON } from './_tsup-dts-rollup';
|
|
|
64
66
|
export { Priority } from './_tsup-dts-rollup';
|
|
65
67
|
export { SimplifyUnion } from './_tsup-dts-rollup';
|
|
66
68
|
export { clsx } from './_tsup-dts-rollup';
|
|
69
|
+
export { defaultBlockAt } from './_tsup-dts-rollup';
|
|
67
70
|
export { _getId } from './_tsup-dts-rollup';
|
|
68
71
|
export { getMarkType } from './_tsup-dts-rollup';
|
|
69
72
|
export { getNodeType } from './_tsup-dts-rollup';
|
|
@@ -80,3 +83,5 @@ export { isMark } from './_tsup-dts-rollup';
|
|
|
80
83
|
export { isNodeSelection } from './_tsup-dts-rollup';
|
|
81
84
|
export { isProseMirrorNode } from './_tsup-dts-rollup';
|
|
82
85
|
export { isTextSelection } from './_tsup-dts-rollup';
|
|
86
|
+
export { withSkipCodeBlock } from './_tsup-dts-rollup';
|
|
87
|
+
export { OBJECT_REPLACEMENT_CHARACTER } 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.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -76,6 +76,11 @@
|
|
|
76
76
|
"import": "./dist/prosekit-extensions-code-block.js",
|
|
77
77
|
"default": "./dist/prosekit-extensions-code-block.js"
|
|
78
78
|
},
|
|
79
|
+
"./extensions/drop-cursor": {
|
|
80
|
+
"types": "./dist/prosekit-extensions-drop-cursor.d.ts",
|
|
81
|
+
"import": "./dist/prosekit-extensions-drop-cursor.js",
|
|
82
|
+
"default": "./dist/prosekit-extensions-drop-cursor.js"
|
|
83
|
+
},
|
|
79
84
|
"./extensions/heading": {
|
|
80
85
|
"types": "./dist/prosekit-extensions-heading.d.ts",
|
|
81
86
|
"import": "./dist/prosekit-extensions-heading.js",
|
|
@@ -580,9 +585,9 @@
|
|
|
580
585
|
"dist"
|
|
581
586
|
],
|
|
582
587
|
"dependencies": {
|
|
583
|
-
"@prosekit/basic": "0.2.
|
|
584
|
-
"@prosekit/core": "0.2.
|
|
585
|
-
"@prosekit/extensions": "0.2.
|
|
588
|
+
"@prosekit/basic": "0.2.4",
|
|
589
|
+
"@prosekit/core": "0.2.4",
|
|
590
|
+
"@prosekit/extensions": "0.2.3",
|
|
586
591
|
"@prosekit/lit": "0.1.8",
|
|
587
592
|
"@prosekit/pm": "0.1.1",
|
|
588
593
|
"@prosekit/preact": "0.1.4",
|
|
@@ -673,6 +678,9 @@
|
|
|
673
678
|
"extensions/code-block": [
|
|
674
679
|
"./dist/prosekit-extensions-code-block.d.ts"
|
|
675
680
|
],
|
|
681
|
+
"extensions/drop-cursor": [
|
|
682
|
+
"./dist/prosekit-extensions-drop-cursor.d.ts"
|
|
683
|
+
],
|
|
676
684
|
"extensions/heading": [
|
|
677
685
|
"./dist/prosekit-extensions-heading.d.ts"
|
|
678
686
|
],
|