@prosekit/vue 0.4.11 → 0.4.13

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.
@@ -0,0 +1,46 @@
1
+ import { useEditorContext } from "./editor-context-DKYvJpUt.js";
2
+ import { defineComponent, h, onMounted, ref, watchEffect } from "vue";
3
+
4
+ //#region src/components/create-component.ts
5
+ function createComponent(tagName, displayName, propNames, eventNames) {
6
+ const hasEditor = propNames.includes("editor");
7
+ const Component = defineComponent((props, { slots, emit }) => {
8
+ const editor = useEditorContext();
9
+ const mounted = ref(false);
10
+ onMounted(() => {
11
+ mounted.value = true;
12
+ });
13
+ const elementRef = ref(null);
14
+ watchEffect((onCleanup) => {
15
+ const element = elementRef.value;
16
+ if (!element) return;
17
+ const eventHandlers = {};
18
+ for (const eventName of eventNames) {
19
+ const extractDetail = eventName.endsWith("Change");
20
+ eventHandlers[eventName] = (event) => {
21
+ emit(eventName, extractDetail ? event.detail : event);
22
+ };
23
+ }
24
+ for (const [eventName, handler] of Object.entries(eventHandlers)) element.addEventListener(eventName, handler);
25
+ onCleanup(() => {
26
+ for (const [eventName, handler] of Object.entries(eventHandlers)) element.removeEventListener(eventName, handler);
27
+ });
28
+ });
29
+ return () => {
30
+ const properties = {};
31
+ for (const [key, value] of Object.entries(props)) if (value !== void 0 && !key.startsWith(".")) properties[propNames.includes(key) ? "." + key : key] = value;
32
+ if (hasEditor && editor && !properties["editor"]) properties.editor = editor;
33
+ properties.key = mounted.value ? 1 : 0;
34
+ properties.ref = elementRef;
35
+ return h(tagName, properties, slots.default?.());
36
+ };
37
+ }, {
38
+ name: displayName,
39
+ props: propNames,
40
+ emits: eventNames
41
+ });
42
+ return Component;
43
+ }
44
+
45
+ //#endregion
46
+ export { createComponent };
@@ -0,0 +1,5 @@
1
+ //#region src/components/create-emits.d.ts
2
+ type CreateEmits<Events extends { [EventName in keyof Events]: CustomEvent }> = { [EventName in keyof Events]: (event: EventName extends `${string}Change` ? Events[EventName]["detail"] : Events[EventName]) => void };
3
+
4
+ //#endregion
5
+ export { CreateEmits };
@@ -0,0 +1,19 @@
1
+ import { inject, provide } from "vue";
2
+
3
+ //#region src/injection/editor-context.ts
4
+ const symbol = Symbol("prosekit-vue-editor-context");
5
+ /**
6
+ * @internal
7
+ */
8
+ function provideEditor(editor) {
9
+ provide(symbol, editor);
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ function useEditorContext() {
15
+ return inject(symbol, void 0);
16
+ }
17
+
18
+ //#endregion
19
+ export { provideEditor, useEditorContext };
@@ -1,12 +1,56 @@
1
- export { AutocompleteEmpty_alias_1 as AutocompleteEmpty } from './_tsup-dts-rollup.js';
2
- export { AutocompleteEmptyProps_alias_1 as AutocompleteEmptyProps } from './_tsup-dts-rollup.js';
3
- export { AutocompleteEmptyEmits_alias_1 as AutocompleteEmptyEmits } from './_tsup-dts-rollup.js';
4
- export { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup.js';
5
- export { AutocompleteItemProps_alias_1 as AutocompleteItemProps } from './_tsup-dts-rollup.js';
6
- export { AutocompleteItemEmits_alias_1 as AutocompleteItemEmits } from './_tsup-dts-rollup.js';
7
- export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup.js';
8
- export { AutocompleteListProps_alias_1 as AutocompleteListProps } from './_tsup-dts-rollup.js';
9
- export { AutocompleteListEmits_alias_1 as AutocompleteListEmits } from './_tsup-dts-rollup.js';
10
- export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup.js';
11
- export { AutocompletePopoverProps_alias_1 as AutocompletePopoverProps } from './_tsup-dts-rollup.js';
12
- export { AutocompletePopoverEmits_alias_1 as AutocompletePopoverEmits } from './_tsup-dts-rollup.js';
1
+ import { CreateEmits } from "./create-emits-fip0zdCA.js";
2
+ import { DefineSetupFnComponent, HTMLAttributes } from "vue";
3
+ import { AutocompleteEmptyEvents, AutocompleteEmptyProps as AutocompleteEmptyProps$1, AutocompleteItemEvents, AutocompleteItemProps as AutocompleteItemProps$1, AutocompleteListEvents, AutocompleteListProps as AutocompleteListProps$1, AutocompletePopoverEvents, AutocompletePopoverProps as AutocompletePopoverProps$1 } from "@prosekit/web/autocomplete";
4
+
5
+ //#region src/components/autocomplete/autocomplete-empty.gen.d.ts
6
+ /**
7
+ * Props for the {@link AutocompleteEmpty} component.
8
+ */
9
+ /**
10
+ * Props for the {@link AutocompleteEmpty} component.
11
+ */
12
+ interface AutocompleteEmptyProps extends Partial<AutocompleteEmptyProps$1> {}
13
+ /**
14
+ * Emits for the {@link AutocompleteEmpty} component.
15
+ */
16
+ interface AutocompleteEmptyEmits extends CreateEmits<AutocompleteEmptyEvents> {}
17
+ declare const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps & HTMLAttributes, AutocompleteEmptyEmits>;
18
+
19
+ //#endregion
20
+ //#region src/components/autocomplete/autocomplete-item.gen.d.ts
21
+ /**
22
+ * Props for the {@link AutocompleteItem} component.
23
+ */
24
+ interface AutocompleteItemProps extends Partial<AutocompleteItemProps$1> {}
25
+ /**
26
+ * Emits for the {@link AutocompleteItem} component.
27
+ */
28
+ interface AutocompleteItemEmits extends CreateEmits<AutocompleteItemEvents> {}
29
+ declare const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps & HTMLAttributes, AutocompleteItemEmits>;
30
+
31
+ //#endregion
32
+ //#region src/components/autocomplete/autocomplete-list.gen.d.ts
33
+ /**
34
+ * Props for the {@link AutocompleteList} component.
35
+ */
36
+ interface AutocompleteListProps extends Partial<AutocompleteListProps$1> {}
37
+ /**
38
+ * Emits for the {@link AutocompleteList} component.
39
+ */
40
+ interface AutocompleteListEmits extends CreateEmits<AutocompleteListEvents> {}
41
+ declare const AutocompleteList: DefineSetupFnComponent<AutocompleteListProps & HTMLAttributes, AutocompleteListEmits>;
42
+
43
+ //#endregion
44
+ //#region src/components/autocomplete/autocomplete-popover.gen.d.ts
45
+ /**
46
+ * Props for the {@link AutocompletePopover} component.
47
+ */
48
+ interface AutocompletePopoverProps extends Partial<AutocompletePopoverProps$1> {}
49
+ /**
50
+ * Emits for the {@link AutocompletePopover} component.
51
+ */
52
+ interface AutocompletePopoverEmits extends CreateEmits<AutocompletePopoverEvents> {}
53
+ declare const AutocompletePopover: DefineSetupFnComponent<AutocompletePopoverProps & HTMLAttributes, AutocompletePopoverEmits>;
54
+
55
+ //#endregion
56
+ export { AutocompleteEmpty, AutocompleteEmptyEmits, AutocompleteEmptyProps, AutocompleteItem, AutocompleteItemEmits, AutocompleteItemProps, AutocompleteList, AutocompleteListEmits, AutocompleteListProps, AutocompletePopover, AutocompletePopoverEmits, AutocompletePopoverProps };
@@ -1,58 +1,21 @@
1
- import {
2
- createComponent
3
- } from "./chunk-PTYQOFHO.js";
4
- import "./chunk-BD3KKHO6.js";
1
+ import "./editor-context-DKYvJpUt.js";
2
+ import { createComponent } from "./create-component-wOxhYs6n.js";
3
+ import { autocompleteEmptyEvents, autocompleteEmptyProps, autocompleteItemEvents, autocompleteItemProps, autocompleteListEvents, autocompleteListProps, autocompletePopoverEvents, autocompletePopoverProps } from "@prosekit/web/autocomplete";
5
4
 
6
- // src/components/autocomplete/autocomplete-empty.gen.ts
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
- );
5
+ //#region src/components/autocomplete/autocomplete-empty.gen.ts
6
+ const AutocompleteEmpty = createComponent("prosekit-autocomplete-empty", "AutocompleteEmpty", Object.keys(autocompleteEmptyProps), Object.keys(autocompleteEmptyEvents));
17
7
 
18
- // src/components/autocomplete/autocomplete-item.gen.ts
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
- );
8
+ //#endregion
9
+ //#region src/components/autocomplete/autocomplete-item.gen.ts
10
+ const AutocompleteItem = createComponent("prosekit-autocomplete-item", "AutocompleteItem", Object.keys(autocompleteItemProps), Object.keys(autocompleteItemEvents));
29
11
 
