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