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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/4adb5ee9.js",["require","exports","module","static/core/2ff39ddf.js","static/core/3fb28e82.js"],function(g,$,L){const T=g("./2ff39ddf.js"),u=g("./3fb28e82.js");function w(t,e){const d={bytes:0,hidden:0,byKind:{}};for(const n of e)if(!(n.finishedAt>t.end||n.finishedAt<t.start)){if(n.transferred===null){d.hidden+=1;continue}d.bytes+=n.transferred,d.byKind[n.kind]=(d.byKind[n.kind]??0)+n.transferred}return d}var y="core:module:";function v(t){const e=[...t].sort((n,r)=>n.start-r.start),d=[];return e.forEach(n=>{const r=d[d.length-1];if(r&&n.start<=r.end){r.end=Math.max(r.end,n.end);return}d.push({start:n.start,end:n.end})}),d}function A(t,e){const d=Math.max(0,t.end-t.start),n=v(e.map(r=>({start:Math.max(t.start,r.startedAt),end:Math.min(t.end,r.finishedAt)})).filter(r=>r.end>r.start)).reduce((r,o)=>r+(o.end-o.start),0);return{networkMs:n,quietMs:d-n}}function P(t){const e=new Map;t.forEach(n=>{if(!n.phase.startsWith(y))return;const r=n.phase.slice(12),o=r.lastIndexOf(":");if(o<=0)return;const s=r.slice(0,o),a=r.slice(o+1),i=e.get(s)??{};a==="ask"?(i.ask=n.at,n.parent&&(i.parent=n.parent)):a==="loaded"?i.loaded=n.at:a==="deps"?i.deps=n.at:a==="ready"&&(i.ready=n.at),e.set(s,i)});const d=[];return e.forEach((n,r)=>{if(n.ask===void 0||n.ready===void 0)return;const o=n.ask,s=n.ready,a=n.deps,i=n.loaded;d.push({id:r,parent:n.parent,askedAt:o,loadedAt:i,depsAt:a,readyAt:s,networkMs:i===void 0?0:i-o,waitingMs:a===void 0?0:a-(i??o),executionMs:a===void 0?0:s-a})}),d}function S(t){const e=new Map;t.forEach(o=>{if(o.parent===void 0)return;const s=e.get(o.parent)??[];s.push(o),e.set(o.parent,s)});let d=t.filter(o=>o.parent===void 0).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);const n=[],r=new Set;for(;d&&!r.has(d.id);)r.add(d.id),n.push(d),d=(e.get(d.id)??[]).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);return n}function E(t,e){const d=u.detectMount(t),n=u.requiredPhases(d),r=new Map;t.forEach(l=>{n.includes(l.phase)&&!r.has(l.phase)&&r.set(l.phase,l.at)});const o=[...r.entries()].sort((l,h)=>l[1]-h[1]),s=q(d),a=o.findIndex(([l])=>l===s),i=a===-1?o:o.slice(0,a+1);return i.slice(1).map(([l,h],m)=>{const[x,p]=i[m],f=A({start:p,end:h},e);return{from:x,to:l,startedAt:p,endedAt:h,durationMs:h-p,networkMs:f.networkMs,quietMs:f.quietMs}})}function q(t){return t==="headless"?u.PHASES.showEnd:u.PHASES.canvasSettled}function M(t,e){const d=t.find(n=>n.phase===e);return d?d.at:null}function j(t,e){return t===null?e:e===null?t:Math.max(t,e)}function z(t,e){const d=u.missingRequiredPhases(t),n=d.length===0,r=t.reduce((p,f)=>p===null||f.at<p?f.at:p,null),o=u.detectMount(t),s=M(t,u.PHASES.canvasPainted),a=o==="headless"?M(t,u.PHASES.showEnd):j(M(t,u.PHASES.canvasSettled),M(t,u.PHASES.editorVisible)),i=P(t),l=i.reduce((p,f)=>p+f.executionMs,0),h=r!==null&&n&&(o==="headless"||s!==null),m=o==="headless"?a:s,x=h&&m!==null?A({start:r,end:m},e):{networkMs:0,quietMs:0};return{startedAt:r,paintedAt:s,settledAt:a,totalMs:h&&s!==null?s-r:null,settledMs:h&&a!==null?a-r:null,settleGapMs:h&&a!==null&&s!==null?a-s:null,segments:h?E(t,e):[],complete:n,missingPhases:d,networkMs:x.networkMs,quietMs:x.quietMs,moduleExecutionMs:l,criticalPath:S(i),transferBeforeFrame:h&&r!==null&&m!==null?w({start:r,end:m},e):{bytes:0,hidden:0,byKind:{}}}}function c(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}function H(){return"dev"}function k(t,e){return{mode:H(),summary:z(t,e),marks:[...t],resources:[...e]}}function b(t){return t===null?"—":`${Math.round(t)} мс`}function _(t){return t==="dev"?"dev-сервер — AMD-ядро не работает, слой модулей пуст":t==="build"?"собранная версия":"режим неизвестен"}function R(t){const{summary:e}=t,d=e.complete?'<span class="ok">прогон полный</span>':'<span class="bad">прогон неполный — в сравнение не идёт</span>',n=e.missingPhases.length===0?"":`<p class="bad">Не хватает фаз: ${e.missingPhases.map(c).join(", ")}</p>`;return`
|
|
2
2
|
<header>
|
|
3
3
|
<h1>Куда ушло время до показа письма</h1>
|
|
4
4
|
<p class="mode">${c(_(t.mode))}</p>
|
|
@@ -31,7 +31,7 @@ __useblocks__.define("static/core/3d8e2478.js",["require","exports","module","st
|
|
|
31
31
|
</tr>`}).join("")}</tbody>
|
|
32
32
|
<tfoot><tr><th>Сумма</th><th>${Math.round(e)}</th><th>100%</th><th></th><th></th><th></th></tr></tfoot>
|
|
33
33
|
</table>
|
|
34
|
-
</section>`}function
|
|
34
|
+
</section>`}function I(t){return t.length===0?"<section><h2>Критический путь по модулям ядра</h2><p>Отметок модулей нет.</p></section>":`
|
|
35
35
|
<section>
|
|
36
36
|
<h2>Критический путь по модулям ядра</h2>
|
|
37
37
|
<p class="hint">Звено с малыми «едет» и «исполняется», но поздним «попросили», — это «поздно попросили».</p>
|
|
@@ -47,7 +47,7 @@ __useblocks__.define("static/core/3d8e2478.js",["require","exports","module","st
|
|
|
47
47
|
<td>${Math.round(e.readyAt)}</td>
|
|
48
48
|
</tr>`).join("")}</tbody>
|
|
49
49
|
</table>
|
|
50
|
-
</section>`}function
|
|
50
|
+
</section>`}function K(t){const{resources:e,summary:d}=t;if(e.length===0)return"<section><h2>Водопад ресурсов</h2><p>Ресурсов не записано.</p></section>";const n=d.startedAt??Math.min(...e.map(s=>s.startedAt)),r=Math.max(d.paintedAt??0,...e.map(s=>s.finishedAt)),o=Math.max(1,r-n);return`
|
|
51
51
|
<section>
|
|
52
52
|
<h2>Водопад ресурсов</h2>
|
|
53
53
|
<table class="waterfall"><tbody>${[...e].sort((s,a)=>s.startedAt-a.startedAt).map(s=>{const a=(s.startedAt-n)/o*100,i=Math.max(.4,(s.finishedAt-s.startedAt)/o*100),l=s.transferred===null?"размер скрыт":s.fromCache?"из кэша":`${Math.round(s.transferred/1024)} КБ`;return`
|
|
@@ -69,7 +69,7 @@ __useblocks__.define("static/core/3d8e2478.js",["require","exports","module","st
|
|
|
69
69
|
<td>${c(d.parent??"")}</td>
|
|
70
70
|
</tr>`).join("")}</tbody>
|
|
71
71
|
</table>
|
|
72
|
-
</section>`}var
|
|
72
|
+
</section>`}var C=`
|
|
73
73
|
body { font: 14px/1.5 system-ui, sans-serif; margin: 24px; color: #222; background: #fff; }
|
|
74
74
|
h1 { font-size: 20px; margin: 0 0 4px; }
|
|
75
75
|
h2 { font-size: 16px; margin: 28px 0 8px; }
|
|
@@ -97,13 +97,13 @@ __useblocks__.define("static/core/3d8e2478.js",["require","exports","module","st
|
|
|
97
97
|
<head>
|
|
98
98
|
<meta charset="utf-8">
|
|
99
99
|
<title>Диагностика загрузки</title>
|
|
100
|
-
<style>${
|
|
100
|
+
<style>${C}</style>
|
|
101
101
|
</head>
|
|
102
102
|
<body>
|
|
103
103
|
${R(t)}
|
|
104
104
|
${F(t.summary.segments)}
|
|
105
|
-
${
|
|
106
|
-
${
|
|
105
|
+
${I(t.summary.criticalPath)}
|
|
106
|
+
${K(t)}
|
|
107
107
|
${O(t.marks)}
|
|
108
108
|
<section>
|
|
109
109
|
<h2>Выгрузка JSON</h2>
|