@prosekit/vue 0.3.20 → 0.3.22
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.
- package/dist/{chunk-KCTUNTM2.js → chunk-YWS6VK6K.js} +0 -1
- package/dist/{chunk-Z6VOMUSC.js → chunk-YXLW4LJ6.js} +1 -1
- package/dist/prosekit-vue-autocomplete.js +2 -2
- package/dist/prosekit-vue-block-handle.js +2 -2
- package/dist/prosekit-vue-inline-popover.js +2 -2
- package/dist/prosekit-vue-popover.js +2 -2
- package/dist/prosekit-vue-resizable.js +2 -2
- package/dist/prosekit-vue-tooltip.js +2 -2
- package/dist/prosekit-vue.js +6 -8
- package/package.json +8 -8
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
4
|
-
import "./chunk-
|
3
|
+
} from "./chunk-YXLW4LJ6.js";
|
4
|
+
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/autocomplete/autocomplete-empty.gen.ts
|
7
7
|
import { defaultAutocompleteEmptyProps } from "@prosekit/web/autocomplete";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
4
|
-
import "./chunk-
|
3
|
+
} from "./chunk-YXLW4LJ6.js";
|
4
|
+
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/block-handle/block-drag-handle.gen.ts
|
7
7
|
import { defaultBlockDragHandleProps } from "@prosekit/web/block-handle";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
4
|
-
import "./chunk-
|
3
|
+
} from "./chunk-YXLW4LJ6.js";
|
4
|
+
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/inline-popover/inline-popover.gen.ts
|
7
7
|
import { defaultInlinePopoverProps } from "@prosekit/web/inline-popover";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
4
|
-
import "./chunk-
|
3
|
+
} from "./chunk-YXLW4LJ6.js";
|
4
|
+
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/popover/popover-content.gen.ts
|
7
7
|
import { defaultPopoverContentProps } from "@prosekit/web/popover";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
4
|
-
import "./chunk-
|
3
|
+
} from "./chunk-YXLW4LJ6.js";
|
4
|
+
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/resizable/resizable-handle.gen.ts
|
7
7
|
import { defaultResizableHandleProps } from "@prosekit/web/resizable";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
4
|
-
import "./chunk-
|
3
|
+
} from "./chunk-YXLW4LJ6.js";
|
4
|
+
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/tooltip/tooltip-content.gen.ts
|
7
7
|
import { defaultTooltipContentProps } from "@prosekit/web/tooltip";
|
package/dist/prosekit-vue.js
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
provideEditor,
|
3
3
|
useEditorContext
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/prosekit.ts
|
7
|
-
import "@prosekit/core";
|
8
7
|
import { ProsemirrorAdapterProvider } from "@prosemirror-adapter/vue";
|
9
8
|
import { defineComponent as defineComponent2, h as h2 } from "vue";
|
10
9
|
|
@@ -23,11 +22,10 @@ import {
|
|
23
22
|
h
|
24
23
|
} from "vue";
|
25
24
|
|
26
|
-
// src/hooks/use-extension.ts
|
27
|
-
import "@prosekit/core";
|
28
|
-
|
29
25
|
// src/hooks/use-editor-extension.ts
|
30
|
-
import {
|
26
|
+
import {
|
27
|
+
EditorNotFoundError
|
28
|
+
} from "@prosekit/core";
|
31
29
|
import { toValue, watchPostEffect } from "vue";
|
32
30
|
function useEditorExtension(editorRef, extensionRef) {
|
33
31
|
const editorContext = useEditorContext();
|
@@ -151,10 +149,10 @@ function useEditor(options) {
|
|
151
149
|
if (update) {
|
152
150
|
onMounted(() => {
|
153
151
|
const forceUpdate = () => triggerRef(editorRef);
|
154
|
-
const extension = union(
|
152
|
+
const extension = union(
|
155
153
|
defineMountHandler(forceUpdate),
|
156
154
|
defineUpdateHandler(forceUpdate)
|
157
|
-
|
155
|
+
);
|
158
156
|
const dispose = editor.use(extension);
|
159
157
|
onUnmounted(dispose);
|
160
158
|
});
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/vue",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.3.
|
4
|
+
"version": "0.3.22",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -66,9 +66,9 @@
|
|
66
66
|
],
|
67
67
|
"dependencies": {
|
68
68
|
"@prosemirror-adapter/vue": "^0.2.6",
|
69
|
-
"@prosekit/core": "^0.7.
|
70
|
-
"@prosekit/
|
71
|
-
"@prosekit/
|
69
|
+
"@prosekit/core": "^0.7.9",
|
70
|
+
"@prosekit/web": "^0.3.11",
|
71
|
+
"@prosekit/pm": "^0.1.8"
|
72
72
|
},
|
73
73
|
"peerDependencies": {
|
74
74
|
"vue": ">= 3.0.0"
|
@@ -80,10 +80,10 @@
|
|
80
80
|
},
|
81
81
|
"devDependencies": {
|
82
82
|
"@vue/test-utils": "^2.4.6",
|
83
|
-
"tsup": "^8.2.
|
84
|
-
"typescript": "^5.5.
|
85
|
-
"vitest": "^2.0.
|
86
|
-
"vue": "^3.4.
|
83
|
+
"tsup": "^8.2.4",
|
84
|
+
"typescript": "^5.5.4",
|
85
|
+
"vitest": "^2.0.5",
|
86
|
+
"vue": "^3.4.38",
|
87
87
|
"@prosekit/dev": "0.0.0"
|
88
88
|
},
|
89
89
|
"scripts": {
|