lwc 2.18.0 → 2.20.0

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.
Files changed (37) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +140 -140
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +140 -140
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +119 -119
  5. package/dist/engine-dom/iife/es5/engine-dom.js +152 -153
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +130 -132
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +140 -140
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +119 -119
  11. package/dist/engine-dom/umd/es5/engine-dom.js +152 -153
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +130 -132
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +148 -160
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +148 -160
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +20 -20
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +20 -20
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
  23. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +20 -20
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
  25. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +20 -20
  26. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  28. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service.js +4 -4
  30. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  31. package/dist/wire-service/iife/es5/wire-service_debug.js +4 -4
  32. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  33. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  34. package/dist/wire-service/umd/es5/wire-service.js +4 -4
  35. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  36. package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
  37. package/package.json +7 -7
@@ -148,7 +148,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
148
148
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
149
149
  // we can't use typeof since it will fail when transpiling.
150
150
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
151
- /** version: 2.18.0 */
151
+ /** version: 2.20.0 */
152
152
 
153
153
  /*
154
154
  * Copyright (c) 2018, salesforce.com, inc.
@@ -157,7 +157,7 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
157
157
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
158
158
  */
159
159
  // TODO [#2472]: Remove this workaround when appropriate.
160
- // eslint-disable-next-line lwc-internal/no-global-node
160
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
161
161
  const _Node = Node;
162
162
  const nodePrototype = _Node.prototype;
163
163
  const { DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, } = _Node;
@@ -1124,7 +1124,7 @@ if (!_globalThis.lwcRuntimeFlags) {
1124
1124
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1125
1125
  }
1126
1126
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1127
- /** version: 2.18.0 */
1127
+ /** version: 2.20.0 */
1128
1128
 
1129
1129
  /*
1130
1130
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1689,7 +1689,7 @@ function getWrappedShadowRootListener(listener) {
1689
1689
  listener.call(currentTarget, event);
1690
1690
  }
1691
1691
  };
1692
- shadowRootWrappedListener.placement = 1 /* SHADOW_ROOT_LISTENER */;
1692
+ shadowRootWrappedListener.placement = 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */;
1693
1693
  shadowRootEventListenerMap.set(listener, shadowRootWrappedListener);
1694
1694
  }
1695
1695
  return shadowRootWrappedListener;
@@ -1709,7 +1709,7 @@ function getWrappedCustomElementListener(listener) {
1709
1709
  listener.call(currentTarget, event);
1710
1710
  }
1711
1711
  };
1712
- customElementWrappedListener.placement = 0 /* CUSTOM_ELEMENT_LISTENER */;
1712
+ customElementWrappedListener.placement = 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */;
1713
1713
  customElementEventListenerMap.set(listener, customElementWrappedListener);
1714
1714
  }
1715
1715
  return customElementWrappedListener;
@@ -1753,14 +1753,14 @@ function domListener(evt) {
1753
1753
  }
1754
1754
  });
1755
1755
  }
1756
- eventToContextMap.set(evt, 1 /* SHADOW_ROOT_LISTENER */);
1757
- invokeListenersByPlacement(1 /* SHADOW_ROOT_LISTENER */);
1756
+ eventToContextMap.set(evt, 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */);
1757
+ invokeListenersByPlacement(1 /* EventListenerContext.SHADOW_ROOT_LISTENER */);
1758
1758
  if (isFalse(immediatePropagationStopped) && isFalse(propagationStopped)) {
1759
1759
  // doing the second iteration only if the first one didn't interrupt the event propagation
1760
- eventToContextMap.set(evt, 0 /* CUSTOM_ELEMENT_LISTENER */);
1761
- invokeListenersByPlacement(0 /* CUSTOM_ELEMENT_LISTENER */);
1760
+ eventToContextMap.set(evt, 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */);
1761
+ invokeListenersByPlacement(0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */);
1762
1762
  }
1763
- eventToContextMap.set(evt, 2 /* UNKNOWN_LISTENER */);
1763
+ eventToContextMap.set(evt, 2 /* EventListenerContext.UNKNOWN_LISTENER */);
1764
1764
  }
