@react-email/editor 0.0.0-canary.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/columns-D1gzbJr5.cjs +404 -0
  2. package/dist/columns-TFI4L-IC.mjs +277 -0
  3. package/dist/columns-TFI4L-IC.mjs.map +1 -0
  4. package/dist/core/index.cjs +9 -0
  5. package/dist/core/index.d.cts +2 -0
  6. package/dist/core/index.d.mts +2 -0
  7. package/dist/core/index.mjs +4 -0
  8. package/dist/core-Dp3tVCOZ.mjs +156 -0
  9. package/dist/core-Dp3tVCOZ.mjs.map +1 -0
  10. package/dist/core-NV1Aun-R.cjs +173 -0
  11. package/dist/event-bus-BxVEXi1L.mjs +88 -0
  12. package/dist/event-bus-BxVEXi1L.mjs.map +1 -0
  13. package/dist/event-bus-WI0H5tIM.cjs +105 -0
  14. package/dist/extension-CfIsm0_p.cjs +1504 -0
  15. package/dist/extension-n2yYIR7e.mjs +1403 -0
  16. package/dist/extension-n2yYIR7e.mjs.map +1 -0
  17. package/dist/extensions/index.cjs +51 -0
  18. package/dist/extensions/index.d.cts +401 -0
  19. package/dist/extensions/index.d.cts.map +1 -0
  20. package/dist/extensions/index.d.mts +401 -0
  21. package/dist/extensions/index.d.mts.map +1 -0
  22. package/dist/extensions/index.mjs +5 -0
  23. package/dist/extensions-BsDsFFkk.mjs +1785 -0
  24. package/dist/extensions-BsDsFFkk.mjs.map +1 -0
  25. package/dist/extensions-D9BbHnEV.cjs +2029 -0
  26. package/dist/global-content-CaNsyaPw.mjs +78 -0
  27. package/dist/global-content-CaNsyaPw.mjs.map +1 -0
  28. package/dist/global-content-CxV8qpMp.cjs +89 -0
  29. package/dist/index-BMsf5s28.d.mts +194 -0
  30. package/dist/index-BMsf5s28.d.mts.map +1 -0
  31. package/dist/index-DNriNUPU.d.cts +194 -0
  32. package/dist/index-DNriNUPU.d.cts.map +1 -0
  33. package/dist/index.cjs +199 -0
  34. package/dist/index.css +1171 -0
  35. package/dist/index.css.map +1 -0
  36. package/dist/index.d.cts +43 -0
  37. package/dist/index.d.cts.map +1 -0
  38. package/dist/index.d.mts +43 -0
  39. package/dist/index.d.mts.map +1 -0
  40. package/dist/index.mjs +199 -0
  41. package/dist/index.mjs.map +1 -0
  42. package/dist/plugins/index.cjs +19 -0
  43. package/dist/plugins/index.d.cts +73 -0
  44. package/dist/plugins/index.d.cts.map +1 -0
  45. package/dist/plugins/index.d.mts +73 -0
  46. package/dist/plugins/index.d.mts.map +1 -0
  47. package/dist/plugins/index.mjs +3 -0
  48. package/dist/root-BWiLr5WO.mjs +2363 -0
  49. package/dist/root-BWiLr5WO.mjs.map +1 -0
  50. package/dist/root-Bm_YBU0n.cjs +2873 -0
  51. package/dist/set-text-alignment-BDkB4Vfh.mjs +19 -0
  52. package/dist/set-text-alignment-BDkB4Vfh.mjs.map +1 -0
  53. package/dist/set-text-alignment-BlyZq1GA.cjs +24 -0
  54. package/dist/styles-BBXVfEv-.mjs +223 -0
  55. package/dist/styles-BBXVfEv-.mjs.map +1 -0
  56. package/dist/styles-D5jB7Yx-.cjs +252 -0
  57. package/dist/types-B-hiUAR9.d.cts +47 -0
  58. package/dist/types-B-hiUAR9.d.cts.map +1 -0
  59. package/dist/types-J7sLqbPy.d.mts +47 -0
  60. package/dist/types-J7sLqbPy.d.mts.map +1 -0
  61. package/dist/ui/bubble-menu/bubble-menu.css +285 -0
  62. package/dist/ui/index.cjs +3052 -0
  63. package/dist/ui/index.d.cts +1220 -0
  64. package/dist/ui/index.d.cts.map +1 -0
  65. package/dist/ui/index.d.mts +1220 -0
  66. package/dist/ui/index.d.mts.map +1 -0
  67. package/dist/ui/index.mjs +2942 -0
  68. package/dist/ui/index.mjs.map +1 -0
  69. package/dist/ui/inspector/inspector.css +338 -0
  70. package/dist/ui/slash-command/slash-command.css +44 -0
  71. package/dist/ui/themes/default.css +1169 -0
  72. package/dist/utils/index.cjs +3 -0
  73. package/dist/utils/index.d.cts +7 -0
  74. package/dist/utils/index.d.cts.map +1 -0
  75. package/dist/utils/index.d.mts +7 -0
  76. package/dist/utils/index.d.mts.map +1 -0
  77. package/dist/utils/index.mjs +3 -0
  78. package/license.md +7 -0
  79. package/package.json +159 -0
  80. package/readme.md +69 -0
