@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,23 +1,36 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
4
-
5
- import { registerMenuSubmenuTriggerElement, type MenuSubmenuTriggerElement } from '@prosekit/web/menu';
6
- import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
7
-
8
- /**
9
- * Props for the {@link MenuSubmenuTrigger} React component.
10
- *
11
- * @public
12
- */
13
- export interface MenuSubmenuTriggerProps {}
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
2
+
3
+ import { registerMenuSubmenuTriggerElement, type MenuSubmenuTriggerElement, type MenuSubmenuTriggerProps as MenuSubmenuTriggerElementProps } from '@prosekit/web/menu';
4
+ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
5
+
6
+ /** Props for the {@link MenuSubmenuTrigger} React component. */
7
+ export interface MenuSubmenuTriggerProps {
8
+ /**
9
+ * The unique value for this submenu trigger in the parent menu.
10
+ *
11
+ * @default ""
12
+ */
13
+ value?: MenuSubmenuTriggerElementProps['value'];
14
+ /**
15
+ * Whether this submenu trigger is disabled.
16
+ *
17
+ * @default false
18
+ */
19
+ disabled?: MenuSubmenuTriggerElementProps['disabled'];
20
+ }
14
21
 
15
22
  function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRef: ForwardedRef<MenuSubmenuTriggerElement>) {
16
23
  registerMenuSubmenuTriggerElement();
17
24
 
18
25
  const elementRef = useRef<MenuSubmenuTriggerElement>(null);
19
26
 
20
- const { ...restProps } = props;
27
+ const { disabled: p0, value: p1, ...restProps } = props;
28
+
29
+ useLayoutEffect(() => {
30
+ const element = elementRef.current as Record<string, unknown> | null;
31
+ if (!element) return;
32
+ Object.assign(element, { disabled: p0, value: p1 });
33
+ });
21
34
 
22
35
  const mergedRef = useCallback(
23
36
  (element: MenuSubmenuTriggerElement | null) => {
@@ -34,9 +47,5 @@ function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRe
34
47
  return createElement('prosekit-menu-submenu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
35
48
  }
36
49
 
37
- /**
38
- * A React component that renders an `prosekit-menu-submenu-trigger` custom element.
39
- *
40
- * @public
41
- */
50
+ /** A React component that renders an `prosekit-menu-submenu-trigger` custom element. */
42
51
  export const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & HTMLAttributes<MenuSubmenuTriggerElement> & RefAttributes<MenuSubmenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuTriggerComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerMenuTriggerElement, type MenuTriggerElement, type MenuTriggerProps as MenuTriggerElementProps, type MenuTriggerEvents } from '@prosekit/web/menu';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link MenuTrigger} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link MenuTrigger} React component. */
13
7
  export interface MenuTriggerProps {
14
8
  /**
15
9
  * Whether the component should ignore user interaction.
@@ -67,9 +61,5 @@ function MenuTriggerComponent(props: MenuTriggerProps, forwardedRef: ForwardedRe
67
61
  return createElement('prosekit-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
68
62
  }
69
63
 
70
- /**
71
- * A React component that renders an `prosekit-menu-trigger` custom element.
72
- *
73
- * @public
74
- */
64
+ /** A React component that renders an `prosekit-menu-trigger` custom element. */
75
65
  export const MenuTrigger: ForwardRefExoticComponent<MenuTriggerProps & HTMLAttributes<MenuTriggerElement> & RefAttributes<MenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuTriggerComponent);
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { PopoverPopup, type PopoverPopupProps } from './popover-popup.gen.ts';
6
4
 
