@lwc/engine-core 7.1.1 → 7.1.3
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/index.cjs.js +7 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +7 -14
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -5259,16 +5259,7 @@ function s(slotName, data, children, slotset) {
|
|
|
5259
5259
|
// to the vnode because the current way the diffing algo works, it will replace the original reference
|
|
5260
5260
|
// to the host element with a new one. This means the new element will be mounted and immediately unmounted.
|
|
5261
5261
|
// Creating a copy of the vnode to preserve a reference to the previous host element.
|
|
5262
|
-
|
|
5263
|
-
// vnode.elm is undefined during initial render.
|
|
5264
|
-
// We don't need to clone at this point because it doesn't need to be unmounted.
|
|
5265
|
-
vnode.slotAssignment = data.slotAssignment;
|
|
5266
|
-
}
|
|
5267
|
-
else {
|
|
5268
|
-
// Clone when the vnode.elm is defined to ensure we don't lose reference to the previous element.
|
|
5269
|
-
// This is specifically for slot forwarding.
|
|
5270
|
-
clonedVNode = { ...vnode, slotAssignment: data.slotAssignment };
|
|
5271
|
-
}
|
|
5262
|
+
clonedVNode = { ...vnode, slotAssignment: data.slotAssignment };
|
|
5272
5263
|
}
|
|
5273
5264
|
// If the slot content is standard type, the content is static, no additional
|
|
5274
5265
|
// processing needed on the vnode
|
|
@@ -7280,9 +7271,11 @@ function textNodeContentsAreEqual(node, vnode, renderer) {
|
|
|
7280
7271
|
// LWC runtime will assume that VDOM attrs and DOM attrs are in sync.
|
|
7281
7272
|
function getValidationPredicate(elm, renderer, optOutStaticProp) {
|
|
7282
7273
|
// `data-lwc-host-mutated` is a special attribute added by the SSR engine itself,
|
|
7283
|
-
// which does the same thing as an explicit `static validationOptOut =
|
|
7284
|
-
|
|
7285
|
-
|
|
7274
|
+
// which does the same thing as an explicit `static validationOptOut = ['attr1', 'attr2']`.
|
|
7275
|
+
const hostMutatedValue = renderer.getAttribute(elm, 'data-lwc-host-mutated');
|
|
7276
|
+
if (shared.isString(hostMutatedValue)) {
|
|
7277
|
+
const mutatedAttrValues = new Set(shared.StringSplit.call(hostMutatedValue, / /));
|
|
7278
|
+
return (attrName) => !mutatedAttrValues.has(attrName);
|
|
7286
7279
|
}
|
|
7287
7280
|
if (shared.isUndefined(optOutStaticProp)) {
|
|
7288
7281
|
return (_attrName) => true;
|
|
@@ -8089,5 +8082,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
8089
8082
|
exports.track = track;
|
|
8090
8083
|
exports.unwrap = unwrap;
|
|
8091
8084
|
exports.wire = wire;
|
|
8092
|
-
/** version: 7.1.
|
|
8085
|
+
/** version: 7.1.3 */
|
|
8093
8086
|
//# sourceMappingURL=index.cjs.js.map
|