@prosekit/react 0.7.0-beta.3 → 0.7.0-beta.5

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 (104) hide show
  1. package/dist/editor-context.js +0 -2
  2. package/dist/editor-context.js.map +1 -1
  3. package/dist/prosekit-react-autocomplete.d.ts +10 -61
  4. package/dist/prosekit-react-autocomplete.d.ts.map +1 -1
  5. package/dist/prosekit-react-autocomplete.js +30 -49
  6. package/dist/prosekit-react-autocomplete.js.map +1 -1
  7. package/dist/prosekit-react-block-handle.d.ts +10 -61
  8. package/dist/prosekit-react-block-handle.d.ts.map +1 -1
  9. package/dist/prosekit-react-block-handle.js +30 -49
  10. package/dist/prosekit-react-block-handle.js.map +1 -1
  11. package/dist/prosekit-react-drop-indicator.d.ts +2 -13
  12. package/dist/prosekit-react-drop-indicator.d.ts.map +1 -1
  13. package/dist/prosekit-react-drop-indicator.js +13 -9
  14. package/dist/prosekit-react-drop-indicator.js.map +1 -1
  15. package/dist/prosekit-react-inline-popover.d.ts +6 -37
  16. package/dist/prosekit-react-inline-popover.d.ts.map +1 -1
  17. package/dist/prosekit-react-inline-popover.js +23 -29
  18. package/dist/prosekit-react-inline-popover.js.map +1 -1
  19. package/dist/prosekit-react-menu.d.ts +48 -88
  20. package/dist/prosekit-react-menu.d.ts.map +1 -1
  21. package/dist/prosekit-react-menu.js +72 -71
  22. package/dist/prosekit-react-menu.js.map +1 -1
  23. package/dist/prosekit-react-popover.d.ts +8 -49
  24. package/dist/prosekit-react-popover.d.ts.map +1 -1
  25. package/dist/prosekit-react-popover.js +26 -39
  26. package/dist/prosekit-react-popover.js.map +1 -1
  27. package/dist/prosekit-react-resizable.d.ts +4 -25
  28. package/dist/prosekit-react-resizable.d.ts.map +1 -1
  29. package/dist/prosekit-react-resizable.js +20 -19
  30. package/dist/prosekit-react-resizable.js.map +1 -1
  31. package/dist/prosekit-react-table-handle.d.ts +22 -133
  32. package/dist/prosekit-react-table-handle.d.ts.map +1 -1
  33. package/dist/prosekit-react-table-handle.js +67 -109
  34. package/dist/prosekit-react-table-handle.js.map +1 -1
  35. package/dist/prosekit-react-tooltip.d.ts +8 -49
  36. package/dist/prosekit-react-tooltip.d.ts.map +1 -1
  37. package/dist/prosekit-react-tooltip.js +26 -39
  38. package/dist/prosekit-react-tooltip.js.map +1 -1
  39. package/dist/prosekit-react.d.ts +0 -21
  40. package/dist/prosekit-react.d.ts.map +1 -1
  41. package/dist/prosekit-react.js +1 -26
  42. package/dist/prosekit-react.js.map +1 -1
  43. package/package.json +4 -4
  44. package/src/components/autocomplete/autocomplete-empty.gen.ts +3 -13
  45. package/src/components/autocomplete/autocomplete-item.gen.ts +3 -13
  46. package/src/components/autocomplete/autocomplete-popup.gen.ts +3 -13
  47. package/src/components/autocomplete/autocomplete-positioner.gen.ts +3 -13
  48. package/src/components/autocomplete/autocomplete-root.gen.ts +3 -13
  49. package/src/components/autocomplete/index.gen.ts +1 -3
  50. package/src/components/autocomplete/index.ts +2 -0
  51. package/src/components/block-handle/block-handle-add.gen.ts +3 -13
  52. package/src/components/block-handle/block-handle-draggable.gen.ts +3 -13
  53. package/src/components/block-handle/block-handle-popup.gen.ts +3 -13
  54. package/src/components/block-handle/block-handle-positioner.gen.ts +3 -13
  55. package/src/components/block-handle/block-handle-root.gen.ts +3 -13
  56. package/src/components/block-handle/index.gen.ts +1 -3
  57. package/src/components/block-handle/index.ts +2 -0
  58. package/src/components/drop-indicator/drop-indicator.gen.ts +3 -13
  59. package/src/components/drop-indicator/index.gen.ts +1 -3
  60. package/src/components/drop-indicator/index.ts +2 -0
  61. package/src/components/inline-popover/index.gen.ts +1 -3
  62. package/src/components/inline-popover/index.ts +2 -0
  63. package/src/components/inline-popover/inline-popover-popup.gen.ts +3 -13
  64. package/src/components/inline-popover/inline-popover-positioner.gen.ts +3 -13
  65. package/src/components/inline-popover/inline-popover-root.gen.ts +3 -13
  66. package/src/components/menu/index.gen.ts +1 -3
  67. package/src/components/menu/index.ts +2 -0
  68. package/src/components/menu/menu-item.gen.ts +3 -13
  69. package/src/components/menu/menu-popup.gen.ts +3 -13
  70. package/src/components/menu/menu-positioner.gen.ts +3 -13
  71. package/src/components/menu/menu-root.gen.ts +3 -13
  72. package/src/components/menu/menu-submenu-root.gen.ts +49 -17
  73. package/src/components/menu/menu-submenu-trigger.gen.ts +28 -19
  74. package/src/components/menu/menu-trigger.gen.ts +3 -13
  75. package/src/components/popover/index.gen.ts +1 -3
  76. package/src/components/popover/index.ts +2 -0
  77. package/src/components/popover/popover-popup.gen.ts +3 -13
  78. package/src/components/popover/popover-positioner.gen.ts +3 -13
  79. package/src/components/popover/popover-root.gen.ts +3 -13
  80. package/src/components/popover/popover-trigger.gen.ts +3 -13
  81. package/src/components/resizable/index.gen.ts +1 -3
  82. package/src/components/resizable/index.ts +2 -0
  83. package/src/components/resizable/resizable-handle.gen.ts +3 -13
  84. package/src/components/resizable/resizable-root.gen.ts +3 -13
  85. package/src/components/table-handle/index.gen.ts +1 -3
  86. package/src/components/table-handle/index.ts +2 -0
  87. package/src/components/table-handle/table-handle-column-menu-root.gen.ts +3 -13
  88. package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +3 -13
  89. package/src/components/table-handle/table-handle-column-popup.gen.ts +3 -13
  90. package/src/components/table-handle/table-handle-column-positioner.gen.ts +3 -13
  91. package/src/components/table-handle/table-handle-drag-preview.gen.ts +3 -13
  92. package/src/components/table-handle/table-handle-drop-indicator.gen.ts +3 -13
  93. package/src/components/table-handle/table-handle-root.gen.ts +3 -13
  94. package/src/components/table-handle/table-handle-row-menu-root.gen.ts +3 -13
  95. package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +3 -13
  96. package/src/components/table-handle/table-handle-row-popup.gen.ts +3 -13
  97. package/src/components/table-handle/table-handle-row-positioner.gen.ts +3 -13
  98. package/src/components/tooltip/index.gen.ts +1 -3
  99. package/src/components/tooltip/index.ts +2 -0
  100. package/src/components/tooltip/tooltip-popup.gen.ts +3 -13
  101. package/src/components/tooltip/tooltip-positioner.gen.ts +3 -13
  102. package/src/components/tooltip/tooltip-root.gen.ts +3 -13
  103. package/src/components/tooltip/tooltip-trigger.gen.ts +3 -13
  104. package/src/index.ts +2 -0
