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
@@ -18,13 +18,13 @@
18
18
 
19
19
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
20
20
 
21
- 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); }
21
+ 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); }
22
22
 
23
23
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
24
24
 
25
25
  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; }
26
26
 
27
- 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); }
27
+ 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); }
28
28
 
29
29
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
30
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  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); } }
44
44
 
45
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
45
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
46
46
 
47
47
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
48
48
 
@@ -58,7 +58,7 @@
58
58
 
59
59
  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; }
60
60
 
61
- 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); }
61
+ 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); }
62
62
 
63
63
  /* proxy-compat-disable */
64
64
 
@@ -351,7 +351,7 @@
351
351
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
352
352
  return attributeName;
353
353
  }
354
- /** version: 2.5.10 */
354
+ /** version: 2.7.1 */
355
355
 
356
356
  /*
357
357
  * Copyright (c) 2018, salesforce.com, inc.
@@ -463,8 +463,6 @@
463
463
  ENABLE_NODE_LIST_PATCH: null,
464
464
  ENABLE_HTML_COLLECTIONS_PATCH: null,
465
465
  ENABLE_NODE_PATCH: null,
466
- ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
467
- ENABLE_MIXED_SHADOW_MODE: null,
468
466
  ENABLE_WIRE_SYNC_EMIT: null
469
467
  };
470
468
 
@@ -531,7 +529,7 @@
531
529
  setFeatureFlag(name, value);
532
530
  }
533
531
  }
534
- /** version: 2.5.10 */
532
+ /** version: 2.7.1 */
535
533
 
536
534
  /* proxy-compat-disable */
537
535
 
@@ -1915,7 +1913,8 @@
1915
1913
  */
1916
1914
 
1917
1915
  var isArray = Array.isArray;
1918
- var _getPrototypeOf = Object.getPrototypeOf,
1916
+ var ObjectDotPrototype = Object.prototype,
1917
+ _getPrototypeOf = Object.getPrototypeOf,
1919
1918
  ObjectCreate = Object.create,
1920
1919
  ObjectDefineProperty = Object.defineProperty,
1921
1920
  _isExtensible = Object.isExtensible,
@@ -2576,8 +2575,6 @@
2576
2575
  init();
2577
2576
  }
2578
2577
 
