lwc 2.45.2 → 2.45.3

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 (68) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +45 -52
  2. package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
  3. package/dist/engine-dom/iife/es2017/engine-dom.js +45 -52
  4. package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
  5. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  6. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +51 -50
  7. package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
  8. package/dist/engine-dom/iife/es5/engine-dom.js +51 -56
  9. package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
  10. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  11. package/dist/engine-dom/iife/es5/engine-dom_debug.js +57 -54
  12. package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
  13. package/dist/engine-dom/umd/es2017/engine-dom.js +45 -52
  14. package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
  15. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  16. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +51 -50
  17. package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
  18. package/dist/engine-dom/umd/es5/engine-dom.js +51 -56
  19. package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
  20. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  21. package/dist/engine-dom/umd/es5/engine-dom_debug.js +57 -54
  22. package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
  23. package/dist/engine-server/commonjs/es2017/engine-server.js +7795 -91
  24. package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
  25. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  26. package/dist/engine-server/esm/es2017/engine-server.js +7794 -71
  27. package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
  28. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +71 -12
  29. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
  30. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +71 -12
  31. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
  32. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +39 -1
  33. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +55 -5
  34. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
  35. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +71 -12
  36. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
  37. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +39 -1
  38. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +43 -4
  39. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
  40. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +71 -12
  41. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
  42. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +39 -1
  43. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +55 -5
  44. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
  45. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +71 -12
  46. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
  47. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +39 -1
  48. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +43 -4
  49. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
  50. package/dist/wire-service/esm/es2017/wire-service.js +10 -4
  51. package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
  52. package/dist/wire-service/iife/es2017/wire-service.js +10 -4
  53. package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
  54. package/dist/wire-service/iife/es2017/wire-service_debug.js +10 -4
  55. package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
  56. package/dist/wire-service/iife/es5/wire-service.js +10 -4
  57. package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
  58. package/dist/wire-service/iife/es5/wire-service_debug.js +10 -4
  59. package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
  60. package/dist/wire-service/umd/es2017/wire-service.js +10 -4
  61. package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
  62. package/dist/wire-service/umd/es2017/wire-service_debug.js +10 -4
  63. package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
  64. package/dist/wire-service/umd/es5/wire-service.js +10 -4
  65. package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
  66. package/dist/wire-service/umd/es5/wire-service_debug.js +10 -4
  67. package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
  68. package/package.json +7 -7
@@ -32,9 +32,11 @@
32
32
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
33
33
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
34
34
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
35
- /* proxy-compat-disable */
36
35
  /**
37
- * Copyright (C) 2018 salesforce.com, inc.
36
+ * Copyright (C) 2023 salesforce.com, inc.
37
+ */
38
+ /**
39
+ * Copyright (C) 2023 salesforce.com, inc.
38
40
  */
39
41
  /*
40
42
  * Copyright (c) 2018, salesforce.com, inc.
@@ -214,7 +216,7 @@
214
216
  AriaPropNameToAttrNameMap = _ref.AriaPropNameToAttrNameMap;
215
217
  // These attributes take either an ID or a list of IDs as values.
216
218
  // This includes aria-* attributes as well as the special non-ARIA "for" attribute
217
- var ID_REFERENCING_ATTRIBUTES_SET = new Set(['aria-activedescendant', 'aria-controls', 'aria-describedby', 'aria-details', 'aria-errormessage', 'aria-flowto', 'aria-labelledby', 'aria-owns', 'for']);
219
+ var ID_REFERENCING_ATTRIBUTES_SET = /*@__PURE__*/new Set(['aria-activedescendant', 'aria-controls', 'aria-describedby', 'aria-details', 'aria-errormessage', 'aria-flowto', 'aria-labelledby', 'aria-owns', 'for']);
218
220
 
219
221
  /*
220
222
  * Copyright (c) 2018, salesforce.com, inc.
@@ -277,11 +279,11 @@
277
279
  /**
278
280
  * Map associating previously transformed HTML property into HTML attribute.
279
281
  */
280
- var CACHED_PROPERTY_ATTRIBUTE_MAPPING = new Map();
282
+ var CACHED_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/new Map();
281
283
  /**
282
284
  * Map associating previously transformed HTML attribute into HTML property.
283
285
  */
