@maily-to/core 2.0.0-beta.7 → 2.0.0-beta.8

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 (48) hide show
  1. package/dist/blocks/index.cjs +8 -1
  2. package/dist/blocks/index.d.cts +1 -38
  3. package/dist/blocks/index.d.mts +14 -6
  4. package/dist/blocks/index.d.mts.map +1 -1
  5. package/dist/blocks/index.mjs +2 -2
  6. package/dist/extensions/index.cjs +252 -303
  7. package/dist/extensions/index.d.cts +1 -379
  8. package/dist/extensions/index.d.mts +127 -224
  9. package/dist/extensions/index.d.mts.map +1 -1
  10. package/dist/extensions/index.mjs +238 -271
  11. package/dist/index.cjs +4423 -12618
  12. package/dist/index.d.cts +1 -165
  13. package/dist/index.d.mts +701 -121
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +8460 -11567
  16. package/dist/{slash-command-BmWRVPbv.d.mts → slash-command-BrwA1bHs.d.mts} +10 -11
  17. package/dist/slash-command-BrwA1bHs.d.mts.map +1 -0
  18. package/dist/theme-D1CI7_8s.d.mts +70 -0
  19. package/dist/theme-D1CI7_8s.d.mts.map +1 -0
  20. package/dist/typography-BdOKvXfQ.mjs +911 -0
  21. package/dist/typography-D-VnwOSw.cjs +970 -0
  22. package/dist/typography-DW7VApAR.cjs +1072 -0
  23. package/dist/use-maily-editor-BP6Mt8Nn.cjs +3991 -0
  24. package/dist/use-maily-editor-DFuhg38t.cjs +4939 -0
  25. package/dist/use-maily-editor-xVILP7H8.mjs +4488 -0
  26. package/package.json +82 -74
  27. package/readme.md +169 -128
  28. package/src/styles/index.css +2537 -0
  29. package/dist/blocks/index.d.cts.map +0 -1
  30. package/dist/chunk-CfYAbeIz.mjs +0 -13
  31. package/dist/extensions/index.d.cts.map +0 -1
  32. package/dist/extensions/index.mjs.map +0 -1
  33. package/dist/index.css +0 -2312
  34. package/dist/index.d.cts.map +0 -1
  35. package/dist/index.mjs.map +0 -1
  36. package/dist/slash-command-BmWRVPbv.d.mts.map +0 -1
  37. package/dist/slash-command-CK0-1FwR.d.cts +0 -39
  38. package/dist/slash-command-CK0-1FwR.d.cts.map +0 -1
  39. package/dist/spacer-DBtsr3hu.cjs +0 -5768
  40. package/dist/spacer-DzZWX-wB.mjs +0 -5456
  41. package/dist/spacer-DzZWX-wB.mjs.map +0 -1
  42. package/dist/typography-CWL13acR.cjs +0 -400
  43. package/dist/typography-DhrUe809.mjs +0 -282
  44. package/dist/typography-DhrUe809.mjs.map +0 -1
  45. package/dist/variable-C9S9ZoHv.d.cts +0 -108
  46. package/dist/variable-C9S9ZoHv.d.cts.map +0 -1
  47. package/dist/variable-DVwGrg2a.d.mts +0 -108
  48. package/dist/variable-DVwGrg2a.d.mts.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,163 +1,743 @@
