@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.cjs.js
CHANGED
@@ -210,7 +210,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
|
|
210
210
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
211
211
|
const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
|
212
212
|
const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
213
|
-
/** version: 6.5.
|
213
|
+
/** version: 6.5.2 */
|
214
214
|
|
215
215
|
/**
|
216
216
|
* Copyright (c) 2024 Salesforce, Inc.
|
@@ -218,7 +218,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
218
218
|
if (!globalThis.lwcRuntimeFlags) {
|
219
219
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
220
220
|
}
|
221
|
-
/** version: 6.5.
|
221
|
+
/** version: 6.5.2 */
|
222
222
|
|
223
223
|
/*
|
224
224
|
* Copyright (c) 2018, salesforce.com, inc.
|
@@ -449,7 +449,7 @@ function isNodeShadowed(node) {
|
|
449
449
|
}
|
450
450
|
|
451
451
|
/*
|
452
|
-
* Copyright (c)
|
452
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
453
453
|
* All rights reserved.
|
454
454
|
* SPDX-License-Identifier: MIT
|
455
455
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -652,10 +652,9 @@ function getFilteredChildNodes(node) {
|
|
652
652
|
// we need to get only the nodes that were slotted
|
653
653
|
const slots = arrayFromCollection(querySelectorAll$1.call(node, 'slot'));
|
654
654
|
const resolver = getShadowRootResolver(getShadowRoot(node));
|
655
|
-
|
656
|
-
//
|
657
|
-
|
658
|
-
return ArrayReduce.call(slots, (seed, slot) => {
|
655
|
+
return ArrayReduce.call(slots,
|
656
|
+
// @ts-expect-error Array#reduce has a generic that gets lost in our retyped ArrayReduce
|
657
|
+
(seed, slot) => {
|
659
658
|
if (resolver === getShadowRootResolver(slot)) {
|
660
659
|
ArrayPush.apply(seed, getFilteredSlotAssignedNodes(slot));
|
661
660
|
}
|
@@ -850,7 +849,7 @@ function getTextContent(node) {
|
|
850
849
|
}
|
851
850
|
|
852
851
|
/*
|
853
|
-
* Copyright (c)
|
852
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
854
853
|
* All rights reserved.
|
855
854
|
* SPDX-License-Identifier: MIT
|
856
855
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -2430,7 +2429,7 @@ function fauxElementFromPoint(context, doc, left, top) {
|
|
2430
2429
|
}
|
2431
2430
|
|
2432
2431
|
/*
|
2433
|
-
* Copyright (c)
|
2432
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
2434
2433
|
* All rights reserved.
|
2435
2434
|
* SPDX-License-Identifier: MIT
|
2436
2435
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -2635,7 +2634,7 @@ if (typeof ClipboardEvent !== 'undefined') {
|
|
2635
2634
|
}
|
2636
2635
|
|
2637
2636
|
/*
|
2638
|
-
* Copyright (c)
|
2637
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
2639
2638
|
* All rights reserved.
|
2640
2639
|
* SPDX-License-Identifier: MIT
|
2641
2640
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -2873,7 +2872,7 @@ defineProperty(window, 'MutationObserver', {
|
|
2873
2872
|
});
|
2874
2873
|
|
2875
2874
|
/*
|
2876
|
-
* Copyright (c)
|
2875
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
2877
2876
|
* All rights reserved.
|
2878
2877
|
* SPDX-License-Identifier: MIT
|
2879
2878
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -3114,7 +3113,7 @@ const assignedSlotGetter = hasOwnProperty.call(Text.prototype, 'assignedSlot')
|
|
3114
3113
|
: () => null;
|
3115
3114
|
|
3116
3115
|
/*
|
3117
|
-
* Copyright (c)
|
3116
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
3118
3117
|
* All rights reserved.
|
3119
3118
|
* SPDX-License-Identifier: MIT
|
3120
3119
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -3143,10 +3142,9 @@ function initSlotObserver() {
|
|
3143
3142
|
}
|
3144
3143
|
function getFilteredSlotFlattenNodes(slot) {
|
3145
3144
|
const childNodes = arrayFromCollection(childNodesGetter.call(slot));
|
3146
|
-
|
3147
|
-
//
|
3148
|
-
|
3149
|
-
return ArrayReduce.call(childNodes, (seed, child) => {
|
3145
|
+
return ArrayReduce.call(childNodes,
|
3146
|
+
// @ts-expect-error Array#reduce has a generic that is lost by our redefined ArrayReduce
|
3147
|
+
(seed, child) => {
|
3150
3148
|
if (child instanceof Element && isSlotElement(child)) {
|
3151
3149
|
ArrayPush.apply(seed, getFilteredSlotFlattenNodes(child));
|
3152
3150
|
}
|
@@ -3329,7 +3327,7 @@ function getNonPatchedFilteredArrayOfNodes(context, unfilteredNodes) {
|
|
3329
3327
|
}
|
3330
3328
|
|
3331
3329
|
/*
|
3332
|
-
* Copyright (c)
|
3330
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
3333
3331
|
* All rights reserved.
|
3334
3332
|
* SPDX-License-Identifier: MIT
|
3335
3333
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -3640,7 +3638,7 @@ if (hasOwnProperty.call(HTMLElement.prototype, 'getElementsByClassName')) {
|
|
3640
3638
|
}
|
3641
3639
|
|
3642
3640
|
/*
|
3643
|
-
* Copyright (c)
|
3641
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
3644
3642
|
* All rights reserved.
|
3645
3643
|
* SPDX-License-Identifier: MIT
|
3646
3644
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
@@ -4378,6 +4376,6 @@ defineProperty(Element.prototype, '$domManual$', {
|
|
4378
4376
|
},
|
4379
4377
|
configurable: true,
|
4380
4378
|
});
|
4381
|
-
/** version: 6.5.
|
4379
|
+
/** version: 6.5.2 */
|
4382
4380
|
}
|
4383
4381
|
//# sourceMappingURL=index.cjs.js.map
|