@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 { TableHandleColumnMenuRootElement, TableHandleColumnMenuRootProps as TableHandleColumnMenuRootProps$1, TableHandleColumnMenuTriggerElement, TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerProps$1, TableHandleColumnPopupElement, TableHandleColumnPositionerElement, TableHandleColumnPositionerProps as TableHandleColumnPositionerProps$1, TableHandleDragPreviewElement, TableHandleDragPreviewProps as TableHandleDragPreviewProps$1, TableHandleDropIndicatorElement, TableHandleDropIndicatorProps as TableHandleDropIndicatorProps$1, TableHandleRootElement, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowMenuRootElement, TableHandleRowMenuRootProps as TableHandleRowMenuRootProps$1, TableHandleRowMenuTriggerElement, TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerProps$1, TableHandleRowPopupElement, TableHandleRowPositionerElement, TableHandleRowPositionerProps as TableHandleRowPositionerProps$1 } from "@prosekit/web/table-handle";
3
- /**
4
- * Props for the {@link TableHandleColumnPopup} React component.
5
- *
6
- * @public
7
- */
3
+ /** Props for the {@link TableHandleColumnPopup} React component. */
8
4
  interface TableHandleColumnPopupProps {}
9
- /**
10
- * A React component that renders an `prosekit-table-handle-column-popup` custom element.
11
- *
12
- * @public
13
- */
5
+ /** A React component that renders an `prosekit-table-handle-column-popup` custom element. */
14
6
  declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>>;
15
- /**
16
- * Props for the {@link TableHandleColumnPositioner} React component.
17
- *
18
- * @public
19
- */
7
+ /** Props for the {@link TableHandleColumnPositioner} React component. */
20
8
  interface TableHandleColumnPositionerProps {
21
9
  /**
22
10
  * The placement of the popover, relative to the hovered table cell.
@@ -145,17 +133,9 @@ interface TableHandleColumnPositionerProps {
145
133
  */
146
134
  editor?: TableHandleColumnPositionerProps$1['editor'];
147
135
  }
148
- /**
149
- * A React component that renders an `prosekit-table-handle-column-positioner` custom element.
150
- *
151
- * @public
152
- */
136
+ /** A React component that renders an `prosekit-table-handle-column-positioner` custom element. */
153
137
  declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>>;
154
- /**
155
- * Props for the {@link TableHandleColumnMenuRoot} React component.
156
- *
157
- * @public
158
- */
138
+ /** Props for the {@link TableHandleColumnMenuRoot} React component. */
159
139
  interface TableHandleColumnMenuRootProps {
160
140
  /**
161
141
  * Whether the overlay is initially open.
@@ -173,17 +153,9 @@ interface TableHandleColumnMenuRootProps {
173
153
  */
174
154
  disabled?: TableHandleColumnMenuRootProps$1['disabled'];
175
155
  }
176
- /**
177
- * A React component that renders an `prosekit-table-handle-column-menu-root` custom element.
178
- *
179
- * @public
180
- */
156
+ /** A React component that renders an `prosekit-table-handle-column-menu-root` custom element. */
181
157
  declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>>;
182
- /**
183
- * Props for the {@link TableHandleColumnMenuTrigger} React component.
184
- *
185
- * @public
186
- */
158
+ /** Props for the {@link TableHandleColumnMenuTrigger} React component. */
187
159
  interface TableHandleColumnMenuTriggerProps {
188
160
  /**
189
161
  * @default null
@@ -191,17 +163,9 @@ interface TableHandleColumnMenuTriggerProps {
191
163
  */
192
164
  editor?: TableHandleColumnMenuTriggerProps$1['editor'];
193
165
  }
194
- /**
195
- * A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
196
- *
197
- * @public
198
- */
166
+ /** A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
199
167
  declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>>;
200
- /**
201
- * Props for the {@link TableHandleDragPreview} React component.
202
- *
203
- * @public
204
- */
168
+ /** Props for the {@link TableHandleDragPreview} React component. */
205
169
  interface TableHandleDragPreviewProps {
206
170
  /**
207
171
  * @default null
@@ -209,17 +173,9 @@ interface TableHandleDragPreviewProps {
209
173
  */
210
174
  editor?: TableHandleDragPreviewProps$1['editor'];
211
175
  }
212
- /**
213
- * A React component that renders an `prosekit-table-handle-drag-preview` custom element.
214
- *
215
- * @public
216
- */
176
+ /** A React component that renders an `prosekit-table-handle-drag-preview` custom element. */
217
177
  declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>>;
218
- /**
219
- * Props for the {@link TableHandleDropIndicator} React component.
220
- *
221
- * @public
222
- */
178
+ /** Props for the {@link TableHandleDropIndicator} React component. */
223
179
  interface TableHandleDropIndicatorProps {
224
180
  /**
225
181
  * @default null
@@ -227,17 +183,9 @@ interface TableHandleDropIndicatorProps {
227
183
  */
228
184
  editor?: TableHandleDropIndicatorProps$1['editor'];
229
185
  }
230
- /**
231
- * A React component that renders an `prosekit-table-handle-drop-indicator` custom element.
232
- *
233
- * @public
234
- */
186
+ /** A React component that renders an `prosekit-table-handle-drop-indicator` custom element. */
235
187
  declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>>;
236
- /**
237
- * Props for the {@link TableHandleRoot} React component.
238
- *
239
- * @public
240
- */
188
+ /** Props for the {@link TableHandleRoot} React component. */
241
189
  interface TableHandleRootProps {
242
190
  /**
243
191
  * The ProseKit editor instance.
@@ -247,29 +195,13 @@ interface TableHandleRootProps {
247
195
  */
248
196
  editor?: TableHandleRootProps$1['editor'];
249
197
  }
