@prosekit/react 0.7.0-beta.4 → 0.7.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/prosekit-react-autocomplete.d.ts +10 -50
  2. package/dist/prosekit-react-autocomplete.d.ts.map +1 -1
  3. package/dist/prosekit-react-autocomplete.js +5 -40
  4. package/dist/prosekit-react-autocomplete.js.map +1 -1
  5. package/dist/prosekit-react-block-handle.d.ts +10 -50
  6. package/dist/prosekit-react-block-handle.d.ts.map +1 -1
  7. package/dist/prosekit-react-block-handle.js +5 -40
  8. package/dist/prosekit-react-block-handle.js.map +1 -1
  9. package/dist/prosekit-react-drop-indicator.d.ts +2 -10
  10. package/dist/prosekit-react-drop-indicator.d.ts.map +1 -1
  11. package/dist/prosekit-react-drop-indicator.js +1 -8
  12. package/dist/prosekit-react-drop-indicator.js.map +1 -1
  13. package/dist/prosekit-react-inline-popover.d.ts +6 -30
  14. package/dist/prosekit-react-inline-popover.d.ts.map +1 -1
  15. package/dist/prosekit-react-inline-popover.js +3 -24
  16. package/dist/prosekit-react-inline-popover.js.map +1 -1
  17. package/dist/prosekit-react-menu.d.ts +48 -73
  18. package/dist/prosekit-react-menu.d.ts.map +1 -1
  19. package/dist/prosekit-react-menu.js +37 -58
  20. package/dist/prosekit-react-menu.js.map +1 -1
  21. package/dist/prosekit-react-popover.d.ts +8 -40
  22. package/dist/prosekit-react-popover.d.ts.map +1 -1
  23. package/dist/prosekit-react-popover.js +4 -32
  24. package/dist/prosekit-react-popover.js.map +1 -1
  25. package/dist/prosekit-react-resizable.d.ts +4 -20
  26. package/dist/prosekit-react-resizable.d.ts.map +1 -1
  27. package/dist/prosekit-react-resizable.js +2 -16
  28. package/dist/prosekit-react-resizable.js.map +1 -1
  29. package/dist/prosekit-react-table-handle.d.ts +22 -110
  30. package/dist/prosekit-react-table-handle.d.ts.map +1 -1
  31. package/dist/prosekit-react-table-handle.js +11 -88
  32. package/dist/prosekit-react-table-handle.js.map +1 -1
  33. package/dist/prosekit-react-tooltip.d.ts +8 -40
  34. package/dist/prosekit-react-tooltip.d.ts.map +1 -1
  35. package/dist/prosekit-react-tooltip.js +4 -32
  36. package/dist/prosekit-react-tooltip.js.map +1 -1
  37. package/package.json +4 -4
  38. package/src/components/autocomplete/autocomplete-empty.gen.ts +3 -13
  39. package/src/components/autocomplete/autocomplete-item.gen.ts +3 -13
  40. package/src/components/autocomplete/autocomplete-popup.gen.ts +3 -13
  41. package/src/components/autocomplete/autocomplete-positioner.gen.ts +3 -13
  42. package/src/components/autocomplete/autocomplete-root.gen.ts +3 -13
  43. package/src/components/autocomplete/index.gen.ts +1 -3
  44. package/src/components/block-handle/block-handle-add.gen.ts +3 -13
  45. package/src/components/block-handle/block-handle-draggable.gen.ts +3 -13
  46. package/src/components/block-handle/block-handle-popup.gen.ts +3 -13
  47. package/src/components/block-handle/block-handle-positioner.gen.ts +3 -13
  48. package/src/components/block-handle/block-handle-root.gen.ts +3 -13
  49. package/src/components/block-handle/index.gen.ts +1 -3
  50. package/src/components/drop-indicator/drop-indicator.gen.ts +3 -13
  51. package/src/components/drop-indicator/index.gen.ts +1 -3
  52. package/src/components/inline-popover/index.gen.ts +1 -3
  53. package/src/components/inline-popover/inline-popover-popup.gen.ts +3 -13
  54. package/src/components/inline-popover/inline-popover-positioner.gen.ts +3 -13
  55. package/src/components/inline-popover/inline-popover-root.gen.ts +3 -13
  56. package/src/components/menu/index.gen.ts +1 -3
  57. package/src/components/menu/menu-item.gen.ts +3 -13
  58. package/src/components/menu/menu-popup.gen.ts +3 -13
  59. package/src/components/menu/menu-positioner.gen.ts +3 -13
  60. package/src/components/menu/menu-root.gen.ts +3 -13
  61. package/src/components/menu/menu-submenu-root.gen.ts +49 -17
  62. package/src/components/menu/menu-submenu-trigger.gen.ts +28 -19
  63. package/src/components/menu/menu-trigger.gen.ts +3 -13
  64. package/src/components/popover/index.gen.ts +1 -3
  65. package/src/components/popover/popover-popup.gen.ts +3 -13
  66. package/src/components/popover/popover-positioner.gen.ts +3 -13
  67. package/src/components/popover/popover-root.gen.ts +3 -13
  68. package/src/components/popover/popover-trigger.gen.ts +3 -13
  69. package/src/components/resizable/index.gen.ts +1 -3
  70. package/src/components/resizable/resizable-handle.gen.ts +3 -13
  71. package/src/components/resizable/resizable-root.gen.ts +3 -13
  72. package/src/components/table-handle/index.gen.ts +1 -3
  73. package/src/components/table-handle/table-handle-column-menu-root.gen.ts +3 -13
  74. package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +3 -13
  75. package/src/components/table-handle/table-handle-column-popup.gen.ts +3 -13
  76. package/src/components/table-handle/table-handle-column-positioner.gen.ts +3 -13
  77. package/src/components/table-handle/table-handle-drag-preview.gen.ts +3 -13
  78. package/src/components/table-handle/table-handle-drop-indicator.gen.ts +3 -13
  79. package/src/components/table-handle/table-handle-root.gen.ts +3 -13
  80. package/src/components/table-handle/table-handle-row-menu-root.gen.ts +3 -13
  81. package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +3 -13
  82. package/src/components/table-handle/table-handle-row-popup.gen.ts +3 -13
  83. package/src/components/table-handle/table-handle-row-positioner.gen.ts +3 -13
  84. package/src/components/tooltip/index.gen.ts +1 -3
  85. package/src/components/tooltip/tooltip-popup.gen.ts +3 -13
  86. package/src/components/tooltip/tooltip-positioner.gen.ts +3 -13
  87. package/src/components/tooltip/tooltip-root.gen.ts +3 -13
  88. package/src/components/tooltip/tooltip-trigger.gen.ts +3 -13
