@lwc/synthetic-shadow 6.5.0 → 6.5.2

Sign up to get free protection for your applications and to get access to all the features.
package/LICENSE.md ADDED
@@ -0,0 +1,88 @@
1
+ # LWC core license
2
+
3
+ MIT LICENSE
4
+
5
+ Copyright (c) 2024, Salesforce, Inc.
6
+ All rights reserved.
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13
+
14
+ # Licenses of bundled dependencies
15
+
16
+ ## @parse5/tools
17
+
18
+ MIT license defined in package.json in v0.4.0.
19
+
20
+ ## entities
21
+
22
+ Copyright (c) Felix Böhm
23
+ All rights reserved.
24
+
25
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
26
+
27
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
28
+
29
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
30
+
31
+ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
32
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+
34
+ ## estree-walker
35
+
36
+ Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors)
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43
+
44
+ ## observable-membrane
45
+
46
+ MIT License
47
+
48
+ Copyright (c) 2017 Salesforce
49
+
50
+ Permission is hereby granted, free of charge, to any person obtaining a copy
51
+ of this software and associated documentation files (the "Software"), to deal
52
+ in the Software without restriction, including without limitation the rights
53
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54
+ copies of the Software, and to permit persons to whom the Software is
55
+ furnished to do so, subject to the following conditions:
56
+
57
+ The above copyright notice and this permission notice shall be included in all
58
+ copies or substantial portions of the Software.
59
+
60
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
66
+ SOFTWARE.
67
+
68
+ ## parse5
69
+
70
+ Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
71
+
72
+ Permission is hereby granted, free of charge, to any person obtaining a copy
73
+ of this software and associated documentation files (the "Software"), to deal
74
+ in the Software without restriction, including without limitation the rights
75
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
76
+ copies of the Software, and to permit persons to whom the Software is
77
+ furnished to do so, subject to the following conditions:
78
+
79
+ The above copyright notice and this permission notice shall be included in
80
+ all copies or substantial portions of the Software.
81
+
82
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
83
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
84
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
85
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
86
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
87
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
88
+ THE SOFTWARE.
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.0 */
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.0 */
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) 2018, salesforce.com, inc.
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
- // Typescript is inferring the wrong function type for this particular
656
- // overloaded method: https://github.com/Microsoft/TypeScript/issues/27972
657
- // @ts-expect-error type-mismatch
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) 2018, salesforce.com, inc.
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) 2018, salesforce.com, inc.
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) 2018, salesforce.com, inc.
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) 2018, salesforce.com, inc.
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) 2018, salesforce.com, inc.
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
- // Typescript is inferring the wrong function type for this particular
3147
- // overloaded method: https://github.com/Microsoft/TypeScript/issues/27972
3148
- // @ts-expect-error type-mismatch
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) 2018, salesforce.com, inc.
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) 2018, salesforce.com, inc.
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.0 */
4379
+ /** version: 6.5.2 */
4382
4380
  }
4383
4381
  //# sourceMappingURL=index.cjs.js.map