lwc 2.23.0 → 2.23.1

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 (34) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +29 -24
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +29 -24
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +18 -13
  5. package/dist/engine-dom/iife/es5/engine-dom.js +30 -24
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +19 -13
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +29 -24
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +18 -13
  11. package/dist/engine-dom/umd/es5/engine-dom.js +30 -24
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +19 -13
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +19 -19
  15. package/dist/engine-server/esm/es2017/engine-server.js +19 -19
  16. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
  17. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +19 -19
  19. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +19 -19
  21. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +19 -19
  23. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +19 -19
  25. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  26. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  28. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  30. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  32. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  33. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  34. package/package.json +7 -7
@@ -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.23.0 */
154
+ /** version: 2.23.1 */
155
155
 
156
156
  /*
157
157
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1126,8 +1126,8 @@
1126
1126
  if (!_globalThis.lwcRuntimeFlags) {
1127
1127
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1128
1128
  }
1129
- const runtimeFlags = _globalThis.lwcRuntimeFlags;
1130
- /** version: 2.23.0 */
1129
+ const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
1130
+ /** version: 2.23.1 */
1131
1131
 
1132
1132
  /*
1133
1133
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1378,7 +1378,7 @@
1378
1378
  },
1379
1379
  textContent: {
1380
1380
  get() {
1381
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1381
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1382
1382
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1383
1383
  return textContentGetterPatched.call(this);
1384
1384
  }
@@ -1485,7 +1485,7 @@
1485
1485
  return true;
1486
1486
  }
1487
1487
 
1488
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1488
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1489
1489
  if (otherNode == null) {
1490
1490
  return false;
1491
1491
  }
@@ -1511,7 +1511,7 @@
1511
1511
  },
1512
1512
  cloneNode: {
1513
1513
  value(deep) {
1514
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1514
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1515
1515
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1516
1516
  return cloneNodePatched.call(this, deep);
1517
1517
  }
@@ -3811,7 +3811,7 @@
3811
3811
  defineProperties(Element.prototype, {
3812
3812
  innerHTML: {
3813
3813
  get() {
3814
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
3814
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
3815
3815
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
3816
3816
  return innerHTMLGetterPatched.call(this);
3817
3817
  }
@@ -3836,7 +3836,7 @@
3836
3836
  },
3837
3837
  outerHTML: {
3838
3838
  get() {
3839
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
3839
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
3840
3840
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
3841
3841
  return outerHTMLGetterPatched.call(this);
3842
3842
  }
@@ -3964,7 +3964,7 @@
3964
3964
  const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
3965
3965
  return isUndefined(elm) ? null : elm;
3966
3966
  } else {
3967
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
3967
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
3968
3968
  // `this` is a manually inserted element inside a shadowRoot, return the first element.
3969
3969
  return nodeList.length === 0 ? null : nodeList[0];
3970
3970
  } // Element is inside a shadow but we dont know which one. Use the
@@ -3976,7 +3976,7 @@
3976
3976
  return isUndefined(elm) ? null : elm;
3977
3977
  }
3978
3978
  } else {
3979
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
3979
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
3980
3980
  if (!(this instanceof HTMLBodyElement)) {
3981
3981
  const elm = nodeList[0];
3982
3982
  return isUndefined(elm) ? null : elm;
@@ -4059,7 +4059,7 @@
4059
4059
  value() {
4060
4060
  const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
4061
4061
 
4062
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4062
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
4063
4063
  const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
4064
4064
  /* ShadowDomSemantic.Disabled */
4065
4065
  );
@@ -4083,7 +4083,7 @@
4083
4083
  value() {
4084
4084
  const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
4085
4085
 
4086
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4086
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4087
4087
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4088
4088
  }
4089
4089
 
@@ -4101,7 +4101,7 @@
4101
4101
  value() {
4102
4102
  const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
4103
4103
 
4104
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4104
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4105
4105
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4106
4106
  }
4107
4107
 
@@ -4119,7 +4119,7 @@
4119
4119
  value() {
4120
4120
  const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
4121
4121
 
4122
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4122
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4123
4123
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4124
4124
  }
4125
4125
 
