lwc 2.35.0 → 2.35.2

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 (39) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +61 -134
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +61 -134
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +100 -74
  5. package/dist/engine-dom/iife/es5/engine-dom.js +249 -327
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +266 -244
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +61 -134
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +100 -74
  11. package/dist/engine-dom/umd/es5/engine-dom.js +249 -327
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +266 -244
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +47 -136
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +47 -136
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +11 -42
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +11 -42
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +8 -38
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +15 -44
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +12 -40
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +11 -42
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +8 -38
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +15 -44
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +12 -40
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  34. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  35. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  36. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  37. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  39. package/package.json +7 -7
@@ -32,10 +32,10 @@ var LWC = (function (exports) {
32
32
 
33
33
  var assert = /*#__PURE__*/Object.freeze({
34
34
  __proto__: null,
35
+ fail: fail,
35
36
  invariant: invariant,
36
- isTrue: isTrue$1,
37
37
  isFalse: isFalse$1,
38
- fail: fail
38
+ isTrue: isTrue$1
39
39
  });
40
40
 
41
41
  /*
@@ -205,41 +205,11 @@ var LWC = (function (exports) {
205
205
  * SPDX-License-Identifier: MIT
206
206
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
207
207
  */
208
- // Inspired from: https://mathiasbynens.be/notes/globalthis
209
- const _globalThis = /*@__PURE__*/ (function () {
210
- // On recent browsers, `globalThis` is already defined. In this case return it directly.
211
- if (typeof globalThis === 'object') {
212
- return globalThis;
213
- }
214
- let _globalThis;
215
- try {
216
- // eslint-disable-next-line no-extend-native
217
- Object.defineProperty(Object.prototype, '__magic__', {
218
- get: function () {
219
- return this;
220
- },
221
- configurable: true,
222
- });
223
- // __magic__ is undefined in Safari 10 and IE10 and older.
224
- // @ts-ignore
225
- // eslint-disable-next-line no-undef
226
- _globalThis = __magic__;
227
- // @ts-ignore
228
- delete Object.prototype.__magic__;
229
- }
230
- catch (ex) {
231
- // In IE8, Object.defineProperty only works on DOM objects.
232
- }
233
- finally {
234
- // If the magic above fails for some reason we assume that we are in a legacy browser.
235
- // Assume `window` exists in this case.
236
- if (typeof _globalThis === 'undefined') {
237
- // @ts-ignore
238
- _globalThis = window;
239
- }
240
- }
241
- return _globalThis;
242
- })();
208
+ // See browser support for globalThis:
209
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility
210
+ /* istanbul ignore next */
211
+ // @ts-ignore
212
+ const _globalThis = typeof globalThis === 'object' ? globalThis : window;
243
213
 
244
214
  /*
245
215
  * Copyright (c) 2018, salesforce.com, inc.
@@ -362,9 +332,9 @@ var LWC = (function (exports) {
362
332
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
363
333
  */
364
334
  // Increment whenever the LWC template compiler changes
365
- const LWC_VERSION = "2.35.0";
335
+ const LWC_VERSION = "2.35.2";
366
336
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
367
- /** version: 2.35.0 */
337
+ /** version: 2.35.2 */
368
338
 
369
339
  /**
370
340
  * Copyright (C) 2018 salesforce.com, inc.
@@ -417,7 +387,8 @@ var LWC = (function (exports) {
417
387
  console.warn(`Failed to set the value "${value}" for the runtime feature flag "${name}" because it is undefined. Available flags: ${availableFlags}.`);
418
388
  return;
419
389
  }
420
- if (process.env.NODE_ENV !== 'production') {
390
+ // This may seem redundant, but `process.env.NODE_ENV === 'test-karma-lwc'` is replaced by Karma tests
391
+ if (process.env.NODE_ENV === 'test-karma-lwc' || process.env.NODE_ENV !== 'production') {
421
392
  // Allow the same flag to be set more than once outside of production to enable testing
422
393
  lwcRuntimeFlags[name] = value;
423
394
  }
@@ -437,11 +408,12 @@ var LWC = (function (exports) {
437
408
  * purposes. It is a no-op when invoked in production mode.
438
409
  */
439
410
  function setFeatureFlagForTest(name, value) {
440
- if (process.env.NODE_ENV !== 'production') {
411
+ // This may seem redundant, but `process.env.NODE_ENV === 'test-karma-lwc'` is replaced by Karma tests
412
+ if (process.env.NODE_ENV === 'test-karma-lwc' || process.env.NODE_ENV !== 'production') {
441
413
  setFeatureFlag(name, value);
442
414
  }
443
415
  }
444
- /** version: 2.35.0 */
416
+ /** version: 2.35.2 */
445
417
 
446
418
  /**
447
419
  * Copyright (C) 2018 salesforce.com, inc.
@@ -505,7 +477,7 @@ var LWC = (function (exports) {
505
477
  }
506
478
  }
507
479
  }
508
- /** version: 2.35.0 */
480
+ /** version: 2.35.2 */
509
481
 
510
482
  /*
511
483
  * Copyright (c) 2018, salesforce.com, inc.
@@ -526,8 +498,7 @@ var LWC = (function (exports) {
526
498
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
527
499
  */
528
500
  // Only used in LWC's Karma tests
529
- // @ts-ignore
530
- if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
501
+ if (process.env.NODE_ENV === 'test-karma-lwc') {
531
502
  window.addEventListener('test-dummy-flag', () => {
532
503
  let hasFlag = false;
533
504
  if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
@@ -551,8 +522,7 @@ var LWC = (function (exports) {
551
522
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
552
523
  */
553
524
  // Only used in LWC's Karma tests
554
- // @ts-ignore
555
- if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
525
+ if (process.env.NODE_ENV === 'test-karma-lwc') {
556
526
  window.addEventListener('test-dummy-flag', () => {
557
527
  let hasFlag = false;
558
528
  if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
@@ -693,8 +663,8 @@ var LWC = (function (exports) {
693
663
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
694
664
  */
695
665
  const alreadyLoggedMessages = new Set();
696
- // @ts-ignore
697
- if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
666
+ // Only used in LWC's Karma tests
667
+ if (process.env.NODE_ENV === 'test-karma-lwc') {
698
668
  // @ts-ignore
699
669
  window.__lwcResetAlreadyLoggedMessages = () => {
700
670
  alreadyLoggedMessages.clear();
@@ -943,6 +913,14 @@ var LWC = (function (exports) {
943
913
  refVNodes[ref] = vnode;
944
914
  }
945
915
  }
916
+ // Throw an error if we're running in prod mode. Ensures code is truly removed from prod mode.
917
+ function assertNotProd() {
918
+ /* istanbul ignore if */
919
+ if (process.env.NODE_ENV === 'production') {
920
+ // this method should never leak to prod
921
+ throw new ReferenceError();
922
+ }
923
+ }
946
924
 
947
925
  /*
948
926
  * Copyright (c) 2020, salesforce.com, inc.
@@ -1148,27 +1126,18 @@ var LWC = (function (exports) {
1148
1126
  }
1149
1127
  let isDomMutationAllowed = false;
1150
1128
  function unlockDomMutation() {
1151
- if (process.env.NODE_ENV === 'production') {
1152
- // this method should never leak to prod
1153
- throw new ReferenceError();
1154
- }
1129
+ assertNotProd(); // this method should never leak to prod
1155
1130
  isDomMutationAllowed = true;
1156
1131
  }
1157
1132
  function lockDomMutation() {
1158
- if (process.env.NODE_ENV === 'production') {
1159
- // this method should never leak to prod
1160
- throw new ReferenceError();
1161
- }
1133
+ assertNotProd(); // this method should never leak to prod
1162
1134
  isDomMutationAllowed = false;
1163
1135
  }
1164
1136
  function logMissingPortalError(name, type) {
1165
1137
  return logError(`The \`${name}\` ${type} is available only on elements that use the \`lwc:dom="manual"\` directive.`);
1166
1138
  }
1167
1139
  function patchElementWithRestrictions(elm, options) {
1168
- if (process.env.NODE_ENV === 'production') {
1169
- // this method should never leak to prod
1170
- throw new ReferenceError();
1171
- }
1140
+ assertNotProd(); // this method should never leak to prod
1172
1141
  const originalOuterHTMLDescriptor = getPropertyDescriptor(elm, 'outerHTML');
1173
1142
  const descriptors = {
1174
1143
  outerHTML: generateAccessorDescriptor({
@@ -1249,10 +1218,7 @@ var LWC = (function (exports) {
1249
1218
  defineProperties(elm, descriptors);
1250
1219
  }
1251
1220
  function getShadowRootRestrictionsDescriptors(sr) {
1252
- if (process.env.NODE_ENV === 'production') {
1253
- // this method should never leak to prod
1254
- throw new ReferenceError();
1255
- }
1221
+ assertNotProd(); // this method should never leak to prod
1256
1222
  // Disallowing properties in dev mode only to avoid people doing the wrong
1257
1223
  // thing when using the real shadow root, because if that's the case,
1258
1224
  // the component will not work when running with synthetic shadow.
@@ -1293,10 +1259,7 @@ var LWC = (function (exports) {
1293
1259
  // Custom Elements Restrictions:
1294
1260
  // -----------------------------
1295
1261
  function getCustomElementRestrictionsDescriptors(elm) {
1296
- if (process.env.NODE_ENV === 'production') {
1297
- // this method should never leak to prod
1298
- throw new ReferenceError();
1299
- }
1262
+ assertNotProd(); // this method should never leak to prod
1300
1263
  const originalAddEventListener = elm.addEventListener;
1301
1264
  const originalInnerHTMLDescriptor = getPropertyDescriptor(elm, 'innerHTML');
1302
1265
  const originalOuterHTMLDescriptor = getPropertyDescriptor(elm, 'outerHTML');
@@ -1341,10 +1304,7 @@ var LWC = (function (exports) {
1341
1304
  };
1342
1305
  }
1343
1306
  function getComponentRestrictionsDescriptors() {
1344
- if (process.env.NODE_ENV === 'production') {
1345
- // this method should never leak to prod
1346
- throw new ReferenceError();
1347
- }
1307
+ assertNotProd(); // this method should never leak to prod
1348
1308
  return {
1349
1309
  tagName: generateAccessorDescriptor({
1350
1310
  get() {
@@ -1358,10 +1318,7 @@ var LWC = (function (exports) {
1358
1318
  };
1359
1319
  }
1360
1320
  function getLightningElementPrototypeRestrictionsDescriptors(proto) {
1361
- if (process.env.NODE_ENV === 'production') {
1362
- // this method should never leak to prod
1363
- throw new ReferenceError();
1364
- }
1321
+ assertNotProd(); // this method should never leak to prod
1365
1322
  const originalDispatchEvent = proto.dispatchEvent;
1366
1323
  const descriptors = {
1367
1324
  dispatchEvent: generateDataDescriptor({
@@ -2075,7 +2032,6 @@ var LWC = (function (exports) {
2075
2032
  }
2076
2033
  };
2077
2034
  }
2078
- const EMPTY_REFS = freeze(create(null));
2079
2035
  const refsCache = new WeakMap();
2080
2036
  /**
2081
2037
  * This class is the base class for any LWC element.
@@ -2363,7 +2319,6 @@ var LWC = (function (exports) {
2363
2319
  }
2364
2320
  const {
2365
2321
  refVNodes,
2366
- hasRefVNodes,
2367
2322
  cmpTemplate
2368
2323
  } = vm;
2369
2324
  // If the `cmpTemplate` is null, that means that the template has not been rendered yet. Most likely this occurs
@@ -2377,15 +2332,9 @@ var LWC = (function (exports) {
2377
2332
  // were introduced, we return undefined if the template has no refs defined
2378
2333
  // anywhere. This fixes components that may want to add an expando called `refs`
2379
2334
  // and are checking if it exists with `if (this.refs)` before adding it.
2380
- // Note it is not sufficient to just check if `refVNodes` is null or empty,
2381
- // because a template may have `lwc:ref` defined within a falsy `if:true` block.
2382
- if (!hasRefVNodes) {
2383
- return;
2384
- }
2385
- // For templates that are using `lwc:ref`, if there are no refs currently available
2386
- // (e.g. refs inside of a falsy `if:true` block), we return an empty object.
2335
+ // Note we use a null refVNodes to indicate that the template has no refs defined.
2387
2336
  if (isNull(refVNodes)) {
2388
- return EMPTY_REFS;
2337
+ return;
2389
2338
  }
2390
2339
  // The refNodes can be cached based on the refVNodes, since the refVNodes
2391
2340
  // are recreated from scratch every time the template is rendered.
@@ -3200,8 +3149,8 @@ var LWC = (function (exports) {
3200
3149
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3201
3150
  */
3202
3151
  let warned = false;
3203
- // @ts-ignore
3204
- if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
3152
+ // Only used in LWC's Karma tests
3153
+ if (process.env.NODE_ENV === 'test-karma-lwc') {
3205
3154
  // @ts-ignore
3206
3155
  window.__lwcResetWarnedOnVersionMismatch = () => {
3207
3156
  warned = false;
@@ -3497,10 +3446,7 @@ var LWC = (function (exports) {
3497
3446
  return canRefreshAllInstances;
3498
3447
  }
3499
3448
  function getTemplateOrSwappedTemplate(tpl) {
3500
- if (process.env.NODE_ENV === 'production') {
3501
- // this method should never leak to prod
3502
- throw new ReferenceError();
3503
- }
3449
+ assertNotProd(); // this method should never leak to prod
3504
3450
  const visited = new Set();
3505
3451
  while (swappedTemplateMap.has(tpl) && !visited.has(tpl)) {
3506
3452
  visited.add(tpl);
@@ -3509,10 +3455,7 @@ var LWC = (function (exports) {
3509
3455
  return tpl;
3510
3456
  }
3511
3457
  function getComponentOrSwappedComponent(Ctor) {
3512
- if (process.env.NODE_ENV === 'production') {
3513
- // this method should never leak to prod
3514
- throw new ReferenceError();
3515
- }
3458
+ assertNotProd(); // this method should never leak to prod
3516
3459
  const visited = new Set();
3517
3460
  while (swappedComponentMap.has(Ctor) && !visited.has(Ctor)) {
3518
3461
  visited.add(Ctor);
@@ -3521,10 +3464,7 @@ var LWC = (function (exports) {
3521
3464
  return Ctor;
3522
3465
  }
3523
3466
  function getStyleOrSwappedStyle(style) {
3524
- if (process.env.NODE_ENV === 'production') {
3525
- // this method should never leak to prod
3526
- throw new ReferenceError();
3527
- }
3467
+ assertNotProd(); // this method should never leak to prod
3528
3468
  const visited = new Set();
3529
3469
  while (swappedStyleMap.has(style) && !visited.has(style)) {
3530
3470
  visited.add(style);
@@ -3533,10 +3473,7 @@ var LWC = (function (exports) {
3533
3473
  return style;
3534
3474
  }
3535
3475
  function setActiveVM(vm) {
3536
- if (process.env.NODE_ENV === 'production') {
3537
- // this method should never leak to prod
3538
- throw new ReferenceError();
3539
- }
3476
+ assertNotProd(); // this method should never leak to prod
3540
3477
  // tracking active component
3541
3478
  const Ctor = vm.def.ctor;
3542
3479
  let componentVMs = activeComponents.get(Ctor);
@@ -3579,10 +3516,7 @@ var LWC = (function (exports) {
3579
3516
  }
3580
3517
  }
3581
3518
  function removeActiveVM(vm) {
3582
- if (process.env.NODE_ENV === 'production') {
3583
- // this method should never leak to prod
3584
- throw new ReferenceError();
3585
- }
3519
+ assertNotProd(); // this method should never leak to prod
3586
3520
  // tracking inactive component
3587
3521
  const Ctor = vm.def.ctor;
3588
3522
  let list = activeComponents.get(Ctor);
@@ -5755,10 +5689,7 @@ var LWC = (function (exports) {
5755
5689
  vmBeingRendered = vm;
5756
5690
  }
5757
5691
  function validateSlots(vm, html) {
5758
- if (process.env.NODE_ENV === 'production') {
5759
- // this method should never leak to prod
5760
- throw new ReferenceError();
5761
- }
5692
+ assertNotProd(); // this method should never leak to prod
5762
5693
  const { cmpSlots } = vm;
5763
5694
  const { slots = EmptyArray } = html;
5764
5695
  for (const slotName in cmpSlots.slotAssignments) {
@@ -5892,9 +5823,7 @@ var LWC = (function (exports) {
5892
5823
  setActiveVM(vm);
5893
5824
  }
5894
5825
  // reset the refs; they will be set during the tmpl() instantiation
5895
- const hasRefVNodes = Boolean(html.hasRefs);
5896
- vm.hasRefVNodes = hasRefVNodes;
5897
- vm.refVNodes = hasRefVNodes ? create(null) : null;
5826
+ vm.refVNodes = html.hasRefs ? create(null) : null;
5898
5827
  // right before producing the vnodes, we clear up all internal references
5899
5828
  // to custom elements from the template.
5900
5829
  vm.velements = [];
@@ -6081,7 +6010,7 @@ var LWC = (function (exports) {
6081
6010
  const cmpEventListenerMap = new WeakMap();
6082
6011
  function getWrappedComponentsListener(vm, listener) {
6083
6012
  if (!isFunction$1(listener)) {
6084
- throw new TypeError(); // avoiding problems with non-valid listeners
6013
+ throw new TypeError('Expected an EventListener but received ' + typeof listener); // avoiding problems with non-valid listeners
6085
6014
  }
6086
6015
  let wrappedListener = cmpEventListenerMap.get(listener);
6087
6016
  if (isUndefined$1(wrappedListener)) {
@@ -6226,7 +6155,6 @@ var LWC = (function (exports) {
6226
6155
  mode,
6227
6156
  owner,
6228
6157
  refVNodes: null,
6229
- hasRefVNodes: false,
6230
6158
  children: EmptyArray,
6231
6159
  aChildren: EmptyArray,
6232
6160
  velements: EmptyArray,
@@ -7494,7 +7422,7 @@ var LWC = (function (exports) {
7494
7422
  }
7495
7423
  return ctor;
7496
7424
  }
7497
- /* version: 2.35.0 */
7425
+ /* version: 2.35.2 */
7498
7426
 
7499
7427
  /*
7500
7428
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7602,8 +7530,7 @@ var LWC = (function (exports) {
7602
7530
  // Test utilities
7603
7531
  //
7604
7532
  // Only used in LWC's Karma tests
7605
- // @ts-ignore
7606
- if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
7533
+ if (process.env.NODE_ENV === 'test-karma-lwc') {
7607
7534
  // @ts-ignore
7608
7535
  window.__lwcResetGlobalStylesheets = () => {
7609
7536
  stylesheetCache.clear();
@@ -7773,7 +7700,7 @@ var LWC = (function (exports) {
7773
7700
  const cachedConstructors = new Map();
7774
7701
  const elementsUpgradedOutsideLWC = new WeakSet();
7775
7702
  let elementBeingUpgradedByLWC = false;
7776
- // Creates a constructor that is intended to be used as a vanilla custom element, except that the upgradeCallback is
7703
+ // Creates a constructor that is intended to be used directly as a custom element, except that the upgradeCallback is
7777
7704
  // passed in to the constructor so LWC can reuse the same custom element constructor for multiple components.
7778
7705
  // Another benefit is that only LWC can create components that actually do anything – if you do
7779
7706
  // `customElements.define('x-foo')`, then you don't have access to the upgradeCallback, so it's a dummy custom element.
@@ -7818,7 +7745,7 @@ var LWC = (function (exports) {
7818
7745
  }
7819
7746
  return UpgradableConstructor;
7820
7747
  };
7821
- const createCustomElementVanilla = (tagName, upgradeCallback, connectedCallback, disconnectedCallback) => {
7748
+ const createCustomElementUsingUpgradableConstructor = (tagName, upgradeCallback, connectedCallback, disconnectedCallback) => {
7822
7749
  // use global custom elements registry
7823
7750
  let UpgradableConstructor = cachedConstructors.get(tagName);
7824
7751
  if (isUndefined$1(UpgradableConstructor)) {
@@ -7846,7 +7773,7 @@ var LWC = (function (exports) {
7846
7773
  */
7847
7774
  /**
7848
7775
  * Create a scoped registry, i.e. a function that can create custom elements whose tag names
7849
- * do not conflict with vanilla custom elements having the same tag name.
7776
+ * do not conflict with third-party custom elements having the same tag name.
7850
7777
  */
7851
7778
  function createScopedRegistry() {
7852
7779
  if (!hasCustomElements) {
@@ -8387,10 +8314,10 @@ var LWC = (function (exports) {
8387
8314
  * We have three modes for creating custom elements:
8388
8315
  *
8389
8316
  * 1. Compat (legacy) browser support (e.g. IE11). Totally custom, doesn't rely on native browser APIs.
8390
- * 2. "Vanilla" custom elements registry. This system actually still allows us to have two LWC components with the
8391
- * same tag name, via a simple trick: every custom element constructor we define in the registry is basically
8392
- * the same. It's essentially a dummy `class extends HTMLElement` that accepts an `upgradeCallback` in its
8393
- * constructor, which allows us to have completely customized functionality for different components.
8317
+ * 2. "Upgradable constructor" custom element. This allows us to have two LWC components with the same tag name,
8318
+ * via a trick: every custom element constructor we define in the registry is basically the same. It's essentially
8319
+ * a dummy `class extends HTMLElement` that accepts an `upgradeCallback` in its constructor ("upgradable
8320
+ * constructor"), which allows us to have completely customized functionality for different components.
8394
8321
  * 3. "Scoped" (or "pivot") custom elements. This relies on a sophisticated system that emulates the "scoped custom
8395
8322
  * elements registry" proposal, with support for avoiding conflicts in tag names both between LWC components and
8396
8323
  * between LWC components and third-party elements. This uses a similar trick to #2, but is much more complex
@@ -8401,8 +8328,8 @@ var LWC = (function (exports) {
8401
8328
  if (lwcRuntimeFlags.ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY) {
8402
8329
  createCustomElement = createCustomElementScoped;
8403
8330
  } else {
8404
- // use global custom elements registry (vanilla)
8405
- createCustomElement = createCustomElementVanilla;
8331
+ // use the global registry, with an upgradable constructor for the defined custom element
8332
+ createCustomElement = createCustomElementUsingUpgradableConstructor;
8406
8333
  }
8407
8334
  } else {
8408
8335
  // no registry available here
@@ -8458,10 +8385,10 @@ var LWC = (function (exports) {
8458
8385
 
8459
8386
  var assert = /*#__PURE__*/Object.freeze({
8460
8387
  __proto__: null,
8388
+ fail: fail,
8461
8389
  invariant: invariant,
8462
- isTrue: isTrue$1,
8463
8390
  isFalse: isFalse$1,
8464
- fail: fail
8391
+ isTrue: isTrue$1
8465
8392
  });
8466
8393
  function isUndefined(obj) {
8467
8394
  return obj === undefined;
@@ -8469,7 +8396,7 @@ var LWC = (function (exports) {
8469
8396
  function isNull(obj) {
8470
8397
  return obj === null;
8471
8398
  }
8472
- /** version: 2.35.0 */
8399
+ /** version: 2.35.2 */
8473
8400
 
8474
8401
  /*
8475
8402
  * Copyright (c) 2018, salesforce.com, inc.
@@ -9030,7 +8957,7 @@ var LWC = (function (exports) {
9030
8957
  });
9031
8958
  freeze(LightningElement);
9032
8959
  seal(LightningElement.prototype);
9033
- /* version: 2.35.0 */
8960
+ /* version: 2.35.2 */
9034
8961
 
9035
8962
  exports.LightningElement = LightningElement;
9036
8963
  exports.__unstable__ProfilerControl = profilerControl;