1765
1765
  function attachDOMListener(elm, type, wrappedListener) {
1766
1766
  const listenerMap = getEventMap(elm);
@@ -3363,7 +3363,7 @@ function patchedCurrentTargetGetter() {
3363
3363
  if (isNull(currentTarget)) {
3364
3364
  return null;
3365
3365
  }
3366
- if (eventToContextMap.get(this) === 1 /* SHADOW_ROOT_LISTENER */) {
3366
+ if (eventToContextMap.get(this) === 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */) {
3367
3367
  return getShadowRoot(currentTarget);
3368
3368
  }
3369
3369
  return currentTarget;
@@ -3399,7 +3399,7 @@ function patchedTargetGetter() {
3399
3399
  // Address the possibility that `currentTarget` is a shadow root
3400
3400
  if (isSyntheticShadowHost(originalCurrentTarget)) {
3401
3401
  const context = eventToContextMap.get(this);
3402
- if (context === 1 /* SHADOW_ROOT_LISTENER */) {
3402
+ if (context === 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */) {
3403
3403
  actualCurrentTarget = getShadowRoot(originalCurrentTarget);
3404
3404
  }
3405
3405
  }
@@ -4011,7 +4011,7 @@ function getFilteredArrayOfNodes(context, unfilteredNodes, shadowDomSemantic) {
4011
4011
  // context is handled by lwc, using getNodeNearestOwnerKey to include manually inserted elements in the same shadow.
4012
4012
  filtered = ArrayFilter.call(unfilteredNodes, elm => getNodeNearestOwnerKey(elm) === ownerKey);
4013
4013
  } else if (shadowDomSemantic === 1
4014
- /* Enabled */
4014
+ /* ShadowDomSemantic.Enabled */
4015
4015
  ) {
4016
4016
  // context is inside a shadow, we dont know which one.
4017
4017
  const contextNearestOwnerKey = getNodeNearestOwnerKey(context);
@@ -4022,7 +4022,7 @@ function getFilteredArrayOfNodes(context, unfilteredNodes, shadowDomSemantic) {
4022
4022
  }
4023
4023
  } else {
4024
4024
  if (context instanceof HTMLBodyElement || shadowDomSemantic === 1
4025
- /* Enabled */
4025
+ /* ShadowDomSemantic.Enabled */
4026
4026
  ) {
4027
4027
  // `context` is document.body or element belonging to the document with the patch enabled
4028
4028
  filtered = ArrayFilter.call(unfilteredNodes, // TODO [#1222]: remove global bypass
@@ -4058,13 +4058,13 @@ defineProperties(Element.prototype, {
4058
4058
 
4059
4059
  if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4060
4060
  const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
4061
- /* Disabled */
4061
+ /* ShadowDomSemantic.Disabled */
4062
4062
  );
4063
4063
  return createStaticNodeList(filteredResults);
4064
4064
  }
4065
4065
 
4066
4066
  return createStaticNodeList(getFilteredArrayOfNodes(this, nodeList, 1
4067
- /* Enabled */
4067
+ /* ShadowDomSemantic.Enabled */
4068
4068
  ));
4069
4069
  },
4070
4070
 
@@ -4085,7 +4085,7 @@ if (process.env.NODE_ENV !== 'test') {
4085
4085
  }
4086
4086
 
4087
4087
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
4088
- /* Enabled */
4088
+ /* ShadowDomSemantic.Enabled */
4089
4089
  );
4090
4090
  return createStaticHTMLCollection(filteredResults);
4091
4091
  },
@@ -4103,7 +4103,7 @@ if (process.env.NODE_ENV !== 'test') {
4103
4103
  }
4104
4104
 
4105
4105
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
4106
- /* Enabled */
4106
+ /* ShadowDomSemantic.Enabled */
4107
4107
  );
4108
4108
  return createStaticHTMLCollection(filteredResults);
4109
4109
  },
@@ -4121,7 +4121,7 @@ if (process.env.NODE_ENV !== 'test') {
4121
4121
  }
4122
4122
 
4123
4123
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
4124
- /* Enabled */
4124
+ /* ShadowDomSemantic.Enabled */
4125
4125
  );
4126
4126
  return createStaticHTMLCollection(filteredResults);
4127
4127
  },
@@ -5111,4 +5111,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
5111
5111
  }));
5112
5112
  });
5113
5113
  }
