@emailmaker/emailmaker 1.1.104 → 1.1.108

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 (66) hide show
  1. package/emailmaker-core.d5e4bde1.js +859 -0
  2. package/emailmaker-esm.js +11 -11
  3. package/{emailmaker-po.d92031f0.js → emailmaker-po.d5e4bde1.js} +1 -1
  4. package/emailmaker.d.ts +137 -13
  5. package/emailmaker.js +12 -12
  6. package/iframe/.vite/manifest.json +13 -25
  7. package/iframe/css/sandbox.css +9 -8
  8. package/iframe/{iframe-eblock.d92031f0.html → iframe-eblock.d5e4bde1.html} +2 -2
  9. package/iframe/{iframe.d92031f0.html → iframe.d5e4bde1.html} +2 -2
  10. package/iframe/js/elMarkupHelper.C66zL1zp.js +279 -0
  11. package/iframe/js/iframe-eblock.body.d5e4bde1.js +9 -0
  12. package/iframe/js/iframe-eblock.js +2 -2
  13. package/iframe/js/iframe.body.d5e4bde1.js +129 -0
  14. package/iframe/js/iframe.js +2 -2
  15. package/iframe/js/{typograf.all.B0pVhMV_.js → typograf.all.Mun9CrLC.js} +12 -12
  16. package/package.json +1 -1
  17. package/runtime/react/index.js +1 -1
  18. package/static/core/{2d570b04.js → 13b2a363.js} +3 -3
  19. package/static/core/{1cdd0eaa.js → 22140fa1.js} +1 -1
  20. package/static/core/{62b7892b.js → 2455e45e.js} +11 -11
  21. package/static/core/{c67adee2.js → 2734fa96.js} +1 -1
  22. package/static/core/3a6dbf2b.js +7 -0
  23. package/static/core/{0cb54b92.js → 4797d4f7.js} +6 -6
  24. package/static/core/{dc45a033.js → 566e8ce8.js} +1 -1
  25. package/static/core/{e76ed3bd.js → 6ba8aedc.js} +1 -1
  26. package/static/core/{4b7442c5.js → 6c52be40.js} +1 -1
  27. package/static/core/{36f15937.js → 6e8d008d.js} +1 -1
  28. package/static/core/{bd852c3b.js → 6f6a92e3.js} +1 -1
  29. package/static/core/{2a6bfcb1.js → 756e184f.js} +1 -1
  30. package/static/core/7985de17.js +28 -0
  31. package/static/core/{9596ee39.js → 7e51da74.js} +1 -1
  32. package/static/core/{448f5a93.js → 7e69b03c.js} +1 -1
  33. package/static/core/{20fae5cb.js → 8889dbc6.js} +1 -1
  34. package/static/core/8a621181.js +2 -0
  35. package/static/core/a22823f9.js +1 -0
  36. package/static/core/{1922419a.js → abcacabc.js} +1 -1
  37. package/static/core/{f173fdc6.js → b43852b9.js} +1 -1
  38. package/static/core/{9f7f5230.js → b712bb05.js} +1 -1
  39. package/static/core/{ba4d44b4.js → b916e437.js} +1 -1
  40. package/static/core/{d3f1d83d.js → d5cd2a7b.js} +1 -1
  41. package/static/core/{c100433a.js → d74c1e57.js} +1 -1
  42. package/static/core/{fff40495.js → d8800deb.js} +1 -1
  43. package/static/core/{25095aa6.js → dbc12df7.js} +2 -2
  44. package/static/core/{eee25d75.js → e1f8b6ea.js} +1 -1
  45. package/static/core/e88db487.js +1 -0
  46. package/static/core/{360afb24.js → ecaf7c36.js} +1 -1
  47. package/static/core/edf49656.js +4 -0
  48. package/static/core/f20ffa90.js +4 -0
  49. package/static/core/{432ad49d.js → f37da79c.js} +1 -1
  50. package/static/esm/73c89921.js +1 -0
  51. package/static/esm/delivery-libs.js +1 -1
  52. package/static/umd-runtime/delivery-libs.eFZaeVgo.js +1 -0
  53. package/static/umd-runtime/{runtime.Wy6_YzQx.js → runtime.BZcjM8iG.js} +1 -1
  54. package/vendor/@emailmaker/ui-kit/package.json +1 -1
  55. package/emailmaker-core.d92031f0.js +0 -859
  56. package/iframe/js/discussHandlers.cyZrdU7c.js +0 -88
  57. package/iframe/js/iframe-eblock.body.d92031f0.js +0 -233
  58. package/iframe/js/iframe.body.d92031f0.js +0 -319
  59. package/iframe/js/rolldown-runtime.qcwTIabA.js +0 -1
  60. package/static/core/123fc796.js +0 -4
  61. package/static/core/5dc1b7fa.js +0 -7
  62. package/static/core/a866296c.js +0 -4
  63. package/static/core/cd6c8848.js +0 -28
  64. package/static/core/e6f6edff.js +0 -1
  65. package/static/esm/d4338c39.js +0 -1
  66. package/static/umd-runtime/delivery-libs.Cmqsjupj.js +0 -1
@@ -11,26 +11,13 @@
11
11
  "src": "../packages/html2amp/rules.json",
12
12
  "isDynamicEntry": true
13
13
  },