250
- /**
251
- * A React component that renders an `prosekit-table-handle-root` custom element.
252
- *
253
- * @public
254
- */
198
+ /** A React component that renders an `prosekit-table-handle-root` custom element. */
255
199
  declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>>;
256
- /**
257
- * Props for the {@link TableHandleRowPopup} React component.
258
- *
259
- * @public
260
- */
200
+ /** Props for the {@link TableHandleRowPopup} React component. */
261
201
  interface TableHandleRowPopupProps {}
262
- /**
263
- * A React component that renders an `prosekit-table-handle-row-popup` custom element.
264
- *
265
- * @public
266
- */
202
+ /** A React component that renders an `prosekit-table-handle-row-popup` custom element. */
267
203
  declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>>;
268
- /**
269
- * Props for the {@link TableHandleRowPositioner} React component.
270
- *
271
- * @public
272
- */
204
+ /** Props for the {@link TableHandleRowPositioner} React component. */
273
205
  interface TableHandleRowPositionerProps {
274
206
  /**
275
207
  * The placement of the popover, relative to the hovered table cell.
@@ -398,17 +330,9 @@ interface TableHandleRowPositionerProps {
398
330
  */
399
331
  editor?: TableHandleRowPositionerProps$1['editor'];
400
332
  }
401
- /**
402
- * A React component that renders an `prosekit-table-handle-row-positioner` custom element.
403
- *
404
- * @public
405
- */
333
+ /** A React component that renders an `prosekit-table-handle-row-positioner` custom element. */
406
334
  declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>>;
407
- /**
408
- * Props for the {@link TableHandleRowMenuRoot} React component.
409
- *
410
- * @public
411
- */
335
+ /** Props for the {@link TableHandleRowMenuRoot} React component. */
412
336
  interface TableHandleRowMenuRootProps {
413
337
  /**
414
338
  * Whether the overlay is initially open.
@@ -426,17 +350,9 @@ interface TableHandleRowMenuRootProps {
426
350
  */
427
351
  disabled?: TableHandleRowMenuRootProps$1['disabled'];
428
352
  }
429
- /**
430
- * A React component that renders an `prosekit-table-handle-row-menu-root` custom element.
431
- *
432
- * @public
433
- */
353
+ /** A React component that renders an `prosekit-table-handle-row-menu-root` custom element. */
434
354
  declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>>;
435
- /**
436
- * Props for the {@link TableHandleRowMenuTrigger} React component.
437
- *
438
- * @public
439
- */
355
+ /** Props for the {@link TableHandleRowMenuTrigger} React component. */
440
356
  interface TableHandleRowMenuTriggerProps {
441
357
  /**
442
358
  * @default null
@@ -444,11 +360,7 @@ interface TableHandleRowMenuTriggerProps {
444
360
  */
445
361
  editor?: TableHandleRowMenuTriggerProps$1['editor'];
446
362
  }
447
- /**
448
- * A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
449
- *
450
- * @public
451
- */
363
+ /** A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */
452
364
  declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>>;
453
365
  export { TableHandleColumnMenuRoot, type TableHandleColumnMenuRootProps, TableHandleColumnMenuTrigger, type TableHandleColumnMenuTriggerProps, TableHandleColumnPopup, type TableHandleColumnPopupProps, TableHandleColumnPositioner, type TableHandleColumnPositionerProps, TableHandleDragPreview, type TableHandleDragPreviewProps, TableHandleDropIndicator, type TableHandleDropIndicatorProps, TableHandleRoot, type TableHandleRootProps, TableHandleRowMenuRoot, type TableHandleRowMenuRootProps, TableHandleRowMenuTrigger, type TableHandleRowMenuTriggerProps, TableHandleRowPopup, type TableHandleRowPopupProps, TableHandleRowPositioner, type TableHandleRowPositionerProps };
454
366
  //# sourceMappingURL=prosekit-react-table-handle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-react-table-handle.d.ts","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu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EPkFO;;;;EO7Ed,KAAA,GAAQ,+BAAA;EPpCI;;;;;;EO2CZ,OAAA,GAAU,+BAAA;EPjBV;;;;;;EOwBA,WAAA,GAAc,+BAAA;EPPJ;;;;;;EOcV,SAAA,GAAY,+BAAA;EPcZ;;;;;;EOPA,UAAA,GAAa,+BAAA;EP0BE;;;;;;EOnBf,MAAA,GAAS,+BAAA;EPiDT;;;;EO5CA,IAAA,GAAO,+BAAA;EPsGwQ;;;;;;EO/F/Q,QAAA,GAAW,+BAAA;EP+F6B;;;;;;EOxFxC,YAAA,GAAe,+BAAA;EPwF2I;;;;;AC1L5J;EMyGE,eAAA,GAAkB,+BAAA;;;;;;;;EAQlB,cAAA,GAAiB,+BAAA;ENvGjB;;;;;;AAyCF;EMsEE,WAAA,GAAc,+BAAA;;;;;;;EAOd,MAAA,GAAS,+BAAA;AAAA;;;;;;cA0DE,wBAAA,EAA0B,yBAAA,CAA0B,6BAAA,GAAgC,cAAA,CAAe,+BAAA,IAAmC,aAAA,CAAc,+BAAA;;;;AR7JjK;;US7BiB,2BAAA;ET6B8C;;;;ESxB7D,WAAA,GAAc,6BAAA;ETwBqB;;;;ESnBnC,IAAA,GAAO,6BAAA;ETmBoF;;;;ESd3F,QAAA,GAAW,6BAAA;AAAA;;ARbb;;;;cQiDa,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,cAAA,CAAe,6BAAA,IAAiC,aAAA,CAAc,6BAAA;;;;ATtB3J;;UU3BiB,8BAAA;EV2B8C;;;;EUtB7D,MAAA,GAAS,gCAAA;AAAA;;;;;;cAsCE,yBAAA,EAA2B,yBAAA,CAA0B,8BAAA,GAAiC,cAAA,CAAe,gCAAA,IAAoC,aAAA,CAAc,gCAAA"}
