useblocks 1.3.11-dev.2 → 1.3.14
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/README.md +2 -2
- 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.fd4347fc.html → iframe-eblock.cd84d2b9.html} +2 -2
- package/iframe/{iframe.fd4347fc.html → iframe.cd84d2b9.html} +2 -2
- package/iframe/js/elMarkupHelper.CgToMPJX.js +278 -0
- package/iframe/js/{iframe-eblock.body.fd4347fc.js → iframe-eblock.body.cd84d2b9.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.fd4347fc.js → iframe.body.cd84d2b9.js} +2 -2
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{3ca0af3d.js → 18b86617.js} +1 -1
- package/static/core/{d48488c4.js → 1a17438d.js} +1 -1
- package/static/core/{846cd365.js → 1c9acdf4.js} +1 -1
- package/static/core/{31d22827.js → 1dfb486f.js} +1 -1
- package/static/core/{78500214.js → 209e2686.js} +1 -1
- package/static/core/{7934ed7e.js → 2209544a.js} +1 -1
- package/static/core/243ff5f9.js +19 -0
- package/static/core/{579d4466.js → 33588588.js} +1 -1
- package/static/core/{1fcc0627.js → 36ffa6e4.js} +1 -1
- package/static/core/{bbf48eb9.js → 39d9efa2.js} +1 -1
- package/static/core/{4181d334.js → 3a605273.js} +1 -1
- package/static/core/{13a6a2d3.js → 4224aefb.js} +1 -1
- package/static/core/{2865f716.js → 4bfd6086.js} +1 -1
- package/static/core/{3a5bea82.js → 550803ff.js} +1 -1
- package/static/core/{8d0796c1.js → 555c0dda.js} +1 -1
- package/static/core/5661be7c.js +7 -0
- package/static/core/{b0edd3a1.js → 57948058.js} +1 -1
- package/static/core/{66b856ca.js → 58c51568.js} +1 -1
- package/static/core/{5fd45688.js → 5a21c667.js} +1 -1
- package/static/core/{c33a9c36.js → 5cac7517.js} +1 -1
- package/static/core/{c5128299.js → 5d315649.js} +1 -1
- package/static/core/{12963ed5.js → 5f0554d8.js} +1 -1
- package/static/core/605267a0.js +1 -0
- package/static/core/{153a5a27.js → 6100ddd2.js} +1 -1
- package/static/core/{e37da9a7.js → 6c59da82.js} +1 -1
- package/static/core/{9d57053a.js → 87edea39.js} +1 -1
- package/static/core/{31da6da0.js → 8f57829b.js} +1 -1
- package/static/core/{925b75fb.js → 91d46f38.js} +2 -2
- package/static/core/{2d58a94b.js → 92fb4e07.js} +1 -1
- package/static/core/{17c8ebc4.js → 9d0b4233.js} +1 -1
- package/static/core/{cc4657d9.js → a8634edd.js} +1 -1
- package/static/core/{939d4a62.js → b4e4af36.js} +1 -1
- package/static/core/{9916b298.js → bff175af.js} +2 -2
- package/static/core/{f8f52e6d.js → c571b1dd.js} +1 -1
- package/static/core/{37bf0f7a.js → c6114314.js} +1 -1
- package/static/core/{ae251a52.js → ce93456f.js} +1 -1
- package/static/core/{dda98b73.js → d4513bf2.js} +1 -1
- package/static/core/{983a408d.js → de3f9bdc.js} +1 -1
- package/static/core/{70749936.js → e0282a25.js} +1 -1
- package/static/core/{e9281a4c.js → e35eca7d.js} +1 -1
- package/static/core/{6ec347ff.js → e37ba502.js} +1 -1
- package/static/core/{ab741434.js → f4b9148a.js} +1 -1
- package/static/core/{752288e6.js → f4e70f7f.js} +1 -1
- package/static/core/{9438888a.js → f9238279.js} +1 -1
- package/static/esm/{f97f42d1.js → c5372168.js} +1 -1
- 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.DAdCc3rx.js +1 -0
- package/static/umd-runtime/{ui-kit.CoVNet0I.js → ui-kit.BZ4Y4jr2.js} +2 -2
- package/useblocks-core.cd84d2b9.js +875 -0
- package/useblocks-esm.js +12 -12
- package/{useblocks-po.fd4347fc.js → useblocks-po.cd84d2b9.js} +1 -1
- package/useblocks.d.ts +3 -3
- 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.DLCHSWwj.js +0 -279
- package/static/core/4f5add14.js +0 -1
- package/static/core/68e393e4.js +0 -19
- package/static/core/f126c14c.js +0 -7
- package/static/umd-runtime/B7h7P1Np.js +0 -1
- package/static/umd-runtime/delivery-libs.BymXnePv.js +0 -1
- package/static/umd-runtime/runtime.CQCs2kHH.js +0 -1
- package/useblocks-core.fd4347fc.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.CgToMPJX.js": {
|
|
15
|
+
"file": "js/elMarkupHelper.CgToMPJX.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.CgToMPJX.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.CgToMPJX.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=cd84d2b9");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=cd84d2b9" 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=cd84d2b9");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=cd84d2b9" data-ns="__useblocks__"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
</body>
|