lwc 2.43.0 → 2.45.0

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 +53 -231
  2. package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
  3. package/dist/engine-dom/iife/es2017/engine-dom.js +52 -231
  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 +8 -28
  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 -232
  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 +7 -27
  12. package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
  13. package/dist/engine-dom/umd/es2017/engine-dom.js +52 -231
  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 +8 -28
  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 -232
  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 +7 -27
  22. package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
  23. package/dist/engine-server/commonjs/es2017/engine-server.js +121 -203
  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 +103 -203
  27. package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
  28. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +89 -74
  29. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
  30. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +89 -74
  31. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
  32. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  33. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +85 -70
  34. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
  35. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +88 -71
  36. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
  37. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  38. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +84 -67
  39. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
  40. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +89 -74
  41. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
  42. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  43. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +85 -70
  44. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
  45. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +88 -71
  46. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
  47. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  48. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +84 -67
  49. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
  50. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  51. package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
  52. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  53. package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
  54. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  55. package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
  56. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  57. package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
  58. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  59. package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
  60. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  61. package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
  62. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  63. package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
  64. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  65. package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
  66. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  67. package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
  68. package/package.json +7 -7
@@ -320,27 +320,6 @@ var LWC = (function (exports) {
320
320
  return propertyName;
321
321
  }
322
322
 
323
- /*
324
- * Copyright (c) 2020, salesforce.com, inc.
325
- * All rights reserved.
326
- * SPDX-License-Identifier: MIT
327
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
328
- */
329
- var ESCAPED_CHARS = {
330
- '"': '"',
331
- "'": ''',
332
- '<': '&lt;',
333
- '>': '&gt;',
334
- '&': '&amp;'
335
- };
336
- function htmlEscape(str) {
337
- var attrMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
338
- var searchValue = attrMode ? /["&]/g : /["'<>&]/g;
339
- return str.replace(searchValue, function (char) {
340
- return ESCAPED_CHARS[char];
341
- });
342
- }
343
-
344
323
  /*
345
324
  * Copyright (c) 2018, salesforce.com, inc.
346
325
  * All rights reserved.
@@ -348,9 +327,9 @@ var LWC = (function (exports) {
348
327
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
349
328
  */
350
329
  // Increment whenever the LWC template compiler changes
351
- var LWC_VERSION = "2.43.0";
330
+ var LWC_VERSION = "2.45.0";
352
331
  var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
353
- /** version: 2.43.0 */
332
+ /** version: 2.45.0 */
354
333
 
355
334
  /**
356
335
  * Copyright (C) 2018 salesforce.com, inc.
@@ -430,7 +409,7 @@ var LWC = (function (exports) {
430
409
  setFeatureFlag(name, value);
431
410
  }
432
411
  }
433
- /** version: 2.43.0 */
412
+ /** version: 2.45.0 */
434
413
 
435
414
  /**
436
415
  * Copyright (C) 2018 salesforce.com, inc.
@@ -494,7 +473,7 @@ var LWC = (function (exports) {
494
473
  }
495
474
  }
496
475
  }
497
- /** version: 2.43.0 */
476
+ /** version: 2.45.0 */
498
477
 
499
478
  /*
500
479
  * Copyright (c) 2018, salesforce.com, inc.
@@ -961,101 +940,6 @@ var LWC = (function (exports) {
961
940
  */
962
941
  // These properties get added to LWCElement.prototype publicProps automatically
963
942
  var defaultDefHTMLPropertyNames = ['accessKey', 'dir', 'draggable', 'hidden', 'id', 'lang', 'spellcheck', 'tabIndex', 'title'];
964
- function offsetPropertyErrorMessage(name) {
965
- return "Using the `".concat(name, "` property is an anti-pattern because it rounds the value to an integer. Instead, use the `getBoundingClientRect` method to obtain fractional values for the size of an element and its position relative to the viewport.");
966
- }
967
- // Global HTML Attributes & Properties
968
- // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
969
- // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement
970
- //
971
- // If you update this list, check for test files that recapitulate the same list. Searching the codebase
972
- // for e.g. "dropzone" should suffice.
973
- var globalHTMLProperties = {
974
- accessKey: {
975
- attribute: 'accesskey'
976
- },
977
- accessKeyLabel: {
978
- readOnly: true
979
- },
980
- className: {
981
- attribute: 'class',
982
- error: 'Using the `className` property is an anti-pattern because of slow runtime behavior and potential conflicts with classes provided by the owner element. Use the `classList` API instead.'
983
- },
984
- contentEditable: {
985
- attribute: 'contenteditable'
986
- },
987
- dataset: {
988
- readOnly: true,
989
- error: "Using the `dataset` property is an anti-pattern because it can't be statically analyzed. Expose each property individually using the `@api` decorator instead."
990
- },
991
- dir: {
992
- attribute: 'dir'
993
- },
994
- draggable: {
995
- attribute: 'draggable'
996
- },
997
- dropzone: {
998
- attribute: 'dropzone',
999
- readOnly: true
1000
- },
1001
- hidden: {
1002
- attribute: 'hidden'
1003
- },
1004
- id: {
1005
- attribute: 'id'
1006
- },
1007
- inputMode: {
1008
- attribute: 'inputmode'
1009
- },
1010
- lang: {
1011
- attribute: 'lang'
1012
- },
1013
- slot: {
1014
- attribute: 'slot',
1015
- error: 'Using the `slot` property is an anti-pattern.'
1016
- },
1017
- spellcheck: {
1018
- attribute: 'spellcheck'
1019
- },
1020
- style: {
1021
- attribute: 'style'
1022
- },
1023
- tabIndex: {
1024
- attribute: 'tabindex'
1025
- },
1026
- title: {
1027
- attribute: 'title'
1028
- },
1029
- translate: {
1030
- attribute: 'translate'
1031
- },
1032
- // additional "global attributes" that are not present in the link above.
1033
- isContentEditable: {
1034
- readOnly: true
1035
- },
1036
- offsetHeight: {
1037
- readOnly: true,
1038
- error: offsetPropertyErrorMessage('offsetHeight')
1039
- },
1040
- offsetLeft: {
1041
- readOnly: true,
1042
- error: offsetPropertyErrorMessage('offsetLeft')
1043
- },
1044
- offsetParent: {
1045
- readOnly: true
1046
- },
1047
- offsetTop: {
1048
- readOnly: true,
1049
- error: offsetPropertyErrorMessage('offsetTop')
1050
- },
1051
- offsetWidth: {
1052
- readOnly: true,
1053
- error: offsetPropertyErrorMessage('offsetWidth')
1054
- },
1055
- role: {
1056
- attribute: 'role'
1057
- }
1058
- };
1059
943
  var controlledElement = null;
1060
944
  var controlledAttributeName;
1061
945
  function isAttributeLocked(elm, attrName) {
@@ -1243,8 +1127,7 @@ var LWC = (function (exports) {
1243
1127
  }),
1244
1128
  addEventListener: generateDataDescriptor({
1245
1129
  value: function value(type, listener, options) {
1246
- // TODO [#420]: this is triggered when the component author attempts to add a listener
1247
- // programmatically into its Component's shadow root
1130
+ // TODO [#1824]: Potentially relax this restriction
1248
1131
  if (!isUndefined$1(options)) {
1249
1132
  logError('The `addEventListener` method on ShadowRoot does not support any options.', getAssociatedVMIfPresent(this));
1250
1133
  }
@@ -1290,8 +1173,7 @@ var LWC = (function (exports) {
1290
1173
  }),
1291
1174
  addEventListener: generateDataDescriptor({
1292
1175
  value: function value(type, listener, options) {
1293
- // TODO [#420]: this is triggered when the component author attempts to add a listener
1294
- // programmatically into a lighting element node
1176
+ // TODO [#1824]: Potentially relax this restriction
1295
1177
  if (!isUndefined$1(options)) {
1296
1178
  logError('The `addEventListener` method in `LightningElement` does not support any options.', getAssociatedVMIfPresent(this));
1297
1179
  }
@@ -1318,7 +1200,7 @@ var LWC = (function (exports) {
1318
1200
  function getLightningElementPrototypeRestrictionsDescriptors(proto) {
1319
1201
  assertNotProd(); // this method should never leak to prod
1320
1202
  var originalDispatchEvent = proto.dispatchEvent;
1321
- var descriptors = {
1203
+ return {
1322
1204
  dispatchEvent: generateDataDescriptor({
1323
1205
  value: function value(event) {
1324
1206
  var vm = getAssociatedVM(this);
@@ -1334,34 +1216,6 @@ var LWC = (function (exports) {
1334
1216
  }
1335
1217
  })
1336
1218
  };
1337
- forEach.call(getOwnPropertyNames$1(globalHTMLProperties), function (propName) {
1338
- if (propName in proto) {
1339
- return; // no need to redefine something that we are already exposing
1340
- }
1341
-
1342
- descriptors[propName] = generateAccessorDescriptor({
1343
- get: function get() {
1344
- var _globalHTMLProperties = globalHTMLProperties[propName],
1345
- error = _globalHTMLProperties.error,
1346
- attribute = _globalHTMLProperties.attribute;
1347
- var msg = [];
1348
- msg.push("Accessing the global HTML property \"".concat(propName, "\" is disabled."));
1349
- if (error) {
1350
- msg.push(error);
1351
- } else if (attribute) {
1352
- msg.push("Instead access it via `this.getAttribute(\"".concat(attribute, "\")`."));
1353
- }
1354
- logError(msg.join('\n'), getAssociatedVM(this));
1355
- },
1356
- set: function set() {
1357
- var readOnly = globalHTMLProperties[propName].readOnly;
1358
- if (readOnly) {
1359
- logError("The global HTML property `".concat(propName, "` is read-only."), getAssociatedVM(this));
1360
- }
1361
- }
1362
- });
1363
- });
1364
- return descriptors;
1365
1219
  }
1366
1220
  // This routine will prevent access to certain properties on a shadow root instance to guarantee
1367
1221
  // that all components will work fine in IE11 and other browsers without shadow dom support.
@@ -2876,12 +2730,7 @@ var LWC = (function (exports) {
2876
2730
  _set2 = descriptor.set,
2877
2731
  enumerable = descriptor.enumerable,
2878
2732
  configurable = descriptor.configurable;
2879
- if (!isFunction$1(_get2)) {
2880
- if (process.env.NODE_ENV !== 'production') {
2881
- assert.invariant(isFunction$1(_get2), "Invalid compiler output for public accessor ".concat(toString$1(key), " decorated with @api"));
2882
- }
2883
- throw new Error();
2884
- }
2733
+ assert.invariant(isFunction$1(_get2), "Invalid public accessor ".concat(toString$1(key), " decorated with @api. The property is missing a getter."));
2885
2734
  return {
2886
2735
  get: function get() {
2887
2736
  if (process.env.NODE_ENV !== 'production') {
@@ -3001,60 +2850,63 @@ var LWC = (function (exports) {
3001
2850
  }
3002
2851
 
3003
2852
  function validateObservedField(Ctor, fieldName, descriptor) {
2853
+ assertNotProd(); // this method should never leak to prod
3004
2854
  if (!isUndefined$1(descriptor)) {
3005
2855
  var type = getClassDescriptorType(descriptor);
3006
2856
  var message = "Invalid observed ".concat(fieldName, " field. Found a duplicate ").concat(type, " with the same name.");
3007
- // [W-9927596] Ideally we always throw an error when detecting duplicate observed field.
3008
- // This branch is only here for backward compatibility reasons.
3009
- if (type === "accessor" /* DescriptorType.Accessor */) {
3010
- logError(message);
3011
- } else {
3012
- assert.fail(message);
3013
- }
2857
+ // TODO [#3408]: this should throw, not log
2858
+ logError(message);
3014
2859
  }
3015
2860
  }
3016
2861
  function validateFieldDecoratedWithTrack(Ctor, fieldName, descriptor) {
2862
+ assertNotProd(); // this method should never leak to prod
3017
2863
  if (!isUndefined$1(descriptor)) {
3018
2864
  var type = getClassDescriptorType(descriptor);
3019
- assert.fail("Invalid @track ".concat(fieldName, " field. Found a duplicate ").concat(type, " with the same name."));
2865
+ // TODO [#3408]: this should throw, not log
2866
+ logError("Invalid @track ".concat(fieldName, " field. Found a duplicate ").concat(type, " with the same name."));
3020
2867
  }
3021
2868
  }
3022
2869
  function validateFieldDecoratedWithWire(Ctor, fieldName, descriptor) {
2870
+ assertNotProd(); // this method should never leak to prod
3023
2871
  if (!isUndefined$1(descriptor)) {
3024
2872
  var type = getClassDescriptorType(descriptor);
3025
- assert.fail("Invalid @wire ".concat(fieldName, " field. Found a duplicate ").concat(type, " with the same name."));
2873
+ // TODO [#3408]: this should throw, not log
2874
+ logError("Invalid @wire ".concat(fieldName, " field. Found a duplicate ").concat(type, " with the same name."));
3026
2875
  }
3027
2876
  }
3028
2877
  function validateMethodDecoratedWithWire(Ctor, methodName, descriptor) {
2878
+ assertNotProd(); // this method should never leak to prod
3029
2879
  if (isUndefined$1(descriptor) || !isFunction$1(descriptor.value) || isFalse(descriptor.writable)) {
3030
- assert.fail("Invalid @wire ".concat(methodName, " method."));
2880
+ // TODO [#3441]: This line of code does not seem possible to reach.
2881
+ logError("Invalid @wire ".concat(methodName, " field. The field should have a valid writable descriptor."));
3031
2882
  }
3032
2883
  }
3033
2884
  function validateFieldDecoratedWithApi(Ctor, fieldName, descriptor) {
2885
+ assertNotProd(); // this method should never leak to prod
3034
2886
  if (!isUndefined$1(descriptor)) {
3035
2887
  var type = getClassDescriptorType(descriptor);
3036
2888
  var message = "Invalid @api ".concat(fieldName, " field. Found a duplicate ").concat(type, " with the same name.");
3037
- // [W-9927596] Ideally we always throw an error when detecting duplicate public properties.
3038
- // This branch is only here for backward compatibility reasons.
3039
- if (type === "accessor" /* DescriptorType.Accessor */) {
3040
- logError(message);
3041
- } else {
3042
- assert.fail(message);
3043
- }
2889
+ // TODO [#3408]: this should throw, not log
2890
+ logError(message);
3044
2891
  }
3045
2892
  }
3046
2893
  function validateAccessorDecoratedWithApi(Ctor, fieldName, descriptor) {
3047
- if (isUndefined$1(descriptor)) {
3048
- assert.fail("Invalid @api get ".concat(fieldName, " accessor."));
3049
- } else if (isFunction$1(descriptor.set)) {
3050
- assert.isTrue(isFunction$1(descriptor.get), "Missing getter for property ".concat(fieldName, " decorated with @api in ").concat(Ctor, ". You cannot have a setter without the corresponding getter."));
2894
+ assertNotProd(); // this method should never leak to prod
2895
+ if (isFunction$1(descriptor.set)) {
2896
+ if (!isFunction$1(descriptor.get)) {
2897
+ // TODO [#3441]: This line of code does not seem possible to reach.
2898
+ logError("Missing getter for property ".concat(fieldName, " decorated with @api in ").concat(Ctor, ". You cannot have a setter without the corresponding getter."));
2899
+ }
3051
2900
  } else if (!isFunction$1(descriptor.get)) {
3052
- assert.fail("Missing @api get ".concat(fieldName, " accessor."));
2901
+ // TODO [#3441]: This line of code does not seem possible to reach.
2902
+ logError("Missing @api get ".concat(fieldName, " accessor."));
3053
2903
  }
3054
2904
  }
3055
2905
  function validateMethodDecoratedWithApi(Ctor, methodName, descriptor) {
2906
+ assertNotProd(); // this method should never leak to prod
3056
2907
  if (isUndefined$1(descriptor) || !isFunction$1(descriptor.value) || isFalse(descriptor.writable)) {
3057
- assert.fail("Invalid @api ".concat(methodName, " method."));
2908
+ // TODO [#3441]: This line of code does not seem possible to reach.
2909
+ logError("Invalid @api ".concat(methodName, " method."));
3058
2910
  }
3059
2911
  }
3060
2912
  /**
@@ -3081,13 +2933,14 @@ var LWC = (function (exports) {
3081
2933
  apiFieldsConfig[fieldName] = propConfig.config;
3082
2934
  descriptor = getOwnPropertyDescriptor$1(proto, fieldName);
3083
2935
  if (propConfig.config > 0) {
2936
+ if (isUndefined$1(descriptor)) {
2937
+ // TODO [#3441]: This line of code does not seem possible to reach.
2938
+ throw new Error();
2939
+ }
3084
2940
  // accessor declaration
3085
2941
  if (process.env.NODE_ENV !== 'production') {
3086
2942
  validateAccessorDecoratedWithApi(Ctor, fieldName, descriptor);
3087
2943
  }
3088
- if (isUndefined$1(descriptor)) {
3089
- throw new Error();
3090
- }
3091
2944
  descriptor = createPublicAccessorDescriptor(fieldName, descriptor);
3092
2945
  } else {
3093
2946
  // field declaration
@@ -3130,7 +2983,10 @@ var LWC = (function (exports) {
3130
2983
  descriptor = getOwnPropertyDescriptor$1(proto, fieldOrMethodName);
3131
2984
  if (method === 1) {
3132
2985
  if (process.env.NODE_ENV !== 'production') {
3133
- assert.isTrue(adapter, "@wire on method \"".concat(fieldOrMethodName, "\": adapter id must be truthy."));
2986
+ if (!adapter) {
2987
+ // TODO [#3408]: this should throw, not log
2988
+ logError("@wire on method \"".concat(fieldOrMethodName, "\": adapter id must be truthy."));
2989
+ }
3134
2990
  validateMethodDecoratedWithWire(Ctor, fieldOrMethodName, descriptor);
3135
2991
  }
3136
2992
  if (isUndefined$1(descriptor)) {
@@ -3140,7 +2996,10 @@ var LWC = (function (exports) {
3140
2996
  storeWiredMethodMeta(descriptor, adapter, configCallback, dynamic);
3141
2997
  } else {
3142
2998
  if (process.env.NODE_ENV !== 'production') {
3143
- assert.isTrue(adapter, "@wire on field \"".concat(fieldOrMethodName, "\": adapter id must be truthy."));
2999
+ if (!adapter) {
3000
+ // TODO [#3408]: this should throw, not log
3001
+ logError("@wire on field \"".concat(fieldOrMethodName, "\": adapter id must be truthy."));
3002
+ }
3144
3003
  validateFieldDecoratedWithWire(Ctor, fieldOrMethodName, descriptor);
3145
3004
  }
3146
3005
  descriptor = internalWireFieldDecorator(fieldOrMethodName);
@@ -4045,15 +3904,6 @@ var LWC = (function (exports) {
4045
3904
  // the stylesheet, while internally, we have a replacement for it.
4046
3905
  stylesheet = getStyleOrSwappedStyle(stylesheet);
4047
3906
  }
4048
- // Check that this stylesheet was generated by our compiler
4049
- if (!isStylesheetRegistered(stylesheet)) {
4050
- if (process.env.NODE_ENV !== 'production') {
4051
- logWarnOnce("TypeError: Unexpected LWC stylesheet content found for component <".concat(vm.tagName.toLowerCase(), ">."));
4052
- }
4053
- report("UnexpectedStylesheetContent" /* ReportingEventId.UnexpectedStylesheetContent */, {
4054
- tagName: vm.tagName.toLowerCase()
4055
- });
4056
- }
4057
3907
  var isScopedCss = stylesheet[KEY__SCOPED_CSS];
4058
3908
  if (lwcRuntimeFlags.DISABLE_LIGHT_DOM_UNSCOPED_CSS && !isScopedCss && vm.renderMode === 0 /* RenderMode.Light */) {
4059
3909
  logError('Unscoped CSS is not supported in Light DOM. Please use scoped CSS (*.scoped.css) instead of unscoped CSS (*.css).');
@@ -4168,18 +4018,6 @@ var LWC = (function (exports) {
4168
4018
  }
4169
4019
  return null;
4170
4020
  }
4171
- var signedStylesheetSet = new Set();
4172
- /**
4173
- * INTERNAL: This function can only be invoked by compiled code. The compiler
4174
- * will prevent this function from being imported by userland code.
4175
- */
4176
- function registerStylesheet(stylesheet) {
4177
- signedStylesheetSet.add(stylesheet);
4178
- return stylesheet;
4179
- }
4180
- function isStylesheetRegistered(stylesheet) {
4181
- return signedStylesheetSet.has(stylesheet);
4182
- }
4183
4021
 
4184
4022
  /*
4185
4023
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7019,7 +6857,7 @@ var LWC = (function (exports) {
7019
6857
  if (!isLightningElement(elm)) {
7020
6858
  var vm = findVM(elm);
7021
6859
  if (process.env.NODE_ENV !== 'production') {
7022
- logWarnOnce("Element <".concat(elm.tagName.toLowerCase(), "> ") + (isUndefined$1(vm) ? '' : "owned by <".concat(vm.tagName.toLowerCase(), "> ")) + "uses non-standard property \"".concat(prop, "\". This will be removed in a future version of LWC. ") + "See https://sfdc.co/deprecated-aria");
6860
+ logWarnOnce("Element <".concat(elm.tagName.toLowerCase(), "> ") + (isUndefined$1(vm) ? '' : "owned by <".concat(vm.elm.tagName.toLowerCase(), "> ")) + "uses non-standard property \"".concat(prop, "\". This will be removed in a future version of LWC. ") + "See https://sfdc.co/deprecated-aria");
7023
6861
  }
7024
6862
  var setValueType;
7025
6863
  if (isSetter) {
@@ -7146,8 +6984,6 @@ var LWC = (function (exports) {
7146
6984
  return renderer.nextSibling(hydratedNode);
7147
6985
  }
7148
6986
  var NODE_VALUE_PROP = 'nodeValue';
7149
- var PARENT_NODE_PROP = 'parentNode';
7150
- var TAG_NAME_PROP = 'tagName';
7151
6987
  function textNodeContentsAreEqual(node, vnode, renderer) {
7152
6988
  var getProperty = renderer.getProperty;
7153
6989
  var nodeValue = getProperty(node, NODE_VALUE_PROP);
@@ -7159,22 +6995,6 @@ var LWC = (function (exports) {
7159
6995
  if (nodeValue === "\u200D" && vnode.text === '') {
7160
6996
  return true;
7161
6997
  }
7162
- // Special case for text nodes inside `<style>` tags – these are escaped when rendered server-size,
7163
- // but not when generated by the engine client-side.
7164
- var parentNode = getProperty(node, PARENT_NODE_PROP);
7165
- // Should never be null, but just to be safe, we check.
7166
- /* istanbul ignore else */
7167
- if (!isNull(parentNode)) {
7168
- var tagName = getProperty(parentNode, TAG_NAME_PROP);
7169
- // If the tagName is STYLE, then the following condition should always be true.
7170
- // The LWC compiler blocks using `<style>`s inside of templates, so it should be impossible
7171
- // for component authors to render different `<style>` text content on the client and server.
7172
- // But just to be safe, we check.
7173
- /* istanbul ignore next */
7174
- if (tagName === 'STYLE' && htmlEscape(vnode.text) === nodeValue) {
7175
- return true;
7176
- }
7177
- }
7178
6998
  return false;
7179
6999
  }
7180
7000
  function hydrateText(node, vnode, renderer) {
@@ -7834,12 +7654,12 @@ var LWC = (function (exports) {
7834
7654
  if (process.env.NODE_ENV !== 'production') {
7835
7655
  // TODO [#1292]: Remove the readonly decorator
7836
7656
  if (arguments.length !== 1) {
7837
- assert.fail('@readonly cannot be used as a decorator just yet, use it as a function with one argument to produce a readonly version of the provided value.');
7657
+ logError('@readonly cannot be used as a decorator just yet, use it as a function with one argument to produce a readonly version of the provided value.');
7838
7658
  }
7839
7659
  }
7840
7660
  return getReadOnlyProxy(obj);
7841
7661
  }
7842
- /* version: 2.43.0 */
7662
+ /* version: 2.45.0 */
7843
7663
 
7844
7664
  /*
7845
7665
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8265,7 +8085,7 @@ var LWC = (function (exports) {
8265
8085
  function isNull(obj) {
8266
8086
  return obj === null;
8267
8087
  }
8268
- /** version: 2.43.0 */
8088
+ /** version: 2.45.0 */
8269
8089
 
8270
8090
  /*
8271
8091
  * Copyright (c) 2023, salesforce.com, inc.
@@ -8907,7 +8727,7 @@ var LWC = (function (exports) {
8907
8727
  });
8908
8728
  });
8909
8729
  }
8910
- /* version: 2.43.0 */
8730
+ /* version: 2.45.0 */
8911
8731
 
8912
8732
  exports.LightningElement = LightningElement;
8913
8733
  exports.__unstable__ProfilerControl = profilerControl;
@@ -8928,7 +8748,6 @@ var LWC = (function (exports) {
8928
8748
  exports.register = register;
8929
8749
  exports.registerComponent = registerComponent;
8930
8750
  exports.registerDecorators = registerDecorators;
8931
- exports.registerStylesheet = registerStylesheet;
8932
8751
  exports.registerTemplate = registerTemplate;
8933
8752
  exports.renderer = renderer;
8934
8753
  exports.rendererFactory = rendererFactory;