@@ -21,4 +21,6 @@ import {
21
21
  ```
22
22
  */
23
23
 
24
+ 'use client'
25
+
24
26
  export * from './index.gen.ts'
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverPopupElement, type PopoverPopupElement } from '@prosekit/web/popover';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link PopoverPopup} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverPopup} React component. */
13
7
  export interface PopoverPopupProps {}
14
8
 
15
9
  function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: ForwardedRef<PopoverPopupElement>) {
@@ -34,9 +28,5 @@ function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: Forwarded
34
28
  return createElement('prosekit-popover-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
35
29
  }
36
30
 
37
- /**
38
- * A React component that renders an `prosekit-popover-popup` custom element.
39
- *
40
- * @public
41
- */
31
+ /** A React component that renders an `prosekit-popover-popup` custom element. */
42
32
  export const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & HTMLAttributes<PopoverPopupElement> & RefAttributes<PopoverPopupElement>> = /* @__PURE__ */ forwardRef(PopoverPopupComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverPositionerElement, type PopoverPositionerElement, type PopoverPositionerProps as PopoverPositionerElementProps } from '@prosekit/web/popover';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link PopoverPositioner} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverPositioner} React component. */
13
7
  export interface PopoverPositionerProps {
14
8
  /**
15
9
  * The strategy to use for positioning
@@ -168,9 +162,5 @@ function PopoverPositionerComponent(props: PopoverPositionerProps, forwardedRef:
168
162
  return createElement('prosekit-popover-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
169
163
  }
170
164
 
171
- /**
172
- * A React component that renders an `prosekit-popover-positioner` custom element.
173
- *
174
- * @public
175
- */
165
+ /** A React component that renders an `prosekit-popover-positioner` custom element. */
176
166
  export const PopoverPositioner: ForwardRefExoticComponent<PopoverPositionerProps & HTMLAttributes<PopoverPositionerElement> & RefAttributes<PopoverPositionerElement>> = /* @__PURE__ */ forwardRef(PopoverPositionerComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverRootElement, type PopoverRootElement, type PopoverRootProps as PopoverRootElementProps, type PopoverRootEvents } from '@prosekit/web/popover';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link PopoverRoot} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverRoot} React component. */
13
7
  export interface PopoverRootProps {
14
8
  /**
15
9
  * Whether the popover should be modal.
@@ -83,9 +77,5 @@ function PopoverRootComponent(props: PopoverRootProps, forwardedRef: ForwardedRe
83
77
  return createElement('prosekit-popover-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
84
78
  }
85
79
 
86
- /**
87
- * A React component that renders an `prosekit-popover-root` custom element.
88
- *
89
- * @public
90
- */
80
+ /** A React component that renders an `prosekit-popover-root` custom element. */
91
81
  export const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & HTMLAttributes<PopoverRootElement> & RefAttributes<PopoverRootElement>> = /* @__PURE__ */ forwardRef(PopoverRootComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverTriggerElement, type PopoverTriggerElement, type PopoverTriggerProps as PopoverTriggerElementProps, type PopoverTriggerEvents } from '@prosekit/web/popover';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link PopoverTrigger} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverTrigger} React component. */
13
7
  export interface PopoverTriggerProps {
14
8
  /**
15
9
  * Whether the component should ignore user interaction.
@@ -83,9 +77,5 @@ function PopoverTriggerComponent(props: PopoverTriggerProps, forwardedRef: Forwa
83
77
  return createElement('prosekit-popover-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
84
78
  }
85
79
 
86
- /**
87
- * A React component that renders an `prosekit-popover-trigger` custom element.
88
- *
89
- * @public
90
- */
80
+ /** A React component that renders an `prosekit-popover-trigger` custom element. */
91
81
  export const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & HTMLAttributes<PopoverTriggerElement> & RefAttributes<PopoverTriggerElement>> = /* @__PURE__ */ forwardRef(PopoverTriggerComponent);
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen.ts';
6
4
 
@@ -17,4 +17,6 @@ import {
17
17
  ```
18
18
  */
19
19
 
20
+ 'use client'
21
+
20
22
  export * from './index.gen.ts'
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerResizableHandleElement, type ResizableHandleElement, type ResizableHandleProps as ResizableHandleElementProps } from '@prosekit/web/resizable';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link ResizableHandle} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link ResizableHandle} React component. */
13
7
  export interface ResizableHandleProps {
14
8
  /**
15
9
  * The position of the handle.
@@ -47,9 +41,5 @@ function ResizableHandleComponent(props: ResizableHandleProps, forwardedRef: For
47
41
  return createElement('prosekit-resizable-handle', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
48
42
  }
49
43
 
50
- /**
51
- * A React component that renders an `prosekit-resizable-handle` custom element.
52
- *
53
- * @public
54
- */
44
+ /** A React component that renders an `prosekit-resizable-handle` custom element. */
55
45
  export const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerResizableRootElement, type ResizableRootElement, type ResizableRootProps as ResizableRootElementProps, type ResizableRootEvents } from '@prosekit/web/resizable';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link ResizableRoot} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link ResizableRoot} React component. */