@@ -4851,11 +4851,11 @@
4851
4851
  if (innerTextGetter !== null && innerTextSetter !== null) {
4852
4852
  defineProperty(HTMLElement.prototype, 'innerText', {
4853
4853
  get() {
4854
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4854
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4855
4855
  return innerTextGetter.call(this);
4856
4856
  }
4857
4857
 
4858
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4858
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4859
4859
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4860
4860
  return getInnerText(this);
4861
4861
  }
@@ -4887,11 +4887,11 @@
4887
4887
  // As a setter, it removes the current node and replaces it with the given text.
4888
4888
  defineProperty(HTMLElement.prototype, 'outerText', {
4889
4889
  get() {
4890
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4890
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4891
4891
  return outerTextGetter.call(this);
4892
4892
  }
4893
4893
 
4894
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4894
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4895
4895
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4896
4896
  return getInnerText(this);
4897
4897
  }
@@ -5105,7 +5105,7 @@
5105
5105
  window.addEventListener('test-dummy-flag', () => {
5106
5106
  let hasFlag = false;
5107
5107
 
5108
- if (runtimeFlags.DUMMY_TEST_FLAG) {
5108
+ if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
5109
5109
  hasFlag = true;
5110
5110
  }
5111
5111
 
@@ -5117,6 +5117,6 @@
5117
5117
  }));
5118
5118
  });
5119
5119
  }
5120
- /** version: 2.23.0 */
5120
+ /** version: 2.23.1 */
5121
5121
 
5122
5122
  })();
@@ -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.23.0 */
90
+ /** version: 2.23.1 */
91
91
 
92
92
  /*
93
93
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1048,8 +1048,8 @@
1048
1048
  if (!_globalThis.lwcRuntimeFlags) {
1049
1049
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1050
1050
  }
1051
- const runtimeFlags = _globalThis.lwcRuntimeFlags;
1052
- /** version: 2.23.0 */
1051
+ const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
1052
+ /** version: 2.23.1 */
1053
1053
 
1054
1054
  /*
1055
1055
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1292,7 +1292,7 @@
1292
1292
  },
1293
1293
  textContent: {
1294
1294
  get() {
1295
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1295
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1296
1296
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1297
1297
  return textContentGetterPatched.call(this);
1298
1298
  }
@@ -1399,7 +1399,7 @@
1399
1399
  return true;
1400
1400
  }
1401
1401
 
1402
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1402
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1403
1403
  if (otherNode == null) {
1404
1404
  return false;
1405
1405
  }
@@ -1425,7 +1425,7 @@
1425
1425
  },
1426
1426
  cloneNode: {
1427
1427
  value(deep) {
1428
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1428
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1429
1429
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1430
1430
  return cloneNodePatched.call(this, deep);
1431
1431
  }
@@ -3642,7 +3642,7 @@
3642
3642
  defineProperties(Element.prototype, {
3643
3643
  innerHTML: {
3644
3644
  get() {
3645
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
3645
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
3646
3646
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
3647
3647
  return innerHTMLGetterPatched.call(this);
3648
3648
  }
@@ -3667,7 +3667,7 @@
3667
3667
  },
3668
3668
  outerHTML: {
3669
3669
  get() {
3670
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
3670
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
3671
3671
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
3672
3672
  return outerHTMLGetterPatched.call(this);
3673
3673
  }
@@ -3795,7 +3795,7 @@
3795
3795
  const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
3796
3796
  return isUndefined(elm) ? null : elm;
3797
3797
  } else {
3798
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
3798
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
3799
3799
  // `this` is a manually inserted element inside a shadowRoot, return the first element.
3800
3800
  return nodeList.length === 0 ? null : nodeList[0];
3801
3801
  } // Element is inside a shadow but we dont know which one. Use the
@@ -3807,7 +3807,7 @@
3807
3807
  return isUndefined(elm) ? null : elm;
3808
3808
  }
3809
3809
  } else {
3810
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
3810
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
3811
3811
  if (!(this instanceof HTMLBodyElement)) {
3812
3812
  const elm = nodeList[0];
3813
3813
  return isUndefined(elm) ? null : elm;
@@ -3890,7 +3890,7 @@
3890
3890
  value() {
3891
3891
  const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
3892
3892
 
3893
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
3893
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
3894
3894
  const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
3895
3895
  /* ShadowDomSemantic.Disabled */
