@vue/compat 3.5.31 → 3.5.32
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 +75 -72
- package/dist/vue.cjs.prod.js +73 -66
- package/dist/vue.esm-browser.js +75 -72
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +75 -72
- package/dist/vue.global.js +75 -72
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +75 -72
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +75 -72
- package/dist/vue.runtime.global.js +75 -72
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.32
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3657,6 +3657,7 @@ function createPathGetter(ctx, path) {
|
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
3660
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
3660
3661
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3661
3662
|
const isTeleport = (type) => type.__isTeleport;
|
|
3662
3663
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -3698,91 +3699,86 @@ const TeleportImpl = {
|
|
|
3698
3699
|
o: { insert, querySelector, createText, createComment }
|
|
3699
3700
|
} = internals;
|
|
3700
3701
|
const disabled = isTeleportDisabled(n2.props);
|
|
3701
|
-
let {
|
|
3702
|
+
let { dynamicChildren } = n2;
|
|
3702
3703
|
if (isHmrUpdating) {
|
|
3703
3704
|
optimized = false;
|
|
3704
3705
|
dynamicChildren = null;
|
|
3705
3706
|
}
|
|
3707
|
+
const mount = (vnode, container2, anchor2) => {
|
|
3708
|
+
if (vnode.shapeFlag & 16) {
|
|
3709
|
+
mountChildren(
|
|
3710
|
+
vnode.children,
|
|
3711
|
+
container2,
|
|
3712
|
+
anchor2,
|
|
3713
|
+
parentComponent,
|
|
3714
|
+
parentSuspense,
|
|
3715
|
+
namespace,
|
|
3716
|
+
slotScopeIds,
|
|
3717
|
+
optimized
|
|
3718
|
+
);
|
|
3719
|
+
}
|
|
3720
|
+
};
|
|
3721
|
+
const mountToTarget = (vnode = n2) => {
|
|
3722
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
3723
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
3724
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
3725
|
+
if (target) {
|
|
3726
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3727
|
+
namespace = "svg";
|
|
3728
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3729
|
+
namespace = "mathml";
|
|
3730
|
+
}
|
|
3731
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3732
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3733
|
+
}
|
|
3734
|
+
if (!disabled2) {
|
|
3735
|
+
mount(vnode, target, targetAnchor);
|
|
3736
|
+
updateCssVars(vnode, false);
|
|
3737
|
+
}
|
|
3738
|
+
} else if (!disabled2) {
|
|
3739
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
3740
|
+
}
|
|
3741
|
+
};
|
|
3742
|
+
const queuePendingMount = (vnode) => {
|
|
3743
|
+
const mountJob = () => {
|
|
3744
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
3745
|
+
pendingMounts.delete(vnode);
|
|
3746
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
3747
|
+
mount(vnode, container, vnode.anchor);
|
|
3748
|
+
updateCssVars(vnode, true);
|
|
3749
|
+
}
|
|
3750
|
+
mountToTarget(vnode);
|
|
3751
|
+
};
|
|
3752
|
+
pendingMounts.set(vnode, mountJob);
|
|
3753
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
3754
|
+
};
|
|
3706
3755
|
if (n1 == null) {
|
|
3707
3756
|
const placeholder = n2.el = createComment("teleport start") ;
|
|
3708
3757
|
const mainAnchor = n2.anchor = createComment("teleport end") ;
|
|
3709
3758
|
insert(placeholder, container, anchor);
|
|
3710
3759
|
insert(mainAnchor, container, anchor);
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
container2,
|
|
3716
|
-
anchor2,
|
|
3717
|
-
parentComponent,
|
|
3718
|
-
parentSuspense,
|
|
3719
|
-
namespace,
|
|
3720
|
-
slotScopeIds,
|
|
3721
|
-
optimized
|
|
3722
|
-
);
|
|
3723
|
-
}
|
|
3724
|
-
};
|
|
3725
|
-
const mountToTarget = () => {
|
|
3726
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
3727
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
3728
|
-
if (target) {
|
|
3729
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3730
|
-
namespace = "svg";
|
|
3731
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3732
|
-
namespace = "mathml";
|
|
3733
|
-
}
|
|
3734
|
-
if (parentComponent && parentComponent.isCE) {
|
|
3735
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3736
|
-
}
|
|
3737
|
-
if (!disabled) {
|
|
3738
|
-
mount(target, targetAnchor);
|
|
3739
|
-
updateCssVars(n2, false);
|
|
3740
|
-
}
|
|
3741
|
-
} else if (!disabled) {
|
|
3742
|
-
warn$1(
|
|
3743
|
-
"Invalid Teleport target on mount:",
|
|
3744
|
-
target,
|
|
3745
|
-
`(${typeof target})`
|
|
3746
|
-
);
|
|
3747
|
-
}
|
|
3748
|
-
};
|
|
3760
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
3761
|
+
queuePendingMount(n2);
|
|
3762
|
+
return;
|
|
3763
|
+
}
|
|
3749
3764
|
if (disabled) {
|
|
3750
|
-
mount(container, mainAnchor);
|
|
3765
|
+
mount(n2, container, mainAnchor);
|
|
3751
3766
|
updateCssVars(n2, true);
|
|
3752
3767
|
}
|
|
3753
|
-
|
|
3754
|
-
n2.el.__isMounted = false;
|
|
3755
|
-
queuePostRenderEffect(() => {
|
|
3756
|
-
if (n2.el.__isMounted !== false) return;
|
|
3757
|
-
mountToTarget();
|
|
3758
|
-
delete n2.el.__isMounted;
|
|
3759
|
-
}, parentSuspense);
|
|
3760
|
-
} else {
|
|
3761
|
-
mountToTarget();
|
|
3762
|
-
}
|
|
3768
|
+
mountToTarget();
|
|
3763
3769
|
} else {
|
|
3764
3770
|
n2.el = n1.el;
|
|
3765
|
-
n2.targetStart = n1.targetStart;
|
|
3766
3771
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
3767
|
-
const
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
n1,
|
|
3773
|
-
n2,
|
|
3774
|
-
container,
|
|
3775
|
-
anchor,
|
|
3776
|
-
parentComponent,
|
|
3777
|
-
parentSuspense,
|
|
3778
|
-
namespace,
|
|
3779
|
-
slotScopeIds,
|
|
3780
|
-
optimized,
|
|
3781
|
-
internals
|
|
3782
|
-
);
|
|
3783
|
-
}, parentSuspense);
|
|
3772
|
+
const pendingMount = pendingMounts.get(n1);
|
|
3773
|
+
if (pendingMount) {
|
|
3774
|
+
pendingMount.flags |= 8;
|
|
3775
|
+
pendingMounts.delete(n1);
|
|
3776
|
+
queuePendingMount(n2);
|
|
3784
3777
|
return;
|
|
3785
3778
|
}
|
|
3779
|
+
n2.targetStart = n1.targetStart;
|
|
3780
|
+
const target = n2.target = n1.target;
|
|
3781
|
+
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
3786
3782
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
3787
3783
|
const currentContainer = wasDisabled ? container : target;
|
|
3788
3784
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -3873,13 +3869,19 @@ const TeleportImpl = {
|
|
|
3873
3869
|
target,
|
|
3874
3870
|
props
|
|
3875
3871
|
} = vnode;
|
|
3872
|
+
let shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3873
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
3874
|
+
if (pendingMount) {
|
|
3875
|
+
pendingMount.flags |= 8;
|
|
3876
|
+
pendingMounts.delete(vnode);
|
|
3877
|
+
shouldRemove = false;
|
|
3878
|
+
}
|
|
3876
3879
|
if (target) {
|
|
3877
3880
|
hostRemove(targetStart);
|
|
3878
3881
|
hostRemove(targetAnchor);
|
|
3879
3882
|
}
|
|
3880
3883
|
doRemove && hostRemove(anchor);
|
|
3881
3884
|
if (shapeFlag & 16) {
|
|
3882
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3883
3885
|
for (let i = 0; i < children.length; i++) {
|
|
3884
3886
|
const child = children[i];
|
|
3885
3887
|
unmount(
|
|
@@ -7446,7 +7448,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7446
7448
|
return vm;
|
|
7447
7449
|
}
|
|
7448
7450
|
}
|
|
7449
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7451
|
+
Vue.version = `2.6.14-compat:${"3.5.32"}`;
|
|
7450
7452
|
Vue.config = singletonApp.config;
|
|
7451
7453
|
Vue.use = (plugin, ...options) => {
|
|
7452
7454
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11278,6 +11280,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11278
11280
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
11279
11281
|
return;
|
|
11280
11282
|
}
|
|
11283
|
+
unsetCurrentInstance();
|
|
11281
11284
|
instance.asyncResolved = true;
|
|
11282
11285
|
const { vnode: vnode2 } = instance;
|
|
11283
11286
|
{
|
|
@@ -12561,7 +12564,7 @@ function isMemoSame(cached, memo) {
|
|
|
12561
12564
|
return true;
|
|
12562
12565
|
}
|
|
12563
12566
|
|
|
12564
|
-
const version = "3.5.
|
|
12567
|
+
const version = "3.5.32";
|
|
12565
12568
|
const warn = warn$1 ;
|
|
12566
12569
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12567
12570
|
const devtools = devtools$1 ;
|