284
- var CACHED_ATTRIBUTE_PROPERTY_MAPPING = new Map();
286
+ var CACHED_ATTRIBUTE_PROPERTY_MAPPING = /*@__PURE__@*/new Map();
285
287
  function htmlPropertyToAttribute(propName) {
286
288
  var ariaAttributeName = AriaPropNameToAttrNameMap[propName];
287
289
  if (!isUndefined$1(ariaAttributeName)) {
@@ -329,10 +331,10 @@
329
331
  CACHED_ATTRIBUTE_PROPERTY_MAPPING.set(attrName, propertyName);
330
332
  return propertyName;
331
333
  }
332
- /** version: 2.45.2 */
334
+ /** version: 2.45.3 */
333
335
 
334
336
  /**
335
- * Copyright (C) 2018 salesforce.com, inc.
337
+ * Copyright (C) 2023 salesforce.com, inc.
336
338
  */
337
339
 
338
340
  /*
@@ -400,10 +402,10 @@
400
402
  */
401
403
  function setFeatureFlagForTest(name, value) {
402
404
  }
403
- /** version: 2.45.2 */
405
+ /** version: 2.45.3 */
404
406
 
405
407
  /**
406
- * Copyright (C) 2018 salesforce.com, inc.
408
+ * Copyright (C) 2023 salesforce.com, inc.
407
409
  */
408
410
 
409
411
  /*
@@ -464,7 +466,7 @@
464
466
  }
465
467
  }
466
468
  }
467
- /** version: 2.45.2 */
469
+ /** version: 2.45.3 */
468
470
 
469
471
  /*
470
472
  * Copyright (c) 2018, salesforce.com, inc.
@@ -478,7 +480,9 @@
478
480
  applyAriaReflection();
479
481
  }
480
482
 
481
- /* proxy-compat-disable */
483
+ /**
484
+ * Copyright (C) 2023 salesforce.com, inc.
485
+ */
482
486
 
483
487
  /*
484
488
  * Copyright (c) 2018, salesforce.com, inc.
@@ -902,19 +906,6 @@
902
906
  */
903
907
  // These properties get added to LWCElement.prototype publicProps automatically
904
908
  var defaultDefHTMLPropertyNames = ['accessKey', 'dir', 'draggable', 'hidden', 'id', 'lang', 'spellcheck', 'tabIndex', 'title'];
905
- var controlledElement = null;
906
- var controlledAttributeName;
907
- function isAttributeLocked(elm, attrName) {
908
- return elm !== controlledElement || attrName !== controlledAttributeName;
909
- }
910
- function lockAttribute(_elm, _key) {
911
- controlledElement = null;
912
- controlledAttributeName = undefined;
913
- }
914
- function unlockAttribute(elm, key) {
915
- controlledElement = elm;
916
- controlledAttributeName = key;
917
- }
918
909
 
919
910
  /*
920
911
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1530,6 +1521,14 @@
1530
1521
  * SPDX-License-Identifier: MIT
1531
1522
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1532
1523
  */
1524
+ /**
1525
+ * This module is responsible for producing the ComponentDef object that is always
1526
+ * accessible via `vm.def`. This is lazily created during the creation of the first
1527
+ * instance of a component class, and shared across all instances.
1528
+ *
1529
+ * This structure can be used to synthetically create proxies, and understand the
1530
+ * shape of a component. It is also used internally to apply extra optimizations.
1531
+ */
1533
1532
  /**
1534
1533
  * This operation is called with a descriptor of an standard html property
1535
1534
  * that a Custom Element can support (including AOM properties), which
@@ -1660,17 +1659,13 @@
1660
1659
  var vm = getAssociatedVM(this);
1661
1660
  var elm = vm.elm,
1662
1661
  removeAttribute = vm.renderer.removeAttribute;
1663
- unlockAttribute(elm, name);
1664
1662
  removeAttribute(elm, name);
1665
- lockAttribute();
1666
1663
  },
1667
1664
  removeAttributeNS: function removeAttributeNS(namespace, name) {
1668
1665
  var _getAssociatedVM = getAssociatedVM(this),
1669
1666
  elm = _getAssociatedVM.elm,
1670
1667
  removeAttribute = _getAssociatedVM.renderer.removeAttribute;
1671
- unlockAttribute(elm, name);
1672
1668
  removeAttribute(elm, name, namespace);
1673
- lockAttribute();
1674
1669
  },
1675
1670
  getAttribute: function getAttribute(name) {
1676
1671
  var vm = getAssociatedVM(this);
@@ -1688,17 +1683,13 @@
1688
1683
  var vm = getAssociatedVM(this);
1689
1684
  var elm = vm.elm,
1690
1685
  setAttribute = vm.renderer.setAttribute;
1691
- unlockAttribute(elm, name);
1692
1686
  setAttribute(elm, name, value);
1693
- lockAttribute();
1694
1687
  },
1695
1688
  setAttributeNS: function setAttributeNS(namespace, name, value) {
1696
1689
  var vm = getAssociatedVM(this);
1697
1690
  var elm = vm.elm,
1698
1691
  setAttribute = vm.renderer.setAttribute;
1699
- unlockAttribute(elm, name);
1700
1692
  setAttribute(elm, name, value, namespace);
1701
- lockAttribute();
1702
1693
  },
1703
1694
  getBoundingClientRect: function getBoundingClientRect() {
1704
1695
  var vm = getAssociatedVM(this);
@@ -2031,7 +2022,9 @@
2031
2022
  });
2032
2023
  runWithBoundaryProtection(vm, vm, noop, function () {
2033
2024
  // job
2034
- connector = new adapter(dataCallback);
2025
+ connector = new adapter(dataCallback, {
2026
+ tagName: vm.tagName
2027
+ });
2035
2028
  }, noop);
2036
2029
  var updateConnectorConfig = function updateConnectorConfig(config) {
2037
2030
  // every time the config is recomputed due to tracking,
@@ -2416,6 +2409,10 @@
2416
2409
  * SPDX-License-Identifier: MIT
2417
2410
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2418
2411
  */
2412
+ /**
2413
+ * This module is responsible for creating the base bridge class BaseBridgeElement
2414
+ * that represents the HTMLElement extension used for any LWC inserted in the DOM.
2415
+ */
2419
2416
  // A bridge descriptor is a descriptor whose job is just to get the component instance
2420
2417
  // from the element instance, and get the value or set a new value on the component.
2421
2418
  // This means that across different elements, similar names can get the exact same
@@ -2470,14 +2467,6 @@
2470
2467
  }