1
- import { a as filterVariableSuggestions, i as VariablesFunction, n as VariableFunctionOptions, r as Variables, t as Variable } from "./variable-DVwGrg2a.mjs";
2
- import { DEFAULT_EDITOR_THEME, EditorThemeOptions, EditorThemeOptions as EditorThemeOptions$1, TextDirection } from "@maily-to/shared";
3
- import * as React$2 from "react";
4
- import { Editor, EditorEvents, UseEditorOptions } from "@tiptap/react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
- import { AnyExtension, Editor as Editor$1, JSONContent } from "@tiptap/core";
7
-
8
- //#region src/components/editor/editor-body.d.ts
9
- type EditorBodyProps = {
10
- children: React.ReactNode;
11
- className?: string;
1
+ import { a as Variables, i as VariableFunctionOptions, o as VariablesFunction, r as Variable, s as filterVariableSuggestions } from "./theme-D1CI7_8s.mjs";
2
+ import { AnyExtension, Editor, JSONContent } from "@tiptap/core";
3
+ import { ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, DependencyList, ReactNode, RefObject, SVGProps } from "react";
4
+ import { AllowedTextAlignment, BoxCorner, BoxSide, DocumentNode, FallbackFont, FontFamilyItem, InlineStyle, NodeThemeOptions } from "@maily-to/shared";
5
+ import { Node as Node$1 } from "@tiptap/pm/model";
6
+ import { Editor as Editor$1, EditorEvents, EditorOptions, JSONContent as JSONContent$1, UseEditorOptions } from "@tiptap/react";
7
+ import { useRender } from "@base-ui/react/use-render";
8
+ import { Popover as Popover$1, PopoverPortalProps } from "@base-ui/react/popover";
9
+ import { LucideIcon } from "lucide-react";
10
+ import { Toolbar } from "@base-ui/react/toolbar";
11
+ import { UnitField as UnitField$1 } from "unit-field";
12
+ import { Menu } from "@base-ui/react/menu";
13
+ import { Placement } from "@floating-ui/react";
14
+ import { Toggle } from "@base-ui/react/toggle";
15
+ import { ToggleGroup } from "@base-ui/react/toggle-group";
16
+ import { Select as Select$1 } from "@base-ui/react/select";
17
+ import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
18
+ //#endregion
19
+ //#region src/components/color-picker/color-picker.d.ts
20
+ type ColorPickerProps = {
21
+ color: string;
22
+ onColorChange: (color: string) => void;
12
23
  };
13
- declare function EditorBody(props: EditorBody.Props): react_jsx_runtime0.JSX.Element;
14
- declare namespace EditorBody {
15
- type Props = EditorBodyProps;
16
- }
24
+ declare function ColorPicker(props: ColorPickerProps): import("react").JSX.Element;
17
25
  //#endregion
18
- //#region src/components/editor/editor-container.d.ts
19
- type EditorContainerProps = {
20
- children: React.ReactNode;
21
- className?: string;
26
+ //#region src/types/floating-ui.d.ts
27
+ type FloatingUIContainer = PopoverPortalProps['container'];
28
+ declare const FLOATING_ELEMENT_IDS: {
29
+ readonly TEXT_BUBBLE_MENU: 'text-bubble-menu';
30
+ readonly VARIABLE_BUBBLE_MENU: 'variable-bubble-menu';
31
+ readonly SPACER_BUBBLE_MENU: 'spacer-bubble-menu';
32
+ readonly SECTION_BUBBLE_MENU: 'section-bubble-menu';
33
+ readonly COLUMNS_BUBBLE_MENU: 'columns-bubble-menu';
34
+ readonly INLINE_IMAGE_BUBBLE_MENU: 'inline-image-bubble-menu';
35
+ readonly IMAGE_BUBBLE_MENU: 'image-bubble-menu';
36
+ readonly BUTTON_BUBBLE_MENU: 'button-bubble-menu';
37
+ readonly HTML_CODE_BLOCK_BUBBLE_MENU: 'html-code-block-bubble-menu';
38
+ readonly REPEAT_BUBBLE_MENU: 'repeat-bubble-menu';
39
+ readonly LINK_CARD_BUBBLE_MENU: 'link-card-bubble-menu';
22
40
  };
23
- declare function EditorContainer(props: EditorContainer.Props): react_jsx_runtime0.JSX.Element;
24
- declare namespace EditorContainer {
25
- type Props = EditorContainerProps;
26
- }
41
+ type FloatingElementId = (typeof FLOATING_ELEMENT_IDS)[keyof typeof FLOATING_ELEMENT_IDS];
42
+ /**
43
+ * Priority order for bubble menu visibility. When multiple menus
44
+ * could be active (e.g. text inside a button inside a section),
45
+ * the first matching menu in this list wins.
46
+ */
47
+ declare const FLOATING_ELEMENT_ORDER: readonly ["button-bubble-menu", "html-code-block-bubble-menu", "variable-bubble-menu", "spacer-bubble-menu", "columns-bubble-menu", "repeat-bubble-menu", "section-bubble-menu", "inline-image-bubble-menu", "image-bubble-menu", "link-card-bubble-menu", "text-bubble-menu"];
48
+ //#endregion
49
+ //#region src/components/color-picker/color-picker-trigger.d.ts
50
+ type ColorTriggerProps = Omit<ComponentPropsWithRef<'button'>, 'children'> & {
51
+ color: string;
52
+ container: FloatingUIContainer;
53
+ group: 'background' | 'text';
54
+ isActive?: boolean;
55
+ label: string;
56
+ render?: useRender.RenderProp;
57
+ tooltip: string;
58
+ };
59
+ declare function ColorTrigger(props: ColorTriggerProps): import("react").JSX.Element;
60
+ //#endregion
61
+ //#region src/components/color-picker/color-swatch.d.ts
62
+ type ColorSwatchItem = {
63
+ color: string;
64
+ icon?: LucideIcon;
65
+ id: string;
66
+ label: string;
67
+ };
68
+ type ColorSwatchProps = {
69
+ color: string;
70
+ container: FloatingUIContainer;
71
+ items: ColorSwatchItem[];
72
+ onColorClick: (color: string, item: ColorSwatchItem) => void;
73
+ onCustomColorClick: () => void;
74
+ };
75
+ declare function ColorSwatch(props: ColorSwatchProps): import("react").JSX.Element;
76
+ //#endregion
77
+ //#region src/components/color-picker/color-swatch-popover.d.ts
78
+ type ColorSwatchTriggerState = {
79
+ isActive: boolean;
80
+ render: useRender.RenderProp;
81
+ };
82
+ type ColorSwatchPopoverProps = {
83
+ color: string;
84
+ container: FloatingUIContainer;
85
+ items: ColorSwatchItem[];
86
+ onColorChange: (color: string, item?: ColorSwatchItem) => void;
87
+ renderTrigger: (state: ColorSwatchTriggerState) => ReactNode;
88
+ };
89
+ declare function ColorSwatchPopover(props: ColorSwatchPopoverProps): import("react").JSX.Element;
90
+ //#endregion
91
+ //#region src/components/border-style/border-style-config.d.ts
92
+ type BorderStyleConfigProps = {
93
+ container: FloatingUIContainer;
94
+ nodeType: string;
95
+ onBack: () => void;
96
+ };
97
+ declare function BorderStyleConfig(props: BorderStyleConfigProps): import("react").JSX.Element;
98
+ //#endregion
99
+ //#region src/components/icons/color-palette-icon.d.ts
100
+ declare function ColorPaletteIcon(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
101
+ //#endregion
102
+ //#region src/components/button-bubble-menu/button-bubble-menu.d.ts
103
+ declare function ButtonBubbleMenu(): import("react").JSX.Element | null;
104
+ //#endregion
105
+ //#region src/components/columns-bubble-menu/columns-bubble-menu.d.ts
106
+ declare const MIN_COLUMNS_GAP = 0;
107
+ declare const MAX_COLUMNS_GAP = 100;
108
+ declare function ColumnsBubbleMenu(): import("react").JSX.Element | null;
109
+ //#endregion
110
+ //#region src/components/columns-bubble-menu/vertical-alignment-switch.d.ts
111
+ declare const COLUMN_VERTICAL_ALIGNMENTS: readonly [{
112
+ readonly icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
113
+ readonly label: 'Align Top';
114
+ readonly value: 'top';
115
+ }, {
116
+ readonly icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
117
+ readonly label: 'Align Middle';
118
+ readonly value: 'middle';
119
+ }, {
120
+ readonly icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
121
+ readonly label: 'Align Bottom';
122
+ readonly value: 'bottom';
123
+ }];
124
+ type AllowedColumnVerticalAlign = (typeof COLUMN_VERTICAL_ALIGNMENTS)[number]['value'];
125
+ type VerticalAlignmentSwitchProps = {
126
+ align: string;
127
+ container: FloatingUIContainer;
128
+ onAlignChange: (align: AllowedColumnVerticalAlign) => void;
129
+ };
130
+ declare function VerticalAlignmentSwitch(props: VerticalAlignmentSwitchProps): import("react").JSX.Element;
131
+ //#endregion
132
+ //#region src/components/drag-context/drag-context-menu.d.ts
133
+ type DragContextOpenSource = 'pointer' | 'shortcut';
134
+ type DragContextMenuProps = {
135
+ container: FloatingUIContainer;
136
+ editor: Editor$1;
137
+ nodeRef: RefObject<Node$1 | null>;
138
+ onOpenChange: (open: boolean) => void;
139
+ open: boolean;
140
+ openSourceRef: RefObject<DragContextOpenSource>;
141
+ posRef: RefObject<number | null>;
142
+ };
143
+ declare function DragContextMenu(props: DragContextMenuProps): import("react").JSX.Element;
144
+ //#endregion
145
+ //#region src/components/editor/editor-bubble-menus.d.ts
146
+ declare function EditorBubbleMenus(): import("react").JSX.Element;
27
147
  //#endregion
28
148
  //#region src/components/editor/editor-content.d.ts
29
- declare function EditorContent$1(): react_jsx_runtime0.JSX.Element;
149
+ declare function EditorContent(): import("react").JSX.Element;
150
+ //#endregion
151
+ //#region src/components/drag-context/drag-context-handle.d.ts
152
+ declare function DragContextHandle(): import("react").JSX.Element;
30
153
  //#endregion
31
154
  //#region src/components/editor/editor-frame.d.ts
32
- type EditorFrameProps = {
33
- children: React.ReactNode;
34
- className?: string;
35
- };
36
- declare function EditorFrame(props: EditorFrame.Props): react_jsx_runtime0.JSX.Element;
155
+ type EditorFrameProps = ComponentPropsWithRef<'div'>;
156
+ declare function EditorFrame(props: EditorFrame.Props): import("react").JSX.Element;
37
157
  declare namespace EditorFrame {
38
158
  type Props = EditorFrameProps;
39
159
  }
40
160
  //#endregion
41
161
  //#region src/components/editor/editor-root.d.ts
42
162
  type EditorRootProps = {
163
+ children: React.ReactNode;
43
164
  content?: JSONContent | string;
44
165
  extensions?: AnyExtension[];
45
- onUpdate?: ((props: EditorEvents['update']) => void) | undefined;
166
+ onContentError?: ((props: EditorEvents['contentError']) => void) | undefined;
46
167
  onCreate?: ((props: EditorEvents['create']) => void) | undefined;
47
- textDirection?: TextDirection;
48
- defaultTextDirection?: TextDirection;
49
- onTextDirectionChange?: (direction: TextDirection) => void;
50
- theme?: EditorThemeOptions$1;
168
+ onUpdate?: ((props: EditorEvents['update']) => void) | undefined;
51
169
  ref?: React.Ref<EditorRootHandle>;
52
- children: React.ReactNode;
53
- } & Pick<UseEditorOptions, 'immediatelyRender' | 'autofocus' | 'editable' | 'editorProps'>;
54
- /**
55
- * Imperative handle exposed by `Editor.Root` via `ref`. `getEditorHTML`
56
- * returns the ProseMirror-serialized HTML for the editor view — for
57
- * email HTML output use `@maily-to/render` with `getJSON()`.
58
- */
170
+ } & Pick<UseEditorOptions, 'autofocus' | 'editable' | 'editorProps' | 'immediatelyRender' | 'textDirection'>;
59
171
  type EditorRootHandle = {
60
- getEditor: () => Editor$1;
61
- getJSON: () => JSONContent;
172
+ getEditor: () => Editor;
62
173
  getEditorHTML: () => string;
174
+ getJSON: () => DocumentNode;
63
175
  getText: () => string;
64
176
  };
65
- declare function EditorRoot(props: EditorRoot.Props): react_jsx_runtime0.JSX.Element | null;
177
+ declare function EditorRoot(props: EditorRoot.Props): import("react").JSX.Element | null;
66
178
  declare namespace EditorRoot {
67
- type Props = EditorRootProps;
68
179
  type Handle = EditorRootHandle;
180
+ type Props = EditorRootProps;
69
181
  }
70
- //#endregion
71
- //#region src/components/editor/editor-root-context.d.ts
72
- type EditorRootContext = {
73
- textDirection: TextDirection;
74
- setTextDirection: (direction: TextDirection) => void;
75
- theme: EditorThemeOptions$1;
76
- };
77
- declare const EditorRootContext: React$2.Context<EditorRootContext | null>;
78
- declare function useEditorRootContext(): EditorRootContext;
79
182
  declare namespace editor_d_exports {
80
- export { EditorBody as Body, EditorContainer as Container, EditorContent$1 as Content, EditorFrame as Frame, EditorRoot as Root, useEditorRootContext };
183
+ export { EditorBubbleMenus as BubbleMenus, EditorContent as Content, DragContextHandle, EditorFrame as Frame, EditorRoot as Root };
81
184
  }
82
185
  //#endregion
83
- //#region src/components/toolbar/toolbar-root.d.ts
84
- type ToolbarRootProps = {
85
- children: React.ReactNode;
86
- className?: string;
87
- };
88
- declare function ToolbarRoot(props: ToolbarRoot.Props): react_jsx_runtime0.JSX.Element;
89
- declare namespace ToolbarRoot {
90
- type Props = ToolbarRootProps;
186
+ //#region src/components/theme-settings/theme-settings-button.d.ts
187
+ declare function ThemeSettingsButton(): import("react").JSX.Element;
188
+ //#endregion
189
+ //#region src/components/theme-settings/theme-settings-font.d.ts
190
+ declare function ThemeSettingsFont(): import("react").JSX.Element;
191
+ //#endregion
192
+ //#region src/components/theme-settings/theme-settings-layout.d.ts
193
+ declare function ThemeSettingsLayout(): import("react").JSX.Element;
194
+ //#endregion
195
+ //#region src/components/theme-settings/theme-settings-root.d.ts
196
+ type ThemeSettingsRootProps = Toolbar.Root.Props;
197
+ declare function ThemeSettingsRoot(props: ThemeSettingsRootProps): import("react").JSX.Element | null;
198
+ //#endregion
199
+ //#region src/components/theme-settings/theme-settings-text.d.ts
200
+ declare function ThemeSettingsText(): import("react").JSX.Element;
201
+ declare namespace theme_settings_d_exports {
202
+ export { ThemeSettingsButton as Button, ThemeSettingsFont as Font, ThemeSettingsLayout as Layout, ThemeSettingsRoot as Root, ThemeSettingsText as Text };
91
203
  }
92
204
  //#endregion
93
- //#region src/components/toolbar/toolbar-group.d.ts
94
- type ToolbarGroupProps = {
95
- children: React.ReactNode;
96
- className?: string;
205
+ //#region src/components/interface/unit-field.d.ts
206
+ type UnitFieldPreset = {
207
+ displayValue?: string;
208
+ label: string;
209
+ value: number;
97
210
  };
98
- declare function ToolbarGroup(props: ToolbarGroup.Props): react_jsx_runtime0.JSX.Element;
99
- declare namespace ToolbarGroup {
100
- type Props = ToolbarGroupProps;
101
- }
211
+ type UnitFieldProps = Omit<UnitField$1.Root.Props, 'format' | 'parse'> & {
212
+ container?: FloatingUIContainer;
213
+ decimal?: boolean;
214
+ dragAreaIcon?: ReactNode;
215
+ label: string;
216
+ onSelectPreset?: (value: number) => void;
217
+ presets?: UnitFieldPreset[];
218
+ suffix?: string;
219
+ };
220
+ declare function UnitField(props: UnitFieldProps): import("react").JSX.Element;
102
221
  //#endregion
103
- //#region src/components/toolbar/toolbar-actions.d.ts
104
- type ToolbarActionProps = {
105
- className?: string;
106
- };
107
- declare function ToolbarUndo(props: ToolbarUndo.Props): react_jsx_runtime0.JSX.Element;
108
- declare function ToolbarRedo(props: ToolbarRedo.Props): react_jsx_runtime0.JSX.Element;
109
- declare function ToolbarBold(props: ToolbarBold.Props): react_jsx_runtime0.JSX.Element;
110
- declare function ToolbarItalic(props: ToolbarItalic.Props): react_jsx_runtime0.JSX.Element;
111
- declare function ToolbarUnderline(props: ToolbarUnderline.Props): react_jsx_runtime0.JSX.Element;
112
- declare function ToolbarStrikethrough(props: ToolbarStrikethrough.Props): react_jsx_runtime0.JSX.Element;
113
- declare function ToolbarCode(props: ToolbarCode.Props): react_jsx_runtime0.JSX.Element;
114
- declare function ToolbarCommonActions(): react_jsx_runtime0.JSX.Element;
115
- declare namespace ToolbarUndo {
116
- type Props = ToolbarActionProps;
117
- }
118
- declare namespace ToolbarRedo {
119
- type Props = ToolbarActionProps;
120
- }
121
- declare namespace ToolbarBold {
122
- type Props = ToolbarActionProps;
123
- }
124
- declare namespace ToolbarItalic {
125
- type Props = ToolbarActionProps;
126
- }
127
- declare namespace ToolbarUnderline {
128
- type Props = ToolbarActionProps;
129
- }
130
- declare namespace ToolbarStrikethrough {
131
- type Props = ToolbarActionProps;
132
- }
133
- declare namespace ToolbarCode {
134
- type Props = ToolbarActionProps;
135
- }
222
+ //#region src/components/theme-settings/theme-settings-field.d.ts
223
+ type ThemeSettingsColorFieldProps = {
224
+ color: string;
225
+ items: ColorSwatchItem[];
226
+ label: string;
227
+ onColorChange: (color: string) => void;
228
+ };
229
+ type ThemeSettingsUnitFieldProps = {
230
+ dragAreaIcon?: ReactNode;
231
+ label: string;
232
+ max?: number;
233
+ min?: number;
234
+ onValueCommitted: (value: number) => void;
235
+ presets?: UnitFieldPreset[];
236
+ value: number;
237
+ };
136
238
  //#endregion
137
- //#region src/components/toolbar/toolbar-align.d.ts
138
- type ToolbarAlignProps = {
139
- className?: string;
239
+ //#region src/components/theme-settings/theme-settings-popover.d.ts
240
+ type ThemeSettingsPopoverProps = {
241
+ children: ReactNode;
242
+ icon: LucideIcon;
243
+ label: string;
140
244
  };
141
- declare function ToolbarAlign(props: ToolbarAlign.Props): react_jsx_runtime0.JSX.Element;
142
- declare namespace ToolbarAlign {
143
- type Props = ToolbarAlignProps;
144
- }
245
+ //#endregion
246
+ //#region src/components/toolbar/toolbar-align.d.ts
247
+ declare function ToolbarAlign(): import("react").JSX.Element;
248
+ //#endregion
249
+ //#region src/components/toolbar/toolbar-actions.d.ts
250
+ declare function ToolbarUndo(): import("react").JSX.Element;
251
+ declare function ToolbarRedo(): import("react").JSX.Element;
252
+ declare function ToolbarBold(): import("react").JSX.Element;
253
+ declare function ToolbarItalic(): import("react").JSX.Element;
254
+ declare function ToolbarUnderline(): import("react").JSX.Element;
255
+ declare function ToolbarStrikethrough(): import("react").JSX.Element;
256
+ declare function ToolbarCode(): import("react").JSX.Element;
257
+ declare function ToolbarCommonActions(): import("react").JSX.Element;
145
258
  //#endregion
146
259
  //#region src/components/toolbar/toolbar-direction.d.ts
147
- type ToolbarDirectionProps = {
148
- className?: string;
149
- };
150
- declare function ToolbarDirection(props: ToolbarDirection.Props): react_jsx_runtime0.JSX.Element;
151
- declare namespace ToolbarDirection {
152
- type Props = ToolbarDirectionProps;
153
- }
260
+ declare function ToolbarDirection(): import("react").JSX.Element;
261
+ //#endregion
262
+ //#region src/components/toolbar/toolbar-group.d.ts
263
+ type ToolbarGroupProps = Toolbar.Group.Props;
264
+ declare function ToolbarGroup(props: ToolbarGroupProps): import("react").JSX.Element;
265
+ //#endregion
266
+ //#region src/components/toolbar/toolbar-root.d.ts
267
+ type ToolbarRootProps = Toolbar.Root.Props;
268
+ declare function ToolbarRoot(props: ToolbarRootProps): import("react").JSX.Element;
154
269
  declare namespace toolbar_d_exports {
155
270
  export { ToolbarAlign as Align, ToolbarBold as Bold, ToolbarCode as Code, ToolbarCommonActions as CommonActions, ToolbarDirection as Direction, ToolbarGroup as Group, ToolbarItalic as Italic, ToolbarRedo as Redo, ToolbarRoot as Root, ToolbarStrikethrough as Strikethrough, ToolbarUnderline as Underline, ToolbarUndo as Undo };
156
271
  }
157
272
  //#endregion
273
+ //#region src/components/html-code-block-bubble-menu/html-code-block-bubble-menu.d.ts
274
+ declare function HtmlCodeBlockBubbleMenu(): import("react").JSX.Element | null;
275
+ //#endregion
276
+ //#region src/components/repeat-bubble-menu/repeat-bubble-menu.d.ts
277
+ declare function RepeatBubbleMenu(): import("react").JSX.Element | null;
278
+ //#endregion
279
+ //#region src/components/image-bubble-menu/image-bubble-menu.d.ts
280
+ declare function ImageBubbleMenu(): import("react").JSX.Element | null;
281
+ //#endregion
282
+ //#region src/components/image-bubble-menu/image-metadata-field.d.ts
283
+ type ImageMetadataFieldProps = {
284
+ content: string;
285
+ label: string;
286
+ onContentChange: (content: string) => void;
287
+ placeholder: string;
288
+ };
289
+ declare function ImageMetadataField(props: ImageMetadataFieldProps): import("react").JSX.Element;
290
+ //#endregion
291
+ //#region src/components/image-bubble-menu/image-metadata-popover.d.ts
292
+ type ImageMetadataPopoverProps = {
293
+ alt: string;
294
+ container: FloatingUIContainer;
295
+ onAltChange: (alt: string) => void;
296
+ onTitleChange: (title: string) => void;
297
+ title: string;
298
+ };
299
+ declare function ImageMetadataPopover(props: ImageMetadataPopoverProps): import("react").JSX.Element;
300
+ //#endregion
301
+ //#region src/components/inline-image-bubble-menu/inline-image-bubble-menu.d.ts
302
+ declare const MIN_INLINE_IMAGE_SIZE = 8;
303
+ declare const MAX_INLINE_IMAGE_SIZE = 100;
304
+ declare function InlineImageBubbleMenu(): import("react").JSX.Element | null;
305
+ //#endregion
306
+ //#region src/components/link-card-bubble-menu/link-card-bubble-menu.d.ts
307
+ declare function LinkCardBubbleMenu(): import("react").JSX.Element | null;
308
+ //#endregion
309
+ //#region src/components/link-card-bubble-menu/link-card-fields-popover.d.ts
310
+ type LinkCardFieldsPopoverProps = {
311
+ badgeText: string;
312
+ container?: FloatingUIContainer;
313
+ description: string;
314
+ image: string;
315
+ link: string;
316
+ linkTitle: string;
317
+ onBadgeTextChange: (badgeText: string) => void;
318
+ onDescriptionChange: (description: string) => void;
319
+ onImageChange: (image: string) => void;
320
+ onLinkChange: (link: string) => void;
321
+ onLinkTitleChange: (linkTitle: string) => void;
322
+ onSubTitleChange: (subTitle: string) => void;
323
+ onTitleChange: (title: string) => void;
324
+ subTitle: string;
325
+ title: string;
326
+ };
327
+ declare function LinkCardFieldsPopover(props: LinkCardFieldsPopoverProps): import("react").JSX.Element;
328
+ //#endregion
329
+ //#region src/components/text-bubble-menu/ai-actions-dropdown.d.ts
330
+ type AIActionsDropdownProps = {
331
+ container?: FloatingUIContainer;
332
+ };
333
+ declare function AIActionsDropdown(props: AIActionsDropdownProps): import("react").JSX.Element;
334
+ //#endregion
335
+ //#region src/components/interface/dropdown-menu.d.ts
336
+ declare const DropdownMenu: <Payload>(props: Menu.Root.Props<Payload>) => import("react").JSX.Element;
337
+ declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").MenuGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
338
+ declare const DropdownMenuGroupLabel: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").MenuGroupLabelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
339
+ declare const DropdownMenuPortal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").MenuPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
340
+ declare const DropdownMenuSubmenuRoot: typeof Menu.SubmenuRoot;
341
+ declare const DropdownMenuSubmenuTrigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").MenuSubmenuTriggerProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
342
+ declare const DropdownMenuTrigger: Menu.Trigger;
343
+ type DropdownPositionerProps = Menu.Positioner.Props & {
344
+ container?: FloatingUIContainer;
345
+ };
346
+ declare function DropdownPositioner(props: DropdownPositionerProps): import("react").JSX.Element;
347
+ type DropdownMenuPopupProps = Menu.Popup.Props;
348
+ declare function DropdownMenuPopup(props: DropdownMenuPopupProps): import("react").JSX.Element;
349
+ type DropdownMenuItemProps = Menu.Item.Props;
350
+ declare function DropdownMenuItem(props: DropdownMenuItemProps): import("react").JSX.Element;
351
+ type DropdownMenuSeparatorProps = Menu.Separator.Props;
352
+ declare function DropdownMenuSeparator(props: DropdownMenuSeparatorProps): import("react").JSX.Element;
353
+ type DropdownMenuArrowProps = Menu.Arrow.Props;
354
+ declare function DropdownMenuArrow(props: DropdownMenuArrowProps): import("react").JSX.Element;
355
+ //#endregion
356
+ //#region src/components/skeleton-editor/skeleton-editor.d.ts
357
+ type SkeletonEditorProps = {
358
+ autofocus?: EditorOptions['autofocus'];
359
+ content: string;
360
+ editorRef: RefObject<Editor$1 | null>;
361
+ onContentChange?: (content: string) => void;
362
+ onEnter?: () => void;
363
+ placeholder?: string;
364
+ };
365
+ declare function SkeletonEditor(props: SkeletonEditorProps): import("react").JSX.Element;
366
+ //#endregion
367
+ //#region src/hooks/use-skeleton-editor.d.ts
368
+ type UseSkeletonEditorOptions = {
369
+ content?: string | JSONContent$1;
370
+ placeholder?: string;
371
+ variables?: Variables;
372
+ } & Omit<UseEditorOptions, 'content'>;
373
+ declare function useSkeletonEditor(options: UseSkeletonEditorOptions, dependencies?: DependencyList): import("@tiptap/core").Editor;
374
+ //#endregion
375
+ //#region src/components/variable-only-editor/variable-only-editor.d.ts
376
+ type VariableOnlyEditorProps = {
377
+ autofocus?: EditorOptions['autofocus'];
378
+ content: string;
379
+ editorRef: RefObject<Editor$1 | null>;
380
+ onContentChange?: (content: string) => void;
381
+ onEnter?: () => void;
382
+ placeholder?: string;
383
+ };
384
+ declare function VariableOnlyEditor(props: VariableOnlyEditorProps): import("react").JSX.Element;
385
+ //#endregion
386
+ //#region src/components/plain-variable-input/plain-variable-input.d.ts
387
+ type PlainVariableInputProps = {
388
+ 'aria-label'?: string;
389
+ autofocus?: EditorOptions['autofocus'];
390
+ content: string;
391
+ extensions?: AnyExtension[];
392
+ id?: string;
393
+ isIdEditable?: boolean;
394
+ onContentChange?: (content: string) => void;
395
+ onEnter?: () => void;
396
+ placeholder?: string;
397
+ variables?: Variables;
398
+ };
399
+ declare function PlainVariableInput(props: PlainVariableInputProps): import("react").JSX.Element;
400
+ //#endregion
401
+ //#region src/utils/content.d.ts
402
+ declare function getContentFromHtml(html: string): DocumentNode;
403
+ //#endregion
158
404
  //#region src/hooks/use-editor-variables.d.ts
159
- /** Returns the current variable list from the variable extension's storage. */
160
- declare function useEditorVariables(editor?: Editor | null): Variables | undefined;
405
+ declare function useEditorVariables(editor?: Editor$1 | null): Variables;
406
+ //#endregion
407
+ //#region src/hooks/use-variable-only-editor.d.ts
408
+ type UseVariableOnlyEditorOptions = {
409
+ content?: string | JSONContent$1;
410
+ placeholder?: string;
411
+ variables?: Variables;
412
+ } & Omit<UseEditorOptions, 'content'>;
413
+ declare function useVariableOnlyEditor(options: UseVariableOnlyEditorOptions, dependencies?: DependencyList): Editor$1;
414
+ declare function getVariableOnlyContent(editor: Editor$1): string;
415
+ //#endregion
416
+ //#region src/components/font-style/font-style-config.d.ts
417
+ declare const FONT_STYLE_SUPPORTED_TYPES: string[];
418
+ type FontStyleConfigProps = {
419
+ container: FloatingUIContainer;
420
+ nodeType: string;
421
+ onBack: () => void;
422
+ };
423
+ declare function FontStyleConfig(props: FontStyleConfigProps): import("react").JSX.Element;
424
+ //#endregion
425
+ //#region src/components/text-direction/text-direction-config.d.ts
426
+ declare const TEXT_DIRECTION_SUPPORTED_TYPES: string[];
427
+ type TextDirectionConfigProps = {
428
+ nodeType: string;
429
+ onBack: () => void;
430
+ };
431
+ declare function TextDirectionConfig(props: TextDirectionConfigProps): import("react").JSX.Element;
432
+ //#endregion
433
+ //#region src/components/visibility/visibility-config.d.ts
434
+ type VisibilityConfigProps = {
435
+ container: FloatingUIContainer;
436
+ nodeType: string;
437
+ onBack: () => void;
438
+ };
439
+ declare function VisibilityConfig(props: VisibilityConfigProps): import("react").JSX.Element;
440
+ //#endregion
441
+ //#region src/hooks/use-font-families.d.ts
442
+ declare function useFontFamilies(editor?: Editor$1): FontFamilyItem[];
443
+ //#endregion
444
+ //#region src/hooks/use-load-font.d.ts
445
+ type LoadFontOptions = {
446
+ fallbackFontFamily: FallbackFont;
447
+ item: FontFamilyItem;
448
+ };
449
+ declare function useLoadFont(): (options: LoadFontOptions) => void;
450
+ //#endregion
451
+ //#region src/utils/turn-into.d.ts
452
+ type TurnIntoOption = {
453
+ disabled?: boolean;
454
+ icon: LucideIcon;
455
+ id: string;
456
+ isActive: boolean;
457
+ label: string;
458
+ onClick: () => void;
459
+ type: 'option';
460
+ };
461
+ type TurnIntoCategory = {
462
+ id: string;
463
+ label: string;
464
+ type: 'category';
465
+ };
466
+ type TurnIntoItem = TurnIntoCategory | TurnIntoOption;
467
+ type TurnIntoItems = TurnIntoItem[];
468
+ declare function isTurnIntoCategory(item: TurnIntoItem): item is TurnIntoCategory;
469
+ declare function isActiveTurnIntoItem(item: TurnIntoItem): item is TurnIntoOption;
470
+ //#endregion
471
+ //#region src/components/text-bubble-menu/turn-into-block.d.ts
472
+ type TurnIntoBlockProps = {
473
+ container?: FloatingUIContainer;
474
+ items: TurnIntoItems;
475
+ };
476
+ declare function TurnIntoBlock(props: TurnIntoBlockProps): import("react").JSX.Element;
477
+ //#endregion
478
+ //#region src/hooks/use-turn-into-block-items.d.ts
479
+ declare function useTurnIntoBlockItems(editor: Editor$1): TurnIntoItems;
480
+ //#endregion
481
+ //#region src/components/interface/bubble-button.d.ts
482
+ type BubbleButtonProps = ComponentPropsWithRef<'button'> & {
483
+ isActive?: boolean;
484
+ label: string;
485
+ render?: useRender.RenderProp;
486
+ container?: FloatingUIContainer;
487
+ tooltip?: string;
488
+ } & ({
489
+ children: ReactNode;
490
+ icon?: never;
491
+ } | {
492
+ children?: never;
493
+ icon: LucideIcon;
494
+ });
495
+ declare function BubbleButton(props: BubbleButtonProps): import("react").JSX.Element;
496
+ //#endregion
497
+ //#region src/components/interface/floating-element.d.ts
498
+ declare const FLOATING_ELEMENT_PADDING = 8;
499
+ declare const FLOATING_ELEMENT_HEIGHT = 28;
500
+ type FloatingElementProps = {
501
+ children: React.ReactNode;
502
+ editor?: Editor$1;
503
+ floatingId: FloatingElementId;
504
+ onOpenChange?: (open: boolean) => void;
505
+ open?: boolean;
506
+ placement?: Placement;
507
+ };
508
+ declare const FloatingElement: import("react").ForwardRefExoticComponent<FloatingElementProps & import("react").RefAttributes<HTMLDivElement>>;
509
+ //#endregion
510
+ //#region src/components/interface/bubble-menu.d.ts
511
+ type BubbleMenuProps = FloatingElementProps;
512
+ declare const BubbleMenu: import("react").ForwardRefExoticComponent<FloatingElementProps & import("react").RefAttributes<HTMLDivElement>>;
513
+ //#endregion
514
+ //#region src/components/interface/toggle-tab.d.ts
515
+ type ToggleTabGroupProps = Omit<ToggleGroup.Props, 'multiple'>;
516
+ declare function ToggleTabGroup(props: ToggleTabGroupProps): import("react").JSX.Element;
517
+ type ToggleTabItemProps = {
518
+ icon: LucideIcon;
519
+ label: string;
520
+ } & Omit<Toggle.Props, 'children'> & ({
521
+ container?: never;
522
+ tooltip?: never;
523
+ } | {
524
+ container: FloatingUIContainer;
525
+ tooltip: string;
526
+ });
527
+ declare function ToggleTabItem(props: ToggleTabItemProps): import("react").JSX.Element;
528
+ //#endregion
529
+ //#region src/components/interface/button.d.ts
530
+ type ButtonProps = ComponentPropsWithRef<'button'>;
531
+ declare function Button(props: ButtonProps): import("react").JSX.Element;
532
+ //#endregion
533
+ //#region src/components/interface/divider.d.ts
534
+ type DividerProps = {
535
+ type?: 'horizontal' | 'vertical';
536
+ };
537
+ declare function Divider(props: DividerProps): import("react").JSX.Element;
538
+ //#endregion
539
+ //#region src/components/interface/field.d.ts
540
+ type FieldRootProps = ComponentPropsWithRef<'div'>;
541
+ declare function FieldRoot(props: FieldRootProps): import("react").JSX.Element;
542
+ type FieldLabelProps = ComponentPropsWithRef<'label'>;
543
+ declare function FieldLabel(props: FieldLabelProps): import("react").JSX.Element;
544
+ type FieldControlProps = ComponentPropsWithRef<'div'>;
545
+ declare function FieldControl(props: FieldControlProps): import("react").JSX.Element;
546
+ type FieldIconProps = ComponentPropsWithRef<'span'>;
547
+ declare function FieldIcon(props: FieldIconProps): import("react").JSX.Element;
548
+ type FieldInputProps = ComponentPropsWithRef<'input'>;
549
+ declare function FieldInput(props: FieldInputProps): import("react").JSX.Element;
550
+ //#endregion
551
+ //#region src/components/icons/arrow-icon.d.ts
552
+ declare function ArrowIcon(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
553
+ //#endregion
554
+ //#region src/components/icons/corner-icon.d.ts
555
+ type CornerIconProps = SVGProps<SVGSVGElement> & {
556
+ corner?: BoxCorner | 'mixed';
557
+ };
558
+ declare function CornerIcon(props: CornerIconProps): import("react").JSX.Element;
559
+ //#endregion
560
+ //#region src/components/icons/side-icon.d.ts
561
+ type SideIconProps = SVGProps<SVGSVGElement> & {
562
+ side?: BoxSide | 'mixed';
563
+ };
564
+ declare function SideIcon(props: SideIconProps): import("react").JSX.Element;
565
+ //#endregion
566
+ //#region src/components/interface/multi-unit-field.d.ts
567
+ declare const SIDE_AXES: readonly BoxSide[];
568
+ declare const CORNER_AXES: readonly BoxCorner[];
569
+ type AxisKey = BoxCorner | BoxSide;
570
+ type MultiValue<T extends AxisKey> = Record<T, number>;
571
+ type MultiUnitFieldProps<T extends AxisKey> = {
572
+ axisIcons: Record<T, ReactNode>;
573
+ axes: readonly T[];
574
+ container: FloatingUIContainer;
575
+ dragAreaIcon?: ReactNode;
576
+ label: string;
577
+ max?: number;
578
+ min?: number;
579
+ onValuesChange: (values: MultiValue<T>) => void;
580
+ presets?: UnitFieldPreset[];
581
+ suffix?: string;
582
+ values: MultiValue<T>;
583
+ };
584
+ declare function MultiUnitField<T extends AxisKey>(props: MultiUnitFieldProps<T>): import("react").JSX.Element;
585
+ //#endregion
586
+ //#region src/components/interface/select.d.ts
587
+ declare const Select: typeof Select$1.Root;
588
+ declare const SelectValue: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectValueProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
589
+ type SelectTriggerProps = Select$1.Trigger.Props;
590
+ declare function SelectTrigger(props: SelectTriggerProps): import("react").JSX.Element;
591
+ type SelectPositionerProps = Select$1.Positioner.Props & {
592
+ container?: FloatingUIContainer;
593
+ };
594
+ declare function SelectPositioner(props: SelectPositionerProps): import("react").JSX.Element;
595
+ type SelectContentProps = Select$1.Popup.Props;
596
+ declare function SelectContent(props: SelectContentProps): import("react").JSX.Element;
597
+ type SelectItemProps = Select$1.Item.Props;
598
+ declare function SelectItem(props: SelectItemProps): import("react").JSX.Element;
599
+ //#endregion
600
+ //#region src/components/button-bubble-menu/button-style-popover.d.ts
601
+ type ButtonStylePopoverProps = {
602
+ container: FloatingUIContainer;
603
+ };
604
+ declare function ButtonStylePopover(props: ButtonStylePopoverProps): import("react").JSX.Element;
605
+ //#endregion
606
+ //#region src/components/node-style/node-style-popover.d.ts
607
+ type NodeStylePopoverProps = {
608
+ children: React.ReactNode;
609
+ container: FloatingUIContainer;
610
+ label: string;
611
+ nodeType: string;
612
+ onOpenChange?: (open: boolean) => void;
613
+ };
614
+ declare function NodeStylePopover(props: NodeStylePopoverProps): import("react").JSX.Element;
615
+ //#endregion
616
+ //#region src/components/section-bubble-menu/section-style-popover.d.ts
617
+ type SectionStylePopoverProps = {
618
+ container: FloatingUIContainer;
619
+ };
620
+ declare function SectionStylePopover(props: SectionStylePopoverProps): import("react").JSX.Element;
621
+ //#endregion
622
+ //#region src/components/image-bubble-menu/image-style-popover.d.ts
623
+ type ImageStylePopoverProps = {
624
+ container: FloatingUIContainer;
625
+ };
626
+ declare function ImageStylePopover(props: ImageStylePopoverProps): import("react").JSX.Element;
627
+ //#endregion
628
+ //#region src/components/interface/popover.d.ts
629
+ declare const Popover: typeof Popover$1.Root;
630
+ declare const PopoverTrigger: Popover$1.Trigger;
631
+ type PopoverPositionerProps = Popover$1.Positioner.Props & {
632
+ container?: FloatingUIContainer;
633
+ };
634
+ declare function PopoverPositioner(props: PopoverPositionerProps): import("react").JSX.Element;
635
+ type PopoverPopupProps = Popover$1.Popup.Props;
636
+ declare function PopoverPopup(props: PopoverPopupProps): import("react").JSX.Element;
637
+ type PopoverArrowProps = Popover$1.Arrow.Props;
638
+ declare function PopoverArrow(props: PopoverArrowProps): import("react").JSX.Element;
639
+ type PopoverBackProps = ComponentPropsWithRef<'button'>;
640
+ declare function PopoverBack(props: PopoverBackProps): import("react").JSX.Element;
641
+ //#endregion
642
+ //#region src/components/interface/text-field-popover.d.ts
643
+ type TextFieldPopoverAction = {
644
+ icon: LucideIcon;
645
+ onClick: (value: string) => void;
646
+ tooltip: string;
647
+ };
648
+ type TextFieldPopoverProps = {
649
+ actions?: TextFieldPopoverAction[];
650
+ container: FloatingUIContainer;
651
+ enterTooltip: string;
652
+ onClose?: () => void;
653
+ onValueChange: (value: string | null) => void;
654
+ placeholder?: string;
655
+ triggerIcon: LucideIcon;
656
+ triggerTooltip: string;
657
+ value: string;
658
+ };
659
+ declare function TextFieldPopover(props: TextFieldPopoverProps): import("react").JSX.Element;
660
+ //#endregion
661
+ //#region src/components/interface/toggle-align-popover.d.ts
662
+ type ToggleAlignPopoverProps = {
663
+ align: AllowedTextAlignment;
664
+ container?: FloatingUIContainer;
665
+ onAlignChange: (align: AllowedTextAlignment) => void;
666
+ trigger?: ComponentProps<typeof PopoverTrigger>['render'];
667
+ };
668
+ declare function ToggleAlignPopover(props: ToggleAlignPopoverProps): import("react").JSX.Element;
669
+ //#endregion
670
+ //#region src/components/interface/tooltip.d.ts
671
+ declare const Tooltip: <Payload>(props: Tooltip$1.Root.Props<Payload>) => import("react").JSX.Element;
672
+ declare const TooltipProvider: import("react").FC<import("@base-ui/react").TooltipProviderProps>;
673
+ declare const TooltipTrigger: Tooltip$1.Trigger;
674
+ type TooltipPositionerProps = Tooltip$1.Positioner.Props & {
675
+ container?: FloatingUIContainer;
676
+ };
677
+ declare function TooltipPositioner(props: TooltipPositionerProps): import("react").JSX.Element;
678
+ type TooltipPopupProps = Tooltip$1.Popup.Props;
679
+ declare function TooltipPopup(props: TooltipPopupProps): import("react").JSX.Element;
680
+ type TooltipArrowProps = Tooltip$1.Arrow.Props;
681
+ declare function TooltipArrow(props: TooltipArrowProps): import("react").JSX.Element;
682
+ //#endregion
683
+ //#region src/components/interface/visually-hidden.d.ts
684
+ type VisuallyHiddenProps = ComponentPropsWithRef<'span'>;
685
+ declare function VisuallyHidden(props: VisuallyHiddenProps): import("react").JSX.Element;
686
+ //#endregion
687
+ //#region src/utils/spacing.d.ts
688
+ declare const MIN_SPACER_HEIGHT = 1;
689
+ declare const MAX_SPACER_HEIGHT = 1000;
690
+ declare const SPACER_SPACING: UnitFieldPreset[];
691
+ declare const SPACING_PRESETS: UnitFieldPreset[];
692
+ //#endregion
693
+ //#region src/components/link-popover/link-popover.d.ts
694
+ type LinkPopoverProps = {
695
+ container: FloatingUIContainer;
696
+ enterTooltip?: string;
697
+ icon?: LucideIcon;
698
+ onClose?: () => void;
699
+ onUrlChange: (url: string | null) => void;
700
+ placeholder?: string;
701
+ showOpenInNewTabButton?: boolean;
702
+ showRemoveButton?: boolean;
703
+ tooltip?: string;
704
+ url: string;
705
+ };
706
+ declare function LinkPopover(props: LinkPopoverProps): import("react").JSX.Element;
707
+ //#endregion
708
+ //#region src/components/section-bubble-menu/section-bubble-menu.d.ts
709
+ declare function SectionBubbleMenu(): import("react").JSX.Element | null;
710
+ //#endregion
711
+ //#region src/components/spacer-bubble-menu/spacer-bubble-menu.d.ts
712
+ declare function SpacerBubbleMenu(): import("react").JSX.Element | null;
713
+ //#endregion
714
+ //#region src/components/text-bubble-menu/text-bubble-menu.d.ts
715
+ declare function TextBubbleMenu(): import("react").JSX.Element;
716
+ //#endregion
717
+ //#region src/components/variable-bubble-menu/variable-bubble-menu.d.ts
718
+ declare function VariableBubbleMenu(): import("react").JSX.Element | null;
719
+ //#endregion
720
+ //#region src/utils/base-ui.d.ts
721
+ /**
722
+ * Computes the arrow alignment offset for base-ui popover positioners.
723
+ * Shifts the arrow so it stays centered over the anchor element.
724
+ */
725
+ declare const arrowAlignOffset: ComponentPropsWithoutRef<typeof Popover$1.Positioner>['alignOffset'];
726
+ //#endregion
727
+ //#region src/utils/color-swatch.d.ts
728
+ declare const TRANSPARENT_COLOR = "transparent";
729
+ /**
730
+ * Preset color options shown in the highlight/text color picker.
731
+ * Each swatch has a background and text color designed to pair well.
732
+ */
733
+ declare const DEFAULT_COLOR_SWATCHES: {
734
+ background: string;
735
+ id: string;
736
+ label: string;
737
+ text: string;
738
+ }[];
739
+ declare function getBackgroundColorSwatches(): ColorSwatchItem[];
740
+ declare function getTextColorSwatches(): ColorSwatchItem[];
161
741
  //#endregion
162
- export { DEFAULT_EDITOR_THEME, editor_d_exports as Editor, type EditorThemeOptions, toolbar_d_exports as Toolbar, type VariableFunctionOptions, type Variable as VariableItem, type Variables, type VariablesFunction, filterVariableSuggestions, useEditorRootContext, useEditorVariables };
742
+ export { AIActionsDropdown, type AIActionsDropdownProps, type AllowedColumnVerticalAlign, ArrowIcon, type AxisKey, BorderStyleConfig, type BorderStyleConfigProps, BubbleButton, type BubbleButtonProps, BubbleMenu, type BubbleMenuProps, Button, ButtonBubbleMenu, type ButtonProps, ButtonStylePopover, type ButtonStylePopoverProps, CORNER_AXES, ColorPaletteIcon, ColorPicker, type ColorPickerProps, ColorSwatch, type ColorSwatchItem, ColorSwatchPopover, type ColorSwatchPopoverProps, type ColorSwatchProps, type ColorSwatchTriggerState, ColorTrigger, type ColorTriggerProps, ColumnsBubbleMenu, CornerIcon, type CornerIconProps, DEFAULT_COLOR_SWATCHES, Divider, type DividerProps, DragContextMenu, type DragContextMenuProps, type DragContextOpenSource, DropdownMenu, DropdownMenuArrow, type DropdownMenuArrowProps, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuTrigger, DropdownPositioner, type DropdownPositionerProps, editor_d_exports as Editor, FLOATING_ELEMENT_HEIGHT, FLOATING_ELEMENT_IDS, FLOATING_ELEMENT_ORDER, FLOATING_ELEMENT_PADDING, FONT_STYLE_SUPPORTED_TYPES, FieldControl, type FieldControlProps, FieldIcon, type FieldIconProps, FieldInput, type FieldInputProps, FieldLabel, type FieldLabelProps, FieldRoot, type FieldRootProps, FloatingElement, type FloatingElementId, type FloatingElementProps, type FloatingUIContainer, FontStyleConfig, type FontStyleConfigProps, HtmlCodeBlockBubbleMenu, ImageBubbleMenu, ImageMetadataField, type ImageMetadataFieldProps, ImageMetadataPopover, type ImageMetadataPopoverProps, ImageStylePopover, type ImageStylePopoverProps, InlineImageBubbleMenu, LinkCardBubbleMenu, LinkCardFieldsPopover, type LinkCardFieldsPopoverProps, LinkPopover, type LinkPopoverProps, type LoadFontOptions, MAX_COLUMNS_GAP, MAX_INLINE_IMAGE_SIZE, MAX_SPACER_HEIGHT, MIN_COLUMNS_GAP, MIN_INLINE_IMAGE_SIZE, MIN_SPACER_HEIGHT, MultiUnitField, type MultiUnitFieldProps, type MultiValue, NodeStylePopover, type NodeStylePopoverProps, PlainVariableInput, type PlainVariableInputProps, Popover, PopoverArrow, type PopoverArrowProps, PopoverBack, type PopoverBackProps, PopoverPopup, type PopoverPopupProps, PopoverPositioner, type PopoverPositionerProps, PopoverTrigger, RepeatBubbleMenu, SIDE_AXES, SPACER_SPACING, SPACING_PRESETS, SectionBubbleMenu, SectionStylePopover, type SectionStylePopoverProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, SelectPositioner, type SelectPositionerProps, SelectTrigger, type SelectTriggerProps, SelectValue, SideIcon, type SideIconProps, SkeletonEditor, type SkeletonEditorProps, SpacerBubbleMenu, TEXT_DIRECTION_SUPPORTED_TYPES, TRANSPARENT_COLOR, TextBubbleMenu, TextDirectionConfig, type TextDirectionConfigProps, TextFieldPopover, type TextFieldPopoverAction, type TextFieldPopoverProps, theme_settings_d_exports as ThemeSettings, type ThemeSettingsColorFieldProps, type ThemeSettingsPopoverProps, type ThemeSettingsRootProps, type ThemeSettingsUnitFieldProps, ToggleAlignPopover, type ToggleAlignPopoverProps, ToggleTabGroup, type ToggleTabGroupProps, ToggleTabItem, type ToggleTabItemProps, toolbar_d_exports as Toolbar, Tooltip, TooltipArrow, type TooltipArrowProps, TooltipPopup, type TooltipPopupProps, TooltipPositioner, type TooltipPositionerProps, TooltipProvider, TooltipTrigger, TurnIntoBlock, type TurnIntoBlockProps, type TurnIntoItem, type TurnIntoItems, UnitField, type UnitFieldPreset, type UnitFieldProps, type UseSkeletonEditorOptions, type UseVariableOnlyEditorOptions, VariableBubbleMenu, type VariableFunctionOptions, type Variable as VariableItem, VariableOnlyEditor, type VariableOnlyEditorProps, type Variables, type VariablesFunction, VerticalAlignmentSwitch, type VerticalAlignmentSwitchProps, VisibilityConfig, type VisibilityConfigProps, VisuallyHidden, type VisuallyHiddenProps, arrowAlignOffset, filterVariableSuggestions, getBackgroundColorSwatches, getContentFromHtml, getTextColorSwatches, getVariableOnlyContent, isActiveTurnIntoItem, isTurnIntoCategory, useEditorVariables, useFontFamilies, useLoadFont, useSkeletonEditor, useTurnIntoBlockItems, useVariableOnlyEditor };
163
743
  //# sourceMappingURL=index.d.mts.map