@vue/runtime-dom 3.4.25 → 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 +29 -31
- 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 +29 -31
- 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;
|
|
@@ -4211,7 +4206,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4211
4206
|
return () => {
|
|
4212
4207
|
pendingCacheKey = null;
|
|
4213
4208
|
if (!slots.default) {
|
|
4214
|
-
return
|
|
4209
|
+
return null;
|
|
4215
4210
|
}
|
|
4216
4211
|
const children = slots.default();
|
|
4217
4212
|
const rawVNode = children[0];
|
|
@@ -5952,7 +5947,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5952
5947
|
const type = children._;
|
|
5953
5948
|
if (type) {
|
|
5954
5949
|
extend(slots, children);
|
|
5955
|
-
def(slots, "_", type);
|
|
5950
|
+
def(slots, "_", type, true);
|
|
5956
5951
|
} else {
|
|
5957
5952
|
normalizeObjectSlots(children, slots);
|
|
5958
5953
|
}
|
|
@@ -8699,8 +8694,8 @@ Component that was made reactive: `,
|
|
|
8699
8694
|
return null;
|
|
8700
8695
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
8701
8696
|
}
|
|
8702
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
8703
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
8697
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
8698
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
8704
8699
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
8705
8700
|
const cloned = {
|
|
8706
8701
|
__v_isVNode: true,
|
|
@@ -8730,7 +8725,7 @@ Component that was made reactive: `,
|
|
|
8730
8725
|
dynamicChildren: vnode.dynamicChildren,
|
|
8731
8726
|
appContext: vnode.appContext,
|
|
8732
8727
|
dirs: vnode.dirs,
|
|
8733
|
-
transition
|
|
8728
|
+
transition,
|
|
8734
8729
|
// These should technically only be non-null on mounted VNodes. However,
|
|
8735
8730
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
8736
8731
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -8744,6 +8739,9 @@ Component that was made reactive: `,
|
|
|
8744
8739
|
ctx: vnode.ctx,
|
|
8745
8740
|
ce: vnode.ce
|
|
8746
8741
|
};
|
|
8742
|
+
if (transition && cloneTransition) {
|
|
8743
|
+
cloned.transition = transition.clone(cloned);
|
|
8744
|
+
}
|
|
8747
8745
|
return cloned;
|
|
8748
8746
|
}
|
|
8749
8747
|
function deepCloneVNode(vnode) {
|
|
@@ -9551,7 +9549,7 @@ Component that was made reactive: `,
|
|
|
9551
9549
|
return true;
|
|
9552
9550
|
}
|
|
9553
9551
|
|
|
9554
|
-
const version = "3.4.
|
|
9552
|
+
const version = "3.4.26";
|
|
9555
9553
|
const warn = warn$1 ;
|
|
9556
9554
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9557
9555
|
const devtools = devtools$1 ;
|