5114
- /** version: 2.18.0 */
5114
+ /** version: 2.20.0 */
@@ -151,7 +151,7 @@
151
151
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
152
152
  // we can't use typeof since it will fail when transpiling.
153
153
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
154
- /** version: 2.18.0 */
154
+ /** version: 2.20.0 */
155
155
 
156
156
  /*
157
157
  * Copyright (c) 2018, salesforce.com, inc.
@@ -160,7 +160,7 @@
160
160
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
161
161
  */
162
162
  // TODO [#2472]: Remove this workaround when appropriate.
163
- // eslint-disable-next-line lwc-internal/no-global-node
163
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
164
164
  const _Node = Node;
165
165
  const nodePrototype = _Node.prototype;
166
166
  const { DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, } = _Node;
@@ -1127,7 +1127,7 @@
1127
1127
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1128
1128
  }
1129
1129
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1130
- /** version: 2.18.0 */
1130
+ /** version: 2.20.0 */
1131
1131
 
1132
1132
  /*
1133
1133
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1692,7 +1692,7 @@
1692
1692
  listener.call(currentTarget, event);
1693
1693
  }
1694
1694
  };
1695
- shadowRootWrappedListener.placement = 1 /* SHADOW_ROOT_LISTENER */;
1695
+ shadowRootWrappedListener.placement = 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */;
1696
1696
  shadowRootEventListenerMap.set(listener, shadowRootWrappedListener);
1697
1697
  }
1698
1698
  return shadowRootWrappedListener;
@@ -1712,7 +1712,7 @@
1712
1712
  listener.call(currentTarget, event);
1713
1713
  }
1714
1714
  };
1715
- customElementWrappedListener.placement = 0 /* CUSTOM_ELEMENT_LISTENER */;
1715
+ customElementWrappedListener.placement = 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */;
1716
1716
  customElementEventListenerMap.set(listener, customElementWrappedListener);
1717
1717
  }
1718
1718
  return customElementWrappedListener;
@@ -1756,14 +1756,14 @@
1756
1756
  }
1757
1757
  });
1758
1758
  }
1759
- eventToContextMap.set(evt, 1 /* SHADOW_ROOT_LISTENER */);
1760
- invokeListenersByPlacement(1 /* SHADOW_ROOT_LISTENER */);
1759
+ eventToContextMap.set(evt, 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */);
1760
+ invokeListenersByPlacement(1 /* EventListenerContext.SHADOW_ROOT_LISTENER */);
1761
1761
  if (isFalse(immediatePropagationStopped) && isFalse(propagationStopped)) {
1762
1762
  // doing the second iteration only if the first one didn't interrupt the event propagation
1763
- eventToContextMap.set(evt, 0 /* CUSTOM_ELEMENT_LISTENER */);
1764
- invokeListenersByPlacement(0 /* CUSTOM_ELEMENT_LISTENER */);
1763
+ eventToContextMap.set(evt, 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */);
1764
+ invokeListenersByPlacement(0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */);
1765
1765
  }
1766
- eventToContextMap.set(evt, 2 /* UNKNOWN_LISTENER */);
1766
+ eventToContextMap.set(evt, 2 /* EventListenerContext.UNKNOWN_LISTENER */);
1767
1767
  }
