@prosekit/react 0.6.9 → 0.7.0-beta.1
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.
- package/dist/prosekit-react-autocomplete.d.ts +224 -17
- package/dist/prosekit-react-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-react-autocomplete.js +216 -9
- package/dist/prosekit-react-autocomplete.js.map +1 -1
- package/dist/prosekit-react-block-handle.d.ts +208 -13
- package/dist/prosekit-react-block-handle.d.ts.map +1 -1
- package/dist/prosekit-react-block-handle.js +182 -7
- package/dist/prosekit-react-block-handle.js.map +1 -1
- package/dist/prosekit-react-drop-indicator.d.ts +25 -5
- package/dist/prosekit-react-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-react-drop-indicator.js +36 -3
- package/dist/prosekit-react-drop-indicator.js.map +1 -1
- package/dist/prosekit-react-inline-popover.d.ts +202 -7
- package/dist/prosekit-react-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-react-inline-popover.js +128 -5
- package/dist/prosekit-react-inline-popover.js.map +1 -1
- package/dist/prosekit-react-menu.d.ts +287 -0
- package/dist/prosekit-react-menu.d.ts.map +1 -0
- package/dist/prosekit-react-menu.js +272 -0
- package/dist/prosekit-react-menu.js.map +1 -0
- package/dist/prosekit-react-popover.d.ts +225 -13
- package/dist/prosekit-react-popover.d.ts.map +1 -1
- package/dist/prosekit-react-popover.js +168 -7
- package/dist/prosekit-react-popover.js.map +1 -1
- package/dist/prosekit-react-resizable.d.ts +54 -11
- package/dist/prosekit-react-resizable.d.ts.map +1 -1
- package/dist/prosekit-react-resizable.js +78 -7
- package/dist/prosekit-react-resizable.js.map +1 -1
- package/dist/prosekit-react-table-handle.d.ts +445 -37
- package/dist/prosekit-react-table-handle.d.ts.map +1 -1
- package/dist/prosekit-react-table-handle.js +379 -19
- package/dist/prosekit-react-table-handle.js.map +1 -1
- package/dist/prosekit-react-tooltip.d.ts +209 -13
- package/dist/prosekit-react-tooltip.d.ts.map +1 -1
- package/dist/prosekit-react-tooltip.js +155 -7
- package/dist/prosekit-react-tooltip.js.map +1 -1
- package/package.json +29 -18
- package/src/components/autocomplete/autocomplete-empty.gen.ts +39 -31
- package/src/components/autocomplete/autocomplete-item.gen.ts +82 -31
- package/src/components/autocomplete/autocomplete-popup.gen.ts +78 -0
- package/src/components/autocomplete/autocomplete-positioner.gen.ts +151 -0
- package/src/components/autocomplete/autocomplete-root.gen.ts +107 -0
- package/src/components/autocomplete/index.gen.ts +12 -4
- package/src/components/autocomplete/index.ts +27 -0
- package/src/components/block-handle/block-handle-add.gen.ts +57 -31
- package/src/components/block-handle/block-handle-draggable.gen.ts +57 -31
- package/src/components/block-handle/block-handle-popup.gen.ts +42 -0
- package/src/components/block-handle/block-handle-positioner.gen.ts +169 -0
- package/src/components/block-handle/block-handle-root.gen.ts +82 -0
- package/src/components/block-handle/index.gen.ts +13 -3
- package/src/components/block-handle/index.ts +27 -0
- package/src/components/drop-indicator/drop-indicator.gen.ts +63 -31
- package/src/components/drop-indicator/index.gen.ts +5 -1
- package/src/components/drop-indicator/index.ts +14 -0
- package/src/components/inline-popover/index.gen.ts +11 -1
- package/src/components/inline-popover/index.ts +22 -0
- package/src/components/inline-popover/inline-popover-popup.gen.ts +42 -0
- package/src/components/inline-popover/inline-popover-positioner.gen.ts +175 -0
- package/src/components/inline-popover/inline-popover-root.gen.ts +106 -0
- package/src/components/menu/index.gen.ts +19 -0
- package/src/components/menu/index.ts +37 -0
- package/src/components/menu/menu-item.gen.ts +89 -0
- package/src/components/menu/menu-popup.gen.ts +56 -0
- package/src/components/menu/menu-positioner.gen.ts +176 -0
- package/src/components/menu/menu-root.gen.ts +86 -0
- package/src/components/menu/menu-submenu-root.gen.ts +42 -0
- package/src/components/menu/menu-submenu-trigger.gen.ts +42 -0
- package/src/components/menu/menu-trigger.gen.ts +77 -0
- package/src/components/popover/index.gen.ts +11 -3
- package/src/components/popover/index.ts +24 -0
- package/src/components/popover/popover-popup.gen.ts +42 -0
- package/src/components/popover/popover-positioner.gen.ts +176 -0
- package/src/components/popover/popover-root.gen.ts +90 -31
- package/src/components/popover/popover-trigger.gen.ts +90 -31
- package/src/components/resizable/index.gen.ts +8 -2
- package/src/components/resizable/index.ts +20 -0
- package/src/components/resizable/resizable-handle.gen.ts +52 -31
- package/src/components/resizable/resizable-root.gen.ts +88 -31
- package/src/components/table-handle/index.gen.ts +17 -9
- package/src/components/table-handle/index.ts +58 -0
- package/src/components/table-handle/table-handle-column-menu-root.gen.ts +64 -0
- package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +58 -0
- package/src/components/table-handle/table-handle-column-popup.gen.ts +42 -0
- package/src/components/table-handle/table-handle-column-positioner.gen.ts +199 -0
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +55 -31
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +55 -31
- package/src/components/table-handle/table-handle-root.gen.ts +57 -31
- package/src/components/table-handle/table-handle-row-menu-root.gen.ts +64 -0
- package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +58 -0
- package/src/components/table-handle/table-handle-row-popup.gen.ts +42 -0
- package/src/components/table-handle/table-handle-row-positioner.gen.ts +199 -0
- package/src/components/tooltip/index.gen.ts +11 -3
- package/src/components/tooltip/index.ts +24 -0
- package/src/components/tooltip/tooltip-popup.gen.ts +42 -0
- package/src/components/tooltip/tooltip-positioner.gen.ts +176 -0
- package/src/components/tooltip/tooltip-root.gen.ts +83 -31
- package/src/components/tooltip/tooltip-trigger.gen.ts +61 -31
- package/src/extensions/react-node-view.spec.ts +150 -0
- package/dist/create-component.js +0 -94
- package/dist/create-component.js.map +0 -1
- package/dist/create-props.d.ts +0 -6
- package/dist/create-props.d.ts.map +0 -1
- package/src/components/autocomplete/autocomplete-list.gen.ts +0 -34
- package/src/components/autocomplete/autocomplete-popover.gen.ts +0 -34
- package/src/components/block-handle/block-handle-popover.gen.ts +0 -34
- package/src/components/create-component.ts +0 -137
- package/src/components/create-props.ts +0 -13
- package/src/components/inline-popover/inline-popover.gen.ts +0 -34
- package/src/components/merge-refs.ts +0 -35
- package/src/components/popover/popover-content.gen.ts +0 -34
- package/src/components/table-handle/table-handle-column-root.gen.ts +0 -34
- package/src/components/table-handle/table-handle-column-trigger.gen.ts +0 -34
- package/src/components/table-handle/table-handle-popover-content.gen.ts +0 -34
- package/src/components/table-handle/table-handle-popover-item.gen.ts +0 -34
- package/src/components/table-handle/table-handle-row-root.gen.ts +0 -34
- package/src/components/table-handle/table-handle-row-trigger.gen.ts +0 -34
- package/src/components/tooltip/tooltip-content.gen.ts +0 -34
|
@@ -1,69 +1,477 @@
|
|
|
1
|
-
import { t as CreateProps } from "./create-props.js";
|
|
2
1
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
|
-
import {
|
|
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";
|
|
4
3
|
|
|
5
|
-
//#region src/components/table-handle/table-handle-column-
|
|
4
|
+
//#region src/components/table-handle/table-handle-column-popup.gen.d.ts
|
|
6
5
|
/**
|
|
7
|
-
* Props for the {@link
|
|
6
|
+
* Props for the {@link TableHandleColumnPopup} React component.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
8
9
|
*/
|
|
9
|
-
interface
|
|
10
|
-
|
|
10
|
+
interface TableHandleColumnPopupProps extends HTMLAttributes<TableHandleColumnPopupElement> {}
|
|
11
|
+
/**
|
|
12
|
+
* A React component that renders an `prosekit-table-handle-column-popup` custom element.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & RefAttributes<TableHandleColumnPopupElement>>;
|
|
11
17
|
//#endregion
|
|
12
|
-
//#region src/components/table-handle/table-handle-column-
|
|
18
|
+
//#region src/components/table-handle/table-handle-column-positioner.gen.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* Props for the {@link TableHandleColumnPositioner} React component.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
interface TableHandleColumnPositionerProps extends HTMLAttributes<TableHandleColumnPositionerElement> {
|
|
25
|
+
/**
|
|
26
|
+
* The placement of the popover, relative to the hovered table cell.
|
|
27
|
+
*
|
|
28
|
+
* @default "top"
|
|
29
|
+
*/
|
|
30
|
+
placement?: TableHandleColumnPositionerProps$1['placement'];
|
|
31
|
+
/**
|
|
32
|
+
* The strategy to use for positioning
|
|
33
|
+
*
|
|
34
|
+
* @default "absolute"
|
|
35
|
+
*/
|
|
36
|
+
strategy?: TableHandleColumnPositionerProps$1['strategy'];
|
|
37
|
+
/**
|
|
38
|
+
* Options to activate auto-update listeners
|
|
39
|
+
*
|
|
40
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
41
|
+
*
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
autoUpdate?: TableHandleColumnPositionerProps$1['autoUpdate'];
|
|
45
|
+
/**
|
|
46
|
+
* Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
|
|
47
|
+
* to place the floating element on top of other page content.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
hoist?: TableHandleColumnPositionerProps$1['hoist'];
|
|
52
|
+
/**
|
|
53
|
+
* @default 0
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
offset?: TableHandleColumnPositionerProps$1['offset'];
|
|
57
|
+
/**
|
|
58
|
+
* @default false
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
flip?: TableHandleColumnPositionerProps$1['flip'];
|
|
62
|
+
/**
|
|
63
|
+
* @default false
|
|
64
|
+
* @hidden
|
|
65
|
+
*/
|
|
66
|
+
shift?: TableHandleColumnPositionerProps$1['shift'];
|
|
67
|
+
/**
|
|
68
|
+
* Whether the floating element can overlap the reference element to keep it
|
|
69
|
+
* in view.
|
|
70
|
+
*
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
overlap?: TableHandleColumnPositionerProps$1['overlap'];
|
|
74
|
+
/**
|
|
75
|
+
* Whether to constrain the floating element's width and height to not exceed
|
|
76
|
+
* the viewport.
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
fitViewport?: TableHandleColumnPositionerProps$1['fitViewport'];
|
|
81
|
+
/**
|
|
82
|
+
* Whether to constrain the floating element's width so that it matches the
|
|
83
|
+
* reference element.
|
|
84
|
+
*
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
sameWidth?: TableHandleColumnPositionerProps$1['sameWidth'];
|
|
88
|
+
/**
|
|
89
|
+
* Whether to constrain the floating element's height so that it matches the
|
|
90
|
+
* reference element.
|
|
91
|
+
*
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
sameHeight?: TableHandleColumnPositionerProps$1['sameHeight'];
|
|
95
|
+
/**
|
|
96
|
+
* Whether to improve positioning for inline reference elements that span over
|
|
97
|
+
* multiple lines.
|
|
98
|
+
*
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
inline?: TableHandleColumnPositionerProps$1['inline'];
|
|
102
|
+
/**
|
|
103
|
+
* @default true
|
|
104
|
+
* @hidden
|
|
105
|
+
*/
|
|
106
|
+
hide?: TableHandleColumnPositionerProps$1['hide'];
|
|
107
|
+
/**
|
|
108
|
+
* Describes the clipping element(s) or area that overflow will be checked relative to.
|
|
109
|
+
* Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.
|
|
110
|
+
*
|
|
111
|
+
* @default 'clippingAncestors'
|
|
112
|
+
*/
|
|
113
|
+
boundary?: TableHandleColumnPositionerProps$1['boundary'];
|
|
114
|
+
/**
|
|
115
|
+
* Describes the root boundary that the element will be checked for overflow relative to.
|
|
116
|
+
* Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.
|
|
117
|
+
*
|
|
118
|
+
* @default 'viewport'
|
|
119
|
+
*/
|
|
120
|
+
rootBoundary?: TableHandleColumnPositionerProps$1['rootBoundary'];
|
|
121
|
+
/**
|
|
122
|
+
* Describes the virtual padding around the boundary to check for overflow.
|
|
123
|
+
* Please see https://floating-ui.com/docs/detectoverflow#padding for more information.
|
|
124
|
+
*
|
|
125
|
+
* @default 4
|
|
126
|
+
*/
|
|
127
|
+
overflowPadding?: TableHandleColumnPositionerProps$1['overflowPadding'];
|
|
128
|
+
/**
|
|
129
|
+
* The element that will be used to check for overflow. Please see
|
|
130
|
+
* https://floating-ui.com/docs/detectoverflow#elementcontext for more
|
|
131
|
+
* information.
|
|
132
|
+
*
|
|
133
|
+
* @default 'floating'
|
|
134
|
+
*/
|
|
135
|
+
elementContext?: TableHandleColumnPositionerProps$1['elementContext'];
|
|
136
|
+
/**
|
|
137
|
+
* Whether to check the alternate elementContext's boundary. Please see
|
|
138
|
+
* https://floating-ui.com/docs/detectoverflow#altboundary for more
|
|
139
|
+
* information.
|
|
140
|
+
*
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
altBoundary?: TableHandleColumnPositionerProps$1['altBoundary'];
|
|
144
|
+
/**
|
|
145
|
+
* The ProseKit editor instance.
|
|
146
|
+
*
|
|
147
|
+
* @default null
|
|
148
|
+
* @hidden
|
|
149
|
+
*/
|
|
150
|
+
editor?: TableHandleColumnPositionerProps$1['editor'];
|
|
151
|
+
}
|
|
13
152
|
/**
|
|
14
|
-
*
|
|
153
|
+
* A React component that renders an `prosekit-table-handle-column-positioner` custom element.
|
|
154
|
+
*
|
|
155
|
+
* @public
|
|
15
156
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
157
|
+
declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & RefAttributes<TableHandleColumnPositionerElement>>;
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/components/table-handle/table-handle-column-menu-root.gen.d.ts
|
|
160
|
+
/**
|
|
161
|
+
* Props for the {@link TableHandleColumnMenuRoot} React component.
|
|
162
|
+
*
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
interface TableHandleColumnMenuRootProps extends HTMLAttributes<TableHandleColumnMenuRootElement> {
|
|
166
|
+
/**
|
|
167
|
+
* Whether the overlay is initially open.
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
defaultOpen?: TableHandleColumnMenuRootProps$1['defaultOpen'];
|
|
171
|
+
/**
|
|
172
|
+
* Whether the overlay is currently open.
|
|
173
|
+
* @default null
|
|
174
|
+
*/
|
|
175
|
+
open?: TableHandleColumnMenuRootProps$1['open'];
|
|
176
|
+
/**
|
|
177
|
+
* Whether the component should ignore user interaction.
|
|
178
|
+
* @default false
|
|
179
|
+
*/
|
|
180
|
+
disabled?: TableHandleColumnMenuRootProps$1['disabled'];
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* A React component that renders an `prosekit-table-handle-column-menu-root` custom element.
|
|
184
|
+
*
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & RefAttributes<TableHandleColumnMenuRootElement>>;
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/components/table-handle/table-handle-column-menu-trigger.gen.d.ts
|
|
190
|
+
/**
|
|
191
|
+
* Props for the {@link TableHandleColumnMenuTrigger} React component.
|
|
192
|
+
*
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
interface TableHandleColumnMenuTriggerProps extends HTMLAttributes<TableHandleColumnMenuTriggerElement> {
|
|
196
|
+
/**
|
|
197
|
+
* @default null
|
|
198
|
+
* @hidden
|
|
199
|
+
*/
|
|
200
|
+
editor?: TableHandleColumnMenuTriggerProps$1['editor'];
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
|
|
204
|
+
*
|
|
205
|
+
* @public
|
|
206
|
+
*/
|
|
207
|
+
declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & RefAttributes<TableHandleColumnMenuTriggerElement>>;
|
|
18
208
|
//#endregion
|
|
19
209
|
//#region src/components/table-handle/table-handle-drag-preview.gen.d.ts
|
|
20
210
|
/**
|
|
21
|
-
* Props for the {@link TableHandleDragPreview} component.
|
|
211
|
+
* Props for the {@link TableHandleDragPreview} React component.
|
|
212
|
+
*
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
interface TableHandleDragPreviewProps extends HTMLAttributes<TableHandleDragPreviewElement> {
|
|
216
|
+
/**
|
|
217
|
+
* @default null
|
|
218
|
+
* @hidden
|
|
219
|
+
*/
|
|
220
|
+
editor?: TableHandleDragPreviewProps$1['editor'];
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* A React component that renders an `prosekit-table-handle-drag-preview` custom element.
|
|
224
|
+
*
|
|
225
|
+
* @public
|
|
22
226
|
*/
|
|
23
|
-
|
|
24
|
-
declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement> & HTMLAttributes<TableHandleDragPreviewElement>>;
|
|
227
|
+
declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement>>;
|
|
25
228
|
//#endregion
|
|
26
229
|
//#region src/components/table-handle/table-handle-drop-indicator.gen.d.ts
|
|
27
230
|
/**
|
|
28
|
-
* Props for the {@link TableHandleDropIndicator} component.
|
|
231
|
+
* Props for the {@link TableHandleDropIndicator} React component.
|
|
232
|
+
*
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
235
|
+
interface TableHandleDropIndicatorProps extends HTMLAttributes<TableHandleDropIndicatorElement> {
|
|
236
|
+
/**
|
|
237
|
+
* @default null
|
|
238
|
+
* @hidden
|
|
239
|
+
*/
|
|
240
|
+
editor?: TableHandleDropIndicatorProps$1['editor'];
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A React component that renders an `prosekit-table-handle-drop-indicator` custom element.
|
|
244
|
+
*
|
|
245
|
+
* @public
|
|
29
246
|
*/
|
|
30
|
-
|
|
31
|
-
declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement> & HTMLAttributes<TableHandleDropIndicatorElement>>;
|
|
247
|
+
declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement>>;
|
|
32
248
|
//#endregion
|
|
33
|
-
//#region src/components/table-handle/table-handle-
|
|
249
|
+
//#region src/components/table-handle/table-handle-root.gen.d.ts
|
|
34
250
|
/**
|
|
35
|
-
* Props for the {@link
|
|
251
|
+
* Props for the {@link TableHandleRoot} React component.
|
|
252
|
+
*
|
|
253
|
+
* @public
|
|
36
254
|
*/
|
|
37
|
-
interface
|
|
38
|
-
|
|
255
|
+
interface TableHandleRootProps extends HTMLAttributes<TableHandleRootElement> {
|
|
256
|
+
/**
|
|
257
|
+
* The ProseKit editor instance.
|
|
258
|
+
*
|
|
259
|
+
* @default null
|
|
260
|
+
* @hidden
|
|
261
|
+
*/
|
|
262
|
+
editor?: TableHandleRootProps$1['editor'];
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* A React component that renders an `prosekit-table-handle-root` custom element.
|
|
266
|
+
*
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement>>;
|
|
39
270
|
//#endregion
|
|
40
|
-
//#region src/components/table-handle/table-handle-
|
|
271
|
+
//#region src/components/table-handle/table-handle-row-popup.gen.d.ts
|
|
272
|
+
/**
|
|
273
|
+
* Props for the {@link TableHandleRowPopup} React component.
|
|
274
|
+
*
|
|
275
|
+
* @public
|
|
276
|
+
*/
|
|
277
|
+
interface TableHandleRowPopupProps extends HTMLAttributes<TableHandleRowPopupElement> {}
|
|
41
278
|
/**
|
|
42
|
-
*
|
|
279
|
+
* A React component that renders an `prosekit-table-handle-row-popup` custom element.
|
|
280
|
+
*
|
|
281
|
+
* @public
|
|
43
282
|
*/
|
|
44
|
-
|
|
45
|
-
declare const TableHandlePopoverItem: ForwardRefExoticComponent<TableHandlePopoverItemProps & RefAttributes<TableHandlePopoverItemElement> & HTMLAttributes<TableHandlePopoverItemElement>>;
|
|
283
|
+
declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & RefAttributes<TableHandleRowPopupElement>>;
|
|
46
284
|
//#endregion
|
|
47
|
-
//#region src/components/table-handle/table-handle-
|
|
285
|
+
//#region src/components/table-handle/table-handle-row-positioner.gen.d.ts
|
|
286
|
+
/**
|
|
287
|
+
* Props for the {@link TableHandleRowPositioner} React component.
|
|
288
|
+
*
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
291
|
+
interface TableHandleRowPositionerProps extends HTMLAttributes<TableHandleRowPositionerElement> {
|
|
292
|
+
/**
|
|
293
|
+
* The placement of the popover, relative to the hovered table cell.
|
|
294
|
+
*
|
|
295
|
+
* @default "left"
|
|
296
|
+
*/
|
|
297
|
+
placement?: TableHandleRowPositionerProps$1['placement'];
|
|
298
|
+
/**
|
|
299
|
+
* The strategy to use for positioning
|
|
300
|
+
*
|
|
301
|
+
* @default "absolute"
|
|
302
|
+
*/
|
|
303
|
+
strategy?: TableHandleRowPositionerProps$1['strategy'];
|
|
304
|
+
/**
|
|
305
|
+
* Options to activate auto-update listeners
|
|
306
|
+
*
|
|
307
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
308
|
+
*
|
|
309
|
+
* @default true
|
|
310
|
+
*/
|
|
311
|
+
autoUpdate?: TableHandleRowPositionerProps$1['autoUpdate'];
|
|
312
|
+
/**
|
|
313
|
+
* Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
|
|
314
|
+
* to place the floating element on top of other page content.
|
|
315
|
+
*
|
|
316
|
+
* @default false
|
|
317
|
+
*/
|
|
318
|
+
hoist?: TableHandleRowPositionerProps$1['hoist'];
|
|
319
|
+
/**
|
|
320
|
+
* @default 0
|
|
321
|
+
* @hidden
|
|
322
|
+
*/
|
|
323
|
+
offset?: TableHandleRowPositionerProps$1['offset'];
|
|
324
|
+
/**
|
|
325
|
+
* @default false
|
|
326
|
+
* @hidden
|
|
327
|
+
*/
|
|
328
|
+
flip?: TableHandleRowPositionerProps$1['flip'];
|
|
329
|
+
/**
|
|
330
|
+
* @default false
|
|
331
|
+
* @hidden
|
|
332
|
+
*/
|
|
333
|
+
shift?: TableHandleRowPositionerProps$1['shift'];
|
|
334
|
+
/**
|
|
335
|
+
* Whether the floating element can overlap the reference element to keep it
|
|
336
|
+
* in view.
|
|
337
|
+
*
|
|
338
|
+
* @default false
|
|
339
|
+
*/
|
|
340
|
+
overlap?: TableHandleRowPositionerProps$1['overlap'];
|
|
341
|
+
/**
|
|
342
|
+
* Whether to constrain the floating element's width and height to not exceed
|
|
343
|
+
* the viewport.
|
|
344
|
+
*
|
|
345
|
+
* @default false
|
|
346
|
+
*/
|
|
347
|
+
fitViewport?: TableHandleRowPositionerProps$1['fitViewport'];
|
|
348
|
+
/**
|
|
349
|
+
* Whether to constrain the floating element's width so that it matches the
|
|
350
|
+
* reference element.
|
|
351
|
+
*
|
|
352
|
+
* @default false
|
|
353
|
+
*/
|
|
354
|
+
sameWidth?: TableHandleRowPositionerProps$1['sameWidth'];
|
|
355
|
+
/**
|
|
356
|
+
* Whether to constrain the floating element's height so that it matches the
|
|
357
|
+
* reference element.
|
|
358
|
+
*
|
|
359
|
+
* @default false
|
|
360
|
+
*/
|
|
361
|
+
sameHeight?: TableHandleRowPositionerProps$1['sameHeight'];
|
|
362
|
+
/**
|
|
363
|
+
* Whether to improve positioning for inline reference elements that span over
|
|
364
|
+
* multiple lines.
|
|
365
|
+
*
|
|
366
|
+
* @default false
|
|
367
|
+
*/
|
|
368
|
+
inline?: TableHandleRowPositionerProps$1['inline'];
|
|
369
|
+
/**
|
|
370
|
+
* @default true
|
|
371
|
+
* @hidden
|
|
372
|
+
*/
|
|
373
|
+
hide?: TableHandleRowPositionerProps$1['hide'];
|
|
374
|
+
/**
|
|
375
|
+
* Describes the clipping element(s) or area that overflow will be checked relative to.
|
|
376
|
+
* Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.
|
|
377
|
+
*
|
|
378
|
+
* @default 'clippingAncestors'
|
|
379
|
+
*/
|
|
380
|
+
boundary?: TableHandleRowPositionerProps$1['boundary'];
|
|
381
|
+
/**
|
|
382
|
+
* Describes the root boundary that the element will be checked for overflow relative to.
|
|
383
|
+
* Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.
|
|
384
|
+
*
|
|
385
|
+
* @default 'viewport'
|
|
386
|
+
*/
|
|
387
|
+
rootBoundary?: TableHandleRowPositionerProps$1['rootBoundary'];
|
|
388
|
+
/**
|
|
389
|
+
* Describes the virtual padding around the boundary to check for overflow.
|
|
390
|
+
* Please see https://floating-ui.com/docs/detectoverflow#padding for more information.
|
|
391
|
+
*
|
|
392
|
+
* @default 4
|
|
393
|
+
*/
|
|
394
|
+
overflowPadding?: TableHandleRowPositionerProps$1['overflowPadding'];
|
|
395
|
+
/**
|
|
396
|
+
* The element that will be used to check for overflow. Please see
|
|
397
|
+
* https://floating-ui.com/docs/detectoverflow#elementcontext for more
|
|
398
|
+
* information.
|
|
399
|
+
*
|
|
400
|
+
* @default 'floating'
|
|
401
|
+
*/
|
|
402
|
+
elementContext?: TableHandleRowPositionerProps$1['elementContext'];
|
|
403
|
+
/**
|
|
404
|
+
* Whether to check the alternate elementContext's boundary. Please see
|
|
405
|
+
* https://floating-ui.com/docs/detectoverflow#altboundary for more
|
|
406
|
+
* information.
|
|
407
|
+
*
|
|
408
|
+
* @default false
|
|
409
|
+
*/
|
|
410
|
+
altBoundary?: TableHandleRowPositionerProps$1['altBoundary'];
|
|
411
|
+
/**
|
|
412
|
+
* The ProseKit editor instance.
|
|
413
|
+
*
|
|
414
|
+
* @default null
|
|
415
|
+
* @hidden
|
|
416
|
+
*/
|
|
417
|
+
editor?: TableHandleRowPositionerProps$1['editor'];
|
|
418
|
+
}
|
|
48
419
|
/**
|
|
49
|
-
*
|
|
420
|
+
* A React component that renders an `prosekit-table-handle-row-positioner` custom element.
|
|
421
|
+
*
|
|
422
|
+
* @public
|
|
50
423
|
*/
|
|
51
|
-
|
|
52
|
-
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement> & HTMLAttributes<TableHandleRootElement>>;
|
|
424
|
+
declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & RefAttributes<TableHandleRowPositionerElement>>;
|
|
53
425
|
//#endregion
|
|
54
|
-
//#region src/components/table-handle/table-handle-row-root.gen.d.ts
|
|
426
|
+
//#region src/components/table-handle/table-handle-row-menu-root.gen.d.ts
|
|
55
427
|
/**
|
|
56
|
-
* Props for the {@link
|
|
428
|
+
* Props for the {@link TableHandleRowMenuRoot} React component.
|
|
429
|
+
*
|
|
430
|
+
* @public
|
|
57
431
|
*/
|
|
58
|
-
interface
|
|
59
|
-
|
|
432
|
+
interface TableHandleRowMenuRootProps extends HTMLAttributes<TableHandleRowMenuRootElement> {
|
|
433
|
+
/**
|
|
434
|
+
* Whether the overlay is initially open.
|
|
435
|
+
* @default false
|
|
436
|
+
*/
|
|
437
|
+
defaultOpen?: TableHandleRowMenuRootProps$1['defaultOpen'];
|
|
438
|
+
/**
|
|
439
|
+
* Whether the overlay is currently open.
|
|
440
|
+
* @default null
|
|
441
|
+
*/
|
|
442
|
+
open?: TableHandleRowMenuRootProps$1['open'];
|
|
443
|
+
/**
|
|
444
|
+
* Whether the component should ignore user interaction.
|
|
445
|
+
* @default false
|
|
446
|
+
*/
|
|
447
|
+
disabled?: TableHandleRowMenuRootProps$1['disabled'];
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* A React component that renders an `prosekit-table-handle-row-menu-root` custom element.
|
|
451
|
+
*
|
|
452
|
+
* @public
|
|
453
|
+
*/
|
|
454
|
+
declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & RefAttributes<TableHandleRowMenuRootElement>>;
|
|
60
455
|
//#endregion
|
|
61
|
-
//#region src/components/table-handle/table-handle-row-trigger.gen.d.ts
|
|
456
|
+
//#region src/components/table-handle/table-handle-row-menu-trigger.gen.d.ts
|
|
457
|
+
/**
|
|
458
|
+
* Props for the {@link TableHandleRowMenuTrigger} React component.
|
|
459
|
+
*
|
|
460
|
+
* @public
|
|
461
|
+
*/
|
|
462
|
+
interface TableHandleRowMenuTriggerProps extends HTMLAttributes<TableHandleRowMenuTriggerElement> {
|
|
463
|
+
/**
|
|
464
|
+
* @default null
|
|
465
|
+
* @hidden
|
|
466
|
+
*/
|
|
467
|
+
editor?: TableHandleRowMenuTriggerProps$1['editor'];
|
|
468
|
+
}
|
|
62
469
|
/**
|
|
63
|
-
*
|
|
470
|
+
* A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
|
|
471
|
+
*
|
|
472
|
+
* @public
|
|
64
473
|
*/
|
|
65
|
-
|
|
66
|
-
declare const TableHandleRowTrigger: ForwardRefExoticComponent<TableHandleRowTriggerProps & RefAttributes<TableHandleRowTriggerElement> & HTMLAttributes<TableHandleRowTriggerElement>>;
|
|
474
|
+
declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & RefAttributes<TableHandleRowMenuTriggerElement>>;
|
|
67
475
|
//#endregion
|
|
68
|
-
export {
|
|
476
|
+
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 };
|
|
69
477
|
//# 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-root.gen.ts","../src/components/table-handle/table-handle-column-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-
|
|
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":";;;;;;;;AAyCA;UA7BiB,2BAAA,SAAoC,cAAA,CAAe,6BAAA;;;;;;cA6BvD,sBAAA,EAAwB,yBAAA,CAA0B,2BAAA,GAA8B,aAAA,CAAc,6BAAA;;;;;;;AAA3G;UC3BiB,gCAAA,SAAyC,cAAA,CAAe,kCAAA;;;;;;EAMvE,SAAA,GAAY,kCAAA;EDqBgD;;;;;ECf5D,QAAA,GAAW,kCAAA;EDe2H;;;;AC3BxI;;;EAoBE,UAAA,GAAa,kCAAA;EAdD;;;;;;EAqBZ,KAAA,GAAQ,kCAAA;EAsBE;;;;EAjBV,MAAA,GAAS,kCAAA;EAkDF;;;;EA7CP,IAAA,GAAO,kCAAA;EAkFO;;;;EA7Ed,KAAA,GAAQ,kCAAA;EA1CgD;;;;;;EAiDxD,OAAA,GAAU,kCAAA;EA7BG;;;;;;EAoCb,WAAA,GAAc,kCAAA;EAdd;;;;;;EAqBA,SAAA,GAAY,kCAAA;EAAA;;;;;;EAOZ,UAAA,GAAa,kCAAA;EAmBb;;;;;;EAZA,MAAA,GAAS,kCAAA;EAkCQ;;;;EA7BjB,IAAA,GAAO,kCAAA;EA4CyC;;AA0DlD;;;;EA/FE,QAAA,GAAW,kCAAA;EA+F0F;;;;;;EAxFrG,YAAA,GAAe,kCAAA;EAwFoG;;;;;;EAjFnH,eAAA,GAAkB,kCAAA;ECzG4B;;;;;;;EDiH9C,cAAA,GAAiB,kCAAA;ECjHmD;;;;;;;EDyHpE,WAAA,GAAc,kCAAA;EC1GH;;;AAoCb;;;ED6EE,MAAA,GAAS,kCAAA;AAAA;;;;;;cA0DE,2BAAA,EAA6B,yBAAA,CAA0B,gCAAA,GAAmC,aAAA,CAAc,kCAAA;;;;;;;AD7JrH;UE7BiB,8BA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