lwc 2.32.0 → 2.32.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 (39) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +222 -249
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +222 -249
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +94 -145
  5. package/dist/engine-dom/iife/es5/engine-dom.js +211 -226
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +120 -183
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +222 -249
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +94 -145
  11. package/dist/engine-dom/umd/es5/engine-dom.js +211 -226
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +120 -183
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +218 -224
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +218 -224
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +676 -909
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +676 -909
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +644 -882
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +85 -345
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +85 -345
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +676 -909
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +644 -882
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +85 -345
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +85 -345
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  34. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  35. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  36. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  37. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  39. package/package.json +7 -7
@@ -7,8 +7,6 @@
7
7
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf2(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
8
8
  function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
9
9
  function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
10
- function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get.bind(); } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
11
- function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
12
10
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
11
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
12
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -331,7 +329,7 @@
331
329
  CACHED_ATTRIBUTE_PROPERTY_MAPPING.set(attrName, propertyName);
332
330
  return propertyName;
333
331
  }
334
- /** version: 2.32.0 */
332
+ /** version: 2.32.1 */
335
333
 
336
334
  /**
337
335
  * Copyright (C) 2018 salesforce.com, inc.
@@ -412,7 +410,7 @@
412
410
  patch$1(propName);
413
411
  }
414
412
  }
415
- /** version: 2.32.0 */
413
+ /** version: 2.32.1 */
416
414
 
417
415
  /**
418
416
  * Copyright (C) 2018 salesforce.com, inc.
@@ -426,19 +424,14 @@
426
424
  */
427
425
  var features = {
428
426
  DUMMY_TEST_FLAG: null,
429
- ENABLE_ELEMENT_PATCH: null,
430
427
  ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
431
- ENABLE_HTML_COLLECTIONS_PATCH: null,
432
- ENABLE_INNER_OUTER_TEXT_PATCH: null,
433
428
  ENABLE_MIXED_SHADOW_MODE: null,
434
429
  ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE: null,
435
- ENABLE_NODE_LIST_PATCH: null,
436
- ENABLE_NODE_PATCH: null,
437
- ENABLE_REACTIVE_SETTER: null,
438
430
  ENABLE_WIRE_SYNC_EMIT: null,
439
431
  ENABLE_LIGHT_GET_ROOT_NODE_PATCH: null,
440
432
  DISABLE_LIGHT_DOM_UNSCOPED_CSS: null,
441
- ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY: null
433
+ ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY: null,
434
+ ENABLE_FROZEN_TEMPLATE: null
442
435
  };
443
436
  if (!_globalThis.lwcRuntimeFlags) {
444
437
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', {
@@ -1856,56 +1849,6 @@
1856
1849
  configurable: true
1857
1850
  };
1858
1851
  }
1859
- var AccessorReactiveObserver = /*#__PURE__*/function (_ReactiveObserver) {
1860
- _inherits(AccessorReactiveObserver, _ReactiveObserver);
1861
- var _super3 = _createSuper(AccessorReactiveObserver);
1862
- function AccessorReactiveObserver(vm, set) {
1863
- var _this2;
1864
- _classCallCheck(this, AccessorReactiveObserver);
1865
- _this2 = _super3.call(this, function () {
1866
- if (isFalse(_this2.debouncing)) {
1867
- _this2.debouncing = true;
1868
- addCallbackToNextTick(function () {
1869
- if (isTrue(_this2.debouncing)) {
1870
- var _assertThisInitialize = _assertThisInitialized(_this2),
1871
- value = _assertThisInitialize.value;
1872
- var dirtyStateBeforeSetterCall = vm.isDirty,
1873
- component = vm.component,
1874
- _idx = vm.idx;
1875
- set.call(component, value);
1876
- // de-bouncing after the call to the original setter to prevent
1877
- // infinity loop if the setter itself is mutating things that
1878
- // were accessed during the previous invocation.
1879
- _this2.debouncing = false;
1880
- if (isTrue(vm.isDirty) && isFalse(dirtyStateBeforeSetterCall) && _idx > 0) {
1881
- // immediate rehydration due to a setter driven mutation, otherwise
1882
- // the component will get rendered on the second tick, which it is not
1883
- // desirable.
1884
- rerenderVM(vm);
1885
- }
1886
- }
1887
- });
1888
- }
1889
- });
1890
- _this2.debouncing = false;
1891
- return _this2;
1892
- }
1893
- _createClass(AccessorReactiveObserver, [{
1894
- key: "reset",
1895
- value: function reset(value) {
1896
- _get2(_getPrototypeOf2(AccessorReactiveObserver.prototype), "reset", this).call(this);
1897
- this.debouncing = false;
1898
- if (arguments.length > 0) {
1899
- this.value = value;
1900
- }
1901
- }
1902
- }]);
1903
- return AccessorReactiveObserver;
1904
- }(ReactiveObserver);
1905
- function createAccessorReactiveObserver(vm, set) {
1906
- // On the server side, we don't need mutation tracking. Skipping it improves performance.
1907
- return new AccessorReactiveObserver(vm, set);
1908
- }
1909
1852
 
