prosekit 0.10.4 → 0.11.0

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.
@@ -381,6 +381,7 @@ import { FilePasteHandlerOptions } from '@prosekit/extensions/file';
381
381
  import { findParentNode } from '@prosekit/core';
382
382
  import { findParentNodeOfType } from '@prosekit/core';
383
383
  import { FindParentNodeResult } from '@prosekit/core';
384
+ import { findTable } from '@prosekit/extensions/table';
384
385
  import { findWrapping } from '@prosekit/pm/transform';
385
386
  import { FocusChangeHandler } from '@prosekit/core';
386
387
  import { Fragment } from '@prosekit/pm/model';
@@ -500,6 +501,7 @@ import { MarkSpec } from '@prosekit/pm/model';
500
501
  import { MarkSpecOptions } from '@prosekit/core';
501
502
  import { MarkType } from '@prosekit/pm/model';
502
503
  import { MarkTyping } from '@prosekit/core';
504
+ import { MarkView } from '@prosekit/pm/view';
503
505
  import { MarkViewConstructor } from '@prosekit/pm/view';
504
506
  import { MatchHandler } from '@prosekit/extensions/autocomplete';
505
507
  import { MaybeAccessor } from '@prosekit/solid';
@@ -981,6 +983,7 @@ import { useStateUpdate as useStateUpdate_alias_1 } from '@prosekit/react';
981
983
  import { useStateUpdate as useStateUpdate_alias_2 } from '@prosekit/solid';
982
984
  import { useStateUpdate as useStateUpdate_alias_3 } from '@prosekit/svelte';
983
985
  import { useStateUpdate as useStateUpdate_alias_4 } from '@prosekit/vue';
986
+ import { ViewMutationRecord } from '@prosekit/pm/view';
984
987
  import { VirtualSelectionExtension } from '@prosekit/extensions/virtual-selection';
985
988
  import { VueNodeViewComponent } from '@prosekit/vue';
986
989
  import { VueNodeViewOptions } from '@prosekit/vue';
@@ -1775,6 +1778,8 @@ export { findParentNodeOfType }
1775
1778
 
1776
1779
  export { FindParentNodeResult }
1777
1780
 
1781
+ export { findTable }
1782
+
1778
1783
  export { findWrapping }
1779
1784
 
1780
1785
  export { FocusChangeHandler }
@@ -2013,6 +2018,8 @@ export { MarkType }
2013
2018
 
2014
2019
  export { MarkTyping }
2015
2020
 
2021
+ export { MarkView }
2022
+
2016
2023
  export { MarkViewConstructor }
2017
2024
 
2018
2025
  export { MatchHandler }
@@ -2973,6 +2980,8 @@ export { useStateUpdate_alias_3 }
2973
2980
 
2974
2981
  export { useStateUpdate_alias_4 }
2975
2982
 
2983
+ export { ViewMutationRecord }
2984
+
2976
2985
  export { VirtualSelectionExtension }
2977
2986
 
2978
2987
  export { VueNodeViewComponent }
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.34.3/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.37.0/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.34.3/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.37.0/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -31,8 +31,8 @@ export { MarkBuilder } from './_tsup-dts-rollup.js';
31
31
  export { NodeAction } from './_tsup-dts-rollup.js';
32
32
  export { NodeBuilder } from './_tsup-dts-rollup.js';
33
33
  export { NodeChild } from './_tsup-dts-rollup.js';
34
- export { Editor } from './_tsup-dts-rollup.js';
35
34
  export { createEditor } from './_tsup-dts-rollup.js';
35
+ export { Editor } from './_tsup-dts-rollup.js';
36
36
  export { EditorOptions } from './_tsup-dts-rollup.js';
37
37
  export { union } from './_tsup-dts-rollup.js';
38
38
  export { withPriority } from './_tsup-dts-rollup.js';
@@ -61,11 +61,13 @@ export { defineScrollToSelectionHandler } from './_tsup-dts-rollup.js';
61
61
  export { defineTextInputHandler } from './_tsup-dts-rollup.js';
62
62
  export { defineTripleClickHandler } from './_tsup-dts-rollup.js';
