@ivanholiak/easy-email-extensions 4.16.18 → 4.16.19
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 +45 -41
- package/lib/index2.js.map +1 -1
- package/lib/index3.js +2 -0
- package/lib/index3.js.map +1 -1
- package/lib/style.css +2 -2
- package/package.json +3 -2
package/lib/index2.js
CHANGED
|
@@ -59,8 +59,10 @@ import { Field, useForm as useForm$1, useField, Form as Form$3, version as versi
|
|
|
59
59
|
import { v4 } from "uuid";
|
|
60
60
|
import mjml from "mjml-browser";
|
|
61
61
|
var index$3 = "";
|
|
62
|
+
const ee$b = "_ee_1f523_1";
|
|
62
63
|
const title = "_title_1f523_1";
|
|
63
64
|
var styles$b = {
|
|
65
|
+
ee: ee$b,
|
|
64
66
|
title
|
|
65
67
|
};
|
|
66
68
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -35195,10 +35197,12 @@ function CacheTree(props) {
|
|
|
35195
35197
|
}, [props]);
|
|
35196
35198
|
return useMemo(() => /* @__PURE__ */ React__default.createElement(Tree$1, __spreadValues({}, cacheProps)), [cacheProps]);
|
|
35197
35199
|
}
|
|
35200
|
+
const ee$a = "_ee_1x927_1";
|
|
35198
35201
|
const wrap$1 = "_wrap_1x927_1";
|
|
35199
35202
|
const listItem = "_listItem_1x927_13";
|
|
35200
35203
|
const contextmenuMark = "_contextmenuMark_1x927_23";
|
|
35201
35204
|
var styles$a = {
|
|
35205
|
+
ee: ee$a,
|
|
35202
35206
|
wrap: wrap$1,
|
|
35203
35207
|
listItem,
|
|
35204
35208
|
contextmenuMark
|
|
@@ -35263,6 +35267,7 @@ IconAt.defaultProps = {
|
|
|
35263
35267
|
};
|
|
35264
35268
|
IconAt.displayName = "IconAt";
|
|
35265
35269
|
var IconAt$1 = IconAt;
|
|
35270
|
+
const ee$9 = "_ee_jzksr_1";
|
|
35266
35271
|
const container = "_container_jzksr_1";
|
|
35267
35272
|
const error = "_error_jzksr_6";
|
|
35268
35273
|
const item = "_item_jzksr_10";
|
|
@@ -35272,6 +35277,7 @@ const upload = "_upload_jzksr_68";
|
|
|
35272
35277
|
const wrap = "_wrap_jzksr_80";
|
|
35273
35278
|
const urlInput = "_urlInput_jzksr_80";
|
|
35274
35279
|
var styles$9 = {
|
|
35280
|
+
ee: ee$9,
|
|
35275
35281
|
container,
|
|
35276
35282
|
error,
|
|
35277
35283
|
item,
|
|
@@ -35899,6 +35905,7 @@ function CheckBoxGroup(props) {
|
|
|
35899
35905
|
function classnames(...rest) {
|
|
35900
35906
|
return rest.filter((item2) => typeof item2 === "string").join(" ");
|
|
35901
35907
|
}
|
|
35908
|
+
const ee$8 = "_ee_rfjsd_1";
|
|
35902
35909
|
const helperText = "_helperText_rfjsd_1";
|
|
35903
35910
|
const labelHidden = "_label-hidden_rfjsd_9";
|
|
35904
35911
|
const editTab = "_editTab_rfjsd_20";
|
|
@@ -35906,6 +35913,7 @@ const inputWithUnit = "_inputWithUnit_rfjsd_27";
|
|
|
35906
35913
|
const inputWithUnitSelectOption = "_inputWithUnitSelectOption_rfjsd_35";
|
|
35907
35914
|
const colorPicker = "_colorPicker_rfjsd_40";
|
|
35908
35915
|
var styles$8 = {
|
|
35916
|
+
ee: ee$8,
|
|
35909
35917
|
helperText,
|
|
35910
35918
|
"label-hidden": "_label-hidden_rfjsd_9",
|
|
35911
35919
|
labelHidden,
|
|
@@ -38333,29 +38341,27 @@ const GOOGLE_FONTS = [
|
|
|
38333
38341
|
"Zen Kaku Gothic New",
|
|
38334
38342
|
"Zilla Slab"
|
|
38335
38343
|
];
|
|
38336
|
-
const
|
|
38337
|
-
const loadedPreviewFonts = /* @__PURE__ */ new Set();
|
|
38344
|
+
const loadedFonts = /* @__PURE__ */ new Set();
|
|
38338
38345
|
function loadGoogleFont(fontFamily) {
|
|
38339
|
-
if (
|
|
38346
|
+
if (loadedFonts.has(fontFamily))
|
|
38340
38347
|
return;
|
|
38341
|
-
|
|
38348
|
+
loadedFonts.add(fontFamily);
|
|
38342
38349
|
const link2 = document.createElement("link");
|
|
38343
38350
|
link2.rel = "stylesheet";
|
|
38344
38351
|
link2.href = `https://fonts.googleapis.com/css2?family=${encodeURIComponent(fontFamily)}:wght@400;700&display=swap`;
|
|
38345
38352
|
document.head.appendChild(link2);
|
|
38346
38353
|
}
|
|
38347
38354
|
function loadGoogleFontsPreview(fontFamilies) {
|
|
38348
|
-
const unloaded = fontFamilies.filter((f2) => !
|
|
38355
|
+
const unloaded = fontFamilies.filter((f2) => !loadedFonts.has(f2));
|
|
38349
38356
|
if (unloaded.length === 0)
|
|
38350
38357
|
return;
|
|
38351
38358
|
for (const font of unloaded) {
|
|
38352
|
-
|
|
38359
|
+
loadedFonts.add(font);
|
|
38353
38360
|
}
|
|
38354
|
-
const uniqueChars = [...new Set(unloaded.join(""))].join("");
|
|
38355
38361
|
const families = unloaded.map((f2) => `family=${encodeURIComponent(f2)}`).join("&");
|
|
38356
38362
|
const link2 = document.createElement("link");
|
|
38357
38363
|
link2.rel = "stylesheet";
|
|
38358
|
-
link2.href = `https://fonts.googleapis.com/css2?${families}&
|
|
38364
|
+
link2.href = `https://fonts.googleapis.com/css2?${families}&display=swap`;
|
|
38359
38365
|
document.head.appendChild(link2);
|
|
38360
38366
|
}
|
|
38361
38367
|
function useFontFamily() {
|
|
@@ -38395,7 +38401,7 @@ function useFontFamily() {
|
|
|
38395
38401
|
fontList: fontList2
|
|
38396
38402
|
};
|
|
38397
38403
|
}
|
|
38398
|
-
var styleText$2 = ".easy-email-extensions-Tools-Popover .arco-popover-content{padding:0}.easy-email-extensions-Tools-Popover .arco-popover-content-inner *::-webkit-scrollbar{-webkit-appearance:none;width:5px}.easy-email-extensions-Tools-Popover .arco-popover-content-inner *::-webkit-scrollbar-thumb{border-radius:5px;background-color:#00000080;box-shadow:0 0 1px #ffffff80;-webkit-box-shadow:0 0 1px rgba(255,255,255,.5)}\n";
|
|
38404
|
+
var styleText$2 = ".ee .easy-email-extensions-Tools-Popover .arco-popover-content{padding:0}.ee .easy-email-extensions-Tools-Popover .arco-popover-content-inner *::-webkit-scrollbar{-webkit-appearance:none;width:5px}.ee .easy-email-extensions-Tools-Popover .arco-popover-content-inner *::-webkit-scrollbar-thumb{border-radius:5px;background-color:#00000080;box-shadow:0 0 1px #ffffff80;-webkit-box-shadow:0 0 1px rgba(255,255,255,.5)}\n";
|
|
38399
38405
|
function FontFamily$1(props) {
|
|
38400
38406
|
const { fontList: fontList2 } = useFontFamily();
|
|
38401
38407
|
const { execCommand } = props;
|
|
@@ -38703,7 +38709,6 @@ function FontFamily({ name: name2 }) {
|
|
|
38703
38709
|
const { fontList: defaultFontList } = useEditorProps();
|
|
38704
38710
|
const { pageData: pageData2 } = useEditorContext();
|
|
38705
38711
|
const [searchValue, setSearchValue] = useState("");
|
|
38706
|
-
const allFontsLoadedRef = useRef(false);
|
|
38707
38712
|
const addFonts = pageData2.data.value.fonts;
|
|
38708
38713
|
const allOptions = useMemo(() => {
|
|
38709
38714
|
const options2 = [];
|
|
@@ -38732,21 +38737,14 @@ function FontFamily({ name: name2 }) {
|
|
|
38732
38737
|
}
|
|
38733
38738
|
return options2;
|
|
38734
38739
|
}, [addFonts, defaultFontList]);
|
|
38735
|
-
|
|
38736
|
-
|
|
38737
|
-
|
|
38738
|
-
|
|
38739
|
-
|
|
38740
|
-
|
|
38741
|
-
const delay = Math.floor(i2 / batchSize) * 100;
|
|
38742
|
-
if (delay === 0) {
|
|
38743
|
-
loadGoogleFontsPreview(batch);
|
|
38744
|
-
} else {
|
|
38745
|
-
setTimeout(() => loadGoogleFontsPreview(batch), delay);
|
|
38746
|
-
}
|
|
38747
|
-
}
|
|
38740
|
+
useEffect(() => {
|
|
38741
|
+
const search = searchValue.toLowerCase();
|
|
38742
|
+
const visible = search ? allOptions.filter((opt2) => opt2.value.toLowerCase().includes(search)) : allOptions;
|
|
38743
|
+
const fontsToLoad = visible.slice(0, 15).map((opt2) => opt2.value).filter((f2) => GOOGLE_FONTS.includes(f2));
|
|
38744
|
+
if (fontsToLoad.length > 0) {
|
|
38745
|
+
loadGoogleFontsPreview(fontsToLoad);
|
|
38748
38746
|
}
|
|
38749
|
-
}, []);
|
|
38747
|
+
}, [searchValue, allOptions]);
|
|
38750
38748
|
const handleSearch = useCallback((val) => {
|
|
38751
38749
|
setSearchValue(val);
|
|
38752
38750
|
}, []);
|
|
@@ -38762,11 +38760,9 @@ function FontFamily({ name: name2 }) {
|
|
|
38762
38760
|
}, /* @__PURE__ */ React__default.createElement(Select$2, {
|
|
38763
38761
|
showSearch: true,
|
|
38764
38762
|
allowCreate: true,
|
|
38765
|
-
className: "easy-email-font-family",
|
|
38766
38763
|
value: value || void 0,
|
|
38767
38764
|
placeholder: t("Font family"),
|
|
38768
38765
|
onSearch: handleSearch,
|
|
38769
|
-
onVisibleChange: handleDropdownVisibleChange,
|
|
38770
38766
|
onChange: (val) => {
|
|
38771
38767
|
loadGoogleFont(val);
|
|
38772
38768
|
onChange(val);
|
|
@@ -41702,7 +41698,7 @@ const getMaxTdCount = (tableData) => {
|
|
|
41702
41698
|
});
|
|
41703
41699
|
return tdCount;
|
|
41704
41700
|
};
|
|
41705
|
-
var styleText$1 = ".easy-email-table-operation-menu{background-color:#fff;box-shadow:0 2px 8px #00000026;font-size:14px;z-index:100;overflow:hidden;border-radius:4px;padding:4px 0}.easy-email-table-operation-menu .easy-email-table-operation-menu-dividing{height:1px;background-color:#efefef}.easy-email-table-operation-menu .easy-email-table-operation-color-picker{display:flex;align-items:center;flex-wrap:wrap;padding:0 16px 10px;background-color:#fff;overflow:hidden}.easy-email-table-operation-menu .easy-email-table-operation-color-picker .easy-email-table-operation-color-picker-item{width:20px;height:20px;border:1px solid #595959;margin-right:5px;margin-bottom:5px;cursor:pointer}.easy-email-table-operation-menu .easy-email-table-operation-menu-item{display:flex;align-items:center;padding:10px 16px;line-height:18px;background-color:#fff;cursor:pointer;color:#595959;overflow:hidden;text-overflow:ellipsis}.easy-email-table-operation-menu .easy-email-table-operation-menu-item:hover{background-color:#efefef}.easy-email-table-operation-menu .easy-email-table-operation-menu-item .easy-email-table-operation-menu-icon{margin-right:8px;height:20px;width:20px;font-size:0}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item{padding:10px 16px;background-color:#fff;color:#595959}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2){margin-top:4px;display:flex;align-items:center;flex-shrink:0}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-inner-wrapper{box-shadow:none}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-btn-size-default{padding:0 12px}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-group{display:flex}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-group .arco-input-inner-wrapper{flex:1}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-group .arco-input-group-addafter{height:100%;width:auto}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item-color{height:28px;width:28px;flex-shrink:0;border:1px solid var(--color-neutral-3, rgb(229, 230, 235));border-right:none;padding:4px;cursor:pointer;position:relative}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item-color>div{height:100%;width:100%;border:1px solid var(--color-neutral-3, rgb(229, 230, 235));border-radius:2px}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item-color input{cursor:pointer;position:absolute;width:100%;height:100%;z-index:1;left:0;top:0;opacity:0}\n";
|
|
41701
|
+
var styleText$1 = ".ee .easy-email-table-operation-menu{background-color:#fff;box-shadow:0 2px 8px #00000026;font-size:14px;z-index:100;overflow:hidden;border-radius:4px;padding:4px 0}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-dividing{height:1px;background-color:#efefef}.ee .easy-email-table-operation-menu .easy-email-table-operation-color-picker{display:flex;align-items:center;flex-wrap:wrap;padding:0 16px 10px;background-color:#fff;overflow:hidden}.ee .easy-email-table-operation-menu .easy-email-table-operation-color-picker .easy-email-table-operation-color-picker-item{width:20px;height:20px;border:1px solid #595959;margin-right:5px;margin-bottom:5px;cursor:pointer}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-item{display:flex;align-items:center;padding:10px 16px;line-height:18px;background-color:#fff;cursor:pointer;color:#595959;overflow:hidden;text-overflow:ellipsis}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-item:hover{background-color:#efefef}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-item .easy-email-table-operation-menu-icon{margin-right:8px;height:20px;width:20px;font-size:0}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item{padding:10px 16px;background-color:#fff;color:#595959}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2){margin-top:4px;display:flex;align-items:center;flex-shrink:0}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-inner-wrapper{box-shadow:none}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-btn-size-default{padding:0 12px}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-group{display:flex}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-group .arco-input-inner-wrapper{flex:1}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .arco-input-group .arco-input-group-addafter{height:100%;width:auto}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item-color{height:28px;width:28px;flex-shrink:0;border:1px solid var(--color-neutral-3, rgb(229, 230, 235));border-right:none;padding:4px;cursor:pointer;position:relative}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item-color>div{height:100%;width:100%;border:1px solid var(--color-neutral-3, rgb(229, 230, 235));border-radius:2px}.ee .easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item-color input{cursor:pointer;position:absolute;width:100%;height:100%;z-index:1;left:0;top:0;opacity:0}\n";
|
|
41706
41702
|
var client = { exports: {} };
|
|
41707
41703
|
var reactDomClient_production = {};
|
|
41708
41704
|
var scheduler = { exports: {} };
|
|
@@ -55224,7 +55220,7 @@ function Tools(props) {
|
|
|
55224
55220
|
key: `divider-${index2}`
|
|
55225
55221
|
})))), (_b2 = toolbar == null ? void 0 : toolbar.suffix) == null ? void 0 : _b2.call(toolbar, execCommand));
|
|
55226
55222
|
}
|
|
55227
|
-
var styleText = ".easy-email-extensions-emailToolItem{display:inline-flex;align-items:center;justify-content:center;position:relative;outline:none;font-weight:400;appearance:none;cursor:pointer!important;white-space:nowrap;transition:all .1s linear;box-sizing:border-box;border-radius:2px;border:none;background-color:transparent;color:#fff;width:28px;height:27px}.easy-email-extensions-emailToolItem:hover,.easy-email-extensions-emailToolItem-active{background-color:#f2f3f5;color:#4e5969}.easy-email-extensions-divider{position:relative;display:inline-flex;width:1px;height:16px;background-color:#808080e6}\n";
|
|
55223
|
+
var styleText = ".ee .easy-email-extensions-emailToolItem{display:inline-flex;align-items:center;justify-content:center;position:relative;outline:none;font-weight:400;appearance:none;cursor:pointer!important;white-space:nowrap;transition:all .1s linear;box-sizing:border-box;border-radius:2px;border:none;background-color:transparent;color:#fff;width:28px;height:27px}.ee .easy-email-extensions-emailToolItem:hover,.ee .easy-email-extensions-emailToolItem-active{background-color:#f2f3f5;color:#4e5969}.ee .easy-email-extensions-divider{position:relative;display:inline-flex;width:1px;height:16px;background-color:#808080e6}\n";
|
|
55228
55224
|
function RichTextToolBar(props) {
|
|
55229
55225
|
const { initialized } = useEditorContext();
|
|
55230
55226
|
const root2 = initialized && getPluginElement();
|
|
@@ -55936,10 +55932,12 @@ function BlockLayer(props) {
|
|
|
55936
55932
|
contextMenuData
|
|
55937
55933
|
}));
|
|
55938
55934
|
}
|
|
55935
|
+
const ee$7 = "_ee_15fho_1";
|
|
55939
55936
|
const BlocksPanel$1 = "_BlocksPanel_15fho_1";
|
|
55940
55937
|
const blockItem$1 = "_blockItem_15fho_5";
|
|
55941
55938
|
const closeBtn = "_closeBtn_15fho_12";
|
|
55942
55939
|
var styles$7 = {
|
|
55940
|
+
ee: ee$7,
|
|
55943
55941
|
BlocksPanel: BlocksPanel$1,
|
|
55944
55942
|
blockItem: blockItem$1,
|
|
55945
55943
|
closeBtn
|
|
@@ -55995,9 +55993,11 @@ class BlockMarketManager {
|
|
|
55995
55993
|
}
|
|
55996
55994
|
BlockMarketManager.category = [];
|
|
55997
55995
|
BlockMarketManager.subscriptHandles = [];
|
|
55996
|
+
const ee$6 = "_ee_1a0xw_1";
|
|
55998
55997
|
const mask = "_mask_1a0xw_1";
|
|
55999
55998
|
const drag = "_drag_1a0xw_12";
|
|
56000
55999
|
var styles$6 = {
|
|
56000
|
+
ee: ee$6,
|
|
56001
56001
|
mask,
|
|
56002
56002
|
drag
|
|
56003
56003
|
};
|
|
@@ -58529,8 +58529,10 @@ function formatPadding(attributes, attributeName) {
|
|
|
58529
58529
|
attributes[attributeName] = newPadding;
|
|
58530
58530
|
}
|
|
58531
58531
|
}
|
|
58532
|
+
const ee$5 = "_ee_xcz5w_1";
|
|
58532
58533
|
const customTextArea = "_customTextArea_xcz5w_1";
|
|
58533
58534
|
var styles$5 = {
|
|
58535
|
+
ee: ee$5,
|
|
58534
58536
|
customTextArea
|
|
58535
58537
|
};
|
|
58536
58538
|
function SourceCodePanel({ jsonReadOnly, mjmlReadOnly }) {
|
|
@@ -59068,10 +59070,12 @@ function InteractivePrompt() {
|
|
|
59068
59070
|
return null;
|
|
59069
59071
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(HoverTooltip, null), /* @__PURE__ */ React__default.createElement(FocusTooltip, null));
|
|
59070
59072
|
}
|
|
59073
|
+
const ee$4 = "_ee_pu31r_1";
|
|
59071
59074
|
const SimpleLayout$1 = "_SimpleLayout_pu31r_1";
|
|
59072
59075
|
const customScrollBar = "_customScrollBar_pu31r_20";
|
|
59073
59076
|
const customScrollBarV2 = "_customScrollBarV2_pu31r_36";
|
|
59074
59077
|
var styles$4 = {
|
|
59078
|
+
ee: ee$4,
|
|
59075
59079
|
SimpleLayout: SimpleLayout$1,
|
|
59076
59080
|
customScrollBar,
|
|
59077
59081
|
customScrollBarV2
|
|
@@ -59261,7 +59265,7 @@ var enUS = {
|
|
|
59261
59265
|
gradientColor: "Gradient Colors"
|
|
59262
59266
|
}
|
|
59263
59267
|
};
|
|
59264
|
-
var stylesText = ".easy-email-merge-tag{font-size:inherit;outline:1px solid rgb(78,89,105)!important;outline-offset:0px;padding:0 8px;border-radius:4px;cursor:default!important;transition:all .1s linear;border:none;font-weight:inherit;font-style:inherit;outline-color:#00a0ac!important;color:inherit;background-color:#ebf9fc}.easy-email-merge-tag-popover{position:absolute;top:-10px;left:50%;transform:translate(-50%,-100%)}.easy-email-merge-tag-popover{line-height:1.3;background-color:#fff;width:360px;border:1px solid rgb(229,230,235);border-radius:8px;position:absolute;top:calc(100% + 20px);left:50%;transform:translate(-50%);z-index:10;padding:20px;font-family:-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif}.easy-email-merge-tag-popover h3{margin:0;font-size:12px;color:#202223;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc{font-size:14px;color:#6d7175}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label{font-weight:400;line-height:15px;border:1px solid rgb(109,113,117);border-radius:4px;text-transform:none;letter-spacing:normal;position:relative;display:flex;align-items:center;color:#202223;cursor:text;font-size:14px}.easy-email-merge-tag-popover input{text-transform:none;letter-spacing:normal;position:relative;z-index:20;display:block;flex:1 1;width:100%;min-width:0;min-height:25px;margin:0;padding:5px 12px;background:none;border:1px solid transparent;font-family:inherit;font-size:inherit;font-weight:inherit;appearance:none;caret-color:#202223;color:#202223}.easy-email-merge-tag-popover input:focus{outline:none}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-count{color:#6d7175;z-index:20;margin:0 12px 0 3.5px;pointer-events:none;text-align:right}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button{font-size:14px;text-align:right;margin-top:10px;font-weight:400;margin-bottom:5px}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button button{color:var(--selected-color);padding:4px 8px;border-radius:4px;transition:all .1s linear;cursor:pointer;outline:none;background-color:transparent;border:1px solid transparent}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button button:focus{color:var(--selected-color);background-color:#f2f3f5}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button button:hover{color:var(--selected-color);background-color:#f2f3f5}.easy-email-merge-tag-popover .easy-email-merge-tag-popover-container{position:relative;z-index:2}\n";
|
|
59268
|
+
var stylesText = ".ee .easy-email-merge-tag{font-size:inherit;outline:1px solid rgb(78,89,105)!important;outline-offset:0px;padding:0 8px;border-radius:4px;cursor:default!important;transition:all .1s linear;border:none;font-weight:inherit;font-style:inherit;outline-color:#00a0ac!important;color:inherit;background-color:#ebf9fc}.ee .easy-email-merge-tag-popover{position:absolute;top:-10px;left:50%;transform:translate(-50%,-100%)}.ee .easy-email-merge-tag-popover{line-height:1.3;background-color:#fff;width:360px;border:1px solid rgb(229,230,235);border-radius:8px;position:absolute;top:calc(100% + 20px);left:50%;transform:translate(-50%);z-index:10;padding:20px;font-family:-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif}.ee .easy-email-merge-tag-popover h3{margin:0;font-size:12px;color:#202223;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc{font-size:14px;color:#6d7175}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label{font-weight:400;line-height:15px;border:1px solid rgb(109,113,117);border-radius:4px;text-transform:none;letter-spacing:normal;position:relative;display:flex;align-items:center;color:#202223;cursor:text;font-size:14px}.ee .easy-email-merge-tag-popover input{text-transform:none;letter-spacing:normal;position:relative;z-index:20;display:block;flex:1 1;width:100%;min-width:0;min-height:25px;margin:0;padding:5px 12px;background:none;border:1px solid transparent;font-family:inherit;font-size:inherit;font-weight:inherit;appearance:none;caret-color:#202223;color:#202223}.ee .easy-email-merge-tag-popover input:focus{outline:none}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-count{color:#6d7175;z-index:20;margin:0 12px 0 3.5px;pointer-events:none;text-align:right}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button{font-size:14px;text-align:right;margin-top:10px;font-weight:400;margin-bottom:5px}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button button{color:var(--selected-color);padding:4px 8px;border-radius:4px;transition:all .1s linear;cursor:pointer;outline:none;background-color:transparent;border:1px solid transparent}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button button:focus{color:var(--selected-color);background-color:#f2f3f5}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-desc-label-button button:hover{color:var(--selected-color);background-color:#f2f3f5}.ee .easy-email-merge-tag-popover .easy-email-merge-tag-popover-container{position:relative;z-index:2}\n";
|
|
59265
59269
|
const removeAllActiveBadge = () => {
|
|
59266
59270
|
getShadowRoot().querySelectorAll(".easy-email-merge-tag").forEach((item2) => {
|
|
59267
59271
|
item2.classList.remove("easy-email-merge-tag-focus");
|
|
@@ -59391,18 +59395,10 @@ function MergeTagBadgePrompt() {
|
|
|
59391
59395
|
}
|
|
59392
59396
|
const SimpleLayout = (props) => {
|
|
59393
59397
|
const { height: containerHeight } = useEditorProps();
|
|
59394
|
-
const {
|
|
59395
|
-
showSourceCode = true,
|
|
59396
|
-
defaultShowLayer = true,
|
|
59397
|
-
jsonReadOnly: jsonReadOnly2 = false,
|
|
59398
|
-
mjmlReadOnly: mjmlReadOnly2 = true
|
|
59399
|
-
} = props;
|
|
59398
|
+
const { showSourceCode = true, defaultShowLayer = true, jsonReadOnly: jsonReadOnly2 = false, mjmlReadOnly: mjmlReadOnly2 = true } = props;
|
|
59400
59399
|
const [collapsed, setCollapsed] = useState(!defaultShowLayer);
|
|
59401
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
59402
|
-
|
|
59403
|
-
}, /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
|
59404
|
-
locale: enUS,
|
|
59405
|
-
getPopupContainer: () => document.querySelector(".easy-email-root") || document.body
|
|
59400
|
+
return /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
|
59401
|
+
locale: enUS
|
|
59406
59402
|
}, /* @__PURE__ */ React__default.createElement(Layout$1, {
|
|
59407
59403
|
className: styles$4.SimpleLayout,
|
|
59408
59404
|
style: {
|
|
@@ -59484,16 +59480,20 @@ const SimpleLayout = (props) => {
|
|
|
59484
59480
|
}, /* @__PURE__ */ React__default.createElement(SourceCodePanel, {
|
|
59485
59481
|
jsonReadOnly: jsonReadOnly2,
|
|
59486
59482
|
mjmlReadOnly: mjmlReadOnly2
|
|
59487
|
-
}))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)))
|
|
59483
|
+
}))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
|
|
59488
59484
|
};
|
|
59485
|
+
const ee$3 = "_ee_xv0bc_1";
|
|
59489
59486
|
const StandardLayout$1 = "_StandardLayout_xv0bc_1";
|
|
59490
59487
|
var styles$3 = {
|
|
59488
|
+
ee: ee$3,
|
|
59491
59489
|
StandardLayout: StandardLayout$1
|
|
59492
59490
|
};
|
|
59491
|
+
const ee$2 = "_ee_1ajtj_1";
|
|
59493
59492
|
const layoutItem = "_layoutItem_1ajtj_1";
|
|
59494
59493
|
const blockItem = "_blockItem_1ajtj_6";
|
|
59495
59494
|
const blockItemContainer = "_blockItemContainer_1ajtj_16";
|
|
59496
59495
|
var styles$2 = {
|
|
59496
|
+
ee: ee$2,
|
|
59497
59497
|
layoutItem,
|
|
59498
59498
|
blockItem,
|
|
59499
59499
|
blockItemContainer
|
|
@@ -62296,12 +62296,16 @@ const FullHeightOverlayScrollbars = (props) => {
|
|
|
62296
62296
|
style: { height: props.height }
|
|
62297
62297
|
}, props.children));
|
|
62298
62298
|
};
|
|
62299
|
+
const ee$1 = "_ee_d2sio_1";
|
|
62299
62300
|
const largeTabsHeader$1 = "_largeTabsHeader_d2sio_1";
|
|
62300
62301
|
var styles$1 = {
|
|
62302
|
+
ee: ee$1,
|
|
62301
62303
|
largeTabsHeader: largeTabsHeader$1
|
|
62302
62304
|
};
|
|
62305
|
+
const ee = "_ee_d2sio_1";
|
|
62303
62306
|
const largeTabsHeader = "_largeTabsHeader_d2sio_1";
|
|
62304
62307
|
var styles = {
|
|
62308
|
+
ee,
|
|
62305
62309
|
largeTabsHeader
|
|
62306
62310
|
};
|
|
62307
62311
|
function ConfigurationPanel({
|