@prosekit/vue 0.3.10 → 0.3.12

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.
@@ -18,6 +18,7 @@ import type { EditorState } from '@prosekit/pm/state';
18
18
  import type { EditorView } from '@prosekit/pm/view';
19
19
  import { Extension } from '@prosekit/core';
20
20
  import { ExtractPropTypes } from 'vue';
21
+ import { HTMLAttributes } from 'vue';
21
22
  import { InlinePopoverProps } from '@prosekit/web/inline-popover';
22
23
  import { Keymap } from '@prosekit/core';
23
24
  import { MaybeRefOrGetter } from 'vue';
@@ -36,45 +37,31 @@ import { TooltipRootProps } from '@prosekit/web/tooltip';
36
37
  import { TooltipTriggerProps } from '@prosekit/web/tooltip';
37
38
  import { VNodeRef } from 'vue';
38
39
 
39
- declare const AutocompleteEmpty: DefineSetupFnComponent<Partial<AutocompleteEmptyProps> & {
40
- class?: string;
41
- }>;
40
+ declare const AutocompleteEmpty: DefineSetupFnComponent<Partial<AutocompleteEmptyProps> & HTMLAttributes>;
42
41
  export { AutocompleteEmpty }
43
42
  export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
44
43
 
45
- declare const AutocompleteItem: DefineSetupFnComponent<Partial<AutocompleteItemProps> & {
46
- class?: string;
47
- }>;
44
+ declare const AutocompleteItem: DefineSetupFnComponent<Partial<AutocompleteItemProps> & HTMLAttributes>;
48
45
  export { AutocompleteItem }
49
46
  export { AutocompleteItem as AutocompleteItem_alias_1 }
50
47
 
51
- declare const AutocompleteList: DefineSetupFnComponent<Partial<AutocompleteListProps> & {
52
- class?: string;
53
- }>;
48
+ declare const AutocompleteList: DefineSetupFnComponent<Partial<AutocompleteListProps> & HTMLAttributes>;
54
49
  export { AutocompleteList }
55
50
  export { AutocompleteList as AutocompleteList_alias_1 }
56
51
 
57
- declare const AutocompletePopover: DefineSetupFnComponent<Partial<AutocompletePopoverProps> & {
58
- class?: string;
59
- }>;
52
+ declare const AutocompletePopover: DefineSetupFnComponent<Partial<AutocompletePopoverProps> & HTMLAttributes>;
60
53
  export { AutocompletePopover }
61
54
  export { AutocompletePopover as AutocompletePopover_alias_1 }
62
55
 
63
- declare const BlockDragHandle: DefineSetupFnComponent<Partial<BlockDragHandleProps> & {
64
- class?: string;
65
- }>;
56
+ declare const BlockDragHandle: DefineSetupFnComponent<Partial<BlockDragHandleProps> & HTMLAttributes>;
66
57
  export { BlockDragHandle }
67
58
  export { BlockDragHandle as BlockDragHandle_alias_1 }
68
59
 
69
- declare const BlockPopover: DefineSetupFnComponent<Partial<BlockPopoverProps> & {
70
- class?: string;
71
- }>;
60
+ declare const BlockPopover: DefineSetupFnComponent<Partial<BlockPopoverProps> & HTMLAttributes>;
72
61
  export { BlockPopover }
73
62
  export { BlockPopover as BlockPopover_alias_1 }
74
63
 
75
- export declare function createComponent<Props extends object>(tagName: string, displayName: string, defaultProps: Props): DefineSetupFnComponent<Partial<Props> & {
76
- class?: string;
77
- }>;
64
+ export declare function createComponent<Props extends object>(tagName: string, displayName: string, defaultProps: Props): DefineSetupFnComponent<Partial<Props> & HTMLAttributes>;
78
65
 
79
66
  export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
80
67
 
@@ -89,27 +76,19 @@ declare function defineVueNodeView(options: VueNodeViewOptions): Extension;
89
76
  export { defineVueNodeView }
90
77
  export { defineVueNodeView as defineVueNodeView_alias_1 }
91
78
 
92
- declare const InlinePopover: DefineSetupFnComponent<Partial<InlinePopoverProps> & {
93
- class?: string;
94
- }>;
79
+ declare const InlinePopover: DefineSetupFnComponent<Partial<InlinePopoverProps> & HTMLAttributes>;
95
80
  export { InlinePopover }
96
81
  export { InlinePopover as InlinePopover_alias_1 }
97
82
 
98
- declare const PopoverContent: DefineSetupFnComponent<Partial<PopoverContentProps> & {
99
- class?: string;
100
- }>;
83
+ declare const PopoverContent: DefineSetupFnComponent<Partial<PopoverContentProps> & HTMLAttributes>;
101
84
  export { PopoverContent }
102
85
  export { PopoverContent as PopoverContent_alias_1 }
103
86
 
104
- declare const PopoverRoot: DefineSetupFnComponent<Partial<PopoverRootProps> & {
105
- class?: string;
106
- }>;
87
+ declare const PopoverRoot: DefineSetupFnComponent<Partial<PopoverRootProps> & HTMLAttributes>;
107
88
  export { PopoverRoot }
