lwc 2.5.2 → 2.5.6

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 +181 -101
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +183 -101
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +163 -82
  5. package/dist/engine-dom/iife/es5/engine-dom.js +211 -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 +189 -87
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +184 -102
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +164 -83
  11. package/dist/engine-dom/umd/es5/engine-dom.js +212 -109
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +190 -88
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +174 -99
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +173 -100
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +46 -40
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +47 -41
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +46 -40
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +47 -41
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +46 -40
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +48 -42
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +47 -41
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +48 -42
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +47 -41
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +3 -3
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +3 -3
  33. package/dist/wire-service/iife/es5/wire-service.js +3 -3
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
  36. package/dist/wire-service/umd/es2017/wire-service.js +4 -4
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +4 -4
  38. package/dist/wire-service/umd/es5/wire-service.js +4 -4
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
  41. package/package.json +8 -8
@@ -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.2 */
344
+ /** version: 2.5.6 */
345
345
 
346
346
  /*
347
347
  * Copyright (c) 2018, salesforce.com, inc.
@@ -449,6 +449,7 @@ var LWC = (function (exports) {
449
449
  ENABLE_HMR: null,
450
450
  ENABLE_INNER_OUTER_TEXT_PATCH: null,
451
451
  ENABLE_ELEMENT_PATCH: null,
452
+ ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
452
453
  ENABLE_NODE_LIST_PATCH: null,
453
454
  ENABLE_HTML_COLLECTIONS_PATCH: null,
454
455
  ENABLE_NODE_PATCH: null,
@@ -512,7 +513,7 @@ var LWC = (function (exports) {
512
513
 
513
514
  function setFeatureFlagForTest(name, value) {
514
515
  }
515
- /** version: 2.5.2 */
516
+ /** version: 2.5.6 */
516
517
 
517
518
  /* proxy-compat-disable */
518
519
 
