@prosekit/solid 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 +71 -82
- package/dist/chunk-XXXIBXNC.js +12 -0
- package/dist/chunk-Z3TWLQOI.js +26 -0
- package/dist/prosekit-solid-autocomplete.d.ts +4 -0
- package/dist/prosekit-solid-autocomplete.js +46 -0
- package/dist/prosekit-solid-block-handle.d.ts +2 -0
- package/dist/prosekit-solid-block-handle.js +26 -0
- package/dist/prosekit-solid-inline-popover.d.ts +0 -1
- package/dist/prosekit-solid-inline-popover.js +11 -8
- package/dist/prosekit-solid-popover.d.ts +3 -2
- package/dist/prosekit-solid-popover.js +32 -9
- package/dist/prosekit-solid-resizable.d.ts +2 -2
- package/dist/prosekit-solid-resizable.js +22 -9
- package/dist/prosekit-solid-tooltip.d.ts +3 -0
- package/dist/prosekit-solid-tooltip.js +36 -0
- package/dist/prosekit-solid.js +7 -12
- package/package.json +24 -111
- package/dist/chunk-RLHZTH3K.js +0 -16
- package/dist/prosekit-solid-autocomplete-empty.d.ts +0 -2
- package/dist/prosekit-solid-autocomplete-empty.js +0 -13
- package/dist/prosekit-solid-autocomplete-item.d.ts +0 -2
- package/dist/prosekit-solid-autocomplete-item.js +0 -13
- package/dist/prosekit-solid-autocomplete-list.d.ts +0 -2
- package/dist/prosekit-solid-autocomplete-list.js +0 -13
- package/dist/prosekit-solid-autocomplete-popover.d.ts +0 -3
- package/dist/prosekit-solid-autocomplete-popover.js +0 -13
- package/dist/prosekit-solid-block-popover.d.ts +0 -2
- package/dist/prosekit-solid-block-popover.js +0 -13
- package/dist/prosekit-solid-combo-box-input.d.ts +0 -2
- package/dist/prosekit-solid-combo-box-input.js +0 -13
- package/dist/prosekit-solid-combo-box-item.d.ts +0 -2
- package/dist/prosekit-solid-combo-box-item.js +0 -13
- package/dist/prosekit-solid-combo-box-list.d.ts +0 -2
- package/dist/prosekit-solid-combo-box-list.js +0 -13
- package/dist/prosekit-solid-combo-box.d.ts +0 -2
- package/dist/prosekit-solid-combo-box.js +0 -13
- package/dist/prosekit-solid-drag-handle.d.ts +0 -2
- package/dist/prosekit-solid-drag-handle.js +0 -13
- package/dist/prosekit-solid-popover-content.d.ts +0 -2
- package/dist/prosekit-solid-popover-content.js +0 -13
- package/dist/prosekit-solid-popover-root.d.ts +0 -2
- package/dist/prosekit-solid-popover-root.js +0 -13
- package/dist/prosekit-solid-popover-trigger.d.ts +0 -2
- package/dist/prosekit-solid-popover-trigger.js +0 -13
- package/dist/prosekit-solid-resizable-handle.d.ts +0 -2
- package/dist/prosekit-solid-resizable-handle.js +0 -13
@@ -1,85 +1,72 @@
|
|
1
1
|
import { Accessor } from 'solid-js';
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
2
|
+
import { AutocompleteEmptyElement } from '@prosekit/web/autocomplete';
|
3
|
+
import { AutocompleteEmptyProps } from '@prosekit/web/autocomplete';
|
4
|
+
import { AutocompleteItemElement } from '@prosekit/web/autocomplete';
|
5
|
+
import { AutocompleteItemProps } from '@prosekit/web/autocomplete';
|
6
|
+
import { AutocompleteListElement } from '@prosekit/web/autocomplete';
|
7
|
+
import { AutocompleteListProps } from '@prosekit/web/autocomplete';
|
8
|
+
import { AutocompletePopoverElement } from '@prosekit/web/autocomplete';
|
9
|
+
import { AutocompletePopoverProps } from '@prosekit/web/autocomplete';
|
10
|
+
import { BlockDragHandleElement } from '@prosekit/web/block-handle';
|
11
|
+
import { BlockDragHandleProps } from '@prosekit/web/block-handle';
|
12
|
+
import { BlockPopoverElement } from '@prosekit/web/block-handle';
|
13
|
+
import { BlockPopoverProps } from '@prosekit/web/block-handle';
|
11
14
|
import { Component } from 'solid-js';
|
12
15
|
import { ContextProviderComponent } from 'solid-js';
|
13
|
-
import type { DragHandleProps as DragHandleProps_2 } from '@prosekit/lit/drag-handle';
|
14
16
|
import { Editor } from '@prosekit/core';
|
15
17
|
import type { EditorState } from '@prosekit/pm/state';
|
16
18
|
import { Extension } from '@prosekit/core';
|
17
|
-
import
|
19
|
+
import { InlinePopoverElement } from '@prosekit/web/inline-popover';
|
20
|
+
import { InlinePopoverProps } from '@prosekit/web/inline-popover';
|
21
|
+
import { JSX } from 'solid-js';
|
18
22
|
import type { JSXElement } from 'solid-js';
|
19
23
|
import { Keymap } from '@prosekit/core';
|
20
24
|
import { Options } from 'tsup';
|
21
25
|
import { ParentProps } from 'solid-js';
|
22
|
-
import
|
23
|
-
import
|
24
|
-
import
|
25
|
-
import
|
26
|
-
import {
|
26
|
+
import { PopoverContentElement } from '@prosekit/web/popover';
|
27
|
+
import { PopoverContentProps } from '@prosekit/web/popover';
|
28
|
+
import { PopoverRootElement } from '@prosekit/web/popover';
|
29
|
+
import { PopoverRootProps } from '@prosekit/web/popover';
|
30
|
+
import { PopoverTriggerElement } from '@prosekit/web/popover';
|
31
|
+
import { PopoverTriggerProps } from '@prosekit/web/popover';
|
27
32
|
import { Priority } from '@prosekit/core';
|
28
33
|
import type { ProseMirrorNode } from '@prosekit/pm/model';
|
29
|
-
import
|
30
|
-
import
|
31
|
-
|
32
|
-
|
34
|
+
import { ResizableHandleElement } from '@prosekit/web/resizable';
|
35
|
+
import { ResizableHandleProps } from '@prosekit/web/resizable';
|
36
|
+
import { ResizableRootElement } from '@prosekit/web/resizable';
|
37
|
+
import { ResizableRootProps } from '@prosekit/web/resizable';
|
38
|
+
import { TooltipContentElement } from '@prosekit/web/tooltip';
|
39
|
+
import { TooltipContentProps } from '@prosekit/web/tooltip';
|
40
|
+
import { TooltipRootElement } from '@prosekit/web/tooltip';
|
41
|
+
import { TooltipRootProps } from '@prosekit/web/tooltip';
|
42
|
+
import { TooltipTriggerElement } from '@prosekit/web/tooltip';
|
43
|
+
import { TooltipTriggerProps } from '@prosekit/web/tooltip';
|
44
|
+
|
45
|
+
declare const AutocompleteEmpty: Component<Partial<AutocompleteEmptyProps> & JSX<AutocompleteEmptyElement>>;
|
33
46
|
export { AutocompleteEmpty }
|
34
47
|
export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
|
35
48
|
|
36
|
-
declare
|
37
|
-
export { AutocompleteEmptyProps }
|
38
|
-
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
39
|
-
|
40
|
-
declare const AutocompleteItem: Component<AutocompleteItemProps>;
|
49
|
+
declare const AutocompleteItem: Component<Partial<AutocompleteItemProps> & JSX<AutocompleteItemElement>>;
|
41
50
|
export { AutocompleteItem }
|
42
51
|
export { AutocompleteItem as AutocompleteItem_alias_1 }
|
43
52
|
|
44
|
-
declare
|
45
|
-
export { AutocompleteItemProps }
|
46
|
-
export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
|
47
|
-
|
48
|
-
declare const AutocompleteList: Component<AutocompleteListProps>;
|
53
|
+
declare const AutocompleteList: Component<Partial<AutocompleteListProps> & JSX<AutocompleteListElement>>;
|
49
54
|
export { AutocompleteList }
|
50
55
|
export { AutocompleteList as AutocompleteList_alias_1 }
|
51
56
|
|
52
|
-
declare
|
53
|
-
export { AutocompleteListProps }
|
54
|
-
export { AutocompleteListProps as AutocompleteListProps_alias_1 }
|
55
|
-
|
56
|
-
declare const AutocompletePopover: Component<AutocompletePopoverProps>;
|
57
|
+
declare const AutocompletePopover: Component<Partial<AutocompletePopoverProps> & JSX<AutocompletePopoverElement>>;
|
57
58
|
export { AutocompletePopover }
|
58
59
|
export { AutocompletePopover as AutocompletePopover_alias_1 }
|
59
60
|
|
60
|
-
declare
|
61
|
-
export {
|
62
|
-
export {
|
63
|
-
|
64
|
-
export declare const BlockPopover: Component<BlockPopoverProps>;
|
65
|
-
|
66
|
-
export declare type BlockPopoverProps = PropsWithChildren<PropsWithClass<BlockPopoverProps_2>>;
|
67
|
-
|
68
|
-
export declare const ComboBox: Component<ComboBoxProps>;
|
69
|
-
|
70
|
-
export declare const ComboBoxInput: Component<ComboBoxInputProps>;
|
71
|
-
|
72
|
-
export declare type ComboBoxInputProps = PropsWithChildren<PropsWithClass<ComboBoxInputProps_2>>;
|
73
|
-
|
74
|
-
export declare const ComboBoxItem: Component<ComboBoxItemProps>;
|
75
|
-
|
76
|
-
export declare type ComboBoxItemProps = PropsWithChildren<PropsWithClass<ComboBoxItemProps_2>>;
|
61
|
+
declare const BlockDragHandle: Component<Partial<BlockDragHandleProps> & JSX<BlockDragHandleElement>>;
|
62
|
+
export { BlockDragHandle }
|
63
|
+
export { BlockDragHandle as BlockDragHandle_alias_1 }
|
77
64
|
|
78
|
-
|
65
|
+
declare const BlockPopover: Component<Partial<BlockPopoverProps> & JSX<BlockPopoverElement>>;
|
66
|
+
export { BlockPopover }
|
67
|
+
export { BlockPopover as BlockPopover_alias_1 }
|
79
68
|
|
80
|
-
export declare
|
81
|
-
|
82
|
-
export declare type ComboBoxProps = PropsWithChildren<PropsWithClass<ComboBoxProps_2>>;
|
69
|
+
export declare function createComponent<Props extends object, CustomElement extends HTMLElement>(tagName: string, defaultProps: Props): Component<Partial<Props> & JSX.HTMLAttributes<CustomElement>>;
|
83
70
|
|
84
71
|
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
85
72
|
|
@@ -89,10 +76,6 @@ export declare const default_alias_1: {
|
|
89
76
|
};
|
90
77
|
};
|
91
78
|
|
92
|
-
export declare const DragHandle: Component<DragHandleProps>;
|
93
|
-
|
94
|
-
export declare type DragHandleProps = PropsWithChildren<PropsWithClass<DragHandleProps_2>>;
|
95
|
-
|
96
79
|
/**
|
97
80
|
* @internal
|
98
81
|
*/
|
@@ -100,9 +83,9 @@ export declare const EditorContextProvider: ContextProviderComponent<Editor<any>
|
|
100
83
|
|
101
84
|
export declare function forceProps<T extends Record<string, any>>(props: T): T;
|
102
85
|
|
103
|
-
|
104
|
-
|
105
|
-
export
|
86
|
+
declare const InlinePopover: Component<Partial<InlinePopoverProps> & JSX<InlinePopoverElement>>;
|
87
|
+
export { InlinePopover }
|
88
|
+
export { InlinePopover as InlinePopover_alias_1 }
|
106
89
|
|
107
90
|
/**
|
108
91
|
* T or a reactive/non-reactive function returning T
|
@@ -127,23 +110,17 @@ export { MaybeAccessor as MaybeAccessor_alias_1 }
|
|
127
110
|
*/
|
128
111
|
export declare type MaybeAccessorValue<T extends MaybeAccessor<any>> = T extends () => any ? ReturnType<T> : T;
|
129
112
|
|
130
|
-
|
131
|
-
|
132
|
-
export
|
133
|
-
|
134
|
-
export declare type PopoverContentProps = PropsWithChildren<PropsWithClass<PopoverContentProps_2>>;
|
113
|
+
declare const PopoverContent: Component<Partial<PopoverContentProps> & JSX<PopoverContentElement>>;
|
114
|
+
export { PopoverContent }
|
115
|
+
export { PopoverContent as PopoverContent_alias_1 }
|
135
116
|
|
136
|
-
|
117
|
+
declare const PopoverRoot: Component<Partial<PopoverRootProps> & JSX<PopoverRootElement>>;
|
118
|
+
export { PopoverRoot }
|
119
|
+
export { PopoverRoot as PopoverRoot_alias_1 }
|
137
120
|
|
138
|
-
|
139
|
-
|
140
|
-
export
|
141
|
-
|
142
|
-
export declare const PopoverTrigger: Component<PopoverTriggerProps>;
|
143
|
-
|
144
|
-
export declare type PopoverTriggerProps = PropsWithChildren<PropsWithClass<PopoverTriggerProps_2>>;
|
145
|
-
|
146
|
-
export { PositioningOptions }
|
121
|
+
declare const PopoverTrigger: Component<Partial<PopoverTriggerProps> & JSX<PopoverTriggerElement>>;
|
122
|
+
export { PopoverTrigger }
|
123
|
+
export { PopoverTrigger as PopoverTrigger_alias_1 }
|
147
124
|
|
148
125
|
/**
|
149
126
|
* @internal
|
@@ -178,13 +155,25 @@ declare type ProseKitProps = ParentProps<{
|
|
178
155
|
export { ProseKitProps }
|
179
156
|
export { ProseKitProps as ProseKitProps_alias_1 }
|
180
157
|
|
181
|
-
|
158
|
+
declare const ResizableHandle: Component<Partial<ResizableHandleProps> & JSX<ResizableHandleElement>>;
|
159
|
+
export { ResizableHandle }
|
160
|
+
export { ResizableHandle as ResizableHandle_alias_1 }
|
161
|
+
|
162
|
+
declare const ResizableRoot: Component<Partial<ResizableRootProps> & JSX<ResizableRootElement>>;
|
163
|
+
export { ResizableRoot }
|
164
|
+
export { ResizableRoot as ResizableRoot_alias_1 }
|
182
165
|
|
183
|
-
|
166
|
+
declare const TooltipContent: Component<Partial<TooltipContentProps> & JSX<TooltipContentElement>>;
|
167
|
+
export { TooltipContent }
|
168
|
+
export { TooltipContent as TooltipContent_alias_1 }
|
184
169
|
|
185
|
-
|
170
|
+
declare const TooltipRoot: Component<Partial<TooltipRootProps> & JSX<TooltipRootElement>>;
|
171
|
+
export { TooltipRoot }
|
172
|
+
export { TooltipRoot as TooltipRoot_alias_1 }
|
186
173
|
|
187
|
-
|
174
|
+
declare const TooltipTrigger: Component<Partial<TooltipTriggerProps> & JSX<TooltipTriggerElement>>;
|
175
|
+
export { TooltipTrigger }
|
176
|
+
export { TooltipTrigger as TooltipTrigger_alias_1 }
|
188
177
|
|
189
178
|
/**
|
190
179
|
* Accesses the value of a MaybeAccessor
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// src/contexts/editor-context.ts
|
2
|
+
import { createContext, useContext } from "solid-js";
|
3
|
+
var editorContext = createContext(null);
|
4
|
+
function useEditorContext() {
|
5
|
+
return useContext(editorContext);
|
6
|
+
}
|
7
|
+
var EditorContextProvider = editorContext.Provider;
|
8
|
+
|
9
|
+
export {
|
10
|
+
useEditorContext,
|
11
|
+
EditorContextProvider
|
12
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import {
|
2
|
+
useEditorContext
|
3
|
+
} from "./chunk-XXXIBXNC.js";
|
4
|
+
|
5
|
+
// src/components/create-component.ts
|
6
|
+
import h from "solid-js/h";
|
7
|
+
function createComponent(tagName, defaultProps) {
|
8
|
+
const propertyNames = Object.keys(defaultProps);
|
9
|
+
const hasEditor = Object.hasOwn(defaultProps, "editor");
|
10
|
+
const Component = (props) => {
|
11
|
+
const p = {};
|
12
|
+
for (const key of Object.keys(props)) {
|
13
|
+
p[propertyNames.includes(key) ? "prop:" + key : key] = () => props[key];
|
14
|
+
}
|
15
|
+
const editor = useEditorContext();
|
16
|
+
if (hasEditor && editor) {
|
17
|
+
p["prop:editor"] = () => props["editor"] || editor;
|
18
|
+
}
|
19
|
+
return h(tagName, p);
|
20
|
+
};
|
21
|
+
return Component;
|
22
|
+
}
|
23
|
+
|
24
|
+
export {
|
25
|
+
createComponent
|
26
|
+
};
|
@@ -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,46 @@
|
|
1
|
+
import {
|
2
|
+
createComponent
|
3
|
+
} from "./chunk-Z3TWLQOI.js";
|
4
|
+
import "./chunk-XXXIBXNC.js";
|
5
|
+
|
6
|
+
// src/components/autocomplete/autocomplete-empty.gen.ts
|
7
|
+
import {
|
8
|
+
defaultAutocompleteEmptyProps
|
9
|
+
} from "@prosekit/web/autocomplete";
|
10
|
+
var AutocompleteEmpty = createComponent(
|
11
|
+
"prosekit-autocomplete-empty",
|
12
|
+
defaultAutocompleteEmptyProps
|
13
|
+
);
|
14
|
+
|
15
|
+
// src/components/autocomplete/autocomplete-item.gen.ts
|
16
|
+
import {
|
17
|
+
defaultAutocompleteItemProps
|
18
|
+
} from "@prosekit/web/autocomplete";
|
19
|
+
var AutocompleteItem = createComponent(
|
20
|
+
"prosekit-autocomplete-item",
|
21
|
+
defaultAutocompleteItemProps
|
22
|
+
);
|
23
|
+
|
24
|
+
// src/components/autocomplete/autocomplete-list.gen.ts
|
25
|
+
import {
|
26
|
+
defaultAutocompleteListProps
|
27
|
+
} from "@prosekit/web/autocomplete";
|
28
|
+
var AutocompleteList = createComponent(
|
29
|
+
"prosekit-autocomplete-list",
|
30
|
+
defaultAutocompleteListProps
|
31
|
+
);
|
32
|
+
|
33
|
+
// src/components/autocomplete/autocomplete-popover.gen.ts
|
34
|
+
import {
|
35
|
+
defaultAutocompletePopoverProps
|
36
|
+
} from "@prosekit/web/autocomplete";
|
37
|
+
var AutocompletePopover = createComponent(
|
38
|
+
"prosekit-autocomplete-popover",
|
39
|
+
defaultAutocompletePopoverProps
|
40
|
+
);
|
41
|
+
export {
|
42
|
+
AutocompleteEmpty,
|
43
|
+
AutocompleteItem,
|
44
|
+
AutocompleteList,
|
45
|
+
AutocompletePopover
|
46
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import {
|
2
|
+
createComponent
|
3
|
+
} from "./chunk-Z3TWLQOI.js";
|
4
|
+
import "./chunk-XXXIBXNC.js";
|
5
|
+
|
6
|
+
// src/components/block-handle/block-drag-handle.gen.ts
|
7
|
+
import {
|
8
|
+
defaultBlockDragHandleProps
|
9
|
+
} from "@prosekit/web/block-handle";
|
10
|
+
var BlockDragHandle = createComponent(
|
11
|
+
"prosekit-block-drag-handle",
|
12
|
+
defaultBlockDragHandleProps
|
13
|
+
);
|
14
|
+
|
15
|
+
// src/components/block-handle/block-popover.gen.ts
|
16
|
+
import {
|
17
|
+
defaultBlockPopoverProps
|
18
|
+
} from "@prosekit/web/block-handle";
|
19
|
+
var BlockPopover = createComponent(
|
20
|
+
"prosekit-block-popover",
|
21
|
+
defaultBlockPopoverProps
|
22
|
+
);
|
23
|
+
export {
|
24
|
+
BlockDragHandle,
|
25
|
+
BlockPopover
|
26
|
+
};
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "./chunk-
|
2
|
+
createComponent
|
3
|
+
} from "./chunk-Z3TWLQOI.js";
|
4
|
+
import "./chunk-XXXIBXNC.js";
|
4
5
|
|
5
|
-
// src/components/inline-popover.gen.ts
|
6
|
-
import
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
// src/components/inline-popover/inline-popover.gen.ts
|
7
|
+
import {
|
8
|
+
defaultInlinePopoverProps
|
9
|
+
} from "@prosekit/web/inline-popover";
|
10
|
+
var InlinePopover = createComponent(
|
11
|
+
"prosekit-inline-popover",
|
12
|
+
defaultInlinePopoverProps
|
13
|
+
);
|
11
14
|
export {
|
12
15
|
InlinePopover
|
13
16
|
};
|
@@ -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,13 +1,36 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "./chunk-
|
2
|
+
createComponent
|
3
|
+
} from "./chunk-Z3TWLQOI.js";
|
4
|
+
import "./chunk-XXXIBXNC.js";
|
4
5
|
|
5
|
-
// src/components/popover.gen.ts
|
6
|
-
import
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
// src/components/popover/popover-content.gen.ts
|
7
|
+
import {
|
8
|
+
defaultPopoverContentProps
|
9
|
+
} from "@prosekit/web/popover";
|
10
|
+
var PopoverContent = createComponent(
|
11
|
+
"prosekit-popover-content",
|
12
|
+
defaultPopoverContentProps
|
13
|
+
);
|
14
|
+
|
15
|
+
// src/components/popover/popover-root.gen.ts
|
16
|
+
import {
|
17
|
+
defaultPopoverRootProps
|
18
|
+
} from "@prosekit/web/popover";
|
19
|
+
var PopoverRoot = createComponent(
|
20
|
+
"prosekit-popover-root",
|
21
|
+
defaultPopoverRootProps
|
22
|
+
);
|
23
|
+
|
24
|
+
// src/components/popover/popover-trigger.gen.ts
|
25
|
+
import {
|
26
|
+
defaultPopoverTriggerProps
|
27
|
+
} from "@prosekit/web/popover";
|
28
|
+
var PopoverTrigger = createComponent(
|
29
|
+
"prosekit-popover-trigger",
|
30
|
+
defaultPopoverTriggerProps
|
31
|
+
);
|
11
32
|
export {
|
12
|
-
|
33
|
+
PopoverContent,
|
34
|
+
PopoverRoot,
|
35
|
+
PopoverTrigger
|
13
36
|
};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
1
|
+
export { ResizableHandle } from './_tsup-dts-rollup';
|
2
|
+
export { ResizableRoot } from './_tsup-dts-rollup';
|
@@ -1,13 +1,26 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "./chunk-
|
2
|
+
createComponent
|
3
|
+
} from "./chunk-Z3TWLQOI.js";
|
4
|
+
import "./chunk-XXXIBXNC.js";
|
4
5
|
|
5
|
-
// src/components/resizable.gen.ts
|
6
|
-
import
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
// src/components/resizable/resizable-handle.gen.ts
|
7
|
+
import {
|
8
|
+
defaultResizableHandleProps
|
9
|
+
} from "@prosekit/web/resizable";
|
10
|
+
var ResizableHandle = createComponent(
|
11
|
+
"prosekit-resizable-handle",
|
12
|
+
defaultResizableHandleProps
|
13
|
+
);
|
14
|
+
|
15
|
+
// src/components/resizable/resizable-root.gen.ts
|
16
|
+
import {
|
17
|
+
defaultResizableRootProps
|
18
|
+
} from "@prosekit/web/resizable";
|
19
|
+
var ResizableRoot = createComponent(
|
20
|
+
"prosekit-resizable-root",
|
21
|
+
defaultResizableRootProps
|
22
|
+
);
|
11
23
|
export {
|
12
|
-
|
24
|
+
ResizableHandle,
|
25
|
+
ResizableRoot
|
13
26
|
};
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import {
|
2
|
+
createComponent
|
3
|
+
} from "./chunk-Z3TWLQOI.js";
|
4
|
+
import "./chunk-XXXIBXNC.js";
|
5
|
+
|
6
|
+
// src/components/tooltip/tooltip-content.gen.ts
|
7
|
+
import {
|
8
|
+
defaultTooltipContentProps
|
9
|
+
} from "@prosekit/web/tooltip";
|
10
|
+
var TooltipContent = createComponent(
|
11
|
+
"prosekit-tooltip-content",
|
12
|
+
defaultTooltipContentProps
|
13
|
+
);
|
14
|
+
|
15
|
+
// src/components/tooltip/tooltip-root.gen.ts
|
16
|
+
import {
|
17
|
+
defaultTooltipRootProps
|
18
|
+
} from "@prosekit/web/tooltip";
|
19
|
+
var TooltipRoot = createComponent(
|
20
|
+
"prosekit-tooltip-root",
|
21
|
+
defaultTooltipRootProps
|
22
|
+
);
|
23
|
+
|
24
|
+
// src/components/tooltip/tooltip-trigger.gen.ts
|
25
|
+
import {
|
26
|
+
defaultTooltipTriggerProps
|
27
|
+
} from "@prosekit/web/tooltip";
|
28
|
+
var TooltipTrigger = createComponent(
|
29
|
+
"prosekit-tooltip-trigger",
|
30
|
+
defaultTooltipTriggerProps
|
31
|
+
);
|
32
|
+
export {
|
33
|
+
TooltipContent,
|
34
|
+
TooltipRoot,
|
35
|
+
TooltipTrigger
|
36
|
+
};
|
package/dist/prosekit-solid.js
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
import { createContext, useContext } from "solid-js";
|
6
|
-
var editorContext = createContext(null);
|
7
|
-
function useEditorContext() {
|
8
|
-
return useContext(editorContext);
|
9
|
-
}
|
10
|
-
var EditorContextProvider = editorContext.Provider;
|
1
|
+
import {
|
2
|
+
EditorContextProvider,
|
3
|
+
useEditorContext
|
4
|
+
} from "./chunk-XXXIBXNC.js";
|
11
5
|
|
12
6
|
// src/components/prosekit.ts
|
7
|
+
import { createComponent } from "solid-js";
|
13
8
|
var ProseKit = (props) => {
|
14
9
|
return createComponent(EditorContextProvider, {
|
15
10
|
get value() {
|
@@ -72,9 +67,9 @@ function toValue(v) {
|
|
72
67
|
|
73
68
|
// src/hooks/use-editor-extension.ts
|
74
69
|
function useEditorExtension(editorAccessor, extensionAccessor) {
|
75
|
-
const
|
70
|
+
const editorContext = useEditorContext();
|
76
71
|
createEffect2(() => {
|
77
|
-
const editor = toValue(editorAccessor) || toValue(
|
72
|
+
const editor = toValue(editorAccessor) || toValue(editorContext);
|
78
73
|
const extension = extensionAccessor();
|
79
74
|
if (!editor) {
|
80
75
|
throw new EditorNotFoundError();
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/solid",
|
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-solid.js",
|
31
31
|
"default": "./dist/prosekit-solid.js"
|
32
32
|
},
|
33
|
-
"./autocomplete
|
34
|
-
"types": "./dist/prosekit-solid-autocomplete
|
35
|
-
"import": "./dist/prosekit-solid-autocomplete
|
36
|
-
"default": "./dist/prosekit-solid-autocomplete
|
33
|
+
"./autocomplete": {
|
34
|
+
"types": "./dist/prosekit-solid-autocomplete.d.ts",
|
35
|
+
"import": "./dist/prosekit-solid-autocomplete.js",
|
36
|
+
"default": "./dist/prosekit-solid-autocomplete.js"
|
37
37
|
},
|
38
|
-
"./
|
39
|
-
"types": "./dist/prosekit-solid-
|
40
|
-
"import": "./dist/prosekit-solid-
|
41
|
-
"default": "./dist/prosekit-solid-
|
42
|
-
},
|
43
|
-
"./autocomplete-list": {
|
44
|
-
"types": "./dist/prosekit-solid-autocomplete-list.d.ts",
|
45
|
-
"import": "./dist/prosekit-solid-autocomplete-list.js",
|
46
|
-
"default": "./dist/prosekit-solid-autocomplete-list.js"
|
47
|
-
},
|
48
|
-
"./autocomplete-popover": {
|
49
|
-
"types": "./dist/prosekit-solid-autocomplete-popover.d.ts",
|
50
|
-
"import": "./dist/prosekit-solid-autocomplete-popover.js",
|
51
|
-
"default": "./dist/prosekit-solid-autocomplete-popover.js"
|
52
|
-
},
|
53
|
-
"./block-popover": {
|
54
|
-
"types": "./dist/prosekit-solid-block-popover.d.ts",
|
55
|
-
"import": "./dist/prosekit-solid-block-popover.js",
|
56
|
-
"default": "./dist/prosekit-solid-block-popover.js"
|
57
|
-
},
|
58
|
-
"./combo-box": {
|
59
|
-
"types": "./dist/prosekit-solid-combo-box.d.ts",
|
60
|
-
"import": "./dist/prosekit-solid-combo-box.js",
|
61
|
-
"default": "./dist/prosekit-solid-combo-box.js"
|
62
|
-
},
|
63
|
-
"./combo-box-input": {
|
64
|
-
"types": "./dist/prosekit-solid-combo-box-input.d.ts",
|
65
|
-
"import": "./dist/prosekit-solid-combo-box-input.js",
|
66
|
-
"default": "./dist/prosekit-solid-combo-box-input.js"
|
67
|
-
},
|
68
|
-
"./combo-box-item": {
|
69
|
-
"types": "./dist/prosekit-solid-combo-box-item.d.ts",
|
70
|
-
"import": "./dist/prosekit-solid-combo-box-item.js",
|
71
|
-
"default": "./dist/prosekit-solid-combo-box-item.js"
|
72
|
-
},
|
73
|
-
"./combo-box-list": {
|
74
|
-
"types": "./dist/prosekit-solid-combo-box-list.d.ts",
|
75
|
-
"import": "./dist/prosekit-solid-combo-box-list.js",
|
76
|
-
"default": "./dist/prosekit-solid-combo-box-list.js"
|
77
|
-
},
|
78
|
-
"./drag-handle": {
|
79
|
-
"types": "./dist/prosekit-solid-drag-handle.d.ts",
|
80
|
-
"import": "./dist/prosekit-solid-drag-handle.js",
|
81
|
-
"default": "./dist/prosekit-solid-drag-handle.js"
|
38
|
+
"./block-handle": {
|
39
|
+
"types": "./dist/prosekit-solid-block-handle.d.ts",
|
40
|
+
"import": "./dist/prosekit-solid-block-handle.js",
|
41
|
+
"default": "./dist/prosekit-solid-block-handle.js"
|
82
42
|
},
|
83
43
|
"./inline-popover": {
|
84
44
|
"types": "./dist/prosekit-solid-inline-popover.d.ts",
|
@@ -90,30 +50,15 @@
|
|
90
50
|
"import": "./dist/prosekit-solid-popover.js",
|
91
51
|
"default": "./dist/prosekit-solid-popover.js"
|
92
52
|
},
|
93
|
-
"./popover-content": {
|
94
|
-
"types": "./dist/prosekit-solid-popover-content.d.ts",
|
95
|
-
"import": "./dist/prosekit-solid-popover-content.js",
|
96
|
-
"default": "./dist/prosekit-solid-popover-content.js"
|
97
|
-
},
|
98
|
-
"./popover-root": {
|
99
|
-
"types": "./dist/prosekit-solid-popover-root.d.ts",
|
100
|
-
"import": "./dist/prosekit-solid-popover-root.js",
|
101
|
-
"default": "./dist/prosekit-solid-popover-root.js"
|
102
|
-
},
|
103
|
-
"./popover-trigger": {
|
104
|
-
"types": "./dist/prosekit-solid-popover-trigger.d.ts",
|
105
|
-
"import": "./dist/prosekit-solid-popover-trigger.js",
|
106
|
-
"default": "./dist/prosekit-solid-popover-trigger.js"
|
107
|
-
},
|
108
53
|
"./resizable": {
|
109
54
|
"types": "./dist/prosekit-solid-resizable.d.ts",
|
110
55
|
"import": "./dist/prosekit-solid-resizable.js",
|
111
56
|
"default": "./dist/prosekit-solid-resizable.js"
|
112
57
|
},
|
113
|
-
"./
|
114
|
-
"types": "./dist/prosekit-solid-
|
115
|
-
"import": "./dist/prosekit-solid-
|
116
|
-
"default": "./dist/prosekit-solid-
|
58
|
+
"./tooltip": {
|
59
|
+
"types": "./dist/prosekit-solid-tooltip.d.ts",
|
60
|
+
"import": "./dist/prosekit-solid-tooltip.js",
|
61
|
+
"default": "./dist/prosekit-solid-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.
|
125
|
-
"@prosekit/pm": "^0.1.2"
|
69
|
+
"@prosekit/lit": "^0.3.0",
|
70
|
+
"@prosekit/pm": "^0.1.2",
|
71
|
+
"@prosekit/web": "^0.1.0"
|
126
72
|
},
|
127
73
|
"peerDependencies": {
|
128
74
|
"solid-js": ">= 1.7.0"
|
@@ -136,8 +82,8 @@
|
|
136
82
|
"@prosekit/dev": "*",
|
137
83
|
"solid-js": "^1.8.16",
|
138
84
|
"tsup": "^8.0.2",
|
139
|
-
"typescript": "^5.4.
|
140
|
-
"vitest": "^1.
|
85
|
+
"typescript": "^5.4.5",
|
86
|
+
"vitest": "^1.5.0"
|
141
87
|
},
|
142
88
|
"scripts": {
|
143
89
|
"build:tsup": "tsup",
|
@@ -149,35 +95,11 @@
|
|
149
95
|
".": [
|
150
96
|
"./dist/prosekit-solid.d.ts"
|
151
97
|
],
|
152
|
-
"autocomplete
|
153
|
-
"./dist/prosekit-solid-autocomplete
|
98
|
+
"autocomplete": [
|
99
|
+
"./dist/prosekit-solid-autocomplete.d.ts"
|
154
100
|
],
|
155
|
-
"
|
156
|
-
"./dist/prosekit-solid-
|
157
|
-
],
|
158
|
-
"autocomplete-list": [
|
159
|
-
"./dist/prosekit-solid-autocomplete-list.d.ts"
|
160
|
-
],
|
161
|
-
"autocomplete-popover": [
|
162
|
-
"./dist/prosekit-solid-autocomplete-popover.d.ts"
|
163
|
-
],
|
164
|
-
"block-popover": [
|
165
|
-
"./dist/prosekit-solid-block-popover.d.ts"
|
166
|
-
],
|
167
|
-
"combo-box": [
|
168
|
-
"./dist/prosekit-solid-combo-box.d.ts"
|
169
|
-
],
|
170
|
-
"combo-box-input": [
|
171
|
-
"./dist/prosekit-solid-combo-box-input.d.ts"
|
172
|
-
],
|
173
|
-
"combo-box-item": [
|
174
|
-
"./dist/prosekit-solid-combo-box-item.d.ts"
|
175
|
-
],
|
176
|
-
"combo-box-list": [
|
177
|
-
"./dist/prosekit-solid-combo-box-list.d.ts"
|
178
|
-
],
|
179
|
-
"drag-handle": [
|
180
|
-
"./dist/prosekit-solid-drag-handle.d.ts"
|
101
|
+
"block-handle": [
|
102
|
+
"./dist/prosekit-solid-block-handle.d.ts"
|
181
103
|
],
|
182
104
|
"inline-popover": [
|
183
105
|
"./dist/prosekit-solid-inline-popover.d.ts"
|
@@ -185,20 +107,11 @@
|
|
185
107
|
"popover": [
|
186
108
|
"./dist/prosekit-solid-popover.d.ts"
|
187
109
|
],
|
188
|
-
"popover-content": [
|
189
|
-
"./dist/prosekit-solid-popover-content.d.ts"
|
190
|
-
],
|
191
|
-
"popover-root": [
|
192
|
-
"./dist/prosekit-solid-popover-root.d.ts"
|
193
|
-
],
|
194
|
-
"popover-trigger": [
|
195
|
-
"./dist/prosekit-solid-popover-trigger.d.ts"
|
196
|
-
],
|
197
110
|
"resizable": [
|
198
111
|
"./dist/prosekit-solid-resizable.d.ts"
|
199
112
|
],
|
200
|
-
"
|
201
|
-
"./dist/prosekit-solid-
|
113
|
+
"tooltip": [
|
114
|
+
"./dist/prosekit-solid-tooltip.d.ts"
|
202
115
|
]
|
203
116
|
}
|
204
117
|
}
|
package/dist/chunk-RLHZTH3K.js
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
// src/utils/force-props.ts
|
2
|
-
function forceProps(props) {
|
3
|
-
return Object.fromEntries(
|
4
|
-
Object.entries(props).map(([key, value]) => {
|
5
|
-
if (key === "children" || key === "ref" || key.includes(":")) {
|
6
|
-
return [key, value];
|
7
|
-
} else {
|
8
|
-
return [`prop:${key}`, value];
|
9
|
-
}
|
10
|
-
})
|
11
|
-
);
|
12
|
-
}
|
13
|
-
|
14
|
-
export {
|
15
|
-
forceProps
|
16
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/autocomplete-empty.gen.ts
|
6
|
-
import "@prosekit/lit/autocomplete-empty";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var AutocompleteEmpty = (props) => {
|
9
|
-
return html`<prosekit-autocomplete-empty ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
AutocompleteEmpty
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/autocomplete-item.gen.ts
|
6
|
-
import "@prosekit/lit/autocomplete-item";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var AutocompleteItem = (props) => {
|
9
|
-
return html`<prosekit-autocomplete-item ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
AutocompleteItem
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/autocomplete-list.gen.ts
|
6
|
-
import "@prosekit/lit/autocomplete-list";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var AutocompleteList = (props) => {
|
9
|
-
return html`<prosekit-autocomplete-list ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
AutocompleteList
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/autocomplete-popover.gen.ts
|
6
|
-
import "@prosekit/lit/autocomplete-popover";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var AutocompletePopover = (props) => {
|
9
|
-
return html`<prosekit-autocomplete-popover ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
AutocompletePopover
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/block-popover.gen.ts
|
6
|
-
import "@prosekit/lit/block-popover";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var BlockPopover = (props) => {
|
9
|
-
return html`<prosekit-block-popover ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
BlockPopover
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/combo-box-input.gen.ts
|
6
|
-
import "@prosekit/lit/combo-box-input";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var ComboBoxInput = (props) => {
|
9
|
-
return html`<prosekit-combo-box-input ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
ComboBoxInput
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/combo-box-item.gen.ts
|
6
|
-
import "@prosekit/lit/combo-box-item";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var ComboBoxItem = (props) => {
|
9
|
-
return html`<prosekit-combo-box-item ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
ComboBoxItem
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/combo-box-list.gen.ts
|
6
|
-
import "@prosekit/lit/combo-box-list";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var ComboBoxList = (props) => {
|
9
|
-
return html`<prosekit-combo-box-list ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
ComboBoxList
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/combo-box.gen.ts
|
6
|
-
import "@prosekit/lit/combo-box";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var ComboBox = (props) => {
|
9
|
-
return html`<prosekit-combo-box ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
ComboBox
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/drag-handle.gen.ts
|
6
|
-
import "@prosekit/lit/drag-handle";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var DragHandle = (props) => {
|
9
|
-
return html`<prosekit-drag-handle ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
DragHandle
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/popover-content.gen.ts
|
6
|
-
import "@prosekit/lit/popover-content";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var PopoverContent = (props) => {
|
9
|
-
return html`<prosekit-popover-content ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
PopoverContent
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/popover-root.gen.ts
|
6
|
-
import "@prosekit/lit/popover-root";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var PopoverRoot = (props) => {
|
9
|
-
return html`<prosekit-popover-root ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
PopoverRoot
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/popover-trigger.gen.ts
|
6
|
-
import "@prosekit/lit/popover-trigger";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var PopoverTrigger = (props) => {
|
9
|
-
return html`<prosekit-popover-trigger ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
PopoverTrigger
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
forceProps
|
3
|
-
} from "./chunk-RLHZTH3K.js";
|
4
|
-
|
5
|
-
// src/components/resizable-handle.gen.ts
|
6
|
-
import "@prosekit/lit/resizable-handle";
|
7
|
-
import html from "solid-js/html";
|
8
|
-
var ResizableHandle = (props) => {
|
9
|
-
return html`<prosekit-resizable-handle ...${forceProps(props)} />`;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
ResizableHandle
|
13
|
-
};
|