108
89
  export { PopoverRoot as PopoverRoot_alias_1 }
109
90
 
110
- declare const PopoverTrigger: DefineSetupFnComponent<Partial<PopoverTriggerProps> & {
111
- class?: string;
112
- }>;
91
+ declare const PopoverTrigger: DefineSetupFnComponent<Partial<PopoverTriggerProps> & HTMLAttributes>;
113
92
  export { PopoverTrigger }
114
93
  export { PopoverTrigger as PopoverTrigger_alias_1 }
115
94
 
@@ -140,33 +119,23 @@ export { ProseKitProps as ProseKitProps_alias_1 }
140
119
  */
141
120
  export declare function provideEditor(editor: Editor): void;
142
121
 
143
- declare const ResizableHandle: DefineSetupFnComponent<Partial<ResizableHandleProps> & {
144
- class?: string;
145
- }>;
122
+ declare const ResizableHandle: DefineSetupFnComponent<Partial<ResizableHandleProps> & HTMLAttributes>;
146
123
  export { ResizableHandle }
147
124
  export { ResizableHandle as ResizableHandle_alias_1 }
148
125
 
149
- declare const ResizableRoot: DefineSetupFnComponent<Partial<ResizableRootProps> & {
150
- class?: string;
151
- }>;
126
+ declare const ResizableRoot: DefineSetupFnComponent<Partial<ResizableRootProps> & HTMLAttributes>;
152
127
  export { ResizableRoot }
153
128
  export { ResizableRoot as ResizableRoot_alias_1 }
154
129
 
155
- declare const TooltipContent: DefineSetupFnComponent<Partial<TooltipContentProps> & {
156
- class?: string;
157
- }>;
130
+ declare const TooltipContent: DefineSetupFnComponent<Partial<TooltipContentProps> & HTMLAttributes>;
158
131
  export { TooltipContent }
159
132
  export { TooltipContent as TooltipContent_alias_1 }
160
133
 
161
- declare const TooltipRoot: DefineSetupFnComponent<Partial<TooltipRootProps> & {
162
- class?: string;
163
- }>;
134
+ declare const TooltipRoot: DefineSetupFnComponent<Partial<TooltipRootProps> & HTMLAttributes>;
164
135
  export { TooltipRoot }
165
136
  export { TooltipRoot as TooltipRoot_alias_1 }
166
137
 
167
- declare const TooltipTrigger: DefineSetupFnComponent<Partial<TooltipTriggerProps> & {
168
- class?: string;
169
- }>;
138
+ declare const TooltipTrigger: DefineSetupFnComponent<Partial<TooltipTriggerProps> & HTMLAttributes>;
170
139
  export { TooltipTrigger }
171
140
  export { TooltipTrigger as TooltipTrigger_alias_1 }
172
141
 
@@ -3,7 +3,10 @@ import {
3
3
  } from "./chunk-KCTUNTM2.js";
4
4
 
5
5
  // src/components/create-component.ts
6
- import { defineComponent, h } from "vue";
6
+ import {
7
+ defineComponent,
8
+ h
9
+ } from "vue";
7
10
  function createComponent(tagName, displayName, defaultProps) {
8
11
  let propertyNames = Object.keys(defaultProps), hasEditor = Object.hasOwn(defaultProps, "editor");
9
12
  return defineComponent(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-RHKBWCKH.js";
3
+ } from "./chunk-DJHAZPRE.js";
4
4
  import "./chunk-KCTUNTM2.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-RHKBWCKH.js";
3
+ } from "./chunk-DJHAZPRE.js";
4
4
  import "./chunk-KCTUNTM2.js";
5
5
 
6
6
  // src/components/block-handle/block-drag-handle.gen.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createComponent
3
- } from "./chunk-RHKBWCKH.js";
3
+ } from "./chunk-DJHAZPRE.js";
4
4
  import "./chunk-KCTUNTM2.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-RHKBWCKH.js";
3
+ } from "./chunk-DJHAZPRE.js";
4
4
  import "./chunk-KCTUNTM2.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-RHKBWCKH.js";
3
+ } from "./chunk-DJHAZPRE.js";
4
4
  import "./chunk-KCTUNTM2.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-RHKBWCKH.js";
3
+ } from "./chunk-DJHAZPRE.js";
4
4
  import "./chunk-KCTUNTM2.js";
5
5
 
6
6
  // src/components/tooltip/tooltip-content.gen.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/vue",
3
3
  "type": "module",
4
- "version": "0.3.10",
4
+ "version": "0.3.12",
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.1",
70
69
  "@prosekit/pm": "^0.1.5",
71
- "@prosekit/web": "^0.2.3"
70
+ "@prosekit/core": "^0.7.2",
71
+ "@prosekit/web": "^0.3.1"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "vue": ">= 3.0.0"
@@ -82,7 +82,7 @@
82
82
  "@vue/test-utils": "^2.4.6",
83
83
  "tsup": "^8.1.0",
84
84
  "typescript": "^5.5.3",
85
- "vitest": "^2.0.0-beta.13",
85
+ "vitest": "^2.0.2",
86
86
  "vue": "^3.4.31",
87
87
  "@prosekit/dev": "0.0.0"
88
88
  },