useblocks 1.3.11-dev.3 → 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.
Files changed (85) hide show
  1. package/README.md +1 -1
  2. package/compat-globals.js +1 -1
  3. package/iframe/.vite/manifest.json +4 -4
  4. package/iframe/css/sandbox-dark.css +1 -1
  5. package/iframe/css/sandbox-light.css +1 -1
  6. package/iframe/css/sandbox.css +47 -17
  7. package/iframe/{iframe-eblock.5751e42b.html → iframe-eblock.cd84d2b9.html} +2 -2
  8. package/iframe/{iframe.5751e42b.html → iframe.cd84d2b9.html} +2 -2
  9. package/iframe/js/elMarkupHelper.CgToMPJX.js +278 -0
  10. package/iframe/js/{iframe-eblock.body.5751e42b.js → iframe-eblock.body.cd84d2b9.js} +1 -1
  11. package/iframe/js/iframe-eblock.js +2 -2
  12. package/iframe/js/{iframe.body.5751e42b.js → iframe.body.cd84d2b9.js} +2 -2
  13. package/iframe/js/iframe.js +2 -2
  14. package/package.json +1 -1
  15. package/runtime/react/index.js +1 -1
  16. package/static/core/{e037a420.js → 18b86617.js} +1 -1
  17. package/static/core/{1c7a6d45.js → 1a17438d.js} +1 -1
  18. package/static/core/{11dadbc0.js → 1c9acdf4.js} +1 -1
  19. package/static/core/{1c06cdb7.js → 1dfb486f.js} +1 -1
  20. package/static/core/{b55ae539.js → 209e2686.js} +1 -1
  21. package/static/core/{71727873.js → 2209544a.js} +1 -1
  22. package/static/core/243ff5f9.js +19 -0
  23. package/static/core/{516f59e7.js → 33588588.js} +1 -1
  24. package/static/core/{66113a18.js → 36ffa6e4.js} +1 -1
  25. package/static/core/{3d8e2478.js → 39d9efa2.js} +1 -1
  26. package/static/core/{c13b3d4f.js → 3a605273.js} +1 -1
  27. package/static/core/{e7e888c1.js → 4224aefb.js} +1 -1
  28. package/static/core/{3b65bc50.js → 4bfd6086.js} +1 -1
  29. package/static/core/{d9d5b376.js → 550803ff.js} +1 -1
  30. package/static/core/{b59c63d2.js → 555c0dda.js} +1 -1
  31. package/static/core/{2bed6a18.js → 5661be7c.js} +1 -1
  32. package/static/core/{bda2d9d5.js → 57948058.js} +1 -1
  33. package/static/core/{ef035f6b.js → 58c51568.js} +1 -1
  34. package/static/core/{3eeb4445.js → 5a21c667.js} +1 -1
  35. package/static/core/{76543cb2.js → 5cac7517.js} +1 -1
  36. package/static/core/{513e36bd.js → 5d315649.js} +1 -1
  37. package/static/core/{62855b97.js → 5f0554d8.js} +1 -1
  38. package/static/core/{347b0a0b.js → 605267a0.js} +1 -1
  39. package/static/core/{aee84e3d.js → 6100ddd2.js} +1 -1
  40. package/static/core/{94f9492b.js → 6c59da82.js} +1 -1
  41. package/static/core/{58dca22f.js → 87edea39.js} +1 -1
  42. package/static/core/{1c3a16fc.js → 8f57829b.js} +1 -1
  43. package/static/core/{8845436d.js → 91d46f38.js} +2 -2
  44. package/static/core/{d2cf6b4b.js → 92fb4e07.js} +1 -1
  45. package/static/core/{467344d4.js → 9d0b4233.js} +1 -1
  46. package/static/core/{dd008ec2.js → a8634edd.js} +1 -1
  47. package/static/core/{261a3a42.js → b4e4af36.js} +1 -1
  48. package/static/core/{c0a3f7d0.js → bff175af.js} +2 -2
  49. package/static/core/{e698ec22.js → c571b1dd.js} +1 -1
  50. package/static/core/{b9f553d7.js → c6114314.js} +1 -1
  51. package/static/core/{f8585ce6.js → ce93456f.js} +1 -1
  52. package/static/core/{f1b8515a.js → d4513bf2.js} +1 -1
  53. package/static/core/{d343e46e.js → de3f9bdc.js} +1 -1
  54. package/static/core/{8406bab5.js → e0282a25.js} +1 -1
  55. package/static/core/{7e329493.js → e35eca7d.js} +1 -1
  56. package/static/core/{11009bdf.js → e37ba502.js} +1 -1
  57. package/static/core/{257745eb.js → f4b9148a.js} +1 -1
  58. package/static/core/{6172f09a.js → f4e70f7f.js} +1 -1
  59. package/static/core/{5da33486.js → f9238279.js} +1 -1
  60. package/static/esm/delivery-libs.js +1 -1
  61. package/static/umd-runtime/{Cvm7BS4_.js → CyULsN57.js} +31 -31
  62. package/static/umd-runtime/DdK5piwW.js +1 -0
  63. package/static/umd-runtime/delivery-libs.BJHA1QD4.js +1 -0
  64. package/static/umd-runtime/runtime.DAdCc3rx.js +1 -0
  65. package/static/umd-runtime/{ui-kit.CoVNet0I.js → ui-kit.BZ4Y4jr2.js} +2 -2
  66. package/{useblocks-core.5751e42b.js → useblocks-core.cd84d2b9.js} +22 -22
  67. package/useblocks-esm.js +12 -12
  68. package/{useblocks-po.5751e42b.js → useblocks-po.cd84d2b9.js} +1 -1
  69. package/useblocks.d.ts +1 -1
  70. package/useblocks.js +12 -12
  71. package/vendor/useblocks-ui-kit/es/components/Custom/FormBackgroundSettings/index.js +3 -3
  72. package/vendor/useblocks-ui-kit/es/components/Custom/FormBorderRadiusInputs/index.js +6 -6
  73. package/vendor/useblocks-ui-kit/es/components/Custom/FormBoxShadowInputs/index.js +5 -5
  74. package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormPaddingInputs/index.js +69 -64
  75. package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormSizeInputs/index.js +5 -5
  76. package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormTypographyFields/index.js +5 -5
  77. package/vendor/useblocks-ui-kit/es/components/Custom/Inputs/DraggableInputNumber/index.js +41 -35
  78. package/vendor/useblocks-ui-kit/es/components/Layout/Splitter/index.js +5 -0
  79. package/vendor/useblocks-ui-kit/index.js +12 -11
  80. package/vendor/useblocks-ui-kit/package.json +1 -1
  81. package/iframe/js/elMarkupHelper.BpDXO-hq.js +0 -279
  82. package/static/core/ed65b5c3.js +0 -19
  83. package/static/umd-runtime/B7h7P1Np.js +0 -1
  84. package/static/umd-runtime/delivery-libs.BymXnePv.js +0 -1
  85. package/static/umd-runtime/runtime.Lgfb59e0.js +0 -1
