@prosekit/solid 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.
@@ -0,0 +1,41 @@
1
+ import { useEditorContext } from "./editor-context-DIj_hnDx.js";
2
+ import h from "solid-js/h";
3
+
4
+ //#region src/components/create-component.ts
5
+ function createComponent(tagName, propNames, eventNames) {
6
+ const hasEditor = propNames.includes("editor");
7
+ const lowerCaseEventNameMap = new Map(eventNames.map((name) => [name.toLowerCase(), name]));
8
+ const Component = (props) => {
9
+ const properties = {};
10
+ const eventHandlers = {};
11
+ for (const name of Object.keys(props)) {
12
+ if (propNames.includes(name)) {
13
+ properties["prop:" + name] = () => props[name];
14
+ continue;
15
+ }
16
+ if (name.startsWith("on")) {
17
+ const lowerCaseEventName = name.slice(2).toLowerCase();
18
+ const eventName = lowerCaseEventNameMap.get(lowerCaseEventName);
19
+ if (eventName) {
20
+ const extractDetail = eventName.endsWith("Change");
21
+ eventHandlers["on:" + eventName] = (event) => {
22
+ const handler = props[name];
23
+ if (typeof handler === "function") handler(extractDetail ? event.detail : event);
24
+ };
25
+ continue;
26
+ }
27
+ }
28
+ properties[name] = () => props[name];
29
+ }
30
+ const editor = useEditorContext();
31
+ if (hasEditor && editor) properties["prop:editor"] = () => props["editor"] || editor;
32
+ return h(tagName, {
33
+ ...properties,
34
+ ...eventHandlers
35
+ });
36
+ };
37
+ return Component;
38
+ }
39
+
40
+ //#endregion
41
+ export { createComponent };
@@ -0,0 +1,5 @@
1
+ //#region src/components/create-props.d.ts
2
+ type CreateProps<Props extends { [PropName in keyof Props]: unknown }, Events extends { [EventName in keyof Events]: CustomEvent }> = Props & CreateEventProps<Events>;
3
+ type CreateEventProps<Events extends { [EventName in keyof Events]: CustomEvent }> = { [EventName in keyof Events as `on${Capitalize<string & EventName>}`]: (event: EventName extends `${string}Change` ? Events[EventName]["detail"] : Events[EventName]) => void };
4
+ //#endregion
5
+ export { CreateProps };
@@ -0,0 +1,17 @@
1
+ import { createContext, useContext } from "solid-js";
2
+
3
+ //#region src/contexts/editor-context.ts
4
+ const editorContext = createContext(null);
5
+ /**
6
+ * @internal
7
+ */
8
+ function useEditorContext() {
9
+ return useContext(editorContext);
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ const EditorContextProvider = editorContext.Provider;
15
+
16
+ //#endregion
17
+ export { EditorContextProvider, useEditorContext };
@@ -1,8 +1,35 @@
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 { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup.js';
4
- export { AutocompleteItemProps_alias_1 as AutocompleteItemProps } from './_tsup-dts-rollup.js';
5
- export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup.js';
6
- export { AutocompleteListProps_alias_1 as AutocompleteListProps } from './_tsup-dts-rollup.js';
7
- export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup.js';
8
- export { AutocompletePopoverProps_alias_1 as AutocompletePopoverProps } from './_tsup-dts-rollup.js';
1
+ import { PropsWithElement } from "./types-DFZJMe9D.js";
2
+ import { CreateProps } from "./create-props-B3k6ERfv.js";
3
+ import { Component } from "solid-js";
4
+ import { AutocompleteEmptyElement, AutocompleteEmptyEvents, AutocompleteEmptyProps as AutocompleteEmptyProps$1, AutocompleteItemElement, AutocompleteItemEvents, AutocompleteItemProps as AutocompleteItemProps$1, AutocompleteListElement, AutocompleteListEvents, AutocompleteListProps as AutocompleteListProps$1, AutocompletePopoverElement, AutocompletePopoverEvents, AutocompletePopoverProps as AutocompletePopoverProps$1 } from "@prosekit/web/autocomplete";
5
+
6
+ //#region src/components/autocomplete/autocomplete-empty.gen.d.ts
7
+
8
+ /**
9
+ * Props for the {@link AutocompleteEmpty} component.
10
+ */
11
+ interface AutocompleteEmptyProps extends Partial<CreateProps<AutocompleteEmptyProps$1, AutocompleteEmptyEvents>> {}
12
+ declare const AutocompleteEmpty: Component<PropsWithElement<AutocompleteEmptyProps, AutocompleteEmptyElement>>;
13
+ //#endregion
14
+ //#region src/components/autocomplete/autocomplete-item.gen.d.ts
15
+ /**
16
+ * Props for the {@link AutocompleteItem} component.
17
+ */
18
+ interface AutocompleteItemProps extends Partial<CreateProps<AutocompleteItemProps$1, AutocompleteItemEvents>> {}
19
+ declare const AutocompleteItem: Component<PropsWithElement<AutocompleteItemProps, AutocompleteItemElement>>;
20
+ //#endregion
21
+ //#region src/components/autocomplete/autocomplete-list.gen.d.ts
22
+ /**
23
+ * Props for the {@link AutocompleteList} component.
24
+ */
25
+ interface AutocompleteListProps extends Partial<CreateProps<AutocompleteListProps$1, AutocompleteListEvents>> {}
26
+ declare const AutocompleteList: Component<PropsWithElement<AutocompleteListProps, AutocompleteListElement>>;
27
+ //#endregion
28
+ //#region src/components/autocomplete/autocomplete-popover.gen.d.ts
29
+ /**
30
+ * Props for the {@link AutocompletePopover} component.
31
+ */
32
+ interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps$1, AutocompletePopoverEvents>> {}
33
+ declare const AutocompletePopover: Component<PropsWithElement<AutocompletePopoverProps, AutocompletePopoverElement>>;
34
+ //#endregion
35
+ export { AutocompleteEmpty, AutocompleteEmptyProps, AutocompleteItem, AutocompleteItemProps, AutocompleteList, AutocompleteListProps, AutocompletePopover, AutocompletePopoverProps };
@@ -1,54 +1,21 @@
1
- import {
2
- createComponent
3
- } from "./chunk-BZVX5KNK.js";
4
- import "./chunk-XDDJIQ4M.js";
1
+ import "./editor-context-DIj_hnDx.js";
2
+ import { createComponent } from "./create-component-x4Duyu8z.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
- Object.keys(autocompleteEmptyProps),
14
- Object.keys(autocompleteEmptyEvents)
15
- );
5
+ //#region src/components/autocomplete/autocomplete-empty.gen.ts
6
+ const AutocompleteEmpty = createComponent("prosekit-autocomplete-empty", Object.keys(autocompleteEmptyProps), Object.keys(autocompleteEmptyEvents));
16
7
 
17
- // src/components/autocomplete/autocomplete-item.gen.ts
18
- import {
19
- autocompleteItemProps,
20
- autocompleteItemEvents
21
- } from "@prosekit/web/autocomplete";
22
- var AutocompleteItem = createComponent(
23
- "prosekit-autocomplete-item",
24
- Object.keys(autocompleteItemProps),
25
- Object.keys(autocompleteItemEvents)
26
- );
8
+ //#endregion
9
+ //#region src/components/autocomplete/autocomplete-item.gen.ts
10
+ const AutocompleteItem = createComponent("prosekit-autocomplete-item", Object.keys(autocompleteItemProps), Object.keys(autocompleteItemEvents));
27
11
 
28
- // src/components/autocomplete/autocomplete-list.gen.ts
29
- import {
30
- autocompleteListProps,
31
- autocompleteListEvents
32
- } from "@prosekit/web/autocomplete";
33
- var AutocompleteList = createComponent(
34
- "prosekit-autocomplete-list",
35
- Object.keys(autocompleteListProps),
36
- Object.keys(autocompleteListEvents)
37
- );
12
+ //#endregion
13
+ //#region src/components/autocomplete/autocomplete-list.gen.ts
14
+ const AutocompleteList = createComponent("prosekit-autocomplete-list", Object.keys(autocompleteListProps), Object.keys(autocompleteListEvents));
38
15
 
39
- // src/components/autocomplete/autocomplete-popover.gen.ts
40
- import {
41
- autocompletePopoverProps,
42
- autocompletePopoverEvents
43
- } from "@prosekit/web/autocomplete";
44
- var AutocompletePopover = createComponent(
45
- "prosekit-autocomplete-popover",
46
- Object.keys(autocompletePopoverProps),
47
- Object.keys(autocompletePopoverEvents)
48
- );
49
- export {
50
- AutocompleteEmpty,
51
- AutocompleteItem,
52
- AutocompleteList,
53
- AutocompletePopover
54
- };
16
+ //#endregion
17
+ //#region src/components/autocomplete/autocomplete-popover.gen.ts
18
+ const AutocompletePopover = createComponent("prosekit-autocomplete-popover", Object.keys(autocompletePopoverProps), Object.keys(autocompletePopoverEvents));
19
+
20
+ //#endregion
21
+ export { AutocompleteEmpty, AutocompleteItem, AutocompleteList, AutocompletePopover };
@@ -1,6 +1,28 @@
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 { BlockHandleDraggable_alias_1 as BlockHandleDraggable } from './_tsup-dts-rollup.js';
4
- export { BlockHandleDraggableProps_alias_1 as BlockHandleDraggableProps } from './_tsup-dts-rollup.js';
5
- export { BlockHandlePopover_alias_1 as BlockHandlePopover } from './_tsup-dts-rollup.js';
6
- export { BlockHandlePopoverProps_alias_1 as BlockHandlePopoverProps } from './_tsup-dts-rollup.js';
1
+ import { PropsWithElement } from "./types-DFZJMe9D.js";
2
+ import { CreateProps } from "./create-props-B3k6ERfv.js";
3
+ import { Component } from "solid-js";
4
+ import { BlockHandleAddElement, BlockHandleAddEvents, BlockHandleAddProps as BlockHandleAddProps$1, BlockHandleDraggableElement, BlockHandleDraggableEvents, BlockHandleDraggableProps as BlockHandleDraggableProps$1, BlockHandlePopoverElement, BlockHandlePopoverEvents, BlockHandlePopoverProps as BlockHandlePopoverProps$1 } from "@prosekit/web/block-handle";
5
+
6
+ //#region src/components/block-handle/block-handle-add.gen.d.ts
7
+
8
+ /**
9
+ * Props for the {@link BlockHandleAdd} component.
10
+ */
11
+ interface BlockHandleAddProps extends Partial<CreateProps<BlockHandleAddProps$1, BlockHandleAddEvents>> {}
12
+ declare const BlockHandleAdd: Component<PropsWithElement<BlockHandleAddProps, BlockHandleAddElement>>;
13
+ //#endregion
14
+ //#region src/components/block-handle/block-handle-draggable.gen.d.ts
15
+ /**
16
+ * Props for the {@link BlockHandleDraggable} component.
17
+ */
18
+ interface BlockHandleDraggableProps extends Partial<CreateProps<BlockHandleDraggableProps$1, BlockHandleDraggableEvents>> {}
19
+ declare const BlockHandleDraggable: Component<PropsWithElement<BlockHandleDraggableProps, BlockHandleDraggableElement>>;
20
+ //#endregion
21
+ //#region src/components/block-handle/block-handle-popover.gen.d.ts
22
+ /**
23
+ * Props for the {@link BlockHandlePopover} component.
24
+ */
25
+ interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps$1, BlockHandlePopoverEvents>> {}
26
+ declare const BlockHandlePopover: Component<PropsWithElement<BlockHandlePopoverProps, BlockHandlePopoverElement>>;
27
+ //#endregion
28
+ export { BlockHandleAdd, BlockHandleAddProps, BlockHandleDraggable, BlockHandleDraggableProps, BlockHandlePopover, BlockHandlePopoverProps };
@@ -1,42 +1,17 @@
1
- import {
2
- createComponent
3
- } from "./chunk-BZVX5KNK.js";
4
- import "./chunk-XDDJIQ4M.js";
1
+ import "./editor-context-DIj_hnDx.js";
2
+ import { createComponent } from "./create-component-x4Duyu8z.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
- Object.keys(blockHandleAddProps),
14
- Object.keys(blockHandleAddEvents)
15
- );
5
+ //#region src/components/block-handle/block-handle-add.gen.ts
6
+ const BlockHandleAdd = createComponent("prosekit-block-handle-add", Object.keys(blockHandleAddProps), Object.keys(blockHandleAddEvents));
16
7
 