1768
1768
  function attachDOMListener(elm, type, wrappedListener) {
1769
1769
  const listenerMap = getEventMap(elm);
@@ -3366,7 +3366,7 @@
3366
3366
  if (isNull(currentTarget)) {
3367
3367
  return null;
3368
3368
  }
3369
- if (eventToContextMap.get(this) === 1 /* SHADOW_ROOT_LISTENER */) {
3369
+ if (eventToContextMap.get(this) === 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */) {
3370
3370
  return getShadowRoot(currentTarget);
3371
3371
  }
3372
3372
  return currentTarget;
@@ -3402,7 +3402,7 @@
3402
3402
  // Address the possibility that `currentTarget` is a shadow root
3403
3403
  if (isSyntheticShadowHost(originalCurrentTarget)) {
3404
3404
  const context = eventToContextMap.get(this);
3405
- if (context === 1 /* SHADOW_ROOT_LISTENER */) {
3405
+ if (context === 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */) {
3406
3406
  actualCurrentTarget = getShadowRoot(originalCurrentTarget);
3407
3407
  }
3408
3408
  }
@@ -4014,7 +4014,7 @@
4014
4014
  // context is handled by lwc, using getNodeNearestOwnerKey to include manually inserted elements in the same shadow.
4015
4015
  filtered = ArrayFilter.call(unfilteredNodes, elm => getNodeNearestOwnerKey(elm) === ownerKey);
4016
4016
  } else if (shadowDomSemantic === 1
4017
- /* Enabled */
4017
+ /* ShadowDomSemantic.Enabled */
4018
4018
  ) {
4019
4019
  // context is inside a shadow, we dont know which one.
4020
4020
  const contextNearestOwnerKey = getNodeNearestOwnerKey(context);
@@ -4025,7 +4025,7 @@
4025
4025
  }
4026
4026
  } else {
4027
4027
  if (context instanceof HTMLBodyElement || shadowDomSemantic === 1
4028
- /* Enabled */
4028
+ /* ShadowDomSemantic.Enabled */
4029
4029
  ) {
4030
4030
  // `context` is document.body or element belonging to the document with the patch enabled
4031
4031
  filtered = ArrayFilter.call(unfilteredNodes, // TODO [#1222]: remove global bypass
@@ -4061,13 +4061,13 @@
4061
4061
 
4062
4062
  if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4063
4063
  const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
4064
- /* Disabled */
4064
+ /* ShadowDomSemantic.Disabled */
4065
4065
  );
4066
4066
  return createStaticNodeList(filteredResults);
4067
4067
  }
4068
4068
 
4069
4069
  return createStaticNodeList(getFilteredArrayOfNodes(this, nodeList, 1
4070
- /* Enabled */
4070
+ /* ShadowDomSemantic.Enabled */
4071
4071
  ));
4072
4072
  },
4073
4073
 
@@ -4088,7 +4088,7 @@
4088
4088
  }
4089
4089
 
4090
4090
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
4091
- /* Enabled */
4091
+ /* ShadowDomSemantic.Enabled */
4092
4092
  );
4093
4093
  return createStaticHTMLCollection(filteredResults);
4094
4094
  },
@@ -4106,7 +4106,7 @@
4106
4106
  }
4107
4107
 
4108
4108
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
4109
- /* Enabled */
4109
+ /* ShadowDomSemantic.Enabled */
4110
4110
  );
4111
4111
  return createStaticHTMLCollection(filteredResults);
4112
4112
  },
@@ -4124,7 +4124,7 @@
4124
4124
  }
4125
4125
 
4126
4126
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
4127
- /* Enabled */
4127
+ /* ShadowDomSemantic.Enabled */
4128
4128
  );
4129
4129
  return createStaticHTMLCollection(filteredResults);
4130
4130
  },
@@ -5114,6 +5114,6 @@
5114
5114
  }));
5115
5115
  });
5116
5116
  }
5117
- /** version: 2.18.0 */
5117
+ /** version: 2.20.0 */
5118
5118
 
5119
5119
  })();
@@ -87,7 +87,7 @@
87
87
  const KEY__SHADOW_TOKEN = '$shadowToken$';
88
88
  const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
89
89
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
90
- /** version: 2.18.0 */
90
+ /** version: 2.20.0 */
91
91
 
92
92
  /*
93
93
  * Copyright (c) 2018, salesforce.com, inc.
@@ -96,7 +96,7 @@
96
96
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
97
97
  */
98
98
  // TODO [#2472]: Remove this workaround when appropriate.
99
- // eslint-disable-next-line lwc-internal/no-global-node
99
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
100
100
  const _Node = Node;
101
101
  const nodePrototype = _Node.prototype;
102
102
  const { DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, } = _Node;
@@ -1049,7 +1049,7 @@
1049
1049
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1050
1050
  }
1051
1051
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1052
- /** version: 2.18.0 */
1052
+ /** version: 2.20.0 */
1053
1053
 
1054
1054
  /*
1055
1055
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1572,7 +1572,7 @@
1572
1572
  listener.call(currentTarget, event);
1573
1573
  }
1574
1574
  };
1575
- shadowRootWrappedListener.placement = 1 /* SHADOW_ROOT_LISTENER */;
1575
+ shadowRootWrappedListener.placement = 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */;
1576
1576
  shadowRootEventListenerMap.set(listener, shadowRootWrappedListener);