@@ -1,12 +1,6 @@
1
1
  import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
2
2
  import { ResizableHandleElement, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
3
-
4
- //#region src/components/resizable/resizable-root.gen.d.ts
5
- /**
6
- * Props for the {@link ResizableRoot} React component.
7
- *
8
- * @public
9
- */
3
+ /** Props for the {@link ResizableRoot} React component. */
10
4
  interface ResizableRootProps {
11
5
  /**
12
6
  * The width of the resizable element.
@@ -31,19 +25,9 @@ interface ResizableRootProps {
31
25
  /** Emitted when a resize operation ends. */
32
26
  onResizeEnd?: (event: ResizableRootEvents['resizeEnd']) => void;
33
27
  }
34
- /**
35
- * A React component that renders an `prosekit-resizable-root` custom element.
36
- *
37
- * @public
38
- */
28
+ /** A React component that renders an `prosekit-resizable-root` custom element. */
39
29
  declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>>;
40
- //#endregion
41
- //#region src/components/resizable/resizable-handle.gen.d.ts
42
- /**
43
- * Props for the {@link ResizableHandle} React component.
44
- *
45
- * @public
46
- */
30
+ /** Props for the {@link ResizableHandle} React component. */
47
31
  interface ResizableHandleProps {
48
32
  /**
49
33
  * The position of the handle.
@@ -52,12 +36,7 @@ interface ResizableHandleProps {
52
36
  */
53
37
  position?: ResizableHandleProps$1['position'];
54
38
  }
55
- /**
56
- * A React component that renders an `prosekit-resizable-handle` custom element.
57
- *
58
- * @public
59
- */
39
+ /** A React component that renders an `prosekit-resizable-handle` custom element. */
60
40
  declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>>;
61
- //#endregion
62
41
  export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
63
42
  //# sourceMappingURL=prosekit-react-resizable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-react-resizable.d.ts","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"mappings":";;;;;;;;;UAYiB,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
+ {"version":3,"file":"prosekit-react-resizable.d.ts","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"mappings":";;;UAMiB,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,9 +1,6 @@
1
+ "use client";
1
2
  import { createElement, forwardRef, useCallback, useLayoutEffect, useRef } from "react";
2
3
  import { registerResizableHandleElement, registerResizableRootElement } from "@prosekit/web/resizable";
3
- //#region src/components/resizable/resizable-root.gen.ts
4
- /**
5
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
6
- */
7
4
  function ResizableRootComponent(props, forwardedRef) {
8
5
  registerResizableRootElement();
9
6
  const elementRef = useRef(null);
@@ -39,17 +36,8 @@ function ResizableRootComponent(props, forwardedRef) {
39
36
  suppressHydrationWarning: true
40
37
  });
41
38
  }
42
- /**
43
- * A React component that renders an `prosekit-resizable-root` custom element.
44
- *
45
- * @public
46
- */
39
+ /** A React component that renders an `prosekit-resizable-root` custom element. */
47
40
  const ResizableRoot = /* @__PURE__ */ forwardRef(ResizableRootComponent);
48
- //#endregion
49
- //#region src/components/resizable/resizable-handle.gen.ts
50
- /**
51
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
52
- */
53
41
  function ResizableHandleComponent(props, forwardedRef) {
54
42
  registerResizableHandleElement();
55
43
  const elementRef = useRef(null);
@@ -70,13 +58,26 @@ function ResizableHandleComponent(props, forwardedRef) {
70
58
  suppressHydrationWarning: true
71
59
  });
72
60
  }
