@prosekit/preact 0.7.0-beta.2 → 0.7.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/editor-context.js +0 -2
  2. package/dist/editor-context.js.map +1 -1
  3. package/dist/prosekit-preact-autocomplete.d.ts +22 -73
  4. package/dist/prosekit-preact-autocomplete.d.ts.map +1 -1
  5. package/dist/prosekit-preact-autocomplete.js +7 -52
  6. package/dist/prosekit-preact-autocomplete.js.map +1 -1
  7. package/dist/prosekit-preact-block-handle.d.ts +22 -73
  8. package/dist/prosekit-preact-block-handle.d.ts.map +1 -1
  9. package/dist/prosekit-preact-block-handle.js +7 -52
  10. package/dist/prosekit-preact-block-handle.js.map +1 -1
  11. package/dist/prosekit-preact-drop-indicator.d.ts +4 -15
  12. package/dist/prosekit-preact-drop-indicator.d.ts.map +1 -1
  13. package/dist/prosekit-preact-drop-indicator.js +1 -10
  14. package/dist/prosekit-preact-drop-indicator.js.map +1 -1
  15. package/dist/prosekit-preact-inline-popover.d.ts +15 -46
  16. package/dist/prosekit-preact-inline-popover.d.ts.map +1 -1
  17. package/dist/prosekit-preact-inline-popover.js +5 -32
  18. package/dist/prosekit-preact-inline-popover.js.map +1 -1
  19. package/dist/prosekit-preact-menu.d.ts +61 -101
  20. package/dist/prosekit-preact-menu.d.ts.map +1 -1
  21. package/dist/prosekit-preact-menu.js +39 -74
  22. package/dist/prosekit-preact-menu.js.map +1 -1
  23. package/dist/prosekit-preact-popover.d.ts +18 -59
  24. package/dist/prosekit-preact-popover.d.ts.map +1 -1
  25. package/dist/prosekit-preact-popover.js +6 -42
  26. package/dist/prosekit-preact-popover.js.map +1 -1
  27. package/dist/prosekit-preact-resizable.d.ts +10 -31
  28. package/dist/prosekit-preact-resizable.d.ts.map +1 -1
  29. package/dist/prosekit-preact-resizable.js +4 -22
  30. package/dist/prosekit-preact-resizable.js.map +1 -1
  31. package/dist/prosekit-preact-table-handle.d.ts +44 -155
  32. package/dist/prosekit-preact-table-handle.d.ts.map +1 -1
  33. package/dist/prosekit-preact-table-handle.js +11 -110
  34. package/dist/prosekit-preact-table-handle.js.map +1 -1
  35. package/dist/prosekit-preact-tooltip.d.ts +18 -59
  36. package/dist/prosekit-preact-tooltip.d.ts.map +1 -1
  37. package/dist/prosekit-preact-tooltip.js +6 -42
  38. package/dist/prosekit-preact-tooltip.js.map +1 -1
  39. package/dist/prosekit-preact.d.ts +0 -21
  40. package/dist/prosekit-preact.d.ts.map +1 -1
  41. package/dist/prosekit-preact.js +0 -26
  42. package/dist/prosekit-preact.js.map +1 -1
  43. package/package.json +5 -5
  44. package/src/components/autocomplete/autocomplete-empty.gen.ts +5 -15
  45. package/src/components/autocomplete/autocomplete-item.gen.ts +5 -17
  46. package/src/components/autocomplete/autocomplete-popup.gen.ts +5 -17
  47. package/src/components/autocomplete/autocomplete-positioner.gen.ts +5 -15
  48. package/src/components/autocomplete/autocomplete-root.gen.ts +5 -17
  49. package/src/components/autocomplete/index.gen.ts +4 -8
  50. package/src/components/block-handle/block-handle-add.gen.ts +5 -15
  51. package/src/components/block-handle/block-handle-draggable.gen.ts +5 -15
  52. package/src/components/block-handle/block-handle-popup.gen.ts +5 -15
  53. package/src/components/block-handle/block-handle-positioner.gen.ts +5 -15
  54. package/src/components/block-handle/block-handle-root.gen.ts +5 -17
  55. package/src/components/block-handle/index.gen.ts +2 -6
  56. package/src/components/drop-indicator/drop-indicator.gen.ts +5 -15
  57. package/src/components/drop-indicator/index.gen.ts +1 -3
  58. package/src/components/inline-popover/index.gen.ts +2 -6
  59. package/src/components/inline-popover/inline-popover-popup.gen.ts +5 -15
  60. package/src/components/inline-popover/inline-popover-positioner.gen.ts +5 -15
  61. package/src/components/inline-popover/inline-popover-root.gen.ts +6 -18
  62. package/src/components/menu/index.gen.ts +4 -8
  63. package/src/components/menu/menu-item.gen.ts +5 -17
  64. package/src/components/menu/menu-popup.gen.ts +5 -15
  65. package/src/components/menu/menu-positioner.gen.ts +5 -15
  66. package/src/components/menu/menu-root.gen.ts +5 -17
  67. package/src/components/menu/menu-submenu-root.gen.ts +50 -18
  68. package/src/components/menu/menu-submenu-trigger.gen.ts +28 -19
  69. package/src/components/menu/menu-trigger.gen.ts +5 -17
  70. package/src/components/popover/index.gen.ts +3 -7
  71. package/src/components/popover/popover-popup.gen.ts +5 -15
  72. package/src/components/popover/popover-positioner.gen.ts +5 -15
  73. package/src/components/popover/popover-root.gen.ts +5 -17
  74. package/src/components/popover/popover-trigger.gen.ts +5 -17
  75. package/src/components/resizable/index.gen.ts +2 -6
  76. package/src/components/resizable/resizable-handle.gen.ts +5 -15
  77. package/src/components/resizable/resizable-root.gen.ts +5 -17
  78. package/src/components/table-handle/index.gen.ts +1 -3
  79. package/src/components/table-handle/table-handle-column-menu-root.gen.ts +5 -15
  80. package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +5 -15
  81. package/src/components/table-handle/table-handle-column-popup.gen.ts +5 -15
  82. package/src/components/table-handle/table-handle-column-positioner.gen.ts +5 -15
  83. package/src/components/table-handle/table-handle-drag-preview.gen.ts +5 -15
  84. package/src/components/table-handle/table-handle-drop-indicator.gen.ts +5 -15
  85. package/src/components/table-handle/table-handle-root.gen.ts +5 -15
  86. package/src/components/table-handle/table-handle-row-menu-root.gen.ts +5 -15
  87. package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +5 -15
  88. package/src/components/table-handle/table-handle-row-popup.gen.ts +5 -15
  89. package/src/components/table-handle/table-handle-row-positioner.gen.ts +5 -15
  90. package/src/components/tooltip/index.gen.ts +2 -6
  91. package/src/components/tooltip/tooltip-popup.gen.ts +5 -15
  92. package/src/components/tooltip/tooltip-positioner.gen.ts +5 -15
  93. package/src/components/tooltip/tooltip-root.gen.ts +5 -17
  94. package/src/components/tooltip/tooltip-trigger.gen.ts +5 -15
