@react-email/editor 0.0.0-experimental.8 → 1.0.0-canary.51

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 (92) hide show
  1. package/dist/columns-BItFgD76.mjs +273 -0
  2. package/dist/columns-BItFgD76.mjs.map +1 -0
  3. package/dist/columns-DqFvXgmK.cjs +394 -0
  4. package/dist/core/index.cjs +10 -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-CbSTyrV4.mjs +151 -0
  9. package/dist/core-CbSTyrV4.mjs.map +1 -0
  10. package/dist/core-D7AzzMLI.cjs +167 -0
  11. package/dist/email-node-B-_g4X-S.mjs +254 -0
  12. package/dist/email-node-B-_g4X-S.mjs.map +1 -0
  13. package/dist/email-node-hLU5bGnX.cjs +288 -0
  14. package/dist/event-bus-CIJ___tH.cjs +65 -0
  15. package/dist/event-bus-CqrIUE24.mjs +55 -0
  16. package/dist/event-bus-CqrIUE24.mjs.map +1 -0
  17. package/dist/extension-BbjpP9mF.cjs +1625 -0
  18. package/dist/extension-C5qNDPZL.mjs +154 -0
  19. package/dist/extension-C5qNDPZL.mjs.map +1 -0
  20. package/dist/extension-Cs4Yq2gF.cjs +158 -0
  21. package/dist/extension-DlWknmE5.mjs +1495 -0
  22. package/dist/extension-DlWknmE5.mjs.map +1 -0
  23. package/dist/extensions/index.cjs +50 -0
  24. package/dist/extensions/index.d.cts +392 -0
  25. package/dist/extensions/index.d.cts.map +1 -0
  26. package/dist/extensions/index.d.mts +392 -0
  27. package/dist/extensions/index.d.mts.map +1 -0
  28. package/dist/extensions/index.mjs +4 -0
  29. package/dist/extensions-CHIQO3d-.mjs +1745 -0
  30. package/dist/extensions-CHIQO3d-.mjs.map +1 -0
  31. package/dist/extensions-DCrDvZ42.cjs +1981 -0
  32. package/dist/global-content-0-J-Te3N.mjs +77 -0
  33. package/dist/global-content-0-J-Te3N.mjs.map +1 -0
  34. package/dist/global-content-8M2KyrOL.cjs +87 -0
  35. package/dist/image-KwEYzhji.cjs +41 -0
  36. package/dist/image-Oc789YjV.mjs +37 -0
  37. package/dist/image-Oc789YjV.mjs.map +1 -0
  38. package/dist/index-CHAPu71g.d.cts +193 -0
  39. package/dist/index-CHAPu71g.d.cts.map +1 -0
  40. package/dist/index-D4UEWmJX.d.mts +193 -0
  41. package/dist/index-D4UEWmJX.d.mts.map +1 -0
  42. package/dist/index.cjs +216 -0
  43. package/dist/index.d.cts +38 -0
  44. package/dist/index.d.cts.map +1 -0
  45. package/dist/index.d.mts +33 -623
  46. package/dist/index.d.mts.map +1 -1
  47. package/dist/index.mjs +189 -2349
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/plugins/index.cjs +56 -0
  50. package/dist/plugins/index.d.cts +114 -0
  51. package/dist/plugins/index.d.cts.map +1 -0
  52. package/dist/plugins/index.d.mts +114 -0
  53. package/dist/plugins/index.d.mts.map +1 -0
  54. package/dist/plugins/index.mjs +34 -0
  55. package/dist/plugins/index.mjs.map +1 -0
  56. package/dist/root-CT5d4CKj.cjs +2798 -0
  57. package/dist/root-uvdshbyT.mjs +2295 -0
  58. package/dist/root-uvdshbyT.mjs.map +1 -0
  59. package/dist/set-text-alignment-BCRnE5So.mjs +19 -0
  60. package/dist/set-text-alignment-BCRnE5So.mjs.map +1 -0
  61. package/dist/set-text-alignment-Twg1EG4-.cjs +22 -0
  62. package/dist/style.css +974 -0
  63. package/dist/types-BG5XsXt9.d.mts +37 -0
  64. package/dist/types-BG5XsXt9.d.mts.map +1 -0
  65. package/dist/types-DnOcnDoO.d.mts +56 -0
  66. package/dist/types-DnOcnDoO.d.mts.map +1 -0
  67. package/dist/types-DzPTbbDC.d.cts +56 -0
  68. package/dist/types-DzPTbbDC.d.cts.map +1 -0
  69. package/dist/types-hURXpEIO.d.cts +37 -0
  70. package/dist/types-hURXpEIO.d.cts.map +1 -0
  71. package/dist/ui/bubble-menu/bubble-menu.css +291 -0
  72. package/dist/ui/index.cjs +2895 -0
  73. package/dist/ui/index.d.cts +1155 -0
  74. package/dist/ui/index.d.cts.map +1 -0
  75. package/dist/ui/index.d.mts +1157 -0
  76. package/dist/ui/index.d.mts.map +1 -0
  77. package/dist/ui/index.mjs +2784 -0
  78. package/dist/ui/index.mjs.map +1 -0
  79. package/dist/ui/inspector/inspector.css +293 -0
  80. package/dist/ui/slash-command/slash-command.css +44 -0
  81. package/dist/ui/themes/default.css +1140 -0
  82. package/dist/utils/index.cjs +3 -0
  83. package/dist/utils/index.d.cts +7 -0
  84. package/dist/utils/index.d.cts.map +1 -0
  85. package/dist/utils/index.d.mts +7 -0
  86. package/dist/utils/index.d.mts.map +1 -0
  87. package/dist/utils/index.mjs +2 -0
  88. package/package.json +100 -16
  89. package/readme.md +69 -0
  90. package/dist/index.d.ts +0 -628
  91. package/dist/index.d.ts.map +0 -1
  92. package/dist/index.js +0 -2461