61
+ /** A React component that renders an `prosekit-resizable-handle` custom element. */
62
+ const ResizableHandle = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
73
63
  /**
74
- * A React component that renders an `prosekit-resizable-handle` custom element.
75
- *
76
- * @public
64
+
65
+ @module
66
+
67
+ ## Anatomy
68
+
69
+ ```jsx
70
+ import {
71
+ ResizableHandle,
72
+ ResizableRoot,
73
+ } from 'prosekit/react/resizable'
74
+
75
+ <ResizableRoot>
76
+ <img src="..." />
77
+ <ResizableHandle>...</ResizableHandle>
78
+ </ResizableRoot>
79
+ ```
77
80
  */
78
- const ResizableHandle = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
79
- //#endregion
80
81
  export { ResizableHandle, ResizableRoot };
81
82
 
82
83
  //# sourceMappingURL=prosekit-react-resizable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-react-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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/**\n * Props for the {@link ResizableRoot} React 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: ForwardedRef<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 React 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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/**\n * Props for the {@link ResizableHandle} React 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: ForwardedRef<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 React 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":";;;;;;AAqCA,SAAS,uBAAuB,OAA2B,cAAkD;AAC3G,+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,cAAoD;AACjH,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"}
1
+ {"version":3,"file":"prosekit-react-resizable.js","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts","../src/components/resizable/index.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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link ResizableRoot} React 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: ForwardedRef<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 React 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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link ResizableHandle} React 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: ForwardedRef<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 React component that renders an `prosekit-resizable-handle` custom element. */\nexport const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);\n","/**\n\n@module\n\n## Anatomy\n\n```jsx\nimport {\n ResizableHandle,\n ResizableRoot,\n} from 'prosekit/react/resizable'\n\n<ResizableRoot>\n <img src=\"...\" />\n <ResizableHandle>...</ResizableHandle>\n</ResizableRoot>\n```\n*/\n\n'use client'\n\nexport * from './index.gen.ts'\n"],"mappings":";;;AA+BA,SAAS,uBAAuB,OAA2B,cAAkD;AAC3G,+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,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HTMLAttributes, RefAttributes } from "react";
2
2
  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";
3
-
4
- //#region src/components/table-handle/table-handle-column-popup.gen.d.ts
5
- /**
6
- * Props for the {@link TableHandleColumnPopup} React component.
7
- *
8
- * @public
9
- */
3
+ /** Props for the {@link TableHandleColumnPopup} React component. */
10
4
  interface TableHandleColumnPopupProps {}
11
- /**
12
- * A React component that renders an `prosekit-table-handle-column-popup` custom element.
13
- *
14
- * @public
15
- */
5
+ /** A React component that renders an `prosekit-table-handle-column-popup` custom element. */
16
6
  declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>>;
