@prosekit/preact 0.7.0-beta.1 → 0.7.0-beta.3

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 (84) hide show
  1. package/dist/prosekit-preact-autocomplete.d.ts +12 -12
  2. package/dist/prosekit-preact-autocomplete.d.ts.map +1 -1
  3. package/dist/prosekit-preact-autocomplete.js +2 -2
  4. package/dist/prosekit-preact-autocomplete.js.map +1 -1
  5. package/dist/prosekit-preact-block-handle.d.ts +12 -12
  6. package/dist/prosekit-preact-block-handle.d.ts.map +1 -1
  7. package/dist/prosekit-preact-block-handle.js +2 -2
  8. package/dist/prosekit-preact-block-handle.js.map +1 -1
  9. package/dist/prosekit-preact-drop-indicator.d.ts +2 -2
  10. package/dist/prosekit-preact-drop-indicator.d.ts.map +1 -1
  11. package/dist/prosekit-preact-drop-indicator.js.map +1 -1
  12. package/dist/prosekit-preact-inline-popover.d.ts +16 -16
  13. package/dist/prosekit-preact-inline-popover.d.ts.map +1 -1
  14. package/dist/prosekit-preact-inline-popover.js +2 -2
  15. package/dist/prosekit-preact-inline-popover.js.map +1 -1
  16. package/dist/prosekit-preact-menu.d.ts +16 -16
  17. package/dist/prosekit-preact-menu.d.ts.map +1 -1
  18. package/dist/prosekit-preact-menu.js +2 -2
  19. package/dist/prosekit-preact-menu.js.map +1 -1
  20. package/dist/prosekit-preact-popover.d.ts +10 -10
  21. package/dist/prosekit-preact-popover.d.ts.map +1 -1
  22. package/dist/prosekit-preact-popover.js +2 -2
  23. package/dist/prosekit-preact-popover.js.map +1 -1
  24. package/dist/prosekit-preact-resizable.d.ts +6 -6
  25. package/dist/prosekit-preact-resizable.d.ts.map +1 -1
  26. package/dist/prosekit-preact-resizable.js +2 -2
  27. package/dist/prosekit-preact-resizable.js.map +1 -1
  28. package/dist/prosekit-preact-table-handle.d.ts +22 -22
  29. package/dist/prosekit-preact-table-handle.d.ts.map +1 -1
  30. package/dist/prosekit-preact-table-handle.js.map +1 -1
  31. package/dist/prosekit-preact-tooltip.d.ts +10 -10
  32. package/dist/prosekit-preact-tooltip.d.ts.map +1 -1
  33. package/dist/prosekit-preact-tooltip.js +2 -2
  34. package/dist/prosekit-preact-tooltip.js.map +1 -1
  35. package/package.json +2 -2
  36. package/src/components/autocomplete/autocomplete-empty.gen.ts +2 -2
  37. package/src/components/autocomplete/autocomplete-item.gen.ts +2 -4
  38. package/src/components/autocomplete/autocomplete-popup.gen.ts +2 -4
  39. package/src/components/autocomplete/autocomplete-positioner.gen.ts +2 -2
  40. package/src/components/autocomplete/autocomplete-root.gen.ts +2 -4
  41. package/src/components/autocomplete/index.gen.ts +3 -5
  42. package/src/components/block-handle/block-handle-add.gen.ts +2 -2
  43. package/src/components/block-handle/block-handle-draggable.gen.ts +2 -2
  44. package/src/components/block-handle/block-handle-popup.gen.ts +2 -2
  45. package/src/components/block-handle/block-handle-positioner.gen.ts +2 -2
  46. package/src/components/block-handle/block-handle-root.gen.ts +2 -4
  47. package/src/components/block-handle/index.gen.ts +1 -3
  48. package/src/components/drop-indicator/drop-indicator.gen.ts +2 -2
  49. package/src/components/inline-popover/index.gen.ts +1 -3
  50. package/src/components/inline-popover/inline-popover-popup.gen.ts +2 -2
  51. package/src/components/inline-popover/inline-popover-positioner.gen.ts +9 -9
  52. package/src/components/inline-popover/inline-popover-root.gen.ts +3 -5
  53. package/src/components/menu/index.gen.ts +3 -5
  54. package/src/components/menu/menu-item.gen.ts +2 -4
  55. package/src/components/menu/menu-popup.gen.ts +2 -2
  56. package/src/components/menu/menu-positioner.gen.ts +2 -2
  57. package/src/components/menu/menu-root.gen.ts +2 -4
  58. package/src/components/menu/menu-submenu-root.gen.ts +2 -2
  59. package/src/components/menu/menu-submenu-trigger.gen.ts +2 -2
  60. package/src/components/menu/menu-trigger.gen.ts +2 -4
  61. package/src/components/popover/index.gen.ts +2 -4
  62. package/src/components/popover/popover-popup.gen.ts +2 -2
  63. package/src/components/popover/popover-positioner.gen.ts +2 -2
  64. package/src/components/popover/popover-root.gen.ts +2 -4
  65. package/src/components/popover/popover-trigger.gen.ts +2 -4
  66. package/src/components/resizable/index.gen.ts +1 -3
  67. package/src/components/resizable/resizable-handle.gen.ts +2 -2
  68. package/src/components/resizable/resizable-root.gen.ts +2 -4
  69. package/src/components/table-handle/table-handle-column-menu-root.gen.ts +2 -2
  70. package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +2 -2
  71. package/src/components/table-handle/table-handle-column-popup.gen.ts +2 -2
  72. package/src/components/table-handle/table-handle-column-positioner.gen.ts +2 -2
  73. package/src/components/table-handle/table-handle-drag-preview.gen.ts +2 -2
  74. package/src/components/table-handle/table-handle-drop-indicator.gen.ts +2 -2
  75. package/src/components/table-handle/table-handle-root.gen.ts +2 -2
  76. package/src/components/table-handle/table-handle-row-menu-root.gen.ts +2 -2
  77. package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +2 -2
  78. package/src/components/table-handle/table-handle-row-popup.gen.ts +2 -2
  79. package/src/components/table-handle/table-handle-row-positioner.gen.ts +2 -2
  80. package/src/components/tooltip/index.gen.ts +1 -3
  81. package/src/components/tooltip/tooltip-popup.gen.ts +2 -2
  82. package/src/components/tooltip/tooltip-positioner.gen.ts +2 -2
  83. package/src/components/tooltip/tooltip-root.gen.ts +2 -4
  84. package/src/components/tooltip/tooltip-trigger.gen.ts +2 -2
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface PopoverRootProps extends HTMLAttributes<PopoverRootElement> {
15
+ export interface PopoverRootProps {
16
16
  /**
17
17
  * Whether the popover should be modal.
18
18
  * When true, the popover will trap focus and prevent interaction with the rest of the page.
@@ -90,6 +90,4 @@ function PopoverRootComponent(props: PopoverRootProps, forwardedRef: Ref<Popover
90
90
  *
91
91
  * @public
92
92
  */
93
- export const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & RefAttributes<PopoverRootElement>> = /* @__PURE__ */ forwardRef(PopoverRootComponent);
94
-
95
- export type { PopoverRootEvents };
93
+ export const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & HTMLAttributes<PopoverRootElement> & RefAttributes<PopoverRootElement>> = /* @__PURE__ */ forwardRef(PopoverRootComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface PopoverTriggerProps extends HTMLAttributes<PopoverTriggerElement> {
15
+ export interface PopoverTriggerProps {
16
16
  /**
17
17
  * Whether the component should ignore user interaction.
18
18
  * @default false
@@ -90,6 +90,4 @@ function PopoverTriggerComponent(props: PopoverTriggerProps, forwardedRef: Ref<P
90
90
  *
91
91
  * @public
92
92
  */
93
- export const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<PopoverTriggerElement>> = /* @__PURE__ */ forwardRef(PopoverTriggerComponent);
94
-
95
- export type { PopoverTriggerEvents };
93
+ 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';
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface ResizableHandleProps extends HTMLAttributes<ResizableHandleElement> {
15
+ export interface ResizableHandleProps {
16
16
  /**
17
17
  * The position of the handle.
18
18
  *
@@ -54,4 +54,4 @@ function ResizableHandleComponent(props: ResizableHandleProps, forwardedRef: Ref
54
54
  *
55
55
  * @public
56
56
  */
57
- export const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
57
+ export const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface ResizableRootProps extends HTMLAttributes<ResizableRootElement> {
15
+ export interface ResizableRootProps {
16
16
  /**
17
17
  * The width of the resizable element.
18
18
  *
@@ -88,6 +88,4 @@ function ResizableRootComponent(props: ResizableRootProps, forwardedRef: Ref<Res
88
88
  *
89
89
  * @public
90
90
  */
91
- export const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);
92
-
93
- export type { ResizableRootEvents };
91
+ export const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleColumnMenuRootProps extends HTMLAttributes<TableHandleColumnMenuRootElement> {
15
+ export interface TableHandleColumnMenuRootProps {
16
16
  /**
17
17
  * Whether the overlay is initially open.
18
18
  * @default false
@@ -63,4 +63,4 @@ function TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProp
63
63
  *
64
64
  * @public
65
65
  */
66
- export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
66
+ export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface TableHandleColumnMenuTriggerProps extends HTMLAttributes<TableHandleColumnMenuTriggerElement> {
17
+ export interface TableHandleColumnMenuTriggerProps {
18
18
  /**
19
19
  * @default null
20
20
  * @hidden
@@ -57,4 +57,4 @@ function TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTrigg
57
57
  *
58
58
  * @public
59
59
  */
60
- export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
60
+ export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleColumnPopupProps extends HTMLAttributes<TableHandleColumnPopupElement> {}
15
+ export interface TableHandleColumnPopupProps {}
16
16
 
17
17
  function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: Ref<TableHandleColumnPopupElement>) {
18
18
  registerTableHandleColumnPopupElement();
@@ -41,4 +41,4 @@ function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, for
41
41
  *
42
42
  * @public
43
43
  */
44
- export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
44
+ export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface TableHandleColumnPositionerProps extends HTMLAttributes<TableHandleColumnPositionerElement> {
17
+ export interface TableHandleColumnPositionerProps {
18
18
  /**
19
19
  * The placement of the popover, relative to the hovered table cell.
20
20
  *
@@ -198,4 +198,4 @@ function TableHandleColumnPositionerComponent(props: TableHandleColumnPositioner
198
198
  *
199
199
  * @public
200
200
  */
201
- export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
201
+ export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface TableHandleDragPreviewProps extends HTMLAttributes<TableHandleDragPreviewElement> {
17
+ export interface TableHandleDragPreviewProps {
18
18
  /**
19
19
  * @default null
20
20
  * @hidden
@@ -57,4 +57,4 @@ function TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, for
57
57
  *
58
58
  * @public
59
59
  */
60
- export const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);
60
+ export const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface TableHandleDropIndicatorProps extends HTMLAttributes<TableHandleDropIndicatorElement> {
17
+ export interface TableHandleDropIndicatorProps {
18
18
  /**
19
19
  * @default null
20
20
  * @hidden
@@ -57,4 +57,4 @@ function TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps,
57
57
  *
58
58
  * @public
59
59
  */
60
- export const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);
60
+ export const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface TableHandleRootProps extends HTMLAttributes<TableHandleRootElement> {
17
+ export interface TableHandleRootProps {
18
18
  /**
19
19
  * The ProseKit editor instance.
20
20
  *
@@ -59,4 +59,4 @@ function TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: Ref
59
59
  *
60
60
  * @public
61
61
  */
62
- export const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);
62
+ export const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleRowMenuRootProps extends HTMLAttributes<TableHandleRowMenuRootElement> {
15
+ export interface TableHandleRowMenuRootProps {
16
16
  /**
17
17
  * Whether the overlay is initially open.
18
18
  * @default false
@@ -63,4 +63,4 @@ function TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, for
63
63
  *
64
64
  * @public
65
65
  */
66
- export const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);
66
+ export const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface TableHandleRowMenuTriggerProps extends HTMLAttributes<TableHandleRowMenuTriggerElement> {
17
+ export interface TableHandleRowMenuTriggerProps {
18
18
  /**
19
19
  * @default null
20
20
  * @hidden
@@ -57,4 +57,4 @@ function TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProp
57
57
  *
58
58
  * @public
59
59
  */
60
- export const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);
60
+ export const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleRowPopupProps extends HTMLAttributes<TableHandleRowPopupElement> {}
15
+ export interface TableHandleRowPopupProps {}
16
16
 
17
17
  function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: Ref<TableHandleRowPopupElement>) {
18
18
  registerTableHandleRowPopupElement();
@@ -41,4 +41,4 @@ function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwarded
41
41
  *
42
42
  * @public
43
43
  */
44
- export const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);
44
+ export const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface TableHandleRowPositionerProps extends HTMLAttributes<TableHandleRowPositionerElement> {
17
+ export interface TableHandleRowPositionerProps {
18
18
  /**
19
19
  * The placement of the popover, relative to the hovered table cell.
20
20
  *
@@ -198,4 +198,4 @@ function TableHandleRowPositionerComponent(props: TableHandleRowPositionerProps,
198
198
  *
199
199
  * @public
200
200
  */
201
- export const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);
201
+ export const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);
@@ -6,8 +6,6 @@ export { TooltipPopup, type TooltipPopupProps } from './tooltip-popup.gen.ts';
6
6
 
7
7
  export { TooltipPositioner, type TooltipPositionerProps } from './tooltip-positioner.gen.ts';
8
8
 
9
- export { TooltipRoot, type TooltipRootProps, type TooltipRootEvents } from './tooltip-root.gen.ts';
9
+ export { TooltipRoot, type TooltipRootProps } from './tooltip-root.gen.ts';
10
10
 
11
11
  export { TooltipTrigger, type TooltipTriggerProps } from './tooltip-trigger.gen.ts';
12
-
13
- export { OpenChangeEvent } from '@prosekit/web/tooltip';
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TooltipPopupProps extends HTMLAttributes<TooltipPopupElement> {}
15
+ export interface TooltipPopupProps {}
16
16
 
17
17
  function TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: Ref<TooltipPopupElement>) {
18
18
  registerTooltipPopupElement();
@@ -41,4 +41,4 @@ function TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: Ref<Toolt
41
41
  *
42
42
  * @public
43
43
  */
44
- export const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);
44
+ export const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & HTMLAttributes<TooltipPopupElement> & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TooltipPositionerProps extends HTMLAttributes<TooltipPositionerElement> {
15
+ export interface TooltipPositionerProps {
16
16
  /**
17
17
  * The strategy to use for positioning
18
18
  *
@@ -175,4 +175,4 @@ function TooltipPositionerComponent(props: TooltipPositionerProps, forwardedRef:
175
175
  *
176
176
  * @public
177
177
  */
178
- export const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);
178
+ export const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & HTMLAttributes<TooltipPositionerElement> & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TooltipRootProps extends HTMLAttributes<TooltipRootElement> {
15
+ export interface TooltipRootProps {
16
16
  /**
17
17
  * Whether the overlay is initially open.
18
18
  * @default false
@@ -83,6 +83,4 @@ function TooltipRootComponent(props: TooltipRootProps, forwardedRef: Ref<Tooltip
83
83
  *
84
84
  * @public
85
85
  */
86
- export const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);
87
-
88
- export type { TooltipRootEvents };
86
+ export const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & HTMLAttributes<TooltipRootElement> & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TooltipTriggerProps extends HTMLAttributes<TooltipTriggerElement> {
15
+ export interface TooltipTriggerProps {
16
16
  /**
17
17
  * Whether the component should ignore user interaction.
18
18
  * @default false
@@ -63,4 +63,4 @@ function TooltipTriggerComponent(props: TooltipTriggerProps, forwardedRef: Ref<T
63
63
  *
64
64
  * @public
65
65
  */
66
- export const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);
66
+ export const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & HTMLAttributes<TooltipTriggerElement> & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);