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.
@@ -218,7 +222,7 @@
218
222
  AriaPropNameToAttrNameMap = _ref.AriaPropNameToAttrNameMap;
219
223
  // These attributes take either an ID or a list of IDs as values.
220
224
  // This includes aria-* attributes as well as the special non-ARIA "for" attribute
221
- var ID_REFERENCING_ATTRIBUTES_SET = new Set(['aria-activedescendant', 'aria-controls', 'aria-describedby', 'aria-details', 'aria-errormessage', 'aria-flowto', 'aria-labelledby', 'aria-owns', 'for']);
225
+ 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']);
222
226
 
223
227
  /*
224
228
  * Copyright (c) 2018, salesforce.com, inc.
@@ -281,11 +285,11 @@
281
285
  /**
282
286
  * Map associating previously transformed HTML property into HTML attribute.
283
287
  */
284
- var CACHED_PROPERTY_ATTRIBUTE_MAPPING = new Map();
288
+ var CACHED_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/new Map();
285
289
  /**
286
290
  * Map associating previously transformed HTML attribute into HTML property.
287
291
  */
288
- var CACHED_ATTRIBUTE_PROPERTY_MAPPING = new Map();
292
+ var CACHED_ATTRIBUTE_PROPERTY_MAPPING = /*@__PURE__@*/new Map();
289
293
  function htmlPropertyToAttribute(propName) {
290
294
  var ariaAttributeName = AriaPropNameToAttrNameMap[propName];
291
295
  if (!isUndefined$1(ariaAttributeName)) {
@@ -341,12 +345,13 @@
341
345
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
342
346
  */
343
347
  // Increment whenever the LWC template compiler changes
344
- var LWC_VERSION = "2.45.2";
348
+ var LWC_VERSION = "2.45.4";
345
349
  var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
346
- /** version: 2.45.2 */
350
+ /** version: 2.45.4 */
347
351
 
352
+ /* proxy-compat-disable */
348
353
  /**
349
- * Copyright (C) 2018 salesforce.com, inc.
354
+ * Copyright (C) 2023 salesforce.com, inc.
350
355
  */
351
356
 
352
357
  /*
@@ -423,10 +428,11 @@
423
428
  setFeatureFlag(name, value);
424
429
  }
425
430
  }
426
- /** version: 2.45.2 */
431
+ /** version: 2.45.4 */
427
432
 
433
+ /* proxy-compat-disable */
428
434
  /**
429
- * Copyright (C) 2018 salesforce.com, inc.
435
+ * Copyright (C) 2023 salesforce.com, inc.
430
436
  */
431
437
 
432
438
  /*
@@ -487,7 +493,7 @@
487
493
  }
488
494
  }
489
495
  }
490
- /** version: 2.45.2 */
496
+ /** version: 2.45.4 */
491
497
 
492
498
  /*
493
499
  * Copyright (c) 2018, salesforce.com, inc.
@@ -502,6 +508,9 @@
502
508
  }
503
509
 
504
510
  /* proxy-compat-disable */
511
+ /**
512
+ * Copyright (C) 2023 salesforce.com, inc.
513
+ */
505
514
 
506
515
  /*
507
516
  * Copyright (c) 2018, salesforce.com, inc.
@@ -954,19 +963,6 @@
954
963
  */
955
964
  // These properties get added to LWCElement.prototype publicProps automatically
956
965
  var defaultDefHTMLPropertyNames = ['accessKey', 'dir', 'draggable', 'hidden', 'id', 'lang', 'spellcheck', 'tabIndex', 'title'];
957
- var controlledElement = null;
958
- var controlledAttributeName;
959
- function isAttributeLocked(elm, attrName) {
960
- return elm !== controlledElement || attrName !== controlledAttributeName;
961
- }
962
- function lockAttribute(_elm, _key) {
963
- controlledElement = null;
964
- controlledAttributeName = undefined;
965
- }
966
- function unlockAttribute(elm, key) {
967
- controlledElement = elm;
968
- controlledAttributeName = key;
969
- }
970
966
 
971
967
  /*
972
968
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1005,6 +1001,7 @@
1005
1001
  * SPDX-License-Identifier: MIT
1006
1002
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1007
1003
  */
1004
+ /* eslint @lwc/lwc-internal/no-production-assert: "off" */
1008
1005
  function generateDataDescriptor(options) {
1009
1006
  return assign({
1010
1007
  configurable: true,
@@ -1950,6 +1947,14 @@
1950
1947
  * SPDX-License-Identifier: MIT
1951
1948
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1952
1949
  */
1950
+ /**
1951
+ * This module is responsible for producing the ComponentDef object that is always
1952
+ * accessible via `vm.def`. This is lazily created during the creation of the first
1953
+ * instance of a component class, and shared across all instances.
1954
+ *
1955
+ * This structure can be used to synthetically create proxies, and understand the
1956
+ * shape of a component. It is also used internally to apply extra optimizations.
1957
+ */
1953
1958
  /**
1954
1959
  * This operation is called with a descriptor of an standard html property
1955
1960
  * that a Custom Element can support (including AOM properties), which
@@ -2126,17 +2131,13 @@
2126
2131
  var vm = getAssociatedVM(this);
2127
2132
  var elm = vm.elm,
2128
2133
  removeAttribute = vm.renderer.removeAttribute;
2129
- unlockAttribute(elm, name);
2130
2134
  removeAttribute(elm, name);
2131
- lockAttribute();
2132
2135
  },
2133
2136
  removeAttributeNS: function removeAttributeNS(namespace, name) {
2134
2137
  var _getAssociatedVM = getAssociatedVM(this),
2135
2138
  elm = _getAssociatedVM.elm,
2136
2139
  removeAttribute = _getAssociatedVM.renderer.removeAttribute;
2137
- unlockAttribute(elm, name);
2138
2140
  removeAttribute(elm, name, namespace);
2139
- lockAttribute();
2140
2141
  },
2141
2142
  getAttribute: function getAttribute(name) {
2142
2143
  var vm = getAssociatedVM(this);
@@ -2159,9 +2160,7 @@
2159
2160
  logError("Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
2160
2161
  }
2161
2162
  }
2162
- unlockAttribute(elm, name);
2163
2163
  setAttribute(elm, name, value);
2164
- lockAttribute();
2165
2164
  },
2166
2165
  setAttributeNS: function setAttributeNS(namespace, name, value) {
2167
2166
  var vm = getAssociatedVM(this);
@@ -2172,9 +2171,7 @@
2172
2171
  logError("Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
2173
2172
  }
2174
2173
  }
2175
- unlockAttribute(elm, name);
2176
2174
  setAttribute(elm, name, value, namespace);
2177
- lockAttribute();
2178
2175
  },
2179
2176
  getBoundingClientRect: function getBoundingClientRect() {
2180
2177
  var vm = getAssociatedVM(this);
@@ -2574,7 +2571,9 @@
2574
2571
  });
2575
2572
  runWithBoundaryProtection(vm, vm, noop, function () {
2576
2573
  // job
2577
- connector = new adapter(dataCallback);
2574
+ connector = new adapter(dataCallback, {
2575
+ tagName: vm.tagName
2576
+ });
2578
2577
  }, noop);
2579
2578
  var updateConnectorConfig = function updateConnectorConfig(config) {
2580
2579
  // every time the config is recomputed due to tracking,
@@ -3164,6 +3163,10 @@
3164
3163
  * SPDX-License-Identifier: MIT
3165
3164
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3166
3165
  */
3166
+ /**
3167
+ * This module is responsible for creating the base bridge class BaseBridgeElement
3168
+ * that represents the HTMLElement extension used for any LWC inserted in the DOM.
3169
+ */
3167
3170
  // A bridge descriptor is a descriptor whose job is just to get the component instance
3168
3171
  // from the element instance, and get the value or set a new value on the component.
3169
3172
  // This means that across different elements, similar names can get the exact same
@@ -3218,14 +3221,6 @@
3218
3221
  }
3219
3222
  return;
3220
3223
  }
3221
- if (!isAttributeLocked(this, attrName)) {
3222
- // Ignore changes triggered by the engine itself during:
3223
- // * diffing when public props are attempting to reflect to the DOM
3224
- // * component via `this.setAttribute()`, should never update the prop
3225
- // Both cases, the setAttribute call is always wrapped by the unlocking of the
3226
- // attribute to be changed
3227
- return;
3228
- }
3229
3224
  // Reflect attribute change to the corresponding property when changed from outside.
3230
3225
  this[propName] = newValue;
3231
3226
  };
@@ -3640,6 +3635,14 @@
3640
3635
  * SPDX-License-Identifier: MIT
3641
3636
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3642
3637
  */
3638
+ /**
3639
+ * This module is responsible for producing the ComponentDef object that is always
3640
+ * accessible via `vm.def`. This is lazily created during the creation of the first
3641
+ * instance of a component class, and shared across all instances.
3642
+ *
3643
+ * This structure can be used to synthetically create proxies, and understand the
3644
+ * shape of a component. It is also used internally to apply extra optimizations.
3645
+ */
3643
3646
  var CtorToDefMap = new WeakMap();
3644
3647
  function getCtorProto(Ctor) {
3645
3648
  var proto = getPrototypeOf$1(Ctor);
@@ -3838,9 +3841,9 @@
3838
3841
  };
3839
3842
  }
3840
3843
  var publicMethods = {};
3841
- for (var _key2 in methods) {
3844
+ for (var _key in methods) {
3842
3845
  // avoid leaking the reference to the public method descriptors
3843
- publicMethods[_key2] = methods[_key2].value;
3846
+ publicMethods[_key] = methods[_key].value;
3844
3847
  }
3845
3848
  return {
3846
3849
  ctor: ctor,
@@ -4099,7 +4102,6 @@
4099
4102
  var cur = attrs[key];
4100
4103
  var old = oldAttrs[key];
4101
4104
  if (old !== cur) {
4102
- unlockAttribute(elm, key);
4103
4105
  if (StringCharCodeAt.call(key, 3) === ColonCharCode$1) {
4104
4106
  // Assume xml namespace
4105
4107
  setAttribute(elm, key, cur, XML_NAMESPACE);
@@ -4111,7 +4113,6 @@
4111
4113
  } else {
4112
4114
  setAttribute(elm, key, cur);
4113
4115
  }
4114
- lockAttribute();
4115
4116
  }
4116
4117
  }
4117
4118
  }
@@ -5772,8 +5773,8 @@
5772
5773
  }