17
- //#endregion
18
- //#region src/components/table-handle/table-handle-column-positioner.gen.d.ts
19
- /**
20
- * Props for the {@link TableHandleColumnPositioner} React component.
21
- *
22
- * @public
23
- */
7
+ /** Props for the {@link TableHandleColumnPositioner} React component. */
24
8
  interface TableHandleColumnPositionerProps {
25
9
  /**
26
10
  * The placement of the popover, relative to the hovered table cell.
@@ -149,19 +133,9 @@ interface TableHandleColumnPositionerProps {
149
133
  */
150
134
  editor?: TableHandleColumnPositionerProps$1['editor'];
151
135
  }
152
- /**
153
- * A React component that renders an `prosekit-table-handle-column-positioner` custom element.
154
- *
155
- * @public
156
- */
136
+ /** A React component that renders an `prosekit-table-handle-column-positioner` custom element. */
157
137
  declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>>;
158
- //#endregion
159
- //#region src/components/table-handle/table-handle-column-menu-root.gen.d.ts
160
- /**
161
- * Props for the {@link TableHandleColumnMenuRoot} React component.
162
- *
163
- * @public
164
- */
138
+ /** Props for the {@link TableHandleColumnMenuRoot} React component. */
165
139
  interface TableHandleColumnMenuRootProps {
166
140
  /**
167
141
  * Whether the overlay is initially open.
@@ -179,19 +153,9 @@ interface TableHandleColumnMenuRootProps {
179
153
  */
180
154
  disabled?: TableHandleColumnMenuRootProps$1['disabled'];
181
155
  }
182
- /**
183
- * A React component that renders an `prosekit-table-handle-column-menu-root` custom element.
184
- *
185
- * @public
186
- */
156
+ /** A React component that renders an `prosekit-table-handle-column-menu-root` custom element. */
187
157
  declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>>;
188
- //#endregion
189
- //#region src/components/table-handle/table-handle-column-menu-trigger.gen.d.ts
190
- /**
191
- * Props for the {@link TableHandleColumnMenuTrigger} React component.
192
- *
193
- * @public
194
- */
158
+ /** Props for the {@link TableHandleColumnMenuTrigger} React component. */
195
159
  interface TableHandleColumnMenuTriggerProps {
196
160
  /**
197
161
  * @default null
@@ -199,19 +163,9 @@ interface TableHandleColumnMenuTriggerProps {
199
163
  */
200
164
  editor?: TableHandleColumnMenuTriggerProps$1['editor'];
201
165
  }
202
- /**
203
- * A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
204
- *
205
- * @public
206
- */
166
+ /** A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
207
167
  declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>>;
208
- //#endregion
209
- //#region src/components/table-handle/table-handle-drag-preview.gen.d.ts
210
- /**
211
- * Props for the {@link TableHandleDragPreview} React component.
212
- *
213
- * @public
214
- */
168
+ /** Props for the {@link TableHandleDragPreview} React component. */
215
169
  interface TableHandleDragPreviewProps {
216
170
  /**
217
171
  * @default null
@@ -219,19 +173,9 @@ interface TableHandleDragPreviewProps {
219
173
  */
220
174
  editor?: TableHandleDragPreviewProps$1['editor'];
221
175
  }
222
- /**
223
- * A React component that renders an `prosekit-table-handle-drag-preview` custom element.
224
- *
225
- * @public
226
- */
176
+ /** A React component that renders an `prosekit-table-handle-drag-preview` custom element. */
227
177
  declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>>;
228
- //#endregion
229
- //#region src/components/table-handle/table-handle-drop-indicator.gen.d.ts
230
- /**
231
- * Props for the {@link TableHandleDropIndicator} React component.
232
- *
233
- * @public
234
- */
178
+ /** Props for the {@link TableHandleDropIndicator} React component. */
235
179
  interface TableHandleDropIndicatorProps {
236
180
  /**
237
181
  * @default null
@@ -239,19 +183,9 @@ interface TableHandleDropIndicatorProps {
239
183
  */
240
184
  editor?: TableHandleDropIndicatorProps$1['editor'];
241
185
  }
242
- /**
243
- * A React component that renders an `prosekit-table-handle-drop-indicator` custom element.
244
- *
245
- * @public
246
- */
186
+ /** A React component that renders an `prosekit-table-handle-drop-indicator` custom element. */
247
187
  declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>>;
