prosekit 0.9.13 → 0.9.14
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.
|
@@ -82,10 +82,12 @@ import { clsx } from '@prosekit/core';
|
|
|
82
82
|
import { CodeBlockAttrs } from '@prosekit/extensions/code-block';
|
|
83
83
|
import { CodeBlockCommandsExtension } from '@prosekit/extensions/code-block';
|
|
84
84
|
import { CodeBlockExtension } from '@prosekit/extensions/code-block';
|
|
85
|
+
import { CodeBlockHighlightOptions } from '@prosekit/extensions/code-block';
|
|
85
86
|
import { CodeBlockSpecExtension } from '@prosekit/extensions/code-block';
|
|
86
87
|
import { CodeCommandsExtension } from '@prosekit/extensions/code';
|
|
87
88
|
import { CodeExtension } from '@prosekit/extensions/code';
|
|
88
89
|
import { CodeSpecExtension } from '@prosekit/extensions/code';
|
|
90
|
+
import { collectChildren } from '@prosekit/core';
|
|
89
91
|
import { collectNodes } from '@prosekit/core';
|
|
90
92
|
import { Command } from '@prosekit/pm/state';
|
|
91
93
|
import { CommandAction } from '@prosekit/core';
|
|
@@ -291,6 +293,9 @@ import { ExtractMarks } from '@prosekit/core';
|
|
|
291
293
|
import { ExtractNodeActions } from '@prosekit/core';
|
|
292
294
|
import { ExtractNodes } from '@prosekit/core';
|
|
293
295
|
import { Facet } from '@prosekit/core';
|
|
296
|
+
import { findParentNode } from '@prosekit/core';
|
|
297
|
+
import { findParentNodeOfType } from '@prosekit/core';
|
|
298
|
+
import { FindParentNodeResult } from '@prosekit/core';
|
|
294
299
|
import { findWrapping } from '@prosekit/pm/transform';
|
|
295
300
|
import { FocusChangeHandler } from '@prosekit/core';
|
|
296
301
|
import { Fragment } from '@prosekit/pm/model';
|
|
@@ -331,6 +336,7 @@ import { insertPoint } from '@prosekit/pm/transform';
|
|
|
331
336
|
import { isAllSelection } from '@prosekit/core';
|
|
332
337
|
import { isApple } from '@prosekit/core';
|
|
333
338
|
import { isAtBlockStart } from '@prosekit/core';
|
|
339
|
+
import { isFragment } from '@prosekit/core';
|
|
334
340
|
import { isInCodeBlock } from '@prosekit/core';
|
|
335
341
|
import { isMark } from '@prosekit/core';
|
|
336
342
|
import { isMarkAbsent } from '@prosekit/core';
|
|
@@ -338,6 +344,7 @@ import { isMarkActive } from '@prosekit/core';
|
|
|
338
344
|
import { isNodeSelection } from '@prosekit/core';
|
|
339
345
|
import { isProseMirrorNode } from '@prosekit/core';
|
|
340
346
|
import { isSelection } from '@prosekit/core';
|
|
347
|
+
import { isSlice } from '@prosekit/core';
|
|
341
348
|
import { isTextSelection } from '@prosekit/core';
|
|
342
349
|
import { ItalicCommandsExtension } from '@prosekit/extensions/italic';
|
|
343
350
|
import { ItalicExtension } from '@prosekit/extensions/italic';
|
|
@@ -838,6 +845,8 @@ export { CodeBlockCommandsExtension }
|
|
|
838
845
|
|
|
839
846
|
export { CodeBlockExtension }
|
|
840
847
|
|
|
848
|
+
export { CodeBlockHighlightOptions }
|
|
849
|
+
|
|
841
850
|
export { CodeBlockSpecExtension }
|
|
842
851
|
|
|
843
852
|
export { CodeCommandsExtension }
|
|
@@ -846,6 +855,8 @@ export { CodeExtension }
|
|
|
846
855
|
|
|
847
856
|
export { CodeSpecExtension }
|
|
848
857
|
|
|
858
|
+
export { collectChildren }
|
|
859
|
+
|
|
849
860
|
export { collectNodes }
|
|
850
861
|
|
|
851
862
|
export { Command }
|
|
@@ -1264,6 +1275,12 @@ export { ExtractNodes }
|
|
|
1264
1275
|
|
|
1265
1276
|
export { Facet }
|
|
1266
1277
|
|
|
1278
|
+
export { findParentNode }
|
|
1279
|
+
|
|
1280
|
+
export { findParentNodeOfType }
|
|
1281
|
+
|
|
1282
|
+
export { FindParentNodeResult }
|
|
1283
|
+
|
|
1267
1284
|
export { findWrapping }
|
|
1268
1285
|
|
|
1269
1286
|
export { FocusChangeHandler }
|
|
@@ -1344,6 +1361,8 @@ export { isApple }
|
|
|
1344
1361
|
|
|
1345
1362
|
export { isAtBlockStart }
|
|
1346
1363
|
|
|
1364
|
+
export { isFragment }
|
|
1365
|
+
|
|
1347
1366
|
export { isInCodeBlock }
|
|
1348
1367
|
|
|
1349
1368
|
export { isMark }
|
|
@@ -1358,6 +1377,8 @@ export { isProseMirrorNode }
|
|
|
1358
1377
|
|
|
1359
1378
|
export { isSelection }
|
|
1360
1379
|
|
|
1380
|
+
export { isSlice }
|
|
1381
|
+
|
|
1361
1382
|
export { isTextSelection }
|
|
1362
1383
|
|
|
1363
1384
|
export { ItalicCommandsExtension }
|
package/dist/prosekit-core.d.ts
CHANGED
|
@@ -142,11 +142,15 @@ export { SimplifyUnion } from './_tsup-dts-rollup';
|
|
|
142
142
|
export { assert } from './_tsup-dts-rollup';
|
|
143
143
|
export { canUseRegexLookbehind } from './_tsup-dts-rollup';
|
|
144
144
|
export { clsx } from './_tsup-dts-rollup';
|
|
145
|
+
export { collectChildren } from './_tsup-dts-rollup';
|
|
145
146
|
export { collectNodes } from './_tsup-dts-rollup';
|
|
146
147
|
export { NodeContent } from './_tsup-dts-rollup';
|
|
147
148
|
export { containsInlineNode } from './_tsup-dts-rollup';
|
|
148
149
|
export { defaultBlockAt } from './_tsup-dts-rollup';
|
|
149
150
|
export { isApple } from './_tsup-dts-rollup';
|
|
151
|
+
export { findParentNode } from './_tsup-dts-rollup';
|
|
152
|
+
export { FindParentNodeResult } from './_tsup-dts-rollup';
|
|
153
|
+
export { findParentNodeOfType } from './_tsup-dts-rollup';
|
|
150
154
|
export { _getId } from './_tsup-dts-rollup';
|
|
151
155
|
export { getMarkType } from './_tsup-dts-rollup';
|
|
152
156
|
export { getNodeType } from './_tsup-dts-rollup';
|
|
@@ -171,10 +175,12 @@ export { DOMParserOptions } from './_tsup-dts-rollup';
|
|
|
171
175
|
export { DOMSerializerOptions } from './_tsup-dts-rollup';
|
|
172
176
|
export { JSONParserOptions } from './_tsup-dts-rollup';
|
|
173
177
|
export { isAllSelection } from './_tsup-dts-rollup';
|
|
178
|
+
export { isFragment } from './_tsup-dts-rollup';
|
|
174
179
|
export { isMark } from './_tsup-dts-rollup';
|
|
175
180
|
export { isNodeSelection } from './_tsup-dts-rollup';
|
|
176
181
|
export { isProseMirrorNode } from './_tsup-dts-rollup';
|
|
177
182
|
export { isSelection } from './_tsup-dts-rollup';
|
|
183
|
+
export { isSlice } from './_tsup-dts-rollup';
|
|
178
184
|
export { isTextSelection } from './_tsup-dts-rollup';
|
|
179
185
|
export { withSkipCodeBlock } from './_tsup-dts-rollup';
|
|
180
186
|
export { OBJECT_REPLACEMENT_CHARACTER } from './_tsup-dts-rollup';
|
|
@@ -3,6 +3,7 @@ export { CodeBlockExtension } from './_tsup-dts-rollup';
|
|
|
3
3
|
export { defineCodeBlockCommands } from './_tsup-dts-rollup';
|
|
4
4
|
export { CodeBlockCommandsExtension } from './_tsup-dts-rollup';
|
|
5
5
|
export { defineCodeBlockHighlight } from './_tsup-dts-rollup';
|
|
6
|
+
export { CodeBlockHighlightOptions } from './_tsup-dts-rollup';
|
|
6
7
|
export { HighlightParser } from './_tsup-dts-rollup';
|
|
7
8
|
export { defineCodeBlockEnterRule } from './_tsup-dts-rollup';
|
|
8
9
|
export { defineCodeBlockInputRule } 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.9.
|
|
4
|
+
"version": "0.9.14",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -505,17 +505,17 @@
|
|
|
505
505
|
"dist"
|
|
506
506
|
],
|
|
507
507
|
"dependencies": {
|
|
508
|
-
"@prosekit/basic": "0.3.
|
|
509
|
-
"@prosekit/core": "0.7.
|
|
510
|
-
"@prosekit/lit": "0.3.
|
|
511
|
-
"@prosekit/extensions": "0.7.
|
|
512
|
-
"@prosekit/pm": "0.1.
|
|
513
|
-
"@prosekit/preact": "0.3.
|
|
514
|
-
"@prosekit/react": "0.3.
|
|
515
|
-
"@prosekit/
|
|
516
|
-
"@prosekit/
|
|
517
|
-
"@prosekit/vue": "0.3.
|
|
518
|
-
"@prosekit/web": "0.3.
|
|
508
|
+
"@prosekit/basic": "0.3.21",
|
|
509
|
+
"@prosekit/core": "0.7.8",
|
|
510
|
+
"@prosekit/lit": "0.3.17",
|
|
511
|
+
"@prosekit/extensions": "0.7.9",
|
|
512
|
+
"@prosekit/pm": "0.1.8",
|
|
513
|
+
"@prosekit/preact": "0.3.20",
|
|
514
|
+
"@prosekit/react": "0.3.21",
|
|
515
|
+
"@prosekit/solid": "0.3.19",
|
|
516
|
+
"@prosekit/svelte": "0.4.11",
|
|
517
|
+
"@prosekit/vue": "0.3.20",
|
|
518
|
+
"@prosekit/web": "0.3.9"
|
|
519
519
|
},
|
|
520
520
|
"peerDependencies": {
|
|
521
521
|
"preact": ">= 10.11.0",
|
|
@@ -548,16 +548,16 @@
|
|
|
548
548
|
"devDependencies": {
|
|
549
549
|
"@types/react": "^18.3.3",
|
|
550
550
|
"@types/react-dom": "^18.3.0",
|
|
551
|
-
"postcss": "^8.4.
|
|
551
|
+
"postcss": "^8.4.40",
|
|
552
552
|
"postcss-nesting": "^12.1.5",
|
|
553
|
-
"preact": "^10.23.
|
|
553
|
+
"preact": "^10.23.1",
|
|
554
554
|
"react": "^18.3.1",
|
|
555
555
|
"react-dom": "^18.3.1",
|
|
556
|
-
"solid-js": "^1.8.
|
|
556
|
+
"solid-js": "^1.8.19",
|
|
557
557
|
"svelte": "^4.2.18",
|
|
558
|
-
"tsup": "^8.2.
|
|
558
|
+
"tsup": "^8.2.3",
|
|
559
559
|
"typescript": "^5.5.3",
|
|
560
|
-
"vue": "^3.4.
|
|
560
|
+
"vue": "^3.4.34",
|
|
561
561
|
"@prosekit/dev": "0.0.0"
|
|
562
562
|
},
|
|
563
563
|
"scripts": {
|