30
- // src/components/autocomplete/autocomplete-list.gen.ts
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
- );
12
+ //#endregion
13
+ //#region src/components/autocomplete/autocomplete-list.gen.ts
14
+ const AutocompleteList = createComponent("prosekit-autocomplete-list", "AutocompleteList", Object.keys(autocompleteListProps), Object.keys(autocompleteListEvents));
41
15
 
42
- // src/components/autocomplete/autocomplete-popover.gen.ts
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
- );
53
- export {
54
- AutocompleteEmpty,
55
- AutocompleteItem,
56
- AutocompleteList,
57
- AutocompletePopover
58
- };
16
+ //#endregion
17
+ //#region src/components/autocomplete/autocomplete-popover.gen.ts
18
+ const AutocompletePopover = createComponent("prosekit-autocomplete-popover", "AutocompletePopover", Object.keys(autocompletePopoverProps), Object.keys(autocompletePopoverEvents));
19
+
20
+ //#endregion
21
+ export { AutocompleteEmpty, AutocompleteItem, AutocompleteList, AutocompletePopover };
@@ -1,9 +1,44 @@
1
- export { BlockHandleAdd_alias_1 as BlockHandleAdd } from './_tsup-dts-rollup.js';
2
- export { BlockHandleAddProps_alias_1 as BlockHandleAddProps } from './_tsup-dts-rollup.js';
3
- export { BlockHandleAddEmits_alias_1 as BlockHandleAddEmits } from './_tsup-dts-rollup.js';
4
- export { BlockHandleDraggable_alias_1 as BlockHandleDraggable } from './_tsup-dts-rollup.js';
5
- export { BlockHandleDraggableProps_alias_1 as BlockHandleDraggableProps } from './_tsup-dts-rollup.js';
6
- export { BlockHandleDraggableEmits_alias_1 as BlockHandleDraggableEmits } from './_tsup-dts-rollup.js';
7
- export { BlockHandlePopover_alias_1 as BlockHandlePopover } from './_tsup-dts-rollup.js';
8
- export { BlockHandlePopoverProps_alias_1 as BlockHandlePopoverProps } from './_tsup-dts-rollup.js';
9
- export { BlockHandlePopoverEmits_alias_1 as BlockHandlePopoverEmits } from './_tsup-dts-rollup.js';
1
+ import { CreateEmits } from "./create-emits-fip0zdCA.js";
2
+ import { DefineSetupFnComponent, HTMLAttributes } from "vue";
3
+ import { BlockHandleAddEvents, BlockHandleAddProps as BlockHandleAddProps$1, BlockHandleDraggableEvents, BlockHandleDraggableProps as BlockHandleDraggableProps$1, BlockHandlePopoverEvents, BlockHandlePopoverProps as BlockHandlePopoverProps$1 } from "@prosekit/web/block-handle";
4
+
5
+ //#region src/components/block-handle/block-handle-add.gen.d.ts
6
+ /**
7
+ * Props for the {@link BlockHandleAdd} component.
8
+ */
9
+ /**
10
+ * Props for the {@link BlockHandleAdd} component.
11
+ */
12
+ interface BlockHandleAddProps extends Partial<BlockHandleAddProps$1> {}
13
+ /**
14
+ * Emits for the {@link BlockHandleAdd} component.
15
+ */
16
+ interface BlockHandleAddEmits extends CreateEmits<BlockHandleAddEvents> {}
17
+ declare const BlockHandleAdd: DefineSetupFnComponent<BlockHandleAddProps & HTMLAttributes, BlockHandleAddEmits>;
18
+
19
+ //#endregion
20
+ //#region src/components/block-handle/block-handle-draggable.gen.d.ts
21
+ /**
22
+ * Props for the {@link BlockHandleDraggable} component.
23
+ */
24
+ interface BlockHandleDraggableProps extends Partial<BlockHandleDraggableProps$1> {}
25
+ /**
26
+ * Emits for the {@link BlockHandleDraggable} component.
27
+ */
28
+ interface BlockHandleDraggableEmits extends CreateEmits<BlockHandleDraggableEvents> {}
29
+ declare const BlockHandleDraggable: DefineSetupFnComponent<BlockHandleDraggableProps & HTMLAttributes, BlockHandleDraggableEmits>;
30
+
31
+ //#endregion
32
+ //#region src/components/block-handle/block-handle-popover.gen.d.ts
33
+ /**
34
+ * Props for the {@link BlockHandlePopover} component.
35
+ */
36
+ interface BlockHandlePopoverProps extends Partial<BlockHandlePopoverProps$1> {}
37
+ /**
38
+ * Emits for the {@link BlockHandlePopover} component.
39
+ */
40
+ interface BlockHandlePopoverEmits extends CreateEmits<BlockHandlePopoverEvents> {}
41
+ declare const BlockHandlePopover: DefineSetupFnComponent<BlockHandlePopoverProps & HTMLAttributes, BlockHandlePopoverEmits>;
42
+
43
+ //#endregion
44
+ export { BlockHandleAdd, BlockHandleAddEmits, BlockHandleAddProps, BlockHandleDraggable, BlockHandleDraggableEmits, BlockHandleDraggableProps, BlockHandlePopover, BlockHandlePopoverEmits, BlockHandlePopoverProps };
@@ -1,45 +1,17 @@
1
- import {
2
- createComponent
3
- } from "./chunk-PTYQOFHO.js";
4
- import "./chunk-BD3KKHO6.js";
1
+ import "./editor-context-DKYvJpUt.js";
2
+ import { createComponent } from "./create-component-wOxhYs6n.js";
3
+ import { blockHandleAddEvents, blockHandleAddProps, blockHandleDraggableEvents, blockHandleDraggableProps, blockHandlePopoverEvents, blockHandlePopoverProps } from "@prosekit/web/block-handle";
5
4
 