@@ -1,22 +1,10 @@
1
1
  import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
2
2
  import { TooltipPopupElement, TooltipPositionerElement, TooltipPositionerProps as TooltipPositionerProps$1, TooltipRootElement, TooltipRootEvents, TooltipRootProps as TooltipRootProps$1, TooltipTriggerElement, TooltipTriggerProps as TooltipTriggerProps$1 } from "@prosekit/web/tooltip";
3
- /**
4
- * Props for the {@link TooltipPopup} React component.
5
- *
6
- * @public
7
- */
3
+ /** Props for the {@link TooltipPopup} React component. */
8
4
  interface TooltipPopupProps {}
9
- /**
10
- * A React component that renders an `prosekit-tooltip-popup` custom element.
11
- *
12
- * @public
13
- */
5
+ /** A React component that renders an `prosekit-tooltip-popup` custom element. */
14
6
  declare const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & HTMLAttributes<TooltipPopupElement> & RefAttributes<TooltipPopupElement>>;
15
- /**
16
- * Props for the {@link TooltipPositioner} React component.
17
- *
18
- * @public
19
- */
7
+ /** Props for the {@link TooltipPositioner} React component. */
20
8
  interface TooltipPositionerProps {
21
9
  /**
22
10
  * The strategy to use for positioning
@@ -146,17 +134,9 @@ interface TooltipPositionerProps {
146
134
  */
147
135
  altBoundary?: TooltipPositionerProps$1['altBoundary'];
148
136
  }
149
- /**
150
- * A React component that renders an `prosekit-tooltip-positioner` custom element.
151
- *
152
- * @public
153
- */
137
+ /** A React component that renders an `prosekit-tooltip-positioner` custom element. */
154
138
  declare const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & HTMLAttributes<TooltipPositionerElement> & RefAttributes<TooltipPositionerElement>>;
155
- /**
156
- * Props for the {@link TooltipRoot} React component.
157
- *
158
- * @public
159
- */
139
+ /** Props for the {@link TooltipRoot} React component. */
160
140
  interface TooltipRootProps {
161
141
  /**
162
142
  * Whether the overlay is initially open.
@@ -176,17 +156,9 @@ interface TooltipRootProps {
176
156
  /** Emitted when the tooltip is opened or closed. */
177
157
  onOpenChange?: (event: TooltipRootEvents['openChange']) => void;
178
158
  }
