@prosekit/vue 0.4.6 → 0.4.8

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.
@@ -17,7 +17,6 @@ import { ComponentProvideOptions } from 'vue';
17
17
  import { ComputedRef } from 'vue';
18
18
  import type { CoreMarkViewUserOptions } from '@prosemirror-adapter/core';
19
19
  import type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core';
20
- import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
21
20
  import { DefineComponent } from 'vue';
22
21
  import { DefineSetupFnComponent } from 'vue';
23
22
  import { Editor } from '@prosekit/core';
@@ -31,7 +30,6 @@ import { Keymap } from '@prosekit/core';
31
30
  import { MarkViewContext } from '@prosemirror-adapter/vue';
32
31
  import { MaybeRefOrGetter } from 'vue';
33
32
  import { NodeViewContext } from '@prosemirror-adapter/vue';
34
- import { Options } from 'tsup';
35
33
  import { PopoverContentEvents } from '@prosekit/web/popover';
36
34
  import { PopoverContentProps as PopoverContentProps_2 } from '@prosekit/web/popover';
37
35
  import { PopoverRootEvents } from '@prosekit/web/popover';
@@ -217,10 +215,6 @@ export declare type CreateEmits<Events extends {
217
215
  [EventName in keyof Events]: (event: EventName extends `${string}Change` ? Events[EventName]['detail'] : Events[EventName]) => void;
218
216
  };
219
217
 
220
- export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
221
-
222
- export { default_alias_1 }
223
-
224
218
  /**
225
219
  * Defines a mark view using a Vue component.
226
220
  *
@@ -43,7 +43,6 @@ function createComponent(tagName, displayName, propNames, eventNames) {
43
43
  });
44
44
  });
45
45
  return () => {
46
- var _a;
47
46
  const properties = {};
48
47
  for (const [key, value] of Object.entries(props)) {
49
48
  if (value !== void 0 && !key.startsWith(".")) {
@@ -55,7 +54,7 @@ function createComponent(tagName, displayName, propNames, eventNames) {
55
54
  }
56
55
  properties.key = mounted.value ? 1 : 0;
57
56
  properties.ref = elementRef;
58
- return h(tagName, properties, (_a = slots.default) == null ? void 0 : _a.call(slots));
57
+ return h(tagName, properties, slots.default?.());
59
58
  };
60
59
  },
61
60
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-VTKZWBOS.js";
3
+ } from "./chunk-PTYQOFHO.js";
4
4
  import "./chunk-BD3KKHO6.js";
5
5
 
6
6
  // src/components/autocomplete/autocomplete-empty.gen.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-VTKZWBOS.js";
3
+ } from "./chunk-PTYQOFHO.js";
4
4
  import "./chunk-BD3KKHO6.js";
5
5
 
6
6
  // src/components/block-handle/block-handle-add.gen.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-VTKZWBOS.js";
3
+ } from "./chunk-PTYQOFHO.js";
4
4
  import "./chunk-BD3KKHO6.js";
5
5
 
6
6
  // src/components/inline-popover/inline-popover.gen.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-VTKZWBOS.js";
3
+ } from "./chunk-PTYQOFHO.js";
4
4
  import "./chunk-BD3KKHO6.js";
5
5
 
6
6
  // src/components/popover/popover-content.gen.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-VTKZWBOS.js";
3
+ } from "./chunk-PTYQOFHO.js";
4
4
  import "./chunk-BD3KKHO6.js";
5
5
 
6
6
  // src/components/resizable/resizable-handle.gen.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-VTKZWBOS.js";
3
+ } from "./chunk-PTYQOFHO.js";
4
4
  import "./chunk-BD3KKHO6.js";
5
5
 
6
6
  // src/components/table-handle/table-handle-column-root.gen.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-VTKZWBOS.js";
3
+ } from "./chunk-PTYQOFHO.js";
4
4
  import "./chunk-BD3KKHO6.js";
5
5
 
6
6
  // src/components/tooltip/tooltip-content.gen.ts
@@ -65,8 +65,8 @@ function usePriorityExtension(extension, priority) {
65
65
  // src/hooks/use-extension.ts
66
66
  function useExtension(extension, options) {
67
67
  useEditorExtension(
68
- options == null ? void 0 : options.editor,
69
- usePriorityExtension(extension, options == null ? void 0 : options.priority)
68
+ options?.editor,
69
+ usePriorityExtension(extension, options?.priority)
70
70
  );
71
71
  }
72
72
 
@@ -168,14 +168,11 @@ var ProseKit = defineComponent3(
168
168
  (props, { slots }) => {
169
169
  provideEditor(props.editor);
170
170
  return () => {
171
- return h3(ProsemirrorAdapterProvider, null, () => {
172
- var _a;
173
- return [
174
- h3(VueNodeViewsConsumer),
175
- h3(VueMarkViewsConsumer),
176
- (_a = slots.default) == null ? void 0 : _a.call(slots)
177
- ];
178
- });
171
+ return h3(ProsemirrorAdapterProvider, null, () => [
172
+ h3(VueNodeViewsConsumer),
173
+ h3(VueMarkViewsConsumer),
174
+ slots.default?.()
175
+ ]);
179
176
  };
180
177
  },
181
178
  { props: { editor: { type: Object, required: true } } }
@@ -202,8 +199,7 @@ import {
202
199
  triggerRef
203
200
  } from "vue";
204
201
  function useEditor(options) {
205
- var _a;
206
- const update = (_a = options == null ? void 0 : options.update) != null ? _a : false;
202
+ const update = options?.update ?? false;
207
203
  const editor = useEditorContext();
208
204
  if (!editor) {
209
205
  throw new ProseKitError(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/vue",
3
3
  "type": "module",
4
- "version": "0.4.6",
4
+ "version": "0.4.8",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -72,9 +72,9 @@
72
72
  "dependencies": {
73
73
  "@prosemirror-adapter/core": "^0.4.0",
74
74
  "@prosemirror-adapter/vue": "^0.4.0",
75
- "@prosekit/core": "^0.7.13",
76
- "@prosekit/web": "^0.5.1",
77
- "@prosekit/pm": "^0.1.9"
75
+ "@prosekit/core": "^0.7.14",
76
+ "@prosekit/pm": "^0.1.9",
77
+ "@prosekit/web": "^0.5.3"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "vue": ">= 3.0.0"
@@ -87,14 +87,14 @@
87
87
  "devDependencies": {
88
88
  "@vue/test-utils": "^2.4.6",
89
89
  "tsup": "^8.3.5",
90
- "typescript": "~5.6.3",
90
+ "typescript": "~5.7.2",
91
91
  "vitest": "^2.1.8",
92
92
  "vue": "^3.5.13",
93
93
  "@prosekit/dev": "0.0.0"
94
94
  },
95
95
  "scripts": {
96
- "build:tsup": "tsup",
97
- "build:tsc": "tsc -b tsconfig.json"
96
+ "build:tsc": "tsc -b tsconfig.json",
97
+ "build:tsup": "tsup"
98
98
  },
99
99
  "types": "./dist/prosekit-vue.d.ts",
100
100
  "typesVersions": {