@prosekit/vue 0.2.6 → 0.3.0

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.
Files changed (39) hide show
  1. package/dist/_tsup-dts-rollup.d.ts +89 -106
  2. package/dist/chunk-64DHEPDA.js +37 -0
  3. package/dist/chunk-X5DTEZPX.js +15 -0
  4. package/dist/prosekit-vue-autocomplete.d.ts +4 -0
  5. package/dist/prosekit-vue-autocomplete.js +26 -0
  6. package/dist/prosekit-vue-block-handle.d.ts +2 -0
  7. package/dist/prosekit-vue-block-handle.js +16 -0
  8. package/dist/prosekit-vue-inline-popover.d.ts +1 -3
  9. package/dist/prosekit-vue-inline-popover.js +8 -16
  10. package/dist/prosekit-vue-popover.d.ts +3 -2
  11. package/dist/prosekit-vue-popover.js +19 -17
  12. package/dist/prosekit-vue-resizable.d.ts +2 -2
  13. package/dist/prosekit-vue-resizable.js +14 -17
  14. package/dist/prosekit-vue-tooltip.d.ts +3 -0
  15. package/dist/prosekit-vue-tooltip.js +21 -0
  16. package/dist/prosekit-vue.js +9 -15
  17. package/package.json +25 -88
  18. package/dist/prosekit-vue-autocomplete-empty.d.ts +0 -2
  19. package/dist/prosekit-vue-autocomplete-empty.js +0 -19
  20. package/dist/prosekit-vue-autocomplete-item.d.ts +0 -2
  21. package/dist/prosekit-vue-autocomplete-item.js +0 -19
  22. package/dist/prosekit-vue-autocomplete-list.d.ts +0 -2
  23. package/dist/prosekit-vue-autocomplete-list.js +0 -19
  24. package/dist/prosekit-vue-autocomplete-popover.d.ts +0 -3
  25. package/dist/prosekit-vue-autocomplete-popover.js +0 -19
  26. package/dist/prosekit-vue-block-popover.d.ts +0 -2
  27. package/dist/prosekit-vue-block-popover.js +0 -19
  28. package/dist/prosekit-vue-combo-box-input.d.ts +0 -2
  29. package/dist/prosekit-vue-combo-box-input.js +0 -19
  30. package/dist/prosekit-vue-combo-box-item.d.ts +0 -2
  31. package/dist/prosekit-vue-combo-box-item.js +0 -19
  32. package/dist/prosekit-vue-combo-box-list.d.ts +0 -2
  33. package/dist/prosekit-vue-combo-box-list.js +0 -19
  34. package/dist/prosekit-vue-combo-box.d.ts +0 -2
  35. package/dist/prosekit-vue-combo-box.js +0 -19
  36. package/dist/prosekit-vue-drag-handle.d.ts +0 -2
  37. package/dist/prosekit-vue-drag-handle.js +0 -19
  38. package/dist/prosekit-vue-resizable-handle.d.ts +0 -2
  39. package/dist/prosekit-vue-resizable-handle.js +0 -19
@@ -1,14 +1,11 @@
1
1
  import type { Attrs } from '@prosekit/pm/model';
2
- import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/lit/autocomplete-empty';
3
- import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/autocomplete-item';
4
- import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/autocomplete-list';
5
- import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/autocomplete-popover';
2
+ import { AutocompleteEmptyProps } from '@prosekit/web/autocomplete';
3
+ import { AutocompleteItemProps } from '@prosekit/web/autocomplete';
4
+ import { AutocompleteListProps } from '@prosekit/web/autocomplete';
5
+ import { AutocompletePopoverProps } from '@prosekit/web/autocomplete';
6
6
  import { BaseNodeViewOptions } from '@prosekit/core';
