@maily-to/core 0.3.7 → 2.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/blocks/index.cjs +22 -305
- package/dist/blocks/index.d.cts +38 -59
- package/dist/blocks/index.d.cts.map +1 -0
- package/dist/blocks/index.d.mts +38 -0
- package/dist/blocks/index.d.mts.map +1 -0
- package/dist/blocks/index.mjs +2 -273
- package/dist/chunk-CfYAbeIz.mjs +13 -0
- package/dist/extensions/index.cjs +375 -9101
- package/dist/extensions/index.d.cts +337 -406
- package/dist/extensions/index.d.cts.map +1 -0
- package/dist/extensions/index.d.mts +379 -0
- package/dist/extensions/index.d.mts.map +1 -0
- package/dist/extensions/index.mjs +353 -9050
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +13117 -12141
- package/dist/index.css +1302 -1477
- package/dist/index.d.cts +103 -59
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +105 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +13098 -12191
- package/dist/index.mjs.map +1 -1
- package/dist/slash-command-BmWRVPbv.d.mts +39 -0
- package/dist/slash-command-BmWRVPbv.d.mts.map +1 -0
- package/dist/slash-command-CK0-1FwR.d.cts +39 -0
- package/dist/slash-command-CK0-1FwR.d.cts.map +1 -0
- package/dist/spacer-DBtsr3hu.cjs +5768 -0
- package/dist/spacer-DzZWX-wB.mjs +5456 -0
- package/dist/spacer-DzZWX-wB.mjs.map +1 -0
- package/dist/typography-CWL13acR.cjs +400 -0
- package/dist/typography-DhrUe809.mjs +282 -0
- package/dist/typography-DhrUe809.mjs.map +1 -0
- package/dist/variable-C9S9ZoHv.d.cts +108 -0
- package/dist/variable-C9S9ZoHv.d.cts.map +1 -0
- package/dist/variable-DVwGrg2a.d.mts +108 -0
- package/dist/variable-DVwGrg2a.d.mts.map +1 -0
- package/package.json +93 -181
- package/readme.md +298 -181
- package/dist/blocks/index.cjs.map +0 -1
- package/dist/blocks/index.d.ts +0 -59
- package/dist/blocks/index.mjs.map +0 -1
- package/dist/extensions/index.cjs.map +0 -1
- package/dist/extensions/index.d.ts +0 -448
- package/dist/index.cjs.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.d.ts +0 -63
package/dist/index.d.cts
CHANGED
|
@@ -1,63 +1,107 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { a as filterVariableSuggestions, i as VariablesFunction, n as VariableFunctionOptions, r as Variables, t as Variable } from "./variable-C9S9ZoHv.cjs";
|
|
2
|
+
import { AnyExtension, JSONContent } from "@tiptap/core";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { DEFAULT_EDITOR_THEME, EditorThemeOptions, EditorThemeOptions as EditorThemeOptions$1, TextDirection } from "@maily-to/shared";
|
|
5
|
+
import { Editor as Editor$1, EditorEvents, UseEditorOptions } from "@tiptap/react";
|
|
6
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
//#region \0rolldown/runtime.js
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/editor/editor-body.d.ts
|
|
11
|
+
type EditorBodyProps = {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
declare function EditorBody(props: EditorBodyProps): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/editor/editor-container.d.ts
|
|
18
|
+
type EditorContainerProps = {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
declare function EditorContainer(props: EditorContainerProps): react_jsx_runtime0.JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/editor/editor-content.d.ts
|
|
25
|
+
declare function EditorContent(): react_jsx_runtime0.JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/editor/editor-frame.d.ts
|
|
28
|
+
type EditorFrameProps = {
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
};
|
|
32
|
+
declare function EditorFrame(props: EditorFrameProps): react_jsx_runtime0.JSX.Element;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/editor/editor-root.d.ts
|
|
35
|
+
type EditorRootProps = {
|
|
36
|
+
content?: JSONContent | string;
|
|
37
|
+
extensions?: AnyExtension[];
|
|
38
|
+
onUpdate?: ((props: EditorEvents['update']) => void) | undefined;
|
|
39
|
+
onCreate?: ((props: EditorEvents['create']) => void) | undefined;
|
|
40
|
+
textDirection?: TextDirection;
|
|
41
|
+
defaultTextDirection?: TextDirection;
|
|
42
|
+
onTextDirectionChange?: (direction: TextDirection) => void;
|
|
43
|
+
theme?: EditorThemeOptions$1;
|
|
44
|
+
children: React.ReactNode;
|
|
45
|
+
} & Pick<UseEditorOptions, 'immediatelyRender' | 'autofocus' | 'editable' | 'editorProps'>;
|
|
46
|
+
declare function EditorRoot(props: EditorRootProps): react_jsx_runtime0.JSX.Element | null;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/editor/editor-root-context.d.ts
|
|
49
|
+
type EditorRootContext = {
|
|
50
|
+
textDirection: TextDirection;
|
|
51
|
+
setTextDirection: (direction: TextDirection) => void;
|
|
52
|
+
theme: EditorThemeOptions$1;
|
|
53
|
+
};
|
|
54
|
+
declare const EditorRootContext: React$1.Context<EditorRootContext | null>;
|
|
55
|
+
declare function useEditorRootContext(): EditorRootContext;
|
|
56
|
+
declare namespace editor_d_exports {
|
|
57
|
+
export { EditorBody as Body, EditorContainer as Container, EditorContent as Content, EditorFrame as Frame, EditorRoot as Root, useEditorRootContext };
|
|
8
58
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
render?: (editor: Editor$1) => JSX.Element | null | true;
|
|
15
|
-
preview?: string | ((editor: Editor$1) => JSX.Element | null);
|
|
16
|
-
} & ({
|
|
17
|
-
command: (options: CommandProps) => void;
|
|
18
|
-
id?: never;
|
|
19
|
-
commands?: never;
|
|
20
|
-
} | {
|
|
21
|
-
/**
|
|
22
|
-
* id to be used for the slash command query
|
|
23
|
-
* `headers.` will go inside the header subcommand
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
command?: never;
|
|
27
|
-
commands: BlockItem[];
|
|
28
|
-
});
|
|
29
|
-
type BlockGroupItem = {
|
|
30
|
-
title: string;
|
|
31
|
-
commands: BlockItem[];
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/toolbar/toolbar-root.d.ts
|
|
61
|
+
type ToolbarRootProps = {
|
|
62
|
+
children: React.ReactNode;
|
|
63
|
+
className?: string;
|
|
32
64
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
65
|
+
declare function ToolbarRoot(props: ToolbarRootProps): react_jsx_runtime0.JSX.Element;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/toolbar/toolbar-group.d.ts
|
|
68
|
+
type ToolbarGroupProps = {
|
|
69
|
+
children: React.ReactNode;
|
|
70
|
+
className?: string;
|
|
37
71
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
declare function ToolbarGroup(props: ToolbarGroupProps): react_jsx_runtime0.JSX.Element;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/toolbar/toolbar-actions.d.ts
|
|
75
|
+
type ToolbarActionProps = {
|
|
76
|
+
className?: string;
|
|
77
|
+
};
|
|
78
|
+
declare function ToolbarUndo(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
79
|
+
declare function ToolbarRedo(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
80
|
+
declare function ToolbarBold(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
81
|
+
declare function ToolbarItalic(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
82
|
+
declare function ToolbarUnderline(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
83
|
+
declare function ToolbarStrikethrough(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
84
|
+
declare function ToolbarCode(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
85
|
+
declare function ToolbarCommonActions(): react_jsx_runtime0.JSX.Element;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/toolbar/toolbar-align.d.ts
|
|
88
|
+
type ToolbarAlignProps = {
|
|
89
|
+
className?: string;
|
|
90
|
+
};
|
|
91
|
+
declare function ToolbarAlign(props: ToolbarAlignProps): react_jsx_runtime0.JSX.Element;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/toolbar/toolbar-direction.d.ts
|
|
94
|
+
type ToolbarDirectionProps = {
|
|
95
|
+
className?: string;
|
|
96
|
+
};
|
|
97
|
+
declare function ToolbarDirection(props: ToolbarDirectionProps): react_jsx_runtime0.JSX.Element;
|
|
98
|
+
declare namespace toolbar_d_exports {
|
|
99
|
+
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 };
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/hooks/use-editor-variables.d.ts
|
|
103
|
+
/** Returns the current variable list from the variable extension's storage. */
|
|
104
|
+
declare function useEditorVariables(editor?: Editor$1 | null): Variables | undefined;
|
|
105
|
+
//#endregion
|
|
106
|
+
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 };
|
|
107
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/components/editor/editor-body.tsx","../src/components/editor/editor-container.tsx","../src/components/editor/editor-content.tsx","../src/components/editor/editor-frame.tsx","../src/components/editor/editor-root.tsx","../src/components/editor/editor-root-context.ts","../src/components/editor/editor.ts","../src/components/toolbar/toolbar-root.tsx","../src/components/toolbar/toolbar-group.tsx","../src/components/toolbar/toolbar-actions.tsx","../src/components/toolbar/toolbar-align.tsx","../src/components/toolbar/toolbar-direction.tsx","../src/components/toolbar/toolbar.ts","../src/hooks/use-editor-variables.ts"],"mappings":";;;;;;;;;;KAQK,eAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,iBAGc,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCX5C,oBAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,iBAGc,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;iBCU3C,aAAA,CAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCdxB,gBAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,iBAGc,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,kBAAA,CAAA,GAAA,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aAAA,CAAc,KAAA,EAAO,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAuBvC,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAuB1C,oBAAA,CAAqB,KAAA,EAAO,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAuB9C,WAAA,CAAY,KAAA,EAAO,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAuBrC,oBAAA,CAAA,GAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KChL/B,iBAAA;EACH,SAAA;AAAA;AAAA,iBAGc,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCVhD,qBAAA;EACH,SAAA;AAAA;AAAA,iBAGc,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA;;;;;;iBEH7C,kBAAA,CAAmB,MAAA,GAAS,QAAA,UAAM,SAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
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, JSONContent } from "@tiptap/core";
|
|
7
|
+
|
|
8
|
+
//#region src/components/editor/editor-body.d.ts
|
|
9
|
+
type EditorBodyProps = {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
declare function EditorBody(props: EditorBodyProps): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/editor/editor-container.d.ts
|
|
16
|
+
type EditorContainerProps = {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
declare function EditorContainer(props: EditorContainerProps): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/editor/editor-content.d.ts
|
|
23
|
+
declare function EditorContent$1(): react_jsx_runtime0.JSX.Element;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/editor/editor-frame.d.ts
|
|
26
|
+
type EditorFrameProps = {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
};
|
|
30
|
+
declare function EditorFrame(props: EditorFrameProps): react_jsx_runtime0.JSX.Element;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/editor/editor-root.d.ts
|
|
33
|
+
type EditorRootProps = {
|
|
34
|
+
content?: JSONContent | string;
|
|
35
|
+
extensions?: AnyExtension[];
|
|
36
|
+
onUpdate?: ((props: EditorEvents['update']) => void) | undefined;
|
|
37
|
+
onCreate?: ((props: EditorEvents['create']) => void) | undefined;
|
|
38
|
+
textDirection?: TextDirection;
|
|
39
|
+
defaultTextDirection?: TextDirection;
|
|
40
|
+
onTextDirectionChange?: (direction: TextDirection) => void;
|
|
41
|
+
theme?: EditorThemeOptions$1;
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
} & Pick<UseEditorOptions, 'immediatelyRender' | 'autofocus' | 'editable' | 'editorProps'>;
|
|
44
|
+
declare function EditorRoot(props: EditorRootProps): react_jsx_runtime0.JSX.Element | null;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/editor/editor-root-context.d.ts
|
|
47
|
+
type EditorRootContext = {
|
|
48
|
+
textDirection: TextDirection;
|
|
49
|
+
setTextDirection: (direction: TextDirection) => void;
|
|
50
|
+
theme: EditorThemeOptions$1;
|
|
51
|
+
};
|
|
52
|
+
declare const EditorRootContext: React$2.Context<EditorRootContext | null>;
|
|
53
|
+
declare function useEditorRootContext(): EditorRootContext;
|
|
54
|
+
declare namespace editor_d_exports {
|
|
55
|
+
export { EditorBody as Body, EditorContainer as Container, EditorContent$1 as Content, EditorFrame as Frame, EditorRoot as Root, useEditorRootContext };
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/toolbar/toolbar-root.d.ts
|
|
59
|
+
type ToolbarRootProps = {
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
};
|
|
63
|
+
declare function ToolbarRoot(props: ToolbarRootProps): react_jsx_runtime0.JSX.Element;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/toolbar/toolbar-group.d.ts
|
|
66
|
+
type ToolbarGroupProps = {
|
|
67
|
+
children: React.ReactNode;
|
|
68
|
+
className?: string;
|
|
69
|
+
};
|
|
70
|
+
declare function ToolbarGroup(props: ToolbarGroupProps): react_jsx_runtime0.JSX.Element;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/toolbar/toolbar-actions.d.ts
|
|
73
|
+
type ToolbarActionProps = {
|
|
74
|
+
className?: string;
|
|
75
|
+
};
|
|
76
|
+
declare function ToolbarUndo(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
77
|
+
declare function ToolbarRedo(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
78
|
+
declare function ToolbarBold(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
79
|
+
declare function ToolbarItalic(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
80
|
+
declare function ToolbarUnderline(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
81
|
+
declare function ToolbarStrikethrough(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
82
|
+
declare function ToolbarCode(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
|
|
83
|
+
declare function ToolbarCommonActions(): react_jsx_runtime0.JSX.Element;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/components/toolbar/toolbar-align.d.ts
|
|
86
|
+
type ToolbarAlignProps = {
|
|
87
|
+
className?: string;
|
|
88
|
+
};
|
|
89
|
+
declare function ToolbarAlign(props: ToolbarAlignProps): react_jsx_runtime0.JSX.Element;
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/toolbar/toolbar-direction.d.ts
|
|
92
|
+
type ToolbarDirectionProps = {
|
|
93
|
+
className?: string;
|
|
94
|
+
};
|
|
95
|
+
declare function ToolbarDirection(props: ToolbarDirectionProps): react_jsx_runtime0.JSX.Element;
|
|
96
|
+
declare namespace toolbar_d_exports {
|
|
97
|
+
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 };
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/hooks/use-editor-variables.d.ts
|
|
101
|
+
/** Returns the current variable list from the variable extension's storage. */
|
|
102
|
+
declare function useEditorVariables(editor?: Editor | null): Variables | undefined;
|
|
103
|
+
//#endregion
|
|
104
|
+
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 };
|
|
105
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/components/editor/editor-body.tsx","../src/components/editor/editor-container.tsx","../src/components/editor/editor-content.tsx","../src/components/editor/editor-frame.tsx","../src/components/editor/editor-root.tsx","../src/components/editor/editor-root-context.ts","../src/components/editor/editor.ts","../src/components/toolbar/toolbar-root.tsx","../src/components/toolbar/toolbar-group.tsx","../src/components/toolbar/toolbar-actions.tsx","../src/components/toolbar/toolbar-align.tsx","../src/components/toolbar/toolbar-direction.tsx","../src/components/toolbar/toolbar.ts","../src/hooks/use-editor-variables.ts"],"mappings":";;;;;;;;KAQK,eAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,iBAGc,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCX5C,oBAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,iBAGc,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;iBCU3C,eAAA,CAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCdxB,gBAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,iBAGc,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCW9C,eAAA;EACH,OAAA,GAAU,WAAA;EACV,UAAA,GAAa,YAAA;EACb,QAAA,KAAa,KAAA,EAAO,YAAA;EACpB,QAAA,KAAa,KAAA,EAAO,YAAA;EAEpB,aAAA,GAAgB,aAAA;EAChB,oBAAA,GAAuB,aAAA;EACvB,qBAAA,IAAyB,SAAA,EAAW,aAAA;EAEpC,KAAA,GAAQ,oBAAA;EAER,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA,IACd,IAAA,CACF,gBAAA;AAAA,iBAIc,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCjCrC,iBAAA;EACV,aAAA,EAAe,aAAA;EACf,gBAAA,GAAmB,SAAA,EA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