1577
1577
  }
1578
1578
  return shadowRootWrappedListener;
@@ -1592,7 +1592,7 @@
1592
1592
  listener.call(currentTarget, event);
1593
1593
  }
1594
1594
  };
1595
- customElementWrappedListener.placement = 0 /* CUSTOM_ELEMENT_LISTENER */;
1595
+ customElementWrappedListener.placement = 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */;
1596
1596
  customElementEventListenerMap.set(listener, customElementWrappedListener);
1597
1597
  }
1598
1598
  return customElementWrappedListener;
@@ -1636,14 +1636,14 @@
1636
1636
  }
1637
1637
  });
1638
1638
  }
1639
- eventToContextMap.set(evt, 1 /* SHADOW_ROOT_LISTENER */);
1640
- invokeListenersByPlacement(1 /* SHADOW_ROOT_LISTENER */);
1639
+ eventToContextMap.set(evt, 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */);
1640
+ invokeListenersByPlacement(1 /* EventListenerContext.SHADOW_ROOT_LISTENER */);
1641
1641
  if (isFalse(immediatePropagationStopped) && isFalse(propagationStopped)) {
1642
1642
  // doing the second iteration only if the first one didn't interrupt the event propagation
1643
- eventToContextMap.set(evt, 0 /* CUSTOM_ELEMENT_LISTENER */);
1644
- invokeListenersByPlacement(0 /* CUSTOM_ELEMENT_LISTENER */);
1643
+ eventToContextMap.set(evt, 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */);
1644
+ invokeListenersByPlacement(0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */);
1645
1645
  }
1646
- eventToContextMap.set(evt, 2 /* UNKNOWN_LISTENER */);
1646
+ eventToContextMap.set(evt, 2 /* EventListenerContext.UNKNOWN_LISTENER */);
1647
1647
  }
1648
1648
  function attachDOMListener(elm, type, wrappedListener) {
1649
1649
  const listenerMap = getEventMap(elm);
@@ -3200,7 +3200,7 @@
3200
3200
  if (isNull(currentTarget)) {
3201
3201
  return null;
3202
3202
  }
3203
- if (eventToContextMap.get(this) === 1 /* SHADOW_ROOT_LISTENER */) {
3203
+ if (eventToContextMap.get(this) === 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */) {
3204
3204
  return getShadowRoot(currentTarget);
3205
3205
  }
3206
3206
  return currentTarget;
@@ -3236,7 +3236,7 @@
3236
3236
  // Address the possibility that `currentTarget` is a shadow root
3237
3237
  if (isSyntheticShadowHost(originalCurrentTarget)) {
3238
3238
  const context = eventToContextMap.get(this);
3239
- if (context === 1 /* SHADOW_ROOT_LISTENER */) {
3239
+ if (context === 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */) {
3240
3240
  actualCurrentTarget = getShadowRoot(originalCurrentTarget);
3241
3241
  }
3242
3242
  }
@@ -3845,7 +3845,7 @@
3845
3845
  // context is handled by lwc, using getNodeNearestOwnerKey to include manually inserted elements in the same shadow.
3846
3846
  filtered = ArrayFilter.call(unfilteredNodes, elm => getNodeNearestOwnerKey(elm) === ownerKey);
3847
3847
  } else if (shadowDomSemantic === 1
3848
- /* Enabled */
3848
+ /* ShadowDomSemantic.Enabled */
3849
3849
  ) {
3850
3850
  // context is inside a shadow, we dont know which one.
3851
3851
  const contextNearestOwnerKey = getNodeNearestOwnerKey(context);
@@ -3856,7 +3856,7 @@
3856
3856
  }
3857
3857
  } else {
3858
3858
  if (context instanceof HTMLBodyElement || shadowDomSemantic === 1
3859
- /* Enabled */
3859
+ /* ShadowDomSemantic.Enabled */
3860
3860
  ) {
3861
3861
  // `context` is document.body or element belonging to the document with the patch enabled
3862
3862
  filtered = ArrayFilter.call(unfilteredNodes, // TODO [#1222]: remove global bypass
@@ -3892,13 +3892,13 @@
3892
3892
 
3893
3893
  if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
3894
3894
  const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
3895
- /* Disabled */
3895
+ /* ShadowDomSemantic.Disabled */
3896
3896
  );
3897
3897
  return createStaticNodeList(filteredResults);
3898
3898
  }
3899
3899
 
3900
3900
  return createStaticNodeList(getFilteredArrayOfNodes(this, nodeList, 1
3901
- /* Enabled */
3901
+ /* ShadowDomSemantic.Enabled */
3902
3902
  ));
3903
3903
  },
3904
3904
 
@@ -3919,7 +3919,7 @@
3919
3919
  }