1
+ {"version":3,"file":"prosekit-react-table-handle.d.ts","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts"],"mappings":";;;UAMiB,2BAAA;;cAyBJ,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,cAAA,CAAe,6BAAA,IAAiC,aAAA,CAAc,6BAAA;;UCvB1I,gCAAA;EDF2B;;;;AAyB5C;ECjBE,SAAA,GAAY,kCAAA;;;;;;EAMZ,QAAA,GAAW,kCAAA;EDWwB;;;;;;;ECHnC,UAAA,GAAa,kCAAA;EDG4I;;;;ACvB3J;;EA2BE,KAAA,GAAQ,kCAAA;EArBI;;;;EA0BZ,MAAA,GAAS,kCAAA;EAKF;;;;EAAP,IAAA,GAAO,kCAAA;EAiCM;;;;EA5Bb,KAAA,GAAQ,kCAAA;EA6DU;;;;;;EAtDlB,OAAA,GAAU,kCAAA;EA3CE;;;;;;EAkDZ,WAAA,GAAc,kCAAA;EAxBd;;;;;;EA+BA,SAAA,GAAY,kCAAA;EAdF;;;;;;EAqBV,UAAA,GAAa,kCAAA;EAOb;;;;;;EAAA,MAAA,GAAS,kCAAA;EAmBM;;;;EAdf,IAAA,GAAO,kCAAA;EAqCP;;;;;;EA9BA,QAAA,GAAW,kCAAA;EA2FoQ;;;;;;EApF/Q,YAAA,GAAe,kCAAA;EAoFyB;;;;;;EA7ExC,eAAA,GAAkB,kCAAA;EA6EwI;;;;;ACtL5J;;EDiHE,cAAA,GAAiB,kCAAA;EC5GH;;;;;;;EDoHd,WAAA,GAAc,kCAAA;EC/GP;;;;;AAqCT;EDiFE,MAAA,GAAS,kCAAA;AAAA;;cAsDE,2BAAA,EAA6B,yBAAA,CAA0B,gCAAA,GAAmC,cAAA,C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MAAA,GAAS,+BAAA;EPKF;;;;EOAP,IAAA,GAAO,+BAAA;EPiCM;;;;EO5Bb,KAAA,GAAQ,+BAAA;EP6DU;;;;;;EOtDlB,OAAA,GAAU,+BAAA;EP3CE;;;;;;EOkDZ,WAAA,GAAc,+BAAA;EPxBd;;;;;;EO+BA,SAAA,GAAY,+BAAA;EPdF;;;;;;EOqBV,UAAA,GAAa,+BAAA;EPOb;;;;;;EOAA,MAAA,GAAS,+BAAA;EPmBM;;;;EOdf,IAAA,GAAO,+BAAA;EPqCP;;;;;;EO9BA,QAAA,GAAW,+BAAA;EP2FoQ;;;;;;EOpF/Q,YAAA,GAAe,+BAAA;EPoFyB;;;;;;EO7ExC,eAAA,GAAkB,+BAAA;EP6EwI;;;;;ACtL5J;;EMiHE,cAAA,GAAiB,+BAAA;EN5GH;;;;;;;EMoHd,WAAA,GAAc,+BAAA;EN/GP;;;;;AAqCT;EMiFE,MAAA,GAAS,+BAAA;AAAA;;cAsDE,wBAAA,EAA0B,yBAAA,CAA0B,6BAAA,GAAgC,cAAA,CAAe,+BAAA,IAAmC,aAAA,CAAc,+BAAA;;UCtLhJ,2BAAA;ETA2B;;;;ESK1C,WAAA,GAAc,6BAAA;EToBwO;;;;ESftP,IAAA,GAAO,6BAAA;ETekJ;;;;ESVzJ,QAAA,GAAW,6BAAA;AAAA;;cAgCA,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,cAAA,CAAe,6BAAA,IAAiC,aAAA,CAAc,6BAAA;;UC7C1I,8BAAA;EVF2B;;;;EUO1C,MAAA,GAAS,gCAAA;AAAA;;cAkCE,yBAAA,EAA2B,yBAAA,CAA0B,8BAAA,GAAiC,cAAA,CAAe,gCAAA,IAAoC,aAAA,CAAc,gCAAA"}
@@ -2,9 +2,6 @@
2
2
  import { n as useEditorContext } from "./editor-context.js";
3
3
  import { createElement, forwardRef, useCallback, useLayoutEffect, useRef } from "react";
4
4
  import { registerTableHandleColumnMenuRootElement, registerTableHandleColumnMenuTriggerElement, registerTableHandleColumnPopupElement, registerTableHandleColumnPositionerElement, registerTableHandleDragPreviewElement, registerTableHandleDropIndicatorElement, registerTableHandleRootElement, registerTableHandleRowMenuRootElement, registerTableHandleRowMenuTriggerElement, registerTableHandleRowPopupElement, registerTableHandleRowPositionerElement } from "@prosekit/web/table-handle";
5
- /**
6
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
7
- */
8
5
  function TableHandleColumnPopupComponent(props, forwardedRef) {
9
6
  registerTableHandleColumnPopupElement();
10
7
  const elementRef = useRef(null);
@@ -20,15 +17,8 @@ function TableHandleColumnPopupComponent(props, forwardedRef) {
20
17
  suppressHydrationWarning: true
21
18
  });
22
19
  }