@@ -1,14 +1,8 @@
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, ResizeEndEvent, ResizeStartEvent } from "@prosekit/web/resizable";
4
-
5
- //#region src/components/resizable/resizable-root.gen.d.ts
6
- /**
7
- * Props for the {@link ResizableRoot} Preact component.
8
- *
9
- * @public
10
- */
11
- interface ResizableRootProps extends HTMLAttributes<ResizableRootElement> {
3
+ import { ResizableHandleElement, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
4
+ /** Props for the {@link ResizableRoot} Preact component. */
5
+ interface ResizableRootProps {
12
6
  /**
13
7
  * The width of the resizable element.
14
8
  *
@@ -32,20 +26,10 @@ interface ResizableRootProps extends HTMLAttributes<ResizableRootElement> {
32
26
  /** Emitted when a resize operation ends. */
33
27
  onResizeEnd?: (event: ResizableRootEvents['resizeEnd']) => void;
34
28
  }
35
- /**
36
- * A Preact component that renders an `prosekit-resizable-root` custom element.
37
- *
38
- * @public
39
- */
40
- declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement>>;
41
- //#endregion
42
- //#region src/components/resizable/resizable-handle.gen.d.ts
43
- /**
44
- * Props for the {@link ResizableHandle} Preact component.
45
- *
46
- * @public
47
- */
48
- interface ResizableHandleProps extends HTMLAttributes<ResizableHandleElement> {
29
+ /** A Preact component that renders an `prosekit-resizable-root` custom element. */
30
+ declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>>;
31
+ /** Props for the {@link ResizableHandle} Preact component. */
32
+ interface ResizableHandleProps {
49
33
  /**
50
34
  * The position of the handle.
51
35
  *
@@ -53,12 +37,7 @@ interface ResizableHandleProps extends HTMLAttributes<ResizableHandleElement> {
53
37
  */
54
38
  position?: ResizableHandleProps$1['position'];
55
39
  }
56
- /**
57
- * A Preact component that renders an `prosekit-resizable-handle` custom element.
58
- *
59
- * @public
60
- */
61
- declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement>>;
62
- //#endregion
63
- export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootEvents, type ResizableRootProps, ResizeEndEvent, ResizeStartEvent };
40
+ /** A Preact component that renders an `prosekit-resizable-handle` custom element. */
41
+ declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>>;
42
+ export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
64
43
  //# 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,SAA2B,cAAA,CAAe,oBAAA;EAoBjC;;;;;EAdxB,KAAA,GAAQ,oBAAA;EANiD;;;;;EAYzD,MAAA,GAAS,oBAAA;EAMK;;;;;EAAd,WAAA,GAAc,oBAAA;EAIC;EAFf,aAAA,IAAiB,KAAA,EAAO,mBAAA;EAE8B;EAAtD,WAAA,IAAe,KAAA,EAAO,mBAAA;AAAA;;;;;;cAsDX,aAAA,EAAe,yBAAA,CAA0B,kBAAA,GAAqB,aAAA,CAAc,oBAAA;;;;;;;;UC5ExE,oBAAA,SAA6B,cAAA,CAAe,sBAAA;EDoBnC;;;;;ECdxB,QAAA,GAAW,sBAAA;AAAA;;;;;;cAoCA,eAAA,EAAiB,yBAAA,CAA0B,oBAAA,GAAuB,aAAA,CAAc,sBAAA"}
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":";;;;UAQiB,kBAAA;EAAkB;;;;;EAMjC,KAAA,GAAQ,oBAAA;EAgBc;;;;;EAVtB,MAAA,GAAS,oBAAA;EAAA;;;;;EAMT,WAAA,GAAc,oBAAA;EAId;EAFA,aAAA,IAAiB,KAAA,EAAO,mBAAA;EAET;EAAf,WAAA,IAAe,KAAA,EAAO,mBAAA;AAAA;AAkDxB;AAAA,cAAa,aAAA,EAAe,yBAAA,CAA0B,kBAAA,GAAqB,cAAA,CAAe,oBAAA,IAAwB,aAAA,CAAc,oBAAA;;UCxE/G,oBAAA;EDAkB;;;;;ECMjC,QAAA,GAAW,sBAAA;AAAA;;cAgCA,eAAA,EAAiB,yBAAA,CAA0B,oBAAA,GAAuB,cAAA,CAAe,sBAAA,IAA0B,aAAA,CAAc,sBAAA"}
@@ -1,11 +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 { ResizeEndEvent, ResizeStartEvent, registerResizableHandleElement, registerResizableRootElement } from "@prosekit/web/resizable";
5
- //#region src/components/resizable/resizable-root.gen.ts
6
- /**
7
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
8
- */
4
+ import { registerResizableHandleElement, registerResizableRootElement } from "@prosekit/web/resizable";
9
5
  function ResizableRootComponent(props, forwardedRef) {
10
6
  registerResizableRootElement();
11
7
  const elementRef = useRef(null);
@@ -41,17 +37,8 @@ function ResizableRootComponent(props, forwardedRef) {
41
37
  suppressHydrationWarning: true
42
38
  });
43
39
  }
44
- /**
45
- * A Preact component that renders an `prosekit-resizable-root` custom element.
46
- *
47
- * @public
48
- */
40
+ /** A Preact component that renders an `prosekit-resizable-root` custom element. */
49
41
  const ResizableRoot = /* @__PURE__ */ forwardRef(ResizableRootComponent);
50
- //#endregion
51
- //#region src/components/resizable/resizable-handle.gen.ts
52
- /**
53
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
54
- */
55
42
  function ResizableHandleComponent(props, forwardedRef) {
56
43
  registerResizableHandleElement();
57
44
  const elementRef = useRef(null);
@@ -72,13 +59,8 @@ function ResizableHandleComponent(props, forwardedRef) {
72
59
  suppressHydrationWarning: true
73
60
  });
74
61
  }