179
- /**
180
- * A React component that renders an `prosekit-tooltip-root` custom element.
181
- *
182
- * @public
183
- */
159
+ /** A React component that renders an `prosekit-tooltip-root` custom element. */
184
160
  declare const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & HTMLAttributes<TooltipRootElement> & RefAttributes<TooltipRootElement>>;
185
- /**
186
- * Props for the {@link TooltipTrigger} React component.
187
- *
188
- * @public
189
- */
161
+ /** Props for the {@link TooltipTrigger} React component. */
190
162
  interface TooltipTriggerProps {
191
163
  /**
192
164
  * Whether the component should ignore user interaction.
@@ -204,11 +176,7 @@ interface TooltipTriggerProps {
204
176
  */
205
177
  closeDelay?: TooltipTriggerProps$1['closeDelay'];
206
178
  }
207
- /**
208
- * A React component that renders an `prosekit-tooltip-trigger` custom element.
209
- *
210
- * @public
211
- */
179
+ /** A React component that renders an `prosekit-tooltip-trigger` custom element. */
212
180
  declare const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & HTMLAttributes<TooltipTriggerElement> & RefAttributes<TooltipTriggerElement>>;
213
181
  export { TooltipPopup, type TooltipPopupProps, TooltipPositioner, type TooltipPositionerProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerProps };
214
182
  //# sourceMappingURL=prosekit-react-tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-react-tooltip.d.ts","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"],"mappings":";;;;;AAyCA;;UA7BiB,iBAAA;;;;;;cA6BJ,YAAA,EAAc,yBAAA,CAA0B,iBAAA,GAAoB,cAAA,CAAe,mBAAA,IAAuB,aAAA,CAAc,mBAAA;;;;AAA7H;;UC7BiB,sBAAA;ED6BoC;;;;;ECvBnD,QAAA,GAAW,wBAAA;EDuBuC;;;;;ECjBlD,SAAA,GAAY,wBAAA;EDiBiG;;;;;AC7B/G;;EAoBE,UAAA,GAAa,wBAAA;EAdF;;;;;;EAqBX,KAAA,GAAQ,wBAAA;EA4BE;;;;;EAtBV,MAAA,GAAS,wBAAA;EAgEE;;;;;;;;EAvDX,IAAA,GAAO,wBAAA;EA9BP;;;;;EAoCA,KAAA,GAAQ,wBAAA;EAfR;;;;;;EAsBA,OAAA,GAAU,wBAAA;EAAA;;;;;;EAOV,WAAA,GAAc,wBAAA;EAqBd;;;;;;EAdA,SAAA,GAAY,wBAAA;EAmCG;;;;;;EA5Bf,UAAA,GAAa,wBAAA;EAmD8B;;AAoC7C;;;;EAhFE,MAAA,GAAS,wBAAA;EAgFwE;;;;;;EAzEjF,IAAA,GAAO,wBAAA;EAyEiD;;;;;;EAlExD,QAAA,GAAW,wBAAA;;ACjGb;;;;;EDwGE,YAAA,GAAe,wBAAA;ECvFQ;;;;;;ED8FvB,eAAA,GAAkB,wBAAA;EChGlB;;;;;;;EDwGA,cAAA,GAAiB,wBAAA;EChD8K;;;;;;;EDwD/L,WAAA,GAAc,wBAAA;AAAA;;;;;;cAoCH,iBAAA,EAAmB,yBAAA,CAA0B,sBAAA,GAAyB,cAAA,CAAe,wBAAA,IAA4B,aAAA,CAAc,wBAAA;;;;ADtI5I;;UE7BiB,gBAAA;EF6BoC;;;;EExBnD,WAAA,GAAc,kBAAA;EFwBW;;;;EEnBzB,IAAA,GAAO,kBAAA;EFmBgE;;;;EEdvE,QAAA,GAAW,kBAAA;EFcmI;EEZ9I,YAAA,IAAgB,KAAA,EAAO,iBAAA;AAAA;;;;;;cAsDZ,WAAA,EAAa,yBAAA,CAA0B,gBAAA,GAAmB,cAAA,CAAe,kBAAA,IAAsB,aAAA,CAAc,kBAAA;;;;AF1C1H;;UG7BiB,mBAAA;EH6BoC;;;;EGxBnD,QAAA,GAAW,qBAAA;EHwBc;;;;EGnBzB,SAAA,GAAY,qBAAA;EHmB2D;;;;EGdvE,UAAA,GAAa,qBAAA;AAAA;;AFff;;;;cEmDa,cAAA,EAAgB,yBAAA,CAA0B,mBAAA,GAAsB,cAAA,CAAe,qBAAA,IAAyB,aAAA,CAAc,qBAAA"}