23
- /**
24
- * A React component that renders an `prosekit-table-handle-column-popup` custom element.
25
- *
26
- * @public
27
- */
20
+ /** A React component that renders an `prosekit-table-handle-column-popup` custom element. */
28
21
  const TableHandleColumnPopup = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
29
- /**
30
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
31
- */
32
22
  function TableHandleColumnPositionerComponent(props, forwardedRef) {
33
23
  registerTableHandleColumnPositionerElement();
34
24
  const elementRef = useRef(null);
@@ -70,15 +60,8 @@ function TableHandleColumnPositionerComponent(props, forwardedRef) {
70
60
  suppressHydrationWarning: true
71
61
  });
72
62
  }
73
- /**
74
- * A React component that renders an `prosekit-table-handle-column-positioner` custom element.
75
- *
76
- * @public
77
- */
63
+ /** A React component that renders an `prosekit-table-handle-column-positioner` custom element. */
78
64
  const TableHandleColumnPositioner = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
79
- /**
80
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
81
- */
82
65
  function TableHandleColumnMenuRootComponent(props, forwardedRef) {
83
66
  registerTableHandleColumnMenuRootElement();
84
67
  const elementRef = useRef(null);
@@ -103,15 +86,8 @@ function TableHandleColumnMenuRootComponent(props, forwardedRef) {
103
86
  suppressHydrationWarning: true
104
87
  });
105
88
  }
106
- /**
107
- * A React component that renders an `prosekit-table-handle-column-menu-root` custom element.
108
- *
109
- * @public
110
- */
89
+ /** A React component that renders an `prosekit-table-handle-column-menu-root` custom element. */
111
90
  const TableHandleColumnMenuRoot = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
112
- /**
113
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
114
- */
115
91
  function TableHandleColumnMenuTriggerComponent(props, forwardedRef) {
116
92
  registerTableHandleColumnMenuTriggerElement();
117
93
  const elementRef = useRef(null);
@@ -133,15 +109,8 @@ function TableHandleColumnMenuTriggerComponent(props, forwardedRef) {
133
109
  suppressHydrationWarning: true
134
110
  });
135
111
  }
136
- /**
137
- * A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
138
- *
139
- * @public
140
- */
112
+ /** A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
141
113
  const TableHandleColumnMenuTrigger = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
142
- /**
143
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
144
- */
145
114
  function TableHandleDragPreviewComponent(props, forwardedRef) {
146
115
  registerTableHandleDragPreviewElement();
147
116
  const elementRef = useRef(null);
@@ -163,15 +132,8 @@ function TableHandleDragPreviewComponent(props, forwardedRef) {
163
132
  suppressHydrationWarning: true
164
133
  });
165
134
  }
166
- /**
167
- * A React component that renders an `prosekit-table-handle-drag-preview` custom element.
168
- *
169
- * @public
170
- */
135
+ /** A React component that renders an `prosekit-table-handle-drag-preview` custom element. */
171
136
  const TableHandleDragPreview = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);
172
- /**
173
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
174
- */
175
137
  function TableHandleDropIndicatorComponent(props, forwardedRef) {
176
138
  registerTableHandleDropIndicatorElement();
177
139
  const elementRef = useRef(null);
@@ -193,15 +155,8 @@ function TableHandleDropIndicatorComponent(props, forwardedRef) {
193
155
  suppressHydrationWarning: true
194
156
  });
195
157
  }
196
- /**
197
- * A React component that renders an `prosekit-table-handle-drop-indicator` custom element.
198
- *
199
- * @public
200
- */
158
+ /** A React component that renders an `prosekit-table-handle-drop-indicator` custom element. */
201
159
  const TableHandleDropIndicator = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);
202
- /**
203
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
204
- */
205
160
  function TableHandleRootComponent(props, forwardedRef) {
206
161
  registerTableHandleRootElement();
207
162
  const elementRef = useRef(null);
@@ -223,15 +178,8 @@ function TableHandleRootComponent(props, forwardedRef) {
223
178
  suppressHydrationWarning: true
224
179
  });
225
180
  }
226
- /**
227
- * A React component that renders an `prosekit-table-handle-root` custom element.
228
- *
229
- * @public
230
- */
181
+ /** A React component that renders an `prosekit-table-handle-root` custom element. */
231
182
  const TableHandleRoot = /* @__PURE__ */ forwardRef(TableHandleRootComponent);
232
- /**
233
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
234
- */
235
183
  function TableHandleRowPopupComponent(props, forwardedRef) {
236
184
  registerTableHandleRowPopupElement();
237
185
  const elementRef = useRef(null);
@@ -247,15 +195,8 @@ function TableHandleRowPopupComponent(props, forwardedRef) {
247
195
  suppressHydrationWarning: true
248
196
  });
249
197
  }
250
- /**
251
- * A React component that renders an `prosekit-table-handle-row-popup` custom element.
252
- *
253
- * @public
254
- */
198
+ /** A React component that renders an `prosekit-table-handle-row-popup` custom element. */
255
199
  const TableHandleRowPopup = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);
256
- /**
257
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
258
- */
259
200
  function TableHandleRowPositionerComponent(props, forwardedRef) {
260
201
  registerTableHandleRowPositionerElement();
261
202
  const elementRef = useRef(null);
@@ -297,15 +238,8 @@ function TableHandleRowPositionerComponent(props, forwardedRef) {
297
238
  suppressHydrationWarning: true
298
239
  });
299
240
  }
300
- /**
301
- * A React component that renders an `prosekit-table-handle-row-positioner` custom element.
302
- *
303
- * @public
304
- */
241
+ /** A React component that renders an `prosekit-table-handle-row-positioner` custom element. */
305
242
  const TableHandleRowPositioner = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);
