@emailmaker/emailmaker 1.3.3 → 1.3.5

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/emailmaker-core.33f5584d.js +859 -0
  3. package/emailmaker-esm.js +11 -11
  4. package/{emailmaker-po.a4e11bd0.js → emailmaker-po.33f5584d.js} +1 -1
  5. package/emailmaker.d.ts +4 -1
  6. package/emailmaker.js +12 -12
  7. package/iframe/.vite/manifest.json +4 -4
  8. package/iframe/css/sandbox-dark.css +2 -9
  9. package/iframe/css/sandbox-light.css +2 -9
  10. package/iframe/css/sandbox.css +7 -23
  11. package/iframe/{iframe-eblock.a4e11bd0.html → iframe-eblock.33f5584d.html} +2 -2
  12. package/iframe/{iframe.a4e11bd0.html → iframe.33f5584d.html} +2 -2
  13. package/iframe/js/{elMarkupHelper.Dc_IFMml.js → elMarkupHelper.B6dyF9UI.js} +74 -74
  14. package/iframe/js/{iframe-eblock.body.a4e11bd0.js → iframe-eblock.body.33f5584d.js} +1 -1
  15. package/iframe/js/iframe-eblock.js +2 -2
  16. package/iframe/js/{iframe.body.a4e11bd0.js → iframe.body.33f5584d.js} +10 -10
  17. package/iframe/js/iframe.js +2 -2
  18. package/package.json +1 -1
  19. package/runtime/react/index.js +1 -1
  20. package/static/core/{892bb74e.js → 19f19adb.js} +1 -1
  21. package/static/core/{1d705ef4.js → 239be344.js} +1 -1
  22. package/static/core/{1c5fcd3e.js → 294defd8.js} +1 -1
  23. package/static/core/{462ebf44.js → 2cee0217.js} +1 -1
  24. package/static/core/{64c240c3.js → 2fbd0ef8.js} +1 -1
  25. package/static/core/{ec552634.js → 3320a3fd.js} +1 -1
  26. package/static/core/{e70683db.js → 3a0fc0cb.js} +1 -1
  27. package/static/core/{5c396b20.js → 423efc66.js} +1 -1
  28. package/static/core/{b0c57adf.js → 42f18479.js} +1 -1
  29. package/static/core/{7c519fb4.js → 4a259bd9.js} +1 -1
  30. package/static/core/{cd998f60.js → 4ee64f35.js} +1 -1
  31. package/static/core/{2f2b6a03.js → 4fd85bc9.js} +2 -2
  32. package/static/core/{c16f27f8.js → 5150fae0.js} +2 -2
  33. package/static/core/{76d1e927.js → 5913ff80.js} +1 -1
  34. package/static/core/{762d0d48.js → 64c425bf.js} +1 -1
  35. package/static/core/{44ad0bec.js → 65db94be.js} +1 -1
  36. package/static/core/{5b124cab.js → 78663aeb.js} +1 -1
  37. package/static/core/{1708db7c.js → 89df46ff.js} +1 -1
  38. package/static/core/{b9f59067.js → 90aedd7b.js} +1 -1
  39. package/static/core/97ab9fc2.js +2 -0
  40. package/static/core/{6dfc3524.js → 99be02b7.js} +1 -1
  41. package/static/core/{9c4c7364.js → a74cc07c.js} +1 -1
  42. package/static/core/c2fc9f27.js +1 -0
  43. package/static/core/{32a14159.js → c8c233fb.js} +1 -1
  44. package/static/core/{a30b0fae.js → d4b8f1e0.js} +1 -1
  45. package/static/core/{e123b734.js → d7e61b4c.js} +1 -1
  46. package/static/core/{8608a2b9.js → e21f8693.js} +1 -1
  47. package/static/core/{a4d994c7.js → f52ad95a.js} +14 -14
  48. package/static/esm/9610f2de.js +1 -0
  49. package/static/esm/f76c9d9d.js +1 -1
  50. package/static/umd-runtime/{runtime.C95Dj7XR.js → runtime.ylG9Pc4W.js} +1 -1
  51. package/vendor/@emailmaker/ui-kit/package.json +1 -1
  52. package/vite/pluginDev/index.cjs +10 -2
  53. package/vite/pluginDev/index.js +10 -2
  54. package/webpack/pluginDev/index.cjs +10 -1
  55. package/webpack/pluginDev/index.js +10 -1
  56. package/emailmaker-core.a4e11bd0.js +0 -859
  57. package/static/core/0c2b284d.js +0 -1
  58. package/static/core/aa75c19b.js +0 -2
  59. package/static/esm/74f083c2.js +0 -1
@@ -11,8 +11,8 @@
11
11
  "src": "../packages/html2amp/rules.json",
12
12
  "isDynamicEntry": true
13
13
  },
14
- "_elMarkupHelper.Dc_IFMml.js": {
15
- "file": "js/elMarkupHelper.Dc_IFMml.js",
14
+ "_elMarkupHelper.B6dyF9UI.js": {
15
+ "file": "js/elMarkupHelper.B6dyF9UI.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.Dc_IFMml.js"
29
+ "_elMarkupHelper.B6dyF9UI.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.Dc_IFMml.js"
38
+ "_elMarkupHelper.B6dyF9UI.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
- }
@@ -801,9 +801,11 @@ tinymce *.em-code[em-edit='active'] {
801
801
  position: relative;
802
802
  }
803
803
 
804
+ /* The global block marker has zero specificity: on a drop target the striped band takes this ::before and must override it. */
804
805
  [class*='em-show']::before,
805
806
  .hide-for-small > tbody > tr > td::before,
806
- .hide-for-desktop > tbody > tr > td::before {
807
+ .hide-for-desktop > tbody > tr > td::before,
808
+ :where([em='block'][em-block-id]:not(tr), tr[em='block'][em-block-id] > td:first-of-type)::before {
807
809
  font-family: 'Line Awesome Free';
808
810
  position: absolute;
809
811
  right: 5px;
@@ -867,29 +869,8 @@ tr[em='block'][em-block-id] > td:first-of-type {
867
869
  position: relative;
868
870
  }
869
871
 
870
- [em='block'][em-block-id]:not(tr)::after,
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;
872
+ :where([em='block'][em-block-id]:not(tr), tr[em='block'][em-block-id] > td:first-of-type)::before {
889
873
  content: '\f0ac';
890
- z-index: 35;
891
- align-items: center;
892
- justify-content: center;
893
874
  pointer-events: none;
894
875
  }
895
876
 
@@ -1566,6 +1547,9 @@ body:not(.mceNonEditable, .em-sandbox-discuss) .em-blockatom-insert::before {
1566
1547
  box-sizing: border-box;
1567
1548
  margin: 0;
1568
1549
  border: none;
1550
+ border-radius: 0;
1551
+ box-shadow: none;
1552
+ background-color: transparent;
1569
1553
  pointer-events: none;
1570
1554
  }
1571
1555
 
@@ -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=a4e11bd0");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=a4e11bd0" data-ns="__emailmaker__"></script>
6
+ __emailmaker__.bootCanvas("./js/iframe-eblock.js?v=33f5584d");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=33f5584d" 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=a4e11bd0");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=a4e11bd0" data-ns="__emailmaker__"></script>
6
+ __emailmaker__.bootCanvas("./js/iframe.js?v=33f5584d");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=33f5584d" data-ns="__emailmaker__"></script>
8
8
  </head>
9
9
  <body>
10
10
  </body>