lwc 2.5.10 → 2.7.1

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 (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +100 -96
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +100 -96
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +99 -91
  5. package/dist/engine-dom/iife/es5/engine-dom.js +112 -108
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +111 -103
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +100 -96
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +99 -91
  11. package/dist/engine-dom/umd/es5/engine-dom.js +112 -108
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +111 -103
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +111 -104
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +111 -104
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +56 -133
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +56 -133
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +56 -133
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +67 -130
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +67 -130
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +56 -133
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +56 -133
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +67 -130
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +67 -130
  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 +11 -11
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +11 -11
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +11 -11
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +11 -11
  41. package/package.json +8 -8
@@ -15,13 +15,13 @@ var LWC = (function (exports) {
15
15
 
16
16
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
17
17
 
18
- function _get2(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get2(target, property, receiver || target); }
18
+ function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
19
19
 
20
20
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
21
21
 
22
22
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -39,7 +39,7 @@ var LWC = (function (exports) {
39
39
 
40
40
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
41
41
 
42
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
42
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
43
43
 
44
44
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
45
45
 
@@ -55,7 +55,7 @@ var LWC = (function (exports) {
55
55
 
56
56
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
57
57
 
58
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
58
+ 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); }
59
59
 
60
60
  /* proxy-compat-disable */
61
61
 
@@ -348,7 +348,7 @@ var LWC = (function (exports) {
348
348
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
349
349
  return attributeName;
350
350
  }
351
- /** version: 2.5.10 */
351
+ /** version: 2.7.1 */
352
352
 
353
353
  /*
354
354
  * Copyright (c) 2018, salesforce.com, inc.
@@ -460,8 +460,6 @@ var LWC = (function (exports) {
460
460
  ENABLE_NODE_LIST_PATCH: null,
461
461
  ENABLE_HTML_COLLECTIONS_PATCH: null,
462
462
  ENABLE_NODE_PATCH: null,
463
- ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
464
- ENABLE_MIXED_SHADOW_MODE: null,
465
463
  ENABLE_WIRE_SYNC_EMIT: null
466
464
  };
467
465
 
@@ -528,7 +526,7 @@ var LWC = (function (exports) {
528
526
  setFeatureFlag(name, value);
529
527
  }
530
528
  }
531
- /** version: 2.5.10 */
529
+ /** version: 2.7.1 */
532
530
 
533
531
  /* proxy-compat-disable */
534
532
 
@@ -1912,7 +1910,8 @@ var LWC = (function (exports) {
1912
1910
  */
1913
1911
 
1914
1912
  var isArray = Array.isArray;
1915
- var _getPrototypeOf = Object.getPrototypeOf,
1913
+ var ObjectDotPrototype = Object.prototype,
1914
+ _getPrototypeOf = Object.getPrototypeOf,
1916
1915
  ObjectCreate = Object.create,
1917
1916
  ObjectDefineProperty = Object.defineProperty,
1918
1917
  _isExtensible = Object.isExtensible,
@@ -2573,8 +2572,6 @@ var LWC = (function (exports) {
2573
2572
  init();
2574
2573
  }
2575
2574
 
2576
- var ObjectDotPrototype = Object.prototype;
2577
-
2578
2575
  function defaultValueIsObservable(value) {
2579
2576
  // intentionally checking for null
2580
2577
  if (value === null) {
@@ -2603,68 +2600,54 @@ var LWC = (function (exports) {
2603
2600
  /* do nothing */
2604
2601
  };
2605
2602
 
2606
- var defaultValueDistortion = function defaultValueDistortion(value) {
2607
- return value;
2608
- };
2609
-
2610
2603
  function createShadowTarget(value) {
2611
2604
  return isArray(value) ? [] : {};
2612
2605
  }
2613
2606
 
2614
- var ReactiveMembrane = /*#__PURE__*/function () {
2615
- function ReactiveMembrane(options) {
2616
- _classCallCheck(this, ReactiveMembrane);
2607
+ var ObservableMembrane = /*#__PURE__*/function () {
2608
+ function ObservableMembrane() {
2609
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2610
+
2611
+ _classCallCheck(this, ObservableMembrane);
2617
2612
 
2618
- this.valueDistortion = defaultValueDistortion;
2619
- this.valueMutated = defaultValueMutated;
2620
- this.valueObserved = defaultValueObserved;
2621
- this.valueIsObservable = defaultValueIsObservable;
2622
2613
  this.readOnlyObjectGraph = new WeakMap();
2623
2614
  this.reactiveObjectGraph = new WeakMap();
2624
-
2625
- if (!isUndefined(options)) {
2626
- var _valueDistortion = options.valueDistortion,
2627
- _valueMutated = options.valueMutated,
2628
- _valueObserved = options.valueObserved,
2629
- valueIsObservable = options.valueIsObservable,
2630
- tagPropertyKey = options.tagPropertyKey;
2631
- this.valueDistortion = isFunction(_valueDistortion) ? _valueDistortion : defaultValueDistortion;
2632
- this.valueMutated = isFunction(_valueMutated) ? _valueMutated : defaultValueMutated;
2633
- this.valueObserved = isFunction(_valueObserved) ? _valueObserved : defaultValueObserved;
2634
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2635
- this.tagPropertyKey = tagPropertyKey;
2636
- }
2615
+ var valueMutated = options.valueMutated,
2616
+ valueObserved = options.valueObserved,
2617
+ valueIsObservable = options.valueIsObservable,
2618
+ tagPropertyKey = options.tagPropertyKey;
2619
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2620
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2621
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2622
+ this.tagPropertyKey = tagPropertyKey;
2637
2623
  }
2638
2624
 
2639
- _createClass(ReactiveMembrane, [{
2625
+ _createClass(ObservableMembrane, [{
2640
2626
  key: "getProxy",
2641
2627
  value: function getProxy(value) {
2642
2628
  var unwrappedValue = unwrap$1(value);
2643
- var distorted = this.valueDistortion(unwrappedValue);
2644
2629
 
2645
- if (this.valueIsObservable(distorted)) {
2646
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2647
- // when trying to extract the writable version of a readonly
2648
- // we return the readonly.
2630
+ if (this.valueIsObservable(unwrappedValue)) {
2631
+ // When trying to extract the writable version of a readonly we return the readonly.
2632
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2649
2633
  return value;
2650
2634
  }
2651
2635
 
2652
- return this.getReactiveHandler(unwrappedValue, distorted);
2636
+ return this.getReactiveHandler(unwrappedValue);
2653
2637
  }
2654
2638
 
2655
- return distorted;
2639
+ return unwrappedValue;
2656
2640
  }
2657
2641
  }, {
2658
2642
  key: "getReadOnlyProxy",
2659
2643
  value: function getReadOnlyProxy(value) {
2660
2644
  value = unwrap$1(value);
2661
- var distorted = this.valueDistortion(value);
2662
2645
 
2663
- if (this.valueIsObservable(distorted)) {
2664
- return this.getReadOnlyHandler(value, distorted);
2646
+ if (this.valueIsObservable(value)) {
2647
+ return this.getReadOnlyHandler(value);
2665
2648
  }
2666
2649
 
2667
- return distorted;
2650
+ return value;
2668
2651
  }
2669
2652
  }, {
2670
2653
  key: "unwrapProxy",
@@ -2673,39 +2656,39 @@ var LWC = (function (exports) {
2673
2656
  }
2674
2657
  }, {
2675
2658
  key: "getReactiveHandler",
2676
- value: function getReactiveHandler(value, distortedValue) {
2677
- var proxy = this.reactiveObjectGraph.get(distortedValue);
2659
+ value: function getReactiveHandler(value) {
2660
+ var proxy = this.reactiveObjectGraph.get(value);
2678
2661
 
2679
2662
  if (isUndefined(proxy)) {
2680
2663
  // caching the proxy after the first time it is accessed
2681
- var handler = new ReactiveProxyHandler(this, distortedValue);
2682
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2664
+ var handler = new ReactiveProxyHandler(this, value);
2665
+ proxy = new Proxy(createShadowTarget(value), handler);
2683
2666
  registerProxy(proxy, value);
2684
- this.reactiveObjectGraph.set(distortedValue, proxy);
2667
+ this.reactiveObjectGraph.set(value, proxy);
2685
2668
  }
2686
2669
 
2687
2670
  return proxy;
2688
2671
  }
2689
2672
  }, {
2690
2673
  key: "getReadOnlyHandler",
2691
- value: function getReadOnlyHandler(value, distortedValue) {
2692
- var proxy = this.readOnlyObjectGraph.get(distortedValue);
2674
+ value: function getReadOnlyHandler(value) {
2675
+ var proxy = this.readOnlyObjectGraph.get(value);
2693
2676
 
2694
2677
  if (isUndefined(proxy)) {
2695
2678
  // caching the proxy after the first time it is accessed
2696
- var handler = new ReadOnlyHandler(this, distortedValue);
2697
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2679
+ var handler = new ReadOnlyHandler(this, value);
2680
+ proxy = new Proxy(createShadowTarget(value), handler);
2698
2681
  registerProxy(proxy, value);
2699
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2682
+ this.readOnlyObjectGraph.set(value, proxy);
2700
2683
  }
2701
2684
 
2702
2685
  return proxy;
2703
2686
  }
2704
2687
  }]);
2705
2688
 
2706
- return ReactiveMembrane;
2689
+ return ObservableMembrane;
2707
2690
  }();
2708
- /** version: 1.1.5 */
2691
+ /** version: 2.0.0 */
2709
2692
 
2710
2693
  /*
2711
2694
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2716,15 +2699,9 @@ var LWC = (function (exports) {
2716
2699
 
2717
2700
 
2718
2701
  var lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2719
-
2720
- function valueDistortion(value) {
2721
- return value;
2722
- }
2723
-
2724
- var reactiveMembrane = new ReactiveMembrane({
2702
+ var reactiveMembrane = new ObservableMembrane({
2725
2703
  valueObserved: valueObserved,
2726
2704
  valueMutated: valueMutated,
2727
- valueDistortion: valueDistortion,
2728
2705
  tagPropertyKey: lockerLivePropertyKey
2729
2706
  });
2730
2707
  /**
@@ -2733,16 +2710,9 @@ var LWC = (function (exports) {
2733
2710
  * change or being removed.
2734
2711
  */
2735
2712
 
2736
- var unwrap = function unwrap(value) {
2737
- var unwrapped = reactiveMembrane.unwrapProxy(value);
2738
-
2739
- if (unwrapped !== value) {
2740
- // if value is a proxy, unwrap to access original value and apply distortion
2741
- return valueDistortion(unwrapped);
2742
- }
2743
-
2744
- return value;
2745
- };
2713
+ function unwrap(value) {
2714
+ return reactiveMembrane.unwrapProxy(value);
2715
+ }
2746
2716
  /*
2747
2717
  * Copyright (c) 2018, salesforce.com, inc.
2748
2718
  * All rights reserved.
@@ -3841,7 +3811,7 @@ var LWC = (function (exports) {
3841
3811
  return _super4.apply(this, arguments);
3842
3812
  }
3843
3813
 
3844
- return HTMLBridgeElement;
3814
+ return _createClass(HTMLBridgeElement);
3845
3815
  }(SuperClass);
3846
3816
  } else {
3847
3817
  HTMLBridgeElement = function HTMLBridgeElement() {
@@ -4285,10 +4255,6 @@ var LWC = (function (exports) {
4285
4255
 
4286
4256
  assert.isTrue(Ctor.constructor, "Missing ".concat(ctorName, ".constructor, ").concat(ctorName, " should have a \"constructor\" property."));
4287
4257
 
4288
- if (!runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
4289
- assert.isFalse('shadowSupportMode' in Ctor, "".concat(ctorName || 'Anonymous class', " is an invalid LWC component. The shadowSupportMode static property is not available in this environment."));
4290
- }
4291
-
4292
4258
  if (!isUndefined$1(ctorShadowSupportMode)) {
4293
4259
  assert.invariant(ctorShadowSupportMode === "any"
4294
4260
  /* Any */
@@ -4646,12 +4612,14 @@ var LWC = (function (exports) {
4646
4612
  }
4647
4613
 
4648
4614
  function updateChildrenHook(oldVnode, vnode) {
4649
- var children = vnode.children,
4650
- owner = vnode.owner;
4651
- var fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
4652
- runWithBoundaryProtection(owner, owner.owner, noop, function () {
4653
- fn(vnode.elm, oldVnode.children, children);
4654
- }, noop);
4615
+ var elm = vnode.elm,
4616
+ children = vnode.children;
4617
+
4618
+ if (hasDynamicChildren(children)) {
4619
+ updateDynamicChildren(elm, oldVnode.children, children);
4620
+ } else {
4621
+ updateStaticChildren(elm, oldVnode.children, children);
4622
+ }
4655
4623
  }
4656
4624
 
4657
4625
  function allocateChildrenHook(vnode, vm) {
@@ -4995,7 +4963,7 @@ var LWC = (function (exports) {
4995
4963
  return _this4;
4996
4964
  }
4997
4965
 
4998
- return LWCUpgradableElement;
4966
+ return _createClass(LWCUpgradableElement);
4999
4967
  }(renderer.HTMLElement);
5000
4968
 
5001
4969
  renderer.defineCustomElement(tagName, CE);
@@ -5842,6 +5810,7 @@ var LWC = (function (exports) {
5842
5810
 
5843
5811
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5844
5812
  var content = [];
5813
+ var root;
5845
5814
 
5846
5815
  for (var _i16 = 0; _i16 < stylesheets.length; _i16++) {
5847
5816
  var stylesheet = stylesheets[_i16];
@@ -5854,23 +5823,46 @@ var LWC = (function (exports) {
5854
5823
  // the component instance might be attempting to use an old version of
5855
5824
  // the stylesheet, while internally, we have a replacement for it.
5856
5825
  stylesheet = getStyleOrSwappedStyle(stylesheet);
5857
- } // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5858
- // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5826
+ }
5859
5827
 
5828
+ var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5829
+
5830
+ var scopeToken = isScopedCss || vm.shadowMode === 1
5831
+ /* Synthetic */
5832
+ && vm.renderMode === 1
5833
+ /* Shadow */
5834
+ ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5835
+ // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5860
5836
 
5861
- var isScopedCss = stylesheet[KEY__SCOPED_CSS];
5862
5837
  var useActualHostSelector = vm.renderMode === 0
5863
5838
  /* Light */
5864
5839
  ? !isScopedCss : vm.shadowMode === 0
5865
5840
  /* Native */
5866
- ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5841
+ ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
5842
+ // we use an attribute selector on the host to simulate :dir().
5867
5843
 
5868
- var scopeToken = isScopedCss || vm.shadowMode === 1
5869
- /* Synthetic */
5870
- && vm.renderMode === 1
5844
+ var useNativeDirPseudoclass = void 0;
5845
+
5846
+ if (vm.renderMode === 1
5871
5847
  /* Shadow */
5872
- ? stylesheetToken : undefined;
5873
- ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
5848
+ ) {
5849
+ useNativeDirPseudoclass = vm.shadowMode === 0
5850
+ /* Native */
5851
+ ;
5852
+ } else {
5853
+ // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
5854
+ // At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
5855
+ if (isUndefined$1(root)) {
5856
+ // Only calculate the root once as necessary
5857
+ root = getNearestShadowComponent(vm);
5858
+ }
5859
+
5860
+ useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
5861
+ /* Native */
5862
+ ;
5863
+ }
5864
+
5865
+ ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
5874
5866
  }
5875
5867
  }
5876
5868
 
@@ -5892,14 +5884,12 @@ var LWC = (function (exports) {
5892
5884
  // https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
5893
5885
 
5894
5886
 
5895
- function getNearestNativeShadowComponent(vm) {
5887
+ function getNearestShadowComponent(vm) {
5896
5888
  var owner = vm;
5897
5889
 
5898
5890
  while (!isNull(owner)) {
5899
5891
  if (owner.renderMode === 1
5900
5892
  /* Shadow */
5901
- && owner.shadowMode === 0
5902
- /* Native */
5903
5893
  ) {
5904
5894
  return owner;
5905
5895
  }
@@ -5910,6 +5900,20 @@ var LWC = (function (exports) {
5910
5900
  return owner;
5911
5901
  }
5912
5902
 
5903
+ function getNearestNativeShadowComponent(vm) {
5904
+ var owner = getNearestShadowComponent(vm);
5905
+
5906
+ if (!isNull(owner) && owner.shadowMode === 1
5907
+ /* Synthetic */
5908
+ ) {
5909
+ // Synthetic-within-native is impossible. So if the nearest shadow component is
5910
+ // synthetic, we know we won't find a native component if we go any further.
5911
+ return null;
5912
+ }
5913
+
5914
+ return owner;
5915
+ }
5916
+
5913
5917
  function createStylesheet(vm, stylesheets) {
5914
5918
  var renderer = vm.renderer,
5915
5919
  renderMode = vm.renderMode,
@@ -6021,7 +6025,7 @@ var LWC = (function (exports) {
6021
6025
  if (isProfilerEnabled) {
6022
6026
  currentDispatcher(opId, 0
6023
6027
  /* Start */
6024
- , vm.tagName, vm.idx);
6028
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6025
6029
  }
6026
6030
  }
6027
6031
 
@@ -6035,7 +6039,7 @@ var LWC = (function (exports) {
6035
6039
  if (isProfilerEnabled) {
6036
6040
  currentDispatcher(opId, 1
6037
6041
  /* Stop */
6038
- , vm.tagName, vm.idx);
6042
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6039
6043
  }
6040
6044
  }
6041
6045
 
@@ -6049,7 +6053,7 @@ var LWC = (function (exports) {
6049
6053
  if (isProfilerEnabled) {
6050
6054
  currentDispatcher(opId, 0
6051
6055
  /* Start */
6052
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6056
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
6053
6057
  }
6054
6058
  }
6055
6059
 
@@ -6063,7 +6067,7 @@ var LWC = (function (exports) {
6063
6067
  if (isProfilerEnabled) {
6064
6068
  currentDispatcher(opId, 1
6065
6069
  /* Stop */
6066
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6070
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
6067
6071
  }
6068
6072
  }
6069
6073
  /*
@@ -7235,7 +7239,7 @@ var LWC = (function (exports) {
7235
7239
  return _this5;
7236
7240
  }
7237
7241
 
7238
- return WireContextRegistrationEvent;
7242
+ return _createClass(WireContextRegistrationEvent);
7239
7243
  }( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
7240
7244
 
7241
7245
  function createFieldDataCallback(vm, name) {
@@ -7579,7 +7583,7 @@ var LWC = (function (exports) {
7579
7583
  hooksAreSet = true;
7580
7584
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7581
7585
  }
7582
- /* version: 2.5.10 */
7586
+ /* version: 2.7.1 */
7583
7587
 
7584
7588
  /*
7585
7589
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7636,7 +7640,7 @@ var LWC = (function (exports) {
7636
7640
  return _super7.apply(this, arguments);
7637
7641
  }
7638
7642
 
7639
- return clazz;
7643
+ return _createClass(clazz);
7640
7644
  }(HTMLElementAlias);
7641
7645
 
7642
7646
  customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
@@ -8232,7 +8236,7 @@ var LWC = (function (exports) {
8232
8236
  });
8233
8237
  freeze(LightningElement);
8234
8238
  seal(LightningElement.prototype);
8235
- /* version: 2.5.10 */
8239
+ /* version: 2.7.1 */
8236
8240
 
8237
8241
  exports.LightningElement = LightningElement;
8238
8242
  exports.__unstable__ProfilerControl = profilerControl;