@@ -11,8 +11,8 @@
11
11
  "src": "../packages/html2amp/rules.json",
12
12
  "isDynamicEntry": true
13
13
  },
14
- "_elMarkupHelper.BpDXO-hq.js": {
15
- "file": "js/elMarkupHelper.BpDXO-hq.js",
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.BpDXO-hq.js"
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.BpDXO-hq.js"
38
+ "_elMarkupHelper.CgToMPJX.js"
39
39
  ]
40
40
  },
41
41
  "js/typograf/typograf.all.js": {
@@ -298,7 +298,7 @@ img[src*='<!--']::after {
298
298
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
299
299
  }
300
300
 
301
- .em-element-block-add > i:hover {
301
+ .em-element-block-add-icons > i:hover {
302
302
  color: #000;
303
303
  background: #dee0e2;
304
304
  }
@@ -194,7 +194,7 @@ img[src*='<!--']::after {
194
194
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
195
195
  }
196
196
 
197
- .em-element-block-add > i:hover {
197
+ .em-element-block-add-icons > i:hover {
198
198
  color: #000;
199
199
  background: #dee0e2;
200
200
  }
@@ -682,8 +682,10 @@ tinymce *.em-code[em-edit='active'] {
682
682
 
683
683
  .em-element-block-add {
684
684
  min-width: 30px;
685
- width: 126px;
686
- display: flex;
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
- height: 24px;
771
- font-size: 20px;
772
- line-height: 18px;
773
- top: 1px;
774
- position: relative;
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
- display: none !important;
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=5751e42b");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=5751e42b" data-ns="__useblocks__"></script>
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=5751e42b");</script>
7
- <script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=5751e42b" data-ns="__useblocks__"></script>
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>