7
- import { BlockPopoverProps as BlockPopoverProps_2 } from '@prosekit/lit/block-popover';
8
- import { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/combo-box-input';
9
- import { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/combo-box-item';
10
- import { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/combo-box-list';
11
- import { ComboBoxProps as ComboBoxProps_2 } from '@prosekit/lit/combo-box';
7
+ import { BlockDragHandleProps } from '@prosekit/web/block-handle';
8
+ import { BlockPopoverProps } from '@prosekit/web/block-handle';
12
9
  import { CommandArgs } from '@prosekit/core';
13
10
  import { ComponentOptionsMixin } from 'vue';
14
11
  import { ComputedRef } from 'vue';
@@ -18,7 +15,7 @@ import type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core';
18
15
  import type { Decoration } from '@prosekit/pm/view';
19
16
  import type { DecorationSource } from '@prosekit/pm/view';
20
17
  import { DefineComponent } from 'vue';
21
- import { DragHandleProps as DragHandleProps_2 } from '@prosekit/lit/drag-handle';
18
+ import { DefineSetupFnComponent } from 'vue';
22
19
  import { Editor } from '@prosekit/core';
23
20
  import type { EditorState } from '@prosekit/pm/state';
24
21
  import type { EditorView } from '@prosekit/pm/view';
@@ -26,96 +23,69 @@ import { Extension } from '@prosekit/core';
26
23
  import { ExtensionTyping } from '@prosekit/core';
27
24
  import { ExtractPropTypes } from 'vue';
28
25
  import type { InjectionKey } from 'vue';
29
- import { InlinePopoverProps as InlinePopoverProps_2 } from '@prosekit/lit/inline-popover';
26
+ import { InlinePopoverProps } from '@prosekit/web/inline-popover';
30
27
  import { Keymap } from '@prosekit/core';
31
28
  import { MaybeRefOrGetter } from 'vue';
32
29
  import type { Node as Node_2 } from '@prosekit/pm/model';
33
30
  import type { NodeViewConstructor } from '@prosekit/pm/view';
34
31
  import { Options } from 'tsup';
35
- import { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
36
- import { PositioningOptions } from '@prosekit/lit/autocomplete-popover';
37
- import { PositioningOptions as PositioningOptions_alias_1 } from '@prosekit/lit/inline-popover';
32
+ import { PopoverContentProps } from '@prosekit/web/popover';
33
+ import { PopoverRootProps } from '@prosekit/web/popover';
34
+ import { PopoverTriggerProps } from '@prosekit/web/popover';
38
35
  import { Priority } from '@prosekit/core';
39
36
  import type { ProseMirrorNode } from '@prosekit/pm/model';
40
37
  import { PublicProps } from 'vue';
41
38
  import type { Ref } from 'vue';
42
39
  import { RendererElement } from 'vue';
43
40
  import { RendererNode } from 'vue';
44
- import { ResizableHandleProps as ResizableHandleProps_2 } from '@prosekit/lit/resizable-handle';
45
- import { ResizableProps as ResizableProps_2 } from '@prosekit/lit/resizable';
41
+ import { ResizableHandleProps } from '@prosekit/web/resizable';
42
+ import { ResizableRootProps } from '@prosekit/web/resizable';
46
43
  import { ShallowRef } from 'vue';
44
+ import { TooltipContentProps } from '@prosekit/web/tooltip';
45
+ import { TooltipRootProps } from '@prosekit/web/tooltip';
46
+ import { TooltipTriggerProps } from '@prosekit/web/tooltip';
47
47
  import { VNode } from 'vue';
48
48
  import type { VNodeRef } from 'vue';
49
49
 
50
- declare const AutocompleteEmpty: (props: AutocompleteEmptyProps_2 & {
51
- class?: string | undefined;
52
- } & {}) => any;
50
+ declare const AutocompleteEmpty: DefineSetupFnComponent<Partial<AutocompleteEmptyProps> & {
51
+ class?: string | undefined;
52
+ }>;
53
53
  export { AutocompleteEmpty }
54
54
  export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
55
55
 
56
- declare type AutocompleteEmptyProps = PropsWithClass<AutocompleteEmptyProps_2>;
57
- export { AutocompleteEmptyProps }
58
- export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
59
-
60
- declare const AutocompleteItem: (props: AutocompleteItemProps_2 & {
61
- class?: string | undefined;
62
- } & {}) => any;
56
+ declare const AutocompleteItem: DefineSetupFnComponent<Partial<AutocompleteItemProps> & {
57
+ class?: string | undefined;
58
+ }>;
63
59
  export { AutocompleteItem }
64
60
  export { AutocompleteItem as AutocompleteItem_alias_1 }
65
61
 
66
- declare type AutocompleteItemProps = PropsWithClass<AutocompleteItemProps_2>;
67
- export { AutocompleteItemProps }
68
- export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
69
-
70
- declare const AutocompleteList: (props: AutocompleteListProps_2 & {
71
- class?: string | undefined;
72
- } & {}) => any;
62
+ declare const AutocompleteList: DefineSetupFnComponent<Partial<AutocompleteListProps> & {
63
+ class?: string | undefined;
64
+ }>;
73
65
  export { AutocompleteList }
74
66
  export { AutocompleteList as AutocompleteList_alias_1 }
75
67
 
76
- declare type AutocompleteListProps = PropsWithClass<AutocompleteListProps_2>;
77
- export { AutocompleteListProps }
78
- export { AutocompleteListProps as AutocompleteListProps_alias_1 }
79
-
80
- declare const AutocompletePopover: (props: AutocompletePopoverProps_2 & {
81
- class?: string | undefined;
82
- } & {}) => any;
68
+ declare const AutocompletePopover: DefineSetupFnComponent<Partial<AutocompletePopoverProps> & {
69
+ class?: string | undefined;
70
+ }>;
83
71
  export { AutocompletePopover }
84
72
  export { AutocompletePopover as AutocompletePopover_alias_1 }
85
73
 
86
- declare type AutocompletePopoverProps = PropsWithClass<AutocompletePopoverProps_2>;
87
- export { AutocompletePopoverProps }
88
- export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
89
-
90
- export declare const BlockPopover: (props: BlockPopoverProps_2 & {
91
- class?: string | undefined;
92
- } & {}) => any;
93
-
94
- export declare type BlockPopoverProps = PropsWithClass<BlockPopoverProps_2>;
95
-
96
- export declare const ComboBox: (props: ComboBoxProps_2 & {
97
- class?: string | undefined;
98
- } & {}) => any;
99
-
100
- export declare const ComboBoxInput: (props: ComboBoxInputProps_2 & {
101
- class?: string | undefined;
102
- } & {}) => any;
103
-
104
- export declare type ComboBoxInputProps = PropsWithClass<ComboBoxInputProps_2>;
105
-
106
- export declare const ComboBoxItem: (props: ComboBoxItemProps_2 & {
107
- class?: string | undefined;
108
- } & {}) => any;
109
-
110
- export declare type ComboBoxItemProps = PropsWithClass<ComboBoxItemProps_2>;
111
-
112
- export declare const ComboBoxList: (props: ComboBoxListProps_2 & {
113
- class?: string | undefined;
114
- } & {}) => any;
74
+ declare const BlockDragHandle: DefineSetupFnComponent<Partial<BlockDragHandleProps> & {
75
+ class?: string | undefined;
76
+ }>;
77
+ export { BlockDragHandle }
78
+ export { BlockDragHandle as BlockDragHandle_alias_1 }
115
79
 
116
- export declare type ComboBoxListProps = PropsWithClass<ComboBoxListProps_2>;
80
+ declare const BlockPopover: DefineSetupFnComponent<Partial<BlockPopoverProps> & {
81
+ class?: string | undefined;
82
+ }>;
83
+ export { BlockPopover }
84
+ export { BlockPopover as BlockPopover_alias_1 }
117
85
 
118
- export declare type ComboBoxProps = PropsWithClass<ComboBoxProps_2>;
86
+ export declare function createComponent<Props extends object>(tagName: string, displayName: string, defaultProps: Props): DefineSetupFnComponent<Partial<Props> & {
87
+ class?: string;
88
+ }>;
119
89
 
120
90
  export declare type CreateVueNodeView = ReturnType<typeof useVueNodeViewCreator>;
121
91
 
@@ -141,38 +111,33 @@ export { defineVueNodeView as defineVueNodeView_alias_1 }
141
111
  */
142
112
  export declare function defineVueNodeViewFactory(nodeViewFactory: NodeViewFactory): Extension<ExtensionTyping<string, string, CommandArgs>>;
143
113
 
144
- export declare const DragHandle: (props: DragHandleProps_2 & {
145
- class?: string | undefined;
146
- } & {}) => any;
147
-
148
- export declare type DragHandleProps = PropsWithClass<DragHandleProps_2>;
149
-
150
- declare const InlinePopover: (props: {
151
- editor: Editor<any>;
152
- available?: boolean | undefined;
153
- } & PopoverProps_2 & {
154
- class?: string | undefined;
155
- } & {}) => any;
114
+ declare const InlinePopover: DefineSetupFnComponent<Partial<InlinePopoverProps> & {
115
+ class?: string | undefined;
116
+ }>;
156
117
  export { InlinePopover }
157
118
  export { InlinePopover as InlinePopover_alias_1 }
158
119
 
159
- declare type InlinePopoverProps = PropsWithClass<InlinePopoverProps_2>;
160
- export { InlinePopoverProps }
161
- export { InlinePopoverProps as InlinePopoverProps_alias_1 }
162
-
163
120
  export declare type NodeViewFactory = (options: VueNodeViewUserOptions) => NodeViewConstructor;
164
121
 
165
122
  export declare const nodeViewFactoryKey: InjectionKey<NodeViewFactory>;
166
123
 
167
- export declare const Popover: (props: PopoverProps_2 & {
168
- class?: string | undefined;
169
- } & {}) => any;
170
-
171
- export declare type PopoverProps = PropsWithClass<PopoverProps_2>;
124
+ declare const PopoverContent: DefineSetupFnComponent<Partial<PopoverContentProps> & {
125
+ class?: string | undefined;
126
+ }>;
127
+ export { PopoverContent }
128
+ export { PopoverContent as PopoverContent_alias_1 }
172
129
 
173
- export { PositioningOptions }
130
+ declare const PopoverRoot: DefineSetupFnComponent<Partial<PopoverRootProps> & {
131
+ class?: string | undefined;
132
+ }>;
133
+ export { PopoverRoot }
134
+ export { PopoverRoot as PopoverRoot_alias_1 }
174
135
 
175
- export { PositioningOptions_alias_1 }
136
+ declare const PopoverTrigger: DefineSetupFnComponent<Partial<PopoverTriggerProps> & {
137
+ class?: string | undefined;
138
+ }>;
139
+ export { PopoverTrigger }
140
+ export { PopoverTrigger as PopoverTrigger_alias_1 }
176
141
 
177
142
  /**
178
143
  * @internal
@@ -186,7 +151,7 @@ export declare type PropsWithClass<P = unknown> = P & {
186
151
  *
187
152
  * @public
188
153
  */
189
- declare const ProseKit: (props: ProseKitProps & {}) => any;
154
+ declare const ProseKit: DefineSetupFnComponent<ProseKitProps, {}, {}, ProseKitProps & {}, PublicProps>;
190
155
  export { ProseKit }
191
156
  export { ProseKit as ProseKit_alias_1 }
192
157
 
@@ -201,17 +166,35 @@ export { ProseKitProps as ProseKitProps_alias_1 }
201
166
  */
202
167
  export declare function provideEditor(editor: Editor): void;
203
168
 
204
- export declare const Resizable: (props: ResizableProps_2 & {
205
- class?: string | undefined;
206
- } & {}) => any;
207
-
208
- export declare const ResizableHandle: (props: ResizableHandleProps_2 & {
209
- class?: string | undefined;
210
- } & {}) => any;
211
-
212
- export declare type ResizableHandleProps = PropsWithClass<ResizableHandleProps_2>;
213
-
214
- export declare type ResizableProps = PropsWithClass<ResizableProps_2>;
169
+ declare const ResizableHandle: DefineSetupFnComponent<Partial<ResizableHandleProps> & {
170
+ class?: string | undefined;
171
+ }>;
172
+ export { ResizableHandle }
173
+ export { ResizableHandle as ResizableHandle_alias_1 }
174
+
175
+ declare const ResizableRoot: DefineSetupFnComponent<Partial<ResizableRootProps> & {
176
+ class?: string | undefined;
177
+ }>;
178
+ export { ResizableRoot }
179
+ export { ResizableRoot as ResizableRoot_alias_1 }
180
+
181
+ declare const TooltipContent: DefineSetupFnComponent<Partial<TooltipContentProps> & {
182
+ class?: string | undefined;
183
+ }>;
184
+ export { TooltipContent }
185
+ export { TooltipContent as TooltipContent_alias_1 }
186
+
187
+ declare const TooltipRoot: DefineSetupFnComponent<Partial<TooltipRootProps> & {
188
+ class?: string | undefined;
189
+ }>;
190
+ export { TooltipRoot }
191
+ export { TooltipRoot as TooltipRoot_alias_1 }
192
+
193
+ declare const TooltipTrigger: DefineSetupFnComponent<Partial<TooltipTriggerProps> & {
194
+ class?: string | undefined;
195
+ }>;
196
+ export { TooltipTrigger }
197
+ export { TooltipTrigger as TooltipTrigger_alias_1 }
215
198
 
216
199
  /**
217
200
  * Calls the given handler whenever the editor document changes.
@@ -0,0 +1,37 @@
1
+ import {
2
+ useEditorContext
3
+ } from "./chunk-X5DTEZPX.js";
4
+
5
+ // src/components/create-component.ts
6
+ import { defineComponent, h } from "vue";
7
+ function createComponent(tagName, displayName, defaultProps) {
8
+ const propertyNames = Object.keys(defaultProps);
9
+ const hasEditor = Object.hasOwn(defaultProps, "editor");
10
+ const Component = defineComponent(
11
+ (props, { slots }) => {
12
+ const editor = useEditorContext();
13
+ return () => {
14
+ var _a;
15
+ const p = {};
16
+ for (const [key, value] of Object.entries(props)) {
17
+ if (value !== void 0) {
18
+ p[propertyNames.includes(key) ? "." + key : key] = value;
19
+ }
20
+ }
21
+ if (hasEditor && editor && !p["editor"]) {
22
+ p.editor = editor;
23
+ }
24
+ return h(tagName, p, (_a = slots.default) == null ? void 0 : _a.call(slots));
25
+ };
26
+ },
27
+ {
28
+ props: propertyNames,
29
+ name: displayName
30
+ }
31
+ );
32
+ return Component;
33
+ }
34
+
35
+ export {
36
+ createComponent
37
+ };
@@ -0,0 +1,15 @@
1
+ // src/injection/editor-context.ts
2
+ import "@prosekit/core";
3
+ import { inject, provide } from "vue";
4
+ var symbol = Symbol("prosekit-vue-editor-context");
5
+ function provideEditor(editor) {
6
+ provide(symbol, editor);
7
+ }
8
+ function useEditorContext() {
9
+ return inject(symbol);
10
+ }
11
+
12
+ export {
13
+ provideEditor,
14
+ useEditorContext
15
+ };
@@ -0,0 +1,4 @@
1
+ export { AutocompleteEmpty_alias_1 as AutocompleteEmpty } from './_tsup-dts-rollup';
2
+ export { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup';
3
+ export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup';
4
+ export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup';
@@ -0,0 +1,26 @@
1
+ import {
2
+ createComponent
3
+ } from "./chunk-64DHEPDA.js";
4
+ import "./chunk-X5DTEZPX.js";
5
+
6
+ // src/components/autocomplete/autocomplete-empty.gen.ts
7
+ import { defaultAutocompleteEmptyProps } from "@prosekit/web/autocomplete";
8
+ var AutocompleteEmpty = createComponent("prosekit-autocomplete-empty", "AutocompleteEmpty", defaultAutocompleteEmptyProps);
9
+
10
+ // src/components/autocomplete/autocomplete-item.gen.ts
11
+ import { defaultAutocompleteItemProps } from "@prosekit/web/autocomplete";
12
+ var AutocompleteItem = createComponent("prosekit-autocomplete-item", "AutocompleteItem", defaultAutocompleteItemProps);
13
+
14
+ // src/components/autocomplete/autocomplete-list.gen.ts
15
+ import { defaultAutocompleteListProps } from "@prosekit/web/autocomplete";
16
+ var AutocompleteList = createComponent("prosekit-autocomplete-list", "AutocompleteList", defaultAutocompleteListProps);
17
+
18
+ // src/components/autocomplete/autocomplete-popover.gen.ts
19
+ import { defaultAutocompletePopoverProps } from "@prosekit/web/autocomplete";
20
+ var AutocompletePopover = createComponent("prosekit-autocomplete-popover", "AutocompletePopover", defaultAutocompletePopoverProps);
21
+ export {
22
+ AutocompleteEmpty,
23
+ AutocompleteItem,
24
+ AutocompleteList,
25
+ AutocompletePopover
26
+ };
@@ -0,0 +1,2 @@
1
+ export { BlockDragHandle_alias_1 as BlockDragHandle } from './_tsup-dts-rollup';
2
+ export { BlockPopover_alias_1 as BlockPopover } from './_tsup-dts-rollup';
@@ -0,0 +1,16 @@
1
+ import {
2
+ createComponent
3
+ } from "./chunk-64DHEPDA.js";
4
+ import "./chunk-X5DTEZPX.js";
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
+ // src/components/block-handle/block-popover.gen.ts
11
+ import { defaultBlockPopoverProps } from "@prosekit/web/block-handle";
12
+ var BlockPopover = createComponent("prosekit-block-popover", "BlockPopover", defaultBlockPopoverProps);
13
+ export {
14
+ BlockDragHandle,
15
+ BlockPopover
16
+ };
@@ -1,3 +1 @@
1
- export { PositioningOptions_alias_1 as PositioningOptions } from './_tsup-dts-rollup';
2
- export { InlinePopover_alias_1 as InlinePopover } from './_tsup-dts-rollup';
3
- export { InlinePopoverProps_alias_1 as InlinePopoverProps } from './_tsup-dts-rollup';
1
+ export { InlinePopover } from './_tsup-dts-rollup';
@@ -1,19 +1,11 @@
1
- // src/components/inline-popover.gen.ts
2
- import "@prosekit/lit/inline-popover";
3
- import { propNames } from "@prosekit/lit/inline-popover";
4
- import { defineComponent, h } from "vue";
5
- var InlinePopover = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-inline-popover", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
1
+ import {
2
+ createComponent
3
+ } from "./chunk-64DHEPDA.js";
4
+ import "./chunk-X5DTEZPX.js";
5
+
6
+ // src/components/inline-popover/inline-popover.gen.ts
7
+ import { defaultInlinePopoverProps } from "@prosekit/web/inline-popover";
8
+ var InlinePopover = createComponent("prosekit-inline-popover", "InlinePopover", defaultInlinePopoverProps);
17
9
  export {
18
10
  InlinePopover
19
11
  };
@@ -1,2 +1,3 @@
1
- export { PopoverProps } from './_tsup-dts-rollup';
2
- export { Popover } from './_tsup-dts-rollup';
1
+ export { PopoverContent } from './_tsup-dts-rollup';
2
+ export { PopoverRoot } from './_tsup-dts-rollup';
3
+ export { PopoverTrigger } from './_tsup-dts-rollup';
@@ -1,19 +1,21 @@
1
- // src/components/popover.gen.ts
2
- import "@prosekit/lit/popover";
3
- import { propNames } from "@prosekit/lit/popover";
4
- import { defineComponent, h } from "vue";
5
- var Popover = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-popover", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
1
+ import {
2
+ createComponent
3
+ } from "./chunk-64DHEPDA.js";
4
+ import "./chunk-X5DTEZPX.js";
5
+
6
+ // src/components/popover/popover-content.gen.ts
7
+ import { defaultPopoverContentProps } from "@prosekit/web/popover";
8
+ var PopoverContent = createComponent("prosekit-popover-content", "PopoverContent", defaultPopoverContentProps);
9
+
10
+ // src/components/popover/popover-root.gen.ts
11
+ import { defaultPopoverRootProps } from "@prosekit/web/popover";
12
+ var PopoverRoot = createComponent("prosekit-popover-root", "PopoverRoot", defaultPopoverRootProps);
13
+
14
+ // src/components/popover/popover-trigger.gen.ts
15
+ import { defaultPopoverTriggerProps } from "@prosekit/web/popover";
16
+ var PopoverTrigger = createComponent("prosekit-popover-trigger", "PopoverTrigger", defaultPopoverTriggerProps);
17
17
  export {
18
- Popover
18
+ PopoverContent,
19
+ PopoverRoot,
20
+ PopoverTrigger
19
21
  };
@@ -1,2 +1,2 @@
1
- export { ResizableProps } from './_tsup-dts-rollup';
2
- export { Resizable } from './_tsup-dts-rollup';
1
+ export { ResizableHandle } from './_tsup-dts-rollup';
2
+ export { ResizableRoot } from './_tsup-dts-rollup';
@@ -1,19 +1,16 @@
1
- // src/components/resizable.gen.ts
2
- import "@prosekit/lit/resizable";
3
- import { propNames } from "@prosekit/lit/resizable";
4
- import { defineComponent, h } from "vue";
5
- var Resizable = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-resizable", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
1
+ import {
2
+ createComponent
3
+ } from "./chunk-64DHEPDA.js";
4
+ import "./chunk-X5DTEZPX.js";
5
+
6
+ // src/components/resizable/resizable-handle.gen.ts
7
+ import { defaultResizableHandleProps } from "@prosekit/web/resizable";
8
+ var ResizableHandle = createComponent("prosekit-resizable-handle", "ResizableHandle", defaultResizableHandleProps);
9
+
10
+ // src/components/resizable/resizable-root.gen.ts
11
+ import { defaultResizableRootProps } from "@prosekit/web/resizable";
12
+ var ResizableRoot = createComponent("prosekit-resizable-root", "ResizableRoot", defaultResizableRootProps);
17
13
  export {
18
- Resizable
14
+ ResizableHandle,
15
+ ResizableRoot
19
16
  };
@@ -0,0 +1,3 @@
1
+ export { TooltipContent } from './_tsup-dts-rollup';
2
+ export { TooltipRoot } from './_tsup-dts-rollup';
3
+ export { TooltipTrigger } from './_tsup-dts-rollup';
@@ -0,0 +1,21 @@
1
+ import {
2
+ createComponent
3
+ } from "./chunk-64DHEPDA.js";
4
+ import "./chunk-X5DTEZPX.js";
5
+
6
+ // src/components/tooltip/tooltip-content.gen.ts
7
+ import { defaultTooltipContentProps } from "@prosekit/web/tooltip";
8
+ var TooltipContent = createComponent("prosekit-tooltip-content", "TooltipContent", defaultTooltipContentProps);
9
+
10
+ // src/components/tooltip/tooltip-root.gen.ts
11
+ import { defaultTooltipRootProps } from "@prosekit/web/tooltip";
12
+ var TooltipRoot = createComponent("prosekit-tooltip-root", "TooltipRoot", defaultTooltipRootProps);
13
+
14
+ // src/components/tooltip/tooltip-trigger.gen.ts
15
+ import { defaultTooltipTriggerProps } from "@prosekit/web/tooltip";
16
+ var TooltipTrigger = createComponent("prosekit-tooltip-trigger", "TooltipTrigger", defaultTooltipTriggerProps);
17
+ export {
18
+ TooltipContent,
19
+ TooltipRoot,
20
+ TooltipTrigger
21
+ };
@@ -1,29 +1,23 @@
1
+ import {
2
+ provideEditor,
3
+ useEditorContext
4
+ } from "./chunk-X5DTEZPX.js";
5
+
1
6
  // src/components/prosekit.ts
2
7
  import "@prosekit/core";
3
8
  import { defineComponent as defineComponent4, h as h3 } from "vue";
4
9
 
5
- // src/injection/editor-context.ts
6
- import "@prosekit/core";
7
- import { inject, provide } from "vue";
8
- var symbol = Symbol("prosekit-vue-editor-context");
9
- function provideEditor(editor) {
10
- provide(symbol, editor);
11
- }
12
- function useEditorContext() {
13
- return inject(symbol);
14
- }
15
-
16
10
  // src/views/vue-views-provider.ts
17
- import { Fragment, defineComponent as defineComponent2, h as h2, provide as provide2 } from "vue";
11
+ import { Fragment, defineComponent as defineComponent2, h as h2, provide } from "vue";
18
12
 
19
13
  // src/views/node-view/node-view-context.ts
20
14
  import { ProseKitError } from "@prosekit/core";
21
- import { inject as inject2 } from "vue";
15
+ import { inject } from "vue";
22
16
  var nodeViewFactoryKey = Symbol(
23
17
  "[ProseKit]useNodeViewFactory"
24
18
  );
25
19
  function useNodeViewFactory() {
26
- const nodeViewFactory = inject2(nodeViewFactoryKey);
20
+ const nodeViewFactory = inject(nodeViewFactoryKey);
27
21
  if (!nodeViewFactory) {
28
22
  throw new ProseKitError("Cannot find node view factory context.");
29
23
  }
@@ -167,7 +161,7 @@ var VueViewsProvider = defineComponent2({
167
161
  renderVueRenderer,
168
162
  removeVueRenderer
169
163
  );
170
- provide2(nodeViewFactoryKey, createVueNodeView);
164
+ provide(nodeViewFactoryKey, createVueNodeView);
171
165
  return () => {
172
166
  var _a;
173
167
  return h2(Fragment, null, [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/vue",
3
3
  "type": "module",
4
- "version": "0.2.6",
4
+ "version": "0.3.0",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -30,55 +30,15 @@
30
30
  "import": "./dist/prosekit-vue.js",
31
31
  "default": "./dist/prosekit-vue.js"
32
32
  },
33
- "./autocomplete-empty": {
34
- "types": "./dist/prosekit-vue-autocomplete-empty.d.ts",
35
- "import": "./dist/prosekit-vue-autocomplete-empty.js",
36
- "default": "./dist/prosekit-vue-autocomplete-empty.js"
33
+ "./autocomplete": {
34
+ "types": "./dist/prosekit-vue-autocomplete.d.ts",
35
+ "import": "./dist/prosekit-vue-autocomplete.js",
36
+ "default": "./dist/prosekit-vue-autocomplete.js"
37
37
  },
38
- "./autocomplete-item": {
39
- "types": "./dist/prosekit-vue-autocomplete-item.d.ts",
40
- "import": "./dist/prosekit-vue-autocomplete-item.js",
41
- "default": "./dist/prosekit-vue-autocomplete-item.js"
42
- },
43
- "./autocomplete-list": {
44
- "types": "./dist/prosekit-vue-autocomplete-list.d.ts",
45
- "import": "./dist/prosekit-vue-autocomplete-list.js",
46
- "default": "./dist/prosekit-vue-autocomplete-list.js"
47
- },
48
- "./autocomplete-popover": {
49
- "types": "./dist/prosekit-vue-autocomplete-popover.d.ts",
50
- "import": "./dist/prosekit-vue-autocomplete-popover.js",
51
- "default": "./dist/prosekit-vue-autocomplete-popover.js"
52
- },
53
- "./block-popover": {
54
- "types": "./dist/prosekit-vue-block-popover.d.ts",
55
- "import": "./dist/prosekit-vue-block-popover.js",
56
- "default": "./dist/prosekit-vue-block-popover.js"
57
- },
58
- "./combo-box": {
59
- "types": "./dist/prosekit-vue-combo-box.d.ts",
60
- "import": "./dist/prosekit-vue-combo-box.js",
61
- "default": "./dist/prosekit-vue-combo-box.js"
62
- },
63
- "./combo-box-input": {
64
- "types": "./dist/prosekit-vue-combo-box-input.d.ts",
65
- "import": "./dist/prosekit-vue-combo-box-input.js",
66
- "default": "./dist/prosekit-vue-combo-box-input.js"
67
- },
68
- "./combo-box-item": {
69
- "types": "./dist/prosekit-vue-combo-box-item.d.ts",
70
- "import": "./dist/prosekit-vue-combo-box-item.js",
71
- "default": "./dist/prosekit-vue-combo-box-item.js"
72
- },
73
- "./combo-box-list": {
74
- "types": "./dist/prosekit-vue-combo-box-list.d.ts",
75
- "import": "./dist/prosekit-vue-combo-box-list.js",
76
- "default": "./dist/prosekit-vue-combo-box-list.js"
77
- },
78
- "./drag-handle": {
79
- "types": "./dist/prosekit-vue-drag-handle.d.ts",
80
- "import": "./dist/prosekit-vue-drag-handle.js",
81
- "default": "./dist/prosekit-vue-drag-handle.js"
38
+ "./block-handle": {
39
+ "types": "./dist/prosekit-vue-block-handle.d.ts",
40
+ "import": "./dist/prosekit-vue-block-handle.js",
41
+ "default": "./dist/prosekit-vue-block-handle.js"
82
42
  },
83
43
  "./inline-popover": {
84
44
  "types": "./dist/prosekit-vue-inline-popover.d.ts",
@@ -95,10 +55,10 @@
95
55
  "import": "./dist/prosekit-vue-resizable.js",
96
56
  "default": "./dist/prosekit-vue-resizable.js"
97
57
  },
98
- "./resizable-handle": {
99
- "types": "./dist/prosekit-vue-resizable-handle.d.ts",
100
- "import": "./dist/prosekit-vue-resizable-handle.js",
101
- "default": "./dist/prosekit-vue-resizable-handle.js"
58
+ "./tooltip": {
59
+ "types": "./dist/prosekit-vue-tooltip.d.ts",
60
+ "import": "./dist/prosekit-vue-tooltip.js",
61
+ "default": "./dist/prosekit-vue-tooltip.js"
102
62
  }
103
63
  },
104
64
  "files": [
@@ -106,8 +66,9 @@
106
66
  ],
107
67
  "dependencies": {
108
68
  "@prosekit/core": "^0.4.0",
109
- "@prosekit/lit": "^0.2.6",
110
- "@prosekit/pm": "^0.1.1",
69
+ "@prosekit/lit": "^0.3.0",
70
+ "@prosekit/pm": "^0.1.2",
71
+ "@prosekit/web": "^0.1.0",
111
72
  "@prosemirror-adapter/core": "^0.2.6"
112
73
  },
113
74
  "peerDependencies": {
@@ -121,9 +82,9 @@
121
82
  "devDependencies": {
122
83
  "@prosekit/dev": "*",
123
84
  "tsup": "^8.0.2",
124
- "typescript": "^5.3.3",
125
- "vitest": "^1.2.2",
126
- "vue": "^3.4.18"
85
+ "typescript": "^5.4.5",
86
+ "vitest": "^1.5.0",
87
+ "vue": "^3.4.23"
127
88
  },
128
89
  "scripts": {
129
90
  "build:tsup": "tsup",
@@ -135,35 +96,11 @@
135
96
  ".": [
136
97
  "./dist/prosekit-vue.d.ts"
137
98
  ],
138
- "autocomplete-empty": [
139
- "./dist/prosekit-vue-autocomplete-empty.d.ts"
140
- ],
141
- "autocomplete-item": [
142
- "./dist/prosekit-vue-autocomplete-item.d.ts"
143
- ],
144
- "autocomplete-list": [
145
- "./dist/prosekit-vue-autocomplete-list.d.ts"
146
- ],
147
- "autocomplete-popover": [
148
- "./dist/prosekit-vue-autocomplete-popover.d.ts"
149
- ],
150
- "block-popover": [
151
- "./dist/prosekit-vue-block-popover.d.ts"
152
- ],
153
- "combo-box": [
154
- "./dist/prosekit-vue-combo-box.d.ts"
155
- ],
156
- "combo-box-input": [
157
- "./dist/prosekit-vue-combo-box-input.d.ts"
158
- ],
159
- "combo-box-item": [
160
- "./dist/prosekit-vue-combo-box-item.d.ts"
161
- ],
162
- "combo-box-list": [
163
- "./dist/prosekit-vue-combo-box-list.d.ts"
99
+ "autocomplete": [
100
+ "./dist/prosekit-vue-autocomplete.d.ts"
164
101
  ],
165
- "drag-handle": [
166
- "./dist/prosekit-vue-drag-handle.d.ts"
102
+ "block-handle": [
103
+ "./dist/prosekit-vue-block-handle.d.ts"
167
104
  ],
168
105
  "inline-popover": [
169
106
  "./dist/prosekit-vue-inline-popover.d.ts"
@@ -174,8 +111,8 @@
174
111
  "resizable": [
175
112
  "./dist/prosekit-vue-resizable.d.ts"
176
113
  ],
177
- "resizable-handle": [
178
- "./dist/prosekit-vue-resizable-handle.d.ts"
114
+ "tooltip": [
115
+ "./dist/prosekit-vue-tooltip.d.ts"
179
116
  ]
180
117
  }
181
118
  }
@@ -1,2 +0,0 @@
1
- export { AutocompleteEmpty_alias_1 as AutocompleteEmpty } from './_tsup-dts-rollup';
2
- export { AutocompleteEmptyProps_alias_1 as AutocompleteEmptyProps } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/autocomplete-empty.gen.ts
2
- import "@prosekit/lit/autocomplete-empty";
3
- import { propNames } from "@prosekit/lit/autocomplete-empty";
4
- import { defineComponent, h } from "vue";
5
- var AutocompleteEmpty = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-autocomplete-empty", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- AutocompleteEmpty
19
- };
@@ -1,2 +0,0 @@
1
- export { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup';
2
- export { AutocompleteItemProps_alias_1 as AutocompleteItemProps } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/autocomplete-item.gen.ts
2
- import "@prosekit/lit/autocomplete-item";
3
- import { propNames } from "@prosekit/lit/autocomplete-item";
4
- import { defineComponent, h } from "vue";
5
- var AutocompleteItem = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-autocomplete-item", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- AutocompleteItem
19
- };
@@ -1,2 +0,0 @@
1
- export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup';
2
- export { AutocompleteListProps_alias_1 as AutocompleteListProps } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/autocomplete-list.gen.ts
2
- import "@prosekit/lit/autocomplete-list";
3
- import { propNames } from "@prosekit/lit/autocomplete-list";
4
- import { defineComponent, h } from "vue";
5
- var AutocompleteList = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-autocomplete-list", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- AutocompleteList
19
- };
@@ -1,3 +0,0 @@
1
- export { PositioningOptions } from './_tsup-dts-rollup';
2
- export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup';
3
- export { AutocompletePopoverProps_alias_1 as AutocompletePopoverProps } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/autocomplete-popover.gen.ts
2
- import "@prosekit/lit/autocomplete-popover";
3
- import { propNames } from "@prosekit/lit/autocomplete-popover";
4
- import { defineComponent, h } from "vue";
5
- var AutocompletePopover = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-autocomplete-popover", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- AutocompletePopover
19
- };
@@ -1,2 +0,0 @@
1
- export { BlockPopoverProps } from './_tsup-dts-rollup';
2
- export { BlockPopover } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/block-popover.gen.ts
2
- import "@prosekit/lit/block-popover";
3
- import { propNames } from "@prosekit/lit/block-popover";
4
- import { defineComponent, h } from "vue";
5
- var BlockPopover = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-block-popover", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- BlockPopover
19
- };
@@ -1,2 +0,0 @@
1
- export { ComboBoxInputProps } from './_tsup-dts-rollup';
2
- export { ComboBoxInput } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/combo-box-input.gen.ts
2
- import "@prosekit/lit/combo-box-input";
3
- import { propNames } from "@prosekit/lit/combo-box-input";
4
- import { defineComponent, h } from "vue";
5
- var ComboBoxInput = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-combo-box-input", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- ComboBoxInput
19
- };
@@ -1,2 +0,0 @@
1
- export { ComboBoxItemProps } from './_tsup-dts-rollup';
2
- export { ComboBoxItem } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/combo-box-item.gen.ts
2
- import "@prosekit/lit/combo-box-item";
3
- import { propNames } from "@prosekit/lit/combo-box-item";
4
- import { defineComponent, h } from "vue";
5
- var ComboBoxItem = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-combo-box-item", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- ComboBoxItem
19
- };
@@ -1,2 +0,0 @@
1
- export { ComboBoxListProps } from './_tsup-dts-rollup';
2
- export { ComboBoxList } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/combo-box-list.gen.ts
2
- import "@prosekit/lit/combo-box-list";
3
- import { propNames } from "@prosekit/lit/combo-box-list";
4
- import { defineComponent, h } from "vue";
5
- var ComboBoxList = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-combo-box-list", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- ComboBoxList
19
- };
@@ -1,2 +0,0 @@
1
- export { ComboBoxProps } from './_tsup-dts-rollup';
2
- export { ComboBox } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/combo-box.gen.ts
2
- import "@prosekit/lit/combo-box";
3
- import { propNames } from "@prosekit/lit/combo-box";
4
- import { defineComponent, h } from "vue";
5
- var ComboBox = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-combo-box", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- ComboBox
19
- };
@@ -1,2 +0,0 @@
1
- export { DragHandleProps } from './_tsup-dts-rollup';
2
- export { DragHandle } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/drag-handle.gen.ts
2
- import "@prosekit/lit/drag-handle";
3
- import { propNames } from "@prosekit/lit/drag-handle";
4
- import { defineComponent, h } from "vue";
5
- var DragHandle = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-drag-handle", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- DragHandle
19
- };
@@ -1,2 +0,0 @@
1
- export { ResizableHandleProps } from './_tsup-dts-rollup';
2
- export { ResizableHandle } from './_tsup-dts-rollup';
@@ -1,19 +0,0 @@
1
- // src/components/resizable-handle.gen.ts
2
- import "@prosekit/lit/resizable-handle";
3
- import { propNames } from "@prosekit/lit/resizable-handle";
4
- import { defineComponent, h } from "vue";
5
- var ResizableHandle = defineComponent(
6
- (props, { slots }) => {
7
- return () => {
8
- var _a;
9
- const webComponentProps = Object.fromEntries(
10
- Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
- );
12
- return h("prosekit-resizable-handle", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
- };
14
- },
15
- { props: ["class", ...propNames] }
16
- );
17
- export {
18
- ResizableHandle
19
- };