63
63
  export { defineTripleClickOnHandler } from './_tsup-dts-rollup.js';
64
+ export { editorEventFacet } from './_tsup-dts-rollup.js';
64
65
  export { ClickHandler } from './_tsup-dts-rollup.js';
65
66
  export { ClickOnHandler } from './_tsup-dts-rollup.js';
66
67
  export { DoubleClickHandler } from './_tsup-dts-rollup.js';
67
68
  export { DoubleClickOnHandler } from './_tsup-dts-rollup.js';
68
69
  export { DropHandler } from './_tsup-dts-rollup.js';
70
+ export { EditorEventPayload } from './_tsup-dts-rollup.js';
69
71
  export { KeyDownHandler } from './_tsup-dts-rollup.js';
70
72
  export { KeyPressHandler } from './_tsup-dts-rollup.js';
71
73
  export { PasteHandler } from './_tsup-dts-rollup.js';
@@ -73,8 +75,6 @@ export { ScrollToSelectionHandler } from './_tsup-dts-rollup.js';
73
75
  export { TextInputHandler } from './_tsup-dts-rollup.js';
74
76
  export { TripleClickHandler } from './_tsup-dts-rollup.js';
75
77
  export { TripleClickOnHandler } from './_tsup-dts-rollup.js';
76
- export { editorEventFacet } from './_tsup-dts-rollup.js';
77
- export { EditorEventPayload } from './_tsup-dts-rollup.js';
78
78
  export { defineFocusChangeHandler } from './_tsup-dts-rollup.js';
79
79
  export { FocusChangeHandler } from './_tsup-dts-rollup.js';
80
80
  export { defineMountHandler } from './_tsup-dts-rollup.js';
@@ -1,3 +1,3 @@
1
- export { DropCursorOptions } from './_tsup-dts-rollup.js';
2
- export { DropCursorExtension } from './_tsup-dts-rollup.js';
3
1
  export { defineDropCursor } from './_tsup-dts-rollup.js';
2
+ export { DropCursorExtension } from './_tsup-dts-rollup.js';
3
+ export { DropCursorOptions } from './_tsup-dts-rollup.js';
@@ -1,8 +1,8 @@
1
- export { defineFilePasteHandler } from './_tsup-dts-rollup.js';
2
- export { FilePasteHandlerOptions } from './_tsup-dts-rollup.js';
3
1
  export { defineFileDropHandler } from './_tsup-dts-rollup.js';
4
2
  export { FileDropHandlerOptions } from './_tsup-dts-rollup.js';
5
- export { UploadProgress } from './_tsup-dts-rollup.js';
6
- export { UploaderOptions } from './_tsup-dts-rollup.js';
7
- export { Uploader } from './_tsup-dts-rollup.js';
3
+ export { defineFilePasteHandler } from './_tsup-dts-rollup.js';
4
+ export { FilePasteHandlerOptions } from './_tsup-dts-rollup.js';
8
5
  export { UploadTask } from './_tsup-dts-rollup.js';
6
+ export { Uploader } from './_tsup-dts-rollup.js';
7
+ export { UploaderOptions } from './_tsup-dts-rollup.js';
8
+ export { UploadProgress } from './_tsup-dts-rollup.js';
@@ -1,11 +1,11 @@
1
1
  export { LoroSyncPluginProps } from './_tsup-dts-rollup.js';
2
2
  export { LoroUndoPluginProps } from './_tsup-dts-rollup.js';
3
+ export { defineLoro } from './_tsup-dts-rollup.js';
4
+ export { LoroExtension } from './_tsup-dts-rollup.js';
5
+ export { LoroOptions } from './_tsup-dts-rollup.js';
3
6
  export { defineLoroCommands } from './_tsup-dts-rollup.js';
4
- export { LoroCursorOptions } from './_tsup-dts-rollup.js';
5
7
  export { defineLoroCursorPlugin } from './_tsup-dts-rollup.js';
8
+ export { LoroCursorOptions } from './_tsup-dts-rollup.js';
6
9
  export { defineLoroKeymap } from './_tsup-dts-rollup.js';