17
- // src/components/block-handle/block-handle-draggable.gen.ts
18
- import {
19
- blockHandleDraggableProps,
20
- blockHandleDraggableEvents
21
- } from "@prosekit/web/block-handle";
22
- var BlockHandleDraggable = createComponent(
23
- "prosekit-block-handle-draggable",
24
- Object.keys(blockHandleDraggableProps),
25
- Object.keys(blockHandleDraggableEvents)
26
- );
8
+ //#endregion
9
+ //#region src/components/block-handle/block-handle-draggable.gen.ts
10
+ const BlockHandleDraggable = createComponent("prosekit-block-handle-draggable", Object.keys(blockHandleDraggableProps), Object.keys(blockHandleDraggableEvents));
27
11
 
28
- // src/components/block-handle/block-handle-popover.gen.ts
29
- import {
30
- blockHandlePopoverProps,
31
- blockHandlePopoverEvents
32
- } from "@prosekit/web/block-handle";
33
- var BlockHandlePopover = createComponent(
34
- "prosekit-block-handle-popover",
35
- Object.keys(blockHandlePopoverProps),
36
- Object.keys(blockHandlePopoverEvents)
37
- );
38
- export {
39
- BlockHandleAdd,
40
- BlockHandleDraggable,
41
- BlockHandlePopover
42
- };
12
+ //#endregion
13
+ //#region src/components/block-handle/block-handle-popover.gen.ts
14
+ const BlockHandlePopover = createComponent("prosekit-block-handle-popover", Object.keys(blockHandlePopoverProps), Object.keys(blockHandlePopoverEvents));
15
+
16
+ //#endregion
17
+ export { BlockHandleAdd, BlockHandleDraggable, BlockHandlePopover };
@@ -1,2 +1,14 @@
1
- export { InlinePopover } from './_tsup-dts-rollup.js';
2
- export { InlinePopoverProps } from './_tsup-dts-rollup.js';
1
+ import { PropsWithElement } from "./types-DFZJMe9D.js";
2
+ import { CreateProps } from "./create-props-B3k6ERfv.js";
3
+ import { Component } from "solid-js";
4
+ import { InlinePopoverElement, InlinePopoverEvents, InlinePopoverProps as InlinePopoverProps$1 } from "@prosekit/web/inline-popover";
5
+
6
+ //#region src/components/inline-popover/inline-popover.gen.d.ts
7
+
8
+ /**
9
+ * Props for the {@link InlinePopover} component.
10
+ */
11
+ interface InlinePopoverProps extends Partial<CreateProps<InlinePopoverProps$1, InlinePopoverEvents>> {}
12
+ declare const InlinePopover: Component<PropsWithElement<InlinePopoverProps, InlinePopoverElement>>;
13
+ //#endregion
14
+ export { InlinePopover, InlinePopoverProps };
@@ -1,18 +1,9 @@
1
- import {
2
- createComponent
3
- } from "./chunk-BZVX5KNK.js";
4
- import "./chunk-XDDJIQ4M.js";
1
+ import "./editor-context-DIj_hnDx.js";
2
+ import { createComponent } from "./create-component-x4Duyu8z.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
- Object.keys(inlinePopoverProps),
14
- Object.keys(inlinePopoverEvents)
15
- );
16
- export {
17
- InlinePopover
18
- };
5
+ //#region src/components/inline-popover/inline-popover.gen.ts
6
+ const InlinePopover = createComponent("prosekit-inline-popover", Object.keys(inlinePopoverProps), Object.keys(inlinePopoverEvents));
7
+
8
+ //#endregion
9
+ export { InlinePopover };
@@ -1,6 +1,28 @@
1
- export { PopoverContent } from './_tsup-dts-rollup.js';
2
- export { PopoverContentProps } from './_tsup-dts-rollup.js';
3
- export { PopoverRoot } from './_tsup-dts-rollup.js';
4
- export { PopoverRootProps } from './_tsup-dts-rollup.js';
5
- export { PopoverTrigger } from './_tsup-dts-rollup.js';
6
- export { PopoverTriggerProps } from './_tsup-dts-rollup.js';
1
+ import { PropsWithElement } from "./types-DFZJMe9D.js";
2
+ import { CreateProps } from "./create-props-B3k6ERfv.js";
3
+ import { Component } from "solid-js";
4
+ import { PopoverContentElement, PopoverContentEvents, PopoverContentProps as PopoverContentProps$1, PopoverRootElement, PopoverRootEvents, PopoverRootProps as PopoverRootProps$1, PopoverTriggerElement, PopoverTriggerEvents, PopoverTriggerProps as PopoverTriggerProps$1 } from "@prosekit/web/popover";
5
+
6
+ //#region src/components/popover/popover-content.gen.d.ts
7
+
8
+ /**
9
+ * Props for the {@link PopoverContent} component.
10
+ */
11
+ interface PopoverContentProps extends Partial<CreateProps<PopoverContentProps$1, PopoverContentEvents>> {}
12
+ declare const PopoverContent: Component<PropsWithElement<PopoverContentProps, PopoverContentElement>>;
13
+ //#endregion
14
+ //#region src/components/popover/popover-root.gen.d.ts
15
+ /**
16
+ * Props for the {@link PopoverRoot} component.
17
+ */
18
+ interface PopoverRootProps extends Partial<CreateProps<PopoverRootProps$1, PopoverRootEvents>> {}
19
+ declare const PopoverRoot: Component<PropsWithElement<PopoverRootProps, PopoverRootElement>>;
20
+ //#endregion
21
+ //#region src/components/popover/popover-trigger.gen.d.ts
22
+ /**
23
+ * Props for the {@link PopoverTrigger} component.
24
+ */
25
+ interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps$1, PopoverTriggerEvents>> {}
26
+ declare const PopoverTrigger: Component<PropsWithElement<PopoverTriggerProps, PopoverTriggerElement>>;
27
+ //#endregion
28
+ export { PopoverContent, PopoverContentProps, PopoverRoot, PopoverRootProps, PopoverTrigger, PopoverTriggerProps };
@@ -1,42 +1,17 @@
1
- import {
2
- createComponent
3
- } from "./chunk-BZVX5KNK.js";
4
- import "./chunk-XDDJIQ4M.js";
1
+ import "./editor-context-DIj_hnDx.js";
2
+ import { createComponent } from "./create-component-x4Duyu8z.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
- Object.keys(popoverContentProps),
14
- Object.keys(popoverContentEvents)
15
- );
5
+ //#region src/components/popover/popover-content.gen.ts
6
+ const PopoverContent = createComponent("prosekit-popover-content", Object.keys(popoverContentProps), Object.keys(popoverContentEvents));
16
7
 
