prosekit 0.9.12 → 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,12 +336,15 @@ 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';
337
343
  import { isMarkActive } from '@prosekit/core';
338
344
  import { isNodeSelection } from '@prosekit/core';
339
345
  import { isProseMirrorNode } from '@prosekit/core';
346
+ import { isSelection } from '@prosekit/core';
347
+ import { isSlice } from '@prosekit/core';
340
348
  import { isTextSelection } from '@prosekit/core';
341
349
  import { ItalicCommandsExtension } from '@prosekit/extensions/italic';
342
350
  import { ItalicExtension } from '@prosekit/extensions/italic';
@@ -837,6 +845,8 @@ export { CodeBlockCommandsExtension }
837
845
 
838
846
  export { CodeBlockExtension }
839
847
 
848
+ export { CodeBlockHighlightOptions }
849
+
840
850
  export { CodeBlockSpecExtension }
841
851
 
842
852
  export { CodeCommandsExtension }
@@ -845,6 +855,8 @@ export { CodeExtension }
845
855
 
846
856
  export { CodeSpecExtension }
847
857
 
858
+ export { collectChildren }
859
+
848
860
  export { collectNodes }
849
861
 
850
862
  export { Command }
@@ -1263,6 +1275,12 @@ export { ExtractNodes }
1263
1275
 
1264
1276
  export { Facet }
1265
1277
 
1278
+ export { findParentNode }
1279
+
1280
+ export { findParentNodeOfType }
1281
+
1282
+ export { FindParentNodeResult }
1283
+
1266
1284
  export { findWrapping }
1267
1285
 
1268
1286
  export { FocusChangeHandler }
@@ -1343,6 +1361,8 @@ export { isApple }
1343
1361
 
1344
1362
  export { isAtBlockStart }
1345
1363
 
1364
+ export { isFragment }
1365
+
1346
1366
  export { isInCodeBlock }
1347
1367
 
1348
1368
  export { isMark }
@@ -1355,6 +1375,10 @@ export { isNodeSelection }
1355
1375
 
1356
1376
  export { isProseMirrorNode }
1357
1377
 
1378
+ export { isSelection }
1379
+
1380
+ export { isSlice }
1381
+
1358
1382
  export { isTextSelection }
1359
1383
 
1360
1384
  export { ItalicCommandsExtension }
@@ -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,9 +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';
182
+ export { isSelection } from './_tsup-dts-rollup';
183
+ export { isSlice } from './_tsup-dts-rollup';
177
184
  export { isTextSelection } from './_tsup-dts-rollup';
178
185
  export { withSkipCodeBlock } from './_tsup-dts-rollup';
179
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.12",
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.19",
509
- "@prosekit/core": "0.7.6",
510
- "@prosekit/extensions": "0.7.7",
511
- "@prosekit/lit": "0.3.15",
512
- "@prosekit/pm": "0.1.7",
513
- "@prosekit/react": "0.3.19",
514
- "@prosekit/preact": "0.3.18",
515
- "@prosekit/solid": "0.3.17",
516
- "@prosekit/svelte": "0.4.9",
517
- "@prosekit/vue": "0.3.18",
518
- "@prosekit/web": "0.3.7"
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.39",
551
+ "postcss": "^8.4.40",
552
552
  "postcss-nesting": "^12.1.5",
553
- "preact": "^10.23.0",
553
+ "preact": "^10.23.1",
554
554
  "react": "^18.3.1",
555
555
  "react-dom": "^18.3.1",
556
- "solid-js": "^1.8.18",
556
+ "solid-js": "^1.8.19",
557
557
  "svelte": "^4.2.18",
558
- "tsup": "^8.2.2",
558
+ "tsup": "^8.2.3",
559
559
  "typescript": "^5.5.3",
560
- "vue": "^3.4.33",
560
+ "vue": "^3.4.34",
561
561
  "@prosekit/dev": "0.0.0"
562
562
  },
563
563
  "scripts": {