3896
3896
  );
@@ -3914,7 +3914,7 @@
3914
3914
  value() {
3915
3915
  const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
3916
3916
 
3917
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
3917
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
3918
3918
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
3919
3919
  }
3920
3920
 
@@ -3932,7 +3932,7 @@
3932
3932
  value() {
3933
3933
  const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
3934
3934
 
3935
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
3935
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
3936
3936
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
3937
3937
  }
3938
3938
 
@@ -3950,7 +3950,7 @@
3950
3950
  value() {
3951
3951
  const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
3952
3952
 
3953
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
3953
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
3954
3954
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
3955
3955
  }
3956
3956
 
@@ -4673,11 +4673,11 @@
4673
4673
  if (innerTextGetter !== null && innerTextSetter !== null) {
4674
4674
  defineProperty(HTMLElement.prototype, 'innerText', {
4675
4675
  get() {
4676
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4676
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4677
4677
  return innerTextGetter.call(this);
4678
4678
  }
4679
4679
 
4680
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4680
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4681
4681
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4682
4682
  return getInnerText(this);
4683
4683
  }
@@ -4709,11 +4709,11 @@
4709
4709
  // As a setter, it removes the current node and replaces it with the given text.
4710
4710
  defineProperty(HTMLElement.prototype, 'outerText', {
4711
4711
  get() {
4712
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4712
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
4713
4713
  return outerTextGetter.call(this);
4714
4714
  }
4715
4715
 
4716
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4716
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4717
4717
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4718
4718
  return getInnerText(this);
4719
4719
  }
@@ -4914,6 +4914,6 @@
4914
4914
  },
4915
4915
  configurable: true,
4916
4916
  });
4917
- /** version: 2.23.0 */
4917
+ /** version: 2.23.1 */
4918
4918
 
4919
4919
  })();
@@ -199,7 +199,7 @@
199
199
  var hasNativeSymbolSupport = /*@__PURE__*/function () {
200
200
  return Symbol('x').toString() === 'Symbol(x)';
201
201
  }();
202
- /** version: 2.23.0 */
202
+ /** version: 2.23.1 */
203
203
 
204
204
  /*
205
205
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1298,8 +1298,8 @@
1298
1298
  });
1299
1299
  }
1300
1300
 
1301
- var runtimeFlags = _globalThis.lwcRuntimeFlags;
1302
- /** version: 2.23.0 */
1301
+ var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
1302
+ /** version: 2.23.1 */
1303
1303
 
1304
1304
  /*
1305
1305
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1549,7 +1549,7 @@
1549
1549
  },
1550
1550
  textContent: {
1551
1551
  get: function get() {
1552
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1552
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1553
1553
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1554
1554
  return textContentGetterPatched.call(this);
1555
1555
  }
@@ -1650,7 +1650,7 @@
1650
1650
  return true;
1651
1651
  }
1652
1652
 
1653
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1653
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1654
1654
  if (otherNode == null) {
1655
1655
  return false;
1656
1656
  }
@@ -1675,7 +1675,7 @@
1675
1675
  },
1676
1676
  cloneNode: {
1677
1677
  value: function value(deep) {
1678
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1678
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1679
1679
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1680
1680
  return cloneNodePatched.call(this, deep);
1681
1681
  }
@@ -4225,7 +4225,7 @@
4225
4225
  defineProperties(Element.prototype, {
4226
4226
  innerHTML: {
4227
4227
  get: function get() {
4228
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4228
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4229
4229
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4230
4230
  return innerHTMLGetterPatched.call(this);
4231
4231
  }
@@ -4248,7 +4248,7 @@
4248
4248
  },
4249
4249
  outerHTML: {
4250
4250
  get: function get() {
4251
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4251
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4252
4252
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4253
4253
  return outerHTMLGetterPatched.call(this);
4254
4254
  }
@@ -4374,7 +4374,7 @@
4374
4374
  });
4375
4375
  return isUndefined(elm) ? null : elm;
4376
4376
  } else {
4377
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4377
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
4378
4378
  // `this` is a manually inserted element inside a shadowRoot, return the first element.
4379
4379
  return nodeList.length === 0 ? null : nodeList[0];
4380
4380
  } // Element is inside a shadow but we dont know which one. Use the
@@ -4390,7 +4390,7 @@
4390
4390
  return isUndefined(_elm) ? null : _elm;
4391
4391
  }
4392
4392
  } else {
4393
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4393
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
4394
4394
  if (!(this instanceof HTMLBodyElement)) {
4395
4395
  var _elm3 = nodeList[0];
4396
4396
  return isUndefined(_elm3) ? null : _elm3;
@@ -4482,7 +4482,7 @@
4482
4482
  value: function value() {
4483
4483
  var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
4484
4484
 
4485
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4485
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
4486
4486
  var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
4487
4487
  /* ShadowDomSemantic.Disabled */
