@lwc/engine-core 3.1.1 → 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 +17 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +17 -25
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -5,7 +5,6 @@ type N = HostNode;
|
|
|
5
5
|
type E = HostElement;
|
|
6
6
|
export type LifecycleCallback = (elm: E) => void;
|
|
7
7
|
export interface RendererAPI {
|
|
8
|
-
isNativeShadowDefined: boolean;
|
|
9
8
|
isSyntheticShadowDefined: boolean;
|
|
10
9
|
insert: (node: N, parent: E, anchor: N | null) => void;
|
|
11
10
|
remove: (node: N, parent: E) => void;
|
package/dist/index.cjs.js
CHANGED
|
@@ -3157,7 +3157,8 @@ function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
|
|
|
3157
3157
|
if (lwcRuntimeFlags.DISABLE_LIGHT_DOM_UNSCOPED_CSS &&
|
|
3158
3158
|
!isScopedCss &&
|
|
3159
3159
|
vm.renderMode === 0 /* RenderMode.Light */) {
|
|
3160
|
-
logError('Unscoped CSS is not supported in Light DOM. Please use scoped CSS
|
|
3160
|
+
logError('Unscoped CSS is not supported in Light DOM in this environment. Please use scoped CSS ' +
|
|
3161
|
+
'(*.scoped.css) instead of unscoped CSS (*.css). See also: https://sfdc.co/scoped-styles-light-dom');
|
|
3161
3162
|
continue;
|
|
3162
3163
|
}
|
|
3163
3164
|
// Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
|
|
@@ -5353,7 +5354,7 @@ function invokeServiceHook(vm, cbs) {
|
|
|
5353
5354
|
}
|
|
5354
5355
|
|
|
5355
5356
|
/*
|
|
5356
|
-
* Copyright (c)
|
|
5357
|
+
* Copyright (c) 2023, Salesforce.com, inc.
|
|
5357
5358
|
* All rights reserved.
|
|
5358
5359
|
* SPDX-License-Identifier: MIT
|
|
5359
5360
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -5544,7 +5545,7 @@ function warnOnStylesheetsMutation(ctor) {
|
|
|
5544
5545
|
}
|
|
5545
5546
|
function computeShadowMode(vm, renderer) {
|
|
5546
5547
|
const { def } = vm;
|
|
5547
|
-
const { isSyntheticShadowDefined
|
|
5548
|
+
const { isSyntheticShadowDefined } = renderer;
|
|
5548
5549
|
let shadowMode;
|
|
5549
5550
|
if (isSyntheticShadowDefined) {
|
|
5550
5551
|
if (def.renderMode === 0 /* RenderMode.Light */) {
|
|
@@ -5552,34 +5553,25 @@ function computeShadowMode(vm, renderer) {
|
|
|
5552
5553
|
// everything defaults to native when the synthetic shadow polyfill is unavailable.
|
|
5553
5554
|
shadowMode = 0 /* ShadowMode.Native */;
|
|
5554
5555
|
}
|
|
5555
|
-
else if (
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5556
|
+
else if (lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
5557
|
+
if (def.shadowSupportMode === "any" /* ShadowSupportMode.Any */) {
|
|
5558
|
+
shadowMode = 0 /* ShadowMode.Native */;
|
|
5559
|
+
}
|
|
5560
|
+
else {
|
|
5561
|
+
const shadowAncestor = getNearestShadowAncestor(vm);
|
|
5562
|
+
if (!shared.isNull(shadowAncestor) && shadowAncestor.shadowMode === 0 /* ShadowMode.Native */) {
|
|
5563
|
+
// Transitive support for native Shadow DOM. A component in native mode
|
|
5564
|
+
// transitively opts all of its descendants into native.
|
|
5560
5565
|
shadowMode = 0 /* ShadowMode.Native */;
|
|
5561
5566
|
}
|
|
5562
5567
|
else {
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
// Transitive support for native Shadow DOM. A component in native mode
|
|
5567
|
-
// transitively opts all of its descendants into native.
|
|
5568
|
-
shadowMode = 0 /* ShadowMode.Native */;
|
|
5569
|
-
}
|
|
5570
|
-
else {
|
|
5571
|
-
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5572
|
-
// to be native.
|
|
5573
|
-
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5574
|
-
}
|
|
5568
|
+
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5569
|
+
// to be native.
|
|
5570
|
+
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5575
5571
|
}
|
|
5576
5572
|
}
|
|
5577
|
-
else {
|
|
5578
|
-
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5579
|
-
}
|
|
5580
5573
|
}
|
|
5581
5574
|
else {
|
|
5582
|
-
// Synthetic if there is no native Shadow DOM support.
|
|
5583
5575
|
shadowMode = 1 /* ShadowMode.Synthetic */;
|
|
5584
5576
|
}
|
|
5585
5577
|
}
|
|
@@ -6929,5 +6921,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
6929
6921
|
exports.track = track;
|
|
6930
6922
|
exports.unwrap = unwrap;
|
|
6931
6923
|
exports.wire = wire;
|
|
6932
|
-
/** version: 3.1.
|
|
6924
|
+
/** version: 3.1.3 */
|
|
6933
6925
|
//# sourceMappingURL=index.cjs.js.map
|