1
+ {"version":3,"file":"prosekit-react-tooltip.d.ts","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"],"mappings":";;;UAMiB,iBAAA;;cAyBJ,YAAA,EAA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HAiB;;;;EGKhC,QAAA,GAAW,qBAAA;EHoByL;;;;EGfpM,SAAA,GAAY,qBAAA;EHe+G;;;;EGV3H,UAAA,GAAa,qBAAA;AAAA;;cAgCF,cAAA,EAAgB,yBAAA,CAA0B,mBAAA,GAAsB,cAAA,CAAe,qBAAA,IAAyB,aAAA,CAAc,qBAAA"}
@@ -1,9 +1,6 @@
1
1
  "use client";
2
2
  import { createElement, forwardRef, useCallback, useLayoutEffect, useRef } from "react";
3
3
  import { registerTooltipPopupElement, registerTooltipPositionerElement, registerTooltipRootElement, registerTooltipTriggerElement } from "@prosekit/web/tooltip";
4
- /**
5
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
6
- */
7
4
  function TooltipPopupComponent(props, forwardedRef) {
8
5
  registerTooltipPopupElement();
9
6
  const elementRef = useRef(null);
@@ -19,15 +16,8 @@ function TooltipPopupComponent(props, forwardedRef) {
19
16
  suppressHydrationWarning: true
20
17
  });
21
18
  }
22
- /**
23
- * A React component that renders an `prosekit-tooltip-popup` custom element.
24
- *
25
- * @public
26
- */
19
+ /** A React component that renders an `prosekit-tooltip-popup` custom element. */
27
20
  const TooltipPopup = /* @__PURE__ */ forwardRef(TooltipPopupComponent);
28
- /**
29
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
30
- */
31
21
  function TooltipPositionerComponent(props, forwardedRef) {
32
22
  registerTooltipPositionerElement();
33
23
  const elementRef = useRef(null);
@@ -67,15 +57,8 @@ function TooltipPositionerComponent(props, forwardedRef) {
67
57
  suppressHydrationWarning: true
68
58
  });
69
59
  }
70
- /**
71
- * A React component that renders an `prosekit-tooltip-positioner` custom element.
72
- *
73
- * @public
74
- */
60
+ /** A React component that renders an `prosekit-tooltip-positioner` custom element. */
75
61
  const TooltipPositioner = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);
76
- /**
77
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
78
- */
79
62
  function TooltipRootComponent(props, forwardedRef) {
80
63
  registerTooltipRootElement();
81
64
  const elementRef = useRef(null);
@@ -111,15 +94,8 @@ function TooltipRootComponent(props, forwardedRef) {
111
94
  suppressHydrationWarning: true
112
95
  });
113
96
  }
114
- /**
115
- * A React component that renders an `prosekit-tooltip-root` custom element.
116
- *
117
- * @public
118
- */
97
+ /** A React component that renders an `prosekit-tooltip-root` custom element. */
119
98
  const TooltipRoot = /* @__PURE__ */ forwardRef(TooltipRootComponent);
120
- /**
121
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
122
- */
123
99
  function TooltipTriggerComponent(props, forwardedRef) {
124
100
  registerTooltipTriggerElement();
125
101
  const elementRef = useRef(null);
@@ -144,11 +120,7 @@ function TooltipTriggerComponent(props, forwardedRef) {
144
120
  suppressHydrationWarning: true
145
121
  });
146
122
  }
147
- /**
148
- * A React component that renders an `prosekit-tooltip-trigger` custom element.
149
- *
150
- * @public
151
- */
123
+ /** A React component that renders an `prosekit-tooltip-trigger` custom element. */
152
124
  const TooltipTrigger = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);