6
- // src/components/block-handle/block-handle-add.gen.ts
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
- );
5
+ //#region src/components/block-handle/block-handle-add.gen.ts
6
+ const BlockHandleAdd = createComponent("prosekit-block-handle-add", "BlockHandleAdd", Object.keys(blockHandleAddProps), Object.keys(blockHandleAddEvents));
17
7
 
18
- // src/components/block-handle/block-handle-draggable.gen.ts
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
- );
8
+ //#endregion
9
+ //#region src/components/block-handle/block-handle-draggable.gen.ts
10
+ const BlockHandleDraggable = createComponent("prosekit-block-handle-draggable", "BlockHandleDraggable", Object.keys(blockHandleDraggableProps), Object.keys(blockHandleDraggableEvents));
29
11
 
30
- // src/components/block-handle/block-handle-popover.gen.ts
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
- );
41
- export {
42
- BlockHandleAdd,
43
- BlockHandleDraggable,
44
- BlockHandlePopover
45
- };
12
+ //#endregion
13
+ //#region src/components/block-handle/block-handle-popover.gen.ts
14
+ const BlockHandlePopover = createComponent("prosekit-block-handle-popover", "BlockHandlePopover", Object.keys(blockHandlePopoverProps), Object.keys(blockHandlePopoverEvents));
15
+
16
+ //#endregion
17
+ export { BlockHandleAdd, BlockHandleDraggable, BlockHandlePopover };
@@ -1,3 +1,20 @@
1
- export { InlinePopover } from './_tsup-dts-rollup.js';
2
- export { InlinePopoverProps } from './_tsup-dts-rollup.js';
3
- export { InlinePopoverEmits } from './_tsup-dts-rollup.js';
1
+ import { CreateEmits } from "./create-emits-fip0zdCA.js";
2
+ import { DefineSetupFnComponent, HTMLAttributes } from "vue";
3
+ import { InlinePopoverEvents, InlinePopoverProps as InlinePopoverProps$1 } from "@prosekit/web/inline-popover";
4
+
5
+ //#region src/components/inline-popover/inline-popover.gen.d.ts
6
+ /**
7
+ * Props for the {@link InlinePopover} component.
8
+ */
9
+ /**
10
+ * Props for the {@link InlinePopover} component.
11
+ */
12
+ interface InlinePopoverProps extends Partial<InlinePopoverProps$1> {}
13
+ /**
14
+ * Emits for the {@link InlinePopover} component.
15
+ */
16
+ interface InlinePopoverEmits extends CreateEmits<InlinePopoverEvents> {}
17
+ declare const InlinePopover: DefineSetupFnComponent<InlinePopoverProps & HTMLAttributes, InlinePopoverEmits>;
18
+
19
+ //#endregion
20
+ export { InlinePopover, InlinePopoverEmits, InlinePopoverProps };
@@ -1,19 +1,9 @@
1
- import {
2
- createComponent
3
- } from "./chunk-PTYQOFHO.js";
4
- import "./chunk-BD3KKHO6.js";
1
+ import "./editor-context-DKYvJpUt.js";
2
+ import { createComponent } from "./create-component-wOxhYs6n.js";
3
+ import { inlinePopoverEvents, inlinePopoverProps } from "@prosekit/web/inline-popover";
5
4
 
