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
@@ -34,7 +34,11 @@
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
35
  /* proxy-compat-disable */
36
36
  /**
37
- * Copyright (C) 2018 salesforce.com, inc.
37
+ * Copyright (C) 2023 salesforce.com, inc.
38
+ */
39
+ /* proxy-compat-disable */
40
+ /**
41
+ * Copyright (C) 2023 salesforce.com, inc.
38
42
  */
39
43
  /*
40
44
  * Copyright (c) 2018, salesforce.com, inc.
@@ -214,7 +218,7 @@
214
218
  AriaPropNameToAttrNameMap = _ref.AriaPropNameToAttrNameMap;
215
219
  // These attributes take either an ID or a list of IDs as values.
216
220
  // 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']);
221
+ 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
222
 
219
223
  /*
220
224
  * Copyright (c) 2018, salesforce.com, inc.
@@ -277,11 +281,11 @@
277
281
  /**
278
282
  * Map associating previously transformed HTML property into HTML attribute.
279
283
  */
280
- var CACHED_PROPERTY_ATTRIBUTE_MAPPING = new Map();
284
+ var CACHED_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/new Map();
281
285
  /**
282
286
  * Map associating previously transformed HTML attribute into HTML property.
283
287
  */
284
- var CACHED_ATTRIBUTE_PROPERTY_MAPPING = new Map();
288
+ var CACHED_ATTRIBUTE_PROPERTY_MAPPING = /*@__PURE__@*/new Map();
285
289
  function htmlPropertyToAttribute(propName) {
286
290
  var ariaAttributeName = AriaPropNameToAttrNameMap[propName];
287
291
  if (!isUndefined$1(ariaAttributeName)) {
@@ -329,10 +333,11 @@
329
333
  CACHED_ATTRIBUTE_PROPERTY_MAPPING.set(attrName, propertyName);
330
334
  return propertyName;
331
335
  }
332
- /** version: 2.45.2 */
336
+ /** version: 2.45.4 */
333
337
 
338
+ /* proxy-compat-disable */
334
339
  /**
335
- * Copyright (C) 2018 salesforce.com, inc.
340
+ * Copyright (C) 2023 salesforce.com, inc.
336
341
  */
337
342
 
338
343
  /*
@@ -400,10 +405,11 @@
400
405
  */
401
406
  function setFeatureFlagForTest(name, value) {
402
407
  }
403
- /** version: 2.45.2 */
408
+ /** version: 2.45.4 */
404
409
 
410
+ /* proxy-compat-disable */
405
411
  /**
406
- * Copyright (C) 2018 salesforce.com, inc.
412
+ * Copyright (C) 2023 salesforce.com, inc.
407
413
  */
408
414
 
409
415
  /*
@@ -464,7 +470,7 @@
464
470
  }
465
471
  }
466
472
  }
467
- /** version: 2.45.2 */
473
+ /** version: 2.45.4 */
468
474
 
469
475
  /*
470
476
  * Copyright (c) 2018, salesforce.com, inc.
@@ -479,6 +485,9 @@
479
485
  }
480
486
 
481
487
  /* proxy-compat-disable */
488
+ /**
489
+ * Copyright (C) 2023 salesforce.com, inc.
490
+ */
482
491
 
483
492
  /*
484
493
  * Copyright (c) 2018, salesforce.com, inc.
@@ -902,19 +911,6 @@
902
911
  */
903
912
  // These properties get added to LWCElement.prototype publicProps automatically
904
913
  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
914
 
919
915
  /*
920
916
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1530,6 +1526,14 @@
1530
1526
  * SPDX-License-Identifier: MIT
1531
1527
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1532
1528
  */
1529
+ /**
1530
+ * This module is responsible for producing the ComponentDef object that is always
1531
+ * accessible via `vm.def`. This is lazily created during the creation of the first
1532
+ * instance of a component class, and shared across all instances.
1533
+ *
1534
+ * This structure can be used to synthetically create proxies, and understand the
1535
+ * shape of a component. It is also used internally to apply extra optimizations.
1536
+ */
1533
1537
  /**
1534
1538
  * This operation is called with a descriptor of an standard html property
1535
1539
  * that a Custom Element can support (including AOM properties), which
@@ -1660,17 +1664,13 @@
1660
1664
  var vm = getAssociatedVM(this);
1661
1665
  var elm = vm.elm,
1662
1666
  removeAttribute = vm.renderer.removeAttribute;
1663
- unlockAttribute(elm, name);
1664
1667
  removeAttribute(elm, name);
1665
- lockAttribute();
1666
1668
  },
1667
1669
  removeAttributeNS: function removeAttributeNS(namespace, name) {
1668
1670
  var _getAssociatedVM = getAssociatedVM(this),
1669
1671
  elm = _getAssociatedVM.elm,
1670
1672
  removeAttribute = _getAssociatedVM.renderer.removeAttribute;
1671
- unlockAttribute(elm, name);
1672
1673
  removeAttribute(elm, name, namespace);
1673
- lockAttribute();
1674
1674
  },
1675
1675
  getAttribute: function getAttribute(name) {
1676
1676
  var vm = getAssociatedVM(this);
@@ -1688,17 +1688,13 @@
1688
1688
  var vm = getAssociatedVM(this);
1689
1689
  var elm = vm.elm,
1690
1690
  setAttribute = vm.renderer.setAttribute;
1691
- unlockAttribute(elm, name);
1692
1691
  setAttribute(elm, name, value);
1693
- lockAttribute();
1694
1692
  },
1695
1693
  setAttributeNS: function setAttributeNS(namespace, name, value) {
1696
1694
  var vm = getAssociatedVM(this);
1697
1695
  var elm = vm.elm,
1698
1696
  setAttribute = vm.renderer.setAttribute;
1699
- unlockAttribute(elm, name);
1700
1697
  setAttribute(elm, name, value, namespace);
1701
- lockAttribute();
1702
1698
  },
1703
1699
  getBoundingClientRect: function getBoundingClientRect() {
1704
1700
  var vm = getAssociatedVM(this);
@@ -2031,7 +2027,9 @@
2031
2027
  });
2032
2028
  runWithBoundaryProtection(vm, vm, noop, function () {
2033
2029
  // job
2034
- connector = new adapter(dataCallback);
2030
+ connector = new adapter(dataCallback, {
2031
+ tagName: vm.tagName
2032
+ });
2035
2033
  }, noop);
2036
2034
  var updateConnectorConfig = function updateConnectorConfig(config) {
2037
2035
  // every time the config is recomputed due to tracking,
@@ -2416,6 +2414,10 @@
2416
2414
  * SPDX-License-Identifier: MIT
2417
2415
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2418
2416
  */
2417
+ /**
2418
+ * This module is responsible for creating the base bridge class BaseBridgeElement
2419
+ * that represents the HTMLElement extension used for any LWC inserted in the DOM.
2420
+ */
2419
2421
  // A bridge descriptor is a descriptor whose job is just to get the component instance
2420
2422
  // from the element instance, and get the value or set a new value on the component.
2421
2423
  // This means that across different elements, similar names can get the exact same
@@ -2470,14 +2472,6 @@
2470
2472
  }
