@prosekit/vue 0.2.7 → 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.
- package/dist/_tsup-dts-rollup.d.ts +87 -89
- package/dist/chunk-64DHEPDA.js +37 -0
- package/dist/chunk-X5DTEZPX.js +15 -0
- package/dist/prosekit-vue-autocomplete.d.ts +4 -0
- package/dist/prosekit-vue-autocomplete.js +26 -0
- package/dist/prosekit-vue-block-handle.d.ts +2 -0
- package/dist/prosekit-vue-block-handle.js +16 -0
- package/dist/prosekit-vue-inline-popover.d.ts +1 -3
- package/dist/prosekit-vue-inline-popover.js +8 -16
- package/dist/prosekit-vue-popover.d.ts +3 -2
- package/dist/prosekit-vue-popover.js +19 -17
- package/dist/prosekit-vue-resizable.d.ts +2 -2
- package/dist/prosekit-vue-resizable.js +14 -17
- package/dist/prosekit-vue-tooltip.d.ts +3 -0
- package/dist/prosekit-vue-tooltip.js +21 -0
- package/dist/prosekit-vue.js +9 -15
- package/package.json +24 -111
- package/dist/prosekit-vue-autocomplete-empty.d.ts +0 -2
- package/dist/prosekit-vue-autocomplete-empty.js +0 -19
- package/dist/prosekit-vue-autocomplete-item.d.ts +0 -2
- package/dist/prosekit-vue-autocomplete-item.js +0 -19
- package/dist/prosekit-vue-autocomplete-list.d.ts +0 -2
- package/dist/prosekit-vue-autocomplete-list.js +0 -19
- package/dist/prosekit-vue-autocomplete-popover.d.ts +0 -3
- package/dist/prosekit-vue-autocomplete-popover.js +0 -19
- package/dist/prosekit-vue-block-popover.d.ts +0 -2
- package/dist/prosekit-vue-block-popover.js +0 -19
- package/dist/prosekit-vue-combo-box-input.d.ts +0 -2
- package/dist/prosekit-vue-combo-box-input.js +0 -19
- package/dist/prosekit-vue-combo-box-item.d.ts +0 -2
- package/dist/prosekit-vue-combo-box-item.js +0 -19
- package/dist/prosekit-vue-combo-box-list.d.ts +0 -2
- package/dist/prosekit-vue-combo-box-list.js +0 -19
- package/dist/prosekit-vue-combo-box.d.ts +0 -2
- package/dist/prosekit-vue-combo-box.js +0 -19
- package/dist/prosekit-vue-drag-handle.d.ts +0 -2
- package/dist/prosekit-vue-drag-handle.js +0 -19
- package/dist/prosekit-vue-popover-content.d.ts +0 -2
- package/dist/prosekit-vue-popover-content.js +0 -19
- package/dist/prosekit-vue-popover-root.d.ts +0 -2
- package/dist/prosekit-vue-popover-root.js +0 -19
- package/dist/prosekit-vue-popover-trigger.d.ts +0 -2
- package/dist/prosekit-vue-popover-trigger.js +0 -19
- package/dist/prosekit-vue-resizable-handle.d.ts +0 -2
- 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
|
3
|
-
import { AutocompleteItemProps
|
4
|
-
import { AutocompleteListProps
|
5
|
-
import { AutocompletePopoverProps
|
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 {
|
8
|
-
import {
|
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';
|
@@ -19,7 +16,6 @@ import type { Decoration } from '@prosekit/pm/view';
|
|
19
16
|
import type { DecorationSource } from '@prosekit/pm/view';
|
20
17
|
import { DefineComponent } from 'vue';
|
21
18
|
import { DefineSetupFnComponent } from 'vue';
|
22
|
-
import { DragHandleProps as DragHandleProps_2 } from '@prosekit/lit/drag-handle';
|
23
19
|
import { Editor } from '@prosekit/core';
|
24
20
|
import type { EditorState } from '@prosekit/pm/state';
|
25
21
|
import type { EditorView } from '@prosekit/pm/view';
|
@@ -27,81 +23,69 @@ import { Extension } from '@prosekit/core';
|
|
27
23
|
import { ExtensionTyping } from '@prosekit/core';
|
28
24
|
import { ExtractPropTypes } from 'vue';
|
29
25
|
import type { InjectionKey } from 'vue';
|
30
|
-
import { InlinePopoverProps
|
26
|
+
import { InlinePopoverProps } from '@prosekit/web/inline-popover';
|
31
27
|
import { Keymap } from '@prosekit/core';
|
32
28
|
import { MaybeRefOrGetter } from 'vue';
|
33
29
|
import type { Node as Node_2 } from '@prosekit/pm/model';
|
34
30
|
import type { NodeViewConstructor } from '@prosekit/pm/view';
|
35
31
|
import { Options } from 'tsup';
|
36
|
-
import { PopoverContentProps
|
37
|
-
import {
|
38
|
-
import {
|
39
|
-
import { PopoverTriggerProps as PopoverTriggerProps_2 } from '@prosekit/lit/popover-trigger';
|
40
|
-
import { PositioningOptions } from '@prosekit/lit/autocomplete-popover';
|
41
|
-
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';
|
42
35
|
import { Priority } from '@prosekit/core';
|
43
36
|
import type { ProseMirrorNode } from '@prosekit/pm/model';
|
44
37
|
import { PublicProps } from 'vue';
|
45
38
|
import type { Ref } from 'vue';
|
46
39
|
import { RendererElement } from 'vue';
|
47
40
|
import { RendererNode } from 'vue';
|
48
|
-
import { ResizableHandleProps
|
49
|
-
import {
|
41
|
+
import { ResizableHandleProps } from '@prosekit/web/resizable';
|
42
|
+
import { ResizableRootProps } from '@prosekit/web/resizable';
|
50
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';
|
51
47
|
import { VNode } from 'vue';
|
52
48
|
import type { VNodeRef } from 'vue';
|
53
49
|
|
54
|
-
declare const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps
|
50
|
+
declare const AutocompleteEmpty: DefineSetupFnComponent<Partial<AutocompleteEmptyProps> & {
|
51
|
+
class?: string | undefined;
|
52
|
+
}>;
|
55
53
|
export { AutocompleteEmpty }
|
56
54
|
export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
|
57
55
|
|
58
|
-
declare
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
declare const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps>;
|
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
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
declare const AutocompleteList: DefineSetupFnComponent<AutocompleteListProps>;
|
62
|
+
declare const AutocompleteList: DefineSetupFnComponent<Partial<AutocompleteListProps> & {
|
63
|
+
class?: string | undefined;
|
64
|
+
}>;
|
71
65
|
export { AutocompleteList }
|
72
66
|
export { AutocompleteList as AutocompleteList_alias_1 }
|
73
67
|
|
74
|
-
declare
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
declare const AutocompletePopover: DefineSetupFnComponent<AutocompletePopoverProps>;
|
68
|
+
declare const AutocompletePopover: DefineSetupFnComponent<Partial<AutocompletePopoverProps> & {
|
69
|
+
class?: string | undefined;
|
70
|
+
}>;
|
79
71
|
export { AutocompletePopover }
|
80
72
|
export { AutocompletePopover as AutocompletePopover_alias_1 }
|
81
73
|
|
82
|
-
declare
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
export
|
87
|
-
|
88
|
-
export declare type BlockPopoverProps = PropsWithClass<BlockPopoverProps_2>;
|
89
|
-
|
90
|
-
export declare const ComboBox: DefineSetupFnComponent<ComboBoxProps>;
|
74
|
+
declare const BlockDragHandle: DefineSetupFnComponent<Partial<BlockDragHandleProps> & {
|
75
|
+
class?: string | undefined;
|
76
|
+
}>;
|
77
|
+
export { BlockDragHandle }
|
78
|
+
export { BlockDragHandle as BlockDragHandle_alias_1 }
|
91
79
|
|
92
|
-
|
80
|
+
declare const BlockPopover: DefineSetupFnComponent<Partial<BlockPopoverProps> & {
|
81
|
+
class?: string | undefined;
|
82
|
+
}>;
|
83
|
+
export { BlockPopover }
|
84
|
+
export { BlockPopover as BlockPopover_alias_1 }
|
93
85
|
|
94
|
-
export declare
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
export declare type ComboBoxItemProps = PropsWithClass<ComboBoxItemProps_2>;
|
99
|
-
|
100
|
-
export declare const ComboBoxList: DefineSetupFnComponent<ComboBoxListProps>;
|
101
|
-
|
102
|
-
export declare type ComboBoxListProps = PropsWithClass<ComboBoxListProps_2>;
|
103
|
-
|
104
|
-
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
|
+
}>;
|
105
89
|
|
106
90
|
export declare type CreateVueNodeView = ReturnType<typeof useVueNodeViewCreator>;
|
107
91
|
|
@@ -127,41 +111,33 @@ export { defineVueNodeView as defineVueNodeView_alias_1 }
|
|
127
111
|
*/
|
128
112
|
export declare function defineVueNodeViewFactory(nodeViewFactory: NodeViewFactory): Extension<ExtensionTyping<string, string, CommandArgs>>;
|
129
113
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
declare const InlinePopover: DefineSetupFnComponent<InlinePopoverProps>;
|
114
|
+
declare const InlinePopover: DefineSetupFnComponent<Partial<InlinePopoverProps> & {
|
115
|
+
class?: string | undefined;
|
116
|
+
}>;
|
135
117
|
export { InlinePopover }
|
136
118
|
export { InlinePopover as InlinePopover_alias_1 }
|
137
119
|
|
138
|
-
declare type InlinePopoverProps = PropsWithClass<InlinePopoverProps_2>;
|
139
|
-
export { InlinePopoverProps }
|
140
|
-
export { InlinePopoverProps as InlinePopoverProps_alias_1 }
|
141
|
-
|
142
120
|
export declare type NodeViewFactory = (options: VueNodeViewUserOptions) => NodeViewConstructor;
|
143
121
|
|
144
122
|
export declare const nodeViewFactoryKey: InjectionKey<NodeViewFactory>;
|
145
123
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
export
|
151
|
-
|
152
|
-
export declare type PopoverProps = PropsWithClass<PopoverProps_2>;
|
153
|
-
|
154
|
-
export declare const PopoverRoot: DefineSetupFnComponent<PopoverRootProps>;
|
124
|
+
declare const PopoverContent: DefineSetupFnComponent<Partial<PopoverContentProps> & {
|
125
|
+
class?: string | undefined;
|
126
|
+
}>;
|
127
|
+
export { PopoverContent }
|
128
|
+
export { PopoverContent as PopoverContent_alias_1 }
|
155
129
|
|
156
|
-
|
130
|
+
declare const PopoverRoot: DefineSetupFnComponent<Partial<PopoverRootProps> & {
|
131
|
+
class?: string | undefined;
|
132
|
+
}>;
|
133
|
+
export { PopoverRoot }
|
134
|
+
export { PopoverRoot as PopoverRoot_alias_1 }
|
157
135
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
export {
|
163
|
-
|
164
|
-
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 }
|
165
141
|
|
166
142
|
/**
|
167
143
|
* @internal
|
@@ -190,13 +166,35 @@ export { ProseKitProps as ProseKitProps_alias_1 }
|
|
190
166
|
*/
|
191
167
|
export declare function provideEditor(editor: Editor): void;
|
192
168
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
export
|
198
|
-
|
199
|
-
|
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 }
|
200
198
|
|
201
199
|
/**
|
202
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,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 {
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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 {
|
2
|
-
export {
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
18
|
+
PopoverContent,
|
19
|
+
PopoverRoot,
|
20
|
+
PopoverTrigger
|
19
21
|
};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
1
|
+
export { ResizableHandle } from './_tsup-dts-rollup';
|
2
|
+
export { ResizableRoot } from './_tsup-dts-rollup';
|
@@ -1,19 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
14
|
+
ResizableHandle,
|
15
|
+
ResizableRoot
|
19
16
|
};
|
@@ -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
|
+
};
|
package/dist/prosekit-vue.js
CHANGED
@@ -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
|
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
|
15
|
+
import { inject } from "vue";
|
22
16
|
var nodeViewFactoryKey = Symbol(
|
23
17
|
"[ProseKit]useNodeViewFactory"
|
24
18
|
);
|
25
19
|
function useNodeViewFactory() {
|
26
|
-
const nodeViewFactory =
|
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
|
-
|
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.
|
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
|
34
|
-
"types": "./dist/prosekit-vue-autocomplete
|
35
|
-
"import": "./dist/prosekit-vue-autocomplete
|
36
|
-
"default": "./dist/prosekit-vue-autocomplete
|
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
|
-
"./
|
39
|
-
"types": "./dist/prosekit-vue-
|
40
|
-
"import": "./dist/prosekit-vue-
|
41
|
-
"default": "./dist/prosekit-vue-
|
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",
|
@@ -90,30 +50,15 @@
|
|
90
50
|
"import": "./dist/prosekit-vue-popover.js",
|
91
51
|
"default": "./dist/prosekit-vue-popover.js"
|
92
52
|
},
|
93
|
-
"./popover-content": {
|
94
|
-
"types": "./dist/prosekit-vue-popover-content.d.ts",
|
95
|
-
"import": "./dist/prosekit-vue-popover-content.js",
|
96
|
-
"default": "./dist/prosekit-vue-popover-content.js"
|
97
|
-
},
|
98
|
-
"./popover-root": {
|
99
|
-
"types": "./dist/prosekit-vue-popover-root.d.ts",
|
100
|
-
"import": "./dist/prosekit-vue-popover-root.js",
|
101
|
-
"default": "./dist/prosekit-vue-popover-root.js"
|
102
|
-
},
|
103
|
-
"./popover-trigger": {
|
104
|
-
"types": "./dist/prosekit-vue-popover-trigger.d.ts",
|
105
|
-
"import": "./dist/prosekit-vue-popover-trigger.js",
|
106
|
-
"default": "./dist/prosekit-vue-popover-trigger.js"
|
107
|
-
},
|
108
53
|
"./resizable": {
|
109
54
|
"types": "./dist/prosekit-vue-resizable.d.ts",
|
110
55
|
"import": "./dist/prosekit-vue-resizable.js",
|
111
56
|
"default": "./dist/prosekit-vue-resizable.js"
|
112
57
|
},
|
113
|
-
"./
|
114
|
-
"types": "./dist/prosekit-vue-
|
115
|
-
"import": "./dist/prosekit-vue-
|
116
|
-
"default": "./dist/prosekit-vue-
|
58
|
+
"./tooltip": {
|
59
|
+
"types": "./dist/prosekit-vue-tooltip.d.ts",
|
60
|
+
"import": "./dist/prosekit-vue-tooltip.js",
|
61
|
+
"default": "./dist/prosekit-vue-tooltip.js"
|
117
62
|
}
|
118
63
|
},
|
119
64
|
"files": [
|
@@ -121,8 +66,9 @@
|
|
121
66
|
],
|
122
67
|
"dependencies": {
|
123
68
|
"@prosekit/core": "^0.4.0",
|
124
|
-
"@prosekit/lit": "^0.
|
69
|
+
"@prosekit/lit": "^0.3.0",
|
125
70
|
"@prosekit/pm": "^0.1.2",
|
71
|
+
"@prosekit/web": "^0.1.0",
|
126
72
|
"@prosemirror-adapter/core": "^0.2.6"
|
127
73
|
},
|
128
74
|
"peerDependencies": {
|
@@ -136,9 +82,9 @@
|
|
136
82
|
"devDependencies": {
|
137
83
|
"@prosekit/dev": "*",
|
138
84
|
"tsup": "^8.0.2",
|
139
|
-
"typescript": "^5.4.
|
140
|
-
"vitest": "^1.
|
141
|
-
"vue": "^3.4.
|
85
|
+
"typescript": "^5.4.5",
|
86
|
+
"vitest": "^1.5.0",
|
87
|
+
"vue": "^3.4.23"
|
142
88
|
},
|
143
89
|
"scripts": {
|
144
90
|
"build:tsup": "tsup",
|
@@ -150,35 +96,11 @@
|
|
150
96
|
".": [
|
151
97
|
"./dist/prosekit-vue.d.ts"
|
152
98
|
],
|
153
|
-
"autocomplete
|
154
|
-
"./dist/prosekit-vue-autocomplete
|
99
|
+
"autocomplete": [
|
100
|
+
"./dist/prosekit-vue-autocomplete.d.ts"
|
155
101
|
],
|
156
|
-
"
|
157
|
-
"./dist/prosekit-vue-
|
158
|
-
],
|
159
|
-
"autocomplete-list": [
|
160
|
-
"./dist/prosekit-vue-autocomplete-list.d.ts"
|
161
|
-
],
|
162
|
-
"autocomplete-popover": [
|
163
|
-
"./dist/prosekit-vue-autocomplete-popover.d.ts"
|
164
|
-
],
|
165
|
-
"block-popover": [
|
166
|
-
"./dist/prosekit-vue-block-popover.d.ts"
|
167
|
-
],
|
168
|
-
"combo-box": [
|
169
|
-
"./dist/prosekit-vue-combo-box.d.ts"
|
170
|
-
],
|
171
|
-
"combo-box-input": [
|
172
|
-
"./dist/prosekit-vue-combo-box-input.d.ts"
|
173
|
-
],
|
174
|
-
"combo-box-item": [
|
175
|
-
"./dist/prosekit-vue-combo-box-item.d.ts"
|
176
|
-
],
|
177
|
-
"combo-box-list": [
|
178
|
-
"./dist/prosekit-vue-combo-box-list.d.ts"
|
179
|
-
],
|
180
|
-
"drag-handle": [
|
181
|
-
"./dist/prosekit-vue-drag-handle.d.ts"
|
102
|
+
"block-handle": [
|
103
|
+
"./dist/prosekit-vue-block-handle.d.ts"
|
182
104
|
],
|
183
105
|
"inline-popover": [
|
184
106
|
"./dist/prosekit-vue-inline-popover.d.ts"
|
@@ -186,20 +108,11 @@
|
|
186
108
|
"popover": [
|
187
109
|
"./dist/prosekit-vue-popover.d.ts"
|
188
110
|
],
|
189
|
-
"popover-content": [
|
190
|
-
"./dist/prosekit-vue-popover-content.d.ts"
|
191
|
-
],
|
192
|
-
"popover-root": [
|
193
|
-
"./dist/prosekit-vue-popover-root.d.ts"
|
194
|
-
],
|
195
|
-
"popover-trigger": [
|
196
|
-
"./dist/prosekit-vue-popover-trigger.d.ts"
|
197
|
-
],
|
198
111
|
"resizable": [
|
199
112
|
"./dist/prosekit-vue-resizable.d.ts"
|
200
113
|
],
|
201
|
-
"
|
202
|
-
"./dist/prosekit-vue-
|
114
|
+
"tooltip": [
|
115
|
+
"./dist/prosekit-vue-tooltip.d.ts"
|
203
116
|
]
|
204
117
|
}
|
205
118
|
}
|
@@ -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,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,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,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,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,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,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,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,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,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,19 +0,0 @@
|
|
1
|
-
// src/components/popover-content.gen.ts
|
2
|
-
import "@prosekit/lit/popover-content";
|
3
|
-
import { propNames } from "@prosekit/lit/popover-content";
|
4
|
-
import { defineComponent, h } from "vue";
|
5
|
-
var PopoverContent = 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-content", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
13
|
-
};
|
14
|
-
},
|
15
|
-
{ props: ["class", ...propNames] }
|
16
|
-
);
|
17
|
-
export {
|
18
|
-
PopoverContent
|
19
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
// src/components/popover-root.gen.ts
|
2
|
-
import "@prosekit/lit/popover-root";
|
3
|
-
import { propNames } from "@prosekit/lit/popover-root";
|
4
|
-
import { defineComponent, h } from "vue";
|
5
|
-
var PopoverRoot = 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-root", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
13
|
-
};
|
14
|
-
},
|
15
|
-
{ props: ["class", ...propNames] }
|
16
|
-
);
|
17
|
-
export {
|
18
|
-
PopoverRoot
|
19
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
// src/components/popover-trigger.gen.ts
|
2
|
-
import "@prosekit/lit/popover-trigger";
|
3
|
-
import { propNames } from "@prosekit/lit/popover-trigger";
|
4
|
-
import { defineComponent, h } from "vue";
|
5
|
-
var PopoverTrigger = 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-trigger", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
13
|
-
};
|
14
|
-
},
|
15
|
-
{ props: ["class", ...propNames] }
|
16
|
-
);
|
17
|
-
export {
|
18
|
-
PopoverTrigger
|
19
|
-
};
|
@@ -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
|
-
};
|