3920
3920
 
3921
3921
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
3922
- /* Enabled */
3922
+ /* ShadowDomSemantic.Enabled */
3923
3923
  );
3924
3924
  return createStaticHTMLCollection(filteredResults);
3925
3925
  },
@@ -3937,7 +3937,7 @@
3937
3937
  }
3938
3938
 
3939
3939
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
3940
- /* Enabled */
3940
+ /* ShadowDomSemantic.Enabled */
3941
3941
  );
3942
3942
  return createStaticHTMLCollection(filteredResults);
3943
3943
  },
@@ -3955,7 +3955,7 @@
3955
3955
  }
3956
3956
 
3957
3957
  const filteredResults = getFilteredArrayOfNodes(this, elements, 1
3958
- /* Enabled */
3958
+ /* ShadowDomSemantic.Enabled */
3959
3959
  );
3960
3960
  return createStaticHTMLCollection(filteredResults);
3961
3961
  },
@@ -4911,6 +4911,6 @@
4911
4911
  },
4912
4912
  configurable: true,
4913
4913
  });
4914
- /** version: 2.18.0 */
4914
+ /** version: 2.20.0 */
4915
4915
 
4916
4916
  })();
@@ -199,7 +199,7 @@
199
199
  var hasNativeSymbolSupport = /*@__PURE__*/function () {
200
200
  return Symbol('x').toString() === 'Symbol(x)';
201
201
  }();
202
- /** version: 2.18.0 */
202
+ /** version: 2.20.0 */
203
203
 
204
204
  /*
205
205
  * Copyright (c) 2018, salesforce.com, inc.
@@ -208,7 +208,7 @@
208
208
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
209
209
  */
210
210
  // TODO [#2472]: Remove this workaround when appropriate.
211
- // eslint-disable-next-line lwc-internal/no-global-node
211
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
212
212
 
213
213
 
214
214
  var _Node = Node;
@@ -1300,7 +1300,7 @@
1300
1300
  }
1301
1301
 
1302
1302
  var runtimeFlags = _globalThis.lwcRuntimeFlags;
1303
- /** version: 2.18.0 */
1303
+ /** version: 2.20.0 */
1304
1304
 
1305
1305
  /*
1306
1306
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1880,7 +1880,7 @@
1880
1880
  };
1881
1881
 
1882
1882
  shadowRootWrappedListener.placement = 1
1883
- /* SHADOW_ROOT_LISTENER */
1883
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
1884
1884
  ;
1885
1885
  shadowRootEventListenerMap.set(listener, shadowRootWrappedListener);
1886
1886
  }
@@ -1909,7 +1909,7 @@
1909
1909
  };
1910
1910
 
1911
1911
  customElementWrappedListener.placement = 0
1912
- /* CUSTOM_ELEMENT_LISTENER */
1912
+ /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */
1913
1913
  ;
1914
1914
  customElementEventListenerMap.set(listener, customElementWrappedListener);
1915
1915
  }
@@ -1962,24 +1962,24 @@
1962
1962
  }
1963
1963
 
1964
1964
  eventToContextMap.set(evt, 1
1965
- /* SHADOW_ROOT_LISTENER */
1965
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
1966
1966
  );
1967
1967
  invokeListenersByPlacement(1
1968
- /* SHADOW_ROOT_LISTENER */
1968
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
1969
1969
  );
1970
1970
 
