@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.
@@ -1,5 +1,4 @@
1
1
  // src/injection/editor-context.ts
2
- import "@prosekit/core";
3
2
  import { inject, provide } from "vue";
4
3
  var symbol = Symbol("prosekit-vue-editor-context");
5
4
  function provideEditor(editor) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useEditorContext
3
- } from "./chunk-KCTUNTM2.js";
3
+ } from "./chunk-YWS6VK6K.js";
4
4
 
5
5
  // src/components/create-component.ts
6
6
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-Z6VOMUSC.js";
4
- import "./chunk-KCTUNTM2.js";
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-Z6VOMUSC.js";
4
- import "./chunk-KCTUNTM2.js";
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-Z6VOMUSC.js";
4
- import "./chunk-KCTUNTM2.js";
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-Z6VOMUSC.js";
4
- import "./chunk-KCTUNTM2.js";
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-Z6VOMUSC.js";
4
- import "./chunk-KCTUNTM2.js";
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-Z6VOMUSC.js";
4
- import "./chunk-KCTUNTM2.js";
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";
@@ -1,10 +1,9 @@
1
1
  import {
2
2
  provideEditor,
3
3
  useEditorContext
4
- } from "./chunk-KCTUNTM2.js";
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 { EditorNotFoundError } from "@prosekit/core";
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.20",
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.8",
70
- "@prosekit/pm": "^0.1.8",
71
- "@prosekit/web": "^0.3.9"
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.3",
84
- "typescript": "^5.5.3",
85
- "vitest": "^2.0.4",
86
- "vue": "^3.4.34",
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": {