248
- //#endregion
249
- //#region src/components/table-handle/table-handle-root.gen.d.ts
250
- /**
251
- * Props for the {@link TableHandleRoot} React component.
252
- *
253
- * @public
254
- */
188
+ /** Props for the {@link TableHandleRoot} React component. */
255
189
  interface TableHandleRootProps {
256
190
  /**
257
191
  * The ProseKit editor instance.
@@ -261,33 +195,13 @@ interface TableHandleRootProps {
261
195
  */
262
196
  editor?: TableHandleRootProps$1['editor'];
263
197
  }
264
- /**
265
- * A React component that renders an `prosekit-table-handle-root` custom element.
266
- *
267
- * @public
268
- */
198
+ /** A React component that renders an `prosekit-table-handle-root` custom element. */
269
199
  declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>>;
270
- //#endregion
271
- //#region src/components/table-handle/table-handle-row-popup.gen.d.ts
272
- /**
273
- * Props for the {@link TableHandleRowPopup} React component.
274
- *
275
- * @public
276
- */
200
+ /** Props for the {@link TableHandleRowPopup} React component. */
277
201
  interface TableHandleRowPopupProps {}
278
- /**
279
- * A React component that renders an `prosekit-table-handle-row-popup` custom element.
280
- *
281
- * @public
282
- */
202
+ /** A React component that renders an `prosekit-table-handle-row-popup` custom element. */
283
203
  declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>>;
284
- //#endregion
285
- //#region src/components/table-handle/table-handle-row-positioner.gen.d.ts
286
- /**
287
- * Props for the {@link TableHandleRowPositioner} React component.
288
- *
289
- * @public
290
- */
204
+ /** Props for the {@link TableHandleRowPositioner} React component. */
291
205
  interface TableHandleRowPositionerProps {
292
206
  /**
293
207
  * The placement of the popover, relative to the hovered table cell.
@@ -416,19 +330,9 @@ interface TableHandleRowPositionerProps {
416
330
  */
417
331
  editor?: TableHandleRowPositionerProps$1['editor'];
418
332
  }
419
- /**
420
- * A React component that renders an `prosekit-table-handle-row-positioner` custom element.
421
- *
422
- * @public
423
- */
333
+ /** A React component that renders an `prosekit-table-handle-row-positioner` custom element. */
424
334
  declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>>;
425
- //#endregion
426
- //#region src/components/table-handle/table-handle-row-menu-root.gen.d.ts
427
- /**
428
- * Props for the {@link TableHandleRowMenuRoot} React component.
429
- *
430
- * @public
431
- */
335
+ /** Props for the {@link TableHandleRowMenuRoot} React component. */
432
336
  interface TableHandleRowMenuRootProps {
433
337
  /**
434
338
  * Whether the overlay is initially open.
@@ -446,19 +350,9 @@ interface TableHandleRowMenuRootProps {
446
350
  */
447
351
  disabled?: TableHandleRowMenuRootProps$1['disabled'];
448
352
  }
449
- /**
450
- * A React component that renders an `prosekit-table-handle-row-menu-root` custom element.
451
- *
452
- * @public
453
- */
353
+ /** A React component that renders an `prosekit-table-handle-row-menu-root` custom element. */
454
354
  declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>>;
455
- //#endregion
456
- //#region src/components/table-handle/table-handle-row-menu-trigger.gen.d.ts
457
- /**
458
- * Props for the {@link TableHandleRowMenuTrigger} React component.
459
- *
460
- * @public
461
- */
355
+ /** Props for the {@link TableHandleRowMenuTrigger} React component. */
462
356
  interface TableHandleRowMenuTriggerProps {
463
357
  /**
464
358
  * @default null
@@ -466,12 +360,7 @@ interface TableHandleRowMenuTriggerProps {
466
360
  */
467
361
  editor?: TableHandleRowMenuTriggerProps$1['editor'];
468
362
  }
469
- /**
470
- * A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
471
- *
472
- * @public
473
- */
363
+ /** A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */
474
364
  declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>>;
475
- //#endregion
476
365
  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 };
477
366
  //# sourceMappingURL=prosekit-react-table-handle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-react-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":";;;;;;;;AAyCA;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,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,+BAAA;ENlGN;;;;;;;EM0GX,WAAA,GAAc,+BAAA;EN1GH;;;AAoCb;;;EM6EE,MAAA,GAAS,+BAAA;AAAA;;;;;;cA0DE,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
+ {"version":3,"file":"prosekit-react-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":";;;UAMiB,2BAAA;;cAyBJ,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,cAAA,CAAe,6BAAA,IAAiC,aAAA,CAAc,6BAAA;;UCvB1I,gCAAA;EDF2B;;;;AAyB5C;ECjBE,SAAA,GAAY,kCAAA;;;;;;EAM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