1910
1853
  /*
1911
1854
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1936,37 +1879,21 @@
1936
1879
  };
1937
1880
  }
1938
1881
  function createPublicAccessorDescriptor(key, descriptor) {
1939
- var _get3 = descriptor.get,
1882
+ var _get2 = descriptor.get,
1940
1883
  _set2 = descriptor.set,
1941
1884
  enumerable = descriptor.enumerable,
1942
1885
  configurable = descriptor.configurable;
1943
- if (!isFunction$1(_get3)) {
1886
+ if (!isFunction$1(_get2)) {
1944
1887
  throw new Error();
1945
1888
  }
1946
1889
  return {
1947
1890
  get: function get() {
1948
- return _get3.call(this);
1891
+ return _get2.call(this);
1949
1892
  },
1950
1893
  set: function set(newValue) {
1951
- var _this3 = this;
1952
- var vm = getAssociatedVM(this);
1894
+ getAssociatedVM(this);
1953
1895
  if (_set2) {
1954
- if (lwcRuntimeFlags.ENABLE_REACTIVE_SETTER) {
1955
- var ro = vm.oar[key];
1956
- if (isUndefined$1(ro)) {
1957
- ro = vm.oar[key] = createAccessorReactiveObserver(vm, _set2);
1958
- }
1959
- // every time we invoke this setter from outside (through this wrapper setter)
1960
- // we should reset the value and then debounce just in case there is a pending
1961
- // invocation the next tick that is not longer relevant since the value is changing
1962
- // from outside.
1963
- ro.reset(newValue);
1964
- ro.observe(function () {
1965
- _set2.call(_this3, newValue);
1966
- });
1967
- } else {
1968
- _set2.call(this, newValue);
1969
- }
1896
+ _set2.call(this, newValue);
1970
1897
  }
1971
1898
  },
1972
1899
  enumerable: enumerable,
@@ -2158,13 +2085,6 @@
2158
2085
  var meta = signedDecoratorToMetaMap.get(Ctor);
2159
2086
  return isUndefined$1(meta) ? defaultMeta : meta;
2160
2087
  }
2161
-
2162
- /*
2163
- * Copyright (c) 2018, salesforce.com, inc.
2164
- * All rights reserved.
2165
- * SPDX-License-Identifier: MIT
2166
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2167
- */
2168
2088
  var signedTemplateSet = new Set();
