@prosekit/vue 0.3.30 → 0.4.1
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/_tsup-dts-rollup.d.ts +445 -55
- package/dist/{chunk-YXLW4LJ6.js → chunk-742J24VD.js} +15 -6
- package/dist/prosekit-vue-autocomplete.d.ts +8 -0
- package/dist/prosekit-vue-autocomplete.js +41 -9
- package/dist/prosekit-vue-block-handle.d.ts +6 -2
- package/dist/prosekit-vue-block-handle.js +32 -18
- package/dist/prosekit-vue-inline-popover.d.ts +2 -0
- package/dist/prosekit-vue-inline-popover.js +11 -3
- package/dist/prosekit-vue-popover.d.ts +6 -0
- package/dist/prosekit-vue-popover.js +31 -7
- package/dist/prosekit-vue-resizable.d.ts +4 -0
- package/dist/prosekit-vue-resizable.js +21 -5
- package/dist/prosekit-vue-table-handle.d.ts +14 -0
- package/dist/prosekit-vue-table-handle.js +71 -15
- package/dist/prosekit-vue-tooltip.d.ts +6 -0
- package/dist/prosekit-vue-tooltip.js +31 -7
- package/package.json +7 -7
@@ -1,14 +1,19 @@
|
|
1
1
|
import type { Attrs } from '@prosekit/pm/model';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
2
|
+
import { AutocompleteEmptyEvents } from '@prosekit/web/autocomplete';
|
3
|
+
import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/web/autocomplete';
|
4
|
+
import { AutocompleteItemEvents } from '@prosekit/web/autocomplete';
|
5
|
+
import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/web/autocomplete';
|
6
|
+
import { AutocompleteListEvents } from '@prosekit/web/autocomplete';
|
7
|
+
import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/web/autocomplete';
|
8
|
+
import { AutocompletePopoverEvents } from '@prosekit/web/autocomplete';
|
9
|
+
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/web/autocomplete';
|
6
10
|
import { BaseNodeViewOptions } from '@prosekit/core';
|
7
|
-
import {
|
8
|
-
import { BlockHandleAddProps } from '@prosekit/web/block-handle';
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
11
|
+
import { BlockHandleAddEvents } from '@prosekit/web/block-handle';
|
12
|
+
import { BlockHandleAddProps as BlockHandleAddProps_2 } from '@prosekit/web/block-handle';
|
13
|
+
import { BlockHandleDraggableEvents } from '@prosekit/web/block-handle';
|
14
|
+
import { BlockHandleDraggableProps as BlockHandleDraggableProps_2 } from '@prosekit/web/block-handle';
|
15
|
+
import { BlockHandlePopoverEvents } from '@prosekit/web/block-handle';
|
16
|
+
import { BlockHandlePopoverProps as BlockHandlePopoverProps_2 } from '@prosekit/web/block-handle';
|
12
17
|
import { ComponentOptionsMixin } from 'vue';
|
13
18
|
import { ComponentProvideOptions } from 'vue';
|
14
19
|
import { ComputedRef } from 'vue';
|
@@ -20,70 +25,199 @@ import { DefineSetupFnComponent } from 'vue';
|
|
20
25
|
import { Editor } from '@prosekit/core';
|
21
26
|
import type { EditorState } from '@prosekit/pm/state';
|
22
27
|
import type { EditorView } from '@prosekit/pm/view';
|
28
|
+
import { EmitsOptions } from 'vue';
|
23
29
|
import { Extension } from '@prosekit/core';
|
24
30
|
import { HTMLAttributes } from 'vue';
|
25
|
-
import {
|
31
|
+
import { InlinePopoverEvents } from '@prosekit/web/inline-popover';
|
32
|
+
import { InlinePopoverProps as InlinePopoverProps_2 } from '@prosekit/web/inline-popover';
|
26
33
|
import { Keymap } from '@prosekit/core';
|
27
34
|
import { MaybeRefOrGetter } from 'vue';
|
28
35
|
import { Options } from 'tsup';
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
36
|
+
import { PopoverContentEvents } from '@prosekit/web/popover';
|
37
|
+
import { PopoverContentProps as PopoverContentProps_2 } from '@prosekit/web/popover';
|
38
|
+
import { PopoverRootEvents } from '@prosekit/web/popover';
|
39
|
+
import { PopoverRootProps as PopoverRootProps_2 } from '@prosekit/web/popover';
|
40
|
+
import { PopoverTriggerEvents } from '@prosekit/web/popover';
|
41
|
+
import { PopoverTriggerProps as PopoverTriggerProps_2 } from '@prosekit/web/popover';
|
32
42
|
import { Priority } from '@prosekit/core';
|
33
43
|
import type { ProseMirrorNode } from '@prosekit/pm/model';
|
34
44
|
import { PublicProps } from 'vue';
|
35
|
-
import {
|
36
|
-
import {
|
45
|
+
import { ResizableHandleEvents } from '@prosekit/web/resizable';
|
46
|
+
import { ResizableHandleProps as ResizableHandleProps_2 } from '@prosekit/web/resizable';
|
47
|
+
import { ResizableRootEvents } from '@prosekit/web/resizable';
|
48
|
+
import { ResizableRootProps as ResizableRootProps_2 } from '@prosekit/web/resizable';
|
37
49
|
import { ShallowRef } from 'vue';
|
38
|
-
import {
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
42
|
-
import {
|
43
|
-
import {
|
44
|
-
import {
|
45
|
-
import {
|
46
|
-
import {
|
47
|
-
import {
|
50
|
+
import { TableHandleColumnRootEvents } from '@prosekit/web/table-handle';
|
51
|
+
import { TableHandleColumnRootProps as TableHandleColumnRootProps_2 } from '@prosekit/web/table-handle';
|
52
|
+
import { TableHandleColumnTriggerEvents } from '@prosekit/web/table-handle';
|
53
|
+
import { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_2 } from '@prosekit/web/table-handle';
|
54
|
+
import { TableHandlePopoverContentEvents } from '@prosekit/web/table-handle';
|
55
|
+
import { TableHandlePopoverContentProps as TableHandlePopoverContentProps_2 } from '@prosekit/web/table-handle';
|
56
|
+
import { TableHandlePopoverItemEvents } from '@prosekit/web/table-handle';
|
57
|
+
import { TableHandlePopoverItemProps as TableHandlePopoverItemProps_2 } from '@prosekit/web/table-handle';
|
58
|
+
import { TableHandleRootEvents } from '@prosekit/web/table-handle';
|
59
|
+
import { TableHandleRootProps as TableHandleRootProps_2 } from '@prosekit/web/table-handle';
|
60
|
+
import { TableHandleRowRootEvents } from '@prosekit/web/table-handle';
|
61
|
+
import { TableHandleRowRootProps as TableHandleRowRootProps_2 } from '@prosekit/web/table-handle';
|
62
|
+
import { TableHandleRowTriggerEvents } from '@prosekit/web/table-handle';
|
63
|
+
import { TableHandleRowTriggerProps as TableHandleRowTriggerProps_2 } from '@prosekit/web/table-handle';
|
64
|
+
import { TooltipContentEvents } from '@prosekit/web/tooltip';
|
65
|
+
import { TooltipContentProps as TooltipContentProps_2 } from '@prosekit/web/tooltip';
|
66
|
+
import { TooltipRootEvents } from '@prosekit/web/tooltip';
|
67
|
+
import { TooltipRootProps as TooltipRootProps_2 } from '@prosekit/web/tooltip';
|
68
|
+
import { TooltipTriggerEvents } from '@prosekit/web/tooltip';
|
69
|
+
import { TooltipTriggerProps as TooltipTriggerProps_2 } from '@prosekit/web/tooltip';
|
48
70
|
import { VNodeRef } from 'vue';
|
49
71
|
|
50
|
-
declare const AutocompleteEmpty: DefineSetupFnComponent<
|
72
|
+
declare const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps & HTMLAttributes, AutocompleteEmptyEmits>;
|
51
73
|
export { AutocompleteEmpty }
|
52
74
|
export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
|
53
75
|
|
54
|
-
|
76
|
+
/**
|
77
|
+
* Emits for the {@link AutocompleteEmpty} component.
|
78
|
+
*/
|
79
|
+
declare interface AutocompleteEmptyEmits extends CreateEmits<AutocompleteEmptyEvents> {
|
80
|
+
}
|
81
|
+
export { AutocompleteEmptyEmits }
|
82
|
+
export { AutocompleteEmptyEmits as AutocompleteEmptyEmits_alias_1 }
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Props for the {@link AutocompleteEmpty} component.
|
86
|
+
*/
|
87
|
+
declare interface AutocompleteEmptyProps extends Partial<AutocompleteEmptyProps_2> {
|
88
|
+
}
|
89
|
+
export { AutocompleteEmptyProps }
|
90
|
+
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
91
|
+
|
92
|
+
declare const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps & HTMLAttributes, AutocompleteItemEmits>;
|
55
93
|
export { AutocompleteItem }
|
56
94
|
export { AutocompleteItem as AutocompleteItem_alias_1 }
|
57
95
|
|
58
|
-
|
96
|
+
/**
|
97
|
+
* Emits for the {@link AutocompleteItem} component.
|
98
|
+
*/
|
99
|
+
declare interface AutocompleteItemEmits extends CreateEmits<AutocompleteItemEvents> {
|
100
|
+
}
|
101
|
+
export { AutocompleteItemEmits }
|
102
|
+
export { AutocompleteItemEmits as AutocompleteItemEmits_alias_1 }
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Props for the {@link AutocompleteItem} component.
|
106
|
+
*/
|
107
|
+
declare interface AutocompleteItemProps extends Partial<AutocompleteItemProps_2> {
|
108
|
+
}
|
109
|
+
export { AutocompleteItemProps }
|
110
|
+
export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
|
111
|
+
|
112
|
+
declare const AutocompleteList: DefineSetupFnComponent<AutocompleteListProps & HTMLAttributes, AutocompleteListEmits>;
|
59
113
|
export { AutocompleteList }
|
60
114
|
export { AutocompleteList as AutocompleteList_alias_1 }
|
61
115
|
|
62
|
-
|
116
|
+
/**
|
117
|
+
* Emits for the {@link AutocompleteList} component.
|
118
|
+
*/
|
119
|
+
declare interface AutocompleteListEmits extends CreateEmits<AutocompleteListEvents> {
|
120
|
+
}
|
121
|
+
export { AutocompleteListEmits }
|
122
|
+
export { AutocompleteListEmits as AutocompleteListEmits_alias_1 }
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Props for the {@link AutocompleteList} component.
|
126
|
+
*/
|
127
|
+
declare interface AutocompleteListProps extends Partial<AutocompleteListProps_2> {
|
128
|
+
}
|
129
|
+
export { AutocompleteListProps }
|
130
|
+
export { AutocompleteListProps as AutocompleteListProps_alias_1 }
|
131
|
+
|
132
|
+
declare const AutocompletePopover: DefineSetupFnComponent<AutocompletePopoverProps & HTMLAttributes, AutocompletePopoverEmits>;
|
63
133
|
export { AutocompletePopover }
|
64
134
|
export { AutocompletePopover as AutocompletePopover_alias_1 }
|
65
135
|
|
66
|
-
|
67
|
-
|
68
|
-
|
136
|
+
/**
|
137
|
+
* Emits for the {@link AutocompletePopover} component.
|
138
|
+
*/
|
139
|
+
declare interface AutocompletePopoverEmits extends CreateEmits<AutocompletePopoverEvents> {
|
140
|
+
}
|
141
|
+
export { AutocompletePopoverEmits }
|
142
|
+
export { AutocompletePopoverEmits as AutocompletePopoverEmits_alias_1 }
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Props for the {@link AutocompletePopover} component.
|
146
|
+
*/
|
147
|
+
declare interface AutocompletePopoverProps extends Partial<AutocompletePopoverProps_2> {
|
148
|
+
}
|
149
|
+
export { AutocompletePopoverProps }
|
150
|
+
export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
|
69
151
|
|
70
|
-
declare const BlockHandleAdd: DefineSetupFnComponent<
|
152
|
+
declare const BlockHandleAdd: DefineSetupFnComponent<BlockHandleAddProps & HTMLAttributes, BlockHandleAddEmits>;
|
71
153
|
export { BlockHandleAdd }
|
72
154
|
export { BlockHandleAdd as BlockHandleAdd_alias_1 }
|
73
155
|
|
74
|
-
|
156
|
+
/**
|
157
|
+
* Emits for the {@link BlockHandleAdd} component.
|
158
|
+
*/
|
159
|
+
declare interface BlockHandleAddEmits extends CreateEmits<BlockHandleAddEvents> {
|
160
|
+
}
|
161
|
+
export { BlockHandleAddEmits }
|
162
|
+
export { BlockHandleAddEmits as BlockHandleAddEmits_alias_1 }
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Props for the {@link BlockHandleAdd} component.
|
166
|
+
*/
|
167
|
+
declare interface BlockHandleAddProps extends Partial<BlockHandleAddProps_2> {
|
168
|
+
}
|
169
|
+
export { BlockHandleAddProps }
|
170
|
+
export { BlockHandleAddProps as BlockHandleAddProps_alias_1 }
|
171
|
+
|
172
|
+
declare const BlockHandleDraggable: DefineSetupFnComponent<BlockHandleDraggableProps & HTMLAttributes, BlockHandleDraggableEmits>;
|
75
173
|
export { BlockHandleDraggable }
|
76
174
|
export { BlockHandleDraggable as BlockHandleDraggable_alias_1 }
|
77
175
|
|
78
|
-
|
176
|
+
/**
|
177
|
+
* Emits for the {@link BlockHandleDraggable} component.
|
178
|
+
*/
|
179
|
+
declare interface BlockHandleDraggableEmits extends CreateEmits<BlockHandleDraggableEvents> {
|
180
|
+
}
|
181
|
+
export { BlockHandleDraggableEmits }
|
182
|
+
export { BlockHandleDraggableEmits as BlockHandleDraggableEmits_alias_1 }
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Props for the {@link BlockHandleDraggable} component.
|
186
|
+
*/
|
187
|
+
declare interface BlockHandleDraggableProps extends Partial<BlockHandleDraggableProps_2> {
|
188
|
+
}
|
189
|
+
export { BlockHandleDraggableProps }
|
190
|
+
export { BlockHandleDraggableProps as BlockHandleDraggableProps_alias_1 }
|
191
|
+
|
192
|
+
declare const BlockHandlePopover: DefineSetupFnComponent<BlockHandlePopoverProps & HTMLAttributes, BlockHandlePopoverEmits>;
|
79
193
|
export { BlockHandlePopover }
|
80
194
|
export { BlockHandlePopover as BlockHandlePopover_alias_1 }
|
81
195
|
|
82
|
-
|
83
|
-
|
84
|
-
|
196
|
+
/**
|
197
|
+
* Emits for the {@link BlockHandlePopover} component.
|
198
|
+
*/
|
199
|
+
declare interface BlockHandlePopoverEmits extends CreateEmits<BlockHandlePopoverEvents> {
|
200
|
+
}
|
201
|
+
export { BlockHandlePopoverEmits }
|
202
|
+
export { BlockHandlePopoverEmits as BlockHandlePopoverEmits_alias_1 }
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Props for the {@link BlockHandlePopover} component.
|
206
|
+
*/
|
207
|
+
declare interface BlockHandlePopoverProps extends Partial<BlockHandlePopoverProps_2> {
|
208
|
+
}
|
209
|
+
export { BlockHandlePopoverProps }
|
210
|
+
export { BlockHandlePopoverProps as BlockHandlePopoverProps_alias_1 }
|
211
|
+
|
212
|
+
export declare function createComponent<Props extends {
|
213
|
+
[PropName in keyof Props]: unknown;
|
214
|
+
}, Emits extends EmitsOptions>(tagName: string, displayName: string, propNames: string[], eventNames: string[]): DefineSetupFnComponent<Partial<Props> & HTMLAttributes, Emits>;
|
85
215
|
|
86
|
-
export declare
|
216
|
+
export declare type CreateEmits<Events extends {
|
217
|
+
[EventName in keyof Events]: CustomEvent;
|
218
|
+
}> = {
|
219
|
+
[EventName in keyof Events]: (event: EventName extends `${string}Change` ? Events[EventName]['detail'] : Events[EventName]) => void;
|
220
|
+
};
|
87
221
|
|
88
222
|
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
89
223
|
|
@@ -98,22 +232,86 @@ declare function defineVueNodeView(options: VueNodeViewOptions): Extension;
|
|
98
232
|
export { defineVueNodeView }
|
99
233
|
export { defineVueNodeView as defineVueNodeView_alias_1 }
|
100
234
|
|
101
|
-
declare const InlinePopover: DefineSetupFnComponent<
|
235
|
+
declare const InlinePopover: DefineSetupFnComponent<InlinePopoverProps & HTMLAttributes, InlinePopoverEmits>;
|
102
236
|
export { InlinePopover }
|
103
237
|
export { InlinePopover as InlinePopover_alias_1 }
|
104
238
|
|
105
|
-
|
239
|
+
/**
|
240
|
+
* Emits for the {@link InlinePopover} component.
|
241
|
+
*/
|
242
|
+
declare interface InlinePopoverEmits extends CreateEmits<InlinePopoverEvents> {
|
243
|
+
}
|
244
|
+
export { InlinePopoverEmits }
|
245
|
+
export { InlinePopoverEmits as InlinePopoverEmits_alias_1 }
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Props for the {@link InlinePopover} component.
|
249
|
+
*/
|
250
|
+
declare interface InlinePopoverProps extends Partial<InlinePopoverProps_2> {
|
251
|
+
}
|
252
|
+
export { InlinePopoverProps }
|
253
|
+
export { InlinePopoverProps as InlinePopoverProps_alias_1 }
|
254
|
+
|
255
|
+
declare const PopoverContent: DefineSetupFnComponent<PopoverContentProps & HTMLAttributes, PopoverContentEmits>;
|
106
256
|
export { PopoverContent }
|
107
257
|
export { PopoverContent as PopoverContent_alias_1 }
|
108
258
|
|
109
|
-
|
259
|
+
/**
|
260
|
+
* Emits for the {@link PopoverContent} component.
|
261
|
+
*/
|
262
|
+
declare interface PopoverContentEmits extends CreateEmits<PopoverContentEvents> {
|
263
|
+
}
|
264
|
+
export { PopoverContentEmits }
|
265
|
+
export { PopoverContentEmits as PopoverContentEmits_alias_1 }
|
266
|
+
|
267
|
+
/**
|
268
|
+
* Props for the {@link PopoverContent} component.
|
269
|
+
*/
|
270
|
+
declare interface PopoverContentProps extends Partial<PopoverContentProps_2> {
|
271
|
+
}
|
272
|
+
export { PopoverContentProps }
|
273
|
+
export { PopoverContentProps as PopoverContentProps_alias_1 }
|
274
|
+
|
275
|
+
declare const PopoverRoot: DefineSetupFnComponent<PopoverRootProps & HTMLAttributes, PopoverRootEmits>;
|
110
276
|
export { PopoverRoot }
|
111
277
|
export { PopoverRoot as PopoverRoot_alias_1 }
|
112
278
|
|
113
|
-
|
279
|
+
/**
|
280
|
+
* Emits for the {@link PopoverRoot} component.
|
281
|
+
*/
|
282
|
+
declare interface PopoverRootEmits extends CreateEmits<PopoverRootEvents> {
|
283
|
+
}
|
284
|
+
export { PopoverRootEmits }
|
285
|
+
export { PopoverRootEmits as PopoverRootEmits_alias_1 }
|
286
|
+
|
287
|
+
/**
|
288
|
+
* Props for the {@link PopoverRoot} component.
|
289
|
+
*/
|
290
|
+
declare interface PopoverRootProps extends Partial<PopoverRootProps_2> {
|
291
|
+
}
|
292
|
+
export { PopoverRootProps }
|
293
|
+
export { PopoverRootProps as PopoverRootProps_alias_1 }
|
294
|
+
|
295
|
+
declare const PopoverTrigger: DefineSetupFnComponent<PopoverTriggerProps & HTMLAttributes, PopoverTriggerEmits>;
|
114
296
|
export { PopoverTrigger }
|
115
297
|
export { PopoverTrigger as PopoverTrigger_alias_1 }
|
116
298
|
|
299
|
+
/**
|
300
|
+
* Emits for the {@link PopoverTrigger} component.
|
301
|
+
*/
|
302
|
+
declare interface PopoverTriggerEmits extends CreateEmits<PopoverTriggerEvents> {
|
303
|
+
}
|
304
|
+
export { PopoverTriggerEmits }
|
305
|
+
export { PopoverTriggerEmits as PopoverTriggerEmits_alias_1 }
|
306
|
+
|
307
|
+
/**
|
308
|
+
* Props for the {@link PopoverTrigger} component.
|
309
|
+
*/
|
310
|
+
declare interface PopoverTriggerProps extends Partial<PopoverTriggerProps_2> {
|
311
|
+
}
|
312
|
+
export { PopoverTriggerProps }
|
313
|
+
export { PopoverTriggerProps as PopoverTriggerProps_alias_1 }
|
314
|
+
|
117
315
|
/**
|
118
316
|
* @internal
|
119
317
|
*/
|
@@ -141,54 +339,246 @@ export { ProseKitProps as ProseKitProps_alias_1 }
|
|
141
339
|
*/
|
142
340
|
export declare function provideEditor(editor: Editor): void;
|
143
341
|
|
144
|
-
declare const ResizableHandle: DefineSetupFnComponent<
|
342
|
+
declare const ResizableHandle: DefineSetupFnComponent<ResizableHandleProps & HTMLAttributes, ResizableHandleEmits>;
|
145
343
|
export { ResizableHandle }
|
146
344
|
export { ResizableHandle as ResizableHandle_alias_1 }
|
147
345
|
|
148
|
-
|
346
|
+
/**
|
347
|
+
* Emits for the {@link ResizableHandle} component.
|
348
|
+
*/
|
349
|
+
declare interface ResizableHandleEmits extends CreateEmits<ResizableHandleEvents> {
|
350
|
+
}
|
351
|
+
export { ResizableHandleEmits }
|
352
|
+
export { ResizableHandleEmits as ResizableHandleEmits_alias_1 }
|
353
|
+
|
354
|
+
/**
|
355
|
+
* Props for the {@link ResizableHandle} component.
|
356
|
+
*/
|
357
|
+
declare interface ResizableHandleProps extends Partial<ResizableHandleProps_2> {
|
358
|
+
}
|
359
|
+
export { ResizableHandleProps }
|
360
|
+
export { ResizableHandleProps as ResizableHandleProps_alias_1 }
|
361
|
+
|
362
|
+
declare const ResizableRoot: DefineSetupFnComponent<ResizableRootProps & HTMLAttributes, ResizableRootEmits>;
|
149
363
|
export { ResizableRoot }
|
150
364
|
export { ResizableRoot as ResizableRoot_alias_1 }
|
151
365
|
|
152
|
-
|
366
|
+
/**
|
367
|
+
* Emits for the {@link ResizableRoot} component.
|
368
|
+
*/
|
369
|
+
declare interface ResizableRootEmits extends CreateEmits<ResizableRootEvents> {
|
370
|
+
}
|
371
|
+
export { ResizableRootEmits }
|
372
|
+
export { ResizableRootEmits as ResizableRootEmits_alias_1 }
|
373
|
+
|
374
|
+
/**
|
375
|
+
* Props for the {@link ResizableRoot} component.
|
376
|
+
*/
|
377
|
+
declare interface ResizableRootProps extends Partial<ResizableRootProps_2> {
|
378
|
+
}
|
379
|
+
export { ResizableRootProps }
|
380
|
+
export { ResizableRootProps as ResizableRootProps_alias_1 }
|
381
|
+
|
382
|
+
declare const TableHandleColumnRoot: DefineSetupFnComponent<TableHandleColumnRootProps & HTMLAttributes, TableHandleColumnRootEmits>;
|
153
383
|
export { TableHandleColumnRoot }
|
154
384
|
export { TableHandleColumnRoot as TableHandleColumnRoot_alias_1 }
|
155
385
|
|
156
|
-
|
386
|
+
/**
|
387
|
+
* Emits for the {@link TableHandleColumnRoot} component.
|
388
|
+
*/
|
389
|
+
declare interface TableHandleColumnRootEmits extends CreateEmits<TableHandleColumnRootEvents> {
|
390
|
+
}
|
391
|
+
export { TableHandleColumnRootEmits }
|
392
|
+
export { TableHandleColumnRootEmits as TableHandleColumnRootEmits_alias_1 }
|
393
|
+
|
394
|
+
/**
|
395
|
+
* Props for the {@link TableHandleColumnRoot} component.
|
396
|
+
*/
|
397
|
+
declare interface TableHandleColumnRootProps extends Partial<TableHandleColumnRootProps_2> {
|
398
|
+
}
|
399
|
+
export { TableHandleColumnRootProps }
|
400
|
+
export { TableHandleColumnRootProps as TableHandleColumnRootProps_alias_1 }
|
401
|
+
|
402
|
+
declare const TableHandleColumnTrigger: DefineSetupFnComponent<TableHandleColumnTriggerProps & HTMLAttributes, TableHandleColumnTriggerEmits>;
|
157
403
|
export { TableHandleColumnTrigger }
|
158
404
|
export { TableHandleColumnTrigger as TableHandleColumnTrigger_alias_1 }
|
159
405
|
|
160
|
-
|
406
|
+
/**
|
407
|
+
* Emits for the {@link TableHandleColumnTrigger} component.
|
408
|
+
*/
|
409
|
+
declare interface TableHandleColumnTriggerEmits extends CreateEmits<TableHandleColumnTriggerEvents> {
|
410
|
+
}
|
411
|
+
export { TableHandleColumnTriggerEmits }
|
412
|
+
export { TableHandleColumnTriggerEmits as TableHandleColumnTriggerEmits_alias_1 }
|
413
|
+
|
414
|
+
/**
|
415
|
+
* Props for the {@link TableHandleColumnTrigger} component.
|
416
|
+
*/
|
417
|
+
declare interface TableHandleColumnTriggerProps extends Partial<TableHandleColumnTriggerProps_2> {
|
418
|
+
}
|
419
|
+
export { TableHandleColumnTriggerProps }
|
420
|
+
export { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_alias_1 }
|
421
|
+
|
422
|
+
declare const TableHandlePopoverContent: DefineSetupFnComponent<TableHandlePopoverContentProps & HTMLAttributes, TableHandlePopoverContentEmits>;
|
161
423
|
export { TableHandlePopoverContent }
|
162
424
|
export { TableHandlePopoverContent as TableHandlePopoverContent_alias_1 }
|
163
425
|
|
164
|
-
|
426
|
+
/**
|
427
|
+
* Emits for the {@link TableHandlePopoverContent} component.
|
428
|
+
*/
|
429
|
+
declare interface TableHandlePopoverContentEmits extends CreateEmits<TableHandlePopoverContentEvents> {
|
430
|
+
}
|
431
|
+
export { TableHandlePopoverContentEmits }
|
432
|
+
export { TableHandlePopoverContentEmits as TableHandlePopoverContentEmits_alias_1 }
|
433
|
+
|
434
|
+
/**
|
435
|
+
* Props for the {@link TableHandlePopoverContent} component.
|
436
|
+
*/
|
437
|
+
declare interface TableHandlePopoverContentProps extends Partial<TableHandlePopoverContentProps_2> {
|
438
|
+
}
|
439
|
+
export { TableHandlePopoverContentProps }
|
440
|
+
export { TableHandlePopoverContentProps as TableHandlePopoverContentProps_alias_1 }
|
441
|
+
|
442
|
+
declare const TableHandlePopoverItem: DefineSetupFnComponent<TableHandlePopoverItemProps & HTMLAttributes, TableHandlePopoverItemEmits>;
|
165
443
|
export { TableHandlePopoverItem }
|
166
444
|
export { TableHandlePopoverItem as TableHandlePopoverItem_alias_1 }
|
167
445
|
|
168
|
-
|
446
|
+
/**
|
447
|
+
* Emits for the {@link TableHandlePopoverItem} component.
|
448
|
+
*/
|
449
|
+
declare interface TableHandlePopoverItemEmits extends CreateEmits<TableHandlePopoverItemEvents> {
|
450
|
+
}
|
451
|
+
export { TableHandlePopoverItemEmits }
|
452
|
+
export { TableHandlePopoverItemEmits as TableHandlePopoverItemEmits_alias_1 }
|
453
|
+
|
454
|
+
/**
|
455
|
+
* Props for the {@link TableHandlePopoverItem} component.
|
456
|
+
*/
|
457
|
+
declare interface TableHandlePopoverItemProps extends Partial<TableHandlePopoverItemProps_2> {
|
458
|
+
}
|
459
|
+
export { TableHandlePopoverItemProps }
|
460
|
+
export { TableHandlePopoverItemProps as TableHandlePopoverItemProps_alias_1 }
|
461
|
+
|
462
|
+
declare const TableHandleRoot: DefineSetupFnComponent<TableHandleRootProps & HTMLAttributes, TableHandleRootEmits>;
|
169
463
|
export { TableHandleRoot }
|
170
464
|
export { TableHandleRoot as TableHandleRoot_alias_1 }
|
171
465
|
|
172
|
-
|
466
|
+
/**
|
467
|
+
* Emits for the {@link TableHandleRoot} component.
|
468
|
+
*/
|
469
|
+
declare interface TableHandleRootEmits extends CreateEmits<TableHandleRootEvents> {
|
470
|
+
}
|
471
|
+
export { TableHandleRootEmits }
|
472
|
+
export { TableHandleRootEmits as TableHandleRootEmits_alias_1 }
|
473
|
+
|
474
|
+
/**
|
475
|
+
* Props for the {@link TableHandleRoot} component.
|
476
|
+
*/
|
477
|
+
declare interface TableHandleRootProps extends Partial<TableHandleRootProps_2> {
|
478
|
+
}
|
479
|
+
export { TableHandleRootProps }
|
480
|
+
export { TableHandleRootProps as TableHandleRootProps_alias_1 }
|
481
|
+
|
482
|
+
declare const TableHandleRowRoot: DefineSetupFnComponent<TableHandleRowRootProps & HTMLAttributes, TableHandleRowRootEmits>;
|
173
483
|
export { TableHandleRowRoot }
|
174
484
|
export { TableHandleRowRoot as TableHandleRowRoot_alias_1 }
|
175
485
|
|
176
|
-
|
486
|
+
/**
|
487
|
+
* Emits for the {@link TableHandleRowRoot} component.
|
488
|
+
*/
|
489
|
+
declare interface TableHandleRowRootEmits extends CreateEmits<TableHandleRowRootEvents> {
|
490
|
+
}
|
491
|
+
export { TableHandleRowRootEmits }
|
492
|
+
export { TableHandleRowRootEmits as TableHandleRowRootEmits_alias_1 }
|
493
|
+
|
494
|
+
/**
|
495
|
+
* Props for the {@link TableHandleRowRoot} component.
|
496
|
+
*/
|
497
|
+
declare interface TableHandleRowRootProps extends Partial<TableHandleRowRootProps_2> {
|
498
|
+
}
|
499
|
+
export { TableHandleRowRootProps }
|
500
|
+
export { TableHandleRowRootProps as TableHandleRowRootProps_alias_1 }
|
501
|
+
|
502
|
+
declare const TableHandleRowTrigger: DefineSetupFnComponent<TableHandleRowTriggerProps & HTMLAttributes, TableHandleRowTriggerEmits>;
|
177
503
|
export { TableHandleRowTrigger }
|
178
504
|
export { TableHandleRowTrigger as TableHandleRowTrigger_alias_1 }
|
179
505
|
|
180
|
-
|
506
|
+
/**
|
507
|
+
* Emits for the {@link TableHandleRowTrigger} component.
|
508
|
+
*/
|
509
|
+
declare interface TableHandleRowTriggerEmits extends CreateEmits<TableHandleRowTriggerEvents> {
|
510
|
+
}
|
511
|
+
export { TableHandleRowTriggerEmits }
|
512
|
+
export { TableHandleRowTriggerEmits as TableHandleRowTriggerEmits_alias_1 }
|
513
|
+
|
514
|
+
/**
|
515
|
+
* Props for the {@link TableHandleRowTrigger} component.
|
516
|
+
*/
|
517
|
+
declare interface TableHandleRowTriggerProps extends Partial<TableHandleRowTriggerProps_2> {
|
518
|
+
}
|
519
|
+
export { TableHandleRowTriggerProps }
|
520
|
+
export { TableHandleRowTriggerProps as TableHandleRowTriggerProps_alias_1 }
|
521
|
+
|
522
|
+
declare const TooltipContent: DefineSetupFnComponent<TooltipContentProps & HTMLAttributes, TooltipContentEmits>;
|
181
523
|
export { TooltipContent }
|
182
524
|
export { TooltipContent as TooltipContent_alias_1 }
|
183
525
|
|
184
|
-
|
526
|
+
/**
|
527
|
+
* Emits for the {@link TooltipContent} component.
|
528
|
+
*/
|
529
|
+
declare interface TooltipContentEmits extends CreateEmits<TooltipContentEvents> {
|
530
|
+
}
|
531
|
+
export { TooltipContentEmits }
|
532
|
+
export { TooltipContentEmits as TooltipContentEmits_alias_1 }
|
533
|
+
|
534
|
+
/**
|
535
|
+
* Props for the {@link TooltipContent} component.
|
536
|
+
*/
|
537
|
+
declare interface TooltipContentProps extends Partial<TooltipContentProps_2> {
|
538
|
+
}
|
539
|
+
export { TooltipContentProps }
|
540
|
+
export { TooltipContentProps as TooltipContentProps_alias_1 }
|
541
|
+
|
542
|
+
declare const TooltipRoot: DefineSetupFnComponent<TooltipRootProps & HTMLAttributes, TooltipRootEmits>;
|
185
543
|
export { TooltipRoot }
|
186
544
|
export { TooltipRoot as TooltipRoot_alias_1 }
|
187
545
|
|
188
|
-
|
546
|
+
/**
|
547
|
+
* Emits for the {@link TooltipRoot} component.
|
548
|
+
*/
|
549
|
+
declare interface TooltipRootEmits extends CreateEmits<TooltipRootEvents> {
|
550
|
+
}
|
551
|
+
export { TooltipRootEmits }
|
552
|
+
export { TooltipRootEmits as TooltipRootEmits_alias_1 }
|
553
|
+
|
554
|
+
/**
|
555
|
+
* Props for the {@link TooltipRoot} component.
|
556
|
+
*/
|
557
|
+
declare interface TooltipRootProps extends Partial<TooltipRootProps_2> {
|
558
|
+
}
|
559
|
+
export { TooltipRootProps }
|
560
|
+
export { TooltipRootProps as TooltipRootProps_alias_1 }
|
561
|
+
|
562
|
+
declare const TooltipTrigger: DefineSetupFnComponent<TooltipTriggerProps & HTMLAttributes, TooltipTriggerEmits>;
|
189
563
|
export { TooltipTrigger }
|
190
564
|
export { TooltipTrigger as TooltipTrigger_alias_1 }
|
191
565
|
|
566
|
+
/**
|
567
|
+
* Emits for the {@link TooltipTrigger} component.
|
568
|
+
*/
|
569
|
+
declare interface TooltipTriggerEmits extends CreateEmits<TooltipTriggerEvents> {
|
570
|
+
}
|
571
|
+
export { TooltipTriggerEmits }
|
572
|
+
export { TooltipTriggerEmits as TooltipTriggerEmits_alias_1 }
|
573
|
+
|
574
|
+
/**
|
575
|
+
* Props for the {@link TooltipTrigger} component.
|
576
|
+
*/
|
577
|
+
declare interface TooltipTriggerProps extends Partial<TooltipTriggerProps_2> {
|
578
|
+
}
|
579
|
+
export { TooltipTriggerProps }
|
580
|
+
export { TooltipTriggerProps as TooltipTriggerProps_alias_1 }
|
581
|
+
|
192
582
|
/**
|
193
583
|
* Calls the given handler whenever the editor document changes.
|
194
584
|
*
|
@@ -9,11 +9,10 @@ import {
|
|
9
9
|
onMounted,
|
10
10
|
ref
|
11
11
|
} from "vue";
|
12
|
-
function createComponent(tagName, displayName,
|
13
|
-
const
|
14
|
-
const hasEditor = Object.hasOwn(defaultProps, "editor");
|
12
|
+
function createComponent(tagName, displayName, propNames, eventNames) {
|
13
|
+
const hasEditor = propNames.includes("editor");
|
15
14
|
const Component = defineComponent(
|
16
|
-
(props, { slots }) => {
|
15
|
+
(props, { slots, emit }) => {
|
17
16
|
const editor = useEditorContext();
|
18
17
|
const mounted = ref(false);
|
19
18
|
onMounted(() => {
|
@@ -24,19 +23,29 @@ function createComponent(tagName, displayName, defaultProps) {
|
|
24
23
|
const properties = {};
|
25
24
|
for (const [key, value] of Object.entries(props)) {
|
26
25
|
if (value !== void 0 && !key.startsWith(".")) {
|
27
|
-
properties[
|
26
|
+
properties[propNames.includes(key) ? "." + key : key] = value;
|
28
27
|
}
|
29
28
|
}
|
30
29
|
if (hasEditor && editor && !properties["editor"]) {
|
31
30
|
properties.editor = editor;
|
32
31
|
}
|
32
|
+
for (const eventName of eventNames) {
|
33
|
+
const extractDetail = eventName.endsWith("Change");
|
34
|
+
properties["on" + eventName[0].toUpperCase() + eventName.slice(1)] = (event) => {
|
35
|
+
emit(
|
36
|
+
eventName,
|
37
|
+
extractDetail ? event.detail : event
|
38
|
+
);
|
39
|
+
};
|
40
|
+
}
|
33
41
|
properties.key = mounted.value ? 1 : 0;
|
34
42
|
return h(tagName, properties, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
35
43
|
};
|
36
44
|
},
|
37
45
|
{
|
38
46
|
name: displayName,
|
39
|
-
props:
|
47
|
+
props: propNames,
|
48
|
+
emits: eventNames
|
40
49
|
}
|
41
50
|
);
|
42
51
|
return Component;
|
@@ -1,4 +1,12 @@
|
|
1
1
|
export { AutocompleteEmpty_alias_1 as AutocompleteEmpty } from './_tsup-dts-rollup';
|
2
|
+
export { AutocompleteEmptyProps_alias_1 as AutocompleteEmptyProps } from './_tsup-dts-rollup';
|
3
|
+
export { AutocompleteEmptyEmits_alias_1 as AutocompleteEmptyEmits } from './_tsup-dts-rollup';
|
2
4
|
export { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup';
|
5
|
+
export { AutocompleteItemProps_alias_1 as AutocompleteItemProps } from './_tsup-dts-rollup';
|
6
|
+
export { AutocompleteItemEmits_alias_1 as AutocompleteItemEmits } from './_tsup-dts-rollup';
|
3
7
|
export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup';
|
8
|
+
export { AutocompleteListProps_alias_1 as AutocompleteListProps } from './_tsup-dts-rollup';
|
9
|
+
export { AutocompleteListEmits_alias_1 as AutocompleteListEmits } from './_tsup-dts-rollup';
|
4
10
|
export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup';
|
11
|
+
export { AutocompletePopoverProps_alias_1 as AutocompletePopoverProps } from './_tsup-dts-rollup';
|
12
|
+
export { AutocompletePopoverEmits_alias_1 as AutocompletePopoverEmits } from './_tsup-dts-rollup';
|
@@ -1,23 +1,55 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-742J24VD.js";
|
4
4
|
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/autocomplete/autocomplete-empty.gen.ts
|
7
|
-
import {
|
8
|
-
|
7
|
+
import {
|
8
|
+
autocompleteEmptyProps,
|
9
|
+
autocompleteEmptyEvents
|
10
|
+
} from "@prosekit/web/autocomplete";
|
11
|
+
var AutocompleteEmpty = createComponent(
|
12
|
+
"prosekit-autocomplete-empty",
|
13
|
+
"AutocompleteEmpty",
|
14
|
+
Object.keys(autocompleteEmptyProps),
|
15
|
+
Object.keys(autocompleteEmptyEvents)
|
16
|
+
);
|
9
17
|
|
10
18
|
// src/components/autocomplete/autocomplete-item.gen.ts
|
11
|
-
import {
|
12
|
-
|
19
|
+
import {
|
20
|
+
autocompleteItemProps,
|
21
|
+
autocompleteItemEvents
|
22
|
+
} from "@prosekit/web/autocomplete";
|
23
|
+
var AutocompleteItem = createComponent(
|
24
|
+
"prosekit-autocomplete-item",
|
25
|
+
"AutocompleteItem",
|
26
|
+
Object.keys(autocompleteItemProps),
|
27
|
+
Object.keys(autocompleteItemEvents)
|
28
|
+
);
|
13
29
|
|
14
30
|
// src/components/autocomplete/autocomplete-list.gen.ts
|
15
|
-
import {
|
16
|
-
|
31
|
+
import {
|
32
|
+
autocompleteListProps,
|
33
|
+
autocompleteListEvents
|
34
|
+
} from "@prosekit/web/autocomplete";
|
35
|
+
var AutocompleteList = createComponent(
|
36
|
+
"prosekit-autocomplete-list",
|
37
|
+
"AutocompleteList",
|
38
|
+
Object.keys(autocompleteListProps),
|
39
|
+
Object.keys(autocompleteListEvents)
|
40
|
+
);
|
17
41
|
|
18
42
|
// src/components/autocomplete/autocomplete-popover.gen.ts
|
19
|
-
import {
|
20
|
-
|
43
|
+
import {
|
44
|
+
autocompletePopoverProps,
|
45
|
+
autocompletePopoverEvents
|
46
|
+
} from "@prosekit/web/autocomplete";
|
47
|
+
var AutocompletePopover = createComponent(
|
48
|
+
"prosekit-autocomplete-popover",
|
49
|
+
"AutocompletePopover",
|
50
|
+
Object.keys(autocompletePopoverProps),
|
51
|
+
Object.keys(autocompletePopoverEvents)
|
52
|
+
);
|
21
53
|
export {
|
22
54
|
AutocompleteEmpty,
|
23
55
|
AutocompleteItem,
|
@@ -1,5 +1,9 @@
|
|
1
|
-
export { BlockDragHandle_alias_1 as BlockDragHandle } from './_tsup-dts-rollup';
|
2
1
|
export { BlockHandleAdd_alias_1 as BlockHandleAdd } from './_tsup-dts-rollup';
|
2
|
+
export { BlockHandleAddProps_alias_1 as BlockHandleAddProps } from './_tsup-dts-rollup';
|
3
|
+
export { BlockHandleAddEmits_alias_1 as BlockHandleAddEmits } from './_tsup-dts-rollup';
|
3
4
|
export { BlockHandleDraggable_alias_1 as BlockHandleDraggable } from './_tsup-dts-rollup';
|
5
|
+
export { BlockHandleDraggableProps_alias_1 as BlockHandleDraggableProps } from './_tsup-dts-rollup';
|
6
|
+
export { BlockHandleDraggableEmits_alias_1 as BlockHandleDraggableEmits } from './_tsup-dts-rollup';
|
4
7
|
export { BlockHandlePopover_alias_1 as BlockHandlePopover } from './_tsup-dts-rollup';
|
5
|
-
export {
|
8
|
+
export { BlockHandlePopoverProps_alias_1 as BlockHandlePopoverProps } from './_tsup-dts-rollup';
|
9
|
+
export { BlockHandlePopoverEmits_alias_1 as BlockHandlePopoverEmits } from './_tsup-dts-rollup';
|
@@ -1,31 +1,45 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-742J24VD.js";
|
4
4
|
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
|
-
// src/components/block-handle/block-drag-handle.gen.ts
|
7
|
-
import { defaultBlockDragHandleProps } from "@prosekit/web/block-handle";
|
8
|
-
var BlockDragHandle = createComponent("prosekit-block-drag-handle", "BlockDragHandle", defaultBlockDragHandleProps);
|
9
|
-
|
10
6
|
// src/components/block-handle/block-handle-add.gen.ts
|
11
|
-
import {
|
12
|
-
|
7
|
+
import {
|
8
|
+
blockHandleAddProps,
|
9
|
+
blockHandleAddEvents
|
10
|
+
} from "@prosekit/web/block-handle";
|
11
|
+
var BlockHandleAdd = createComponent(
|
12
|
+
"prosekit-block-handle-add",
|
13
|
+
"BlockHandleAdd",
|
14
|
+
Object.keys(blockHandleAddProps),
|
15
|
+
Object.keys(blockHandleAddEvents)
|
16
|
+
);
|
13
17
|
|
14
18
|
// src/components/block-handle/block-handle-draggable.gen.ts
|
15
|
-
import {
|
16
|
-
|
19
|
+
import {
|
20
|
+
blockHandleDraggableProps,
|
21
|
+
blockHandleDraggableEvents
|
22
|
+
} from "@prosekit/web/block-handle";
|
23
|
+
var BlockHandleDraggable = createComponent(
|
24
|
+
"prosekit-block-handle-draggable",
|
25
|
+
"BlockHandleDraggable",
|
26
|
+
Object.keys(blockHandleDraggableProps),
|
27
|
+
Object.keys(blockHandleDraggableEvents)
|
28
|
+
);
|
17
29
|
|
18
30
|
// src/components/block-handle/block-handle-popover.gen.ts
|
19
|
-
import {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
31
|
+
import {
|
32
|
+
blockHandlePopoverProps,
|
33
|
+
blockHandlePopoverEvents
|
34
|
+
} from "@prosekit/web/block-handle";
|
35
|
+
var BlockHandlePopover = createComponent(
|
36
|
+
"prosekit-block-handle-popover",
|
37
|
+
"BlockHandlePopover",
|
38
|
+
Object.keys(blockHandlePopoverProps),
|
39
|
+
Object.keys(blockHandlePopoverEvents)
|
40
|
+
);
|
25
41
|
export {
|
26
|
-
BlockDragHandle,
|
27
42
|
BlockHandleAdd,
|
28
43
|
BlockHandleDraggable,
|
29
|
-
BlockHandlePopover
|
30
|
-
BlockPopover
|
44
|
+
BlockHandlePopover
|
31
45
|
};
|
@@ -1,11 +1,19 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-742J24VD.js";
|
4
4
|
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/inline-popover/inline-popover.gen.ts
|
7
|
-
import {
|
8
|
-
|
7
|
+
import {
|
8
|
+
inlinePopoverProps,
|
9
|
+
inlinePopoverEvents
|
10
|
+
} from "@prosekit/web/inline-popover";
|
11
|
+
var InlinePopover = createComponent(
|
12
|
+
"prosekit-inline-popover",
|
13
|
+
"InlinePopover",
|
14
|
+
Object.keys(inlinePopoverProps),
|
15
|
+
Object.keys(inlinePopoverEvents)
|
16
|
+
);
|
9
17
|
export {
|
10
18
|
InlinePopover
|
11
19
|
};
|
@@ -1,3 +1,9 @@
|
|
1
1
|
export { PopoverContent } from './_tsup-dts-rollup';
|
2
|
+
export { PopoverContentProps } from './_tsup-dts-rollup';
|
3
|
+
export { PopoverContentEmits } from './_tsup-dts-rollup';
|
2
4
|
export { PopoverRoot } from './_tsup-dts-rollup';
|
5
|
+
export { PopoverRootProps } from './_tsup-dts-rollup';
|
6
|
+
export { PopoverRootEmits } from './_tsup-dts-rollup';
|
3
7
|
export { PopoverTrigger } from './_tsup-dts-rollup';
|
8
|
+
export { PopoverTriggerProps } from './_tsup-dts-rollup';
|
9
|
+
export { PopoverTriggerEmits } from './_tsup-dts-rollup';
|
@@ -1,19 +1,43 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-742J24VD.js";
|
4
4
|
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/popover/popover-content.gen.ts
|
7
|
-
import {
|
8
|
-
|
7
|
+
import {
|
8
|
+
popoverContentProps,
|
9
|
+
popoverContentEvents
|
10
|
+
} from "@prosekit/web/popover";
|
11
|
+
var PopoverContent = createComponent(
|
12
|
+
"prosekit-popover-content",
|
13
|
+
"PopoverContent",
|
14
|
+
Object.keys(popoverContentProps),
|
15
|
+
Object.keys(popoverContentEvents)
|
16
|
+
);
|
9
17
|
|
10
18
|
// src/components/popover/popover-root.gen.ts
|
11
|
-
import {
|
12
|
-
|
19
|
+
import {
|
20
|
+
popoverRootProps,
|
21
|
+
popoverRootEvents
|
22
|
+
} from "@prosekit/web/popover";
|
23
|
+
var PopoverRoot = createComponent(
|
24
|
+
"prosekit-popover-root",
|
25
|
+
"PopoverRoot",
|
26
|
+
Object.keys(popoverRootProps),
|
27
|
+
Object.keys(popoverRootEvents)
|
28
|
+
);
|
13
29
|
|
14
30
|
// src/components/popover/popover-trigger.gen.ts
|
15
|
-
import {
|
16
|
-
|
31
|
+
import {
|
32
|
+
popoverTriggerProps,
|
33
|
+
popoverTriggerEvents
|
34
|
+
} from "@prosekit/web/popover";
|
35
|
+
var PopoverTrigger = createComponent(
|
36
|
+
"prosekit-popover-trigger",
|
37
|
+
"PopoverTrigger",
|
38
|
+
Object.keys(popoverTriggerProps),
|
39
|
+
Object.keys(popoverTriggerEvents)
|
40
|
+
);
|
17
41
|
export {
|
18
42
|
PopoverContent,
|
19
43
|
PopoverRoot,
|
@@ -1,2 +1,6 @@
|
|
1
1
|
export { ResizableHandle } from './_tsup-dts-rollup';
|
2
|
+
export { ResizableHandleProps } from './_tsup-dts-rollup';
|
3
|
+
export { ResizableHandleEmits } from './_tsup-dts-rollup';
|
2
4
|
export { ResizableRoot } from './_tsup-dts-rollup';
|
5
|
+
export { ResizableRootProps } from './_tsup-dts-rollup';
|
6
|
+
export { ResizableRootEmits } from './_tsup-dts-rollup';
|
@@ -1,15 +1,31 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-742J24VD.js";
|
4
4
|
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/resizable/resizable-handle.gen.ts
|
7
|
-
import {
|
8
|
-
|
7
|
+
import {
|
8
|
+
resizableHandleProps,
|
9
|
+
resizableHandleEvents
|
10
|
+
} from "@prosekit/web/resizable";
|
11
|
+
var ResizableHandle = createComponent(
|
12
|
+
"prosekit-resizable-handle",
|
13
|
+
"ResizableHandle",
|
14
|
+
Object.keys(resizableHandleProps),
|
15
|
+
Object.keys(resizableHandleEvents)
|
16
|
+
);
|
9
17
|
|
10
18
|
// src/components/resizable/resizable-root.gen.ts
|
11
|
-
import {
|
12
|
-
|
19
|
+
import {
|
20
|
+
resizableRootProps,
|
21
|
+
resizableRootEvents
|
22
|
+
} from "@prosekit/web/resizable";
|
23
|
+
var ResizableRoot = createComponent(
|
24
|
+
"prosekit-resizable-root",
|
25
|
+
"ResizableRoot",
|
26
|
+
Object.keys(resizableRootProps),
|
27
|
+
Object.keys(resizableRootEvents)
|
28
|
+
);
|
13
29
|
export {
|
14
30
|
ResizableHandle,
|
15
31
|
ResizableRoot
|
@@ -1,7 +1,21 @@
|
|
1
1
|
export { TableHandleColumnRoot } from './_tsup-dts-rollup';
|
2
|
+
export { TableHandleColumnRootProps } from './_tsup-dts-rollup';
|
3
|
+
export { TableHandleColumnRootEmits } from './_tsup-dts-rollup';
|
2
4
|
export { TableHandleColumnTrigger } from './_tsup-dts-rollup';
|
5
|
+
export { TableHandleColumnTriggerProps } from './_tsup-dts-rollup';
|
6
|
+
export { TableHandleColumnTriggerEmits } from './_tsup-dts-rollup';
|
3
7
|
export { TableHandlePopoverContent } from './_tsup-dts-rollup';
|
8
|
+
export { TableHandlePopoverContentProps } from './_tsup-dts-rollup';
|
9
|
+
export { TableHandlePopoverContentEmits } from './_tsup-dts-rollup';
|
4
10
|
export { TableHandlePopoverItem } from './_tsup-dts-rollup';
|
11
|
+
export { TableHandlePopoverItemProps } from './_tsup-dts-rollup';
|
12
|
+
export { TableHandlePopoverItemEmits } from './_tsup-dts-rollup';
|
5
13
|
export { TableHandleRoot } from './_tsup-dts-rollup';
|
14
|
+
export { TableHandleRootProps } from './_tsup-dts-rollup';
|
15
|
+
export { TableHandleRootEmits } from './_tsup-dts-rollup';
|
6
16
|
export { TableHandleRowRoot } from './_tsup-dts-rollup';
|
17
|
+
export { TableHandleRowRootProps } from './_tsup-dts-rollup';
|
18
|
+
export { TableHandleRowRootEmits } from './_tsup-dts-rollup';
|
7
19
|
export { TableHandleRowTrigger } from './_tsup-dts-rollup';
|
20
|
+
export { TableHandleRowTriggerProps } from './_tsup-dts-rollup';
|
21
|
+
export { TableHandleRowTriggerEmits } from './_tsup-dts-rollup';
|
@@ -1,35 +1,91 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-742J24VD.js";
|
4
4
|
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/table-handle/table-handle-column-root.gen.ts
|
7
|
-
import {
|
8
|
-
|
7
|
+
import {
|
8
|
+
tableHandleColumnRootProps,
|
9
|
+
tableHandleColumnRootEvents
|
10
|
+
} from "@prosekit/web/table-handle";
|
11
|
+
var TableHandleColumnRoot = createComponent(
|
12
|
+
"prosekit-table-handle-column-root",
|
13
|
+
"TableHandleColumnRoot",
|
14
|
+
Object.keys(tableHandleColumnRootProps),
|
15
|
+
Object.keys(tableHandleColumnRootEvents)
|
16
|
+
);
|
9
17
|
|
10
18
|
// src/components/table-handle/table-handle-column-trigger.gen.ts
|
11
|
-
import {
|
12
|
-
|
19
|
+
import {
|
20
|
+
tableHandleColumnTriggerProps,
|
21
|
+
tableHandleColumnTriggerEvents
|
22
|
+
} from "@prosekit/web/table-handle";
|
23
|
+
var TableHandleColumnTrigger = createComponent(
|
24
|
+
"prosekit-table-handle-column-trigger",
|
25
|
+
"TableHandleColumnTrigger",
|
26
|
+
Object.keys(tableHandleColumnTriggerProps),
|
27
|
+
Object.keys(tableHandleColumnTriggerEvents)
|
28
|
+
);
|
13
29
|
|
14
30
|
// src/components/table-handle/table-handle-popover-content.gen.ts
|
15
|
-
import {
|
16
|
-
|
31
|
+
import {
|
32
|
+
tableHandlePopoverContentProps,
|
33
|
+
tableHandlePopoverContentEvents
|
34
|
+
} from "@prosekit/web/table-handle";
|
35
|
+
var TableHandlePopoverContent = createComponent(
|
36
|
+
"prosekit-table-handle-popover-content",
|
37
|
+
"TableHandlePopoverContent",
|
38
|
+
Object.keys(tableHandlePopoverContentProps),
|
39
|
+
Object.keys(tableHandlePopoverContentEvents)
|
40
|
+
);
|
17
41
|
|
18
42
|
// src/components/table-handle/table-handle-popover-item.gen.ts
|
19
|
-
import {
|
20
|
-
|
43
|
+
import {
|
44
|
+
tableHandlePopoverItemProps,
|
45
|
+
tableHandlePopoverItemEvents
|
46
|
+
} from "@prosekit/web/table-handle";
|
47
|
+
var TableHandlePopoverItem = createComponent(
|
48
|
+
"prosekit-table-handle-popover-item",
|
49
|
+
"TableHandlePopoverItem",
|
50
|
+
Object.keys(tableHandlePopoverItemProps),
|
51
|
+
Object.keys(tableHandlePopoverItemEvents)
|
52
|
+
);
|
21
53
|
|
22
54
|
// src/components/table-handle/table-handle-root.gen.ts
|
23
|
-
import {
|
24
|
-
|
55
|
+
import {
|
56
|
+
tableHandleRootProps,
|
57
|
+
tableHandleRootEvents
|
58
|
+
} from "@prosekit/web/table-handle";
|
59
|
+
var TableHandleRoot = createComponent(
|
60
|
+
"prosekit-table-handle-root",
|
61
|
+
"TableHandleRoot",
|
62
|
+
Object.keys(tableHandleRootProps),
|
63
|
+
Object.keys(tableHandleRootEvents)
|
64
|
+
);
|
25
65
|
|
26
66
|
// src/components/table-handle/table-handle-row-root.gen.ts
|
27
|
-
import {
|
28
|
-
|
67
|
+
import {
|
68
|
+
tableHandleRowRootProps,
|
69
|
+
tableHandleRowRootEvents
|
70
|
+
} from "@prosekit/web/table-handle";
|
71
|
+
var TableHandleRowRoot = createComponent(
|
72
|
+
"prosekit-table-handle-row-root",
|
73
|
+
"TableHandleRowRoot",
|
74
|
+
Object.keys(tableHandleRowRootProps),
|
75
|
+
Object.keys(tableHandleRowRootEvents)
|
76
|
+
);
|
29
77
|
|
30
78
|
// src/components/table-handle/table-handle-row-trigger.gen.ts
|
31
|
-
import {
|
32
|
-
|
79
|
+
import {
|
80
|
+
tableHandleRowTriggerProps,
|
81
|
+
tableHandleRowTriggerEvents
|
82
|
+
} from "@prosekit/web/table-handle";
|
83
|
+
var TableHandleRowTrigger = createComponent(
|
84
|
+
"prosekit-table-handle-row-trigger",
|
85
|
+
"TableHandleRowTrigger",
|
86
|
+
Object.keys(tableHandleRowTriggerProps),
|
87
|
+
Object.keys(tableHandleRowTriggerEvents)
|
88
|
+
);
|
33
89
|
export {
|
34
90
|
TableHandleColumnRoot,
|
35
91
|
TableHandleColumnTrigger,
|
@@ -1,3 +1,9 @@
|
|
1
1
|
export { TooltipContent } from './_tsup-dts-rollup';
|
2
|
+
export { TooltipContentProps } from './_tsup-dts-rollup';
|
3
|
+
export { TooltipContentEmits } from './_tsup-dts-rollup';
|
2
4
|
export { TooltipRoot } from './_tsup-dts-rollup';
|
5
|
+
export { TooltipRootProps } from './_tsup-dts-rollup';
|
6
|
+
export { TooltipRootEmits } from './_tsup-dts-rollup';
|
3
7
|
export { TooltipTrigger } from './_tsup-dts-rollup';
|
8
|
+
export { TooltipTriggerProps } from './_tsup-dts-rollup';
|
9
|
+
export { TooltipTriggerEmits } from './_tsup-dts-rollup';
|
@@ -1,19 +1,43 @@
|
|
1
1
|
import {
|
2
2
|
createComponent
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-742J24VD.js";
|
4
4
|
import "./chunk-YWS6VK6K.js";
|
5
5
|
|
6
6
|
// src/components/tooltip/tooltip-content.gen.ts
|
7
|
-
import {
|
8
|
-
|
7
|
+
import {
|
8
|
+
tooltipContentProps,
|
9
|
+
tooltipContentEvents
|
10
|
+
} from "@prosekit/web/tooltip";
|
11
|
+
var TooltipContent = createComponent(
|
12
|
+
"prosekit-tooltip-content",
|
13
|
+
"TooltipContent",
|
14
|
+
Object.keys(tooltipContentProps),
|
15
|
+
Object.keys(tooltipContentEvents)
|
16
|
+
);
|
9
17
|
|
10
18
|
// src/components/tooltip/tooltip-root.gen.ts
|
11
|
-
import {
|
12
|
-
|
19
|
+
import {
|
20
|
+
tooltipRootProps,
|
21
|
+
tooltipRootEvents
|
22
|
+
} from "@prosekit/web/tooltip";
|
23
|
+
var TooltipRoot = createComponent(
|
24
|
+
"prosekit-tooltip-root",
|
25
|
+
"TooltipRoot",
|
26
|
+
Object.keys(tooltipRootProps),
|
27
|
+
Object.keys(tooltipRootEvents)
|
28
|
+
);
|
13
29
|
|
14
30
|
// src/components/tooltip/tooltip-trigger.gen.ts
|
15
|
-
import {
|
16
|
-
|
31
|
+
import {
|
32
|
+
tooltipTriggerProps,
|
33
|
+
tooltipTriggerEvents
|
34
|
+
} from "@prosekit/web/tooltip";
|
35
|
+
var TooltipTrigger = createComponent(
|
36
|
+
"prosekit-tooltip-trigger",
|
37
|
+
"TooltipTrigger",
|
38
|
+
Object.keys(tooltipTriggerProps),
|
39
|
+
Object.keys(tooltipTriggerEvents)
|
40
|
+
);
|
17
41
|
export {
|
18
42
|
TooltipContent,
|
19
43
|
TooltipRoot,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/vue",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.4.1",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -71,9 +71,9 @@
|
|
71
71
|
],
|
72
72
|
"dependencies": {
|
73
73
|
"@prosemirror-adapter/vue": "^0.2.6",
|
74
|
-
"@prosekit/core": "^0.7.
|
75
|
-
"@prosekit/
|
76
|
-
"@prosekit/
|
74
|
+
"@prosekit/core": "^0.7.12",
|
75
|
+
"@prosekit/web": "^0.4.1",
|
76
|
+
"@prosekit/pm": "^0.1.8"
|
77
77
|
},
|
78
78
|
"peerDependencies": {
|
79
79
|
"vue": ">= 3.0.0"
|
@@ -86,9 +86,9 @@
|
|
86
86
|
"devDependencies": {
|
87
87
|
"@vue/test-utils": "^2.4.6",
|
88
88
|
"tsup": "^8.3.0",
|
89
|
-
"typescript": "^5.6.
|
90
|
-
"vitest": "^2.1.
|
91
|
-
"vue": "^3.5.
|
89
|
+
"typescript": "^5.6.3",
|
90
|
+
"vitest": "^2.1.3",
|
91
|
+
"vue": "^3.5.12",
|
92
92
|
"@prosekit/dev": "0.0.0"
|
93
93
|
},
|
94
94
|
"scripts": {
|