75
- /**
76
- * A Preact component that renders an `prosekit-resizable-handle` custom element.
77
- *
78
- * @public
79
- */
62
+ /** A Preact component that renders an `prosekit-resizable-handle` custom element. */
80
63
  const ResizableHandle = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
81
- //#endregion
82
- export { ResizableHandle, ResizableRoot, ResizeEndEvent, ResizeStartEvent };
64
+ export { ResizableHandle, ResizableRoot };
83
65
 
84
66
  //# 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 extends HTMLAttributes<ResizableRootElement> {\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 & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);\n\nexport type { ResizableRootEvents };\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 extends HTMLAttributes<ResizableHandleElement> {\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 & 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,gBAAqH,2BAAW,uBAAuB;;;;;;ACnEpK,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,kBAA2H,2BAAW,yBAAyB"}
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":["// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\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/** Props for the {@link ResizableRoot} Preact component. */\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/** A Preact component that renders an `prosekit-resizable-root` custom element. */\nexport const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\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/** Props for the {@link ResizableHandle} Preact component. */\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/** A Preact component that renders an `prosekit-resizable-handle` custom element. */\nexport const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);\n"],"mappings":";;;;AAiCA,SAAS,uBAAuB,OAA2B,cAAyC;AAClG,+BAA8B;CAE9B,MAAM,aAAa,OAA6B,KAAK;CACrD,MAAM,cAAc,OAAoD,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;AAED,QAAO,cAAc,6BAA6B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;AAIrH,MAAa,kBAAoK,2BAAW,yBAAyB"}
@@ -1,28 +1,12 @@
1
1
  import { HTMLAttributes } from "preact";