7
10
  export { defineLoroSyncPlugin } from './_tsup-dts-rollup.js';
8
11
  export { defineLoroUndoPlugin } from './_tsup-dts-rollup.js';
9
- export { defineLoro } from './_tsup-dts-rollup.js';
10
- export { LoroExtension } from './_tsup-dts-rollup.js';
11
- export { LoroOptions } from './_tsup-dts-rollup.js';
@@ -22,4 +22,5 @@ export { TableCellSpecExtension } from './_tsup-dts-rollup.js';
22
22
  export { TableHeaderCellSpecExtension } from './_tsup-dts-rollup.js';
23
23
  export { TableRowSpecExtension } from './_tsup-dts-rollup.js';
24
24
  export { TableSpecExtension } from './_tsup-dts-rollup.js';
25
+ export { findTable } from './_tsup-dts-rollup.js';
25
26
  export { isCellSelection } from './_tsup-dts-rollup.js';
@@ -6,6 +6,8 @@ export { DecorationSource } from './_tsup-dts-rollup.js';
6
6
  export { DirectEditorProps } from './_tsup-dts-rollup.js';
7
7
  export { EditorProps } from './_tsup-dts-rollup.js';
8
8
  export { EditorView } from './_tsup-dts-rollup.js';
9
+ export { MarkView } from './_tsup-dts-rollup.js';
9
10
  export { MarkViewConstructor } from './_tsup-dts-rollup.js';
10
11
  export { NodeView } from './_tsup-dts-rollup.js';
11
12
  export { NodeViewConstructor } from './_tsup-dts-rollup.js';
13
+ export { ViewMutationRecord } from './_tsup-dts-rollup.js';
@@ -1,10 +1,10 @@
1
1
  export { ProseKit } from './_tsup-dts-rollup.js';
2
2
  export { ProseKitProps } from './_tsup-dts-rollup.js';
3
+ export { useDocChange } from './_tsup-dts-rollup.js';
3
4
  export { useEditor } from './_tsup-dts-rollup.js';
4
5
  export { useExtension } from './_tsup-dts-rollup.js';
5
6
  export { UseExtensionOptions } from './_tsup-dts-rollup.js';
6
7
  export { useKeymap } from './_tsup-dts-rollup.js';
7
8
  export { useStateUpdate } from './_tsup-dts-rollup.js';
8
- export { useDocChange } from './_tsup-dts-rollup.js';
9
9
  export { PropsWithChildren } from './_tsup-dts-rollup.js';
10
10
  export { PropsWithClass } from './_tsup-dts-rollup.js';
@@ -1,15 +1,15 @@
1
1
  export { ProseKit_alias_2 as ProseKit } from './_tsup-dts-rollup.js';
2
2
  export { ProseKitProps_alias_2 as ProseKitProps } from './_tsup-dts-rollup.js';
3
+ export { defineSolidNodeView } from './_tsup-dts-rollup.js';
4
+ export { SolidNodeViewComponent } from './_tsup-dts-rollup.js';
5
+ export { SolidNodeViewOptions } from './_tsup-dts-rollup.js';
6
+ export { SolidNodeViewProps } from './_tsup-dts-rollup.js';
7
+ export { useDocChange_alias_2 as useDocChange } from './_tsup-dts-rollup.js';
3
8
  export { useEditor_alias_2 as useEditor } from './_tsup-dts-rollup.js';
4
9
  export { useExtension_alias_2 as useExtension } from './_tsup-dts-rollup.js';
5
10
  export { UseExtensionOptions_alias_2 as UseExtensionOptions } from './_tsup-dts-rollup.js';
6
11
  export { useKeymap_alias_2 as useKeymap } from './_tsup-dts-rollup.js';
7
12
  export { useStateUpdate_alias_2 as useStateUpdate } from './_tsup-dts-rollup.js';
8
- export { useDocChange_alias_2 as useDocChange } from './_tsup-dts-rollup.js';
9
13
  export { MaybeAccessor } from './_tsup-dts-rollup.js';
10
14
  export { PropsWithChildren_alias_1 as PropsWithChildren } from './_tsup-dts-rollup.js';