4488
4488
  );
@@ -4505,7 +4505,7 @@
4505
4505
  value: function value() {
4506
4506
  var elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
4507
4507
 
4508
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4508
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4509
4509
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4510
4510
  }
4511
4511
 
@@ -4522,7 +4522,7 @@
4522
4522
  value: function value() {
4523
4523
  var elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
4524
4524
 
4525
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4525
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4526
4526
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4527
4527
  }
4528
4528
 
@@ -4539,7 +4539,7 @@
4539
4539
  value: function value() {
4540
4540
  var elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
4541
4541
 
4542
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4542
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4543
4543
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4544
4544
  }
4545
4545
 
@@ -5370,11 +5370,11 @@
5370
5370
  if (innerTextGetter !== null && innerTextSetter !== null) {
5371
5371
  defineProperty(HTMLElement.prototype, 'innerText', {
5372
5372
  get: function get() {
5373
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5373
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5374
5374
  return innerTextGetter.call(this);
5375
5375
  }
5376
5376
 
5377
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
5377
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
5378
5378
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
5379
5379
  return getInnerText(this);
5380
5380
  }
@@ -5404,11 +5404,11 @@
5404
5404
  // As a setter, it removes the current node and replaces it with the given text.
5405
5405
  defineProperty(HTMLElement.prototype, 'outerText', {
5406
5406
  get: function get() {
5407
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5407
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5408
5408
  return outerTextGetter.call(this);
5409
5409
  }
5410
5410
 
5411
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
5411
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
5412
5412
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
5413
5413
  return getInnerText(this);
5414
5414
  }
@@ -5650,7 +5650,7 @@
5650
5650
  window.addEventListener('test-dummy-flag', function () {
5651
5651
  var hasFlag = false;
5652
5652
 
5653
- if (runtimeFlags.DUMMY_TEST_FLAG) {
5653
+ if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
5654
5654
  hasFlag = true;
5655
5655
  }
5656
5656
 
@@ -5662,6 +5662,6 @@
5662
5662
  }));
5663
5663
  });
5664
5664
  }
5665
- /** version: 2.23.0 */
5665
+ /** version: 2.23.1 */
5666
5666
 
5667
5667
  })();
@@ -123,7 +123,7 @@
123
123
  var KEY__SHADOW_TOKEN = '$shadowToken$';
124
124
  var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
125
125
  var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
126
- /** version: 2.23.0 */
126
+ /** version: 2.23.1 */
127
127
 
128
128
  /*
129
129
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1207,8 +1207,8 @@
1207
1207
  });
1208
1208
  }
1209
1209
 
1210
- var runtimeFlags = _globalThis.lwcRuntimeFlags;
1211
- /** version: 2.23.0 */
1210
+ var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
1211
+ /** version: 2.23.1 */
1212
1212
 