6
- // src/components/inline-popover/inline-popover.gen.ts
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
- );
17
- export {
18
- InlinePopover
19
- };
5
+ //#region src/components/inline-popover/inline-popover.gen.ts
6
+ const InlinePopover = createComponent("prosekit-inline-popover", "InlinePopover", Object.keys(inlinePopoverProps), Object.keys(inlinePopoverEvents));
7
+
8
+ //#endregion
9
+ export { InlinePopover };
@@ -1,9 +1,44 @@
1
- export { PopoverContent } from './_tsup-dts-rollup.js';
2
- export { PopoverContentProps } from './_tsup-dts-rollup.js';
3
- export { PopoverContentEmits } from './_tsup-dts-rollup.js';
4
- export { PopoverRoot } from './_tsup-dts-rollup.js';
5
- export { PopoverRootProps } from './_tsup-dts-rollup.js';
6
- export { PopoverRootEmits } from './_tsup-dts-rollup.js';
7
- export { PopoverTrigger } from './_tsup-dts-rollup.js';
8
- export { PopoverTriggerProps } from './_tsup-dts-rollup.js';
9
- export { PopoverTriggerEmits } from './_tsup-dts-rollup.js';
1
+ import { CreateEmits } from "./create-emits-fip0zdCA.js";
2
+ import { DefineSetupFnComponent, HTMLAttributes } from "vue";
3
+ import { PopoverContentEvents, PopoverContentProps as PopoverContentProps$1, PopoverRootEvents, PopoverRootProps as PopoverRootProps$1, PopoverTriggerEvents, PopoverTriggerProps as PopoverTriggerProps$1 } from "@prosekit/web/popover";
4
+
5
+ //#region src/components/popover/popover-content.gen.d.ts
6
+ /**
7
+ * Props for the {@link PopoverContent} component.
8
+ */
9
+ /**
10
+ * Props for the {@link PopoverContent} component.
11
+ */
12
+ interface PopoverContentProps extends Partial<PopoverContentProps$1> {}
13
+ /**
14
+ * Emits for the {@link PopoverContent} component.
15
+ */
16
+ interface PopoverContentEmits extends CreateEmits<PopoverContentEvents> {}
17
+ declare const PopoverContent: DefineSetupFnComponent<PopoverContentProps & HTMLAttributes, PopoverContentEmits>;
18
+
19
+ //#endregion
20
+ //#region src/components/popover/popover-root.gen.d.ts
21
+ /**
22
+ * Props for the {@link PopoverRoot} component.
23
+ */
24
+ interface PopoverRootProps extends Partial<PopoverRootProps$1> {}
25
+ /**
26
+ * Emits for the {@link PopoverRoot} component.
27
+ */
28
+ interface PopoverRootEmits extends CreateEmits<PopoverRootEvents> {}
29
+ declare const PopoverRoot: DefineSetupFnComponent<PopoverRootProps & HTMLAttributes, PopoverRootEmits>;
30
+
31
+ //#endregion
32
+ //#region src/components/popover/popover-trigger.gen.d.ts
33
+ /**
34
+ * Props for the {@link PopoverTrigger} component.
35
+ */
36
+ interface PopoverTriggerProps extends Partial<PopoverTriggerProps$1> {}
37
+ /**
38
+ * Emits for the {@link PopoverTrigger} component.
39
+ */
40
+ interface PopoverTriggerEmits extends CreateEmits<PopoverTriggerEvents> {}
41
+ declare const PopoverTrigger: DefineSetupFnComponent<PopoverTriggerProps & HTMLAttributes, PopoverTriggerEmits>;
42
+
43
+ //#endregion
44
+ export { PopoverContent, PopoverContentEmits, PopoverContentProps, PopoverRoot, PopoverRootEmits, PopoverRootProps, PopoverTrigger, PopoverTriggerEmits, PopoverTriggerProps };
@@ -1,45 +1,17 @@
1
- import {
2
- createComponent
3
- } from "./chunk-PTYQOFHO.js";
4
- import "./chunk-BD3KKHO6.js";
1
+ import "./editor-context-DKYvJpUt.js";
2
+ import { createComponent } from "./create-component-wOxhYs6n.js";
3
+ import { popoverContentEvents, popoverContentProps, popoverRootEvents, popoverRootProps, popoverTriggerEvents, popoverTriggerProps } from "@prosekit/web/popover";
5
4
 
