@prosekit/solid 0.7.0-beta.4 → 0.7.0-beta.6
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/editor-context.js +0 -2
- package/dist/editor-context.js.map +1 -1
- package/dist/prosekit-solid-autocomplete.d.ts +10 -61
- package/dist/prosekit-solid-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-solid-autocomplete.js +5 -50
- package/dist/prosekit-solid-autocomplete.js.map +1 -1
- package/dist/prosekit-solid-block-handle.d.ts +10 -61
- package/dist/prosekit-solid-block-handle.d.ts.map +1 -1
- package/dist/prosekit-solid-block-handle.js +5 -50
- package/dist/prosekit-solid-block-handle.js.map +1 -1
- package/dist/prosekit-solid-drop-indicator.d.ts +2 -13
- package/dist/prosekit-solid-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-solid-drop-indicator.js +1 -10
- package/dist/prosekit-solid-drop-indicator.js.map +1 -1
- package/dist/prosekit-solid-inline-popover.d.ts +6 -37
- package/dist/prosekit-solid-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-solid-inline-popover.js +3 -30
- package/dist/prosekit-solid-inline-popover.js.map +1 -1
- package/dist/prosekit-solid-menu.d.ts +48 -88
- package/dist/prosekit-solid-menu.d.ts.map +1 -1
- package/dist/prosekit-solid-menu.js +50 -74
- package/dist/prosekit-solid-menu.js.map +1 -1
- package/dist/prosekit-solid-popover.d.ts +8 -49
- package/dist/prosekit-solid-popover.d.ts.map +1 -1
- package/dist/prosekit-solid-popover.js +4 -40
- package/dist/prosekit-solid-popover.js.map +1 -1
- package/dist/prosekit-solid-resizable.d.ts +4 -25
- package/dist/prosekit-solid-resizable.d.ts.map +1 -1
- package/dist/prosekit-solid-resizable.js +2 -20
- package/dist/prosekit-solid-resizable.js.map +1 -1
- package/dist/prosekit-solid-table-handle.d.ts +22 -133
- package/dist/prosekit-solid-table-handle.d.ts.map +1 -1
- package/dist/prosekit-solid-table-handle.js +11 -110
- package/dist/prosekit-solid-table-handle.js.map +1 -1
- package/dist/prosekit-solid-tooltip.d.ts +8 -49
- package/dist/prosekit-solid-tooltip.d.ts.map +1 -1
- package/dist/prosekit-solid-tooltip.js +4 -40
- package/dist/prosekit-solid-tooltip.js.map +1 -1
- package/dist/prosekit-solid.d.ts +0 -21
- package/dist/prosekit-solid.d.ts.map +1 -1
- package/dist/prosekit-solid.js +0 -28
- package/dist/prosekit-solid.js.map +1 -1
- package/package.json +5 -5
- package/src/components/autocomplete/autocomplete-empty.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-item.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-popup.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-positioner.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-root.gen.ts +3 -13
- package/src/components/autocomplete/index.gen.ts +1 -3
- package/src/components/block-handle/block-handle-add.gen.ts +3 -13
- package/src/components/block-handle/block-handle-draggable.gen.ts +3 -13
- package/src/components/block-handle/block-handle-popup.gen.ts +3 -13
- package/src/components/block-handle/block-handle-positioner.gen.ts +3 -13
- package/src/components/block-handle/block-handle-root.gen.ts +3 -13
- package/src/components/block-handle/index.gen.ts +1 -3
- package/src/components/drop-indicator/drop-indicator.gen.ts +3 -13
- package/src/components/drop-indicator/index.gen.ts +1 -3
- package/src/components/inline-popover/index.gen.ts +1 -3
- package/src/components/inline-popover/inline-popover-popup.gen.ts +3 -13
- package/src/components/inline-popover/inline-popover-positioner.gen.ts +3 -13
- package/src/components/inline-popover/inline-popover-root.gen.ts +3 -13
- package/src/components/menu/index.gen.ts +1 -3
- package/src/components/menu/menu-item.gen.ts +3 -13
- package/src/components/menu/menu-popup.gen.ts +3 -13
- package/src/components/menu/menu-positioner.gen.ts +3 -13
- package/src/components/menu/menu-root.gen.ts +3 -13
- package/src/components/menu/menu-submenu-root.gen.ts +65 -18
- package/src/components/menu/menu-submenu-trigger.gen.ts +39 -18
- package/src/components/menu/menu-trigger.gen.ts +3 -13
- package/src/components/popover/index.gen.ts +1 -3
- package/src/components/popover/popover-popup.gen.ts +3 -13
- package/src/components/popover/popover-positioner.gen.ts +3 -13
- package/src/components/popover/popover-root.gen.ts +3 -13
- package/src/components/popover/popover-trigger.gen.ts +3 -13
- package/src/components/resizable/index.gen.ts +1 -3
- package/src/components/resizable/resizable-handle.gen.ts +3 -13
- package/src/components/resizable/resizable-root.gen.ts +3 -13
- package/src/components/table-handle/index.gen.ts +1 -3
- package/src/components/table-handle/table-handle-column-menu-root.gen.ts +3 -13
- package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +3 -13
- package/src/components/table-handle/table-handle-column-popup.gen.ts +3 -13
- package/src/components/table-handle/table-handle-column-positioner.gen.ts +3 -13
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +3 -13
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +3 -13
- package/src/components/table-handle/table-handle-root.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-menu-root.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-popup.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-positioner.gen.ts +3 -13
- package/src/components/tooltip/index.gen.ts +1 -3
- package/src/components/tooltip/tooltip-popup.gen.ts +3 -13
- package/src/components/tooltip/tooltip-positioner.gen.ts +3 -13
- package/src/components/tooltip/tooltip-root.gen.ts +3 -13
- package/src/components/tooltip/tooltip-trigger.gen.ts +3 -13
|
@@ -1,27 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
|
-
import { registerMenuSubmenuRootElement, type MenuSubmenuRootElement } from '@prosekit/web/menu';
|
|
3
|
+
import { registerMenuSubmenuRootElement, type MenuSubmenuRootElement, type MenuSubmenuRootEvents, type MenuSubmenuRootProps as MenuSubmenuRootElementProps } from '@prosekit/web/menu';
|
|
4
|
+
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
6
5
|
import type { Component, JSX } from 'solid-js';
|
|
7
6
|
import h from 'solid-js/h';
|
|
8
7
|
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
/** Props for the {@link MenuSubmenuRoot} Solid component. */
|
|
9
|
+
export interface MenuSubmenuRootProps {
|
|
10
|
+
/**
|
|
11
|
+
* Whether the overlay is initially open.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
defaultOpen?: MenuSubmenuRootElementProps['defaultOpen'];
|
|
15
|
+
/**
|
|
16
|
+
* Whether the overlay is currently open.
|
|
17
|
+
* @default null
|
|
18
|
+
*/
|
|
19
|
+
open?: MenuSubmenuRootElementProps['open'];
|
|
20
|
+
/**
|
|
21
|
+
* Whether the component should ignore user interaction.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
disabled?: MenuSubmenuRootElementProps['disabled'];
|
|
25
|
+
/** Emitted when the submenu is opened or closed. */
|
|
26
|
+
onOpenChange?: (event: MenuSubmenuRootEvents['openChange']) => void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** A Solid component that renders an `prosekit-menu-submenu-root` custom element. */
|
|
21
30
|
export const MenuSubmenuRoot: Component<MenuSubmenuRootProps & JSX.HTMLAttributes<MenuSubmenuRootElement>> = (props): any => {
|
|
22
31
|
registerMenuSubmenuRootElement();
|
|
23
32
|
|
|
24
|
-
const
|
|
33
|
+
const [getElement, setElement] = createSignal<MenuSubmenuRootElement | null>(null);
|
|
34
|
+
const handlers: Array<((event: any) => void) | undefined> = [];
|
|
35
|
+
|
|
36
|
+
const [elementProps, eventHandlers, restProps] = splitProps(props, ['defaultOpen', 'disabled', 'open'], ['onOpenChange']);
|
|
37
|
+
|
|
38
|
+
createEffect(() => {
|
|
39
|
+
const element = getElement();
|
|
40
|
+
if (!element) return;
|
|
41
|
+
|
|
42
|
+
Object.assign(element, { defaultOpen: elementProps.defaultOpen, disabled: elementProps.disabled, open: elementProps.open });
|
|
43
|
+
|
|
44
|
+
handlers.length = 0;
|
|
45
|
+
handlers.push(eventHandlers.onOpenChange);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
createEffect(() => {
|
|
49
|
+
const element = getElement();
|
|
50
|
+
if (!element) return;
|
|
51
|
+
|
|
52
|
+
const ac = new AbortController();
|
|
53
|
+
for (const [index, eventName] of ['openChange'].entries()) {
|
|
54
|
+
element.addEventListener(
|
|
55
|
+
eventName,
|
|
56
|
+
(event) => {
|
|
57
|
+
handlers[index]?.(event);
|
|
58
|
+
},
|
|
59
|
+
{ signal: ac.signal },
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
return () => ac.abort();
|
|
63
|
+
});
|
|
25
64
|
|
|
26
|
-
return () =>
|
|
65
|
+
return () =>
|
|
66
|
+
h(
|
|
67
|
+
'prosekit-menu-submenu-root',
|
|
68
|
+
mergeProps(restProps, {
|
|
69
|
+
ref: (el: MenuSubmenuRootElement | null) => {
|
|
70
|
+
setElement(el);
|
|
71
|
+
},
|
|
72
|
+
}),
|
|
73
|
+
);
|
|
27
74
|
};
|
|
@@ -1,27 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
|
-
import { registerMenuSubmenuTriggerElement, type MenuSubmenuTriggerElement } from '@prosekit/web/menu';
|
|
3
|
+
import { registerMenuSubmenuTriggerElement, type MenuSubmenuTriggerElement, type MenuSubmenuTriggerProps as MenuSubmenuTriggerElementProps } from '@prosekit/web/menu';
|
|
4
|
+
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
6
5
|
import type { Component, JSX } from 'solid-js';
|
|
7
6
|
import h from 'solid-js/h';
|
|
8
7
|
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
/** Props for the {@link MenuSubmenuTrigger} Solid component. */
|
|
9
|
+
export interface MenuSubmenuTriggerProps {
|
|
10
|
+
/**
|
|
11
|
+
* The unique value for this submenu trigger in the parent menu.
|
|
12
|
+
*
|
|
13
|
+
* @default ""
|
|
14
|
+
*/
|
|
15
|
+
value?: MenuSubmenuTriggerElementProps['value'];
|
|
16
|
+
/**
|
|
17
|
+
* Whether this submenu trigger is disabled.
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disabled?: MenuSubmenuTriggerElementProps['disabled'];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** A Solid component that renders an `prosekit-menu-submenu-trigger` custom element. */
|
|
21
25
|
export const MenuSubmenuTrigger: Component<MenuSubmenuTriggerProps & JSX.HTMLAttributes<MenuSubmenuTriggerElement>> = (props): any => {
|
|
22
26
|
registerMenuSubmenuTriggerElement();
|
|
23
27
|
|
|
24
|
-
const
|
|
28
|
+
const [getElement, setElement] = createSignal<MenuSubmenuTriggerElement | null>(null);
|
|
29
|
+
|
|
30
|
+
const [elementProps, restProps] = splitProps(props, ['disabled', 'value']);
|
|
31
|
+
|
|
32
|
+
createEffect(() => {
|
|
33
|
+
const element = getElement();
|
|
34
|
+
if (!element) return;
|
|
35
|
+
|
|
36
|
+
Object.assign(element, { disabled: elementProps.disabled, value: elementProps.value });
|
|
37
|
+
});
|
|
25
38
|
|
|
26
|
-
return () =>
|
|
39
|
+
return () =>
|
|
40
|
+
h(
|
|
41
|
+
'prosekit-menu-submenu-trigger',
|
|
42
|
+
mergeProps(restProps, {
|
|
43
|
+
ref: (el: MenuSubmenuTriggerElement | null) => {
|
|
44
|
+
setElement(el);
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
);
|
|
27
48
|
};
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerMenuTriggerElement, type MenuTriggerElement, type MenuTriggerEvents, type MenuTriggerProps as MenuTriggerElementProps } from '@prosekit/web/menu';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
7
5
|
import type { Component, JSX } from 'solid-js';
|
|
8
6
|
import h from 'solid-js/h';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link MenuTrigger} Solid component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link MenuTrigger} Solid component. */
|
|
15
9
|
export interface MenuTriggerProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the component should ignore user interaction.
|
|
@@ -23,11 +17,7 @@ export interface MenuTriggerProps {
|
|
|
23
17
|
onOpenChange?: (event: MenuTriggerEvents['openChange']) => void;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
|
-
/**
|
|
27
|
-
* A Solid component that renders an `prosekit-menu-trigger` custom element.
|
|
28
|
-
*
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
20
|
+
/** A Solid component that renders an `prosekit-menu-trigger` custom element. */
|
|
31
21
|
export const MenuTrigger: Component<MenuTriggerProps & JSX.HTMLAttributes<MenuTriggerElement>> = (props): any => {
|
|
32
22
|
registerMenuTriggerElement();
|
|
33
23
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
export { PopoverPopup, type PopoverPopupProps } from './popover-popup.gen.ts';
|
|
6
4
|
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerPopoverPopupElement, type PopoverPopupElement } from '@prosekit/web/popover';
|
|
6
4
|
import type { Component, JSX } from 'solid-js';
|
|
7
5
|
import h from 'solid-js/h';
|
|
8
6
|
|
|
9
|
-
/**
|
|
10
|
-
* Props for the {@link PopoverPopup} Solid component.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
7
|
+
/** Props for the {@link PopoverPopup} Solid component. */
|
|
14
8
|
export interface PopoverPopupProps {}
|
|
15
9
|
|
|
16
|
-
/**
|
|
17
|
-
* A Solid component that renders an `prosekit-popover-popup` custom element.
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
10
|
+
/** A Solid component that renders an `prosekit-popover-popup` custom element. */
|
|
21
11
|
export const PopoverPopup: Component<PopoverPopupProps & JSX.HTMLAttributes<PopoverPopupElement>> = (props): any => {
|
|
22
12
|
registerPopoverPopupElement();
|
|
23
13
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerPopoverPositionerElement, type PopoverPositionerElement, type PopoverPositionerProps as PopoverPositionerElementProps } from '@prosekit/web/popover';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
7
5
|
import type { Component, JSX } from 'solid-js';
|
|
8
6
|
import h from 'solid-js/h';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link PopoverPositioner} Solid component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link PopoverPositioner} Solid component. */
|
|
15
9
|
export interface PopoverPositionerProps {
|
|
16
10
|
/**
|
|
17
11
|
* The strategy to use for positioning
|
|
@@ -142,11 +136,7 @@ export interface PopoverPositionerProps {
|
|
|
142
136
|
altBoundary?: PopoverPositionerElementProps['altBoundary'];
|
|
143
137
|
}
|
|
144
138
|
|
|
145
|
-
/**
|
|
146
|
-
* A Solid component that renders an `prosekit-popover-positioner` custom element.
|
|
147
|
-
*
|
|
148
|
-
* @public
|
|
149
|
-
*/
|
|
139
|
+
/** A Solid component that renders an `prosekit-popover-positioner` custom element. */
|
|
150
140
|
export const PopoverPositioner: Component<PopoverPositionerProps & JSX.HTMLAttributes<PopoverPositionerElement>> = (props): any => {
|
|
151
141
|
registerPopoverPositionerElement();
|
|
152
142
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerPopoverRootElement, type PopoverRootElement, type PopoverRootEvents, type PopoverRootProps as PopoverRootElementProps } from '@prosekit/web/popover';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
7
5
|
import type { Component, JSX } from 'solid-js';
|
|
8
6
|
import h from 'solid-js/h';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link PopoverRoot} Solid component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link PopoverRoot} Solid component. */
|
|
15
9
|
export interface PopoverRootProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the popover should be modal.
|
|
@@ -39,11 +33,7 @@ export interface PopoverRootProps {
|
|
|
39
33
|
onOpenChange?: (event: PopoverRootEvents['openChange']) => void;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
/**
|
|
43
|
-
* A Solid component that renders an `prosekit-popover-root` custom element.
|
|
44
|
-
*
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
36
|
+
/** A Solid component that renders an `prosekit-popover-root` custom element. */
|
|
47
37
|
export const PopoverRoot: Component<PopoverRootProps & JSX.HTMLAttributes<PopoverRootElement>> = (props): any => {
|
|
48
38
|
registerPopoverRootElement();
|
|
49
39
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerPopoverTriggerElement, type PopoverTriggerElement, type PopoverTriggerEvents, type PopoverTriggerProps as PopoverTriggerElementProps } from '@prosekit/web/popover';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
7
5
|
import type { Component, JSX } from 'solid-js';
|
|
8
6
|
import h from 'solid-js/h';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link PopoverTrigger} Solid component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link PopoverTrigger} Solid component. */
|
|
15
9
|
export interface PopoverTriggerProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the component should ignore user interaction.
|
|
@@ -39,11 +33,7 @@ export interface PopoverTriggerProps {
|
|
|
39
33
|
onOpenChange?: (event: PopoverTriggerEvents['openChange']) => void;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
/**
|
|
43
|
-
* A Solid component that renders an `prosekit-popover-trigger` custom element.
|
|
44
|
-
*
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
36
|
+
/** A Solid component that renders an `prosekit-popover-trigger` custom element. */
|
|
47
37
|
export const PopoverTrigger: Component<PopoverTriggerProps & JSX.HTMLAttributes<PopoverTriggerElement>> = (props): any => {
|
|
48
38
|
registerPopoverTriggerElement();
|
|
49
39
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen.ts';
|
|
6
4
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerResizableHandleElement, type ResizableHandleElement, type ResizableHandleProps as ResizableHandleElementProps } from '@prosekit/web/resizable';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
7
5
|
import type { Component, JSX } from 'solid-js';
|
|
8
6
|
import h from 'solid-js/h';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link ResizableHandle} Solid component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link ResizableHandle} Solid component. */
|
|
15
9
|
export interface ResizableHandleProps {
|
|
16
10
|
/**
|
|
17
11
|
* The position of the handle.
|
|
@@ -21,11 +15,7 @@ export interface ResizableHandleProps {
|
|
|
21
15
|
position?: ResizableHandleElementProps['position'];
|
|
22
16
|
}
|
|
23
17
|
|
|
24
|
-
/**
|
|
25
|
-
* A Solid component that renders an `prosekit-resizable-handle` custom element.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
18
|
+
/** A Solid component that renders an `prosekit-resizable-handle` custom element. */
|
|
29
19
|
export const ResizableHandle: Component<ResizableHandleProps & JSX.HTMLAttributes<ResizableHandleElement>> = (props): any => {
|
|
30
20
|
registerResizableHandleElement();
|
|
31
21
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerResizableRootElement, type ResizableRootElement, type ResizableRootEvents, type ResizableRootProps as ResizableRootElementProps } from '@prosekit/web/resizable';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
7
5
|
import type { Component, JSX } from 'solid-js';
|
|
8
6
|
import h from 'solid-js/h';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link ResizableRoot} Solid component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link ResizableRoot} Solid component. */
|
|
15
9
|
export interface ResizableRootProps {
|
|
16
10
|
/**
|
|
17
11
|
* The width of the resizable element.
|
|
@@ -37,11 +31,7 @@ export interface ResizableRootProps {
|
|
|
37
31
|
onResizeEnd?: (event: ResizableRootEvents['resizeEnd']) => void;
|
|
38
32
|
}
|
|
39
33
|
|
|
40
|
-
/**
|
|
41
|
-
* A Solid component that renders an `prosekit-resizable-root` custom element.
|
|
42
|
-
*
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
34
|
+
/** A Solid component that renders an `prosekit-resizable-root` custom element. */
|
|
45
35
|
export const ResizableRoot: Component<ResizableRootProps & JSX.HTMLAttributes<ResizableRootElement>> = (props): any => {
|
|
46
36
|
registerResizableRootElement();
|
|
47
37
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
export { TableHandleColumnPopup, type TableHandleColumnPopupProps } from './table-handle-column-popup.gen.ts';
|
|
6
4
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerTableHandleColumnMenuRootElement, type TableHandleColumnMenuRootElement, type TableHandleColumnMenuRootProps as TableHandleColumnMenuRootElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
7
5
|
import type { Component, JSX } from 'solid-js';
|
|
8
6
|
import h from 'solid-js/h';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TableHandleColumnMenuRoot} Solid component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TableHandleColumnMenuRoot} Solid component. */
|
|
15
9
|
export interface TableHandleColumnMenuRootProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the overlay is initially open.
|
|
@@ -30,11 +24,7 @@ export interface TableHandleColumnMenuRootProps {
|
|
|
30
24
|
disabled?: TableHandleColumnMenuRootElementProps['disabled'];
|
|
31
25
|
}
|
|
32
26
|
|
|
33
|
-
/**
|
|
34
|
-
* A Solid component that renders an `prosekit-table-handle-column-menu-root` custom element.
|
|
35
|
-
*
|
|
36
|
-
* @public
|
|
37
|
-
*/
|
|
27
|
+
/** A Solid component that renders an `prosekit-table-handle-column-menu-root` custom element. */
|
|
38
28
|
export const TableHandleColumnMenuRoot: Component<TableHandleColumnMenuRootProps & JSX.HTMLAttributes<TableHandleColumnMenuRootElement>> = (props): any => {
|
|
39
29
|
registerTableHandleColumnMenuRootElement();
|
|
40
30
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerTableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
@@ -9,11 +7,7 @@ import h from 'solid-js/h';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleColumnMenuTrigger} Solid component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleColumnMenuTrigger} Solid component. */
|
|
17
11
|
export interface TableHandleColumnMenuTriggerProps {
|
|
18
12
|
/**
|
|
19
13
|
* @default null
|
|
@@ -22,11 +16,7 @@ export interface TableHandleColumnMenuTriggerProps {
|
|
|
22
16
|
editor?: TableHandleColumnMenuTriggerElementProps['editor'];
|
|
23
17
|
}
|
|
24
18
|
|
|
25
|
-
/**
|
|
26
|
-
* A Solid component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
|
|
27
|
-
*
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
19
|
+
/** A Solid component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
|
|
30
20
|
export const TableHandleColumnMenuTrigger: Component<TableHandleColumnMenuTriggerProps & JSX.HTMLAttributes<TableHandleColumnMenuTriggerElement>> = (props): any => {
|
|
31
21
|
registerTableHandleColumnMenuTriggerElement();
|
|
32
22
|
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerTableHandleColumnPopupElement, type TableHandleColumnPopupElement } from '@prosekit/web/table-handle';
|
|
6
4
|
import type { Component, JSX } from 'solid-js';
|
|
7
5
|
import h from 'solid-js/h';
|
|
8
6
|
|
|
9
|
-
/**
|
|
10
|
-
* Props for the {@link TableHandleColumnPopup} Solid component.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
7
|
+
/** Props for the {@link TableHandleColumnPopup} Solid component. */
|
|
14
8
|
export interface TableHandleColumnPopupProps {}
|
|
15
9
|
|
|
16
|
-
/**
|
|
17
|
-
* A Solid component that renders an `prosekit-table-handle-column-popup` custom element.
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
10
|
+
/** A Solid component that renders an `prosekit-table-handle-column-popup` custom element. */
|
|
21
11
|
export const TableHandleColumnPopup: Component<TableHandleColumnPopupProps & JSX.HTMLAttributes<TableHandleColumnPopupElement>> = (props): any => {
|
|
22
12
|
registerTableHandleColumnPopupElement();
|
|
23
13
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerTableHandleColumnPositionerElement, type TableHandleColumnPositionerElement, type TableHandleColumnPositionerProps as TableHandleColumnPositionerElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
@@ -9,11 +7,7 @@ import h from 'solid-js/h';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleColumnPositioner} Solid component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleColumnPositioner} Solid component. */
|
|
17
11
|
export interface TableHandleColumnPositionerProps {
|
|
18
12
|
/**
|
|
19
13
|
* The placement of the popover, relative to the hovered table cell.
|
|
@@ -143,11 +137,7 @@ export interface TableHandleColumnPositionerProps {
|
|
|
143
137
|
editor?: TableHandleColumnPositionerElementProps['editor'];
|
|
144
138
|
}
|
|
145
139
|
|
|
146
|
-
/**
|
|
147
|
-
* A Solid component that renders an `prosekit-table-handle-column-positioner` custom element.
|
|
148
|
-
*
|
|
149
|
-
* @public
|
|
150
|
-
*/
|
|
140
|
+
/** A Solid component that renders an `prosekit-table-handle-column-positioner` custom element. */
|
|
151
141
|
export const TableHandleColumnPositioner: Component<TableHandleColumnPositionerProps & JSX.HTMLAttributes<TableHandleColumnPositionerElement>> = (props): any => {
|
|
152
142
|
registerTableHandleColumnPositionerElement();
|
|
153
143
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerTableHandleDragPreviewElement, type TableHandleDragPreviewElement, type TableHandleDragPreviewProps as TableHandleDragPreviewElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
@@ -9,11 +7,7 @@ import h from 'solid-js/h';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleDragPreview} Solid component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleDragPreview} Solid component. */
|
|
17
11
|
export interface TableHandleDragPreviewProps {
|
|
18
12
|
/**
|
|
19
13
|
* @default null
|
|
@@ -22,11 +16,7 @@ export interface TableHandleDragPreviewProps {
|
|
|
22
16
|
editor?: TableHandleDragPreviewElementProps['editor'];
|
|
23
17
|
}
|
|
24
18
|
|
|
25
|
-
/**
|
|
26
|
-
* A Solid component that renders an `prosekit-table-handle-drag-preview` custom element.
|
|
27
|
-
*
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
19
|
+
/** A Solid component that renders an `prosekit-table-handle-drag-preview` custom element. */
|
|
30
20
|
export const TableHandleDragPreview: Component<TableHandleDragPreviewProps & JSX.HTMLAttributes<TableHandleDragPreviewElement>> = (props): any => {
|
|
31
21
|
registerTableHandleDragPreviewElement();
|
|
32
22
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerTableHandleDropIndicatorElement, type TableHandleDropIndicatorElement, type TableHandleDropIndicatorProps as TableHandleDropIndicatorElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
@@ -9,11 +7,7 @@ import h from 'solid-js/h';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleDropIndicator} Solid component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleDropIndicator} Solid component. */
|
|
17
11
|
export interface TableHandleDropIndicatorProps {
|
|
18
12
|
/**
|
|
19
13
|
* @default null
|
|
@@ -22,11 +16,7 @@ export interface TableHandleDropIndicatorProps {
|
|
|
22
16
|
editor?: TableHandleDropIndicatorElementProps['editor'];
|
|
23
17
|
}
|
|
24
18
|
|
|
25
|
-
/**
|
|
26
|
-
* A Solid component that renders an `prosekit-table-handle-drop-indicator` custom element.
|
|
27
|
-
*
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
19
|
+
/** A Solid component that renders an `prosekit-table-handle-drop-indicator` custom element. */
|
|
30
20
|
export const TableHandleDropIndicator: Component<TableHandleDropIndicatorProps & JSX.HTMLAttributes<TableHandleDropIndicatorElement>> = (props): any => {
|
|
31
21
|
registerTableHandleDropIndicatorElement();
|
|
32
22
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
|
-
*/
|
|
1
|
+
// This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
|
|
4
2
|
|
|
5
3
|
import { registerTableHandleRootElement, type TableHandleRootElement, type TableHandleRootProps as TableHandleRootElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createEffect, createSignal, mergeProps, splitProps } from 'solid-js';
|
|
@@ -9,11 +7,7 @@ import h from 'solid-js/h';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleRoot} Solid component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleRoot} Solid component. */
|
|
17
11
|
export interface TableHandleRootProps {
|
|
18
12
|
/**
|
|
19
13
|
* The ProseKit editor instance.
|
|
@@ -24,11 +18,7 @@ export interface TableHandleRootProps {
|
|
|
24
18
|
editor?: TableHandleRootElementProps['editor'];
|
|
25
19
|
}
|
|
26
20
|
|
|
27
|
-
/**
|
|
28
|
-
* A Solid component that renders an `prosekit-table-handle-root` custom element.
|
|
29
|
-
*
|
|
30
|
-
* @public
|
|
31
|
-
*/
|
|
21
|
+
/** A Solid component that renders an `prosekit-table-handle-root` custom element. */
|
|
32
22
|
export const TableHandleRoot: Component<TableHandleRootProps & JSX.HTMLAttributes<TableHandleRootElement>> = (props): any => {
|
|
33
23
|
registerTableHandleRootElement();
|
|
34
24
|
|