@lwc/synthetic-shadow 6.5.1 → 6.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +17 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +17 -19
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -208,7 +208,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
|
|
208
208
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
209
209
|
const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
|
210
210
|
const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
211
|
-
/** version: 6.5.
|
211
|
+
/** version: 6.5.2 */
|
212
212
|
|
213
213
|
/**
|
214
214
|
* Copyright (c) 2024 Salesforce, Inc.
|
@@ -216,7 +216,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
216
216
|
if (!globalThis.lwcRuntimeFlags) {
|
217
217
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
218
218
|
}
|
219
|
-
/** version: 6.5.
|
219
|
+
/** version: 6.5.2 */
|
220
220
|
|
221
221
|
/*
|
222
222
|
* Copyright (c) 2018, salesforce.com, inc.
|
@@ -447,7 +447,7 @@ function isNodeShadowed(node) {
|
|
447
447
|
}
|
448
448
|
|
449
449
|
/*
|
450
|
-
* Copyright (c)
|
450
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
451
451
|
* All rights reserved.
|
452
452
|
* SPDX-License-Identifier: MIT
|
453
453
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -650,10 +650,9 @@ function getFilteredChildNodes(node) {
|
|
650
650
|
// we need to get only the nodes that were slotted
|
651
651
|
const slots = arrayFromCollection(querySelectorAll$1.call(node, 'slot'));
|
652
652
|
const resolver = getShadowRootResolver(getShadowRoot(node));
|
653
|
-
|
654
|
-
//
|
655
|
-
|
656
|
-
return ArrayReduce.call(slots, (seed, slot) => {
|
653
|
+
return ArrayReduce.call(slots,
|
654
|
+
// @ts-expect-error Array#reduce has a generic that gets lost in our retyped ArrayReduce
|
655
|
+
(seed, slot) => {
|
657
656
|
if (resolver === getShadowRootResolver(slot)) {
|
658
657
|
ArrayPush.apply(seed, getFilteredSlotAssignedNodes(slot));
|
659
658
|
}
|
@@ -848,7 +847,7 @@ function getTextContent(node) {
|
|
848
847
|
}
|
849
848
|
|
850
849
|
/*
|
851
|
-
* Copyright (c)
|
850
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
852
851
|
* All rights reserved.
|
853
852
|
* SPDX-License-Identifier: MIT
|
854
853
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -2428,7 +2427,7 @@ function fauxElementFromPoint(context, doc, left, top) {
|
|
2428
2427
|
}
|
2429
2428
|
|
2430
2429
|
/*
|
2431
|
-
* Copyright (c)
|
2430
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
2432
2431
|
* All rights reserved.
|
2433
2432
|
* SPDX-License-Identifier: MIT
|
2434
2433
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -2633,7 +2632,7 @@ if (typeof ClipboardEvent !== 'undefined') {
|
|
2633
2632
|
}
|
2634
2633
|
|
2635
2634
|
/*
|
2636
|
-
* Copyright (c)
|
2635
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
2637
2636
|
* All rights reserved.
|
2638
2637
|
* SPDX-License-Identifier: MIT
|
2639
2638
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -2871,7 +2870,7 @@ defineProperty(window, 'MutationObserver', {
|
|
2871
2870
|
});
|
2872
2871
|
|
2873
2872
|
/*
|
2874
|
-
* Copyright (c)
|
2873
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
2875
2874
|
* All rights reserved.
|
2876
2875
|
* SPDX-License-Identifier: MIT
|
2877
2876
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -3112,7 +3111,7 @@ const assignedSlotGetter = hasOwnProperty.call(Text.prototype, 'assignedSlot')
|
|
3112
3111
|
: () => null;
|
3113
3112
|
|
3114
3113
|
/*
|
3115
|
-
* Copyright (c)
|
3114
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
3116
3115
|
* All rights reserved.
|
3117
3116
|
* SPDX-License-Identifier: MIT
|
3118
3117
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -3141,10 +3140,9 @@ function initSlotObserver() {
|
|
3141
3140
|
}
|
3142
3141
|
function getFilteredSlotFlattenNodes(slot) {
|
3143
3142
|
const childNodes = arrayFromCollection(childNodesGetter.call(slot));
|
3144
|
-
|
3145
|
-
//
|
3146
|
-
|
3147
|
-
return ArrayReduce.call(childNodes, (seed, child) => {
|
3143
|
+
return ArrayReduce.call(childNodes,
|
3144
|
+
// @ts-expect-error Array#reduce has a generic that is lost by our redefined ArrayReduce
|
3145
|
+
(seed, child) => {
|
3148
3146
|
if (child instanceof Element && isSlotElement(child)) {
|
3149
3147
|
ArrayPush.apply(seed, getFilteredSlotFlattenNodes(child));
|
3150
3148
|
}
|
@@ -3327,7 +3325,7 @@ function getNonPatchedFilteredArrayOfNodes(context, unfilteredNodes) {
|
|
3327
3325
|
}
|
3328
3326
|
|
3329
3327
|
/*
|
3330
|
-
* Copyright (c)
|
3328
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
3331
3329
|
* All rights reserved.
|
3332
3330
|
* SPDX-License-Identifier: MIT
|
3333
3331
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -3638,7 +3636,7 @@ if (hasOwnProperty.call(HTMLElement.prototype, 'getElementsByClassName')) {
|
|
3638
3636
|
}
|
3639
3637
|
|
3640
3638
|
/*
|
3641
|
-
* Copyright (c)
|
3639
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
3642
3640
|
* All rights reserved.
|
3643
3641
|
* SPDX-License-Identifier: MIT
|
3644
3642
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -4376,6 +4374,6 @@ defineProperty(Element.prototype, '$domManual$', {
|
|
4376
4374
|
},
|
4377
4375
|
configurable: true,
|
4378
4376
|
});
|
4379
|
-
/** version: 6.5.
|
4377
|
+
/** version: 6.5.2 */
|
4380
4378
|
}
|
4381
4379
|
//# sourceMappingURL=index.js.map
|