11
15
  export { PropsWithClass_alias_1 as PropsWithClass } from './_tsup-dts-rollup.js';
12
- export { defineSolidNodeView } from './_tsup-dts-rollup.js';
13
- export { SolidNodeViewComponent } from './_tsup-dts-rollup.js';
14
- export { SolidNodeViewOptions } from './_tsup-dts-rollup.js';
15
- export { SolidNodeViewProps } from './_tsup-dts-rollup.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prosekit",
3
3
  "type": "module",
4
- "version": "0.10.4",
4
+ "version": "0.11.0",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -566,17 +566,17 @@
566
566
  "dist"
567
567
  ],
568
568
  "dependencies": {
569
- "@prosekit/basic": "0.3.33",
570
- "@prosekit/core": "0.7.12",
571
- "@prosekit/extensions": "0.7.21",
572
- "@prosekit/lit": "0.4.4",
573
- "@prosekit/pm": "0.1.8",
574
- "@prosekit/preact": "0.4.4",
575
- "@prosekit/react": "0.4.4",
576
- "@prosekit/solid": "0.4.4",
577
- "@prosekit/vue": "0.4.4",
578
- "@prosekit/svelte": "0.5.4",
579
- "@prosekit/web": "0.5.0"
569
+ "@prosekit/core": "0.7.13",
570
+ "@prosekit/extensions": "0.7.22",
571
+ "@prosekit/basic": "0.3.34",
572
+ "@prosekit/pm": "0.1.9",
573
+ "@prosekit/preact": "0.4.5",
574
+ "@prosekit/react": "0.4.5",
575
+ "@prosekit/solid": "0.4.5",
576
+ "@prosekit/lit": "0.4.5",
577
+ "@prosekit/svelte": "0.6.0",
578
+ "@prosekit/vue": "0.4.5",
579
+ "@prosekit/web": "0.5.1"
580
580
  },
581
581
  "peerDependencies": {
582
582
  "loro-crdt": ">= 0.16.7",
@@ -585,7 +585,7 @@
585
585
  "react": ">= 18.2.0",
586
586
  "react-dom": ">= 18.2.0",
587
587
  "solid-js": ">= 1.7.0",
588
- "svelte": ">= 3.0.0",
588
+ "svelte": ">= 5.0.0",
589
589
  "vue": ">= 3.0.0",
590
590
  "y-prosemirror": ">= 1.2.9",
591
591
  "yjs": ">= 13.6.18"
@@ -625,23 +625,23 @@
625
625
  "devDependencies": {
626
626
  "@types/react": "^18.3.12",
627
627
  "@types/react-dom": "^18.3.1",
628
- "loro-crdt": "^1.0.7",
629
- "loro-prosemirror": "^0.1.0",
628
+ "loro-crdt": "^1.1.4",
629
+ "loro-prosemirror": "^0.2.0",
630
630
  "postcss": "^8.4.47",
631
631
  "postcss-nesting": "^13.0.1",
632
632
  "preact": "^10.24.3",
633
633
  "react": "^18.3.1",
634
634
  "react-dom": "^18.3.1",
635
635
  "solid-js": "^1.9.3",
636
- "svelte": "^4.2.19",
636
+ "svelte": "^5.2.11",
637
637
  "tsup": "^8.3.5",
638
- "typedoc": "^0.26.10",
638
+ "typedoc": "^0.27.2",
639
639
  "typedoc-plugin-external-package-links": "^0.1.0",
640
- "typedoc-plugin-md": "^0.3.1",
641
- "typedoc-plugin-mdn-links": "^3.3.5",
640
+ "typedoc-plugin-md": "^0.4.2",
641
+ "typedoc-plugin-mdn-links": "^4.0.2",
642
642
  "typescript": "^5.6.3",
643
643
  "vue": "^3.5.12",
644
- "y-prosemirror": "^1.2.12",
644
+ "y-prosemirror": "^1.2.13",
645
645
  "yjs": "^13.6.20",
646
646
  "@prosekit/dev": "0.0.0"
647
647
  },