2
2
  import { ForwardRefExoticComponent, RefAttributes } from "preact/compat";
3
3
  import { TableHandleColumnMenuRootElement, TableHandleColumnMenuRootProps as TableHandleColumnMenuRootProps$1, TableHandleColumnMenuTriggerElement, TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerProps$1, TableHandleColumnPopupElement, TableHandleColumnPositionerElement, TableHandleColumnPositionerProps as TableHandleColumnPositionerProps$1, TableHandleDragPreviewElement, TableHandleDragPreviewProps as TableHandleDragPreviewProps$1, TableHandleDropIndicatorElement, TableHandleDropIndicatorProps as TableHandleDropIndicatorProps$1, TableHandleRootElement, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowMenuRootElement, TableHandleRowMenuRootProps as TableHandleRowMenuRootProps$1, TableHandleRowMenuTriggerElement, TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerProps$1, TableHandleRowPopupElement, TableHandleRowPositionerElement, TableHandleRowPositionerProps as TableHandleRowPositionerProps$1 } from "@prosekit/web/table-handle";
4
-
5
- //#region src/components/table-handle/table-handle-column-popup.gen.d.ts
6
- /**
7
- * Props for the {@link TableHandleColumnPopup} Preact component.
8
- *
9
- * @public
10
- */
11
- interface TableHandleColumnPopupProps extends HTMLAttributes<TableHandleColumnPopupElement> {}
12
- /**
13
- * A Preact component that renders an `prosekit-table-handle-column-popup` custom element.
14
- *
15
- * @public
16
- */
17
- declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & RefAttributes<TableHandleColumnPopupElement>>;
18
- //#endregion
19
- //#region src/components/table-handle/table-handle-column-positioner.gen.d.ts
20
- /**
21
- * Props for the {@link TableHandleColumnPositioner} Preact component.
22
- *
23
- * @public
24
- */
25
- interface TableHandleColumnPositionerProps extends HTMLAttributes<TableHandleColumnPositionerElement> {
4
+ /** Props for the {@link TableHandleColumnPopup} Preact component. */
5
+ interface TableHandleColumnPopupProps {}
6
+ /** A Preact component that renders an `prosekit-table-handle-column-popup` custom element. */
7
+ declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>>;
8
+ /** Props for the {@link TableHandleColumnPositioner} Preact component. */
9
+ interface TableHandleColumnPositionerProps {
26
10
  /**
27
11
  * The placement of the popover, relative to the hovered table cell.
28
12
  *
@@ -150,20 +134,10 @@ interface TableHandleColumnPositionerProps extends HTMLAttributes<TableHandleCol
150
134
  */
151
135
  editor?: TableHandleColumnPositionerProps$1['editor'];
152
136
  }
153
- /**
154
- * A Preact component that renders an `prosekit-table-handle-column-positioner` custom element.
155
- *
156
- * @public
157
- */
158
- declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & RefAttributes<TableHandleColumnPositionerElement>>;
159
- //#endregion
160
- //#region src/components/table-handle/table-handle-column-menu-root.gen.d.ts
161
- /**
162
- * Props for the {@link TableHandleColumnMenuRoot} Preact component.
163
- *
164
- * @public
165
- */
166
- interface TableHandleColumnMenuRootProps extends HTMLAttributes<TableHandleColumnMenuRootElement> {
137
+ /** A Preact component that renders an `prosekit-table-handle-column-positioner` custom element. */
138
+ declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>>;
139
+ /** Props for the {@link TableHandleColumnMenuRoot} Preact component. */
140
+ interface TableHandleColumnMenuRootProps {
167
141
  /**
168
142
  * Whether the overlay is initially open.
169
143
  * @default false
@@ -180,80 +154,40 @@ interface TableHandleColumnMenuRootProps extends HTMLAttributes<TableHandleColum
180
154
  */
181
155
  disabled?: TableHandleColumnMenuRootProps$1['disabled'];
182
156
  }
183
- /**
184
- * A Preact component that renders an `prosekit-table-handle-column-menu-root` custom element.
185
- *
186
- * @public
187
- */
188
- declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & RefAttributes<TableHandleColumnMenuRootElement>>;
189
- //#endregion
190
- //#region src/components/table-handle/table-handle-column-menu-trigger.gen.d.ts
191
- /**
192
- * Props for the {@link TableHandleColumnMenuTrigger} Preact component.
193
- *
194
- * @public
195
- */
196
- interface TableHandleColumnMenuTriggerProps extends HTMLAttributes<TableHandleColumnMenuTriggerElement> {
157
+ /** A Preact component that renders an `prosekit-table-handle-column-menu-root` custom element. */
158
+ declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>>;
159
+ /** Props for the {@link TableHandleColumnMenuTrigger} Preact component. */
160
+ interface TableHandleColumnMenuTriggerProps {
197
161
  /**
198
162
  * @default null
199
163
  * @hidden
200
164
  */
201
165
  editor?: TableHandleColumnMenuTriggerProps$1['editor'];
202
166
  }
203
- /**
204
- * A Preact component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
205
- *
206
- * @public
207
- */
208
- declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & RefAttributes<TableHandleColumnMenuTriggerElement>>;
209
- //#endregion
210
- //#region src/components/table-handle/table-handle-drag-preview.gen.d.ts
211
- /**
212
- * Props for the {@link TableHandleDragPreview} Preact component.
213
- *
214
- * @public
215
- */
216
- interface TableHandleDragPreviewProps extends HTMLAttributes<TableHandleDragPreviewElement> {
167
+ /** A Preact component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
168
+ declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>>;
169
+ /** Props for the {@link TableHandleDragPreview} Preact component. */
170
+ interface TableHandleDragPreviewProps {
217
171
  /**
218
172
  * @default null
219
173
  * @hidden
220
174
  */
221
175
  editor?: TableHandleDragPreviewProps$1['editor'];
222
176
  }
223
- /**
224
- * A Preact component that renders an `prosekit-table-handle-drag-preview` custom element.
225
- *
226
- * @public
227
- */
228
- declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement>>;
229
- //#endregion
230
- //#region src/components/table-handle/table-handle-drop-indicator.gen.d.ts
231
- /**
232
- * Props for the {@link TableHandleDropIndicator} Preact component.
233
- *
234
- * @public
235
- */
236
- interface TableHandleDropIndicatorProps extends HTMLAttributes<TableHandleDropIndicatorElement> {
177
+ /** A Preact component that renders an `prosekit-table-handle-drag-preview` custom element. */
178
+ declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>>;
179
+ /** Props for the {@link TableHandleDropIndicator} Preact component. */
180
+ interface TableHandleDropIndicatorProps {
237
181
  /**
238
182
  * @default null
239
183
  * @hidden
240
184
  */
241
185
  editor?: TableHandleDropIndicatorProps$1['editor'];
242
186
  }
243
- /**
244
- * A Preact component that renders an `prosekit-table-handle-drop-indicator` custom element.
245
- *
246
- * @public
247
- */
248
- declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement>>;
249
- //#endregion
250
- //#region src/components/table-handle/table-handle-root.gen.d.ts
251
- /**
252
- * Props for the {@link TableHandleRoot} Preact component.
253
- *
254
- * @public
255
- */
256
- interface TableHandleRootProps extends HTMLAttributes<TableHandleRootElement> {
187
+ /** A Preact component that renders an `prosekit-table-handle-drop-indicator` custom element. */
188
+ declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>>;
189
+ /** Props for the {@link TableHandleRoot} Preact component. */
190
+ interface TableHandleRootProps {
257
191
  /**
258
192
  * The ProseKit editor instance.
259
193
  *
@@ -262,34 +196,14 @@ interface TableHandleRootProps extends HTMLAttributes<TableHandleRootElement> {
262
196
  */
263
197
  editor?: TableHandleRootProps$1['editor'];
264
198
  }
265
- /**
266
- * A Preact component that renders an `prosekit-table-handle-root` custom element.
267
- *
268
- * @public
269
- */
270
- declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement>>;
271
- //#endregion
272
- //#region src/components/table-handle/table-handle-row-popup.gen.d.ts
273
- /**
274
- * Props for the {@link TableHandleRowPopup} Preact component.
275
- *
276
- * @public
277
- */
278
- interface TableHandleRowPopupProps extends HTMLAttributes<TableHandleRowPopupElement> {}
279
- /**
280
- * A Preact component that renders an `prosekit-table-handle-row-popup` custom element.
281
- *
282
- * @public
283
- */
284
- declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & RefAttributes<TableHandleRowPopupElement>>;
285
- //#endregion
286
- //#region src/components/table-handle/table-handle-row-positioner.gen.d.ts
287
- /**
288
- * Props for the {@link TableHandleRowPositioner} Preact component.
289
- *
290
- * @public
291
- */
292
- interface TableHandleRowPositionerProps extends HTMLAttributes<TableHandleRowPositionerElement> {
199
+ /** A Preact component that renders an `prosekit-table-handle-root` custom element. */
200
+ declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>>;
201
+ /** Props for the {@link TableHandleRowPopup} Preact component. */
202
+ interface TableHandleRowPopupProps {}
203
+ /** A Preact component that renders an `prosekit-table-handle-row-popup` custom element. */
204
+ declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>>;
205
+ /** Props for the {@link TableHandleRowPositioner} Preact component. */
206
+ interface TableHandleRowPositionerProps {
293
207
  /**
294
208
  * The placement of the popover, relative to the hovered table cell.
295
209
  *
@@ -417,20 +331,10 @@ interface TableHandleRowPositionerProps extends HTMLAttributes<TableHandleRowPos
417
331
  */
418
332
  editor?: TableHandleRowPositionerProps$1['editor'];
419
333
  }
420
- /**
421
- * A Preact component that renders an `prosekit-table-handle-row-positioner` custom element.
422
- *
423
- * @public
424
- */
425
- declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & RefAttributes<TableHandleRowPositionerElement>>;
426
- //#endregion
427
- //#region src/components/table-handle/table-handle-row-menu-root.gen.d.ts
428
- /**
429
- * Props for the {@link TableHandleRowMenuRoot} Preact component.
430
- *
431
- * @public
432
- */
433
- interface TableHandleRowMenuRootProps extends HTMLAttributes<TableHandleRowMenuRootElement> {
334
+ /** A Preact component that renders an `prosekit-table-handle-row-positioner` custom element. */
335
+ declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>>;
336
+ /** Props for the {@link TableHandleRowMenuRoot} Preact component. */
337
+ interface TableHandleRowMenuRootProps {
434
338
  /**
435
339
  * Whether the overlay is initially open.
436
340
  * @default false
@@ -447,32 +351,17 @@ interface TableHandleRowMenuRootProps extends HTMLAttributes<TableHandleRowMenuR
447
351
  */
448
352
  disabled?: TableHandleRowMenuRootProps$1['disabled'];
449
353
  }
450
- /**
451
- * A Preact component that renders an `prosekit-table-handle-row-menu-root` custom element.
452
- *
453
- * @public
454
- */
455
- declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & RefAttributes<TableHandleRowMenuRootElement>>;
456
- //#endregion
457
- //#region src/components/table-handle/table-handle-row-menu-trigger.gen.d.ts
458
- /**
459
- * Props for the {@link TableHandleRowMenuTrigger} Preact component.
460
- *
461
- * @public
462
- */
463
- interface TableHandleRowMenuTriggerProps extends HTMLAttributes<TableHandleRowMenuTriggerElement> {
354
+ /** A Preact component that renders an `prosekit-table-handle-row-menu-root` custom element. */
355
+ declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>>;
356
+ /** Props for the {@link TableHandleRowMenuTrigger} Preact component. */
357
+ interface TableHandleRowMenuTriggerProps {
464
358
  /**
465
359
  * @default null
466
360
  * @hidden
467
361
  */
468
362
  editor?: TableHandleRowMenuTriggerProps$1['editor'];
469
363
  }
470
- /**
471
- * A Preact component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
472
- *
473
- * @public
474
- */
475
- declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & RefAttributes<TableHandleRowMenuTriggerElement>>;
476
- //#endregion
364
+ /** A Preact component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */
365
+ declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>>;
477
366
  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
367
  //# 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,SAAoC,cAAA,CAAe,6BAAA;;;;;;cA6BvD,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,aAAA,CAAc,6BAAA;;;;;;;AAA3G;UC3BiB,gCAAA,SAAyC,cAAA,CAAe,kCAAA;;;;;;EAMvE,SAAA,GAAY,kCAAA;EDqBgD;;;;;ECf5D,QAAA,GAAW,kCAAA;EDe2H;;;;AC3BxI;;;EAoBE,UAAA,GAAa,kCAAA;EAdD;;;;;;EAqBZ,KAAA,GAAQ,kCAAA;EAsBE;;;;EAjBV,MAAA,GAAS,kCAAA;EAkDF;;;;EA7CP,IAAA,GAAO,kCAAA;EAkFO;;;;EA7Ed,KAAA,GAAQ,kCAAA;EA1CgD;;;;;;EAiDxD,OAAA,GAAU,kCAAA;EA7BG;;;;;;EAoCb,WAAA,GAAc,kCAAA;EAdd;;;;;;EAqBA,SAAA,GAAY,kCAAA;EAAA;;;;;;EAOZ,UAAA,GAAa,kCAAA;EAmBb;;;;;;EAZA,MAAA,GAAS,kCAAA;EAkCQ;;;;EA7BjB,IAAA,GAAO,kCAAA;EA4CyC;;AA0DlD;;;;EA/FE,QAAA,GAAW,kCAAA;EA+F0F;;;;;;EAxFrG,YAAA,GAAe,kCAAA;EAwFoG;;;;;;EAjFnH,eAAA,GAAkB,kCAAA;ECzG4B;;;;;;;EDiH9C,cAAA,GAAiB,kCAAA;ECjHmD;;;;;;;EDyHpE,WAAA,GAAc,kCAAA;EC1GH;;;AAoCb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;;;cAsCE,yBAAA,EAA2B,yBAAA,CAA0B,8BAAA,GAAiC,aAAA,CAAc,gCAAA"}
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":";;;;UAQiB,2BAAA;;cAyBJ,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,cAAA,CAAe,6BAAA,IAAiC,aAAA,CAAc,6BAAA;;UCvB1I,gCAAA;EDF2B;;;;AAyB5C;ECjBE,SAAA,GAAY,kCAAA;;;;;;EAMZ,QAAA,GAAW,kCAAA;EDWwB;;;;;;;ECHnC,UAAA,GAAa,kCAAA;EDG4I;;;;ACvB3J;;EA2BE,KAAA,GAAQ,kCAAA;EArBI;;;;EA0BZ,MAAA,GAAS,kCAAA;EAKF;;;;EAAP,IAAA,GAAO,kCAAA;EAiCM;;;;EA5Bb,KAAA,GAAQ,kCAAA;EA6DU;;;;;;EAtDlB,OAAA,GAAU,kCAAA;EA3CE;;;;;;EAkDZ,WAAA,GAAc,kCAAA;EAxBd;;;;;;EA+BA,SAAA,GAAY,kCAAA;EAdF;;;;;;EAqBV,UAAA,GAAa,kCAAA;EAOb;;;;;;EAAA,MAAA,GAAS,kCAAA;EAmBM;;;;EAdf,IAAA,GAAO,kCAAA;EAqCP;;;;;;EA9BA,QAAA,GAAW,kCAAA;EA2FoQ;;;;;;EApF/Q,YAAA,GAAe,kCAAA;EAoFyB;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