useblocks 1.3.14 → 1.3.16

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 (87) hide show
  1. package/CHANGELOG.md +50 -1
  2. package/iframe/.vite/manifest.json +4 -4
  3. package/iframe/{iframe-eblock.cd84d2b9.html → iframe-eblock.7594857d.html} +2 -2
  4. package/iframe/{iframe.cd84d2b9.html → iframe.7594857d.html} +2 -2
  5. package/iframe/js/elMarkupHelper.CsLyPjC1.js +278 -0
  6. package/iframe/js/{iframe-eblock.body.cd84d2b9.js → iframe-eblock.body.7594857d.js} +1 -1
  7. package/iframe/js/iframe-eblock.js +2 -2
  8. package/iframe/js/iframe.body.7594857d.js +129 -0
  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/{f9238279.js → 16612c9f.js} +1 -1
  13. package/static/core/{33588588.js → 1e160f23.js} +1 -1
  14. package/static/core/{b5da36e5.js → 23e22cd2.js} +1 -1
  15. package/static/core/25562e5d.js +1 -0
  16. package/static/core/2633e871.js +1 -0
  17. package/static/core/{58c51568.js → 2740933f.js} +3 -3
  18. package/static/core/{d4513bf2.js → 2a8b14c0.js} +1 -1
  19. package/static/core/{36ffa6e4.js → 2ae78ac6.js} +1 -1
  20. package/static/core/{4bfd6086.js → 31e587ab.js} +1 -1
  21. package/static/core/3454ca99.js +1 -0
  22. package/static/core/36071466.js +2 -0
  23. package/static/core/{18b86617.js → 3cd95e0a.js} +1 -1
  24. package/static/core/{6c59da82.js → 3e1acefc.js} +1 -1
  25. package/static/core/3e80379e.js +4 -0
  26. package/static/core/{209e2686.js → 3f3feb86.js} +1 -1
  27. package/static/core/{39d9efa2.js → 4adb5ee9.js} +7 -7
  28. package/static/core/4e07805d.js +19 -0
  29. package/static/core/{3a605273.js → 4f8847e6.js} +1 -1
  30. package/static/core/519dfcc7.js +4 -0
  31. package/static/core/{a6303cb2.js → 53c22855.js} +1 -1
  32. package/static/core/{f4e70f7f.js → 552f7d30.js} +2 -2
  33. package/static/core/{c571b1dd.js → 5de3cd2c.js} +1 -1
  34. package/static/core/{5cac7517.js → 66853555.js} +1 -1
  35. package/static/core/{b1edf5c5.js → 69688fad.js} +6 -6
  36. package/static/core/713de1e1.js +1 -0
  37. package/static/core/{de3f9bdc.js → 7ae6cf52.js} +7 -7
  38. package/static/core/{57948058.js → 80907514.js} +1 -1
  39. package/static/core/{5d315649.js → 86f73ee9.js} +1 -1
  40. package/static/core/{6100ddd2.js → 8b9a4f49.js} +1 -1
  41. package/static/core/9348ac64.js +1 -0
  42. package/static/core/9da6c313.js +1 -0
  43. package/static/core/{5f0554d8.js → a004861a.js} +1 -1
  44. package/static/core/aeec5659.js +1 -0
  45. package/static/core/b492a9b0.js +93 -0
  46. package/static/core/{e37ba502.js → b6418818.js} +1 -1
  47. package/static/core/{9d0b4233.js → beebdf4d.js} +1 -1
  48. package/static/core/c03fc17e.js +7 -0
  49. package/static/core/c3344bbc.js +1 -0
  50. package/static/core/{e0282a25.js → c3544cf4.js} +1 -1
  51. package/static/core/{4224aefb.js → cc4458d8.js} +1 -1
  52. package/static/core/{87edea39.js → d551e71d.js} +1 -1
  53. package/static/core/{ce93456f.js → d5be6857.js} +1 -1
  54. package/static/core/{605267a0.js → d6c7eb44.js} +1 -1
  55. package/static/core/d9ff5568.js +1 -0
  56. package/static/core/{f4b9148a.js → e2710fd3.js} +1 -1
  57. package/static/core/{2209544a.js → e7c7173a.js} +3 -3
  58. package/static/core/{1dfb486f.js → e81b521f.js} +3 -3
  59. package/static/core/{92fb4e07.js → e94e24b5.js} +1 -1
  60. package/static/core/{1a17438d.js → e98b0c61.js} +2 -2
  61. package/static/core/{e35eca7d.js → ec079650.js} +1 -1
  62. package/static/core/ecc4d431.js +1 -0
  63. package/static/core/f0f20c47.js +1 -0
  64. package/static/core/{550803ff.js → f5d42c73.js} +1 -1
  65. package/static/core/{ff7d14e8.js → f674f125.js} +1 -1
  66. package/static/core/{5a21c667.js → f97efb0a.js} +1 -1
  67. package/static/core/{b4e4af36.js → ff0af9ff.js} +1 -1
  68. package/static/esm/1d0ba521.js +1 -0
  69. package/static/umd-runtime/{runtime.DAdCc3rx.js → runtime.8gUPr0nE.js} +1 -1
  70. package/useblocks-core.7594857d.js +875 -0
  71. package/useblocks-esm.js +12 -12
  72. package/{useblocks-po.cd84d2b9.js → useblocks-po.7594857d.js} +1 -1
  73. package/useblocks.js +13 -13
  74. package/vendor/useblocks-ui-kit/package.json +1 -1
  75. package/iframe/js/elMarkupHelper.CgToMPJX.js +0 -278
  76. package/iframe/js/iframe.body.cd84d2b9.js +0 -129
  77. package/static/core/1c9acdf4.js +0 -1
  78. package/static/core/243ff5f9.js +0 -19
  79. package/static/core/555c0dda.js +0 -1
  80. package/static/core/5661be7c.js +0 -7
  81. package/static/core/8f57829b.js +0 -1
  82. package/static/core/91d46f38.js +0 -4
  83. package/static/core/a8634edd.js +0 -2
  84. package/static/core/bff175af.js +0 -4
  85. package/static/core/c6114314.js +0 -93
  86. package/static/esm/c5372168.js +0 -1
  87. package/useblocks-core.cd84d2b9.js +0 -875