2579
- var ObjectDotPrototype = Object.prototype;
2580
-
2581
2578
  function defaultValueIsObservable(value) {
2582
2579
  // intentionally checking for null
2583
2580
  if (value === null) {
@@ -2606,68 +2603,54 @@
2606
2603
  /* do nothing */
2607
2604
  };
2608
2605
 
2609
- var defaultValueDistortion = function defaultValueDistortion(value) {
2610
- return value;
2611
- };
2612
-
2613
2606
  function createShadowTarget(value) {
2614
2607
  return isArray(value) ? [] : {};
2615
2608
  }
2616
2609
 
2617
- var ReactiveMembrane = /*#__PURE__*/function () {
2618
- function ReactiveMembrane(options) {
2619
- _classCallCheck(this, ReactiveMembrane);
2610
+ var ObservableMembrane = /*#__PURE__*/function () {
2611
+ function ObservableMembrane() {
2612
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2613
+
2614
+ _classCallCheck(this, ObservableMembrane);
2620
2615
 
2621
- this.valueDistortion = defaultValueDistortion;
2622
- this.valueMutated = defaultValueMutated;
2623
- this.valueObserved = defaultValueObserved;
2624
- this.valueIsObservable = defaultValueIsObservable;
2625
2616
  this.readOnlyObjectGraph = new WeakMap();
2626
2617
  this.reactiveObjectGraph = new WeakMap();
2627
-
2628
- if (!isUndefined(options)) {
2629
- var _valueDistortion = options.valueDistortion,
2630
- _valueMutated = options.valueMutated,
2631
- _valueObserved = options.valueObserved,
2632
- valueIsObservable = options.valueIsObservable,
2633
- tagPropertyKey = options.tagPropertyKey;
2634
- this.valueDistortion = isFunction(_valueDistortion) ? _valueDistortion : defaultValueDistortion;
2635
- this.valueMutated = isFunction(_valueMutated) ? _valueMutated : defaultValueMutated;
2636
- this.valueObserved = isFunction(_valueObserved) ? _valueObserved : defaultValueObserved;
2637
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2638
- this.tagPropertyKey = tagPropertyKey;
2639
- }
2618
+ var valueMutated = options.valueMutated,
2619
+ valueObserved = options.valueObserved,
2620
+ valueIsObservable = options.valueIsObservable,
2621
+ tagPropertyKey = options.tagPropertyKey;
2622
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2623
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2624
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2625
+ this.tagPropertyKey = tagPropertyKey;
2640
2626
  }
2641
2627
 
2642
- _createClass(ReactiveMembrane, [{
2628
+ _createClass(ObservableMembrane, [{
2643
2629
  key: "getProxy",
2644
2630
  value: function getProxy(value) {
2645
2631
  var unwrappedValue = unwrap$1(value);
2646
- var distorted = this.valueDistortion(unwrappedValue);
2647
2632
 
2648
- if (this.valueIsObservable(distorted)) {
2649
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2650
- // when trying to extract the writable version of a readonly
2651
- // we return the readonly.
2633
+ if (this.valueIsObservable(unwrappedValue)) {
2634
+ // When trying to extract the writable version of a readonly we return the readonly.
2635
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2652
2636
  return value;
2653
2637
  }
2654
2638
 
2655
- return this.getReactiveHandler(unwrappedValue, distorted);
2639
+ return this.getReactiveHandler(unwrappedValue);
2656
2640
  }
2657
2641
 
2658
- return distorted;
2642
+ return unwrappedValue;
2659
2643
  }
2660
2644
  }, {
2661
2645
  key: "getReadOnlyProxy",
2662
2646
  value: function getReadOnlyProxy(value) {
2663
2647
  value = unwrap$1(value);
2664
- var distorted = this.valueDistortion(value);
2665
2648
 
2666
- if (this.valueIsObservable(distorted)) {
2667
- return this.getReadOnlyHandler(value, distorted);
2649
+ if (this.valueIsObservable(value)) {
2650
+ return this.getReadOnlyHandler(value);
2668
2651
  }
2669
2652
 
2670
- return distorted;
2653
+ return value;
2671
2654
  }
2672
2655
  }, {
2673
2656
  key: "unwrapProxy",
@@ -2676,39 +2659,39 @@
2676
2659
  }
2677
2660
  }, {
2678
2661
  key: "getReactiveHandler",
2679
- value: function getReactiveHandler(value, distortedValue) {
2680
- var proxy = this.reactiveObjectGraph.get(distortedValue);
2662
+ value: function getReactiveHandler(value) {
2663
+ var proxy = this.reactiveObjectGraph.get(value);
2681
2664
 
2682
2665
  if (isUndefined(proxy)) {
2683
2666
  // caching the proxy after the first time it is accessed
2684
- var handler = new ReactiveProxyHandler(this, distortedValue);
2685
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2667
+ var handler = new ReactiveProxyHandler(this, value);
2668
+ proxy = new Proxy(createShadowTarget(value), handler);
2686
2669
  registerProxy(proxy, value);
2687
- this.reactiveObjectGraph.set(distortedValue, proxy);
2670
+ this.reactiveObjectGraph.set(value, proxy);
2688
2671
  }
2689
2672
 
2690
2673
  return proxy;
2691
2674
  }
2692
2675
  }, {
2693
2676
  key: "getReadOnlyHandler",
2694
- value: function getReadOnlyHandler(value, distortedValue) {
2695
- var proxy = this.readOnlyObjectGraph.get(distortedValue);
2677
+ value: function getReadOnlyHandler(value) {
2678
+ var proxy = this.readOnlyObjectGraph.get(value);
2696
2679
 
2697
2680
  if (isUndefined(proxy)) {
2698
2681
  // caching the proxy after the first time it is accessed
2699
- var handler = new ReadOnlyHandler(this, distortedValue);
2700
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2682
+ var handler = new ReadOnlyHandler(this, value);
2683
+ proxy = new Proxy(createShadowTarget(value), handler);
2701
2684
  registerProxy(proxy, value);
2702
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2685
+ this.readOnlyObjectGraph.set(value, proxy);
2703
2686
  }
2704
2687
 
2705
2688
  return proxy;
2706
2689
  }
2707
2690
  }]);
2708
2691
 
2709
- return ReactiveMembrane;
2692
+ return ObservableMembrane;
2710
2693
  }();
2711
- /** version: 1.1.5 */
2694
+ /** version: 2.0.0 */
2712
2695
 
2713
2696
  /*
2714
2697
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2719,15 +2702,9 @@
2719
2702
 
2720
2703
 
2721
2704
  var lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2722
-
2723
- function valueDistortion(value) {
2724
- return value;
2725
- }
2726
-
2727
- var reactiveMembrane = new ReactiveMembrane({
2705
+ var reactiveMembrane = new ObservableMembrane({
2728
2706
  valueObserved: valueObserved,
2729
2707
  valueMutated: valueMutated,
2730
- valueDistortion: valueDistortion,
2731
2708
  tagPropertyKey: lockerLivePropertyKey
2732
2709
  });
2733
2710
  /**
@@ -2736,16 +2713,9 @@
2736
2713
  * change or being removed.
2737
2714
  */
2738
2715
 
2739
- var unwrap = function unwrap(value) {
2740
- var unwrapped = reactiveMembrane.unwrapProxy(value);
2741
-
2742
- if (unwrapped !== value) {
2743
- // if value is a proxy, unwrap to access original value and apply distortion
2744
- return valueDistortion(unwrapped);
2745
- }
2746
-
2747
- return value;
2748
- };
2716
+ function unwrap(value) {
2717
+ return reactiveMembrane.unwrapProxy(value);
2718
+ }
2749
2719
  /*
2750
2720
  * Copyright (c) 2018, salesforce.com, inc.
2751
2721
  * All rights reserved.
@@ -3844,7 +3814,7 @@
3844
3814
  return _super4.apply(this, arguments);
3845
3815
  }
3846
3816
 
3847
- return HTMLBridgeElement;
3817
+ return _createClass(HTMLBridgeElement);
3848
3818
  }(SuperClass);
3849
3819
  } else {
3850
3820
  HTMLBridgeElement = function HTMLBridgeElement() {
@@ -4288,10 +4258,6 @@
4288
4258
 
4289
4259
  assert.isTrue(Ctor.constructor, "Missing ".concat(ctorName, ".constructor, ").concat(ctorName, " should have a \"constructor\" property."));
4290
4260
 
4291
- if (!runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
4292
- assert.isFalse('shadowSupportMode' in Ctor, "".concat(ctorName || 'Anonymous class', " is an invalid LWC component. The shadowSupportMode static property is not available in this environment."));
4293
- }
4294
-
4295
4261
  if (!isUndefined$1(ctorShadowSupportMode)) {
4296
4262
  assert.invariant(ctorShadowSupportMode === "any"
4297
4263
  /* Any */
@@ -4649,12 +4615,14 @@
4649
4615
  }
4650
4616
 
4651
4617
  function updateChildrenHook(oldVnode, vnode) {
4652
- var children = vnode.children,
4653
- owner = vnode.owner;
4654
- var fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
4655
- runWithBoundaryProtection(owner, owner.owner, noop, function () {
4656
- fn(vnode.elm, oldVnode.children, children);
4657
- }, noop);
4618
+ var elm = vnode.elm,
4619
+ children = vnode.children;
4620
+
4621
+ if (hasDynamicChildren(children)) {
4622
+ updateDynamicChildren(elm, oldVnode.children, children);
4623
+ } else {
4624
+ updateStaticChildren(elm, oldVnode.children, children);
4625
+ }
4658
4626
  }
4659
4627
 
4660
4628
  function allocateChildrenHook(vnode, vm) {
@@ -4998,7 +4966,7 @@
4998
4966
  return _this4;
4999
4967
  }
5000
4968
 
5001
- return LWCUpgradableElement;
4969
+ return _createClass(LWCUpgradableElement);
5002
4970
  }(renderer.HTMLElement);
5003
4971
 
5004
4972
  renderer.defineCustomElement(tagName, CE);
@@ -5845,6 +5813,7 @@
5845
5813
 
5846
5814
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5847
5815
  var content = [];
5816
+ var root;
5848
5817
 
5849
5818
  for (var _i16 = 0; _i16 < stylesheets.length; _i16++) {
5850
5819
  var stylesheet = stylesheets[_i16];
@@ -5857,23 +5826,46 @@
5857
5826
  // the component instance might be attempting to use an old version of
5858
5827
  // the stylesheet, while internally, we have a replacement for it.
5859
5828
  stylesheet = getStyleOrSwappedStyle(stylesheet);
5860
- } // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5861
- // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5829
+ }
5862
5830
 
5831
+ var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5832
+
5833
+ var scopeToken = isScopedCss || vm.shadowMode === 1
5834
+ /* Synthetic */
5835
+ && vm.renderMode === 1
5836
+ /* Shadow */
5837
+ ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5838
+ // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5863
5839
 
5864
- var isScopedCss = stylesheet[KEY__SCOPED_CSS];
5865
5840
  var useActualHostSelector = vm.renderMode === 0
5866
5841
  /* Light */
5867
5842
  ? !isScopedCss : vm.shadowMode === 0
5868
5843
  /* Native */
5869
- ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5844
+ ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
5845
+ // we use an attribute selector on the host to simulate :dir().
5870
5846
 
5871
- var scopeToken = isScopedCss || vm.shadowMode === 1
5872
- /* Synthetic */
5873
- && vm.renderMode === 1
5847
+ var useNativeDirPseudoclass = void 0;
5848
+
5849
+ if (vm.renderMode === 1
5874
5850
  /* Shadow */
5875
- ? stylesheetToken : undefined;
5876
- ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
5851
+ ) {
5852
+ useNativeDirPseudoclass = vm.shadowMode === 0
5853
+ /* Native */
5854
+ ;
5855
+ } else {
5856
+ // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
5857
+ // At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
5858
+ if (isUndefined$1(root)) {
5859
+ // Only calculate the root once as necessary
5860
+ root = getNearestShadowComponent(vm);
5861
+ }
5862
+
5863
+ useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
5864
+ /* Native */
5865
+ ;
5866
+ }
5867
+
5868
+ ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
5877
5869
  }
5878
5870
  }
5879
5871
 
@@ -5895,14 +5887,12 @@
5895
5887
  // https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
5896
5888
 
5897
5889
 
5898
- function getNearestNativeShadowComponent(vm) {
5890
+ function getNearestShadowComponent(vm) {
5899
5891
  var owner = vm;
5900
5892
 
5901
5893
  while (!isNull(owner)) {
5902
5894
  if (owner.renderMode === 1
5903
5895
  /* Shadow */
5904
- && owner.shadowMode === 0
5905
- /* Native */
5906
5896
  ) {
5907
5897
  return owner;
5908
5898
  }
@@ -5913,6 +5903,20 @@
5913
5903
  return owner;
5914
5904
  }
5915
5905
 
5906
+ function getNearestNativeShadowComponent(vm) {
5907
+ var owner = getNearestShadowComponent(vm);
5908
+
5909
+ if (!isNull(owner) && owner.shadowMode === 1
5910
+ /* Synthetic */
5911
+ ) {
5912
+ // Synthetic-within-native is impossible. So if the nearest shadow component is
5913
+ // synthetic, we know we won't find a native component if we go any further.
5914
+ return null;
5915
+ }
5916
+
5917
+ return owner;
5918
+ }
5919
+
5916
5920
  function createStylesheet(vm, stylesheets) {
5917
5921
  var renderer = vm.renderer,
5918
5922
  renderMode = vm.renderMode,
@@ -6024,7 +6028,7 @@
6024
6028
  if (isProfilerEnabled) {
6025
6029
  currentDispatcher(opId, 0
6026
6030
  /* Start */
6027
- , vm.tagName, vm.idx);
6031
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6028
6032
  }
6029
6033
  }
6030
6034
 
@@ -6038,7 +6042,7 @@
6038
6042
  if (isProfilerEnabled) {
6039
6043
  currentDispatcher(opId, 1
6040
6044
  /* Stop */
6041
- , vm.tagName, vm.idx);
6045
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6042
6046
  }
6043
6047
  }
6044
6048
 
@@ -6052,7 +6056,7 @@
6052
6056
  if (isProfilerEnabled) {
6053
6057
  currentDispatcher(opId, 0
6054
6058
  /* Start */
6055
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6059
+ , 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);
6056
6060
  }
6057
6061
  }
6058
6062
 
@@ -6066,7 +6070,7 @@
6066
6070
  if (isProfilerEnabled) {
6067
6071
  currentDispatcher(opId, 1
6068
6072
  /* Stop */
6069
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6073
+ , 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);
6070
6074
  }
6071
6075
  }
6072
6076
  /*
@@ -7238,7 +7242,7 @@
7238
7242
  return _this5;
7239
7243
  }
7240
7244
 
7241
- return WireContextRegistrationEvent;
7245
+ return _createClass(WireContextRegistrationEvent);
7242
7246
  }( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
7243
7247
 
7244
7248
  function createFieldDataCallback(vm, name) {
@@ -7582,7 +7586,7 @@
7582
7586
  hooksAreSet = true;
7583
7587
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7584
7588
  }
7585
- /* version: 2.5.10 */
7589
+ /* version: 2.7.1 */
7586
7590
 
7587
7591
  /*
7588
7592
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7639,7 +7643,7 @@
7639
7643
  return _super7.apply(this, arguments);
7640
7644
  }
7641
7645
 
7642
- return clazz;
7646
+ return _createClass(clazz);
7643
7647
  }(HTMLElementAlias);
7644
7648
 
7645
7649
  customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
@@ -8235,7 +8239,7 @@
8235
8239
  });
8236
8240
  freeze(LightningElement);
8237
8241
  seal(LightningElement.prototype);
8238
- /* version: 2.5.10 */
8242
+ /* version: 2.7.1 */
8239
8243
 
8240
8244
  exports.LightningElement = LightningElement;
8241
8245
  exports.__unstable__ProfilerControl = profilerControl;