useblocks 1.1.103 → 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.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -0
- package/iframe/.vite/manifest.json +13 -25
- package/iframe/css/sandbox.css +11 -9
- package/iframe/{iframe-eblock.b65837b7.html → iframe-eblock.facd6272.html} +2 -2
- package/iframe/{iframe.b65837b7.html → iframe.facd6272.html} +2 -2
- package/iframe/js/elMarkupHelper.JLkggsgY.js +279 -0
- package/iframe/js/iframe-eblock.body.facd6272.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.facd6272.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/iframe/js/{typograf.all.BbXdyfMT.js → typograf.all.CGEpDoct.js} +12 -12
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{69cf8e2c.js → 19e01848.js} +1 -1
- package/static/core/{36448ec6.js → 23ecb0b0.js} +1 -1
- package/static/core/{aa3448fe.js → 2865a0ae.js} +1 -1
- package/static/core/{6b904901.js → 32813d7b.js} +3 -3
- package/static/core/{8288f720.js → 34804219.js} +1 -1
- package/static/core/{5c36eb62.js → 38ea9ef6.js} +1 -1
- package/static/core/{defdbce4.js → 42ef449b.js} +1 -1
- package/static/core/{ff7d14e8.js → 49be45c4.js} +1 -1
- package/static/core/{63f26591.js → 4d698359.js} +1 -1
- package/static/core/{29993987.js → 4ec0aff8.js} +1 -1
- package/static/core/{a6303cb2.js → 501559e1.js} +1 -1
- package/static/core/622a2220.js +2 -0
- package/static/core/{4c8d0155.js → 66619f08.js} +6 -6
- package/static/core/{68650ff2.js → 83a7fff3.js} +11 -11
- package/static/core/{ed8a3337.js → 87e91b5e.js} +1 -1
- package/static/core/{f8819751.js → 8a452a94.js} +2 -2
- package/static/core/{5d7aff4e.js → 9b50835f.js} +1 -1
- package/static/core/{3501b0a6.js → a77f31cb.js} +1 -1
- package/static/core/{2a85f6f1.js → aa65675c.js} +3 -3
- package/static/core/{47bde21f.js → c6bde249.js} +1 -1
- package/static/core/{fd8197a8.js → c9cebb1a.js} +1 -1
- package/static/core/cc70a22f.js +4 -0
- package/static/core/{a013bc08.js → d8e8d436.js} +1 -1
- package/static/core/da678146.js +28 -0
- package/static/core/{b7d1fefc.js → e86ffdcb.js} +1 -1
- package/static/core/{50c87f51.js → e8a44736.js} +1 -1
- package/static/core/ebcc0451.js +1 -0
- package/static/core/{7b850506.js → f369973d.js} +1 -1
- package/static/core/{20098caa.js → f50ba1e0.js} +1 -1
- package/static/core/f89490a1.js +7 -0
- package/static/core/{756874c6.js → fe5390c8.js} +1 -1
- package/static/core/{d74756b9.js → feb1ffa4.js} +1 -1
- package/static/esm/1e463a71.js +1 -0
- package/static/esm/delivery-libs.js +1 -1
- package/static/umd-runtime/delivery-libs.BymXnePv.js +1 -0
- package/static/umd-runtime/{runtime.D3aKaKTc.js → runtime.DeDiWiET.js} +1 -1
- package/useblocks-core.facd6272.js +859 -0
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.b65837b7.js → useblocks-po.facd6272.js} +1 -1
- package/useblocks.d.ts +144 -13
- package/useblocks.js +12 -12
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/discussHandlers.B36tbVEC.js +0 -88
- package/iframe/js/iframe-eblock.body.b65837b7.js +0 -233
- package/iframe/js/iframe.body.b65837b7.js +0 -319
- package/iframe/js/rolldown-runtime.BRlIiq3h.js +0 -1
- package/static/core/348ec5fd.js +0 -7
- package/static/core/41dd8b28.js +0 -28
- package/static/core/c9a4d1ef.js +0 -4
- package/static/esm/668ee399.js +0 -1
- package/static/umd-runtime/delivery-libs.3Svr0avG.js +0 -1
- package/useblocks-core.b65837b7.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,26 +11,13 @@
|
|
|
11
11
|
"src": "../packages/html2amp/rules.json",
|
|
12
12
|
"isDynamicEntry": true
|
|
13
13
|
},
|
|
14
|
-
"
|
|
15
|
-
"file": "js/
|
|
16
|
-
"name": "
|
|
17
|
-
"imports": [
|
|
18
|
-
"_rolldown-runtime.BRlIiq3h.js"
|
|
19
|
-
],
|
|
14
|
+
"_elMarkupHelper.JLkggsgY.js": {
|
|
15
|
+
"file": "js/elMarkupHelper.JLkggsgY.js",
|
|
16
|
+
"name": "elMarkupHelper",
|
|
20
17
|
"dynamicImports": [
|
|
18
|
+
"../packages/html2amp/rules.json",
|
|
21
19
|
"../node_modules/darkreader/darkreader.mjs",
|
|
22
|
-
"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"_rolldown-runtime.BRlIiq3h.js": {
|
|
26
|
-
"file": "js/rolldown-runtime.BRlIiq3h.js",
|
|
27
|
-
"name": "rolldown-runtime"
|
|
28
|
-
},
|
|
29
|
-
"_typograf.all.BbXdyfMT.js": {
|
|
30
|
-
"file": "js/typograf.all.BbXdyfMT.js",
|
|
31
|
-
"name": "typograf.all",
|
|
32
|
-
"imports": [
|
|
33
|
-
"_rolldown-runtime.BRlIiq3h.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
|
-
"
|
|
43
|
-
"_typograf.all.BbXdyfMT.js"
|
|
29
|
+
"_elMarkupHelper.JLkggsgY.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
|
-
"
|
|
53
|
-
"_discussHandlers.B36tbVEC.js"
|
|
54
|
-
],
|
|
55
|
-
"dynamicImports": [
|
|
56
|
-
"_typograf.all.BbXdyfMT.js"
|
|
38
|
+
"_elMarkupHelper.JLkggsgY.js"
|
|
57
39
|
]
|
|
40
|
+
},
|
|
41
|
+
"js/typograf/typograf.all.js": {
|
|
42
|
+
"file": "js/typograf.all.CGEpDoct.js",
|
|
43
|
+
"name": "typograf.all",
|
|
44
|
+
"src": "js/typograf/typograf.all.js",
|
|
45
|
+
"isDynamicEntry": true
|
|
58
46
|
}
|
|
59
47
|
}
|
package/iframe/css/sandbox.css
CHANGED
|
@@ -136,7 +136,8 @@ br[data-mce-bogus='1'] {
|
|
|
136
136
|
display: none;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
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(--ub-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(--ub-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(--ub-colorPrimary);
|
|
203
204
|
}
|
|
204
205
|
|
|
@@ -1930,8 +1931,9 @@ img[src*='<!--']::after {
|
|
|
1930
1931
|
width: 40px;
|
|
1931
1932
|
}
|
|
1932
1933
|
|
|
1933
|
-
|
|
1934
|
-
|
|
1934
|
+
/* Canvas width only: a phone's own screen is always narrow and would force the mobile layout in desktop view. */
|
|
1935
|
+
@media only screen and (width <= 480px) {
|
|
1936
|
+
table.em-block-insert-empty:is(:empty, :has(> tbody:only-child:empty)) {
|
|
1935
1937
|
border-color: var(--ub-colorInfo);
|
|
1936
1938
|
background-image: linear-gradient(
|
|
1937
1939
|
-45deg,
|
|
@@ -1945,7 +1947,7 @@ img[src*='<!--']::after {
|
|
|
1945
1947
|
) !important;
|
|
1946
1948
|
}
|
|
1947
1949
|
|
|
1948
|
-
table.em-block-insert-empty:empty::before {
|
|
1950
|
+
table.em-block-insert-empty:is(:empty, :has(> tbody:only-child:empty))::before {
|
|
1949
1951
|
color: var(--ub-colorInfo);
|
|
1950
1952
|
}
|
|
1951
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.__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=facd6272");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=facd6272" 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=facd6272");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=facd6272" data-ns="__useblocks__"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
</body>
|