17
- // src/components/popover/popover-root.gen.ts
18
- import {
19
- popoverRootProps,
20
- popoverRootEvents
21
- } from "@prosekit/web/popover";
22
- var PopoverRoot = createComponent(
23
- "prosekit-popover-root",
24
- Object.keys(popoverRootProps),
25
- Object.keys(popoverRootEvents)
26
- );
8
+ //#endregion
9
+ //#region src/components/popover/popover-root.gen.ts
10
+ const PopoverRoot = createComponent("prosekit-popover-root", Object.keys(popoverRootProps), Object.keys(popoverRootEvents));
27
11
 
28
- // src/components/popover/popover-trigger.gen.ts
29
- import {
30
- popoverTriggerProps,
31
- popoverTriggerEvents
32
- } from "@prosekit/web/popover";
33
- var PopoverTrigger = createComponent(
34
- "prosekit-popover-trigger",
35
- Object.keys(popoverTriggerProps),
36
- Object.keys(popoverTriggerEvents)
37
- );
38
- export {
39
- PopoverContent,
40
- PopoverRoot,
41
- PopoverTrigger
42
- };
12
+ //#endregion
13
+ //#region src/components/popover/popover-trigger.gen.ts
14
+ const PopoverTrigger = createComponent("prosekit-popover-trigger", Object.keys(popoverTriggerProps), Object.keys(popoverTriggerEvents));
15
+
16
+ //#endregion
17
+ export { PopoverContent, PopoverRoot, PopoverTrigger };
@@ -1,4 +1,21 @@
1
- export { ResizableHandle } from './_tsup-dts-rollup.js';
2
- export { ResizableHandleProps } from './_tsup-dts-rollup.js';
3
- export { ResizableRoot } from './_tsup-dts-rollup.js';
4
- export { ResizableRootProps } from './_tsup-dts-rollup.js';
1
+ import { PropsWithElement } from "./types-DFZJMe9D.js";
2
+ import { CreateProps } from "./create-props-B3k6ERfv.js";
3
+ import { Component } from "solid-js";
4
+ import { ResizableHandleElement, ResizableHandleEvents, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
5
+
6
+ //#region src/components/resizable/resizable-handle.gen.d.ts
7
+
8
+ /**
9
+ * Props for the {@link ResizableHandle} component.
10
+ */
11
+ interface ResizableHandleProps extends Partial<CreateProps<ResizableHandleProps$1, ResizableHandleEvents>> {}
12
+ declare const ResizableHandle: Component<PropsWithElement<ResizableHandleProps, ResizableHandleElement>>;
13
+ //#endregion
14
+ //#region src/components/resizable/resizable-root.gen.d.ts
15
+ /**
16
+ * Props for the {@link ResizableRoot} component.
17
+ */
18
+ interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps$1, ResizableRootEvents>> {}
19
+ declare const ResizableRoot: Component<PropsWithElement<ResizableRootProps, ResizableRootElement>>;
20
+ //#endregion
21
+ export { ResizableHandle, ResizableHandleProps, ResizableRoot, ResizableRootProps };
@@ -1,30 +1,13 @@
1
- import {
2
- createComponent
3
- } from "./chunk-BZVX5KNK.js";
4
- import "./chunk-XDDJIQ4M.js";
1
+ import "./editor-context-DIj_hnDx.js";
2
+ import { createComponent } from "./create-component-x4Duyu8z.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
- Object.keys(resizableHandleProps),
14
- Object.keys(resizableHandleEvents)
15
- );
5
+ //#region src/components/resizable/resizable-handle.gen.ts
6
+ const ResizableHandle = createComponent("prosekit-resizable-handle", Object.keys(resizableHandleProps), Object.keys(resizableHandleEvents));
16
7
 