6
- // src/components/popover/popover-content.gen.ts
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
- );
5
+ //#region src/components/popover/popover-content.gen.ts
6
+ const PopoverContent = createComponent("prosekit-popover-content", "PopoverContent", Object.keys(popoverContentProps), Object.keys(popoverContentEvents));
17
7
 
18
- // src/components/popover/popover-root.gen.ts
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
- );
8
+ //#endregion
9
+ //#region src/components/popover/popover-root.gen.ts
10
+ const PopoverRoot = createComponent("prosekit-popover-root", "PopoverRoot", Object.keys(popoverRootProps), Object.keys(popoverRootEvents));
29
11
 
30
- // src/components/popover/popover-trigger.gen.ts
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
- );
41
- export {
42
- PopoverContent,
43
- PopoverRoot,
44
- PopoverTrigger
45
- };
12
+ //#endregion
13
+ //#region src/components/popover/popover-trigger.gen.ts
14
+ const PopoverTrigger = createComponent("prosekit-popover-trigger", "PopoverTrigger", Object.keys(popoverTriggerProps), Object.keys(popoverTriggerEvents));
15
+
16
+ //#endregion
17
+ export { PopoverContent, PopoverRoot, PopoverTrigger };
@@ -1,6 +1,32 @@
1
- export { ResizableHandle } from './_tsup-dts-rollup.js';
2
- export { ResizableHandleProps } from './_tsup-dts-rollup.js';
3
- export { ResizableHandleEmits } from './_tsup-dts-rollup.js';
4
- export { ResizableRoot } from './_tsup-dts-rollup.js';
5
- export { ResizableRootProps } from './_tsup-dts-rollup.js';
6
- export { ResizableRootEmits } from './_tsup-dts-rollup.js';
1
+ import { CreateEmits } from "./create-emits-fip0zdCA.js";
2
+ import { DefineSetupFnComponent, HTMLAttributes } from "vue";
3
+ import { ResizableHandleEvents, ResizableHandleProps as ResizableHandleProps$1, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
4
+
5
+ //#region src/components/resizable/resizable-handle.gen.d.ts
6
+ /**
7
+ * Props for the {@link ResizableHandle} component.
8
+ */
9
+ /**
10
+ * Props for the {@link ResizableHandle} component.
11
+ */
12
+ interface ResizableHandleProps extends Partial<ResizableHandleProps$1> {}
13
+ /**
14
+ * Emits for the {@link ResizableHandle} component.
15
+ */
16
+ interface ResizableHandleEmits extends CreateEmits<ResizableHandleEvents> {}
17
+ declare const ResizableHandle: DefineSetupFnComponent<ResizableHandleProps & HTMLAttributes, ResizableHandleEmits>;
18
+
19
+ //#endregion
20
+ //#region src/components/resizable/resizable-root.gen.d.ts
21
+ /**
22
+ * Props for the {@link ResizableRoot} component.
23
+ */
24
+ interface ResizableRootProps extends Partial<ResizableRootProps$1> {}
25
+ /**
26
+ * Emits for the {@link ResizableRoot} component.
27
+ */
28
+ interface ResizableRootEmits extends CreateEmits<ResizableRootEvents> {}
29
+ declare const ResizableRoot: DefineSetupFnComponent<ResizableRootProps & HTMLAttributes, ResizableRootEmits>;
30
+
31
+ //#endregion
32
+ export { ResizableHandle, ResizableHandleEmits, ResizableHandleProps, ResizableRoot, ResizableRootEmits, ResizableRootProps };
@@ -1,32 +1,13 @@
1
- import {
2
- createComponent
3
- } from "./chunk-PTYQOFHO.js";
4
- import "./chunk-BD3KKHO6.js";
1
+ import "./editor-context-DKYvJpUt.js";
2
+ import { createComponent } from "./create-component-wOxhYs6n.js";
3
+ import { resizableHandleEvents, resizableHandleProps, resizableRootEvents, resizableRootProps } from "@prosekit/web/resizable";
5
4
 
6
- // src/components/resizable/resizable-handle.gen.ts
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
- );
5
+ //#region src/components/resizable/resizable-handle.gen.ts
6
+ const ResizableHandle = createComponent("prosekit-resizable-handle", "ResizableHandle", Object.keys(resizableHandleProps), Object.keys(resizableHandleEvents));
17
7
 
18
- // src/components/resizable/resizable-root.gen.ts
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
- );
29
- export {
30
- ResizableHandle,
31
- ResizableRoot
32
- };
8
+ //#endregion
9
+ //#region src/components/resizable/resizable-root.gen.ts
10
+ const ResizableRoot = createComponent("prosekit-resizable-root", "ResizableRoot", Object.keys(resizableRootProps), Object.keys(resizableRootEvents));
11
+
12
+ //#endregion
13
+ export { ResizableHandle, ResizableRoot };