@lytjs/renderer 4.1.0 → 5.0.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/README.md +204 -0
- package/dist/dom.cjs +1 -1
- package/dist/dom.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/miniapp.cjs +21 -5
- package/dist/miniapp.mjs +21 -5
- package/dist/native.cjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/ssr.cjs +1 -1
- package/dist/ssr.mjs +1 -1
- package/dist/types/dom/dom-ops.d.ts.map +1 -1
- package/dist/types/dom/dom-renderer.d.ts +3 -3
- package/dist/types/dom/dom-renderer.d.ts.map +1 -1
- package/dist/types/dom/patch-props.d.ts +2 -32
- package/dist/types/dom/patch-props.d.ts.map +1 -1
- package/dist/types/miniapp/index.d.ts +8 -0
- package/dist/types/miniapp/index.d.ts.map +1 -1
- package/dist/types/miniapp/miniapp-compiler.d.ts +269 -0
- package/dist/types/miniapp/miniapp-compiler.d.ts.map +1 -0
- package/dist/types/miniapp/miniapp-event-bridge.d.ts +255 -0
- package/dist/types/miniapp/miniapp-event-bridge.d.ts.map +1 -0
- package/dist/types/miniapp/miniapp-lifecycle.d.ts +224 -0
- package/dist/types/miniapp/miniapp-lifecycle.d.ts.map +1 -0
- package/dist/types/miniapp/miniapp-renderer.d.ts.map +1 -1
- package/dist/types/miniapp/miniapp-utils.d.ts +168 -0
- package/dist/types/miniapp/miniapp-utils.d.ts.map +1 -0
- package/dist/types/miniapp/shared-constants.d.ts +28 -0
- package/dist/types/miniapp/shared-constants.d.ts.map +1 -0
- package/dist/types/native/native-renderer.d.ts.map +1 -1
- package/dist/types/renderer-interfaces.d.ts +19 -19
- package/dist/types/renderer-interfaces.d.ts.map +1 -1
- package/dist/types/shared/abstract-renderer.d.ts +74 -0
- package/dist/types/shared/abstract-renderer.d.ts.map +1 -0
- package/dist/types/ssr/hydration.d.ts +1 -16
- package/dist/types/ssr/hydration.d.ts.map +1 -1
- package/dist/types/ssr/ssr-renderer.d.ts +9 -24
- package/dist/types/ssr/ssr-renderer.d.ts.map +1 -1
- package/dist/types/vapor/index.d.ts +1 -1
- package/dist/types/vapor/index.d.ts.map +1 -1
- package/dist/types/vapor/vapor-compiler.d.ts +9 -0
- package/dist/types/vapor/vapor-compiler.d.ts.map +1 -1
- package/dist/types/vapor/vapor-component.d.ts +8 -1
- package/dist/types/vapor/vapor-component.d.ts.map +1 -1
- package/dist/types/vapor/vapor-reactive.d.ts +27 -4
- package/dist/types/vapor/vapor-reactive.d.ts.map +1 -1
- package/dist/types/vapor/vapor-renderer.d.ts +4 -2
- package/dist/types/vapor/vapor-renderer.d.ts.map +1 -1
- package/dist/types/vnode.d.ts +76 -7
- package/dist/types/vnode.d.ts.map +1 -1
- package/dist/vapor.cjs +1 -1
- package/dist/vapor.mjs +1 -1
- package/package.json +4 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/vapor.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{registerDOMOperations as ye}from"@lytjs/vdom";var N=(s=>(s[s.ELEMENT=1]="ELEMENT",s[s.FUNCTIONAL_COMPONENT=2]="FUNCTIONAL_COMPONENT",s[s.STATEFUL_COMPONENT=4]="STATEFUL_COMPONENT",s[s.TEXT_CHILDREN=8]="TEXT_CHILDREN",s[s.ARRAY_CHILDREN=16]="ARRAY_CHILDREN",s[s.SLOTS_CHILDREN=32]="SLOTS_CHILDREN",s))(N||{}),w=(d=>(d[d.TEXT=1]="TEXT",d[d.CLASS=2]="CLASS",d[d.STYLE=4]="STYLE",d[d.PROPS=8]="PROPS",d[d.FULL_PROPS=16]="FULL_PROPS",d[d.STABLE_FRAGMENT=32]="STABLE_FRAGMENT",d[d.KEYED_FRAGMENT=64]="KEYED_FRAGMENT",d[d.UNKEYED_FRAGMENT=128]="UNKEYED_FRAGMENT",d[d.NEED_PATCH=256]="NEED_PATCH",d[d.DYNAMIC_SLOTS=512]="DYNAMIC_SLOTS",d[d.HOISTED=-1]="HOISTED",d[d.BAIL=-2]="BAIL",d))(w||{}),K=Symbol("Fragment"),Y=Symbol("Text"),$=Symbol("Comment");function h(e){return e.type===K}function E(e){return e.type===Y}function T(e){return e.type===$}function z(e,r){return e.type===r.type&&e.key===r.key}function k(e){return Array.isArray(e.dynamicChildren)}function X(e,r,o,t){if(o==="class")e.setClass(r,t);else if(o==="style")e.setStyle(r,t);else if(o.startsWith("on")||o.startsWith("@")){let n=o.startsWith("@")?o.slice(1).toLowerCase():o.slice(2).toLowerCase();e.addEventListener(r,n,t)}else o==="key"||o==="ref"||e.setAttribute(r,o,t)}function _(e,r,o,t,n){if(o==="class")e.setClass(r,t);else if(o==="style")e.setStyle(r,t||{});else if(o.startsWith("on")||o.startsWith("@")){let i=o.startsWith("@")?o.slice(1).toLowerCase():o.slice(2).toLowerCase();n&&e.removeEventListener(r,i,n),t&&e.addEventListener(r,i,t)}else e.setAttribute(r,o,t)}function M(e,r,o,t){for(let n in t){if(n==="key"||n==="ref")continue;let i=o[n],s=t[n];s!==i&&_(e,r,n,s,i)}for(let n in o)if(!(n==="key"||n==="ref")&&!(n in t))if(n==="class")e.setClass(r,"");else if(n==="style")e.setStyle(r,{});else if(n.startsWith("on")||n.startsWith("@")){let i=n.startsWith("@")?n.slice(1).toLowerCase():n.slice(2).toLowerCase();e.removeEventListener(r,i,o[n])}else e.removeAttribute(r,n)}function D(e,r,o,t,n,i){let{shapeFlag:s}=o;if(h(o)){se(e,r,o,t,n,i);return}if(E(o)){let a=e.createText(o.children);o.el=a,e.insert(t,a,n);return}if(T(o)){let a=e.createComment(o.children);o.el=a,e.insert(t,a,n);return}if(s&1){ie(e,r,o,t,n,i);return}if(s&6){ae(r,o,t,n,i);return}}function ie(e,r,o,t,n,i){let s=o.type,a=e.createElement(s);if(o.el=a,o.props)for(let p in o.props){let f=o.props[p];X(e,a,p,f)}let{shapeFlag:l,children:c}=o;l&8?a.textContent=c:l&16&&R(r,c,a,null,i),e.insert(t,a,n)}function R(e,r,o,t,n){for(let i=0;i<r.length;i++)e(null,r[i],o,t,n)}function se(e,r,o,t,n,i){let{children:s}=o,a=e.createComment("");e.insert(t,a,n),Array.isArray(s)&&s.length>0&&R(r,s,t,a,i),o.el=a,o.anchor=a}function ae(e,r,o,t,n){let i=r.component;i&&i.update&&i.update(),i&&i.subTree&&(e(null,i.subTree,o,t,i),r.el=i.subTree.el)}function Z(e,r,o,t){let{shapeFlag:n,children:i}=o;if(h(o)){if(Array.isArray(i))for(let s=0;s<i.length;s++)r(i[s],t);o.anchor&&o.anchor.parentNode&&e.remove(o.anchor);return}if(n&6){o.component&&o.component.subTree&&r(o.component.subTree,t);return}o.el&&e.remove(o.el)}function b(e,r){for(let o=0;o<r.length;o++)e(r[o])}import{patchKeyedChildren as le,patchUnkeyedChildren as pe}from"@lytjs/vdom";function A(e,r,o,t,n,i=null,s=null){if(t==null){o&&r(o,n);return}if(o===null){D(e,I(e,r),t,n,i,s);return}if(k(t)&&k(o)){ue(e,r,o,t,n,s);return}if(!z(o,t)){r(o,n),D(e,I(e,r),t,n,i,s);return}t.el=o.el,t.anchor=o.anchor;let{shapeFlag:a}=t;if(h(t)){fe(e,r,o,t,n,i,s);return}if(E(t)){t.children!==o.children&&(t.el.nodeValue=t.children);return}if(T(t)){t.children!==o.children&&(t.el.nodeValue=t.children);return}if(a&1){ce(e,r,o,t,s);return}if(a&6){me(o,t,s);return}}function I(e,r){return(o,t,n,i,s)=>{A(e,r,o,t,n,i,s)}}function ce(e,r,o,t,n=null){let i=t.el=o.el,s=o.props||{},a=t.props||{},{patchFlag:l,dynamicProps:c}=t;if(l&&l>0){if(l&1&&o.children!==t.children&&(i.textContent=t.children),l&2&&s.class!==a.class&&e.setClass(i,a.class),l&4&&s.style!==a.style&&e.setStyle(i,a.style||{}),l&8&&c)for(let p=0;p<c.length;p++){let f=c[p],d=s[f],u=a[f];u!==d&&_(e,i,f,u,d)}l&16&&M(e,i,s,a)}else M(e,i,s,a);(!l||!(l&1))&&G(e,r,o,t,i,null,n)}function G(e,r,o,t,n,i,s){let a=o.shapeFlag,l=t.shapeFlag,c=o.children,p=t.children;if(l&8){a&16&&b(r,c),c!==p&&(n.textContent=p);return}if(l&16){a&16?de(e,r,c,p,n,i,s):(a&8&&(n.textContent=""),R(I(e,r),p,n,i,s));return}p==null&&(a&8?n.textContent="":a&16&&b(r,c))}function de(e,r,o,t,n,i,s){t.every(l=>l.key!==null&&l.key!==void 0)&&o.every(l=>l.key!==null&&l.key!==void 0)?le(o,t,n,i,s,null,!1):pe(o,t,n,i,s,null,!1)}function fe(e,r,o,t,n,i,s){let a=o.children,l=t.children;Array.isArray(l)&&l.length>0?(G(e,r,o,t,n,i,s),t.el=l[0].el,t.anchor=l[l.length-1].el?e.nextSibling(l[l.length-1].el):i):Array.isArray(a)&&a.length>0&&l===null?(b(r,a),t.el=o.el,t.anchor=o.anchor):(t.el=o.el,t.anchor=o.anchor)}function ue(e,r,o,t,n,i){let s=o.dynamicChildren,a=t.dynamicChildren;for(let l=0;l<a.length;l++)A(e,r,s[l],a[l],n,null,i)}function me(e,r,o){r.component=e.component,r.el=e.el,r.component&&r.component.update&&r.component.update()}function ge(e){function r(n,i){Z(e,r,n,i)}ye({insert(n,i,s){e.insert(i,n,s)},createElement(n){return e.createElement(n)},createText(n){return e.createText(n)},setText(n,i){n.nodeValue=i},setElementText(n,i){n.textContent=i},remove(n){e.remove(n)},createComment(n){return e.createComment(n)},mount(n,i,s,a,l,c,p){t(null,n,i,s,a)},patch(n,i,s,a,l,c,p,f){t(n,i,s,a,l)},unmount(n,i,s,a){r(n)},move(n,i,s){e.insert(i,n.el,s)}});function t(n,i,s,a,l){A(e,r,n,i,s,a,l)}return{mount(n,i){i.nodeType===1&&(i.textContent=""),t(null,n,i,null,null)},patch(n,i,s){var a;t(n,i,s||((a=n.el)==null?void 0:a.parentNode),null,null)},unmount(n,i){r(n,i)}}}import{effect as V}from"@lytjs/reactivity/signal";function B(e,r){return V(()=>{let t=r();e.textContent=t==null?"":String(t)})}function L(e,r,o){return V(()=>{let n=o();e[r]=n})}function j(e,r,o){return V(()=>{let n=o();n==null||n===!1?e.removeAttribute(r):e.setAttribute(r,n===!0?"":String(n))})}function F(e,r){return V(()=>{let t=r();if(typeof t=="string")e.className=t;else if(Array.isArray(t))e.className=t.filter(Boolean).join(" ");else if(typeof t=="object"&&t!==null){let n=[],i=t;for(let s of Object.keys(i))i[s]&&n.push(s);e.className=n.join(" ")}else e.className=""})}function P(e,r,o){return e.addEventListener(r,o),()=>{e.removeEventListener(r,o)}}function q(e,r){return V(()=>{let t=r(),n=e;t?(n.style=n.style||{},n.style.display==="none"&&(n.style.display=""),n.hidden=!1):(n.style=n.style||{},n.style.display="none",n.hidden=!0)})}function J(e,r,o,t){let n=[],i=[],s=new Map,a=V(()=>{let l=r();if(!Array.isArray(l))return;let c=l.map((p,f)=>t?t(p,f):f);if(c.length===i.length){let p=!0;for(let f=0;f<c.length;f++)if(c[f]!==i[f]){p=!1;break}if(p){for(let f=0;f<l.length;f++){let d=o(l[f],f),u=n[f];u&&u.parentNode===e&&e.replaceChild(d,u),n[f]=d}return}}for(let p of n)p.parentNode===e&&e.removeChild(p);s.clear(),n=[],i=[];for(let p=0;p<l.length;p++){let f=o(l[p],p);e.appendChild(f),n.push(f),i.push(c[p]),s.set(c[p],f)}});return()=>{a();for(let l of n)l.parentNode===e&&e.removeChild(l);n=[],i=[],s.clear()}}var S=e=>{if(typeof document!="undefined")return document.createElement(e);throw new Error("[lyt:vapor] \u672A\u8BBE\u7F6E DOM \u5DE5\u5382\u51FD\u6570\u3002\u5728\u975E\u6D4F\u89C8\u5668\u73AF\u5883\u4E2D\u8BF7\u8C03\u7528 setVaporDOMFactory()")};function he(e){S=e}function v(){return S}function ee(e,r,...o){let t={tag:e,children:[],props:{},events:{},bindings:[]};if(r)for(let[n,i]of Object.entries(r))if(n.startsWith("on")&&typeof i=="function"&&!Q(i)){let s=n.slice(2).toLowerCase();t.events[s]=i}else Q(i)?n==="textContent"||n==="text"?t.bindings.push({type:"text",target:"textContent",signal:i}):n==="className"||n==="class"?t.bindings.push({type:"class",target:"className",signal:i}):n==="style"?t.bindings.push({type:"style",target:"style",signal:i}):t.bindings.push({type:"prop",target:n,signal:i}):t.props[n]=i;for(let n of o)typeof n=="string"?t.children.push({tag:"#text",children:[],props:{},events:{},bindings:[],text:n}):t.children.push(n);return t}function Q(e){if(typeof e!="function")return!1;let r=e;return!!(r._subscribe||r.set)&&!e.toString().startsWith("class")}function m(e){if(e.tag==="#text"){let t=S("#text");return t.textContent=e.text||"",t.nodeType=3,t}let r=S(e.tag);e.el=r;let o=r;for(let[t,n]of Object.entries(e.props))if(t==="style"&&typeof n=="object"&&n!==null)for(let[i,s]of Object.entries(n))o.style[i]=s;else t==="className"||t==="class"?r.className=String(n):o[t]=n;for(let t of e.bindings)t.signal&&(t.type==="text"?B(r,t.signal):t.type==="prop"?L(r,t.target,t.signal):t.type==="attr"?j(r,t.target,t.signal):t.type==="class"?F(r,t.signal):t.type==="style"&&L(r,"style",t.signal));for(let[t,n]of Object.entries(e.events))P(r,t,n);for(let t of e.children){let n=m(t);r.appendChild(n)}return r}function te(e,r,o){if(e.tag!==r.tag){let s=m(r);e.el&&e.el.parentNode===o&&o.removeChild(e.el),o.appendChild(s);return}let t=e.el||m(e);r.el=t;let n=t;for(let[s,a]of Object.entries(r.props))if(s==="style"&&typeof a=="object"&&a!==null)for(let[l,c]of Object.entries(a))n.style[l]=c;else s==="className"||s==="class"?t.className=String(a):n[s]=a;r.text!==void 0&&(t.textContent=r.text);for(let[s,a]of Object.entries(e.events))r.events[s]||t.removeEventListener(s,a);for(let[s,a]of Object.entries(r.events))e.events[s]!==a&&(e.events[s]&&t.removeEventListener(s,e.events[s]),t.addEventListener(s,a));let i=Math.max(e.children.length,r.children.length);for(let s=0;s<i;s++){let a=e.children[s],l=r.children[s];if(!a&&l){let c=m(l);t.appendChild(c)}else a&&!l?a.el&&a.el.parentNode===t&&t.removeChild(a.el):a&&l&&te(a,l,t)}}function U(e,r){let o=r.setup?r.setup():{};r.beforeMount&&r.beforeMount();let t;if(r.render){let i=r.render(o,ee);t=Array.isArray(i)?i:[i]}else t=[];let n=[];for(let i of t){let s=m(i);e.appendChild(s),n.push(s)}return r.mounted&&r.mounted(),()=>{r.beforeUnmount&&r.beforeUnmount();for(let i of n)e.removeChild(i);r.unmounted&&r.unmounted()}}function H(e){var t,n,i,s,a;let r={type:"fragment",children:[]},o=e.trim();for(;o.length>0;){let l=o.match(/^<([a-zA-Z][a-zA-Z0-9-]*)([\s\S]*?)(\/?)>/);if(l){let c=l[1],p=l[2],f=l[3]==="/",{props:d,events:u,directives:g}=Ne(p),y={type:"element",tag:c,props:d,events:u,directives:g,children:[]};if(o=o.slice(l[0].length),f){((t=r.children)!=null?t:[]).push(y);continue}let ne=`</${c}>`,O=Ve(o,c);if(O===-1)throw new Error(`[lyt:vapor:compiler] \u672A\u627E\u5230\u95ED\u5408\u6807\u7B7E: </${c}>`);let oe=o.slice(0,O);o=o.slice(O+ne.length);let re=H(oe);y.children=re.children||[],((n=r.children)!=null?n:[]).push(y)}else{let c=o.indexOf("<"),p;if(c===-1?(p=o,o=""):(p=o.slice(0,c),o=o.slice(c)),p.trim())if(p.includes("{{")){let f=ve(p);for(let d of f)d.type==="text"?((i=r.children)!=null?i:[]).push({type:"text",text:d.value}):((s=r.children)!=null?s:[]).push({type:"interpolation",expression:d.value})}else((a=r.children)!=null?a:[]).push({type:"text",text:p})}}return r}function Ve(e,r){let o=1,t=0,n=`<${r}`,i=`</${r}>`;for(;t<e.length&&o>0;){let s=e.indexOf(n,t),a=e.indexOf(i,t);if(a===-1)return-1;if(s!==-1&&s<a){let l=e[s+n.length];l===">"||l===" "||l==="/"?(o++,t=s+n.length):(t=a+i.length,o--)}else t=a+i.length,o--}return o===0?t-i.length:-1}function Ne(e){let r={},o={},t={},n=/([a-zA-Z@:][a-zA-Z0-9@:.-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,i;for(;(i=n.exec(e))!==null;){let s=i[1],a=i[2]||i[3];if(s.startsWith("on:")){let l=s.slice(3);o[l]=a}else if(s.startsWith(":")){let l=s.slice(1);r[l]=a}else if(s==="v-if")t.if=a;else if(s==="v-each"){let l=a.match(/^\s*(\w+)\s+in\s+(.+)\s*$/);l&&(t.each={item:l[1],expression:l[2]})}else r[s]=a}return{props:r,events:o,directives:t}}function ve(e){let r=[],o=/\{\{([\s\S]*?)\}\}/g,t=0,n;for(;(n=o.exec(e))!==null;)n.index>t&&r.push({type:"text",value:e.slice(t,n.index)}),r.push({type:"interpolation",value:n[1].trim()}),t=n.index+n[0].length;return t<e.length&&r.push({type:"text",value:e.slice(t)}),r}function W(e){let r=H(e);return{render:xe(r),ast:r}}function xe(e){return function(o){let t=v();return C(e,o,t)}}function C(e,r,o){var t,n;if(e.type==="fragment"){if(e.children&&e.children.length===1)return C(e.children[0],r,o);let i=o("div");if(i.nodeType=11,i.childNodes=i.childNodes||[],e.children)for(let s of e.children){let a=C(s,r,o);i.appendChild?i.appendChild(a):i.childNodes.push(a)}return i}if(e.type==="text"){let i=o("#text");return i.textContent=e.text||"",i.nodeType=3,i}if(e.type==="interpolation"){let i=o("span"),s=e.expression||"",a=x(r,s);return i.textContent=a!=null?String(a):"",i}if(e.type==="element"){if((t=e.directives)!=null&&t.each){let{item:a,expression:l}=e.directives.each,c=x(r,l),p=o("#fragment");if(p.childNodes=[],p.nodeType=11,Array.isArray(c))for(let f=0;f<c.length;f++){let d={...r,[a]:c[f],index:f},u=o(e.tag||"div");if(e.props)for(let[g,y]of Object.entries(e.props))g==="class"||g==="className"?u.className=y:u[g]=y;if(e.children)for(let g of e.children){let y=C(g,d,o);u.appendChild(y)}p.appendChild(u)}return p}let i=o(e.tag||"div"),s=i;if((n=e.directives)!=null&&n.if&&(x(r,e.directives.if)||(s.style=s.style||{},s.style.display="none",s.hidden=!0)),e.props)for(let[a,l]of Object.entries(e.props))if(a.startsWith(":")){let c=a.slice(1),p=x(r,l);s[c]=p}else a==="class"||a==="className"?i.className=l:s[a]=l;if(e.events)for(let[a,l]of Object.entries(e.events)){let c=x(r,l);typeof c=="function"&&i.addEventListener(a,c)}if(e.children)for(let a of e.children){let l=C(a,r,o);if(l.nodeType===11&&l.childNodes)for(let c of l.childNodes)i.appendChild(c);else i.appendChild(l)}return i}return o("div")}function x(e,r){let o=r.trim();if(/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(o)){let i=e[o];return typeof i=="function"&&!i.prototype?i():i}let t=o.split("."),n=e;for(let i of t){if(n==null)return;n=n[i],typeof n=="function"&&!n.prototype&&t.indexOf(i)<t.length-1&&(n=n())}return n}function Ce(e){return e}function Ee(e){let r=!1,o=null,t=null;return{mount(n){if(!r){if(typeof n=="string")if(typeof document!="undefined"){let i=document.querySelector(n);if(!i)throw new Error(`[lyt:vapor] \u672A\u627E\u5230\u6302\u8F7D\u76EE\u6807: ${n}`);t=i}else throw new Error("[lyt:vapor] \u5728\u975E\u6D4F\u89C8\u5668\u73AF\u5883\u4E2D\uFF0C\u8BF7\u76F4\u63A5\u4F20\u5165\u5BB9\u5668\u5143\u7D20");else t=n;o=U(t,e),r=!0}},unmount(){r&&(o&&(o(),o=null),r=!1,t=null)}}}function Te(e){let r=e.setup?e.setup():{};e.beforeMount&&e.beforeMount();let o;if(e.template){let{render:t}=W(e.template);o=t(r)}else if(e.render){let t=e.render(r,Re),n=Array.isArray(t)?t:[t];if(n.length===1)o=m(n[0]);else{o=v()("div");for(let s of n)o.appendChild(m(s))}}else throw new Error("[lyt:vapor] \u7EC4\u4EF6\u5FC5\u987B\u63D0\u4F9B template \u6216 render \u51FD\u6570");return e.mounted&&e.mounted(),o}function Re(e,r,...o){let t={tag:e,children:[],props:r||{},events:{},bindings:[]};for(let n of o)typeof n=="string"?t.children.push({tag:"#text",children:[],props:{},events:{},bindings:[],text:n}):t.children.push(n);return t}export{$ as Comment,K as Fragment,w as PatchFlags,N as ShapeFlags,Y as Text,j as bindAttr,F as bindClass,J as bindEach,P as bindEvent,q as bindIf,L as bindProp,B as bindText,W as compileToVapor,ge as createRenderer,Ee as createVaporApp,ee as createVaporElement,Ce as defineVaporComponent,v as getVaporDOMFactory,H as parseTemplate,Te as renderVaporComponent,m as renderVaporNode,he as setVaporDOMFactory,U as vaporMount,te as vaporPatch};
|
|
1
|
+
import{registerDOMOperations as Ne}from"@lytjs/vdom";var R=(l=>(l[l.ELEMENT=1]="ELEMENT",l[l.FUNCTIONAL_COMPONENT=2]="FUNCTIONAL_COMPONENT",l[l.STATEFUL_COMPONENT=4]="STATEFUL_COMPONENT",l[l.TEXT_CHILDREN=8]="TEXT_CHILDREN",l[l.ARRAY_CHILDREN=16]="ARRAY_CHILDREN",l[l.SLOTS_CHILDREN=32]="SLOTS_CHILDREN",l))(R||{}),U=(c=>(c[c.TEXT=1]="TEXT",c[c.CLASS=2]="CLASS",c[c.STYLE=4]="STYLE",c[c.PROPS=8]="PROPS",c[c.FULL_PROPS=16]="FULL_PROPS",c[c.STABLE_FRAGMENT=32]="STABLE_FRAGMENT",c[c.KEYED_FRAGMENT=64]="KEYED_FRAGMENT",c[c.UNKEYED_FRAGMENT=128]="UNKEYED_FRAGMENT",c[c.NEED_PATCH=256]="NEED_PATCH",c[c.DYNAMIC_SLOTS=512]="DYNAMIC_SLOTS",c[c.HOISTED=-1]="HOISTED",c[c.BAIL=-2]="BAIL",c))(U||{}),J=Symbol("Fragment"),Q=Symbol("Text"),ee=Symbol("Comment");function v(e){return e.type===J}function w(e){return e.type===Q}function k(e){return e.type===ee}function ne(e,r){return e.type===r.type&&e.key===r.key}function K(e){return Array.isArray(e.dynamicChildren)}function te(e,r,t,o){if(t==="class")e.setClass(r,o);else if(t==="style")e.setStyle(r,o);else if(t.startsWith("on")||t.startsWith("@")){let n=t.startsWith("@")?t.slice(1).toLowerCase():t.slice(2).toLowerCase();e.addEventListener(r,n,o)}else t==="key"||t==="ref"||e.setAttribute(r,t,o)}function W(e,r,t,o,n){if(t==="class")e.setClass(r,o);else if(t==="style")e.setStyle(r,o||{});else if(t.startsWith("on")||t.startsWith("@")){let i=t.startsWith("@")?t.slice(1).toLowerCase():t.slice(2).toLowerCase();n&&e.removeEventListener(r,i,n),o&&e.addEventListener(r,i,o)}else e.setAttribute(r,t,o)}function Y(e,r,t,o){for(let n in o){if(n==="key"||n==="ref")continue;let i=t[n],l=o[n];l!==i&&W(e,r,n,l,i)}for(let n in t)if(!(n==="key"||n==="ref")&&!(n in o))if(n==="class")e.setClass(r,"");else if(n==="style")e.setStyle(r,{});else if(n.startsWith("on")||n.startsWith("@")){let i=n.startsWith("@")?n.slice(1).toLowerCase():n.slice(2).toLowerCase();e.removeEventListener(r,i,t[n])}else e.removeAttribute(r,n)}function $(e,r,t,o,n,i){let{shapeFlag:l}=t;if(v(t)){ue(e,r,t,o,n,i);return}if(w(t)){let s=e.createText(t.children);t.el=s,e.insert(o,s,n);return}if(k(t)){let s=e.createComment(t.children);t.el=s,e.insert(o,s,n);return}if(l&1){de(e,r,t,o,n,i);return}if(l&6){fe(r,t,o,n,i);return}}function de(e,r,t,o,n,i){let l=t.type,s=e.createElement(l);if(t.el=s,t.props)for(let d in t.props){let g=t.props[d];te(e,s,d,g)}let{shapeFlag:a,children:p}=t;a&8?s.textContent=p:a&16&&A(r,p,s,null,i),e.insert(o,s,n)}function A(e,r,t,o,n){for(let i=0;i<r.length;i++)e(null,r[i],t,o,n)}function ue(e,r,t,o,n,i){let{children:l}=t,s=e.createComment("");e.insert(o,s,n),Array.isArray(l)&&l.length>0&&A(r,l,o,s,i),t.el=s,t.anchor=s}function fe(e,r,t,o,n){let i=r.component;i&&i.update&&i.update(),i&&i.subTree&&(e(null,i.subTree,t,o,i),r.el=i.subTree.el)}function oe(e,r,t,o){let{shapeFlag:n,children:i}=t;if(v(t)){if(Array.isArray(i))for(let l=0;l<i.length;l++)r(i[l],o);t.anchor&&t.anchor.parentNode&&e.remove(t.anchor);return}if(n&6){t.component&&t.component.subTree&&r(t.component.subTree,o);return}t.el&&e.remove(t.el)}function S(e,r){for(let t=0;t<r.length;t++)e(r[t])}import{patchKeyedChildren as me,patchUnkeyedChildren as ge}from"@lytjs/vdom";function L(e,r,t,o,n,i=null,l=null){if(o==null){t&&r(t,n);return}if(t===null){$(e,z(e,r),o,n,i,l);return}if(K(o)&&K(t)){Ce(e,r,t,o,n,l);return}if(!ne(t,o)){r(t,n),$(e,z(e,r),o,n,i,l);return}o.el=t.el,o.anchor=t.anchor;let{shapeFlag:s}=o;if(v(o)){Ve(e,r,t,o,n,i,l);return}if(w(o)){o.children!==t.children&&(o.el.nodeValue=o.children);return}if(k(o)){o.children!==t.children&&(o.el.nodeValue=o.children);return}if(s&1){ye(e,r,t,o,l);return}if(s&6){Ee(t,o,l);return}}function z(e,r){return(t,o,n,i,l)=>{L(e,r,t,o,n,i,l)}}function ye(e,r,t,o,n=null){let i=o.el=t.el,l=t.props||{},s=o.props||{},{patchFlag:a,dynamicProps:p}=o;if(a&&a>0){if(a&1&&t.children!==o.children&&(i.textContent=o.children),a&2&&l.class!==s.class&&e.setClass(i,s.class),a&4&&l.style!==s.style&&e.setStyle(i,s.style||{}),a&8&&p)for(let d=0;d<p.length;d++){let g=p[d],c=l[g],f=s[g];f!==c&&W(e,i,g,f,c)}a&16&&Y(e,i,l,s)}else Y(e,i,l,s);(!a||!(a&1))&&re(e,r,t,o,i,null,n)}function re(e,r,t,o,n,i,l){let s=t.shapeFlag,a=o.shapeFlag,p=t.children,d=o.children;if(a&8){s&16&&S(r,p),p!==d&&(n.textContent=d);return}if(a&16){s&16?he(e,r,p,d,n,i,l):(s&8&&(n.textContent=""),A(z(e,r),d,n,i,l));return}d==null&&(s&8?n.textContent="":s&16&&S(r,p))}function he(e,r,t,o,n,i,l){o.every(a=>a.key!==null&&a.key!==void 0)&&t.every(a=>a.key!==null&&a.key!==void 0)?me(t,o,n,i,l,null,!1):ge(t,o,n,i,l,null,!1)}function Ve(e,r,t,o,n,i,l){let s=t.children,a=o.children;Array.isArray(a)&&a.length>0?(re(e,r,t,o,n,i,l),o.el=a[0].el,o.anchor=a[a.length-1].el?e.nextSibling(a[a.length-1].el):i):Array.isArray(s)&&s.length>0&&a===null?(S(r,s),o.el=t.el,o.anchor=t.anchor):(o.el=t.el,o.anchor=t.anchor)}function Ce(e,r,t,o,n,i){let l=t.dynamicChildren,s=o.dynamicChildren;for(let a=0;a<s.length;a++)L(e,r,l[a],s[a],n,null,i)}function Ee(e,r,t){r.component=e.component,r.el=e.el,r.component&&r.component.update&&r.component.update()}function ve(e){function r(n,i){oe(e,r,n,i)}Ne({insert(n,i,l){e.insert(i,n,l)},createElement(n){return e.createElement(n)},createText(n){return e.createText(n)},setText(n,i){n.nodeValue=i},setElementText(n,i){n.textContent=i},remove(n){e.remove(n)},createComment(n){return e.createComment(n)},mount(n,i,l,s,a,p,d){o(null,n,i,l,s)},patch(n,i,l,s,a,p,d,g){o(n,i,l,s,a)},unmount(n,i,l,s){r(n)},move(n,i,l){e.insert(i,n.el,l)}});function o(n,i,l,s,a){L(e,r,n,i,l,s,a)}return{mount(n,i){i.nodeType===1&&(i.textContent=""),o(null,n,i,null,null)},patch(n,i,l){var s;o(n,i,l||((s=n.el)==null?void 0:s.parentNode),null,null)},unmount(n,i){r(n,i)}}}import{effect as C}from"@lytjs/reactivity/signal";function O(e,r){return C(()=>{let o=r();e.textContent=o==null?"":String(o)})}function _(e,r,t){return C(()=>{let n=t();e[r]=n})}function M(e,r,t){return C(()=>{let n=t();n==null||n===!1?e.removeAttribute(r):e.setAttribute(r,n===!0?"":String(n))})}function B(e,r){return C(()=>{let o=r();if(typeof o=="string")e.className=o;else if(Array.isArray(o))e.className=o.filter(Boolean).join(" ");else if(typeof o=="object"&&o!==null){let n=[],i=o;for(let l of Object.keys(i))i[l]&&n.push(l);e.className=n.join(" ")}else e.className=""})}function X(e,r,t){return e.addEventListener(r,t),()=>{e.removeEventListener(r,t)}}function I(e,r){return C(()=>{let o=r();if(typeof o=="string")e.style=o;else if(typeof o=="object"&&o!==null){let n=e.style;for(let i of Object.keys(n))n[i]="";for(let[i,l]of Object.entries(o))n[i]=l}else e.style=""})}function ie(e,r){return C(()=>{let o=r(),n=o==null?"":String(o);e.innerHTML!==n&&(e.innerHTML=n)})}function D(e,r,t){let o=e.parentNode!==null,n=t||null;!n&&e.parentNode&&(n=e.parentNode);let i=C(()=>{r()?o||(n&&n.parentNode?n.parentNode.insertBefore(e,n.nextSibling):n&&n.appendChild(e),o=!0):o&&e.parentNode&&(e.parentNode.removeChild(e),o=!1)});return()=>{i(),o&&e.parentNode&&e.parentNode.removeChild(e)}}function j(e,r,t,o){let n=[],i=[],l=new Map,s=C(()=>{let a=r();if(!Array.isArray(a))return;let p=a.map((f,u)=>o?o(f,u):u);if(p.length===i.length){let f=!0;for(let u=0;u<p.length;u++)if(p[u]!==i[u]){f=!1;break}if(f){for(let u=0;u<a.length;u++){let m=t(a[u],u),y=n[u];y&&y.parentNode===e&&e.replaceChild(m,y),n[u]=m,l.set(p[u],m)}return}}let d=new Set(i),g=new Set(p),c=new Map;for(let f=0;f<a.length;f++){let u=p[f];if(d.has(u)&&l.has(u)){let m=l.get(u);c.set(u,m),l.delete(u)}else{let m=t(a[f],f);c.set(u,m)}}for(let[f,u]of l)!g.has(f)&&u.parentNode===e&&e.removeChild(u);for(let f of n)f.parentNode===e&&e.removeChild(f);n=[],i=[];for(let f=0;f<a.length;f++){let u=p[f],m=c.get(u);e.appendChild(m),n.push(m),i.push(u)}l.clear();for(let[f,u]of c)l.set(f,u)});return()=>{s();for(let a of n)a.parentNode===e&&e.removeChild(a);n=[],i=[],l.clear()}}import{LytError as xe}from"@lytjs/common";var H=e=>{if(typeof document!="undefined")return document.createElement(e);throw new xe("LYT_RENDERER_VAPOR_ERROR","\u672A\u8BBE\u7F6E DOM \u5DE5\u5382\u51FD\u6570\u3002\u5728\u975E\u6D4F\u89C8\u5668\u73AF\u5883\u4E2D\u8BF7\u8C03\u7528 setVaporDOMFactory()")};function Re(e){H=e}function T(){return H}function P(e,r,...t){let o={tag:e,children:[],props:{},events:{},bindings:[]};if(r)for(let[n,i]of Object.entries(r))if(n.startsWith("on")&&typeof i=="function"&&!se(i)){let l=n.slice(2).toLowerCase();o.events[l]=i}else se(i)?n==="textContent"||n==="text"?o.bindings.push({type:"text",target:"textContent",signal:i}):n==="className"||n==="class"?o.bindings.push({type:"class",target:"className",signal:i}):n==="style"?o.bindings.push({type:"style",target:"style",signal:i}):o.bindings.push({type:"prop",target:n,signal:i}):o.props[n]=i;for(let n of t)typeof n=="string"?o.children.push({tag:"#text",children:[],props:{},events:{},bindings:[],text:n}):o.children.push(n);return o}function se(e){if(typeof e!="function")return!1;let r=e;return!!r._subscribe||!!(r.set&&r._subscribe)}function h(e){if(e.tag==="#text"){let n=H("#text");return n.textContent=e.text||"",n.nodeType=3,n}let r=H(e.tag);e.el=r;let t=r;for(let[n,i]of Object.entries(e.props))if(n==="style"&&typeof i=="object"&&i!==null)for(let[l,s]of Object.entries(i))t.style[l]=s;else n==="className"||n==="class"?r.className=String(i):t[n]=i;let o=[];for(let n of e.bindings){if(!n.signal)continue;let i;if(n.type==="text")i=O(r,n.signal);else if(n.type==="prop")i=_(r,n.target,n.signal);else if(n.type==="attr")i=M(r,n.target,n.signal);else if(n.type==="class")i=B(r,n.signal);else if(n.type==="style")i=I(r,n.signal);else continue;o.push(i)}e._bindingCleanups=o;for(let[n,i]of Object.entries(e.events))X(r,n,i);for(let n of e.children){let i=h(n);r.appendChild(i)}return r}function le(e,r,t){if(e.tag!==r.tag){let s=h(r);e.el&&e.el.parentNode===t&&t.removeChild(e.el),t.appendChild(s);return}let o=e.el||h(e);r.el=o;let n=o;if(e._bindingCleanups)for(let s of e._bindingCleanups)s();let i=[];for(let s of r.bindings){if(!s.signal)continue;let a;if(s.type==="text")a=O(o,s.signal);else if(s.type==="prop")a=_(o,s.target,s.signal);else if(s.type==="attr")a=M(o,s.target,s.signal);else if(s.type==="class")a=B(o,s.signal);else if(s.type==="style")a=I(o,s.signal);else continue;i.push(a)}r._bindingCleanups=i;for(let[s,a]of Object.entries(r.props))if(s==="style"&&typeof a=="object"&&a!==null)for(let[p,d]of Object.entries(a))n.style[p]=d;else s==="className"||s==="class"?o.className=String(a):n[s]=a;r.text!==void 0&&(o.textContent=r.text);for(let[s,a]of Object.entries(e.events))r.events[s]||o.removeEventListener(s,a);for(let[s,a]of Object.entries(r.events))e.events[s]!==a&&(e.events[s]&&o.removeEventListener(s,e.events[s]),o.addEventListener(s,a));let l=Math.max(e.children.length,r.children.length);for(let s=0;s<l;s++){let a=e.children[s],p=r.children[s];if(!a&&p){let d=h(p);o.appendChild(d)}else a&&!p?a.el&&a.el.parentNode===o&&o.removeChild(a.el):a&&p&&le(a,p,o)}}function Z(e,r){let t=r.setup?r.setup():{};r.beforeMount&&r.beforeMount();let o;if(r.render){let l=r.render(t,P);o=Array.isArray(l)?l:[l]}else o=[];let n=[],i=[];for(let l of o){let s=h(l);e.appendChild(s),n.push(s),ae(l,i)}return r.mounted&&r.mounted(),()=>{r.beforeUnmount&&r.beforeUnmount();for(let l of i)l();for(let l of n)(l.parentNode===e||e===l.parentNode)&&e.removeChild(l);r.unmounted&&r.unmounted()}}function ae(e,r){e._bindingCleanups&&r.push(...e._bindingCleanups);for(let t of e.children)ae(t,r)}import{effect as pe}from"@lytjs/reactivity/signal";import{LytError as Te}from"@lytjs/common";function G(e){var o,n,i,l,s;let r={type:"fragment",children:[]},t=e.trim();for(;t.length>0;){let a=t.match(/^<([a-zA-Z][a-zA-Z0-9-]*)([\s\S]*?)(\/?)>/);if(a){let p=a[1],d=a[2],g=a[3]==="/",{props:c,events:f,directives:u}=we(d),m={type:"element",tag:p,props:c,events:f,directives:u,children:[]};if(t=t.slice(a[0].length),g){((o=r.children)!=null?o:[]).push(m);continue}let y=`</${p}>`,V=be(t,p);if(V===-1)throw new Te("LYT_RENDERER_VAPOR_COMPILER_ERROR",`\u672A\u627E\u5230\u95ED\u5408\u6807\u7B7E: </${p}>`);let E=t.slice(0,V);t=t.slice(V+y.length);let N=G(E);m.children=N.children||[],((n=r.children)!=null?n:[]).push(m)}else{let p=t.indexOf("<"),d;if(p===-1?(d=t,t=""):(d=t.slice(0,p),t=t.slice(p)),d.trim())if(d.includes("{{")){let g=ke(d);for(let c of g)c.type==="text"?((i=r.children)!=null?i:[]).push({type:"text",text:c.value}):((l=r.children)!=null?l:[]).push({type:"interpolation",expression:c.value})}else((s=r.children)!=null?s:[]).push({type:"text",text:d})}}return r}function be(e,r){let t=1,o=0,n=`<${r}`,i=`</${r}>`;for(;o<e.length&&t>0;){let l=e.indexOf(n,o),s=e.indexOf(i,o);if(s===-1)return-1;if(l!==-1&&l<s){let a=e[l+n.length];a===">"||a===" "||a==="/"?(t++,o=l+n.length):(o=s+i.length,t--)}else o=s+i.length,t--}return t===0?o-i.length:-1}function we(e){let r={},t={},o={},n=/([a-zA-Z@:][a-zA-Z0-9@:.-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,i;for(;(i=n.exec(e))!==null;){let l=i[1],s=i[2]||i[3];if(l.startsWith("on:")){let a=l.slice(3);t[a]=s}else if(l.startsWith(":")){let a=l.slice(1);r[a]=s}else if(l==="v-if")o.if=s;else if(l==="v-each"){let a=s.match(/^\s*(\w+)\s+in\s+(.+)\s*$/);a&&(o.each={item:a[1],expression:a[2]})}else r[l]=s}return{props:r,events:t,directives:o}}function ke(e){let r=[],t=/\{\{([\s\S]*?)\}\}/g,o=0,n;for(;(n=t.exec(e))!==null;)n.index>o&&r.push({type:"text",value:e.slice(o,n.index)}),r.push({type:"interpolation",value:n[1].trim()}),o=n.index+n[0].length;return o<e.length&&r.push({type:"text",value:e.slice(o)}),r}function q(e){let r=G(e);return{render:Ae(r),ast:r}}function Ae(e){return function(t){let o=T();return x(e,t,o)}}function x(e,r,t){var o,n;if(e.type==="fragment"){if(e.children&&e.children.length===1)return x(e.children[0],r,t);let i=t("div");if(i.nodeType=11,i.childNodes=i.childNodes||[],e.children)for(let l of e.children){let s=x(l,r,t);i.appendChild?i.appendChild(s):i.childNodes.push(s)}return i}if(e.type==="text"){let i=t("#text");return i.textContent=e.text||"",i.nodeType=3,i}if(e.type==="interpolation"){let i=t("span"),l=e.expression||"",s=b(r,l);if(F(s)){let a=s,p=t("#text");p.nodeType=3,p.textContent=String(a());let d=pe(()=>{p.textContent=a()===null||a()===void 0?"":String(a())});i.appendChild(p),i._bindingCleanup=d,ce(i,d)}else i.textContent=s!=null?String(s):"";return i}if(e.type==="element"){if((o=e.directives)!=null&&o.each){let{item:s,expression:a}=e.directives.each,p=b(r,a);if(F(p)){let c=t("#fragment");c.childNodes=[],c.nodeType=11;let f=c;return j(f,p,(u,m)=>{let y={...r,[s]:u,index:m},V=t(e.tag||"div");if(e.props)for(let[E,N]of Object.entries(e.props))E==="class"||E==="className"?V.className=N:V[E]=N;if(e.children)for(let E of e.children){let N=x(E,y,t);V.appendChild(N)}return V}),f}let d=Array.isArray(p)?p:[],g=t("#fragment");if(g.childNodes=[],g.nodeType=11,d.length>0)for(let c=0;c<d.length;c++){let f={...r,[s]:d[c],index:c},u=t(e.tag||"div");if(e.props)for(let[m,y]of Object.entries(e.props))m==="class"||m==="className"?u.className=y:u[m]=y;if(e.children)for(let m of e.children){let y=x(m,f,t);u.appendChild(y)}g.appendChild(u)}return g}let i=t(e.tag||"div"),l=i;if((n=e.directives)!=null&&n.if){let s=b(r,e.directives.if);F(s)?D(i,s):s||(l.style=l.style||{},l.style.display="none",l.hidden=!0)}if(e.props)for(let[s,a]of Object.entries(e.props))if(s.startsWith(":")){let p=s.slice(1),d=b(r,a);if(F(d)){let g=d,c=pe(()=>{l[p]=g()});i._propBindingCleanup=c,ce(i,c)}else l[p]=d}else s==="class"||s==="className"?i.className=a:l[s]=a;if(e.events)for(let[s,a]of Object.entries(e.events)){let p=b(r,a);typeof p=="function"&&i.addEventListener(s,p)}if(e.children)for(let s of e.children){let a=x(s,r,t);if(a.nodeType===11&&a.childNodes)for(let p of a.childNodes)i.appendChild(p);else i.appendChild(a)}return i}return t("div")}function b(e,r){let t=r.trim();if(/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t))return e[t];let o=t.split("."),n=e;for(let i of o){if(n==null)return;n=n[i]}return n}function F(e){return typeof e!="function"?!1:!!e._subscribe}function ce(e,r){let t=e;t._cleanupEffects||(t._cleanupEffects=[]),t._cleanupEffects.push(r)}function Se(e){return e.__vapor__=!0,e}function Le(e){let r=!1,t=null,o=null;return{mount(n){if(!r){if(typeof n=="string")if(typeof document!="undefined"){let i=document.querySelector(n);if(!i)throw new Error(`[lyt:vapor] \u672A\u627E\u5230\u6302\u8F7D\u76EE\u6807: ${n}`);o=i}else throw new Error("[lyt:vapor] \u5728\u975E\u6D4F\u89C8\u5668\u73AF\u5883\u4E2D\uFF0C\u8BF7\u76F4\u63A5\u4F20\u5165\u5BB9\u5668\u5143\u7D20");else o=n;t=Z(o,e),r=!0}},unmount(){r&&(t&&(t(),t=null),r=!1,o=null)}}}function Oe(e,r){let t=e.setup?{...e.setup(),...r}:{...r};e.beforeMount&&e.beforeMount();let o;if(e.template){let{render:n}=q(e.template);o=n(t)}else if(e.render){let n=e.render(t,P),i=Array.isArray(n)?n:[n];if(i.length===1)o=h(i[0]);else{o=T()("div");for(let s of i)o.appendChild(h(s))}}else throw new Error("[lyt:vapor] \u7EC4\u4EF6\u5FC5\u987B\u63D0\u4F9B template \u6216 render \u51FD\u6570");return e.mounted&&e.mounted(),o}export{ee as Comment,J as Fragment,U as PatchFlags,R as ShapeFlags,Q as Text,M as bindAttr,B as bindClass,j as bindEach,X as bindEvent,ie as bindHTML,D as bindIf,_ as bindProp,I as bindStyle,O as bindText,q as compileToVapor,ve as createRenderer,Le as createVaporApp,P as createVaporElement,Se as defineVaporComponent,T as getVaporDOMFactory,G as parseTemplate,Oe as renderVaporComponent,h as renderVaporNode,Re as setVaporDOMFactory,Z as vaporMount,le as vaporPatch};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lytjs/renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Lyt.js 渲染器 - 多平台渲染抽象层(DOM/SSR/Native/MiniApp)",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -68,8 +68,9 @@
|
|
|
68
68
|
"ssr"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@lytjs/
|
|
72
|
-
"@lytjs/
|
|
71
|
+
"@lytjs/common": "^5.0.0",
|
|
72
|
+
"@lytjs/reactivity": "^5.0.0",
|
|
73
|
+
"@lytjs/vdom": "^5.0.0"
|
|
73
74
|
},
|
|
74
75
|
"engines": {
|
|
75
76
|
"node": ">=18.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.full.d.ts","../../vdom/dist/types/patch-flag.d.ts","../../vdom/dist/types/fragment.d.ts","../../vdom/dist/types/vnode.d.ts","../../vdom/dist/types/block.d.ts","../../vdom/dist/types/list-diff.d.ts","../../vdom/dist/types/patch.d.ts","../../vdom/dist/types/index.d.ts","../src/vnode.ts","../src/renderer-interfaces.ts","../src/props.ts","../src/mount.ts","../src/unmount.ts","../src/patch.ts","../src/create-renderer.ts","../src/dom/dom-ops.ts","../src/dom/patch-events.ts","../src/dom/patch-props.ts","../src/dom/dom-renderer.ts","../src/index.ts","../src/dom/index.ts","../src/miniapp/miniapp-renderer.ts","../src/miniapp/index.ts","../src/native/native-renderer.ts","../src/native/index.ts","../src/ssr/hydration.ts","../src/ssr/ssr-renderer.ts","../src/ssr/index.ts","../../reactivity/dist/types/signal.d.ts","../src/vapor/vapor-reactive.ts","../src/vapor/vapor-renderer.ts","../src/vapor/vapor-compiler.ts","../src/vapor/vapor-component.ts","../src/vapor/index.ts"],"fileIdsList":[[70,71,72,75,76],[72,78,79,80],[71,72,77,78,79,80,81],[79],[84],[72],[71,72,73],[71,72,77,86],[70,71,72,73,74,75],[71],[71,72,77,88,89],[71,72],[71,72,77,92,93,94,95],[92,93],[92,93,94],[91],[91,92],[66],[64,65,66,67,68,69],[66,68],[65]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"01a30f9e8582b369075c0808df71121e6855cb06fd8d3d39511d9ebb66405205","impliedFormat":1},"4bf20511e1950980a289f48f964ca67211ffae48eeb07894333e24446786c26a","44b0a939ee93e3fec4b314960837f4216ffbc0ff019fed82dc7c7ff703e68435","18f5a60d44eea7da20d59f7c126fc4bdd87b74f1d39566cb6d8c013ed5b2bef8","cd5e1f24d3d4188bed8851372de447073ede8937fe46cd8796b7d944b3a20949","579f753950c1fbd652dc9207f7c6b70402535339a8b1ec0ad70f7af2585c6391","fc7bc379fe9ea9c7ba998f1378f3aa1bbe75c4867fa7c41c6746c3c6bc89dbef","c00d27f14678de86282e49d40f11653a65f09b3894f42bef9e37bf8c04669b10",{"version":"47e988317806ef5467d3655acf7e6c80a90061017c08d4eaf06188e40194ab3d","signature":"de20bc27fab21c2c5ca1341569040f132680b4ace695aebe17cf19d55d6a75dd"},{"version":"1477a4236b919b2ec05a15a6f2229a406f8eb59d9f274df3c0d8bb40aea5f077","signature":"371b35236cadf3a5614284d37d577ac3868e422715c926c1a5d8e9b4964d3084"},{"version":"609ef5c2adc886fb781dc449bdf6da27a638c0976b1841df0e4e0d6ff4269adc","signature":"1e5443b39993d20bbd25f1ba4d07fd9da7f3a2fe0c37536fac1deb39d815b87a"},{"version":"b17f521643a35dc76822112c425b7d06fcf365f8c2312f81b90b839380e57bd8","signature":"a0a99c14c76d89bf29edc93e96e9e5a405a3a5b9fd743a9508091b36231c02fe"},{"version":"c074beea2da3867def98e8f9aaf9de2cc107219284dbaf46a71407bb0067f765","signature":"ee321bde806a5ddb8e0d33476f29637cb90c9bb7c664c2b89dcf5f53d87e7133"},{"version":"510a44c983d3ca288370ef4ad668365e5c8db2d8d858e9139599de47daa4a56f","signature":"473a00b5bac3b46d1fd30a8cb84c1ff76ff9e6e6b8bb1502aa039ee662db6696"},{"version":"c1ed7ee4ff785e7ac2a258b547a8eb9b2135ca66193c57eb35e41d6dc08596f2","signature":"21a68a9b94108bb8ea13af27a7ca1010f6b4493ca4b4349c91b7a3eada0ab5b0"},{"version":"6574a25f47f9144ff6bf18c3e6e3b2916748934eeb667f5ad3d77163cd87622a","signature":"51356357dc2b282ba36e0942147a9de1d6379ece336fcc59635e1f5ebe5d7722"},{"version":"feebeeee7b8fdb2a3c01a7acf5eae4b88c028dde2559188b684ce6ecd3458c75","signature":"fa8ca9d1a9c2e191d194871cf9c85ab107db82c3f921fc1613da3681a49b3b4c"},{"version":"b571acf21e82b996afeb67c5f00e3e9a7dd1504147f7abb4faed361f47c87d6d","signature":"076fa2932000bdeb0bdc8e19478a8651c61934b7ebcecba4662cdbe2531694b7"},{"version":"9fdf64f538cf906a03978fa3b40770ed0a3b2248a6dae471a2e18fec822f9680","signature":"fdf11aa8433694f2f5e90835c7384a5056293f75d7e24353612cc1cdccd222c1"},{"version":"d3ebb47a86769ecd185b2ecfc325efbb71e45acd279ced6224d20d8d0dd4feac","signature":"84f7c054d973b7531378d0791e5e5949d39d09554d8582e1ca75847703f591fc"},{"version":"65ea2c291c88be40fddd4a8b511281e309dea0356ab790afe29cbd8b8b3faf0b","signature":"3b7cdc9e44f3c7b0bb5a3ee68140bafe1006946e9e089a0799cd27d227c46541"},{"version":"0bed6a7215d71437ca817c46c258554821d9b65f8493e7f3421392f6a07b871a","signature":"a96b134dfbd8608035f5b948d38851873631332663383bcdeff050ccddd2e46b"},{"version":"765727cddc5c0dded82c4c9eb3f7b4bff2f985411c486d688dc6364d98176f97","signature":"db3e1ec7228fccd88125577caf318a76026631c3863e604b1b94f6268a661c8d"},{"version":"399cdeaa8a42298608f336eecc16b0877a35dc5d288a2d6fc8b7ba43c8d173ac","signature":"2722bd2f08be8f7d9f3577d816ec1374c70502ba393972bcdf1ad03986d04b8b"},{"version":"d2f401f75546f0cfdfc6e35367a7bb34477f7e066c127200cd3b1ae39f3595e1","signature":"cc1551089f7e4e3e08b848c4ba604b2521a76fdf0fe4dbd23932bbf700c3d081"},{"version":"b109871f47ff6b323fd7f7da0a85546369639240d1a1cea1536895608449e47d","signature":"49e7ca00e44f1940cd9aad1694be3d999b05ebc9b652794fdad216084d86b22a"},{"version":"436ef20e13f673036f2fe6ea69a57aaed97a6aa2ee22271419932e1ece8b08cd","signature":"a7c02cd6b9c223de799a25c42e29ec9c9359570c990a096150355a2aa631b510"},{"version":"e00137460935472aa7b6d89e91705d78145c2dc5642e5b384182975e98ba43e1","signature":"bb7c67bd85a5bd9d7accb3253ff420f918bc8dff3b0bb54b4ad99f0ae945f76f"},"ecd41394ecea0650d670ed4cdba72fac8f219fdfa1cdcbfdcdeb79413d712d15",{"version":"954367bfcff3426abfe4468f31a21877ef1d9cac367f9f876f0f70b29d7e35ac","signature":"543010f47afe09187740b650c08aab2652661bd7df8217db358552895199d5b8"},{"version":"310bc7903d9ec5ca1760190992cc50e4822894465ff63b7d85b2efe01007c6c1","signature":"a4b4a9270775f8dcc35bbfc4f4465251b3743671aed95ba2ced4ad1933ce88c0"},{"version":"8f957b740bc87016afcfb3cfc4063754421c7aa070fec43a8bc1aabd21756e86","signature":"a3454d859c26f739524895d7c07d689c3779d85adbc300e3d336a05ea4a3e523"},{"version":"dd90daae45ebd02d21dc2520ea86cee976c49389ff0140966016798cbce120dd","signature":"84ca5f4302b35c4be80c9fab10ec255307b38ddfbd70e2e28a24c586b023223b"},{"version":"01f69b7240ce4c8c95911b30b1a5b0d7a242bd182407d69da0810f03e36ef03f","signature":"c44f5aacc7f91359246c09d86a1ec84685c264da4255cc3037abffbf5ba5f4e7"}],"root":[[71,90],[92,96]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":99,"noEmitOnError":false,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true,"verbatimModuleSyntax":true},"referencedMap":[[77,1],[81,2],[83,3],[80,4],[82,3],[85,5],[84,6],[74,7],[87,8],[86,6],[76,9],[73,6],[72,10],[90,11],[75,12],[96,13],[94,14],[95,15],[92,16],[93,17],[67,18],[65,18],[70,19],[68,18],[69,20],[66,21]],"semanticDiagnosticsPerFile":[[74,[{"start":2321,"length":11,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'VNode | undefined' is not assignable to parameter of type 'VNode'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'VNode'.","category":1,"code":2322}]}},{"start":3078,"length":15,"messageText":"'parentComponent' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[75,[{"start":1203,"length":11,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'VNode | undefined' is not assignable to parameter of type 'VNode'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'VNode'.","category":1,"code":2322}]}}]],[76,[{"start":405,"length":7,"messageText":"'unmount' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":3850,"length":3,"messageText":"Type 'undefined' cannot be used as an index type.","category":1,"code":2538},{"start":3891,"length":3,"messageText":"Type 'undefined' cannot be used as an index type.","category":1,"code":2538},{"start":3977,"length":3,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":6054,"length":8,"messageText":"'renderer' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":6079,"length":9,"messageText":"'unmountFn' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":7174,"length":14,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532},{"start":7208,"length":35,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532},{"start":7276,"length":35,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532},{"start":8019,"length":21,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'VNode | undefined' is not assignable to parameter of type 'VNode | null'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'VNode | null'.","category":1,"code":2322}]}},{"start":8207,"length":15,"messageText":"'parentComponent' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[77,[{"start":358,"length":18,"messageText":"'patchKeyedChildren' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":378,"length":20,"messageText":"'patchUnkeyedChildren' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":400,"length":11,"messageText":"'getSequence' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":604,"length":13,"messageText":"'createPatchFn' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":669,"length":15,"messageText":"'unmountChildren' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[78,[{"start":8025,"length":3,"messageText":"Type 'undefined' cannot be used as an index type.","category":1,"code":2538},{"start":8072,"length":3,"messageText":"Type 'undefined' cannot be used as an index type.","category":1,"code":2538},{"start":8596,"length":3,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":8691,"length":3,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":8961,"length":3,"messageText":"'key' is possibly 'undefined'.","category":1,"code":18048},{"start":9132,"length":3,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":9216,"length":3,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}}]],[79,[{"start":2983,"length":4,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]},"relatedInformation":[{"start":653,"length":4,"messageText":"The expected type comes from property 'name' which is declared here on type 'ParsedEvent'","category":3,"code":6500}]},{"start":3222,"length":8,"messageText":"Type 'undefined' cannot be used as an index type.","category":1,"code":2538},{"start":3254,"length":11,"code":7053,"category":1,"messageText":"Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'ParsedEvent'."},{"start":5190,"length":11,"code":7053,"category":1,"messageText":{"messageText":"Element implicitly has an 'any' type because expression of type '\"_vei\"' can't be used to index type 'Element'.","category":1,"code":7053,"next":[{"messageText":"Property '_vei' does not exist on type 'Element'.","category":1,"code":2339}]}},{"start":5237,"length":11,"code":7053,"category":1,"messageText":{"messageText":"Element implicitly has an 'any' type because expression of type '\"_vei\"' can't be used to index type 'Element'.","category":1,"code":7053,"next":[{"messageText":"Property '_vei' does not exist on type 'Element'.","category":1,"code":2339}]}}]],[84,[{"start":6789,"length":8,"code":2412,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":6830,"length":11,"code":2412,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":10418,"length":13,"code":2412,"category":1,"messageText":"Type 'undefined' is not assignable to type 'MiniAppNode' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."},{"start":10771,"length":16,"code":2412,"category":1,"messageText":"Type 'undefined' is not assignable to type 'MiniAppNode' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."},{"start":12518,"length":17,"code":2322,"category":1,"messageText":{"messageText":"Type 'MiniAppNode | undefined' is not assignable to type 'MiniAppNode | null'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'MiniAppNode | null'.","category":1,"code":2322}]}},{"start":12959,"length":9,"messageText":"'prevValue' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":17700,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":17765,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":18049,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":18083,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":18142,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":18714,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":18834,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":19440,"length":8,"code":2412,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":19483,"length":11,"code":2412,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":21020,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":21168,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":21269,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":21360,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":21605,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048},{"start":21711,"length":6,"messageText":"'prefix' is possibly 'undefined'.","category":1,"code":18048}]],[86,[{"start":10720,"length":13,"code":2412,"category":1,"messageText":"Type 'undefined' is not assignable to type 'NativeNode' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."},{"start":11089,"length":16,"code":2412,"category":1,"messageText":"Type 'undefined' is not assignable to type 'NativeNode' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."},{"start":12849,"length":17,"code":2322,"category":1,"messageText":{"messageText":"Type 'NativeNode | undefined' is not assignable to type 'NativeNode | null'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'NativeNode | null'.","category":1,"code":2322}]}},{"start":13399,"length":9,"messageText":"'prevValue' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[88,[{"start":14542,"length":13,"messageText":"'_unbindEvents' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":16709,"length":7,"messageText":"'domNode' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":16750,"length":5,"messageText":"'vnode' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":18495,"length":21,"code":2769,"category":1,"messageText":{"messageText":"No overload matches this call.","category":1,"code":2769,"next":[{"messageText":"The last overload gave the following error.","category":1,"code":2770,"next":[{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}]}]},"relatedInformation":[{"file":"../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","start":18718,"length":45,"messageText":"The expected type comes from the return type of this signature.","category":3,"code":6502},{"file":"../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","start":18670,"length":103,"messageText":"The last overload is declared here.","category":1,"code":2771}]},{"start":29397,"length":2,"messageText":"'el' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[89,[{"start":3603,"length":14,"code":2769,"category":1,"messageText":{"messageText":"No overload matches this call.","category":1,"code":2769,"next":[{"messageText":"The last overload gave the following error.","category":1,"code":2770,"next":[{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}]}]},"relatedInformation":[{"file":"../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","start":18718,"length":45,"messageText":"The expected type comes from the return type of this signature.","category":3,"code":6502},{"file":"../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","start":18670,"length":103,"messageText":"The last overload is declared here.","category":1,"code":2771}]}]],[92,[{"start":6629,"length":8,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'T | undefined' is not assignable to parameter of type 'T'.","category":1,"code":2345,"next":[{"messageText":"'T' could be instantiated with an arbitrary type which could be unrelated to 'T | undefined'.","category":1,"code":5082}]}},{"start":7226,"length":8,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'T | undefined' is not assignable to parameter of type 'T'.","category":1,"code":2345,"next":[{"messageText":"'T' could be instantiated with an arbitrary type which could be unrelated to 'T | undefined'.","category":1,"code":5082}]}},{"start":7328,"length":10,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | number | undefined' is not assignable to parameter of type 'string | number'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string | number'.","category":1,"code":2322}]}},{"start":7364,"length":10,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | number | undefined' is not assignable to parameter of type 'string | number'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string | number'.","category":1,"code":2322}]}}]],[94,[{"start":1832,"length":8,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":1856,"length":4,"code":2375,"category":1,"messageText":{"messageText":"Type '{ type: \"element\"; tag: string | undefined; props: Record<string, string>; events: Record<string, string>; directives: { if?: string; each?: { item: string; expression: string; }; }; children: never[]; }' is not assignable to type 'ASTNode' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.","category":1,"code":2375,"next":[{"messageText":"Types of property 'tag' are incompatible.","category":1,"code":2326,"next":[{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}],"canonicalHead":{"code":2375,"messageText":"Type '{ type: \"element\"; tag: string | undefined; props: Record<string, string>; events: Record<string, string>; directives: { if?: string; each?: { item: string; expression: string; }; }; children: never[]; }' is not assignable to type 'ASTNode' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."}}]}]}},{"start":2093,"length":13,"messageText":"'root.children' is possibly 'undefined'.","category":1,"code":18048},{"start":2250,"length":7,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":2607,"length":13,"messageText":"'root.children' is possibly 'undefined'.","category":1,"code":18048},{"start":3202,"length":13,"messageText":"'root.children' is possibly 'undefined'.","category":1,"code":18048},{"start":3293,"length":13,"messageText":"'root.children' is possibly 'undefined'.","category":1,"code":18048},{"start":3417,"length":13,"messageText":"'root.children' is possibly 'undefined'.","category":1,"code":18048},{"start":5077,"length":8,"messageText":"'attrName' is possibly 'undefined'.","category":1,"code":18048},{"start":5145,"length":8,"messageText":"'attrName' is possibly 'undefined'.","category":1,"code":18048},{"start":5170,"length":17,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":5216,"length":8,"messageText":"'attrName' is possibly 'undefined'.","category":1,"code":18048},{"start":5283,"length":8,"messageText":"'attrName' is possibly 'undefined'.","category":1,"code":18048},{"start":5308,"length":15,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":5381,"length":13,"code":2412,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":5506,"length":9,"messageText":"'attrValue' is possibly 'undefined'.","category":1,"code":18048},{"start":5603,"length":4,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]},"relatedInformation":[{"start":4762,"length":4,"messageText":"The expected type comes from property 'item' which is declared here on type '{ item: string; expression: string; }'","category":3,"code":6500}]},{"start":5623,"length":10,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | undefined' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]},"relatedInformation":[{"start":4776,"length":10,"messageText":"The expected type comes from property 'expression' which is declared here on type '{ item: string; expression: string; }'","category":3,"code":6500}]},{"start":5698,"length":8,"messageText":"Type 'undefined' cannot be used as an index type.","category":1,"code":2538},{"start":6290,"length":8,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532},{"start":7458,"length":16,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'ASTNode | undefined' is not assignable to parameter of type 'ASTNode'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'ASTNode'.","category":1,"code":2322}]}}]],[95,[{"start":3598,"length":8,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'VaporNode | undefined' is not assignable to parameter of type 'VaporNode'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'VaporNode'.","category":1,"code":2322}]}}]]],"latestChangedDtsFile":"./types/vapor/index.d.ts","version":"6.0.2"}
|