easy-email-extensions 3.1.32 → 3.1.37
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/lib/index2.js +146 -126
- package/lib/index2.js.map +1 -1
- package/package.json +2 -2
package/lib/index2.js
CHANGED
@@ -30737,6 +30737,13 @@ function BlockTree(props) {
|
|
30737
30737
|
const dragNode = useRef(null);
|
30738
30738
|
const { treeData, allowDrop, onContextMenu, selectedKeys } = props;
|
30739
30739
|
const treeDataRef = useRef(treeData);
|
30740
|
+
const {
|
30741
|
+
onDragStart: propsDragStart,
|
30742
|
+
onDrop: propsDrop,
|
30743
|
+
renderTitle: propsRenderTitle,
|
30744
|
+
onDragEnd: propsDragEnd,
|
30745
|
+
onSelect: propsSelect
|
30746
|
+
} = props;
|
30740
30747
|
const [expandedKeys, setExpandedKeys] = useState([]);
|
30741
30748
|
const onExpand = useCallback((keys2) => {
|
30742
30749
|
setExpandedKeys(keys2);
|
@@ -30757,7 +30764,6 @@ function BlockTree(props) {
|
|
30757
30764
|
setExpandedKeys((keys2) => props.expandedKeys ? [...keys2, ...props.expandedKeys] : keys2);
|
30758
30765
|
}, [props.expandedKeys]);
|
30759
30766
|
const onDragStart = useCallback((e, node) => {
|
30760
|
-
var _a;
|
30761
30767
|
e.dataTransfer.dropEffect = "none";
|
30762
30768
|
const dragNodeData = node.props.dataRef;
|
30763
30769
|
dragNode.current = {
|
@@ -30766,8 +30772,8 @@ function BlockTree(props) {
|
|
30766
30772
|
key: node.props._key,
|
30767
30773
|
parentKey: node.props.parentKey
|
30768
30774
|
};
|
30769
|
-
|
30770
|
-
}, [
|
30775
|
+
propsDragStart == null ? void 0 : propsDragStart();
|
30776
|
+
}, [propsDragStart]);
|
30771
30777
|
const onDragMove = useCallback((option) => {
|
30772
30778
|
if (!dragNode.current)
|
30773
30779
|
return false;
|
@@ -30787,7 +30793,7 @@ function BlockTree(props) {
|
|
30787
30793
|
return true;
|
30788
30794
|
}
|
30789
30795
|
return false;
|
30790
|
-
}, [
|
30796
|
+
}, [allowDrop]);
|
30791
30797
|
const onDrop = useCallback((info2) => {
|
30792
30798
|
const { dropNode, dropPosition, e } = info2;
|
30793
30799
|
e.dataTransfer.dropEffect = "move";
|
@@ -30804,22 +30810,21 @@ function BlockTree(props) {
|
|
30804
30810
|
},
|
30805
30811
|
dropPosition
|
30806
30812
|
};
|
30807
|
-
|
30808
|
-
}, []);
|
30813
|
+
propsDrop(currentDropData);
|
30814
|
+
}, [propsDrop]);
|
30809
30815
|
const renderTitle = useCallback((nodeData) => {
|
30810
30816
|
return /* @__PURE__ */ React__default.createElement("div", {
|
30811
30817
|
style: { display: "inline-flex", width: "100%" },
|
30812
30818
|
onContextMenu: (ev) => onContextMenu && onContextMenu(nodeData, ev)
|
30813
|
-
},
|
30814
|
-
}, [onContextMenu]);
|
30819
|
+
}, propsRenderTitle(nodeData));
|
30820
|
+
}, [onContextMenu, propsRenderTitle]);
|
30815
30821
|
const onDragEnd = useCallback(() => {
|
30816
|
-
var _a;
|
30817
30822
|
dragNode.current = null;
|
30818
|
-
|
30819
|
-
}, [
|
30823
|
+
propsDragEnd == null ? void 0 : propsDragEnd();
|
30824
|
+
}, [propsDragEnd]);
|
30820
30825
|
const onSelect = useCallback((selectedKeys2) => {
|
30821
|
-
|
30822
|
-
}, [
|
30826
|
+
propsSelect(selectedKeys2[0]);
|
30827
|
+
}, [propsSelect]);
|
30823
30828
|
useEffect(() => {
|
30824
30829
|
if (blockTreeRef) {
|
30825
30830
|
blockTreeRef.addEventListener("dragover", (e) => {
|
@@ -31272,10 +31277,10 @@ function previewLoadImage(url) {
|
|
31272
31277
|
});
|
31273
31278
|
}
|
31274
31279
|
const defaultImagesMap$1 = {
|
31275
|
-
IMAGE_59: "https://
|
31276
|
-
AttributePanel_01: "https://
|
31277
|
-
AttributePanel_02: "https://
|
31278
|
-
AttributePanel_03: "https://
|
31280
|
+
IMAGE_59: "https://easy-email-m-ryan.vercel.app/images/06ca521d-9728-4de6-a709-1b75a828bfc3-2a9b1224-3d71-43b8-b52f-e7cdcdc9107b.png",
|
31281
|
+
AttributePanel_01: "https://easy-email-m-ryan.vercel.app/images/e22f78f2-aa76-408d-ba94-c95c7abe1908-image.png",
|
31282
|
+
AttributePanel_02: "https://easy-email-m-ryan.vercel.app/images/3e952a6e-2506-470e-b395-3e0d995157c5.png",
|
31283
|
+
AttributePanel_03: "https://easy-email-m-ryan.vercel.app/images/Fi_vI4vyLhTM-Tp6ivq4dR_ieGHk"
|
31279
31284
|
};
|
31280
31285
|
ImageManager.add(defaultImagesMap$1);
|
31281
31286
|
function getImg$1(name) {
|
@@ -38477,7 +38482,7 @@ function enhancer(Component2, changeAdapter) {
|
|
38477
38482
|
setCurrentValue(newVal);
|
38478
38483
|
debounceCallbackChange(newVal);
|
38479
38484
|
onBlur3();
|
38480
|
-
}, [onBlur3
|
38485
|
+
}, [onBlur3]);
|
38481
38486
|
if (!wrapper2)
|
38482
38487
|
return /* @__PURE__ */ React__default.createElement(Component2, __spreadProps(__spreadValues({}, rest), {
|
38483
38488
|
id,
|
@@ -38549,10 +38554,15 @@ function enhancer(Component2, changeAdapter) {
|
|
38549
38554
|
};
|
38550
38555
|
}
|
38551
38556
|
function Input(props) {
|
38552
|
-
const {
|
38557
|
+
const {
|
38558
|
+
quickchange,
|
38559
|
+
value = "",
|
38560
|
+
onKeyDown: onPropsKeyDown,
|
38561
|
+
onChange: propsOnChange
|
38562
|
+
} = props;
|
38553
38563
|
const onChange = useCallback((val) => {
|
38554
|
-
|
38555
|
-
}, [
|
38564
|
+
propsOnChange(val);
|
38565
|
+
}, [propsOnChange]);
|
38556
38566
|
const onKeyDown = useCallback((ev) => {
|
38557
38567
|
if (onPropsKeyDown) {
|
38558
38568
|
onPropsKeyDown == null ? void 0 : onPropsKeyDown(ev);
|
@@ -38632,9 +38642,6 @@ function InputWithUnit(props) {
|
|
38632
38642
|
unit: arr[3] || unitOptions[0].value
|
38633
38643
|
};
|
38634
38644
|
}, [value, unitOptions]);
|
38635
|
-
useCallback((val) => {
|
38636
|
-
props.onChange(val);
|
38637
|
-
}, [props.onChange]);
|
38638
38645
|
return /* @__PURE__ */ React__default.createElement(Input, __spreadProps(__spreadValues({
|
38639
38646
|
value
|
38640
38647
|
}, restProps), {
|
@@ -39216,7 +39223,7 @@ const MergeTags = React__default.memo((props) => {
|
|
39216
39223
|
};
|
39217
39224
|
Object.keys(contextMergeTags).map((key) => deep(key, key, contextMergeTags, treeData));
|
39218
39225
|
return treeData;
|
39219
|
-
}, [contextMergeTags]);
|
39226
|
+
}, [contextMergeTags, mergeTagGenerate]);
|
39220
39227
|
const onSelect = useCallback((value) => {
|
39221
39228
|
return props.onChange(value);
|
39222
39229
|
}, [props]);
|
@@ -39408,22 +39415,20 @@ function Padding(props = {}) {
|
|
39408
39415
|
const defaultConfig = useMemo(() => type ? createBlockDataByType(type) : void 0, [type]);
|
39409
39416
|
const paddingValue = focusBlock2 == null ? void 0 : focusBlock2.attributes[attributeName];
|
39410
39417
|
const defaultPaddingValue = defaultConfig == null ? void 0 : defaultConfig.attributes[attributeName];
|
39411
|
-
const paddingList = paddingValue == null ? void 0 : paddingValue.split(" ");
|
39412
|
-
const defaultPaddingList = defaultPaddingValue == null ? void 0 : defaultPaddingValue.split(" ");
|
39413
39418
|
const paddingFormValues = useMemo(() => {
|
39414
|
-
const
|
39415
|
-
const
|
39416
|
-
const top =
|
39417
|
-
const right =
|
39418
|
-
const bottom =
|
39419
|
-
const left =
|
39419
|
+
const paddingList = paddingValue == null ? void 0 : paddingValue.split(" ");
|
39420
|
+
const defaultPaddingList = defaultPaddingValue == null ? void 0 : defaultPaddingValue.split(" ");
|
39421
|
+
const top = paddingList ? paddingList[0] : (defaultPaddingList == null ? void 0 : defaultPaddingList[0]) || "";
|
39422
|
+
const right = paddingList ? paddingList[1] : (defaultPaddingList == null ? void 0 : defaultPaddingList[1]) || "";
|
39423
|
+
const bottom = paddingList ? paddingList[2] : (defaultPaddingList == null ? void 0 : defaultPaddingList[2]) || "";
|
39424
|
+
const left = paddingList ? paddingList[3] : (defaultPaddingList == null ? void 0 : defaultPaddingList[3]) || "";
|
39420
39425
|
return {
|
39421
39426
|
top,
|
39422
39427
|
left,
|
39423
39428
|
bottom,
|
39424
39429
|
right
|
39425
39430
|
};
|
39426
|
-
}, [
|
39431
|
+
}, [defaultPaddingValue, paddingValue]);
|
39427
39432
|
const onChancePadding = useCallback((val) => {
|
39428
39433
|
change(focusIdx2 + `.attributes[${attributeName}]`, val);
|
39429
39434
|
}, [focusIdx2, attributeName, change]);
|
@@ -39470,9 +39475,10 @@ const PaddingChangeWrapper = (props) => {
|
|
39470
39475
|
const {
|
39471
39476
|
values: { top, right, bottom, left }
|
39472
39477
|
} = useFormState();
|
39478
|
+
const { onChange } = props;
|
39473
39479
|
useEffect(() => {
|
39474
|
-
|
39475
|
-
}, [top, right, bottom, left]);
|
39480
|
+
onChange([top, right, bottom, left].join(" "));
|
39481
|
+
}, [top, right, bottom, left, onChange]);
|
39476
39482
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null);
|
39477
39483
|
};
|
39478
39484
|
function BackgroundColor({
|
@@ -41316,7 +41322,9 @@ function AttributePanel() {
|
|
41316
41322
|
const shadowRoot = getShadowRoot();
|
41317
41323
|
if (!value || !initialized)
|
41318
41324
|
return null;
|
41319
|
-
return /* @__PURE__ */ React__default.createElement(PresetColorsProvider, null, Com ? /* @__PURE__ */ React__default.createElement(Com,
|
41325
|
+
return /* @__PURE__ */ React__default.createElement(PresetColorsProvider, null, Com ? /* @__PURE__ */ React__default.createElement(Com, {
|
41326
|
+
key: focusIdx2
|
41327
|
+
}) : /* @__PURE__ */ React__default.createElement("div", {
|
41320
41328
|
style: { marginTop: 200, padding: "0 50px" }
|
41321
41329
|
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
41322
41330
|
size: "extraLarge"
|
@@ -41710,6 +41718,7 @@ function ContextMenu({
|
|
41710
41718
|
const { blockData, left, top } = contextMenuData;
|
41711
41719
|
const idx = blockData.id;
|
41712
41720
|
const { modal, modalVisible, setModalVisible } = useAddToCollection();
|
41721
|
+
const props = useEditorProps();
|
41713
41722
|
const ref = useRef(null);
|
41714
41723
|
const handleMoveUp = () => {
|
41715
41724
|
moveBlock(idx, getSiblingIdx(idx, -1));
|
@@ -41768,7 +41777,7 @@ function ContextMenu({
|
|
41768
41777
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
41769
41778
|
iconName: "icon-copy",
|
41770
41779
|
style: { marginRight: 10 }
|
41771
|
-
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Copy")), /* @__PURE__ */ React__default.createElement("div", {
|
41780
|
+
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Copy")), props.onAddCollection && /* @__PURE__ */ React__default.createElement("div", {
|
41772
41781
|
className: styles$5.listItem,
|
41773
41782
|
onClick: handleAddToCollection
|
41774
41783
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
@@ -41780,13 +41789,7 @@ function ContextMenu({
|
|
41780
41789
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
41781
41790
|
iconName: "icon-delete",
|
41782
41791
|
style: { marginRight: 10 }
|
41783
|
-
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Delete")), /* @__PURE__ */ React__default.createElement("div", {
|
41784
|
-
className: styles$5.listItem,
|
41785
|
-
onClick: handleAddToCollection
|
41786
|
-
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
41787
|
-
iconName: "icon-start",
|
41788
|
-
style: { marginRight: 10 }
|
41789
|
-
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Add to collection"))), /* @__PURE__ */ React__default.createElement("div", {
|
41792
|
+
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Delete"))), /* @__PURE__ */ React__default.createElement("div", {
|
41790
41793
|
className: styles$5.contextmenuMark,
|
41791
41794
|
onClick: onClose,
|
41792
41795
|
onContextMenu: (e) => {
|
@@ -41851,7 +41854,7 @@ function useAvatarWrapperDrop() {
|
|
41851
41854
|
setDirection("");
|
41852
41855
|
setHoverIdx("");
|
41853
41856
|
return false;
|
41854
|
-
}, [setDirection, setHoverIdx,
|
41857
|
+
}, [setDirection, setHoverIdx, valuesRef]);
|
41855
41858
|
useEffect(() => {
|
41856
41859
|
if (blockLayerRef) {
|
41857
41860
|
const onDragOver = lodash.exports.debounce((ev) => {
|
@@ -41941,7 +41944,16 @@ function useAvatarWrapperDrop() {
|
|
41941
41944
|
blockLayerRef.removeEventListener("dragleave", onDragend);
|
41942
41945
|
};
|
41943
41946
|
}
|
41944
|
-
}, [
|
41947
|
+
}, [
|
41948
|
+
blockLayerRef,
|
41949
|
+
dataTransferRef,
|
41950
|
+
valuesRef,
|
41951
|
+
removeHightLightClassName,
|
41952
|
+
allowDrop,
|
41953
|
+
setDirection,
|
41954
|
+
setHoverIdx,
|
41955
|
+
setDataTransfer
|
41956
|
+
]);
|
41945
41957
|
return {
|
41946
41958
|
setBlockLayerRef,
|
41947
41959
|
blockLayerRef,
|
@@ -42003,7 +42015,7 @@ function BlockLayer() {
|
|
42003
42015
|
blockData.data.hidden = !Boolean(blockData.data.hidden);
|
42004
42016
|
setValueByIdx2(id, blockData);
|
42005
42017
|
}
|
42006
|
-
}, [setValueByIdx2]);
|
42018
|
+
}, [setValueByIdx2, valueRef]);
|
42007
42019
|
const renderTitle = useCallback((data) => {
|
42008
42020
|
const isPage = data.type === BasicType.PAGE;
|
42009
42021
|
const title2 = getBlockTitle(data);
|
@@ -42079,20 +42091,27 @@ function BlockLayer() {
|
|
42079
42091
|
moveBlock(dragNode.key, getChildIdx(dropNode.parentKey, dropPosition > 0 ? dropIndex + 1 : dropIndex));
|
42080
42092
|
}
|
42081
42093
|
}, [moveBlock]);
|
42082
|
-
const blockTreeAllowDrop = useCallback((
|
42083
|
-
|
42084
|
-
|
42085
|
-
|
42086
|
-
const
|
42087
|
-
if (
|
42088
|
-
|
42089
|
-
node.classList.add("arco-tree-node-title-gap-bottom");
|
42094
|
+
const blockTreeAllowDrop = useCallback((() => {
|
42095
|
+
let lastDropResult = false;
|
42096
|
+
return (data) => {
|
42097
|
+
var _a, _b;
|
42098
|
+
const dropResult = allowDrop(data);
|
42099
|
+
if (lodash.exports.isEqual(lastDropResult, dropResult)) {
|
42100
|
+
return dropResult;
|
42090
42101
|
}
|
42091
|
-
|
42092
|
-
|
42093
|
-
|
42094
|
-
|
42095
|
-
|
42102
|
+
lastDropResult = dropResult;
|
42103
|
+
if (dropResult) {
|
42104
|
+
const node = (_b = (_a = document.querySelector(`[data-tree-idx="${dropResult.key}"]`)) == null ? void 0 : _a.parentNode) == null ? void 0 : _b.parentNode;
|
42105
|
+
if (node instanceof HTMLElement) {
|
42106
|
+
removeHightLightClassName();
|
42107
|
+
node.classList.add("arco-tree-node-title-gap-bottom");
|
42108
|
+
}
|
42109
|
+
setDirection(getDirectionFormDropPosition(dropResult.position));
|
42110
|
+
setHoverIdx(dropResult.key);
|
42111
|
+
}
|
42112
|
+
return dropResult;
|
42113
|
+
};
|
42114
|
+
})(), [allowDrop, removeHightLightClassName, setDirection, setHoverIdx]);
|
42096
42115
|
const selectedKeys = useMemo(() => {
|
42097
42116
|
if (!focusIdx2)
|
42098
42117
|
return [];
|
@@ -42291,70 +42310,70 @@ function TextBlockItem() {
|
|
42291
42310
|
})));
|
42292
42311
|
}
|
42293
42312
|
const defaultImagesMap = {
|
42294
|
-
IMAGE_08: "https://
|
42295
|
-
IMAGE_09: "https://
|
42296
|
-
IMAGE_10: "https://
|
42297
|
-
IMAGE_11: "https://
|
42298
|
-
IMAGE_12: "https://
|
42299
|
-
IMAGE_13: "https://
|
42300
|
-
IMAGE_14: "https://
|
42301
|
-
IMAGE_15: "https://
|
42302
|
-
IMAGE_16: "https://
|
42303
|
-
IMAGE_17: "https://
|
42304
|
-
IMAGE_18: "https://
|
42305
|
-
IMAGE_19: "https://
|
42306
|
-
IMAGE_20: "https://
|
42307
|
-
IMAGE_21: "https://
|
42308
|
-
IMAGE_22: "https://
|
42309
|
-
IMAGE_23: "https://
|
42310
|
-
IMAGE_24: "https://
|
42311
|
-
IMAGE_25: "https://
|
42312
|
-
IMAGE_26: "https://
|
42313
|
-
IMAGE_27: "https://
|
42314
|
-
IMAGE_28: "https://
|
42315
|
-
IMAGE_29: "https://
|
42316
|
-
IMAGE_30: "https://
|
42317
|
-
IMAGE_31: "https://
|
42318
|
-
IMAGE_32: "https://
|
42319
|
-
IMAGE_33: "https://
|
42320
|
-
IMAGE_34: "https://
|
42321
|
-
IMAGE_35: "https://
|
42322
|
-
IMAGE_36: "https://
|
42323
|
-
IMAGE_37: "https://
|
42324
|
-
IMAGE_38: "https://
|
42325
|
-
IMAGE_39: "https://
|
42326
|
-
IMAGE_40: "https://
|
42327
|
-
IMAGE_41: "https://
|
42328
|
-
IMAGE_42: "https://
|
42329
|
-
IMAGE_43: "https://
|
42330
|
-
IMAGE_44: "https://
|
42331
|
-
IMAGE_45: "https://
|
42332
|
-
IMAGE_46: "https://
|
42333
|
-
IMAGE_47: "https://
|
42334
|
-
IMAGE_48: "https://
|
42335
|
-
IMAGE_49: "https://
|
42336
|
-
IMAGE_50: "https://
|
42337
|
-
IMAGE_51: "https://
|
42338
|
-
IMAGE_52: "https://
|
42339
|
-
IMAGE_53: "https://
|
42340
|
-
IMAGE_54: "https://
|
42341
|
-
IMAGE_55: "https://
|
42342
|
-
IMAGE_56: "https://
|
42343
|
-
IMAGE_57: "https://
|
42344
|
-
IMAGE_58: "https://
|
42345
|
-
IMAGE_59: "https://
|
42346
|
-
IMAGE_60: "https://
|
42347
|
-
IMAGE_61: "https://
|
42348
|
-
IMAGE_62: "https://
|
42349
|
-
IMAGE_63: "https://
|
42350
|
-
IMAGE_64: "https://
|
42351
|
-
IMAGE_65: "https://
|
42352
|
-
IMAGE_66: "https://
|
42353
|
-
IMAGE_67: "https://
|
42354
|
-
IMAGE_68: "https://
|
42355
|
-
IMAGE_69: "https://
|
42356
|
-
IMAGE_70: "https://
|
42357
|
-
IMAGE_71: "https://
|
42313
|
+
IMAGE_08: "https://easy-email-m-ryan.vercel.app/images/0046b247-3647-491f-afe1-cb0dd2a3c21c-ef84b752-f827-4546-89bf-6b63dfb67a4d.png",
|
42314
|
+
IMAGE_09: "https://easy-email-m-ryan.vercel.app/images/be34fb18-32ad-441c-84d8-3c0e9ba9f742-ad2ea5ff-5d0b-446b-bd7d-8e2ab5afdd16.png",
|
42315
|
+
IMAGE_10: "https://easy-email-m-ryan.vercel.app/images/6a1e6292-469e-452a-bbae-44e4b5ff7463-05e543b6-c951-44ce-ae27-ca1282c77f52.png",
|
42316
|
+
IMAGE_11: "https://easy-email-m-ryan.vercel.app/images/39b25f35-7ca9-4264-8502-41f430f89cf5-bcdc91c2-da3c-4fef-99c0-62b77c5a0f1f.png",
|
42317
|
+
IMAGE_12: "https://easy-email-m-ryan.vercel.app/images/eaa83007-f6f5-47d9-acbe-bb98065eaf20-b7c46090-73bd-4d4b-bd31-2368f7b4064f.png",
|
42318
|
+
IMAGE_13: "https://easy-email-m-ryan.vercel.app/images/9dec87bb-0a6d-429f-ac23-0ee636e6428d-219dee7e-85bb-4fba-9bf3-e98762e80409.png",
|
42319
|
+
IMAGE_14: "https://easy-email-m-ryan.vercel.app/images/d285da5e-b0c0-4895-84ac-42f83b4d603b-64042d20-be6a-45de-819c-8312f778a38d.png",
|
42320
|
+
IMAGE_15: "https://easy-email-m-ryan.vercel.app/images/f69f48af-5b15-40aa-91c4-81d601d1357b-083dc99d-02a6-40d9-ae28-0662bd078b5d.png",
|
42321
|
+
IMAGE_16: "https://easy-email-m-ryan.vercel.app/images/9cce6b16-5a98-4ddb-b1a1-6cec2cf56891-c3acb856-8ab8-4cfb-93f9-2a0747678b8b.png",
|
42322
|
+
IMAGE_17: "https://easy-email-m-ryan.vercel.app/images/d9795c1d-fa32-4adb-ab25-30b7cfe87936-df21314f-6f05-4550-80b3-9ab1107e8fbe.png",
|
42323
|
+
IMAGE_18: "https://easy-email-m-ryan.vercel.app/images/82f6f893-43ed-4f3d-9a17-4740bda844de-3318b36c-199d-46fe-96b8-38d1f17ef0c1.png",
|
42324
|
+
IMAGE_19: "https://easy-email-m-ryan.vercel.app/images/f1ece227-e050-4751-b064-aaeeabd5bfde-d459e9a2-b192-417b-8a77-2297b29e814e.png",
|
42325
|
+
IMAGE_20: "https://easy-email-m-ryan.vercel.app/images/585b48f6-ee7c-4d1a-8619-4d2edea09be6-07113335-5d19-464a-adef-2be50682ce72.png",
|
42326
|
+
IMAGE_21: "https://easy-email-m-ryan.vercel.app/images/9755d667-289e-405c-b84a-adf5db91ea4d-c03c409b-dd9b-40e9-840a-6a64e1df594e.png",
|
42327
|
+
IMAGE_22: "https://easy-email-m-ryan.vercel.app/images/7487ce49-cd69-4651-8da3-807c54357258-defaaf0a-1756-4b83-9a94-51dcdbfeb84f.png",
|
42328
|
+
IMAGE_23: "https://easy-email-m-ryan.vercel.app/images/c3463b9e-baff-41c8-95ee-01c5a79259bd-8062ab05-baa5-45d2-9959-4935d4ff2005.png",
|
42329
|
+
IMAGE_24: "https://easy-email-m-ryan.vercel.app/images/1f45e84a-5c84-45ce-9d27-df6ffb55bcdd-cbf126f4-b372-4ea9-a354-0dc27be4ce2f.png",
|
42330
|
+
IMAGE_25: "https://easy-email-m-ryan.vercel.app/images/6b8b234e-2306-48f9-90ed-056c13201a83-492073c3-258f-4f1b-91fa-4a8ae723aa2c.png",
|
42331
|
+
IMAGE_26: "https://easy-email-m-ryan.vercel.app/images/aa50c2c9-8e3b-4af2-b029-337ec549ec10-baacd015-2e3f-4326-b3ab-bde84a7c456b.png",
|
42332
|
+
IMAGE_27: "https://easy-email-m-ryan.vercel.app/images/9e935e54-a97e-4fbb-a2fb-73e351a35eed-479ef4d1-9460-48b2-934d-84d77044b98d.png",
|
42333
|
+
IMAGE_28: "https://easy-email-m-ryan.vercel.app/images/799564d8-3082-4fdc-86ed-8c4b3510934f-3f8ccbaa-7b6b-49b7-a836-21fa88f996fc.png",
|
42334
|
+
IMAGE_29: "https://easy-email-m-ryan.vercel.app/images/af34a548-c339-4a9e-85fe-11bf90c083eb-46fef91d-7307-4e91-aae0-460da1c48629.png",
|
42335
|
+
IMAGE_30: "https://easy-email-m-ryan.vercel.app/images/84014a93-429c-479c-b9ed-0c568f58a288-ca76cdf2-92d3-4552-bc95-3a8dd4c9cd0b.png",
|
42336
|
+
IMAGE_31: "https://easy-email-m-ryan.vercel.app/images/dd1584fb-cb60-42c9-80c7-5545e16130ca-226ba72b-ce9e-4948-ad0d-347381fb96c5.png",
|
42337
|
+
IMAGE_32: "https://easy-email-m-ryan.vercel.app/images/76e3d8e2-697d-484c-a989-715bd234b575-37bde239-2e2d-450a-8e93-d62c39cb94a3.png",
|
42338
|
+
IMAGE_33: "https://easy-email-m-ryan.vercel.app/images/898b791e-c8fc-4bc5-bf1e-47a0351284ce-fdee9617-9848-49e7-82b6-36095f417a3e.png",
|
42339
|
+
IMAGE_34: "https://easy-email-m-ryan.vercel.app/images/49662d27-6e14-4e75-a942-946f0af25a51-e9aa2ead-98e4-4f70-8073-7b5aaafaa367.png",
|
42340
|
+
IMAGE_35: "https://easy-email-m-ryan.vercel.app/images/d2905fb1-9fc1-49c0-90b0-806877c38cd2-f2e05655-4e6c-41b0-a028-990448a716dc.png",
|
42341
|
+
IMAGE_36: "https://easy-email-m-ryan.vercel.app/images/9c3e9949-1be7-42b5-ad48-44f0e1c89c2e-2ee3cbac-e45e-414d-96ad-9dae3621cf14.png",
|
42342
|
+
IMAGE_37: "https://easy-email-m-ryan.vercel.app/images/1865e3a6-a762-4bd9-9644-96ae6b27a83a-176a20c7-5768-400c-b2eb-701500cee17c.png",
|
42343
|
+
IMAGE_38: "https://easy-email-m-ryan.vercel.app/images/2a6d82e2-d1f6-4e30-ae05-1afe3cd03e70-22d186b0-c2f1-4aee-b33b-869cae26412e.png",
|
42344
|
+
IMAGE_39: "https://easy-email-m-ryan.vercel.app/images/9f97bda2-82d6-47e7-80c1-40be94d5491f-88233d55-8715-43cd-9232-246440e33cd6.png",
|
42345
|
+
IMAGE_40: "https://easy-email-m-ryan.vercel.app/images/b8f00c77-12b0-4e61-a85e-96918c0035dc-b8344b64-8e79-424d-a974-8e13e6b1e7f8.png",
|
42346
|
+
IMAGE_41: "https://easy-email-m-ryan.vercel.app/images/5fc6be85-0205-4ca9-bb9a-eb9335f94af2-2d41c4bb-2c00-4fe7-8b32-067e92df3ab3.png",
|
42347
|
+
IMAGE_42: "https://easy-email-m-ryan.vercel.app/images/f6c9c054-f35a-4af7-957f-c7a6209972eb-7e3b42bf-8d97-466d-8662-8d3b1786e8b8.png",
|
42348
|
+
IMAGE_43: "https://easy-email-m-ryan.vercel.app/images/80e108b0-3d70-442a-93c1-3fcc091253c6-3dc61b44-6072-413a-ae28-a551577b7677.png",
|
42349
|
+
IMAGE_44: "https://easy-email-m-ryan.vercel.app/images/14b9e878-7208-48f4-94d0-51161b79010a-fb55ae68-a7ce-4bae-830d-331d368f0f32.png",
|
42350
|
+
IMAGE_45: "https://easy-email-m-ryan.vercel.app/images/b42f3cd8-01fc-4650-a32d-b584b05e78c3-5e408f98-e9e6-43de-97af-91b2732760df.png",
|
42351
|
+
IMAGE_46: "https://easy-email-m-ryan.vercel.app/images/e737972a-d884-440b-96d3-66f703dd110b-9f1d0d18-fb45-4a54-a2d0-65bc5b168f8a.png",
|
42352
|
+
IMAGE_47: "https://easy-email-m-ryan.vercel.app/images/0e3ae071-247a-4e69-8b60-8009477180b9-197205c2-2ae7-420f-94aa-78440226beaa.png",
|
42353
|
+
IMAGE_48: "https://easy-email-m-ryan.vercel.app/images/0ec46619-4dd0-4293-88fb-14656ac7d33c-0936deed-a88c-4e3d-90bf-4fe67b295659",
|
42354
|
+
IMAGE_49: "https://easy-email-m-ryan.vercel.app/images/01830aec-d044-4d2a-9519-aac2901f4760-776602f7-021b-4142-a2d0-446aca5e0418",
|
42355
|
+
IMAGE_50: "https://easy-email-m-ryan.vercel.app/images/9f1cee25-f9b4-4539-b4ea-3109584c0a54-0692c4fb-46ce-452c-8573-fcce74852cba",
|
42356
|
+
IMAGE_51: "https://easy-email-m-ryan.vercel.app/images/e138143f-7071-44bc-8470-7d56850e527c-f515254e-67b8-4b68-b86f-7993e960d893",
|
42357
|
+
IMAGE_52: "https://easy-email-m-ryan.vercel.app/images/ac75b655-b57d-40b9-a201-8163eeb6a579-1f894e6f-18ac-42c4-9227-7488433586bc.png",
|
42358
|
+
IMAGE_53: "https://easy-email-m-ryan.vercel.app/images/3c505a1b-575a-40fb-83c1-6c4a11a6d478-9e466e35-af9e-406a-b4cc-b86f9d0b0419.png",
|
42359
|
+
IMAGE_54: "https://easy-email-m-ryan.vercel.app/images/7f98eeec-9422-48b5-9b57-939a24418b92-a6346a63-b393-49c2-9911-ee1a9a1ffd02.png",
|
42360
|
+
IMAGE_55: "https://easy-email-m-ryan.vercel.app/images/a7f5ae44-418b-40e1-b8a5-8162cf8bbd87-156cc8dd-3a19-4638-8c26-e28783e50952.png",
|
42361
|
+
IMAGE_56: "https://easy-email-m-ryan.vercel.app/images/efdeeced-1eb7-465f-8370-a3b000634ba2-0a4d1794-6ca7-44fa-a1c6-04e3bde8eb56.png",
|
42362
|
+
IMAGE_57: "https://easy-email-m-ryan.vercel.app/images/425c6017-2c30-41d7-8930-08300492c6d4-a0859ca3-5213-484c-9170-2d51329407cc.png",
|
42363
|
+
IMAGE_58: "https://easy-email-m-ryan.vercel.app/images/858ea699-cf65-469d-bd9e-70adea729bb4-c4e7a711-27b6-4865-9b32-516c41cebddf.png",
|
42364
|
+
IMAGE_59: "https://easy-email-m-ryan.vercel.app/images/06ca521d-9728-4de6-a709-1b75a828bfc3-2a9b1224-3d71-43b8-b52f-e7cdcdc9107b.png",
|
42365
|
+
IMAGE_60: "https://easy-email-m-ryan.vercel.app/images/199eacfa-daf8-4dd1-a356-225a265a88a4-e8432435-a2bb-4ec2-a3e9-ee1757d8b44b",
|
42366
|
+
IMAGE_61: "https://easy-email-m-ryan.vercel.app/images/f43b67dc-cc30-4533-b2ca-4689292aab4d-40bc844d-5362-451f-a839-69e86f7a3113",
|
42367
|
+
IMAGE_62: "https://easy-email-m-ryan.vercel.app/images/318e911c-a57b-4768-9c79-0e49c2953e7a-dbe0eb3c-0b4b-495a-a469-a15b46c5a0cc",
|
42368
|
+
IMAGE_63: "https://easy-email-m-ryan.vercel.app/images/ed70ddb1-1344-4245-ab1e-beae36ed44b4-21a80cb3-a928-4857-973b-98992fdec74f",
|
42369
|
+
IMAGE_64: "https://easy-email-m-ryan.vercel.app/images/fb7dd6fa-12c1-41e1-8744-91d0f861ec57-0fee9bda-2381-4c54-a24d-bd644384b9aa",
|
42370
|
+
IMAGE_65: "https://easy-email-m-ryan.vercel.app/images/7bf8c363-17bd-472d-8cca-96f5d4b64292-9ab34957-15d3-4068-8e83-cc283d8e400d",
|
42371
|
+
IMAGE_66: "https://easy-email-m-ryan.vercel.app/images/0330a1e9-e814-4be8-83f0-ee1dbabf44a0-6e35a585-92ec-4570-875b-866b59927583",
|
42372
|
+
IMAGE_67: "https://easy-email-m-ryan.vercel.app/images/a7deb6bc-db2b-4273-bf25-002bb148bf5a-ed5e9b17-15a9-4e0f-9874-c3219d48b2b4",
|
42373
|
+
IMAGE_68: "https://easy-email-m-ryan.vercel.app/images/52c50319-e3a9-401b-9057-bd6531870f10-aa79ec5d-76d2-4d48-a99e-2ccd9d9c285b",
|
42374
|
+
IMAGE_69: "https://easy-email-m-ryan.vercel.app/images/9994cef3-6205-4013-8993-b037d067df64-f5d03db4-6bb4-4af4-b35a-0b6d512eaff4",
|
42375
|
+
IMAGE_70: "https://easy-email-m-ryan.vercel.app/images/e5dd7a7e-70d7-483f-80cc-0c5b41107101-75dcedc7-4a34-4d03-97ee-bf32163afa0a",
|
42376
|
+
IMAGE_71: "https://easy-email-m-ryan.vercel.app/images/53277265-8e54-43d0-b9d0-d34cd1639861-adb7a48a-8382-43a1-ad59-7c84764a3b21.png"
|
42358
42377
|
};
|
42359
42378
|
ImageManager.add(defaultImagesMap);
|
42360
42379
|
function getImg(name) {
|
@@ -44544,6 +44563,7 @@ function Toolbar() {
|
|
44544
44563
|
const { focusIdx: focusIdx2, setFocusIdx } = useFocusIdx();
|
44545
44564
|
const { focusBlockRect } = useFocusBlockLayout();
|
44546
44565
|
const { modal, setModalVisible } = useAddToCollection();
|
44566
|
+
const props = useEditorProps();
|
44547
44567
|
const isPage = (focusBlock2 == null ? void 0 : focusBlock2.type) === BasicType.PAGE;
|
44548
44568
|
const handleAddToCollection = () => {
|
44549
44569
|
if (document.activeElement instanceof HTMLElement) {
|
@@ -44621,7 +44641,7 @@ function Toolbar() {
|
|
44621
44641
|
}), /* @__PURE__ */ React__default.createElement(ToolItem, {
|
44622
44642
|
iconName: "icon-copy",
|
44623
44643
|
onClick: handleCopy
|
44624
|
-
}), /* @__PURE__ */ React__default.createElement(ToolItem, {
|
44644
|
+
}), props.onAddCollection && /* @__PURE__ */ React__default.createElement(ToolItem, {
|
44625
44645
|
iconName: "icon-collection",
|
44626
44646
|
onClick: handleAddToCollection
|
44627
44647
|
}), /* @__PURE__ */ React__default.createElement(ToolItem, {
|