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
 
@@ -53,7 +53,7 @@ var LWC = (function (exports) {
53
53
 
54
54
  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; }
55
55
 
56
- 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); }
56
+ 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); }
57
57
 
58
58
  /* proxy-compat-disable */
59
59
 
@@ -341,7 +341,7 @@ var LWC = (function (exports) {
341
341
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
342
342
  return attributeName;
343
343
  }
344
- /** version: 2.5.10 */
344
+ /** version: 2.7.1 */
345
345
 
346
346
  /*
347
347
  * Copyright (c) 2018, salesforce.com, inc.
@@ -453,8 +453,6 @@ var LWC = (function (exports) {
453
453
  ENABLE_NODE_LIST_PATCH: null,
454
454
  ENABLE_HTML_COLLECTIONS_PATCH: null,
455
455
  ENABLE_NODE_PATCH: null,
456
- ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
457
- ENABLE_MIXED_SHADOW_MODE: null,
458
456
  ENABLE_WIRE_SYNC_EMIT: null
459
457
  };
460
458
 
@@ -513,7 +511,7 @@ var LWC = (function (exports) {
513
511
 
514
512
  function setFeatureFlagForTest(name, value) {
515
513
  }
516
- /** version: 2.5.10 */
514
+ /** version: 2.7.1 */
517
515
 
518
516
  /* proxy-compat-disable */
519
517
 
@@ -1494,7 +1492,8 @@ var LWC = (function (exports) {
1494
1492
  */
1495
1493
 
1496
1494
  var isArray = Array.isArray;
1497
- var _getPrototypeOf = Object.getPrototypeOf,
1495
+ var ObjectDotPrototype = Object.prototype,
1496
+ _getPrototypeOf = Object.getPrototypeOf,
1498
1497
  ObjectCreate = Object.create,
1499
1498
  ObjectDefineProperty = Object.defineProperty,
1500
1499
  _isExtensible = Object.isExtensible,
@@ -2008,8 +2007,6 @@ var LWC = (function (exports) {
2008
2007
  return ReadOnlyHandler;
2009
2008
  }(BaseProxyHandler);
2010
2009
 
2011
- var ObjectDotPrototype = Object.prototype;
2012
-
2013
2010
  function defaultValueIsObservable(value) {
2014
2011
  // intentionally checking for null
2015
2012
  if (value === null) {
@@ -2038,68 +2035,54 @@ var LWC = (function (exports) {
2038
2035
  /* do nothing */
2039
2036
  };
2040
2037
 
2041
- var defaultValueDistortion = function defaultValueDistortion(value) {
2042
- return value;
2043
- };
2044
-
2045
2038
  function createShadowTarget(value) {
2046
2039
  return isArray(value) ? [] : {};
2047
2040
  }
2048
2041
 
2049
- var ReactiveMembrane = /*#__PURE__*/function () {
2050
- function ReactiveMembrane(options) {
2051
- _classCallCheck(this, ReactiveMembrane);
2042
+ var ObservableMembrane = /*#__PURE__*/function () {
2043
+ function ObservableMembrane() {
2044
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2045
+
2046
+ _classCallCheck(this, ObservableMembrane);
2052
2047
 
2053
- this.valueDistortion = defaultValueDistortion;
2054
- this.valueMutated = defaultValueMutated;
2055
- this.valueObserved = defaultValueObserved;
2056
- this.valueIsObservable = defaultValueIsObservable;
2057
2048
  this.readOnlyObjectGraph = new WeakMap();
2058
2049
  this.reactiveObjectGraph = new WeakMap();
2059
-
2060
- if (!isUndefined(options)) {
2061
- var _valueDistortion = options.valueDistortion,
2062
- _valueMutated = options.valueMutated,
2063
- _valueObserved = options.valueObserved,
2064
- valueIsObservable = options.valueIsObservable,
2065
- tagPropertyKey = options.tagPropertyKey;
2066
- this.valueDistortion = isFunction(_valueDistortion) ? _valueDistortion : defaultValueDistortion;
2067
- this.valueMutated = isFunction(_valueMutated) ? _valueMutated : defaultValueMutated;
2068
- this.valueObserved = isFunction(_valueObserved) ? _valueObserved : defaultValueObserved;
2069
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2070
- this.tagPropertyKey = tagPropertyKey;
2071
- }
2050
+ var valueMutated = options.valueMutated,
2051
+ valueObserved = options.valueObserved,
2052
+ valueIsObservable = options.valueIsObservable,
2053
+ tagPropertyKey = options.tagPropertyKey;
2054
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2055
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2056
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2057
+ this.tagPropertyKey = tagPropertyKey;
2072
2058
  }
2073
2059
 
2074
- _createClass(ReactiveMembrane, [{
2060
+ _createClass(ObservableMembrane, [{
2075
2061
  key: "getProxy",
2076
2062
  value: function getProxy(value) {
2077
2063
  var unwrappedValue = unwrap$1(value);
2078
- var distorted = this.valueDistortion(unwrappedValue);
2079
2064
 
2080
- if (this.valueIsObservable(distorted)) {
2081
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2082
- // when trying to extract the writable version of a readonly
2083
- // we return the readonly.
2065
+ if (this.valueIsObservable(unwrappedValue)) {
2066
+ // When trying to extract the writable version of a readonly we return the readonly.
2067
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2084
2068
  return value;
2085
2069
  }
2086
2070
 
2087
- return this.getReactiveHandler(unwrappedValue, distorted);
2071
+ return this.getReactiveHandler(unwrappedValue);
2088
2072
  }
2089
2073
 
2090
- return distorted;
2074
+ return unwrappedValue;
2091
2075
  }
2092
2076
  }, {
2093
2077
  key: "getReadOnlyProxy",
2094
2078
  value: function getReadOnlyProxy(value) {
2095
2079
  value = unwrap$1(value);
2096
- var distorted = this.valueDistortion(value);
2097
2080
 
2098
- if (this.valueIsObservable(distorted)) {
2099
- return this.getReadOnlyHandler(value, distorted);
2081
+ if (this.valueIsObservable(value)) {
2082
+ return this.getReadOnlyHandler(value);
2100
2083
  }
2101
2084
 
2102
- return distorted;
2085
+ return value;
2103
2086
  }
2104
2087
  }, {
2105
2088
  key: "unwrapProxy",
@@ -2108,39 +2091,39 @@ var LWC = (function (exports) {
2108
2091
  }
2109
2092
  }, {
2110
2093
  key: "getReactiveHandler",
2111
- value: function getReactiveHandler(value, distortedValue) {
2112
- var proxy = this.reactiveObjectGraph.get(distortedValue);
2094
+ value: function getReactiveHandler(value) {
2095
+ var proxy = this.reactiveObjectGraph.get(value);
2113
2096
 
2114
2097
  if (isUndefined(proxy)) {
2115
2098
  // caching the proxy after the first time it is accessed
2116
- var handler = new ReactiveProxyHandler(this, distortedValue);
2117
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2099
+ var handler = new ReactiveProxyHandler(this, value);
2100
+ proxy = new Proxy(createShadowTarget(value), handler);
2118
2101
  registerProxy(proxy, value);
2119
- this.reactiveObjectGraph.set(distortedValue, proxy);
2102
+ this.reactiveObjectGraph.set(value, proxy);
2120
2103
  }
2121
2104
 
2122
2105
  return proxy;
2123
2106
  }
2124
2107
  }, {
2125
2108
  key: "getReadOnlyHandler",
2126
- value: function getReadOnlyHandler(value, distortedValue) {
2127
- var proxy = this.readOnlyObjectGraph.get(distortedValue);
2109
+ value: function getReadOnlyHandler(value) {
2110
+ var proxy = this.readOnlyObjectGraph.get(value);
2128
2111
 
2129
2112
  if (isUndefined(proxy)) {
2130
2113
  // caching the proxy after the first time it is accessed
2131
- var handler = new ReadOnlyHandler(this, distortedValue);
2132
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2114
+ var handler = new ReadOnlyHandler(this, value);
2115
+ proxy = new Proxy(createShadowTarget(value), handler);
2133
2116
  registerProxy(proxy, value);
2134
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2117
+ this.readOnlyObjectGraph.set(value, proxy);
2135
2118
  }
2136
2119
 
2137
2120
  return proxy;
2138
2121
  }
2139
2122
  }]);
2140
2123
 
2141
- return ReactiveMembrane;
2124
+ return ObservableMembrane;
2142
2125
  }();
2143
- /** version: 1.1.5 */
2126
+ /** version: 2.0.0 */
2144
2127
 
2145
2128
  /*
2146
2129
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2151,15 +2134,9 @@ var LWC = (function (exports) {
2151
2134
 
2152
2135
 
2153
2136
  var lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2154
-
2155
- function valueDistortion(value) {
2156
- return value;
2157
- }
2158
-
2159
- var reactiveMembrane = new ReactiveMembrane({
2137
+ var reactiveMembrane = new ObservableMembrane({
2160
2138
  valueObserved: valueObserved,
2161
2139
  valueMutated: valueMutated,
2162
- valueDistortion: valueDistortion,
2163
2140
  tagPropertyKey: lockerLivePropertyKey
2164
2141
  });
2165
2142
  /**
@@ -2168,16 +2145,9 @@ var LWC = (function (exports) {
2168
2145
  * change or being removed.
2169
2146
  */
2170
2147
 
2171
- var unwrap = function unwrap(value) {
2172
- var unwrapped = reactiveMembrane.unwrapProxy(value);
2173
-
2174
- if (unwrapped !== value) {
2175
- // if value is a proxy, unwrap to access original value and apply distortion
2176
- return valueDistortion(unwrapped);
2177
- }
2178
-
2179
- return value;
2180
- };
2148
+ function unwrap(value) {
2149
+ return reactiveMembrane.unwrapProxy(value);
2150
+ }
2181
2151
  /*
2182
2152
  * Copyright (c) 2018, salesforce.com, inc.
2183
2153
  * All rights reserved.
@@ -3029,7 +2999,7 @@ var LWC = (function (exports) {
3029
2999
  return _super4.apply(this, arguments);
3030
3000
  }
3031
3001
 
3032
- return HTMLBridgeElement;
3002
+ return _createClass(HTMLBridgeElement);
3033
3003
  }(SuperClass);
3034
3004
  } else {
3035
3005
  HTMLBridgeElement = function HTMLBridgeElement() {
@@ -3482,12 +3452,14 @@ var LWC = (function (exports) {
3482
3452
  }
3483
3453
 
3484
3454
  function updateChildrenHook(oldVnode, vnode) {
3485
- var children = vnode.children,
3486
- owner = vnode.owner;
3487
- var fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
3488
- runWithBoundaryProtection(owner, owner.owner, noop, function () {
3489
- fn(vnode.elm, oldVnode.children, children);
3490
- }, noop);
3455
+ var elm = vnode.elm,
3456
+ children = vnode.children;
3457
+
3458
+ if (hasDynamicChildren(children)) {
3459
+ updateDynamicChildren(elm, oldVnode.children, children);
3460
+ } else {
3461
+ updateStaticChildren(elm, oldVnode.children, children);
3462
+ }
3491
3463
  }
3492
3464
 
3493
3465
  function allocateChildrenHook(vnode, vm) {
@@ -3675,7 +3647,7 @@ var LWC = (function (exports) {
3675
3647
  return _this4;
3676
3648
  }
3677
3649
 
3678
- return LWCUpgradableElement;
3650
+ return _createClass(LWCUpgradableElement);
3679
3651
  }(renderer.HTMLElement);
3680
3652
 
3681
3653
  renderer.defineCustomElement(tagName, CE);
@@ -4362,6 +4334,7 @@ var LWC = (function (exports) {
4362
4334
 
4363
4335
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
4364
4336
  var content = [];
4337
+ var root;
4365
4338
 
4366
4339
  for (var _i16 = 0; _i16 < stylesheets.length; _i16++) {
4367
4340
  var stylesheet = stylesheets[_i16];
@@ -4369,22 +4342,45 @@ var LWC = (function (exports) {
4369
4342
  if (isArray$1(stylesheet)) {
4370
4343
  ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
4371
4344
  } else {
4372
- // native shadow DOM. Synthetic shadow DOM never uses `:host`.
4373
4345
 
4346
+ var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
4347
+
4348
+ var scopeToken = isScopedCss || vm.shadowMode === 1
4349
+ /* Synthetic */
4350
+ && vm.renderMode === 1
4351
+ /* Shadow */
4352
+ ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
4353
+ // native shadow DOM. Synthetic shadow DOM never uses `:host`.
4374
4354
 
4375
- var isScopedCss = stylesheet[KEY__SCOPED_CSS];
4376
4355
  var useActualHostSelector = vm.renderMode === 0
4377
4356
  /* Light */
4378
4357
  ? !isScopedCss : vm.shadowMode === 0
4379
4358
  /* Native */
4380
- ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
4359
+ ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
4360
+ // we use an attribute selector on the host to simulate :dir().
4381
4361
 
4382
- var scopeToken = isScopedCss || vm.shadowMode === 1
4383
- /* Synthetic */
4384
- && vm.renderMode === 1
4362
+ var useNativeDirPseudoclass = void 0;
4363
+
4364
+ if (vm.renderMode === 1
4385
4365
  /* Shadow */
4386
- ? stylesheetToken : undefined;
4387
- ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
4366
+ ) {
4367
+ useNativeDirPseudoclass = vm.shadowMode === 0
4368
+ /* Native */
4369
+ ;
4370
+ } else {
4371
+ // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
4372
+ // At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
4373
+ if (isUndefined$1(root)) {
4374
+ // Only calculate the root once as necessary
4375
+ root = getNearestShadowComponent(vm);
4376
+ }
4377
+
4378
+ useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
4379
+ /* Native */
4380
+ ;
4381
+ }
4382
+
4383
+ ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
4388
4384
  }
4389
4385
  }
4390
4386
 
@@ -4406,14 +4402,12 @@ var LWC = (function (exports) {
4406
4402
  // https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
4407
4403
 
4408
4404
 
4409
- function getNearestNativeShadowComponent(vm) {
4405
+ function getNearestShadowComponent(vm) {
4410
4406
  var owner = vm;
4411
4407
 
4412
4408
  while (!isNull(owner)) {
4413
4409
  if (owner.renderMode === 1
4414
4410
  /* Shadow */
4415
- && owner.shadowMode === 0
4416
- /* Native */
4417
4411
  ) {
4418
4412
  return owner;
4419
4413
  }
@@ -4424,6 +4418,20 @@ var LWC = (function (exports) {
4424
4418
  return owner;
4425
4419
  }
4426
4420
 
4421
+ function getNearestNativeShadowComponent(vm) {
4422
+ var owner = getNearestShadowComponent(vm);
4423
+
4424
+ if (!isNull(owner) && owner.shadowMode === 1
4425
+ /* Synthetic */
4426
+ ) {
4427
+ // Synthetic-within-native is impossible. So if the nearest shadow component is
4428
+ // synthetic, we know we won't find a native component if we go any further.
4429
+ return null;
4430
+ }
4431
+
4432
+ return owner;
4433
+ }
4434
+
4427
4435
  function createStylesheet(vm, stylesheets) {
4428
4436
  var renderer = vm.renderer,
4429
4437
  renderMode = vm.renderMode,
@@ -4491,7 +4499,7 @@ var LWC = (function (exports) {
4491
4499
  if (isProfilerEnabled) {
4492
4500
  currentDispatcher(opId, 0
4493
4501
  /* Start */
4494
- , vm.tagName, vm.idx);
4502
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
4495
4503
  }
4496
4504
  }
4497
4505
 
@@ -4500,7 +4508,7 @@ var LWC = (function (exports) {
4500
4508
  if (isProfilerEnabled) {
4501
4509
  currentDispatcher(opId, 1
4502
4510
  /* Stop */
4503
- , vm.tagName, vm.idx);
4511
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
4504
4512
  }
4505
4513
  }
4506
4514
 
@@ -4509,7 +4517,7 @@ var LWC = (function (exports) {
4509
4517
  if (isProfilerEnabled) {
4510
4518
  currentDispatcher(opId, 0
4511
4519
  /* Start */
4512
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
4520
+ , 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);
4513
4521
  }
4514
4522
  }
4515
4523
 
@@ -4518,7 +4526,7 @@ var LWC = (function (exports) {
4518
4526
  if (isProfilerEnabled) {
4519
4527
  currentDispatcher(opId, 1
4520
4528
  /* Stop */
4521
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
4529
+ , 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);
4522
4530
  }
4523
4531
  }
4524
4532
  /*
@@ -5557,7 +5565,7 @@ var LWC = (function (exports) {
5557
5565
  return _this5;
5558
5566
  }
5559
5567
 
5560
- return WireContextRegistrationEvent;
5568
+ return _createClass(WireContextRegistrationEvent);
5561
5569
  }( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
5562
5570
 
5563
5571
  function createFieldDataCallback(vm, name) {
@@ -5891,7 +5899,7 @@ var LWC = (function (exports) {
5891
5899
  hooksAreSet = true;
5892
5900
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
5893
5901
  }
5894
- /* version: 2.5.10 */
5902
+ /* version: 2.7.1 */
5895
5903
 
5896
5904
  /*
5897
5905
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5938,7 +5946,7 @@ var LWC = (function (exports) {
5938
5946
  return _super7.apply(this, arguments);
5939
5947
  }
5940
5948
 
5941
- return clazz;
5949
+ return _createClass(clazz);
5942
5950
  }(HTMLElementAlias);
5943
5951
 
5944
5952
  customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
@@ -6521,7 +6529,7 @@ var LWC = (function (exports) {
6521
6529
  });
6522
6530
  freeze(LightningElement);
6523
6531
  seal(LightningElement.prototype);
6524
- /* version: 2.5.10 */
6532
+ /* version: 2.7.1 */
6525
6533
 
6526
6534
  exports.LightningElement = LightningElement;
6527
6535
  exports.__unstable__ProfilerControl = profilerControl;