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