@@ -2337,34 +2338,6 @@ var LWC = (function (exports) {
2337
2338
 
2338
2339
  return getBoundingClientRect(elm);
2339
2340
  },
2340
- querySelector: function querySelector(selectors) {
2341
- var vm = getAssociatedVM(this);
2342
- var elm = vm.elm,
2343
- querySelector = vm.renderer.querySelector;
2344
-
2345
- return querySelector(elm, selectors);
2346
- },
2347
- querySelectorAll: function querySelectorAll(selectors) {
2348
- var vm = getAssociatedVM(this);
2349
- var elm = vm.elm,
2350
- querySelectorAll = vm.renderer.querySelectorAll;
2351
-
2352
- return querySelectorAll(elm, selectors);
2353
- },
2354
- getElementsByTagName: function getElementsByTagName(tagNameOrWildCard) {
2355
- var vm = getAssociatedVM(this);
2356
- var elm = vm.elm,
2357
- getElementsByTagName = vm.renderer.getElementsByTagName;
2358
-
2359
- return getElementsByTagName(elm, tagNameOrWildCard);
2360
- },
2361
- getElementsByClassName: function getElementsByClassName(names) {
2362
- var vm = getAssociatedVM(this);
2363
- var elm = vm.elm,
2364
- getElementsByClassName = vm.renderer.getElementsByClassName;
2365
-
2366
- return getElementsByClassName(elm, names);
2367
- },
2368
2341
 
2369
2342
  get isConnected() {
2370
2343
  var _getAssociatedVM8 = getAssociatedVM(this),
@@ -2403,6 +2376,49 @@ var LWC = (function (exports) {
2403
2376
  return "[object ".concat(vm.def.name, "]");
2404
2377
  }
2405
2378
  };
2379
+ var queryAndChildGetterDescriptors = create(null);
2380
+ var childGetters = [['children', 'getChildren'], ['childNodes', 'getChildNodes'], ['firstChild', 'getFirstChild'], ['firstElementChild', 'getFirstElementChild'], ['lastChild', 'getLastChild'], ['lastElementChild', 'getLastElementChild']]; // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
2381
+
2382
+ var _loop = function _loop() {
2383
+ var _childGetters$_i = _slicedToArray(_childGetters[_i9], 2),
2384
+ elementProp = _childGetters$_i[0],
2385
+ rendererMethod = _childGetters$_i[1];
2386
+
2387
+ queryAndChildGetterDescriptors[elementProp] = {
2388
+ get: function get() {
2389
+ var vm = getAssociatedVM(this);
2390
+ var elm = vm.elm,
2391
+ renderer = vm.renderer;
2392
+
2393
+ return renderer[rendererMethod](elm);
2394
+ }
2395
+ };
2396
+ };
2397
+
2398
+ for (var _i9 = 0, _childGetters = childGetters; _i9 < _childGetters.length; _i9++) {
2399
+ _loop();
2400
+ }
2401
+
2402
+ var queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll']; // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
2403
+
2404
+ var _loop2 = function _loop2() {
2405
+ var queryMethod = _queryMethods[_i10];
2406
+ queryAndChildGetterDescriptors[queryMethod] = {
2407
+ value: function value(arg) {
2408
+ var vm = getAssociatedVM(this);
2409
+ var elm = vm.elm,
2410
+ renderer = vm.renderer;
2411
+
2412
+ return renderer[queryMethod](elm, arg);
2413
+ }
2414
+ };
2415
+ };
2416
+
2417
+ for (var _i10 = 0, _queryMethods = queryMethods; _i10 < _queryMethods.length; _i10++) {
2418
+ _loop2();
2419
+ }
2420
+
2421
+ defineProperties(LightningElement.prototype, queryAndChildGetterDescriptors);
2406
2422
  var lightningBasedDescriptors = create(null);
2407
2423
 
2408
2424
  for (var _propName in HTMLElementOriginalDescriptors) {
@@ -2759,8 +2775,8 @@ var LWC = (function (exports) {
2759
2775
  }
2760
2776
 
2761
2777
  if (!isUndefined$1(fields)) {
2762
- for (var _i9 = 0, n = fields.length; _i9 < n; _i9++) {
2763
- var _fieldName2 = fields[_i9];
2778
+ for (var _i11 = 0, n = fields.length; _i11 < n; _i11++) {
2779
+ var _fieldName2 = fields[_i11];
2764
2780
  descriptor = getOwnPropertyDescriptor$1(proto, _fieldName2);
2765
2781
  // tracked property. This is only here for backward compatibility purposes.
2766
2782
 
@@ -2829,15 +2845,14 @@ var LWC = (function (exports) {
2829
2845
  return tpl;
2830
2846
  }
2831
2847
  /**
2832
- * EXPERIMENTAL: This function acts like a hook for Lightning Locker
2833
- * Service and other similar libraries to sanitize vulnerable attributes.
2834
- * This API is subject to change or being removed.
2848
+ * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
2849
+ * libraries to sanitize vulnerable attributes.
2835
2850
  */
2836
2851
 
2837
2852
 
2838
2853
  function sanitizeAttribute(tagName, namespaceUri, attrName, attrValue) {
2839
- // locker-service patches this function during runtime to sanitize vulnerable attributes.
2840
- // when ran off-core this function becomes a noop and returns the user authored value.
2854
+ // locker-service patches this function during runtime to sanitize vulnerable attributes. When
2855
+ // ran off-core this function becomes a noop and returns the user authored value.
2841
2856
  return attrValue;
2842
2857
  }
2843
2858
  /*
@@ -2978,8 +2993,8 @@ var LWC = (function (exports) {
2978
2993
  superObservedAttributes = _SuperClass$observedA === void 0 ? [] : _SuperClass$observedA;
2979
2994
  var descriptors = create(null); // expose getters and setters for each public props on the new Element Bridge
2980
2995
 
2981
- for (var _i10 = 0, _len3 = props.length; _i10 < _len3; _i10 += 1) {
2982
- var _propName2 = props[_i10];
2996
+ for (var _i12 = 0, _len3 = props.length; _i12 < _len3; _i12 += 1) {
2997
+ var _propName2 = props[_i12];
2983
2998
  attributeToPropMap[htmlPropertyToAttribute(_propName2)] = _propName2;
2984
2999
  descriptors[_propName2] = {
2985
3000
  get: createGetter(_propName2),
@@ -2990,8 +3005,8 @@ var LWC = (function (exports) {
2990
3005
  } // expose public methods as props on the new Element Bridge
2991
3006
 
2992
3007
 
2993
- for (var _i11 = 0, _len4 = methods.length; _i11 < _len4; _i11 += 1) {
2994
- var methodName = methods[_i11];
3008
+ for (var _i13 = 0, _len4 = methods.length; _i13 < _len4; _i13 += 1) {
3009
+ var methodName = methods[_i13];
2995
3010
  descriptors[methodName] = {
2996
3011
  value: createMethodCaller(methodName),
2997
3012
  writable: true,
@@ -3583,6 +3598,38 @@ var LWC = (function (exports) {
3583
3598
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3584
3599
  */
3585
3600
 
3601
+ /**
3602
+ * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
3603
+ * libraries to sanitize HTML content. This hook process the content passed via the template to
3604
+ * lwc:inner-html directive.
3605
+ * It is meant to be overridden with setSanitizeHtmlContentHook
3606
+ */
3607
+
3608
+
3609
+ var sanitizeHtmlContentHook = function sanitizeHtmlContentHook() {
3610
+ // locker-service patches this function during runtime to sanitize HTML content.
3611
+ throw new Error('sanitizeHtmlContent hook must be implemented.');
3612
+ };
3613
+ /**
3614
+ * Sets the sanitizeHtmlContentHook.
3615
+ *
3616
+ * @param newHookImpl
3617
+ * @returns oldHookImplementation.
3618
+ */
3619
+
3620
+
3621
+ function setSanitizeHtmlContentHook(newHookImpl) {
3622
+ var currentHook = sanitizeHtmlContentHook;
3623
+ sanitizeHtmlContentHook = newHookImpl;
3624
+ return currentHook;
3625
+ }
3626
+ /*
3627
+ * Copyright (c) 2018, salesforce.com, inc.
3628
+ * All rights reserved.
3629
+ * SPDX-License-Identifier: MIT
3630
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3631
+ */
3632
+
3586
3633
 
3587
3634
  var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
3588
3635
  var SymbolIterator = Symbol.iterator;
@@ -3851,7 +3898,7 @@ var LWC = (function (exports) {
3851
3898
  next = iterator.next();
3852
3899
  last = next.done; // template factory logic based on the previous collected value
3853
3900
 
3854
- var vnode = factory(value, j, j === 0, last);
3901
+ var vnode = factory(value, j, j === 0, last === true);
3855
3902
 
3856
3903
  if (isArray$1(vnode)) {
3857
3904
  ArrayPush$1.apply(list, vnode);
@@ -4064,25 +4111,29 @@ var LWC = (function (exports) {
4064
4111
 
4065
4112
  markAsDynamicChildren(vnodes);
4066
4113
  return vnodes;
4114
+ } // [s]anitize [h]tml [c]ontent
4115
+
4116
+
4117
+ function shc(content) {
4118
+ return sanitizeHtmlContentHook(content);
4067
4119
  }
4068
4120
 
4069
- var api = /*#__PURE__*/Object.freeze({
4070
- __proto__: null,
4071
- h: h,
4072
- ti: ti,
4121
+ var api = freeze({
4073
4122
  s: s,
4123
+ h: h,
4074
4124
  c: c,
4075
4125
  i: i,
4076
4126
  f: f,
4077
4127
  t: t,
4078
- co: co,
4079
4128
  d: d,
4080
4129
  b: b,
4081
4130
  k: k,
4131
+ co: co,
4132
+ dc: dc,
4133
+ ti: ti,
4082
4134
  gid: gid,
4083
4135
  fid: fid,
4084
- dc: dc,
4085
- sc: sc
4136
+ shc: shc
4086
4137
  });
4087
4138
  /*
4088
4139
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4096,12 +4147,12 @@ var LWC = (function (exports) {
4096
4147
  }
4097
4148
 
4098
4149
  function createInlineStyleVNode(content) {
4099
- return h('style', {
4150
+ return api.h('style', {
4100
4151
  key: 'style',
4101
4152
  attrs: {
4102
4153
  type: 'text/css'
4103
4154
  }
4104
- }, [t(content)]);
4155
+ }, [api.t(content)]);
4105
4156
  }
4106
4157
 
4107
4158
  function updateStylesheetToken(vm, template) {
@@ -4162,8 +4213,8 @@ var LWC = (function (exports) {
4162
4213
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
4163
4214
  var content = [];
4164
4215
 
4165
- for (var _i12 = 0; _i12 < stylesheets.length; _i12++) {
4166
- var stylesheet = stylesheets[_i12];
4216
+ for (var _i14 = 0; _i14 < stylesheets.length; _i14++) {
4217
+ var stylesheet = stylesheets[_i14];
4167
4218
 
4168
4219
  if (isArray$1(stylesheet)) {
4169
4220
  ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
@@ -4233,8 +4284,8 @@ var LWC = (function (exports) {
4233
4284
  && shadowMode === 1
4234
4285
  /* Synthetic */
4235
4286
  ) {
4236
- for (var _i13 = 0; _i13 < stylesheets.length; _i13++) {
4237
- renderer.insertGlobalStylesheet(stylesheets[_i13]);
4287
+ for (var _i15 = 0; _i15 < stylesheets.length; _i15++) {
4288
+ renderer.insertGlobalStylesheet(stylesheets[_i15]);
4238
4289
  }
4239
4290
  } else if (renderer.ssr) {
4240
4291
  // native shadow or light DOM, SSR
@@ -4245,12 +4296,12 @@ var LWC = (function (exports) {
4245
4296
  var root = getNearestNativeShadowComponent(vm);
4246
4297
  var isGlobal = isNull(root);
4247
4298
 
4248
- for (var _i14 = 0; _i14 < stylesheets.length; _i14++) {
4299
+ for (var _i16 = 0; _i16 < stylesheets.length; _i16++) {
4249
4300
  if (isGlobal) {
4250
- renderer.insertGlobalStylesheet(stylesheets[_i14]);
4301
+ renderer.insertGlobalStylesheet(stylesheets[_i16]);
4251
4302
  } else {
4252
4303
  // local level
4253
- renderer.insertStylesheet(stylesheets[_i14], root.cmpRoot);
4304
+ renderer.insertStylesheet(stylesheets[_i16], root.cmpRoot);
4254
4305
  }
4255
4306
  }
4256
4307
  }
@@ -4435,8 +4486,8 @@ var LWC = (function (exports) {
4435
4486
  var stylesheets = template.stylesheets;
4436
4487
 
4437
4488
  if (!isUndefined$1(stylesheets)) {
4438
- for (var _i15 = 0; _i15 < stylesheets.length; _i15++) {
4439
- if (isTrue(stylesheets[_i15][KEY__SCOPED_CSS])) {
4489
+ for (var _i17 = 0; _i17 < stylesheets.length; _i17++) {
4490
+ if (isTrue(stylesheets[_i17][KEY__SCOPED_CSS])) {
4440
4491
  return true;
4441
4492
  }
4442
4493
  }
@@ -4637,8 +4688,8 @@ var LWC = (function (exports) {
4637
4688
 
4638
4689
  function register(service) {
4639
4690
 
4640
- for (var _i16 = 0; _i16 < hooks.length; ++_i16) {
4641
- var hookName = hooks[_i16];
4691
+ for (var _i18 = 0; _i18 < hooks.length; ++_i18) {
4692
+ var hookName = hooks[_i18];
4642
4693
 
4643
4694
  if (hookName in service) {
4644
4695
  var l = Services[hookName];
@@ -4658,8 +4709,8 @@ var LWC = (function (exports) {
4658
4709
  def = vm.def,
4659
4710
  context = vm.context;
4660
4711
 
4661
- for (var _i17 = 0, _len6 = cbs.length; _i17 < _len6; ++_i17) {
4662
- cbs[_i17].call(undefined, component, {}, def, context);
4712
+ for (var _i19 = 0, _len6 = cbs.length; _i19 < _len6; ++_i19) {
4713
+ cbs[_i19].call(undefined, component, {}, def, context);
4663
4714
  }
4664
4715
  }
4665
4716
  /*
@@ -4979,19 +5030,19 @@ var LWC = (function (exports) {
4979
5030
  });
4980
5031
  rehydrateQueue = []; // reset to a new queue
4981
5032
 
4982
- for (var _i18 = 0, _len7 = vms.length; _i18 < _len7; _i18 += 1) {
4983
- var vm = vms[_i18];
5033
+ for (var _i20 = 0, _len7 = vms.length; _i20 < _len7; _i20 += 1) {
5034
+ var vm = vms[_i20];
4984
5035
 
4985
5036
  try {
4986
5037
  rehydrate(vm);
4987
5038
  } catch (error) {
4988
- if (_i18 + 1 < _len7) {
5039
+ if (_i20 + 1 < _len7) {
4989
5040
  // pieces of the queue are still pending to be rehydrated, those should have priority
4990
5041
  if (rehydrateQueue.length === 0) {
4991
5042
  addCallbackToNextTick(flushRehydrationQueue);
4992
5043
  }
4993
5044
 
4994
- ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i18 + 1));
5045
+ ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i20 + 1));
4995
5046
  } // we need to end the measure before throwing.
4996
5047
 
4997
5048
 
@@ -5090,8 +5141,8 @@ var LWC = (function (exports) {
5090
5141
  var vCustomElementCollection = vm.velements; // Reporting disconnection for every child in inverse order since they are
5091
5142
  // inserted in reserved order.
5092
5143
 
5093
- for (var _i19 = vCustomElementCollection.length - 1; _i19 >= 0; _i19 -= 1) {
5094
- var elm = vCustomElementCollection[_i19].elm; // There are two cases where the element could be undefined:
5144
+ for (var _i21 = vCustomElementCollection.length - 1; _i21 >= 0; _i21 -= 1) {
5145
+ var elm = vCustomElementCollection[_i21].elm; // There are two cases where the element could be undefined:
5095
5146
  // * when there is an error during the construction phase, and an error
5096
5147
  // boundary picks it, there is a possibility that the VCustomElement
5097
5148
  // is not properly initialized, and therefore is should be ignored.
@@ -5125,8 +5176,8 @@ var LWC = (function (exports) {
5125
5176
 
5126
5177
 
5127
5178
  function recursivelyDisconnectChildren(vnodes) {
5128
- for (var _i20 = 0, _len8 = vnodes.length; _i20 < _len8; _i20 += 1) {
5129
- var vnode = vnodes[_i20];
5179
+ for (var _i22 = 0, _len8 = vnodes.length; _i22 < _len8; _i22 += 1) {
5180
+ var vnode = vnodes[_i22];
5130
5181
 
5131
5182
  if (!isNull(vnode) && isArray$1(vnode.children) && !isUndefined$1(vnode.elm)) {
5132
5183
  // vnode is a VElement with children
@@ -5150,8 +5201,8 @@ var LWC = (function (exports) {
5150
5201
  renderer = vm.renderer;
5151
5202
  var rootNode = getRenderRoot(vm);
5152
5203
 
5153
- for (var _i21 = 0, _len9 = children.length; _i21 < _len9; _i21++) {
5154
- var child = children[_i21];
5204
+ for (var _i23 = 0, _len9 = children.length; _i23 < _len9; _i23++) {
5205
+ var child = children[_i23];
5155
5206
 
5156
5207
  if (!isNull(child) && !isUndefined$1(child.elm)) {
5157
5208
  renderer.remove(child.elm, rootNode);
@@ -5196,8 +5247,8 @@ var LWC = (function (exports) {
5196
5247
  var oldSlots = vm.cmpSlots;
5197
5248
  var cmpSlots = vm.cmpSlots = create(null);
5198
5249
 
5199
- for (var _i22 = 0, _len10 = children.length; _i22 < _len10; _i22 += 1) {
5200
- var vnode = children[_i22];
5250
+ for (var _i24 = 0, _len10 = children.length; _i24 < _len10; _i24 += 1) {
5251
+ var vnode = children[_i24];
5201
5252
 
5202
5253
  if (isNull(vnode)) {
5203
5254
  continue;
@@ -5227,8 +5278,8 @@ var LWC = (function (exports) {
5227
5278
  return;
5228
5279
  }
5229
5280
 
5230
- for (var _i23 = 0, _len11 = oldKeys.length; _i23 < _len11; _i23 += 1) {
5231
- var key = oldKeys[_i23];
5281
+ for (var _i25 = 0, _len11 = oldKeys.length; _i25 < _len11; _i25 += 1) {
5282
+ var key = oldKeys[_i25];
5232
5283
 
5233
5284
  if (isUndefined$1(cmpSlots[key]) || oldSlots[key].length !== cmpSlots[key].length) {
5234
5285
  markComponentAsDirty(vm);
@@ -5567,8 +5618,8 @@ var LWC = (function (exports) {
5567
5618
  function connectWireAdapters(vm) {
5568
5619
  var wiredConnecting = vm.context.wiredConnecting;
5569
5620
 
5570
- for (var _i24 = 0, _len12 = wiredConnecting.length; _i24 < _len12; _i24 += 1) {
5571
- wiredConnecting[_i24]();
5621
+ for (var _i26 = 0, _len12 = wiredConnecting.length; _i26 < _len12; _i26 += 1) {
5622
+ wiredConnecting[_i26]();
5572
5623
  }
5573
5624
  }
5574
5625
 
@@ -5576,8 +5627,8 @@ var LWC = (function (exports) {
5576
5627
  var wiredDisconnecting = vm.context.wiredDisconnecting;
5577
5628
  runWithBoundaryProtection(vm, vm, noop, function () {
5578
5629
  // job
5579
- for (var _i25 = 0, _len13 = wiredDisconnecting.length; _i25 < _len13; _i25 += 1) {
5580
- wiredDisconnecting[_i25]();
5630
+ for (var _i27 = 0, _len13 = wiredDisconnecting.length; _i27 < _len13; _i27 += 1) {
5631
+ wiredDisconnecting[_i27]();
5581
5632
  }
5582
5633
  }, noop);
5583
5634
  }
@@ -5646,7 +5697,35 @@ var LWC = (function (exports) {
5646
5697
 
5647
5698
  return reactiveMembrane.getReadOnlyProxy(obj);
5648
5699
  }
5649
- /* version: 2.5.2 */
5700
+ /*
5701
+ * Copyright (c) 2018, salesforce.com, inc.
5702
+ * All rights reserved.
5703
+ * SPDX-License-Identifier: MIT
5704
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
5705
+ */
5706
+
5707
+
5708
+ var hooksAreSet = false;
5709
+
5710
+ function overrideHooks(hooks) {
5711
+ var oldHooks = {};
5712
+
5713
+ if (!isUndefined$1(hooks.sanitizeHtmlContent)) {
5714
+ oldHooks.sanitizeHtmlContent = setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
5715
+ }
5716
+
5717
+ return oldHooks;
5718
+ }
5719
+
5720
+ function setHooks(hooks) {
5721
+ assert.isFalse(hooksAreSet, 'Hooks are already overridden, only one definition is allowed.');
5722
+ overrideHooks(hooks);
5723
+ hooksAreSet = true;
5724
+ }
5725
+
5726
+ function setHooksForTest(hooks) {
5727
+ }
5728
+ /* version: 2.5.6 */
5650
5729
 
5651
5730
  /*
5652
5731
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5658,8 +5737,11 @@ var LWC = (function (exports) {
5658
5737
 
5659
5738
  var globalStylesheets = create(null);
5660
5739
 
5661
- var globalStylesheetsParentElement = document.head || document.body || document;
5662
- var supportsConstructableStyleSheets = isFunction$1(CSSStyleSheet.prototype.replaceSync);
5740
+ var globalStylesheetsParentElement = document.head || document.body || document; // This check for constructable stylesheets is similar to Fast's:
5741
+ // https://github.com/microsoft/fast/blob/d49d1ec/packages/web-components/fast-element/src/dom.ts#L51-L53
5742
+ // See also: https://github.com/whatwg/webidl/issues/1027#issuecomment-934510070
5743
+
5744
+ var supportsConstructableStyleSheets = isFunction$1(CSSStyleSheet.prototype.replaceSync) && isArray$1(document.adoptedStyleSheets);
5663
5745
  var styleElements = create(null);
5664
5746
  var styleSheets = create(null);
5665
5747
  var nodesToStyleSheets = new WeakMap();
@@ -5868,6 +5950,24 @@ var LWC = (function (exports) {
5868
5950
  getElementsByClassName: function getElementsByClassName(element, names) {
5869
5951
  return element.getElementsByClassName(names);
5870
5952
  },
5953
+ getChildren: function getChildren(element) {
5954
+ return element.children;
5955
+ },
5956
+ getChildNodes: function getChildNodes(element) {
5957
+ return element.childNodes;
5958
+ },
5959
+ getFirstChild: function getFirstChild(element) {
5960
+ return element.firstChild;
5961
+ },
5962
+ getFirstElementChild: function getFirstElementChild(element) {
5963
+ return element.firstElementChild;
5964
+ },
5965
+ getLastChild: function getLastChild(element) {
5966
+ return element.lastChild;
5967
+ },
5968
+ getLastElementChild: function getLastElementChild(element) {
5969
+ return element.lastElementChild;
5970
+ },
5871
5971
  isConnected: function isConnected(node) {
5872
5972
  return node.isConnected;
5873
5973
  },
@@ -6176,7 +6276,7 @@ var LWC = (function (exports) {
6176
6276
  });
6177
6277
  freeze(LightningElement);
6178
6278
  seal(LightningElement.prototype);
6179
- /* version: 2.5.2 */
6279
+ /* version: 2.5.6 */
6180
6280
 
6181
6281
  exports.LightningElement = LightningElement;
6182
6282
  exports.__unstable__ProfilerControl = profilerControl;
@@ -6196,6 +6296,8 @@ var LWC = (function (exports) {
6196
6296
  exports.sanitizeAttribute = sanitizeAttribute;
6197
6297
  exports.setFeatureFlag = setFeatureFlag;
6198
6298
  exports.setFeatureFlagForTest = setFeatureFlagForTest;
6299
+ exports.setHooks = setHooks;
6300
+ exports.setHooksForTest = setHooksForTest;
6199
6301
  exports.swapComponent = swapComponent;
6200
6302
  exports.swapStyle = swapStyle;
6201
6303
  exports.swapTemplate = swapTemplate;
@@ -6207,4 +6309,4 @@ var LWC = (function (exports) {
6207
6309
 
6208
6310
  return exports;
6209
6311
 
6210
- }({}));
6312
+ })({});