useblocks 1.3.10 → 1.3.11-dev.2

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 (64) hide show
  1. package/README.md +2 -2
  2. package/iframe/.vite/manifest.json +4 -4
  3. package/iframe/{iframe-eblock.5455e870.html → iframe-eblock.fd4347fc.html} +2 -2
  4. package/iframe/{iframe.5455e870.html → iframe.fd4347fc.html} +2 -2
  5. package/iframe/js/{elMarkupHelper.Cv72GdwF.js → elMarkupHelper.DLCHSWwj.js} +4 -4
  6. package/iframe/js/{iframe-eblock.body.5455e870.js → iframe-eblock.body.fd4347fc.js} +1 -1
  7. package/iframe/js/iframe-eblock.js +2 -2
  8. package/iframe/js/{iframe.body.5455e870.js → iframe.body.fd4347fc.js} +1 -1
  9. package/iframe/js/iframe.js +2 -2
  10. package/package.json +1 -1
  11. package/runtime/react/index.js +1 -1
  12. package/static/core/{710be2de.js → 12963ed5.js} +1 -1
  13. package/static/core/{7d2c1fd4.js → 13a6a2d3.js} +1 -1
  14. package/static/core/{f033fd82.js → 153a5a27.js} +1 -1
  15. package/static/core/{5a290fb6.js → 17c8ebc4.js} +1 -1
  16. package/static/core/{e7f50492.js → 1fcc0627.js} +1 -1
  17. package/static/core/{91017e83.js → 2865f716.js} +1 -1
  18. package/static/core/{c24c3d6b.js → 2d58a94b.js} +1 -1
  19. package/static/core/{e532cd8d.js → 31d22827.js} +1 -1
  20. package/static/core/{4030ef2c.js → 31da6da0.js} +1 -1
  21. package/static/core/{395f9635.js → 37bf0f7a.js} +1 -1
  22. package/static/core/{97db045b.js → 3a5bea82.js} +1 -1
  23. package/static/core/{7a43af5d.js → 3ca0af3d.js} +1 -1
  24. package/static/core/{9ccecd4a.js → 4181d334.js} +1 -1
  25. package/static/core/{8606910e.js → 4f5add14.js} +1 -1
  26. package/static/core/{84c5ed0d.js → 579d4466.js} +1 -1
  27. package/static/core/{7774d8cb.js → 5fd45688.js} +1 -1
  28. package/static/core/{dd82fe37.js → 66b856ca.js} +1 -1
  29. package/static/core/{d8d10299.js → 68e393e4.js} +6 -6
  30. package/static/core/{19270609.js → 6ec347ff.js} +1 -1
  31. package/static/core/{fe47306c.js → 70749936.js} +1 -1
  32. package/static/core/{4de0fff7.js → 752288e6.js} +1 -1
  33. package/static/core/{7da32d21.js → 78500214.js} +1 -1
  34. package/static/core/{eeba774d.js → 7934ed7e.js} +1 -1
  35. package/static/core/{acf08b55.js → 846cd365.js} +1 -1
  36. package/static/core/{9f336cc6.js → 8d0796c1.js} +1 -1
  37. package/static/core/{f615b5d9.js → 925b75fb.js} +2 -2
  38. package/static/core/{e0f9c94e.js → 939d4a62.js} +1 -1
  39. package/static/core/{bf6643b0.js → 9438888a.js} +1 -1
  40. package/static/core/{2cf7ee08.js → 983a408d.js} +1 -1
  41. package/static/core/{c8cfd469.js → 9916b298.js} +2 -2
  42. package/static/core/{ef13a2d7.js → 9d57053a.js} +1 -1
  43. package/static/core/{630febfd.js → ab741434.js} +1 -1
  44. package/static/core/{43305d10.js → ae251a52.js} +1 -1
  45. package/static/core/{4274a244.js → b0edd3a1.js} +1 -1
  46. package/static/core/{791b9022.js → bbf48eb9.js} +1 -1
  47. package/static/core/{cbfe265e.js → c33a9c36.js} +1 -1
  48. package/static/core/{4fec552e.js → c5128299.js} +1 -1
  49. package/static/core/{48def854.js → cc4657d9.js} +1 -1
  50. package/static/core/{c41fa010.js → d48488c4.js} +1 -1
  51. package/static/core/{32f12150.js → dda98b73.js} +1 -1
  52. package/static/core/{6539262f.js → e37da9a7.js} +1 -1
  53. package/static/core/{233f23fd.js → e9281a4c.js} +1 -1
  54. package/static/core/{38606c7d.js → f126c14c.js} +1 -1
  55. package/static/core/{a802b68f.js → f8f52e6d.js} +1 -1
  56. package/static/esm/{b6a1b54a.js → f97f42d1.js} +1 -1
  57. package/static/umd-runtime/runtime.CQCs2kHH.js +1 -0
  58. package/{useblocks-core.5455e870.js → useblocks-core.fd4347fc.js} +44 -44
  59. package/useblocks-esm.js +6 -6
  60. package/{useblocks-po.5455e870.js → useblocks-po.fd4347fc.js} +1 -1
  61. package/useblocks.d.ts +2 -2
  62. package/useblocks.js +8 -8
  63. package/vendor/useblocks-ui-kit/package.json +1 -1
  64. package/static/umd-runtime/runtime.C1l7PfWP.js +0 -1