1213
1213
  /*
1214
1214
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1450,7 +1450,7 @@
1450
1450
  },
1451
1451
  textContent: {
1452
1452
  get: function get() {
1453
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1453
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1454
1454
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1455
1455
  return textContentGetterPatched.call(this);
1456
1456
  }
@@ -1551,7 +1551,7 @@
1551
1551
  return true;
1552
1552
  }
1553
1553
 
1554
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1554
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1555
1555
  if (otherNode == null) {
1556
1556
  return false;
1557
1557
  }
@@ -1576,7 +1576,7 @@
1576
1576
  },
1577
1577
  cloneNode: {
1578
1578
  value: function value(deep) {
1579
- if (!runtimeFlags.ENABLE_NODE_PATCH) {
1579
+ if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
1580
1580
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1581
1581
  return cloneNodePatched.call(this, deep);
1582
1582
  }
@@ -4039,7 +4039,7 @@
4039
4039
  defineProperties(Element.prototype, {
4040
4040
  innerHTML: {
4041
4041
  get: function get() {
4042
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4042
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4043
4043
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4044
4044
  return innerHTMLGetterPatched.call(this);
4045
4045
  }
@@ -4062,7 +4062,7 @@
4062
4062
  },
4063
4063
  outerHTML: {
4064
4064
  get: function get() {
4065
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4065
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
4066
4066
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4067
4067
  return outerHTMLGetterPatched.call(this);
4068
4068
  }
@@ -4188,7 +4188,7 @@
4188
4188
  });
4189
4189
  return isUndefined(elm) ? null : elm;
4190
4190
  } else {
4191
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4191
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
4192
4192
  // `this` is a manually inserted element inside a shadowRoot, return the first element.
4193
4193
  return nodeList.length === 0 ? null : nodeList[0];
4194
4194
  } // Element is inside a shadow but we dont know which one. Use the
@@ -4204,7 +4204,7 @@
4204
4204
  return isUndefined(_elm) ? null : _elm;
4205
4205
  }
4206
4206
  } else {
4207
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4207
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
4208
4208
  if (!(this instanceof HTMLBodyElement)) {
4209
4209
  var _elm3 = nodeList[0];
4210
4210
  return isUndefined(_elm3) ? null : _elm3;
@@ -4296,7 +4296,7 @@
4296
4296
  value: function value() {
4297
4297
  var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
4298
4298
 
4299
- if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4299
+ if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
4300
4300
  var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
4301
4301
  /* ShadowDomSemantic.Disabled */
4302
4302
  );
@@ -4319,7 +4319,7 @@
4319
4319
  value: function value() {
4320
4320
  var elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
4321
4321
 
4322
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4322
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4323
4323
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4324
4324
  }
4325
4325
 
@@ -4336,7 +4336,7 @@
4336
4336
  value: function value() {
4337
4337
  var elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
4338
4338
 
4339
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4339
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4340
4340
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4341
4341
  }
4342
4342
 
@@ -4353,7 +4353,7 @@
4353
4353
  value: function value() {
4354
4354
  var elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
4355
4355
 
4356
- if (!runtimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4356
+ if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
4357
4357
  return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
4358
4358
  }
4359
4359
 
@@ -5174,11 +5174,11 @@
5174
5174
  if (innerTextGetter !== null && innerTextSetter !== null) {
5175
5175
  defineProperty(HTMLElement.prototype, 'innerText', {
5176
5176
  get: function get() {
5177
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5177
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5178
5178
  return innerTextGetter.call(this);
5179
5179
  }
5180
5180
 
5181
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
5181
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
5182
5182
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
5183
5183
  return getInnerText(this);
5184
5184
  }
@@ -5208,11 +5208,11 @@
5208
5208
  // As a setter, it removes the current node and replaces it with the given text.
5209
5209
  defineProperty(HTMLElement.prototype, 'outerText', {
5210
5210
  get: function get() {
5211
- if (!runtimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5211
+ if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
5212
5212
  return outerTextGetter.call(this);
5213
5213
  }
5214
5214
 
5215
- if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
5215
+ if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
5216
5216
  if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
5217
5217
  return getInnerText(this);
5218
5218
  }
@@ -5442,6 +5442,6 @@
5442
5442
  },
5443
5443
  configurable: true
5444
5444
  });
5445
- /** version: 2.23.0 */
5445
+ /** version: 2.23.1 */
5446
5446
 
5447
5447
  })();