lwc 2.45.2 → 2.45.4

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