@maily-to/core 2.0.0-beta.1 → 2.0.0-beta.7
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/index.cjs +85 -55
- package/dist/index.d.cts +74 -16
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +74 -16
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +86 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +43 -39
- package/readme.md +8 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Arik Chakma
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -59,9 +59,9 @@ function useEditorRootContext() {
|
|
|
59
59
|
//#region src/components/editor/editor-body.tsx
|
|
60
60
|
function EditorBody(props) {
|
|
61
61
|
const $ = (0, react_compiler_runtime.c)(10);
|
|
62
|
-
if ($[0] !== "
|
|
62
|
+
if ($[0] !== "e0db2c4ee2319be90290f51b6cb62ac65cda55fb0a791d170ccfb3db88fb15bf") {
|
|
63
63
|
for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
64
|
-
$[0] = "
|
|
64
|
+
$[0] = "e0db2c4ee2319be90290f51b6cb62ac65cda55fb0a791d170ccfb3db88fb15bf";
|
|
65
65
|
}
|
|
66
66
|
const { children, className } = props;
|
|
67
67
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -100,9 +100,9 @@ function EditorBody(props) {
|
|
|
100
100
|
//#region src/components/editor/editor-container.tsx
|
|
101
101
|
function EditorContainer(props) {
|
|
102
102
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
103
|
-
if ($[0] !== "
|
|
103
|
+
if ($[0] !== "fd9819035fb8d7796d59a1a90fcbfc9e5b7753eeaf928e84b714d59fa03b5311") {
|
|
104
104
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
105
|
-
$[0] = "
|
|
105
|
+
$[0] = "fd9819035fb8d7796d59a1a90fcbfc9e5b7753eeaf928e84b714d59fa03b5311";
|
|
106
106
|
}
|
|
107
107
|
const { children, className } = props;
|
|
108
108
|
let t0;
|
|
@@ -12092,9 +12092,9 @@ function EditorContent() {
|
|
|
12092
12092
|
//#region src/components/editor/editor-frame.tsx
|
|
12093
12093
|
function EditorFrame(props) {
|
|
12094
12094
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
12095
|
-
if ($[0] !== "
|
|
12095
|
+
if ($[0] !== "c70cfba59a8743ecb194a79fa89db1db6b0ca8f7dead4dddc636154d99413bbe") {
|
|
12096
12096
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12097
|
-
$[0] = "
|
|
12097
|
+
$[0] = "c70cfba59a8743ecb194a79fa89db1db6b0ca8f7dead4dddc636154d99413bbe";
|
|
12098
12098
|
}
|
|
12099
12099
|
const { children, className } = props;
|
|
12100
12100
|
let t0;
|
|
@@ -12310,12 +12310,12 @@ const useMailyEditor = (options, dependencies) => {
|
|
|
12310
12310
|
//#endregion
|
|
12311
12311
|
//#region src/components/editor/editor-root.tsx
|
|
12312
12312
|
function EditorRoot(props) {
|
|
12313
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
12314
|
-
if ($[0] !== "
|
|
12315
|
-
for (let $i = 0; $i <
|
|
12316
|
-
$[0] = "
|
|
12313
|
+
const $ = (0, react_compiler_runtime.c)(45);
|
|
12314
|
+
if ($[0] !== "d4f6388642f4f2a74c10cf5f30ef3af0c666c6414466df4a2596bac0abc8e597") {
|
|
12315
|
+
for (let $i = 0; $i < 45; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12316
|
+
$[0] = "d4f6388642f4f2a74c10cf5f30ef3af0c666c6414466df4a2596bac0abc8e597";
|
|
12317
12317
|
}
|
|
12318
|
-
const { content, onUpdate, onCreate, extensions, theme: t0, defaultTextDirection, textDirection: textDirectionProp, onTextDirectionChange, children, editable: t1, immediatelyRender: t2, autofocus: t3, editorProps } = props;
|
|
12318
|
+
const { ref, content, onUpdate, onCreate, extensions, theme: t0, defaultTextDirection, textDirection: textDirectionProp, onTextDirectionChange, children, editable: t1, immediatelyRender: t2, autofocus: t3, editorProps } = props;
|
|
12319
12319
|
let t4;
|
|
12320
12320
|
if ($[1] !== t0) {
|
|
12321
12321
|
t4 = t0 === void 0 ? {} : t0;
|
|
@@ -12438,34 +12438,64 @@ function EditorRoot(props) {
|
|
|
12438
12438
|
$[33] = t14;
|
|
12439
12439
|
} else t14 = $[33];
|
|
12440
12440
|
const contextValue = t14;
|
|
12441
|
-
if (!editor) return null;
|
|
12442
12441
|
let t15;
|
|
12442
|
+
let t16;
|
|
12443
12443
|
if ($[34] !== editor) {
|
|
12444
|
-
t15 =
|
|
12444
|
+
t15 = () => ({
|
|
12445
|
+
getEditor: () => {
|
|
12446
|
+
(0, _maily_to_shared.invariant)(editor, "Editor.Root ref accessed before the editor was ready");
|
|
12447
|
+
return editor;
|
|
12448
|
+
},
|
|
12449
|
+
getJSON: () => {
|
|
12450
|
+
(0, _maily_to_shared.invariant)(editor, "Editor.Root ref accessed before the editor was ready");
|
|
12451
|
+
return editor.getJSON();
|
|
12452
|
+
},
|
|
12453
|
+
getEditorHTML: () => {
|
|
12454
|
+
(0, _maily_to_shared.invariant)(editor, "Editor.Root ref accessed before the editor was ready");
|
|
12455
|
+
return editor.getHTML();
|
|
12456
|
+
},
|
|
12457
|
+
getText: () => {
|
|
12458
|
+
(0, _maily_to_shared.invariant)(editor, "Editor.Root ref accessed before the editor was ready");
|
|
12459
|
+
return editor.getText();
|
|
12460
|
+
}
|
|
12461
|
+
});
|
|
12462
|
+
t16 = [editor];
|
|
12445
12463
|
$[34] = editor;
|
|
12446
12464
|
$[35] = t15;
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
t16 =
|
|
12465
|
+
$[36] = t16;
|
|
12466
|
+
} else {
|
|
12467
|
+
t15 = $[35];
|
|
12468
|
+
t16 = $[36];
|
|
12469
|
+
}
|
|
12470
|
+
(0, react.useImperativeHandle)(ref, t15, t16);
|
|
12471
|
+
if (!editor) return null;
|
|
12472
|
+
let t17;
|
|
12473
|
+
if ($[37] !== editor) {
|
|
12474
|
+
t17 = { editor };
|
|
12475
|
+
$[37] = editor;
|
|
12476
|
+
$[38] = t17;
|
|
12477
|
+
} else t17 = $[38];
|
|
12478
|
+
let t18;
|
|
12479
|
+
if ($[39] !== children || $[40] !== contextValue) {
|
|
12480
|
+
t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EditorRootContext.Provider, {
|
|
12451
12481
|
value: contextValue,
|
|
12452
12482
|
children
|
|
12453
12483
|
});
|
|
12454
|
-
$[
|
|
12455
|
-
$[
|
|
12456
|
-
$[
|
|
12457
|
-
} else
|
|
12458
|
-
let
|
|
12459
|
-
if ($[
|
|
12460
|
-
|
|
12461
|
-
value:
|
|
12462
|
-
children:
|
|
12484
|
+
$[39] = children;
|
|
12485
|
+
$[40] = contextValue;
|
|
12486
|
+
$[41] = t18;
|
|
12487
|
+
} else t18 = $[41];
|
|
12488
|
+
let t19;
|
|
12489
|
+
if ($[42] !== t17 || $[43] !== t18) {
|
|
12490
|
+
t19 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tiptap_react.EditorContext.Provider, {
|
|
12491
|
+
value: t17,
|
|
12492
|
+
children: t18
|
|
12463
12493
|
});
|
|
12464
|
-
$[
|
|
12465
|
-
$[
|
|
12466
|
-
$[
|
|
12467
|
-
} else
|
|
12468
|
-
return
|
|
12494
|
+
$[42] = t17;
|
|
12495
|
+
$[43] = t18;
|
|
12496
|
+
$[44] = t19;
|
|
12497
|
+
} else t19 = $[44];
|
|
12498
|
+
return t19;
|
|
12469
12499
|
}
|
|
12470
12500
|
//#endregion
|
|
12471
12501
|
//#region src/components/editor/editor.ts
|
|
@@ -12489,9 +12519,9 @@ function useToolbarContext() {
|
|
|
12489
12519
|
//#region src/components/toolbar/toolbar-root.tsx
|
|
12490
12520
|
function ToolbarRoot(props) {
|
|
12491
12521
|
const $ = (0, react_compiler_runtime.c)(7);
|
|
12492
|
-
if ($[0] !== "
|
|
12522
|
+
if ($[0] !== "31afef1fa674a9ea40f7096df8cbce7e24a2db8515cb28f922330dc487cc78f6") {
|
|
12493
12523
|
for (let $i = 0; $i < 7; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12494
|
-
$[0] = "
|
|
12524
|
+
$[0] = "31afef1fa674a9ea40f7096df8cbce7e24a2db8515cb28f922330dc487cc78f6";
|
|
12495
12525
|
}
|
|
12496
12526
|
const { children, className } = props;
|
|
12497
12527
|
const container = (0, react.useRef)(null);
|
|
@@ -12526,9 +12556,9 @@ function ToolbarRoot(props) {
|
|
|
12526
12556
|
//#region src/components/toolbar/toolbar-group.tsx
|
|
12527
12557
|
function ToolbarGroup(props) {
|
|
12528
12558
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
12529
|
-
if ($[0] !== "
|
|
12559
|
+
if ($[0] !== "332110c055cffec57025020bcc4a2c42d19ca5cce2b3ec715aafb1d742b472dc") {
|
|
12530
12560
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12531
|
-
$[0] = "
|
|
12561
|
+
$[0] = "332110c055cffec57025020bcc4a2c42d19ca5cce2b3ec715aafb1d742b472dc";
|
|
12532
12562
|
}
|
|
12533
12563
|
const { children, className } = props;
|
|
12534
12564
|
let t0;
|
|
@@ -12553,9 +12583,9 @@ function ToolbarGroup(props) {
|
|
|
12553
12583
|
//#region src/components/toolbar/toolbar-align.tsx
|
|
12554
12584
|
function ToolbarAlign(props) {
|
|
12555
12585
|
const $ = (0, react_compiler_runtime.c)(9);
|
|
12556
|
-
if ($[0] !== "
|
|
12586
|
+
if ($[0] !== "46dcd72ed91be102db31a05035529f787923102270099d2cb9cbfa4d86764b6f") {
|
|
12557
12587
|
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12558
|
-
$[0] = "
|
|
12588
|
+
$[0] = "46dcd72ed91be102db31a05035529f787923102270099d2cb9cbfa4d86764b6f";
|
|
12559
12589
|
}
|
|
12560
12590
|
const editor = require_spacer.useEditorInstance();
|
|
12561
12591
|
const { container } = useToolbarContext();
|
|
@@ -12750,9 +12780,9 @@ function ToggleDirectionPopover(props) {
|
|
|
12750
12780
|
//#region src/components/toolbar/toolbar-direction.tsx
|
|
12751
12781
|
function ToolbarDirection(props) {
|
|
12752
12782
|
const $ = (0, react_compiler_runtime.c)(5);
|
|
12753
|
-
if ($[0] !== "
|
|
12783
|
+
if ($[0] !== "bbf2b96913e758c97a88de3c13a825b915427f59a1bbd0b50ea0fe3a9711ca1c") {
|
|
12754
12784
|
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12755
|
-
$[0] = "
|
|
12785
|
+
$[0] = "bbf2b96913e758c97a88de3c13a825b915427f59a1bbd0b50ea0fe3a9711ca1c";
|
|
12756
12786
|
}
|
|
12757
12787
|
const { container } = useToolbarContext();
|
|
12758
12788
|
const { textDirection, setTextDirection } = useEditorRootContext();
|
|
@@ -12774,9 +12804,9 @@ function ToolbarDirection(props) {
|
|
|
12774
12804
|
//#region src/components/toolbar/toolbar-actions.tsx
|
|
12775
12805
|
function ToolbarUndo(props) {
|
|
12776
12806
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
12777
|
-
if ($[0] !== "
|
|
12807
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
12778
12808
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12779
|
-
$[0] = "
|
|
12809
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
12780
12810
|
}
|
|
12781
12811
|
const { className } = props;
|
|
12782
12812
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -12827,9 +12857,9 @@ function _temp(ctx) {
|
|
|
12827
12857
|
}
|
|
12828
12858
|
function ToolbarRedo(props) {
|
|
12829
12859
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
12830
|
-
if ($[0] !== "
|
|
12860
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
12831
12861
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12832
|
-
$[0] = "
|
|
12862
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
12833
12863
|
}
|
|
12834
12864
|
const { className } = props;
|
|
12835
12865
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -12880,9 +12910,9 @@ function _temp2(ctx) {
|
|
|
12880
12910
|
}
|
|
12881
12911
|
function ToolbarBold(props) {
|
|
12882
12912
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
12883
|
-
if ($[0] !== "
|
|
12913
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
12884
12914
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12885
|
-
$[0] = "
|
|
12915
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
12886
12916
|
}
|
|
12887
12917
|
const { className } = props;
|
|
12888
12918
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -12933,9 +12963,9 @@ function _temp3(ctx) {
|
|
|
12933
12963
|
}
|
|
12934
12964
|
function ToolbarItalic(props) {
|
|
12935
12965
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
12936
|
-
if ($[0] !== "
|
|
12966
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
12937
12967
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12938
|
-
$[0] = "
|
|
12968
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
12939
12969
|
}
|
|
12940
12970
|
const { className } = props;
|
|
12941
12971
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -12986,9 +13016,9 @@ function _temp4(ctx) {
|
|
|
12986
13016
|
}
|
|
12987
13017
|
function ToolbarUnderline(props) {
|
|
12988
13018
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
12989
|
-
if ($[0] !== "
|
|
13019
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
12990
13020
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12991
|
-
$[0] = "
|
|
13021
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
12992
13022
|
}
|
|
12993
13023
|
const { className } = props;
|
|
12994
13024
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -13039,9 +13069,9 @@ function _temp5(ctx) {
|
|
|
13039
13069
|
}
|
|
13040
13070
|
function ToolbarStrikethrough(props) {
|
|
13041
13071
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
13042
|
-
if ($[0] !== "
|
|
13072
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
13043
13073
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13044
|
-
$[0] = "
|
|
13074
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
13045
13075
|
}
|
|
13046
13076
|
const { className } = props;
|
|
13047
13077
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -13092,9 +13122,9 @@ function _temp6(ctx) {
|
|
|
13092
13122
|
}
|
|
13093
13123
|
function ToolbarCode(props) {
|
|
13094
13124
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
13095
|
-
if ($[0] !== "
|
|
13125
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
13096
13126
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13097
|
-
$[0] = "
|
|
13127
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
13098
13128
|
}
|
|
13099
13129
|
const { className } = props;
|
|
13100
13130
|
const editor = require_spacer.useEditorInstance();
|
|
@@ -13145,9 +13175,9 @@ function _temp7(ctx) {
|
|
|
13145
13175
|
}
|
|
13146
13176
|
function ToolbarCommonActions() {
|
|
13147
13177
|
const $ = (0, react_compiler_runtime.c)(4);
|
|
13148
|
-
if ($[0] !== "
|
|
13178
|
+
if ($[0] !== "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71") {
|
|
13149
13179
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13150
|
-
$[0] = "
|
|
13180
|
+
$[0] = "f25ad897b75847b9d1ba61954e8b3b6d1b120850f2baf12520029ca22e821f71";
|
|
13151
13181
|
}
|
|
13152
13182
|
let t0;
|
|
13153
13183
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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";
|
|
2
|
+
import { AnyExtension, Editor, JSONContent } from "@tiptap/core";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { DEFAULT_EDITOR_THEME, EditorThemeOptions, EditorThemeOptions as EditorThemeOptions$1, TextDirection } from "@maily-to/shared";
|
|
5
5
|
import { Editor as Editor$1, EditorEvents, UseEditorOptions } from "@tiptap/react";
|
|
@@ -12,14 +12,20 @@ type EditorBodyProps = {
|
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
className?: string;
|
|
14
14
|
};
|
|
15
|
-
declare function EditorBody(props:
|
|
15
|
+
declare function EditorBody(props: EditorBody.Props): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
declare namespace EditorBody {
|
|
17
|
+
type Props = EditorBodyProps;
|
|
18
|
+
}
|
|
16
19
|
//#endregion
|
|
17
20
|
//#region src/components/editor/editor-container.d.ts
|
|
18
21
|
type EditorContainerProps = {
|
|
19
22
|
children: React.ReactNode;
|
|
20
23
|
className?: string;
|
|
21
24
|
};
|
|
22
|
-
declare function EditorContainer(props:
|
|
25
|
+
declare function EditorContainer(props: EditorContainer.Props): react_jsx_runtime0.JSX.Element;
|
|
26
|
+
declare namespace EditorContainer {
|
|
27
|
+
type Props = EditorContainerProps;
|
|
28
|
+
}
|
|
23
29
|
//#endregion
|
|
24
30
|
//#region src/components/editor/editor-content.d.ts
|
|
25
31
|
declare function EditorContent(): react_jsx_runtime0.JSX.Element;
|
|
@@ -29,7 +35,10 @@ type EditorFrameProps = {
|
|
|
29
35
|
children: React.ReactNode;
|
|
30
36
|
className?: string;
|
|
31
37
|
};
|
|
32
|
-
declare function EditorFrame(props:
|
|
38
|
+
declare function EditorFrame(props: EditorFrame.Props): react_jsx_runtime0.JSX.Element;
|
|
39
|
+
declare namespace EditorFrame {
|
|
40
|
+
type Props = EditorFrameProps;
|
|
41
|
+
}
|
|
33
42
|
//#endregion
|
|
34
43
|
//#region src/components/editor/editor-root.d.ts
|
|
35
44
|
type EditorRootProps = {
|
|
@@ -41,9 +50,25 @@ type EditorRootProps = {
|
|
|
41
50
|
defaultTextDirection?: TextDirection;
|
|
42
51
|
onTextDirectionChange?: (direction: TextDirection) => void;
|
|
43
52
|
theme?: EditorThemeOptions$1;
|
|
53
|
+
ref?: React.Ref<EditorRootHandle>;
|
|
44
54
|
children: React.ReactNode;
|
|
45
55
|
} & Pick<UseEditorOptions, 'immediatelyRender' | 'autofocus' | 'editable' | 'editorProps'>;
|
|
46
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Imperative handle exposed by `Editor.Root` via `ref`. `getEditorHTML`
|
|
58
|
+
* returns the ProseMirror-serialized HTML for the editor view — for
|
|
59
|
+
* email HTML output use `@maily-to/render` with `getJSON()`.
|
|
60
|
+
*/
|
|
61
|
+
type EditorRootHandle = {
|
|
62
|
+
getEditor: () => Editor;
|
|
63
|
+
getJSON: () => JSONContent;
|
|
64
|
+
getEditorHTML: () => string;
|
|
65
|
+
getText: () => string;
|
|
66
|
+
};
|
|
67
|
+
declare function EditorRoot(props: EditorRoot.Props): react_jsx_runtime0.JSX.Element | null;
|
|
68
|
+
declare namespace EditorRoot {
|
|
69
|
+
type Props = EditorRootProps;
|
|
70
|
+
type Handle = EditorRootHandle;
|
|
71
|
+
}
|
|
47
72
|
//#endregion
|
|
48
73
|
//#region src/components/editor/editor-root-context.d.ts
|
|
49
74
|
type EditorRootContext = {
|
|
@@ -62,39 +87,72 @@ type ToolbarRootProps = {
|
|
|
62
87
|
children: React.ReactNode;
|
|
63
88
|
className?: string;
|
|
64
89
|
};
|
|
65
|
-
declare function ToolbarRoot(props:
|
|
90
|
+
declare function ToolbarRoot(props: ToolbarRoot.Props): react_jsx_runtime0.JSX.Element;
|
|
91
|
+
declare namespace ToolbarRoot {
|
|
92
|
+
type Props = ToolbarRootProps;
|
|
93
|
+
}
|
|
66
94
|
//#endregion
|
|
67
95
|
//#region src/components/toolbar/toolbar-group.d.ts
|
|
68
96
|
type ToolbarGroupProps = {
|
|
69
97
|
children: React.ReactNode;
|
|
70
98
|
className?: string;
|
|
71
99
|
};
|
|
72
|
-
declare function ToolbarGroup(props:
|
|
100
|
+
declare function ToolbarGroup(props: ToolbarGroup.Props): react_jsx_runtime0.JSX.Element;
|
|
101
|
+
declare namespace ToolbarGroup {
|
|
102
|
+
type Props = ToolbarGroupProps;
|
|
103
|
+
}
|
|
73
104
|
//#endregion
|
|
74
105
|
//#region src/components/toolbar/toolbar-actions.d.ts
|
|
75
106
|
type ToolbarActionProps = {
|
|
76
107
|
className?: string;
|
|
77
108
|
};
|
|
78
|
-
declare function ToolbarUndo(props:
|
|
79
|
-
declare function ToolbarRedo(props:
|
|
80
|
-
declare function ToolbarBold(props:
|
|
81
|
-
declare function ToolbarItalic(props:
|
|
82
|
-
declare function ToolbarUnderline(props:
|
|
83
|
-
declare function ToolbarStrikethrough(props:
|
|
84
|
-
declare function ToolbarCode(props:
|
|
109
|
+
declare function ToolbarUndo(props: ToolbarUndo.Props): react_jsx_runtime0.JSX.Element;
|
|
110
|
+
declare function ToolbarRedo(props: ToolbarRedo.Props): react_jsx_runtime0.JSX.Element;
|
|
111
|
+
declare function ToolbarBold(props: ToolbarBold.Props): react_jsx_runtime0.JSX.Element;
|
|
112
|
+
declare function ToolbarItalic(props: ToolbarItalic.Props): react_jsx_runtime0.JSX.Element;
|
|
113
|
+
declare function ToolbarUnderline(props: ToolbarUnderline.Props): react_jsx_runtime0.JSX.Element;
|
|
114
|
+
declare function ToolbarStrikethrough(props: ToolbarStrikethrough.Props): react_jsx_runtime0.JSX.Element;
|
|
115
|
+
declare function ToolbarCode(props: ToolbarCode.Props): react_jsx_runtime0.JSX.Element;
|
|
85
116
|
declare function ToolbarCommonActions(): react_jsx_runtime0.JSX.Element;
|
|
117
|
+
declare namespace ToolbarUndo {
|
|
118
|
+
type Props = ToolbarActionProps;
|
|
119
|
+
}
|
|
120
|
+
declare namespace ToolbarRedo {
|
|
121
|
+
type Props = ToolbarActionProps;
|
|
122
|
+
}
|
|
123
|
+
declare namespace ToolbarBold {
|
|
124
|
+
type Props = ToolbarActionProps;
|
|
125
|
+
}
|
|
126
|
+
declare namespace ToolbarItalic {
|
|
127
|
+
type Props = ToolbarActionProps;
|
|
128
|
+
}
|
|
129
|
+
declare namespace ToolbarUnderline {
|
|
130
|
+
type Props = ToolbarActionProps;
|
|
131
|
+
}
|
|
132
|
+
declare namespace ToolbarStrikethrough {
|
|
133
|
+
type Props = ToolbarActionProps;
|
|
134
|
+
}
|
|
135
|
+
declare namespace ToolbarCode {
|
|
136
|
+
type Props = ToolbarActionProps;
|
|
137
|
+
}
|
|
86
138
|
//#endregion
|
|
87
139
|
//#region src/components/toolbar/toolbar-align.d.ts
|
|
88
140
|
type ToolbarAlignProps = {
|
|
89
141
|
className?: string;
|
|
90
142
|
};
|
|
91
|
-
declare function ToolbarAlign(props:
|
|
143
|
+
declare function ToolbarAlign(props: ToolbarAlign.Props): react_jsx_runtime0.JSX.Element;
|
|
144
|
+
declare namespace ToolbarAlign {
|
|
145
|
+
type Props = ToolbarAlignProps;
|
|
146
|
+
}
|
|
92
147
|
//#endregion
|
|
93
148
|
//#region src/components/toolbar/toolbar-direction.d.ts
|
|
94
149
|
type ToolbarDirectionProps = {
|
|
95
150
|
className?: string;
|
|
96
151
|
};
|
|
97
|
-
declare function ToolbarDirection(props:
|
|
152
|
+
declare function ToolbarDirection(props: ToolbarDirection.Props): react_jsx_runtime0.JSX.Element;
|
|
153
|
+
declare namespace ToolbarDirection {
|
|
154
|
+
type Props = ToolbarDirectionProps;
|
|
155
|
+
}
|
|
98
156
|
declare namespace toolbar_d_exports {
|
|
99
157
|
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
158
|
}
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +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,
|
|
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,UAAA,CAAW,KAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAyBjC,UAAA;EAAA,KACH,KAAA,GAAQ,eAAA;AAAA;;;KCrCjB,oBAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,iBAGc,eAAA,CAAgB,KAAA,EAAO,eAAA,CAAgB,KAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAoB3C,eAAA;EAAA,KACH,KAAA,GAAQ,oBAAA;AAAA;;;iBCXN,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,WAAA,CAAY,KAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAUnC,WAAA;EAAA,KACH,KAAA,GAAQ,gBAAA;AAAA;;;KCCjB,eAAA;EACH,OAAA,GAAU,WAAA;EACV,UAAA,GAAa,YAAA;EACb,QAAA,KAAa,KAAA,EAAO,YAAA;EACpB,QAAA,KAAa,KAAA,EAAO,YAAA;EAEpB,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,kBAsCrC,YAAA;EAAA,KACH,KAAA,GAAQ,iBAAA;AAAA;;;KCjDjB,qBAAA;EACH,SAAA;AAAA;AAAA,iBAGc,gBAAA,CAAiB,KAAA,EAAO,gBAAA,CAAiB,KAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAe7C,gBAAA;EAAA,KACH,KAAA,GAAQ,qBAAA;AAAA;AAAA;;;;;;iBEnBN,kBAAA,CAAmB,MAAA,GAAS,QAAA,UAAM,SAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -3,21 +3,27 @@ import { DEFAULT_EDITOR_THEME, EditorThemeOptions, EditorThemeOptions as EditorT
|
|
|
3
3
|
import * as React$2 from "react";
|
|
4
4
|
import { Editor, EditorEvents, UseEditorOptions } from "@tiptap/react";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
-
import { AnyExtension, JSONContent } from "@tiptap/core";
|
|
6
|
+
import { AnyExtension, Editor as Editor$1, JSONContent } from "@tiptap/core";
|
|
7
7
|
|
|
8
8
|
//#region src/components/editor/editor-body.d.ts
|
|
9
9
|
type EditorBodyProps = {
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
-
declare function EditorBody(props:
|
|
13
|
+
declare function EditorBody(props: EditorBody.Props): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
declare namespace EditorBody {
|
|
15
|
+
type Props = EditorBodyProps;
|
|
16
|
+
}
|
|
14
17
|
//#endregion
|
|
15
18
|
//#region src/components/editor/editor-container.d.ts
|
|
16
19
|
type EditorContainerProps = {
|
|
17
20
|
children: React.ReactNode;
|
|
18
21
|
className?: string;
|
|
19
22
|
};
|
|
20
|
-
declare function EditorContainer(props:
|
|
23
|
+
declare function EditorContainer(props: EditorContainer.Props): react_jsx_runtime0.JSX.Element;
|
|
24
|
+
declare namespace EditorContainer {
|
|
25
|
+
type Props = EditorContainerProps;
|
|
26
|
+
}
|
|
21
27
|
//#endregion
|
|
22
28
|
//#region src/components/editor/editor-content.d.ts
|
|
23
29
|
declare function EditorContent$1(): react_jsx_runtime0.JSX.Element;
|
|
@@ -27,7 +33,10 @@ type EditorFrameProps = {
|
|
|
27
33
|
children: React.ReactNode;
|
|
28
34
|
className?: string;
|
|
29
35
|
};
|
|
30
|
-
declare function EditorFrame(props:
|
|
36
|
+
declare function EditorFrame(props: EditorFrame.Props): react_jsx_runtime0.JSX.Element;
|
|
37
|
+
declare namespace EditorFrame {
|
|
38
|
+
type Props = EditorFrameProps;
|
|
39
|
+
}
|
|
31
40
|
//#endregion
|
|
32
41
|
//#region src/components/editor/editor-root.d.ts
|
|
33
42
|
type EditorRootProps = {
|
|
@@ -39,9 +48,25 @@ type EditorRootProps = {
|
|
|
39
48
|
defaultTextDirection?: TextDirection;
|
|
40
49
|
onTextDirectionChange?: (direction: TextDirection) => void;
|
|
41
50
|
theme?: EditorThemeOptions$1;
|
|
51
|
+
ref?: React.Ref<EditorRootHandle>;
|
|
42
52
|
children: React.ReactNode;
|
|
43
53
|
} & Pick<UseEditorOptions, 'immediatelyRender' | 'autofocus' | 'editable' | 'editorProps'>;
|
|
44
|
-
|
|
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
|
+
*/
|
|
59
|
+
type EditorRootHandle = {
|
|
60
|
+
getEditor: () => Editor$1;
|
|
61
|
+
getJSON: () => JSONContent;
|
|
62
|
+
getEditorHTML: () => string;
|
|
63
|
+
getText: () => string;
|
|
64
|
+
};
|
|
65
|
+
declare function EditorRoot(props: EditorRoot.Props): react_jsx_runtime0.JSX.Element | null;
|
|
66
|
+
declare namespace EditorRoot {
|
|
67
|
+
type Props = EditorRootProps;
|
|
68
|
+
type Handle = EditorRootHandle;
|
|
69
|
+
}
|
|
45
70
|
//#endregion
|
|
46
71
|
//#region src/components/editor/editor-root-context.d.ts
|
|
47
72
|
type EditorRootContext = {
|
|
@@ -60,39 +85,72 @@ type ToolbarRootProps = {
|
|
|
60
85
|
children: React.ReactNode;
|
|
61
86
|
className?: string;
|
|
62
87
|
};
|
|
63
|
-
declare function ToolbarRoot(props:
|
|
88
|
+
declare function ToolbarRoot(props: ToolbarRoot.Props): react_jsx_runtime0.JSX.Element;
|
|
89
|
+
declare namespace ToolbarRoot {
|
|
90
|
+
type Props = ToolbarRootProps;
|
|
91
|
+
}
|
|
64
92
|
//#endregion
|
|
65
93
|
//#region src/components/toolbar/toolbar-group.d.ts
|
|
66
94
|
type ToolbarGroupProps = {
|
|
67
95
|
children: React.ReactNode;
|
|
68
96
|
className?: string;
|
|
69
97
|
};
|
|
70
|
-
declare function ToolbarGroup(props:
|
|
98
|
+
declare function ToolbarGroup(props: ToolbarGroup.Props): react_jsx_runtime0.JSX.Element;
|
|
99
|
+
declare namespace ToolbarGroup {
|
|
100
|
+
type Props = ToolbarGroupProps;
|
|
101
|
+
}
|
|
71
102
|
//#endregion
|
|
72
103
|
//#region src/components/toolbar/toolbar-actions.d.ts
|
|
73
104
|
type ToolbarActionProps = {
|
|
74
105
|
className?: string;
|
|
75
106
|
};
|
|
76
|
-
declare function ToolbarUndo(props:
|
|
77
|
-
declare function ToolbarRedo(props:
|
|
78
|
-
declare function ToolbarBold(props:
|
|
79
|
-
declare function ToolbarItalic(props:
|
|
80
|
-
declare function ToolbarUnderline(props:
|
|
81
|
-
declare function ToolbarStrikethrough(props:
|
|
82
|
-
declare function ToolbarCode(props:
|
|
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;
|
|
83
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
|
+
}
|
|
84
136
|
//#endregion
|
|
85
137
|
//#region src/components/toolbar/toolbar-align.d.ts
|
|
86
138
|
type ToolbarAlignProps = {
|
|
87
139
|
className?: string;
|
|
88
140
|
};
|
|
89
|
-
declare function ToolbarAlign(props:
|
|
141
|
+
declare function ToolbarAlign(props: ToolbarAlign.Props): react_jsx_runtime0.JSX.Element;
|
|
142
|
+
declare namespace ToolbarAlign {
|
|
143
|
+
type Props = ToolbarAlignProps;
|
|
144
|
+
}
|
|
90
145
|
//#endregion
|
|
91
146
|
//#region src/components/toolbar/toolbar-direction.d.ts
|
|
92
147
|
type ToolbarDirectionProps = {
|
|
93
148
|
className?: string;
|
|
94
149
|
};
|
|
95
|
-
declare function ToolbarDirection(props:
|
|
150
|
+
declare function ToolbarDirection(props: ToolbarDirection.Props): react_jsx_runtime0.JSX.Element;
|
|
151
|
+
declare namespace ToolbarDirection {
|
|
152
|
+
type Props = ToolbarDirectionProps;
|
|
153
|
+
}
|
|
96
154
|
declare namespace toolbar_d_exports {
|
|
97
155
|
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
156
|
}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +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,
|
|
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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