5773
5774
  function buildParseFragmentFn(createFragmentFn) {
5774
5775
  return function (strings) {
5775
- for (var _len3 = arguments.length, keys = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
5776
- keys[_key3 - 1] = arguments[_key3];
5776
+ for (var _len3 = arguments.length, keys = new Array(_len3 > 1 ? _len3 - 1 : 0), _key2 = 1; _key2 < _len3; _key2++) {
5777
+ keys[_key2 - 1] = arguments[_key2];
5777
5778
  }
5778
5779
  var cache = create(null);
5779
5780
  return function () {
@@ -7190,14 +7191,12 @@
7190
7191
  function hydrateChildren(node, children, parentNode, owner) {
7191
7192
  var hasWarned = false;
7192
7193
  var nextNode = node;
7193
- var anchor = null;
7194
7194
  var renderer = owner.renderer;
7195
7195
  for (var _i36 = 0; _i36 < children.length; _i36++) {
7196
7196
  var childVnode = children[_i36];
7197
7197
  if (!isNull(childVnode)) {
7198
7198
  if (nextNode) {
7199
7199
  nextNode = hydrateNode(nextNode, childVnode, renderer);
7200
- anchor = childVnode.elm;
7201
7200
  } else {
7202
7201
  hasMismatch = true;
7203
7202
  if (process.env.NODE_ENV !== 'production') {
@@ -7206,8 +7205,8 @@
7206
7205
  logError("Hydration mismatch: incorrect number of rendered nodes. Client produced more nodes than the server.", owner);
7207
7206
  }
7208
7207
  }
7209
- mount(childVnode, parentNode, renderer, anchor);
7210
- anchor = childVnode.elm;
7208
+ mount(childVnode, parentNode, renderer, nextNode);
7209
+ nextNode = renderer.nextSibling(childVnode.elm);
7211
7210
  }
7212
7211
  }
7213
7212
  }
@@ -7745,7 +7744,7 @@
7745
7744
  }
7746
7745
  return getReadOnlyProxy(obj);
7747
7746
  }
7748
- /* version: 2.45.2 */
7747
+ /** version: 2.45.4 */
7749
7748
 
7750
7749
  /*
7751
7750
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8005,6 +8004,7 @@
8005
8004
  * SPDX-License-Identifier: MIT
8006
8005
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8007
8006
  */
8007
+ new WeakMap();
8008
8008
  // Creates a custom element for compat (legacy) browser environments
8009
8009
  var createCustomElementCompat = function createCustomElementCompat(tagName, upgradeCallback) {
8010
8010
  var elm = document.createElement(tagName);
@@ -8131,8 +8131,9 @@
8131
8131
  */
8132
8132
  function rendererFactory(baseRenderer) {
8133
8133
  var renderer = function (exports) {
8134
+ /* proxy-compat-disable */
8134
8135
  /**
8135
- * Copyright (C) 2018 salesforce.com, inc.
8136
+ * Copyright (C) 2023 salesforce.com, inc.
8136
8137
  */
8137
8138
  /*
8138
8139
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8171,7 +8172,7 @@
8171
8172
  function isNull(obj) {
8172
8173
  return obj === null;
8173
8174
  }
8174
- /** version: 2.45.2 */
8175
+ /** version: 2.45.4 */
8175
8176
 
8176
8177
  /*
8177
8178
  * Copyright (c) 2023, salesforce.com, inc.
@@ -8813,7 +8814,7 @@
8813
8814
  });
8814
8815
  });
8815
8816
  }
8816
- /* version: 2.45.2 */
8817
+ /** version: 2.45.4 */
8817
8818
 
8818
8819
  exports.LightningElement = LightningElement;
8819
8820
  exports.__unstable__ProfilerControl = profilerControl;