306
- /**
307
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
308
- */
309
243
  function TableHandleRowMenuRootComponent(props, forwardedRef) {
310
244
  registerTableHandleRowMenuRootElement();
311
245
  const elementRef = useRef(null);
@@ -330,15 +264,8 @@ function TableHandleRowMenuRootComponent(props, forwardedRef) {
330
264
  suppressHydrationWarning: true
331
265
  });
332
266
  }
333
- /**
334
- * A React component that renders an `prosekit-table-handle-row-menu-root` custom element.
335
- *
336
- * @public
337
- */
267
+ /** A React component that renders an `prosekit-table-handle-row-menu-root` custom element. */
338
268
  const TableHandleRowMenuRoot = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);
339
- /**
340
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
341
- */
342
269
  function TableHandleRowMenuTriggerComponent(props, forwardedRef) {
343
270
  registerTableHandleRowMenuTriggerElement();
344
271
  const elementRef = useRef(null);
@@ -360,11 +287,7 @@ function TableHandleRowMenuTriggerComponent(props, forwardedRef) {
360
287
  suppressHydrationWarning: true
361
288
  });
362
289
  }
363
- /**
364
- * A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
365
- *
366
- * @public
367
- */
290
+ /** A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */
368
291
  const TableHandleRowMenuTrigger = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);
