lwc 2.4.0 → 2.5.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 (35) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +117 -64
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +117 -64
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +116 -63
  5. package/dist/engine-dom/iife/es5/engine-dom.js +133 -86
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +130 -83
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +117 -64
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +116 -63
  11. package/dist/engine-dom/umd/es5/engine-dom.js +133 -86
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +130 -83
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +117 -64
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +117 -64
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
  23. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
  25. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
  26. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  28. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  30. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  34. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  35. package/package.json +8 -8
@@ -298,6 +298,7 @@ var LWC = (function (exports) {
298
298
  var KEY__SHADOW_RESOLVER = '$shadowResolver$';
299
299
  var KEY__SHADOW_TOKEN = '$shadowToken$';
300
300
  var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
301
+ var KEY__SCOPED_CSS = '$scoped$';
301
302
  /**
302
303
  * Map composed of properties to attributes not following the HTML property to attribute mapping
303
304
  * convention.
@@ -346,7 +347,7 @@ var LWC = (function (exports) {
346
347
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
347
348
  return attributeName;
348
349
  }
349
- /** version: 2.4.0 */
350
+ /** version: 2.5.0 */
350
351
 
351
352
  /*
352
353
  * Copyright (c) 2018, salesforce.com, inc.
@@ -525,7 +526,7 @@ var LWC = (function (exports) {
525
526
  setFeatureFlag(name, value);
526
527
  }
527
528
  }
528
- /** version: 2.4.0 */
529
+ /** version: 2.5.0 */
529
530
 
530
531
  /* proxy-compat-disable */
531
532
 
@@ -4388,6 +4389,17 @@ var LWC = (function (exports) {
4388
4389
 
4389
4390
  function setElementShadowToken(elm, token) {
4390
4391
  elm.$shadowToken$ = token;
4392
+ } // Set the scope token class for *.scoped.css styles
4393
+
4394
+
4395
+ function setScopeTokenClassIfNecessary(elm, owner) {
4396
+ var cmpTemplate = owner.cmpTemplate,
4397
+ context = owner.context;
4398
+ var token = cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken;
4399
+
4400
+ if (!isUndefined$1(token) && context.hasScopedStyles) {
4401
+ owner.renderer.getClassList(elm).add(token);
4402
+ }
4391
4403
  }
4392
4404
 
4393
4405
  function updateNodeHook(oldVnode, vnode) {
@@ -4451,12 +4463,13 @@ var LWC = (function (exports) {
4451
4463
 
4452
4464
  function fallbackElmHook(elm, vnode) {
4453
4465
  var owner = vnode.owner;
4466
+ setScopeTokenClassIfNecessary(elm, owner);
4454
4467
 
4455
4468
  if (owner.shadowMode === 1
4456
4469
  /* Synthetic */
4457
4470
  ) {
4458
4471
  var context = vnode.data.context;
4459
- var shadowAttribute = owner.context.shadowAttribute;
4472
+ var stylesheetToken = owner.context.stylesheetToken;
4460
4473
 
4461
4474
  if (!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
4462
4475
  /* manual */
@@ -4467,7 +4480,7 @@ var LWC = (function (exports) {
4467
4480
  // into each element from the template, so they can be styled accordingly.
4468
4481
 
4469
4482
 
4470
- setElementShadowToken(elm, shadowAttribute);
4483
+ setElementShadowToken(elm, stylesheetToken);
4471
4484
  }
4472
4485
 
4473
4486
  if (process.env.NODE_ENV !== 'production') {
@@ -4546,14 +4559,15 @@ var LWC = (function (exports) {
4546
4559
  mode = vnode.mode,
4547
4560
  ctor = vnode.ctor,
4548
4561
  owner = vnode.owner;
4562
+ setScopeTokenClassIfNecessary(elm, owner);
4549
4563
 
4550
4564
  if (owner.shadowMode === 1
4551
4565
  /* Synthetic */
4552
4566
  ) {
4553
- var shadowAttribute = owner.context.shadowAttribute; // when running in synthetic shadow mode, we need to set the shadowToken value
4567
+ var stylesheetToken = owner.context.stylesheetToken; // when running in synthetic shadow mode, we need to set the shadowToken value
4554
4568
  // into each element from the template, so they can be styled accordingly.
4555
4569
 
4556
- setElementShadowToken(elm, shadowAttribute);
4570
+ setElementShadowToken(elm, stylesheetToken);
4557
4571
  }
4558
4572
 
4559
4573
  var def = getComponentInternalDef(ctor);
@@ -5327,6 +5341,10 @@ var LWC = (function (exports) {
5327
5341
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
5328
5342
  */
5329
5343
 
5344
+ function makeHostToken(token) {
5345
+ return "".concat(token, "-host");
5346
+ }
5347
+
5330
5348
  function createInlineStyleVNode(content) {
5331
5349
  return h('style', {
5332
5350
  key: 'style',
@@ -5336,55 +5354,92 @@ var LWC = (function (exports) {
5336
5354
  }, [t(content)]);
5337
5355
  }
5338
5356
 
5339
- function updateSyntheticShadowAttributes(vm, template) {
5357
+ function updateStylesheetToken(vm, template) {
5340
5358
  var elm = vm.elm,
5341
5359
  context = vm.context,
5342
5360
  renderer = vm.renderer,
5343
- renderMode = vm.renderMode;
5361
+ renderMode = vm.renderMode,
5362
+ shadowMode = vm.shadowMode;
5344
5363
  var newStylesheets = template.stylesheets,
5345
- newStylesheetTokens = template.stylesheetTokens;
5346
- var newTokens; // Reset the styling token applied to the host element.
5364
+ newStylesheetToken = template.stylesheetToken;
5365
+ var isSyntheticShadow = renderMode === 1
5366
+ /* Shadow */
5367
+ && shadowMode === 1
5368
+ /* Synthetic */
5369
+ ;
5370
+ var hasScopedStyles = context.hasScopedStyles;
5371
+ var newToken;
5372
+ var newHasTokenInClass;
5373
+ var newHasTokenInAttribute; // Reset the styling token applied to the host element.
5374
+
5375
+ var oldToken = context.stylesheetToken,
5376
+ oldHasTokenInClass = context.hasTokenInClass,
5377
+ oldHasTokenInAttribute = context.hasTokenInAttribute;
5347
5378
 
5348
- var oldHostAttribute = context.hostAttribute;
5379
+ if (oldHasTokenInClass) {
5380
+ renderer.getClassList(elm).remove(makeHostToken(oldToken));
5381
+ }
5349
5382
 
5350
- if (!isUndefined$1(oldHostAttribute)) {
5351
- renderer.removeAttribute(elm, oldHostAttribute);
5383
+ if (oldHasTokenInAttribute) {
5384
+ renderer.removeAttribute(elm, makeHostToken(oldToken));
5352
5385
  } // Apply the new template styling token to the host element, if the new template has any
5353
- // associated stylesheets.
5386
+ // associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
5354
5387
 
5355
5388
 
5356
- if (!isUndefined$1(newStylesheets) && newStylesheets.length !== 0 && renderMode === 1
5357
- /* Shadow */
5358
- ) {
5359
- newTokens = newStylesheetTokens;
5360
- }
5389
+ if (!isUndefined$1(newStylesheets) && newStylesheets.length !== 0) {
5390
+ newToken = newStylesheetToken;
5391
+ } // Set the new styling token on the host element
5392
+
5393
+
5394
+ if (!isUndefined$1(newToken)) {
5395
+ if (hasScopedStyles) {
5396
+ renderer.getClassList(elm).add(makeHostToken(newToken));
5397
+ newHasTokenInClass = true;
5398
+ }
5361
5399
 
5362
- if (!isUndefined$1(newTokens)) {
5363
- renderer.setAttribute(elm, newTokens.hostAttribute, '');
5400
+ if (isSyntheticShadow) {
5401
+ renderer.setAttribute(elm, makeHostToken(newToken), '');
5402
+ newHasTokenInAttribute = true;
5403
+ }
5364
5404
  } // Update the styling tokens present on the context object.
5365
5405
 
5366
5406
 
5367
- context.hostAttribute = newTokens === null || newTokens === void 0 ? void 0 : newTokens.hostAttribute;
5368
- context.shadowAttribute = newTokens === null || newTokens === void 0 ? void 0 : newTokens.shadowAttribute;
5407
+ context.stylesheetToken = newToken;
5408
+ context.hasTokenInClass = newHasTokenInClass;
5409
+ context.hasTokenInAttribute = newHasTokenInAttribute;
5369
5410
  }
5370
5411
 
5371
- function evaluateStylesheetsContent(stylesheets, hostSelector, shadowSelector, nativeShadow) {
5412
+ function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5372
5413
  var content = [];
5373
5414
 
5374
5415
  for (var _i12 = 0; _i12 < stylesheets.length; _i12++) {
5375
5416
  var stylesheet = stylesheets[_i12];
5376
5417
 
5377
5418
  if (isArray$1(stylesheet)) {
5378
- ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, hostSelector, shadowSelector, nativeShadow));
5419
+ ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
5379
5420
  } else {
5380
5421
  if (process.env.NODE_ENV !== 'production') {
5381
5422
  // in dev-mode, we support hot swapping of stylesheet, which means that
5382
5423
  // the component instance might be attempting to use an old version of
5383
5424
  // the stylesheet, while internally, we have a replacement for it.
5384
5425
  stylesheet = getStyleOrSwappedStyle(stylesheet);
5385
- }
5426
+ } // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5427
+ // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5386
5428
 
5387
- ArrayPush$1.call(content, stylesheet(hostSelector, shadowSelector, nativeShadow));
5429
+
5430
+ var isScopedCss = stylesheet[KEY__SCOPED_CSS];
5431
+ var useActualHostSelector = vm.renderMode === 0
5432
+ /* Light */
5433
+ ? !isScopedCss : vm.shadowMode === 0
5434
+ /* Native */
5435
+ ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5436
+
5437
+ var scopeToken = isScopedCss || vm.shadowMode === 1
5438
+ /* Synthetic */
5439
+ && vm.renderMode === 1
5440
+ /* Shadow */
5441
+ ? stylesheetToken : undefined;
5442
+ ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
5388
5443
  }
5389
5444
  }
5390
5445
 
@@ -5393,31 +5448,11 @@ var LWC = (function (exports) {
5393
5448
 
5394
5449
  function getStylesheetsContent(vm, template) {
5395
5450
  var stylesheets = template.stylesheets,
5396
- stylesheetTokens = template.stylesheetTokens;
5397
- var renderMode = vm.renderMode,
5398
- shadowMode = vm.shadowMode;
5451
+ stylesheetToken = template.stylesheetToken;
5399
5452
  var content = [];
5400
5453
 
5401
5454
  if (!isUndefined$1(stylesheets) && stylesheets.length !== 0) {
5402
- var hostSelector;
5403
- var shadowSelector; // Scoping with the tokens is only necessary for synthetic shadow. For both
5404
- // light DOM elements and native shadow, we just render the CSS as-is.
5405
-
5406
- if (renderMode === 1
5407
- /* Shadow */
5408
- && shadowMode === 1
5409
- /* Synthetic */
5410
- && !isUndefined$1(stylesheetTokens)) {
5411
- hostSelector = "[".concat(stylesheetTokens.hostAttribute, "]");
5412
- shadowSelector = "[".concat(stylesheetTokens.shadowAttribute, "]");
5413
- } else {
5414
- hostSelector = '';
5415
- shadowSelector = '';
5416
- }
5417
-
5418
- content = evaluateStylesheetsContent(stylesheets, hostSelector, shadowSelector, shadowMode === 0
5419
- /* Native */
5420
- );
5455
+ content = evaluateStylesheetsContent(stylesheets, stylesheetToken, vm);
5421
5456
  }
5422
5457
 
5423
5458
  return content;
@@ -5674,8 +5709,7 @@ var LWC = (function (exports) {
5674
5709
  context = vm.context,
5675
5710
  cmpSlots = vm.cmpSlots,
5676
5711
  cmpTemplate = vm.cmpTemplate,
5677
- tro = vm.tro,
5678
- shadowMode = vm.shadowMode;
5712
+ tro = vm.tro;
5679
5713
  tro.observe(function () {
5680
5714
  // Reset the cache memoizer for template when needed.
5681
5715
  if (html !== cmpTemplate) {
@@ -5699,15 +5733,12 @@ var LWC = (function (exports) {
5699
5733
 
5700
5734
  vm.cmpTemplate = html; // Create a brand new template cache for the swapped templated.
5701
5735
 
5702
- context.tplCache = create(null); // Update the synthetic shadow attributes on the host element if necessary.
5736
+ context.tplCache = create(null); // Set the computeHasScopedStyles property in the context, to avoid recomputing it repeatedly.
5703
5737
 
5704
- if (shadowMode === 1
5705
- /* Synthetic */
5706
- ) {
5707
- updateSyntheticShadowAttributes(vm, html);
5708
- } // Evaluate, create stylesheet and cache the produced VNode for future
5709
- // re-rendering.
5738
+ context.hasScopedStyles = computeHasScopedStyles(html); // Update the scoping token on the host element.
5710
5739
 
5740
+ updateStylesheetToken(vm, html); // Evaluate, create stylesheet and cache the produced VNode for future
5741
+ // re-rendering.
5711
5742
 
5712
5743
  var stylesheetsContent = getStylesheetsContent(vm, html);
5713
5744
  context.styleVNode = stylesheetsContent.length === 0 ? null : createStylesheet(vm, stylesheetsContent);
@@ -5747,6 +5778,20 @@ var LWC = (function (exports) {
5747
5778
 
5748
5779
  return vnodes;
5749
5780
  }
5781
+
5782
+ function computeHasScopedStyles(template) {
5783
+ var stylesheets = template.stylesheets;
5784
+
5785
+ if (!isUndefined$1(stylesheets)) {
5786
+ for (var _i15 = 0; _i15 < stylesheets.length; _i15++) {
5787
+ if (isTrue(stylesheets[_i15][KEY__SCOPED_CSS])) {
5788
+ return true;
5789
+ }
5790
+ }
5791
+ }
5792
+
5793
+ return false;
5794
+ }
5750
5795
  /*
5751
5796
  * Copyright (c) 2018, salesforce.com, inc.
5752
5797
  * All rights reserved.
@@ -5969,8 +6014,8 @@ var LWC = (function (exports) {
5969
6014
  assert.isTrue(isObject(service), "Invalid service declaration, ".concat(service, ": service must be an object"));
5970
6015
  }
5971
6016
 
5972
- for (var _i15 = 0; _i15 < hooks.length; ++_i15) {
5973
- var hookName = hooks[_i15];
6017
+ for (var _i16 = 0; _i16 < hooks.length; ++_i16) {
6018
+ var hookName = hooks[_i16];
5974
6019
 
5975
6020
  if (hookName in service) {
5976
6021
  var l = Services[hookName];
@@ -5993,8 +6038,8 @@ var LWC = (function (exports) {
5993
6038
  def = vm.def,
5994
6039
  context = vm.context;
5995
6040
 
5996
- for (var _i16 = 0, _len6 = cbs.length; _i16 < _len6; ++_i16) {
5997
- cbs[_i16].call(undefined, component, {}, def, context);
6041
+ for (var _i17 = 0, _len6 = cbs.length; _i17 < _len6; ++_i17) {
6042
+ cbs[_i17].call(undefined, component, {}, def, context);
5998
6043
  }
5999
6044
  }
6000
6045
  /*
@@ -6139,8 +6184,10 @@ var LWC = (function (exports) {
6139
6184
  renderMode: def.renderMode,
6140
6185
  shadowMode: null,
6141
6186
  context: {
6142
- hostAttribute: undefined,
6143
- shadowAttribute: undefined,
6187
+ stylesheetToken: undefined,
6188
+ hasTokenInClass: undefined,
6189
+ hasTokenInAttribute: undefined,
6190
+ hasScopedStyles: undefined,
6144
6191
  styleVNode: null,
6145
6192
  tplCache: EmptyObject,
6146
6193
  wiredConnecting: EmptyArray,
@@ -6349,19 +6396,19 @@ var LWC = (function (exports) {
6349
6396
  });
6350
6397
  rehydrateQueue = []; // reset to a new queue
6351
6398
 
6352
- for (var _i17 = 0, _len7 = vms.length; _i17 < _len7; _i17 += 1) {
6353
- var vm = vms[_i17];
6399
+ for (var _i18 = 0, _len7 = vms.length; _i18 < _len7; _i18 += 1) {
6400
+ var vm = vms[_i18];
6354
6401
 
6355
6402
  try {
6356
6403
  rehydrate(vm);
6357
6404
  } catch (error) {
6358
- if (_i17 + 1 < _len7) {
6405
+ if (_i18 + 1 < _len7) {
6359
6406
  // pieces of the queue are still pending to be rehydrated, those should have priority
6360
6407
  if (rehydrateQueue.length === 0) {
6361
6408
  addCallbackToNextTick(flushRehydrationQueue);
6362
6409
  }
6363
6410
 
6364
- ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i17 + 1));
6411
+ ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i18 + 1));
6365
6412
  } // we need to end the measure before throwing.
6366
6413
 
6367
6414
 
@@ -6465,8 +6512,8 @@ var LWC = (function (exports) {
6465
6512
  var vCustomElementCollection = vm.velements; // Reporting disconnection for every child in inverse order since they are
6466
6513
  // inserted in reserved order.
6467
6514
 
6468
- for (var _i18 = vCustomElementCollection.length - 1; _i18 >= 0; _i18 -= 1) {
6469
- var elm = vCustomElementCollection[_i18].elm; // There are two cases where the element could be undefined:
6515
+ for (var _i19 = vCustomElementCollection.length - 1; _i19 >= 0; _i19 -= 1) {
6516
+ var elm = vCustomElementCollection[_i19].elm; // There are two cases where the element could be undefined:
6470
6517
  // * when there is an error during the construction phase, and an error
6471
6518
  // boundary picks it, there is a possibility that the VCustomElement
6472
6519
  // is not properly initialized, and therefore is should be ignored.
@@ -6500,8 +6547,8 @@ var LWC = (function (exports) {
6500
6547
 
6501
6548
 
6502
6549
  function recursivelyDisconnectChildren(vnodes) {
6503
- for (var _i19 = 0, _len8 = vnodes.length; _i19 < _len8; _i19 += 1) {
6504
- var vnode = vnodes[_i19];
6550
+ for (var _i20 = 0, _len8 = vnodes.length; _i20 < _len8; _i20 += 1) {
6551
+ var vnode = vnodes[_i20];
6505
6552
 
6506
6553
  if (!isNull(vnode) && isArray$1(vnode.children) && !isUndefined$1(vnode.elm)) {
6507
6554
  // vnode is a VElement with children
@@ -6525,8 +6572,8 @@ var LWC = (function (exports) {
6525
6572
  renderer = vm.renderer;
6526
6573
  var rootNode = getRenderRoot(vm);
6527
6574
 
6528
- for (var _i20 = 0, _len9 = children.length; _i20 < _len9; _i20++) {
6529
- var child = children[_i20];
6575
+ for (var _i21 = 0, _len9 = children.length; _i21 < _len9; _i21++) {
6576
+ var child = children[_i21];
6530
6577
 
6531
6578
  if (!isNull(child) && !isUndefined$1(child.elm)) {
6532
6579
  renderer.remove(child.elm, rootNode);
@@ -6571,8 +6618,8 @@ var LWC = (function (exports) {
6571
6618
  var oldSlots = vm.cmpSlots;
6572
6619
  var cmpSlots = vm.cmpSlots = create(null);
6573
6620
 
6574
- for (var _i21 = 0, _len10 = children.length; _i21 < _len10; _i21 += 1) {
6575
- var vnode = children[_i21];
6621
+ for (var _i22 = 0, _len10 = children.length; _i22 < _len10; _i22 += 1) {
6622
+ var vnode = children[_i22];
6576
6623
 
6577
6624
  if (isNull(vnode)) {
6578
6625
  continue;
@@ -6602,8 +6649,8 @@ var LWC = (function (exports) {
6602
6649
  return;
6603
6650
  }
6604
6651
 
6605
- for (var _i22 = 0, _len11 = oldKeys.length; _i22 < _len11; _i22 += 1) {
6606
- var key = oldKeys[_i22];
6652
+ for (var _i23 = 0, _len11 = oldKeys.length; _i23 < _len11; _i23 += 1) {
6653
+ var key = oldKeys[_i23];
6607
6654
 
6608
6655
  if (isUndefined$1(cmpSlots[key]) || oldSlots[key].length !== cmpSlots[key].length) {
6609
6656
  markComponentAsDirty(vm);
@@ -6966,8 +7013,8 @@ var LWC = (function (exports) {
6966
7013
  function connectWireAdapters(vm) {
6967
7014
  var wiredConnecting = vm.context.wiredConnecting;
6968
7015
 
6969
- for (var _i23 = 0, _len12 = wiredConnecting.length; _i23 < _len12; _i23 += 1) {
6970
- wiredConnecting[_i23]();
7016
+ for (var _i24 = 0, _len12 = wiredConnecting.length; _i24 < _len12; _i24 += 1) {
7017
+ wiredConnecting[_i24]();
6971
7018
  }
6972
7019
  }
6973
7020
 
@@ -6975,8 +7022,8 @@ var LWC = (function (exports) {
6975
7022
  var wiredDisconnecting = vm.context.wiredDisconnecting;
6976
7023
  runWithBoundaryProtection(vm, vm, noop, function () {
6977
7024
  // job
6978
- for (var _i24 = 0, _len13 = wiredDisconnecting.length; _i24 < _len13; _i24 += 1) {
6979
- wiredDisconnecting[_i24]();
7025
+ for (var _i25 = 0, _len13 = wiredDisconnecting.length; _i25 < _len13; _i25 += 1) {
7026
+ wiredDisconnecting[_i25]();
6980
7027
  }
6981
7028
  }, noop);
6982
7029
  }
@@ -7051,7 +7098,7 @@ var LWC = (function (exports) {
7051
7098
 
7052
7099
  return reactiveMembrane.getReadOnlyProxy(obj);
7053
7100
  }
7054
- /* version: 2.4.0 */
7101
+ /* version: 2.5.0 */
7055
7102
 
7056
7103
  /*
7057
7104
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7066,8 +7113,8 @@ var LWC = (function (exports) {
7066
7113
  if (process.env.NODE_ENV === 'development') {
7067
7114
  // @ts-ignore
7068
7115
  window.__lwcResetGlobalStylesheets = function () {
7069
- for (var _i25 = 0, _Object$keys = Object.keys(globalStylesheets); _i25 < _Object$keys.length; _i25++) {
7070
- var key = _Object$keys[_i25];
7116
+ for (var _i26 = 0, _Object$keys = Object.keys(globalStylesheets); _i26 < _Object$keys.length; _i26++) {
7117
+ var key = _Object$keys[_i26];
7071
7118
  delete globalStylesheets[key];
7072
7119
  }
7073
7120
  };
@@ -7604,7 +7651,7 @@ var LWC = (function (exports) {
7604
7651
  });
7605
7652
  freeze(LightningElement);
7606
7653
  seal(LightningElement.prototype);
7607
- /* version: 2.4.0 */
7654
+ /* version: 2.5.0 */
7608
7655
 
7609
7656
  exports.LightningElement = LightningElement;
7610
7657
  exports.__unstable__ProfilerControl = profilerControl;