153
125
  /**
154
126
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-react-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","../src/components/tooltip/index.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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';\n\n/**\n * Props for the {@link TooltipPopup} React component.\n *\n * @public\n */\nexport interface TooltipPopupProps {}\n\nfunction TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: ForwardedRef<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 React 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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/**\n * Props for the {@link TooltipPositioner} React 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: ForwardedRef<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 React 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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/**\n * Props for the {@link TooltipRoot} React 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: ForwardedRef<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 React 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, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/**\n * Props for the {@link TooltipTrigger} React 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: ForwardedRef<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 React 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","/**\n\n@module\n\n## Anatomy\n\n```jsx\nimport {\n TooltipPopup,\n TooltipPositioner,\n TooltipRoot,\n TooltipTrigger,\n} from 'prosekit/react/tooltip'\n\n<TooltipRoot>\n <TooltipTrigger>...</TooltipTrigger>\n <TooltipPositioner>\n <TooltipPopup>...</TooltipPopup>\n </TooltipPositioner>\n</TooltipRoot>\n```\n*/\n\n'use client'\n\nexport * from './index.gen.ts'\n"],"mappings":";;;;;;AAcA,SAAS,sBAAsB,OAA0B,cAAiD;AACxG,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,cAAsD;AACvH,mCAAkC;CAElC,MAAM,aAAa,OAAiC,KAAK;CAEzD,MAAM,EAAE,aAAa,IAAI,YAAY,IAAI,UAAU,IAAI,gBAAgB,IAAI,aAAa,IAAI,MAAM,IAAI,MAAM,IAAI,OAAO,IAAI,QAAQ,IAAI,QAAQ,IAAI,iBAAiB,KAAK,SAAS,KAAK,WAAW,KAAK,cAAc,KAAK,YAAY,KAAK,WAAW,KAAK,OAAO,KAAK,UAAU,KAAK,GAAG,cAAc;AAEvS,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS;GAAE,aAAa;GAAI,YAAY;GAAI,UAAU;GAAI,gBAAgB;GAAI,aAAa;GAAI,MAAM;GAAI,MAAM;GAAI,OAAO;GAAI,QAAQ;GAAI,QAAQ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AAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQjH,MAAa,cAAoJ,2BAAW,qBAAqB;;;;ACrDjM,SAAS,wBAAwB,OAA4B,cAAmD;AAC9G,gCAA+B;CAE/B,MAAM,aAAa,OAA8B,KAAK;CAEtD,MAAM,EAAE,YAAY,IAAI,UAAU,IAAI,WAAW,IAAI,GAAG,cAAc;AAEtE,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS;GAAE,YAAY;GAAI,UAAU;GAAI,WAAW;GAAI,CAAC;GACvE;CAEF,MAAM,YAAY,aACf,YAA0C;AACzC,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,4BAA4B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQpH,MAAa,iBAAgK,2BAAW,wBAAwB"}
1
+ {"version":3,"file":"prosekit-react-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","../src/components/tooltip/index.ts"],"sourcesContent":["// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTooltipPopupElement, type TooltipPopupElement } from '@prosekit/web/tooltip';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';\n\n/** Props for the {@link TooltipPopup} React component. */\nexport interface TooltipPopupProps {}\n\nfunction TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: ForwardedRef<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/** A React component that renders an `prosekit-tooltip-popup` custom element. */\nexport const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & HTMLAttributes<TooltipPopupElement> & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTooltipPositionerElement, type TooltipPositionerElement, type TooltipPositionerProps as TooltipPositionerElementProps } from '@prosekit/web/tooltip';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link TooltipPositioner} React component. */\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: ForwardedRef<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/** A React component that renders an `prosekit-tooltip-positioner` custom element. */\nexport const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & HTMLAttributes<TooltipPositionerElement> & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTooltipRootElement, type TooltipRootElement, type TooltipRootProps as TooltipRootElementProps, type TooltipRootEvents } from '@prosekit/web/tooltip';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link TooltipRoot} React component. */\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: ForwardedRef<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/** A React component that renders an `prosekit-tooltip-root` custom element. */\nexport const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & HTMLAttributes<TooltipRootElement> & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTooltipTriggerElement, type TooltipTriggerElement, type TooltipTriggerProps as TooltipTriggerElementProps } from '@prosekit/web/tooltip';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link TooltipTrigger} React component. */\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: ForwardedRef<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/** A React component that renders an `prosekit-tooltip-trigger` custom element. */\nexport const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & HTMLAttributes<TooltipTriggerElement> & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);\n","/**\n\n@module\n\n## Anatomy\n\n```jsx\nimport {\n TooltipPopup,\n TooltipPositioner,\n TooltipRoot,\n TooltipTrigger,\n} from 'prosekit/react/tooltip'\n\n<TooltipRoot>\n <TooltipTrigger>...</TooltipTrigger>\n <TooltipPositioner>\n <TooltipPopup>...</TooltipPopup>\n </TooltipP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sB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS;GAAE,YAAY;GAAI,UAAU;GAAI,WAAW;GAAI,CAAC;GACvE;CAEF,MAAM,YAAY,aACf,YAA0C;AACzC,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,4BAA4B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;AAIpH,MAAa,iBAAgK,2BAAW,wBAAwB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/react",
3
3
  "type": "module",
4
- "version": "0.7.0-beta.4",
4
+ "version": "0.7.0-beta.5",
5
5
  "private": false,
6
6
  "description": "React components and utilities for ProseKit",
7
7
  "author": {
@@ -74,9 +74,9 @@
74
74
  "dependencies": {
75
75
  "@prosemirror-adapter/core": "^0.5.3",
76
76
  "@prosemirror-adapter/react": "^0.5.3",
77
+ "@prosekit/core": "^0.12.0-beta.0",
77
78
  "@prosekit/pm": "^0.1.15",
78
- "@prosekit/web": "^0.8.0-beta.3",
79
- "@prosekit/core": "^0.12.0-beta.0"
79
+ "@prosekit/web": "^0.8.0-beta.4"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "react": ">= 18.2.0",
@@ -99,8 +99,8 @@
99
99
  "typescript": "~5.9.3",
100
100
  "vitest": "^4.1.4",
101
101
  "vitest-browser-react": "^2.2.0",
102
- "@prosekit/config-ts": "0.0.0",
103
102
  "@prosekit/config-tsdown": "0.0.0",
103
+ "@prosekit/config-ts": "0.0.0",
104
104
  "@prosekit/config-vitest": "0.0.0",
105
105
  "@prosekit/testing": "0.0.0"
106
106
  },
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerAutocompleteEmptyElement, type AutocompleteEmptyElement } from '@prosekit/web/autocomplete';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link AutocompleteEmpty} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link AutocompleteEmpty} React component. */
13
7
  export interface AutocompleteEmptyProps {}