2471
2473
  return;
2472
2474
  }
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
2475
  // Reflect attribute change to the corresponding property when changed from outside.
2482
2476
  this[propName] = newValue;
2483
2477
  };
@@ -2696,6 +2690,15 @@
2696
2690
  return ModernWeakMultiMap;
2697
2691
  }();
2698
2692
  var WeakMultiMap = supportsWeakRefs ? ModernWeakMultiMap : LegacyWeakMultiMap;
2693
+
2694
+ /*
2695
+ * Copyright (c) 2020, salesforce.com, inc.
2696
+ * All rights reserved.
2697
+ * SPDX-License-Identifier: MIT
2698
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2699
+ */
2700
+ new WeakMap();
2701
+ new WeakMap();
2699
2702
  var swappedStyleMap = new WeakMap();
2700
2703
  // The important thing here is the weak values – VMs are transient (one per component instance) and should be GC'ed,
2701
2704
  // so we don't want to create strong references to them.
@@ -2766,6 +2769,14 @@
2766
2769
  * SPDX-License-Identifier: MIT
2767
2770
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2768
2771
  */
2772
+ /**
2773
+ * This module is responsible for producing the ComponentDef object that is always
2774
+ * accessible via `vm.def`. This is lazily created during the creation of the first
2775
+ * instance of a component class, and shared across all instances.
2776
+ *
2777
+ * This structure can be used to synthetically create proxies, and understand the
2778
+ * shape of a component. It is also used internally to apply extra optimizations.
2779
+ */
2769
2780
  var CtorToDefMap = new WeakMap();
