@prosekit/preact 0.7.0-beta.3 → 0.7.0-beta.4
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-preact-autocomplete.d.ts +10 -61
- package/dist/prosekit-preact-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-preact-autocomplete.js +5 -50
- package/dist/prosekit-preact-autocomplete.js.map +1 -1
- package/dist/prosekit-preact-block-handle.d.ts +10 -61
- package/dist/prosekit-preact-block-handle.d.ts.map +1 -1
- package/dist/prosekit-preact-block-handle.js +5 -50
- package/dist/prosekit-preact-block-handle.js.map +1 -1
- package/dist/prosekit-preact-drop-indicator.d.ts +2 -13
- package/dist/prosekit-preact-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-preact-drop-indicator.js +1 -10
- package/dist/prosekit-preact-drop-indicator.js.map +1 -1
- package/dist/prosekit-preact-inline-popover.d.ts +6 -37
- package/dist/prosekit-preact-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-preact-inline-popover.js +3 -30
- package/dist/prosekit-preact-inline-popover.js.map +1 -1
- package/dist/prosekit-preact-menu.d.ts +48 -88
- package/dist/prosekit-preact-menu.d.ts.map +1 -1
- package/dist/prosekit-preact-menu.js +37 -72
- package/dist/prosekit-preact-menu.js.map +1 -1
- package/dist/prosekit-preact-popover.d.ts +8 -49
- package/dist/prosekit-preact-popover.d.ts.map +1 -1
- package/dist/prosekit-preact-popover.js +4 -40
- package/dist/prosekit-preact-popover.js.map +1 -1
- package/dist/prosekit-preact-resizable.d.ts +4 -25
- package/dist/prosekit-preact-resizable.d.ts.map +1 -1
- package/dist/prosekit-preact-resizable.js +2 -20
- package/dist/prosekit-preact-resizable.js.map +1 -1
- package/dist/prosekit-preact-table-handle.d.ts +22 -133
- package/dist/prosekit-preact-table-handle.d.ts.map +1 -1
- package/dist/prosekit-preact-table-handle.js +11 -110
- package/dist/prosekit-preact-table-handle.js.map +1 -1
- package/dist/prosekit-preact-tooltip.d.ts +8 -49
- package/dist/prosekit-preact-tooltip.d.ts.map +1 -1
- package/dist/prosekit-preact-tooltip.js +4 -40
- package/dist/prosekit-preact-tooltip.js.map +1 -1
- package/dist/prosekit-preact.d.ts +0 -21
- package/dist/prosekit-preact.d.ts.map +1 -1
- package/dist/prosekit-preact.js +0 -26
- package/dist/prosekit-preact.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 +49 -17
- package/src/components/menu/menu-submenu-trigger.gen.ts +27 -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,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 { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TableHandleColumnMenuRoot} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TableHandleColumnMenuRoot} Preact component. */
|
|
15
9
|
export interface TableHandleColumnMenuRootProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the overlay is initially open.
|
|
@@ -58,9 +52,5 @@ function TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProp
|
|
|
58
52
|
return createElement('prosekit-table-handle-column-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
59
53
|
}
|
|
60
54
|
|
|
61
|
-
/**
|
|
62
|
-
* A Preact component that renders an `prosekit-table-handle-column-menu-root` custom element.
|
|
63
|
-
*
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
55
|
+
/** A Preact component that renders an `prosekit-table-handle-column-menu-root` custom element. */
|
|
66
56
|
export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
|
|
@@ -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 { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
@@ -9,11 +7,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleColumnMenuTrigger} Preact component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleColumnMenuTrigger} Preact component. */
|
|
17
11
|
export interface TableHandleColumnMenuTriggerProps {
|
|
18
12
|
/**
|
|
19
13
|
* @default null
|
|
@@ -52,9 +46,5 @@ function TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTrigg
|
|
|
52
46
|
return createElement('prosekit-table-handle-column-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
/**
|
|
56
|
-
* A Preact component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
|
|
57
|
-
*
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
49
|
+
/** A Preact component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
|
|
60
50
|
export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
|
|
@@ -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 { registerTableHandleColumnPopupElement, type TableHandleColumnPopupElement } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TableHandleColumnPopup} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TableHandleColumnPopup} Preact component. */
|
|
15
9
|
export interface TableHandleColumnPopupProps {}
|
|
16
10
|
|
|
17
11
|
function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: Ref<TableHandleColumnPopupElement>) {
|
|
@@ -36,9 +30,5 @@ function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, for
|
|
|
36
30
|
return createElement('prosekit-table-handle-column-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
37
31
|
}
|
|
38
32
|
|
|
39
|
-
/**
|
|
40
|
-
* A Preact component that renders an `prosekit-table-handle-column-popup` custom element.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
33
|
+
/** A Preact component that renders an `prosekit-table-handle-column-popup` custom element. */
|
|
44
34
|
export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
|
|
@@ -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 { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
@@ -9,11 +7,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleColumnPositioner} Preact component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleColumnPositioner} Preact component. */
|
|
17
11
|
export interface TableHandleColumnPositionerProps {
|
|
18
12
|
/**
|
|
19
13
|
* The placement of the popover, relative to the hovered table cell.
|
|
@@ -193,9 +187,5 @@ function TableHandleColumnPositionerComponent(props: TableHandleColumnPositioner
|
|
|
193
187
|
return createElement('prosekit-table-handle-column-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
194
188
|
}
|
|
195
189
|
|
|
196
|
-
/**
|
|
197
|
-
* A Preact component that renders an `prosekit-table-handle-column-positioner` custom element.
|
|
198
|
-
*
|
|
199
|
-
* @public
|
|
200
|
-
*/
|
|
190
|
+
/** A Preact component that renders an `prosekit-table-handle-column-positioner` custom element. */
|
|
201
191
|
export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
|
|
@@ -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 { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
@@ -9,11 +7,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleDragPreview} Preact component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleDragPreview} Preact component. */
|
|
17
11
|
export interface TableHandleDragPreviewProps {
|
|
18
12
|
/**
|
|
19
13
|
* @default null
|
|
@@ -52,9 +46,5 @@ function TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, for
|
|
|
52
46
|
return createElement('prosekit-table-handle-drag-preview', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
/**
|
|
56
|
-
* A Preact component that renders an `prosekit-table-handle-drag-preview` custom element.
|
|
57
|
-
*
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
49
|
+
/** A Preact component that renders an `prosekit-table-handle-drag-preview` custom element. */
|
|
60
50
|
export const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);
|
|
@@ -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 { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
@@ -9,11 +7,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleDropIndicator} Preact component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleDropIndicator} Preact component. */
|
|
17
11
|
export interface TableHandleDropIndicatorProps {
|
|
18
12
|
/**
|
|
19
13
|
* @default null
|
|
@@ -52,9 +46,5 @@ function TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps,
|
|
|
52
46
|
return createElement('prosekit-table-handle-drop-indicator', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
/**
|
|
56
|
-
* A Preact component that renders an `prosekit-table-handle-drop-indicator` custom element.
|
|
57
|
-
*
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
49
|
+
/** A Preact component that renders an `prosekit-table-handle-drop-indicator` custom element. */
|
|
60
50
|
export const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);
|
|
@@ -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 { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
@@ -9,11 +7,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleRoot} Preact component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleRoot} Preact component. */
|
|
17
11
|
export interface TableHandleRootProps {
|
|
18
12
|
/**
|
|
19
13
|
* The ProseKit editor instance.
|
|
@@ -54,9 +48,5 @@ function TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: Ref
|
|
|
54
48
|
return createElement('prosekit-table-handle-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
/**
|
|
58
|
-
* A Preact component that renders an `prosekit-table-handle-root` custom element.
|
|
59
|
-
*
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
51
|
+
/** A Preact component that renders an `prosekit-table-handle-root` custom element. */
|
|
62
52
|
export const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);
|
|
@@ -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 { registerTableHandleRowMenuRootElement, type TableHandleRowMenuRootElement, type TableHandleRowMenuRootProps as TableHandleRowMenuRootElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TableHandleRowMenuRoot} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TableHandleRowMenuRoot} Preact component. */
|
|
15
9
|
export interface TableHandleRowMenuRootProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the overlay is initially open.
|
|
@@ -58,9 +52,5 @@ function TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, for
|
|
|
58
52
|
return createElement('prosekit-table-handle-row-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
59
53
|
}
|
|
60
54
|
|
|
61
|
-
/**
|
|
62
|
-
* A Preact component that renders an `prosekit-table-handle-row-menu-root` custom element.
|
|
63
|
-
*
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
55
|
+
/** A Preact component that renders an `prosekit-table-handle-row-menu-root` custom element. */
|
|
66
56
|
export const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);
|
|
@@ -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 { registerTableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
@@ -9,11 +7,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleRowMenuTrigger} Preact component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleRowMenuTrigger} Preact component. */
|
|
17
11
|
export interface TableHandleRowMenuTriggerProps {
|
|
18
12
|
/**
|
|
19
13
|
* @default null
|
|
@@ -52,9 +46,5 @@ function TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProp
|
|
|
52
46
|
return createElement('prosekit-table-handle-row-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
/**
|
|
56
|
-
* A Preact component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
|
|
57
|
-
*
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
49
|
+
/** A Preact component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */
|
|
60
50
|
export const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);
|
|
@@ -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 { registerTableHandleRowPopupElement, type TableHandleRowPopupElement } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TableHandleRowPopup} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TableHandleRowPopup} Preact component. */
|
|
15
9
|
export interface TableHandleRowPopupProps {}
|
|
16
10
|
|
|
17
11
|
function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: Ref<TableHandleRowPopupElement>) {
|
|
@@ -36,9 +30,5 @@ function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwarded
|
|
|
36
30
|
return createElement('prosekit-table-handle-row-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
37
31
|
}
|
|
38
32
|
|
|
39
|
-
/**
|
|
40
|
-
* A Preact component that renders an `prosekit-table-handle-row-popup` custom element.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
33
|
+
/** A Preact component that renders an `prosekit-table-handle-row-popup` custom element. */
|
|
44
34
|
export const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);
|
|
@@ -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 { registerTableHandleRowPositionerElement, type TableHandleRowPositionerElement, type TableHandleRowPositionerProps as TableHandleRowPositionerElementProps } from '@prosekit/web/table-handle';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
@@ -9,11 +7,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
|
9
7
|
|
|
10
8
|
import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Props for the {@link TableHandleRowPositioner} Preact component.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
10
|
+
/** Props for the {@link TableHandleRowPositioner} Preact component. */
|
|
17
11
|
export interface TableHandleRowPositionerProps {
|
|
18
12
|
/**
|
|
19
13
|
* The placement of the popover, relative to the hovered table cell.
|
|
@@ -193,9 +187,5 @@ function TableHandleRowPositionerComponent(props: TableHandleRowPositionerProps,
|
|
|
193
187
|
return createElement('prosekit-table-handle-row-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
194
188
|
}
|
|
195
189
|
|
|
196
|
-
/**
|
|
197
|
-
* A Preact component that renders an `prosekit-table-handle-row-positioner` custom element.
|
|
198
|
-
*
|
|
199
|
-
* @public
|
|
200
|
-
*/
|
|
190
|
+
/** A Preact component that renders an `prosekit-table-handle-row-positioner` custom element. */
|
|
201
191
|
export const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);
|
|
@@ -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 { TooltipPopup, type TooltipPopupProps } from './tooltip-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 { registerTooltipPopupElement, type TooltipPopupElement } from '@prosekit/web/tooltip';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TooltipPopup} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TooltipPopup} Preact component. */
|
|
15
9
|
export interface TooltipPopupProps {}
|
|
16
10
|
|
|
17
11
|
function TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: Ref<TooltipPopupElement>) {
|
|
@@ -36,9 +30,5 @@ function TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: Ref<Toolt
|
|
|
36
30
|
return createElement('prosekit-tooltip-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
37
31
|
}
|
|
38
32
|
|
|
39
|
-
/**
|
|
40
|
-
* A Preact component that renders an `prosekit-tooltip-popup` custom element.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
33
|
+
/** A Preact component that renders an `prosekit-tooltip-popup` custom element. */
|
|
44
34
|
export const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & HTMLAttributes<TooltipPopupElement> & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);
|
|
@@ -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 { registerTooltipPositionerElement, type TooltipPositionerElement, type TooltipPositionerProps as TooltipPositionerElementProps } from '@prosekit/web/tooltip';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TooltipPositioner} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TooltipPositioner} Preact component. */
|
|
15
9
|
export interface TooltipPositionerProps {
|
|
16
10
|
/**
|
|
17
11
|
* The strategy to use for positioning
|
|
@@ -170,9 +164,5 @@ function TooltipPositionerComponent(props: TooltipPositionerProps, forwardedRef:
|
|
|
170
164
|
return createElement('prosekit-tooltip-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
171
165
|
}
|
|
172
166
|
|
|
173
|
-
/**
|
|
174
|
-
* A Preact component that renders an `prosekit-tooltip-positioner` custom element.
|
|
175
|
-
*
|
|
176
|
-
* @public
|
|
177
|
-
*/
|
|
167
|
+
/** A Preact component that renders an `prosekit-tooltip-positioner` custom element. */
|
|
178
168
|
export const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & HTMLAttributes<TooltipPositionerElement> & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);
|
|
@@ -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 { registerTooltipRootElement, type TooltipRootElement, type TooltipRootProps as TooltipRootElementProps, type TooltipRootEvents } from '@prosekit/web/tooltip';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TooltipRoot} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TooltipRoot} Preact component. */
|
|
15
9
|
export interface TooltipRootProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the overlay is initially open.
|
|
@@ -78,9 +72,5 @@ function TooltipRootComponent(props: TooltipRootProps, forwardedRef: Ref<Tooltip
|
|
|
78
72
|
return createElement('prosekit-tooltip-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
79
73
|
}
|
|
80
74
|
|
|
81
|
-
/**
|
|
82
|
-
* A Preact component that renders an `prosekit-tooltip-root` custom element.
|
|
83
|
-
*
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
75
|
+
/** A Preact component that renders an `prosekit-tooltip-root` custom element. */
|
|
86
76
|
export const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & HTMLAttributes<TooltipRootElement> & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);
|
|
@@ -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 { registerTooltipTriggerElement, type TooltipTriggerElement, type TooltipTriggerProps as TooltipTriggerElementProps } from '@prosekit/web/tooltip';
|
|
6
4
|
import { createElement, type HTMLAttributes, type Ref } from 'preact';
|
|
7
5
|
import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';
|
|
8
6
|
import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
|
|
9
7
|
|
|
10
|
-
/**
|
|
11
|
-
* Props for the {@link TooltipTrigger} Preact component.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
8
|
+
/** Props for the {@link TooltipTrigger} Preact component. */
|
|
15
9
|
export interface TooltipTriggerProps {
|
|
16
10
|
/**
|
|
17
11
|
* Whether the component should ignore user interaction.
|
|
@@ -58,9 +52,5 @@ function TooltipTriggerComponent(props: TooltipTriggerProps, forwardedRef: Ref<T
|
|
|
58
52
|
return createElement('prosekit-tooltip-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
|
|
59
53
|
}
|
|
60
54
|
|
|
61
|
-
/**
|
|
62
|
-
* A Preact component that renders an `prosekit-tooltip-trigger` custom element.
|
|
63
|
-
*
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
55
|
+
/** A Preact component that renders an `prosekit-tooltip-trigger` custom element. */
|
|
66
56
|
export const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & HTMLAttributes<TooltipTriggerElement> & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);
|