369
292
  /**
370
293
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-react-table-handle.js","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts","../src/components/table-handle/index.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnPopupElement, type TableHandleColumnPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';\n\n/**\n * Props for the {@link TableHandleColumnPopup} React component.\n *\n * @public\n */\nexport interface TableHandleColumnPopupProps {}\n\nfunction TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: ForwardedRef<TableHandleColumnPopupElement>) {\n registerTableHandleColumnPopupElement();\n\n const elementRef = useRef<TableHandleColumnPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPopupElement | 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-table-handle-column-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-column-popup` custom element.\n *\n * @public\n */\nexport const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnPositionerElement, type TableHandleColumnPositionerElement, type TableHandleColumnPositionerProps as TableHandleColumnPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleColumnPositioner} React component.\n *\n * @public\n */\nexport interface TableHandleColumnPositionerProps {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"top\"\n */\n placement?: TableHandleColumnPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleColumnPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleColumnPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleColumnPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleColumnPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleColumnPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleColumnPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnPositionerElementProps['editor'];\n}\n\nfunction TableHandleColumnPositionerComponent(props: TableHandleColumnPositionerProps, forwardedRef: ForwardedRef<TableHandleColumnPositionerElement>) {\n registerTableHandleColumnPositionerElement();\n\n const elementRef = useRef<TableHandleColumnPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPositionerElement | 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-table-handle-column-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-column-positioner` custom element.\n *\n * @public\n */\nexport const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnMenuRootElement, type TableHandleColumnMenuRootElement, type TableHandleColumnMenuRootProps as TableHandleColumnMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/**\n * Props for the {@link TableHandleColumnMenuRoot} React component.\n *\n * @public\n */\nexport interface TableHandleColumnMenuRootProps {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleColumnMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleColumnMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleColumnMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProps, forwardedRef: ForwardedRef<TableHandleColumnMenuRootElement>) {\n registerTableHandleColumnMenuRootElement();\n\n const elementRef = useRef<TableHandleColumnMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...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 });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuRootElement | 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-table-handle-column-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-column-menu-root` custom element.\n *\n * @public\n */\nexport const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleColumnMenuTrigger} React component.\n *\n * @public\n */\nexport interface TableHandleColumnMenuTriggerProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTriggerProps, forwardedRef: ForwardedRef<TableHandleColumnMenuTriggerElement>) {\n registerTableHandleColumnMenuTriggerElement();\n\n const elementRef = useRef<TableHandleColumnMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuTriggerElement | 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-table-handle-column-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element.\n *\n * @public\n */\nexport const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleDragPreviewElement, type TableHandleDragPreviewElement, type TableHandleDragPreviewProps as TableHandleDragPreviewElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleDragPreview} React component.\n *\n * @public\n */\nexport interface TableHandleDragPreviewProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDragPreviewElementProps['editor'];\n}\n\nfunction TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, forwardedRef: ForwardedRef<TableHandleDragPreviewElement>) {\n registerTableHandleDragPreviewElement();\n\n const elementRef = useRef<TableHandleDragPreviewElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDragPreviewElement | 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-table-handle-drag-preview', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-drag-preview` custom element.\n *\n * @public\n */\nexport const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleDropIndicatorElement, type TableHandleDropIndicatorElement, type TableHandleDropIndicatorProps as TableHandleDropIndicatorElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleDropIndicator} React component.\n *\n * @public\n */\nexport interface TableHandleDropIndicatorProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDropIndicatorElementProps['editor'];\n}\n\nfunction TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps, forwardedRef: ForwardedRef<TableHandleDropIndicatorElement>) {\n registerTableHandleDropIndicatorElement();\n\n const elementRef = useRef<TableHandleDropIndicatorElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDropIndicatorElement | 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-table-handle-drop-indicator', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-drop-indicator` custom element.\n *\n * @public\n */\nexport const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRootElement, type TableHandleRootElement, type TableHandleRootProps as TableHandleRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRoot} React component.\n *\n * @public\n */\nexport interface TableHandleRootProps {\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRootElementProps['editor'];\n}\n\nfunction TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: ForwardedRef<TableHandleRootElement>) {\n registerTableHandleRootElement();\n\n const elementRef = useRef<TableHandleRootElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRootElement | 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-table-handle-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-root` custom element.\n *\n * @public\n */\nexport const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowPopupElement, type TableHandleRowPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';\n\n/**\n * Props for the {@link TableHandleRowPopup} React component.\n *\n * @public\n */\nexport interface TableHandleRowPopupProps {}\n\nfunction TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: ForwardedRef<TableHandleRowPopupElement>) {\n registerTableHandleRowPopupElement();\n\n const elementRef = useRef<TableHandleRowPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleRowPopupElement | 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-table-handle-row-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-row-popup` custom element.\n *\n * @public\n */\nexport const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowPositionerElement, type TableHandleRowPositionerElement, type TableHandleRowPositionerProps as TableHandleRowPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRowPositioner} React component.\n *\n * @public\n */\nexport interface TableHandleRowPositionerProps {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"left\"\n */\n placement?: TableHandleRowPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleRowPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleRowPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleRowPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleRowPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleRowPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleRowPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRowPositionerElementProps['editor'];\n}\n\nfunction TableHandleRowPositionerComponent(props: TableHandleRowPositionerProps, forwardedRef: ForwardedRef<TableHandleRowPositionerElement>) {\n registerTableHandleRowPositionerElement();\n\n const elementRef = useRef<TableHandleRowPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowPositionerElement | 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-table-handle-row-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-row-positioner` custom element.\n *\n * @public\n */\nexport const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowMenuRootElement, type TableHandleRowMenuRootElement, type TableHandleRowMenuRootProps as TableHandleRowMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/**\n * Props for the {@link TableHandleRowMenuRoot} React component.\n *\n * @public\n */\nexport interface TableHandleRowMenuRootProps {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleRowMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleRowMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleRowMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, forwardedRef: ForwardedRef<TableHandleRowMenuRootElement>) {\n registerTableHandleRowMenuRootElement();\n\n const elementRef = useRef<TableHandleRowMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...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 });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuRootElement | 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-table-handle-row-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-row-menu-root` custom element.\n *\n * @public\n */\nexport const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerTableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/**\n * Props for the {@link TableHandleRowMenuTrigger} React component.\n *\n * @public\n */\nexport interface TableHandleRowMenuTriggerProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleRowMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProps, forwardedRef: ForwardedRef<TableHandleRowMenuTriggerElement>) {\n registerTableHandleRowMenuTriggerElement();\n\n const elementRef = useRef<TableHandleRowMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuTriggerElement | 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-table-handle-row-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/**\n * A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element.\n *\n * @public\n */\nexport const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);\n","/**\n\n@module\n\n## Anatomy\n\n```jsx\nimport {\n TableHandleColumnMenuRoot,\n TableHandleColumnMenuTrigger,\n TableHandleColumnPopup,\n TableHandleColumnPositioner,\n TableHandleDragPreview,\n TableHandleDropIndicator,\n TableHandleRoot,\n TableHandleRowMenuRoot,\n TableHandleRowMenuTrigger,\n TableHandleRowPopup,\n TableHandleRowPositioner,\n} from 'prosekit/react/table-handle'\nimport {\n MenuItem,\n MenuPopup,\n MenuPositioner,\n} from 'prosekit/react/menu'\n\n<TableHandleRoot>\n <TableHandleDragPreview />\n <TableHandleDropIndicator />\n <TableHandleColumnPositioner>\n <TableHandleColumnPopup>\n <TableHandleColumnMenuRoot>\n <TableHandleColumnMenuTrigger>...</TableHandleColumnMenuTrigger>\n <MenuPositioner>\n <MenuPopup>\n <MenuItem>...</MenuItem>\n </MenuPopup>\n </MenuPositioner>\n </TableHandleColumnMenuRoot>\n </TableHandleColumnPopup>\n </TableHandleColumnPositioner>\n <TableHandleRowPositioner>\n <TableHandleRowPopup>\n <TableHandleRowMenuRoot>\n <TableHandleRowMenuTrigger>...</TableHandleRowMenuTrigger>\n <MenuPositioner>\n <MenuPopup>\n <MenuItem>...</MenuItem>\n </MenuPopup>\n </MenuPositioner>\n </TableHandleRowMenuRoot>\n </TableHandleRowPopup>\n </TableHandleRowPositioner>\n</TableHandleRoot>\n```\n*/\n\n'use client'\n\nexport * from './index.gen.ts'\n"],"mappings":";;;;;;;AAcA,SAAS,gCAAgC,OAAoC,cAA2D;AACtI,wCAAuC;CAEvC,MAAM,aAAa,OAAsC,KAAK;CAE9D,MAAM,EAAE,GAAG,cAAc;CAEzB,MAAM,YAAY,aACf,YAAkD;AACjD,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,sCAAsC;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQ9H,MAAa,yBAAgM,2BAAW,gCAAgC;;;;ACsGxP,SAAS,qCAAqC,OAAyC,cAAgE;AACrJ,6CAA4C;CAE5C,MAAM,aAAa,OAA2C,KAAK;CAEnE,MAAM,aAAa,kBAAkB;CAErC,MAAM,EAAE,aAAa,IAAI,YAAY,IAAI,UAAU,IAAI,QAAQ,IAAI,gBAAgB,IAAI,aAAa,IAAI,MAAM,IAAI,MAAM,IAAI,OAAO,IAAI,QAAQ,IAAI,Q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E,aAAa,IAAI,UAAU,IAAI,MAAM,IAAI,GAAG,cAAc;AAElE,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS;GAAE,aAAa;GAAI,UAAU;GAAI,MAAM;GAAI,CAAC;GACnE;CAEF,MAAM,YAAY,aACf,YAAkD;AACjD,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,uCAAuC;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQ/H,MAAa,yBAAgM,2BAAW,gCAAgC;;;;ACzCxP,SAAS,mCAAmC,OAAuC,cAA8D;AAC/I,2CAA0C;CAE1C,MAAM,aAAa,OAAyC,KAAK;CAEjE,MAAM,aAAa,kBAAkB;CAErC,MAAM,EAAE,QAAQ,IAAI,GAAG,cAAc;AAErC,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS,EAAE,QAAQ,MAAM,YAAY,CAAC;GACpD;CAEF,MAAM,YAAY,aACf,YAAqD;AACpD,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,0CAA0C;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;;;;;AAQlI,MAAa,4BAA4M,2BAAW,mCAAmC"}
1
+ {"version":3,"file":"prosekit-react-table-handle.js","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts","../src/components/table-handle/index.ts"],"sourcesContent":["// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleColumnPopupElement, type TableHandleColumnPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';\n\n/** Props for the {@link TableHandleColumnPopup} React component. */\nexport interface TableHandleColumnPopupProps {}\n\nfunction TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: ForwardedRef<TableHandleColumnPopupElement>) {\n registerTableHandleColumnPopupElement();\n\n const elementRef = useRef<TableHandleColumnPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPopupElement | 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-table-handle-column-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-column-popup` custom element. */\nexport const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleColumnPositionerElement, type TableHandleColumnPositionerElement, type TableHandleColumnPositionerProps as TableHandleColumnPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/** Props for the {@link TableHandleColumnPositioner} React component. */\nexport interface TableHandleColumnPositionerProps {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"top\"\n */\n placement?: TableHandleColumnPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleColumnPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleColumnPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleColumnPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleColumnPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleColumnPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleColumnPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['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?: TableHandleColumnPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnPositionerElementProps['editor'];\n}\n\nfunction TableHandleColumnPositionerComponent(props: TableHandleColumnPositionerProps, forwardedRef: ForwardedRef<TableHandleColumnPositionerElement>) {\n registerTableHandleColumnPositionerElement();\n\n const elementRef = useRef<TableHandleColumnPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnPositionerElement | 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-table-handle-column-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-column-positioner` custom element. */\nexport const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleColumnMenuRootElement, type TableHandleColumnMenuRootElement, type TableHandleColumnMenuRootProps as TableHandleColumnMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link TableHandleColumnMenuRoot} React component. */\nexport interface TableHandleColumnMenuRootProps {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleColumnMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleColumnMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleColumnMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProps, forwardedRef: ForwardedRef<TableHandleColumnMenuRootElement>) {\n registerTableHandleColumnMenuRootElement();\n\n const elementRef = useRef<TableHandleColumnMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...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 });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuRootElement | 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-table-handle-column-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-column-menu-root` custom element. */\nexport const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/** Props for the {@link TableHandleColumnMenuTrigger} React component. */\nexport interface TableHandleColumnMenuTriggerProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleColumnMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTriggerProps, forwardedRef: ForwardedRef<TableHandleColumnMenuTriggerElement>) {\n registerTableHandleColumnMenuTriggerElement();\n\n const elementRef = useRef<TableHandleColumnMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleColumnMenuTriggerElement | 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-table-handle-column-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */\nexport const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleDragPreviewElement, type TableHandleDragPreviewElement, type TableHandleDragPreviewProps as TableHandleDragPreviewElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/** Props for the {@link TableHandleDragPreview} React component. */\nexport interface TableHandleDragPreviewProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDragPreviewElementProps['editor'];\n}\n\nfunction TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, forwardedRef: ForwardedRef<TableHandleDragPreviewElement>) {\n registerTableHandleDragPreviewElement();\n\n const elementRef = useRef<TableHandleDragPreviewElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDragPreviewElement | 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-table-handle-drag-preview', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-drag-preview` custom element. */\nexport const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleDropIndicatorElement, type TableHandleDropIndicatorElement, type TableHandleDropIndicatorProps as TableHandleDropIndicatorElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/** Props for the {@link TableHandleDropIndicator} React component. */\nexport interface TableHandleDropIndicatorProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleDropIndicatorElementProps['editor'];\n}\n\nfunction TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps, forwardedRef: ForwardedRef<TableHandleDropIndicatorElement>) {\n registerTableHandleDropIndicatorElement();\n\n const elementRef = useRef<TableHandleDropIndicatorElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleDropIndicatorElement | 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-table-handle-drop-indicator', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-drop-indicator` custom element. */\nexport const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleRootElement, type TableHandleRootElement, type TableHandleRootProps as TableHandleRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/** Props for the {@link TableHandleRoot} React component. */\nexport interface TableHandleRootProps {\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRootElementProps['editor'];\n}\n\nfunction TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: ForwardedRef<TableHandleRootElement>) {\n registerTableHandleRootElement();\n\n const elementRef = useRef<TableHandleRootElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRootElement | 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-table-handle-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-root` custom element. */\nexport const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleRowPopupElement, type TableHandleRowPopupElement } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';\n\n/** Props for the {@link TableHandleRowPopup} React component. */\nexport interface TableHandleRowPopupProps {}\n\nfunction TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: ForwardedRef<TableHandleRowPopupElement>) {\n registerTableHandleRowPopupElement();\n\n const elementRef = useRef<TableHandleRowPopupElement>(null);\n\n const { ...restProps } = props;\n\n const mergedRef = useCallback(\n (element: TableHandleRowPopupElement | 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-table-handle-row-popup', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-row-popup` custom element. */\nexport const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleRowPositionerElement, type TableHandleRowPositionerElement, type TableHandleRowPositionerProps as TableHandleRowPositionerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/** Props for the {@link TableHandleRowPositioner} React component. */\nexport interface TableHandleRowPositionerProps {\n /**\n * The placement of the popover, relative to the hovered table cell.\n *\n * @default \"left\"\n */\n placement?: TableHandleRowPositionerElementProps['placement'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: TableHandleRowPositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: TableHandleRowPositionerElementProps['autoUpdate'];\n /**\n * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)\n * to place the floating element on top of other page content.\n *\n * @default false\n */\n hoist?: TableHandleRowPositionerElementProps['hoist'];\n /**\n * @default 0\n * @hidden\n */\n offset?: TableHandleRowPositionerElementProps['offset'];\n /**\n * @default false\n * @hidden\n */\n flip?: TableHandleRowPositionerElementProps['flip'];\n /**\n * @default false\n * @hidden\n */\n shift?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['sameHeight'];\n /**\n * Whether to improve positioning for inline reference elements that span over\n * multiple lines.\n *\n * @default false\n */\n inline?: TableHandleRowPositionerElementProps['inline'];\n /**\n * @default true\n * @hidden\n */\n hide?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['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?: TableHandleRowPositionerElementProps['altBoundary'];\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: TableHandleRowPositionerElementProps['editor'];\n}\n\nfunction TableHandleRowPositionerComponent(props: TableHandleRowPositionerProps, forwardedRef: ForwardedRef<TableHandleRowPositionerElement>) {\n registerTableHandleRowPositionerElement();\n\n const elementRef = useRef<TableHandleRowPositionerElement>(null);\n\n const p3Fallback = useEditorContext();\n\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, editor: p3, elementContext: p4, fitViewport: p5, flip: p6, hide: p7, hoist: p8, inline: p9, offset: p10, overflowPadding: p11, overlap: p12, placement: p13, rootBoundary: p14, sameHeight: p15, sameWidth: p16, shift: p17, strategy: p18, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, {\n altBoundary: p0,\n autoUpdate: p1,\n boundary: p2,\n editor: p3 ?? p3Fallback,\n elementContext: p4,\n fitViewport: p5,\n flip: p6,\n hide: p7,\n hoist: p8,\n inline: p9,\n offset: p10,\n overflowPadding: p11,\n overlap: p12,\n placement: p13,\n rootBoundary: p14,\n sameHeight: p15,\n sameWidth: p16,\n shift: p17,\n strategy: p18,\n });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowPositionerElement | 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-table-handle-row-positioner', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-row-positioner` custom element. */\nexport const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleRowMenuRootElement, type TableHandleRowMenuRootElement, type TableHandleRowMenuRootProps as TableHandleRowMenuRootElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link TableHandleRowMenuRoot} React component. */\nexport interface TableHandleRowMenuRootProps {\n /**\n * Whether the overlay is initially open.\n * @default false\n */\n defaultOpen?: TableHandleRowMenuRootElementProps['defaultOpen'];\n /**\n * Whether the overlay is currently open.\n * @default null\n */\n open?: TableHandleRowMenuRootElementProps['open'];\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: TableHandleRowMenuRootElementProps['disabled'];\n}\n\nfunction TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, forwardedRef: ForwardedRef<TableHandleRowMenuRootElement>) {\n registerTableHandleRowMenuRootElement();\n\n const elementRef = useRef<TableHandleRowMenuRootElement>(null);\n\n const { defaultOpen: p0, disabled: p1, open: p2, ...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 });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuRootElement | 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-table-handle-row-menu-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-row-menu-root` custom element. */\nexport const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerTableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerElement, type TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerElementProps } from '@prosekit/web/table-handle';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\nimport { useEditorContext } from '../../contexts/editor-context.ts';\n\n/** Props for the {@link TableHandleRowMenuTrigger} React component. */\nexport interface TableHandleRowMenuTriggerProps {\n /**\n * @default null\n * @hidden\n */\n editor?: TableHandleRowMenuTriggerElementProps['editor'];\n}\n\nfunction TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProps, forwardedRef: ForwardedRef<TableHandleRowMenuTriggerElement>) {\n registerTableHandleRowMenuTriggerElement();\n\n const elementRef = useRef<TableHandleRowMenuTriggerElement>(null);\n\n const p0Fallback = useEditorContext();\n\n const { editor: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { editor: p0 ?? p0Fallback });\n });\n\n const mergedRef = useCallback(\n (element: TableHandleRowMenuTriggerElement | 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-table-handle-row-menu-trigger', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */\nexport const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);\n","/**\n\n@module\n\n## Anatomy\n\n```jsx\nimport {\n TableHandleColumnMenuRoot,\n TableHandleColumnMenuTrigger,\n TableHandleColumnPopup,\n TableHandleColumnPositioner,\n TableHandleDragPreview,\n TableHandleDropIndicator,\n TableHandleRoot,\n TableHandleRowMenuRoot,\n TableHandleRowMenuTrigger,\n TableHandleRowPopup,\n TableHandleRowPositioner,\n} from 'prosekit/react/table-handle'\nimport {\n MenuItem,\n MenuPopup,\n MenuPositioner,\n} from 'prosekit/react/menu'\n\n<TableHandleRoot>\n <TableHandleDragPreview />\n <TableHandleDropIndicator />\n <TableHandleColumnPositioner>\n <TableHandleColumnPopup>\n <TableHandleColumnMenuRoot>\n <TableHandleColumnMenuTrigger>...</TableHandleColumnMenuTrigger>\n <MenuPositioner>\n <MenuPopup>\n <MenuItem>...</MenuItem>\n </MenuPopup>\n </MenuPositioner>\n </TableHandleColumnMenuRoot>\n </TableHandleColumnPopup>\n </TableHandleColumnPositioner>\n <TableHandleRowPositioner>\n <TableHandleRowPopup>\n <TableHandleRowMenuRoot>\n <TableHandleRowMenuTrigger>...</TableHandleRowMenuTrigger>\n <MenuPositioner>\n <MenuPopup>\n <MenuItem>...</MenuItem>\n </MenuPopup>\n </MenuPositioner>\n </TableHandleRowMenuRoot>\n </TableHandleRowPopup>\n </TableHandleRowPositioner>\n</TableHandleRoot>\n```\n*/\n\n'use client'\n\nexport * from './index.gen.ts'\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