14
8
 
15
9
  function AutocompleteEmptyComponent(props: AutocompleteEmptyProps, forwardedRef: ForwardedRef<AutocompleteEmptyElement>) {
@@ -34,9 +28,5 @@ function AutocompleteEmptyComponent(props: AutocompleteEmptyProps, forwardedRef:
34
28
  return createElement('prosekit-autocomplete-empty', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
35
29
  }
36
30
 
37
- /**
38
- * A React component that renders an `prosekit-autocomplete-empty` custom element.
39
- *
40
- * @public
41
- */
31
+ /** A React component that renders an `prosekit-autocomplete-empty` custom element. */
42
32
  export const AutocompleteEmpty: ForwardRefExoticComponent<AutocompleteEmptyProps & HTMLAttributes<AutocompleteEmptyElement> & RefAttributes<AutocompleteEmptyElement>> = /* @__PURE__ */ forwardRef(AutocompleteEmptyComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerAutocompleteItemElement, type AutocompleteItemElement, type AutocompleteItemProps as AutocompleteItemElementProps, type AutocompleteItemEvents } from '@prosekit/web/autocomplete';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link AutocompleteItem} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link AutocompleteItem} React component. */
13
7
  export interface AutocompleteItemProps {
14
8
  /**
15
9
  * The value of the item, which will be matched against the query.
@@ -75,9 +69,5 @@ function AutocompleteItemComponent(props: AutocompleteItemProps, forwardedRef: F
75
69
  return createElement('prosekit-autocomplete-item', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
76
70
  }
77
71
 
78
- /**
79
- * A React component that renders an `prosekit-autocomplete-item` custom element.
80
- *
81
- * @public
82
- */
72
+ /** A React component that renders an `prosekit-autocomplete-item` custom element. */
83
73
  export const AutocompleteItem: ForwardRefExoticComponent<AutocompleteItemProps & Omit<HTMLAttributes<AutocompleteItemElement>, 'onSelect'> & RefAttributes<AutocompleteItemElement>> = /* @__PURE__ */ forwardRef(AutocompleteItemComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerAutocompletePopupElement, type AutocompletePopupElement, type AutocompletePopupEvents } from '@prosekit/web/autocomplete';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link AutocompletePopup} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link AutocompletePopup} React component. */
13
7
  export interface AutocompletePopupProps {
14
8
  /**
15
9
  * Emitted when the selected value changes. Only available when multiple is
@@ -68,9 +62,5 @@ function AutocompletePopupComponent(props: AutocompletePopupProps, forwardedRef:
68
62
  return createElement('prosekit-autocomplete-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
69
63
  }
70
64
 
71
- /**
72
- * A React component that renders an `prosekit-autocomplete-popup` custom element.
73
- *
74
- * @public
75
- */
65
+ /** A React component that renders an `prosekit-autocomplete-popup` custom element. */
76
66
  export const AutocompletePopup: ForwardRefExoticComponent<AutocompletePopupProps & HTMLAttributes<AutocompletePopupElement> & RefAttributes<AutocompletePopupElement>> = /* @__PURE__ */ forwardRef(AutocompletePopupComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerAutocompletePositionerElement, type AutocompletePositionerElement, type AutocompletePositionerProps as AutocompletePositionerElementProps } from '@prosekit/web/autocomplete';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link AutocompletePositioner} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link AutocompletePositioner} React component. */