2169
2089
  function defaultEmptyTemplate() {
2170
2090
  return [];
@@ -2179,32 +2099,6 @@
2179
2099
  */
2180
2100
  function registerTemplate(tpl) {
2181
2101
  signedTemplateSet.add(tpl);
2182
- // FIXME[@W-10950976]: the template object should be frozen, and it should not be possible to set
2183
- // the stylesheets or stylesheetToken(s). For backwards compat, though, we shim stylesheetTokens
2184
- // on top of stylesheetToken for anyone who is accessing the old internal API.
2185
- // Details: https://salesforce.quip.com/v1rmAFu2cKAr
2186
- defineProperty(tpl, 'stylesheetTokens', {
2187
- enumerable: true,
2188
- configurable: true,
2189
- get: function get() {
2190
- var stylesheetToken = this.stylesheetToken;
2191
- if (isUndefined$1(stylesheetToken)) {
2192
- return stylesheetToken;
2193
- }
2194
- // Shim for the old `stylesheetTokens` property
2195
- // See https://github.com/salesforce/lwc/pull/2332/files#diff-7901555acef29969adaa6583185b3e9bce475cdc6f23e799a54e0018cb18abaa
2196
- return {
2197
- hostAttribute: "".concat(stylesheetToken, "-host"),
2198
- shadowAttribute: stylesheetToken
2199
- };
2200
- },
2201
- set: function set(value) {
2202
- // If the value is null or some other exotic object, you would be broken anyway in the past
2203
- // because the engine would try to access hostAttribute/shadowAttribute, which would throw an error.
2204
- // However it may be undefined in newer versions of LWC, so we need to guard against that case.
2205
- this.stylesheetToken = isUndefined$1(value) ? undefined : value.shadowAttribute;
2206
- }
2207
- });
2208
2102
  // chaining this method as a way to wrap existing
2209
2103
  // assignment of templates easily, without too much transformation
2210
2104
  return tpl;
@@ -2305,10 +2199,10 @@
2305
2199
  if (isFunction$1(SuperClass)) {
2306
2200
  HTMLBridgeElement = /*#__PURE__*/function (_SuperClass) {
2307
2201
  _inherits(HTMLBridgeElement, _SuperClass);
2308
- var _super4 = _createSuper(HTMLBridgeElement);
2202
+ var _super3 = _createSuper(HTMLBridgeElement);
2309
2203
  function HTMLBridgeElement() {
2310
2204
  _classCallCheck(this, HTMLBridgeElement);
2311
- return _super4.apply(this, arguments);
2205
+ return _super3.apply(this, arguments);
2312
2206
  }
2313
2207
  return _createClass(HTMLBridgeElement);
2314
2208
  }(SuperClass);
@@ -3777,7 +3671,7 @@
3777
3671
  // undefined is for root components, but root components cannot accept slotted content
3778
3672
  setVMBeingRendered(slotset.owner);
3779
3673
  try {
3780
- ArrayPush$1.apply(newChildren, vnode.factory(data.slotData));
3674
+ ArrayPush$1.call(newChildren, vnode.factory(data.slotData, data.key));
3781
3675
  } finally {
3782
3676
  setVMBeingRendered(vmBeingRenderedInception);
3783
3677
  }
@@ -4470,14 +4364,9 @@
4470
4364
  function resetComponentStateWhenRemoved(vm) {
4471
4365
  var state = vm.state;
4472
4366
  if (state !== 2 /* VMState.disconnected */) {
4473
- var oar = vm.oar,
4474
- tro = vm.tro;
4367
+ var tro = vm.tro;
4475
4368
  // Making sure that any observing record will not trigger the rehydrated on this vm
4476
4369
  tro.reset();
4477
- // Making sure that any observing accessor record will not trigger the setter to be reinvoked
4478
- for (var key in oar) {
4479
- oar[key].reset();
4480
- }
4481
4370
  runDisconnectedCallback(vm);
4482
4371
  // Spec: https://dom.spec.whatwg.org/#concept-node-remove (step 14-15)
4483
4372
  runChildNodesDisconnectedCallback(vm);
@@ -4522,7 +4411,6 @@
4522
4411
  cmpSlots: {
4523
4412
  slotAssignments: create(null)
4524
4413
  },
4525
- oar: create(null),
4526
4414
  cmpTemplate: null,
4527
4415
  hydrated: Boolean(hydrated),
4528
4416
  renderMode: def.renderMode,
@@ -4865,17 +4753,17 @@
4865
4753
  var WireMetaMap = new Map();
4866
4754
  var WireContextRegistrationEvent = /*#__PURE__*/function (_CustomEvent) {
4867
4755
  _inherits(WireContextRegistrationEvent, _CustomEvent);
4868
- var _super5 = _createSuper(WireContextRegistrationEvent);
4756
+ var _super4 = _createSuper(WireContextRegistrationEvent);
4869
4757
  function WireContextRegistrationEvent(adapterToken, _ref4) {
4870
- var _this4;
4758
+ var _this2;
4871
4759
  var setNewContext = _ref4.setNewContext,
4872
4760
  setDisconnectedCallback = _ref4.setDisconnectedCallback;
4873
4761
  _classCallCheck(this, WireContextRegistrationEvent);
4874
- _this4 = _super5.call(this, adapterToken, {
4762
+ _this2 = _super4.call(this, adapterToken, {
4875
4763
  bubbles: true,
4876
4764
  composed: true
4877
4765
  });
4878
- defineProperties(_assertThisInitialized(_this4), {
4766
+ defineProperties(_assertThisInitialized(_this2), {
4879
4767
  setNewContext: {
4880
4768
  value: setNewContext
4881
4769
  },
@@ -4883,7 +4771,7 @@
4883
4771
  value: setDisconnectedCallback
4884
4772
  }
4885
4773
  });
4886
- return _this4;
4774
+ return _this2;
4887
4775
  }
4888
4776
  return _createClass(WireContextRegistrationEvent);
4889
4777
  }( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
@@ -5531,9 +5419,58 @@
5531
5419
  hooksAreSet = true;
5532
5420
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
5533
5421
  }
5534
- // TODO [#2782]: eventually freezeTemplate() will _actually_ freeze the tmpl object. Today it
5535
- // just warns on mutation.
5422
+ // Deeply freeze the entire array (of arrays) of stylesheet factory functions
5423
+ function deepFreeze(stylesheets) {
5424
+ traverseStylesheets(stylesheets, function (subStylesheets) {
5425
+ freeze(subStylesheets);
5426
+ });
5427
+ }
5428
+ // Deep-traverse an array (of arrays) of stylesheet factory functions, and call the callback for every array/function
5429
+ function traverseStylesheets(stylesheets, callback) {
5430
+ callback(stylesheets);
5431
+ for (var _i33 = 0; _i33 < stylesheets.length; _i33++) {
5432
+ var stylesheet = stylesheets[_i33];
5433
+ if (isArray$1(stylesheet)) {
5434
+ traverseStylesheets(stylesheet, callback);
5435
+ } else {
5436
+ callback(stylesheet);
5437
+ }
5438
+ }
5439
+ }
5536
5440
  function freezeTemplate(tmpl) {
5441
+ if (lwcRuntimeFlags.ENABLE_FROZEN_TEMPLATE) {
5442
+ // Deep freeze the template
5443
+ freeze(tmpl);
5444
+ if (!isUndefined$1(tmpl.stylesheets)) {
5445
+ deepFreeze(tmpl.stylesheets);
5446
+ }
5447
+ } else {
5448
+ // TODO [#2782]: remove this flag and delete the legacy behavior
5449
+ // When ENABLE_FROZEN_TEMPLATE is false, then we shim stylesheetTokens on top of stylesheetToken for anyone who
5450
+ // is accessing the old internal API (backwards compat). Details: https://salesforce.quip.com/v1rmAFu2cKAr
5451
+ defineProperty(tmpl, 'stylesheetTokens', {
5452
+ enumerable: true,
5453
+ configurable: true,
5454
+ get: function get() {
5455
+ var stylesheetToken = this.stylesheetToken;
5456
+ if (isUndefined$1(stylesheetToken)) {
5457
+ return stylesheetToken;
5458
+ }
5459
+ // Shim for the old `stylesheetTokens` property
5460
+ // See https://github.com/salesforce/lwc/pull/2332/files#diff-7901555acef29969adaa6583185b3e9bce475cdc6f23e799a54e0018cb18abaa
5461
+ return {
5462
+ hostAttribute: "".concat(stylesheetToken, "-host"),
5463
+ shadowAttribute: stylesheetToken
5464
+ };
5465
+ },
5466
+ set: function set(value) {
5467
+ // If the value is null or some other exotic object, you would be broken anyway in the past
5468
+ // because the engine would try to access hostAttribute/shadowAttribute, which would throw an error.
5469
+ // However it may be undefined in newer versions of LWC, so we need to guard against that case.
5470
+ this.stylesheetToken = isUndefined$1(value) ? undefined : value.shadowAttribute;
5471
+ }
5472
+ });
5473
+ }
5537
5474
  }
5538
5475
 
5539
5476
  /*
@@ -5708,10 +5645,10 @@
5708
5645
  // which are not equipped to be initialized that way.
5709
5646
  var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
5710
5647
  _inherits(clazz, _HTMLElementAlias);
5711
- var _super6 = _createSuper(clazz);
5648
+ var _super5 = _createSuper(clazz);
5712
5649
  function clazz() {
5713
5650
  _classCallCheck(this, clazz);
5714
- return _super6.apply(this, arguments);
5651
+ return _super5.apply(this, arguments);
5715
5652
  }
5716
5653
  return _createClass(clazz);
5717
5654
  }(HTMLElementAlias);
@@ -5757,24 +5694,24 @@
5757
5694
  // TODO [#2972]: this class should expose observedAttributes as necessary
5758
5695
  var UpgradableConstructor = /*#__PURE__*/function (_HTMLElement) {
5759
5696
  _inherits(UpgradableConstructor, _HTMLElement);
5760
- var _super7 = _createSuper(UpgradableConstructor);
5697
+ var _super6 = _createSuper(UpgradableConstructor);
5761
5698
  function UpgradableConstructor(upgradeCallback) {
5762
- var _this5;
5699
+ var _this3;
5763
5700
  _classCallCheck(this, UpgradableConstructor);
5764
- _this5 = _super7.call(this);
5701
+ _this3 = _super6.call(this);
5765
5702
  // If the element is not created using lwc.createElement(), e.g. `document.createElement('x-foo')`,
5766
5703
  // then elementBeingUpgraded will be false
5767
5704
  if (elementBeingUpgradedByLWC) {
5768
- upgradeCallback(_assertThisInitialized(_this5));
5705
+ upgradeCallback(_assertThisInitialized(_this3));
5769
5706
  } else if (hasConnectedCallback || hasDisconnectedCallback) {
5770
5707
  // If this element has connected or disconnected callbacks, then we need to keep track of
5771
5708
  // instances that were created outside LWC (i.e. not created by `lwc.createElement()`).
5772
5709
  // If the element has no connected or disconnected callbacks, then we don't need to track this.
5773
- elementsUpgradedOutsideLWC.add(_assertThisInitialized(_this5));
5710
+ elementsUpgradedOutsideLWC.add(_assertThisInitialized(_this3));
5774
5711
  // TODO [#2970]: LWC elements cannot be upgraded via new Ctor()
5775
5712
  // Do we want to support this? Throw an error? Currently for backwards compat it's a no-op.
5776
5713
  }
5777
- return _this5;
5714
+ return _this3;
5778
5715
  }
5779
5716
  return _createClass(UpgradableConstructor);
5780
5717
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement)); // Do not unnecessarily add a connectedCallback/disconnectedCallback, as it introduces perf overhead
@@ -5883,9 +5820,9 @@
5883
5820
  function createPivotingClass(tagName, registeredDefinition) {
5884
5821
  var PivotCtor = /*#__PURE__*/function (_NativeHTMLElement) {
5885
5822
  _inherits(PivotCtor, _NativeHTMLElement);
5886
- var _super8 = _createSuper(PivotCtor);
5823
+ var _super7 = _createSuper(PivotCtor);
5887
5824
  function PivotCtor(UserCtor) {
5888
- var _this6;
5825
+ var _this4;
5889
5826
  _classCallCheck(this, PivotCtor);
5890
5827
  // This constructor can only be invoked by:
5891
5828
  // a) the browser instantiating an element from parsing or via document.createElement.
@@ -5895,7 +5832,7 @@
5895
5832
  // If the caller signals via UserCtor that this is in fact a controlled
5896
5833
  // definition, we use that one, otherwise fallback to the global
5897
5834
  // internal registry.
5898
- _this6 = _super8.call(this);
5835
+ _this4 = _super7.call(this);
5899
5836
  var userCtorIsDefined = !isUndefined$1(UserCtor);
5900
5837
  if (userCtorIsDefined) {
5901
5838
  if (!isConstructor(UserCtor)) {
@@ -5907,15 +5844,15 @@
5907
5844
  }
5908
5845
  var definition = userCtorIsDefined ? getOrCreateDefinitionForConstructor(UserCtor) : globalDefinitionsByTag.get(tagName);
5909
5846
  if (!isUndefined$1(definition)) {
5910
- internalUpgrade(_assertThisInitialized(_this6), registeredDefinition, definition);
5847
+ internalUpgrade(_assertThisInitialized(_this4), registeredDefinition, definition);
5911
5848
  } else {
5912
5849
  // This is the case in which there is no global definition, and
5913
5850
  // it is not handled by LWC (otherwise it will have a valid UserCtor)
5914
5851
  // so we need to add it to the pending queue just in case it eventually
5915
5852
  // gets defined in the global registry.
5916
- pendingRegistryForElement.set(_assertThisInitialized(_this6), registeredDefinition);
5853
+ pendingRegistryForElement.set(_assertThisInitialized(_this4), registeredDefinition);
5917
5854
  }
5918
- return _this6;
5855
+ return _this4;
5919
5856
  }
5920
5857
  _createClass(PivotCtor, [{
5921
5858
  key: "connectedCallback",
@@ -6153,17 +6090,17 @@
6153
6090
  function flushPendingWhenDefinedCallbacks(tagName, ctor) {
6154
6091
  var resolvers = pendingWhenDefinedCallbacks.get(tagName);
6155
6092
  if (!isUndefined$1(resolvers)) {
6156
- var _iterator6 = _createForOfIteratorHelper(resolvers),
6157
- _step6;
6093
+ var _iterator7 = _createForOfIteratorHelper(resolvers),
6094
+ _step7;
6158
6095
  try {
6159
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
6160
- var resolver = _step6.value;
6096
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
6097
+ var resolver = _step7.value;
6161
6098
  resolver(ctor);
6162
6099
  }
6163
6100
  } catch (err) {
6164
- _iterator6.e(err);
6101
+ _iterator7.e(err);
6165
6102
  } finally {
6166
- _iterator6.f();
6103
+ _iterator7.f();
6167
6104
  }
6168
6105
  }
6169
6106
  pendingWhenDefinedCallbacks.delete(tagName);
@@ -6213,11 +6150,11 @@
6213
6150
  var awaiting = awaitingUpgrade.get(tagName);
6214
6151
  if (!isUndefined$1(awaiting)) {
6215
6152
  awaitingUpgrade.delete(tagName);
6216
- var _iterator7 = _createForOfIteratorHelper(awaiting),
6217
- _step7;
6153
+ var _iterator8 = _createForOfIteratorHelper(awaiting),
6154
+ _step8;
6218
6155
  try {
6219
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
6220
- var element = _step7.value;
6156
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
6157
+ var element = _step8.value;
6221
6158
  var registeredDefinition = pendingRegistryForElement.get(element);
6222
6159
  // At this point, registeredDefinition should never be undefined because awaitingUpgrade
6223
6160
  // is only populated when we haven't run internalUpgrade yet, and we only populate
@@ -6229,9 +6166,9 @@
6229
6166
  }
6230
6167
  }
6231
6168
  } catch (err) {
6232
- _iterator7.e(err);
6169
+ _iterator8.e(err);
6233
6170
  } finally {
6234
- _iterator7.f();
6171
+ _iterator8.f();
6235
6172
  }
6236
6173
  }
6237
6174
  // If anyone called customElements.whenDefined() and is still waiting for a promise resolution, resolve now
@@ -6379,13 +6316,13 @@
6379
6316
  // TODO [#2972]: this class should expose observedAttributes as necessary
6380
6317
  return /*#__PURE__*/function (_HTMLElementToExtend) {
6381
6318
  _inherits(UserConstructor, _HTMLElementToExtend);
6382
- var _super9 = _createSuper(UserConstructor);
6319
+ var _super8 = _createSuper(UserConstructor);
6383
6320
  function UserConstructor() {
6384
- var _this7;
6321
+ var _this5;
6385
6322
  _classCallCheck(this, UserConstructor);
6386
- _this7 = _super9.call(this);
6387
- upgradeCallback(_assertThisInitialized(_this7));
6388
- return _this7;
6323
+ _this5 = _super8.call(this);
6324
+ upgradeCallback(_assertThisInitialized(_this5));
6325
+ return _this5;
6389
6326
  }
6390
6327
  // Note that there is no need to do the "avoid defining connectedCallback/disconnectedCallback" optimization
6391
6328
  // here, because in create-scoped-registry.ts, the registered class will always have these callbacks anyway.
@@ -6508,7 +6445,7 @@
6508
6445
  function isNull(obj) {
6509
6446
  return obj === null;
6510
6447
  }
6511
- /** version: 2.32.0 */
6448
+ /** version: 2.32.1 */
6512
6449
 
6513
6450
  /*
6514
6451
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6567,17 +6504,17 @@
6567
6504
  exports.createFragment = function (html) {
6568
6505
  var wrapperTags = topLevelWrappingMap[getTagName(html)];
6569
6506
  if (!isUndefined(wrapperTags)) {
6570
- var _iterator8 = _createForOfIteratorHelper(wrapperTags),
6571
- _step8;
6507
+ var _iterator9 = _createForOfIteratorHelper(wrapperTags),
6508
+ _step9;
6572
6509
  try {
6573
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
6574
- var wrapperTag = _step8.value;
6510
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
6511
+ var wrapperTag = _step9.value;
6575
6512
  html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
6576
6513
  }
6577
6514
  } catch (err) {
6578
- _iterator8.e(err);
6515
+ _iterator9.e(err);
6579
6516
  } finally {
6580
- _iterator8.f();
6517
+ _iterator9.f();
6581
6518
  }
6582
6519
  }
6583
6520
  // For IE11, the document title must not be undefined, but it can be an empty string
@@ -6586,7 +6523,7 @@
6586
6523
  doc.body.innerHTML = html;
6587
6524
  var content = doc.body;
6588
6525
  if (!isUndefined(wrapperTags)) {
6589
- for (var _i33 = 0; _i33 < wrapperTags.length; _i33++) {
6526
+ for (var _i34 = 0; _i34 < wrapperTags.length; _i34++) {
6590
6527
  content = content.firstChild;
6591
6528
  }
6592
6529
  }
@@ -6779,8 +6716,8 @@
6779
6716
  tagName: element.tagName.toLowerCase(),
6780
6717
  hydrated: true
6781
6718
  });
6782
- for (var _i34 = 0, _Object$entries2 = Object.entries(props); _i34 < _Object$entries2.length; _i34++) {
6783
- var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i34], 2),
6719
+ for (var _i35 = 0, _Object$entries2 = Object.entries(props); _i35 < _Object$entries2.length; _i35++) {
6720
+ var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i35], 2),
6784
6721
  key = _Object$entries2$_i[0],
6785
6722
  value = _Object$entries2$_i[1];
6786
6723
  element[key] = value;
@@ -6853,23 +6790,23 @@
6853
6790
  var _attributeChangedCallback = HtmlPrototype.prototype.attributeChangedCallback;
6854
6791
  return _a = /*#__PURE__*/function (_HTMLElement2) {
6855
6792
  _inherits(_a, _HTMLElement2);
6856
- var _super10 = _createSuper(_a);
6793
+ var _super9 = _createSuper(_a);
6857
6794
  function _a() {
6858
- var _this8;
6795
+ var _this6;
6859
6796
  _classCallCheck(this, _a);
6860
- _this8 = _super10.call(this);
6861
- if (_this8.isConnected) {
6797
+ _this6 = _super9.call(this);
6798
+ if (_this6.isConnected) {
6862
6799
  // this if block is hit when there's already an un-upgraded element in the DOM with the same tag name.
6863
- hydrateComponent(_assertThisInitialized(_this8), Ctor, {});
6864
- hydratedCustomElements.add(_assertThisInitialized(_this8));
6800
+ hydrateComponent(_assertThisInitialized(_this6), Ctor, {});
6801
+ hydratedCustomElements.add(_assertThisInitialized(_this6));
6865
6802
  } else {
6866
- createVM(_assertThisInitialized(_this8), Ctor, renderer, {
6803
+ createVM(_assertThisInitialized(_this6), Ctor, renderer, {
6867
6804
  mode: 'open',
6868
6805
  owner: null,
6869
- tagName: _this8.tagName
6806
+ tagName: _this6.tagName
6870
6807
  });
6871
6808
  }
6872
- return _this8;
6809
+ return _this6;
6873
6810
  }
6874
6811
  _createClass(_a, [{
6875
6812
  key: "connectedCallback",
@@ -7067,7 +7004,7 @@
7067
7004
  });
7068
7005
  freeze(LightningElement);
7069
7006
  seal(LightningElement.prototype);
7070
- /* version: 2.32.0 */
7007
+ /* version: 2.32.1 */
7071
7008
 
7072
7009
  exports.LightningElement = LightningElement;
7073
7010
  exports.__unstable__ProfilerControl = profilerControl;