@prosekit/preact 0.7.0-beta.1 → 0.7.0-beta.3
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/prosekit-preact-autocomplete.d.ts +12 -12
- package/dist/prosekit-preact-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-preact-autocomplete.js +2 -2
- package/dist/prosekit-preact-autocomplete.js.map +1 -1
- package/dist/prosekit-preact-block-handle.d.ts +12 -12
- package/dist/prosekit-preact-block-handle.d.ts.map +1 -1
- package/dist/prosekit-preact-block-handle.js +2 -2
- package/dist/prosekit-preact-block-handle.js.map +1 -1
- package/dist/prosekit-preact-drop-indicator.d.ts +2 -2
- package/dist/prosekit-preact-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-preact-drop-indicator.js.map +1 -1
- package/dist/prosekit-preact-inline-popover.d.ts +16 -16
- package/dist/prosekit-preact-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-preact-inline-popover.js +2 -2
- package/dist/prosekit-preact-inline-popover.js.map +1 -1
- package/dist/prosekit-preact-menu.d.ts +16 -16
- package/dist/prosekit-preact-menu.d.ts.map +1 -1
- package/dist/prosekit-preact-menu.js +2 -2
- package/dist/prosekit-preact-menu.js.map +1 -1
- package/dist/prosekit-preact-popover.d.ts +10 -10
- package/dist/prosekit-preact-popover.d.ts.map +1 -1
- package/dist/prosekit-preact-popover.js +2 -2
- package/dist/prosekit-preact-popover.js.map +1 -1
- package/dist/prosekit-preact-resizable.d.ts +6 -6
- package/dist/prosekit-preact-resizable.d.ts.map +1 -1
- package/dist/prosekit-preact-resizable.js +2 -2
- package/dist/prosekit-preact-resizable.js.map +1 -1
- package/dist/prosekit-preact-table-handle.d.ts +22 -22
- package/dist/prosekit-preact-table-handle.d.ts.map +1 -1
- package/dist/prosekit-preact-table-handle.js.map +1 -1
- package/dist/prosekit-preact-tooltip.d.ts +10 -10
- package/dist/prosekit-preact-tooltip.d.ts.map +1 -1
- package/dist/prosekit-preact-tooltip.js +2 -2
- package/dist/prosekit-preact-tooltip.js.map +1 -1
- package/package.json +2 -2
- package/src/components/autocomplete/autocomplete-empty.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-item.gen.ts +2 -4
- package/src/components/autocomplete/autocomplete-popup.gen.ts +2 -4
- package/src/components/autocomplete/autocomplete-positioner.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-root.gen.ts +2 -4
- package/src/components/autocomplete/index.gen.ts +3 -5
- package/src/components/block-handle/block-handle-add.gen.ts +2 -2
- package/src/components/block-handle/block-handle-draggable.gen.ts +2 -2
- package/src/components/block-handle/block-handle-popup.gen.ts +2 -2
- package/src/components/block-handle/block-handle-positioner.gen.ts +2 -2
- package/src/components/block-handle/block-handle-root.gen.ts +2 -4
- package/src/components/block-handle/index.gen.ts +1 -3
- package/src/components/drop-indicator/drop-indicator.gen.ts +2 -2
- package/src/components/inline-popover/index.gen.ts +1 -3
- package/src/components/inline-popover/inline-popover-popup.gen.ts +2 -2
- package/src/components/inline-popover/inline-popover-positioner.gen.ts +9 -9
- package/src/components/inline-popover/inline-popover-root.gen.ts +3 -5
- package/src/components/menu/index.gen.ts +3 -5
- package/src/components/menu/menu-item.gen.ts +2 -4
- package/src/components/menu/menu-popup.gen.ts +2 -2
- package/src/components/menu/menu-positioner.gen.ts +2 -2
- package/src/components/menu/menu-root.gen.ts +2 -4
- package/src/components/menu/menu-submenu-root.gen.ts +2 -2
- package/src/components/menu/menu-submenu-trigger.gen.ts +2 -2
- package/src/components/menu/menu-trigger.gen.ts +2 -4
- package/src/components/popover/index.gen.ts +2 -4
- package/src/components/popover/popover-popup.gen.ts +2 -2
- package/src/components/popover/popover-positioner.gen.ts +2 -2
- package/src/components/popover/popover-root.gen.ts +2 -4
- package/src/components/popover/popover-trigger.gen.ts +2 -4
- package/src/components/resizable/index.gen.ts +1 -3
- package/src/components/resizable/resizable-handle.gen.ts +2 -2
- package/src/components/resizable/resizable-root.gen.ts +2 -4
- package/src/components/table-handle/table-handle-column-menu-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-popup.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-positioner.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +2 -2
- package/src/components/table-handle/table-handle-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-menu-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-popup.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-positioner.gen.ts +2 -2
- package/src/components/tooltip/index.gen.ts +1 -3
- package/src/components/tooltip/tooltip-popup.gen.ts +2 -2
- package/src/components/tooltip/tooltip-positioner.gen.ts +2 -2
- package/src/components/tooltip/tooltip-root.gen.ts +2 -4
- package/src/components/tooltip/tooltip-trigger.gen.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "preact";
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from "preact/compat";
|
|
3
|
-
import { ResizableHandleElement, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1
|
|
3
|
+
import { ResizableHandleElement, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
|
|
4
4
|
|
|
5
5
|
//#region src/components/resizable/resizable-root.gen.d.ts
|
|
6
6
|
/**
|
|
@@ -8,7 +8,7 @@ import { ResizableHandleElement, ResizableHandleProps as ResizableHandleProps$1,
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
interface ResizableRootProps
|
|
11
|
+
interface ResizableRootProps {
|
|
12
12
|
/**
|
|
13
13
|
* The width of the resizable element.
|
|
14
14
|
*
|
|
@@ -37,7 +37,7 @@ interface ResizableRootProps extends HTMLAttributes<ResizableRootElement> {
|
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
|
-
declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement>>;
|
|
40
|
+
declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>>;
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/components/resizable/resizable-handle.gen.d.ts
|
|
43
43
|
/**
|
|
@@ -45,7 +45,7 @@ declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefA
|
|
|
45
45
|
*
|
|
46
46
|
* @public
|
|
47
47
|
*/
|
|
48
|
-
interface ResizableHandleProps
|
|
48
|
+
interface ResizableHandleProps {
|
|
49
49
|
/**
|
|
50
50
|
* The position of the handle.
|
|
51
51
|
*
|
|
@@ -58,7 +58,7 @@ interface ResizableHandleProps extends HTMLAttributes<ResizableHandleElement> {
|
|
|
58
58
|
*
|
|
59
59
|
* @public
|
|
60
60
|
*/
|
|
61
|
-
declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement>>;
|
|
61
|
+
declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>>;
|
|
62
62
|
//#endregion
|
|
63
|
-
export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type
|
|
63
|
+
export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
|
|
64
64
|
//# sourceMappingURL=prosekit-preact-resizable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-preact-resizable.d.ts","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"mappings":";;;;;;;;;;UAciB,kBAAA
|
|
1
|
+
{"version":3,"file":"prosekit-preact-resizable.d.ts","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"mappings":";;;;;;;;;;UAciB,kBAAA;EAsBO;;;;;EAhBtB,KAAA,GAAQ,oBAAA;EAMC;;;;;EAAT,MAAA,GAAS,oBAAA;EAUT;;;;;EAJA,WAAA,GAAc,oBAAA;EA0D2L;EAxDzM,aAAA,IAAiB,KAAA,EAAO,mBAAA;EAwD4B;EAtDpD,WAAA,IAAe,KAAA,EAAO,mBAAA;AAAA;;;;;;cAsDX,aAAA,EAAe,yBAAA,CAA0B,kBAAA,GAAqB,cAAA,CAAe,oBAAA,IAAwB,aAAA,CAAc,oBAAA;;;;;;;;UC5E/G,oBAAA;EDsBO;;;;;EChBtB,QAAA,GAAW,sBAAA;AAAA;;;;;;cAoCA,eAAA,EAAiB,yBAAA,CAA0B,oBAAA,GAAuB,cAAA,CAAe,sBAAA,IAA0B,aAAA,CAAc,sBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElement } from "preact";
|
|
2
2
|
import { useCallback, useLayoutEffect, useRef } from "preact/hooks";
|
|
3
3
|
import { forwardRef } from "preact/compat";
|
|
4
|
-
import {
|
|
4
|
+
import { registerResizableHandleElement, registerResizableRootElement } from "@prosekit/web/resizable";
|
|
5
5
|
//#region src/components/resizable/resizable-root.gen.ts
|
|
6
6
|
/**
|
|
7
7
|
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
@@ -79,6 +79,6 @@ function ResizableHandleComponent(props, forwardedRef) {
|
|
|
79
79
|
*/
|
|
80
80
|
const ResizableHandle = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
|
|
81
81
|
//#endregion
|
|
82
|
-
export { ResizableHandle, ResizableRoot
|
|
82
|
+
export { ResizableHandle, ResizableRoot };
|
|
83
83
|
|
|
84
84
|
//# sourceMappingURL=prosekit-preact-resizable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-preact-resizable.js","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerResizableRootElement, type ResizableRootElement, type ResizableRootProps as ResizableRootElementProps, type ResizableRootEvents } from '@prosekit/web/resizable';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link ResizableRoot} Preact component.\n *\n * @public\n */\nexport interface ResizableRootProps
|
|
1
|
+
{"version":3,"file":"prosekit-preact-resizable.js","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerResizableRootElement, type ResizableRootElement, type ResizableRootProps as ResizableRootElementProps, type ResizableRootEvents } from '@prosekit/web/resizable';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link ResizableRoot} Preact component.\n *\n * @public\n */\nexport interface ResizableRootProps {\n /**\n * The width of the resizable element.\n *\n * @default null\n */\n width?: ResizableRootElementProps['width'];\n /**\n * The height of the resizable element.\n *\n * @default null\n */\n height?: ResizableRootElementProps['height'];\n /**\n * The aspect ratio of the resizable element.\n *\n * @default null\n */\n aspectRatio?: ResizableRootElementProps['aspectRatio'];\n /** Emitted when a resize operation starts. */\n onResizeStart?: (event: ResizableRootEvents['resizeStart']) => void;\n /** Emitted when a resize operation ends. */\n onResizeEnd?: (event: ResizableRootEvents['resizeEnd']) => void;\n}\n\nfunction ResizableRootComponent(props: ResizableRootProps, forwardedRef: Ref<ResizableRootElement>) {\n registerResizableRootElement();\n\n const elementRef = useRef<ResizableRootElement>(null);\n const handlersRef = useRef<Array<((event: Event) => void) | undefined>>([]);\n\n const { aspectRatio: p0, height: p1, width: p2, onResizeEnd: e0, onResizeStart: e1, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { aspectRatio: p0, height: p1, width: p2 });\n handlersRef.current = [e0, e1] as Array<((event: Event) => void) | undefined>;\n });\n\n useLayoutEffect(() => {\n const element = elementRef.current;\n if (!element) return;\n const ac = new AbortController();\n for (const [index, eventName] of ['resizeEnd', 'resizeStart'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlersRef.current[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n }, []);\n\n const mergedRef = useCallback(\n (element: ResizableRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-resizable-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-resizable-root` custom element.\n *\n * @public\n */\nexport const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerResizableHandleElement, type ResizableHandleElement, type ResizableHandleProps as ResizableHandleElementProps } from '@prosekit/web/resizable';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link ResizableHandle} Preact component.\n *\n * @public\n */\nexport interface ResizableHandleProps {\n /**\n * The position of the handle.\n *\n * @default \"bottom-right\"\n */\n position?: ResizableHandleElementProps['position'];\n}\n\nfunction ResizableHandleComponent(props: ResizableHandleProps, forwardedRef: Ref<ResizableHandleElement>) {\n registerResizableHandleElement();\n\n const elementRef = useRef<ResizableHandleElement>(null);\n\n const { position: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { position: p0 });\n });\n\n const mergedRef = useCallback(\n (element: ResizableHandleElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-resizable-handle', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-resizable-handle` custom element.\n *\n * @public\n */\nexport const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);\n"],"mappings":";;;;;;;;AAuCA,SAAS,uBAAuB,OAA2B,cAAyC;AAClG,+BAA8B;CAE9B,MAAM,aAAa,OAA6B,KAAK;CACrD,MAAM,cAAc,OAAoD,EAAE,CAAC;CAE3E,MAAM,EAAE,aAAa,IAAI,QAAQ,IAAI,OAAO,IAAI,aAAa,IAAI,eAAe,IAAI,GAAG,cAAc;AAErG,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS;GAAE,aAAa;GAAI,QAAQ;GAAI,OAAO;GAAI,CAAC;AAClE,cAAY,UAAU,CAAC,IAAI,GAAG;GAC9B;AAEF,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;EACd,MAAM,KAAK,IAAI,iBAAiB;AAChC,OAAK,MAAM,CAAC,OAAO,cAAc,CAAC,aAAa,cAAc,CAAC,SAAS,CACrE,SAAQ,iBACN,YACC,UAAiB;AAChB,eAAY,QAAQ,SAAS,MAAM;KAErC,EAAE,QAAQ,GAAG,QAAQ,CACtB;AAEH,eAAa,GAAG,OAAO;IACtB,EAAE,CAAC;CAEN,MAAM,YAAY,aACf,YAAyC;AACxC,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,2BAA2B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQnH,MAAa,gBAA4J,2BAAW,uBAAuB;;;;;;ACnE3M,SAAS,yBAAyB,OAA6B,cAA2C;AACxG,iCAAgC;CAEhC,MAAM,aAAa,OAA+B,KAAK;CAEvD,MAAM,EAAE,UAAU,IAAI,GAAG,cAAc;AAEvC,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS,EAAE,UAAU,IAAI,CAAC;GACxC;CAEF,MAAM,YAAY,aACf,YAA2C;AAC1C,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,6BAA6B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQrH,MAAa,kBAAoK,2BAAW,yBAAyB"}
|
|
@@ -8,13 +8,13 @@ import { TableHandleColumnMenuRootElement, TableHandleColumnMenuRootProps as Tab
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
interface TableHandleColumnPopupProps
|
|
11
|
+
interface TableHandleColumnPopupProps {}
|
|
12
12
|
/**
|
|
13
13
|
* A Preact component that renders an `prosekit-table-handle-column-popup` custom element.
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & RefAttributes<TableHandleColumnPopupElement>>;
|
|
17
|
+
declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>>;
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/components/table-handle/table-handle-column-positioner.gen.d.ts
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColum
|
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
|
-
interface TableHandleColumnPositionerProps
|
|
25
|
+
interface TableHandleColumnPositionerProps {
|
|
26
26
|
/**
|
|
27
27
|
* The placement of the popover, relative to the hovered table cell.
|
|
28
28
|
*
|
|
@@ -155,7 +155,7 @@ interface TableHandleColumnPositionerProps extends HTMLAttributes<TableHandleCol
|
|
|
155
155
|
*
|
|
156
156
|
* @public
|
|
157
157
|
*/
|
|
158
|
-
declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & RefAttributes<TableHandleColumnPositionerElement>>;
|
|
158
|
+
declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>>;
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/components/table-handle/table-handle-column-menu-root.gen.d.ts
|
|
161
161
|
/**
|
|
@@ -163,7 +163,7 @@ declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandle
|
|
|
163
163
|
*
|
|
164
164
|
* @public
|
|
165
165
|
*/
|
|
166
|
-
interface TableHandleColumnMenuRootProps
|
|
166
|
+
interface TableHandleColumnMenuRootProps {
|
|
167
167
|
/**
|
|
168
168
|
* Whether the overlay is initially open.
|
|
169
169
|
* @default false
|
|
@@ -185,7 +185,7 @@ interface TableHandleColumnMenuRootProps extends HTMLAttributes<TableHandleColum
|
|
|
185
185
|
*
|
|
186
186
|
* @public
|
|
187
187
|
*/
|
|
188
|
-
declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & RefAttributes<TableHandleColumnMenuRootElement>>;
|
|
188
|
+
declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>>;
|
|
189
189
|
//#endregion
|
|
190
190
|
//#region src/components/table-handle/table-handle-column-menu-trigger.gen.d.ts
|
|
191
191
|
/**
|
|
@@ -193,7 +193,7 @@ declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleCo
|
|
|
193
193
|
*
|
|
194
194
|
* @public
|
|
195
195
|
*/
|
|
196
|
-
interface TableHandleColumnMenuTriggerProps
|
|
196
|
+
interface TableHandleColumnMenuTriggerProps {
|
|
197
197
|
/**
|
|
198
198
|
* @default null
|
|
199
199
|
* @hidden
|
|
@@ -205,7 +205,7 @@ interface TableHandleColumnMenuTriggerProps extends HTMLAttributes<TableHandleCo
|
|
|
205
205
|
*
|
|
206
206
|
* @public
|
|
207
207
|
*/
|
|
208
|
-
declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & RefAttributes<TableHandleColumnMenuTriggerElement>>;
|
|
208
|
+
declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>>;
|
|
209
209
|
//#endregion
|
|
210
210
|
//#region src/components/table-handle/table-handle-drag-preview.gen.d.ts
|
|
211
211
|
/**
|
|
@@ -213,7 +213,7 @@ declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandl
|
|
|
213
213
|
*
|
|
214
214
|
* @public
|
|
215
215
|
*/
|
|
216
|
-
interface TableHandleDragPreviewProps
|
|
216
|
+
interface TableHandleDragPreviewProps {
|
|
217
217
|
/**
|
|
218
218
|
* @default null
|
|
219
219
|
* @hidden
|
|
@@ -225,7 +225,7 @@ interface TableHandleDragPreviewProps extends HTMLAttributes<TableHandleDragPrev
|
|
|
225
225
|
*
|
|
226
226
|
* @public
|
|
227
227
|
*/
|
|
228
|
-
declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement>>;
|
|
228
|
+
declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>>;
|
|
229
229
|
//#endregion
|
|
230
230
|
//#region src/components/table-handle/table-handle-drop-indicator.gen.d.ts
|
|
231
231
|
/**
|
|
@@ -233,7 +233,7 @@ declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragP
|
|
|
233
233
|
*
|
|
234
234
|
* @public
|
|
235
235
|
*/
|
|
236
|
-
interface TableHandleDropIndicatorProps
|
|
236
|
+
interface TableHandleDropIndicatorProps {
|
|
237
237
|
/**
|
|
238
238
|
* @default null
|
|
239
239
|
* @hidden
|
|
@@ -245,7 +245,7 @@ interface TableHandleDropIndicatorProps extends HTMLAttributes<TableHandleDropIn
|
|
|
245
245
|
*
|
|
246
246
|
* @public
|
|
247
247
|
*/
|
|
248
|
-
declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement>>;
|
|
248
|
+
declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>>;
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region src/components/table-handle/table-handle-root.gen.d.ts
|
|
251
251
|
/**
|
|
@@ -253,7 +253,7 @@ declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDro
|
|
|
253
253
|
*
|
|
254
254
|
* @public
|
|
255
255
|
*/
|
|
256
|
-
interface TableHandleRootProps
|
|
256
|
+
interface TableHandleRootProps {
|
|
257
257
|
/**
|
|
258
258
|
* The ProseKit editor instance.
|
|
259
259
|
*
|
|
@@ -267,7 +267,7 @@ interface TableHandleRootProps extends HTMLAttributes<TableHandleRootElement> {
|
|
|
267
267
|
*
|
|
268
268
|
* @public
|
|
269
269
|
*/
|
|
270
|
-
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement>>;
|
|
270
|
+
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>>;
|
|
271
271
|
//#endregion
|
|
272
272
|
//#region src/components/table-handle/table-handle-row-popup.gen.d.ts
|
|
273
273
|
/**
|
|
@@ -275,13 +275,13 @@ declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps &
|
|
|
275
275
|
*
|
|
276
276
|
* @public
|
|
277
277
|
*/
|
|
278
|
-
interface TableHandleRowPopupProps
|
|
278
|
+
interface TableHandleRowPopupProps {}
|
|
279
279
|
/**
|
|
280
280
|
* A Preact component that renders an `prosekit-table-handle-row-popup` custom element.
|
|
281
281
|
*
|
|
282
282
|
* @public
|
|
283
283
|
*/
|
|
284
|
-
declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & RefAttributes<TableHandleRowPopupElement>>;
|
|
284
|
+
declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>>;
|
|
285
285
|
//#endregion
|
|
286
286
|
//#region src/components/table-handle/table-handle-row-positioner.gen.d.ts
|
|
287
287
|
/**
|
|
@@ -289,7 +289,7 @@ declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopup
|
|
|
289
289
|
*
|
|
290
290
|
* @public
|
|
291
291
|
*/
|
|
292
|
-
interface TableHandleRowPositionerProps
|
|
292
|
+
interface TableHandleRowPositionerProps {
|
|
293
293
|
/**
|
|
294
294
|
* The placement of the popover, relative to the hovered table cell.
|
|
295
295
|
*
|
|
@@ -422,7 +422,7 @@ interface TableHandleRowPositionerProps extends HTMLAttributes<TableHandleRowPos
|
|
|
422
422
|
*
|
|
423
423
|
* @public
|
|
424
424
|
*/
|
|
425
|
-
declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & RefAttributes<TableHandleRowPositionerElement>>;
|
|
425
|
+
declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>>;
|
|
426
426
|
//#endregion
|
|
427
427
|
//#region src/components/table-handle/table-handle-row-menu-root.gen.d.ts
|
|
428
428
|
/**
|
|
@@ -430,7 +430,7 @@ declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRow
|
|
|
430
430
|
*
|
|
431
431
|
* @public
|
|
432
432
|
*/
|
|
433
|
-
interface TableHandleRowMenuRootProps
|
|
433
|
+
interface TableHandleRowMenuRootProps {
|
|
434
434
|
/**
|
|
435
435
|
* Whether the overlay is initially open.
|
|
436
436
|
* @default false
|
|
@@ -452,7 +452,7 @@ interface TableHandleRowMenuRootProps extends HTMLAttributes<TableHandleRowMenuR
|
|
|
452
452
|
*
|
|
453
453
|
* @public
|
|
454
454
|
*/
|
|
455
|
-
declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & RefAttributes<TableHandleRowMenuRootElement>>;
|
|
455
|
+
declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>>;
|
|
456
456
|
//#endregion
|
|
457
457
|
//#region src/components/table-handle/table-handle-row-menu-trigger.gen.d.ts
|
|
458
458
|
/**
|
|
@@ -460,7 +460,7 @@ declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMe
|
|
|
460
460
|
*
|
|
461
461
|
* @public
|
|
462
462
|
*/
|
|
463
|
-
interface TableHandleRowMenuTriggerProps
|
|
463
|
+
interface TableHandleRowMenuTriggerProps {
|
|
464
464
|
/**
|
|
465
465
|
* @default null
|
|
466
466
|
* @hidden
|
|
@@ -472,7 +472,7 @@ interface TableHandleRowMenuTriggerProps extends HTMLAttributes<TableHandleRowMe
|
|
|
472
472
|
*
|
|
473
473
|
* @public
|
|
474
474
|
*/
|
|
475
|
-
declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & RefAttributes<TableHandleRowMenuTriggerElement>>;
|
|
475
|
+
declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>>;
|
|
476
476
|
//#endregion
|
|
477
477
|
export { TableHandleColumnMenuRoot, type TableHandleColumnMenuRootProps, TableHandleColumnMenuTrigger, type TableHandleColumnMenuTriggerProps, TableHandleColumnPopup, type TableHandleColumnPopupProps, TableHandleColumnPositioner, type TableHandleColumnPositionerProps, TableHandleDragPreview, type TableHandleDragPreviewProps, TableHandleDropIndicator, type TableHandleDropIndicatorProps, TableHandleRoot, type TableHandleRootProps, TableHandleRowMenuRoot, type TableHandleRowMenuRootProps, TableHandleRowMenuTrigger, type TableHandleRowMenuTriggerProps, TableHandleRowPopup, type TableHandleRowPopupProps, TableHandleRowPositioner, type TableHandleRowPositionerProps };
|
|
478
478
|
//# sourceMappingURL=prosekit-preact-table-handle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-preact-table-handle.d.ts","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts"],"mappings":";;;;;;;;;AA2CA;UA7BiB,2BAAA
|
|
1
|
+
{"version":3,"file":"prosekit-preact-table-handle.d.ts","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts"],"mappings":";;;;;;;;;AA2CA;UA7BiB,2BAAA;;;;;;cA6BJ,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,cAAA,CAAe,6BAAA,IAAiC,aAAA,CAAc,6BAAA;;;;;;;AAA3J;UC3BiB,gCAAA;;;;;;EAMf,SAAA,GAAY,kCAAA;EDqBuB;;;;;ECfnC,QAAA,GAAW,kCAAA;EDe+F;;;;;;;ECP1G,UAAA,GAAa,kCAAA;EApBE;;;;;;EA2Bf,KAAA,GAAQ,kCAAA;EAKC;;;;EAAT,MAAA,GAAS,kCAAA;EA+BG;;;;EA1BZ,IAAA,GAAO,kCAAA;EA2DQ;;;;EAtDf,KAAA,GAAQ,kCAAA;EAoFwC;;;;;;EA7EhD,O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0DE,wBAAA,EAA0B,yBAAA,CAA0B,6BAAA,GAAgC,cAAA,CAAe,+BAAA,IAAmC,aAAA,CAAc,+BAAA;;;;;;;AR7JjK;US7BiB,2BAAA;;;;;EAKf,WAAA,GAAc,6BAAA;ETwB6H;;;;ESnB3I,IAAA,GAAO,6BAAA;ETmBsD;;;;ESd7D,QAAA,GAAW,6BAAA;AAAA;;;;;ARbb;cQiDa,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,cAAA,CAAe,6BAAA,IAAiC,aAAA,CAAc,6BAAA;;;;;;;ATtB3J;UU3BiB,8BAAA;;;;;EAKf,MAAA,GAAS,gCAAA;AAAA;;;;;;cAsCE,yBAAA,EAA2B,yBAAA,CAA0B,8BAAA,GAAiC,cAAA,CAAe,gCAAA,IAAoC,aAAA,CAAc,gCAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-preact-table-handle.js","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnPopupElement, type TableHandleColumnPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleColumnPopup} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnPopupProps extends HTMLAttributes<TableHandleColumnPopupElement> {}\n\nfunction TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: Ref<TableHandleColumnPopupElement>) {\n registerTableHandleColumnPopupElement();\n\n const elementRef = useRef<TableHandleColumnPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPopupElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-popup` custom element.\n *\n * @public\n */\nexport const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnPositionerElement, type TableHandleColumnPositionerElement, type TableHandleColumnPositionerProps as TableHandleColumnPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleColumnPositioner} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnPositionerProps extends HTMLAttributes<TableHandleColumnPositionerElement> {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"top\"\n */\n placement?: TableHandleColumnPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleColumnPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleColumnPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleColumnPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleColumnPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleColumnPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleColumnPositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: TableHandleColumnPositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width and height to not exceed\n * the viewport.\n *\n * @default false\n */\n fitViewport?: TableHandleColumnPositionerElementProps['fitViewport'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: TableHandleColumnPositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: TableHandleColumnPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleColumnPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleColumnPositionerElementProps['hide'];\n /**\n * Describes the clipping element(s) or area that overflow will be checked relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.\n *\n * @default 'clippingAncestors'\n */\n boundary?: TableHandleColumnPositionerElementProps['boundary'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: TableHandleColumnPositionerElementProps['rootBoundary'];\n /**\n * Describes the virtual padding around the boundary to check for overflow.\n * Please see https://floating-ui.com/docs/detectoverflow#padding for more information.\n *\n * @default 4\n */\n overflowPadding?: TableHandleColumnPositionerElementProps['overflowPadding'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: TableHandleColumnPositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: TableHandleColumnPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnPositionerElementProps['editor'];\n}\n\nfunction TableHandleColumnPositionerComponent(props: TableHandleColumnPositionerProps, forwardedRef: Ref<TableHandleColumnPositionerElement>) {\n registerTableHandleColumnPositionerElement();\n\n const elementRef = useRef<TableHandleColumnPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPositionerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-positioner` custom element.\n *\n * @public\n */\nexport const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnMenuRootElement, type TableHandleColumnMenuRootElement, type TableHandleColumnMenuRootProps as TableHandleColumnMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleColumnMenuRoot} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnMenuRootProps extends HTMLAttributes<TableHandleColumnMenuRootElement> {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleColumnMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleColumnMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleColumnMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProps, forwardedRef: Ref<TableHandleColumnMenuRootElement>) {\n registerTableHandleColumnMenuRootElement();\n\n const elementRef = useRef<TableHandleColumnMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { defaultOpen: p0, disabled: p1, open: p2 });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-menu-root` custom element.\n *\n * @public\n */\nexport const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleColumnMenuTrigger} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnMenuTriggerProps extends HTMLAttributes<TableHandleColumnMenuTriggerElement> {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTriggerProps, forwardedRef: Ref<TableHandleColumnMenuTriggerElement>) {\n registerTableHandleColumnMenuTriggerElement();\n\n const elementRef = useRef<TableHandleColumnMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuTriggerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-menu-trigger` custom element.\n *\n * @public\n */\nexport const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleDragPreviewElement, type TableHandleDragPreviewElement, type TableHandleDragPreviewProps as TableHandleDragPreviewElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleDragPreview} Preact component.\n *\n * @public\n */\nexport interface TableHandleDragPreviewProps extends HTMLAttributes<TableHandleDragPreviewElement> {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDragPreviewElementProps['editor'];\n}\n\nfunction TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, forwardedRef: Ref<TableHandleDragPreviewElement>) {\n registerTableHandleDragPreviewElement();\n\n const elementRef = useRef<TableHandleDragPreviewElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDragPreviewElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-drag-preview', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-drag-preview` custom element.\n *\n * @public\n */\nexport const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleDropIndicatorElement, type TableHandleDropIndicatorElement, type TableHandleDropIndicatorProps as TableHandleDropIndicatorElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleDropIndicator} Preact component.\n *\n * @public\n */\nexport interface TableHandleDropIndicatorProps extends HTMLAttributes<TableHandleDropIndicatorElement> {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDropIndicatorElementProps['editor'];\n}\n\nfunction TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps, forwardedRef: Ref<TableHandleDropIndicatorElement>) {\n registerTableHandleDropIndicatorElement();\n\n const elementRef = useRef<TableHandleDropIndicatorElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDropIndicatorElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-drop-indicator', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-drop-indicator` custom element.\n *\n * @public\n */\nexport const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRootElement, type TableHandleRootElement, type TableHandleRootProps as TableHandleRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRoot} Preact component.\n *\n * @public\n */\nexport interface TableHandleRootProps extends HTMLAttributes<TableHandleRootElement> {\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRootElementProps['editor'];\n}\n\nfunction TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: Ref<TableHandleRootElement>) {\n registerTableHandleRootElement();\n\n const elementRef = useRef<TableHandleRootElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-root` custom element.\n *\n * @public\n */\nexport const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowPopupElement, type TableHandleRowPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleRowPopup} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowPopupProps extends HTMLAttributes<TableHandleRowPopupElement> {}\n\nfunction TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: Ref<TableHandleRowPopupElement>) {\n registerTableHandleRowPopupElement();\n\n const elementRef = useRef<TableHandleRowPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleRowPopupElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-popup` custom element.\n *\n * @public\n */\nexport const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowPositionerElement, type TableHandleRowPositionerElement, type TableHandleRowPositionerProps as TableHandleRowPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRowPositioner} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowPositionerProps extends HTMLAttributes<TableHandleRowPositionerElement> {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"left\"\n */\n placement?: TableHandleRowPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleRowPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleRowPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleRowPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleRowPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleRowPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleRowPositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: TableHandleRowPositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width and height to not exceed\n * the viewport.\n *\n * @default false\n */\n fitViewport?: TableHandleRowPositionerElementProps['fitViewport'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: TableHandleRowPositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: TableHandleRowPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleRowPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleRowPositionerElementProps['hide'];\n /**\n * Describes the clipping element(s) or area that overflow will be checked relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.\n *\n * @default 'clippingAncestors'\n */\n boundary?: TableHandleRowPositionerElementProps['boundary'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: TableHandleRowPositionerElementProps['rootBoundary'];\n /**\n * Describes the virtual padding around the boundary to check for overflow.\n * Please see https://floating-ui.com/docs/detectoverflow#padding for more information.\n *\n * @default 4\n */\n overflowPadding?: TableHandleRowPositionerElementProps['overflowPadding'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: TableHandleRowPositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: TableHandleRowPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRowPositionerElementProps['editor'];\n}\n\nfunction TableHandleRowPositionerComponent(props: TableHandleRowPositionerProps, forwardedRef: Ref<TableHandleRowPositionerElement>) {\n registerTableHandleRowPositionerElement();\n\n const elementRef = useRef<TableHandleRowPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowPositionerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-positioner` custom element.\n *\n * @public\n */\nexport const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowMenuRootElement, type TableHandleRowMenuRootElement, type TableHandleRowMenuRootProps as TableHandleRowMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleRowMenuRoot} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowMenuRootProps extends HTMLAttributes<TableHandleRowMenuRootElement> {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleRowMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleRowMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleRowMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, forwardedRef: Ref<TableHandleRowMenuRootElement>) {\n registerTableHandleRowMenuRootElement();\n\n const elementRef = useRef<TableHandleRowMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { defaultOpen: p0, disabled: p1, open: p2 });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-menu-root` custom element.\n *\n * @public\n */\nexport const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRowMenuTrigger} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowMenuTriggerProps extends HTMLAttributes<TableHandleRowMenuTriggerElement> {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleRowMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProps, forwardedRef: Ref<TableHandleRowMenuTriggerElement>) {\n registerTableHandleRowMenuTriggerElement();\n\n const elementRef = useRef<TableHandleRowMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuTriggerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-menu-trigger` custom element.\n *\n * @public\n */\nexport const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);\n"],"mappings":";;;;;;;;;AAgBA,SAAS,gCAAgC,OAAoC,cAAkD;AAC7H,wCAAuC;CAEvC,MAAM,aAAa,OAAsC,KAAK;CAE9D,MAAM,EAAE,GAAG,cAAc;CAEzB,MAAM,YAAY,aACf,YAAkD;AACjD,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,sCAAsC;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQ9H,MAAa,yBAAgJ,2BAAW,gCAAgC;;;;;;ACsGxM,SAAS,qCAAqC,OAAyC,cAAuD;AAC5I,6CAA4C;CAE5C,MAAM,aAAa,OAA2C,KAAK;CAEnE,MAA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"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnPopupElement, type TableHandleColumnPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleColumnPopup} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnPopupProps {}\n\nfunction TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: Ref<TableHandleColumnPopupElement>) {\n registerTableHandleColumnPopupElement();\n\n const elementRef = useRef<TableHandleColumnPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPopupElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-popup` custom element.\n *\n * @public\n */\nexport const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnPositionerElement, type TableHandleColumnPositionerElement, type TableHandleColumnPositionerProps as TableHandleColumnPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleColumnPositioner} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnPositionerProps {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"top\"\n */\n placement?: TableHandleColumnPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleColumnPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleColumnPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleColumnPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleColumnPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleColumnPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleColumnPositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: TableHandleColumnPositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width and height to not exceed\n * the viewport.\n *\n * @default false\n */\n fitViewport?: TableHandleColumnPositionerElementProps['fitViewport'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: TableHandleColumnPositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: TableHandleColumnPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleColumnPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleColumnPositionerElementProps['hide'];\n /**\n * Describes the clipping element(s) or area that overflow will be checked relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.\n *\n * @default 'clippingAncestors'\n */\n boundary?: TableHandleColumnPositionerElementProps['boundary'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: TableHandleColumnPositionerElementProps['rootBoundary'];\n /**\n * Describes the virtual padding around the boundary to check for overflow.\n * Please see https://floating-ui.com/docs/detectoverflow#padding for more information.\n *\n * @default 4\n */\n overflowPadding?: TableHandleColumnPositionerElementProps['overflowPadding'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: TableHandleColumnPositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: TableHandleColumnPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnPositionerElementProps['editor'];\n}\n\nfunction TableHandleColumnPositionerComponent(props: TableHandleColumnPositionerProps, forwardedRef: Ref<TableHandleColumnPositionerElement>) {\n registerTableHandleColumnPositionerElement();\n\n const elementRef = useRef<TableHandleColumnPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPositionerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-positioner` custom element.\n *\n * @public\n */\nexport const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnMenuRootElement, type TableHandleColumnMenuRootElement, type TableHandleColumnMenuRootProps as TableHandleColumnMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleColumnMenuRoot} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnMenuRootProps {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleColumnMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleColumnMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleColumnMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProps, forwardedRef: Ref<TableHandleColumnMenuRootElement>) {\n registerTableHandleColumnMenuRootElement();\n\n const elementRef = useRef<TableHandleColumnMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { defaultOpen: p0, disabled: p1, open: p2 });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-menu-root` custom element.\n *\n * @public\n */\nexport const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleColumnMenuTrigger} Preact component.\n *\n * @public\n */\nexport interface TableHandleColumnMenuTriggerProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTriggerProps, forwardedRef: Ref<TableHandleColumnMenuTriggerElement>) {\n registerTableHandleColumnMenuTriggerElement();\n\n const elementRef = useRef<TableHandleColumnMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuTriggerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-column-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-column-menu-trigger` custom element.\n *\n * @public\n */\nexport const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleDragPreviewElement, type TableHandleDragPreviewElement, type TableHandleDragPreviewProps as TableHandleDragPreviewElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleDragPreview} Preact component.\n *\n * @public\n */\nexport interface TableHandleDragPreviewProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDragPreviewElementProps['editor'];\n}\n\nfunction TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, forwardedRef: Ref<TableHandleDragPreviewElement>) {\n registerTableHandleDragPreviewElement();\n\n const elementRef = useRef<TableHandleDragPreviewElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDragPreviewElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-drag-preview', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-drag-preview` custom element.\n *\n * @public\n */\nexport const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleDropIndicatorElement, type TableHandleDropIndicatorElement, type TableHandleDropIndicatorProps as TableHandleDropIndicatorElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleDropIndicator} Preact component.\n *\n * @public\n */\nexport interface TableHandleDropIndicatorProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDropIndicatorElementProps['editor'];\n}\n\nfunction TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps, forwardedRef: Ref<TableHandleDropIndicatorElement>) {\n registerTableHandleDropIndicatorElement();\n\n const elementRef = useRef<TableHandleDropIndicatorElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDropIndicatorElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-drop-indicator', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-drop-indicator` custom element.\n *\n * @public\n */\nexport const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRootElement, type TableHandleRootElement, type TableHandleRootProps as TableHandleRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRoot} Preact component.\n *\n * @public\n */\nexport interface TableHandleRootProps {\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRootElementProps['editor'];\n}\n\nfunction TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: Ref<TableHandleRootElement>) {\n registerTableHandleRootElement();\n\n const elementRef = useRef<TableHandleRootElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-root` custom element.\n *\n * @public\n */\nexport const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowPopupElement, type TableHandleRowPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleRowPopup} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowPopupProps {}\n\nfunction TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: Ref<TableHandleRowPopupElement>) {\n registerTableHandleRowPopupElement();\n\n const elementRef = useRef<TableHandleRowPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleRowPopupElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-popup` custom element.\n *\n * @public\n */\nexport const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowPositionerElement, type TableHandleRowPositionerElement, type TableHandleRowPositionerProps as TableHandleRowPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRowPositioner} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowPositionerProps {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"left\"\n */\n placement?: TableHandleRowPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleRowPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleRowPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleRowPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleRowPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleRowPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleRowPositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: TableHandleRowPositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width and height to not exceed\n * the viewport.\n *\n * @default false\n */\n fitViewport?: TableHandleRowPositionerElementProps['fitViewport'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: TableHandleRowPositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: TableHandleRowPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleRowPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleRowPositionerElementProps['hide'];\n /**\n * Describes the clipping element(s) or area that overflow will be checked relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.\n *\n * @default 'clippingAncestors'\n */\n boundary?: TableHandleRowPositionerElementProps['boundary'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: TableHandleRowPositionerElementProps['rootBoundary'];\n /**\n * Describes the virtual padding around the boundary to check for overflow.\n * Please see https://floating-ui.com/docs/detectoverflow#padding for more information.\n *\n * @default 4\n */\n overflowPadding?: TableHandleRowPositionerElementProps['overflowPadding'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: TableHandleRowPositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: TableHandleRowPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRowPositionerElementProps['editor'];\n}\n\nfunction TableHandleRowPositionerComponent(props: TableHandleRowPositionerProps, forwardedRef: Ref<TableHandleRowPositionerElement>) {\n registerTableHandleRowPositionerElement();\n\n const elementRef = useRef<TableHandleRowPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowPositionerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-positioner` custom element.\n *\n * @public\n */\nexport const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowMenuRootElement, type TableHandleRowMenuRootElement, type TableHandleRowMenuRootProps as TableHandleRowMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TableHandleRowMenuRoot} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowMenuRootProps {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleRowMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleRowMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleRowMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, forwardedRef: Ref<TableHandleRowMenuRootElement>) {\n registerTableHandleRowMenuRootElement();\n\n const elementRef = useRef<TableHandleRowMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { defaultOpen: p0, disabled: p1, open: p2 });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-menu-root` custom element.\n *\n * @public\n */\nexport const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRowMenuTrigger} Preact component.\n *\n * @public\n */\nexport interface TableHandleRowMenuTriggerProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleRowMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProps, forwardedRef: Ref<TableHandleRowMenuTriggerElement>) {\n registerTableHandleRowMenuTriggerElement();\n\n const elementRef = useRef<TableHandleRowMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuTriggerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-table-handle-row-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-table-handle-row-menu-trigger` custom element.\n *\n * @public\n */\nexport const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);\n"],"mappings":";;;;;;;;;AAgBA,SAAS,gCAAgC,OAAoC,cAAkD;AAC7H,wCAAuC;CAEvC,MAAM,aAAa,OAAsC,KAAK;CAE9D,MAAM,EAAE,GAAG,cAAc;CAEzB,MAAM,YAAY,aACf,YAAkD;AACjD,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,sCAAsC;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQ9H,MAAa,yBAAgM,2BAAW,gCAAgC;;;;;;ACsGxP,SAAS,qCAAqC,OAAyC,cAAuD;AAC5I,6CAA4C;CAE5C,MAAM,aAAa,OAA2C,KAAK;CAEnE,MAAM,aAAa,kBAAkB;CAErC,MAAM,EAAE,aAAa,IAAI,YAAY,IAAI,UAAU,IAAI,QAAQ,IAAI,gBAAgB,IAAI,aAAa,IAAI,MAAM,IAAI,MAAM,IAAI,OAAO,IAAI,QAAQ,IAAI,QAAQ,KAAK,iBAAiB,KAAK,SAAS,KAAK,WAAW,KAAK,cAAc,KAAK,YAAY,KAAK,WAAW,KAAK,OAAO,KAAK,UAAU,KAAK,GAAG,cAAc;AAEpT,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS;GACrB,aAAa;GACb,YAAY;GACZ,UAAU;GACV,QAAQ,MAAM;GACd,gBAAgB;GAChB,aAAa;GACb,MAAM;GACN,MAAM;GACN,OAAO;GACP,QAAQ;GACR,QAAQ;GACR,iBAAiB;GACjB,SAAS;GACT,WAAW;GACX,cAAc;GACd,YAAY;GACZ,WAAW;GACX,OAAO;GACP,UAAU;GAC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H,MAAa,yBAAgM,2BAAW,gCAAgC;;;;;;ACzCxP,SAAS,mCAAmC,OAAuC,cAAqD;AACtI,2CAA0C;CAE1C,MAAM,aAAa,OAAyC,KAAK;CAEjE,MAAM,aAAa,kBAAkB;CAErC,MAAM,EAAE,QAAQ,IAAI,GAAG,cAAc;AAErC,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS,EAAE,QAAQ,MAAM,YAAY,CAAC;GACpD;CAEF,MAAM,YAAY,aACf,YAAqD;AACpD,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,0CAA0C;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQlI,MAAa,4BAA4M,2BAAW,mCAAmC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "preact";
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from "preact/compat";
|
|
3
|
-
import {
|
|
3
|
+
import { TooltipPopupElement, TooltipPositionerElement, TooltipPositionerProps as TooltipPositionerProps$1, TooltipRootElement, TooltipRootEvents, TooltipRootProps as TooltipRootProps$1, TooltipTriggerElement, TooltipTriggerProps as TooltipTriggerProps$1 } from "@prosekit/web/tooltip";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/tooltip-popup.gen.d.ts
|
|
6
6
|
/**
|
|
@@ -8,13 +8,13 @@ import { OpenChangeEvent, TooltipPopupElement, TooltipPositionerElement, Tooltip
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
interface TooltipPopupProps
|
|
11
|
+
interface TooltipPopupProps {}
|
|
12
12
|
/**
|
|
13
13
|
* A Preact component that renders an `prosekit-tooltip-popup` custom element.
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
declare const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & RefAttributes<TooltipPopupElement>>;
|
|
17
|
+
declare const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & HTMLAttributes<TooltipPopupElement> & RefAttributes<TooltipPopupElement>>;
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/components/tooltip/tooltip-positioner.gen.d.ts
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ declare const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & RefAtt
|
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
|
-
interface TooltipPositionerProps
|
|
25
|
+
interface TooltipPositionerProps {
|
|
26
26
|
/**
|
|
27
27
|
* The strategy to use for positioning
|
|
28
28
|
*
|
|
@@ -156,7 +156,7 @@ interface TooltipPositionerProps extends HTMLAttributes<TooltipPositionerElement
|
|
|
156
156
|
*
|
|
157
157
|
* @public
|
|
158
158
|
*/
|
|
159
|
-
declare const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & RefAttributes<TooltipPositionerElement>>;
|
|
159
|
+
declare const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & HTMLAttributes<TooltipPositionerElement> & RefAttributes<TooltipPositionerElement>>;
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region src/components/tooltip/tooltip-root.gen.d.ts
|
|
162
162
|
/**
|
|
@@ -164,7 +164,7 @@ declare const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProp
|
|
|
164
164
|
*
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
167
|
-
interface TooltipRootProps
|
|
167
|
+
interface TooltipRootProps {
|
|
168
168
|
/**
|
|
169
169
|
* Whether the overlay is initially open.
|
|
170
170
|
* @default false
|
|
@@ -188,7 +188,7 @@ interface TooltipRootProps extends HTMLAttributes<TooltipRootElement> {
|
|
|
188
188
|
*
|
|
189
189
|
* @public
|
|
190
190
|
*/
|
|
191
|
-
declare const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttributes<TooltipRootElement>>;
|
|
191
|
+
declare const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & HTMLAttributes<TooltipRootElement> & RefAttributes<TooltipRootElement>>;
|
|
192
192
|
//#endregion
|
|
193
193
|
//#region src/components/tooltip/tooltip-trigger.gen.d.ts
|
|
194
194
|
/**
|
|
@@ -196,7 +196,7 @@ declare const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttri
|
|
|
196
196
|
*
|
|
197
197
|
* @public
|
|
198
198
|
*/
|
|
199
|
-
interface TooltipTriggerProps
|
|
199
|
+
interface TooltipTriggerProps {
|
|
200
200
|
/**
|
|
201
201
|
* Whether the component should ignore user interaction.
|
|
202
202
|
* @default false
|
|
@@ -218,7 +218,7 @@ interface TooltipTriggerProps extends HTMLAttributes<TooltipTriggerElement> {
|
|
|
218
218
|
*
|
|
219
219
|
* @public
|
|
220
220
|
*/
|
|
221
|
-
declare const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<TooltipTriggerElement>>;
|
|
221
|
+
declare const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & HTMLAttributes<TooltipTriggerElement> & RefAttributes<TooltipTriggerElement>>;
|
|
222
222
|
//#endregion
|
|
223
|
-
export {
|
|
223
|
+
export { TooltipPopup, type TooltipPopupProps, TooltipPositioner, type TooltipPositionerProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerProps };
|
|
224
224
|
//# sourceMappingURL=prosekit-preact-tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-preact-tooltip.d.ts","names":[],"sources":["../src/components/tooltip/tooltip-popup.gen.ts","../src/components/tooltip/tooltip-positioner.gen.ts","../src/components/tooltip/tooltip-root.gen.ts","../src/components/tooltip/tooltip-trigger.gen.ts"],"mappings":";;;;;;;;;AA2CA;UA7BiB,iBAAA
|
|
1
|
+
{"version":3,"file":"prosekit-preact-tooltip.d.ts","names":[],"sources":["../src/components/tooltip/tooltip-popup.gen.ts","../src/components/tooltip/tooltip-positioner.gen.ts","../src/components/tooltip/tooltip-root.gen.ts","../src/components/tooltip/tooltip-trigger.gen.ts"],"mappings":";;;;;;;;;AA2CA;UA7BiB,iBAAA;;;;;;cA6BJ,YAAA,EAAc,yBAAA,CAA0B,iBAAA,GAAoB,cAAA,CAAe,mBAAA,IAAuB,aAAA,CAAc,mBAAA;;;;;;;AAA7H;UC7BiB,sBAAA;;;;;;EAMf,QAAA,GAAW,wBAAA;EDuBc;;;;;ECjBzB,SAAA,GAAY,wBAAA;EDiB0E;;;;;;;ECTtF,UAAA,GAAa,wBAAA;EApBE;;;;;;EA2Bf,KAAA,GAAQ,wBAAA;EAMC;;;;;EAAT,MAAA,GAAS,wBAAA;EA2CI;;;;;;;;EAlCb,IAAA,GAAO,wBAAA;EAqFoC;;;;;EA/E3C,KAAA,GAAQ,wBAAA;EA5BK;;;;;;EAmCb,OAAA,GAAU,wBAAA;EAPV;;;;;;EAcA,WAAA,GAAc,wBAAA;EAOF;;;;;;EAAZ,SAAA,GAAY,wBAAA;EA4BZ;;;;;;EArBA,UAAA,GAAa,wBAAA;EA2CI;;;;;AA4CnB;EAhFE,MAAA,GAAS,wBAAA;;;;;;;EAOT,IAAA,GAAO,wBAAA;EAyEgD;;;;;;EAlEvD,QAAA,GAAW,wBAAA;EAkE+H;;;;;;EA3D1I,YAAA,GAAe,wBAAA;ECxGgB;;;;;;ED+G/B,eAAA,GAAkB,wBAAA;EC9FsB;;;;;;;EDsGxC,cAAA,GAAiB,wBAAA;ECtGM;;;;AAsDzB;;;EDwDE,WAAA,GAAc,wBAAA;AAAA;;;;;;cAoCH,iBAAA,EAAmB,yBAAA,CAA0B,sBAAA,GAAyB,cAAA,CAAe,wBAAA,IAA4B,aAAA,CAAc,wBAAA;;;;;;;ADtI5I;UE7BiB,gBAAA;;;;;EAKf,WAAA,GAAc,k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