2471
2468
  return;
2472
2469
  }
2473
- if (!isAttributeLocked(this, attrName)) {
2474
- // Ignore changes triggered by the engine itself during:
2475
- // * diffing when public props are attempting to reflect to the DOM
2476
- // * component via `this.setAttribute()`, should never update the prop
2477
- // Both cases, the setAttribute call is always wrapped by the unlocking of the
2478
- // attribute to be changed
2479
- return;
2480
- }
2481
2470
  // Reflect attribute change to the corresponding property when changed from outside.
2482
2471
  this[propName] = newValue;
2483
2472
  };
@@ -2696,6 +2685,15 @@
2696
2685
  return ModernWeakMultiMap;
2697
2686
  }();
2698
2687
  var WeakMultiMap = supportsWeakRefs ? ModernWeakMultiMap : LegacyWeakMultiMap;
2688
+
2689
+ /*
2690
+ * Copyright (c) 2020, salesforce.com, inc.
2691
+ * All rights reserved.
2692
+ * SPDX-License-Identifier: MIT
2693
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2694
+ */
2695
+ new WeakMap();
2696
+ new WeakMap();
2699
2697
  var swappedStyleMap = new WeakMap();
2700
2698
  // The important thing here is the weak values – VMs are transient (one per component instance) and should be GC'ed,
2701
2699
  // so we don't want to create strong references to them.
@@ -2766,6 +2764,14 @@
2766
2764
  * SPDX-License-Identifier: MIT
2767
2765
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2768
2766
  */
2767
+ /**
2768
+ * This module is responsible for producing the ComponentDef object that is always
2769
+ * accessible via `vm.def`. This is lazily created during the creation of the first
2770
+ * instance of a component class, and shared across all instances.
2771
+ *
2772
+ * This structure can be used to synthetically create proxies, and understand the
2773
+ * shape of a component. It is also used internally to apply extra optimizations.
2774
+ */
2769
2775
  var CtorToDefMap = new WeakMap();
2770
2776
  function getCtorProto(Ctor) {
2771
2777
  var proto = getPrototypeOf$1(Ctor);
@@ -2937,9 +2943,9 @@
2937
2943
  };