13
7
  export interface ResizableRootProps {
14
8
  /**
15
9
  * The width of the resizable element.
@@ -81,9 +75,5 @@ function ResizableRootComponent(props: ResizableRootProps, forwardedRef: Forward
81
75
  return createElement('prosekit-resizable-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
82
76
  }
83
77
 
84
- /**
85
- * A React component that renders an `prosekit-resizable-root` custom element.
86
- *
87
- * @public
88
- */
78
+ /** A React component that renders an `prosekit-resizable-root` custom element. */
89
79
  export const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { TableHandleColumnPopup, type TableHandleColumnPopupProps } from './table-handle-column-popup.gen.ts';
6
4
 
@@ -55,4 +55,6 @@ import {
55
55
  ```
56
56
  */
57
57
 
58
+ 'use client'
59
+
58
60
  export * from './index.gen.ts'
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnMenuRootElement, type TableHandleColumnMenuRootElement, type TableHandleColumnMenuRootProps as TableHandleColumnMenuRootElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link TableHandleColumnMenuRoot} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link TableHandleColumnMenuRoot} React component. */
13
7
  export interface TableHandleColumnMenuRootProps {
14
8
  /**
15
9
  * Whether the overlay is initially open.
@@ -56,9 +50,5 @@ function TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProp
56
50
  return createElement('prosekit-table-handle-column-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
57
51
  }
58
52
 
59
- /**
60
- * A React component that renders an `prosekit-table-handle-column-menu-root` custom element.
61
- *
62
- * @public
63
- */
53
+ /** A React component that renders an `prosekit-table-handle-column-menu-root` custom element. */
64
54
  export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleColumnMenuTrigger} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleColumnMenuTrigger} React component. */
15
9
  export interface TableHandleColumnMenuTriggerProps {
16
10
  /**
17
11
  * @default null
@@ -50,9 +44,5 @@ function TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTrigg
50
44
  return createElement('prosekit-table-handle-column-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
51
45
  }
52
46
 
53
- /**
54
- * A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
55
- *
56
- * @public
57
- */
47
+ /** A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
58
48
  export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnPopupElement, type TableHandleColumnPopupElement } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link TableHandleColumnPopup} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link TableHandleColumnPopup} React component. */
13
7
  export interface TableHandleColumnPopupProps {}
14
8
 
15
9
  function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: ForwardedRef<TableHandleColumnPopupElement>) {
@@ -34,9 +28,5 @@ function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, for
34
28
  return createElement('prosekit-table-handle-column-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
35
29
  }
36
30
 
37
- /**
38
- * A React component that renders an `prosekit-table-handle-column-popup` custom element.
39
- *
40
- * @public
41
- */
31
+ /** A React component that renders an `prosekit-table-handle-column-popup` custom element. */
42
32
  export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnPositionerElement, type TableHandleColumnPositionerElement, type TableHandleColumnPositionerProps as TableHandleColumnPositionerElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleColumnPositioner} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleColumnPositioner} React component. */
15
9
  export interface TableHandleColumnPositionerProps {
16
10
  /**
17
11
  * The placement of the popover, relative to the hovered table cell.
@@ -191,9 +185,5 @@ function TableHandleColumnPositionerComponent(props: TableHandleColumnPositioner
191
185
  return createElement('prosekit-table-handle-column-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
192
186
  }
193
187
 
194
- /**
195
- * A React component that renders an `prosekit-table-handle-column-positioner` custom element.
196
- *
197
- * @public
198
- */
188
+ /** A React component that renders an `prosekit-table-handle-column-positioner` custom element. */
199
189
  export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleDragPreviewElement, type TableHandleDragPreviewElement, type TableHandleDragPreviewProps as TableHandleDragPreviewElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleDragPreview} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleDragPreview} React component. */
15
9
  export interface TableHandleDragPreviewProps {
16
10
  /**
17
11
  * @default null
@@ -50,9 +44,5 @@ function TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, for
50
44
  return createElement('prosekit-table-handle-drag-preview', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
51
45
  }
52
46
 
53
- /**
54
- * A React component that renders an `prosekit-table-handle-drag-preview` custom element.
55
- *
56
- * @public
57
- */
47
+ /** A React component that renders an `prosekit-table-handle-drag-preview` custom element. */
58
48
  export const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleDropIndicatorElement, type TableHandleDropIndicatorElement, type TableHandleDropIndicatorProps as TableHandleDropIndicatorElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleDropIndicator} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleDropIndicator} React component. */
15
9
  export interface TableHandleDropIndicatorProps {
16
10
  /**
17
11
  * @default null
@@ -50,9 +44,5 @@ function TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps,
50
44
  return createElement('prosekit-table-handle-drop-indicator', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
51
45
  }
52
46
 
53
- /**
54
- * A React component that renders an `prosekit-table-handle-drop-indicator` custom element.
55
- *
56
- * @public
57
- */
47
+ /** A React component that renders an `prosekit-table-handle-drop-indicator` custom element. */
58
48
  export const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleRootElement, type TableHandleRootElement, type TableHandleRootProps as TableHandleRootElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleRoot} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleRoot} React component. */
15
9
  export interface TableHandleRootProps {
16
10
  /**
17
11
  * The ProseKit editor instance.
@@ -52,9 +46,5 @@ function TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: For
52
46
  return createElement('prosekit-table-handle-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
53
47
  }
54
48
 
55
- /**
56
- * A React component that renders an `prosekit-table-handle-root` custom element.
57
- *
58
- * @public
59
- */
49
+ /** A React component that renders an `prosekit-table-handle-root` custom element. */
60
50
  export const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleRowMenuRootElement, type TableHandleRowMenuRootElement, type TableHandleRowMenuRootProps as TableHandleRowMenuRootElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link TableHandleRowMenuRoot} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link TableHandleRowMenuRoot} React component. */
13
7
  export interface TableHandleRowMenuRootProps {
14
8
  /**
15
9
  * Whether the overlay is initially open.
@@ -56,9 +50,5 @@ function TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, for
56
50
  return createElement('prosekit-table-handle-row-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
57
51
  }
58
52
 
59
- /**
60
- * A React component that renders an `prosekit-table-handle-row-menu-root` custom element.
61
- *
62
- * @public
63
- */
53
+ /** A React component that renders an `prosekit-table-handle-row-menu-root` custom element. */
64
54
  export const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerElementProps } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleRowMenuTrigger} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleRowMenuTrigger} React component. */
15
9
  export interface TableHandleRowMenuTriggerProps {
16
10
  /**
17
11
  * @default null
@@ -50,9 +44,5 @@ function TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProp
50
44
  return createElement('prosekit-table-handle-row-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
51
45
  }
52
46
 
53
- /**
54
- * A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
55
- *
56
- * @public
57
- */
47
+ /** A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */
58
48
  export const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleRowPopupElement, type TableHandleRowPopupElement } from '@prosekit/web/table-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link TableHandleRowPopup} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link TableHandleRowPopup} React component. */
13
7
  export interface TableHandleRowPopupProps {}
14
8
 
15
9
  function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: ForwardedRef<TableHandleRowPopupElement>) {
@@ -34,9 +28,5 @@ function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwarded
34
28
  return createElement('prosekit-table-handle-row-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
35
29
  }
36
30
 
37
- /**
38
- * A React component that renders an `prosekit-table-handle-row-popup` custom element.
39
- *
40
- * @public
41
- */
31
+ /** A React component that renders an `prosekit-table-handle-row-popup` custom element. */
42
32
  export const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);