@divkitframework/divkit 31.1.0 → 31.2.0
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/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-hydratable.js +12 -12
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-hydratable.js +13 -13
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-hydratable.mjs +12176 -10838
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/esm/client.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var td = Object.defineProperty;
|
|
|
2
2
|
var rd = (e, r, t) => r in e ? td(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var gr = (e, r, t) => rd(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
4
|
/*!
|
|
5
|
-
DivKit v31.
|
|
5
|
+
DivKit v31.2.0
|
|
6
6
|
https://github.com/divkit/divkit
|
|
7
7
|
@licence Apache-2.0
|
|
8
8
|
*/
|
package/dist/esm/server.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var xl = Object.defineProperty;
|
|
|
2
2
|
var El = (r, t, e) => t in r ? xl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var Er = (r, t, e) => El(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
/*!
|
|
5
|
-
DivKit v31.
|
|
5
|
+
DivKit v31.2.0
|
|
6
6
|
https://github.com/divkit/divkit
|
|
7
7
|
@licence Apache-2.0
|
|
8
8
|
*/
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";var xl=Object.defineProperty;var El=(r,t,e)=>t in r?xl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var Er=(r,t,e)=>El(r,typeof t!="symbol"?t+"":t,e);/*!
|
|
2
|
-
DivKit v31.
|
|
2
|
+
DivKit v31.2.0
|
|
3
3
|
https://github.com/divkit/divkit
|
|
4
4
|
@licence Apache-2.0
|
|
5
5
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function j(){}const kl=r=>r;function Cl(r){return r()}function Sl(){return Object.create(null)}function ss(r){r.forEach(Cl)}function Fl(r){return typeof r=="function"}function Vl(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}function m(r,...t){if(r==null){for(const i of t)i(void 0);return j}const e=r.subscribe(...t);return e.unsubscribe?()=>e.unsubscribe():e}function Il(r){let t;return m(r,e=>t=e)(),t}function Dl(r,t,e){return r.set(e),t}function Tl(r,t,{bubbles:e=!1,cancelable:i=!1}={}){return new CustomEvent(r,{detail:t,bubbles:e,cancelable:i})}let kn;function xn(r){kn=r}function bo(){if(!kn)throw new Error("Function called outside component initialization");return kn}function Fr(r){bo().$$.on_destroy.push(r)}function Ml(){const r=bo();return(t,e,{cancelable:i=!1}={})=>{const n=r.$$.callbacks[t];if(n){const s=Tl(t,e,{cancelable:i});return n.slice().forEach(l=>{l.call(r,s)}),!s.defaultPrevented}return!0}}function Gi(r,t){return bo().$$.context.set(r,t),t}function vr(r){return bo().$$.context.get(r)}const bn=[],Vs=[];let Yn=[];const Is=[],Ma=Promise.resolve();let Ro=!1;function Pl(){Ro||(Ro=!0,Ma.then(zl))}function wi(){return Pl(),Ma}function Ol(r){Yn.push(r)}const Fo=new Set;let en=0;function zl(){if(en!==0)return;const r=kn;do{try{for(;en<bn.length;){const t=bn[en];en++,xn(t),Nl(t.$$)}}catch(t){throw bn.length=0,en=0,t}for(xn(null),bn.length=0,en=0;Vs.length;)Vs.pop()();for(let t=0;t<Yn.length;t+=1){const e=Yn[t];Fo.has(e)||(Fo.add(e),e())}Yn.length=0}while(bn.length);for(;Is.length;)Is.pop()();Ro=!1,Fo.clear(),xn(r)}function Nl(r){if(r.fragment!==null){r.update(),ss(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(Ol)}}function Bl(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}const Rl=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Ll=new Set([...Rl]),Hl=/[&"<]/g,Wl=/[&<]/g;function rt(r,t=!1){const e=String(r),i=t?Hl:Wl;i.lastIndex=0;let n="",s=0;for(;i.test(e);){const l=i.lastIndex-1,c=e[l];n+=e.substring(s,l)+(c==="&"?"&":c==='"'?""":"<"),s=l+1}return n+e.substring(s)}const Ul=/^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;function Ds(r){return Ul.test(r)||r.toLowerCase()==="!doctype"}const Gl=/[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;function ln(r,t){const e=Object.assign({},...r);if(t){const n=t.classes,s=t.styles;n&&(e.class==null?e.class=n:e.class+=" "+n),s&&(e.style==null?e.style=Lo(s):e.style=Lo(Jl(e.style,s)))}let i="";return Object.keys(e).forEach(n=>{if(Gl.test(n))return;const s=e[n];s===!0?i+=" "+n:Ll.has(n.toLowerCase())?s&&(i+=" "+n):s!=null&&(i+=` ${n}="${s}"`)}),i}function Jl(r,t){const e={};for(const i of r.split(";")){const n=i.indexOf(":"),s=i.slice(0,n).trim(),l=i.slice(n+1).trim();s&&(e[s]=l)}for(const i in t){const n=t[i];n?e[i]=n:delete e[i]}return e}function Mr(r){return typeof r=="string"||r&&typeof r=="object"?rt(r,!0):r}function cn(r){const t={};for(const e in r)t[e]=Mr(r[e]);return t}function jr(r,t){r=Bl(r);let e="";for(let i=0;i<r.length;i+=1)e+=t(r[i],i);return e}const ql={$$render:()=>""};function Mt(r,t){if(!r||!r.$$render)throw t==="svelte:component"&&(t+=" this={...}"),new Error(`<${t}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${t}>.`);return r}let Vo;function ar(r){function t(e,i,n,s,l){const c=kn,g={on_destroy:Vo,context:new Map(l||(c?c.$$.context:[])),on_mount:[],before_update:[],after_update:[],callbacks:Sl()};xn({$$:g});const d=r(e,i,n,s);return xn(c),d}return{render:(e={},{$$slots:i={},context:n=new Map}={})=>{Vo=[];const s={title:"",head:"",css:new Set},l=t(s,e,{},i,n);return ss(Vo),{html:l,css:{code:Array.from(s.css).map(c=>c.code).join(`
|