useblocks 1.1.102 → 1.1.104
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 +33 -0
- package/README.md +1 -0
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox.css +2 -1
- package/iframe/{iframe-eblock.1c4e77a0.html → iframe-eblock.a1be77d6.html} +2 -2
- package/iframe/{iframe.1c4e77a0.html → iframe.a1be77d6.html} +2 -2
- package/iframe/js/discussHandlers.CcQmhTtJ.js +88 -0
- package/iframe/js/{iframe-eblock.body.1c4e77a0.js → iframe-eblock.body.a1be77d6.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.1c4e77a0.js → iframe.body.a1be77d6.js} +71 -71
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{64be048b.js → 1c7109ca.js} +1 -1
- package/static/core/{6a671446.js → 2929f344.js} +1 -1
- package/static/core/{847338a8.js → 319ebaa7.js} +1 -1
- package/static/core/394d0d8b.js +28 -0
- package/static/core/{448f03f8.js → 3acb2fc4.js} +1 -1
- package/static/core/{ca4dad9b.js → 3cacdac0.js} +3 -3
- package/static/core/{ae22b7f6.js → 3fbfc93f.js} +1 -1
- package/static/core/{5d849eef.js → 485d0f3d.js} +1 -1
- package/static/core/{d7666ad0.js → 559147cb.js} +1 -1
- package/static/core/{b7aa9fec.js → 5d8f3441.js} +1 -1
- package/static/core/{1b68c0f0.js → 5d9ff4d5.js} +1 -1
- package/static/core/{b653f9c5.js → 727176a9.js} +1 -1
- package/static/core/{3fb172c7.js → 73d6d76e.js} +1 -1
- package/static/core/89044032.js +7 -0
- package/static/core/{91e07171.js → 8aef9403.js} +1 -1
- package/static/core/{53103851.js → 8f653f65.js} +2 -2
- package/static/core/{3ec42945.js → a11fe298.js} +1 -1
- package/static/core/{11b821ed.js → b17bcc2f.js} +1 -1
- package/static/core/{44d2c046.js → beafdd63.js} +1 -1
- package/static/core/{26cc947d.js → c7ba829b.js} +1 -1
- package/static/core/{cc180859.js → cbde9d66.js} +1 -1
- package/static/core/{a98b6879.js → cf249009.js} +1 -1
- package/static/core/{f1ee2bef.js → cf79afe3.js} +1 -1
- package/static/core/{a2e57e5f.js → f422ba3d.js} +1 -1
- package/static/core/{f323e60e.js → f7fba0d2.js} +1 -1
- package/static/umd-runtime/{runtime.2paN090q.js → runtime.UD7TEOVN.js} +1 -1
- package/useblocks-core.a1be77d6.js +859 -0
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.1c4e77a0.js → useblocks-po.a1be77d6.js} +1 -1
- package/useblocks.d.ts +38 -6
- package/useblocks.js +11 -11
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/discussHandlers.Xh4-JUcT.js +0 -88
- package/static/core/5e7c221f.js +0 -28
- package/static/core/edf450a1.js +0 -7
- package/useblocks-core.1c4e77a0.js +0 -859
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,39 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [1.1.104] - 2026-10-13
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Phones and tablets: after sign-in the editor is shown in full, as on a desktop, scaled down to the
|
|
14
|
+
screen — no sideways scrolling and no dialogs off-screen, pinch zoom still works. Sign-in and
|
|
15
|
+
sign-up pages keep their mobile layout
|
|
16
|
+
- Touch in the editor on a phone: the canvas lays the email out by its own width, not by the narrow
|
|
17
|
+
phone screen (columns no longer stack in desktop view), padding and image handles can be dragged with
|
|
18
|
+
a finger, email selection checkboxes are visible without hover, the left menu is not stretched over the
|
|
19
|
+
whole screen in portrait, and the right panel scrolls in landscape
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- A tab opened before a new version was deployed no longer ends up without the canvas and panels: it
|
|
24
|
+
checks the version and reloads only when the build has really changed
|
|
25
|
+
- Editing the code of an email with AMP components (carousel, accordion) keeps their state and no
|
|
26
|
+
longer rolls the canvas back; a single parse error no longer undoes the user's edits
|
|
27
|
+
- A `<` inside CSS or JSON strings in `<style>` and `<script>` no longer cuts the style off on the
|
|
28
|
+
next load of the email
|
|
29
|
+
- Fast typing in the settings panel and in the code editor no longer lags or crashes the panel,
|
|
30
|
+
including the button link field
|
|
31
|
+
- The canvas width handle no longer collapses the canvas when the mouse leaves it mid-drag
|
|
32
|
+
- The support chat recognizes the new user after signing out and in under another account
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- On touch devices the plugin scales itself down to its container when the container is narrower than
|
|
37
|
+
1340px: the editor and the canvas are shown in full, the integrator's page and its viewport stay
|
|
38
|
+
untouched. Desktop behavior is unchanged
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
9
42
|
## [1.1.101] - 2026-10-12
|
|
10
43
|
|
|
11
44
|
### Added
|
package/README.md
CHANGED
|
@@ -538,6 +538,7 @@ Editor UI tuning. Use **`instance.setConfig`**, **`instance.updateConfig`**, **`
|
|
|
538
538
|
| elementFormEnabled | Element AMP form. | true |
|
|
539
539
|
| | | |
|
|
540
540
|
| imageCenterLocalUploadEnabled | Local file upload field in Image Center. | true |
|
|
541
|
+
| imageCenterInsertUrlAsIs | A link from the Image Center URL field (image and background) goes into the email as is: the image is neither downloaded nor uploaded to storage, `handleLoadImage` is not called. A pasted link goes in right away, a typed one on Enter. Stock and GIF tabs are not affected; with `imageCenterFileManagerView: true` the field is absent and the option has no effect. | false |
|
|
541
542
|
| deferEditorChrome | Build the header controls and the right-hand panel right after the first frame of the page: the email appears sooner, the header and panel a moment later. `false` turns it off, `{ header: false }` or `{ panel: false }` turns off one part. | true |
|
|
542
543
|
| imageCenterStockEnabled | Stock photos tab. | true |
|
|
543
544
|
| imageCenterGifEnabled | Stock GIFs tab. | true |
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"src": "../packages/html2amp/rules.json",
|
|
12
12
|
"isDynamicEntry": true
|
|
13
13
|
},
|
|
14
|
-
"_discussHandlers.
|
|
15
|
-
"file": "js/discussHandlers.
|
|
14
|
+
"_discussHandlers.CcQmhTtJ.js": {
|
|
15
|
+
"file": "js/discussHandlers.CcQmhTtJ.js",
|
|
16
16
|
"name": "discussHandlers",
|
|
17
17
|
"imports": [
|
|
18
18
|
"_rolldown-runtime.BRlIiq3h.js"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"src": "iframe-eblock.html",
|
|
40
40
|
"isEntry": true,
|
|
41
41
|
"imports": [
|
|
42
|
-
"_discussHandlers.
|
|
42
|
+
"_discussHandlers.CcQmhTtJ.js",
|
|
43
43
|
"_typograf.all.BbXdyfMT.js"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"isEntry": true,
|
|
51
51
|
"imports": [
|
|
52
52
|
"_rolldown-runtime.BRlIiq3h.js",
|
|
53
|
-
"_discussHandlers.
|
|
53
|
+
"_discussHandlers.CcQmhTtJ.js"
|
|
54
54
|
],
|
|
55
55
|
"dynamicImports": [
|
|
56
56
|
"_typograf.all.BbXdyfMT.js"
|
package/iframe/css/sandbox.css
CHANGED
|
@@ -1930,7 +1930,8 @@ img[src*='<!--']::after {
|
|
|
1930
1930
|
width: 40px;
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
|
-
|
|
1933
|
+
/* Canvas width only: a phone's own screen is always narrow and would force the mobile layout in desktop view. */
|
|
1934
|
+
@media only screen and (width <= 480px) {
|
|
1934
1935
|
table.em-block-insert-empty:empty {
|
|
1935
1936
|
border-color: var(--ub-colorInfo);
|
|
1936
1937
|
background-image: linear-gradient(
|
|
@@ -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=
|
|
7
|
-
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=
|
|
6
|
+
__useblocks__.bootCanvas("./js/iframe-eblock.js?v=a1be77d6");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=a1be77d6" 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=
|
|
7
|
-
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=
|
|
6
|
+
__useblocks__.bootCanvas("./js/iframe.js?v=a1be77d6");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=a1be77d6" data-ns="__useblocks__"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
</body>
|