prosekit 0.2.7 → 0.2.9
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';
|
|
@@ -150,6 +151,7 @@ import { defineDefaultState } from '@prosekit/core';
|
|
|
150
151
|
import { defineDoc } from '@prosekit/core';
|
|
151
152
|
import { defineDocChangeHandler } from '@prosekit/core';
|
|
152
153
|
import { defineDropCursor } from '@prosekit/extensions/drop-cursor';
|
|
154
|
+
import { defineFocusChangeHandler } from '@prosekit/core';
|
|
153
155
|
import { defineHeading } from '@prosekit/extensions/heading';
|
|
154
156
|
import { defineHeadingCommands } from '@prosekit/extensions/heading';
|
|
155
157
|
import { defineHeadingInputRule } from '@prosekit/extensions/heading';
|
|
@@ -233,6 +235,7 @@ import { ExtractNodes } from '@prosekit/core';
|
|
|
233
235
|
import { Facet } from '@prosekit/core';
|
|
234
236
|
import { FacetOptions } from '@prosekit/core';
|
|
235
237
|
import { findWrapping } from '@prosekit/pm/transform';
|
|
238
|
+
import { FocusChangeHandler } from '@prosekit/core';
|
|
236
239
|
import { Fragment } from '@prosekit/pm/model';
|
|
237
240
|
import { _getId } from '@prosekit/core';
|
|
238
241
|
import { getMarkType } from '@prosekit/core';
|
|
@@ -258,6 +261,7 @@ import { inputRules } from '@prosekit/pm/inputrules';
|
|
|
258
261
|
import { insertNode } from '@prosekit/core';
|
|
259
262
|
import { insertPoint } from '@prosekit/pm/transform';
|
|
260
263
|
import { isAllSelection } from '@prosekit/core';
|
|
264
|
+
import { isInCodeBlock } from '@prosekit/core';
|
|
261
265
|
import { isMark } from '@prosekit/core';
|
|
262
266
|
import { isNodeSelection } from '@prosekit/core';
|
|
263
267
|
import { isProseMirrorNode } from '@prosekit/core';
|
|
@@ -311,6 +315,7 @@ import { NodeView } from '@prosekit/pm/view';
|
|
|
311
315
|
import { NodeViewConstructor } from '@prosekit/pm/view';
|
|
312
316
|
import { NodeViewFactoryOptions } from '@prosekit/core';
|
|
313
317
|
import { NodeViewOptions } from '@prosekit/core';
|
|
318
|
+
import { OBJECT_REPLACEMENT_CHARACTER } from '@prosekit/core';
|
|
314
319
|
import { openDoubleQuote } from '@prosekit/pm/inputrules';
|
|
315
320
|
import { openSingleQuote } from '@prosekit/pm/inputrules';
|
|
316
321
|
import { Options } from 'tsup';
|
|
@@ -472,6 +477,7 @@ import { VueNodeViewComponent } from '@prosekit/vue';
|
|
|
472
477
|
import { VueNodeViewOptions } from '@prosekit/vue';
|
|
473
478
|
import { VueNodeViewProps } from '@prosekit/vue';
|
|
474
479
|
import { withPriority } from '@prosekit/core';
|
|
480
|
+
import { withSkipCodeBlock } from '@prosekit/core';
|
|
475
481
|
import { wrapIn } from '@prosekit/pm/commands';
|
|
476
482
|
import { wrappingInputRule } from '@prosekit/pm/inputrules';
|
|
477
483
|
|
|
@@ -735,6 +741,8 @@ export declare namespace default_alias {
|
|
|
735
741
|
|
|
736
742
|
export declare const default_alias_1: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
737
743
|
|
|
744
|
+
export { defaultBlockAt }
|
|
745
|
+
|
|
738
746
|
export { DefaultStateOptions }
|
|
739
747
|
|
|
740
748
|
export { defineAutocomplete }
|
|
@@ -787,6 +795,8 @@ export { defineDocChangeHandler }
|
|
|
787
795
|
|
|
788
796
|
export { defineDropCursor }
|
|
789
797
|
|
|
798
|
+
export { defineFocusChangeHandler }
|
|
799
|
+
|
|
790
800
|
export { defineHeading }
|
|
791
801
|
|
|
792
802
|
export { defineHeadingCommands }
|
|
@@ -953,6 +963,8 @@ export { FacetOptions }
|
|
|
953
963
|
|
|
954
964
|
export { findWrapping }
|
|
955
965
|
|
|
966
|
+
export { FocusChangeHandler }
|
|
967
|
+
|
|
956
968
|
export { Fragment }
|
|
957
969
|
|
|
958
970
|
export { _getId }
|
|
@@ -1003,6 +1015,8 @@ export { insertPoint }
|
|
|
1003
1015
|
|
|
1004
1016
|
export { isAllSelection }
|
|
1005
1017
|
|
|
1018
|
+
export { isInCodeBlock }
|
|
1019
|
+
|
|
1006
1020
|
export { isMark }
|
|
1007
1021
|
|
|
1008
1022
|
export { isNodeSelection }
|
|
@@ -1109,6 +1123,8 @@ export { NodeViewFactoryOptions }
|
|
|
1109
1123
|
|
|
1110
1124
|
export { NodeViewOptions }
|
|
1111
1125
|
|
|
1126
|
+
export { OBJECT_REPLACEMENT_CHARACTER }
|
|
1127
|
+
|
|
1112
1128
|
export { openDoubleQuote }
|
|
1113
1129
|
|
|
1114
1130
|
export { openSingleQuote }
|
|
@@ -1429,6 +1445,8 @@ export { VueNodeViewProps }
|
|
|
1429
1445
|
|
|
1430
1446
|
export { withPriority }
|
|
1431
1447
|
|
|
1448
|
+
export { withSkipCodeBlock }
|
|
1449
|
+
|
|
1432
1450
|
export { wrapIn }
|
|
1433
1451
|
|
|
1434
1452
|
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,9 +66,11 @@ 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';
|
|
73
|
+
export { isInCodeBlock } from './_tsup-dts-rollup';
|
|
70
74
|
export { jsonFromElement } from './_tsup-dts-rollup';
|
|
71
75
|
export { jsonFromHTML } from './_tsup-dts-rollup';
|
|
72
76
|
export { jsonFromNode } from './_tsup-dts-rollup';
|
|
@@ -80,3 +84,5 @@ export { isMark } from './_tsup-dts-rollup';
|
|
|
80
84
|
export { isNodeSelection } from './_tsup-dts-rollup';
|
|
81
85
|
export { isProseMirrorNode } from './_tsup-dts-rollup';
|
|
82
86
|
export { isTextSelection } from './_tsup-dts-rollup';
|
|
87
|
+
export { withSkipCodeBlock } from './_tsup-dts-rollup';
|
|
88
|
+
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.9",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -586,8 +586,8 @@
|
|
|
586
586
|
],
|
|
587
587
|
"dependencies": {
|
|
588
588
|
"@prosekit/basic": "0.2.4",
|
|
589
|
-
"@prosekit/core": "0.2.
|
|
590
|
-
"@prosekit/extensions": "0.2.
|
|
589
|
+
"@prosekit/core": "0.2.4",
|
|
590
|
+
"@prosekit/extensions": "0.2.4",
|
|
591
591
|
"@prosekit/lit": "0.1.8",
|
|
592
592
|
"@prosekit/pm": "0.1.1",
|
|
593
593
|
"@prosekit/preact": "0.1.4",
|
|
@@ -637,12 +637,12 @@
|
|
|
637
637
|
"preact": "^10.19.3",
|
|
638
638
|
"react": "^18.2.0",
|
|
639
639
|
"react-dom": "^18.2.0",
|
|
640
|
-
"shikiji": "^0.9.
|
|
641
|
-
"solid-js": "^1.8.
|
|
640
|
+
"shikiji": "^0.9.18",
|
|
641
|
+
"solid-js": "^1.8.10",
|
|
642
642
|
"svelte": "^4.2.8",
|
|
643
643
|
"tsup": "^8.0.1",
|
|
644
644
|
"typescript": "^5.3.3",
|
|
645
|
-
"vue": "^3.4.
|
|
645
|
+
"vue": "^3.4.7"
|
|
646
646
|
},
|
|
647
647
|
"scripts": {
|
|
648
648
|
"build:tsup": "tsup",
|