@prosekit/vue 0.4.12 → 0.4.14
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/create-component-wOxhYs6n.js +46 -0
- package/dist/create-emits-QdHrV9Ip.d.ts +4 -0
- package/dist/editor-context-DKYvJpUt.js +19 -0
- package/dist/prosekit-vue-autocomplete.d.ts +50 -12
- package/dist/prosekit-vue-autocomplete.js +17 -54
- package/dist/prosekit-vue-block-handle.d.ts +39 -9
- package/dist/prosekit-vue-block-handle.js +14 -42
- package/dist/prosekit-vue-inline-popover.d.ts +17 -3
- package/dist/prosekit-vue-inline-popover.js +8 -18
- package/dist/prosekit-vue-popover.d.ts +39 -9
- package/dist/prosekit-vue-popover.js +14 -42
- package/dist/prosekit-vue-resizable.d.ts +28 -6
- package/dist/prosekit-vue-resizable.js +11 -30
- package/dist/prosekit-vue-table-handle.d.ts +83 -21
- package/dist/prosekit-vue-table-handle.js +26 -90
- package/dist/prosekit-vue-tooltip.d.ts +39 -9
- package/dist/prosekit-vue-tooltip.js +14 -42
- package/dist/prosekit-vue.d.ts +135 -16
- package/dist/prosekit-vue.js +181 -214
- package/package.json +28 -11
- package/dist/_tsup-dts-rollup.d.ts +0 -733
- package/dist/chunk-BD3KKHO6.js +0 -17
- package/dist/chunk-PTYQOFHO.js +0 -71
@@ -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,4 @@
|
|
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
|
+
//#endregion
|
4
|
+
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,50 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import { CreateEmits } from "./create-emits-QdHrV9Ip.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
|
+
/**
|
8
|
+
* Props for the {@link AutocompleteEmpty} component.
|
9
|
+
*/
|
10
|
+
interface AutocompleteEmptyProps extends Partial<AutocompleteEmptyProps$1> {}
|
11
|
+
/**
|
12
|
+
* Emits for the {@link AutocompleteEmpty} component.
|
13
|
+
*/
|
14
|
+
interface AutocompleteEmptyEmits extends CreateEmits<AutocompleteEmptyEvents> {}
|
15
|
+
declare const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps & HTMLAttributes, AutocompleteEmptyEmits>;
|
16
|
+
//#endregion
|
17
|
+
//#region src/components/autocomplete/autocomplete-item.gen.d.ts
|
18
|
+
/**
|
19
|
+
* Props for the {@link AutocompleteItem} component.
|
20
|
+
*/
|
21
|
+
interface AutocompleteItemProps extends Partial<AutocompleteItemProps$1> {}
|
22
|
+
/**
|
23
|
+
* Emits for the {@link AutocompleteItem} component.
|
24
|
+
*/
|
25
|
+
interface AutocompleteItemEmits extends CreateEmits<AutocompleteItemEvents> {}
|
26
|
+
declare const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps & HTMLAttributes, AutocompleteItemEmits>;
|
27
|
+
//#endregion
|
28
|
+
//#region src/components/autocomplete/autocomplete-list.gen.d.ts
|
29
|
+
/**
|
30
|
+
* Props for the {@link AutocompleteList} component.
|
31
|
+
*/
|
32
|
+
interface AutocompleteListProps extends Partial<AutocompleteListProps$1> {}
|
33
|
+
/**
|
34
|
+
* Emits for the {@link AutocompleteList} component.
|
35
|
+
*/
|
36
|
+
interface AutocompleteListEmits extends CreateEmits<AutocompleteListEvents> {}
|
37
|
+
declare const AutocompleteList: DefineSetupFnComponent<AutocompleteListProps & HTMLAttributes, AutocompleteListEmits>;
|
38
|
+
//#endregion
|
39
|
+
//#region src/components/autocomplete/autocomplete-popover.gen.d.ts
|
40
|
+
/**
|
41
|
+
* Props for the {@link AutocompletePopover} component.
|
42
|
+
*/
|
43
|
+
interface AutocompletePopoverProps extends Partial<AutocompletePopoverProps$1> {}
|
44
|
+
/**
|
45
|
+
* Emits for the {@link AutocompletePopover} component.
|
46
|
+
*/
|
47
|
+
interface AutocompletePopoverEmits extends CreateEmits<AutocompletePopoverEvents> {}
|
48
|
+
declare const AutocompletePopover: DefineSetupFnComponent<AutocompletePopoverProps & HTMLAttributes, AutocompletePopoverEmits>;
|
49
|
+
//#endregion
|
50
|
+
export { AutocompleteEmpty, AutocompleteEmptyEmits, AutocompleteEmptyProps, AutocompleteItem, AutocompleteItemEmits, AutocompleteItemProps, AutocompleteList, AutocompleteListEmits, AutocompleteListProps, AutocompletePopover, AutocompletePopoverEmits, AutocompletePopoverProps };
|
@@ -1,58 +1,21 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
} from "
|
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
|
-
|
7
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
31
|
-
|
32
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
import { CreateEmits } from "./create-emits-QdHrV9Ip.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
|
+
/**
|
8
|
+
* Props for the {@link BlockHandleAdd} component.
|
9
|
+
*/
|
10
|
+
interface BlockHandleAddProps extends Partial<BlockHandleAddProps$1> {}
|
11
|
+
/**
|
12
|
+
* Emits for the {@link BlockHandleAdd} component.
|
13
|
+
*/
|
14
|
+
interface BlockHandleAddEmits extends CreateEmits<BlockHandleAddEvents> {}
|
15
|
+
declare const BlockHandleAdd: DefineSetupFnComponent<BlockHandleAddProps & HTMLAttributes, BlockHandleAddEmits>;
|
16
|
+
//#endregion
|
17
|
+
//#region src/components/block-handle/block-handle-draggable.gen.d.ts
|
18
|
+
/**
|
19
|
+
* Props for the {@link BlockHandleDraggable} component.
|
20
|
+
*/
|
21
|
+
interface BlockHandleDraggableProps extends Partial<BlockHandleDraggableProps$1> {}
|
22
|
+
/**
|
23
|
+
* Emits for the {@link BlockHandleDraggable} component.
|
24
|
+
*/
|
25
|
+
interface BlockHandleDraggableEmits extends CreateEmits<BlockHandleDraggableEvents> {}
|
26
|
+
declare const BlockHandleDraggable: DefineSetupFnComponent<BlockHandleDraggableProps & HTMLAttributes, BlockHandleDraggableEmits>;
|
27
|
+
//#endregion
|
28
|
+
//#region src/components/block-handle/block-handle-popover.gen.d.ts
|
29
|
+
/**
|
30
|
+
* Props for the {@link BlockHandlePopover} component.
|
31
|
+
*/
|
32
|
+
interface BlockHandlePopoverProps extends Partial<BlockHandlePopoverProps$1> {}
|
33
|
+
/**
|
34
|
+
* Emits for the {@link BlockHandlePopover} component.
|
35
|
+
*/
|
36
|
+
interface BlockHandlePopoverEmits extends CreateEmits<BlockHandlePopoverEvents> {}
|
37
|
+
declare const BlockHandlePopover: DefineSetupFnComponent<BlockHandlePopoverProps & HTMLAttributes, BlockHandlePopoverEmits>;
|
38
|
+
//#endregion
|
39
|
+
export { BlockHandleAdd, BlockHandleAddEmits, BlockHandleAddProps, BlockHandleDraggable, BlockHandleDraggableEmits, BlockHandleDraggableProps, BlockHandlePopover, BlockHandlePopoverEmits, BlockHandlePopoverProps };
|
@@ -1,45 +1,17 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
} from "
|
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
|
-
|
7
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { CreateEmits } from "./create-emits-QdHrV9Ip.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
|
+
/**
|
8
|
+
* Props for the {@link InlinePopover} component.
|
9
|
+
*/
|
10
|
+
interface InlinePopoverProps extends Partial<InlinePopoverProps$1> {}
|
11
|
+
/**
|
12
|
+
* Emits for the {@link InlinePopover} component.
|
13
|
+
*/
|
14
|
+
interface InlinePopoverEmits extends CreateEmits<InlinePopoverEvents> {}
|
15
|
+
declare const InlinePopover: DefineSetupFnComponent<InlinePopoverProps & HTMLAttributes, InlinePopoverEmits>;
|
16
|
+
//#endregion
|
17
|
+
export { InlinePopover, InlinePopoverEmits, InlinePopoverProps };
|
@@ -1,19 +1,9 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
} from "
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
import { CreateEmits } from "./create-emits-QdHrV9Ip.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
|
+
/**
|
8
|
+
* Props for the {@link PopoverContent} component.
|
9
|
+
*/
|
10
|
+
interface PopoverContentProps extends Partial<PopoverContentProps$1> {}
|
11
|
+
/**
|
12
|
+
* Emits for the {@link PopoverContent} component.
|
13
|
+
*/
|
14
|
+
interface PopoverContentEmits extends CreateEmits<PopoverContentEvents> {}
|
15
|
+
declare const PopoverContent: DefineSetupFnComponent<PopoverContentProps & HTMLAttributes, PopoverContentEmits>;
|
16
|
+
//#endregion
|
17
|
+
//#region src/components/popover/popover-root.gen.d.ts
|
18
|
+
/**
|
19
|
+
* Props for the {@link PopoverRoot} component.
|
20
|
+
*/
|
21
|
+
interface PopoverRootProps extends Partial<PopoverRootProps$1> {}
|
22
|
+
/**
|
23
|
+
* Emits for the {@link PopoverRoot} component.
|
24
|
+
*/
|
25
|
+
interface PopoverRootEmits extends CreateEmits<PopoverRootEvents> {}
|
26
|
+
declare const PopoverRoot: DefineSetupFnComponent<PopoverRootProps & HTMLAttributes, PopoverRootEmits>;
|
27
|
+
//#endregion
|
28
|
+
//#region src/components/popover/popover-trigger.gen.d.ts
|
29
|
+
/**
|
30
|
+
* Props for the {@link PopoverTrigger} component.
|
31
|
+
*/
|
32
|
+
interface PopoverTriggerProps extends Partial<PopoverTriggerProps$1> {}
|
33
|
+
/**
|
34
|
+
* Emits for the {@link PopoverTrigger} component.
|
35
|
+
*/
|
36
|
+
interface PopoverTriggerEmits extends CreateEmits<PopoverTriggerEvents> {}
|
37
|
+
declare const PopoverTrigger: DefineSetupFnComponent<PopoverTriggerProps & HTMLAttributes, PopoverTriggerEmits>;
|
38
|
+
//#endregion
|
39
|
+
export { PopoverContent, PopoverContentEmits, PopoverContentProps, PopoverRoot, PopoverRootEmits, PopoverRootProps, PopoverTrigger, PopoverTriggerEmits, PopoverTriggerProps };
|
@@ -1,45 +1,17 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
} from "
|
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
|
-
|
7
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { CreateEmits } from "./create-emits-QdHrV9Ip.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
|
+
/**
|
8
|
+
* Props for the {@link ResizableHandle} component.
|
9
|
+
*/
|
10
|
+
interface ResizableHandleProps extends Partial<ResizableHandleProps$1> {}
|
11
|
+
/**
|
12
|
+
* Emits for the {@link ResizableHandle} component.
|
13
|
+
*/
|
14
|
+
interface ResizableHandleEmits extends CreateEmits<ResizableHandleEvents> {}
|
15
|
+
declare const ResizableHandle: DefineSetupFnComponent<ResizableHandleProps & HTMLAttributes, ResizableHandleEmits>;
|
16
|
+
//#endregion
|
17
|
+
//#region src/components/resizable/resizable-root.gen.d.ts
|
18
|
+
/**
|
19
|
+
* Props for the {@link ResizableRoot} component.
|
20
|
+
*/
|
21
|
+
interface ResizableRootProps extends Partial<ResizableRootProps$1> {}
|
22
|
+
/**
|
23
|
+
* Emits for the {@link ResizableRoot} component.
|
24
|
+
*/
|
25
|
+
interface ResizableRootEmits extends CreateEmits<ResizableRootEvents> {}
|
26
|
+
declare const ResizableRoot: DefineSetupFnComponent<ResizableRootProps & HTMLAttributes, ResizableRootEmits>;
|
27
|
+
//#endregion
|
28
|
+
export { ResizableHandle, ResizableHandleEmits, ResizableHandleProps, ResizableRoot, ResizableRootEmits, ResizableRootProps };
|
@@ -1,32 +1,13 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
} from "
|
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
|
-
|
7
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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 };
|