useblocks 1.3.11-dev.3 → 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.
- package/CHANGELOG.md +50 -1
- package/README.md +1 -1
- package/compat-globals.js +1 -1
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox-dark.css +1 -1
- package/iframe/css/sandbox-light.css +1 -1
- package/iframe/css/sandbox.css +47 -17
- package/iframe/{iframe-eblock.5751e42b.html → iframe-eblock.7594857d.html} +2 -2
- package/iframe/{iframe.5751e42b.html → iframe.7594857d.html} +2 -2
- package/iframe/js/elMarkupHelper.CsLyPjC1.js +278 -0
- package/iframe/js/{iframe-eblock.body.5751e42b.js → iframe-eblock.body.7594857d.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.7594857d.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{5da33486.js → 16612c9f.js} +1 -1
- package/static/core/{516f59e7.js → 1e160f23.js} +1 -1
- package/static/core/{b5da36e5.js → 23e22cd2.js} +1 -1
- package/static/core/25562e5d.js +1 -0
- package/static/core/2633e871.js +1 -0
- package/static/core/{ef035f6b.js → 2740933f.js} +3 -3
- package/static/core/{f1b8515a.js → 2a8b14c0.js} +1 -1
- package/static/core/{66113a18.js → 2ae78ac6.js} +1 -1
- package/static/core/{3b65bc50.js → 31e587ab.js} +1 -1
- package/static/core/3454ca99.js +1 -0
- package/static/core/36071466.js +2 -0
- package/static/core/{e037a420.js → 3cd95e0a.js} +1 -1
- package/static/core/{94f9492b.js → 3e1acefc.js} +1 -1
- package/static/core/3e80379e.js +4 -0
- package/static/core/{b55ae539.js → 3f3feb86.js} +1 -1
- package/static/core/{3d8e2478.js → 4adb5ee9.js} +7 -7
- package/static/core/4e07805d.js +19 -0
- package/static/core/{c13b3d4f.js → 4f8847e6.js} +1 -1
- package/static/core/519dfcc7.js +4 -0
- package/static/core/{a6303cb2.js → 53c22855.js} +1 -1
- package/static/core/{6172f09a.js → 552f7d30.js} +2 -2
- package/static/core/{e698ec22.js → 5de3cd2c.js} +1 -1
- package/static/core/{76543cb2.js → 66853555.js} +1 -1
- package/static/core/{b1edf5c5.js → 69688fad.js} +6 -6
- package/static/core/713de1e1.js +1 -0
- package/static/core/{d343e46e.js → 7ae6cf52.js} +7 -7
- package/static/core/{bda2d9d5.js → 80907514.js} +1 -1
- package/static/core/{513e36bd.js → 86f73ee9.js} +1 -1
- package/static/core/{aee84e3d.js → 8b9a4f49.js} +1 -1
- package/static/core/9348ac64.js +1 -0
- package/static/core/9da6c313.js +1 -0
- package/static/core/{62855b97.js → a004861a.js} +1 -1
- package/static/core/aeec5659.js +1 -0
- package/static/core/b492a9b0.js +93 -0
- package/static/core/{11009bdf.js → b6418818.js} +1 -1
- package/static/core/{467344d4.js → beebdf4d.js} +1 -1
- package/static/core/c03fc17e.js +7 -0
- package/static/core/c3344bbc.js +1 -0
- package/static/core/{8406bab5.js → c3544cf4.js} +1 -1
- package/static/core/{e7e888c1.js → cc4458d8.js} +1 -1
- package/static/core/{58dca22f.js → d551e71d.js} +1 -1
- package/static/core/{f8585ce6.js → d5be6857.js} +1 -1
- package/static/core/{347b0a0b.js → d6c7eb44.js} +1 -1
- package/static/core/d9ff5568.js +1 -0
- package/static/core/{257745eb.js → e2710fd3.js} +1 -1
- package/static/core/{71727873.js → e7c7173a.js} +3 -3
- package/static/core/{1c06cdb7.js → e81b521f.js} +3 -3
- package/static/core/{d2cf6b4b.js → e94e24b5.js} +1 -1
- package/static/core/{1c7a6d45.js → e98b0c61.js} +2 -2
- package/static/core/{7e329493.js → ec079650.js} +1 -1
- package/static/core/ecc4d431.js +1 -0
- package/static/core/f0f20c47.js +1 -0
- package/static/core/{d9d5b376.js → f5d42c73.js} +1 -1
- package/static/core/{ff7d14e8.js → f674f125.js} +1 -1
- package/static/core/{3eeb4445.js → f97efb0a.js} +1 -1
- package/static/core/{261a3a42.js → ff0af9ff.js} +1 -1
- package/static/esm/1d0ba521.js +1 -0
- package/static/esm/delivery-libs.js +1 -1
- package/static/umd-runtime/{Cvm7BS4_.js → CyULsN57.js} +31 -31
- package/static/umd-runtime/DdK5piwW.js +1 -0
- package/static/umd-runtime/delivery-libs.BJHA1QD4.js +1 -0
- package/static/umd-runtime/runtime.8gUPr0nE.js +1 -0
- package/static/umd-runtime/{ui-kit.CoVNet0I.js → ui-kit.BZ4Y4jr2.js} +2 -2
- package/useblocks-core.7594857d.js +875 -0
- package/useblocks-esm.js +12 -12
- package/{useblocks-po.5751e42b.js → useblocks-po.7594857d.js} +1 -1
- package/useblocks.d.ts +1 -1
- package/useblocks.js +13 -13
- package/vendor/useblocks-ui-kit/es/components/Custom/FormBackgroundSettings/index.js +3 -3
- package/vendor/useblocks-ui-kit/es/components/Custom/FormBorderRadiusInputs/index.js +6 -6
- package/vendor/useblocks-ui-kit/es/components/Custom/FormBoxShadowInputs/index.js +5 -5
- package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormPaddingInputs/index.js +69 -64
- package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormSizeInputs/index.js +5 -5
- package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormTypographyFields/index.js +5 -5
- package/vendor/useblocks-ui-kit/es/components/Custom/Inputs/DraggableInputNumber/index.js +41 -35
- package/vendor/useblocks-ui-kit/es/components/Layout/Splitter/index.js +5 -0
- package/vendor/useblocks-ui-kit/index.js +12 -11
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/elMarkupHelper.BpDXO-hq.js +0 -279
- package/iframe/js/iframe.body.5751e42b.js +0 -129
- package/static/core/11dadbc0.js +0 -1
- package/static/core/1c3a16fc.js +0 -1
- package/static/core/2bed6a18.js +0 -7
- package/static/core/8845436d.js +0 -4
- package/static/core/b59c63d2.js +0 -1
- package/static/core/b9f553d7.js +0 -93
- package/static/core/c0a3f7d0.js +0 -4
- package/static/core/dd008ec2.js +0 -2
- package/static/core/ed65b5c3.js +0 -19
- package/static/esm/c5372168.js +0 -1
- package/static/umd-runtime/B7h7P1Np.js +0 -1
- package/static/umd-runtime/delivery-libs.BymXnePv.js +0 -1
- package/static/umd-runtime/runtime.Lgfb59e0.js +0 -1
- package/useblocks-core.5751e42b.js +0 -875
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"src": "../packages/html2amp/rules.json",
|
|
12
12
|
"isDynamicEntry": true
|
|
13
13
|
},
|
|
14
|
-
"_elMarkupHelper.
|
|
15
|
-
"file": "js/elMarkupHelper.
|
|
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.
|
|
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.
|
|
38
|
+
"_elMarkupHelper.CsLyPjC1.js"
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"js/typograf/typograf.all.js": {
|
package/iframe/css/sandbox.css
CHANGED
|
@@ -682,8 +682,10 @@ tinymce *.em-code[em-edit='active'] {
|
|
|
682
682
|
|
|
683
683
|
.em-element-block-add {
|
|
684
684
|
min-width: 30px;
|
|
685
|
-
|
|
686
|
-
|
|
685
|
+
/* Label and buttons share one grid cell: the width fits the wider of them and does not change on hover. */
|
|
686
|
+
width: max-content;
|
|
687
|
+
display: grid;
|
|
688
|
+
align-items: center;
|
|
687
689
|
box-sizing: border-box;
|
|
688
690
|
text-align: center;
|
|
689
691
|
cursor: pointer;
|
|
@@ -697,7 +699,37 @@ tinymce *.em-code[em-edit='active'] {
|
|
|
697
699
|
direction: ltr;
|
|
698
700
|
height: 31px;
|
|
699
701
|
bottom: -31px;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.em-element-block-add > .em-element-block-add-plus,
|
|
705
|
+
.em-element-block-add > .em-element-block-add-icons {
|
|
706
|
+
grid-area: 1 / 1;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/* Buttons spread evenly across the label's width; the gaps between them pass clicks to the menu itself. */
|
|
710
|
+
.em-element-block-add-icons {
|
|
711
|
+
display: flex;
|
|
712
|
+
justify-content: space-evenly;
|
|
713
|
+
align-items: center;
|
|
714
|
+
gap: 2px;
|
|
715
|
+
visibility: hidden;
|
|
716
|
+
pointer-events: none;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.em-element-block-add-icons > i {
|
|
720
|
+
display: flex;
|
|
721
|
+
align-items: center;
|
|
700
722
|
justify-content: center;
|
|
723
|
+
padding: 0;
|
|
724
|
+
font-size: 18px;
|
|
725
|
+
width: 24px;
|
|
726
|
+
height: 24px;
|
|
727
|
+
border-radius: 3px;
|
|
728
|
+
pointer-events: auto;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.em-element-block-add:hover .em-element-block-add-icons {
|
|
732
|
+
visibility: visible;
|
|
701
733
|
}
|
|
702
734
|
|
|
703
735
|
.em-element-block-add.out-of-iframe {
|
|
@@ -723,7 +755,6 @@ tinymce *.em-code[em-edit='active'] {
|
|
|
723
755
|
position: absolute !important;
|
|
724
756
|
}
|
|
725
757
|
|
|
726
|
-
.em-element-block-add > i,
|
|
727
758
|
.em-element-img-change-group > i {
|
|
728
759
|
display: none;
|
|
729
760
|
padding: 0;
|
|
@@ -732,7 +763,6 @@ tinymce *.em-code[em-edit='active'] {
|
|
|
732
763
|
height: 24px;
|
|
733
764
|
}
|
|
734
765
|
|
|
735
|
-
.em-element-block-add:hover > i,
|
|
736
766
|
.em-element-img-change-group:hover > i {
|
|
737
767
|
border-radius: 3px;
|
|
738
768
|
display: flex;
|
|
@@ -745,7 +775,12 @@ tinymce *.em-code[em-edit='active'] {
|
|
|
745
775
|
}
|
|
746
776
|
|
|
747
777
|
.em-element-block-add-plus {
|
|
778
|
+
display: flex;
|
|
779
|
+
align-items: center;
|
|
780
|
+
justify-content: center;
|
|
781
|
+
gap: 4px;
|
|
748
782
|
padding: 0 3px;
|
|
783
|
+
white-space: nowrap;
|
|
749
784
|
font:
|
|
750
785
|
12px/20px -apple-system,
|
|
751
786
|
BlinkMacSystemFont,
|
|
@@ -761,23 +796,18 @@ tinymce *.em-code[em-edit='active'] {
|
|
|
761
796
|
'Noto Color Emoji';
|
|
762
797
|
}
|
|
763
798
|
|
|
764
|
-
/*
|
|
765
|
-
* Плюс стоит **рядом с подписью**, поэтому строчный: правило `.em-element-block-add svg` выше
|
|
766
|
-
* целится в другой SVG этой полосы и делает его блочным, а здесь это уронило бы подпись на
|
|
767
|
-
* следующую строку. Прежде плюс был тегом `<i>` и под то правило не попадал вовсе.
|
|
768
|
-
*/
|
|
799
|
+
/* The plus is a flex item next to the label, so it centres on the text line without offsets. */
|
|
769
800
|
.em-element-block-add-plus .em-icon {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
display: inline-block;
|
|
776
|
-
vertical-align: middle;
|
|
801
|
+
display: block;
|
|
802
|
+
flex: none;
|
|
803
|
+
width: 16px;
|
|
804
|
+
height: 16px;
|
|
805
|
+
font-size: 16px;
|
|
777
806
|
}
|
|
778
807
|
|
|
808
|
+
/* The label only turns invisible on hover: it keeps holding the menu's width. */
|
|
779
809
|
.em-element-block-add:hover .em-element-block-add-plus {
|
|
780
|
-
|
|
810
|
+
visibility: hidden;
|
|
781
811
|
}
|
|
782
812
|
|
|
783
813
|
.em-element-img-change > i {
|
|
@@ -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=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=
|
|
7
|
-
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=
|
|
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>
|