@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
@@ -1,7 +1,7 @@
1
1
  import { createElement } from "preact";
2
2
  import { useCallback, useLayoutEffect, useRef } from "preact/hooks";
3
3
  import { forwardRef } from "preact/compat";
4
- import { OpenChangeEvent, registerTooltipPopupElement, registerTooltipPositionerElement, registerTooltipRootElement, registerTooltipTriggerElement } from "@prosekit/web/tooltip";
4
+ import { registerTooltipPopupElement, registerTooltipPositionerElement, registerTooltipRootElement, registerTooltipTriggerElement } from "@prosekit/web/tooltip";
5
5
  //#region src/components/tooltip/tooltip-popup.gen.ts
6
6
  /**
7
7
  * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
@@ -159,6 +159,6 @@ function TooltipTriggerComponent(props, forwardedRef) {
159
159
  */
160
160
  const TooltipTrigger = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);
161
161
  //#endregion
162
- export { OpenChangeEvent, TooltipPopup, TooltipPositioner, TooltipRoot, TooltipTrigger };
162
+ export { TooltipPopup, TooltipPositioner, TooltipRoot, TooltipTrigger };
163
163
 
164
164
  //# sourceMappingURL=prosekit-preact-tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-preact-tooltip.js","names":[],"sources":["../src/components/tooltip/tooltip-popup.gen.ts","../src/components/tooltip/tooltip-positioner.gen.ts","../src/components/tooltip/tooltip-root.gen.ts","../src/components/tooltip/tooltip-trigger.gen.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipPopupElement, type TooltipPopupElement } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipPopup} Preact component.\n *\n * @public\n */\nexport interface TooltipPopupProps extends HTMLAttributes<TooltipPopupElement> {}\n\nfunction TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: Ref<TooltipPopupElement>) {\n registerTooltipPopupElement();\n\n const elementRef = useRef<TooltipPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TooltipPopupElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-popup` custom element.\n *\n * @public\n */\nexport const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipPositionerElement, type TooltipPositionerElement, type TooltipPositionerProps as TooltipPositionerElementProps } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipPositioner} Preact component.\n *\n * @public\n */\nexport interface TooltipPositionerProps extends HTMLAttributes<TooltipPositionerElement> {\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TooltipPositionerElementProps['strategy'];\n /**\n * The initial placement of the floating element\n *\n * @default \"top\"\n */\n placement?: TooltipPositionerElementProps['placement'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TooltipPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser Popover API to place the floating element on\n * top of other page content.\n *\n * @default true\n */\n hoist?: TooltipPositionerElementProps['hoist'];\n /**\n * The distance between the reference and floating element.\n *\n * @default 6\n */\n offset?: TooltipPositionerElementProps['offset'];\n /**\n * Whether to flip the `placement` in order to keep it in view when the\n * preferred placement(s) will overflow the clipping boundary. You can also\n * provide an array of placements to try sequentially if the preferred\n * `placement` does not fit.\n *\n * @default true\n */\n flip?: TooltipPositionerElementProps['flip'];\n /**\n * Whether the floating element should shift to keep it in view.\n *\n * @default true\n */\n shift?: TooltipPositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: TooltipPositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width and height to not exceed\n * the viewport.\n *\n * @default false\n */\n fitViewport?: TooltipPositionerElementProps['fitViewport'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: TooltipPositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: TooltipPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TooltipPositionerElementProps['inline'];\n /**\n * Whether to hide the floating element when the reference element or the\n * floating element is fully clipped.\n *\n * @default false\n */\n hide?: TooltipPositionerElementProps['hide'];\n /**\n * Describes the clipping element(s) or area that overflow will be checked relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.\n *\n * @default 'clippingAncestors'\n */\n boundary?: TooltipPositionerElementProps['boundary'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: TooltipPositionerElementProps['rootBoundary'];\n /**\n * Describes the virtual padding around the boundary to check for overflow.\n * Please see https://floating-ui.com/docs/detectoverflow#padding for more information.\n *\n * @default 4\n */\n overflowPadding?: TooltipPositionerElementProps['overflowPadding'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: TooltipPositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: TooltipPositionerElementProps['altBoundary'];\n}\n\nfunction TooltipPositionerComponent(props: TooltipPositionerProps, forwardedRef: Ref<TooltipPositionerElement>) {\n registerTooltipPositionerElement();\n\n const elementRef = useRef<TooltipPositionerElement>(null);\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17 });\n });\n\n const mergedRef = useCallback(\n (element: TooltipPositionerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-positioner` custom element.\n *\n * @public\n */\nexport const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipRootElement, type TooltipRootElement, type TooltipRootProps as TooltipRootElementProps, type TooltipRootEvents } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipRoot} Preact component.\n *\n * @public\n */\nexport interface TooltipRootProps extends HTMLAttributes<TooltipRootElement> {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TooltipRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TooltipRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TooltipRootElementProps['disabled'];\n /** Emitted when the tooltip is opened or closed. */\n onOpenChange?: (event: TooltipRootEvents['openChange']) => void;\n}\n\nfunction TooltipRootComponent(props: TooltipRootProps, forwardedRef: Ref<TooltipRootElement>) {\n registerTooltipRootElement();\n\n const elementRef = useRef<TooltipRootElement>(null);\n const handlersRef = useRef<Array<((event: Event) => void) | undefined>>([]);\n\n const { defaultOpen: p0, disabled: p1, open: p2, onOpenChange: e0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { defaultOpen: p0, disabled: p1, open: p2 });\n handlersRef.current = [e0] as Array<((event: Event) => void) | undefined>;\n });\n\n useLayoutEffect(() => {\n const element = elementRef.current;\n if (!element) return;\n const ac = new AbortController();\n for (const [index, eventName] of ['openChange'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlersRef.current[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n }, []);\n\n const mergedRef = useCallback(\n (element: TooltipRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-root` custom element.\n *\n * @public\n */\nexport const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);\n\nexport type { TooltipRootEvents };\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipTriggerElement, type TooltipTriggerElement, type TooltipTriggerProps as TooltipTriggerElementProps } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipTrigger} Preact component.\n *\n * @public\n */\nexport interface TooltipTriggerProps extends HTMLAttributes<TooltipTriggerElement> {\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TooltipTriggerElementProps['disabled'];\n /**\n * The delay in milliseconds before opening the tooltip on hover.\n * @default 600\n */\n openDelay?: TooltipTriggerElementProps['openDelay'];\n /**\n * The delay in milliseconds before closing the tooltip when hover/focus ends.\n * @default 0\n */\n closeDelay?: TooltipTriggerElementProps['closeDelay'];\n}\n\nfunction TooltipTriggerComponent(props: TooltipTriggerProps, forwardedRef: Ref<TooltipTriggerElement>) {\n registerTooltipTriggerElement();\n\n const elementRef = useRef<TooltipTriggerElement>(null);\n\n const { closeDelay: p0, disabled: p1, openDelay: p2, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { closeDelay: p0, disabled: p1, openDelay: p2 });\n });\n\n const mergedRef = useCallback(\n (element: TooltipTriggerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-trigger` custom element.\n *\n * @public\n */\nexport const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);\n"],"mappings":";;;;;;;;AAgBA,SAAS,sBAAsB,OAA0B,cAAwC;AAC/F,8BAA6B;CAE7B,MAAM,aAAa,OAA4B,KAAK;CAEpD,MAAM,EAAE,GAAG,cAAc;CAEzB,MAAM,YAAY,aACf,YAAwC;AACvC,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU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;AAED,QAAO,cAAc,4BAA4B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQpH,MAAa,iBAAwH,2BAAW,wBAAwB"}