13
7
  export interface AutocompletePositionerProps {
14
8
  /**
15
9
  * The placement of the popover, relative to the text cursor.
@@ -143,9 +137,5 @@ function AutocompletePositionerComponent(props: AutocompletePositionerProps, for
143
137
  return createElement('prosekit-autocomplete-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
144
138
  }
145
139
 
146
- /**
147
- * A React component that renders an `prosekit-autocomplete-positioner` custom element.
148
- *
149
- * @public
150
- */
140
+ /** A React component that renders an `prosekit-autocomplete-positioner` custom element. */
151
141
  export const AutocompletePositioner: ForwardRefExoticComponent<AutocompletePositionerProps & HTMLAttributes<AutocompletePositionerElement> & RefAttributes<AutocompletePositionerElement>> = /* @__PURE__ */ forwardRef(AutocompletePositionerComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerAutocompleteRootElement, type AutocompleteRootElement, type AutocompleteRootProps as AutocompleteRootElementProps, type AutocompleteRootEvents } from '@prosekit/web/autocomplete';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link AutocompleteRoot} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link AutocompleteRoot} React component. */
15
9
  export interface AutocompleteRootProps {
16
10
  /**
17
11
  * The ProseKit editor instance.
@@ -97,9 +91,5 @@ function AutocompleteRootComponent(props: AutocompleteRootProps, forwardedRef: F
97
91
  return createElement('prosekit-autocomplete-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
98
92
  }
99
93
 
100
- /**
101
- * A React component that renders an `prosekit-autocomplete-root` custom element.
102
- *
103
- * @public
104
- */
94
+ /** A React component that renders an `prosekit-autocomplete-root` custom element. */
105
95
  export const AutocompleteRoot: ForwardRefExoticComponent<AutocompleteRootProps & HTMLAttributes<AutocompleteRootElement> & RefAttributes<AutocompleteRootElement>> = /* @__PURE__ */ forwardRef(AutocompleteRootComponent);
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { AutocompleteEmpty, type AutocompleteEmptyProps } from './autocomplete-empty.gen.ts';
6
4
 
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerBlockHandleAddElement, type BlockHandleAddElement, type BlockHandleAddProps as BlockHandleAddElementProps } from '@prosekit/web/block-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link BlockHandleAdd} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link BlockHandleAdd} React component. */
15
9
  export interface BlockHandleAddProps {
16
10
  /**
17
11
  * The ProseKit editor instance.
@@ -52,9 +46,5 @@ function BlockHandleAddComponent(props: BlockHandleAddProps, forwardedRef: Forwa
52
46
  return createElement('prosekit-block-handle-add', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
53
47
  }
54
48
 
55
- /**
56
- * A React component that renders an `prosekit-block-handle-add` custom element.
57
- *
58
- * @public
59
- */
49
+ /** A React component that renders an `prosekit-block-handle-add` custom element. */
60
50
  export const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & HTMLAttributes<BlockHandleAddElement> & RefAttributes<BlockHandleAddElement>> = /* @__PURE__ */ forwardRef(BlockHandleAddComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerBlockHandleDraggableElement, type BlockHandleDraggableElement, type BlockHandleDraggableProps as BlockHandleDraggableElementProps } from '@prosekit/web/block-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link BlockHandleDraggable} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link BlockHandleDraggable} React component. */
15
9
  export interface BlockHandleDraggableProps {
16
10
  /**
17
11
  * The ProseKit editor instance.
@@ -52,9 +46,5 @@ function BlockHandleDraggableComponent(props: BlockHandleDraggableProps, forward
52
46
  return createElement('prosekit-block-handle-draggable', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
53
47
  }
54
48
 
55
- /**
56
- * A React component that renders an `prosekit-block-handle-draggable` custom element.
57
- *
58
- * @public
59
- */
49
+ /** A React component that renders an `prosekit-block-handle-draggable` custom element. */
60
50
  export const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & HTMLAttributes<BlockHandleDraggableElement> & RefAttributes<BlockHandleDraggableElement>> = /* @__PURE__ */ forwardRef(BlockHandleDraggableComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerBlockHandlePopupElement, type BlockHandlePopupElement } from '@prosekit/web/block-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link BlockHandlePopup} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link BlockHandlePopup} React component. */
13
7
  export interface BlockHandlePopupProps {}
14
8
 
15
9
  function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: ForwardedRef<BlockHandlePopupElement>) {
@@ -34,9 +28,5 @@ function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: F
34
28
  return createElement('prosekit-block-handle-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
35
29
  }
36
30
 
37
- /**
38
- * A React component that renders an `prosekit-block-handle-popup` custom element.
39
- *
40
- * @public
41
- */
31
+ /** A React component that renders an `prosekit-block-handle-popup` custom element. */
42
32
  export const BlockHandlePopup: ForwardRefExoticComponent<BlockHandlePopupProps & HTMLAttributes<BlockHandlePopupElement> & RefAttributes<BlockHandlePopupElement>> = /* @__PURE__ */ forwardRef(BlockHandlePopupComponent);
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerBlockHandlePositionerElement, type BlockHandlePositionerElement, type BlockHandlePositionerProps as BlockHandlePositionerElementProps } from '@prosekit/web/block-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
- /**
9
- * Props for the {@link BlockHandlePositioner} React component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link BlockHandlePositioner} React component. */
13
7
  export interface BlockHandlePositionerProps {
14
8
  /**
15
9
  * The placement of the popover, relative to the hovered block.
@@ -161,9 +155,5 @@ function BlockHandlePositionerComponent(props: BlockHandlePositionerProps, forwa
161
155
  return createElement('prosekit-block-handle-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
162
156
  }
163
157
 
164
- /**
165
- * A React component that renders an `prosekit-block-handle-positioner` custom element.
166
- *
167
- * @public
168
- */
158
+ /** A React component that renders an `prosekit-block-handle-positioner` custom element. */
169
159
  export const BlockHandlePositioner: ForwardRefExoticComponent<BlockHandlePositionerProps & HTMLAttributes<BlockHandlePositionerElement> & RefAttributes<BlockHandlePositionerElement>> = /* @__PURE__ */ forwardRef(BlockHandlePositionerComponent);
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerBlockHandleRootElement, type BlockHandleRootElement, type BlockHandleRootProps as BlockHandleRootElementProps, type BlockHandleRootEvents } from '@prosekit/web/block-handle';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link BlockHandleRoot} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link BlockHandleRoot} React component. */
15
9
  export interface BlockHandleRootProps {
16
10
  /**
17
11
  * The ProseKit editor instance.
@@ -72,9 +66,5 @@ function BlockHandleRootComponent(props: BlockHandleRootProps, forwardedRef: For
72
66
  return createElement('prosekit-block-handle-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
73
67
  }
74
68
 
75
- /**
76
- * A React component that renders an `prosekit-block-handle-root` custom element.
77
- *
78
- * @public
79
- */
69
+ /** A React component that renders an `prosekit-block-handle-root` custom element. */
80
70
  export const BlockHandleRoot: ForwardRefExoticComponent<BlockHandleRootProps & HTMLAttributes<BlockHandleRootElement> & RefAttributes<BlockHandleRootElement>> = /* @__PURE__ */ forwardRef(BlockHandleRootComponent);
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { BlockHandleAdd, type BlockHandleAddProps } from './block-handle-add.gen.ts';
6
4
 
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerDropIndicatorElement, type DropIndicatorElement, type DropIndicatorProps as DropIndicatorElementProps } from '@prosekit/web/drop-indicator';
6
4
  import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';
7
5
 
8
6
  import { useEditorContext } from '../../contexts/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link DropIndicator} React component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link DropIndicator} React component. */
15
9
  export interface DropIndicatorProps {
16
10
  /**
17
11
  * The ProseKit editor instance.
@@ -58,9 +52,5 @@ function DropIndicatorComponent(props: DropIndicatorProps, forwardedRef: Forward
58
52
  return createElement('prosekit-drop-indicator', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });
59
53
  }
60
54
 
61
- /**
62
- * A React component that renders an `prosekit-drop-indicator` custom element.
63
- *
64
- * @public
65
- */
55
+ /** A React component that renders an `prosekit-drop-indicator` custom element. */
66
56
  export const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & HTMLAttributes<DropIndicatorElement> & RefAttributes<DropIndicatorElement>> = /* @__PURE__ */ forwardRef(DropIndicatorComponent);
@@ -1,5 +1,3 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { DropIndicator, type DropIndicatorProps } from './drop-indicator.gen.ts';