@emailmaker/emailmaker 1.3.4 → 1.3.8
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/CHANGELOG.md +58 -0
- package/README.md +20 -0
- package/emailmaker-core.091c986b.js +874 -0
- package/emailmaker-esm.js +53 -39
- package/{emailmaker-po.87ebe001.js → emailmaker-po.091c986b.js} +1 -1
- package/emailmaker.d.ts +95 -5
- package/emailmaker.js +54 -40
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox-dark.css +2 -9
- package/iframe/css/sandbox-light.css +2 -9
- package/iframe/css/sandbox.css +13 -23
- package/iframe/{iframe-eblock.87ebe001.html → iframe-eblock.091c986b.html} +2 -2
- package/iframe/{iframe.87ebe001.html → iframe.091c986b.html} +2 -2
- package/iframe/js/elMarkupHelper.DoIAMao4.js +279 -0
- package/iframe/js/{iframe-eblock.body.87ebe001.js → iframe-eblock.body.091c986b.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.091c986b.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/166a67bd.js +1 -0
- package/static/core/1a65ef0f.js +1 -0
- package/static/core/{4cdd6e6c.js → 1c67ab93.js} +1 -1
- package/static/core/{27599903.js → 1d004581.js} +1 -1
- package/static/core/{79e13595.js → 220d7d31.js} +1 -1
- package/static/core/{afb0d556.js → 2da7d310.js} +2 -2
- package/static/core/322d3e9f.js +1 -0
- package/static/core/{d8175c7f.js → 34756b09.js} +1 -1
- package/static/core/36f3f772.js +1 -0
- package/static/core/3b9931cd.js +1 -0
- package/static/core/{312fb954.js → 3bff2ae6.js} +1 -1
- package/static/core/{5afad425.js → 454350da.js} +1 -1
- package/static/core/{4797d4f7.js → 4852c0de.js} +6 -6
- package/static/core/{75a2537a.js → 5272f5b2.js} +1 -1
- package/static/core/{76163cc7.js → 5f176d0a.js} +1 -1
- package/static/core/674e22a5.js +1 -0
- package/static/core/{27986c36.js → 6ce85877.js} +1 -1
- package/static/core/7b8fbc31.js +1 -0
- package/static/core/{5ebf9f1e.js → 867b1e0a.js} +1 -1
- package/static/core/89b1052c.js +1 -0
- package/static/core/{81c0d133.js → 8b8c93f4.js} +1 -1
- package/static/core/8e97c82c.js +163 -0
- package/static/core/8eea6488.js +1 -0
- package/static/core/9a4cfb0a.js +1 -0
- package/static/core/{81a16991.js → 9d388494.js} +1 -1
- package/static/core/{2269bf04.js → 9e1370a6.js} +1 -1
- package/static/core/{9a7e933e.js → a59d579e.js} +1 -1
- package/static/core/{87c47034.js → a6abc393.js} +2 -2
- package/static/core/aa33047a.js +1 -0
- package/static/core/abde5a43.js +2 -0
- package/static/core/{d833a29f.js → b69579c4.js} +1 -1
- package/static/core/{489390a3.js → bcc4db3e.js} +1 -1
- package/static/core/{78916fed.js → c0b0ceff.js} +3 -3
- package/static/core/c5edcfc7.js +1 -0
- package/static/core/{122c5ed9.js → c9d5118c.js} +1 -1
- package/static/core/{81cc5690.js → caf9f1a6.js} +1 -1
- package/static/core/{7601732d.js → d241119a.js} +1 -1
- package/static/core/d4c10a7e.js +10 -0
- package/static/core/d517188a.js +1 -0
- package/static/core/db92581b.js +19 -0
- package/static/core/{a15ab3fe.js → de0d3c9a.js} +1 -1
- package/static/core/{8cebeef2.js → e995a70d.js} +1 -1
- package/static/core/ee26ef3d.js +1 -0
- package/static/core/f399000c.js +1 -0
- package/static/core/{67cc6cb2.js → f875f388.js} +1 -1
- package/static/esm/{9610f2de.js → 95cbf920.js} +1 -1
- package/static/umd-runtime/{runtime.BHEKxbjr.js → runtime.CV4WRxRc.js} +1 -1
- package/vendor/@emailmaker/ui-kit/package.json +1 -1
- package/emailmaker-core.87ebe001.js +0 -859
- package/iframe/js/elMarkupHelper.CO37NCd9.js +0 -278
- package/iframe/js/iframe.body.87ebe001.js +0 -129
- package/static/core/32e15918.js +0 -1
- package/static/core/b8941eda.js +0 -28
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"src": "../packages/html2amp/rules.json",
|
|
12
12
|
"isDynamicEntry": true
|
|
13
13
|
},
|
|
14
|
-
"_elMarkupHelper.
|
|
15
|
-
"file": "js/elMarkupHelper.
|
|
14
|
+
"_elMarkupHelper.DoIAMao4.js": {
|
|
15
|
+
"file": "js/elMarkupHelper.DoIAMao4.js",
|
|
16
16
|
"name": "elMarkupHelper",
|
|
17
17
|
"dynamicImports": [
|
|
18
18
|
"../packages/html2amp/rules.json",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"src": "iframe-eblock.html",
|
|
27
27
|
"isEntry": true,
|
|
28
28
|
"imports": [
|
|
29
|
-
"_elMarkupHelper.
|
|
29
|
+
"_elMarkupHelper.DoIAMao4.js"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
"iframe.html": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"src": "iframe.html",
|
|
36
36
|
"isEntry": true,
|
|
37
37
|
"imports": [
|
|
38
|
-
"_elMarkupHelper.
|
|
38
|
+
"_elMarkupHelper.DoIAMao4.js"
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"js/typograf/typograf.all.js": {
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
[class*='em-show']::before,
|
|
41
|
-
[class*='em-amp-show']::before
|
|
41
|
+
[class*='em-amp-show']::before,
|
|
42
|
+
:where([em='block'][em-block-id]:not(tr), tr[em='block'][em-block-id] > td:first-of-type)::before {
|
|
42
43
|
color: hsl(0deg 0% 100% / 85%);
|
|
43
44
|
background-color: #1d1d1d;
|
|
44
45
|
}
|
|
@@ -305,11 +306,3 @@ img[src*='<!--']::after {
|
|
|
305
306
|
em-replace::after {
|
|
306
307
|
background-color: var(--em-colorBgBase);
|
|
307
308
|
}
|
|
308
|
-
|
|
309
|
-
/* Маркер глобального блока в превью (псевдоэлемент, см. sandbox.css) */
|
|
310
|
-
[em='block'][em-block-id]:not(tr)::after,
|
|
311
|
-
tr[em='block'][em-block-id] > td:first-of-type::after {
|
|
312
|
-
background: rgb(0 0 0 / 0.5);
|
|
313
|
-
box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
|
|
314
|
-
color: rgb(255 255 255 / 0.88);
|
|
315
|
-
}
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
[class*='em-show']::before,
|
|
45
|
-
[class*='em-amp-show']::before
|
|
45
|
+
[class*='em-amp-show']::before,
|
|
46
|
+
:where([em='block'][em-block-id]:not(tr), tr[em='block'][em-block-id] > td:first-of-type)::before {
|
|
46
47
|
color: #758192;
|
|
47
48
|
background-color: #fff;
|
|
48
49
|
}
|
|
@@ -201,11 +202,3 @@ img[src*='<!--']::after {
|
|
|
201
202
|
em-replace::after {
|
|
202
203
|
background-color: var(--em-colorLink);
|
|
203
204
|
}
|
|
204
|
-
|
|
205
|
-
/* Маркер глобального блока в превью (псевдоэлемент, см. sandbox.css) */
|
|
206
|
-
[em='block'][em-block-id]:not(tr)::after,
|
|
207
|
-
tr[em='block'][em-block-id] > td:first-of-type::after {
|
|
208
|
-
background: rgb(255 255 255 / 0.85);
|
|
209
|
-
box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
|
|
210
|
-
color: #8c8c8c;
|
|
211
|
-
}
|
package/iframe/css/sandbox.css
CHANGED
|
@@ -335,6 +335,12 @@ td.noresp-em-mob-wrap:nth-child(even) {
|
|
|
335
335
|
/* z-index: 999; */
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
+
/* Подсветка элемента по команде агента: только рамка, раскладка письма не меняется. */
|
|
339
|
+
[em-hover='agent'] {
|
|
340
|
+
outline: 2px solid var(--em-colorPrimary, #1677ff);
|
|
341
|
+
outline-offset: 2px;
|
|
342
|
+
}
|
|
343
|
+
|
|
338
344
|
tinymce[em-hover='true'],
|
|
339
345
|
tinymce *[em-hover='true'] {
|
|
340
346
|
outline: none !important;
|
|
@@ -801,9 +807,11 @@ tinymce *.em-code[em-edit='active'] {
|
|
|
801
807
|
position: relative;
|
|
802
808
|
}
|
|
803
809
|
|
|
810
|
+
/* The global block marker has zero specificity: on a drop target the striped band takes this ::before and must override it. */
|
|
804
811
|
[class*='em-show']::before,
|
|
805
812
|
.hide-for-small > tbody > tr > td::before,
|
|
806
|
-
.hide-for-desktop > tbody > tr > td::before
|
|
813
|
+
.hide-for-desktop > tbody > tr > td::before,
|
|
814
|
+
:where([em='block'][em-block-id]:not(tr), tr[em='block'][em-block-id] > td:first-of-type)::before {
|
|
807
815
|
font-family: 'Line Awesome Free';
|
|
808
816
|
position: absolute;
|
|
809
817
|
right: 5px;
|
|
@@ -867,29 +875,8 @@ tr[em='block'][em-block-id] > td:first-of-type {
|
|
|
867
875
|
position: relative;
|
|
868
876
|
}
|
|
869
877
|
|
|
870
|
-
[em='block'][em-block-id]:not(tr)::
|
|
871
|
-
tr[em='block'][em-block-id] > td:first-of-type::after {
|
|
872
|
-
font-family: 'Line Awesome Free';
|
|
873
|
-
position: absolute;
|
|
874
|
-
right: 5px;
|
|
875
|
-
top: 5px;
|
|
876
|
-
-webkit-font-smoothing: antialiased;
|
|
877
|
-
display: flex;
|
|
878
|
-
font-style: normal;
|
|
879
|
-
font-variant: normal;
|
|
880
|
-
text-rendering: auto;
|
|
881
|
-
line-height: 1;
|
|
882
|
-
font-weight: 900;
|
|
883
|
-
font-size: 16px;
|
|
884
|
-
width: 26px;
|
|
885
|
-
height: 26px;
|
|
886
|
-
border-radius: 6px;
|
|
887
|
-
text-align: center;
|
|
888
|
-
box-sizing: border-box;
|
|
878
|
+
:where([em='block'][em-block-id]:not(tr), tr[em='block'][em-block-id] > td:first-of-type)::before {
|
|
889
879
|
content: '\f0ac';
|
|
890
|
-
z-index: 35;
|
|
891
|
-
align-items: center;
|
|
892
|
-
justify-content: center;
|
|
893
880
|
pointer-events: none;
|
|
894
881
|
}
|
|
895
882
|
|
|
@@ -1566,6 +1553,9 @@ body:not(.mceNonEditable, .em-sandbox-discuss) .em-blockatom-insert::before {
|
|
|
1566
1553
|
box-sizing: border-box;
|
|
1567
1554
|
margin: 0;
|
|
1568
1555
|
border: none;
|
|
1556
|
+
border-radius: 0;
|
|
1557
|
+
box-shadow: none;
|
|
1558
|
+
background-color: transparent;
|
|
1569
1559
|
pointer-events: none;
|
|
1570
1560
|
}
|
|
1571
1561
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
|
5
5
|
<script>var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";e===void 0&&(window.__amdEnv={});var t=window.parent&&window.parent!==window?window.parent:null;if(!t||typeof t.postMessage!=`function`)return;var n=`em:module-body`,r=`em:module-body-ack`,i=1e3,a=6e4,o=300,s={},c={},l=0,u=!1,d=!1;function f(){u||typeof window.addEventListener!=`function`||(u=!0,window.addEventListener(`message`,function(e){var n=e&&e.data;if(n&&typeof n==`object`&&e.source===t){if(n.operationId===r){var i=c[n.for];i&&i();return}var a=s[n.operationId];a&&a(n.data)}}))}function p(e){return d?null:(f(),new Promise(function(r){l+=1;var o=`em:body:`+l,u=`em:body-error:`+l,f=!1,p=null;function m(e){f||(f=!0,p!==null&&window.clearTimeout(p),delete s[o],delete s[u],delete c[o],r(e||null))}s[o]=m,s[u]=function(){m(null)},c[o]=function(){p!==null&&window.clearTimeout(p),p=window.setTimeout(function(){m(null)},a)},p=window.setTimeout(function(){d=!0,m(null)},i),t.postMessage({operationId:n,data:{url:e},result:o,error:u},`*`)}))}window.location&&window.location.protocol===`file:`||(e.moduleTransport=p);var m=null;function h(){m=null;try{t.postMessage({mark:`__emmDiagnostics__`,type:`loader`,items:(e.loaderTimings||[]).slice()},`*`)}catch{}}e.onLoaderTiming=function(){m===null&&(m=window.setTimeout(h,o))}})(),(function(){"use strict";e===void 0&&(window.__amdEnv={}),e.bootCanvas=function(t){e.canvasBooted=!0;var n=!1;function r(){if(!n){n=!0;var e=document.createElement(`script`);e.src=t,document.head.appendChild(e)}}var i=e.moduleTransport;if(typeof i!=`function`){r();return}var a;try{a=i(t,t)}catch{a=null}if(!a||typeof a.then!=`function`){r();return}a.then(function(t){if(!t||n){r();return}n=!0;var i=URL.createObjectURL(t),a=document.createElement(`script`);a.src=i,a.onload=function(){URL.revokeObjectURL(i)},a.onerror=function(){URL.revokeObjectURL(i),e.blobBlocked=!0,n=!1,r()},document.head.appendChild(a)},r)}})();
|
|
6
|
-
__emailmaker__.bootCanvas("./js/iframe-eblock.js?v=
|
|
7
|
-
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=
|
|
6
|
+
__emailmaker__.bootCanvas("./js/iframe-eblock.js?v=091c986b");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=091c986b" data-ns="__emailmaker__"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
</body>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
|
5
5
|
<script>var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";e===void 0&&(window.__amdEnv={});var t=window.parent&&window.parent!==window?window.parent:null;if(!t||typeof t.postMessage!=`function`)return;var n=`em:module-body`,r=`em:module-body-ack`,i=1e3,a=6e4,o=300,s={},c={},l=0,u=!1,d=!1;function f(){u||typeof window.addEventListener!=`function`||(u=!0,window.addEventListener(`message`,function(e){var n=e&&e.data;if(n&&typeof n==`object`&&e.source===t){if(n.operationId===r){var i=c[n.for];i&&i();return}var a=s[n.operationId];a&&a(n.data)}}))}function p(e){return d?null:(f(),new Promise(function(r){l+=1;var o=`em:body:`+l,u=`em:body-error:`+l,f=!1,p=null;function m(e){f||(f=!0,p!==null&&window.clearTimeout(p),delete s[o],delete s[u],delete c[o],r(e||null))}s[o]=m,s[u]=function(){m(null)},c[o]=function(){p!==null&&window.clearTimeout(p),p=window.setTimeout(function(){m(null)},a)},p=window.setTimeout(function(){d=!0,m(null)},i),t.postMessage({operationId:n,data:{url:e},result:o,error:u},`*`)}))}window.location&&window.location.protocol===`file:`||(e.moduleTransport=p);var m=null;function h(){m=null;try{t.postMessage({mark:`__emmDiagnostics__`,type:`loader`,items:(e.loaderTimings||[]).slice()},`*`)}catch{}}e.onLoaderTiming=function(){m===null&&(m=window.setTimeout(h,o))}})(),(function(){"use strict";e===void 0&&(window.__amdEnv={}),e.bootCanvas=function(t){e.canvasBooted=!0;var n=!1;function r(){if(!n){n=!0;var e=document.createElement(`script`);e.src=t,document.head.appendChild(e)}}var i=e.moduleTransport;if(typeof i!=`function`){r();return}var a;try{a=i(t,t)}catch{a=null}if(!a||typeof a.then!=`function`){r();return}a.then(function(t){if(!t||n){r();return}n=!0;var i=URL.createObjectURL(t),a=document.createElement(`script`);a.src=i,a.onload=function(){URL.revokeObjectURL(i)},a.onerror=function(){URL.revokeObjectURL(i),e.blobBlocked=!0,n=!1,r()},document.head.appendChild(a)},r)}})();
|
|
6
|
-
__emailmaker__.bootCanvas("./js/iframe.js?v=
|
|
7
|
-
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=
|
|
6
|
+
__emailmaker__.bootCanvas("./js/iframe.js?v=091c986b");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=091c986b" data-ns="__emailmaker__"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
</body>
|