1
+ {"version":3,"file":"prosekit-preact-tooltip.js","names":[],"sources":["../src/components/tooltip/tooltip-popup.gen.ts","../src/components/tooltip/tooltip-positioner.gen.ts","../src/components/tooltip/tooltip-root.gen.ts","../src/components/tooltip/tooltip-trigger.gen.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipPopupElement, type TooltipPopupElement } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipPopup} Preact component.\n *\n * @public\n */\nexport interface TooltipPopupProps {}\n\nfunction TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: Ref<TooltipPopupElement>) {\n registerTooltipPopupElement();\n\n const elementRef = useRef<TooltipPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TooltipPopupElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-popup` custom element.\n *\n * @public\n */\nexport const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & HTMLAttributes<TooltipPopupElement> & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipPositionerElement, type TooltipPositionerElement, type TooltipPositionerProps as TooltipPositionerElementProps } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipPositioner} Preact component.\n *\n * @public\n */\nexport interface TooltipPositionerProps {\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TooltipPositionerElementProps['strategy'];\n /**\n * The initial placement of the floating element\n *\n * @default \"top\"\n */\n placement?: TooltipPositionerElementProps['placement'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TooltipPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser Popover API to place the floating element on\n * top of other page content.\n *\n * @default true\n */\n hoist?: TooltipPositionerElementProps['hoist'];\n /**\n * The distance between the reference and floating element.\n *\n * @default 6\n */\n offset?: TooltipPositionerElementProps['offset'];\n /**\n * Whether to flip the `placement` in order to keep it in view when the\n * preferred placement(s) will overflow the clipping boundary. You can also\n * provide an array of placements to try sequentially if the preferred\n * `placement` does not fit.\n *\n * @default true\n */\n flip?: TooltipPositionerElementProps['flip'];\n /**\n * Whether the floating element should shift to keep it in view.\n *\n * @default true\n */\n shift?: TooltipPositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: TooltipPositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width and height to not exceed\n * the viewport.\n *\n * @default false\n */\n fitViewport?: TooltipPositionerElementProps['fitViewport'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: TooltipPositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: TooltipPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TooltipPositionerElementProps['inline'];\n /**\n * Whether to hide the floating element when the reference element or the\n * floating element is fully clipped.\n *\n * @default false\n */\n hide?: TooltipPositionerElementProps['hide'];\n /**\n * Describes the clipping element(s) or area that overflow will be checked relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.\n *\n * @default 'clippingAncestors'\n */\n boundary?: TooltipPositionerElementProps['boundary'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: TooltipPositionerElementProps['rootBoundary'];\n /**\n * Describes the virtual padding around the boundary to check for overflow.\n * Please see https://floating-ui.com/docs/detectoverflow#padding for more information.\n *\n * @default 4\n */\n overflowPadding?: TooltipPositionerElementProps['overflowPadding'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: TooltipPositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: TooltipPositionerElementProps['altBoundary'];\n}\n\nfunction TooltipPositionerComponent(props: TooltipPositionerProps, forwardedRef: Ref<TooltipPositionerElement>) {\n registerTooltipPositionerElement();\n\n const elementRef = useRef<TooltipPositionerElement>(null);\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17 });\n });\n\n const mergedRef = useCallback(\n (element: TooltipPositionerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-positioner` custom element.\n *\n * @public\n */\nexport const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & HTMLAttributes<TooltipPositionerElement> & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipRootElement, type TooltipRootElement, type TooltipRootProps as TooltipRootElementProps, type TooltipRootEvents } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipRoot} Preact component.\n *\n * @public\n */\nexport interface TooltipRootProps {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TooltipRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TooltipRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TooltipRootElementProps['disabled'];\n /** Emitted when the tooltip is opened or closed. */\n onOpenChange?: (event: TooltipRootEvents['openChange']) => void;\n}\n\nfunction TooltipRootComponent(props: TooltipRootProps, forwardedRef: Ref<TooltipRootElement>) {\n registerTooltipRootElement();\n\n const elementRef = useRef<TooltipRootElement>(null);\n const handlersRef = useRef<Array<((event: Event) => void) | undefined>>([]);\n\n const { defaultOpen: p0, disabled: p1, open: p2, onOpenChange: e0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { defaultOpen: p0, disabled: p1, open: p2 });\n handlersRef.current = [e0] as Array<((event: Event) => void) | undefined>;\n });\n\n useLayoutEffect(() => {\n const element = elementRef.current;\n if (!element) return;\n const ac = new AbortController();\n for (const [index, eventName] of ['openChange'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlersRef.current[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n }, []);\n\n const mergedRef = useCallback(\n (element: TooltipRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-root` custom element.\n *\n * @public\n */\nexport const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & HTMLAttributes<TooltipRootElement> & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTooltipTriggerElement, type TooltipTriggerElement, type TooltipTriggerProps as TooltipTriggerElementProps } from '@prosekit/web/tooltip';\nimport { createElement, type HTMLAttributes, type Ref } from 'preact';\nimport { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from 'preact/compat';\nimport { useCallback, useRef, useLayoutEffect } from 'preact/hooks';\n\n/**\n * Props for the {@link TooltipTrigger} Preact component.\n *\n * @public\n */\nexport interface TooltipTriggerProps {\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TooltipTriggerElementProps['disabled'];\n /**\n * The delay in milliseconds before opening the tooltip on hover.\n * @default 600\n */\n openDelay?: TooltipTriggerElementProps['openDelay'];\n /**\n * The delay in milliseconds before closing the tooltip when hover/focus ends.\n * @default 0\n */\n closeDelay?: TooltipTriggerElementProps['closeDelay'];\n}\n\nfunction TooltipTriggerComponent(props: TooltipTriggerProps, forwardedRef: Ref<TooltipTriggerElement>) {\n registerTooltipTriggerElement();\n\n const elementRef = useRef<TooltipTriggerElement>(null);\n\n const { closeDelay: p0, disabled: p1, openDelay: p2, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { closeDelay: p0, disabled: p1, openDelay: p2 });\n });\n\n const mergedRef = useCallback(\n (element: TooltipTriggerElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-tooltip-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A Preact component that renders an `prosekit-tooltip-trigger` custom element.\n *\n * @public\n */\nexport const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & HTMLAttributes<TooltipTriggerElement> & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);\n"],"mappings":";;;;;;;;AAgBA,SAAS,sBAAsB,OAA0B,cAAwC;AAC/F,8BAA6B;CAE7B,MAAM,aAAa,OAA4B,KAAK;CAEpD,MAAM,EAAE,GAAG,cAAc;CAEzB,MAAM,YAAY,aACf,YAAwC;AACvC,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,0BAA0B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQlH,MAAa,eAAwJ,2BAAW,sBAAsB;;;;;;ACqGtM,SAAS,2BAA2B,OAA+B,cAA6C;AAC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3
  "type": "module",
4
- "version": "0.7.0-beta.1",
4
+ "version": "0.7.0-beta.3",
5
5
  "private": false,
6
6
  "description": "Preact components and utilities for ProseKit",
7
7
  "author": {
@@ -76,7 +76,7 @@
76
76
  "@prosemirror-adapter/preact": "^0.5.3",
77
77
  "@prosekit/core": "^0.12.0-beta.0",
78
78
  "@prosekit/pm": "^0.1.15",
79
- "@prosekit/web": "^0.8.0-beta.1"
79
+ "@prosekit/web": "^0.8.0-beta.3"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "preact": ">= 10.11.0"
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface AutocompleteEmptyProps extends HTMLAttributes<AutocompleteEmptyElement> {}
15
+ export interface AutocompleteEmptyProps {}
16
16
 
17
17
  function AutocompleteEmptyComponent(props: AutocompleteEmptyProps, forwardedRef: Ref<AutocompleteEmptyElement>) {
18
18
  registerAutocompleteEmptyElement();
@@ -41,4 +41,4 @@ function AutocompleteEmptyComponent(props: AutocompleteEmptyProps, forwardedRef:
41
41
  *
42
42
  * @public
43
43
  */
44
- export const AutocompleteEmpty: ForwardRefExoticComponent<AutocompleteEmptyProps & RefAttributes<AutocompleteEmptyElement>> = /* @__PURE__ */ forwardRef(AutocompleteEmptyComponent);
44
+ export const AutocompleteEmpty: ForwardRefExoticComponent<AutocompleteEmptyProps & HTMLAttributes<AutocompleteEmptyElement> & RefAttributes<AutocompleteEmptyElement>> = /* @__PURE__ */ forwardRef(AutocompleteEmptyComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface AutocompleteItemProps extends Omit<HTMLAttributes<AutocompleteItemElement>, 'onSelect'> {
15
+ export interface AutocompleteItemProps {
16
16
  /**
17
17
  * The value of the item, which will be matched against the query.
18
18
  *
@@ -82,6 +82,4 @@ function AutocompleteItemComponent(props: AutocompleteItemProps, forwardedRef: R
82
82
  *
83
83
  * @public
84
84
  */
85
- export const AutocompleteItem: ForwardRefExoticComponent<AutocompleteItemProps & RefAttributes<AutocompleteItemElement>> = /* @__PURE__ */ forwardRef(AutocompleteItemComponent);
86
-
87
- export type { AutocompleteItemEvents };
85
+ export const AutocompleteItem: ForwardRefExoticComponent<AutocompleteItemProps & Omit<HTMLAttributes<AutocompleteItemElement>, 'onSelect'> & RefAttributes<AutocompleteItemElement>> = /* @__PURE__ */ forwardRef(AutocompleteItemComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface AutocompletePopupProps extends HTMLAttributes<AutocompletePopupElement> {
15
+ export interface AutocompletePopupProps {
16
16
  /**
17
17
  * Emitted when the selected value changes. Only available when multiple is
18
18
  * false.
@@ -75,6 +75,4 @@ function AutocompletePopupComponent(props: AutocompletePopupProps, forwardedRef:
75
75
  *
76
76
  * @public
77
77
  */
78
- export const AutocompletePopup: ForwardRefExoticComponent<AutocompletePopupProps & RefAttributes<AutocompletePopupElement>> = /* @__PURE__ */ forwardRef(AutocompletePopupComponent);
79
-
80
- export type { AutocompletePopupEvents };
78
+ export const AutocompletePopup: ForwardRefExoticComponent<AutocompletePopupProps & HTMLAttributes<AutocompletePopupElement> & RefAttributes<AutocompletePopupElement>> = /* @__PURE__ */ forwardRef(AutocompletePopupComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface AutocompletePositionerProps extends HTMLAttributes<AutocompletePositionerElement> {
15
+ export interface AutocompletePositionerProps {
16
16
  /**
17
17
  * The placement of the popover, relative to the text cursor.
18
18
  *
@@ -150,4 +150,4 @@ function AutocompletePositionerComponent(props: AutocompletePositionerProps, for
150
150
  *
151
151
  * @public
152
152
  */
153
- export const AutocompletePositioner: ForwardRefExoticComponent<AutocompletePositionerProps & RefAttributes<AutocompletePositionerElement>> = /* @__PURE__ */ forwardRef(AutocompletePositionerComponent);
153
+ export const AutocompletePositioner: ForwardRefExoticComponent<AutocompletePositionerProps & HTMLAttributes<AutocompletePositionerElement> & RefAttributes<AutocompletePositionerElement>> = /* @__PURE__ */ forwardRef(AutocompletePositionerComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface AutocompleteRootProps extends HTMLAttributes<AutocompleteRootElement> {
17
+ export interface AutocompleteRootProps {
18
18
  /**
19
19
  * The ProseKit editor instance.
20
20
  *
@@ -104,6 +104,4 @@ function AutocompleteRootComponent(props: AutocompleteRootProps, forwardedRef: R
104
104
  *
105
105
  * @public
106
106
  */
107
- export const AutocompleteRoot: ForwardRefExoticComponent<AutocompleteRootProps & RefAttributes<AutocompleteRootElement>> = /* @__PURE__ */ forwardRef(AutocompleteRootComponent);
108
-
109
- export type { AutocompleteRootEvents };
107
+ 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';
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface BlockHandleAddProps extends HTMLAttributes<BlockHandleAddElement> {
17
+ export interface BlockHandleAddProps {
18
18
  /**
19
19
  * The ProseKit editor instance.
20
20
  *
@@ -59,4 +59,4 @@ function BlockHandleAddComponent(props: BlockHandleAddProps, forwardedRef: Ref<B
59
59
  *
60
60
  * @public
61
61
  */
62
- export const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & RefAttributes<BlockHandleAddElement>> = /* @__PURE__ */ forwardRef(BlockHandleAddComponent);
62
+ export const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & HTMLAttributes<BlockHandleAddElement> & RefAttributes<BlockHandleAddElement>> = /* @__PURE__ */ forwardRef(BlockHandleAddComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface BlockHandleDraggableProps extends HTMLAttributes<BlockHandleDraggableElement> {
17
+ export interface BlockHandleDraggableProps {
18
18
  /**
19
19
  * The ProseKit editor instance.
20
20
  *
@@ -59,4 +59,4 @@ function BlockHandleDraggableComponent(props: BlockHandleDraggableProps, forward
59
59
  *
60
60
  * @public
61
61
  */
62
- export const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & RefAttributes<BlockHandleDraggableElement>> = /* @__PURE__ */ forwardRef(BlockHandleDraggableComponent);
62
+ export const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & HTMLAttributes<BlockHandleDraggableElement> & RefAttributes<BlockHandleDraggableElement>> = /* @__PURE__ */ forwardRef(BlockHandleDraggableComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface BlockHandlePopupProps extends HTMLAttributes<BlockHandlePopupElement> {}
15
+ export interface BlockHandlePopupProps {}
16
16
 
17
17
  function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: Ref<BlockHandlePopupElement>) {
18
18
  registerBlockHandlePopupElement();
@@ -41,4 +41,4 @@ function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: R
41
41
  *
42
42
  * @public
43
43
  */
44
- export const BlockHandlePopup: ForwardRefExoticComponent<BlockHandlePopupProps & RefAttributes<BlockHandlePopupElement>> = /* @__PURE__ */ forwardRef(BlockHandlePopupComponent);
44
+ export const BlockHandlePopup: ForwardRefExoticComponent<BlockHandlePopupProps & HTMLAttributes<BlockHandlePopupElement> & RefAttributes<BlockHandlePopupElement>> = /* @__PURE__ */ forwardRef(BlockHandlePopupComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface BlockHandlePositionerProps extends HTMLAttributes<BlockHandlePositionerElement> {
15
+ export interface BlockHandlePositionerProps {
16
16
  /**
17
17
  * The placement of the popover, relative to the hovered block.
18
18
  *
@@ -168,4 +168,4 @@ function BlockHandlePositionerComponent(props: BlockHandlePositionerProps, forwa
168
168
  *
169
169
  * @public
170
170
  */
171
- export const BlockHandlePositioner: ForwardRefExoticComponent<BlockHandlePositionerProps & RefAttributes<BlockHandlePositionerElement>> = /* @__PURE__ */ forwardRef(BlockHandlePositionerComponent);
171
+ export const BlockHandlePositioner: ForwardRefExoticComponent<BlockHandlePositionerProps & HTMLAttributes<BlockHandlePositionerElement> & RefAttributes<BlockHandlePositionerElement>> = /* @__PURE__ */ forwardRef(BlockHandlePositionerComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface BlockHandleRootProps extends HTMLAttributes<BlockHandleRootElement> {
17
+ export interface BlockHandleRootProps {
18
18
  /**
19
19
  * The ProseKit editor instance.
20
20
  *
@@ -79,6 +79,4 @@ function BlockHandleRootComponent(props: BlockHandleRootProps, forwardedRef: Ref
79
79
  *
80
80
  * @public
81
81
  */
82
- export const BlockHandleRoot: ForwardRefExoticComponent<BlockHandleRootProps & RefAttributes<BlockHandleRootElement>> = /* @__PURE__ */ forwardRef(BlockHandleRootComponent);
83
-
84
- export type { BlockHandleRootEvents };
82
+ 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';
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface DropIndicatorProps extends HTMLAttributes<DropIndicatorElement> {
17
+ export interface DropIndicatorProps {
18
18
  /**
19
19
  * The ProseKit editor instance.
20
20
  *
@@ -65,4 +65,4 @@ function DropIndicatorComponent(props: DropIndicatorProps, forwardedRef: Ref<Dro
65
65
  *
66
66
  * @public
67
67
  */
68
- export const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & RefAttributes<DropIndicatorElement>> = /* @__PURE__ */ forwardRef(DropIndicatorComponent);
68
+ export const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & HTMLAttributes<DropIndicatorElement> & RefAttributes<DropIndicatorElement>> = /* @__PURE__ */ forwardRef(DropIndicatorComponent);
@@ -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';
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface InlinePopoverPopupProps extends HTMLAttributes<InlinePopoverPopupElement> {}
15
+ export interface InlinePopoverPopupProps {}
16
16
 
17
17
  function InlinePopoverPopupComponent(props: InlinePopoverPopupProps, forwardedRef: Ref<InlinePopoverPopupElement>) {
18
18
  registerInlinePopoverPopupElement();
@@ -41,4 +41,4 @@ function InlinePopoverPopupComponent(props: InlinePopoverPopupProps, forwardedRe
41
41
  *
42
42
  * @public
43
43
  */
44
- export const InlinePopoverPopup: ForwardRefExoticComponent<InlinePopoverPopupProps & RefAttributes<InlinePopoverPopupElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPopupComponent);
44
+ export const InlinePopoverPopup: ForwardRefExoticComponent<InlinePopoverPopupProps & HTMLAttributes<InlinePopoverPopupElement> & RefAttributes<InlinePopoverPopupElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPopupComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface InlinePopoverPositionerProps extends HTMLAttributes<InlinePopoverPositionerElement> {
15
+ export interface InlinePopoverPositionerProps {
16
16
  /**
17
17
  * The initial placement of the floating element
18
18
  *
@@ -32,6 +32,13 @@ export interface InlinePopoverPositionerProps extends HTMLAttributes<InlinePopov
32
32
  * @default true
33
33
  */
34
34
  hide?: InlinePopoverPositionerElementProps['hide'];
35
+ /**
36
+ * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
37
+ * to place the floating element on top of other page content.
38
+ *
39
+ * @default false
40
+ */
41
+ hoist?: InlinePopoverPositionerElementProps['hoist'];
35
42
  /**
36
43
  * Whether the floating element can overlap the reference element to keep it
37
44
  * in view.
@@ -66,13 +73,6 @@ export interface InlinePopoverPositionerProps extends HTMLAttributes<InlinePopov
66
73
  * @default true
67
74
  */
68
75
  autoUpdate?: InlinePopoverPositionerElementProps['autoUpdate'];
69
- /**
70
- * Whether to use the browser Popover API to place the floating element on
71
- * top of other page content.
72
- *
73
- * @default true
74
- */
75
- hoist?: InlinePopoverPositionerElementProps['hoist'];
76
76
  /**
77
77
  * Whether to flip the `placement` in order to keep it in view when the
78
78
  * preferred placement(s) will overflow the clipping boundary. You can also
@@ -174,4 +174,4 @@ function InlinePopoverPositionerComponent(props: InlinePopoverPositionerProps, f
174
174
  *
175
175
  * @public
176
176
  */
177
- export const InlinePopoverPositioner: ForwardRefExoticComponent<InlinePopoverPositionerProps & RefAttributes<InlinePopoverPositionerElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPositionerComponent);
177
+ export const InlinePopoverPositioner: ForwardRefExoticComponent<InlinePopoverPositionerProps & HTMLAttributes<InlinePopoverPositionerElement> & RefAttributes<InlinePopoverPositionerElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPositionerComponent);
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
14
14
  *
15
15
  * @public
16
16
  */
17
- export interface InlinePopoverRootProps extends HTMLAttributes<InlinePopoverRootElement> {
17
+ export interface InlinePopoverRootProps {
18
18
  /**
19
19
  * The ProseKit editor instance.
20
20
  *
@@ -46,7 +46,7 @@ export interface InlinePopoverRootProps extends HTMLAttributes<InlinePopoverRoot
46
46
  * @default false
47
47
  */
48
48
  disabled?: InlinePopoverRootElementProps['disabled'];
49
- /** */
49
+ /** Emitted when the open state of the popover changes. */
50
50
  onOpenChange?: (event: InlinePopoverRootEvents['openChange']) => void;
51
51
  }
52
52
 
@@ -103,6 +103,4 @@ function InlinePopoverRootComponent(props: InlinePopoverRootProps, forwardedRef:
103
103
  *
104
104
  * @public
105
105
  */
106
- export const InlinePopoverRoot: ForwardRefExoticComponent<InlinePopoverRootProps & RefAttributes<InlinePopoverRootElement>> = /* @__PURE__ */ forwardRef(InlinePopoverRootComponent);
107
-
108
- export type { InlinePopoverRootEvents };
106
+ 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';
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface MenuItemProps extends Omit<HTMLAttributes<MenuItemElement>, 'onSelect'> {
15
+ export interface MenuItemProps {
16
16
  /**
17
17
  * The unique value for this menu item.
18
18
  *
@@ -86,6 +86,4 @@ function MenuItemComponent(props: MenuItemProps, forwardedRef: Ref<MenuItemEleme
86
86
  *
87
87
  * @public
88
88
  */
89
- export const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<MenuItemElement>> = /* @__PURE__ */ forwardRef(MenuItemComponent);
90
-
91
- export type { MenuItemEvents };
89
+ export const MenuItem: ForwardRefExoticComponent<MenuItemProps & Omit<HTMLAttributes<MenuItemElement>, 'onSelect'> & RefAttributes<MenuItemElement>> = /* @__PURE__ */ forwardRef(MenuItemComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface MenuPopupProps extends HTMLAttributes<MenuPopupElement> {
15
+ export interface MenuPopupProps {
16
16
  /**
17
17
  * By default, the MenuPopup element will listen for keydown events.
18
18
  * You can pass a different element to listen for keydown events.
@@ -55,4 +55,4 @@ function MenuPopupComponent(props: MenuPopupProps, forwardedRef: Ref<MenuPopupEl
55
55
  *
56
56
  * @public
57
57
  */
58
- export const MenuPopup: ForwardRefExoticComponent<MenuPopupProps & RefAttributes<MenuPopupElement>> = /* @__PURE__ */ forwardRef(MenuPopupComponent);
58
+ export const MenuPopup: ForwardRefExoticComponent<MenuPopupProps & HTMLAttributes<MenuPopupElement> & RefAttributes<MenuPopupElement>> = /* @__PURE__ */ forwardRef(MenuPopupComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface MenuPositionerProps extends HTMLAttributes<MenuPositionerElement> {
15
+ export interface MenuPositionerProps {
16
16
  /**
17
17
  * The initial placement of the floating element
18
18
  *
@@ -175,4 +175,4 @@ function MenuPositionerComponent(props: MenuPositionerProps, forwardedRef: Ref<M
175
175
  *
176
176
  * @public
177
177
  */
178
- export const MenuPositioner: ForwardRefExoticComponent<MenuPositionerProps & RefAttributes<MenuPositionerElement>> = /* @__PURE__ */ forwardRef(MenuPositionerComponent);
178
+ export const MenuPositioner: ForwardRefExoticComponent<MenuPositionerProps & HTMLAttributes<MenuPositionerElement> & RefAttributes<MenuPositionerElement>> = /* @__PURE__ */ forwardRef(MenuPositionerComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface MenuRootProps extends HTMLAttributes<MenuRootElement> {
15
+ export interface MenuRootProps {
16
16
  /**
17
17
  * Whether the overlay is initially open.
18
18
  * @default false
@@ -83,6 +83,4 @@ function MenuRootComponent(props: MenuRootProps, forwardedRef: Ref<MenuRootEleme
83
83
  *
84
84
  * @public
85
85
  */
86
- export const MenuRoot: ForwardRefExoticComponent<MenuRootProps & RefAttributes<MenuRootElement>> = /* @__PURE__ */ forwardRef(MenuRootComponent);
87
-
88
- export type { MenuRootEvents };
86
+ export const MenuRoot: ForwardRefExoticComponent<MenuRootProps & HTMLAttributes<MenuRootElement> & RefAttributes<MenuRootElement>> = /* @__PURE__ */ forwardRef(MenuRootComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface MenuSubmenuRootProps extends HTMLAttributes<MenuSubmenuRootElement> {}
15
+ export interface MenuSubmenuRootProps {}
16
16
 
17
17
  function MenuSubmenuRootComponent(props: MenuSubmenuRootProps, forwardedRef: Ref<MenuSubmenuRootElement>) {
18
18
  registerMenuSubmenuRootElement();
@@ -41,4 +41,4 @@ function MenuSubmenuRootComponent(props: MenuSubmenuRootProps, forwardedRef: Ref
41
41
  *
42
42
  * @public
43
43
  */
44
- export const MenuSubmenuRoot: ForwardRefExoticComponent<MenuSubmenuRootProps & RefAttributes<MenuSubmenuRootElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuRootComponent);
44
+ export const MenuSubmenuRoot: ForwardRefExoticComponent<MenuSubmenuRootProps & HTMLAttributes<MenuSubmenuRootElement> & RefAttributes<MenuSubmenuRootElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuRootComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface MenuSubmenuTriggerProps extends HTMLAttributes<MenuSubmenuTriggerElement> {}
15
+ export interface MenuSubmenuTriggerProps {}
16
16
 
17
17
  function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRef: Ref<MenuSubmenuTriggerElement>) {
18
18
  registerMenuSubmenuTriggerElement();
@@ -41,4 +41,4 @@ function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRe
41
41
  *
42
42
  * @public
43
43
  */
44
- export const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & RefAttributes<MenuSubmenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuTriggerComponent);
44
+ export const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & HTMLAttributes<MenuSubmenuTriggerElement> & RefAttributes<MenuSubmenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuTriggerComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface MenuTriggerProps extends HTMLAttributes<MenuTriggerElement> {
15
+ export interface MenuTriggerProps {
16
16
  /**
17
17
  * Whether the component should ignore user interaction.
18
18
  *
@@ -74,6 +74,4 @@ function MenuTriggerComponent(props: MenuTriggerProps, forwardedRef: Ref<MenuTri
74
74
  *
75
75
  * @public
76
76
  */
77
- export const MenuTrigger: ForwardRefExoticComponent<MenuTriggerProps & RefAttributes<MenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuTriggerComponent);
78
-
79
- export type { MenuTriggerEvents };
77
+ 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';
@@ -12,7 +12,7 @@ import { useCallback, useRef } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface PopoverPopupProps extends HTMLAttributes<PopoverPopupElement> {}
15
+ export interface PopoverPopupProps {}
16
16
 
17
17
  function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: Ref<PopoverPopupElement>) {
18
18
  registerPopoverPopupElement();
@@ -41,4 +41,4 @@ function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: Ref<Popov
41
41
  *
42
42
  * @public
43
43
  */
44
- export const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & RefAttributes<PopoverPopupElement>> = /* @__PURE__ */ forwardRef(PopoverPopupComponent);
44
+ export const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & HTMLAttributes<PopoverPopupElement> & RefAttributes<PopoverPopupElement>> = /* @__PURE__ */ forwardRef(PopoverPopupComponent);
@@ -12,7 +12,7 @@ import { useCallback, useRef, useLayoutEffect } from 'preact/hooks';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface PopoverPositionerProps extends HTMLAttributes<PopoverPositionerElement> {
15
+ export interface PopoverPositionerProps {
16
16
  /**
17
17
  * The strategy to use for positioning
18
18
  *
@@ -175,4 +175,4 @@ function PopoverPositionerComponent(props: PopoverPositionerProps, forwardedRef:
175
175
  *
176
176
  * @public
177
177
  */
178
- export const PopoverPositioner: ForwardRefExoticComponent<PopoverPositionerProps & RefAttributes<PopoverPositionerElement>> = /* @__PURE__ */ forwardRef(PopoverPositionerComponent);
178
+ export const PopoverPositioner: ForwardRefExoticComponent<PopoverPositionerProps & HTMLAttributes<PopoverPositionerElement> & RefAttributes<PopoverPositionerElement>> = /* @__PURE__ */ forwardRef(PopoverPositionerComponent);