1971
1971
  if (isFalse(immediatePropagationStopped) && isFalse(propagationStopped)) {
1972
1972
  // doing the second iteration only if the first one didn't interrupt the event propagation
1973
1973
  eventToContextMap.set(evt, 0
1974
- /* CUSTOM_ELEMENT_LISTENER */
1974
+ /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */
1975
1975
  );
1976
1976
  invokeListenersByPlacement(0
1977
- /* CUSTOM_ELEMENT_LISTENER */
1977
+ /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */
1978
1978
  );
1979
1979
  }
1980
1980
 
1981
1981
  eventToContextMap.set(evt, 2
1982
- /* UNKNOWN_LISTENER */
1982
+ /* EventListenerContext.UNKNOWN_LISTENER */
1983
1983
  );
1984
1984
  }
1985
1985
 
@@ -3746,7 +3746,7 @@
3746
3746
  }
3747
3747
 
3748
3748
  if (eventToContextMap.get(this) === 1
3749
- /* SHADOW_ROOT_LISTENER */
3749
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
3750
3750
  ) {
3751
3751
  return getShadowRoot(currentTarget);
3752
3752
  }
@@ -3791,7 +3791,7 @@
3791
3791
  var context = eventToContextMap.get(this);
3792
3792
 
3793
3793
  if (context === 1
3794
- /* SHADOW_ROOT_LISTENER */
3794
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
3795
3795
  ) {
3796
3796
  actualCurrentTarget = getShadowRoot(originalCurrentTarget);
3797
3797
  }
@@ -4434,7 +4434,7 @@
4434
4434
  return getNodeNearestOwnerKey(elm) === ownerKey;
4435
4435
  });
4436
4436
  } else if (shadowDomSemantic === 1
4437
- /* Enabled */
4437
+ /* ShadowDomSemantic.Enabled */
4438
4438
  ) {
4439
4439
  // context is inside a shadow, we dont know which one.
4440
4440
  var contextNearestOwnerKey = getNodeNearestOwnerKey(context);
@@ -4447,7 +4447,7 @@
4447
4447
  }
4448
4448
  } else {
4449
4449
  if (context instanceof HTMLBodyElement || shadowDomSemantic === 1
4450
- /* Enabled */
4450
+ /* ShadowDomSemantic.Enabled */
4451
4451
  ) {
4452
4452
  // `context` is document.body or element belonging to the document with the patch enabled
4453
4453
  filtered = ArrayFilter.call(unfilteredNodes, // TODO [#1222]: remove global bypass
@@ -4485,13 +4485,13 @@
4485
4485
 
4486
4486
  if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4487
4487
  var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
4488
- /* Disabled */
4488
+ /* ShadowDomSemantic.Disabled */
4489
4489
  );
4490
4490
  return createStaticNodeList(filteredResults);
4491
4491
  }
4492
4492
 
4493
4493
  return createStaticNodeList(getFilteredArrayOfNodes(this, nodeList, 1
4494
- /* Enabled */
4494
+ /* ShadowDomSemantic.Enabled */
4495
4495
  ));
4496
4496
  },
4497
4497
  writable: true,
@@ -4511,7 +4511,7 @@
4511
4511
  }
4512
4512
 
4513
4513
  var filteredResults = getFilteredArrayOfNodes(this, elements, 1
4514
- /* Enabled */
4514
+ /* ShadowDomSemantic.Enabled */
4515
4515
  );
4516
4516
  return createStaticHTMLCollection(filteredResults);
4517
4517
  },
@@ -4528,7 +4528,7 @@
4528
4528
  }
4529
4529
 
4530
4530
  var filteredResults = getFilteredArrayOfNodes(this, elements, 1
4531
- /* Enabled */
4531
+ /* ShadowDomSemantic.Enabled */
4532
4532
  );
4533
4533
  return createStaticHTMLCollection(filteredResults);
4534
4534
  },
@@ -4545,7 +4545,7 @@
4545
4545
  }
4546
4546
 
4547
4547
  var filteredResults = getFilteredArrayOfNodes(this, elements, 1
4548
- /* Enabled */
4548
+ /* ShadowDomSemantic.Enabled */
4549
4549
  );
4550
4550
  return createStaticHTMLCollection(filteredResults);
4551
4551
  },
@@ -5661,6 +5661,6 @@
5661
5661
  }));
5662
5662
  });
5663
5663
  }
5664
- /** version: 2.18.0 */
5664
+ /** version: 2.20.0 */
5665
5665
 
5666
5666
  })();