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