package/CHANGELOG.md CHANGED
@@ -6,12 +6,55 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
 
7
7
  ---
8
8
 
9
- ## [Unreleased]
9
+ ## [1.3.16] - 2026-11-19
10
10
 
11
11
  ### Added
12
12
 
13
+ - `Document.transaction` — several plugin edits as a single undo step
13
14
  - "Start with a blank email" button on the canvas: appears when the email has nothing to show and brings back the scaffold, so
14
15
  blocks can be inserted again
16
+ - Columns: column borders can be dragged with the mouse. When wrapping on mobile is off, columns and gaps
17
+ on phones are set in percent, fill the full width together and keep the desktop proportions. The mobile
18
+ form gets a column bar, "Horizontal gap, %" and a "Same as desktop" button
19
+ - `blocksCommonSource` plugin option: where to take common blocks from when `handleReadCommonBlocks`
20
+ returns nothing — `gallery` (the gallery) or `project` (project blocks marked as "Template")
21
+ - "Template" flag in block settings: such a block is shown among the project's common blocks
22
+ - File Manager: "Compress images" switch under the "Upload file" button. When it is off, an image within
23
+ the limits is uploaded without quality loss; a file over the limit is always compressed
24
+ - File Manager: icon search in the interface language — Russian, Ukrainian, German, French, Spanish,
25
+ Portuguese, Italian and Polish
26
+
27
+ ### Fixed
28
+
29
+ - Plugin: `handleReadCommonBlocks` and `handleReadTemplateBlocks` are called again; a block from the save
30
+ dialog is no longer copied to our server; an integrator block with a matching ID stays updatable; a
31
+ common block from the server is not offered for update — the dialog suggests creating a new one
32
+ - Plugin startup: an old offline key starts the editor again in closed environments; `reset()` with a user
33
+ change no longer hangs or carries over the previous user's profile; an authorization failure rejects
34
+ `init()` again; `init()` and `reset()` called mid-startup no longer break the editor
35
+ - A custom social icon is visible on the canvas and keeps its proportions; designer icons in templates are
36
+ not replaced with the standard ones when the block is edited; transparent WebP keeps its transparency.
37
+ Images with several URL parameters show on the canvas again
38
+ - The "Link" button with no word under the cursor inserts the text "Link" instead of an invisible empty link
39
+ - A Cyrillic email subject in EML export displays correctly in Outlook
40
+ - Undo and redo: undo puts text back into an emptied editor and moves the cursor to the right block, the
41
+ selection comes back with the step, redo is no longer lost after dragging and internal edits
42
+ - Deleting text: deleting all text or the last character, Backspace next to a non-breaking space and Delete
43
+ in an empty block keep the cursor and no longer erase the preheader or nearby conditional comments
44
+ - Outlook markup: Outlook comments follow changes to email, table and column widths; VML backgrounds, VML
45
+ buttons and visibility comments are moved, copied and deleted together with their element
46
+ - Email code: editing an attribute or moving an element no longer rewrites the rest of the markup; foreign
47
+ page elements and dark preview leftovers no longer get into the email; `rgb()` colors in visible text stay
48
+ as they are; CSS rules are no longer merged into a shared selector list
49
+ - The typograph no longer touches email attributes and in "This element" mode edits only the selection
50
+ - Responsiveness: the switch leaves hand-set classes alone and repairs classes broken by an earlier
51
+ switch-off
52
+ - AMP emails: hovering and clicking elements work, and the cursor is placed
53
+ - Editing a selection that contains two `<style>` tags no longer freezes the Chrome tab
54
+ - Dragging a block no longer gets stuck when the mouse button is released outside the canvas; an element
55
+ dropped with a block keeps its styles
56
+ - Block library: previews no longer run scripts from block markup or pull linked styles into the editor,
57
+ preview fonts no longer flicker, and a block without markup shows a placeholder instead of "undefined"
15
58
 
