@prosekit/react 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 (102) 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 +12 -23
  4. package/dist/prosekit-react-autocomplete.d.ts.map +1 -1
  5. package/dist/prosekit-react-autocomplete.js +28 -12
  6. package/dist/prosekit-react-autocomplete.js.map +1 -1
  7. package/dist/prosekit-react-block-handle.d.ts +12 -23
  8. package/dist/prosekit-react-block-handle.d.ts.map +1 -1
  9. package/dist/prosekit-react-block-handle.js +28 -12
  10. package/dist/prosekit-react-block-handle.js.map +1 -1
  11. package/dist/prosekit-react-drop-indicator.d.ts +2 -5
  12. package/dist/prosekit-react-drop-indicator.d.ts.map +1 -1
  13. package/dist/prosekit-react-drop-indicator.js +13 -2
  14. package/dist/prosekit-react-drop-indicator.js.map +1 -1
  15. package/dist/prosekit-react-inline-popover.d.ts +9 -16
  16. package/dist/prosekit-react-inline-popover.d.ts.map +1 -1
  17. package/dist/prosekit-react-inline-popover.js +23 -8
  18. package/dist/prosekit-react-inline-popover.js.map +1 -1
  19. package/dist/prosekit-react-menu.d.ts +16 -31
  20. package/dist/prosekit-react-menu.d.ts.map +1 -1
  21. package/dist/prosekit-react-menu.js +38 -16
  22. package/dist/prosekit-react-menu.js.map +1 -1
  23. package/dist/prosekit-react-popover.d.ts +10 -19
  24. package/dist/prosekit-react-popover.d.ts.map +1 -1
  25. package/dist/prosekit-react-popover.js +25 -10
  26. package/dist/prosekit-react-popover.js.map +1 -1
  27. package/dist/prosekit-react-resizable.d.ts +6 -11
  28. package/dist/prosekit-react-resizable.d.ts.map +1 -1
  29. package/dist/prosekit-react-resizable.js +21 -6
  30. package/dist/prosekit-react-resizable.js.map +1 -1
  31. package/dist/prosekit-react-table-handle.d.ts +22 -45
  32. package/dist/prosekit-react-table-handle.d.ts.map +1 -1
  33. package/dist/prosekit-react-table-handle.js +57 -22
  34. package/dist/prosekit-react-table-handle.js.map +1 -1
  35. package/dist/prosekit-react-tooltip.d.ts +10 -19
  36. package/dist/prosekit-react-tooltip.d.ts.map +1 -1
  37. package/dist/prosekit-react-tooltip.js +25 -10
  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 +2 -2
  45. package/src/components/autocomplete/autocomplete-item.gen.ts +2 -4
  46. package/src/components/autocomplete/autocomplete-popup.gen.ts +2 -4
  47. package/src/components/autocomplete/autocomplete-positioner.gen.ts +2 -2
  48. package/src/components/autocomplete/autocomplete-root.gen.ts +2 -4
  49. package/src/components/autocomplete/index.gen.ts +3 -5
  50. package/src/components/autocomplete/index.ts +2 -0
  51. package/src/components/block-handle/block-handle-add.gen.ts +2 -2
  52. package/src/components/block-handle/block-handle-draggable.gen.ts +2 -2
  53. package/src/components/block-handle/block-handle-popup.gen.ts +2 -2
  54. package/src/components/block-handle/block-handle-positioner.gen.ts +2 -2
  55. package/src/components/block-handle/block-handle-root.gen.ts +2 -4
  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 +2 -2
  59. package/src/components/drop-indicator/index.ts +2 -0
  60. package/src/components/inline-popover/index.gen.ts +1 -3
  61. package/src/components/inline-popover/index.ts +2 -0
  62. package/src/components/inline-popover/inline-popover-popup.gen.ts +2 -2
  63. package/src/components/inline-popover/inline-popover-positioner.gen.ts +2 -2
  64. package/src/components/inline-popover/inline-popover-root.gen.ts +3 -5
  65. package/src/components/menu/index.gen.ts +3 -5
  66. package/src/components/menu/index.ts +2 -0
  67. package/src/components/menu/menu-item.gen.ts +2 -4
  68. package/src/components/menu/menu-popup.gen.ts +2 -2
  69. package/src/components/menu/menu-positioner.gen.ts +2 -2
  70. package/src/components/menu/menu-root.gen.ts +2 -4
  71. package/src/components/menu/menu-submenu-root.gen.ts +2 -2
  72. package/src/components/menu/menu-submenu-trigger.gen.ts +2 -2
  73. package/src/components/menu/menu-trigger.gen.ts +2 -4
  74. package/src/components/popover/index.gen.ts +2 -4
  75. package/src/components/popover/index.ts +2 -0
  76. package/src/components/popover/popover-popup.gen.ts +2 -2
  77. package/src/components/popover/popover-positioner.gen.ts +2 -2
  78. package/src/components/popover/popover-root.gen.ts +2 -4
  79. package/src/components/popover/popover-trigger.gen.ts +2 -4
  80. package/src/components/resizable/index.gen.ts +1 -3
  81. package/src/components/resizable/index.ts +2 -0
  82. package/src/components/resizable/resizable-handle.gen.ts +2 -2
  83. package/src/components/resizable/resizable-root.gen.ts +2 -4
  84. package/src/components/table-handle/index.ts +2 -0
  85. package/src/components/table-handle/table-handle-column-menu-root.gen.ts +2 -2
  86. package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +2 -2
  87. package/src/components/table-handle/table-handle-column-popup.gen.ts +2 -2
  88. package/src/components/table-handle/table-handle-column-positioner.gen.ts +2 -2
  89. package/src/components/table-handle/table-handle-drag-preview.gen.ts +2 -2
  90. package/src/components/table-handle/table-handle-drop-indicator.gen.ts +2 -2
  91. package/src/components/table-handle/table-handle-root.gen.ts +2 -2
  92. package/src/components/table-handle/table-handle-row-menu-root.gen.ts +2 -2
  93. package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +2 -2
  94. package/src/components/table-handle/table-handle-row-popup.gen.ts +2 -2
  95. package/src/components/table-handle/table-handle-row-positioner.gen.ts +2 -2
  96. package/src/components/tooltip/index.gen.ts +1 -3
  97. package/src/components/tooltip/index.ts +2 -0
  98. package/src/components/tooltip/tooltip-popup.gen.ts +2 -2
  99. package/src/components/tooltip/tooltip-positioner.gen.ts +2 -2
  100. package/src/components/tooltip/tooltip-root.gen.ts +2 -4
  101. package/src/components/tooltip/tooltip-trigger.gen.ts +2 -2
  102. package/src/index.ts +2 -0
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface AutocompletePositionerProps extends HTMLAttributes<AutocompletePositionerElement> {
13
+ export interface AutocompletePositionerProps {
14
14
  /**
15
15
  * The placement of the popover, relative to the text cursor.
16
16
  *
@@ -148,4 +148,4 @@ function AutocompletePositionerComponent(props: AutocompletePositionerProps, for
148
148
  *
149
149
  * @public
150
150
  */
151
- export const AutocompletePositioner: ForwardRefExoticComponent<AutocompletePositionerProps & RefAttributes<AutocompletePositionerElement>> = /* @__PURE__ */ forwardRef(AutocompletePositionerComponent);
151
+ export const AutocompletePositioner: ForwardRefExoticComponent<AutocompletePositionerProps & HTMLAttributes<AutocompletePositionerElement> & RefAttributes<AutocompletePositionerElement>> = /* @__PURE__ */ forwardRef(AutocompletePositionerComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface AutocompleteRootProps extends HTMLAttributes<AutocompleteRootElement> {
15
+ export interface AutocompleteRootProps {
16
16
  /**
17
17
  * The ProseKit editor instance.
18
18
  *
@@ -102,6 +102,4 @@ function AutocompleteRootComponent(props: AutocompleteRootProps, forwardedRef: F
102
102
  *
103
103
  * @public
104
104
  */
105
- export const AutocompleteRoot: ForwardRefExoticComponent<AutocompleteRootProps & RefAttributes<AutocompleteRootElement>> = /* @__PURE__ */ forwardRef(AutocompleteRootComponent);
106
-
107
- export type { AutocompleteRootEvents };
105
+ export const AutocompleteRoot: ForwardRefExoticComponent<AutocompleteRootProps & HTMLAttributes<AutocompleteRootElement> & RefAttributes<AutocompleteRootElement>> = /* @__PURE__ */ forwardRef(AutocompleteRootComponent);
@@ -4,12 +4,10 @@
4
4
 
5
5
  export { AutocompleteEmpty, type AutocompleteEmptyProps } from './autocomplete-empty.gen.ts';
6
6
 
7
- export { AutocompleteItem, type AutocompleteItemProps, type AutocompleteItemEvents } from './autocomplete-item.gen.ts';
7
+ export { AutocompleteItem, type AutocompleteItemProps } from './autocomplete-item.gen.ts';
8
8
 
9
- export { AutocompletePopup, type AutocompletePopupProps, type AutocompletePopupEvents } from './autocomplete-popup.gen.ts';
9
+ export { AutocompletePopup, type AutocompletePopupProps } from './autocomplete-popup.gen.ts';
10
10
 
11
11
  export { AutocompletePositioner, type AutocompletePositionerProps } from './autocomplete-positioner.gen.ts';
12
12
 
13
- export { AutocompleteRoot, type AutocompleteRootProps, type AutocompleteRootEvents } from './autocomplete-root.gen.ts';
14
-
15
- export { OpenChangeEvent, QueryChangeEvent, SelectEvent, ValueChangeEvent, ValuesChangeEvent } from '@prosekit/web/autocomplete';
13
+ export { AutocompleteRoot, type AutocompleteRootProps } from './autocomplete-root.gen.ts';
@@ -24,4 +24,6 @@ import {
24
24
  ```
25
25
  */
26
26
 
27
+ 'use client'
28
+
27
29
  export * from './index.gen.ts'
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface BlockHandleAddProps extends HTMLAttributes<BlockHandleAddElement> {
15
+ export interface BlockHandleAddProps {
16
16
  /**
17
17
  * The ProseKit editor instance.
18
18
  *
@@ -57,4 +57,4 @@ function BlockHandleAddComponent(props: BlockHandleAddProps, forwardedRef: Forwa
57
57
  *
58
58
  * @public
59
59
  */
60
- export const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & RefAttributes<BlockHandleAddElement>> = /* @__PURE__ */ forwardRef(BlockHandleAddComponent);
60
+ export const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & HTMLAttributes<BlockHandleAddElement> & RefAttributes<BlockHandleAddElement>> = /* @__PURE__ */ forwardRef(BlockHandleAddComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface BlockHandleDraggableProps extends HTMLAttributes<BlockHandleDraggableElement> {
15
+ export interface BlockHandleDraggableProps {
16
16
  /**
17
17
  * The ProseKit editor instance.
18
18
  *
@@ -57,4 +57,4 @@ function BlockHandleDraggableComponent(props: BlockHandleDraggableProps, forward
57
57
  *
58
58
  * @public
59
59
  */
60
- export const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & RefAttributes<BlockHandleDraggableElement>> = /* @__PURE__ */ forwardRef(BlockHandleDraggableComponent);
60
+ export const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & HTMLAttributes<BlockHandleDraggableElement> & RefAttributes<BlockHandleDraggableElement>> = /* @__PURE__ */ forwardRef(BlockHandleDraggableComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface BlockHandlePopupProps extends HTMLAttributes<BlockHandlePopupElement> {}
13
+ export interface BlockHandlePopupProps {}
14
14
 
15
15
  function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: ForwardedRef<BlockHandlePopupElement>) {
16
16
  registerBlockHandlePopupElement();
@@ -39,4 +39,4 @@ function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: F
39
39
  *
40
40
  * @public
41
41
  */
42
- export const BlockHandlePopup: ForwardRefExoticComponent<BlockHandlePopupProps & RefAttributes<BlockHandlePopupElement>> = /* @__PURE__ */ forwardRef(BlockHandlePopupComponent);
42
+ export const BlockHandlePopup: ForwardRefExoticComponent<BlockHandlePopupProps & HTMLAttributes<BlockHandlePopupElement> & RefAttributes<BlockHandlePopupElement>> = /* @__PURE__ */ forwardRef(BlockHandlePopupComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface BlockHandlePositionerProps extends HTMLAttributes<BlockHandlePositionerElement> {
13
+ export interface BlockHandlePositionerProps {
14
14
  /**
15
15
  * The placement of the popover, relative to the hovered block.
16
16
  *
@@ -166,4 +166,4 @@ function BlockHandlePositionerComponent(props: BlockHandlePositionerProps, forwa
166
166
  *
167
167
  * @public
168
168
  */
169
- export const BlockHandlePositioner: ForwardRefExoticComponent<BlockHandlePositionerProps & RefAttributes<BlockHandlePositionerElement>> = /* @__PURE__ */ forwardRef(BlockHandlePositionerComponent);
169
+ export const BlockHandlePositioner: ForwardRefExoticComponent<BlockHandlePositionerProps & HTMLAttributes<BlockHandlePositionerElement> & RefAttributes<BlockHandlePositionerElement>> = /* @__PURE__ */ forwardRef(BlockHandlePositionerComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface BlockHandleRootProps extends HTMLAttributes<BlockHandleRootElement> {
15
+ export interface BlockHandleRootProps {
16
16
  /**
17
17
  * The ProseKit editor instance.
18
18
  *
@@ -77,6 +77,4 @@ function BlockHandleRootComponent(props: BlockHandleRootProps, forwardedRef: For
77
77
  *
78
78
  * @public
79
79
  */
80
- export const BlockHandleRoot: ForwardRefExoticComponent<BlockHandleRootProps & RefAttributes<BlockHandleRootElement>> = /* @__PURE__ */ forwardRef(BlockHandleRootComponent);
81
-
82
- export type { BlockHandleRootEvents };
80
+ export const BlockHandleRoot: ForwardRefExoticComponent<BlockHandleRootProps & HTMLAttributes<BlockHandleRootElement> & RefAttributes<BlockHandleRootElement>> = /* @__PURE__ */ forwardRef(BlockHandleRootComponent);
@@ -10,6 +10,4 @@ export { BlockHandlePopup, type BlockHandlePopupProps } from './block-handle-pop
10
10
 
11
11
  export { BlockHandlePositioner, type BlockHandlePositionerProps } from './block-handle-positioner.gen.ts';
12
12
 
13
- export { BlockHandleRoot, type BlockHandleRootProps, type BlockHandleRootEvents } from './block-handle-root.gen.ts';
14
-
15
- export { BlockHandleStateChangeEvent } from '@prosekit/web/block-handle';
13
+ export { BlockHandleRoot, type BlockHandleRootProps } from './block-handle-root.gen.ts';
@@ -24,4 +24,6 @@ import {
24
24
  ```
25
25
  */
26
26
 
27
+ 'use client'
28
+
27
29
  export * from './index.gen.ts'
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface DropIndicatorProps extends HTMLAttributes<DropIndicatorElement> {
15
+ export interface DropIndicatorProps {
16
16
  /**
17
17
  * The ProseKit editor instance.
18
18
  *
@@ -63,4 +63,4 @@ function DropIndicatorComponent(props: DropIndicatorProps, forwardedRef: Forward
63
63
  *
64
64
  * @public
65
65
  */
66
- export const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & RefAttributes<DropIndicatorElement>> = /* @__PURE__ */ forwardRef(DropIndicatorComponent);
66
+ export const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & HTMLAttributes<DropIndicatorElement> & RefAttributes<DropIndicatorElement>> = /* @__PURE__ */ forwardRef(DropIndicatorComponent);
@@ -11,4 +11,6 @@ import { DropIndicator } from 'prosekit/react/drop-indicator'
11
11
  ```
12
12
  */
13
13
 
14
+ 'use client'
15
+
14
16
  export * from './index.gen.ts'
@@ -6,6 +6,4 @@ export { InlinePopoverPopup, type InlinePopoverPopupProps } from './inline-popov
6
6
 
7
7
  export { InlinePopoverPositioner, type InlinePopoverPositionerProps } from './inline-popover-positioner.gen.ts';
8
8
 
9
- export { InlinePopoverRoot, type InlinePopoverRootProps, type InlinePopoverRootEvents } from './inline-popover-root.gen.ts';
10
-
11
- export { OpenChangeEvent } from '@prosekit/web/inline-popover';
9
+ export { InlinePopoverRoot, type InlinePopoverRootProps } from './inline-popover-root.gen.ts';
@@ -19,4 +19,6 @@ import {
19
19
  ```
20
20
  */
21
21
 
22
+ 'use client'
23
+
22
24
  export * from './index.gen.ts'
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface InlinePopoverPopupProps extends HTMLAttributes<InlinePopoverPopupElement> {}
13
+ export interface InlinePopoverPopupProps {}
14
14
 
15
15
  function InlinePopoverPopupComponent(props: InlinePopoverPopupProps, forwardedRef: ForwardedRef<InlinePopoverPopupElement>) {
16
16
  registerInlinePopoverPopupElement();
@@ -39,4 +39,4 @@ function InlinePopoverPopupComponent(props: InlinePopoverPopupProps, forwardedRe
39
39
  *
40
40
  * @public
41
41
  */
42
- export const InlinePopoverPopup: ForwardRefExoticComponent<InlinePopoverPopupProps & RefAttributes<InlinePopoverPopupElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPopupComponent);
42
+ export const InlinePopoverPopup: ForwardRefExoticComponent<InlinePopoverPopupProps & HTMLAttributes<InlinePopoverPopupElement> & RefAttributes<InlinePopoverPopupElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPopupComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface InlinePopoverPositionerProps extends HTMLAttributes<InlinePopoverPositionerElement> {
13
+ export interface InlinePopoverPositionerProps {
14
14
  /**
15
15
  * The initial placement of the floating element
16
16
  *
@@ -172,4 +172,4 @@ function InlinePopoverPositionerComponent(props: InlinePopoverPositionerProps, f
172
172
  *
173
173
  * @public
174
174
  */
175
- export const InlinePopoverPositioner: ForwardRefExoticComponent<InlinePopoverPositionerProps & RefAttributes<InlinePopoverPositionerElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPositionerComponent);
175
+ export const InlinePopoverPositioner: ForwardRefExoticComponent<InlinePopoverPositionerProps & HTMLAttributes<InlinePopoverPositionerElement> & RefAttributes<InlinePopoverPositionerElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPositionerComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface InlinePopoverRootProps extends HTMLAttributes<InlinePopoverRootElement> {
15
+ export interface InlinePopoverRootProps {
16
16
  /**
17
17
  * The ProseKit editor instance.
18
18
  *
@@ -44,7 +44,7 @@ export interface InlinePopoverRootProps extends HTMLAttributes<InlinePopoverRoot
44
44
  * @default false
45
45
  */
46
46
  disabled?: InlinePopoverRootElementProps['disabled'];
47
- /** */
47
+ /** Emitted when the open state of the popover changes. */
48
48
  onOpenChange?: (event: InlinePopoverRootEvents['openChange']) => void;
49
49
  }
50
50
 
@@ -101,6 +101,4 @@ function InlinePopoverRootComponent(props: InlinePopoverRootProps, forwardedRef:
101
101
  *
102
102
  * @public
103
103
  */
104
- export const InlinePopoverRoot: ForwardRefExoticComponent<InlinePopoverRootProps & RefAttributes<InlinePopoverRootElement>> = /* @__PURE__ */ forwardRef(InlinePopoverRootComponent);
105
-
106
- export type { InlinePopoverRootEvents };
104
+ export const InlinePopoverRoot: ForwardRefExoticComponent<InlinePopoverRootProps & HTMLAttributes<InlinePopoverRootElement> & RefAttributes<InlinePopoverRootElement>> = /* @__PURE__ */ forwardRef(InlinePopoverRootComponent);
@@ -2,18 +2,16 @@
2
2
  * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
3
  */
4
4
 
5
- export { MenuItem, type MenuItemProps, type MenuItemEvents } from './menu-item.gen.ts';
5
+ export { MenuItem, type MenuItemProps } from './menu-item.gen.ts';
6
6
 
7
7
  export { MenuPopup, type MenuPopupProps } from './menu-popup.gen.ts';
8
8
 
9
9
  export { MenuPositioner, type MenuPositionerProps } from './menu-positioner.gen.ts';
10
10
 
11
- export { MenuRoot, type MenuRootProps, type MenuRootEvents } from './menu-root.gen.ts';
11
+ export { MenuRoot, type MenuRootProps } from './menu-root.gen.ts';
12
12
 
13
13
  export { MenuSubmenuRoot, type MenuSubmenuRootProps } from './menu-submenu-root.gen.ts';
14
14
 
15
15
  export { MenuSubmenuTrigger, type MenuSubmenuTriggerProps } from './menu-submenu-trigger.gen.ts';
16
16
 
17
- export { MenuTrigger, type MenuTriggerProps, type MenuTriggerEvents } from './menu-trigger.gen.ts';
18
-
19
- export { OpenChangeEvent, SelectEvent } from '@prosekit/web/menu';
17
+ export { MenuTrigger, type MenuTriggerProps } from './menu-trigger.gen.ts';
@@ -34,4 +34,6 @@ import {
34
34
  ```
35
35
  */
36
36
 
37
+ 'use client'
38
+
37
39
  export * from './index.gen.ts'
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface MenuItemProps extends Omit<HTMLAttributes<MenuItemElement>, 'onSelect'> {
13
+ export interface MenuItemProps {
14
14
  /**
15
15
  * The unique value for this menu item.
16
16
  *
@@ -84,6 +84,4 @@ function MenuItemComponent(props: MenuItemProps, forwardedRef: ForwardedRef<Menu
84
84
  *
85
85
  * @public
86
86
  */
87
- export const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<MenuItemElement>> = /* @__PURE__ */ forwardRef(MenuItemComponent);
88
-
89
- export type { MenuItemEvents };
87
+ export const MenuItem: ForwardRefExoticComponent<MenuItemProps & Omit<HTMLAttributes<MenuItemElement>, 'onSelect'> & RefAttributes<MenuItemElement>> = /* @__PURE__ */ forwardRef(MenuItemComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface MenuPopupProps extends HTMLAttributes<MenuPopupElement> {
13
+ export interface MenuPopupProps {
14
14
  /**
15
15
  * By default, the MenuPopup element will listen for keydown events.
16
16
  * You can pass a different element to listen for keydown events.
@@ -53,4 +53,4 @@ function MenuPopupComponent(props: MenuPopupProps, forwardedRef: ForwardedRef<Me
53
53
  *
54
54
  * @public
55
55
  */
56
- export const MenuPopup: ForwardRefExoticComponent<MenuPopupProps & RefAttributes<MenuPopupElement>> = /* @__PURE__ */ forwardRef(MenuPopupComponent);
56
+ export const MenuPopup: ForwardRefExoticComponent<MenuPopupProps & HTMLAttributes<MenuPopupElement> & RefAttributes<MenuPopupElement>> = /* @__PURE__ */ forwardRef(MenuPopupComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface MenuPositionerProps extends HTMLAttributes<MenuPositionerElement> {
13
+ export interface MenuPositionerProps {
14
14
  /**
15
15
  * The initial placement of the floating element
16
16
  *
@@ -173,4 +173,4 @@ function MenuPositionerComponent(props: MenuPositionerProps, forwardedRef: Forwa
173
173
  *
174
174
  * @public
175
175
  */
176
- export const MenuPositioner: ForwardRefExoticComponent<MenuPositionerProps & RefAttributes<MenuPositionerElement>> = /* @__PURE__ */ forwardRef(MenuPositionerComponent);
176
+ export const MenuPositioner: ForwardRefExoticComponent<MenuPositionerProps & HTMLAttributes<MenuPositionerElement> & RefAttributes<MenuPositionerElement>> = /* @__PURE__ */ forwardRef(MenuPositionerComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface MenuRootProps extends HTMLAttributes<MenuRootElement> {
13
+ export interface MenuRootProps {
14
14
  /**
15
15
  * Whether the overlay is initially open.
16
16
  * @default false
@@ -81,6 +81,4 @@ function MenuRootComponent(props: MenuRootProps, forwardedRef: ForwardedRef<Menu
81
81
  *
82
82
  * @public
83
83
  */
84
- export const MenuRoot: ForwardRefExoticComponent<MenuRootProps & RefAttributes<MenuRootElement>> = /* @__PURE__ */ forwardRef(MenuRootComponent);
85
-
86
- export type { MenuRootEvents };
84
+ export const MenuRoot: ForwardRefExoticComponent<MenuRootProps & HTMLAttributes<MenuRootElement> & RefAttributes<MenuRootElement>> = /* @__PURE__ */ forwardRef(MenuRootComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface MenuSubmenuRootProps extends HTMLAttributes<MenuSubmenuRootElement> {}
13
+ export interface MenuSubmenuRootProps {}
14
14
 
15
15
  function MenuSubmenuRootComponent(props: MenuSubmenuRootProps, forwardedRef: ForwardedRef<MenuSubmenuRootElement>) {
16
16
  registerMenuSubmenuRootElement();
@@ -39,4 +39,4 @@ function MenuSubmenuRootComponent(props: MenuSubmenuRootProps, forwardedRef: For
39
39
  *
40
40
  * @public
41
41
  */
42
- export const MenuSubmenuRoot: ForwardRefExoticComponent<MenuSubmenuRootProps & RefAttributes<MenuSubmenuRootElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuRootComponent);
42
+ export const MenuSubmenuRoot: ForwardRefExoticComponent<MenuSubmenuRootProps & HTMLAttributes<MenuSubmenuRootElement> & RefAttributes<MenuSubmenuRootElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuRootComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface MenuSubmenuTriggerProps extends HTMLAttributes<MenuSubmenuTriggerElement> {}
13
+ export interface MenuSubmenuTriggerProps {}
14
14
 
15
15
  function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRef: ForwardedRef<MenuSubmenuTriggerElement>) {
16
16
  registerMenuSubmenuTriggerElement();
@@ -39,4 +39,4 @@ function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRe
39
39
  *
40
40
  * @public
41
41
  */
42
- export const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & RefAttributes<MenuSubmenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuTriggerComponent);
42
+ export const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & HTMLAttributes<MenuSubmenuTriggerElement> & RefAttributes<MenuSubmenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuTriggerComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface MenuTriggerProps extends HTMLAttributes<MenuTriggerElement> {
13
+ export interface MenuTriggerProps {
14
14
  /**
15
15
  * Whether the component should ignore user interaction.
16
16
  *
@@ -72,6 +72,4 @@ function MenuTriggerComponent(props: MenuTriggerProps, forwardedRef: ForwardedRe
72
72
  *
73
73
  * @public
74
74
  */
75
- export const MenuTrigger: ForwardRefExoticComponent<MenuTriggerProps & RefAttributes<MenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuTriggerComponent);
76
-
77
- export type { MenuTriggerEvents };
75
+ export const MenuTrigger: ForwardRefExoticComponent<MenuTriggerProps & HTMLAttributes<MenuTriggerElement> & RefAttributes<MenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuTriggerComponent);
@@ -6,8 +6,6 @@ export { PopoverPopup, type PopoverPopupProps } from './popover-popup.gen.ts';
6
6
 
7
7
  export { PopoverPositioner, type PopoverPositionerProps } from './popover-positioner.gen.ts';
8
8
 
9
- export { PopoverRoot, type PopoverRootProps, type PopoverRootEvents } from './popover-root.gen.ts';
9
+ export { PopoverRoot, type PopoverRootProps } from './popover-root.gen.ts';
10
10
 
11
- export { PopoverTrigger, type PopoverTriggerProps, type PopoverTriggerEvents } from './popover-trigger.gen.ts';
12
-
13
- export { OpenChangeEvent } from '@prosekit/web/popover';
11
+ export { PopoverTrigger, type PopoverTriggerProps } from './popover-trigger.gen.ts';
@@ -21,4 +21,6 @@ import {
21
21
  ```
22
22
  */
23
23
 
24
+ 'use client'
25
+
24
26
  export * from './index.gen.ts'
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface PopoverPopupProps extends HTMLAttributes<PopoverPopupElement> {}
13
+ export interface PopoverPopupProps {}
14
14
 
15
15
  function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: ForwardedRef<PopoverPopupElement>) {
16
16
  registerPopoverPopupElement();
@@ -39,4 +39,4 @@ function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: Forwarded
39
39
  *
40
40
  * @public
41
41
  */
42
- export const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & RefAttributes<PopoverPopupElement>> = /* @__PURE__ */ forwardRef(PopoverPopupComponent);
42
+ export const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & HTMLAttributes<PopoverPopupElement> & RefAttributes<PopoverPopupElement>> = /* @__PURE__ */ forwardRef(PopoverPopupComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface PopoverPositionerProps extends HTMLAttributes<PopoverPositionerElement> {
13
+ export interface PopoverPositionerProps {
14
14
  /**
15
15
  * The strategy to use for positioning
16
16
  *
@@ -173,4 +173,4 @@ function PopoverPositionerComponent(props: PopoverPositionerProps, forwardedRef:
173
173
  *
174
174
  * @public
175
175
  */
176
- export const PopoverPositioner: ForwardRefExoticComponent<PopoverPositionerProps & RefAttributes<PopoverPositionerElement>> = /* @__PURE__ */ forwardRef(PopoverPositionerComponent);
176
+ export const PopoverPositioner: ForwardRefExoticComponent<PopoverPositionerProps & HTMLAttributes<PopoverPositionerElement> & RefAttributes<PopoverPositionerElement>> = /* @__PURE__ */ forwardRef(PopoverPositionerComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface PopoverRootProps extends HTMLAttributes<PopoverRootElement> {
13
+ export interface PopoverRootProps {
14
14
  /**
15
15
  * Whether the popover should be modal.
16
16
  * When true, the popover will trap focus and prevent interaction with the rest of the page.
@@ -88,6 +88,4 @@ function PopoverRootComponent(props: PopoverRootProps, forwardedRef: ForwardedRe
88
88
  *
89
89
  * @public
90
90
  */
91
- export const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & RefAttributes<PopoverRootElement>> = /* @__PURE__ */ forwardRef(PopoverRootComponent);
92
-
93
- export type { PopoverRootEvents };
91
+ export const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & HTMLAttributes<PopoverRootElement> & RefAttributes<PopoverRootElement>> = /* @__PURE__ */ forwardRef(PopoverRootComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface PopoverTriggerProps extends HTMLAttributes<PopoverTriggerElement> {
13
+ export interface PopoverTriggerProps {
14
14
  /**
15
15
  * Whether the component should ignore user interaction.
16
16
  * @default false
@@ -88,6 +88,4 @@ function PopoverTriggerComponent(props: PopoverTriggerProps, forwardedRef: Forwa
88
88
  *
89
89
  * @public
90
90
  */
91
- export const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<PopoverTriggerElement>> = /* @__PURE__ */ forwardRef(PopoverTriggerComponent);
92
-
93
- export type { PopoverTriggerEvents };
91
+ export const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & HTMLAttributes<PopoverTriggerElement> & RefAttributes<PopoverTriggerElement>> = /* @__PURE__ */ forwardRef(PopoverTriggerComponent);
@@ -2,8 +2,6 @@
2
2
  * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
3
  */
4
4
 
5
- export { ResizableRoot, type ResizableRootProps, type ResizableRootEvents } from './resizable-root.gen.ts';
5
+ export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen.ts';
6
6
 
7
7
  export { ResizableHandle, type ResizableHandleProps } from './resizable-handle.gen.ts';
8
-
9
- export { ResizeEndEvent, ResizeStartEvent } from '@prosekit/web/resizable';
@@ -17,4 +17,6 @@ import {
17
17
  ```
18
18
  */
19
19
 
20
+ 'use client'
21
+
20
22
  export * from './index.gen.ts'
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface ResizableHandleProps extends HTMLAttributes<ResizableHandleElement> {
13
+ export interface ResizableHandleProps {
14
14
  /**
15
15
  * The position of the handle.
16
16
  *
@@ -52,4 +52,4 @@ function ResizableHandleComponent(props: ResizableHandleProps, forwardedRef: For
52
52
  *
53
53
  * @public
54
54
  */
55
- export const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
55
+ export const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface ResizableRootProps extends HTMLAttributes<ResizableRootElement> {
13
+ export interface ResizableRootProps {
14
14
  /**
15
15
  * The width of the resizable element.
16
16
  *
@@ -86,6 +86,4 @@ function ResizableRootComponent(props: ResizableRootProps, forwardedRef: Forward
86
86
  *
87
87
  * @public
88
88
  */
89
- export const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);
90
-
91
- export type { ResizableRootEvents };
89
+ export const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);
@@ -55,4 +55,6 @@ import {
55
55
  ```
56
56
  */
57
57
 
58
+ 'use client'
59
+
58
60
  export * from './index.gen.ts'
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TableHandleColumnMenuRootProps extends HTMLAttributes<TableHandleColumnMenuRootElement> {
13
+ export interface TableHandleColumnMenuRootProps {
14
14
  /**
15
15
  * Whether the overlay is initially open.
16
16
  * @default false
@@ -61,4 +61,4 @@ function TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProp
61
61
  *
62
62
  * @public
63
63
  */
64
- export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
64
+ export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleColumnMenuTriggerProps extends HTMLAttributes<TableHandleColumnMenuTriggerElement> {
15
+ export interface TableHandleColumnMenuTriggerProps {
16
16
  /**
17
17
  * @default null
18
18
  * @hidden
@@ -55,4 +55,4 @@ function TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTrigg
55
55
  *
56
56
  * @public
57
57
  */
58
- export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
58
+ export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TableHandleColumnPopupProps extends HTMLAttributes<TableHandleColumnPopupElement> {}
13
+ export interface TableHandleColumnPopupProps {}
14
14
 
15
15
  function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: ForwardedRef<TableHandleColumnPopupElement>) {
16
16
  registerTableHandleColumnPopupElement();
@@ -39,4 +39,4 @@ function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, for
39
39
  *
40
40
  * @public
41
41
  */
42
- export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
42
+ export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleColumnPositionerProps extends HTMLAttributes<TableHandleColumnPositionerElement> {
15
+ export interface TableHandleColumnPositionerProps {
16
16
  /**
17
17
  * The placement of the popover, relative to the hovered table cell.
18
18
  *
@@ -196,4 +196,4 @@ function TableHandleColumnPositionerComponent(props: TableHandleColumnPositioner
196
196
  *
197
197
  * @public
198
198
  */
199
- export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
199
+ export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);