@@ -0,0 +1,1220 @@
1
+ import { a as PanelGroup, i as KnownThemeComponents, r as KnownCssProperties } from "../types-B-hiUAR9.cjs";
2
+ import { Attrs } from "@tiptap/pm/model";
3
+ import { Editor, Range } from "@tiptap/core";
4
+ import * as React$2 from "react";
5
+ import React$1, { ReactNode } from "react";
6
+ import { EditorView } from "@tiptap/pm/view";
7
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
8
+ import { EditorState, PluginKey } from "@tiptap/pm/state";
9
+
10
+ //#region src/ui/bubble-menu/create-mark-bubble-item.d.ts
11
+ interface PreWiredItemProps {
12
+ className?: string;
13
+ /** Override the default icon */
14
+ children?: React$2.ReactNode;
15
+ }
16
+ //#endregion
17
+ //#region src/ui/bubble-menu/align-center.d.ts
18
+ declare function BubbleMenuAlignCenter({
19
+ className,
20
+ children
21
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
22
+ //#endregion
23
+ //#region src/ui/bubble-menu/align-left.d.ts
24
+ declare function BubbleMenuAlignLeft({
25
+ className,
26
+ children
27
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
28
+ //#endregion
29
+ //#region src/ui/bubble-menu/align-right.d.ts
30
+ declare function BubbleMenuAlignRight({
31
+ className,
32
+ children
33
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
34
+ //#endregion
35
+ //#region src/ui/bubble-menu/button-default.d.ts
36
+ interface BubbleMenuButtonDefaultProps extends Omit<React$2.ComponentPropsWithoutRef<'div'>, 'children'> {
37
+ placement?: 'top' | 'bottom';
38
+ offset?: number;
39
+ onHide?: () => void;
40
+ validateUrl?: (value: string) => string | null;
41
+ onLinkApply?: (href: string) => void;
42
+ onLinkRemove?: () => void;
43
+ }
44
+ declare function BubbleMenuButtonDefault({
45
+ placement,
46
+ offset,
47
+ onHide,
48
+ className,
49
+ validateUrl,
50
+ onLinkApply,
51
+ onLinkRemove,
52
+ ...rest
53
+ }: BubbleMenuButtonDefaultProps): react_jsx_runtime10.JSX.Element;
54
+ //#endregion
55
+ //#region src/ui/bubble-menu/button-edit-link.d.ts
56
+ interface BubbleMenuButtonEditLinkProps extends Omit<React$2.ComponentProps<'button'>, 'type'> {}
57
+ declare function BubbleMenuButtonEditLink({
58
+ className,
59
+ children,
60
+ onClick,
61
+ onMouseDown,
62
+ ...rest
63
+ }: BubbleMenuButtonEditLinkProps): react_jsx_runtime10.JSX.Element;
64
+ //#endregion
65
+ //#region src/ui/bubble-menu/button-form.d.ts
66
+ interface BubbleMenuButtonFormProps {
67
+ className?: string;
68
+ validateUrl?: (value: string) => string | null;
69
+ onLinkApply?: (href: string) => void;
70
+ onLinkRemove?: () => void;
71
+ }
72
+ declare function BubbleMenuButtonForm({
73
+ className,
74
+ validateUrl,
75
+ onLinkApply,
76
+ onLinkRemove
77
+ }: BubbleMenuButtonFormProps): react_jsx_runtime10.JSX.Element | null;
78
+ //#endregion
79
+ //#region src/ui/bubble-menu/button-toolbar.d.ts
80
+ interface BubbleMenuButtonToolbarProps extends React$2.ComponentProps<'div'> {}
81
+ declare function BubbleMenuButtonToolbar({
82
+ children,
83
+ ...rest
84
+ }: BubbleMenuButtonToolbarProps): react_jsx_runtime10.JSX.Element | null;
85
+ //#endregion
86
+ //#region src/ui/bubble-menu/button-unlink.d.ts
87
+ interface BubbleMenuButtonUnlinkProps extends Omit<React$2.ComponentProps<'button'>, 'type'> {
88
+ onLinkRemove?: () => void;
89
+ }
90
+ declare function BubbleMenuButtonUnlink({
91
+ className,
92
+ children,
93
+ onClick,
94
+ onMouseDown,
95
+ onLinkRemove,
96
+ ...rest
97
+ }: BubbleMenuButtonUnlinkProps): react_jsx_runtime10.JSX.Element;
98
+ //#endregion
99
+ //#region src/ui/bubble-menu/group.d.ts
100
+ interface BubbleMenuItemGroupProps {
101
+ className?: string;
102
+ children: React$2.ReactNode;
103
+ }
104
+ declare function BubbleMenuItemGroup({
105
+ className,
106
+ children
107
+ }: BubbleMenuItemGroupProps): react_jsx_runtime10.JSX.Element;
108
+ //#endregion
109
+ //#region src/ui/bubble-menu/image-default.d.ts
110
+ type ExcludableItem$1 = 'edit-link';
111
+ interface BubbleMenuImageDefaultProps extends Omit<React$2.ComponentPropsWithoutRef<'div'>, 'children'> {
112
+ excludeItems?: ExcludableItem$1[];
113
+ placement?: 'top' | 'bottom';
114
+ offset?: number;
115
+ onHide?: () => void;
116
+ }
117
+ declare function BubbleMenuImageDefault({
118
+ excludeItems,
119
+ placement,
120
+ offset,
121
+ onHide,
122
+ className,
123
+ ...rest
124
+ }: BubbleMenuImageDefaultProps): react_jsx_runtime10.JSX.Element;
125
+ //#endregion
126
+ //#region src/ui/bubble-menu/image-edit-link.d.ts
127
+ interface BubbleMenuImageEditLinkProps extends Omit<React$2.ComponentProps<'button'>, 'type'> {}
128
+ declare function BubbleMenuImageEditLink({
129
+ className,
130
+ children,
131
+ onClick,
132
+ onMouseDown,
133
+ ...rest
134
+ }: BubbleMenuImageEditLinkProps): react_jsx_runtime10.JSX.Element;
135
+ //#endregion
136
+ //#region src/ui/bubble-menu/image-toolbar.d.ts
137
+ interface BubbleMenuImageToolbarProps extends React$2.ComponentProps<'div'> {}
138
+ declare function BubbleMenuImageToolbar({
139
+ children,
140
+ ...rest
141
+ }: BubbleMenuImageToolbarProps): react_jsx_runtime10.JSX.Element | null;
142
+ //#endregion
143
+ //#region src/ui/bubble-menu/item.d.ts
144
+ interface BubbleMenuItemProps extends React$2.ComponentProps<'button'> {
145
+ /** Used for aria-label and data-item attribute */
146
+ name: string;
147
+ /** Whether this item is currently active */
148
+ isActive: boolean;
149
+ /** Called when clicked */
150
+ onCommand: () => void;
151
+ }
152
+ declare function BubbleMenuItem({
153
+ name,
154
+ isActive,
155
+ onCommand,
156
+ className,
157
+ children,
158
+ ...rest
159
+ }: BubbleMenuItemProps): react_jsx_runtime10.JSX.Element;
160
+ //#endregion
161
+ //#region src/ui/bubble-menu/link-default.d.ts
162
+ type ExcludableItem = 'edit-link' | 'open-link' | 'unlink';
163
+ interface BubbleMenuLinkDefaultProps extends Omit<React$2.ComponentPropsWithoutRef<'div'>, 'children'> {
164
+ excludeItems?: ExcludableItem[];
165
+ placement?: 'top' | 'bottom';
166
+ offset?: number;
167
+ onHide?: () => void;
168
+ validateUrl?: (value: string) => string | null;
169
+ onLinkApply?: (href: string) => void;
170
+ onLinkRemove?: () => void;
171
+ }
172
+ declare function BubbleMenuLinkDefault({
173
+ excludeItems,
174
+ placement,
175
+ offset,
176
+ onHide,
177
+ className,
178
+ validateUrl,
179
+ onLinkApply,
180
+ onLinkRemove,
181
+ ...rest
182
+ }: BubbleMenuLinkDefaultProps): react_jsx_runtime10.JSX.Element;
183
+ //#endregion
184
+ //#region src/ui/bubble-menu/link-edit-link.d.ts
185
+ interface BubbleMenuLinkEditLinkProps extends Omit<React$2.ComponentProps<'button'>, 'type'> {}
186
+ declare function BubbleMenuLinkEditLink({
187
+ className,
188
+ children,
189
+ onClick,
190
+ onMouseDown,
191
+ ...rest
192
+ }: BubbleMenuLinkEditLinkProps): react_jsx_runtime10.JSX.Element;
193
+ //#endregion
194
+ //#region src/ui/bubble-menu/link-form.d.ts
195
+ interface BubbleMenuLinkFormProps {
196
+ className?: string;
197
+ validateUrl?: (value: string) => string | null;
198
+ onLinkApply?: (href: string) => void;
199
+ onLinkRemove?: () => void;
200
+ children?: React$2.ReactNode;
201
+ }
202
+ declare function BubbleMenuLinkForm({
203
+ className,
204
+ validateUrl,
205
+ onLinkApply,
206
+ onLinkRemove,
207
+ children
208
+ }: BubbleMenuLinkFormProps): react_jsx_runtime10.JSX.Element | null;
209
+ //#endregion
210
+ //#region src/ui/bubble-menu/link-open-link.d.ts
211
+ interface BubbleMenuLinkOpenLinkProps extends Omit<React$2.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
212
+ declare function BubbleMenuLinkOpenLink({
213
+ className,
214
+ children,
215
+ ...rest
216
+ }: BubbleMenuLinkOpenLinkProps): react_jsx_runtime10.JSX.Element;
217
+ //#endregion
218
+ //#region src/ui/bubble-menu/link-selector.d.ts
219
+ interface BubbleMenuLinkSelectorProps {
220
+ className?: string;
221
+ /** Whether to show the link icon toggle button (default: true) */
222
+ showToggle?: boolean;
223
+ /** Custom URL validator. Return the valid URL string or null. */
224
+ validateUrl?: (value: string) => string | null;
225
+ /** Called after link is applied */
226
+ onLinkApply?: (href: string) => void;
227
+ /** Called after link is removed */
228
+ onLinkRemove?: () => void;
229
+ /** Plugin slot: extra actions rendered inside the link input form */
230
+ children?: React$2.ReactNode;
231
+ /** Controlled open state */
232
+ open?: boolean;
233
+ /** Called when open state changes */
234
+ onOpenChange?: (open: boolean) => void;
235
+ }
236
+ declare function BubbleMenuLinkSelector({
237
+ className,
238
+ showToggle,
239
+ validateUrl,
240
+ onLinkApply,
241
+ onLinkRemove,
242
+ children,
243
+ open: controlledOpen,
244
+ onOpenChange
245
+ }: BubbleMenuLinkSelectorProps): react_jsx_runtime10.JSX.Element | null;
246
+ //#endregion
247
+ //#region src/ui/bubble-menu/link-toolbar.d.ts
248
+ interface BubbleMenuLinkToolbarProps extends React$2.ComponentProps<'div'> {}
249
+ declare function BubbleMenuLinkToolbar({
250
+ children,
251
+ ...rest
252
+ }: BubbleMenuLinkToolbarProps): react_jsx_runtime10.JSX.Element | null;
253
+ //#endregion
254
+ //#region src/ui/bubble-menu/link-unlink.d.ts
255
+ interface BubbleMenuLinkUnlinkProps extends Omit<React$2.ComponentProps<'button'>, 'type'> {}
256
+ declare function BubbleMenuLinkUnlink({
257
+ className,
258
+ children,
259
+ onClick,
260
+ onMouseDown,
261
+ ...rest
262
+ }: BubbleMenuLinkUnlinkProps): react_jsx_runtime10.JSX.Element;
263
+ //#endregion
264
+ //#region src/ui/bubble-menu/node-selector.d.ts
265
+ type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
266
+ interface NodeSelectorItem {
267
+ name: NodeType;
268
+ icon: React$2.ComponentType<React$2.SVGAttributes<SVGSVGElement>>;
269
+ command: () => void;
270
+ isActive: boolean;
271
+ }
272
+ interface NodeSelectorRootProps {
273
+ /** Block types to exclude */
274
+ omit?: string[];
275
+ /** Controlled open state */
276
+ open?: boolean;
277
+ /** Called when open state changes */
278
+ onOpenChange?: (open: boolean) => void;
279
+ className?: string;
280
+ children: React$2.ReactNode;
281
+ }
282
+ declare function NodeSelectorRoot({
283
+ omit,
284
+ open: controlledOpen,
285
+ onOpenChange,
286
+ className,
287
+ children
288
+ }: NodeSelectorRootProps): react_jsx_runtime10.JSX.Element | null;
289
+ interface NodeSelectorTriggerProps {
290
+ className?: string;
291
+ children?: React$2.ReactNode;
292
+ }
293
+ declare function NodeSelectorTrigger({
294
+ className,
295
+ children
296
+ }: NodeSelectorTriggerProps): react_jsx_runtime10.JSX.Element;
297
+ interface NodeSelectorContentProps {
298
+ className?: string;
299
+ /** Popover alignment (default: "start") */
300
+ align?: 'start' | 'center' | 'end';
301
+ /** Render-prop for full control over item rendering.
302
+ * Receives the filtered items and a `close` function to dismiss the popover. */
303
+ children?: (items: NodeSelectorItem[], close: () => void) => React$2.ReactNode;
304
+ }
305
+ declare function NodeSelectorContent({
306
+ className,
307
+ align,
308
+ children
309
+ }: NodeSelectorContentProps): react_jsx_runtime10.JSX.Element;
310
+ interface BubbleMenuNodeSelectorProps {
311
+ /** Block types to exclude */
312
+ omit?: string[];
313
+ className?: string;
314
+ /** Override the trigger content (default: active item name + chevron icon) */
315
+ triggerContent?: React$2.ReactNode;
316
+ /** Controlled open state */
317
+ open?: boolean;
318
+ /** Called when open state changes */
319
+ onOpenChange?: (open: boolean) => void;
320
+ }
321
+ declare function BubbleMenuNodeSelector({
322
+ omit,
323
+ className,
324
+ triggerContent,
325
+ open,
326
+ onOpenChange
327
+ }: BubbleMenuNodeSelectorProps): react_jsx_runtime10.JSX.Element;
328
+ //#endregion
329
+ //#region src/ui/bubble-menu/triggers.d.ts
330
+ interface TriggerParams {
331
+ editor: Editor;
332
+ view: EditorView;
333
+ state: EditorState;
334
+ from: number;
335
+ to: number;
336
+ }
337
+ type TriggerFn = (params: TriggerParams) => boolean;
338
+ declare const bubbleMenuTriggers: {
339
+ textSelection(hideWhenActiveNodes?: string[], hideWhenActiveMarks?: string[]): TriggerFn;
340
+ node(name: string): TriggerFn;
341
+ nodeWithoutSelection(name: string): TriggerFn;
342
+ };
343
+ //#endregion
344
+ //#region src/ui/bubble-menu/root.d.ts
345
+ interface BubbleMenuRootProps extends React$2.ComponentPropsWithoutRef<'div'> {
346
+ trigger?: TriggerFn;
347
+ pluginKey?: PluginKey;
348
+ hideWhenActiveNodes?: string[];
349
+ hideWhenActiveMarks?: string[];
350
+ placement?: 'top' | 'bottom';
351
+ offset?: number;
352
+ onHide?: () => void;
353
+ }
354
+ declare function RootWithDefault({
355
+ children,
356
+ ...rest
357
+ }: BubbleMenuRootProps): react_jsx_runtime10.JSX.Element;
358
+ //#endregion
359
+ //#region src/ui/bubble-menu/separator.d.ts
360
+ interface BubbleMenuSeparatorProps {
361
+ className?: string;
362
+ }
363
+ declare function BubbleMenuSeparator({
364
+ className
365
+ }: BubbleMenuSeparatorProps): react_jsx_runtime10.JSX.Element;
366
+ //#endregion
367
+ //#region src/ui/bubble-menu/bold.d.ts
368
+ declare const BubbleMenuBold: {
369
+ ({
370
+ className,
371
+ children
372
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
373
+ displayName: string;
374
+ };
375
+ //#endregion
376
+ //#region src/ui/bubble-menu/code.d.ts
377
+ declare const BubbleMenuCode: {
378
+ ({
379
+ className,
380
+ children
381
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
382
+ displayName: string;
383
+ };
384
+ //#endregion
385
+ //#region src/ui/bubble-menu/context.d.ts
386
+ interface BubbleMenuContextValue {
387
+ editor: Editor;
388
+ isEditing: boolean;
389
+ setIsEditing: (value: boolean) => void;
390
+ }
391
+ declare function useBubbleMenuContext(): BubbleMenuContextValue;
392
+ //#endregion
393
+ //#region src/ui/bubble-menu/italic.d.ts
394
+ declare const BubbleMenuItalic: {
395
+ ({
396
+ className,
397
+ children
398
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
399
+ displayName: string;
400
+ };
401
+ //#endregion
402
+ //#region src/ui/bubble-menu/strike.d.ts
403
+ declare const BubbleMenuStrike: {
404
+ ({
405
+ className,
406
+ children
407
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
408
+ displayName: string;
409
+ };
410
+ //#endregion
411
+ //#region src/ui/bubble-menu/underline.d.ts
412
+ declare const BubbleMenuUnderline: {
413
+ ({
414
+ className,
415
+ children
416
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
417
+ displayName: string;
418
+ };
419
+ //#endregion
420
+ //#region src/ui/bubble-menu/uppercase.d.ts
421
+ declare const BubbleMenuUppercase: {
422
+ ({
423
+ className,
424
+ children
425
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
426
+ displayName: string;
427
+ };
428
+ //#endregion
429
+ //#region src/ui/bubble-menu/index.d.ts
430
+ declare const BubbleMenu: typeof RootWithDefault & {
431
+ readonly Root: typeof RootWithDefault;
432
+ readonly ItemGroup: typeof BubbleMenuItemGroup;
433
+ readonly Separator: typeof BubbleMenuSeparator;
434
+ readonly Item: typeof BubbleMenuItem;
435
+ readonly Bold: {
436
+ ({
437
+ className,
438
+ children
439
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
440
+ displayName: string;
441
+ };
442
+ readonly Italic: {
443
+ ({
444
+ className,
445
+ children
446
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
447
+ displayName: string;
448
+ };
449
+ readonly Underline: {
450
+ ({
451
+ className,
452
+ children
453
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
454
+ displayName: string;
455
+ };
456
+ readonly Strike: {
457
+ ({
458
+ className,
459
+ children
460
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
461
+ displayName: string;
462
+ };
463
+ readonly Code: {
464
+ ({
465
+ className,
466
+ children
467
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
468
+ displayName: string;
469
+ };
470
+ readonly Uppercase: {
471
+ ({
472
+ className,
473
+ children
474
+ }: PreWiredItemProps): react_jsx_runtime10.JSX.Element;
475
+ displayName: string;
476
+ };
477
+ readonly AlignLeft: typeof BubbleMenuAlignLeft;
478
+ readonly AlignCenter: typeof BubbleMenuAlignCenter;
479
+ readonly AlignRight: typeof BubbleMenuAlignRight;
480
+ readonly NodeSelector: typeof BubbleMenuNodeSelector & {
481
+ Root: typeof NodeSelectorRoot;
482
+ Trigger: typeof NodeSelectorTrigger;
483
+ Content: typeof NodeSelectorContent;
484
+ };
485
+ readonly LinkSelector: typeof BubbleMenuLinkSelector;
486
+ readonly ButtonToolbar: typeof BubbleMenuButtonToolbar;
487
+ readonly ButtonEditLink: typeof BubbleMenuButtonEditLink;
488
+ readonly ButtonUnlink: typeof BubbleMenuButtonUnlink;
489
+ readonly ButtonForm: typeof BubbleMenuButtonForm;
490
+ readonly ButtonDefault: typeof BubbleMenuButtonDefault;
491
+ readonly LinkToolbar: typeof BubbleMenuLinkToolbar;
492
+ readonly LinkEditLink: typeof BubbleMenuLinkEditLink;
493
+ readonly LinkUnlink: typeof BubbleMenuLinkUnlink;
494
+ readonly LinkOpenLink: typeof BubbleMenuLinkOpenLink;
495
+ readonly LinkForm: typeof BubbleMenuLinkForm;
496
+ readonly LinkDefault: typeof BubbleMenuLinkDefault;
497
+ readonly ImageToolbar: typeof BubbleMenuImageToolbar;
498
+ readonly ImageEditLink: typeof BubbleMenuImageEditLink;
499
+ readonly ImageDefault: typeof BubbleMenuImageDefault;
500
+ };
501
+ //#endregion
502
+ //#region src/ui/editor-focus-scope.d.ts
503
+ interface FocusScopeContextValue {
504
+ registerScope: (el: HTMLElement | null) => void;
505
+ unregisterScope: (el: HTMLElement | null) => void;
506
+ }
507
+ declare function useEditorFocusScope(): FocusScopeContextValue;
508
+ interface EditorFocusScopeProviderProps {
509
+ children: React$2.ReactNode;
510
+ clearSelectionOnBlur?: boolean;
511
+ }
512
+ declare function EditorFocusScopeProvider({
513
+ children,
514
+ clearSelectionOnBlur
515
+ }: EditorFocusScopeProviderProps): react_jsx_runtime10.JSX.Element;
516
+ interface EditorFocusScopeProps {
517
+ children: React$2.ReactNode;
518
+ }
519
+ declare function EditorFocusScope({
520
+ children
521
+ }: EditorFocusScopeProps): react_jsx_runtime10.JSX.Element;
522
+ //#endregion
523
+ //#region src/ui/icons/types.d.ts
524
+ interface IconProps extends React$2.SVGAttributes<SVGSVGElement> {
525
+ size?: number | string;
526
+ }
527
+ //#endregion
528
+ //#region src/ui/icons/align-center.d.ts
529
+ declare function AlignCenterIcon({
530
+ size,
531
+ width,
532
+ height,
533
+ ...props
534
+ }: IconProps): react_jsx_runtime10.JSX.Element;
535
+ //#endregion
536
+ //#region src/ui/icons/align-center-vertical.d.ts
537
+ declare function AlignCenterVerticalIcon({
538
+ size,
539
+ width,
540
+ height,
541
+ ...props
542
+ }: IconProps): react_jsx_runtime10.JSX.Element;
543
+ //#endregion
544
+ //#region src/ui/icons/align-end-vertical.d.ts
545
+ declare function AlignEndVerticalIcon({
546
+ size,
547
+ width,
548
+ height,
549
+ ...props
550
+ }: IconProps): react_jsx_runtime10.JSX.Element;
551
+ //#endregion
552
+ //#region src/ui/icons/align-left.d.ts
553
+ declare function AlignLeftIcon({
554
+ size,
555
+ width,
556
+ height,
557
+ ...props
558
+ }: IconProps): react_jsx_runtime10.JSX.Element;
559
+ //#endregion
560
+ //#region src/ui/icons/align-right.d.ts
561
+ declare function AlignRightIcon({
562
+ size,
563
+ width,
564
+ height,
565
+ ...props
566
+ }: IconProps): react_jsx_runtime10.JSX.Element;
567
+ //#endregion
568
+ //#region src/ui/icons/align-start-vertical.d.ts
569
+ declare function AlignStartVerticalIcon({
570
+ size,
571
+ width,
572
+ height,
573
+ ...props
574
+ }: IconProps): react_jsx_runtime10.JSX.Element;
575
+ //#endregion
576
+ //#region src/ui/icons/bold.d.ts
577
+ declare function BoldIcon({
578
+ size,
579
+ width,
580
+ height,
581
+ ...props
582
+ }: IconProps): react_jsx_runtime10.JSX.Element;
583
+ //#endregion
584
+ //#region src/ui/icons/box.d.ts
585
+ declare function BoxIcon({
586
+ size,
587
+ width,
588
+ height,
589
+ ...props
590
+ }: IconProps): react_jsx_runtime10.JSX.Element;
591
+ //#endregion
592
+ //#region src/ui/icons/case-upper.d.ts
593
+ declare function CaseUpperIcon({
594
+ size,
595
+ width,
596
+ height,
597
+ ...props
598
+ }: IconProps): react_jsx_runtime10.JSX.Element;
599
+ //#endregion
600
+ //#region src/ui/icons/check.d.ts
601
+ declare function CheckIcon({
602
+ size,
603
+ width,
604
+ height,
605
+ ...props
606
+ }: IconProps): react_jsx_runtime10.JSX.Element;
607
+ //#endregion
608
+ //#region src/ui/icons/chevron-down.d.ts
609
+ declare function ChevronDownIcon({
610
+ size,
611
+ width,
612
+ height,
613
+ ...props
614
+ }: IconProps): react_jsx_runtime10.JSX.Element;
615
+ //#endregion
616
+ //#region src/ui/icons/code.d.ts
617
+ declare function CodeIcon({
618
+ size,
619
+ width,
620
+ height,
621
+ ...props
622
+ }: IconProps): react_jsx_runtime10.JSX.Element;
623
+ //#endregion
624
+ //#region src/ui/icons/columns-2.d.ts
625
+ declare function Columns2Icon({
626
+ size,
627
+ width,
628
+ height,
629
+ ...props
630
+ }: IconProps): react_jsx_runtime10.JSX.Element;
631
+ //#endregion
632
+ //#region src/ui/icons/columns-3.d.ts
633
+ declare function Columns3Icon({
634
+ size,
635
+ width,
636
+ height,
637
+ ...props
638
+ }: IconProps): react_jsx_runtime10.JSX.Element;
639
+ //#endregion
640
+ //#region src/ui/icons/columns-4.d.ts
641
+ declare function Columns4Icon({
642
+ size,
643
+ width,
644
+ height,
645
+ ...props
646
+ }: IconProps): react_jsx_runtime10.JSX.Element;
647
+ //#endregion
648
+ //#region src/ui/icons/corner-bottom-left.d.ts
649
+ declare function CornerBottomLeftIcon({
650
+ size,
651
+ width,
652
+ height,
653
+ ...props
654
+ }: IconProps): react_jsx_runtime10.JSX.Element;
655
+ //#endregion
656
+ //#region src/ui/icons/corner-bottom-right.d.ts
657
+ declare function CornerBottomRightIcon({
658
+ size,
659
+ width,
660
+ height,
661
+ ...props
662
+ }: IconProps): react_jsx_runtime10.JSX.Element;
663
+ //#endregion
664
+ //#region src/ui/icons/corner-top-left.d.ts
665
+ declare function CornerTopLeftIcon({
666
+ size,
667
+ width,
668
+ height,
669
+ ...props
670
+ }: IconProps): react_jsx_runtime10.JSX.Element;
671
+ //#endregion
672
+ //#region src/ui/icons/corner-top-right.d.ts
673
+ declare function CornerTopRightIcon({
674
+ size,
675
+ width,
676
+ height,
677
+ ...props
678
+ }: IconProps): react_jsx_runtime10.JSX.Element;
679
+ //#endregion
680
+ //#region src/ui/icons/external-link.d.ts
681
+ declare function ExternalLinkIcon({
682
+ size,
683
+ width,
684
+ height,
685
+ ...props
686
+ }: IconProps): react_jsx_runtime10.JSX.Element;
687
+ //#endregion
688
+ //#region src/ui/icons/heading-1.d.ts
689
+ declare function Heading1Icon({
690
+ size,
691
+ width,
692
+ height,
693
+ ...props
694
+ }: IconProps): react_jsx_runtime10.JSX.Element;
695
+ //#endregion
696
+ //#region src/ui/icons/heading-2.d.ts
697
+ declare function Heading2Icon({
698
+ size,
699
+ width,
700
+ height,
701
+ ...props
702
+ }: IconProps): react_jsx_runtime10.JSX.Element;
703
+ //#endregion
704
+ //#region src/ui/icons/heading-3.d.ts
705
+ declare function Heading3Icon({
706
+ size,
707
+ width,
708
+ height,
709
+ ...props
710
+ }: IconProps): react_jsx_runtime10.JSX.Element;
711
+ //#endregion
712
+ //#region src/ui/icons/image.d.ts
713
+ declare function ImageIcon({
714
+ size,
715
+ width,
716
+ height,
717
+ ...props
718
+ }: IconProps): react_jsx_runtime10.JSX.Element;
719
+ //#endregion
720
+ //#region src/ui/icons/italic.d.ts
721
+ declare function ItalicIcon({
722
+ size,
723
+ width,
724
+ height,
725
+ ...props
726
+ }: IconProps): react_jsx_runtime10.JSX.Element;
727
+ //#endregion
728
+ //#region src/ui/icons/layout.d.ts
729
+ declare function LayoutIcon({
730
+ size,
731
+ width,
732
+ height,
733
+ ...props
734
+ }: IconProps): react_jsx_runtime10.JSX.Element;
735
+ //#endregion
736
+ //#region src/ui/icons/link.d.ts
737
+ declare function LinkIcon({
738
+ size,
739
+ width,
740
+ height,
741
+ ...props
742
+ }: IconProps): react_jsx_runtime10.JSX.Element;
743
+ //#endregion
744
+ //#region src/ui/icons/list.d.ts
745
+ declare function ListIcon({
746
+ size,
747
+ width,
748
+ height,
749
+ ...props
750
+ }: IconProps): react_jsx_runtime10.JSX.Element;
751
+ //#endregion
752
+ //#region src/ui/icons/list-ordered.d.ts
753
+ declare function ListOrderedIcon({
754
+ size,
755
+ width,
756
+ height,
757
+ ...props
758
+ }: IconProps): react_jsx_runtime10.JSX.Element;
759
+ //#endregion
760
+ //#region src/ui/icons/minus.d.ts
761
+ declare function MinusIcon({
762
+ size,
763
+ width,
764
+ height,
765
+ ...props
766
+ }: IconProps): react_jsx_runtime10.JSX.Element;
767
+ //#endregion
768
+ //#region src/ui/icons/mouse-pointer.d.ts
769
+ declare function MousePointerIcon({
770
+ size,
771
+ width,
772
+ height,
773
+ ...props
774
+ }: IconProps): react_jsx_runtime10.JSX.Element;
775
+ //#endregion
776
+ //#region src/ui/icons/mouse-pointer-click.d.ts
777
+ declare function MousePointerClickIcon({
778
+ size,
779
+ width,
780
+ height,
781
+ ...props
782
+ }: IconProps): react_jsx_runtime10.JSX.Element;
783
+ //#endregion
784
+ //#region src/ui/icons/panel-bottom.d.ts
785
+ declare function PanelBottomIcon({
786
+ size,
787
+ width,
788
+ height,
789
+ ...props
790
+ }: IconProps): react_jsx_runtime10.JSX.Element;
791
+ //#endregion
792
+ //#region src/ui/icons/panel-left.d.ts
793
+ declare function PanelLeftIcon({
794
+ size,
795
+ width,
796
+ height,
797
+ ...props
798
+ }: IconProps): react_jsx_runtime10.JSX.Element;
799
+ //#endregion
800
+ //#region src/ui/icons/panel-right.d.ts
801
+ declare function PanelRightIcon({
802
+ size,
803
+ width,
804
+ height,
805
+ ...props
806
+ }: IconProps): react_jsx_runtime10.JSX.Element;
807
+ //#endregion
808
+ //#region src/ui/icons/panel-top.d.ts
809
+ declare function PanelTopIcon({
810
+ size,
811
+ width,
812
+ height,
813
+ ...props
814
+ }: IconProps): react_jsx_runtime10.JSX.Element;
815
+ //#endregion
816
+ //#region src/ui/icons/pencil.d.ts
817
+ declare function PencilIcon({
818
+ size,
819
+ width,
820
+ height,
821
+ ...props
822
+ }: IconProps): react_jsx_runtime10.JSX.Element;
823
+ //#endregion
824
+ //#region src/ui/icons/plus.d.ts
825
+ declare function PlusIcon({
826
+ size,
827
+ width,
828
+ height,
829
+ ...props
830
+ }: IconProps): react_jsx_runtime10.JSX.Element;
831
+ //#endregion
832
+ //#region src/ui/icons/rows-2.d.ts
833
+ declare function Rows2Icon({
834
+ size,
835
+ width,
836
+ height,
837
+ ...props
838
+ }: IconProps): react_jsx_runtime10.JSX.Element;
839
+ //#endregion
840
+ //#region src/ui/icons/split-square-vertical.d.ts
841
+ declare function SplitSquareVerticalIcon({
842
+ size,
843
+ width,
844
+ height,
845
+ ...props
846
+ }: IconProps): react_jsx_runtime10.JSX.Element;
847
+ //#endregion
848
+ //#region src/ui/icons/square.d.ts
849
+ declare function SquareIcon({
850
+ size,
851
+ width,
852
+ height,
853
+ ...props
854
+ }: IconProps): react_jsx_runtime10.JSX.Element;
855
+ //#endregion
856
+ //#region src/ui/icons/square-code.d.ts
857
+ declare function SquareCodeIcon({
858
+ size,
859
+ width,
860
+ height,
861
+ ...props
862
+ }: IconProps): react_jsx_runtime10.JSX.Element;
863
+ //#endregion
864
+ //#region src/ui/icons/square-dashed.d.ts
865
+ declare function SquareDashedIcon({
866
+ size,
867
+ width,
868
+ height,
869
+ ...props
870
+ }: IconProps): react_jsx_runtime10.JSX.Element;
871
+ //#endregion
872
+ //#region src/ui/icons/square-round-corner.d.ts
873
+ declare function SquareRoundCornerIcon({
874
+ size,
875
+ width,
876
+ height,
877
+ ...props
878
+ }: IconProps): react_jsx_runtime10.JSX.Element;
879
+ //#endregion
880
+ //#region src/ui/icons/strikethrough.d.ts
881
+ declare function StrikethroughIcon({
882
+ size,
883
+ width,
884
+ height,
885
+ ...props
886
+ }: IconProps): react_jsx_runtime10.JSX.Element;
887
+ //#endregion
888
+ //#region src/ui/icons/table.d.ts
889
+ declare function TableIcon({
890
+ size,
891
+ width,
892
+ height,
893
+ ...props
894
+ }: IconProps): react_jsx_runtime10.JSX.Element;
895
+ //#endregion
896
+ //#region src/ui/icons/text.d.ts
897
+ declare function TextIcon({
898
+ size,
899
+ width,
900
+ height,
901
+ ...props
902
+ }: IconProps): react_jsx_runtime10.JSX.Element;
903
+ //#endregion
904
+ //#region src/ui/icons/text-quote.d.ts
905
+ declare function TextQuoteIcon({
906
+ size,
907
+ width,
908
+ height,
909
+ ...props
910
+ }: IconProps): react_jsx_runtime10.JSX.Element;
911
+ //#endregion
912
+ //#region src/ui/icons/type.d.ts
913
+ declare function TypeIcon({
914
+ size,
915
+ width,
916
+ height,
917
+ ...props
918
+ }: IconProps): react_jsx_runtime10.JSX.Element;
919
+ //#endregion
920
+ //#region src/ui/icons/underline.d.ts
921
+ declare function UnderlineIcon({
922
+ size,
923
+ width,
924
+ height,
925
+ ...props
926
+ }: IconProps): react_jsx_runtime10.JSX.Element;
927
+ //#endregion
928
+ //#region src/ui/icons/unlink.d.ts
929
+ declare function UnlinkIcon({
930
+ size,
931
+ width,
932
+ height,
933
+ ...props
934
+ }: IconProps): react_jsx_runtime10.JSX.Element;
935
+ //#endregion
936
+ //#region src/ui/icons/x.d.ts
937
+ declare function XIcon({
938
+ size,
939
+ width,
940
+ height,
941
+ ...props
942
+ }: IconProps): react_jsx_runtime10.JSX.Element;
943
+ //#endregion
944
+ //#region src/ui/inspector/root.d.ts
945
+ interface FocusedNode {
946
+ nodeType: string;
947
+ nodeAttrs: Attrs;
948
+ nodePos: {
949
+ pos: number;
950
+ inside: number;
951
+ };
952
+ }
953
+ interface RootProps extends React$2.ComponentPropsWithRef<'aside'> {
954
+ asChild?: boolean;
955
+ }
956
+ //#endregion
957
+ //#region src/ui/inspector/breadcrumb.d.ts
958
+ interface InspectorBreadcrumbSegment {
959
+ node: FocusedNode | null;
960
+ focus: () => void;
961
+ }
962
+ interface InspectorBreadcrumbProps {
963
+ children?: (segments: InspectorBreadcrumbSegment[]) => React$1.ReactNode;
964
+ }
965
+ declare function InspectorBreadcrumb({
966
+ children
967
+ }: InspectorBreadcrumbProps): string | number | bigint | boolean | react_jsx_runtime10.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | null | undefined;
968
+ //#endregion
969
+ //#region src/ui/inspector/document.d.ts
970
+ type SetGlobalStyle = (classReference: KnownThemeComponents, property: KnownCssProperties, value: unknown) => void;
971
+ type BatchSetGlobalStyle = (changes: Array<{
972
+ classReference: KnownThemeComponents;
973
+ property: KnownCssProperties;
974
+ value: unknown;
975
+ }>) => void;
976
+ type FindStyleValue = (classReference: KnownThemeComponents, prop: KnownCssProperties) => string | number;
977
+ interface InspectorDocumentContext {
978
+ styles: PanelGroup[];
979
+ setGlobalStyle: SetGlobalStyle;
980
+ batchSetGlobalStyle: BatchSetGlobalStyle;
981
+ findStyleValue: FindStyleValue;
982
+ }
983
+ interface InspectorDocumentProps {
984
+ children?: (context: InspectorDocumentContext) => React.ReactNode;
985
+ }
986
+ declare function InspectorDocument({
987
+ children
988
+ }: InspectorDocumentProps): react_jsx_runtime10.JSX.Element | null;
989
+ //#endregion
990
+ //#region src/ui/inspector/node.d.ts
991
+ interface InspectorNodeContext {
992
+ nodeType: string;
993
+ nodePos: {
994
+ pos: number;
995
+ inside: number;
996
+ };
997
+ getStyle: (prop: KnownCssProperties) => string | number | undefined;
998
+ setStyle: (prop: KnownCssProperties, value: string | number) => void;
999
+ batchSetStyle: (changes: Array<{
1000
+ prop: KnownCssProperties;
1001
+ value: string | number;
1002
+ }>) => void;
1003
+ getAttr: (name: string) => unknown;
1004
+ setAttr: (name: string, value: unknown) => void;
1005
+ themeDefaults: Record<string, string | number | undefined>;
1006
+ presetColors: string[];
1007
+ }
1008
+ interface InspectorNodeProps {
1009
+ children?: (context: InspectorNodeContext) => React$2.ReactNode;
1010
+ }
1011
+ declare function InspectorNode({
1012
+ children
1013
+ }: InspectorNodeProps): react_jsx_runtime10.JSX.Element | null;
1014
+ //#endregion
1015
+ //#region src/ui/inspector/sections/attributes.d.ts
1016
+ type InspectorAttributesProps = InspectorNodeContext & {
1017
+ initialCollapsed?: boolean;
1018
+ };
1019
+ declare function AttributesSection({
1020
+ nodeType,
1021
+ getAttr,
1022
+ setAttr,
1023
+ initialCollapsed
1024
+ }: InspectorAttributesProps): react_jsx_runtime10.JSX.Element | null;
1025
+ //#endregion
1026
+ //#region src/ui/inspector/sections/background.d.ts
1027
+ type InspectorBackgroundProps = InspectorNodeContext & {
1028
+ initialCollapsed?: boolean;
1029
+ };
1030
+ declare function BackgroundSection({
1031
+ getStyle,
1032
+ setStyle,
1033
+ initialCollapsed
1034
+ }: InspectorBackgroundProps): react_jsx_runtime10.JSX.Element;
1035
+ //#endregion
1036
+ //#region src/ui/inspector/sections/border.d.ts
1037
+ type InspectorBorderProps = InspectorNodeContext & {
1038
+ initialCollapsed?: boolean;
1039
+ };
1040
+ declare function BorderSection({
1041
+ getStyle,
1042
+ setStyle,
1043
+ batchSetStyle,
1044
+ initialCollapsed
1045
+ }: InspectorBorderProps): react_jsx_runtime10.JSX.Element;
1046
+ //#endregion
1047
+ //#region src/ui/inspector/text.d.ts
1048
+ interface InspectorTextContext {
1049
+ marks: Record<string, boolean>;
1050
+ toggleMark: (mark: string) => void;
1051
+ alignment: string;
1052
+ setAlignment: (value: string) => void;
1053
+ linkHref: string;
1054
+ linkColor: string;
1055
+ setLinkColor: (color: string) => void;
1056
+ isLinkActive: boolean;
1057
+ getStyle: (prop: KnownCssProperties) => string | number | undefined;
1058
+ setStyle: (prop: KnownCssProperties, value: string | number) => void;
1059
+ presetColors: string[];
1060
+ }
1061
+ interface InspectorTextProps {
1062
+ children?: (context: InspectorTextContext) => React$2.ReactNode;
1063
+ }
1064
+ declare function InspectorText({
1065
+ children
1066
+ }: InspectorTextProps): react_jsx_runtime10.JSX.Element | null;
1067
+ //#endregion
1068
+ //#region src/ui/inspector/sections/link.d.ts
1069
+ type InspectorLinkProps = Pick<InspectorTextContext, 'linkHref' | 'linkColor' | 'setLinkColor' | 'isLinkActive' | 'presetColors'> & {
1070
+ initialCollapsed?: boolean;
1071
+ };
1072
+ declare function LinkSection({
1073
+ linkHref,
1074
+ linkColor,
1075
+ setLinkColor,
1076
+ isLinkActive,
1077
+ initialCollapsed
1078
+ }: InspectorLinkProps): react_jsx_runtime10.JSX.Element | null;
1079
+ //#endregion
1080
+ //#region src/ui/inspector/sections/padding.d.ts
1081
+ type InspectorPaddingProps = InspectorNodeContext & {
1082
+ initialCollapsed?: boolean;
1083
+ };
1084
+ declare function PaddingSection({
1085
+ getStyle,
1086
+ batchSetStyle,
1087
+ initialCollapsed
1088
+ }: InspectorPaddingProps): react_jsx_runtime10.JSX.Element;
1089
+ //#endregion
1090
+ //#region src/ui/inspector/sections/size.d.ts
1091
+ type InspectorSizeProps = InspectorNodeContext & {
1092
+ initialCollapsed?: boolean;
1093
+ };
1094
+ declare function SizeSection({
1095
+ nodeType,
1096
+ getStyle,
1097
+ setStyle,
1098
+ getAttr,
1099
+ setAttr,
1100
+ initialCollapsed
1101
+ }: InspectorSizeProps): react_jsx_runtime10.JSX.Element;
1102
+ //#endregion
1103
+ //#region src/ui/inspector/sections/typography.d.ts
1104
+ type TypographyContext = Pick<InspectorNodeContext | InspectorTextContext, 'getStyle' | 'setStyle' | 'presetColors'> & Partial<Pick<InspectorTextContext, 'marks' | 'toggleMark' | 'alignment' | 'setAlignment'>> & {
1105
+ initialCollapsed?: boolean;
1106
+ };
1107
+ declare function TypographySection({
1108
+ getStyle,
1109
+ setStyle,
1110
+ marks,
1111
+ toggleMark,
1112
+ alignment,
1113
+ setAlignment,
1114
+ initialCollapsed
1115
+ }: TypographyContext): react_jsx_runtime10.JSX.Element;
1116
+ //#endregion
1117
+ //#region src/ui/inspector/index.d.ts
1118
+ declare const Inspector: {
1119
+ Root: React$2.ForwardRefExoticComponent<Omit<RootProps, "ref"> & React$2.RefAttributes<HTMLElement>>;
1120
+ Breadcrumb: typeof InspectorBreadcrumb;
1121
+ Document: typeof InspectorDocument;
1122
+ Node: typeof InspectorNode;
1123
+ Text: typeof InspectorText;
1124
+ Attributes: typeof AttributesSection;
1125
+ Background: typeof BackgroundSection;
1126
+ Border: typeof BorderSection;
1127
+ Link: typeof LinkSection;
1128
+ Padding: typeof PaddingSection;
1129
+ Size: typeof SizeSection;
1130
+ Typography: typeof TypographySection;
1131
+ };
1132
+ //#endregion
1133
+ //#region src/ui/slash-command/types.d.ts
1134
+ type SlashCommandCategory = string;
1135
+ interface SearchableItem {
1136
+ title: string;
1137
+ description: string;
1138
+ searchTerms?: string[];
1139
+ }
1140
+ interface SlashCommandItem extends SearchableItem {
1141
+ icon: ReactNode;
1142
+ category: SlashCommandCategory;
1143
+ command: (props: SlashCommandProps) => void;
1144
+ }
1145
+ interface SlashCommandProps {
1146
+ editor: Editor;
1147
+ range: Range;
1148
+ }
1149
+ interface SlashCommandRenderProps {
1150
+ items: SlashCommandItem[];
1151
+ query: string;
1152
+ selectedIndex: number;
1153
+ onSelect: (index: number) => void;
1154
+ }
1155
+ interface SlashCommandRootProps {
1156
+ items?: SlashCommandItem[];
1157
+ filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
1158
+ char?: string;
1159
+ allow?: (props: {
1160
+ editor: Editor;
1161
+ }) => boolean;
1162
+ children?: (props: SlashCommandRenderProps) => ReactNode;
1163
+ }
1164
+ interface CommandListProps {
1165
+ items: SlashCommandItem[];
1166
+ query: string;
1167
+ selectedIndex: number;
1168
+ onSelect: (index: number) => void;
1169
+ }
1170
+ //#endregion
1171
+ //#region src/ui/slash-command/command-list.d.ts
1172
+ declare function CommandList({
1173
+ items,
1174
+ query,
1175
+ selectedIndex,
1176
+ onSelect
1177
+ }: CommandListProps): react_jsx_runtime10.JSX.Element;
1178
+ //#endregion
1179
+ //#region src/ui/slash-command/root.d.ts
1180
+ declare function SlashCommandRoot({
1181
+ items: itemsProp,
1182
+ filterItems: filterItemsProp,
1183
+ char,
1184
+ allow: allowProp,
1185
+ children
1186
+ }: SlashCommandRootProps): React$2.ReactPortal | null;
1187
+ //#endregion
1188
+ //#region src/ui/slash-command/commands.d.ts
1189
+ declare const TEXT: SlashCommandItem;
1190
+ declare const H1: SlashCommandItem;
1191
+ declare const H2: SlashCommandItem;
1192
+ declare const H3: SlashCommandItem;
1193
+ declare const BULLET_LIST: SlashCommandItem;
1194
+ declare const NUMBERED_LIST: SlashCommandItem;
1195
+ declare const QUOTE: SlashCommandItem;
1196
+ declare const CODE: SlashCommandItem;
1197
+ declare const BUTTON: SlashCommandItem;
1198
+ declare const DIVIDER: SlashCommandItem;
1199
+ declare const SECTION: SlashCommandItem;
1200
+ declare const TWO_COLUMNS: SlashCommandItem;
1201
+ declare const THREE_COLUMNS: SlashCommandItem;
1202
+ declare const FOUR_COLUMNS: SlashCommandItem;
1203
+ declare const defaultSlashCommands: SlashCommandItem[];
1204
+ //#endregion
1205
+ //#region src/ui/slash-command/search.d.ts
1206
+ declare function scoreItem(item: SearchableItem, query: string): number;
1207
+ declare function filterAndRankItems<T extends SearchableItem>(items: T[], query: string): T[];
1208
+ //#endregion
1209
+ //#region src/ui/slash-command/utils.d.ts
1210
+ declare function isInsideNode(editor: Editor, type: string): boolean;
1211
+ declare function isAtMaxColumnsDepth(editor: Editor): boolean;
1212
+ //#endregion
1213
+ //#region src/ui/slash-command/index.d.ts
1214
+ declare const SlashCommand: {
1215
+ readonly Root: typeof SlashCommandRoot;
1216
+ readonly CommandList: typeof CommandList;
1217
+ };
1218
+ //#endregion
1219
+ export { AlignCenterIcon, AlignCenterVerticalIcon, AlignEndVerticalIcon, AlignLeftIcon, AlignRightIcon, AlignStartVerticalIcon, BULLET_LIST, BUTTON, BoldIcon, BoxIcon, BubbleMenu, BubbleMenuAlignCenter, BubbleMenuAlignLeft, BubbleMenuAlignRight, BubbleMenuBold, BubbleMenuButtonDefault, type BubbleMenuButtonDefaultProps, BubbleMenuButtonEditLink, type BubbleMenuButtonEditLinkProps, BubbleMenuButtonForm, type BubbleMenuButtonFormProps, BubbleMenuButtonToolbar, type BubbleMenuButtonToolbarProps, BubbleMenuButtonUnlink, type BubbleMenuButtonUnlinkProps, BubbleMenuCode, type BubbleMenuContextValue, BubbleMenuImageDefault, type BubbleMenuImageDefaultProps, BubbleMenuImageEditLink, type BubbleMenuImageEditLinkProps, BubbleMenuImageToolbar, type BubbleMenuImageToolbarProps, BubbleMenuItalic, BubbleMenuItem, BubbleMenuItemGroup, type BubbleMenuItemGroupProps, type BubbleMenuItemProps, BubbleMenuLinkDefault, type BubbleMenuLinkDefaultProps, BubbleMenuLinkEditLink, type BubbleMenuLinkEditLinkProps, BubbleMenuLinkForm, type BubbleMenuLinkFormProps, BubbleMenuLinkOpenLink, type BubbleMenuLinkOpenLinkProps, BubbleMenuLinkSelector, type BubbleMenuLinkSelectorProps, BubbleMenuLinkToolbar, type BubbleMenuLinkToolbarProps, BubbleMenuLinkUnlink, type BubbleMenuLinkUnlinkProps, BubbleMenuNodeSelector, type BubbleMenuNodeSelectorProps, RootWithDefault as BubbleMenuRoot, type BubbleMenuRootProps, BubbleMenuSeparator, type BubbleMenuSeparatorProps, BubbleMenuStrike, BubbleMenuUnderline, BubbleMenuUppercase, CODE, CaseUpperIcon, CheckIcon, ChevronDownIcon, CodeIcon, Columns2Icon, Columns3Icon, Columns4Icon, CommandList, type CommandListProps, CornerBottomLeftIcon, CornerBottomRightIcon, CornerTopLeftIcon, CornerTopRightIcon, DIVIDER, EditorFocusScope, EditorFocusScopeProps, EditorFocusScopeProvider, EditorFocusScopeProviderProps, ExternalLinkIcon, FOUR_COLUMNS, H1, H2, H3, Heading1Icon, Heading2Icon, Heading3Icon, type IconProps, ImageIcon, Inspector, type InspectorDocumentProps, type InspectorNodeContext, type InspectorNodeProps, type InspectorTextContext, type InspectorTextProps, ItalicIcon, LayoutIcon, LinkIcon, ListIcon, ListOrderedIcon, MinusIcon, MousePointerClickIcon, MousePointerIcon, NUMBERED_LIST, NodeSelectorContent, type NodeSelectorContentProps, type NodeSelectorItem, NodeSelectorRoot, type NodeSelectorRootProps, NodeSelectorTrigger, type NodeSelectorTriggerProps, type NodeType, PanelBottomIcon, PanelLeftIcon, PanelRightIcon, PanelTopIcon, PencilIcon, PlusIcon, type PreWiredItemProps, QUOTE, Rows2Icon, SECTION, type SearchableItem, SlashCommand, type SlashCommandItem, type SlashCommandProps, type SlashCommandRenderProps, type SlashCommandRootProps, SplitSquareVerticalIcon, SquareCodeIcon, SquareDashedIcon, SquareIcon, SquareRoundCornerIcon, StrikethroughIcon, TEXT, THREE_COLUMNS, TWO_COLUMNS, TableIcon, TextIcon, TextQuoteIcon, type TriggerFn, type TriggerParams, TypeIcon, UnderlineIcon, UnlinkIcon, XIcon, bubbleMenuTriggers, defaultSlashCommands, filterAndRankItems, isAtMaxColumnsDepth, isInsideNode, scoreItem, useBubbleMenuContext, useEditorFocusScope };
1220
+ //# sourceMappingURL=index.d.cts.map