@ivanholiak/easy-email-extensions 4.16.22 → 4.16.23
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 +25 -47
- package/lib/index2.js.map +1 -1
- package/lib/index3.js +0 -2
- package/lib/index3.js.map +1 -1
- package/lib/style.css +2 -2
- package/package.json +1 -1
package/lib/index2.js
CHANGED
|
@@ -59,10 +59,8 @@ 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
|
|
63
|
-
const title = "_title_1f523_1";
|
|
62
|
+
const title = "_title_1dstd_1";
|
|
64
63
|
var styles$b = {
|
|
65
|
-
ee: ee$b,
|
|
66
64
|
title
|
|
67
65
|
};
|
|
68
66
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -35197,12 +35195,10 @@ function CacheTree(props) {
|
|
|
35197
35195
|
}, [props]);
|
|
35198
35196
|
return useMemo(() => /* @__PURE__ */ React__default.createElement(Tree$1, __spreadValues({}, cacheProps)), [cacheProps]);
|
|
35199
35197
|
}
|
|
35200
|
-
const ee$a = "_ee_1x927_1";
|
|
35201
35198
|
const wrap$1 = "_wrap_1x927_1";
|
|
35202
35199
|
const listItem = "_listItem_1x927_13";
|
|
35203
35200
|
const contextmenuMark = "_contextmenuMark_1x927_23";
|
|
35204
35201
|
var styles$a = {
|
|
35205
|
-
ee: ee$a,
|
|
35206
35202
|
wrap: wrap$1,
|
|
35207
35203
|
listItem,
|
|
35208
35204
|
contextmenuMark
|
|
@@ -35267,7 +35263,6 @@ IconAt.defaultProps = {
|
|
|
35267
35263
|
};
|
|
35268
35264
|
IconAt.displayName = "IconAt";
|
|
35269
35265
|
var IconAt$1 = IconAt;
|
|
35270
|
-
const ee$9 = "_ee_jzksr_1";
|
|
35271
35266
|
const container = "_container_jzksr_1";
|
|
35272
35267
|
const error = "_error_jzksr_6";
|
|
35273
35268
|
const item = "_item_jzksr_10";
|
|
@@ -35277,7 +35272,6 @@ const upload = "_upload_jzksr_68";
|
|
|
35277
35272
|
const wrap = "_wrap_jzksr_80";
|
|
35278
35273
|
const urlInput = "_urlInput_jzksr_80";
|
|
35279
35274
|
var styles$9 = {
|
|
35280
|
-
ee: ee$9,
|
|
35281
35275
|
container,
|
|
35282
35276
|
error,
|
|
35283
35277
|
item,
|
|
@@ -35905,17 +35899,15 @@ function CheckBoxGroup(props) {
|
|
|
35905
35899
|
function classnames(...rest) {
|
|
35906
35900
|
return rest.filter((item2) => typeof item2 === "string").join(" ");
|
|
35907
35901
|
}
|
|
35908
|
-
const
|
|
35909
|
-
const
|
|
35910
|
-
const
|
|
35911
|
-
const
|
|
35912
|
-
const
|
|
35913
|
-
const
|
|
35914
|
-
const colorPicker = "_colorPicker_rfjsd_40";
|
|
35902
|
+
const helperText = "_helperText_1v9zz_1";
|
|
35903
|
+
const labelHidden = "_label-hidden_1v9zz_9";
|
|
35904
|
+
const editTab = "_editTab_1v9zz_20";
|
|
35905
|
+
const inputWithUnit = "_inputWithUnit_1v9zz_27";
|
|
35906
|
+
const inputWithUnitSelectOption = "_inputWithUnitSelectOption_1v9zz_35";
|
|
35907
|
+
const colorPicker = "_colorPicker_1v9zz_40";
|
|
35915
35908
|
var styles$8 = {
|
|
35916
|
-
ee: ee$8,
|
|
35917
35909
|
helperText,
|
|
35918
|
-
"label-hidden": "_label-
|
|
35910
|
+
"label-hidden": "_label-hidden_1v9zz_9",
|
|
35919
35911
|
labelHidden,
|
|
35920
35912
|
editTab,
|
|
35921
35913
|
inputWithUnit,
|
|
@@ -38401,7 +38393,7 @@ function useFontFamily() {
|
|
|
38401
38393
|
fontList: fontList2
|
|
38402
38394
|
};
|
|
38403
38395
|
}
|
|
38404
|
-
var styleText$2 = ".
|
|
38396
|
+
var styleText$2 = ".easy-email-extensions-Tools-Popover .ee-popover-content{padding:0}.easy-email-extensions-Tools-Popover .ee-popover-content-inner *::-webkit-scrollbar{-webkit-appearance:none;width:5px}.easy-email-extensions-Tools-Popover .ee-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";
|
|
38405
38397
|
function FontFamily$1(props) {
|
|
38406
38398
|
const { fontList: fontList2 } = useFontFamily();
|
|
38407
38399
|
const { execCommand } = props;
|
|
@@ -41698,7 +41690,7 @@ const getMaxTdCount = (tableData) => {
|
|
|
41698
41690
|
});
|
|
41699
41691
|
return tdCount;
|
|
41700
41692
|
};
|
|
41701
|
-
var styleText$1 = ".
|
|
41693
|
+
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) .ee-input-inner-wrapper{box-shadow:none}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .ee-btn-size-default{padding:0 12px}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .ee-input-group{display:flex}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .ee-input-group .ee-input-inner-wrapper{flex:1}.easy-email-table-operation-menu .easy-email-table-operation-menu-bg-item>div:nth-child(2) .ee-input-group .ee-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";
|
|
41702
41694
|
var client = { exports: {} };
|
|
41703
41695
|
var reactDomClient_production = {};
|
|
41704
41696
|
var scheduler = { exports: {} };
|
|
@@ -55220,7 +55212,7 @@ function Tools(props) {
|
|
|
55220
55212
|
key: `divider-${index2}`
|
|
55221
55213
|
})))), (_b2 = toolbar == null ? void 0 : toolbar.suffix) == null ? void 0 : _b2.call(toolbar, execCommand));
|
|
55222
55214
|
}
|
|
55223
|
-
var styleText = ".
|
|
55215
|
+
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";
|
|
55224
55216
|
function RichTextToolBar(props) {
|
|
55225
55217
|
const { initialized } = useEditorContext();
|
|
55226
55218
|
const root2 = initialized && getPluginElement();
|
|
@@ -55932,12 +55924,10 @@ function BlockLayer(props) {
|
|
|
55932
55924
|
contextMenuData
|
|
55933
55925
|
}));
|
|
55934
55926
|
}
|
|
55935
|
-
const ee$7 = "_ee_15fho_1";
|
|
55936
55927
|
const BlocksPanel$1 = "_BlocksPanel_15fho_1";
|
|
55937
55928
|
const blockItem$1 = "_blockItem_15fho_5";
|
|
55938
55929
|
const closeBtn = "_closeBtn_15fho_12";
|
|
55939
55930
|
var styles$7 = {
|
|
55940
|
-
ee: ee$7,
|
|
55941
55931
|
BlocksPanel: BlocksPanel$1,
|
|
55942
55932
|
blockItem: blockItem$1,
|
|
55943
55933
|
closeBtn
|
|
@@ -55993,11 +55983,9 @@ class BlockMarketManager {
|
|
|
55993
55983
|
}
|
|
55994
55984
|
BlockMarketManager.category = [];
|
|
55995
55985
|
BlockMarketManager.subscriptHandles = [];
|
|
55996
|
-
const ee$6 = "_ee_1a0xw_1";
|
|
55997
55986
|
const mask = "_mask_1a0xw_1";
|
|
55998
55987
|
const drag = "_drag_1a0xw_12";
|
|
55999
55988
|
var styles$6 = {
|
|
56000
|
-
ee: ee$6,
|
|
56001
55989
|
mask,
|
|
56002
55990
|
drag
|
|
56003
55991
|
};
|
|
@@ -58529,10 +58517,8 @@ function formatPadding(attributes, attributeName) {
|
|
|
58529
58517
|
attributes[attributeName] = newPadding;
|
|
58530
58518
|
}
|
|
58531
58519
|
}
|
|
58532
|
-
const ee$5 = "_ee_xcz5w_1";
|
|
58533
58520
|
const customTextArea = "_customTextArea_xcz5w_1";
|
|
58534
58521
|
var styles$5 = {
|
|
58535
|
-
ee: ee$5,
|
|
58536
58522
|
customTextArea
|
|
58537
58523
|
};
|
|
58538
58524
|
function SourceCodePanel({ jsonReadOnly, mjmlReadOnly }) {
|
|
@@ -59070,12 +59056,10 @@ function InteractivePrompt() {
|
|
|
59070
59056
|
return null;
|
|
59071
59057
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(HoverTooltip, null), /* @__PURE__ */ React__default.createElement(FocusTooltip, null));
|
|
59072
59058
|
}
|
|
59073
|
-
const
|
|
59074
|
-
const
|
|
59075
|
-
const
|
|
59076
|
-
const customScrollBarV2 = "_customScrollBarV2_pu31r_36";
|
|
59059
|
+
const SimpleLayout$1 = "_SimpleLayout_1wk83_1";
|
|
59060
|
+
const customScrollBar = "_customScrollBar_1wk83_20";
|
|
59061
|
+
const customScrollBarV2 = "_customScrollBarV2_1wk83_36";
|
|
59077
59062
|
var styles$4 = {
|
|
59078
|
-
ee: ee$4,
|
|
59079
59063
|
SimpleLayout: SimpleLayout$1,
|
|
59080
59064
|
customScrollBar,
|
|
59081
59065
|
customScrollBarV2
|
|
@@ -59265,7 +59249,7 @@ var enUS = {
|
|
|
59265
59249
|
gradientColor: "Gradient Colors"
|
|
59266
59250
|
}
|
|
59267
59251
|
};
|
|
59268
|
-
var stylesText = ".
|
|
59252
|
+
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";
|
|
59269
59253
|
const removeAllActiveBadge = () => {
|
|
59270
59254
|
getShadowRoot().querySelectorAll(".easy-email-merge-tag").forEach((item2) => {
|
|
59271
59255
|
item2.classList.remove("easy-email-merge-tag-focus");
|
|
@@ -59398,7 +59382,8 @@ const SimpleLayout = (props) => {
|
|
|
59398
59382
|
const { showSourceCode = true, defaultShowLayer = true, jsonReadOnly: jsonReadOnly2 = false, mjmlReadOnly: mjmlReadOnly2 = true } = props;
|
|
59399
59383
|
const [collapsed, setCollapsed] = useState(!defaultShowLayer);
|
|
59400
59384
|
return /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
|
59401
|
-
locale: enUS
|
|
59385
|
+
locale: enUS,
|
|
59386
|
+
prefixCls: "ee"
|
|
59402
59387
|
}, /* @__PURE__ */ React__default.createElement(Layout$1, {
|
|
59403
59388
|
className: styles$4.SimpleLayout,
|
|
59404
59389
|
style: {
|
|
@@ -59482,18 +59467,14 @@ const SimpleLayout = (props) => {
|
|
|
59482
59467
|
mjmlReadOnly: mjmlReadOnly2
|
|
59483
59468
|
}))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
|
|
59484
59469
|
};
|
|
59485
|
-
const
|
|
59486
|
-
const StandardLayout$1 = "_StandardLayout_xv0bc_1";
|
|
59470
|
+
const StandardLayout$1 = "_StandardLayout_17l3r_1";
|
|
59487
59471
|
var styles$3 = {
|
|
59488
|
-
ee: ee$3,
|
|
59489
59472
|
StandardLayout: StandardLayout$1
|
|
59490
59473
|
};
|
|
59491
|
-
const
|
|
59492
|
-
const
|
|
59493
|
-
const
|
|
59494
|
-
const blockItemContainer = "_blockItemContainer_1ajtj_16";
|
|
59474
|
+
const layoutItem = "_layoutItem_vahqy_1";
|
|
59475
|
+
const blockItem = "_blockItem_vahqy_6";
|
|
59476
|
+
const blockItemContainer = "_blockItemContainer_vahqy_16";
|
|
59495
59477
|
var styles$2 = {
|
|
59496
|
-
ee: ee$2,
|
|
59497
59478
|
layoutItem,
|
|
59498
59479
|
blockItem,
|
|
59499
59480
|
blockItemContainer
|
|
@@ -62296,16 +62277,12 @@ const FullHeightOverlayScrollbars = (props) => {
|
|
|
62296
62277
|
style: { height: props.height }
|
|
62297
62278
|
}, props.children));
|
|
62298
62279
|
};
|
|
62299
|
-
const
|
|
62300
|
-
const largeTabsHeader$1 = "_largeTabsHeader_d2sio_1";
|
|
62280
|
+
const largeTabsHeader$1 = "_largeTabsHeader_1oxiy_1";
|
|
62301
62281
|
var styles$1 = {
|
|
62302
|
-
ee: ee$1,
|
|
62303
62282
|
largeTabsHeader: largeTabsHeader$1
|
|
62304
62283
|
};
|
|
62305
|
-
const
|
|
62306
|
-
const largeTabsHeader = "_largeTabsHeader_d2sio_1";
|
|
62284
|
+
const largeTabsHeader = "_largeTabsHeader_1oxiy_1";
|
|
62307
62285
|
var styles = {
|
|
62308
|
-
ee,
|
|
62309
62286
|
largeTabsHeader
|
|
62310
62287
|
};
|
|
62311
62288
|
function ConfigurationPanel({
|
|
@@ -62542,7 +62519,8 @@ const StandardLayout = (props) => {
|
|
|
62542
62519
|
return /* @__PURE__ */ React__default.createElement(ExtensionProvider, __spreadProps(__spreadValues({}, props), {
|
|
62543
62520
|
categories
|
|
62544
62521
|
}), /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
|
62545
|
-
locale: enUS
|
|
62522
|
+
locale: enUS,
|
|
62523
|
+
prefixCls: "ee"
|
|
62546
62524
|
}, /* @__PURE__ */ React__default.createElement(Card$1, {
|
|
62547
62525
|
style: { padding: 0 },
|
|
62548
62526
|
bodyStyle: {
|