@prosekit/web 0.0.0-next-20240421132240

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 ocavue
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
File without changes
@@ -0,0 +1,679 @@
1
+ import { BaseElement } from '@aria-ui/core';
2
+ import { ConnectableElement } from '@aria-ui/core';
3
+ import { Context } from '@aria-ui/core';
4
+ import { defaultPopoverContentProps } from '@aria-ui/popover';
5
+ import { defaultPopoverRootProps } from '@aria-ui/popover';
6
+ import { defaultPopoverTriggerProps } from '@aria-ui/popover';
7
+ import { defaultTooltipContentProps } from '@aria-ui/tooltip';
8
+ import { defaultTooltipRootProps } from '@aria-ui/tooltip';
9
+ import { Editor } from '@prosekit/core';
10
+ import type { EditorView } from '@prosekit/pm/view';
11
+ import { Extension } from '@prosekit/core';
12
+ import { FocusChangeHandler } from '@prosekit/core';
13
+ import { ListboxProps } from '@aria-ui/listbox';
14
+ import { Options } from 'tsup';
15
+ import type { OverlayPositionerProps } from '@aria-ui/overlay';
16
+ import type { Placement } from '@floating-ui/dom';
17
+ import { PopoverContentProps } from '@aria-ui/popover';
18
+ import { PopoverRootProps } from '@aria-ui/popover';
19
+ import { PopoverTriggerProps } from '@aria-ui/popover';
20
+ import type { ProseMirrorNode } from '@prosekit/pm/model';
21
+ import { ReadonlySignal } from '@aria-ui/core';
22
+ import type { ReferenceElement } from '@floating-ui/dom';
23
+ import type { Selection as Selection_2 } from '@prosekit/pm/state';
24
+ import { SignalState } from '@aria-ui/core';
25
+ import { TooltipContentProps } from '@aria-ui/tooltip';
26
+ import { TooltipRootProps } from '@aria-ui/tooltip';
27
+ import { UpdateHandler } from '@prosekit/core';
28
+ import { usePopoverContent } from '@aria-ui/popover';
29
+ import { usePopoverRoot } from '@aria-ui/popover';
30
+ import { useTooltipContent } from '@aria-ui/tooltip';
31
+ import { useTooltipRoot } from '@aria-ui/tooltip';
32
+ import type { VirtualElement } from '@floating-ui/dom';
33
+
34
+ declare class AutocompleteEmptyElement extends BaseElement implements AutocompleteEmptyProps {
35
+ readonly _s: SignalState<AutocompleteEmptyProps>;
36
+ constructor();
37
+ }
38
+
39
+ declare interface AutocompleteEmptyElement extends AutocompleteEmptyProps {
40
+ }
41
+ export { AutocompleteEmptyElement }
42
+ export { AutocompleteEmptyElement as AutocompleteEmptyElement_alias_1 }
43
+
44
+ declare interface AutocompleteEmptyProps {
45
+ }
46
+ export { AutocompleteEmptyProps }
47
+ export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
48
+
49
+ declare class AutocompleteItemElement extends BaseElement implements AutocompleteItemProps {
50
+ readonly _s: SignalState<AutocompleteItemProps>;
51
+ constructor();
52
+ }
53
+
54
+ declare interface AutocompleteItemElement extends AutocompleteItemProps {
55
+ }
56
+ export { AutocompleteItemElement }
57
+ export { AutocompleteItemElement as AutocompleteItemElement_alias_1 }
58
+
59
+ declare interface AutocompleteItemProps {
60
+ /**
61
+ * The value of the item, which will be matched against the query.
62
+ *
63
+ * If not provided, the value is the item's text content.
64
+ *
65
+ * @default ""
66
+ */
67
+ value: string;
68
+ /**
69
+ * The function to call when the item is selected.
70
+ *
71
+ * @default null
72
+ */
73
+ onSelect: VoidFunction | null;
74
+ }
75
+ export { AutocompleteItemProps }
76
+ export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
77
+
78
+ declare class AutocompleteListElement extends BaseElement implements AutocompleteListProps {
79
+ readonly _s: SignalState<AutocompleteListProps>;
80
+ constructor();
81
+ }
82
+
83
+ declare interface AutocompleteListElement extends AutocompleteListProps {
84
+ }
85
+ export { AutocompleteListElement }
86
+ export { AutocompleteListElement as AutocompleteListElement_alias_1 }
87
+
88
+ declare interface AutocompleteListProps extends Pick<ListboxProps, 'filter'> {
89
+ editor: Editor | null;
90
+ }
91
+ export { AutocompleteListProps }
92
+ export { AutocompleteListProps as AutocompleteListProps_alias_1 }
93
+
94
+ declare class AutocompletePopoverElement extends BaseElement implements AutocompletePopoverProps {
95
+ readonly _s: SignalState<AutocompletePopoverProps>;
96
+ constructor();
97
+ }
98
+
99
+ declare interface AutocompletePopoverElement extends AutocompletePopoverProps {
100
+ }
101
+ export { AutocompletePopoverElement }
102
+ export { AutocompletePopoverElement as AutocompletePopoverElement_alias_1 }
103
+
104
+ declare interface AutocompletePopoverProps extends OverlayPositionerProps {
105
+ /**
106
+ * The ProseKit editor instance.
107
+ *
108
+ * @default null
109
+ */
110
+ editor: Editor | null;
111
+ /**
112
+ * The regular expression to match the query text to autocomplete.
113
+ *
114
+ * @default null
115
+ */
116
+ regex: RegExp | null;
117
+ /**
118
+ * A callback that is called when the query changes.
119
+ */
120
+ onQueryChange: ((query: string) => void) | null;
121
+ /**
122
+ * A callback that is called when the open state changes.
123
+ */
124
+ onOpenChange: ((open: boolean) => void) | null;
125
+ /**
126
+ * The placement of the popover, relative to the text cursor.
127
+ *
128
+ * @default "bottom-start"
129
+ */
130
+ placement: OverlayPositionerProps['placement'];
131
+ /**
132
+ * The distance between the popover and the hovered block.
133
+ *
134
+ * @default 4
135
+ */
136
+ offset: OverlayPositionerProps['offset'];
137
+ /**
138
+ * @default true
139
+ */
140
+ inline: OverlayPositionerProps['inline'];
141
+ /**
142
+ * @default true
143
+ */
144
+ hoist: OverlayPositionerProps['hoist'];
145
+ /**
146
+ * @default true
147
+ */
148
+ fitViewport: OverlayPositionerProps['fitViewport'];
149
+ /**
150
+ * @default "The body element"
151
+ */
152
+ boundary: OverlayPositionerProps['boundary'];
153
+ /**
154
+ * @default 8
155
+ */
156
+ overflowPadding: OverlayPositionerProps['overflowPadding'];
157
+ }
158
+ export { AutocompletePopoverProps }
159
+ export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
160
+
161
+ declare class BlockDragHandleElement extends BaseElement implements BlockDragHandleProps {
162
+ readonly _s: SignalState<BlockDragHandleProps>;
163
+ constructor();
164
+ }
165
+
166
+ declare interface BlockDragHandleElement extends BlockDragHandleProps {
167
+ }
168
+ export { BlockDragHandleElement }
169
+ export { BlockDragHandleElement as BlockDragHandleElement_alias_1 }
170
+
171
+ declare interface BlockDragHandleProps {
172
+ /**
173
+ * The ProseKit editor instance.
174
+ *
175
+ * @default null
176
+ */
177
+ editor: Editor | null;
178
+ }
179
+ export { BlockDragHandleProps }
180
+ export { BlockDragHandleProps as BlockDragHandleProps_alias_1 }
181
+
182
+ /**
183
+ * @internal
184
+ */
185
+ export declare interface BlockPopoverContext {
186
+ pos: number | null;
187
+ node: ProseMirrorNode | null;
188
+ element: HTMLElement | null;
189
+ }
190
+
191
+ /**
192
+ * @internal
193
+ */
194
+ export declare const blockPopoverContext: Context<BlockPopoverContext>;
195
+
196
+ declare class BlockPopoverElement extends BaseElement implements BlockPopoverProps {
197
+ readonly _s: SignalState<BlockPopoverProps>;
198
+ constructor();
199
+ }
200
+
201
+ declare interface BlockPopoverElement extends BlockPopoverProps {
202
+ }
203
+ export { BlockPopoverElement }
204
+ export { BlockPopoverElement as BlockPopoverElement_alias_1 }
205
+
206
+ declare interface BlockPopoverProps extends Omit<OverlayPositionerProps, 'placement' | 'offset'> {
207
+ /**
208
+ * The ProseKit editor instance.
209
+ *
210
+ * @default null
211
+ */
212
+ editor: Editor | null;
213
+ /**
214
+ * The placement of the popover, relative to the hovered block.
215
+ *
216
+ * @default "left-start"
217
+ */
218
+ placement: Placement;
219
+ /**
220
+ * The distance between the popover and the hovered block.
221
+ *
222
+ * @default 4
223
+ */
224
+ offset: number;
225
+ }
226
+ export { BlockPopoverProps }
227
+ export { BlockPopoverProps as BlockPopoverProps_alias_1 }
228
+
229
+ 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];
230
+
231
+ export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
232
+
233
+ export declare const default_alias_1: {
234
+ test: {
235
+ environment: "jsdom";
236
+ };
237
+ };
238
+
239
+ declare const defaultAutocompleteEmptyProps: {};
240
+ export { defaultAutocompleteEmptyProps }
241
+ export { defaultAutocompleteEmptyProps as defaultAutocompleteEmptyProps_alias_1 }
242
+
243
+ declare const defaultAutocompleteItemProps: {
244
+ value: string;
245
+ onSelect: null;
246
+ };
247
+ export { defaultAutocompleteItemProps }
248
+ export { defaultAutocompleteItemProps as defaultAutocompleteItemProps_alias_1 }
249
+
250
+ declare const defaultAutocompleteListProps: {
251
+ filter: (options: {
252
+ query: string;
253
+ value: string;
254
+ }) => boolean;
255
+ editor: null;
256
+ };
257
+ export { defaultAutocompleteListProps }
258
+ export { defaultAutocompleteListProps as defaultAutocompleteListProps_alias_1 }
259
+
260
+ declare const defaultAutocompletePopoverProps: Readonly<{
261
+ editor: null;
262
+ regex: null;
263
+ onQueryChange: null;
264
+ onOpenChange: null;
265
+ placement: "bottom-start";
266
+ offset: 4;
267
+ inline: true;
268
+ hoist: true;
269
+ fitViewport: true;
270
+ boundary: HTMLBodyElement | "clippingAncestors";
271
+ overflowPadding: 8;
272
+ strategy: "absolute";
273
+ autoUpdate: true;
274
+ transform: false;
275
+ flip: false;
276
+ shift: false;
277
+ overlap: false;
278
+ sameWidth: false;
279
+ sameHeight: false;
280
+ hide: false;
281
+ rootBoundary: "viewport";
282
+ elementContext: "floating";
283
+ altBoundary: true;
284
+ }>;
285
+ export { defaultAutocompletePopoverProps }
286
+ export { defaultAutocompletePopoverProps as defaultAutocompletePopoverProps_alias_1 }
287
+
288
+ declare const defaultBlockDragHandleProps: Readonly<{
289
+ editor: null;
290
+ }>;
291
+ export { defaultBlockDragHandleProps }
292
+ export { defaultBlockDragHandleProps as defaultBlockDragHandleProps_alias_1 }
293
+
294
+ declare const defaultBlockPopoverProps: Readonly<{
295
+ editor: null;
296
+ placement: "left-start";
297
+ offset: 4;
298
+ strategy: "absolute";
299
+ autoUpdate: true;
300
+ hoist: false;
301
+ transform: false;
302
+ flip: false;
303
+ shift: false;
304
+ overlap: false;
305
+ fitViewport: false;
306
+ sameWidth: false;
307
+ sameHeight: false;
308
+ inline: false;
309
+ hide: false;
310
+ boundary: "clippingAncestors";
311
+ rootBoundary: "viewport";
312
+ overflowPadding: 0;
313
+ elementContext: "floating";
314
+ altBoundary: true;
315
+ }>;
316
+ export { defaultBlockPopoverProps }
317
+ export { defaultBlockPopoverProps as defaultBlockPopoverProps_alias_1 }
318
+
319
+ declare const defaultInlinePopoverProps: Readonly<{
320
+ editor: null;
321
+ open: true;
322
+ onOpenChange: null;
323
+ placement: "top";
324
+ offset: 12;
325
+ flip: true;
326
+ hide: true;
327
+ overlap: true;
328
+ inline: true;
329
+ hoist: true;
330
+ strategy: "absolute";
331
+ autoUpdate: true;
332
+ transform: false;
333
+ shift: false;
334
+ fitViewport: false;
335
+ sameWidth: false;
336
+ sameHeight: false;
337
+ boundary: "clippingAncestors";
338
+ rootBoundary: "viewport";
339
+ overflowPadding: 0;
340
+ elementContext: "floating";
341
+ altBoundary: true;
342
+ }>;
343
+ export { defaultInlinePopoverProps }
344
+ export { defaultInlinePopoverProps as defaultInlinePopoverProps_alias_1 }
345
+
346
+ export { defaultPopoverContentProps }
347
+ export { defaultPopoverContentProps as defaultPopoverContentProps_alias_1 }
348
+
349
+ export { defaultPopoverRootProps }
350
+ export { defaultPopoverRootProps as defaultPopoverRootProps_alias_1 }
351
+
352
+ export { defaultPopoverTriggerProps }
353
+ export { defaultPopoverTriggerProps as defaultPopoverTriggerProps_alias_1 }
354
+
355
+ export declare function defaultQueryBuilder(match: RegExpExecArray): string;
356
+
357
+ declare const defaultResizableHandleProps: {
358
+ position: "bottom-right";
359
+ };
360
+ export { defaultResizableHandleProps }
361
+ export { defaultResizableHandleProps as defaultResizableHandleProps_alias_1 }
362
+
363
+ declare const defaultResizableRootProps: {
364
+ width: null;
365
+ height: null;
366
+ aspectRatio: null;
367
+ onSizeChangeStart: null;
368
+ onSizeChange: null;
369
+ onSizeChangeEnd: null;
370
+ };
371
+ export { defaultResizableRootProps }
372
+ export { defaultResizableRootProps as defaultResizableRootProps_alias_1 }
373
+
374
+ export { defaultTooltipContentProps }
375
+ export { defaultTooltipContentProps as defaultTooltipContentProps_alias_1 }
376
+
377
+ export { defaultTooltipRootProps }
378
+ export { defaultTooltipRootProps as defaultTooltipRootProps_alias_1 }
379
+
380
+ declare const defaultTooltipTriggerProps: {};
381
+ export { defaultTooltipTriggerProps }
382
+ export { defaultTooltipTriggerProps as defaultTooltipTriggerProps_alias_1 }
383
+
384
+ export declare function defineCustomElement(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
385
+
386
+ export declare function defineElementHoverHandler(handler: ElementHoverHandler): Extension< {}>;
387
+
388
+ export declare function defineProperties(ElementConstructor: new () => {
389
+ _s: SignalState<any>;
390
+ }, defaultProps: Record<string, any>): void;
391
+
392
+ export declare type ElementHoverHandler = (reference: VirtualElement | null, element: HTMLElement | null, node: ProseMirrorNode | null, pos: number | null) => void;
393
+
394
+ export declare function getVirtualSelectionElement(view: EditorView): ReferenceElement | null;
395
+
396
+ declare class InlinePopoverElement extends BaseElement implements InlinePopoverProps {
397
+ readonly _s: SignalState<InlinePopoverProps>;
398
+ constructor();
399
+ }
400
+
401
+ declare interface InlinePopoverElement extends InlinePopoverProps {
402
+ }
403
+ export { InlinePopoverElement }
404
+ export { InlinePopoverElement as InlinePopoverElement_alias_1 }
405
+
406
+ declare interface InlinePopoverProps extends Omit<OverlayPositionerProps, 'placement' | 'offset'> {
407
+ /**
408
+ * The ProseKit editor instance.
409
+ *
410
+ * @default null
411
+ */
412
+ editor: Editor | null;
413
+ /**
414
+ * Whether the popover is open.
415
+ *
416
+ * Notice that the popover will be always hidden if the inline selection is empty.
417
+ *
418
+ * @default `true`
419
+ */
420
+ open: boolean;
421
+ /**
422
+ * A callback that is called when the popover's open state changes.
423
+ *
424
+ * @default null
425
+ */
426
+ onOpenChange: ((open: boolean) => void) | null;
427
+ /**
428
+ * The placement of the popover, relative to the selected inline content.
429
+ *
430
+ * @default "top"
431
+ */
432
+ placement: OverlayPositionerProps['placement'];
433
+ /**
434
+ * @default 12
435
+ */
436
+ offset: OverlayPositionerProps['offset'];
437
+ /**
438
+ * @default true
439
+ */
440
+ flip: OverlayPositionerProps['flip'];
441
+ /**
442
+ * @default true
443
+ */
444
+ hide: OverlayPositionerProps['hide'];
445
+ /**
446
+ * @default true
447
+ */
448
+ overlap: OverlayPositionerProps['overlap'];
449
+ /**
450
+ * @default true
451
+ */
452
+ inline: OverlayPositionerProps['inline'];
453
+ /**
454
+ * @default true
455
+ */
456
+ hoist: OverlayPositionerProps['hoist'];
457
+ }
458
+ export { InlinePopoverProps }
459
+ export { InlinePopoverProps as InlinePopoverProps_alias_1 }
460
+
461
+ export declare function isFinitePositiveNumber(value: unknown): value is number;
462
+
463
+ export declare function isInCodeBlock(selection: Selection_2): boolean | undefined;
464
+
465
+ /**
466
+ * @internal
467
+ */
468
+ export declare type OnResize = ((width: number, height: number) => void) | null;
469
+
470
+ /**
471
+ * @internal
472
+ */
473
+ export declare const onResizeContext: Context<OnResize>;
474
+
475
+ /**
476
+ * @internal
477
+ */
478
+ export declare type OnResizeEnd = (() => void) | null;
479
+
480
+ /**
481
+ * @internal
482
+ */
483
+ export declare const onResizeEndContext: Context<OnResizeEnd>;
484
+
485
+ /**
486
+ * @internal
487
+ */
488
+ export declare type OnResizeStart = (() => readonly [width: number, height: number, aspectRatio: number]) | null;
489
+
490
+ /**
491
+ * @internal
492
+ */
493
+ export declare const onResizeStartContext: Context<OnResizeStart>;
494
+
495
+ export declare const onSubmitContext: Context<VoidFunction | null>;
496
+
497
+ export declare const openContext: Context<boolean>;
498
+
499
+ declare class PopoverContentElement extends BaseElement implements PopoverContentProps {
500
+ readonly _s: SignalState<PopoverContentProps>;
501
+ constructor();
502
+ }
503
+
504
+ declare interface PopoverContentElement extends PopoverContentProps {
505
+ }
506
+ export { PopoverContentElement }
507
+ export { PopoverContentElement as PopoverContentElement_alias_1 }
508
+
509
+ export { PopoverContentProps }
510
+ export { PopoverContentProps as PopoverContentProps_alias_1 }
511
+
512
+ declare class PopoverRootElement extends BaseElement implements PopoverRootProps {
513
+ readonly _s: SignalState<PopoverRootProps>;
514
+ constructor();
515
+ }
516
+
517
+ declare interface PopoverRootElement extends PopoverRootProps {
518
+ }
519
+ export { PopoverRootElement }
520
+ export { PopoverRootElement as PopoverRootElement_alias_1 }
521
+
522
+ export { PopoverRootProps }
523
+ export { PopoverRootProps as PopoverRootProps_alias_1 }
524
+
525
+ declare class PopoverTriggerElement extends BaseElement implements PopoverTriggerProps {
526
+ readonly _s: SignalState<PopoverTriggerProps>;
527
+ constructor();
528
+ }
529
+
530
+ declare interface PopoverTriggerElement extends PopoverTriggerProps {
531
+ }
532
+ export { PopoverTriggerElement }
533
+ export { PopoverTriggerElement as PopoverTriggerElement_alias_1 }
534
+
535
+ export { PopoverTriggerProps }
536
+ export { PopoverTriggerProps as PopoverTriggerProps_alias_1 }
537
+
538
+ export declare const queryContext: Context<string>;
539
+
540
+ declare class ResizableHandleElement extends BaseElement implements ResizableHandleProps {
541
+ readonly _s: SignalState<ResizableHandleProps>;
542
+ constructor();
543
+ }
544
+
545
+ declare interface ResizableHandleElement extends ResizableHandleProps {
546
+ }
547
+ export { ResizableHandleElement }
548
+ export { ResizableHandleElement as ResizableHandleElement_alias_1 }
549
+
550
+ declare interface ResizableHandleProps {
551
+ /**
552
+ * The position of the handle.
553
+ *
554
+ * @default "bottom-right"
555
+ */
556
+ position: 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
557
+ }
558
+ export { ResizableHandleProps }
559
+ export { ResizableHandleProps as ResizableHandleProps_alias_1 }
560
+
561
+ declare class ResizableRootElement extends BaseElement implements ResizableRootProps {
562
+ readonly _s: SignalState<ResizableRootProps>;
563
+ constructor();
564
+ }
565
+
566
+ declare interface ResizableRootElement extends ResizableRootProps {
567
+ }
568
+ export { ResizableRootElement }
569
+ export { ResizableRootElement as ResizableRootElement_alias_1 }
570
+
571
+ declare interface ResizableRootProps {
572
+ width: number | null;
573
+ height: number | null;
574
+ aspectRatio: number | null;
575
+ onSizeChangeStart: ((size: {
576
+ width: number;
577
+ height: number;
578
+ }) => void) | null;
579
+ onSizeChange: ((size: {
580
+ width: number;
581
+ height: number;
582
+ }) => void) | null;
583
+ onSizeChangeEnd: ((size: {
584
+ width: number;
585
+ height: number;
586
+ }) => void) | null;
587
+ }
588
+ export { ResizableRootProps }
589
+ export { ResizableRootProps as ResizableRootProps_alias_1 }
590
+
591
+ /**
592
+ * @internal
593
+ */
594
+ export declare function throttle<Args extends any[]>(callback: (...args: Args) => void, wait: number): (...args: Args) => void;
595
+
596
+ declare class TooltipContentElement extends BaseElement implements TooltipContentProps {
597
+ readonly _s: SignalState<TooltipContentProps>;
598
+ constructor();
599
+ }
600
+
601
+ declare interface TooltipContentElement extends TooltipContentProps {
602
+ }
603
+ export { TooltipContentElement }
604
+ export { TooltipContentElement as TooltipContentElement_alias_1 }
605
+
606
+ export { TooltipContentProps }
607
+ export { TooltipContentProps as TooltipContentProps_alias_1 }
608
+
609
+ declare class TooltipRootElement extends BaseElement implements TooltipRootProps {
610
+ readonly _s: SignalState<TooltipRootProps>;
611
+ constructor();
612
+ }
613
+
614
+ declare interface TooltipRootElement extends TooltipRootProps {
615
+ }
616
+ export { TooltipRootElement }
617
+ export { TooltipRootElement as TooltipRootElement_alias_1 }
618
+
619
+ export { TooltipRootProps }
620
+ export { TooltipRootProps as TooltipRootProps_alias_1 }
621
+
622
+ declare class TooltipTriggerElement extends BaseElement implements TooltipTriggerProps {
623
+ readonly _s: SignalState<TooltipTriggerProps>;
624
+ constructor();
625
+ }
626
+
627
+ declare interface TooltipTriggerElement extends TooltipTriggerProps {
628
+ }
629
+ export { TooltipTriggerElement }
630
+ export { TooltipTriggerElement as TooltipTriggerElement_alias_1 }
631
+
632
+ declare interface TooltipTriggerProps {
633
+ }
634
+ export { TooltipTriggerProps }
635
+ export { TooltipTriggerProps as TooltipTriggerProps_alias_1 }
636
+
637
+ export declare function useAutocompleteEmpty(element: ConnectableElement, _props?: Partial<AutocompleteEmptyProps>): SignalState<AutocompleteEmptyProps>;
638
+
639
+ export declare function useAutocompleteItem(element: ConnectableElement, props?: Partial<AutocompleteItemProps>): SignalState<AutocompleteItemProps>;
640
+
641
+ export declare function useAutocompleteList(element: ConnectableElement, props?: Partial<AutocompleteListProps>): SignalState<AutocompleteListProps>;
642
+
643
+ export declare function useAutocompletePopover(host: ConnectableElement, props?: Partial<AutocompletePopoverProps>): SignalState<Readonly<AutocompletePopoverProps>>;
644
+
645
+ export declare function useBlockDragHandle(host: ConnectableElement, props?: Partial<BlockDragHandleProps>): SignalState<BlockDragHandleProps>;
646
+
647
+ export declare function useBlockPopover(host: ConnectableElement, props?: Partial<BlockPopoverProps>): SignalState<BlockPopoverProps>;
648
+
649
+ export declare function useEditorExtension(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, extension: Extension): void;
650
+
651
+ /**
652
+ * @internal
653
+ */
654
+ export declare function useEditorFocusChangeEvent(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, handler: FocusChangeHandler): void;
655
+
656
+ /**
657
+ * @internal
658
+ */
659
+ export declare function useEditorUpdateEvent(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, handler: UpdateHandler): void;
660
+
661
+ export declare function useInlinePopover(host: ConnectableElement, props?: Partial<InlinePopoverProps>): SignalState<Readonly<InlinePopoverProps>>;
662
+
663
+ export { usePopoverContent }
664
+
665
+ export { usePopoverRoot }
666
+
667
+ export declare function usePopoverTrigger(host: ConnectableElement): {};
668
+
669
+ export declare function useResizableHandle(host: ConnectableElement, props?: Partial<ResizableHandleProps>): SignalState<Readonly<ResizableHandleProps>>;
670
+
671
+ export declare function useResizableRoot(host: ConnectableElement, props?: Partial<ResizableRootProps>): SignalState<Readonly<ResizableRootProps>>;
672
+
673
+ export { useTooltipContent }
674
+
675
+ export { useTooltipRoot }
676
+
677
+ export declare function useTooltipTrigger(host: ConnectableElement): {};
678
+
679
+ export { }