@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
package/dist/vue.cjs.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -3783,6 +3783,7 @@ function createPathGetter(ctx, path) {
|
|
|
3783
3783
|
};
|
|
3784
3784
|
}
|
|
3785
3785
|
|
|
3786
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
3786
3787
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3787
3788
|
const isTeleport = (type) => type.__isTeleport;
|
|
3788
3789
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -3824,91 +3825,86 @@ const TeleportImpl = {
|
|
|
3824
3825
|
o: { insert, querySelector, createText, createComment }
|
|
3825
3826
|
} = internals;
|
|
3826
3827
|
const disabled = isTeleportDisabled(n2.props);
|
|
3827
|
-
let {
|
|
3828
|
+
let { dynamicChildren } = n2;
|
|
3828
3829
|
if (isHmrUpdating) {
|
|
3829
3830
|
optimized = false;
|
|
3830
3831
|
dynamicChildren = null;
|
|
3831
3832
|
}
|
|
3833
|
+
const mount = (vnode, container2, anchor2) => {
|
|
3834
|
+
if (vnode.shapeFlag & 16) {
|
|
3835
|
+
mountChildren(
|
|
3836
|
+
vnode.children,
|
|
3837
|
+
container2,
|
|
3838
|
+
anchor2,
|
|
3839
|
+
parentComponent,
|
|
3840
|
+
parentSuspense,
|
|
3841
|
+
namespace,
|
|
3842
|
+
slotScopeIds,
|
|
3843
|
+
optimized
|
|
3844
|
+
);
|
|
3845
|
+
}
|
|
3846
|
+
};
|
|
3847
|
+
const mountToTarget = (vnode = n2) => {
|
|
3848
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
3849
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
3850
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
3851
|
+
if (target) {
|
|
3852
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3853
|
+
namespace = "svg";
|
|
3854
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3855
|
+
namespace = "mathml";
|
|
3856
|
+
}
|
|
3857
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3858
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3859
|
+
}
|
|
3860
|
+
if (!disabled2) {
|
|
3861
|
+
mount(vnode, target, targetAnchor);
|
|
3862
|
+
updateCssVars(vnode, false);
|
|
3863
|
+
}
|
|
3864
|
+
} else if (!disabled2) {
|
|
3865
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
3866
|
+
}
|
|
3867
|
+
};
|
|
3868
|
+
const queuePendingMount = (vnode) => {
|
|
3869
|
+
const mountJob = () => {
|
|
3870
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
3871
|
+
pendingMounts.delete(vnode);
|
|
3872
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
3873
|
+
mount(vnode, container, vnode.anchor);
|
|
3874
|
+
updateCssVars(vnode, true);
|
|
3875
|
+
}
|
|
3876
|
+
mountToTarget(vnode);
|
|
3877
|
+
};
|
|
3878
|
+
pendingMounts.set(vnode, mountJob);
|
|
3879
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
3880
|
+
};
|
|
3832
3881
|
if (n1 == null) {
|
|
3833
3882
|
const placeholder = n2.el = createComment("teleport start") ;
|
|
3834
3883
|
const mainAnchor = n2.anchor = createComment("teleport end") ;
|
|
3835
3884
|
insert(placeholder, container, anchor);
|
|
3836
3885
|
insert(mainAnchor, container, anchor);
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
container2,
|
|
3842
|
-
anchor2,
|
|
3843
|
-
parentComponent,
|
|
3844
|
-
parentSuspense,
|
|
3845
|
-
namespace,
|
|
3846
|
-
slotScopeIds,
|
|
3847
|
-
optimized
|
|
3848
|
-
);
|
|
3849
|
-
}
|
|
3850
|
-
};
|
|
3851
|
-
const mountToTarget = () => {
|
|
3852
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
3853
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
3854
|
-
if (target) {
|
|
3855
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3856
|
-
namespace = "svg";
|
|
3857
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3858
|
-
namespace = "mathml";
|
|
3859
|
-
}
|
|
3860
|
-
if (parentComponent && parentComponent.isCE) {
|
|
3861
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3862
|
-
}
|
|
3863
|
-
if (!disabled) {
|
|
3864
|
-
mount(target, targetAnchor);
|
|
3865
|
-
updateCssVars(n2, false);
|
|
3866
|
-
}
|
|
3867
|
-
} else if (!disabled) {
|
|
3868
|
-
warn$1(
|
|
3869
|
-
"Invalid Teleport target on mount:",
|
|
3870
|
-
target,
|
|
3871
|
-
`(${typeof target})`
|
|
3872
|
-
);
|
|
3873
|
-
}
|
|
3874
|
-
};
|
|
3886
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
3887
|
+
queuePendingMount(n2);
|
|
3888
|
+
return;
|
|
3889
|
+
}
|
|
3875
3890
|
if (disabled) {
|
|
3876
|
-
mount(container, mainAnchor);
|
|
3891
|
+
mount(n2, container, mainAnchor);
|
|
3877
3892
|
updateCssVars(n2, true);
|
|
3878
3893
|
}
|
|
3879
|
-
|
|
3880
|
-
n2.el.__isMounted = false;
|
|
3881
|
-
queuePostRenderEffect(() => {
|
|
3882
|
-
if (n2.el.__isMounted !== false) return;
|
|
3883
|
-
mountToTarget();
|
|
3884
|
-
delete n2.el.__isMounted;
|
|
3885
|
-
}, parentSuspense);
|
|
3886
|
-
} else {
|
|
3887
|
-
mountToTarget();
|
|
3888
|
-
}
|
|
3894
|
+
mountToTarget();
|
|
3889
3895
|
} else {
|
|
3890
3896
|
n2.el = n1.el;
|
|
3891
|
-
n2.targetStart = n1.targetStart;
|
|
3892
3897
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
3893
|
-
const
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
n1,
|
|
3899
|
-
n2,
|
|
3900
|
-
container,
|
|
3901
|
-
anchor,
|
|
3902
|
-
parentComponent,
|
|
3903
|
-
parentSuspense,
|
|
3904
|
-
namespace,
|
|
3905
|
-
slotScopeIds,
|
|
3906
|
-
optimized,
|
|
3907
|
-
internals
|
|
3908
|
-
);
|
|
3909
|
-
}, parentSuspense);
|
|
3898
|
+
const pendingMount = pendingMounts.get(n1);
|
|
3899
|
+
if (pendingMount) {
|
|
3900
|
+
pendingMount.flags |= 8;
|
|
3901
|
+
pendingMounts.delete(n1);
|
|
3902
|
+
queuePendingMount(n2);
|
|
3910
3903
|
return;
|
|
3911
3904
|
}
|
|
3905
|
+
n2.targetStart = n1.targetStart;
|
|
3906
|
+
const target = n2.target = n1.target;
|
|
3907
|
+
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
3912
3908
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
3913
3909
|
const currentContainer = wasDisabled ? container : target;
|
|
3914
3910
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -3999,13 +3995,19 @@ const TeleportImpl = {
|
|
|
3999
3995
|
target,
|
|
4000
3996
|
props
|
|
4001
3997
|
} = vnode;
|
|
3998
|
+
let shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3999
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
4000
|
+
if (pendingMount) {
|
|
4001
|
+
pendingMount.flags |= 8;
|
|
4002
|
+
pendingMounts.delete(vnode);
|
|
4003
|
+
shouldRemove = false;
|
|
4004
|
+
}
|
|
4002
4005
|
if (target) {
|
|
4003
4006
|
hostRemove(targetStart);
|
|
4004
4007
|
hostRemove(targetAnchor);
|
|
4005
4008
|
}
|
|
4006
4009
|
doRemove && hostRemove(anchor);
|
|
4007
4010
|
if (shapeFlag & 16) {
|
|
4008
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
4009
4011
|
for (let i = 0; i < children.length; i++) {
|
|
4010
4012
|
const child = children[i];
|
|
4011
4013
|
unmount(
|
|
@@ -7569,7 +7571,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7569
7571
|
return vm;
|
|
7570
7572
|
}
|
|
7571
7573
|
}
|
|
7572
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7574
|
+
Vue.version = `2.6.14-compat:${"3.5.32"}`;
|
|
7573
7575
|
Vue.config = singletonApp.config;
|
|
7574
7576
|
Vue.use = (plugin, ...options) => {
|
|
7575
7577
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11401,6 +11403,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11401
11403
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
11402
11404
|
return;
|
|
11403
11405
|
}
|
|
11406
|
+
unsetCurrentInstance();
|
|
11404
11407
|
instance.asyncResolved = true;
|
|
11405
11408
|
const { vnode: vnode2 } = instance;
|
|
11406
11409
|
{
|
|
@@ -12684,7 +12687,7 @@ function isMemoSame(cached, memo) {
|
|
|
12684
12687
|
return true;
|
|
12685
12688
|
}
|
|
12686
12689
|
|
|
12687
|
-
const version = "3.5.
|
|
12690
|
+
const version = "3.5.32";
|
|
12688
12691
|
const warn = warn$1 ;
|
|
12689
12692
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12690
12693
|
const devtools = devtools$1 ;
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -2838,6 +2838,7 @@ function createPathGetter(ctx, path) {
|
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
2840
|
|
|
2841
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
2841
2842
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
2842
2843
|
const isTeleport = (type) => type.__isTeleport;
|
|
2843
2844
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -2868,81 +2869,80 @@ const TeleportImpl = {
|
|
|
2868
2869
|
o: { insert, querySelector, createText, createComment }
|
|
2869
2870
|
} = internals;
|
|
2870
2871
|
const disabled = isTeleportDisabled(n2.props);
|
|
2871
|
-
let {
|
|
2872
|
+
let { dynamicChildren } = n2;
|
|
2873
|
+
const mount = (vnode, container2, anchor2) => {
|
|
2874
|
+
if (vnode.shapeFlag & 16) {
|
|
2875
|
+
mountChildren(
|
|
2876
|
+
vnode.children,
|
|
2877
|
+
container2,
|
|
2878
|
+
anchor2,
|
|
2879
|
+
parentComponent,
|
|
2880
|
+
parentSuspense,
|
|
2881
|
+
namespace,
|
|
2882
|
+
slotScopeIds,
|
|
2883
|
+
optimized
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
const mountToTarget = (vnode = n2) => {
|
|
2888
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
2889
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
2890
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
2891
|
+
if (target) {
|
|
2892
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
2893
|
+
namespace = "svg";
|
|
2894
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
2895
|
+
namespace = "mathml";
|
|
2896
|
+
}
|
|
2897
|
+
if (parentComponent && parentComponent.isCE) {
|
|
2898
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
2899
|
+
}
|
|
2900
|
+
if (!disabled2) {
|
|
2901
|
+
mount(vnode, target, targetAnchor);
|
|
2902
|
+
updateCssVars(vnode, false);
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
const queuePendingMount = (vnode) => {
|
|
2907
|
+
const mountJob = () => {
|
|
2908
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
2909
|
+
pendingMounts.delete(vnode);
|
|
2910
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
2911
|
+
mount(vnode, container, vnode.anchor);
|
|
2912
|
+
updateCssVars(vnode, true);
|
|
2913
|
+
}
|
|
2914
|
+
mountToTarget(vnode);
|
|
2915
|
+
};
|
|
2916
|
+
pendingMounts.set(vnode, mountJob);
|
|
2917
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
2918
|
+
};
|
|
2872
2919
|
if (n1 == null) {
|
|
2873
2920
|
const placeholder = n2.el = createText("");
|
|
2874
2921
|
const mainAnchor = n2.anchor = createText("");
|
|
2875
2922
|
insert(placeholder, container, anchor);
|
|
2876
2923
|
insert(mainAnchor, container, anchor);
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
container2,
|
|
2882
|
-
anchor2,
|
|
2883
|
-
parentComponent,
|
|
2884
|
-
parentSuspense,
|
|
2885
|
-
namespace,
|
|
2886
|
-
slotScopeIds,
|
|
2887
|
-
optimized
|
|
2888
|
-
);
|
|
2889
|
-
}
|
|
2890
|
-
};
|
|
2891
|
-
const mountToTarget = () => {
|
|
2892
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
2893
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
2894
|
-
if (target) {
|
|
2895
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
2896
|
-
namespace = "svg";
|
|
2897
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
2898
|
-
namespace = "mathml";
|
|
2899
|
-
}
|
|
2900
|
-
if (parentComponent && parentComponent.isCE) {
|
|
2901
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
2902
|
-
}
|
|
2903
|
-
if (!disabled) {
|
|
2904
|
-
mount(target, targetAnchor);
|
|
2905
|
-
updateCssVars(n2, false);
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
};
|
|
2924
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
2925
|
+
queuePendingMount(n2);
|
|
2926
|
+
return;
|
|
2927
|
+
}
|
|
2909
2928
|
if (disabled) {
|
|
2910
|
-
mount(container, mainAnchor);
|
|
2929
|
+
mount(n2, container, mainAnchor);
|
|
2911
2930
|
updateCssVars(n2, true);
|
|
2912
2931
|
}
|
|
2913
|
-
|
|
2914
|
-
n2.el.__isMounted = false;
|
|
2915
|
-
queuePostRenderEffect(() => {
|
|
2916
|
-
if (n2.el.__isMounted !== false) return;
|
|
2917
|
-
mountToTarget();
|
|
2918
|
-
delete n2.el.__isMounted;
|
|
2919
|
-
}, parentSuspense);
|
|
2920
|
-
} else {
|
|
2921
|
-
mountToTarget();
|
|
2922
|
-
}
|
|
2932
|
+
mountToTarget();
|
|
2923
2933
|
} else {
|
|
2924
2934
|
n2.el = n1.el;
|
|
2925
|
-
n2.targetStart = n1.targetStart;
|
|
2926
2935
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
2927
|
-
const
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
n1,
|
|
2933
|
-
n2,
|
|
2934
|
-
container,
|
|
2935
|
-
anchor,
|
|
2936
|
-
parentComponent,
|
|
2937
|
-
parentSuspense,
|
|
2938
|
-
namespace,
|
|
2939
|
-
slotScopeIds,
|
|
2940
|
-
optimized,
|
|
2941
|
-
internals
|
|
2942
|
-
);
|
|
2943
|
-
}, parentSuspense);
|
|
2936
|
+
const pendingMount = pendingMounts.get(n1);
|
|
2937
|
+
if (pendingMount) {
|
|
2938
|
+
pendingMount.flags |= 8;
|
|
2939
|
+
pendingMounts.delete(n1);
|
|
2940
|
+
queuePendingMount(n2);
|
|
2944
2941
|
return;
|
|
2945
2942
|
}
|
|
2943
|
+
n2.targetStart = n1.targetStart;
|
|
2944
|
+
const target = n2.target = n1.target;
|
|
2945
|
+
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
2946
2946
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
2947
2947
|
const currentContainer = wasDisabled ? container : target;
|
|
2948
2948
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -3027,13 +3027,19 @@ const TeleportImpl = {
|
|
|
3027
3027
|
target,
|
|
3028
3028
|
props
|
|
3029
3029
|
} = vnode;
|
|
3030
|
+
let shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3031
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
3032
|
+
if (pendingMount) {
|
|
3033
|
+
pendingMount.flags |= 8;
|
|
3034
|
+
pendingMounts.delete(vnode);
|
|
3035
|
+
shouldRemove = false;
|
|
3036
|
+
}
|
|
3030
3037
|
if (target) {
|
|
3031
3038
|
hostRemove(targetStart);
|
|
3032
3039
|
hostRemove(targetAnchor);
|
|
3033
3040
|
}
|
|
3034
3041
|
doRemove && hostRemove(anchor);
|
|
3035
3042
|
if (shapeFlag & 16) {
|
|
3036
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3037
3043
|
for (let i = 0; i < children.length; i++) {
|
|
3038
3044
|
const child = children[i];
|
|
3039
3045
|
unmount(
|
|
@@ -6076,7 +6082,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6076
6082
|
return vm;
|
|
6077
6083
|
}
|
|
6078
6084
|
}
|
|
6079
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
6085
|
+
Vue.version = `2.6.14-compat:${"3.5.32"}`;
|
|
6080
6086
|
Vue.config = singletonApp.config;
|
|
6081
6087
|
Vue.use = (plugin, ...options) => {
|
|
6082
6088
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9295,6 +9301,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9295
9301
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
9296
9302
|
return;
|
|
9297
9303
|
}
|
|
9304
|
+
unsetCurrentInstance();
|
|
9298
9305
|
instance.asyncResolved = true;
|
|
9299
9306
|
const { vnode: vnode2 } = instance;
|
|
9300
9307
|
handleSetupResult(instance, asyncSetupResult, false);
|
|
@@ -10211,7 +10218,7 @@ function isMemoSame(cached, memo) {
|
|
|
10211
10218
|
return true;
|
|
10212
10219
|
}
|
|
10213
10220
|
|
|
10214
|
-
const version = "3.5.
|
|
10221
|
+
const version = "3.5.32";
|
|
10215
10222
|
const warn$1 = NOOP;
|
|
10216
10223
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10217
10224
|
const devtools = void 0;
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -3730,6 +3730,7 @@ function createPathGetter(ctx, path) {
|
|
|
3730
3730
|
};
|
|
3731
3731
|
}
|
|
3732
3732
|
|
|
3733
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
3733
3734
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3734
3735
|
const isTeleport = (type) => type.__isTeleport;
|
|
3735
3736
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -3771,91 +3772,86 @@ const TeleportImpl = {
|
|
|
3771
3772
|
o: { insert, querySelector, createText, createComment }
|
|
3772
3773
|
} = internals;
|
|
3773
3774
|
const disabled = isTeleportDisabled(n2.props);
|
|
3774
|
-
let {
|
|
3775
|
+
let { dynamicChildren } = n2;
|
|
3775
3776
|
if (isHmrUpdating) {
|
|
3776
3777
|
optimized = false;
|
|
3777
3778
|
dynamicChildren = null;
|
|
3778
3779
|
}
|
|
3780
|
+
const mount = (vnode, container2, anchor2) => {
|
|
3781
|
+
if (vnode.shapeFlag & 16) {
|
|
3782
|
+
mountChildren(
|
|
3783
|
+
vnode.children,
|
|
3784
|
+
container2,
|
|
3785
|
+
anchor2,
|
|
3786
|
+
parentComponent,
|
|
3787
|
+
parentSuspense,
|
|
3788
|
+
namespace,
|
|
3789
|
+
slotScopeIds,
|
|
3790
|
+
optimized
|
|
3791
|
+
);
|
|
3792
|
+
}
|
|
3793
|
+
};
|
|
3794
|
+
const mountToTarget = (vnode = n2) => {
|
|
3795
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
3796
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
3797
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
3798
|
+
if (target) {
|
|
3799
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3800
|
+
namespace = "svg";
|
|
3801
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3802
|
+
namespace = "mathml";
|
|
3803
|
+
}
|
|
3804
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3805
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3806
|
+
}
|
|
3807
|
+
if (!disabled2) {
|
|
3808
|
+
mount(vnode, target, targetAnchor);
|
|
3809
|
+
updateCssVars(vnode, false);
|
|
3810
|
+
}
|
|
3811
|
+
} else if (!disabled2) {
|
|
3812
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
3813
|
+
}
|
|
3814
|
+
};
|
|
3815
|
+
const queuePendingMount = (vnode) => {
|
|
3816
|
+
const mountJob = () => {
|
|
3817
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
3818
|
+
pendingMounts.delete(vnode);
|
|
3819
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
3820
|
+
mount(vnode, container, vnode.anchor);
|
|
3821
|
+
updateCssVars(vnode, true);
|
|
3822
|
+
}
|
|
3823
|
+
mountToTarget(vnode);
|
|
3824
|
+
};
|
|
3825
|
+
pendingMounts.set(vnode, mountJob);
|
|
3826
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
3827
|
+
};
|
|
3779
3828
|
if (n1 == null) {
|
|
3780
3829
|
const placeholder = n2.el = createComment("teleport start") ;
|
|
3781
3830
|
const mainAnchor = n2.anchor = createComment("teleport end") ;
|
|
3782
3831
|
insert(placeholder, container, anchor);
|
|
3783
3832
|
insert(mainAnchor, container, anchor);
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
container2,
|
|
3789
|
-
anchor2,
|
|
3790
|
-
parentComponent,
|
|
3791
|
-
parentSuspense,
|
|
3792
|
-
namespace,
|
|
3793
|
-
slotScopeIds,
|
|
3794
|
-
optimized
|
|
3795
|
-
);
|
|
3796
|
-
}
|
|
3797
|
-
};
|
|
3798
|
-
const mountToTarget = () => {
|
|
3799
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
3800
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
3801
|
-
if (target) {
|
|
3802
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3803
|
-
namespace = "svg";
|
|
3804
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3805
|
-
namespace = "mathml";
|
|
3806
|
-
}
|
|
3807
|
-
if (parentComponent && parentComponent.isCE) {
|
|
3808
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3809
|
-
}
|
|
3810
|
-
if (!disabled) {
|
|
3811
|
-
mount(target, targetAnchor);
|
|
3812
|
-
updateCssVars(n2, false);
|
|
3813
|
-
}
|
|
3814
|
-
} else if (!disabled) {
|
|
3815
|
-
warn$1(
|
|
3816
|
-
"Invalid Teleport target on mount:",
|
|
3817
|
-
target,
|
|
3818
|
-
`(${typeof target})`
|
|
3819
|
-
);
|
|
3820
|
-
}
|
|
3821
|
-
};
|
|
3833
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
3834
|
+
queuePendingMount(n2);
|
|
3835
|
+
return;
|
|
3836
|
+
}
|
|
3822
3837
|
if (disabled) {
|
|
3823
|
-
mount(container, mainAnchor);
|
|
3838
|
+
mount(n2, container, mainAnchor);
|
|
3824
3839
|
updateCssVars(n2, true);
|
|
3825
3840
|
}
|
|
3826
|
-
|
|
3827
|
-
n2.el.__isMounted = false;
|
|
3828
|
-
queuePostRenderEffect(() => {
|
|
3829
|
-
if (n2.el.__isMounted !== false) return;
|
|
3830
|
-
mountToTarget();
|
|
3831
|
-
delete n2.el.__isMounted;
|
|
3832
|
-
}, parentSuspense);
|
|
3833
|
-
} else {
|
|
3834
|
-
mountToTarget();
|
|
3835
|
-
}
|
|
3841
|
+
mountToTarget();
|
|
3836
3842
|
} else {
|
|
3837
3843
|
n2.el = n1.el;
|
|
3838
|
-
n2.targetStart = n1.targetStart;
|
|
3839
3844
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
3840
|
-
const
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
n1,
|
|
3846
|
-
n2,
|
|
3847
|
-
container,
|
|
3848
|
-
anchor,
|
|
3849
|
-
parentComponent,
|
|
3850
|
-
parentSuspense,
|
|
3851
|
-
namespace,
|
|
3852
|
-
slotScopeIds,
|
|
3853
|
-
optimized,
|
|
3854
|
-
internals
|
|
3855
|
-
);
|
|
3856
|
-
}, parentSuspense);
|
|
3845
|
+
const pendingMount = pendingMounts.get(n1);
|
|
3846
|
+
if (pendingMount) {
|
|
3847
|
+
pendingMount.flags |= 8;
|
|
3848
|
+
pendingMounts.delete(n1);
|
|
3849
|
+
queuePendingMount(n2);
|
|
3857
3850
|
return;
|
|
3858
3851
|
}
|
|
3852
|
+
n2.targetStart = n1.targetStart;
|
|
3853
|
+
const target = n2.target = n1.target;
|
|
3854
|
+
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
3859
3855
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
3860
3856
|
const currentContainer = wasDisabled ? container : target;
|
|
3861
3857
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -3946,13 +3942,19 @@ const TeleportImpl = {
|
|
|
3946
3942
|
target,
|
|
3947
3943
|
props
|
|
3948
3944
|
} = vnode;
|
|
3945
|
+
let shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3946
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
3947
|
+
if (pendingMount) {
|
|
3948
|
+
pendingMount.flags |= 8;
|
|
3949
|
+
pendingMounts.delete(vnode);
|
|
3950
|
+
shouldRemove = false;
|
|
3951
|
+
}
|
|
3949
3952
|
if (target) {
|
|
3950
3953
|
hostRemove(targetStart);
|
|
3951
3954
|
hostRemove(targetAnchor);
|
|
3952
3955
|
}
|
|
3953
3956
|
doRemove && hostRemove(anchor);
|
|
3954
3957
|
if (shapeFlag & 16) {
|
|
3955
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3956
3958
|
for (let i = 0; i < children.length; i++) {
|
|
3957
3959
|
const child = children[i];
|
|
3958
3960
|
unmount(
|
|
@@ -7519,7 +7521,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7519
7521
|
return vm;
|
|
7520
7522
|
}
|
|
7521
7523
|
}
|
|
7522
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7524
|
+
Vue.version = `2.6.14-compat:${"3.5.32"}`;
|
|
7523
7525
|
Vue.config = singletonApp.config;
|
|
7524
7526
|
Vue.use = (plugin, ...options) => {
|
|
7525
7527
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11351,6 +11353,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11351
11353
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
11352
11354
|
return;
|
|
11353
11355
|
}
|
|
11356
|
+
unsetCurrentInstance();
|
|
11354
11357
|
instance.asyncResolved = true;
|
|
11355
11358
|
const { vnode: vnode2 } = instance;
|
|
11356
11359
|
{
|
|
@@ -12634,7 +12637,7 @@ function isMemoSame(cached, memo) {
|
|
|
12634
12637
|
return true;
|
|
12635
12638
|
}
|
|
12636
12639
|
|
|
12637
|
-
const version = "3.5.
|
|
12640
|
+
const version = "3.5.32";
|
|
12638
12641
|
const warn = warn$1 ;
|
|
12639
12642
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12640
12643
|
const devtools = devtools$1 ;
|