@vue/runtime-dom 3.6.0-rc.4 → 3.6.0-rc.5
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 +21 -8
- 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 +21 -8
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-rc.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-rc.5
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3762,7 +3762,18 @@ const logMismatchError = () => {
|
|
|
3762
3762
|
hasLoggedMismatchError = true;
|
|
3763
3763
|
};
|
|
3764
3764
|
const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
|
|
3765
|
-
const isMathMLContainer = (container) =>
|
|
3765
|
+
const isMathMLContainer = (container) => {
|
|
3766
|
+
if (!container.namespaceURI.includes("MathML")) return false;
|
|
3767
|
+
if (container.tagName !== "annotation-xml") return true;
|
|
3768
|
+
const encoding = container.getAttribute("encoding");
|
|
3769
|
+
return !encoding || !encoding.includes("html");
|
|
3770
|
+
};
|
|
3771
|
+
/**
|
|
3772
|
+
* Resolve the element namespace a container's children should be created in.
|
|
3773
|
+
* The live DOM is the source of truth, so this also covers containers that are
|
|
3774
|
+
* only known at runtime (interop boundaries, teleport targets).
|
|
3775
|
+
* @internal
|
|
3776
|
+
*/
|
|
3766
3777
|
const getContainerType = (container) => {
|
|
3767
3778
|
if (container.nodeType !== 1) return void 0;
|
|
3768
3779
|
if (isSVGContainer(container)) return "svg";
|
|
@@ -3841,7 +3852,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3841
3852
|
else nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
3842
3853
|
break;
|
|
3843
3854
|
case VaporSlot:
|
|
3844
|
-
nextNode = getVaporInterface(parentComponent, vnode).hydrateSlot(vnode, node, parentComponent, parentSuspense);
|
|
3855
|
+
nextNode = getVaporInterface(parentComponent, vnode).hydrateSlot(vnode, node, parentComponent, parentSuspense, slotScopeIds);
|
|
3845
3856
|
break;
|
|
3846
3857
|
default: if (shapeFlag & 1) if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) nextNode = onMismatch();
|
|
3847
3858
|
else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
@@ -4008,7 +4019,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4008
4019
|
const container = parentNode(node);
|
|
4009
4020
|
remove(node);
|
|
4010
4021
|
patch(null, vnode, container, next, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
|
|
4011
|
-
if (parentComponent) {
|
|
4022
|
+
if (parentComponent && parentComponent.vnode) {
|
|
4012
4023
|
parentComponent.vnode.el = vnode.el;
|
|
4013
4024
|
updateHOCHostEl(parentComponent, vnode.el);
|
|
4014
4025
|
}
|
|
@@ -4031,7 +4042,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4031
4042
|
if (parentNode) parentNode.replaceChild(newNode, oldNode);
|
|
4032
4043
|
let parent = parentComponent;
|
|
4033
4044
|
while (parent) {
|
|
4034
|
-
if (parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
|
|
4045
|
+
if (parent.vnode && parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
|
|
4035
4046
|
parent = parent.parent;
|
|
4036
4047
|
}
|
|
4037
4048
|
};
|
|
@@ -6457,7 +6468,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6457
6468
|
processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
6458
6469
|
break;
|
|
6459
6470
|
case VaporSlot:
|
|
6460
|
-
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense);
|
|
6471
|
+
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense, slotScopeIds);
|
|
6461
6472
|
break;
|
|
6462
6473
|
default: if (shapeFlag & 1) processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
6463
6474
|
else if (shapeFlag & 6) processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
@@ -7306,7 +7317,7 @@ function isVaporComponent(type) {
|
|
|
7306
7317
|
/**
|
|
7307
7318
|
* shared between vdom and vapor
|
|
7308
7319
|
*/
|
|
7309
|
-
function getInheritedScopeIds(vnode, parentComponent) {
|
|
7320
|
+
function getInheritedScopeIds(vnode, parentComponent, includeVaporRootIds = true) {
|
|
7310
7321
|
const inheritedScopeIds = [];
|
|
7311
7322
|
let currentParent = parentComponent;
|
|
7312
7323
|
let currentVNode = vnode;
|
|
@@ -7322,6 +7333,8 @@ function getInheritedScopeIds(vnode, parentComponent) {
|
|
|
7322
7333
|
currentParent = currentParent.parent;
|
|
7323
7334
|
} else break;
|
|
7324
7335
|
}
|
|
7336
|
+
const vaporScopeIds = includeVaporRootIds && currentVNode.vaporScopeIds;
|
|
7337
|
+
if (vaporScopeIds) inheritedScopeIds.push(...vaporScopeIds);
|
|
7325
7338
|
return inheritedScopeIds;
|
|
7326
7339
|
}
|
|
7327
7340
|
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
@@ -8556,7 +8569,7 @@ function isMemoSame(cached, memo) {
|
|
|
8556
8569
|
}
|
|
8557
8570
|
//#endregion
|
|
8558
8571
|
//#region packages/runtime-core/src/index.ts
|
|
8559
|
-
const version = "3.6.0-rc.
|
|
8572
|
+
const version = "3.6.0-rc.5";
|
|
8560
8573
|
const warn = warn$1;
|
|
8561
8574
|
/**
|
|
8562
8575
|
* Runtime error messages. Only exposed in dev or esm builds.
|