17
- // src/components/resizable/resizable-root.gen.ts
18
- import {
19
- resizableRootProps,
20
- resizableRootEvents
21
- } from "@prosekit/web/resizable";
22
- var ResizableRoot = createComponent(
23
- "prosekit-resizable-root",
24
- Object.keys(resizableRootProps),
25
- Object.keys(resizableRootEvents)
26
- );
27
- export {
28
- ResizableHandle,
29
- ResizableRoot
30
- };
8
+ //#endregion
9
+ //#region src/components/resizable/resizable-root.gen.ts
10
+ const ResizableRoot = createComponent("prosekit-resizable-root", Object.keys(resizableRootProps), Object.keys(resizableRootEvents));
11
+
12
+ //#endregion
13
+ export { ResizableHandle, ResizableRoot };
@@ -1,14 +1,56 @@
1
- export { TableHandleColumnRoot } from './_tsup-dts-rollup.js';
2
- export { TableHandleColumnRootProps } from './_tsup-dts-rollup.js';
3
- export { TableHandleColumnTrigger } from './_tsup-dts-rollup.js';
4
- export { TableHandleColumnTriggerProps } from './_tsup-dts-rollup.js';
5
- export { TableHandlePopoverContent } from './_tsup-dts-rollup.js';
6
- export { TableHandlePopoverContentProps } from './_tsup-dts-rollup.js';
7
- export { TableHandlePopoverItem } from './_tsup-dts-rollup.js';
8
- export { TableHandlePopoverItemProps } from './_tsup-dts-rollup.js';
9
- export { TableHandleRoot } from './_tsup-dts-rollup.js';
10
- export { TableHandleRootProps } from './_tsup-dts-rollup.js';
11
- export { TableHandleRowRoot } from './_tsup-dts-rollup.js';
12
- export { TableHandleRowRootProps } from './_tsup-dts-rollup.js';
13
- export { TableHandleRowTrigger } from './_tsup-dts-rollup.js';
14
- export { TableHandleRowTriggerProps } from './_tsup-dts-rollup.js';
1
+ import { PropsWithElement } from "./types-DFZJMe9D.js";
2
+ import { CreateProps } from "./create-props-B3k6ERfv.js";
3
+ import { Component } from "solid-js";
4
+ import { TableHandleColumnRootElement, TableHandleColumnRootEvents, TableHandleColumnRootProps as TableHandleColumnRootProps$1, TableHandleColumnTriggerElement, TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps as TableHandleColumnTriggerProps$1, TableHandlePopoverContentElement, TableHandlePopoverContentEvents, TableHandlePopoverContentProps as TableHandlePopoverContentProps$1, TableHandlePopoverItemElement, TableHandlePopoverItemEvents, TableHandlePopoverItemProps as TableHandlePopoverItemProps$1, TableHandleRootElement, TableHandleRootEvents, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowRootElement, TableHandleRowRootEvents, TableHandleRowRootProps as TableHandleRowRootProps$1, TableHandleRowTriggerElement, TableHandleRowTriggerEvents, TableHandleRowTriggerProps as TableHandleRowTriggerProps$1 } from "@prosekit/web/table-handle";
5
+
6
+ //#region src/components/table-handle/table-handle-column-root.gen.d.ts
7
+
8
+ /**
9
+ * Props for the {@link TableHandleColumnRoot} component.
10
+ */
11
+ interface TableHandleColumnRootProps extends Partial<CreateProps<TableHandleColumnRootProps$1, TableHandleColumnRootEvents>> {}
12
+ declare const TableHandleColumnRoot: Component<PropsWithElement<TableHandleColumnRootProps, TableHandleColumnRootElement>>;
13
+ //#endregion
14
+ //#region src/components/table-handle/table-handle-column-trigger.gen.d.ts
15
+ /**
16
+ * Props for the {@link TableHandleColumnTrigger} component.
17
+ */
18
+ interface TableHandleColumnTriggerProps extends Partial<CreateProps<TableHandleColumnTriggerProps$1, TableHandleColumnTriggerEvents>> {}
19
+ declare const TableHandleColumnTrigger: Component<PropsWithElement<TableHandleColumnTriggerProps, TableHandleColumnTriggerElement>>;
20
+ //#endregion
21
+ //#region src/components/table-handle/table-handle-popover-content.gen.d.ts
22
+ /**
23
+ * Props for the {@link TableHandlePopoverContent} component.
24
+ */
25
+ interface TableHandlePopoverContentProps extends Partial<CreateProps<TableHandlePopoverContentProps$1, TableHandlePopoverContentEvents>> {}
26
+ declare const TableHandlePopoverContent: Component<PropsWithElement<TableHandlePopoverContentProps, TableHandlePopoverContentElement>>;
27
+ //#endregion
28
+ //#region src/components/table-handle/table-handle-popover-item.gen.d.ts
29
+ /**
30
+ * Props for the {@link TableHandlePopoverItem} component.
31
+ */
32
+ interface TableHandlePopoverItemProps extends Partial<CreateProps<TableHandlePopoverItemProps$1, TableHandlePopoverItemEvents>> {}
33
+ declare const TableHandlePopoverItem: Component<PropsWithElement<TableHandlePopoverItemProps, TableHandlePopoverItemElement>>;
34
+ //#endregion
35
+ //#region src/components/table-handle/table-handle-root.gen.d.ts
36
+ /**
37
+ * Props for the {@link TableHandleRoot} component.
38
+ */
39
+ interface TableHandleRootProps extends Partial<CreateProps<TableHandleRootProps$1, TableHandleRootEvents>> {}
40
+ declare const TableHandleRoot: Component<PropsWithElement<TableHandleRootProps, TableHandleRootElement>>;
41
+ //#endregion
42
+ //#region src/components/table-handle/table-handle-row-root.gen.d.ts
43
+ /**
44
+ * Props for the {@link TableHandleRowRoot} component.
45
+ */
46
+ interface TableHandleRowRootProps extends Partial<CreateProps<TableHandleRowRootProps$1, TableHandleRowRootEvents>> {}
47
+ declare const TableHandleRowRoot: Component<PropsWithElement<TableHandleRowRootProps, TableHandleRowRootElement>>;
48
+ //#endregion
49
+ //#region src/components/table-handle/table-handle-row-trigger.gen.d.ts
50
+ /**
51
+ * Props for the {@link TableHandleRowTrigger} component.
52
+ */
53
+ interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps$1, TableHandleRowTriggerEvents>> {}
54
+ declare const TableHandleRowTrigger: Component<PropsWithElement<TableHandleRowTriggerProps, TableHandleRowTriggerElement>>;
55
+ //#endregion
56
+ export { TableHandleColumnRoot, TableHandleColumnRootProps, TableHandleColumnTrigger, TableHandleColumnTriggerProps, TableHandlePopoverContent, TableHandlePopoverContentProps, TableHandlePopoverItem, TableHandlePopoverItemProps, TableHandleRoot, TableHandleRootProps, TableHandleRowRoot, TableHandleRowRootProps, TableHandleRowTrigger, TableHandleRowTriggerProps };