@@ -0,0 +1,1155 @@
1
+ import { a as KnownThemeComponents, i as KnownCssProperties, o as PanelGroup } from "../types-DzPTbbDC.cjs";
2
+ import { a as SlashCommandRootProps, i as SlashCommandRenderProps, n as SlashCommandItem, r as SlashCommandProps, t as SearchableItem } from "../types-hURXpEIO.cjs";
3
+ import { Attrs } from "@tiptap/pm/model";
4
+ import { Editor } from "@tiptap/core";
5
+ import * as React$2 from "react";
6
+ import React$1, { ElementType } from "react";
7
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
8
+ import { EditorState, PluginKey } from "@tiptap/pm/state";
9
+ import { EditorView } from "@tiptap/pm/view";
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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.JSX.Element;
440
+ displayName: string;
441
+ };
442
+ readonly Italic: {
443
+ ({
444
+ className,
445
+ children
446
+ }: PreWiredItemProps): _$react_jsx_runtime0.JSX.Element;
447
+ displayName: string;
448
+ };
449
+ readonly Underline: {
450
+ ({
451
+ className,
452
+ children
453
+ }: PreWiredItemProps): _$react_jsx_runtime0.JSX.Element;
454
+ displayName: string;
455
+ };
456
+ readonly Strike: {
457
+ ({
458
+ className,
459
+ children
460
+ }: PreWiredItemProps): _$react_jsx_runtime0.JSX.Element;
461
+ displayName: string;
462
+ };
463
+ readonly Code: {
464
+ ({
465
+ className,
466
+ children
467
+ }: PreWiredItemProps): _$react_jsx_runtime0.JSX.Element;
468
+ displayName: string;
469
+ };
470
+ readonly Uppercase: {
471
+ ({
472
+ className,
473
+ children
474
+ }: PreWiredItemProps): _$react_jsx_runtime0.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 const FocusScopeContext: React$2.Context<FocusScopeContextValue | null>;
508
+ declare function useEditorFocusScope(): FocusScopeContextValue;
509
+ interface EditorFocusScopeProviderProps {
510
+ children: React$2.ReactNode;
511
+ clearSelectionOnBlur?: boolean;
512
+ }
513
+ declare function EditorFocusScopeProvider({
514
+ children,
515
+ clearSelectionOnBlur
516
+ }: EditorFocusScopeProviderProps): _$react_jsx_runtime0.JSX.Element;
517
+ interface EditorFocusScopeProps {
518
+ children: React$2.ReactNode;
519
+ }
520
+ declare function EditorFocusScope({
521
+ children
522
+ }: EditorFocusScopeProps): _$react_jsx_runtime0.JSX.Element;
523
+ //#endregion
524
+ //#region src/ui/icons/types.d.ts
525
+ interface IconProps extends React$2.SVGAttributes<SVGSVGElement> {
526
+ size?: number | string;
527
+ }
528
+ //#endregion
529
+ //#region src/ui/icons/align-center.d.ts
530
+ declare function AlignCenterIcon({
531
+ size,
532
+ width,
533
+ height,
534
+ ...props
535
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
536
+ //#endregion
537
+ //#region src/ui/icons/align-center-vertical.d.ts
538
+ declare function AlignCenterVerticalIcon({
539
+ size,
540
+ width,
541
+ height,
542
+ ...props
543
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
544
+ //#endregion
545
+ //#region src/ui/icons/align-end-vertical.d.ts
546
+ declare function AlignEndVerticalIcon({
547
+ size,
548
+ width,
549
+ height,
550
+ ...props
551
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
552
+ //#endregion
553
+ //#region src/ui/icons/align-left.d.ts
554
+ declare function AlignLeftIcon({
555
+ size,
556
+ width,
557
+ height,
558
+ ...props
559
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
560
+ //#endregion
561
+ //#region src/ui/icons/align-right.d.ts
562
+ declare function AlignRightIcon({
563
+ size,
564
+ width,
565
+ height,
566
+ ...props
567
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
568
+ //#endregion
569
+ //#region src/ui/icons/align-start-vertical.d.ts
570
+ declare function AlignStartVerticalIcon({
571
+ size,
572
+ width,
573
+ height,
574
+ ...props
575
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
576
+ //#endregion
577
+ //#region src/ui/icons/bold.d.ts
578
+ declare function BoldIcon({
579
+ size,
580
+ width,
581
+ height,
582
+ ...props
583
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
584
+ //#endregion
585
+ //#region src/ui/icons/box.d.ts
586
+ declare function BoxIcon({
587
+ size,
588
+ width,
589
+ height,
590
+ ...props
591
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
592
+ //#endregion
593
+ //#region src/ui/icons/case-upper.d.ts
594
+ declare function CaseUpperIcon({
595
+ size,
596
+ width,
597
+ height,
598
+ ...props
599
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
600
+ //#endregion
601
+ //#region src/ui/icons/check.d.ts
602
+ declare function CheckIcon({
603
+ size,
604
+ width,
605
+ height,
606
+ ...props
607
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
608
+ //#endregion
609
+ //#region src/ui/icons/chevron-down.d.ts
610
+ declare function ChevronDownIcon({
611
+ size,
612
+ width,
613
+ height,
614
+ ...props
615
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
616
+ //#endregion
617
+ //#region src/ui/icons/code.d.ts
618
+ declare function CodeIcon({
619
+ size,
620
+ width,
621
+ height,
622
+ ...props
623
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
624
+ //#endregion
625
+ //#region src/ui/icons/columns-2.d.ts
626
+ declare function Columns2Icon({
627
+ size,
628
+ width,
629
+ height,
630
+ ...props
631
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
632
+ //#endregion
633
+ //#region src/ui/icons/columns-3.d.ts
634
+ declare function Columns3Icon({
635
+ size,
636
+ width,
637
+ height,
638
+ ...props
639
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
640
+ //#endregion
641
+ //#region src/ui/icons/columns-4.d.ts
642
+ declare function Columns4Icon({
643
+ size,
644
+ width,
645
+ height,
646
+ ...props
647
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
648
+ //#endregion
649
+ //#region src/ui/icons/corner-bottom-left.d.ts
650
+ declare function CornerBottomLeftIcon({
651
+ size,
652
+ width,
653
+ height,
654
+ ...props
655
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
656
+ //#endregion
657
+ //#region src/ui/icons/corner-bottom-right.d.ts
658
+ declare function CornerBottomRightIcon({
659
+ size,
660
+ width,
661
+ height,
662
+ ...props
663
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
664
+ //#endregion
665
+ //#region src/ui/icons/corner-top-left.d.ts
666
+ declare function CornerTopLeftIcon({
667
+ size,
668
+ width,
669
+ height,
670
+ ...props
671
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
672
+ //#endregion
673
+ //#region src/ui/icons/corner-top-right.d.ts
674
+ declare function CornerTopRightIcon({
675
+ size,
676
+ width,
677
+ height,
678
+ ...props
679
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
680
+ //#endregion
681
+ //#region src/ui/icons/external-link.d.ts
682
+ declare function ExternalLinkIcon({
683
+ size,
684
+ width,
685
+ height,
686
+ ...props
687
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
688
+ //#endregion
689
+ //#region src/ui/icons/heading-1.d.ts
690
+ declare function Heading1Icon({
691
+ size,
692
+ width,
693
+ height,
694
+ ...props
695
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
696
+ //#endregion
697
+ //#region src/ui/icons/heading-2.d.ts
698
+ declare function Heading2Icon({
699
+ size,
700
+ width,
701
+ height,
702
+ ...props
703
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
704
+ //#endregion
705
+ //#region src/ui/icons/heading-3.d.ts
706
+ declare function Heading3Icon({
707
+ size,
708
+ width,
709
+ height,
710
+ ...props
711
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
712
+ //#endregion
713
+ //#region src/ui/icons/image.d.ts
714
+ declare function ImageIcon({
715
+ size,
716
+ width,
717
+ height,
718
+ ...props
719
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
720
+ //#endregion
721
+ //#region src/ui/icons/italic.d.ts
722
+ declare function ItalicIcon({
723
+ size,
724
+ width,
725
+ height,
726
+ ...props
727
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
728
+ //#endregion
729
+ //#region src/ui/icons/layout.d.ts
730
+ declare function LayoutIcon({
731
+ size,
732
+ width,
733
+ height,
734
+ ...props
735
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
736
+ //#endregion
737
+ //#region src/ui/icons/link.d.ts
738
+ declare function LinkIcon({
739
+ size,
740
+ width,
741
+ height,
742
+ ...props
743
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
744
+ //#endregion
745
+ //#region src/ui/icons/list.d.ts
746
+ declare function ListIcon({
747
+ size,
748
+ width,
749
+ height,
750
+ ...props
751
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
752
+ //#endregion
753
+ //#region src/ui/icons/list-ordered.d.ts
754
+ declare function ListOrderedIcon({
755
+ size,
756
+ width,
757
+ height,
758
+ ...props
759
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
760
+ //#endregion
761
+ //#region src/ui/icons/minus.d.ts
762
+ declare function MinusIcon({
763
+ size,
764
+ width,
765
+ height,
766
+ ...props
767
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
768
+ //#endregion
769
+ //#region src/ui/icons/mouse-pointer.d.ts
770
+ declare function MousePointerIcon({
771
+ size,
772
+ width,
773
+ height,
774
+ ...props
775
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
776
+ //#endregion
777
+ //#region src/ui/icons/mouse-pointer-click.d.ts
778
+ declare function MousePointerClickIcon({
779
+ size,
780
+ width,
781
+ height,
782
+ ...props
783
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
784
+ //#endregion
785
+ //#region src/ui/icons/panel-bottom.d.ts
786
+ declare function PanelBottomIcon({
787
+ size,
788
+ width,
789
+ height,
790
+ ...props
791
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
792
+ //#endregion
793
+ //#region src/ui/icons/panel-left.d.ts
794
+ declare function PanelLeftIcon({
795
+ size,
796
+ width,
797
+ height,
798
+ ...props
799
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
800
+ //#endregion
801
+ //#region src/ui/icons/panel-right.d.ts
802
+ declare function PanelRightIcon({
803
+ size,
804
+ width,
805
+ height,
806
+ ...props
807
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
808
+ //#endregion
809
+ //#region src/ui/icons/panel-top.d.ts
810
+ declare function PanelTopIcon({
811
+ size,
812
+ width,
813
+ height,
814
+ ...props
815
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
816
+ //#endregion
817
+ //#region src/ui/icons/pencil.d.ts
818
+ declare function PencilIcon({
819
+ size,
820
+ width,
821
+ height,
822
+ ...props
823
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
824
+ //#endregion
825
+ //#region src/ui/icons/plus.d.ts
826
+ declare function PlusIcon({
827
+ size,
828
+ width,
829
+ height,
830
+ ...props
831
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
832
+ //#endregion
833
+ //#region src/ui/icons/rows-2.d.ts
834
+ declare function Rows2Icon({
835
+ size,
836
+ width,
837
+ height,
838
+ ...props
839
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
840
+ //#endregion
841
+ //#region src/ui/icons/split-square-vertical.d.ts
842
+ declare function SplitSquareVerticalIcon({
843
+ size,
844
+ width,
845
+ height,
846
+ ...props
847
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
848
+ //#endregion
849
+ //#region src/ui/icons/square.d.ts
850
+ declare function SquareIcon({
851
+ size,
852
+ width,
853
+ height,
854
+ ...props
855
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
856
+ //#endregion
857
+ //#region src/ui/icons/square-code.d.ts
858
+ declare function SquareCodeIcon({
859
+ size,
860
+ width,
861
+ height,
862
+ ...props
863
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
864
+ //#endregion
865
+ //#region src/ui/icons/square-dashed.d.ts
866
+ declare function SquareDashedIcon({
867
+ size,
868
+ width,
869
+ height,
870
+ ...props
871
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
872
+ //#endregion
873
+ //#region src/ui/icons/square-round-corner.d.ts
874
+ declare function SquareRoundCornerIcon({
875
+ size,
876
+ width,
877
+ height,
878
+ ...props
879
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
880
+ //#endregion
881
+ //#region src/ui/icons/strikethrough.d.ts
882
+ declare function StrikethroughIcon({
883
+ size,
884
+ width,
885
+ height,
886
+ ...props
887
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
888
+ //#endregion
889
+ //#region src/ui/icons/table.d.ts
890
+ declare function TableIcon({
891
+ size,
892
+ width,
893
+ height,
894
+ ...props
895
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
896
+ //#endregion
897
+ //#region src/ui/icons/text.d.ts
898
+ declare function TextIcon({
899
+ size,
900
+ width,
901
+ height,
902
+ ...props
903
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
904
+ //#endregion
905
+ //#region src/ui/icons/text-quote.d.ts
906
+ declare function TextQuoteIcon({
907
+ size,
908
+ width,
909
+ height,
910
+ ...props
911
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
912
+ //#endregion
913
+ //#region src/ui/icons/type.d.ts
914
+ declare function TypeIcon({
915
+ size,
916
+ width,
917
+ height,
918
+ ...props
919
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
920
+ //#endregion
921
+ //#region src/ui/icons/underline.d.ts
922
+ declare function UnderlineIcon({
923
+ size,
924
+ width,
925
+ height,
926
+ ...props
927
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
928
+ //#endregion
929
+ //#region src/ui/icons/unlink.d.ts
930
+ declare function UnlinkIcon({
931
+ size,
932
+ width,
933
+ height,
934
+ ...props
935
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
936
+ //#endregion
937
+ //#region src/ui/icons/x.d.ts
938
+ declare function XIcon({
939
+ size,
940
+ width,
941
+ height,
942
+ ...props
943
+ }: IconProps): _$react_jsx_runtime0.JSX.Element;
944
+ //#endregion
945
+ //#region src/ui/inspector/root.d.ts
946
+ interface FocusedNode {
947
+ nodeType: string;
948
+ nodeAttrs: Attrs;
949
+ nodePos: {
950
+ pos: number;
951
+ inside: number;
952
+ };
953
+ }
954
+ interface RootProps extends React$2.ComponentPropsWithRef<'aside'> {
955
+ asChild?: boolean;
956
+ }
957
+ //#endregion
958
+ //#region src/ui/inspector/breadcrumb.d.ts
959
+ interface InspectorBreadcrumbSegment {
960
+ node: FocusedNode;
961
+ focus: () => void;
962
+ }
963
+ interface InspectorBreadcrumbProps {
964
+ children?: (segments: InspectorBreadcrumbSegment[]) => React$1.ReactNode;
965
+ }
966
+ declare function InspectorBreadcrumb({
967
+ children
968
+ }: InspectorBreadcrumbProps): string | number | bigint | boolean | 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> | _$react_jsx_runtime0.JSX.Element | null | undefined;
969
+ //#endregion
970
+ //#region src/ui/inspector/document.d.ts
971
+ type SetGlobalStyle = (classReference: KnownThemeComponents, property: KnownCssProperties, value: unknown) => void;
972
+ type BatchSetGlobalStyle = (changes: Array<{
973
+ classReference: KnownThemeComponents;
974
+ property: KnownCssProperties;
975
+ value: unknown;
976
+ }>) => void;
977
+ type FindStyleValue = (classReference: KnownThemeComponents, prop: KnownCssProperties) => string | number;
978
+ interface InspectorDocumentContext {
979
+ styles: PanelGroup[];
980
+ setGlobalStyle: SetGlobalStyle;
981
+ batchSetGlobalStyle: BatchSetGlobalStyle;
982
+ findStyleValue: FindStyleValue;
983
+ }
984
+ interface InspectorDocumentProps {
985
+ children?: (context: InspectorDocumentContext) => React.ReactNode;
986
+ }
987
+ declare function InspectorDocument({
988
+ children
989
+ }: InspectorDocumentProps): _$react_jsx_runtime0.JSX.Element | null;
990
+ //#endregion
991
+ //#region src/ui/inspector/node.d.ts
992
+ interface InspectorNodeContext {
993
+ nodeType: string;
994
+ nodePos: {
995
+ pos: number;
996
+ inside: number;
997
+ };
998
+ getStyle: (prop: KnownCssProperties) => string | number | undefined;
999
+ setStyle: (prop: KnownCssProperties, value: string | number) => void;
1000
+ batchSetStyle: (changes: Array<{
1001
+ prop: KnownCssProperties;
1002
+ value: string | number;
1003
+ }>) => void;
1004
+ getAttr: (name: string) => unknown;
1005
+ setAttr: (name: string, value: unknown) => void;
1006
+ themeDefaults: Record<string, string | number | undefined>;
1007
+ presetColors: string[];
1008
+ }
1009
+ interface InspectorNodeProps {
1010
+ children?: (context: InspectorNodeContext) => React$2.ReactNode;
1011
+ }
1012
+ declare function InspectorNode({
1013
+ children
1014
+ }: InspectorNodeProps): _$react_jsx_runtime0.JSX.Element | null;
1015
+ //#endregion
1016
+ //#region src/ui/inspector/sections/attributes.d.ts
1017
+ type InspectorAttributesProps = InspectorNodeContext;
1018
+ declare function AttributesSection({
1019
+ nodeType,
1020
+ getAttr,
1021
+ setAttr
1022
+ }: InspectorAttributesProps): _$react_jsx_runtime0.JSX.Element | null;
1023
+ //#endregion
1024
+ //#region src/ui/inspector/sections/background.d.ts
1025
+ type InspectorBackgroundProps = InspectorNodeContext;
1026
+ declare function BackgroundSection({
1027
+ getStyle,
1028
+ setStyle
1029
+ }: InspectorBackgroundProps): _$react_jsx_runtime0.JSX.Element;
1030
+ //#endregion
1031
+ //#region src/ui/inspector/sections/border.d.ts
1032
+ type InspectorBorderProps = InspectorNodeContext;
1033
+ declare function BorderSection({
1034
+ getStyle,
1035
+ setStyle,
1036
+ batchSetStyle
1037
+ }: InspectorBorderProps): _$react_jsx_runtime0.JSX.Element;
1038
+ //#endregion
1039
+ //#region src/ui/inspector/text.d.ts
1040
+ interface InspectorTextContext {
1041
+ marks: Record<string, boolean>;
1042
+ toggleMark: (mark: string) => void;
1043
+ alignment: string;
1044
+ setAlignment: (value: string) => void;
1045
+ linkHref: string;
1046
+ linkColor: string;
1047
+ setLinkColor: (color: string) => void;
1048
+ isLinkActive: boolean;
1049
+ getStyle: (prop: KnownCssProperties) => string | number | undefined;
1050
+ setStyle: (prop: KnownCssProperties, value: string | number) => void;
1051
+ presetColors: string[];
1052
+ }
1053
+ interface InspectorTextProps {
1054
+ children?: (context: InspectorTextContext) => React$2.ReactNode;
1055
+ }
1056
+ declare function InspectorText({
1057
+ children
1058
+ }: InspectorTextProps): _$react_jsx_runtime0.JSX.Element | null;
1059
+ //#endregion
1060
+ //#region src/ui/inspector/sections/link.d.ts
1061
+ type InspectorLinkProps = Pick<InspectorTextContext, 'linkHref' | 'linkColor' | 'setLinkColor' | 'isLinkActive' | 'presetColors'>;
1062
+ declare function LinkSection({
1063
+ linkHref,
1064
+ linkColor,
1065
+ setLinkColor,
1066
+ isLinkActive
1067
+ }: InspectorLinkProps): _$react_jsx_runtime0.JSX.Element | null;
1068
+ //#endregion
1069
+ //#region src/ui/inspector/sections/padding.d.ts
1070
+ type InspectorPaddingProps = InspectorNodeContext;
1071
+ declare function PaddingSection({
1072
+ getStyle,
1073
+ batchSetStyle
1074
+ }: InspectorPaddingProps): _$react_jsx_runtime0.JSX.Element;
1075
+ //#endregion
1076
+ //#region src/ui/inspector/sections/size.d.ts
1077
+ type InspectorSizeProps = InspectorNodeContext;
1078
+ declare function SizeSection({
1079
+ nodeType,
1080
+ getStyle,
1081
+ setStyle,
1082
+ getAttr,
1083
+ setAttr
1084
+ }: InspectorSizeProps): _$react_jsx_runtime0.JSX.Element;
1085
+ //#endregion
1086
+ //#region src/ui/inspector/sections/typography.d.ts
1087
+ type TypographyContext = Pick<InspectorNodeContext | InspectorTextContext, 'getStyle' | 'setStyle' | 'presetColors'> & Partial<Pick<InspectorTextContext, 'marks' | 'toggleMark' | 'alignment' | 'setAlignment'>>;
1088
+ declare function TypographySection({
1089
+ getStyle,
1090
+ setStyle,
1091
+ marks,
1092
+ toggleMark,
1093
+ alignment,
1094
+ setAlignment
1095
+ }: TypographyContext): _$react_jsx_runtime0.JSX.Element;
1096
+ //#endregion
1097
+ //#region src/ui/inspector/config/node-meta.d.ts
1098
+ interface NodeMeta {
1099
+ icon: ElementType;
1100
+ label: string;
1101
+ }
1102
+ declare function getNodeMeta(nodeType: string): NodeMeta;
1103
+ //#endregion
1104
+ //#region src/ui/inspector/index.d.ts
1105
+ declare const Inspector: {
1106
+ Root: React$2.ForwardRefExoticComponent<Omit<RootProps, "ref"> & React$2.RefAttributes<HTMLElement>>;
1107
+ Breadcrumb: typeof InspectorBreadcrumb;
1108
+ Document: typeof InspectorDocument;
1109
+ Node: typeof InspectorNode;
1110
+ Text: typeof InspectorText;
1111
+ Attributes: typeof AttributesSection;
1112
+ Background: typeof BackgroundSection;
1113
+ Border: typeof BorderSection;
1114
+ Link: typeof LinkSection;
1115
+ Padding: typeof PaddingSection;
1116
+ Size: typeof SizeSection;
1117
+ Typography: typeof TypographySection;
1118
+ };
1119
+ //#endregion
1120
+ //#region src/ui/slash-command/commands.d.ts
1121
+ declare const TEXT: SlashCommandItem;
1122
+ declare const H1: SlashCommandItem;
1123
+ declare const H2: SlashCommandItem;
1124
+ declare const H3: SlashCommandItem;
1125
+ declare const BULLET_LIST: SlashCommandItem;
1126
+ declare const NUMBERED_LIST: SlashCommandItem;
1127
+ declare const QUOTE: SlashCommandItem;
1128
+ declare const CODE: SlashCommandItem;
1129
+ declare const BUTTON: SlashCommandItem;
1130
+ declare const DIVIDER: SlashCommandItem;
1131
+ declare const SECTION: SlashCommandItem;
1132
+ declare const TWO_COLUMNS: SlashCommandItem;
1133
+ declare const THREE_COLUMNS: SlashCommandItem;
1134
+ declare const FOUR_COLUMNS: SlashCommandItem;
1135
+ declare const defaultSlashCommands: SlashCommandItem[];
1136
+ //#endregion
1137
+ //#region src/ui/slash-command/root.d.ts
1138
+ declare function SlashCommandRoot({
1139
+ items: itemsProp,
1140
+ filterItems: filterItemsProp,
1141
+ char,
1142
+ allow: allowProp,
1143
+ children
1144
+ }: SlashCommandRootProps): React$2.ReactPortal | null;
1145
+ //#endregion
1146
+ //#region src/ui/slash-command/search.d.ts
1147
+ declare function scoreItem(item: SearchableItem, query: string): number;
1148
+ declare function filterAndRankItems<T extends SearchableItem>(items: T[], query: string): T[];
1149
+ //#endregion
1150
+ //#region src/ui/slash-command/utils.d.ts
1151
+ declare function isInsideNode(editor: Editor, type: string): boolean;
1152
+ declare function isAtMaxColumnsDepth(editor: Editor): boolean;
1153
+ //#endregion
1154
+ 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, CornerBottomLeftIcon, CornerBottomRightIcon, CornerTopLeftIcon, CornerTopRightIcon, DIVIDER, EditorFocusScope, EditorFocusScopeProps, EditorFocusScopeProvider, EditorFocusScopeProviderProps, ExternalLinkIcon, FOUR_COLUMNS, FocusScopeContext, 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, type NodeMeta, 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, SlashCommandRoot as 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, getNodeMeta, isAtMaxColumnsDepth, isInsideNode, scoreItem, useBubbleMenuContext, useEditorFocusScope };
1155
+ //# sourceMappingURL=index.d.cts.map