@vue/runtime-dom 3.4.24 → 3.4.26
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/runtime-dom.cjs.js +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +37 -37
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +37 -37
- package/dist/runtime-dom.global.prod.js +5 -5
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -84,10 +84,11 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
84
84
|
fns[i](arg);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const def = (obj, key, value) => {
|
|
87
|
+
const def = (obj, key, value, writable = false) => {
|
|
88
88
|
Object.defineProperty(obj, key, {
|
|
89
89
|
configurable: true,
|
|
90
90
|
enumerable: false,
|
|
91
|
+
writable,
|
|
91
92
|
value
|
|
92
93
|
});
|
|
93
94
|
};
|
|
@@ -479,11 +480,10 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
479
480
|
}
|
|
480
481
|
}
|
|
481
482
|
stop() {
|
|
482
|
-
var _a;
|
|
483
483
|
if (this.active) {
|
|
484
484
|
preCleanupEffect(this);
|
|
485
485
|
postCleanupEffect(this);
|
|
486
|
-
|
|
486
|
+
this.onStop && this.onStop();
|
|
487
487
|
this.active = false;
|
|
488
488
|
}
|
|
489
489
|
}
|
|
@@ -696,8 +696,8 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
696
696
|
resetScheduling();
|
|
697
697
|
}
|
|
698
698
|
function getDepFromReactive(object, key) {
|
|
699
|
-
|
|
700
|
-
return
|
|
699
|
+
const depsMap = targetMap.get(object);
|
|
700
|
+
return depsMap && depsMap.get(key);
|
|
701
701
|
}
|
|
702
702
|
|
|
703
703
|
const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
@@ -2413,7 +2413,7 @@ getter: `, this.getter);
|
|
|
2413
2413
|
true ? {
|
|
2414
2414
|
get attrs() {
|
|
2415
2415
|
markAttrsAccessed();
|
|
2416
|
-
return attrs;
|
|
2416
|
+
return shallowReadonly(attrs);
|
|
2417
2417
|
},
|
|
2418
2418
|
slots,
|
|
2419
2419
|
emit
|
|
@@ -2446,7 +2446,7 @@ getter: `, this.getter);
|
|
|
2446
2446
|
propsOptions
|
|
2447
2447
|
);
|
|
2448
2448
|
}
|
|
2449
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
2449
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
2450
2450
|
} else if (!accessedAttrs && root.type !== Comment) {
|
|
2451
2451
|
const allAttrs = Object.keys(attrs);
|
|
2452
2452
|
const eventAttrs = [];
|
|
@@ -2480,7 +2480,7 @@ getter: `, this.getter);
|
|
|
2480
2480
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
2481
2481
|
);
|
|
2482
2482
|
}
|
|
2483
|
-
root = cloneVNode(root);
|
|
2483
|
+
root = cloneVNode(root, null, false, true);
|
|
2484
2484
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
2485
2485
|
}
|
|
2486
2486
|
if (vnode.transition) {
|
|
@@ -2971,7 +2971,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
2971
2971
|
let parentSuspenseId;
|
|
2972
2972
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
2973
2973
|
if (isSuspensible) {
|
|
2974
|
-
if (parentSuspense
|
|
2974
|
+
if (parentSuspense && parentSuspense.pendingBranch) {
|
|
2975
2975
|
parentSuspenseId = parentSuspense.pendingId;
|
|
2976
2976
|
parentSuspense.deps++;
|
|
2977
2977
|
}
|
|
@@ -3283,8 +3283,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3283
3283
|
}
|
|
3284
3284
|
}
|
|
3285
3285
|
function isVNodeSuspensible(vnode) {
|
|
3286
|
-
|
|
3287
|
-
return
|
|
3286
|
+
const suspensible = vnode.props && vnode.props.suspensible;
|
|
3287
|
+
return suspensible != null && suspensible !== false;
|
|
3288
3288
|
}
|
|
3289
3289
|
|
|
3290
3290
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -3511,34 +3511,29 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3511
3511
|
return cur;
|
|
3512
3512
|
};
|
|
3513
3513
|
}
|
|
3514
|
-
function traverse(value, depth
|
|
3515
|
-
if (!isObject(value) || value["__v_skip"]) {
|
|
3514
|
+
function traverse(value, depth = Infinity, seen) {
|
|
3515
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
3516
3516
|
return value;
|
|
3517
3517
|
}
|
|
3518
|
-
if (depth && depth > 0) {
|
|
3519
|
-
if (currentDepth >= depth) {
|
|
3520
|
-
return value;
|
|
3521
|
-
}
|
|
3522
|
-
currentDepth++;
|
|
3523
|
-
}
|
|
3524
3518
|
seen = seen || /* @__PURE__ */ new Set();
|
|
3525
3519
|
if (seen.has(value)) {
|
|
3526
3520
|
return value;
|
|
3527
3521
|
}
|
|
3528
3522
|
seen.add(value);
|
|
3523
|
+
depth--;
|
|
3529
3524
|
if (isRef(value)) {
|
|
3530
|
-
traverse(value.value, depth,
|
|
3525
|
+
traverse(value.value, depth, seen);
|
|
3531
3526
|
} else if (isArray(value)) {
|
|
3532
3527
|
for (let i = 0; i < value.length; i++) {
|
|
3533
|
-
traverse(value[i], depth,
|
|
3528
|
+
traverse(value[i], depth, seen);
|
|
3534
3529
|
}
|
|
3535
3530
|
} else if (isSet(value) || isMap(value)) {
|
|
3536
3531
|
value.forEach((v) => {
|
|
3537
|
-
traverse(v, depth,
|
|
3532
|
+
traverse(v, depth, seen);
|
|
3538
3533
|
});
|
|
3539
3534
|
} else if (isPlainObject(value)) {
|
|
3540
3535
|
for (const key in value) {
|
|
3541
|
-
traverse(value[key], depth,
|
|
3536
|
+
traverse(value[key], depth, seen);
|
|
3542
3537
|
}
|
|
3543
3538
|
}
|
|
3544
3539
|
return value;
|
|
@@ -3696,7 +3691,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3696
3691
|
instance
|
|
3697
3692
|
);
|
|
3698
3693
|
setTransitionHooks(oldInnerChild, leavingHooks);
|
|
3699
|
-
if (mode === "out-in") {
|
|
3694
|
+
if (mode === "out-in" && innerChild.type !== Comment) {
|
|
3700
3695
|
state.isLeaving = true;
|
|
3701
3696
|
leavingHooks.afterLeave = () => {
|
|
3702
3697
|
state.isLeaving = false;
|
|
@@ -3888,11 +3883,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3888
3883
|
return vnode.component.subTree;
|
|
3889
3884
|
}
|
|
3890
3885
|
const { shapeFlag, children } = vnode;
|
|
3891
|
-
if (
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3886
|
+
if (children) {
|
|
3887
|
+
if (shapeFlag & 16) {
|
|
3888
|
+
return children[0];
|
|
3889
|
+
}
|
|
3890
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
3891
|
+
return children.default();
|
|
3892
|
+
}
|
|
3896
3893
|
}
|
|
3897
3894
|
}
|
|
3898
3895
|
function setTransitionHooks(vnode, hooks) {
|
|
@@ -4209,7 +4206,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4209
4206
|
return () => {
|
|
4210
4207
|
pendingCacheKey = null;
|
|
4211
4208
|
if (!slots.default) {
|
|
4212
|
-
return
|
|
4209
|
+
return null;
|
|
4213
4210
|
}
|
|
4214
4211
|
const children = slots.default();
|
|
4215
4212
|
const rawVNode = children[0];
|
|
@@ -5492,7 +5489,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5492
5489
|
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
5493
5490
|
}
|
|
5494
5491
|
|
|
5495
|
-
const internalObjectProto =
|
|
5492
|
+
const internalObjectProto = {};
|
|
5496
5493
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
5497
5494
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
5498
5495
|
|
|
@@ -5950,7 +5947,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5950
5947
|
const type = children._;
|
|
5951
5948
|
if (type) {
|
|
5952
5949
|
extend(slots, children);
|
|
5953
|
-
def(slots, "_", type);
|
|
5950
|
+
def(slots, "_", type, true);
|
|
5954
5951
|
} else {
|
|
5955
5952
|
normalizeObjectSlots(children, slots);
|
|
5956
5953
|
}
|
|
@@ -8697,8 +8694,8 @@ Component that was made reactive: `,
|
|
|
8697
8694
|
return null;
|
|
8698
8695
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
8699
8696
|
}
|
|
8700
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
8701
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
8697
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
8698
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
8702
8699
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
8703
8700
|
const cloned = {
|
|
8704
8701
|
__v_isVNode: true,
|
|
@@ -8728,7 +8725,7 @@ Component that was made reactive: `,
|
|
|
8728
8725
|
dynamicChildren: vnode.dynamicChildren,
|
|
8729
8726
|
appContext: vnode.appContext,
|
|
8730
8727
|
dirs: vnode.dirs,
|
|
8731
|
-
transition
|
|
8728
|
+
transition,
|
|
8732
8729
|
// These should technically only be non-null on mounted VNodes. However,
|
|
8733
8730
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
8734
8731
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -8742,6 +8739,9 @@ Component that was made reactive: `,
|
|
|
8742
8739
|
ctx: vnode.ctx,
|
|
8743
8740
|
ce: vnode.ce
|
|
8744
8741
|
};
|
|
8742
|
+
if (transition && cloneTransition) {
|
|
8743
|
+
cloned.transition = transition.clone(cloned);
|
|
8744
|
+
}
|
|
8745
8745
|
return cloned;
|
|
8746
8746
|
}
|
|
8747
8747
|
function deepCloneVNode(vnode) {
|
|
@@ -9549,7 +9549,7 @@ Component that was made reactive: `,
|
|
|
9549
9549
|
return true;
|
|
9550
9550
|
}
|
|
9551
9551
|
|
|
9552
|
-
const version = "3.4.
|
|
9552
|
+
const version = "3.4.26";
|
|
9553
9553
|
const warn = warn$1 ;
|
|
9554
9554
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9555
9555
|
const devtools = devtools$1 ;
|