@lwc/engine-core 3.1.2 → 3.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/framework/renderer.d.ts +0 -1
- package/dist/index.cjs.js +15 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +15 -24
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5350,7 +5350,7 @@ function invokeServiceHook(vm, cbs) {
|
|
|
5350
5350
|
}
|
|
5351
5351
|
|
|
5352
5352
|
/*
|
|
5353
|
-
* Copyright (c)
|
|
5353
|
+
* Copyright (c) 2023, Salesforce.com, inc.
|
|
5354
5354
|
* All rights reserved.
|
|
5355
5355
|
* SPDX-License-Identifier: MIT
|
|
5356
5356
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -5541,7 +5541,7 @@ function warnOnStylesheetsMutation(ctor) {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
function computeShadowMode(vm, renderer) {
|
|
5543
5543
|
const { def } = vm;
|
|
5544
|
-
const { isSyntheticShadowDefined
|
|
5544
|
+
const { isSyntheticShadowDefined } = renderer;
|
|
5545
5545
|
let shadowMode;
|
|
5546
5546
|
if (isSyntheticShadowDefined) {
|
|
5547
5547
|
if (def.renderMode === 0 /* RenderMode.Light */) {
|
|
@@ -5549,34 +5549,25 @@ function computeShadowMode(vm, renderer) {
|
|
|
5549
5549
|
// everything defaults to native when the synthetic shadow polyfill is unavailable.
|
|
5550
5550
|
shadowMode = 0 /* ShadowMode.Native */;
|
|
5551
5551
|
}
|
|
5552
|
-
else if (
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5552
|
+
else if (lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
5553
|
+
if (def.shadowSupportMode === "any" /* ShadowSupportMode.Any */) {
|
|
5554
|
+
shadowMode = 0 /* ShadowMode.Native */;
|
|
5555
|
+
}
|
|
5556
|
+
else {
|
|
5557
|
+
const shadowAncestor = getNearestShadowAncestor(vm);
|
|
5558
|
+
if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0 /* ShadowMode.Native */) {
|
|
5559
|
+
// Transitive support for native Shadow DOM. A component in native mode
|
|
5560
|
+
// transitively opts all of its descendants into native.
|
|
5557
5561
|
shadowMode = 0 /* ShadowMode.Native */;
|
|
5558
5562
|
}
|
|
5559
5563
|
else {
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
// Transitive support for native Shadow DOM. A component in native mode
|
|
5564
|
-
// transitively opts all of its descendants into native.
|
|
5565
|
-
shadowMode = 0 /* ShadowMode.Native */;
|
|
5566
|
-
}
|
|
5567
|
-
else {
|
|
5568
|
-
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5569
|
-
// to be native.
|
|
5570
|
-
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5571
|
-
}
|
|
5564
|
+
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5565
|
+
// to be native.
|
|
5566
|
+
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5572
5567
|
}
|
|
5573
5568
|
}
|
|
5574
|
-
else {
|
|
5575
|
-
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5576
|
-
}
|
|
5577
5569
|
}
|
|
5578
5570
|
else {
|
|
5579
|
-
// Synthetic if there is no native Shadow DOM support.
|
|
5580
5571
|
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5581
5572
|
}
|
|
5582
5573
|
}
|
|
@@ -6888,5 +6879,5 @@ function readonly(obj) {
|
|
|
6888
6879
|
}
|
|
6889
6880
|
|
|
6890
6881
|
export { LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
6891
|
-
/** version: 3.1.
|
|
6882
|
+
/** version: 3.1.3 */
|
|
6892
6883
|
//# sourceMappingURL=index.js.map
|