2770
2781
  function getCtorProto(Ctor) {
2771
2782
  var proto = getPrototypeOf$1(Ctor);
@@ -2937,9 +2948,9 @@
2937
2948
  };
2938
2949
  }
2939
2950
  var publicMethods = {};
2940
- for (var _key2 in methods) {
2951
+ for (var _key in methods) {
2941
2952
  // avoid leaking the reference to the public method descriptors
2942
- publicMethods[_key2] = methods[_key2].value;
2953
+ publicMethods[_key] = methods[_key].value;
2943
2954
  }
2944
2955
  return {
2945
2956
  ctor: ctor,
@@ -3190,7 +3201,6 @@
3190
3201
  var cur = attrs[key];
3191
3202
  var old = oldAttrs[key];
3192
3203
  if (old !== cur) {
3193
- unlockAttribute(elm, key);
3194
3204
  if (StringCharCodeAt.call(key, 3) === ColonCharCode$1) {
3195
3205
  // Assume xml namespace
3196
3206
  setAttribute(elm, key, cur, XML_NAMESPACE);
@@ -3202,7 +3212,6 @@
3202
3212
  } else {
3203
3213
  setAttribute(elm, key, cur);
3204
3214
  }
3205
- lockAttribute();
3206
3215
  }
3207
3216
  }
3208
3217
  }
@@ -4612,8 +4621,8 @@
4612
4621
  }
4613
4622
  function buildParseFragmentFn(createFragmentFn) {
4614
4623
  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];
4624
+ for (var _len3 = arguments.length, keys = new Array(_len3 > 1 ? _len3 - 1 : 0), _key2 = 1; _key2 < _len3; _key2++) {
4625
+ keys[_key2 - 1] = arguments[_key2];
4617
4626
  }
4618
4627
  var cache = create(null);
4619
4628
  return function () {
@@ -5855,18 +5864,16 @@
5855
5864
  }
5856
5865
  function hydrateChildren(node, children, parentNode, owner) {
5857
5866
  var nextNode = node;
5858
- var anchor = null;
5859
5867
  var renderer = owner.renderer;
5860
5868
  for (var _i36 = 0; _i36 < children.length; _i36++) {
5861
5869
  var childVnode = children[_i36];
5862
5870
  if (!isNull(childVnode)) {
5863
5871
  if (nextNode) {
5864
5872
  nextNode = hydrateNode(nextNode, childVnode, renderer);
5865
- anchor = childVnode.elm;
5866
5873
  } else {
5867
5874
  hasMismatch = true;
5868
- mount(childVnode, parentNode, renderer, anchor);
5869
- anchor = childVnode.elm;
5875
+ mount(childVnode, parentNode, renderer, nextNode);
5876
+ nextNode = renderer.nextSibling(childVnode.elm);
5870
5877
  }
5871
5878
  }
5872
5879
  }
@@ -6532,6 +6539,7 @@
6532
6539
  * SPDX-License-Identifier: MIT
6533
6540
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6534
6541
  */
6542
+ new WeakMap();
6535
6543
  // Creates a custom element for compat (legacy) browser environments
6536
6544
  var createCustomElementCompat = function createCustomElementCompat(tagName, upgradeCallback) {
6537
6545
  var elm = document.createElement(tagName);
@@ -6658,8 +6666,9 @@
6658
6666
  */
6659
6667
  function rendererFactory(baseRenderer) {
6660
6668
  var renderer = function (exports) {
6669
+ /* proxy-compat-disable */
6661
6670
  /**
6662
- * Copyright (C) 2018 salesforce.com, inc.
6671
+ * Copyright (C) 2023 salesforce.com, inc.
6663
6672
  */
6664
6673
  /*
6665
6674
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6698,7 +6707,7 @@
6698
6707
  function isNull(obj) {
6699
6708
  return obj === null;
6700
6709
  }
6701
- /** version: 2.45.2 */
6710
+ /** version: 2.45.4 */
6702
6711
 
6703
6712
  /*
6704
6713
  * Copyright (c) 2023, salesforce.com, inc.
@@ -7333,7 +7342,7 @@
7333
7342
  });
7334
7343
  });
7335
7344
  }
7336
- /* version: 2.45.2 */
7345
+ /** version: 2.45.4 */
7337
7346
 
7338
7347
  exports.LightningElement = LightningElement;
7339
7348
  exports.__unstable__ProfilerControl = profilerControl;