package/README.md CHANGED
@@ -508,7 +508,7 @@ Editor UI tuning. Use **`instance.setConfig`**, **`instance.updateConfig`**, **`
508
508
  | blocksSavedEnabled | Show saved blocks. | true |
509
509
  | blocksCommonEnabled | Show common blocks. | true |
510
510
  | blocksCommonSource | Source of common blocks when blocks are stored on Go and `handleReadCommonBlocks` returned nothing: `gallery` — the product gallery, `project` — blocks of the project this plugin key belongs to (insert only). | gallery |
511
- | blocksTemplateEnabled | Show template blocks. | true |
511
+ | blocksTemplateEnabled | Show template blocks. Plugin only: the tab is shown when `handleReadTemplateBlocks` returns blocks. | true |
512
512
  | blocksSearchEnabled | Show blocks search. | true |
513
513
  | blocksAddPanelEnabled | Show add block panel in visual editor. | true |
514
514
  | imagePathDropdownEnabled | Show dropdown with image path. | true |
@@ -672,7 +672,7 @@ See typings (**`ExportedApi.DataMixin.Events`**) — includes for example **`han
672
672
  | handleValidate | Errors of the code editor (**`CodeError[]`**), the ones it underlines. Fires after the editor checks its text: on every edit while there are errors, and once when they are gone; no event when there were none and still are none. Only after the code mode has been opened. To validate the email on demand use **`validateCode()`**. |
673
673
  | handleImportValidate | Errors of an imported file's own markup (**`{ errors: CodeError[], fileName }`**), found before the browser parses it: the browser silently repairs broken markup, so the editor no longer sees the errors. The file is checked only while someone listens to this event. The import is neither delayed nor cancelled; for a clean file **`errors`** is empty. |
674
674
  | handleReadCommonBlocks | Shared / common blocks |
675
- | handleReadTemplateBlocks | Template blocks for current email |
675
+ | handleReadTemplateBlocks | Template blocks for current email — the only source of the tab: without a handler or with an empty answer the tab is hidden |
676
676
  | handleSaveBlock | Save block (**`SaveEventPayload`**) |
677
677
  | handleRemoveBlock | Delete block |
678
678
  | handleReadComments | Email comments |
@@ -11,8 +11,8 @@
11
11
  "src": "../packages/html2amp/rules.json",
12
12
  "isDynamicEntry": true
13
13
  },
14
- "_elMarkupHelper.Cv72GdwF.js": {
15
- "file": "js/elMarkupHelper.Cv72GdwF.js",
14
+ "_elMarkupHelper.DLCHSWwj.js": {
15
+ "file": "js/elMarkupHelper.DLCHSWwj.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.Cv72GdwF.js"
29
+ "_elMarkupHelper.DLCHSWwj.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.Cv72GdwF.js"
38
+ "_elMarkupHelper.DLCHSWwj.js"
39
39
  ]
40
40
  },
41
41
  "js/typograf/typograf.all.js": {
@@ -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.__useblocks__||(window.__useblocks__={});(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
- __useblocks__.bootCanvas("./js/iframe-eblock.js?v=5455e870");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=5455e870" data-ns="__useblocks__"></script>
6
+ __useblocks__.bootCanvas("./js/iframe-eblock.js?v=fd4347fc");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=fd4347fc" data-ns="__useblocks__"></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.__useblocks__||(window.__useblocks__={});(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
- __useblocks__.bootCanvas("./js/iframe.js?v=5455e870");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=5455e870" data-ns="__useblocks__"></script>
6
+ __useblocks__.bootCanvas("./js/iframe.js?v=fd4347fc");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=fd4347fc" data-ns="__useblocks__"></script>
8
8
  </head>
9
9
  <body>
10
10
  </body>