@vue/runtime-core 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/runtime-core.cjs.js +74 -71
- package/dist/runtime-core.cjs.prod.js +72 -65
- package/dist/runtime-core.esm-bundler.js +74 -71
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.32
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -945,6 +945,7 @@ function createPathGetter(ctx, path) {
|
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
|
|
948
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
948
949
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
949
950
|
const isTeleport = (type) => type.__isTeleport;
|
|
950
951
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -986,91 +987,86 @@ const TeleportImpl = {
|
|
|
986
987
|
o: { insert, querySelector, createText, createComment }
|
|
987
988
|
} = internals;
|
|
988
989
|
const disabled = isTeleportDisabled(n2.props);
|
|
989
|
-
let {
|
|
990
|
+
let { dynamicChildren } = n2;
|
|
990
991
|
if (isHmrUpdating) {
|
|
991
992
|
optimized = false;
|
|
992
993
|
dynamicChildren = null;
|
|
993
994
|
}
|
|
995
|
+
const mount = (vnode, container2, anchor2) => {
|
|
996
|
+
if (vnode.shapeFlag & 16) {
|
|
997
|
+
mountChildren(
|
|
998
|
+
vnode.children,
|
|
999
|
+
container2,
|
|
1000
|
+
anchor2,
|
|
1001
|
+
parentComponent,
|
|
1002
|
+
parentSuspense,
|
|
1003
|
+
namespace,
|
|
1004
|
+
slotScopeIds,
|
|
1005
|
+
optimized
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
const mountToTarget = (vnode = n2) => {
|
|
1010
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
1011
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
1012
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
1013
|
+
if (target) {
|
|
1014
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
1015
|
+
namespace = "svg";
|
|
1016
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
1017
|
+
namespace = "mathml";
|
|
1018
|
+
}
|
|
1019
|
+
if (parentComponent && parentComponent.isCE) {
|
|
1020
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
1021
|
+
}
|
|
1022
|
+
if (!disabled2) {
|
|
1023
|
+
mount(vnode, target, targetAnchor);
|
|
1024
|
+
updateCssVars(vnode, false);
|
|
1025
|
+
}
|
|
1026
|
+
} else if (!disabled2) {
|
|
1027
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
const queuePendingMount = (vnode) => {
|
|
1031
|
+
const mountJob = () => {
|
|
1032
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
1033
|
+
pendingMounts.delete(vnode);
|
|
1034
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
1035
|
+
mount(vnode, container, vnode.anchor);
|
|
1036
|
+
updateCssVars(vnode, true);
|
|
1037
|
+
}
|
|
1038
|
+
mountToTarget(vnode);
|
|
1039
|
+
};
|
|
1040
|
+
pendingMounts.set(vnode, mountJob);
|
|
1041
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
1042
|
+
};
|
|
994
1043
|
if (n1 == null) {
|
|
995
1044
|
const placeholder = n2.el = createComment("teleport start") ;
|
|
996
1045
|
const mainAnchor = n2.anchor = createComment("teleport end") ;
|
|
997
1046
|
insert(placeholder, container, anchor);
|
|
998
1047
|
insert(mainAnchor, container, anchor);
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
container2,
|
|
1004
|
-
anchor2,
|
|
1005
|
-
parentComponent,
|
|
1006
|
-
parentSuspense,
|
|
1007
|
-
namespace,
|
|
1008
|
-
slotScopeIds,
|
|
1009
|
-
optimized
|
|
1010
|
-
);
|
|
1011
|
-
}
|
|
1012
|
-
};
|
|
1013
|
-
const mountToTarget = () => {
|
|
1014
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
1015
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
1016
|
-
if (target) {
|
|
1017
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
1018
|
-
namespace = "svg";
|
|
1019
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
1020
|
-
namespace = "mathml";
|
|
1021
|
-
}
|
|
1022
|
-
if (parentComponent && parentComponent.isCE) {
|
|
1023
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
1024
|
-
}
|
|
1025
|
-
if (!disabled) {
|
|
1026
|
-
mount(target, targetAnchor);
|
|
1027
|
-
updateCssVars(n2, false);
|
|
1028
|
-
}
|
|
1029
|
-
} else if (!disabled) {
|
|
1030
|
-
warn$1(
|
|
1031
|
-
"Invalid Teleport target on mount:",
|
|
1032
|
-
target,
|
|
1033
|
-
`(${typeof target})`
|
|
1034
|
-
);
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1048
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
1049
|
+
queuePendingMount(n2);
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1037
1052
|
if (disabled) {
|
|
1038
|
-
mount(container, mainAnchor);
|
|
1053
|
+
mount(n2, container, mainAnchor);
|
|
1039
1054
|
updateCssVars(n2, true);
|
|
1040
1055
|
}
|
|
1041
|
-
|
|
1042
|
-
n2.el.__isMounted = false;
|
|
1043
|
-
queuePostRenderEffect(() => {
|
|
1044
|
-
if (n2.el.__isMounted !== false) return;
|
|
1045
|
-
mountToTarget();
|
|
1046
|
-
delete n2.el.__isMounted;
|
|
1047
|
-
}, parentSuspense);
|
|
1048
|
-
} else {
|
|
1049
|
-
mountToTarget();
|
|
1050
|
-
}
|
|
1056
|
+
mountToTarget();
|
|
1051
1057
|
} else {
|
|
1052
1058
|
n2.el = n1.el;
|
|
1053
|
-
n2.targetStart = n1.targetStart;
|
|
1054
1059
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
n1,
|
|
1061
|
-
n2,
|
|
1062
|
-
container,
|
|
1063
|
-
anchor,
|
|
1064
|
-
parentComponent,
|
|
1065
|
-
parentSuspense,
|
|
1066
|
-
namespace,
|
|
1067
|
-
slotScopeIds,
|
|
1068
|
-
optimized,
|
|
1069
|
-
internals
|
|
1070
|
-
);
|
|
1071
|
-
}, parentSuspense);
|
|
1060
|
+
const pendingMount = pendingMounts.get(n1);
|
|
1061
|
+
if (pendingMount) {
|
|
1062
|
+
pendingMount.flags |= 8;
|
|
1063
|
+
pendingMounts.delete(n1);
|
|
1064
|
+
queuePendingMount(n2);
|
|
1072
1065
|
return;
|
|
1073
1066
|
}
|
|
1067
|
+
n2.targetStart = n1.targetStart;
|
|
1068
|
+
const target = n2.target = n1.target;
|
|
1069
|
+
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
1074
1070
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
1075
1071
|
const currentContainer = wasDisabled ? container : target;
|
|
1076
1072
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -1161,13 +1157,19 @@ const TeleportImpl = {
|
|
|
1161
1157
|
target,
|
|
1162
1158
|
props
|
|
1163
1159
|
} = vnode;
|
|
1160
|
+
let shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
1161
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
1162
|
+
if (pendingMount) {
|
|
1163
|
+
pendingMount.flags |= 8;
|
|
1164
|
+
pendingMounts.delete(vnode);
|
|
1165
|
+
shouldRemove = false;
|
|
1166
|
+
}
|
|
1164
1167
|
if (target) {
|
|
1165
1168
|
hostRemove(targetStart);
|
|
1166
1169
|
hostRemove(targetAnchor);
|
|
1167
1170
|
}
|
|
1168
1171
|
doRemove && hostRemove(anchor);
|
|
1169
1172
|
if (shapeFlag & 16) {
|
|
1170
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
1171
1173
|
for (let i = 0; i < children.length; i++) {
|
|
1172
1174
|
const child = children[i];
|
|
1173
1175
|
unmount(
|
|
@@ -7341,6 +7343,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
7341
7343
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
7342
7344
|
return;
|
|
7343
7345
|
}
|
|
7346
|
+
unsetCurrentInstance();
|
|
7344
7347
|
instance.asyncResolved = true;
|
|
7345
7348
|
const { vnode: vnode2 } = instance;
|
|
7346
7349
|
{
|
|
@@ -8545,7 +8548,7 @@ function isMemoSame(cached, memo) {
|
|
|
8545
8548
|
return true;
|
|
8546
8549
|
}
|
|
8547
8550
|
|
|
8548
|
-
const version = "3.5.
|
|
8551
|
+
const version = "3.5.32";
|
|
8549
8552
|
const warn = warn$1 ;
|
|
8550
8553
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8551
8554
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.32
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -512,6 +512,7 @@ function createPathGetter(ctx, path) {
|
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
515
516
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
516
517
|
const isTeleport = (type) => type.__isTeleport;
|
|
517
518
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -542,81 +543,80 @@ const TeleportImpl = {
|
|
|
542
543
|
o: { insert, querySelector, createText, createComment }
|
|
543
544
|
} = internals;
|
|
544
545
|
const disabled = isTeleportDisabled(n2.props);
|
|
545
|
-
let {
|
|
546
|
+
let { dynamicChildren } = n2;
|
|
547
|
+
const mount = (vnode, container2, anchor2) => {
|
|
548
|
+
if (vnode.shapeFlag & 16) {
|
|
549
|
+
mountChildren(
|
|
550
|
+
vnode.children,
|
|
551
|
+
container2,
|
|
552
|
+
anchor2,
|
|
553
|
+
parentComponent,
|
|
554
|
+
parentSuspense,
|
|
555
|
+
namespace,
|
|
556
|
+
slotScopeIds,
|
|
557
|
+
optimized
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
const mountToTarget = (vnode = n2) => {
|
|
562
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
563
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
564
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
565
|
+
if (target) {
|
|
566
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
567
|
+
namespace = "svg";
|
|
568
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
569
|
+
namespace = "mathml";
|
|
570
|
+
}
|
|
571
|
+
if (parentComponent && parentComponent.isCE) {
|
|
572
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
573
|
+
}
|
|
574
|
+
if (!disabled2) {
|
|
575
|
+
mount(vnode, target, targetAnchor);
|
|
576
|
+
updateCssVars(vnode, false);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
const queuePendingMount = (vnode) => {
|
|
581
|
+
const mountJob = () => {
|
|
582
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
583
|
+
pendingMounts.delete(vnode);
|
|
584
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
585
|
+
mount(vnode, container, vnode.anchor);
|
|
586
|
+
updateCssVars(vnode, true);
|
|
587
|
+
}
|
|
588
|
+
mountToTarget(vnode);
|
|
589
|
+
};
|
|
590
|
+
pendingMounts.set(vnode, mountJob);
|
|
591
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
592
|
+
};
|
|
546
593
|
if (n1 == null) {
|
|
547
594
|
const placeholder = n2.el = createText("");
|
|
548
595
|
const mainAnchor = n2.anchor = createText("");
|
|
549
596
|
insert(placeholder, container, anchor);
|
|
550
597
|
insert(mainAnchor, container, anchor);
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
container2,
|
|
556
|
-
anchor2,
|
|
557
|
-
parentComponent,
|
|
558
|
-
parentSuspense,
|
|
559
|
-
namespace,
|
|
560
|
-
slotScopeIds,
|
|
561
|
-
optimized
|
|
562
|
-
);
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
const mountToTarget = () => {
|
|
566
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
567
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
568
|
-
if (target) {
|
|
569
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
570
|
-
namespace = "svg";
|
|
571
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
572
|
-
namespace = "mathml";
|
|
573
|
-
}
|
|
574
|
-
if (parentComponent && parentComponent.isCE) {
|
|
575
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
576
|
-
}
|
|
577
|
-
if (!disabled) {
|
|
578
|
-
mount(target, targetAnchor);
|
|
579
|
-
updateCssVars(n2, false);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
};
|
|
598
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
599
|
+
queuePendingMount(n2);
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
583
602
|
if (disabled) {
|
|
584
|
-
mount(container, mainAnchor);
|
|
603
|
+
mount(n2, container, mainAnchor);
|
|
585
604
|
updateCssVars(n2, true);
|
|
586
605
|
}
|
|
587
|
-
|
|
588
|
-
n2.el.__isMounted = false;
|
|
589
|
-
queuePostRenderEffect(() => {
|
|
590
|
-
if (n2.el.__isMounted !== false) return;
|
|
591
|
-
mountToTarget();
|
|
592
|
-
delete n2.el.__isMounted;
|
|
593
|
-
}, parentSuspense);
|
|
594
|
-
} else {
|
|
595
|
-
mountToTarget();
|
|
596
|
-
}
|
|
606
|
+
mountToTarget();
|
|
597
607
|
} else {
|
|
598
608
|
n2.el = n1.el;
|
|
599
|
-
n2.targetStart = n1.targetStart;
|
|
600
609
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
n1,
|
|
607
|
-
n2,
|
|
608
|
-
container,
|
|
609
|
-
anchor,
|
|
610
|
-
parentComponent,
|
|
611
|
-
parentSuspense,
|
|
612
|
-
namespace,
|
|
613
|
-
slotScopeIds,
|
|
614
|
-
optimized,
|
|
615
|
-
internals
|
|
616
|
-
);
|
|
617
|
-
}, parentSuspense);
|
|
610
|
+
const pendingMount = pendingMounts.get(n1);
|
|
611
|
+
if (pendingMount) {
|
|
612
|
+
pendingMount.flags |= 8;
|
|
613
|
+
pendingMounts.delete(n1);
|
|
614
|
+
queuePendingMount(n2);
|
|
618
615
|
return;
|
|
619
616
|
}
|
|
617
|
+
n2.targetStart = n1.targetStart;
|
|
618
|
+
const target = n2.target = n1.target;
|
|
619
|
+
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
620
620
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
621
621
|
const currentContainer = wasDisabled ? container : target;
|
|
622
622
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -701,13 +701,19 @@ const TeleportImpl = {
|
|
|
701
701
|
target,
|
|
702
702
|
props
|
|
703
703
|
} = vnode;
|
|
704
|
+
let shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
705
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
706
|
+
if (pendingMount) {
|
|
707
|
+
pendingMount.flags |= 8;
|
|
708
|
+
pendingMounts.delete(vnode);
|
|
709
|
+
shouldRemove = false;
|
|
710
|
+
}
|
|
704
711
|
if (target) {
|
|
705
712
|
hostRemove(targetStart);
|
|
706
713
|
hostRemove(targetAnchor);
|
|
707
714
|
}
|
|
708
715
|
doRemove && hostRemove(anchor);
|
|
709
716
|
if (shapeFlag & 16) {
|
|
710
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
711
717
|
for (let i = 0; i < children.length; i++) {
|
|
712
718
|
const child = children[i];
|
|
713
719
|
unmount(
|
|
@@ -5839,6 +5845,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
5839
5845
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
5840
5846
|
return;
|
|
5841
5847
|
}
|
|
5848
|
+
unsetCurrentInstance();
|
|
5842
5849
|
instance.asyncResolved = true;
|
|
5843
5850
|
const { vnode: vnode2 } = instance;
|
|
5844
5851
|
handleSetupResult(instance, asyncSetupResult, false);
|
|
@@ -6679,7 +6686,7 @@ function isMemoSame(cached, memo) {
|
|
|
6679
6686
|
return true;
|
|
6680
6687
|
}
|
|
6681
6688
|
|
|
6682
|
-
const version = "3.5.
|
|
6689
|
+
const version = "3.5.32";
|
|
6683
6690
|
const warn$1 = shared.NOOP;
|
|
6684
6691
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6685
6692
|
const devtools = void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.32
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -948,6 +948,7 @@ function createPathGetter(ctx, path) {
|
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
950
|
|
|
951
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
951
952
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
952
953
|
const isTeleport = (type) => type.__isTeleport;
|
|
953
954
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -989,91 +990,86 @@ const TeleportImpl = {
|
|
|
989
990
|
o: { insert, querySelector, createText, createComment }
|
|
990
991
|
} = internals;
|
|
991
992
|
const disabled = isTeleportDisabled(n2.props);
|
|
992
|
-
let {
|
|
993
|
+
let { dynamicChildren } = n2;
|
|
993
994
|
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
994
995
|
optimized = false;
|
|
995
996
|
dynamicChildren = null;
|
|
996
997
|
}
|
|
998
|
+
const mount = (vnode, container2, anchor2) => {
|
|
999
|
+
if (vnode.shapeFlag & 16) {
|
|
1000
|
+
mountChildren(
|
|
1001
|
+
vnode.children,
|
|
1002
|
+
container2,
|
|
1003
|
+
anchor2,
|
|
1004
|
+
parentComponent,
|
|
1005
|
+
parentSuspense,
|
|
1006
|
+
namespace,
|
|
1007
|
+
slotScopeIds,
|
|
1008
|
+
optimized
|
|
1009
|
+
);
|
|
1010
|
+
}
|
|
1011
|
+
};
|
|
1012
|
+
const mountToTarget = (vnode = n2) => {
|
|
1013
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
1014
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
1015
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
1016
|
+
if (target) {
|
|
1017
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
1018
|
+
namespace = "svg";
|
|
1019
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
1020
|
+
namespace = "mathml";
|
|
1021
|
+
}
|
|
1022
|
+
if (parentComponent && parentComponent.isCE) {
|
|
1023
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
1024
|
+
}
|
|
1025
|
+
if (!disabled2) {
|
|
1026
|
+
mount(vnode, target, targetAnchor);
|
|
1027
|
+
updateCssVars(vnode, false);
|
|
1028
|
+
}
|
|
1029
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !disabled2) {
|
|
1030
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
const queuePendingMount = (vnode) => {
|
|
1034
|
+
const mountJob = () => {
|
|
1035
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
1036
|
+
pendingMounts.delete(vnode);
|
|
1037
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
1038
|
+
mount(vnode, container, vnode.anchor);
|
|
1039
|
+
updateCssVars(vnode, true);
|
|
1040
|
+
}
|
|
1041
|
+
mountToTarget(vnode);
|
|
1042
|
+
};
|
|
1043
|
+
pendingMounts.set(vnode, mountJob);
|
|
1044
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
1045
|
+
};
|
|
997
1046
|
if (n1 == null) {
|
|
998
1047
|
const placeholder = n2.el = !!(process.env.NODE_ENV !== "production") ? createComment("teleport start") : createText("");
|
|
999
1048
|
const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== "production") ? createComment("teleport end") : createText("");
|
|
1000
1049
|
insert(placeholder, container, anchor);
|
|
1001
1050
|
insert(mainAnchor, container, anchor);
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
container2,
|
|
1007
|
-
anchor2,
|
|
1008
|
-
parentComponent,
|
|
1009
|
-
parentSuspense,
|
|
1010
|
-
namespace,
|
|
1011
|
-
slotScopeIds,
|
|
1012
|
-
optimized
|
|
1013
|
-
);
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
|
-
const mountToTarget = () => {
|
|
1017
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
1018
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
1019
|
-
if (target) {
|
|
1020
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
1021
|
-
namespace = "svg";
|
|
1022
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
1023
|
-
namespace = "mathml";
|
|
1024
|
-
}
|
|
1025
|
-
if (parentComponent && parentComponent.isCE) {
|
|
1026
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
1027
|
-
}
|
|
1028
|
-
if (!disabled) {
|
|
1029
|
-
mount(target, targetAnchor);
|
|
1030
|
-
updateCssVars(n2, false);
|
|
1031
|
-
}
|
|
1032
|
-
} else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
|
|
1033
|
-
warn$1(
|
|
1034
|
-
"Invalid Teleport target on mount:",
|
|
1035
|
-
target,
|
|
1036
|
-
`(${typeof target})`
|
|
1037
|
-
);
|
|
1038
|
-
}
|
|
1039
|
-
};
|
|
1051
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
1052
|
+
queuePendingMount(n2);
|
|
1053
|
+
return;
|
|
1054
|
+
}
|
|
1040
1055
|
if (disabled) {
|
|
1041
|
-
mount(container, mainAnchor);
|
|
1056
|
+
mount(n2, container, mainAnchor);
|
|
1042
1057
|
updateCssVars(n2, true);
|
|
1043
1058
|
}
|
|
1044
|
-
|
|
1045
|
-
n2.el.__isMounted = false;
|
|
1046
|
-
queuePostRenderEffect(() => {
|
|
1047
|
-
if (n2.el.__isMounted !== false) return;
|
|
1048
|
-
mountToTarget();
|
|
1049
|
-
delete n2.el.__isMounted;
|
|
1050
|
-
}, parentSuspense);
|
|
1051
|
-
} else {
|
|
1052
|
-
mountToTarget();
|
|
1053
|
-
}
|
|
1059
|
+
mountToTarget();
|
|
1054
1060
|
} else {
|
|
1055
1061
|
n2.el = n1.el;
|
|
1056
|
-
n2.targetStart = n1.targetStart;
|
|
1057
1062
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
1058
|
-
const
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
n1,
|
|
1064
|
-
n2,
|
|
1065
|
-
container,
|
|
1066
|
-
anchor,
|
|
1067
|
-
parentComponent,
|
|
1068
|
-
parentSuspense,
|
|
1069
|
-
namespace,
|
|
1070
|
-
slotScopeIds,
|
|
1071
|
-
optimized,
|
|
1072
|
-
internals
|
|
1073
|
-
);
|
|
1074
|
-
}, parentSuspense);
|
|
1063
|
+
const pendingMount = pendingMounts.get(n1);
|
|
1064
|
+
if (pendingMount) {
|
|
1065
|
+
pendingMount.flags |= 8;
|
|
1066
|
+
pendingMounts.delete(n1);
|
|
1067
|
+
queuePendingMount(n2);
|
|
1075
1068
|
return;
|
|
1076
1069
|
}
|
|
1070
|
+
n2.targetStart = n1.targetStart;
|
|
1071
|
+
const target = n2.target = n1.target;
|
|
1072
|
+
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
1077
1073
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
1078
1074
|
const currentContainer = wasDisabled ? container : target;
|
|
1079
1075
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -1164,13 +1160,19 @@ const TeleportImpl = {
|
|
|
1164
1160
|
target,
|
|
1165
1161
|
props
|
|
1166
1162
|
} = vnode;
|
|
1163
|
+
let shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
1164
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
1165
|
+
if (pendingMount) {
|
|
1166
|
+
pendingMount.flags |= 8;
|
|
1167
|
+
pendingMounts.delete(vnode);
|
|
1168
|
+
shouldRemove = false;
|
|
1169
|
+
}
|
|
1167
1170
|
if (target) {
|
|
1168
1171
|
hostRemove(targetStart);
|
|
1169
1172
|
hostRemove(targetAnchor);
|
|
1170
1173
|
}
|
|
1171
1174
|
doRemove && hostRemove(anchor);
|
|
1172
1175
|
if (shapeFlag & 16) {
|
|
1173
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
1174
1176
|
for (let i = 0; i < children.length; i++) {
|
|
1175
1177
|
const child = children[i];
|
|
1176
1178
|
unmount(
|
|
@@ -7401,6 +7403,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
7401
7403
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
7402
7404
|
return;
|
|
7403
7405
|
}
|
|
7406
|
+
unsetCurrentInstance();
|
|
7404
7407
|
instance.asyncResolved = true;
|
|
7405
7408
|
const { vnode: vnode2 } = instance;
|
|
7406
7409
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -8619,7 +8622,7 @@ function isMemoSame(cached, memo) {
|
|
|
8619
8622
|
return true;
|
|
8620
8623
|
}
|
|
8621
8624
|
|
|
8622
|
-
const version = "3.5.
|
|
8625
|
+
const version = "3.5.32";
|
|
8623
8626
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8624
8627
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8625
8628
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.32",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.5.
|
|
50
|
-
"@vue/reactivity": "3.5.
|
|
49
|
+
"@vue/shared": "3.5.32",
|
|
50
|
+
"@vue/reactivity": "3.5.32"
|
|
51
51
|
}
|
|
52
52
|
}
|