2938
2944
  }
2939
2945
  var publicMethods = {};
2940
- for (var _key2 in methods) {
2946
+ for (var _key in methods) {
2941
2947
  // avoid leaking the reference to the public method descriptors
2942
- publicMethods[_key2] = methods[_key2].value;
2948
+ publicMethods[_key] = methods[_key].value;
2943
2949
  }
2944
2950
  return {
2945
2951
  ctor: ctor,
@@ -3190,7 +3196,6 @@
3190
3196
  var cur = attrs[key];
3191
3197
  var old = oldAttrs[key];
3192
3198
  if (old !== cur) {
3193
- unlockAttribute(elm, key);
3194
3199
  if (StringCharCodeAt.call(key, 3) === ColonCharCode$1) {
3195
3200
  // Assume xml namespace
3196
3201
  setAttribute(elm, key, cur, XML_NAMESPACE);
@@ -3202,7 +3207,6 @@
3202
3207
  } else {
3203
3208
  setAttribute(elm, key, cur);
3204
3209
  }
3205
- lockAttribute();
3206
3210
  }
3207
3211
  }
3208
3212
  }
@@ -4612,8 +4616,8 @@
4612
4616
  }
4613
4617
  function buildParseFragmentFn(createFragmentFn) {
4614
4618
  return function (strings) {
4615
- for (var _len3 = arguments.length, keys = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
4616
- keys[_key3 - 1] = arguments[_key3];
4619
+ for (var _len3 = arguments.length, keys = new Array(_len3 > 1 ? _len3 - 1 : 0), _key2 = 1; _key2 < _len3; _key2++) {
4620
+ keys[_key2 - 1] = arguments[_key2];
4617
4621
  }
4618
4622
  var cache = create(null);
4619
4623
  return function () {
@@ -5855,18 +5859,16 @@
5855
5859
  }
5856
5860
  function hydrateChildren(node, children, parentNode, owner) {
5857
5861
  var nextNode = node;
5858
- var anchor = null;
5859
5862
  var renderer = owner.renderer;
5860
5863
  for (var _i36 = 0; _i36 < children.length; _i36++) {
5861
5864
  var childVnode = children[_i36];
5862
5865
  if (!isNull(childVnode)) {
5863
5866
  if (nextNode) {
5864
5867
  nextNode = hydrateNode(nextNode, childVnode, renderer);
5865
- anchor = childVnode.elm;
5866
5868
  } else {
5867
5869
  hasMismatch = true;
5868
- mount(childVnode, parentNode, renderer, anchor);
5869
- anchor = childVnode.elm;
5870
+ mount(childVnode, parentNode, renderer, nextNode);
5871
+ nextNode = renderer.nextSibling(childVnode.elm);
5870
5872
  }
5871
5873
  }
5872
5874
  }
@@ -6532,6 +6534,7 @@
6532
6534
  * SPDX-License-Identifier: MIT
6533
6535
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6534
6536
  */
6537
+ new WeakMap();
6535
6538
  // Creates a custom element for compat (legacy) browser environments
6536
6539
  var createCustomElementCompat = function createCustomElementCompat(tagName, upgradeCallback) {
6537
6540
  var elm = document.createElement(tagName);
@@ -6659,7 +6662,7 @@
6659
6662
  function rendererFactory(baseRenderer) {
6660
6663
  var renderer = function (exports) {
6661
6664
  /**
6662
- * Copyright (C) 2018 salesforce.com, inc.
6665
+ * Copyright (C) 2023 salesforce.com, inc.
6663
6666
  */
6664
6667
  /*
6665
6668
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6698,7 +6701,7 @@
6698
6701
  function isNull(obj) {
6699
6702
  return obj === null;
6700
6703
  }
6701
- /** version: 2.45.2 */
6704
+ /** version: 2.45.3 */
6702
6705
 
6703
6706
  /*
6704
6707
  * Copyright (c) 2023, salesforce.com, inc.
@@ -7333,7 +7336,7 @@
7333
7336
  });
7334
7337
  });
7335
7338
  }
7336
- /* version: 2.45.2 */
7339
+ /** version: 2.45.3 */
7337
7340
 
7338
7341
  exports.LightningElement = LightningElement;
7339
7342
  exports.__unstable__ProfilerControl = profilerControl;