vue 3.6.0-beta.12 → 3.6.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +2 -1
- package/dist/vue.cjs.prod.js +2 -1
- package/dist/vue.d.mts +3 -3
- package/dist/vue.d.ts +3 -3
- package/dist/vue.esm-browser.js +109 -70
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +3 -3
- package/dist/vue.global.js +109 -69
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime-with-vapor.esm-browser.js +1455 -981
- package/dist/vue.runtime-with-vapor.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +107 -67
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +3 -3
- package/dist/vue.runtime.global.js +107 -66
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +7 -7
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -68,6 +68,7 @@ function compileToFunction(template, options) {
|
|
|
68
68
|
(0, _vue_runtime_dom.registerRuntimeCompiler)(compileToFunction);
|
|
69
69
|
//#endregion
|
|
70
70
|
exports.compile = compileToFunction;
|
|
71
|
+
exports.defineVaporAsyncComponent = _vue_runtime_dom.defineAsyncComponent;
|
|
71
72
|
Object.keys(_vue_runtime_dom).forEach(function(k) {
|
|
72
73
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
73
74
|
enumerable: true,
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -59,6 +59,7 @@ function compileToFunction(template, options) {
|
|
|
59
59
|
(0, _vue_runtime_dom.registerRuntimeCompiler)(compileToFunction);
|
|
60
60
|
//#endregion
|
|
61
61
|
exports.compile = compileToFunction;
|
|
62
|
+
exports.defineVaporAsyncComponent = _vue_runtime_dom.defineAsyncComponent;
|
|
62
63
|
Object.keys(_vue_runtime_dom).forEach(function(k) {
|
|
63
64
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
64
65
|
enumerable: true,
|
package/dist/vue.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompilerOptions } from "@vue/compiler-dom";
|
|
2
|
-
import { RenderFunction } from "@vue/runtime-dom";
|
|
3
|
-
import { VaporSlot, withAsyncContext } from "@vue/runtime-vapor";
|
|
2
|
+
import { RenderFunction, defineAsyncComponent as defineVaporAsyncComponent$1 } from "@vue/runtime-dom";
|
|
3
|
+
import { VaporSlot, defineVaporAsyncComponent, withAsyncContext } from "@vue/runtime-vapor";
|
|
4
4
|
export * from "@vue/runtime-dom";
|
|
5
5
|
export * from "@vue/runtime-vapor";
|
|
6
6
|
|
|
@@ -9,4 +9,4 @@ export * from "@vue/runtime-vapor";
|
|
|
9
9
|
//#region temp/packages/vue/src/index.d.ts
|
|
10
10
|
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { type VaporSlot, compileToFunction as compile, withAsyncContext };
|
|
12
|
+
export { type VaporSlot, compileToFunction as compile, defineVaporAsyncComponent, withAsyncContext };
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompilerOptions } from "@vue/compiler-dom";
|
|
2
|
-
import { RenderFunction } from "@vue/runtime-dom";
|
|
3
|
-
import { VaporSlot, withAsyncContext } from "@vue/runtime-vapor";
|
|
2
|
+
import { RenderFunction, defineAsyncComponent as defineVaporAsyncComponent$1 } from "@vue/runtime-dom";
|
|
3
|
+
import { VaporSlot, defineVaporAsyncComponent, withAsyncContext } from "@vue/runtime-vapor";
|
|
4
4
|
export * from "@vue/runtime-dom";
|
|
5
5
|
export * from "@vue/runtime-vapor";
|
|
6
6
|
|
|
@@ -9,4 +9,4 @@ export * from "@vue/runtime-vapor";
|
|
|
9
9
|
//#region temp/packages/vue/src/index.d.ts
|
|
10
10
|
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { type VaporSlot, compileToFunction as compile, withAsyncContext };
|
|
12
|
+
export { type VaporSlot, compileToFunction as compile, defineVaporAsyncComponent, withAsyncContext };
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1312,9 +1312,6 @@ function targetTypeMap(rawType) {
|
|
|
1312
1312
|
default: return 0;
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
function getTargetType(value) {
|
|
1316
|
-
return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));
|
|
1317
|
-
}
|
|
1318
1315
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1319
1316
|
function reactive(target) {
|
|
1320
1317
|
if (/* @__PURE__ */ isReadonly(target)) return target;
|
|
@@ -1427,10 +1424,11 @@ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandle
|
|
|
1427
1424
|
return target;
|
|
1428
1425
|
}
|
|
1429
1426
|
if (target["__v_raw"] && !(isReadonly && target["__v_isReactive"])) return target;
|
|
1430
|
-
|
|
1431
|
-
if (targetType === 0) return target;
|
|
1427
|
+
if (target["__v_skip"] || !Object.isExtensible(target)) return target;
|
|
1432
1428
|
const existingProxy = proxyMap.get(target);
|
|
1433
1429
|
if (existingProxy) return existingProxy;
|
|
1430
|
+
const targetType = targetTypeMap(toRawType(target));
|
|
1431
|
+
if (targetType === 0) return target;
|
|
1434
1432
|
const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);
|
|
1435
1433
|
proxyMap.set(target, proxy);
|
|
1436
1434
|
return proxy;
|
|
@@ -2680,6 +2678,7 @@ function flushJobs(seen) {
|
|
|
2680
2678
|
}
|
|
2681
2679
|
flushIndex = 0;
|
|
2682
2680
|
jobsLength = 0;
|
|
2681
|
+
jobs.length = 0;
|
|
2683
2682
|
flushPostFlushCbs(seen);
|
|
2684
2683
|
currentFlushPromise = null;
|
|
2685
2684
|
if (jobsLength || postJobs.length) flushJobs(seen);
|
|
@@ -2737,6 +2736,14 @@ function createRecord(id, initialDef) {
|
|
|
2737
2736
|
function normalizeClassComponent(component) {
|
|
2738
2737
|
return isClassComponent(component) ? component.__vccOpts : component;
|
|
2739
2738
|
}
|
|
2739
|
+
function hasDirtyAncestor(instance, dirtyInstances) {
|
|
2740
|
+
let parent = instance.parent;
|
|
2741
|
+
while (parent) {
|
|
2742
|
+
if (dirtyInstances.has(parent)) return true;
|
|
2743
|
+
parent = parent.parent;
|
|
2744
|
+
}
|
|
2745
|
+
return false;
|
|
2746
|
+
}
|
|
2740
2747
|
function rerender(id, newRender) {
|
|
2741
2748
|
const record = map.get(id);
|
|
2742
2749
|
if (!record) return;
|
|
@@ -2768,42 +2775,69 @@ function reload(id, newComp) {
|
|
|
2768
2775
|
const isVapor = record.initialDef.__vapor;
|
|
2769
2776
|
updateComponentDef(record.initialDef, newComp);
|
|
2770
2777
|
const instances = [...record.instances];
|
|
2771
|
-
if (isVapor && newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2778
|
+
if (isVapor && newComp.__vapor && !instances.some((instance) => instance.parent && !instance.parent.vapor) && !instances.some((i) => i.ceReload)) {
|
|
2772
2779
|
for (const instance of instances) if (instance.root && instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(instance.type);
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
const
|
|
2776
|
-
let dirtyInstances = hmrDirtyComponents.get(oldComp);
|
|
2777
|
-
if (!dirtyInstances) {
|
|
2778
|
-
if (oldComp !== record.initialDef) updateComponentDef(oldComp, newComp);
|
|
2779
|
-
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2780
|
-
}
|
|
2781
|
-
dirtyInstances.add(instance);
|
|
2782
|
-
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2783
|
-
instance.appContext.propsCache.delete(instance.type);
|
|
2784
|
-
instance.appContext.emitsCache.delete(instance.type);
|
|
2785
|
-
instance.appContext.optionsCache.delete(instance.type);
|
|
2786
|
-
if (instance.ceReload) {
|
|
2787
|
-
dirtyInstances.add(instance);
|
|
2788
|
-
instance.ceReload(newComp.styles);
|
|
2789
|
-
dirtyInstances.delete(instance);
|
|
2790
|
-
} else if (instance.parent) queueJob(() => {
|
|
2791
|
-
isHmrUpdating = true;
|
|
2780
|
+
const dirtyInstances = new Set(instances);
|
|
2781
|
+
const rerenderedParents = /* @__PURE__ */ new Set();
|
|
2782
|
+
for (const instance of instances) {
|
|
2792
2783
|
const parent = instance.parent;
|
|
2793
|
-
if (parent
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2784
|
+
if (parent) {
|
|
2785
|
+
if (!hasDirtyAncestor(instance, dirtyInstances) && !rerenderedParents.has(parent)) {
|
|
2786
|
+
rerenderedParents.add(parent);
|
|
2787
|
+
parent.hmrRerender();
|
|
2788
|
+
}
|
|
2789
|
+
} else instance.hmrReload(newComp);
|
|
2790
|
+
}
|
|
2791
|
+
} else {
|
|
2792
|
+
const parentUpdates = /* @__PURE__ */ new Map();
|
|
2793
|
+
const dirtyInstanceSet = new Set(instances);
|
|
2794
|
+
for (const instance of instances) {
|
|
2795
|
+
const oldComp = normalizeClassComponent(instance.type);
|
|
2796
|
+
let dirtyInstances = hmrDirtyComponents.get(oldComp);
|
|
2797
|
+
if (!dirtyInstances) {
|
|
2798
|
+
if (oldComp !== record.initialDef) updateComponentDef(oldComp, newComp);
|
|
2799
|
+
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2797
2800
|
}
|
|
2798
|
-
|
|
2799
|
-
|
|
2801
|
+
dirtyInstances.add(instance);
|
|
2802
|
+
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2803
|
+
instance.appContext.propsCache.delete(instance.type);
|
|
2804
|
+
instance.appContext.emitsCache.delete(instance.type);
|
|
2805
|
+
instance.appContext.optionsCache.delete(instance.type);
|
|
2806
|
+
if (instance.ceReload) {
|
|
2807
|
+
dirtyInstances.add(instance);
|
|
2808
|
+
instance.ceReload(newComp.styles);
|
|
2809
|
+
dirtyInstances.delete(instance);
|
|
2810
|
+
} else if (instance.parent) {
|
|
2811
|
+
const parent = instance.parent;
|
|
2812
|
+
if (!hasDirtyAncestor(instance, dirtyInstanceSet)) {
|
|
2813
|
+
let updates = parentUpdates.get(parent);
|
|
2814
|
+
if (!updates) parentUpdates.set(parent, updates = []);
|
|
2815
|
+
updates.push([instance, dirtyInstances]);
|
|
2816
|
+
}
|
|
2817
|
+
} else if (instance.appContext.reload) instance.appContext.reload();
|
|
2818
|
+
else if (typeof window !== "undefined") window.location.reload();
|
|
2819
|
+
else console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
2820
|
+
if (instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(oldComp);
|
|
2821
|
+
}
|
|
2822
|
+
parentUpdates.forEach((updates, parent) => {
|
|
2823
|
+
queueJob(() => {
|
|
2824
|
+
isHmrUpdating = true;
|
|
2825
|
+
if (parent.vapor) parent.hmrRerender();
|
|
2826
|
+
else {
|
|
2827
|
+
const i = parent;
|
|
2828
|
+
if (!(i.effect.flags & 1024)) {
|
|
2829
|
+
i.renderCache = [];
|
|
2830
|
+
i.effect.run();
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
nextTick(() => {
|
|
2834
|
+
isHmrUpdating = false;
|
|
2835
|
+
});
|
|
2836
|
+
updates.forEach(([instance, dirtyInstances]) => {
|
|
2837
|
+
dirtyInstances.delete(instance);
|
|
2838
|
+
});
|
|
2800
2839
|
});
|
|
2801
|
-
dirtyInstances.delete(instance);
|
|
2802
2840
|
});
|
|
2803
|
-
else if (instance.appContext.reload) instance.appContext.reload();
|
|
2804
|
-
else if (typeof window !== "undefined") window.location.reload();
|
|
2805
|
-
else console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
2806
|
-
if (instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(oldComp);
|
|
2807
2841
|
}
|
|
2808
2842
|
queuePostFlushCb(() => {
|
|
2809
2843
|
hmrDirtyComponents.clear();
|
|
@@ -3249,17 +3283,16 @@ const TeleportImpl = {
|
|
|
3249
3283
|
},
|
|
3250
3284
|
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
3251
3285
|
const { shapeFlag, children, anchor, targetStart, targetAnchor, props } = vnode;
|
|
3252
|
-
|
|
3286
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3253
3287
|
const pendingMount = pendingMounts.get(vnode);
|
|
3254
3288
|
if (pendingMount) {
|
|
3255
3289
|
pendingMount.flags |= 4;
|
|
3256
3290
|
pendingMounts.delete(vnode);
|
|
3257
|
-
shouldRemove = false;
|
|
3258
3291
|
}
|
|
3259
3292
|
if (targetStart) hostRemove(targetStart);
|
|
3260
3293
|
if (targetAnchor) hostRemove(targetAnchor);
|
|
3261
3294
|
doRemove && hostRemove(anchor);
|
|
3262
|
-
if (shapeFlag & 16) for (let i = 0; i < children.length; i++) {
|
|
3295
|
+
if (!pendingMount && shapeFlag & 16) for (let i = 0; i < children.length; i++) {
|
|
3263
3296
|
const child = children[i];
|
|
3264
3297
|
unmount(child, parentComponent, parentSuspense, shouldRemove, !!child.dynamicChildren);
|
|
3265
3298
|
}
|
|
@@ -3911,15 +3944,11 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3911
3944
|
}
|
|
3912
3945
|
if (shapeFlag & 16 && !(props && (props.innerHTML || props.textContent))) {
|
|
3913
3946
|
let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
3914
|
-
|
|
3947
|
+
if (next && !isMismatchAllowed(el, 1)) {
|
|
3948
|
+
warn$1(`Hydration children mismatch on`, el, `\nServer rendered element contains more child nodes than client vdom.`);
|
|
3949
|
+
logMismatchError();
|
|
3950
|
+
}
|
|
3915
3951
|
while (next) {
|
|
3916
|
-
if (!isMismatchAllowed(el, 1)) {
|
|
3917
|
-
if (!hasWarned) {
|
|
3918
|
-
warn$1(`Hydration children mismatch on`, el, `\nServer rendered element contains more child nodes than client vdom.`);
|
|
3919
|
-
hasWarned = true;
|
|
3920
|
-
}
|
|
3921
|
-
logMismatchError();
|
|
3922
|
-
}
|
|
3923
3952
|
const cur = next;
|
|
3924
3953
|
next = next.nextSibling;
|
|
3925
3954
|
remove(cur);
|
|
@@ -3958,7 +3987,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3958
3987
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
3959
3988
|
const children = parentVNode.children;
|
|
3960
3989
|
const l = children.length;
|
|
3961
|
-
let
|
|
3990
|
+
let hasCheckedMismatch = false;
|
|
3962
3991
|
for (let i = 0; i < l; i++) {
|
|
3963
3992
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
3964
3993
|
const isText = vnode.type === Text;
|
|
@@ -3972,12 +4001,12 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3972
4001
|
node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
3973
4002
|
} else if (isText && !vnode.children) insert(vnode.el = createText(""), container);
|
|
3974
4003
|
else {
|
|
3975
|
-
if (!
|
|
3976
|
-
|
|
4004
|
+
if (!hasCheckedMismatch) {
|
|
4005
|
+
hasCheckedMismatch = true;
|
|
4006
|
+
if (!isMismatchAllowed(container, 1)) {
|
|
3977
4007
|
warn$1(`Hydration children mismatch on`, container, `\nServer rendered element contains fewer child nodes than client vdom.`);
|
|
3978
|
-
|
|
4008
|
+
logMismatchError();
|
|
3979
4009
|
}
|
|
3980
|
-
logMismatchError();
|
|
3981
4010
|
}
|
|
3982
4011
|
patch(null, vnode, container, null, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
|
|
3983
4012
|
}
|
|
@@ -4760,6 +4789,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
4760
4789
|
slot: vaporSlot,
|
|
4761
4790
|
fallback
|
|
4762
4791
|
};
|
|
4792
|
+
if (!noSlotted && ret.scopeId) ret.slotScopeIds = [ret.scopeId + "-s"];
|
|
4763
4793
|
return ret;
|
|
4764
4794
|
}
|
|
4765
4795
|
if (currentRenderingInstance && (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce)) {
|
|
@@ -6990,8 +7020,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6990
7020
|
else hostInsert(el, container, anchor);
|
|
6991
7021
|
};
|
|
6992
7022
|
const performLeave = () => {
|
|
7023
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
6993
7024
|
if (el._isLeaving) el[leaveCbKey](true);
|
|
6994
|
-
|
|
7025
|
+
if (transition.persisted && !wasLeaving) remove();
|
|
7026
|
+
else leave(el, () => {
|
|
6995
7027
|
remove();
|
|
6996
7028
|
afterLeave && afterLeave();
|
|
6997
7029
|
});
|
|
@@ -7212,6 +7244,10 @@ function invalidateMount(hooks) {
|
|
|
7212
7244
|
if (hooks) for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 4;
|
|
7213
7245
|
}
|
|
7214
7246
|
function performTransitionEnter(el, transition, insert, parentSuspense, force = false) {
|
|
7247
|
+
if (force && transition.persisted && !el[leaveCbKey]) {
|
|
7248
|
+
insert();
|
|
7249
|
+
return;
|
|
7250
|
+
}
|
|
7215
7251
|
if (force || needTransition(parentSuspense, transition)) {
|
|
7216
7252
|
transition.beforeEnter(el);
|
|
7217
7253
|
insert();
|
|
@@ -8458,7 +8494,7 @@ function isMemoSame(cached, memo) {
|
|
|
8458
8494
|
}
|
|
8459
8495
|
//#endregion
|
|
8460
8496
|
//#region packages/runtime-core/src/index.ts
|
|
8461
|
-
const version = "3.6.0-beta.
|
|
8497
|
+
const version = "3.6.0-beta.14";
|
|
8462
8498
|
const warn = warn$1;
|
|
8463
8499
|
/**
|
|
8464
8500
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -9066,7 +9102,21 @@ function createInvoker(initialValue, instance) {
|
|
|
9066
9102
|
const invoker = (e) => {
|
|
9067
9103
|
if (!e._vts) e._vts = Date.now();
|
|
9068
9104
|
else if (e._vts <= invoker.attached) return;
|
|
9069
|
-
|
|
9105
|
+
const value = invoker.value;
|
|
9106
|
+
if (isArray(value)) {
|
|
9107
|
+
const originalStop = e.stopImmediatePropagation;
|
|
9108
|
+
e.stopImmediatePropagation = () => {
|
|
9109
|
+
originalStop.call(e);
|
|
9110
|
+
e._stopped = true;
|
|
9111
|
+
};
|
|
9112
|
+
const handlers = value.slice();
|
|
9113
|
+
const args = [e];
|
|
9114
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
9115
|
+
if (e._stopped) break;
|
|
9116
|
+
const handler = handlers[i];
|
|
9117
|
+
if (handler) callWithAsyncErrorHandling(handler, instance, 5, args);
|
|
9118
|
+
}
|
|
9119
|
+
} else callWithAsyncErrorHandling(value, instance, 5, [e]);
|
|
9070
9120
|
};
|
|
9071
9121
|
invoker.value = initialValue;
|
|
9072
9122
|
invoker.attached = getNow();
|
|
@@ -9077,16 +9127,6 @@ function sanitizeEventValue(value, propName) {
|
|
|
9077
9127
|
warn(`Wrong type passed as event handler to ${propName} - did you forget @ or : in front of your prop?\nExpected function or array of functions, received type ${typeof value}.`);
|
|
9078
9128
|
return NOOP;
|
|
9079
9129
|
}
|
|
9080
|
-
function patchStopImmediatePropagation(e, value) {
|
|
9081
|
-
if (isArray(value)) {
|
|
9082
|
-
const originalStop = e.stopImmediatePropagation;
|
|
9083
|
-
e.stopImmediatePropagation = () => {
|
|
9084
|
-
originalStop.call(e);
|
|
9085
|
-
e._stopped = true;
|
|
9086
|
-
};
|
|
9087
|
-
return value.map((fn) => (e) => !e._stopped && fn && fn(e));
|
|
9088
|
-
} else return value;
|
|
9089
|
-
}
|
|
9090
9130
|
//#endregion
|
|
9091
9131
|
//#region packages/runtime-dom/src/patchProp.ts
|
|
9092
9132
|
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
@@ -12974,10 +13014,9 @@ const transformFor = createStructuralDirectiveTransform("for", (node, dir, conte
|
|
|
12974
13014
|
const isTemplate = isTemplateNode(node);
|
|
12975
13015
|
const memo = findDir(node, "memo");
|
|
12976
13016
|
const keyProp = findProp(node, `key`, false, true);
|
|
12977
|
-
|
|
13017
|
+
keyProp && keyProp.type;
|
|
12978
13018
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
12979
|
-
|
|
12980
|
-
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
13019
|
+
const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
12981
13020
|
const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
|
|
12982
13021
|
const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
|
|
12983
13022
|
forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
|
|
@@ -14342,4 +14381,4 @@ function compileToFunction(template, options) {
|
|
|
14342
14381
|
}
|
|
14343
14382
|
registerRuntimeCompiler(compileToFunction);
|
|
14344
14383
|
//#endregion
|
|
14345
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compileToFunction as compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setIsHydratingEnabled, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
14384
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compileToFunction as compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineAsyncComponent as defineVaporAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setIsHydratingEnabled, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|