14
- "_discussHandlers.cyZrdU7c.js": {
15
- "file": "js/discussHandlers.cyZrdU7c.js",
16
- "name": "discussHandlers",
17
- "imports": [
18
- "_rolldown-runtime.qcwTIabA.js"
19
- ],
14
+ "_elMarkupHelper.C66zL1zp.js": {
15
+ "file": "js/elMarkupHelper.C66zL1zp.js",
16
+ "name": "elMarkupHelper",
20
17
  "dynamicImports": [
18
+ "../packages/html2amp/rules.json",
21
19
  "../node_modules/darkreader/darkreader.mjs",
22
- "../packages/html2amp/rules.json"
23
- ]
24
- },
25
- "_rolldown-runtime.qcwTIabA.js": {
26
- "file": "js/rolldown-runtime.qcwTIabA.js",
27
- "name": "rolldown-runtime"
28
- },
29
- "_typograf.all.B0pVhMV_.js": {
30
- "file": "js/typograf.all.B0pVhMV_.js",
31
- "name": "typograf.all",
32
- "imports": [
33
- "_rolldown-runtime.qcwTIabA.js"
20
+ "js/typograf/typograf.all.js"
34
21
  ]
35
22
  },
36
23
  "iframe-eblock.html": {
@@ -39,8 +26,7 @@
39
26
  "src": "iframe-eblock.html",
40
27
  "isEntry": true,
41
28
  "imports": [
42
- "_discussHandlers.cyZrdU7c.js",
43
- "_typograf.all.B0pVhMV_.js"
29
+ "_elMarkupHelper.C66zL1zp.js"
44
30
  ]
45
31
  },
46
32
  "iframe.html": {
@@ -49,11 +35,13 @@
49
35
  "src": "iframe.html",
50
36
  "isEntry": true,
51
37
  "imports": [
52
- "_rolldown-runtime.qcwTIabA.js",
53
- "_discussHandlers.cyZrdU7c.js"
54
- ],
55
- "dynamicImports": [
56
- "_typograf.all.B0pVhMV_.js"
38
+ "_elMarkupHelper.C66zL1zp.js"
57
39
  ]
40
+ },
41
+ "js/typograf/typograf.all.js": {
42
+ "file": "js/typograf.all.Mun9CrLC.js",
43
+ "name": "typograf.all",
44
+ "src": "js/typograf/typograf.all.js",
45
+ "isDynamicEntry": true
58
46
  }
59
47
  }
@@ -136,7 +136,8 @@ br[data-mce-bogus='1'] {
136
136
  display: none;
137
137
  }
138
138
 
139
- table:empty,
139
+ /* Посадочная область — пустая таблица; пустой tbody строкой не считается (landingTable.ts). :is прощает браузер без :has */
140
+ table:is(:empty, :has(> tbody:only-child:empty)),
140
141
  table:empty[contenteditable],
141
142
  amp-accordion section > div:empty {
142
143
  outline: 2px dashed #d9d9d9 !important;
@@ -148,13 +149,13 @@ amp-accordion section > div:empty {
148
149
  cursor: pointer;
149
150
  }
150
151
 
151
- table:empty:hover,
152
+ table:is(:empty, :has(> tbody:only-child:empty)):hover,
152
153
  table:empty[contenteditable]:hover,
153
154
  amp-accordion section > div:empty:hover {
154
155
  outline: 2px dashed var(--em-borderColorHover) !important;
155
156
  }
156
157
 
157
- table:empty::before {
158
+ table:is(:empty, :has(> tbody:only-child:empty))::before {
158
159
  content: '';
159
160
  position: absolute;
160
161
  left: 0;
@@ -167,7 +168,7 @@ table:empty::before {
167
168
  display: block;
168
169
  }
169
170
 
170
- table:empty::after {
171
+ table:is(:empty, :has(> tbody:only-child:empty))::after {
171
172
  content: 'Click or drag a block';
172
173
  position: absolute;
173
174
  left: 50%;
@@ -183,7 +184,7 @@ table:empty::after {
183
184
  pointer-events: none;
184
185
  }
185
186
 
186
- table.em-block-insert-empty:empty {
187
+ table.em-block-insert-empty:is(:empty, :has(> tbody:only-child:empty)) {
187
188
  outline: 2px solid var(--em-colorPrimary) !important;
188
189
  background-image: linear-gradient(
189
190
  -45deg,
@@ -198,7 +199,7 @@ table.em-block-insert-empty:empty {
198
199
  background-size: 40px 40px !important;
199
200
  }
200
201
 
201
- table.em-block-insert-empty:empty::before {
202
+ table.em-block-insert-empty:is(:empty, :has(> tbody:only-child:empty))::before {
202
203
  color: var(--em-colorPrimary);
203
204
  }
204
205
 
@@ -1932,7 +1933,7 @@ img[src*='<!--']::after {
1932
1933
 
1933
1934
  /* Canvas width only: a phone's own screen is always narrow and would force the mobile layout in desktop view. */
1934
1935
  @media only screen and (width <= 480px) {
1935
- table.em-block-insert-empty:empty {
1936
+ table.em-block-insert-empty:is(:empty, :has(> tbody:only-child:empty)) {
1936
1937
  border-color: var(--em-colorInfo);
1937
1938
  background-image: linear-gradient(
1938
1939
  -45deg,
@@ -1946,7 +1947,7 @@ img[src*='<!--']::after {
1946
1947
  ) !important;
1947
1948
  }
1948
1949
 
1949
- table.em-block-insert-empty:empty::before {
1950
+ table.em-block-insert-empty:is(:empty, :has(> tbody:only-child:empty))::before {
1950
1951
  color: var(--em-colorInfo);
1951
1952
  }
1952
1953
 
@@ -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=d92031f0");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=d92031f0" data-ns="__emailmaker__"></script>
6
+ __emailmaker__.bootCanvas("./js/iframe-eblock.js?v=d5e4bde1");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=d5e4bde1" 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=d92031f0");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=d92031f0" data-ns="__emailmaker__"></script>
6
+ __emailmaker__.bootCanvas("./js/iframe.js?v=d5e4bde1");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=d5e4bde1" data-ns="__emailmaker__"></script>
8
8
  </head>
9
9
  <body>
10
10
  </body>