@prosekit/web 0.4.1 → 0.4.2
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/_tsup-dts-rollup.d.ts +1183 -1183
- package/dist/prosekit-web-autocomplete.d.ts +20 -20
- package/dist/prosekit-web-block-handle.d.ts +15 -15
- package/dist/prosekit-web-inline-popover.d.ts +5 -5
- package/dist/prosekit-web-popover.d.ts +15 -15
- package/dist/prosekit-web-resizable.d.ts +10 -10
- package/dist/prosekit-web-table-handle.d.ts +35 -35
- package/dist/prosekit-web-tooltip.d.ts +15 -15
- package/package.json +4 -4
|
@@ -1,1183 +1,1183 @@
|
|
|
1
|
-
import { AutoUpdateOptions } from '@floating-ui/dom';
|
|
2
|
-
import { BaseElementConstructor } from '@aria-ui/core';
|
|
3
|
-
import { ConnectableElement } from '@aria-ui/core';
|
|
4
|
-
import { Context } from '@aria-ui/core';
|
|
5
|
-
import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
|
|
6
|
-
import type { defineTableCommands } from '@prosekit/extensions/table';
|
|
7
|
-
import { Editor } from '@prosekit/core';
|
|
8
|
-
import type { EditorView } from '@prosekit/pm/view';
|
|
9
|
-
import { ElementContext } from '@floating-ui/dom';
|
|
10
|
-
import { EventDeclarations } from '@aria-ui/core';
|
|
11
|
-
import type { Extension } from '@prosekit/core';
|
|
12
|
-
import { FocusChangeHandler } from '@prosekit/core';
|
|
13
|
-
import { ItemFilter } from '@aria-ui/collection';
|
|
14
|
-
import { Keymap } from '@prosekit/core';
|
|
15
|
-
import { ListboxEvents } from '@aria-ui/listbox';
|
|
16
|
-
import { ListboxItemEvents } from '@aria-ui/listbox';
|
|
17
|
-
import { ListboxProps } from '@aria-ui/listbox';
|
|
18
|
-
import { MenuContentEvents } from '@aria-ui/menu/elements';
|
|
19
|
-
import { MenuContentProps } from '@aria-ui/menu/elements';
|
|
20
|
-
import { MenuItemEvents } from '@aria-ui/menu';
|
|
21
|
-
import { MenuItemProps } from '@aria-ui/menu';
|
|
22
|
-
import { Options } from 'tsup';
|
|
23
|
-
import { OverlayPositionerEvents } from '@aria-ui/overlay/elements';
|
|
24
|
-
import { OverlayPositionerEvents as OverlayPositionerEvents_2 } from '@aria-ui/overlay';
|
|
25
|
-
import { OverlayPositionerProps } from '@aria-ui/overlay/elements';
|
|
26
|
-
import { OverlayPositionerProps as OverlayPositionerProps_2 } from '@aria-ui/overlay';
|
|
27
|
-
import { Placement } from '@floating-ui/dom';
|
|
28
|
-
import { PlainExtension } from '@prosekit/core';
|
|
29
|
-
import { popoverContentEvents } from '@aria-ui/popover/elements';
|
|
30
|
-
import type { PopoverContentEvents as PopoverContentEvents_2 } from '@aria-ui/popover/elements';
|
|
31
|
-
import { popoverContentProps } from '@aria-ui/popover/elements';
|
|
32
|
-
import type { PopoverContentProps as PopoverContentProps_2 } from '@aria-ui/popover/elements';
|
|
33
|
-
import { popoverRootEvents } from '@aria-ui/popover/elements';
|
|
34
|
-
import type { PopoverRootEvents as PopoverRootEvents_2 } from '@aria-ui/popover/elements';
|
|
35
|
-
import { popoverRootProps } from '@aria-ui/popover/elements';
|
|
36
|
-
import type { PopoverRootProps as PopoverRootProps_2 } from '@aria-ui/popover/elements';
|
|
37
|
-
import { popoverTriggerEvents } from '@aria-ui/popover/elements';
|
|
38
|
-
import type { PopoverTriggerEvents as PopoverTriggerEvents_2 } from '@aria-ui/popover/elements';
|
|
39
|
-
import { popoverTriggerProps } from '@aria-ui/popover/elements';
|
|
40
|
-
import type { PopoverTriggerProps as PopoverTriggerProps_2 } from '@aria-ui/popover/elements';
|
|
41
|
-
import { PropDeclaration } from '@aria-ui/core';
|
|
42
|
-
import { PropDeclarations } from '@aria-ui/core';
|
|
43
|
-
import type { ProseMirrorNode } from '@prosekit/pm/model';
|
|
44
|
-
import { ReadonlySignal } from '@aria-ui/core';
|
|
45
|
-
import type { ReferenceElement } from '@floating-ui/dom';
|
|
46
|
-
import { RootBoundary } from '@floating-ui/dom';
|
|
47
|
-
import { SetupOptions } from '@aria-ui/core';
|
|
48
|
-
import { SignalState } from '@aria-ui/core';
|
|
49
|
-
import { tooltipContentEvents } from '@aria-ui/tooltip';
|
|
50
|
-
import { TooltipContentEvents as TooltipContentEvents_2 } from '@aria-ui/tooltip';
|
|
51
|
-
import { TooltipContentProps as TooltipContentProps_2 } from '@aria-ui/tooltip';
|
|
52
|
-
import { tooltipRootEvents } from '@aria-ui/tooltip/elements';
|
|
53
|
-
import type { TooltipRootEvents as TooltipRootEvents_2 } from '@aria-ui/tooltip/elements';
|
|
54
|
-
import { tooltipRootProps } from '@aria-ui/tooltip/elements';
|
|
55
|
-
import type { TooltipRootProps as TooltipRootProps_2 } from '@aria-ui/tooltip/elements';
|
|
56
|
-
import { tooltipTriggerEvents } from '@aria-ui/tooltip/elements';
|
|
57
|
-
import type { TooltipTriggerEvents as TooltipTriggerEvents_2 } from '@aria-ui/tooltip/elements';
|
|
58
|
-
import { tooltipTriggerProps } from '@aria-ui/tooltip/elements';
|
|
59
|
-
import type { TooltipTriggerProps as TooltipTriggerProps_2 } from '@aria-ui/tooltip/elements';
|
|
60
|
-
import { Union } from '@prosekit/core';
|
|
61
|
-
import { UpdateHandler } from '@prosekit/core';
|
|
62
|
-
import { useListboxEmpty } from '@aria-ui/listbox/elements';
|
|
63
|
-
import { usePopoverContent } from '@aria-ui/popover/elements';
|
|
64
|
-
import { usePopoverRoot } from '@aria-ui/popover/elements';
|
|
65
|
-
import { usePopoverTrigger } from '@aria-ui/popover/elements';
|
|
66
|
-
import { useTooltipContent } from '@aria-ui/tooltip/elements';
|
|
67
|
-
import { useTooltipRoot } from '@aria-ui/tooltip/elements';
|
|
68
|
-
import { useTooltipTrigger } from '@aria-ui/tooltip/elements';
|
|
69
|
-
import type { VirtualElement } from '@floating-ui/dom';
|
|
70
|
-
|
|
71
|
-
declare class AutocompleteEmptyElement extends AutocompleteEmptyElement_base {
|
|
72
|
-
}
|
|
73
|
-
export { AutocompleteEmptyElement }
|
|
74
|
-
export { AutocompleteEmptyElement as AutocompleteEmptyElement_alias_1 }
|
|
75
|
-
|
|
76
|
-
declare const AutocompleteEmptyElement_base: BaseElementConstructor<AutocompleteEmptyProps>;
|
|
77
|
-
|
|
78
|
-
/** @internal */
|
|
79
|
-
declare interface AutocompleteEmptyEvents {
|
|
80
|
-
}
|
|
81
|
-
export { AutocompleteEmptyEvents }
|
|
82
|
-
export { AutocompleteEmptyEvents as AutocompleteEmptyEvents_alias_1 }
|
|
83
|
-
|
|
84
|
-
/** @internal */
|
|
85
|
-
declare const autocompleteEmptyEvents: EventDeclarations<AutocompleteEmptyEvents>;
|
|
86
|
-
export { autocompleteEmptyEvents }
|
|
87
|
-
export { autocompleteEmptyEvents as autocompleteEmptyEvents_alias_1 }
|
|
88
|
-
|
|
89
|
-
/** @internal */
|
|
90
|
-
declare interface AutocompleteEmptyProps {
|
|
91
|
-
}
|
|
92
|
-
export { AutocompleteEmptyProps }
|
|
93
|
-
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
|
94
|
-
|
|
95
|
-
/** @internal */
|
|
96
|
-
declare const autocompleteEmptyProps: PropDeclarations<AutocompleteEmptyProps>;
|
|
97
|
-
export { autocompleteEmptyProps }
|
|
98
|
-
export { autocompleteEmptyProps as autocompleteEmptyProps_alias_1 }
|
|
99
|
-
|
|
100
|
-
declare class AutocompleteItemElement extends AutocompleteItemElement_base {
|
|
101
|
-
}
|
|
102
|
-
export { AutocompleteItemElement }
|
|
103
|
-
export { AutocompleteItemElement as AutocompleteItemElement_alias_1 }
|
|
104
|
-
|
|
105
|
-
declare const AutocompleteItemElement_base: BaseElementConstructor<AutocompleteItemProps>;
|
|
106
|
-
|
|
107
|
-
declare interface AutocompleteItemEvents extends ListboxItemEvents {
|
|
108
|
-
}
|
|
109
|
-
export { AutocompleteItemEvents }
|
|
110
|
-
export { AutocompleteItemEvents as AutocompleteItemEvents_alias_1 }
|
|
111
|
-
|
|
112
|
-
/** @internal */
|
|
113
|
-
declare const autocompleteItemEvents: EventDeclarations<AutocompleteItemEvents>;
|
|
114
|
-
export { autocompleteItemEvents }
|
|
115
|
-
export { autocompleteItemEvents as autocompleteItemEvents_alias_1 }
|
|
116
|
-
|
|
117
|
-
declare interface AutocompleteItemProps {
|
|
118
|
-
/**
|
|
119
|
-
* The value of the item, which will be matched against the query.
|
|
120
|
-
*
|
|
121
|
-
* If not provided, the value is the item's text content.
|
|
122
|
-
*
|
|
123
|
-
* @default ""
|
|
124
|
-
*/
|
|
125
|
-
value: string;
|
|
126
|
-
}
|
|
127
|
-
export { AutocompleteItemProps }
|
|
128
|
-
export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
|
|
129
|
-
|
|
130
|
-
/** @internal */
|
|
131
|
-
declare const autocompleteItemProps: PropDeclarations<AutocompleteItemProps>;
|
|
132
|
-
export { autocompleteItemProps }
|
|
133
|
-
export { autocompleteItemProps as autocompleteItemProps_alias_1 }
|
|
134
|
-
|
|
135
|
-
declare class AutocompleteListElement extends AutocompleteListElement_base {
|
|
136
|
-
}
|
|
137
|
-
export { AutocompleteListElement }
|
|
138
|
-
export { AutocompleteListElement as AutocompleteListElement_alias_1 }
|
|
139
|
-
|
|
140
|
-
declare const AutocompleteListElement_base: BaseElementConstructor<AutocompleteListProps>;
|
|
141
|
-
|
|
142
|
-
declare interface AutocompleteListEvents extends ListboxEvents {
|
|
143
|
-
}
|
|
144
|
-
export { AutocompleteListEvents }
|
|
145
|
-
export { AutocompleteListEvents as AutocompleteListEvents_alias_1 }
|
|
146
|
-
|
|
147
|
-
declare const autocompleteListEvents: EventDeclarations<ListboxEvents>;
|
|
148
|
-
export { autocompleteListEvents }
|
|
149
|
-
export { autocompleteListEvents as autocompleteListEvents_alias_1 }
|
|
150
|
-
|
|
151
|
-
declare interface AutocompleteListProps extends Pick<ListboxProps, 'filter'> {
|
|
152
|
-
/**
|
|
153
|
-
* The ProseKit editor instance.
|
|
154
|
-
*
|
|
155
|
-
* @default null
|
|
156
|
-
* @hidden
|
|
157
|
-
*/
|
|
158
|
-
editor: Editor | null;
|
|
159
|
-
}
|
|
160
|
-
export { AutocompleteListProps }
|
|
161
|
-
export { AutocompleteListProps as AutocompleteListProps_alias_1 }
|
|
162
|
-
|
|
163
|
-
declare const autocompleteListProps: {
|
|
164
|
-
filter: PropDeclaration<ItemFilter | null>;
|
|
165
|
-
editor: {
|
|
166
|
-
default: null;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
export { autocompleteListProps }
|
|
170
|
-
export { autocompleteListProps as autocompleteListProps_alias_1 }
|
|
171
|
-
|
|
172
|
-
declare class AutocompletePopoverElement extends AutocompletePopoverElement_base {
|
|
173
|
-
}
|
|
174
|
-
export { AutocompletePopoverElement }
|
|
175
|
-
export { AutocompletePopoverElement as AutocompletePopoverElement_alias_1 }
|
|
176
|
-
|
|
177
|
-
declare const AutocompletePopoverElement_base: BaseElementConstructor<AutocompletePopoverProps>;
|
|
178
|
-
|
|
179
|
-
declare interface AutocompletePopoverEvents extends OverlayPositionerEvents {
|
|
180
|
-
}
|
|
181
|
-
export { AutocompletePopoverEvents }
|
|
182
|
-
export { AutocompletePopoverEvents as AutocompletePopoverEvents_alias_1 }
|
|
183
|
-
|
|
184
|
-
/** @internal */
|
|
185
|
-
declare const autocompletePopoverEvents: EventDeclarations<AutocompletePopoverEvents>;
|
|
186
|
-
export { autocompletePopoverEvents }
|
|
187
|
-
export { autocompletePopoverEvents as autocompletePopoverEvents_alias_1 }
|
|
188
|
-
|
|
189
|
-
declare interface AutocompletePopoverProps extends OverlayPositionerProps {
|
|
190
|
-
/**
|
|
191
|
-
* The ProseKit editor instance.
|
|
192
|
-
*
|
|
193
|
-
* @default null
|
|
194
|
-
* @hidden
|
|
195
|
-
*/
|
|
196
|
-
editor: Editor | null;
|
|
197
|
-
/**
|
|
198
|
-
* The regular expression to match the query text to autocomplete.
|
|
199
|
-
*
|
|
200
|
-
* @default null
|
|
201
|
-
*/
|
|
202
|
-
regex: RegExp | null;
|
|
203
|
-
/**
|
|
204
|
-
* A callback that is called when the query changes.
|
|
205
|
-
*/
|
|
206
|
-
onQueryChange: ((query: string) => void) | null;
|
|
207
|
-
/**
|
|
208
|
-
* A callback that is called when the open state changes.
|
|
209
|
-
*/
|
|
210
|
-
onOpenChange: ((open: boolean) => void) | null;
|
|
211
|
-
/**
|
|
212
|
-
* The placement of the popover, relative to the text cursor.
|
|
213
|
-
*
|
|
214
|
-
* @default "bottom-start"
|
|
215
|
-
*/
|
|
216
|
-
placement: OverlayPositionerProps['placement'];
|
|
217
|
-
/**
|
|
218
|
-
* The distance between the popover and the hovered block.
|
|
219
|
-
*
|
|
220
|
-
* @default 4
|
|
221
|
-
*/
|
|
222
|
-
offset: OverlayPositionerProps['offset'];
|
|
223
|
-
/**
|
|
224
|
-
* @default true
|
|
225
|
-
*/
|
|
226
|
-
inline: OverlayPositionerProps['inline'];
|
|
227
|
-
/**
|
|
228
|
-
* @default true
|
|
229
|
-
*/
|
|
230
|
-
hoist: OverlayPositionerProps['hoist'];
|
|
231
|
-
/**
|
|
232
|
-
* @default true
|
|
233
|
-
*/
|
|
234
|
-
fitViewport: OverlayPositionerProps['fitViewport'];
|
|
235
|
-
/**
|
|
236
|
-
* @default "The body element"
|
|
237
|
-
*/
|
|
238
|
-
boundary: OverlayPositionerProps['boundary'];
|
|
239
|
-
/**
|
|
240
|
-
* @default 8
|
|
241
|
-
*/
|
|
242
|
-
overflowPadding: OverlayPositionerProps['overflowPadding'];
|
|
243
|
-
}
|
|
244
|
-
export { AutocompletePopoverProps }
|
|
245
|
-
export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
|
|
246
|
-
|
|
247
|
-
/** @internal */
|
|
248
|
-
declare const autocompletePopoverProps: {
|
|
249
|
-
readonly editor: {
|
|
250
|
-
readonly default: null;
|
|
251
|
-
};
|
|
252
|
-
readonly regex: {
|
|
253
|
-
readonly default: null;
|
|
254
|
-
};
|
|
255
|
-
readonly onQueryChange: {
|
|
256
|
-
readonly default: null;
|
|
257
|
-
};
|
|
258
|
-
readonly onOpenChange: {
|
|
259
|
-
readonly default: null;
|
|
260
|
-
};
|
|
261
|
-
readonly placement: {
|
|
262
|
-
readonly default: "bottom-start";
|
|
263
|
-
};
|
|
264
|
-
readonly offset: {
|
|
265
|
-
readonly default: 4;
|
|
266
|
-
};
|
|
267
|
-
readonly inline: {
|
|
268
|
-
readonly default: true;
|
|
269
|
-
};
|
|
270
|
-
readonly hoist: {
|
|
271
|
-
readonly default: true;
|
|
272
|
-
};
|
|
273
|
-
readonly fitViewport: {
|
|
274
|
-
readonly default: true;
|
|
275
|
-
};
|
|
276
|
-
readonly boundary: {
|
|
277
|
-
readonly default: HTMLBodyElement | "clippingAncestors";
|
|
278
|
-
};
|
|
279
|
-
readonly overflowPadding: {
|
|
280
|
-
readonly default: 8;
|
|
281
|
-
};
|
|
282
|
-
readonly strategy: PropDeclaration<"fixed" | "absolute">;
|
|
283
|
-
readonly autoUpdate: PropDeclaration<boolean | AutoUpdateOptions>;
|
|
284
|
-
readonly transform: PropDeclaration<boolean>;
|
|
285
|
-
readonly flip: PropDeclaration<boolean | Placement[]>;
|
|
286
|
-
readonly shift: PropDeclaration<boolean>;
|
|
287
|
-
readonly overlap: PropDeclaration<boolean>;
|
|
288
|
-
readonly sameWidth: PropDeclaration<boolean>;
|
|
289
|
-
readonly sameHeight: PropDeclaration<boolean>;
|
|
290
|
-
readonly hide: PropDeclaration<boolean>;
|
|
291
|
-
readonly rootBoundary: PropDeclaration<RootBoundary>;
|
|
292
|
-
readonly elementContext: PropDeclaration<ElementContext>;
|
|
293
|
-
readonly altBoundary: PropDeclaration<boolean>;
|
|
294
|
-
};
|
|
295
|
-
export { autocompletePopoverProps }
|
|
296
|
-
export { autocompletePopoverProps as autocompletePopoverProps_alias_1 }
|
|
297
|
-
|
|
298
|
-
declare class BlockHandleAddElement extends BlockHandleAddElement_base {
|
|
299
|
-
}
|
|
300
|
-
export { BlockHandleAddElement }
|
|
301
|
-
export { BlockHandleAddElement as BlockHandleAddElement_alias_1 }
|
|
302
|
-
|
|
303
|
-
declare const BlockHandleAddElement_base: BaseElementConstructor<BlockHandleAddProps>;
|
|
304
|
-
|
|
305
|
-
/** @internal */
|
|
306
|
-
declare interface BlockHandleAddEvents {
|
|
307
|
-
}
|
|
308
|
-
export { BlockHandleAddEvents }
|
|
309
|
-
export { BlockHandleAddEvents as BlockHandleAddEvents_alias_1 }
|
|
310
|
-
|
|
311
|
-
/** @internal */
|
|
312
|
-
declare const blockHandleAddEvents: EventDeclarations<BlockHandleAddEvents>;
|
|
313
|
-
export { blockHandleAddEvents }
|
|
314
|
-
export { blockHandleAddEvents as blockHandleAddEvents_alias_1 }
|
|
315
|
-
|
|
316
|
-
declare interface BlockHandleAddProps {
|
|
317
|
-
/**
|
|
318
|
-
* The ProseKit editor instance.
|
|
319
|
-
*
|
|
320
|
-
* @default null
|
|
321
|
-
* @hidden
|
|
322
|
-
*/
|
|
323
|
-
editor: Editor | null;
|
|
324
|
-
}
|
|
325
|
-
export { BlockHandleAddProps }
|
|
326
|
-
export { BlockHandleAddProps as BlockHandleAddProps_alias_1 }
|
|
327
|
-
|
|
328
|
-
/** @internal */
|
|
329
|
-
declare const blockHandleAddProps: PropDeclarations<BlockHandleAddProps>;
|
|
330
|
-
export { blockHandleAddProps }
|
|
331
|
-
export { blockHandleAddProps as blockHandleAddProps_alias_1 }
|
|
332
|
-
|
|
333
|
-
declare class BlockHandleDraggableElement extends BlockHandleDraggableElement_base {
|
|
334
|
-
}
|
|
335
|
-
export { BlockHandleDraggableElement }
|
|
336
|
-
export { BlockHandleDraggableElement as BlockHandleDraggableElement_alias_1 }
|
|
337
|
-
|
|
338
|
-
declare const BlockHandleDraggableElement_base: BaseElementConstructor<BlockHandleDraggableProps>;
|
|
339
|
-
|
|
340
|
-
/** @internal */
|
|
341
|
-
declare interface BlockHandleDraggableEvents {
|
|
342
|
-
}
|
|
343
|
-
export { BlockHandleDraggableEvents }
|
|
344
|
-
export { BlockHandleDraggableEvents as BlockHandleDraggableEvents_alias_1 }
|
|
345
|
-
|
|
346
|
-
/** @internal */
|
|
347
|
-
declare const blockHandleDraggableEvents: EventDeclarations<BlockHandleDraggableEvents>;
|
|
348
|
-
export { blockHandleDraggableEvents }
|
|
349
|
-
export { blockHandleDraggableEvents as blockHandleDraggableEvents_alias_1 }
|
|
350
|
-
|
|
351
|
-
declare interface BlockHandleDraggableProps {
|
|
352
|
-
/**
|
|
353
|
-
* The ProseKit editor instance.
|
|
354
|
-
*
|
|
355
|
-
* @default null
|
|
356
|
-
* @hidden
|
|
357
|
-
*/
|
|
358
|
-
editor: Editor | null;
|
|
359
|
-
}
|
|
360
|
-
export { BlockHandleDraggableProps }
|
|
361
|
-
export { BlockHandleDraggableProps as BlockHandleDraggableProps_alias_1 }
|
|
362
|
-
|
|
363
|
-
/** @internal */
|
|
364
|
-
declare const blockHandleDraggableProps: PropDeclarations<BlockHandleDraggableProps>;
|
|
365
|
-
export { blockHandleDraggableProps }
|
|
366
|
-
export { blockHandleDraggableProps as blockHandleDraggableProps_alias_1 }
|
|
367
|
-
|
|
368
|
-
declare class BlockHandlePopoverElement extends BlockHandlePopoverElement_base {
|
|
369
|
-
}
|
|
370
|
-
export { BlockHandlePopoverElement }
|
|
371
|
-
export { BlockHandlePopoverElement as BlockHandlePopoverElement_alias_1 }
|
|
372
|
-
|
|
373
|
-
declare const BlockHandlePopoverElement_base: BaseElementConstructor<BlockHandlePopoverProps>;
|
|
374
|
-
|
|
375
|
-
/** @internal */
|
|
376
|
-
declare interface BlockHandlePopoverEvents {
|
|
377
|
-
}
|
|
378
|
-
export { BlockHandlePopoverEvents }
|
|
379
|
-
export { BlockHandlePopoverEvents as BlockHandlePopoverEvents_alias_1 }
|
|
380
|
-
|
|
381
|
-
/** @internal */
|
|
382
|
-
declare const blockHandlePopoverEvents: EventDeclarations<BlockHandlePopoverEvents>;
|
|
383
|
-
export { blockHandlePopoverEvents }
|
|
384
|
-
export { blockHandlePopoverEvents as blockHandlePopoverEvents_alias_1 }
|
|
385
|
-
|
|
386
|
-
declare interface BlockHandlePopoverProps extends Omit<OverlayPositionerProps, 'placement' | 'offset'> {
|
|
387
|
-
/**
|
|
388
|
-
* The ProseKit editor instance.
|
|
389
|
-
*
|
|
390
|
-
* @default null
|
|
391
|
-
* @hidden
|
|
392
|
-
*/
|
|
393
|
-
editor: Editor | null;
|
|
394
|
-
/**
|
|
395
|
-
* The placement of the popover, relative to the hovered block.
|
|
396
|
-
*
|
|
397
|
-
* @default "left-start"
|
|
398
|
-
*/
|
|
399
|
-
placement: Placement;
|
|
400
|
-
/**
|
|
401
|
-
* The distance between the popover and the hovered block.
|
|
402
|
-
*
|
|
403
|
-
* @default 4
|
|
404
|
-
*/
|
|
405
|
-
offset: number;
|
|
406
|
-
}
|
|
407
|
-
export { BlockHandlePopoverProps }
|
|
408
|
-
export { BlockHandlePopoverProps as BlockHandlePopoverProps_alias_1 }
|
|
409
|
-
|
|
410
|
-
/** @internal */
|
|
411
|
-
declare const blockHandlePopoverProps: PropDeclarations<BlockHandlePopoverProps>;
|
|
412
|
-
export { blockHandlePopoverProps }
|
|
413
|
-
export { blockHandlePopoverProps as blockHandlePopoverProps_alias_1 }
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* @internal
|
|
417
|
-
*/
|
|
418
|
-
export declare type BlockPopoverContext = HoverState | null;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* @internal
|
|
422
|
-
*/
|
|
423
|
-
export declare const blockPopoverContext: Context<BlockPopoverContext>;
|
|
424
|
-
|
|
425
|
-
export declare function calcResize(position: 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', w: number, h: number, dx: number, dy: number, aspectRatio: number | null | undefined): [w: number, h: number];
|
|
426
|
-
|
|
427
|
-
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
428
|
-
|
|
429
|
-
export { default_alias_1 }
|
|
430
|
-
|
|
431
|
-
export declare function defaultQueryBuilder(match: RegExpExecArray): string;
|
|
432
|
-
|
|
433
|
-
export declare function defineCustomElement(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
|
|
434
|
-
|
|
435
|
-
export declare function defineElementHoverHandler(handler: ElementHoverHandler): Union<readonly [PlainExtension, PlainExtension, PlainExtension]>;
|
|
436
|
-
|
|
437
|
-
export declare type ElementHoverHandler = (reference: VirtualElement | null, hoverState: HoverState | null) => void;
|
|
438
|
-
|
|
439
|
-
export declare function getHoveringCell(view: EditorView, event: MouseEvent): HoveringCellInfo | undefined;
|
|
440
|
-
|
|
441
|
-
export declare function getStateWithDefaults<Props extends Record<string, any> = Record<string, any>>(state: Partial<SignalState<Props>>, props: PropDeclarations<Props>): SignalState<Props>;
|
|
442
|
-
|
|
443
|
-
export declare function getVirtualSelectionElement(view: EditorView): ReferenceElement | undefined;
|
|
444
|
-
|
|
445
|
-
export declare interface HoveringCellInfo {
|
|
446
|
-
rowIndex: number;
|
|
447
|
-
colIndex: number;
|
|
448
|
-
cellPos: number;
|
|
449
|
-
rowFirstCellPos: number;
|
|
450
|
-
colFirstCellPos: number;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* @internal
|
|
455
|
-
*/
|
|
456
|
-
export declare interface HoverState {
|
|
457
|
-
element: HTMLElement;
|
|
458
|
-
node: ProseMirrorNode;
|
|
459
|
-
pos: number;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
declare class InlinePopoverElement extends InlinePopoverElement_base {
|
|
463
|
-
}
|
|
464
|
-
export { InlinePopoverElement }
|
|
465
|
-
export { InlinePopoverElement as InlinePopoverElement_alias_1 }
|
|
466
|
-
|
|
467
|
-
declare const InlinePopoverElement_base: BaseElementConstructor<InlinePopoverProps>;
|
|
468
|
-
|
|
469
|
-
/** @internal */
|
|
470
|
-
declare interface InlinePopoverEvents extends OverlayPositionerEvents_2 {
|
|
471
|
-
}
|
|
472
|
-
export { InlinePopoverEvents }
|
|
473
|
-
export { InlinePopoverEvents as InlinePopoverEvents_alias_1 }
|
|
474
|
-
|
|
475
|
-
/** @internal */
|
|
476
|
-
declare const inlinePopoverEvents: EventDeclarations<InlinePopoverEvents>;
|
|
477
|
-
export { inlinePopoverEvents }
|
|
478
|
-
export { inlinePopoverEvents as inlinePopoverEvents_alias_1 }
|
|
479
|
-
|
|
480
|
-
declare interface InlinePopoverProps extends Omit<OverlayPositionerProps_2, 'placement' | 'offset'> {
|
|
481
|
-
/**
|
|
482
|
-
* The ProseKit editor instance.
|
|
483
|
-
*
|
|
484
|
-
* @default null
|
|
485
|
-
* @hidden
|
|
486
|
-
*/
|
|
487
|
-
editor: Editor | null;
|
|
488
|
-
/**
|
|
489
|
-
* Whether the popover is open by default when some inline content is
|
|
490
|
-
* selected.
|
|
491
|
-
*
|
|
492
|
-
* When `defaultOpen` is true, the popover will open or close based on the
|
|
493
|
-
* inline selection. When `defaultOpen` is false, the popover will never be
|
|
494
|
-
* opened unless the `open` prop is true.
|
|
495
|
-
*
|
|
496
|
-
* @default true
|
|
497
|
-
*/
|
|
498
|
-
defaultOpen: boolean;
|
|
499
|
-
/**
|
|
500
|
-
* Whether the popover is open.
|
|
501
|
-
*
|
|
502
|
-
* Notice that the popover will be always hidden if the inline selection is
|
|
503
|
-
* empty.
|
|
504
|
-
*
|
|
505
|
-
* @default false
|
|
506
|
-
*/
|
|
507
|
-
open: boolean;
|
|
508
|
-
/**
|
|
509
|
-
* Event handler called when the open state changed caused by user interaction
|
|
510
|
-
* (i.e. select or unselect inline content).
|
|
511
|
-
*
|
|
512
|
-
* @default null
|
|
513
|
-
*/
|
|
514
|
-
onOpenChange: ((open: boolean) => void) | null;
|
|
515
|
-
/**
|
|
516
|
-
* Whether the inline popover should be dismissed when the editor receives an
|
|
517
|
-
* Escape key press.
|
|
518
|
-
*
|
|
519
|
-
* @default true
|
|
520
|
-
*/
|
|
521
|
-
dismissOnEscape: boolean;
|
|
522
|
-
/**
|
|
523
|
-
* The placement of the popover, relative to the selected inline content.
|
|
524
|
-
*
|
|
525
|
-
* @default "top"
|
|
526
|
-
*/
|
|
527
|
-
placement: OverlayPositionerProps_2['placement'];
|
|
528
|
-
/**
|
|
529
|
-
* @default 12
|
|
530
|
-
*/
|
|
531
|
-
offset: OverlayPositionerProps_2['offset'];
|
|
532
|
-
/**
|
|
533
|
-
* @default true
|
|
534
|
-
*/
|
|
535
|
-
flip: OverlayPositionerProps_2['flip'];
|
|
536
|
-
/**
|
|
537
|
-
* @default true
|
|
538
|
-
*/
|
|
539
|
-
hide: OverlayPositionerProps_2['hide'];
|
|
540
|
-
/**
|
|
541
|
-
* @default true
|
|
542
|
-
*/
|
|
543
|
-
overlap: OverlayPositionerProps_2['overlap'];
|
|
544
|
-
/**
|
|
545
|
-
* @default true
|
|
546
|
-
*/
|
|
547
|
-
inline: OverlayPositionerProps_2['inline'];
|
|
548
|
-
/**
|
|
549
|
-
* @default true
|
|
550
|
-
*/
|
|
551
|
-
hoist: OverlayPositionerProps_2['hoist'];
|
|
552
|
-
}
|
|
553
|
-
export { InlinePopoverProps }
|
|
554
|
-
export { InlinePopoverProps as InlinePopoverProps_alias_1 }
|
|
555
|
-
|
|
556
|
-
/** @internal */
|
|
557
|
-
declare const inlinePopoverProps: PropDeclarations<InlinePopoverProps>;
|
|
558
|
-
export { inlinePopoverProps }
|
|
559
|
-
export { inlinePopoverProps as inlinePopoverProps_alias_1 }
|
|
560
|
-
|
|
561
|
-
export declare function isFinitePositiveNumber(value: unknown): value is number;
|
|
562
|
-
|
|
563
|
-
export declare function isHoveringCellInfoEqual(a?: HoveringCellInfo | null, b?: HoveringCellInfo | null): boolean;
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* @internal
|
|
567
|
-
*/
|
|
568
|
-
export declare type OnResize = ((width: number, height: number) => void) | null;
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* @internal
|
|
572
|
-
*/
|
|
573
|
-
export declare const onResizeContext: Context<OnResize>;
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* @internal
|
|
577
|
-
*/
|
|
578
|
-
export declare type OnResizeEnd = (() => void) | null;
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* @internal
|
|
582
|
-
*/
|
|
583
|
-
export declare const onResizeEndContext: Context<OnResizeEnd>;
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* @internal
|
|
587
|
-
*/
|
|
588
|
-
export declare type OnResizeStart = (() => readonly [width: number, height: number, aspectRatio: number]) | null;
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* @internal
|
|
592
|
-
*/
|
|
593
|
-
export declare const onResizeStartContext: Context<OnResizeStart>;
|
|
594
|
-
|
|
595
|
-
export declare const onSubmitContext: Context<VoidFunction | null>;
|
|
596
|
-
|
|
597
|
-
export declare const openContext: Context<boolean>;
|
|
598
|
-
|
|
599
|
-
declare class PopoverContentElement extends PopoverContentElement_base {
|
|
600
|
-
}
|
|
601
|
-
export { PopoverContentElement }
|
|
602
|
-
export { PopoverContentElement as PopoverContentElement_alias_1 }
|
|
603
|
-
|
|
604
|
-
declare const PopoverContentElement_base: BaseElementConstructor<PopoverContentProps>;
|
|
605
|
-
|
|
606
|
-
declare interface PopoverContentEvents extends PopoverContentEvents_2 {
|
|
607
|
-
}
|
|
608
|
-
export { PopoverContentEvents }
|
|
609
|
-
export { PopoverContentEvents as PopoverContentEvents_alias_1 }
|
|
610
|
-
|
|
611
|
-
export { popoverContentEvents }
|
|
612
|
-
export { popoverContentEvents as popoverContentEvents_alias_1 }
|
|
613
|
-
|
|
614
|
-
declare interface PopoverContentProps extends PopoverContentProps_2 {
|
|
615
|
-
}
|
|
616
|
-
export { PopoverContentProps }
|
|
617
|
-
export { PopoverContentProps as PopoverContentProps_alias_1 }
|
|
618
|
-
|
|
619
|
-
export { popoverContentProps }
|
|
620
|
-
export { popoverContentProps as popoverContentProps_alias_1 }
|
|
621
|
-
|
|
622
|
-
declare class PopoverRootElement extends PopoverRootElement_base {
|
|
623
|
-
}
|
|
624
|
-
export { PopoverRootElement }
|
|
625
|
-
export { PopoverRootElement as PopoverRootElement_alias_1 }
|
|
626
|
-
|
|
627
|
-
declare const PopoverRootElement_base: BaseElementConstructor<PopoverRootProps>;
|
|
628
|
-
|
|
629
|
-
declare interface PopoverRootEvents extends PopoverRootEvents_2 {
|
|
630
|
-
}
|
|
631
|
-
export { PopoverRootEvents }
|
|
632
|
-
export { PopoverRootEvents as PopoverRootEvents_alias_1 }
|
|
633
|
-
|
|
634
|
-
export { popoverRootEvents }
|
|
635
|
-
export { popoverRootEvents as popoverRootEvents_alias_1 }
|
|
636
|
-
|
|
637
|
-
declare interface PopoverRootProps extends PopoverRootProps_2 {
|
|
638
|
-
}
|
|
639
|
-
export { PopoverRootProps }
|
|
640
|
-
export { PopoverRootProps as PopoverRootProps_alias_1 }
|
|
641
|
-
|
|
642
|
-
export { popoverRootProps }
|
|
643
|
-
export { popoverRootProps as popoverRootProps_alias_1 }
|
|
644
|
-
|
|
645
|
-
declare class PopoverTriggerElement extends PopoverTriggerElement_base {
|
|
646
|
-
}
|
|
647
|
-
export { PopoverTriggerElement }
|
|
648
|
-
export { PopoverTriggerElement as PopoverTriggerElement_alias_1 }
|
|
649
|
-
|
|
650
|
-
declare const PopoverTriggerElement_base: BaseElementConstructor<PopoverTriggerProps>;
|
|
651
|
-
|
|
652
|
-
declare interface PopoverTriggerEvents extends PopoverTriggerEvents_2 {
|
|
653
|
-
}
|
|
654
|
-
export { PopoverTriggerEvents }
|
|
655
|
-
export { PopoverTriggerEvents as PopoverTriggerEvents_alias_1 }
|
|
656
|
-
|
|
657
|
-
export { popoverTriggerEvents }
|
|
658
|
-
export { popoverTriggerEvents as popoverTriggerEvents_alias_1 }
|
|
659
|
-
|
|
660
|
-
declare interface PopoverTriggerProps extends PopoverTriggerProps_2 {
|
|
661
|
-
}
|
|
662
|
-
export { PopoverTriggerProps }
|
|
663
|
-
export { PopoverTriggerProps as PopoverTriggerProps_alias_1 }
|
|
664
|
-
|
|
665
|
-
export { popoverTriggerProps }
|
|
666
|
-
export { popoverTriggerProps as popoverTriggerProps_alias_1 }
|
|
667
|
-
|
|
668
|
-
export declare const queryContext: Context<string>;
|
|
669
|
-
|
|
670
|
-
declare class ResizableHandleElement extends ResizableHandleElement_base {
|
|
671
|
-
}
|
|
672
|
-
export { ResizableHandleElement }
|
|
673
|
-
export { ResizableHandleElement as ResizableHandleElement_alias_1 }
|
|
674
|
-
|
|
675
|
-
declare const ResizableHandleElement_base: BaseElementConstructor<ResizableHandleProps>;
|
|
676
|
-
|
|
677
|
-
/** @internal */
|
|
678
|
-
declare interface ResizableHandleEvents {
|
|
679
|
-
}
|
|
680
|
-
export { ResizableHandleEvents }
|
|
681
|
-
export { ResizableHandleEvents as ResizableHandleEvents_alias_1 }
|
|
682
|
-
|
|
683
|
-
/** @internal */
|
|
684
|
-
declare const resizableHandleEvents: EventDeclarations<ResizableHandleEvents>;
|
|
685
|
-
export { resizableHandleEvents }
|
|
686
|
-
export { resizableHandleEvents as resizableHandleEvents_alias_1 }
|
|
687
|
-
|
|
688
|
-
declare interface ResizableHandleProps {
|
|
689
|
-
/**
|
|
690
|
-
* The position of the handle.
|
|
691
|
-
*
|
|
692
|
-
* @default "bottom-right"
|
|
693
|
-
*/
|
|
694
|
-
position: 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
695
|
-
}
|
|
696
|
-
export { ResizableHandleProps }
|
|
697
|
-
export { ResizableHandleProps as ResizableHandleProps_alias_1 }
|
|
698
|
-
|
|
699
|
-
/** @internal */
|
|
700
|
-
declare const resizableHandleProps: PropDeclarations<ResizableHandleProps>;
|
|
701
|
-
export { resizableHandleProps }
|
|
702
|
-
export { resizableHandleProps as resizableHandleProps_alias_1 }
|
|
703
|
-
|
|
704
|
-
declare class ResizableRootElement extends ResizableRootElement_base {
|
|
705
|
-
}
|
|
706
|
-
export { ResizableRootElement }
|
|
707
|
-
export { ResizableRootElement as ResizableRootElement_alias_1 }
|
|
708
|
-
|
|
709
|
-
declare const ResizableRootElement_base: BaseElementConstructor<ResizableRootProps>;
|
|
710
|
-
|
|
711
|
-
declare interface ResizableRootEvents {
|
|
712
|
-
resizeStart: CustomEvent<{
|
|
713
|
-
width: number;
|
|
714
|
-
height: number;
|
|
715
|
-
}>;
|
|
716
|
-
resizeEnd: CustomEvent<{
|
|
717
|
-
width: number;
|
|
718
|
-
height: number;
|
|
719
|
-
}>;
|
|
720
|
-
}
|
|
721
|
-
export { ResizableRootEvents }
|
|
722
|
-
export { ResizableRootEvents as ResizableRootEvents_alias_1 }
|
|
723
|
-
|
|
724
|
-
/** @internal */
|
|
725
|
-
declare const resizableRootEvents: EventDeclarations<ResizableRootEvents>;
|
|
726
|
-
export { resizableRootEvents }
|
|
727
|
-
export { resizableRootEvents as resizableRootEvents_alias_1 }
|
|
728
|
-
|
|
729
|
-
declare interface ResizableRootProps {
|
|
730
|
-
width: number | null;
|
|
731
|
-
height: number | null;
|
|
732
|
-
aspectRatio: number | null;
|
|
733
|
-
}
|
|
734
|
-
export { ResizableRootProps }
|
|
735
|
-
export { ResizableRootProps as ResizableRootProps_alias_1 }
|
|
736
|
-
|
|
737
|
-
/** @internal */
|
|
738
|
-
declare const resizableRootProps: PropDeclarations<ResizableRootProps>;
|
|
739
|
-
export { resizableRootProps }
|
|
740
|
-
export { resizableRootProps as resizableRootProps_alias_1 }
|
|
741
|
-
|
|
742
|
-
declare type TableCommandsExtension = ReturnType<typeof defineTableCommands>;
|
|
743
|
-
|
|
744
|
-
declare type TableCommandsExtension_2 = ReturnType<typeof defineTableCommands>;
|
|
745
|
-
|
|
746
|
-
declare class TableHandleColumnRootElement extends TableHandleColumnRootElement_base {
|
|
747
|
-
}
|
|
748
|
-
export { TableHandleColumnRootElement }
|
|
749
|
-
export { TableHandleColumnRootElement as TableHandleColumnRootElement_alias_1 }
|
|
750
|
-
|
|
751
|
-
declare const TableHandleColumnRootElement_base: BaseElementConstructor<TableHandleColumnRootProps>;
|
|
752
|
-
|
|
753
|
-
/** @internal */
|
|
754
|
-
declare interface TableHandleColumnRootEvents extends OverlayPositionerEvents_2 {
|
|
755
|
-
}
|
|
756
|
-
export { TableHandleColumnRootEvents }
|
|
757
|
-
export { TableHandleColumnRootEvents as TableHandleColumnRootEvents_alias_1 }
|
|
758
|
-
|
|
759
|
-
/** @internal */
|
|
760
|
-
declare const tableHandleColumnRootEvents: EventDeclarations<TableHandleColumnRootEvents>;
|
|
761
|
-
export { tableHandleColumnRootEvents }
|
|
762
|
-
export { tableHandleColumnRootEvents as tableHandleColumnRootEvents_alias_1 }
|
|
763
|
-
|
|
764
|
-
declare interface TableHandleColumnRootProps extends Omit<OverlayPositionerProps_2, 'placement'> {
|
|
765
|
-
/**
|
|
766
|
-
* The ProseKit editor instance.
|
|
767
|
-
*
|
|
768
|
-
* @default null
|
|
769
|
-
* @hidden
|
|
770
|
-
*/
|
|
771
|
-
editor: Editor | null;
|
|
772
|
-
/**
|
|
773
|
-
* The placement of the popover, relative to the hovered table cell.
|
|
774
|
-
*
|
|
775
|
-
* @default "top"
|
|
776
|
-
*/
|
|
777
|
-
placement: Placement;
|
|
778
|
-
}
|
|
779
|
-
export { TableHandleColumnRootProps }
|
|
780
|
-
export { TableHandleColumnRootProps as TableHandleColumnRootProps_alias_1 }
|
|
781
|
-
|
|
782
|
-
/** @internal */
|
|
783
|
-
declare const tableHandleColumnRootProps: PropDeclarations<TableHandleColumnRootProps>;
|
|
784
|
-
export { tableHandleColumnRootProps }
|
|
785
|
-
export { tableHandleColumnRootProps as tableHandleColumnRootProps_alias_1 }
|
|
786
|
-
|
|
787
|
-
declare class TableHandleColumnTriggerElement extends TableHandleColumnTriggerElement_base {
|
|
788
|
-
}
|
|
789
|
-
export { TableHandleColumnTriggerElement }
|
|
790
|
-
export { TableHandleColumnTriggerElement as TableHandleColumnTriggerElement_alias_1 }
|
|
791
|
-
|
|
792
|
-
declare const TableHandleColumnTriggerElement_base: BaseElementConstructor<TableHandleColumnTriggerProps>;
|
|
793
|
-
|
|
794
|
-
/** @internal */
|
|
795
|
-
declare interface TableHandleColumnTriggerEvents {
|
|
796
|
-
}
|
|
797
|
-
export { TableHandleColumnTriggerEvents }
|
|
798
|
-
export { TableHandleColumnTriggerEvents as TableHandleColumnTriggerEvents_alias_1 }
|
|
799
|
-
|
|
800
|
-
/** @internal */
|
|
801
|
-
declare const tableHandleColumnTriggerEvents: EventDeclarations<TableHandleColumnTriggerEvents>;
|
|
802
|
-
export { tableHandleColumnTriggerEvents }
|
|
803
|
-
export { tableHandleColumnTriggerEvents as tableHandleColumnTriggerEvents_alias_1 }
|
|
804
|
-
|
|
805
|
-
declare interface TableHandleColumnTriggerProps {
|
|
806
|
-
editor: Editor<TableCommandsExtension> | null;
|
|
807
|
-
}
|
|
808
|
-
export { TableHandleColumnTriggerProps }
|
|
809
|
-
export { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_alias_1 }
|
|
810
|
-
|
|
811
|
-
/** @internal */
|
|
812
|
-
declare const tableHandleColumnTriggerProps: PropDeclarations<TableHandleColumnTriggerProps>;
|
|
813
|
-
export { tableHandleColumnTriggerProps }
|
|
814
|
-
export { tableHandleColumnTriggerProps as tableHandleColumnTriggerProps_alias_1 }
|
|
815
|
-
|
|
816
|
-
declare class TableHandlePopoverContentElement extends TableHandlePopoverContentElement_base {
|
|
817
|
-
}
|
|
818
|
-
export { TableHandlePopoverContentElement }
|
|
819
|
-
export { TableHandlePopoverContentElement as TableHandlePopoverContentElement_alias_1 }
|
|
820
|
-
|
|
821
|
-
declare const TableHandlePopoverContentElement_base: BaseElementConstructor<TableHandlePopoverContentProps>;
|
|
822
|
-
|
|
823
|
-
declare interface TableHandlePopoverContentEvents extends MenuContentEvents {
|
|
824
|
-
}
|
|
825
|
-
export { TableHandlePopoverContentEvents }
|
|
826
|
-
export { TableHandlePopoverContentEvents as TableHandlePopoverContentEvents_alias_1 }
|
|
827
|
-
|
|
828
|
-
/** @internal */
|
|
829
|
-
declare const tableHandlePopoverContentEvents: EventDeclarations<TableHandlePopoverContentEvents>;
|
|
830
|
-
export { tableHandlePopoverContentEvents }
|
|
831
|
-
export { tableHandlePopoverContentEvents as tableHandlePopoverContentEvents_alias_1 }
|
|
832
|
-
|
|
833
|
-
declare interface TableHandlePopoverContentProps extends Omit<MenuContentProps, 'placement' | 'offset'> {
|
|
834
|
-
/**
|
|
835
|
-
* @default 'bottom-start'
|
|
836
|
-
*/
|
|
837
|
-
placement: MenuContentProps['placement'];
|
|
838
|
-
/**
|
|
839
|
-
* @default {mainAxis: -4, crossAxis: 4}
|
|
840
|
-
*/
|
|
841
|
-
offset: MenuContentProps['offset'];
|
|
842
|
-
editor: Editor | null;
|
|
843
|
-
}
|
|
844
|
-
export { TableHandlePopoverContentProps }
|
|
845
|
-
export { TableHandlePopoverContentProps as TableHandlePopoverContentProps_alias_1 }
|
|
846
|
-
|
|
847
|
-
/** @internal */
|
|
848
|
-
declare const tableHandlePopoverContentProps: PropDeclarations<TableHandlePopoverContentProps>;
|
|
849
|
-
export { tableHandlePopoverContentProps }
|
|
850
|
-
export { tableHandlePopoverContentProps as tableHandlePopoverContentProps_alias_1 }
|
|
851
|
-
|
|
852
|
-
declare class TableHandlePopoverItemElement extends TableHandlePopoverItemElement_base {
|
|
853
|
-
}
|
|
854
|
-
export { TableHandlePopoverItemElement }
|
|
855
|
-
export { TableHandlePopoverItemElement as TableHandlePopoverItemElement_alias_1 }
|
|
856
|
-
|
|
857
|
-
declare const TableHandlePopoverItemElement_base: BaseElementConstructor<TableHandlePopoverItemProps>;
|
|
858
|
-
|
|
859
|
-
declare interface TableHandlePopoverItemEvents extends MenuItemEvents {
|
|
860
|
-
}
|
|
861
|
-
export { TableHandlePopoverItemEvents }
|
|
862
|
-
export { TableHandlePopoverItemEvents as TableHandlePopoverItemEvents_alias_1 }
|
|
863
|
-
|
|
864
|
-
/** @internal */
|
|
865
|
-
declare const tableHandlePopoverItemEvents: EventDeclarations<TableHandlePopoverItemEvents>;
|
|
866
|
-
export { tableHandlePopoverItemEvents }
|
|
867
|
-
export { tableHandlePopoverItemEvents as tableHandlePopoverItemEvents_alias_1 }
|
|
868
|
-
|
|
869
|
-
declare interface TableHandlePopoverItemProps extends MenuItemProps {
|
|
870
|
-
}
|
|
871
|
-
export { TableHandlePopoverItemProps }
|
|
872
|
-
export { TableHandlePopoverItemProps as TableHandlePopoverItemProps_alias_1 }
|
|
873
|
-
|
|
874
|
-
/** @internal */
|
|
875
|
-
declare const tableHandlePopoverItemProps: PropDeclarations<TableHandlePopoverItemProps>;
|
|
876
|
-
export { tableHandlePopoverItemProps }
|
|
877
|
-
export { tableHandlePopoverItemProps as tableHandlePopoverItemProps_alias_1 }
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* @internal
|
|
881
|
-
*/
|
|
882
|
-
export declare type TableHandleRootContext = HoveringCellInfo | null;
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* @internal
|
|
886
|
-
*/
|
|
887
|
-
export declare const tableHandleRootContext: Context<TableHandleRootContext>;
|
|
888
|
-
|
|
889
|
-
declare class TableHandleRootElement extends TableHandleRootElement_base {
|
|
890
|
-
}
|
|
891
|
-
export { TableHandleRootElement }
|
|
892
|
-
export { TableHandleRootElement as TableHandleRootElement_alias_1 }
|
|
893
|
-
|
|
894
|
-
declare const TableHandleRootElement_base: BaseElementConstructor<TableHandleRootProps>;
|
|
895
|
-
|
|
896
|
-
/** @internal */
|
|
897
|
-
declare interface TableHandleRootEvents {
|
|
898
|
-
}
|
|
899
|
-
export { TableHandleRootEvents }
|
|
900
|
-
export { TableHandleRootEvents as TableHandleRootEvents_alias_1 }
|
|
901
|
-
|
|
902
|
-
/** @internal */
|
|
903
|
-
declare const tableHandleRootEvents: EventDeclarations<TableHandleRootEvents>;
|
|
904
|
-
export { tableHandleRootEvents }
|
|
905
|
-
export { tableHandleRootEvents as tableHandleRootEvents_alias_1 }
|
|
906
|
-
|
|
907
|
-
declare interface TableHandleRootProps {
|
|
908
|
-
/**
|
|
909
|
-
* The ProseKit editor instance.
|
|
910
|
-
*
|
|
911
|
-
* @default null
|
|
912
|
-
* @hidden
|
|
913
|
-
*/
|
|
914
|
-
editor: Editor | null;
|
|
915
|
-
}
|
|
916
|
-
export { TableHandleRootProps }
|
|
917
|
-
export { TableHandleRootProps as TableHandleRootProps_alias_1 }
|
|
918
|
-
|
|
919
|
-
/** @internal */
|
|
920
|
-
declare const tableHandleRootProps: PropDeclarations<TableHandleRootProps>;
|
|
921
|
-
export { tableHandleRootProps }
|
|
922
|
-
export { tableHandleRootProps as tableHandleRootProps_alias_1 }
|
|
923
|
-
|
|
924
|
-
declare class TableHandleRowRootElement extends TableHandleRowRootElement_base {
|
|
925
|
-
}
|
|
926
|
-
export { TableHandleRowRootElement }
|
|
927
|
-
export { TableHandleRowRootElement as TableHandleRowRootElement_alias_1 }
|
|
928
|
-
|
|
929
|
-
declare const TableHandleRowRootElement_base: BaseElementConstructor<TableHandleRowRootProps>;
|
|
930
|
-
|
|
931
|
-
/** @internal */
|
|
932
|
-
declare interface TableHandleRowRootEvents extends OverlayPositionerEvents_2 {
|
|
933
|
-
}
|
|
934
|
-
export { TableHandleRowRootEvents }
|
|
935
|
-
export { TableHandleRowRootEvents as TableHandleRowRootEvents_alias_1 }
|
|
936
|
-
|
|
937
|
-
/** @internal */
|
|
938
|
-
declare const tableHandleRowRootEvents: EventDeclarations<TableHandleRowRootEvents>;
|
|
939
|
-
export { tableHandleRowRootEvents }
|
|
940
|
-
export { tableHandleRowRootEvents as tableHandleRowRootEvents_alias_1 }
|
|
941
|
-
|
|
942
|
-
declare interface TableHandleRowRootProps extends Omit<OverlayPositionerProps_2, 'placement'> {
|
|
943
|
-
/**
|
|
944
|
-
* The ProseKit editor instance.
|
|
945
|
-
*
|
|
946
|
-
* @default null
|
|
947
|
-
* @hidden
|
|
948
|
-
*/
|
|
949
|
-
editor: Editor | null;
|
|
950
|
-
/**
|
|
951
|
-
* The placement of the popover, relative to the hovered table cell.
|
|
952
|
-
*
|
|
953
|
-
* @default "left"
|
|
954
|
-
*/
|
|
955
|
-
placement: Placement;
|
|
956
|
-
}
|
|
957
|
-
export { TableHandleRowRootProps }
|
|
958
|
-
export { TableHandleRowRootProps as TableHandleRowRootProps_alias_1 }
|
|
959
|
-
|
|
960
|
-
/** @internal */
|
|
961
|
-
declare const tableHandleRowRootProps: PropDeclarations<TableHandleRowRootProps>;
|
|
962
|
-
export { tableHandleRowRootProps }
|
|
963
|
-
export { tableHandleRowRootProps as tableHandleRowRootProps_alias_1 }
|
|
964
|
-
|
|
965
|
-
declare class TableHandleRowTriggerElement extends TableHandleRowTriggerElement_base {
|
|
966
|
-
}
|
|
967
|
-
export { TableHandleRowTriggerElement }
|
|
968
|
-
export { TableHandleRowTriggerElement as TableHandleRowTriggerElement_alias_1 }
|
|
969
|
-
|
|
970
|
-
declare const TableHandleRowTriggerElement_base: BaseElementConstructor<TableHandleRowTriggerProps>;
|
|
971
|
-
|
|
972
|
-
declare interface TableHandleRowTriggerEvents {
|
|
973
|
-
select: CustomEvent<void>;
|
|
974
|
-
}
|
|
975
|
-
export { TableHandleRowTriggerEvents }
|
|
976
|
-
export { TableHandleRowTriggerEvents as TableHandleRowTriggerEvents_alias_1 }
|
|
977
|
-
|
|
978
|
-
/** @internal */
|
|
979
|
-
declare const tableHandleRowTriggerEvents: EventDeclarations<TableHandleRowTriggerEvents>;
|
|
980
|
-
export { tableHandleRowTriggerEvents }
|
|
981
|
-
export { tableHandleRowTriggerEvents as tableHandleRowTriggerEvents_alias_1 }
|
|
982
|
-
|
|
983
|
-
declare interface TableHandleRowTriggerProps {
|
|
984
|
-
editor: Editor<TableCommandsExtension_2> | null;
|
|
985
|
-
}
|
|
986
|
-
export { TableHandleRowTriggerProps }
|
|
987
|
-
export { TableHandleRowTriggerProps as TableHandleRowTriggerProps_alias_1 }
|
|
988
|
-
|
|
989
|
-
/** @internal */
|
|
990
|
-
declare const tableHandleRowTriggerProps: PropDeclarations<TableHandleRowTriggerProps>;
|
|
991
|
-
export { tableHandleRowTriggerProps }
|
|
992
|
-
export { tableHandleRowTriggerProps as tableHandleRowTriggerProps_alias_1 }
|
|
993
|
-
|
|
994
|
-
/**
|
|
995
|
-
* @internal
|
|
996
|
-
*/
|
|
997
|
-
export declare function throttle<Args extends any[]>(callback: (...args: Args) => void, wait: number): (...args: Args) => void;
|
|
998
|
-
|
|
999
|
-
declare class TooltipContentElement extends TooltipContentElement_base {
|
|
1000
|
-
}
|
|
1001
|
-
export { TooltipContentElement }
|
|
1002
|
-
export { TooltipContentElement as TooltipContentElement_alias_1 }
|
|
1003
|
-
|
|
1004
|
-
declare const TooltipContentElement_base: BaseElementConstructor<TooltipContentProps>;
|
|
1005
|
-
|
|
1006
|
-
declare interface TooltipContentEvents extends TooltipContentEvents_2 {
|
|
1007
|
-
}
|
|
1008
|
-
export { TooltipContentEvents }
|
|
1009
|
-
export { TooltipContentEvents as TooltipContentEvents_alias_1 }
|
|
1010
|
-
|
|
1011
|
-
export { tooltipContentEvents }
|
|
1012
|
-
export { tooltipContentEvents as tooltipContentEvents_alias_1 }
|
|
1013
|
-
|
|
1014
|
-
declare interface TooltipContentProps extends TooltipContentProps_2 {
|
|
1015
|
-
}
|
|
1016
|
-
export { TooltipContentProps }
|
|
1017
|
-
export { TooltipContentProps as TooltipContentProps_alias_1 }
|
|
1018
|
-
|
|
1019
|
-
declare const tooltipContentProps: {
|
|
1020
|
-
shift: {
|
|
1021
|
-
default: boolean;
|
|
1022
|
-
};
|
|
1023
|
-
flip: {
|
|
1024
|
-
default: boolean;
|
|
1025
|
-
};
|
|
1026
|
-
offset: {
|
|
1027
|
-
default: number;
|
|
1028
|
-
};
|
|
1029
|
-
overflowPadding: {
|
|
1030
|
-
default: number;
|
|
1031
|
-
};
|
|
1032
|
-
hoist: {
|
|
1033
|
-
default: boolean;
|
|
1034
|
-
};
|
|
1035
|
-
boundary: {
|
|
1036
|
-
default: never[];
|
|
1037
|
-
};
|
|
1038
|
-
inline: PropDeclaration<boolean>;
|
|
1039
|
-
placement: PropDeclaration<Placement>;
|
|
1040
|
-
fitViewport: PropDeclaration<boolean>;
|
|
1041
|
-
strategy: PropDeclaration<"fixed" | "absolute">;
|
|
1042
|
-
autoUpdate: PropDeclaration<boolean | AutoUpdateOptions>;
|
|
1043
|
-
transform: PropDeclaration<boolean>;
|
|
1044
|
-
overlap: PropDeclaration<boolean>;
|
|
1045
|
-
sameWidth: PropDeclaration<boolean>;
|
|
1046
|
-
sameHeight: PropDeclaration<boolean>;
|
|
1047
|
-
hide: PropDeclaration<boolean>;
|
|
1048
|
-
rootBoundary: PropDeclaration<RootBoundary>;
|
|
1049
|
-
elementContext: PropDeclaration<ElementContext>;
|
|
1050
|
-
altBoundary: PropDeclaration<boolean>;
|
|
1051
|
-
};
|
|
1052
|
-
export { tooltipContentProps }
|
|
1053
|
-
export { tooltipContentProps as tooltipContentProps_alias_1 }
|
|
1054
|
-
|
|
1055
|
-
declare class TooltipRootElement extends TooltipRootElement_base {
|
|
1056
|
-
}
|
|
1057
|
-
export { TooltipRootElement }
|
|
1058
|
-
export { TooltipRootElement as TooltipRootElement_alias_1 }
|
|
1059
|
-
|
|
1060
|
-
declare const TooltipRootElement_base: BaseElementConstructor<TooltipRootProps>;
|
|
1061
|
-
|
|
1062
|
-
declare interface TooltipRootEvents extends TooltipRootEvents_2 {
|
|
1063
|
-
}
|
|
1064
|
-
export { TooltipRootEvents }
|
|
1065
|
-
export { TooltipRootEvents as TooltipRootEvents_alias_1 }
|
|
1066
|
-
|
|
1067
|
-
export { tooltipRootEvents }
|
|
1068
|
-
export { tooltipRootEvents as tooltipRootEvents_alias_1 }
|
|
1069
|
-
|
|
1070
|
-
declare interface TooltipRootProps extends TooltipRootProps_2 {
|
|
1071
|
-
}
|
|
1072
|
-
export { TooltipRootProps }
|
|
1073
|
-
export { TooltipRootProps as TooltipRootProps_alias_1 }
|
|
1074
|
-
|
|
1075
|
-
export { tooltipRootProps }
|
|
1076
|
-
export { tooltipRootProps as tooltipRootProps_alias_1 }
|
|
1077
|
-
|
|
1078
|
-
declare class TooltipTriggerElement extends TooltipTriggerElement_base {
|
|
1079
|
-
}
|
|
1080
|
-
export { TooltipTriggerElement }
|
|
1081
|
-
export { TooltipTriggerElement as TooltipTriggerElement_alias_1 }
|
|
1082
|
-
|
|
1083
|
-
declare const TooltipTriggerElement_base: BaseElementConstructor<TooltipTriggerProps>;
|
|
1084
|
-
|
|
1085
|
-
declare interface TooltipTriggerEvents extends TooltipTriggerEvents_2 {
|
|
1086
|
-
}
|
|
1087
|
-
export { TooltipTriggerEvents }
|
|
1088
|
-
export { TooltipTriggerEvents as TooltipTriggerEvents_alias_1 }
|
|
1089
|
-
|
|
1090
|
-
export { tooltipTriggerEvents }
|
|
1091
|
-
export { tooltipTriggerEvents as tooltipTriggerEvents_alias_1 }
|
|
1092
|
-
|
|
1093
|
-
declare interface TooltipTriggerProps extends TooltipTriggerProps_2 {
|
|
1094
|
-
}
|
|
1095
|
-
export { TooltipTriggerProps }
|
|
1096
|
-
export { TooltipTriggerProps as TooltipTriggerProps_alias_1 }
|
|
1097
|
-
|
|
1098
|
-
export { tooltipTriggerProps }
|
|
1099
|
-
export { tooltipTriggerProps as tooltipTriggerProps_alias_1 }
|
|
1100
|
-
|
|
1101
|
-
export declare const useAutocompleteEmpty: typeof useListboxEmpty;
|
|
1102
|
-
|
|
1103
|
-
export declare function useAutocompleteItem(element: ConnectableElement, { state, emit }: SetupOptions<AutocompleteItemProps, AutocompleteItemEvents>): void;
|
|
1104
|
-
|
|
1105
|
-
export declare function useAutocompleteList(element: ConnectableElement, { state, emit }: SetupOptions<AutocompleteListProps, AutocompleteListEvents>): void;
|
|
1106
|
-
|
|
1107
|
-
export declare function useAutocompletePopover(host: ConnectableElement, { state }: {
|
|
1108
|
-
state: SignalState<AutocompletePopoverProps>;
|
|
1109
|
-
}): void;
|
|
1110
|
-
|
|
1111
|
-
export declare function useBlockHandleAdd(host: ConnectableElement, { state }: {
|
|
1112
|
-
state: SignalState<BlockHandleAddProps>;
|
|
1113
|
-
}): void;
|
|
1114
|
-
|
|
1115
|
-
export declare function useBlockHandleDraggable(host: ConnectableElement, { state }: {
|
|
1116
|
-
state: SignalState<BlockHandleDraggableProps>;
|
|
1117
|
-
}): void;
|
|
1118
|
-
|
|
1119
|
-
export declare function useBlockHandlePopover(host: ConnectableElement, { state }: {
|
|
1120
|
-
state: SignalState<BlockHandlePopoverProps>;
|
|
1121
|
-
}): void;
|
|
1122
|
-
|
|
1123
|
-
export declare function useEditorExtension(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, extension: Extension): void;
|
|
1124
|
-
|
|
1125
|
-
/**
|
|
1126
|
-
* @internal
|
|
1127
|
-
*/
|
|
1128
|
-
export declare function useEditorFocusChangeEvent(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, handler: FocusChangeHandler): void;
|
|
1129
|
-
|
|
1130
|
-
export declare function useEditorTyping(host: ConnectableElement, editor: ReadonlySignal<Editor | null>): ReadonlySignal<boolean>;
|
|
1131
|
-
|
|
1132
|
-
/**
|
|
1133
|
-
* @internal
|
|
1134
|
-
*/
|
|
1135
|
-
export declare function useEditorUpdateEvent(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, handler: UpdateHandler): void;
|
|
1136
|
-
|
|
1137
|
-
export declare function useFirstRendering(host: ConnectableElement): ReadonlySignal<boolean>;
|
|
1138
|
-
|
|
1139
|
-
export declare function useInlinePopover(host: ConnectableElement, { state }: {
|
|
1140
|
-
state: SignalState<InlinePopoverProps>;
|
|
1141
|
-
}): void;
|
|
1142
|
-
|
|
1143
|
-
export declare function useKeymap(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, keymap: Keymap): void;
|
|
1144
|
-
|
|
1145
|
-
export { usePopoverContent }
|
|
1146
|
-
|
|
1147
|
-
export { usePopoverRoot }
|
|
1148
|
-
|
|
1149
|
-
export { usePopoverTrigger }
|
|
1150
|
-
|
|
1151
|
-
export declare function useResizableHandle(host: ConnectableElement, { state }: {
|
|
1152
|
-
state: SignalState<ResizableHandleProps>;
|
|
1153
|
-
}): void;
|
|
1154
|
-
|
|
1155
|
-
export declare function useResizableRoot(host: ConnectableElement, { state, emit }: SetupOptions<ResizableRootProps, ResizableRootEvents>): void;
|
|
1156
|
-
|
|
1157
|
-
export declare function useTableHandleColumnRoot(host: ConnectableElement, { state }: {
|
|
1158
|
-
state: SignalState<TableHandleColumnRootProps>;
|
|
1159
|
-
}): void;
|
|
1160
|
-
|
|
1161
|
-
export declare function useTableHandleColumnTrigger(host: ConnectableElement, { state }: {
|
|
1162
|
-
state: SignalState<TableHandleColumnTriggerProps>;
|
|
1163
|
-
}): void;
|
|
1164
|
-
|
|
1165
|
-
export declare function useTableHandlePopoverContent(host: ConnectableElement, { state, emit, }: SetupOptions<TableHandlePopoverContentProps, TableHandlePopoverContentEvents>): void;
|
|
1166
|
-
|
|
1167
|
-
export declare function useTableHandlePopoverItem(element: ConnectableElement, { state, emit, }: SetupOptions<TableHandlePopoverItemProps, TableHandlePopoverItemEvents>): void;
|
|
1168
|
-
|
|
1169
|
-
export declare function useTableHandleRoot(host: ConnectableElement, { state }: {
|
|
1170
|
-
state: SignalState<TableHandleRootProps>;
|
|
1171
|
-
}): void;
|
|
1172
|
-
|
|
1173
|
-
export declare function useTableHandleRowRoot(host: ConnectableElement, { state }: SetupOptions<TableHandleRowRootProps, TableHandleRowRootEvents>): void;
|
|
1174
|
-
|
|
1175
|
-
export declare function useTableHandleRowTrigger(host: ConnectableElement, { state, }: SetupOptions<TableHandleRowTriggerProps, TableHandleRowTriggerEvents>): void;
|
|
1176
|
-
|
|
1177
|
-
export { useTooltipContent }
|
|
1178
|
-
|
|
1179
|
-
export { useTooltipRoot }
|
|
1180
|
-
|
|
1181
|
-
export { useTooltipTrigger }
|
|
1182
|
-
|
|
1183
|
-
export { }
|
|
1
|
+
import { AutoUpdateOptions } from '@floating-ui/dom';
|
|
2
|
+
import { BaseElementConstructor } from '@aria-ui/core';
|
|
3
|
+
import { ConnectableElement } from '@aria-ui/core';
|
|
4
|
+
import { Context } from '@aria-ui/core';
|
|
5
|
+
import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
|
|
6
|
+
import type { defineTableCommands } from '@prosekit/extensions/table';
|
|
7
|
+
import { Editor } from '@prosekit/core';
|
|
8
|
+
import type { EditorView } from '@prosekit/pm/view';
|
|
9
|
+
import { ElementContext } from '@floating-ui/dom';
|
|
10
|
+
import { EventDeclarations } from '@aria-ui/core';
|
|
11
|
+
import type { Extension } from '@prosekit/core';
|
|
12
|
+
import { FocusChangeHandler } from '@prosekit/core';
|
|
13
|
+
import { ItemFilter } from '@aria-ui/collection';
|
|
14
|
+
import { Keymap } from '@prosekit/core';
|
|
15
|
+
import { ListboxEvents } from '@aria-ui/listbox';
|
|
16
|
+
import { ListboxItemEvents } from '@aria-ui/listbox';
|
|
17
|
+
import { ListboxProps } from '@aria-ui/listbox';
|
|
18
|
+
import { MenuContentEvents } from '@aria-ui/menu/elements';
|
|
19
|
+
import { MenuContentProps } from '@aria-ui/menu/elements';
|
|
20
|
+
import { MenuItemEvents } from '@aria-ui/menu';
|
|
21
|
+
import { MenuItemProps } from '@aria-ui/menu';
|
|
22
|
+
import { Options } from 'tsup';
|
|
23
|
+
import { OverlayPositionerEvents } from '@aria-ui/overlay/elements';
|
|
24
|
+
import { OverlayPositionerEvents as OverlayPositionerEvents_2 } from '@aria-ui/overlay';
|
|
25
|
+
import { OverlayPositionerProps } from '@aria-ui/overlay/elements';
|
|
26
|
+
import { OverlayPositionerProps as OverlayPositionerProps_2 } from '@aria-ui/overlay';
|
|
27
|
+
import { Placement } from '@floating-ui/dom';
|
|
28
|
+
import { PlainExtension } from '@prosekit/core';
|
|
29
|
+
import { popoverContentEvents } from '@aria-ui/popover/elements';
|
|
30
|
+
import type { PopoverContentEvents as PopoverContentEvents_2 } from '@aria-ui/popover/elements';
|
|
31
|
+
import { popoverContentProps } from '@aria-ui/popover/elements';
|
|
32
|
+
import type { PopoverContentProps as PopoverContentProps_2 } from '@aria-ui/popover/elements';
|
|
33
|
+
import { popoverRootEvents } from '@aria-ui/popover/elements';
|
|
34
|
+
import type { PopoverRootEvents as PopoverRootEvents_2 } from '@aria-ui/popover/elements';
|
|
35
|
+
import { popoverRootProps } from '@aria-ui/popover/elements';
|
|
36
|
+
import type { PopoverRootProps as PopoverRootProps_2 } from '@aria-ui/popover/elements';
|
|
37
|
+
import { popoverTriggerEvents } from '@aria-ui/popover/elements';
|
|
38
|
+
import type { PopoverTriggerEvents as PopoverTriggerEvents_2 } from '@aria-ui/popover/elements';
|
|
39
|
+
import { popoverTriggerProps } from '@aria-ui/popover/elements';
|
|
40
|
+
import type { PopoverTriggerProps as PopoverTriggerProps_2 } from '@aria-ui/popover/elements';
|
|
41
|
+
import { PropDeclaration } from '@aria-ui/core';
|
|
42
|
+
import { PropDeclarations } from '@aria-ui/core';
|
|
43
|
+
import type { ProseMirrorNode } from '@prosekit/pm/model';
|
|
44
|
+
import { ReadonlySignal } from '@aria-ui/core';
|
|
45
|
+
import type { ReferenceElement } from '@floating-ui/dom';
|
|
46
|
+
import { RootBoundary } from '@floating-ui/dom';
|
|
47
|
+
import { SetupOptions } from '@aria-ui/core';
|
|
48
|
+
import { SignalState } from '@aria-ui/core';
|
|
49
|
+
import { tooltipContentEvents } from '@aria-ui/tooltip';
|
|
50
|
+
import { TooltipContentEvents as TooltipContentEvents_2 } from '@aria-ui/tooltip';
|
|
51
|
+
import { TooltipContentProps as TooltipContentProps_2 } from '@aria-ui/tooltip';
|
|
52
|
+
import { tooltipRootEvents } from '@aria-ui/tooltip/elements';
|
|
53
|
+
import type { TooltipRootEvents as TooltipRootEvents_2 } from '@aria-ui/tooltip/elements';
|
|
54
|
+
import { tooltipRootProps } from '@aria-ui/tooltip/elements';
|
|
55
|
+
import type { TooltipRootProps as TooltipRootProps_2 } from '@aria-ui/tooltip/elements';
|
|
56
|
+
import { tooltipTriggerEvents } from '@aria-ui/tooltip/elements';
|
|
57
|
+
import type { TooltipTriggerEvents as TooltipTriggerEvents_2 } from '@aria-ui/tooltip/elements';
|
|
58
|
+
import { tooltipTriggerProps } from '@aria-ui/tooltip/elements';
|
|
59
|
+
import type { TooltipTriggerProps as TooltipTriggerProps_2 } from '@aria-ui/tooltip/elements';
|
|
60
|
+
import { Union } from '@prosekit/core';
|
|
61
|
+
import { UpdateHandler } from '@prosekit/core';
|
|
62
|
+
import { useListboxEmpty } from '@aria-ui/listbox/elements';
|
|
63
|
+
import { usePopoverContent } from '@aria-ui/popover/elements';
|
|
64
|
+
import { usePopoverRoot } from '@aria-ui/popover/elements';
|
|
65
|
+
import { usePopoverTrigger } from '@aria-ui/popover/elements';
|
|
66
|
+
import { useTooltipContent } from '@aria-ui/tooltip/elements';
|
|
67
|
+
import { useTooltipRoot } from '@aria-ui/tooltip/elements';
|
|
68
|
+
import { useTooltipTrigger } from '@aria-ui/tooltip/elements';
|
|
69
|
+
import type { VirtualElement } from '@floating-ui/dom';
|
|
70
|
+
|
|
71
|
+
declare class AutocompleteEmptyElement extends AutocompleteEmptyElement_base {
|
|
72
|
+
}
|
|
73
|
+
export { AutocompleteEmptyElement }
|
|
74
|
+
export { AutocompleteEmptyElement as AutocompleteEmptyElement_alias_1 }
|
|
75
|
+
|
|
76
|
+
declare const AutocompleteEmptyElement_base: BaseElementConstructor<AutocompleteEmptyProps>;
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
declare interface AutocompleteEmptyEvents {
|
|
80
|
+
}
|
|
81
|
+
export { AutocompleteEmptyEvents }
|
|
82
|
+
export { AutocompleteEmptyEvents as AutocompleteEmptyEvents_alias_1 }
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
declare const autocompleteEmptyEvents: EventDeclarations<AutocompleteEmptyEvents>;
|
|
86
|
+
export { autocompleteEmptyEvents }
|
|
87
|
+
export { autocompleteEmptyEvents as autocompleteEmptyEvents_alias_1 }
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
declare interface AutocompleteEmptyProps {
|
|
91
|
+
}
|
|
92
|
+
export { AutocompleteEmptyProps }
|
|
93
|
+
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
declare const autocompleteEmptyProps: PropDeclarations<AutocompleteEmptyProps>;
|
|
97
|
+
export { autocompleteEmptyProps }
|
|
98
|
+
export { autocompleteEmptyProps as autocompleteEmptyProps_alias_1 }
|
|
99
|
+
|
|
100
|
+
declare class AutocompleteItemElement extends AutocompleteItemElement_base {
|
|
101
|
+
}
|
|
102
|
+
export { AutocompleteItemElement }
|
|
103
|
+
export { AutocompleteItemElement as AutocompleteItemElement_alias_1 }
|
|
104
|
+
|
|
105
|
+
declare const AutocompleteItemElement_base: BaseElementConstructor<AutocompleteItemProps>;
|
|
106
|
+
|
|
107
|
+
declare interface AutocompleteItemEvents extends ListboxItemEvents {
|
|
108
|
+
}
|
|
109
|
+
export { AutocompleteItemEvents }
|
|
110
|
+
export { AutocompleteItemEvents as AutocompleteItemEvents_alias_1 }
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
declare const autocompleteItemEvents: EventDeclarations<AutocompleteItemEvents>;
|
|
114
|
+
export { autocompleteItemEvents }
|
|
115
|
+
export { autocompleteItemEvents as autocompleteItemEvents_alias_1 }
|
|
116
|
+
|
|
117
|
+
declare interface AutocompleteItemProps {
|
|
118
|
+
/**
|
|
119
|
+
* The value of the item, which will be matched against the query.
|
|
120
|
+
*
|
|
121
|
+
* If not provided, the value is the item's text content.
|
|
122
|
+
*
|
|
123
|
+
* @default ""
|
|
124
|
+
*/
|
|
125
|
+
value: string;
|
|
126
|
+
}
|
|
127
|
+
export { AutocompleteItemProps }
|
|
128
|
+
export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
declare const autocompleteItemProps: PropDeclarations<AutocompleteItemProps>;
|
|
132
|
+
export { autocompleteItemProps }
|
|
133
|
+
export { autocompleteItemProps as autocompleteItemProps_alias_1 }
|
|
134
|
+
|
|
135
|
+
declare class AutocompleteListElement extends AutocompleteListElement_base {
|
|
136
|
+
}
|
|
137
|
+
export { AutocompleteListElement }
|
|
138
|
+
export { AutocompleteListElement as AutocompleteListElement_alias_1 }
|
|
139
|
+
|
|
140
|
+
declare const AutocompleteListElement_base: BaseElementConstructor<AutocompleteListProps>;
|
|
141
|
+
|
|
142
|
+
declare interface AutocompleteListEvents extends ListboxEvents {
|
|
143
|
+
}
|
|
144
|
+
export { AutocompleteListEvents }
|
|
145
|
+
export { AutocompleteListEvents as AutocompleteListEvents_alias_1 }
|
|
146
|
+
|
|
147
|
+
declare const autocompleteListEvents: EventDeclarations<ListboxEvents>;
|
|
148
|
+
export { autocompleteListEvents }
|
|
149
|
+
export { autocompleteListEvents as autocompleteListEvents_alias_1 }
|
|
150
|
+
|
|
151
|
+
declare interface AutocompleteListProps extends Pick<ListboxProps, 'filter'> {
|
|
152
|
+
/**
|
|
153
|
+
* The ProseKit editor instance.
|
|
154
|
+
*
|
|
155
|
+
* @default null
|
|
156
|
+
* @hidden
|
|
157
|
+
*/
|
|
158
|
+
editor: Editor | null;
|
|
159
|
+
}
|
|
160
|
+
export { AutocompleteListProps }
|
|
161
|
+
export { AutocompleteListProps as AutocompleteListProps_alias_1 }
|
|
162
|
+
|
|
163
|
+
declare const autocompleteListProps: {
|
|
164
|
+
filter: PropDeclaration<ItemFilter | null>;
|
|
165
|
+
editor: {
|
|
166
|
+
default: null;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export { autocompleteListProps }
|
|
170
|
+
export { autocompleteListProps as autocompleteListProps_alias_1 }
|
|
171
|
+
|
|
172
|
+
declare class AutocompletePopoverElement extends AutocompletePopoverElement_base {
|
|
173
|
+
}
|
|
174
|
+
export { AutocompletePopoverElement }
|
|
175
|
+
export { AutocompletePopoverElement as AutocompletePopoverElement_alias_1 }
|
|
176
|
+
|
|
177
|
+
declare const AutocompletePopoverElement_base: BaseElementConstructor<AutocompletePopoverProps>;
|
|
178
|
+
|
|
179
|
+
declare interface AutocompletePopoverEvents extends OverlayPositionerEvents {
|
|
180
|
+
}
|
|
181
|
+
export { AutocompletePopoverEvents }
|
|
182
|
+
export { AutocompletePopoverEvents as AutocompletePopoverEvents_alias_1 }
|
|
183
|
+
|
|
184
|
+
/** @internal */
|
|
185
|
+
declare const autocompletePopoverEvents: EventDeclarations<AutocompletePopoverEvents>;
|
|
186
|
+
export { autocompletePopoverEvents }
|
|
187
|
+
export { autocompletePopoverEvents as autocompletePopoverEvents_alias_1 }
|
|
188
|
+
|
|
189
|
+
declare interface AutocompletePopoverProps extends OverlayPositionerProps {
|
|
190
|
+
/**
|
|
191
|
+
* The ProseKit editor instance.
|
|
192
|
+
*
|
|
193
|
+
* @default null
|
|
194
|
+
* @hidden
|
|
195
|
+
*/
|
|
196
|
+
editor: Editor | null;
|
|
197
|
+
/**
|
|
198
|
+
* The regular expression to match the query text to autocomplete.
|
|
199
|
+
*
|
|
200
|
+
* @default null
|
|
201
|
+
*/
|
|
202
|
+
regex: RegExp | null;
|
|
203
|
+
/**
|
|
204
|
+
* A callback that is called when the query changes.
|
|
205
|
+
*/
|
|
206
|
+
onQueryChange: ((query: string) => void) | null;
|
|
207
|
+
/**
|
|
208
|
+
* A callback that is called when the open state changes.
|
|
209
|
+
*/
|
|
210
|
+
onOpenChange: ((open: boolean) => void) | null;
|
|
211
|
+
/**
|
|
212
|
+
* The placement of the popover, relative to the text cursor.
|
|
213
|
+
*
|
|
214
|
+
* @default "bottom-start"
|
|
215
|
+
*/
|
|
216
|
+
placement: OverlayPositionerProps['placement'];
|
|
217
|
+
/**
|
|
218
|
+
* The distance between the popover and the hovered block.
|
|
219
|
+
*
|
|
220
|
+
* @default 4
|
|
221
|
+
*/
|
|
222
|
+
offset: OverlayPositionerProps['offset'];
|
|
223
|
+
/**
|
|
224
|
+
* @default true
|
|
225
|
+
*/
|
|
226
|
+
inline: OverlayPositionerProps['inline'];
|
|
227
|
+
/**
|
|
228
|
+
* @default true
|
|
229
|
+
*/
|
|
230
|
+
hoist: OverlayPositionerProps['hoist'];
|
|
231
|
+
/**
|
|
232
|
+
* @default true
|
|
233
|
+
*/
|
|
234
|
+
fitViewport: OverlayPositionerProps['fitViewport'];
|
|
235
|
+
/**
|
|
236
|
+
* @default "The body element"
|
|
237
|
+
*/
|
|
238
|
+
boundary: OverlayPositionerProps['boundary'];
|
|
239
|
+
/**
|
|
240
|
+
* @default 8
|
|
241
|
+
*/
|
|
242
|
+
overflowPadding: OverlayPositionerProps['overflowPadding'];
|
|
243
|
+
}
|
|
244
|
+
export { AutocompletePopoverProps }
|
|
245
|
+
export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
declare const autocompletePopoverProps: {
|
|
249
|
+
readonly editor: {
|
|
250
|
+
readonly default: null;
|
|
251
|
+
};
|
|
252
|
+
readonly regex: {
|
|
253
|
+
readonly default: null;
|
|
254
|
+
};
|
|
255
|
+
readonly onQueryChange: {
|
|
256
|
+
readonly default: null;
|
|
257
|
+
};
|
|
258
|
+
readonly onOpenChange: {
|
|
259
|
+
readonly default: null;
|
|
260
|
+
};
|
|
261
|
+
readonly placement: {
|
|
262
|
+
readonly default: "bottom-start";
|
|
263
|
+
};
|
|
264
|
+
readonly offset: {
|
|
265
|
+
readonly default: 4;
|
|
266
|
+
};
|
|
267
|
+
readonly inline: {
|
|
268
|
+
readonly default: true;
|
|
269
|
+
};
|
|
270
|
+
readonly hoist: {
|
|
271
|
+
readonly default: true;
|
|
272
|
+
};
|
|
273
|
+
readonly fitViewport: {
|
|
274
|
+
readonly default: true;
|
|
275
|
+
};
|
|
276
|
+
readonly boundary: {
|
|
277
|
+
readonly default: HTMLBodyElement | "clippingAncestors";
|
|
278
|
+
};
|
|
279
|
+
readonly overflowPadding: {
|
|
280
|
+
readonly default: 8;
|
|
281
|
+
};
|
|
282
|
+
readonly strategy: PropDeclaration<"fixed" | "absolute">;
|
|
283
|
+
readonly autoUpdate: PropDeclaration<boolean | AutoUpdateOptions>;
|
|
284
|
+
readonly transform: PropDeclaration<boolean>;
|
|
285
|
+
readonly flip: PropDeclaration<boolean | Placement[]>;
|
|
286
|
+
readonly shift: PropDeclaration<boolean>;
|
|
287
|
+
readonly overlap: PropDeclaration<boolean>;
|
|
288
|
+
readonly sameWidth: PropDeclaration<boolean>;
|
|
289
|
+
readonly sameHeight: PropDeclaration<boolean>;
|
|
290
|
+
readonly hide: PropDeclaration<boolean>;
|
|
291
|
+
readonly rootBoundary: PropDeclaration<RootBoundary>;
|
|
292
|
+
readonly elementContext: PropDeclaration<ElementContext>;
|
|
293
|
+
readonly altBoundary: PropDeclaration<boolean>;
|
|
294
|
+
};
|
|
295
|
+
export { autocompletePopoverProps }
|
|
296
|
+
export { autocompletePopoverProps as autocompletePopoverProps_alias_1 }
|
|
297
|
+
|
|
298
|
+
declare class BlockHandleAddElement extends BlockHandleAddElement_base {
|
|
299
|
+
}
|
|
300
|
+
export { BlockHandleAddElement }
|
|
301
|
+
export { BlockHandleAddElement as BlockHandleAddElement_alias_1 }
|
|
302
|
+
|
|
303
|
+
declare const BlockHandleAddElement_base: BaseElementConstructor<BlockHandleAddProps>;
|
|
304
|
+
|
|
305
|
+
/** @internal */
|
|
306
|
+
declare interface BlockHandleAddEvents {
|
|
307
|
+
}
|
|
308
|
+
export { BlockHandleAddEvents }
|
|
309
|
+
export { BlockHandleAddEvents as BlockHandleAddEvents_alias_1 }
|
|
310
|
+
|
|
311
|
+
/** @internal */
|
|
312
|
+
declare const blockHandleAddEvents: EventDeclarations<BlockHandleAddEvents>;
|
|
313
|
+
export { blockHandleAddEvents }
|
|
314
|
+
export { blockHandleAddEvents as blockHandleAddEvents_alias_1 }
|
|
315
|
+
|
|
316
|
+
declare interface BlockHandleAddProps {
|
|
317
|
+
/**
|
|
318
|
+
* The ProseKit editor instance.
|
|
319
|
+
*
|
|
320
|
+
* @default null
|
|
321
|
+
* @hidden
|
|
322
|
+
*/
|
|
323
|
+
editor: Editor | null;
|
|
324
|
+
}
|
|
325
|
+
export { BlockHandleAddProps }
|
|
326
|
+
export { BlockHandleAddProps as BlockHandleAddProps_alias_1 }
|
|
327
|
+
|
|
328
|
+
/** @internal */
|
|
329
|
+
declare const blockHandleAddProps: PropDeclarations<BlockHandleAddProps>;
|
|
330
|
+
export { blockHandleAddProps }
|
|
331
|
+
export { blockHandleAddProps as blockHandleAddProps_alias_1 }
|
|
332
|
+
|
|
333
|
+
declare class BlockHandleDraggableElement extends BlockHandleDraggableElement_base {
|
|
334
|
+
}
|
|
335
|
+
export { BlockHandleDraggableElement }
|
|
336
|
+
export { BlockHandleDraggableElement as BlockHandleDraggableElement_alias_1 }
|
|
337
|
+
|
|
338
|
+
declare const BlockHandleDraggableElement_base: BaseElementConstructor<BlockHandleDraggableProps>;
|
|
339
|
+
|
|
340
|
+
/** @internal */
|
|
341
|
+
declare interface BlockHandleDraggableEvents {
|
|
342
|
+
}
|
|
343
|
+
export { BlockHandleDraggableEvents }
|
|
344
|
+
export { BlockHandleDraggableEvents as BlockHandleDraggableEvents_alias_1 }
|
|
345
|
+
|
|
346
|
+
/** @internal */
|
|
347
|
+
declare const blockHandleDraggableEvents: EventDeclarations<BlockHandleDraggableEvents>;
|
|
348
|
+
export { blockHandleDraggableEvents }
|
|
349
|
+
export { blockHandleDraggableEvents as blockHandleDraggableEvents_alias_1 }
|
|
350
|
+
|
|
351
|
+
declare interface BlockHandleDraggableProps {
|
|
352
|
+
/**
|
|
353
|
+
* The ProseKit editor instance.
|
|
354
|
+
*
|
|
355
|
+
* @default null
|
|
356
|
+
* @hidden
|
|
357
|
+
*/
|
|
358
|
+
editor: Editor | null;
|
|
359
|
+
}
|
|
360
|
+
export { BlockHandleDraggableProps }
|
|
361
|
+
export { BlockHandleDraggableProps as BlockHandleDraggableProps_alias_1 }
|
|
362
|
+
|
|
363
|
+
/** @internal */
|
|
364
|
+
declare const blockHandleDraggableProps: PropDeclarations<BlockHandleDraggableProps>;
|
|
365
|
+
export { blockHandleDraggableProps }
|
|
366
|
+
export { blockHandleDraggableProps as blockHandleDraggableProps_alias_1 }
|
|
367
|
+
|
|
368
|
+
declare class BlockHandlePopoverElement extends BlockHandlePopoverElement_base {
|
|
369
|
+
}
|
|
370
|
+
export { BlockHandlePopoverElement }
|
|
371
|
+
export { BlockHandlePopoverElement as BlockHandlePopoverElement_alias_1 }
|
|
372
|
+
|
|
373
|
+
declare const BlockHandlePopoverElement_base: BaseElementConstructor<BlockHandlePopoverProps>;
|
|
374
|
+
|
|
375
|
+
/** @internal */
|
|
376
|
+
declare interface BlockHandlePopoverEvents {
|
|
377
|
+
}
|
|
378
|
+
export { BlockHandlePopoverEvents }
|
|
379
|
+
export { BlockHandlePopoverEvents as BlockHandlePopoverEvents_alias_1 }
|
|
380
|
+
|
|
381
|
+
/** @internal */
|
|
382
|
+
declare const blockHandlePopoverEvents: EventDeclarations<BlockHandlePopoverEvents>;
|
|
383
|
+
export { blockHandlePopoverEvents }
|
|
384
|
+
export { blockHandlePopoverEvents as blockHandlePopoverEvents_alias_1 }
|
|
385
|
+
|
|
386
|
+
declare interface BlockHandlePopoverProps extends Omit<OverlayPositionerProps, 'placement' | 'offset'> {
|
|
387
|
+
/**
|
|
388
|
+
* The ProseKit editor instance.
|
|
389
|
+
*
|
|
390
|
+
* @default null
|
|
391
|
+
* @hidden
|
|
392
|
+
*/
|
|
393
|
+
editor: Editor | null;
|
|
394
|
+
/**
|
|
395
|
+
* The placement of the popover, relative to the hovered block.
|
|
396
|
+
*
|
|
397
|
+
* @default "left-start"
|
|
398
|
+
*/
|
|
399
|
+
placement: Placement;
|
|
400
|
+
/**
|
|
401
|
+
* The distance between the popover and the hovered block.
|
|
402
|
+
*
|
|
403
|
+
* @default 4
|
|
404
|
+
*/
|
|
405
|
+
offset: number;
|
|
406
|
+
}
|
|
407
|
+
export { BlockHandlePopoverProps }
|
|
408
|
+
export { BlockHandlePopoverProps as BlockHandlePopoverProps_alias_1 }
|
|
409
|
+
|
|
410
|
+
/** @internal */
|
|
411
|
+
declare const blockHandlePopoverProps: PropDeclarations<BlockHandlePopoverProps>;
|
|
412
|
+
export { blockHandlePopoverProps }
|
|
413
|
+
export { blockHandlePopoverProps as blockHandlePopoverProps_alias_1 }
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @internal
|
|
417
|
+
*/
|
|
418
|
+
export declare type BlockPopoverContext = HoverState | null;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @internal
|
|
422
|
+
*/
|
|
423
|
+
export declare const blockPopoverContext: Context<BlockPopoverContext>;
|
|
424
|
+
|
|
425
|
+
export declare function calcResize(position: 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', w: number, h: number, dx: number, dy: number, aspectRatio: number | null | undefined): [w: number, h: number];
|
|
426
|
+
|
|
427
|
+
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
428
|
+
|
|
429
|
+
export { default_alias_1 }
|
|
430
|
+
|
|
431
|
+
export declare function defaultQueryBuilder(match: RegExpExecArray): string;
|
|
432
|
+
|
|
433
|
+
export declare function defineCustomElement(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
|
|
434
|
+
|
|
435
|
+
export declare function defineElementHoverHandler(handler: ElementHoverHandler): Union<readonly [PlainExtension, PlainExtension, PlainExtension]>;
|
|
436
|
+
|
|
437
|
+
export declare type ElementHoverHandler = (reference: VirtualElement | null, hoverState: HoverState | null) => void;
|
|
438
|
+
|
|
439
|
+
export declare function getHoveringCell(view: EditorView, event: MouseEvent): HoveringCellInfo | undefined;
|
|
440
|
+
|
|
441
|
+
export declare function getStateWithDefaults<Props extends Record<string, any> = Record<string, any>>(state: Partial<SignalState<Props>>, props: PropDeclarations<Props>): SignalState<Props>;
|
|
442
|
+
|
|
443
|
+
export declare function getVirtualSelectionElement(view: EditorView): ReferenceElement | undefined;
|
|
444
|
+
|
|
445
|
+
export declare interface HoveringCellInfo {
|
|
446
|
+
rowIndex: number;
|
|
447
|
+
colIndex: number;
|
|
448
|
+
cellPos: number;
|
|
449
|
+
rowFirstCellPos: number;
|
|
450
|
+
colFirstCellPos: number;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @internal
|
|
455
|
+
*/
|
|
456
|
+
export declare interface HoverState {
|
|
457
|
+
element: HTMLElement;
|
|
458
|
+
node: ProseMirrorNode;
|
|
459
|
+
pos: number;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
declare class InlinePopoverElement extends InlinePopoverElement_base {
|
|
463
|
+
}
|
|
464
|
+
export { InlinePopoverElement }
|
|
465
|
+
export { InlinePopoverElement as InlinePopoverElement_alias_1 }
|
|
466
|
+
|
|
467
|
+
declare const InlinePopoverElement_base: BaseElementConstructor<InlinePopoverProps>;
|
|
468
|
+
|
|
469
|
+
/** @internal */
|
|
470
|
+
declare interface InlinePopoverEvents extends OverlayPositionerEvents_2 {
|
|
471
|
+
}
|
|
472
|
+
export { InlinePopoverEvents }
|
|
473
|
+
export { InlinePopoverEvents as InlinePopoverEvents_alias_1 }
|
|
474
|
+
|
|
475
|
+
/** @internal */
|
|
476
|
+
declare const inlinePopoverEvents: EventDeclarations<InlinePopoverEvents>;
|
|
477
|
+
export { inlinePopoverEvents }
|
|
478
|
+
export { inlinePopoverEvents as inlinePopoverEvents_alias_1 }
|
|
479
|
+
|
|
480
|
+
declare interface InlinePopoverProps extends Omit<OverlayPositionerProps_2, 'placement' | 'offset'> {
|
|
481
|
+
/**
|
|
482
|
+
* The ProseKit editor instance.
|
|
483
|
+
*
|
|
484
|
+
* @default null
|
|
485
|
+
* @hidden
|
|
486
|
+
*/
|
|
487
|
+
editor: Editor | null;
|
|
488
|
+
/**
|
|
489
|
+
* Whether the popover is open by default when some inline content is
|
|
490
|
+
* selected.
|
|
491
|
+
*
|
|
492
|
+
* When `defaultOpen` is true, the popover will open or close based on the
|
|
493
|
+
* inline selection. When `defaultOpen` is false, the popover will never be
|
|
494
|
+
* opened unless the `open` prop is true.
|
|
495
|
+
*
|
|
496
|
+
* @default true
|
|
497
|
+
*/
|
|
498
|
+
defaultOpen: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* Whether the popover is open.
|
|
501
|
+
*
|
|
502
|
+
* Notice that the popover will be always hidden if the inline selection is
|
|
503
|
+
* empty.
|
|
504
|
+
*
|
|
505
|
+
* @default false
|
|
506
|
+
*/
|
|
507
|
+
open: boolean;
|
|
508
|
+
/**
|
|
509
|
+
* Event handler called when the open state changed caused by user interaction
|
|
510
|
+
* (i.e. select or unselect inline content).
|
|
511
|
+
*
|
|
512
|
+
* @default null
|
|
513
|
+
*/
|
|
514
|
+
onOpenChange: ((open: boolean) => void) | null;
|
|
515
|
+
/**
|
|
516
|
+
* Whether the inline popover should be dismissed when the editor receives an
|
|
517
|
+
* Escape key press.
|
|
518
|
+
*
|
|
519
|
+
* @default true
|
|
520
|
+
*/
|
|
521
|
+
dismissOnEscape: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* The placement of the popover, relative to the selected inline content.
|
|
524
|
+
*
|
|
525
|
+
* @default "top"
|
|
526
|
+
*/
|
|
527
|
+
placement: OverlayPositionerProps_2['placement'];
|
|
528
|
+
/**
|
|
529
|
+
* @default 12
|
|
530
|
+
*/
|
|
531
|
+
offset: OverlayPositionerProps_2['offset'];
|
|
532
|
+
/**
|
|
533
|
+
* @default true
|
|
534
|
+
*/
|
|
535
|
+
flip: OverlayPositionerProps_2['flip'];
|
|
536
|
+
/**
|
|
537
|
+
* @default true
|
|
538
|
+
*/
|
|
539
|
+
hide: OverlayPositionerProps_2['hide'];
|
|
540
|
+
/**
|
|
541
|
+
* @default true
|
|
542
|
+
*/
|
|
543
|
+
overlap: OverlayPositionerProps_2['overlap'];
|
|
544
|
+
/**
|
|
545
|
+
* @default true
|
|
546
|
+
*/
|
|
547
|
+
inline: OverlayPositionerProps_2['inline'];
|
|
548
|
+
/**
|
|
549
|
+
* @default true
|
|
550
|
+
*/
|
|
551
|
+
hoist: OverlayPositionerProps_2['hoist'];
|
|
552
|
+
}
|
|
553
|
+
export { InlinePopoverProps }
|
|
554
|
+
export { InlinePopoverProps as InlinePopoverProps_alias_1 }
|
|
555
|
+
|
|
556
|
+
/** @internal */
|
|
557
|
+
declare const inlinePopoverProps: PropDeclarations<InlinePopoverProps>;
|
|
558
|
+
export { inlinePopoverProps }
|
|
559
|
+
export { inlinePopoverProps as inlinePopoverProps_alias_1 }
|
|
560
|
+
|
|
561
|
+
export declare function isFinitePositiveNumber(value: unknown): value is number;
|
|
562
|
+
|
|
563
|
+
export declare function isHoveringCellInfoEqual(a?: HoveringCellInfo | null, b?: HoveringCellInfo | null): boolean;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @internal
|
|
567
|
+
*/
|
|
568
|
+
export declare type OnResize = ((width: number, height: number) => void) | null;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @internal
|
|
572
|
+
*/
|
|
573
|
+
export declare const onResizeContext: Context<OnResize>;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @internal
|
|
577
|
+
*/
|
|
578
|
+
export declare type OnResizeEnd = (() => void) | null;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* @internal
|
|
582
|
+
*/
|
|
583
|
+
export declare const onResizeEndContext: Context<OnResizeEnd>;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* @internal
|
|
587
|
+
*/
|
|
588
|
+
export declare type OnResizeStart = (() => readonly [width: number, height: number, aspectRatio: number]) | null;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* @internal
|
|
592
|
+
*/
|
|
593
|
+
export declare const onResizeStartContext: Context<OnResizeStart>;
|
|
594
|
+
|
|
595
|
+
export declare const onSubmitContext: Context<VoidFunction | null>;
|
|
596
|
+
|
|
597
|
+
export declare const openContext: Context<boolean>;
|
|
598
|
+
|
|
599
|
+
declare class PopoverContentElement extends PopoverContentElement_base {
|
|
600
|
+
}
|
|
601
|
+
export { PopoverContentElement }
|
|
602
|
+
export { PopoverContentElement as PopoverContentElement_alias_1 }
|
|
603
|
+
|
|
604
|
+
declare const PopoverContentElement_base: BaseElementConstructor<PopoverContentProps>;
|
|
605
|
+
|
|
606
|
+
declare interface PopoverContentEvents extends PopoverContentEvents_2 {
|
|
607
|
+
}
|
|
608
|
+
export { PopoverContentEvents }
|
|
609
|
+
export { PopoverContentEvents as PopoverContentEvents_alias_1 }
|
|
610
|
+
|
|
611
|
+
export { popoverContentEvents }
|
|
612
|
+
export { popoverContentEvents as popoverContentEvents_alias_1 }
|
|
613
|
+
|
|
614
|
+
declare interface PopoverContentProps extends PopoverContentProps_2 {
|
|
615
|
+
}
|
|
616
|
+
export { PopoverContentProps }
|
|
617
|
+
export { PopoverContentProps as PopoverContentProps_alias_1 }
|
|
618
|
+
|
|
619
|
+
export { popoverContentProps }
|
|
620
|
+
export { popoverContentProps as popoverContentProps_alias_1 }
|
|
621
|
+
|
|
622
|
+
declare class PopoverRootElement extends PopoverRootElement_base {
|
|
623
|
+
}
|
|
624
|
+
export { PopoverRootElement }
|
|
625
|
+
export { PopoverRootElement as PopoverRootElement_alias_1 }
|
|
626
|
+
|
|
627
|
+
declare const PopoverRootElement_base: BaseElementConstructor<PopoverRootProps>;
|
|
628
|
+
|
|
629
|
+
declare interface PopoverRootEvents extends PopoverRootEvents_2 {
|
|
630
|
+
}
|
|
631
|
+
export { PopoverRootEvents }
|
|
632
|
+
export { PopoverRootEvents as PopoverRootEvents_alias_1 }
|
|
633
|
+
|
|
634
|
+
export { popoverRootEvents }
|
|
635
|
+
export { popoverRootEvents as popoverRootEvents_alias_1 }
|
|
636
|
+
|
|
637
|
+
declare interface PopoverRootProps extends PopoverRootProps_2 {
|
|
638
|
+
}
|
|
639
|
+
export { PopoverRootProps }
|
|
640
|
+
export { PopoverRootProps as PopoverRootProps_alias_1 }
|
|
641
|
+
|
|
642
|
+
export { popoverRootProps }
|
|
643
|
+
export { popoverRootProps as popoverRootProps_alias_1 }
|
|
644
|
+
|
|
645
|
+
declare class PopoverTriggerElement extends PopoverTriggerElement_base {
|
|
646
|
+
}
|
|
647
|
+
export { PopoverTriggerElement }
|
|
648
|
+
export { PopoverTriggerElement as PopoverTriggerElement_alias_1 }
|
|
649
|
+
|
|
650
|
+
declare const PopoverTriggerElement_base: BaseElementConstructor<PopoverTriggerProps>;
|
|
651
|
+
|
|
652
|
+
declare interface PopoverTriggerEvents extends PopoverTriggerEvents_2 {
|
|
653
|
+
}
|
|
654
|
+
export { PopoverTriggerEvents }
|
|
655
|
+
export { PopoverTriggerEvents as PopoverTriggerEvents_alias_1 }
|
|
656
|
+
|
|
657
|
+
export { popoverTriggerEvents }
|
|
658
|
+
export { popoverTriggerEvents as popoverTriggerEvents_alias_1 }
|
|
659
|
+
|
|
660
|
+
declare interface PopoverTriggerProps extends PopoverTriggerProps_2 {
|
|
661
|
+
}
|
|
662
|
+
export { PopoverTriggerProps }
|
|
663
|
+
export { PopoverTriggerProps as PopoverTriggerProps_alias_1 }
|
|
664
|
+
|
|
665
|
+
export { popoverTriggerProps }
|
|
666
|
+
export { popoverTriggerProps as popoverTriggerProps_alias_1 }
|
|
667
|
+
|
|
668
|
+
export declare const queryContext: Context<string>;
|
|
669
|
+
|
|
670
|
+
declare class ResizableHandleElement extends ResizableHandleElement_base {
|
|
671
|
+
}
|
|
672
|
+
export { ResizableHandleElement }
|
|
673
|
+
export { ResizableHandleElement as ResizableHandleElement_alias_1 }
|
|
674
|
+
|
|
675
|
+
declare const ResizableHandleElement_base: BaseElementConstructor<ResizableHandleProps>;
|
|
676
|
+
|
|
677
|
+
/** @internal */
|
|
678
|
+
declare interface ResizableHandleEvents {
|
|
679
|
+
}
|
|
680
|
+
export { ResizableHandleEvents }
|
|
681
|
+
export { ResizableHandleEvents as ResizableHandleEvents_alias_1 }
|
|
682
|
+
|
|
683
|
+
/** @internal */
|
|
684
|
+
declare const resizableHandleEvents: EventDeclarations<ResizableHandleEvents>;
|
|
685
|
+
export { resizableHandleEvents }
|
|
686
|
+
export { resizableHandleEvents as resizableHandleEvents_alias_1 }
|
|
687
|
+
|
|
688
|
+
declare interface ResizableHandleProps {
|
|
689
|
+
/**
|
|
690
|
+
* The position of the handle.
|
|
691
|
+
*
|
|
692
|
+
* @default "bottom-right"
|
|
693
|
+
*/
|
|
694
|
+
position: 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
695
|
+
}
|
|
696
|
+
export { ResizableHandleProps }
|
|
697
|
+
export { ResizableHandleProps as ResizableHandleProps_alias_1 }
|
|
698
|
+
|
|
699
|
+
/** @internal */
|
|
700
|
+
declare const resizableHandleProps: PropDeclarations<ResizableHandleProps>;
|
|
701
|
+
export { resizableHandleProps }
|
|
702
|
+
export { resizableHandleProps as resizableHandleProps_alias_1 }
|
|
703
|
+
|
|
704
|
+
declare class ResizableRootElement extends ResizableRootElement_base {
|
|
705
|
+
}
|
|
706
|
+
export { ResizableRootElement }
|
|
707
|
+
export { ResizableRootElement as ResizableRootElement_alias_1 }
|
|
708
|
+
|
|
709
|
+
declare const ResizableRootElement_base: BaseElementConstructor<ResizableRootProps>;
|
|
710
|
+
|
|
711
|
+
declare interface ResizableRootEvents {
|
|
712
|
+
resizeStart: CustomEvent<{
|
|
713
|
+
width: number;
|
|
714
|
+
height: number;
|
|
715
|
+
}>;
|
|
716
|
+
resizeEnd: CustomEvent<{
|
|
717
|
+
width: number;
|
|
718
|
+
height: number;
|
|
719
|
+
}>;
|
|
720
|
+
}
|
|
721
|
+
export { ResizableRootEvents }
|
|
722
|
+
export { ResizableRootEvents as ResizableRootEvents_alias_1 }
|
|
723
|
+
|
|
724
|
+
/** @internal */
|
|
725
|
+
declare const resizableRootEvents: EventDeclarations<ResizableRootEvents>;
|
|
726
|
+
export { resizableRootEvents }
|
|
727
|
+
export { resizableRootEvents as resizableRootEvents_alias_1 }
|
|
728
|
+
|
|
729
|
+
declare interface ResizableRootProps {
|
|
730
|
+
width: number | null;
|
|
731
|
+
height: number | null;
|
|
732
|
+
aspectRatio: number | null;
|
|
733
|
+
}
|
|
734
|
+
export { ResizableRootProps }
|
|
735
|
+
export { ResizableRootProps as ResizableRootProps_alias_1 }
|
|
736
|
+
|
|
737
|
+
/** @internal */
|
|
738
|
+
declare const resizableRootProps: PropDeclarations<ResizableRootProps>;
|
|
739
|
+
export { resizableRootProps }
|
|
740
|
+
export { resizableRootProps as resizableRootProps_alias_1 }
|
|
741
|
+
|
|
742
|
+
declare type TableCommandsExtension = ReturnType<typeof defineTableCommands>;
|
|
743
|
+
|
|
744
|
+
declare type TableCommandsExtension_2 = ReturnType<typeof defineTableCommands>;
|
|
745
|
+
|
|
746
|
+
declare class TableHandleColumnRootElement extends TableHandleColumnRootElement_base {
|
|
747
|
+
}
|
|
748
|
+
export { TableHandleColumnRootElement }
|
|
749
|
+
export { TableHandleColumnRootElement as TableHandleColumnRootElement_alias_1 }
|
|
750
|
+
|
|
751
|
+
declare const TableHandleColumnRootElement_base: BaseElementConstructor<TableHandleColumnRootProps>;
|
|
752
|
+
|
|
753
|
+
/** @internal */
|
|
754
|
+
declare interface TableHandleColumnRootEvents extends OverlayPositionerEvents_2 {
|
|
755
|
+
}
|
|
756
|
+
export { TableHandleColumnRootEvents }
|
|
757
|
+
export { TableHandleColumnRootEvents as TableHandleColumnRootEvents_alias_1 }
|
|
758
|
+
|
|
759
|
+
/** @internal */
|
|
760
|
+
declare const tableHandleColumnRootEvents: EventDeclarations<TableHandleColumnRootEvents>;
|
|
761
|
+
export { tableHandleColumnRootEvents }
|
|
762
|
+
export { tableHandleColumnRootEvents as tableHandleColumnRootEvents_alias_1 }
|
|
763
|
+
|
|
764
|
+
declare interface TableHandleColumnRootProps extends Omit<OverlayPositionerProps_2, 'placement'> {
|
|
765
|
+
/**
|
|
766
|
+
* The ProseKit editor instance.
|
|
767
|
+
*
|
|
768
|
+
* @default null
|
|
769
|
+
* @hidden
|
|
770
|
+
*/
|
|
771
|
+
editor: Editor | null;
|
|
772
|
+
/**
|
|
773
|
+
* The placement of the popover, relative to the hovered table cell.
|
|
774
|
+
*
|
|
775
|
+
* @default "top"
|
|
776
|
+
*/
|
|
777
|
+
placement: Placement;
|
|
778
|
+
}
|
|
779
|
+
export { TableHandleColumnRootProps }
|
|
780
|
+
export { TableHandleColumnRootProps as TableHandleColumnRootProps_alias_1 }
|
|
781
|
+
|
|
782
|
+
/** @internal */
|
|
783
|
+
declare const tableHandleColumnRootProps: PropDeclarations<TableHandleColumnRootProps>;
|
|
784
|
+
export { tableHandleColumnRootProps }
|
|
785
|
+
export { tableHandleColumnRootProps as tableHandleColumnRootProps_alias_1 }
|
|
786
|
+
|
|
787
|
+
declare class TableHandleColumnTriggerElement extends TableHandleColumnTriggerElement_base {
|
|
788
|
+
}
|
|
789
|
+
export { TableHandleColumnTriggerElement }
|
|
790
|
+
export { TableHandleColumnTriggerElement as TableHandleColumnTriggerElement_alias_1 }
|
|
791
|
+
|
|
792
|
+
declare const TableHandleColumnTriggerElement_base: BaseElementConstructor<TableHandleColumnTriggerProps>;
|
|
793
|
+
|
|
794
|
+
/** @internal */
|
|
795
|
+
declare interface TableHandleColumnTriggerEvents {
|
|
796
|
+
}
|
|
797
|
+
export { TableHandleColumnTriggerEvents }
|
|
798
|
+
export { TableHandleColumnTriggerEvents as TableHandleColumnTriggerEvents_alias_1 }
|
|
799
|
+
|
|
800
|
+
/** @internal */
|
|
801
|
+
declare const tableHandleColumnTriggerEvents: EventDeclarations<TableHandleColumnTriggerEvents>;
|
|
802
|
+
export { tableHandleColumnTriggerEvents }
|
|
803
|
+
export { tableHandleColumnTriggerEvents as tableHandleColumnTriggerEvents_alias_1 }
|
|
804
|
+
|
|
805
|
+
declare interface TableHandleColumnTriggerProps {
|
|
806
|
+
editor: Editor<TableCommandsExtension> | null;
|
|
807
|
+
}
|
|
808
|
+
export { TableHandleColumnTriggerProps }
|
|
809
|
+
export { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_alias_1 }
|
|
810
|
+
|
|
811
|
+
/** @internal */
|
|
812
|
+
declare const tableHandleColumnTriggerProps: PropDeclarations<TableHandleColumnTriggerProps>;
|
|
813
|
+
export { tableHandleColumnTriggerProps }
|
|
814
|
+
export { tableHandleColumnTriggerProps as tableHandleColumnTriggerProps_alias_1 }
|
|
815
|
+
|
|
816
|
+
declare class TableHandlePopoverContentElement extends TableHandlePopoverContentElement_base {
|
|
817
|
+
}
|
|
818
|
+
export { TableHandlePopoverContentElement }
|
|
819
|
+
export { TableHandlePopoverContentElement as TableHandlePopoverContentElement_alias_1 }
|
|
820
|
+
|
|
821
|
+
declare const TableHandlePopoverContentElement_base: BaseElementConstructor<TableHandlePopoverContentProps>;
|
|
822
|
+
|
|
823
|
+
declare interface TableHandlePopoverContentEvents extends MenuContentEvents {
|
|
824
|
+
}
|
|
825
|
+
export { TableHandlePopoverContentEvents }
|
|
826
|
+
export { TableHandlePopoverContentEvents as TableHandlePopoverContentEvents_alias_1 }
|
|
827
|
+
|
|
828
|
+
/** @internal */
|
|
829
|
+
declare const tableHandlePopoverContentEvents: EventDeclarations<TableHandlePopoverContentEvents>;
|
|
830
|
+
export { tableHandlePopoverContentEvents }
|
|
831
|
+
export { tableHandlePopoverContentEvents as tableHandlePopoverContentEvents_alias_1 }
|
|
832
|
+
|
|
833
|
+
declare interface TableHandlePopoverContentProps extends Omit<MenuContentProps, 'placement' | 'offset'> {
|
|
834
|
+
/**
|
|
835
|
+
* @default 'bottom-start'
|
|
836
|
+
*/
|
|
837
|
+
placement: MenuContentProps['placement'];
|
|
838
|
+
/**
|
|
839
|
+
* @default {mainAxis: -4, crossAxis: 4}
|
|
840
|
+
*/
|
|
841
|
+
offset: MenuContentProps['offset'];
|
|
842
|
+
editor: Editor | null;
|
|
843
|
+
}
|
|
844
|
+
export { TableHandlePopoverContentProps }
|
|
845
|
+
export { TableHandlePopoverContentProps as TableHandlePopoverContentProps_alias_1 }
|
|
846
|
+
|
|
847
|
+
/** @internal */
|
|
848
|
+
declare const tableHandlePopoverContentProps: PropDeclarations<TableHandlePopoverContentProps>;
|
|
849
|
+
export { tableHandlePopoverContentProps }
|
|
850
|
+
export { tableHandlePopoverContentProps as tableHandlePopoverContentProps_alias_1 }
|
|
851
|
+
|
|
852
|
+
declare class TableHandlePopoverItemElement extends TableHandlePopoverItemElement_base {
|
|
853
|
+
}
|
|
854
|
+
export { TableHandlePopoverItemElement }
|
|
855
|
+
export { TableHandlePopoverItemElement as TableHandlePopoverItemElement_alias_1 }
|
|
856
|
+
|
|
857
|
+
declare const TableHandlePopoverItemElement_base: BaseElementConstructor<TableHandlePopoverItemProps>;
|
|
858
|
+
|
|
859
|
+
declare interface TableHandlePopoverItemEvents extends MenuItemEvents {
|
|
860
|
+
}
|
|
861
|
+
export { TableHandlePopoverItemEvents }
|
|
862
|
+
export { TableHandlePopoverItemEvents as TableHandlePopoverItemEvents_alias_1 }
|
|
863
|
+
|
|
864
|
+
/** @internal */
|
|
865
|
+
declare const tableHandlePopoverItemEvents: EventDeclarations<TableHandlePopoverItemEvents>;
|
|
866
|
+
export { tableHandlePopoverItemEvents }
|
|
867
|
+
export { tableHandlePopoverItemEvents as tableHandlePopoverItemEvents_alias_1 }
|
|
868
|
+
|
|
869
|
+
declare interface TableHandlePopoverItemProps extends MenuItemProps {
|
|
870
|
+
}
|
|
871
|
+
export { TableHandlePopoverItemProps }
|
|
872
|
+
export { TableHandlePopoverItemProps as TableHandlePopoverItemProps_alias_1 }
|
|
873
|
+
|
|
874
|
+
/** @internal */
|
|
875
|
+
declare const tableHandlePopoverItemProps: PropDeclarations<TableHandlePopoverItemProps>;
|
|
876
|
+
export { tableHandlePopoverItemProps }
|
|
877
|
+
export { tableHandlePopoverItemProps as tableHandlePopoverItemProps_alias_1 }
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* @internal
|
|
881
|
+
*/
|
|
882
|
+
export declare type TableHandleRootContext = HoveringCellInfo | null;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* @internal
|
|
886
|
+
*/
|
|
887
|
+
export declare const tableHandleRootContext: Context<TableHandleRootContext>;
|
|
888
|
+
|
|
889
|
+
declare class TableHandleRootElement extends TableHandleRootElement_base {
|
|
890
|
+
}
|
|
891
|
+
export { TableHandleRootElement }
|
|
892
|
+
export { TableHandleRootElement as TableHandleRootElement_alias_1 }
|
|
893
|
+
|
|
894
|
+
declare const TableHandleRootElement_base: BaseElementConstructor<TableHandleRootProps>;
|
|
895
|
+
|
|
896
|
+
/** @internal */
|
|
897
|
+
declare interface TableHandleRootEvents {
|
|
898
|
+
}
|
|
899
|
+
export { TableHandleRootEvents }
|
|
900
|
+
export { TableHandleRootEvents as TableHandleRootEvents_alias_1 }
|
|
901
|
+
|
|
902
|
+
/** @internal */
|
|
903
|
+
declare const tableHandleRootEvents: EventDeclarations<TableHandleRootEvents>;
|
|
904
|
+
export { tableHandleRootEvents }
|
|
905
|
+
export { tableHandleRootEvents as tableHandleRootEvents_alias_1 }
|
|
906
|
+
|
|
907
|
+
declare interface TableHandleRootProps {
|
|
908
|
+
/**
|
|
909
|
+
* The ProseKit editor instance.
|
|
910
|
+
*
|
|
911
|
+
* @default null
|
|
912
|
+
* @hidden
|
|
913
|
+
*/
|
|
914
|
+
editor: Editor | null;
|
|
915
|
+
}
|
|
916
|
+
export { TableHandleRootProps }
|
|
917
|
+
export { TableHandleRootProps as TableHandleRootProps_alias_1 }
|
|
918
|
+
|
|
919
|
+
/** @internal */
|
|
920
|
+
declare const tableHandleRootProps: PropDeclarations<TableHandleRootProps>;
|
|
921
|
+
export { tableHandleRootProps }
|
|
922
|
+
export { tableHandleRootProps as tableHandleRootProps_alias_1 }
|
|
923
|
+
|
|
924
|
+
declare class TableHandleRowRootElement extends TableHandleRowRootElement_base {
|
|
925
|
+
}
|
|
926
|
+
export { TableHandleRowRootElement }
|
|
927
|
+
export { TableHandleRowRootElement as TableHandleRowRootElement_alias_1 }
|
|
928
|
+
|
|
929
|
+
declare const TableHandleRowRootElement_base: BaseElementConstructor<TableHandleRowRootProps>;
|
|
930
|
+
|
|
931
|
+
/** @internal */
|
|
932
|
+
declare interface TableHandleRowRootEvents extends OverlayPositionerEvents_2 {
|
|
933
|
+
}
|
|
934
|
+
export { TableHandleRowRootEvents }
|
|
935
|
+
export { TableHandleRowRootEvents as TableHandleRowRootEvents_alias_1 }
|
|
936
|
+
|
|
937
|
+
/** @internal */
|
|
938
|
+
declare const tableHandleRowRootEvents: EventDeclarations<TableHandleRowRootEvents>;
|
|
939
|
+
export { tableHandleRowRootEvents }
|
|
940
|
+
export { tableHandleRowRootEvents as tableHandleRowRootEvents_alias_1 }
|
|
941
|
+
|
|
942
|
+
declare interface TableHandleRowRootProps extends Omit<OverlayPositionerProps_2, 'placement'> {
|
|
943
|
+
/**
|
|
944
|
+
* The ProseKit editor instance.
|
|
945
|
+
*
|
|
946
|
+
* @default null
|
|
947
|
+
* @hidden
|
|
948
|
+
*/
|
|
949
|
+
editor: Editor | null;
|
|
950
|
+
/**
|
|
951
|
+
* The placement of the popover, relative to the hovered table cell.
|
|
952
|
+
*
|
|
953
|
+
* @default "left"
|
|
954
|
+
*/
|
|
955
|
+
placement: Placement;
|
|
956
|
+
}
|
|
957
|
+
export { TableHandleRowRootProps }
|
|
958
|
+
export { TableHandleRowRootProps as TableHandleRowRootProps_alias_1 }
|
|
959
|
+
|
|
960
|
+
/** @internal */
|
|
961
|
+
declare const tableHandleRowRootProps: PropDeclarations<TableHandleRowRootProps>;
|
|
962
|
+
export { tableHandleRowRootProps }
|
|
963
|
+
export { tableHandleRowRootProps as tableHandleRowRootProps_alias_1 }
|
|
964
|
+
|
|
965
|
+
declare class TableHandleRowTriggerElement extends TableHandleRowTriggerElement_base {
|
|
966
|
+
}
|
|
967
|
+
export { TableHandleRowTriggerElement }
|
|
968
|
+
export { TableHandleRowTriggerElement as TableHandleRowTriggerElement_alias_1 }
|
|
969
|
+
|
|
970
|
+
declare const TableHandleRowTriggerElement_base: BaseElementConstructor<TableHandleRowTriggerProps>;
|
|
971
|
+
|
|
972
|
+
declare interface TableHandleRowTriggerEvents {
|
|
973
|
+
select: CustomEvent<void>;
|
|
974
|
+
}
|
|
975
|
+
export { TableHandleRowTriggerEvents }
|
|
976
|
+
export { TableHandleRowTriggerEvents as TableHandleRowTriggerEvents_alias_1 }
|
|
977
|
+
|
|
978
|
+
/** @internal */
|
|
979
|
+
declare const tableHandleRowTriggerEvents: EventDeclarations<TableHandleRowTriggerEvents>;
|
|
980
|
+
export { tableHandleRowTriggerEvents }
|
|
981
|
+
export { tableHandleRowTriggerEvents as tableHandleRowTriggerEvents_alias_1 }
|
|
982
|
+
|
|
983
|
+
declare interface TableHandleRowTriggerProps {
|
|
984
|
+
editor: Editor<TableCommandsExtension_2> | null;
|
|
985
|
+
}
|
|
986
|
+
export { TableHandleRowTriggerProps }
|
|
987
|
+
export { TableHandleRowTriggerProps as TableHandleRowTriggerProps_alias_1 }
|
|
988
|
+
|
|
989
|
+
/** @internal */
|
|
990
|
+
declare const tableHandleRowTriggerProps: PropDeclarations<TableHandleRowTriggerProps>;
|
|
991
|
+
export { tableHandleRowTriggerProps }
|
|
992
|
+
export { tableHandleRowTriggerProps as tableHandleRowTriggerProps_alias_1 }
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* @internal
|
|
996
|
+
*/
|
|
997
|
+
export declare function throttle<Args extends any[]>(callback: (...args: Args) => void, wait: number): (...args: Args) => void;
|
|
998
|
+
|
|
999
|
+
declare class TooltipContentElement extends TooltipContentElement_base {
|
|
1000
|
+
}
|
|
1001
|
+
export { TooltipContentElement }
|
|
1002
|
+
export { TooltipContentElement as TooltipContentElement_alias_1 }
|
|
1003
|
+
|
|
1004
|
+
declare const TooltipContentElement_base: BaseElementConstructor<TooltipContentProps>;
|
|
1005
|
+
|
|
1006
|
+
declare interface TooltipContentEvents extends TooltipContentEvents_2 {
|
|
1007
|
+
}
|
|
1008
|
+
export { TooltipContentEvents }
|
|
1009
|
+
export { TooltipContentEvents as TooltipContentEvents_alias_1 }
|
|
1010
|
+
|
|
1011
|
+
export { tooltipContentEvents }
|
|
1012
|
+
export { tooltipContentEvents as tooltipContentEvents_alias_1 }
|
|
1013
|
+
|
|
1014
|
+
declare interface TooltipContentProps extends TooltipContentProps_2 {
|
|
1015
|
+
}
|
|
1016
|
+
export { TooltipContentProps }
|
|
1017
|
+
export { TooltipContentProps as TooltipContentProps_alias_1 }
|
|
1018
|
+
|
|
1019
|
+
declare const tooltipContentProps: {
|
|
1020
|
+
shift: {
|
|
1021
|
+
default: boolean;
|
|
1022
|
+
};
|
|
1023
|
+
flip: {
|
|
1024
|
+
default: boolean;
|
|
1025
|
+
};
|
|
1026
|
+
offset: {
|
|
1027
|
+
default: number;
|
|
1028
|
+
};
|
|
1029
|
+
overflowPadding: {
|
|
1030
|
+
default: number;
|
|
1031
|
+
};
|
|
1032
|
+
hoist: {
|
|
1033
|
+
default: boolean;
|
|
1034
|
+
};
|
|
1035
|
+
boundary: {
|
|
1036
|
+
default: never[];
|
|
1037
|
+
};
|
|
1038
|
+
inline: PropDeclaration<boolean>;
|
|
1039
|
+
placement: PropDeclaration<Placement>;
|
|
1040
|
+
fitViewport: PropDeclaration<boolean>;
|
|
1041
|
+
strategy: PropDeclaration<"fixed" | "absolute">;
|
|
1042
|
+
autoUpdate: PropDeclaration<boolean | AutoUpdateOptions>;
|
|
1043
|
+
transform: PropDeclaration<boolean>;
|
|
1044
|
+
overlap: PropDeclaration<boolean>;
|
|
1045
|
+
sameWidth: PropDeclaration<boolean>;
|
|
1046
|
+
sameHeight: PropDeclaration<boolean>;
|
|
1047
|
+
hide: PropDeclaration<boolean>;
|
|
1048
|
+
rootBoundary: PropDeclaration<RootBoundary>;
|
|
1049
|
+
elementContext: PropDeclaration<ElementContext>;
|
|
1050
|
+
altBoundary: PropDeclaration<boolean>;
|
|
1051
|
+
};
|
|
1052
|
+
export { tooltipContentProps }
|
|
1053
|
+
export { tooltipContentProps as tooltipContentProps_alias_1 }
|
|
1054
|
+
|
|
1055
|
+
declare class TooltipRootElement extends TooltipRootElement_base {
|
|
1056
|
+
}
|
|
1057
|
+
export { TooltipRootElement }
|
|
1058
|
+
export { TooltipRootElement as TooltipRootElement_alias_1 }
|
|
1059
|
+
|
|
1060
|
+
declare const TooltipRootElement_base: BaseElementConstructor<TooltipRootProps>;
|
|
1061
|
+
|
|
1062
|
+
declare interface TooltipRootEvents extends TooltipRootEvents_2 {
|
|
1063
|
+
}
|
|
1064
|
+
export { TooltipRootEvents }
|
|
1065
|
+
export { TooltipRootEvents as TooltipRootEvents_alias_1 }
|
|
1066
|
+
|
|
1067
|
+
export { tooltipRootEvents }
|
|
1068
|
+
export { tooltipRootEvents as tooltipRootEvents_alias_1 }
|
|
1069
|
+
|
|
1070
|
+
declare interface TooltipRootProps extends TooltipRootProps_2 {
|
|
1071
|
+
}
|
|
1072
|
+
export { TooltipRootProps }
|
|
1073
|
+
export { TooltipRootProps as TooltipRootProps_alias_1 }
|
|
1074
|
+
|
|
1075
|
+
export { tooltipRootProps }
|
|
1076
|
+
export { tooltipRootProps as tooltipRootProps_alias_1 }
|
|
1077
|
+
|
|
1078
|
+
declare class TooltipTriggerElement extends TooltipTriggerElement_base {
|
|
1079
|
+
}
|
|
1080
|
+
export { TooltipTriggerElement }
|
|
1081
|
+
export { TooltipTriggerElement as TooltipTriggerElement_alias_1 }
|
|
1082
|
+
|
|
1083
|
+
declare const TooltipTriggerElement_base: BaseElementConstructor<TooltipTriggerProps>;
|
|
1084
|
+
|
|
1085
|
+
declare interface TooltipTriggerEvents extends TooltipTriggerEvents_2 {
|
|
1086
|
+
}
|
|
1087
|
+
export { TooltipTriggerEvents }
|
|
1088
|
+
export { TooltipTriggerEvents as TooltipTriggerEvents_alias_1 }
|
|
1089
|
+
|
|
1090
|
+
export { tooltipTriggerEvents }
|
|
1091
|
+
export { tooltipTriggerEvents as tooltipTriggerEvents_alias_1 }
|
|
1092
|
+
|
|
1093
|
+
declare interface TooltipTriggerProps extends TooltipTriggerProps_2 {
|
|
1094
|
+
}
|
|
1095
|
+
export { TooltipTriggerProps }
|
|
1096
|
+
export { TooltipTriggerProps as TooltipTriggerProps_alias_1 }
|
|
1097
|
+
|
|
1098
|
+
export { tooltipTriggerProps }
|
|
1099
|
+
export { tooltipTriggerProps as tooltipTriggerProps_alias_1 }
|
|
1100
|
+
|
|
1101
|
+
export declare const useAutocompleteEmpty: typeof useListboxEmpty;
|
|
1102
|
+
|
|
1103
|
+
export declare function useAutocompleteItem(element: ConnectableElement, { state, emit }: SetupOptions<AutocompleteItemProps, AutocompleteItemEvents>): void;
|
|
1104
|
+
|
|
1105
|
+
export declare function useAutocompleteList(element: ConnectableElement, { state, emit }: SetupOptions<AutocompleteListProps, AutocompleteListEvents>): void;
|
|
1106
|
+
|
|
1107
|
+
export declare function useAutocompletePopover(host: ConnectableElement, { state }: {
|
|
1108
|
+
state: SignalState<AutocompletePopoverProps>;
|
|
1109
|
+
}): void;
|
|
1110
|
+
|
|
1111
|
+
export declare function useBlockHandleAdd(host: ConnectableElement, { state }: {
|
|
1112
|
+
state: SignalState<BlockHandleAddProps>;
|
|
1113
|
+
}): void;
|
|
1114
|
+
|
|
1115
|
+
export declare function useBlockHandleDraggable(host: ConnectableElement, { state }: {
|
|
1116
|
+
state: SignalState<BlockHandleDraggableProps>;
|
|
1117
|
+
}): void;
|
|
1118
|
+
|
|
1119
|
+
export declare function useBlockHandlePopover(host: ConnectableElement, { state }: {
|
|
1120
|
+
state: SignalState<BlockHandlePopoverProps>;
|
|
1121
|
+
}): void;
|
|
1122
|
+
|
|
1123
|
+
export declare function useEditorExtension(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, extension: Extension): void;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* @internal
|
|
1127
|
+
*/
|
|
1128
|
+
export declare function useEditorFocusChangeEvent(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, handler: FocusChangeHandler): void;
|
|
1129
|
+
|
|
1130
|
+
export declare function useEditorTyping(host: ConnectableElement, editor: ReadonlySignal<Editor | null>): ReadonlySignal<boolean>;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* @internal
|
|
1134
|
+
*/
|
|
1135
|
+
export declare function useEditorUpdateEvent(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, handler: UpdateHandler): void;
|
|
1136
|
+
|
|
1137
|
+
export declare function useFirstRendering(host: ConnectableElement): ReadonlySignal<boolean>;
|
|
1138
|
+
|
|
1139
|
+
export declare function useInlinePopover(host: ConnectableElement, { state }: {
|
|
1140
|
+
state: SignalState<InlinePopoverProps>;
|
|
1141
|
+
}): void;
|
|
1142
|
+
|
|
1143
|
+
export declare function useKeymap(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, keymap: Keymap): void;
|
|
1144
|
+
|
|
1145
|
+
export { usePopoverContent }
|
|
1146
|
+
|
|
1147
|
+
export { usePopoverRoot }
|
|
1148
|
+
|
|
1149
|
+
export { usePopoverTrigger }
|
|
1150
|
+
|
|
1151
|
+
export declare function useResizableHandle(host: ConnectableElement, { state }: {
|
|
1152
|
+
state: SignalState<ResizableHandleProps>;
|
|
1153
|
+
}): void;
|
|
1154
|
+
|
|
1155
|
+
export declare function useResizableRoot(host: ConnectableElement, { state, emit }: SetupOptions<ResizableRootProps, ResizableRootEvents>): void;
|
|
1156
|
+
|
|
1157
|
+
export declare function useTableHandleColumnRoot(host: ConnectableElement, { state }: {
|
|
1158
|
+
state: SignalState<TableHandleColumnRootProps>;
|
|
1159
|
+
}): void;
|
|
1160
|
+
|
|
1161
|
+
export declare function useTableHandleColumnTrigger(host: ConnectableElement, { state }: {
|
|
1162
|
+
state: SignalState<TableHandleColumnTriggerProps>;
|
|
1163
|
+
}): void;
|
|
1164
|
+
|
|
1165
|
+
export declare function useTableHandlePopoverContent(host: ConnectableElement, { state, emit, }: SetupOptions<TableHandlePopoverContentProps, TableHandlePopoverContentEvents>): void;
|
|
1166
|
+
|
|
1167
|
+
export declare function useTableHandlePopoverItem(element: ConnectableElement, { state, emit, }: SetupOptions<TableHandlePopoverItemProps, TableHandlePopoverItemEvents>): void;
|
|
1168
|
+
|
|
1169
|
+
export declare function useTableHandleRoot(host: ConnectableElement, { state }: {
|
|
1170
|
+
state: SignalState<TableHandleRootProps>;
|
|
1171
|
+
}): void;
|
|
1172
|
+
|
|
1173
|
+
export declare function useTableHandleRowRoot(host: ConnectableElement, { state }: SetupOptions<TableHandleRowRootProps, TableHandleRowRootEvents>): void;
|
|
1174
|
+
|
|
1175
|
+
export declare function useTableHandleRowTrigger(host: ConnectableElement, { state, }: SetupOptions<TableHandleRowTriggerProps, TableHandleRowTriggerEvents>): void;
|
|
1176
|
+
|
|
1177
|
+
export { useTooltipContent }
|
|
1178
|
+
|
|
1179
|
+
export { useTooltipRoot }
|
|
1180
|
+
|
|
1181
|
+
export { useTooltipTrigger }
|
|
1182
|
+
|
|
1183
|
+
export { }
|