@dcloudio/uni-cli-shared 3.0.0-alpha-4070720250804001 → 3.0.0-alpha-4070620250731002
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/easycom.d.ts +0 -1
- package/dist/easycom.js +13 -17
- package/dist/hbx/alias.js +10 -43
- package/dist/hbx/index.js +0 -10
- package/dist/hbx/log.js +1 -23
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -3
- package/dist/json/index.d.ts +1 -1
- package/dist/json/index.js +1 -2
- package/dist/json/manifest.d.ts +0 -1
- package/dist/json/manifest.js +1 -11
- package/dist/json/mp/jsonFile.js +2 -4
- package/dist/json/mp/pages.js +0 -1
- package/dist/json/mp/types.d.ts +1 -4
- package/dist/json/uni-x/manifest.d.ts +0 -1
- package/dist/json/uni-x/manifest.js +1 -5
- package/dist/messages/zh_CN.js +0 -1
- package/dist/uni_modules.cloud.d.ts +4 -10
- package/dist/uni_modules.cloud.js +19 -58
- package/dist/uni_modules.d.ts +0 -2
- package/dist/uni_modules.js +2 -81
- package/dist/uts.js +0 -16
- package/dist/vite/autoImport.js +0 -2
- package/dist/vite/cloud.js +5 -51
- package/dist/vite/plugins/index.d.ts +0 -1
- package/dist/vite/plugins/index.js +1 -3
- package/dist/vite/plugins/inject.js +1 -3
- package/dist/vite/plugins/uts/uni_modules.d.ts +0 -1
- package/dist/vite/plugins/uts/uni_modules.js +14 -63
- package/dist/vite/plugins/uts/uvue.js +3 -17
- package/dist/vite/plugins/vitejs/plugins/css.js +5 -40
- package/dist/vue/transforms/transformUTSComponent.js +3 -8
- package/package.json +38 -38
- package/dist/vite/plugins/stats.d.ts +0 -2
- package/dist/vite/plugins/stats.js +0 -42
- package/dist/workers.d.ts +0 -14
- package/dist/workers.js +0 -187
- package/lib/vapor/@vitejs/plugin-vue/LICENSE +0 -21
- package/lib/vapor/@vitejs/plugin-vue/README.md +0 -278
- package/lib/vapor/@vitejs/plugin-vue/dist/index.cjs +0 -3105
- package/lib/vapor/@vitejs/plugin-vue/dist/index.d.cts +0 -113
- package/lib/vapor/@vitejs/plugin-vue/dist/index.d.mts +0 -111
- package/lib/vapor/@vitejs/plugin-vue/dist/index.d.ts +0 -113
- package/lib/vapor/@vitejs/plugin-vue/dist/index.mjs +0 -3090
- package/lib/vapor/@vitejs/plugin-vue/package.json +0 -50
- package/lib/vapor/@vue/compiler-core/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-core/README.md +0 -1
- package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.js +0 -6902
- package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6779
- package/lib/vapor/@vue/compiler-core/dist/compiler-core.esm-bundler.js +0 -5870
- package/lib/vapor/@vue/compiler-core/index.js +0 -7
- package/lib/vapor/@vue/compiler-core/package.json +0 -58
- package/lib/vapor/@vue/compiler-dom/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-dom/README.md +0 -1
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.cjs.js +0 -936
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -856
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +0 -6682
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +0 -14
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +0 -693
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.global.js +0 -6855
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.global.prod.js +0 -14
- package/lib/vapor/@vue/compiler-dom/index.js +0 -7
- package/lib/vapor/@vue/compiler-dom/package.json +0 -57
- package/lib/vapor/@vue/compiler-sfc/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-sfc/README.md +0 -80
- package/lib/vapor/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +0 -21682
- package/lib/vapor/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +0 -66272
- package/lib/vapor/@vue/compiler-sfc/package.json +0 -68
- package/lib/vapor/@vue/compiler-ssr/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-ssr/README.md +0 -1
- package/lib/vapor/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1402
- package/lib/vapor/@vue/compiler-ssr/package.json +0 -34
- package/lib/vapor/@vue/compiler-vapor/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-vapor/README.md +0 -1
- package/lib/vapor/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +0 -4540
- package/lib/vapor/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +0 -37020
- package/lib/vapor/@vue/compiler-vapor/package.json +0 -49
- package/lib/vapor/@vue/reactivity/LICENSE +0 -21
- package/lib/vapor/@vue/reactivity/README.md +0 -19
- package/lib/vapor/@vue/reactivity/dist/reactivity.cjs.js +0 -2033
- package/lib/vapor/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1841
- package/lib/vapor/@vue/reactivity/dist/reactivity.esm-browser.js +0 -2023
- package/lib/vapor/@vue/reactivity/dist/reactivity.esm-browser.prod.js +0 -5
- package/lib/vapor/@vue/reactivity/dist/reactivity.esm-bundler.js +0 -1992
- package/lib/vapor/@vue/reactivity/dist/reactivity.global.js +0 -2082
- package/lib/vapor/@vue/reactivity/dist/reactivity.global.prod.js +0 -5
- package/lib/vapor/@vue/reactivity/index.js +0 -7
- package/lib/vapor/@vue/reactivity/package.json +0 -55
- package/lib/vapor/@vue/runtime-core/LICENSE +0 -21
- package/lib/vapor/@vue/runtime-core/README.md +0 -28
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.cjs.js +0 -8972
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -7088
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -8913
- package/lib/vapor/@vue/runtime-core/index.js +0 -7
- package/lib/vapor/@vue/runtime-core/package.json +0 -54
- package/lib/vapor/@vue/runtime-dom/LICENSE +0 -21
- package/lib/vapor/@vue/runtime-dom/README.md +0 -13
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.cjs.js +0 -1797
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1646
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +0 -12929
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +0 -6
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +0 -1838
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.global.js +0 -13086
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.global.prod.js +0 -6
- package/lib/vapor/@vue/runtime-dom/index.js +0 -7
- package/lib/vapor/@vue/runtime-dom/package.json +0 -60
- package/lib/vapor/@vue/runtime-vapor/LICENSE +0 -21
- package/lib/vapor/@vue/runtime-vapor/README.md +0 -8
- package/lib/vapor/@vue/runtime-vapor/dist/runtime-vapor.esm-bundler.js +0 -3242
- package/lib/vapor/@vue/runtime-vapor/package.json +0 -47
- package/lib/vapor/@vue/server-renderer/LICENSE +0 -21
- package/lib/vapor/@vue/server-renderer/README.md +0 -178
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.cjs.js +0 -1144
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -871
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-browser.js +0 -8756
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +0 -5
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-bundler.js +0 -1366
- package/lib/vapor/@vue/server-renderer/index.js +0 -7
- package/lib/vapor/@vue/server-renderer/package.json +0 -55
- package/lib/vapor/@vue/shared/LICENSE +0 -21
- package/lib/vapor/@vue/shared/README.md +0 -3
- package/lib/vapor/@vue/shared/dist/shared.cjs.js +0 -698
- package/lib/vapor/@vue/shared/dist/shared.cjs.prod.js +0 -690
- package/lib/vapor/@vue/shared/dist/shared.esm-bundler.js +0 -616
- package/lib/vapor/@vue/shared/index.js +0 -7
- package/lib/vapor/@vue/shared/package.json +0 -47
- package/lib/vapor/@vue/vue/LICENSE +0 -21
- package/lib/vapor/@vue/vue/README.md +0 -62
- package/lib/vapor/@vue/vue/compiler-sfc/index.browser.js +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.browser.mjs +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.d.mts +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.d.ts +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.js +0 -3
- package/lib/vapor/@vue/vue/compiler-sfc/index.mjs +0 -3
- package/lib/vapor/@vue/vue/compiler-sfc/package.json +0 -4
- package/lib/vapor/@vue/vue/compiler-sfc/register-ts.js +0 -3
- package/lib/vapor/@vue/vue/dist/vue.cjs.js +0 -80
- package/lib/vapor/@vue/vue/dist/vue.cjs.prod.js +0 -66
- package/lib/vapor/@vue/vue/dist/vue.esm-browser.js +0 -18840
- package/lib/vapor/@vue/vue/dist/vue.esm-browser.prod.js +0 -12
- package/lib/vapor/@vue/vue/dist/vue.esm-bundler.js +0 -72
- package/lib/vapor/@vue/vue/dist/vue.global.js +0 -18820
- package/lib/vapor/@vue/vue/dist/vue.global.prod.js +0 -12
- package/lib/vapor/@vue/vue/dist/vue.runtime-with-vapor.esm-browser.js +0 -15648
- package/lib/vapor/@vue/vue/dist/vue.runtime-with-vapor.esm-browser.prod.js +0 -9
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-browser.js +0 -12953
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-browser.prod.js +0 -6
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-bundler.js +0 -29
- package/lib/vapor/@vue/vue/dist/vue.runtime.global.js +0 -13111
- package/lib/vapor/@vue/vue/dist/vue.runtime.global.prod.js +0 -6
- package/lib/vapor/@vue/vue/index.js +0 -7
- package/lib/vapor/@vue/vue/index.mjs +0 -1
- package/lib/vapor/@vue/vue/jsx-runtime/index.d.ts +0 -25
- package/lib/vapor/@vue/vue/jsx-runtime/index.js +0 -15
- package/lib/vapor/@vue/vue/jsx-runtime/index.mjs +0 -12
- package/lib/vapor/@vue/vue/jsx-runtime/package.json +0 -5
- package/lib/vapor/@vue/vue/jsx.d.ts +0 -22
- package/lib/vapor/@vue/vue/package.json +0 -114
- package/lib/vapor/@vue/vue/server-renderer/index.d.mts +0 -1
- package/lib/vapor/@vue/vue/server-renderer/index.d.ts +0 -1
- package/lib/vapor/@vue/vue/server-renderer/index.js +0 -1
- package/lib/vapor/@vue/vue/server-renderer/index.mjs +0 -1
- package/lib/vapor/@vue/vue/server-renderer/package.json +0 -4
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @vue/reactivity v3.6.0-alpha.2
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/var VueReactivity=function(e){"use strict";let t,i,s,r={},n=()=>{},l=Object.assign,u=Object.prototype.hasOwnProperty,o=(e,t)=>u.call(e,t),a=Array.isArray,f=e=>"[object Map]"===v(e),h=e=>"symbol"==typeof e,c=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,v=e=>d.call(e),_=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,p=(e,t)=>!Object.is(e,t);var g,b=((g=b||{})[g.None=0]="None",g[g.Mutable=1]="Mutable",g[g.Watching=2]="Watching",g[g.RecursedCheck=4]="RecursedCheck",g[g.Recursed=8]="Recursed",g[g.Dirty=16]="Dirty",g[g.Pending=32]="Pending",g);let y=[],R=0,w=0,S=0;function T(e){try{return i}finally{i=e}}function E(){--R||!S||O()}function x(e,t){let i,s=t.depsTail;if(void 0!==s&&s.dep===e)return;if(4&t.flags&&void 0!==(i=void 0!==s?s.nextDep:t.deps)&&i.dep===e){t.depsTail=i;return}let r=e.subsTail,n=t.depsTail=e.subsTail={dep:e,sub:t,prevDep:s,nextDep:i,prevSub:r,nextSub:void 0};void 0!==i&&(i.prevDep=n),void 0!==s?s.nextDep=n:t.deps=n,void 0!==r?r.nextSub=n:e.subs=n}function m(e,t=e.sub){let i=e.dep,s=e.prevDep,r=e.nextDep,n=e.nextSub,l=e.prevSub;if(void 0!==r?r.prevDep=s:t.depsTail=s,void 0!==s?s.nextDep=r:t.deps=r,void 0!==n?n.prevSub=l:i.subsTail=l,void 0!==l)l.nextSub=n;else if(void 0===(i.subs=n)){let e=i.deps;if(void 0!==e){do e=m(e,i);while(void 0!==e);i.flags|=16}}return r}function A(e){let t,i=e.nextSub;e:for(;;){let s=e.sub,r=s.flags;if(3&r&&(60&r?12&r?4&r?!(48&r)&&function(e,t){let i=t.depsTail;if(void 0!==i){let s=t.deps;do{if(s===e)return!0;if(s===i)break;s=s.nextDep}while(void 0!==s)}return!1}(e,s)?(s.flags=8|r|32,r&=1):r=0:s.flags=-9&r|32:r=0:s.flags=32|r,2&r&&(y[S++]=s),1&r)){let r=s.subs;if(void 0!==r){e=r,void 0!==r.nextSub&&(t={value:i,prev:t},i=e.nextSub);continue}}if(void 0!==(e=i)){i=e.nextSub;continue}for(;void 0!==t;)if(e=t.value,t=t.prev,void 0!==e){i=e.nextSub;continue e}break}}function D(e){return e.depsTail=void 0,e.flags=-57&e.flags|4,T(e)}function k(e,t){i=t;let s=e.depsTail,r=void 0!==s?s.nextDep:e.deps;for(;void 0!==r;)r=m(r,e);e.flags&=-5}function O(){for(;w<S;){let e=y[w];y[w++]=void 0,e.notify()}w=0,S=0}function P(e,t){let i,s=0;e:for(;;){let r=e.dep,n=r.flags,l=!1;if(16&t.flags)l=!0;else if((17&n)==17){if(r.update()){let e=r.subs;void 0!==e.nextSub&&C(e),l=!0}}else if((33&n)==33){(void 0!==e.nextSub||void 0!==e.prevSub)&&(i={value:e,prev:i}),e=r.deps,t=r,++s;continue}if(!l&&void 0!==e.nextDep){e=e.nextDep;continue}for(;s;){--s;let r=t.subs,n=void 0!==r.nextSub;if(n?(e=i.value,i=i.prev):e=r,l){if(t.update()){n&&C(r),t=e.sub;continue}}else t.flags&=-33;if(t=e.sub,void 0!==e.nextDep){e=e.nextDep;continue e}l=!1}return l}}function C(e){do{let t=e.sub,i=e.nextSub,s=t.flags;(48&s)==32&&(t.flags=16|s),e=i}while(void 0!==e)}class L{constructor(e,t){this.map=e,this.key=t,this._subs=void 0,this.subsTail=void 0,this.flags=b.None}get subs(){return this._subs}set subs(e){this._subs=e,void 0===e&&this.map.delete(this.key)}}let j=new WeakMap,W=Symbol(""),I=Symbol(""),M=Symbol("");function V(e,t,s){if(void 0!==i){let t=j.get(e);t||j.set(e,t=new Map);let r=t.get(s);r||t.set(s,r=new L(t,s)),x(r,i)}}function N(e,t,i,s,r,n){let l=j.get(e);if(!l)return;let u=e=>{void 0!==e&&void 0!==e.subs&&(A(e.subs),C(e.subs))};if(++R,"clear"===t)l.forEach(u);else{let r=a(e),n=r&&_(i);if(r&&"length"===i){let e=Number(s);l.forEach((t,i)=>{("length"===i||i===M||!h(i)&&i>=e)&&u(t)})}else switch((void 0!==i||l.has(void 0))&&u(l.get(i)),n&&u(l.get(M)),t){case"add":r?n&&u(l.get("length")):(u(l.get(W)),f(e)&&u(l.get(I)));break;case"delete":!r&&(u(l.get(W)),f(e)&&u(l.get(I)));break;case"set":f(e)&&u(l.get(W))}}E()}function K(e){let t=eE(e);return t===e?t:(V(t,"iterate",M),eS(e)?t:t.map(ex))}function H(e){return V(e=eE(e),"iterate",M),e}let U={__proto__:null,[Symbol.iterator](){return Y(this,Symbol.iterator,ex)},concat(...e){return K(this).concat(...e.map(e=>a(e)?K(e):e))},entries(){return Y(this,"entries",e=>(e[1]=ex(e[1]),e))},every(e,t){return F(this,"every",e,t,void 0,arguments)},filter(e,t){return F(this,"filter",e,t,e=>e.map(ex),arguments)},find(e,t){return F(this,"find",e,t,ex,arguments)},findIndex(e,t){return F(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return F(this,"findLast",e,t,ex,arguments)},findLastIndex(e,t){return F(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return F(this,"forEach",e,t,void 0,arguments)},includes(...e){return B(this,"includes",e)},indexOf(...e){return B(this,"indexOf",e)},join(e){return K(this).join(e)},lastIndexOf(...e){return B(this,"lastIndexOf",e)},map(e,t){return F(this,"map",e,t,void 0,arguments)},pop(){return q(this,"pop")},push(...e){return q(this,"push",e)},reduce(e,...t){return G(this,"reduce",e,t)},reduceRight(e,...t){return G(this,"reduceRight",e,t)},shift(){return q(this,"shift")},some(e,t){return F(this,"some",e,t,void 0,arguments)},splice(...e){return q(this,"splice",e)},toReversed(){return K(this).toReversed()},toSorted(e){return K(this).toSorted(e)},toSpliced(...e){return K(this).toSpliced(...e)},unshift(...e){return q(this,"unshift",e)},values(){return Y(this,"values",ex)}};function Y(e,t,i){let s=H(e),r=s[t]();return s===e||eS(e)||(r._next=r.next,r.next=()=>{let e=r._next();return e.value&&(e.value=i(e.value)),e}),r}let z=Array.prototype;function F(e,t,i,s,r,n){let l=H(e),u=l!==e&&!eS(e),o=l[t];if(o!==z[t]){let t=o.apply(e,n);return u?ex(t):t}let a=i;l!==e&&(u?a=function(t,s){return i.call(this,ex(t),s,e)}:i.length>2&&(a=function(t,s){return i.call(this,t,s,e)}));let f=o.call(l,a,s);return u&&r?r(f):f}function G(e,t,i,s){let r=H(e),n=i;return r!==e&&(eS(e)?i.length>3&&(n=function(t,s,r){return i.call(this,t,s,r,e)}):n=function(t,s,r){return i.call(this,t,ex(s),r,e)}),r[t](n,...s)}function B(e,t,i){let s=eE(e);V(s,"iterate",M);let r=s[t](...i);return(-1===r||!1===r)&&eT(i[0])?(i[0]=eE(i[0]),s[t](...i)):r}function q(e,t,i=[]){++R;let s=T(),r=eE(e)[t].apply(e,i);return T(s),E(),r}let J=function(e){let t=Object.create(null);for(let i of e.split(","))t[i]=1;return e=>e in t}("__proto__,__v_isRef,__isVue"),Q=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(h));function X(e){h(e)||(e=String(e));let t=eE(this);return V(t,"has",e),t.hasOwnProperty(e)}class Z{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){if("__v_skip"===t)return e.__v_skip;let s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return i===(s?r?ep:e_:r?ev:ed).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=a(e);if(!s){let e;if(n&&(e=U[t]))return e;if("hasOwnProperty"===t)return X}let l=eA(e),u=Reflect.get(e,t,l?e:i);return l&&"value"!==t||(h(t)?Q.has(t):J(t))||(s||V(e,"get",t),r)?u:eA(u)?n&&_(t)?u:u.value:c(u)?s?eb(u):eg(u):u}}class $ extends Z{constructor(e=!1){super(!1,e)}set(e,t,i,s){let r=e[t];if(!this._isShallow){let t=ew(r);if(eS(i)||ew(i)||(r=eE(r),i=eE(i)),!a(e)&&eA(r)&&!eA(i))if(t)return!1;else return r.value=i,!0}let n=a(e)&&_(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,i,eA(e)?e:s);return e===eE(s)&&(n?p(i,r)&&N(e,"set",t,i):N(e,"add",t,i)),l}deleteProperty(e,t){let i=o(e,t);e[t];let s=Reflect.deleteProperty(e,t);return s&&i&&N(e,"delete",t,void 0),s}has(e,t){let i=Reflect.has(e,t);return h(t)&&Q.has(t)||V(e,"has",t),i}ownKeys(e){return V(e,"iterate",a(e)?"length":W),Reflect.ownKeys(e)}}class ee extends Z{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let et=new $,ei=new ee,es=new $(!0),er=new ee(!0),en=e=>e,el=e=>Reflect.getPrototypeOf(e);function eu(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function eo(e,t){let i=function(e,t){let i={get(i){let s=this.__v_raw,r=eE(s),n=eE(i);e||(p(i,n)&&V(r,"get",i),V(r,"get",n));let{has:l}=el(r),u=t?en:e?em:ex;return l.call(r,i)?u(s.get(i)):l.call(r,n)?u(s.get(n)):void(s!==r&&s.get(i))},get size(){let t=this.__v_raw;return e||V(eE(t),"iterate",W),Reflect.get(t,"size",t)},has(t){let i=this.__v_raw,s=eE(i),r=eE(t);return e||(p(t,r)&&V(s,"has",t),V(s,"has",r)),t===r?i.has(t):i.has(t)||i.has(r)},forEach(i,s){let r=this,n=r.__v_raw,l=eE(n),u=t?en:e?em:ex;return e||V(l,"iterate",W),n.forEach((e,t)=>i.call(s,u(e),u(t),r))}};return l(i,e?{add:eu("add"),set:eu("set"),delete:eu("delete"),clear:eu("clear")}:{add(e){t||eS(e)||ew(e)||(e=eE(e));let i=eE(this);return el(i).has.call(i,e)||(i.add(e),N(i,"add",e,e)),this},set(e,i){t||eS(i)||ew(i)||(i=eE(i));let s=eE(this),{has:r,get:n}=el(s),l=r.call(s,e);l||(e=eE(e),l=r.call(s,e));let u=n.call(s,e);return s.set(e,i),l?p(i,u)&&N(s,"set",e,i):N(s,"add",e,i),this},delete(e){let t=eE(this),{has:i,get:s}=el(t),r=i.call(t,e);r||(e=eE(e),r=i.call(t,e)),s&&s.call(t,e);let n=t.delete(e);return r&&N(t,"delete",e,void 0),n},clear(){let e=eE(this),t=0!==e.size,i=e.clear();return t&&N(e,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{i[s]=function(...i){let r=this.__v_raw,n=eE(r),l=f(n),u="entries"===s||s===Symbol.iterator&&l,o=r[s](...i),a=t?en:e?em:ex;return e||V(n,"iterate","keys"===s&&l?I:W),{next(){let{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:u?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}),i}(e,t);return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(o(i,s)&&s in t?i:t,s,r)}let ea={get:eo(!1,!1)},ef={get:eo(!1,!0)},eh={get:eo(!0,!1)},ec={get:eo(!0,!0)},ed=new WeakMap,ev=new WeakMap,e_=new WeakMap,ep=new WeakMap;function eg(e){return ew(e)?e:ey(e,!1,et,ea,ed)}function eb(e){return ey(e,!0,ei,eh,e_)}function ey(e,t,i,s,r){var n;if(!c(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let l=(n=e).__v_skip||!Object.isExtensible(n)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(v(n).slice(8,-1));if(0===l)return e;let u=r.get(e);if(u)return u;let o=new Proxy(e,2===l?s:i);return r.set(e,o),o}function eR(e){return ew(e)?eR(e.__v_raw):!!(e&&e.__v_isReactive)}function ew(e){return!!(e&&e.__v_isReadonly)}function eS(e){return!!(e&&e.__v_isShallow)}function eT(e){return!!e&&!!e.__v_raw}function eE(e){let t=e&&e.__v_raw;return t?eE(t):e}let ex=e=>c(e)?eg(e):e,em=e=>c(e)?eb(e):e;function eA(e){return!!e&&!0===e.__v_isRef}function eD(e){return ek(e,ex)}function ek(e,t){return eA(e)?e:new eO(e,t)}class eO{constructor(e,t){this.subs=void 0,this.subsTail=void 0,this.flags=b.Mutable,this.__v_isRef=!0,this.__v_isShallow=!1,this._oldValue=this._rawValue=t?eE(e):e,this._value=t?t(e):e,this._wrap=t,this.__v_isShallow=!t}get dep(){return this}get value(){if(eC(this),this.flags&b.Dirty&&this.update()){let e=this.subs;void 0!==e&&C(e)}return this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eS(e)||ew(e);if(p(e=i?e:eE(e),t)){this.flags|=b.Dirty,this._rawValue=e,this._value=!i&&this._wrap?this._wrap(e):e;let t=this.subs;void 0!==t&&(A(t),R||O())}}update(){return this.flags&=~b.Dirty,p(this._oldValue,this._oldValue=this._rawValue)}}function eP(e){let t=e.dep;void 0!==t&&void 0!==t.subs&&(A(t.subs),C(t.subs),R||O())}function eC(e){void 0!==i&&x(e,i)}function eL(e){return eA(e)?e.value:e}let ej={get:(e,t,i)=>"__v_raw"===t?e:eL(Reflect.get(e,t,i)),set:(e,t,i,s)=>{let r=e[t];return eA(r)&&!eA(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};class eW{constructor(e){this.subs=void 0,this.subsTail=void 0,this.flags=b.None,this.__v_isRef=!0,this._value=void 0;let{get:t,set:i}=e(()=>eC(this),()=>eP(this));this._get=t,this._set=i}get dep(){return this}get value(){return this._value=this._get()}set value(e){this._set(e)}}class eI{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){let i=j.get(e);return i&&i.get(t)}(eE(this._object),this._key)}}class eM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function eV(e,t,i){let s=e[t];return eA(s)?s:new eI(e,t,i)}class eN{constructor(e){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=b.Watching|b.Dirty,this.cleanups=[],this.cleanupsLength=0,void 0!==e&&(this.fn=e),t&&x(this,t)}fn(){}get active(){return!(1024&this.flags)}pause(){this.flags|=256}resume(){(this.flags&=-257)&(b.Dirty|b.Pending)&&this.notify()}notify(){!(256&this.flags)&&this.dirty&&this.run()}run(){if(!this.active)return this.fn();eH(this);let e=D(this);try{return this.fn()}finally{k(this,e);let t=this.flags;(t&(128|b.Recursed))==(128|b.Recursed)&&(this.flags=t&~b.Recursed,this.notify())}}stop(){if(!this.active)return;this.flags=1024;let e=this.deps;for(;void 0!==e;)e=m(e,this);let t=this.subs;void 0!==t&&m(t),eH(this)}get dirty(){let e=this.flags;if(e&b.Dirty)return!0;if(e&b.Pending)if(P(this.deps,this))return this.flags=e|b.Dirty,!0;else this.flags=e&~b.Pending;return!1}}let eK=[];function eH(e){let t=e.cleanupsLength;if(t){for(let i=0;i<t;i++)e.cleanups[i]();e.cleanupsLength=0}}class eU{constructor(e=!1){this.deps=void 0,this.depsTail=void 0,this.subs=void 0,this.subsTail=void 0,this.flags=0,this.cleanups=[],this.cleanupsLength=0,!e&&t&&x(this,t)}get active(){return!(1024&this.flags)}pause(){if(!(256&this.flags)){this.flags|=256;for(let e=this.deps;void 0!==e;e=e.nextDep){let t=e.dep;"pause"in t&&t.pause()}}}resume(){let e=this.flags;if(256&e){this.flags=-257&e;for(let e=this.deps;void 0!==e;e=e.nextDep){let t=e.dep;"resume"in t&&t.resume()}}}run(e){let i=t;try{return t=this,e()}finally{t=i}}stop(){if(!this.active)return;this.flags=1024;let e=this.deps;for(;void 0!==e;){let t=e.dep;"stop"in t?(e=e.nextDep,t.stop()):e=m(e,this)}let t=this.subs;void 0!==t&&m(t),eH(this)}}class eY{constructor(e,t){this.fn=e,this.setter=t,this._value=void 0,this.subs=void 0,this.subsTail=void 0,this.deps=void 0,this.depsTail=void 0,this.flags=b.Mutable|b.Dirty,this.__v_isRef=!0,this.__v_isReadonly=!t}get effect(){return this}get dep(){return this}get _dirty(){let e=this.flags;if(e&b.Dirty)return!0;if(e&b.Pending)if(P(this.deps,this))return this.flags=e|b.Dirty,!0;else this.flags=e&~b.Pending;return!1}set _dirty(e){e?this.flags|=b.Dirty:this.flags&=~(b.Dirty|b.Pending)}get value(){let e=this.flags;if(e&b.Dirty||e&b.Pending&&P(this.deps,this)){if(this.update()){let e=this.subs;void 0!==e&&C(e)}}else e&b.Pending&&(this.flags=e&~b.Pending);return void 0!==i?x(this,i):void 0!==t&&x(this,t),this._value}set value(e){this.setter&&this.setter(e)}update(){let e=D(this);try{let e=this._value,t=this.fn(e);if(p(e,t))return this._value=t,!0;return!1}finally{k(this,e)}}}let ez={};function eF(e,t=!1,i=s){if(i){let{call:t}=i.options;t?i.cleanups[i.cleanupsLength++]=()=>t(e,4):i.cleanups[i.cleanupsLength++]=e}}class eG extends eN{constructor(e,t,i=r){let l,{deep:u,once:o,call:f,onWarn:h}=i,c=!1,d=!1;if(eA(e)?(l=()=>e.value,c=eS(e)):eR(e)?(l=()=>eB(e,u),c=!0):a(e)?(d=!0,c=e.some(e=>eR(e)||eS(e)),l=()=>e.map(e=>eA(e)?e.value:eR(e)?eB(e,u):"function"==typeof e?f?f(e,2):e():void 0)):l="function"==typeof e?t?f?()=>f(e,2):e:()=>{if(this.cleanupsLength){let e=T();try{eH(this)}finally{T(e)}}let t=s;s=this;try{return f?f(e,3,[this.boundCleanup]):e(this.boundCleanup)}finally{s=t}}:n,t&&u){let e=l,t=!0===u?1/0:u;l=()=>eq(e(),t)}if(super(l),this.cb=t,this.options=i,this.boundCleanup=e=>eF(e,!1,this),this.forceTrigger=c,this.isMultiSource=d,o&&t){let e=t;t=(...t)=>{e(...t),this.stop()}}this.cb=t,this.oldValue=d?Array(e.length).fill(ez):ez}run(e=!1){let t=this.oldValue,i=this.oldValue=super.run();if(!this.cb)return;let{immediate:r,deep:n,call:l}=this.options;if((!e||r)&&(n||this.forceTrigger||(this.isMultiSource?i.some((e,i)=>p(e,t[i])):p(i,t)))){eH(this);let e=s;s=this;try{let e=[i,t===ez?void 0:this.isMultiSource&&t[0]===ez?[]:t,this.boundCleanup];l?l(this.cb,3,e):this.cb(...e)}finally{s=e}}}}function eB(e,t){return t?e:eS(e)||!1===t||0===t?eq(e,1):eq(e)}function eq(e,t=1/0,i){if(t<=0||!c(e)||e.__v_skip||(i=i||new Set).has(e))return e;if(i.add(e),t--,eA(e))eq(e.value,t,i);else if(a(e))for(let s=0;s<e.length;s++)eq(e[s],t,i);else if("[object Set]"===v(e)||f(e))e.forEach(e=>{eq(e,t,i)});else if("[object Object]"===v(e)){for(let s in e)eq(e[s],t,i);for(let s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&eq(e[s],t,i)}return e}return e.ARRAY_ITERATE_KEY=M,e.EffectFlags={ALLOW_RECURSE:128,128:"ALLOW_RECURSE",PAUSED:256,256:"PAUSED",STOP:1024,1024:"STOP"},e.EffectScope=eU,e.ITERATE_KEY=W,e.MAP_KEY_ITERATE_KEY=I,e.ReactiveEffect=eN,e.ReactiveFlags={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},e.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},e.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},e.WatchErrorCodes={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},e.WatcherEffect=eG,e.computed=function(e,t,i=!1){let s,r;return"function"==typeof e?s=e:(s=e.get,r=e.set),new eY(s,r)},e.customRef=function(e){return new eW(e)},e.effect=function(e,t){e.effect instanceof eN&&(e=e.effect.fn);let i=new eN(e);if(t){let{onStop:e,scheduler:s}=t;if(e){t.onStop=void 0;let s=i.stop.bind(i);i.stop=()=>{s(),e()}}s&&(t.scheduler=void 0,i.notify=()=>{256&i.flags||s()}),l(i,t)}try{i.run()}catch(e){throw i.stop(),e}let s=i.run.bind(i);return s.effect=i,s},e.effectScope=function(e){return new eU(e)},e.enableTracking=function(){if(void 0===i){eK.push(void 0);for(let e=eK.length-1;e>=0;e--)if(void 0!==eK[e]){T(eK[e]);break}}else eK.push(i)},e.getCurrentScope=function(){return t},e.getCurrentWatcher=function(){return s},e.isProxy=eT,e.isReactive=eR,e.isReadonly=ew,e.isRef=eA,e.isShallow=eS,e.markRaw=function(e){return!o(e,"__v_skip")&&Object.isExtensible(e)&&((e,t,i,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:i})})(e,"__v_skip",!0),e},e.onEffectCleanup=function(e,t=!1){i instanceof eN&&(i.cleanups[i.cleanupsLength++]=()=>(function(e){let t=T();try{e()}finally{T(t)}})(e))},e.onScopeDispose=function(e,i=!1){void 0!==t&&(t.cleanups[t.cleanupsLength++]=e)},e.onWatcherCleanup=eF,e.pauseTracking=function(){eK.push(i),T()},e.proxyRefs=function(e){return eR(e)?e:new Proxy(e,ej)},e.reactive=eg,e.reactiveReadArray=K,e.readonly=eb,e.ref=eD,e.resetTracking=function(){eK.length?T(eK.pop()):T()},e.setActiveSub=T,e.setCurrentScope=function(e){try{return t}finally{t=e}},e.shallowReactive=function(e){return ey(e,!1,es,ef,ev)},e.shallowReadArray=H,e.shallowReadonly=function(e){return ey(e,!0,er,ec,ep)},e.shallowRef=function(e){return ek(e)},e.stop=function(e){e.effect.stop()},e.toRaw=eE,e.toReactive=ex,e.toReadonly=em,e.toRef=function(e,t,i){return eA(e)?e:"function"==typeof e?new eM(e):c(e)&&arguments.length>1?eV(e,t,i):eD(e)},e.toRefs=function(e){let t=a(e)?Array(e.length):{};for(let i in e)t[i]=eV(e,i);return t},e.toValue=function(e){return"function"==typeof e?e():eL(e)},e.track=V,e.traverse=eq,e.trigger=N,e.triggerRef=eP,e.unref=eL,e.watch=function(e,t,i=r){let s=new eG(e,t,i);s.run(!0);let n=s.stop.bind(s);return n.pause=s.pause.bind(s),n.resume=s.resume.bind(s),n.stop=n,n},e}({});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vue/reactivity",
|
|
3
|
-
"version": "3.5.14",
|
|
4
|
-
"description": "@vue/reactivity",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "dist/reactivity.esm-bundler.js",
|
|
7
|
-
"types": "dist/reactivity.d.ts",
|
|
8
|
-
"unpkg": "dist/reactivity.global.js",
|
|
9
|
-
"jsdelivr": "dist/reactivity.global.js",
|
|
10
|
-
"files": [
|
|
11
|
-
"index.js",
|
|
12
|
-
"dist"
|
|
13
|
-
],
|
|
14
|
-
"exports": {
|
|
15
|
-
".": {
|
|
16
|
-
"types": "./dist/reactivity.d.ts",
|
|
17
|
-
"node": {
|
|
18
|
-
"production": "./dist/reactivity.cjs.prod.js",
|
|
19
|
-
"development": "./dist/reactivity.cjs.js",
|
|
20
|
-
"default": "./index.js"
|
|
21
|
-
},
|
|
22
|
-
"module": "./dist/reactivity.esm-bundler.js",
|
|
23
|
-
"import": "./dist/reactivity.esm-bundler.js",
|
|
24
|
-
"require": "./index.js"
|
|
25
|
-
},
|
|
26
|
-
"./*": "./*"
|
|
27
|
-
},
|
|
28
|
-
"sideEffects": false,
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/vuejs/core.git",
|
|
32
|
-
"directory": "packages/reactivity"
|
|
33
|
-
},
|
|
34
|
-
"buildOptions": {
|
|
35
|
-
"name": "VueReactivity",
|
|
36
|
-
"formats": [
|
|
37
|
-
"esm-bundler",
|
|
38
|
-
"esm-browser",
|
|
39
|
-
"cjs",
|
|
40
|
-
"global"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
"keywords": [
|
|
44
|
-
"vue"
|
|
45
|
-
],
|
|
46
|
-
"author": "Evan You",
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"bugs": {
|
|
49
|
-
"url": "https://github.com/vuejs/core/issues"
|
|
50
|
-
},
|
|
51
|
-
"homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@vue/shared": "workspace:*"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018-present, Yuxi (Evan) You
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# @vue/runtime-core
|
|
2
|
-
|
|
3
|
-
> This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
|
|
4
|
-
|
|
5
|
-
For full exposed APIs, see `src/index.ts`.
|
|
6
|
-
|
|
7
|
-
## Building a Custom Renderer
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { createRenderer } from '@vue/runtime-core'
|
|
11
|
-
|
|
12
|
-
const { render, createApp } = createRenderer({
|
|
13
|
-
patchProp,
|
|
14
|
-
insert,
|
|
15
|
-
remove,
|
|
16
|
-
createElement,
|
|
17
|
-
// ...
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
// `render` is the low-level API
|
|
21
|
-
// `createApp` returns an app instance with configurable context shared
|
|
22
|
-
// by the entire app tree.
|
|
23
|
-
export { render, createApp }
|
|
24
|
-
|
|
25
|
-
export * from '@vue/runtime-core'
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
See `@vue/runtime-dom` for how a DOM-targeting renderer is implemented.
|