16
59
  ### Changed
17
60
 
@@ -20,6 +63,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
20
63
  - New plugin email: `show()` without `code` opens the updated scaffold code, and an empty `subject` becomes the
21
64
  "New email" subject in the interface language. This subject goes to `<title>` and to `getEmail()`
22
65
  - The "Blank template" card creates an email without a server request and without parent blocks
66
+ - "Template blocks" in the plugin are shown only with an explicit `blocksTemplateEnabled: true`
67
+ - File Manager: icon search dictionaries sit next to the icon sets (`search-<language>.json`). If the sets are
68
+ served from your own directory (`iconSetsUrl`), put the dictionaries there too — without them search
69
+ works in English only
70
+
71
+ ---
23
72
 
24
73
  ## [1.3.5] - 2026-11-03
25
74
 
@@ -11,8 +11,8 @@
11
11
  "src": "../packages/html2amp/rules.json",
12
12
  "isDynamicEntry": true
13
13
  },
14
- "_elMarkupHelper.CgToMPJX.js": {
15
- "file": "js/elMarkupHelper.CgToMPJX.js",
14
+ "_elMarkupHelper.CsLyPjC1.js": {
15
+ "file": "js/elMarkupHelper.CsLyPjC1.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.CgToMPJX.js"
29
+ "_elMarkupHelper.CsLyPjC1.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.CgToMPJX.js"
38
+ "_elMarkupHelper.CsLyPjC1.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=cd84d2b9");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=cd84d2b9" data-ns="__useblocks__"></script>
6
+ __useblocks__.bootCanvas("./js/iframe-eblock.js?v=7594857d");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=7594857d" 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=cd84d2b9");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=cd84d2b9" data-ns="__useblocks__"></script>
6
+ __useblocks__.bootCanvas("./js/iframe.js?v=7594857d");</script>
7
+ <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=7594857d" data-ns="__useblocks__"></script>
8
8
  </head>
9
9
  <body>
10
10
  </body>