lwc 2.5.3 → 2.5.4

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 +75 -71
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +75 -71
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +64 -52
  5. package/dist/engine-dom/iife/es5/engine-dom.js +115 -90
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +102 -69
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +75 -71
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +64 -52
  11. package/dist/engine-dom/umd/es5/engine-dom.js +115 -90
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +102 -69
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +57 -71
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +57 -71
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +75 -39
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +75 -39
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +74 -38
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +75 -39
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +74 -38
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +75 -39
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +74 -38
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +75 -39
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +74 -38
  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 +2 -2
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  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 +2 -2
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  41. package/package.json +8 -8
@@ -119,7 +119,7 @@
119
119
  var KEY__SHADOW_TOKEN = '$shadowToken$';
120
120
  var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
121
121
  var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
122
- /** version: 2.5.3 */
122
+ /** version: 2.5.4 */
123
123
 
124
124
  /*
125
125
  * Copyright (c) 2018, salesforce.com, inc.
@@ -450,7 +450,7 @@
450
450
  }
451
451
 
452
452
  var runtimeFlags = _globalThis.lwcRuntimeFlags;
453
- /** version: 2.5.3 */
453
+ /** version: 2.5.4 */
454
454
 
455
455
  /*
456
456
  * Copyright (c) 2018, salesforce.com, inc.
@@ -924,6 +924,15 @@
924
924
  function isNodeShadowed(node) {
925
925
  return !isUndefined(getNodeOwnerKey(node));
926
926
  }
927
+ /**
928
+ * Returns true if this node is a shadow host, is in a shadow host, or contains a shadow host
929
+ * anywhere in its tree.
930
+ */
931
+
932
+
933
+ function isNodeOrDescendantsShadowed(node) {
934
+ return isNodeShadowed(node) || isSyntheticShadowHost(node) || containsHost(node);
935
+ }
927
936
  /*
928
937
  * Copyright (c) 2018, salesforce.com, inc.
929
938
  * All rights reserved.
@@ -1113,13 +1122,13 @@
1113
1122
  }
1114
1123
 
1115
1124
  function getFilteredChildNodes(node) {
1116
- if (!isHostElement(node) && !isSlotElement(node)) {
1125
+ if (!isSyntheticShadowHost(node) && !isSlotElement(node)) {
1117
1126
  // regular element - fast path
1118
1127
  var children = childNodesGetter.call(node);
1119
1128
  return arrayFromCollection(children);
1120
1129
  }
1121
1130
 
1122
- if (isHostElement(node)) {
1131
+ if (isSyntheticShadowHost(node)) {
1123
1132
  // we need to get only the nodes that were slotted
1124
1133
  var slots = arrayFromCollection(querySelectorAll$1.call(node, 'slot'));
1125
1134
  var resolver = getShadowRootResolver(getShadowRoot(node)); // Typescript is inferring the wrong function type for this particular
@@ -1531,7 +1540,7 @@
1531
1540
 
1532
1541
 
1533
1542
  function hasMountedChildren(node) {
1534
- return isSyntheticSlotElement(node) || isHostElement(node);
1543
+ return isSyntheticSlotElement(node) || isSyntheticShadowHost(node);
1535
1544
  }
1536
1545
 
1537
1546
  function getShadowParent(node, value) {
@@ -1652,9 +1661,9 @@
1652
1661
 
1653
1662
 
1654
1663
  function childNodesGetterPatched() {
1655
- if (isHostElement(this)) {
1664
+ if (isSyntheticShadowHost(this)) {
1656
1665
  var owner = getNodeOwner(this);
1657
- var childNodes = isNull(owner) ? [] : getAllMatches(owner, getFilteredChildNodes(this));
1666
+ var childNodes = isNull(owner) ? getFilteredChildNodes(this) : getAllMatches(owner, getFilteredChildNodes(this));
1658
1667
 
1659
1668
  return createStaticNodeList(childNodes);
1660
1669
  } // nothing to do here since this does not have a synthetic shadow attached to it
@@ -1755,7 +1764,8 @@
1755
1764
  textContent: {
1756
1765
  get: function get() {
1757
1766
  if (!runtimeFlags.ENABLE_NODE_PATCH) {
1758
- if (isNodeShadowed(this) || isHostElement(this)) {
1767
+ // See note on get innerHTML in faux-shadow/element.ts
1768
+ if (isNodeOrDescendantsShadowed(this)) {
1759
1769
  return textContentGetterPatched.call(this);
1760
1770
  }
1761
1771
 
@@ -1860,7 +1870,7 @@
1860
1870
  return false;
1861
1871
  }
1862
1872
 
1863
- if (isNodeShadowed(this) || isHostElement(this)) {
1873
+ if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1864
1874
  return containsPatched.call(this, otherNode);
1865
1875
  }
1866
1876
 
@@ -1881,7 +1891,7 @@
1881
1891
  cloneNode: {
1882
1892
  value: function value(deep) {
1883
1893
  if (!runtimeFlags.ENABLE_NODE_PATCH) {
1884
- if (isNodeShadowed(this) || isHostElement(this)) {
1894
+ if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1885
1895
  return cloneNodePatched.call(this, deep);
1886
1896
  }
1887
1897
 
@@ -1984,7 +1994,7 @@
1984
1994
  createDocumentFragment = _document.createDocumentFragment;
1985
1995
 
1986
1996
  function hasInternalSlot(root) {
1987
- return Boolean(InternalSlot.get(root));
1997
+ return InternalSlot.has(root);
1988
1998
  }
1989
1999
 
1990
2000
  function getInternalSlot(root) {
@@ -2036,14 +2046,36 @@
2036
2046
  // and we can avoid having to cast the type before calling this method in a few places.
2037
2047
 
2038
2048
 
2039
- function isHostElement(node) {
2040
- return !isUndefined(InternalSlot.get(node));
2049
+ function isSyntheticShadowHost(node) {
2050
+ var shadowRootRecord = InternalSlot.get(node);
2051
+ return !isUndefined(shadowRootRecord) && node === shadowRootRecord.host;
2052
+ }
2053
+
2054
+ function isSyntheticShadowRoot(node) {
2055
+ var shadowRootRecord = InternalSlot.get(node);
2056
+ return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
2057
+ } // Return true if any descendant is a host element
2058
+
2059
+
2060
+ function containsHost(node) {
2061
+ // IE requires all arguments
2062
+ // https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker#browser_compatibility
2063
+ var walker = document.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, null, false);
2064
+ var descendant;
2065
+
2066
+ while (!isNull(descendant = walker.nextNode())) {
2067
+ if (isSyntheticShadowHost(descendant)) {
2068
+ return true;
2069
+ }
2070
+ }
2071
+
2072
+ return false;
2041
2073
  }
2042
2074
 
2043
2075
  var uid = 0;
2044
2076
 
2045
2077
  function attachShadow(elm, options) {
2046
- if (!isUndefined(InternalSlot.get(elm))) {
2078
+ if (InternalSlot.has(elm)) {
2047
2079
  throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");
2048
2080
  }
2049
2081
 
@@ -2547,7 +2579,7 @@
2547
2579
  } else {
2548
2580
  current = current.parentNode;
2549
2581
  }
2550
- } else if ((current instanceof SyntheticShadowRoot || isInstanceOfNativeShadowRoot(current)) && (composed || current !== startRoot)) {
2582
+ } else if ((isSyntheticShadowRoot(current) || isInstanceOfNativeShadowRoot(current)) && (composed || current !== startRoot)) {
2551
2583
  current = current.host;
2552
2584
  } else if (current instanceof _Node) {
2553
2585
  current = current.parentNode;
@@ -2609,7 +2641,7 @@
2609
2641
  lastRoot = root;
2610
2642
  }
2611
2643
 
2612
- if (!(root instanceof SyntheticShadowRoot) || !isUndefined(rootIdx) && rootIdx > -1) {
2644
+ if (!isSyntheticShadowRoot(root) || !isUndefined(rootIdx) && rootIdx > -1) {
2613
2645
  return ancestor;
2614
2646
  }
2615
2647
  }
@@ -3402,10 +3434,10 @@
3402
3434
  if (ArrayIndexOf.call(targetObservers, this) === -1) {
3403
3435
  ArrayPush.call(targetObservers, this);
3404
3436
  } // else There is more bookkeeping to do here https://dom.spec.whatwg.org/#dom-mutationobserver-observe Step #7
3405
- // If the target is a SyntheticShadowRoot, observe the host since the shadowRoot is an empty documentFragment
3437
+ // SyntheticShadowRoot instances are not actually a part of the DOM so observe the host instead.
3406
3438
 
3407
3439
 
3408
- if (target instanceof SyntheticShadowRoot) {
3440
+ if (isSyntheticShadowRoot(target)) {
3409
3441
  target = target.host;
3410
3442
  } // maintain a list of all nodes observed by this observer
3411
3443
 
@@ -3448,7 +3480,7 @@
3448
3480
  */
3449
3481
 
3450
3482
  function patchedAddEventListener$1(type, listener, optionsOrCapture) {
3451
- if (isHostElement(this)) {
3483
+ if (isSyntheticShadowHost(this)) {
3452
3484
  // Typescript does not like it when you treat the `arguments` object as an array
3453
3485
  // @ts-ignore type-mismatch
3454
3486
  return addCustomElementEventListener.apply(this, arguments);
@@ -3476,7 +3508,7 @@
3476
3508
  }
3477
3509
 
3478
3510
  function patchedRemoveEventListener$1(_type, _listener, _optionsOrCapture) {
3479
- if (isHostElement(this)) {
3511
+ if (isSyntheticShadowHost(this)) {
3480
3512
  // Typescript does not like it when you treat the `arguments` object as an array
3481
3513
  // @ts-ignore type-mismatch
3482
3514
  return removeCustomElementEventListener.apply(this, arguments);
@@ -3642,7 +3674,7 @@
3642
3674
  var actualCurrentTarget = originalCurrentTarget;
3643
3675
  var actualPath = composedPath; // Address the possibility that `currentTarget` is a shadow root
3644
3676
 
3645
- if (isHostElement(originalCurrentTarget)) {
3677
+ if (isSyntheticShadowHost(originalCurrentTarget)) {
3646
3678
  var context = eventToContextMap.get(this);
3647
3679
 
3648
3680
  if (context === 1
@@ -3653,7 +3685,7 @@
3653
3685
  } // Address the possibility that `target` is a shadow root
3654
3686
 
3655
3687
 
3656
- if (isHostElement(originalTarget) && eventToShadowRootMap.has(this)) {
3688
+ if (isSyntheticShadowHost(originalTarget) && eventToShadowRootMap.has(this)) {
3657
3689
  actualPath = pathComposer(getShadowRoot(originalTarget), this.composed);
3658
3690
  }
3659
3691
 
@@ -3690,7 +3722,7 @@
3690
3722
 
3691
3723
  var actualTarget = originalTarget;
3692
3724
 
3693
- if (isHostElement(originalTarget) && eventToShadowRootMap.has(this)) {
3725
+ if (isSyntheticShadowHost(originalTarget) && eventToShadowRootMap.has(this)) {
3694
3726
  actualTarget = getShadowRoot(originalTarget);
3695
3727
  }
3696
3728
 
@@ -3951,7 +3983,7 @@
3951
3983
  var ownerKey = getNodeOwnerKey(context); // a node inside a shadow.
3952
3984
 
3953
3985
  if (!isUndefined(ownerKey)) {
3954
- if (isHostElement(context)) {
3986
+ if (isSyntheticShadowHost(context)) {
3955
3987
  // element with shadowRoot attached
3956
3988
  var owner = getNodeOwner(context);
3957
3989
 
@@ -4016,7 +4048,7 @@
4016
4048
  }
4017
4049
 
4018
4050
  function shadowRootGetterPatched() {
4019
- if (isHostElement(this)) {
4051
+ if (isSyntheticShadowHost(this)) {
4020
4052
  var shadow = getShadowRoot(this);
4021
4053
 
4022
4054
  if (shadow.mode === 'open') {
@@ -4054,7 +4086,10 @@
4054
4086
  innerHTML: {
4055
4087
  get: function get() {
4056
4088
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4057
- if (isNodeShadowed(this) || isHostElement(this)) {
4089
+ // If this element is in synthetic shadow, if it's a synthetic shadow host,
4090
+ // or if any of its descendants are synthetic shadow hosts, then we can't
4091
+ // use the native innerHTML because it would expose private node internals.
4092
+ if (isNodeOrDescendantsShadowed(this)) {
4058
4093
  return innerHTMLGetterPatched.call(this);
4059
4094
  }
4060
4095
 
@@ -4077,7 +4112,8 @@
4077
4112
  outerHTML: {
4078
4113
  get: function get() {
4079
4114
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
4080
- if (isNodeShadowed(this) || isHostElement(this)) {
4115
+ // See notes above on get innerHTML
4116
+ if (isNodeOrDescendantsShadowed(this)) {
4081
4117
  return outerHTMLGetterPatched.call(this);
4082
4118
  }
4083
4119
 
@@ -4178,7 +4214,7 @@
4178
4214
 
4179
4215
  var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
4180
4216
 
4181
- if (isHostElement(this)) {
4217
+ if (isSyntheticShadowHost(this)) {
4182
4218
  // element with shadowRoot attached
4183
4219
  var owner = getNodeOwner(this);
4184
4220
 
@@ -4238,7 +4274,7 @@
4238
4274
  function getFilteredArrayOfNodes(context, unfilteredNodes, shadowDomSemantic) {
4239
4275
  var filtered;
4240
4276
 
4241
- if (isHostElement(context)) {
4277
+ if (isSyntheticShadowHost(context)) {
4242
4278
  // element with shadowRoot attached
4243
4279
  var owner = getNodeOwner(context);
4244
4280
 
@@ -4437,7 +4473,7 @@
4437
4473
 
4438
4474
 
4439
4475
  function isTabbable(element) {
4440
- if (isHostElement(element) && isDelegatingFocus(element)) {
4476
+ if (isSyntheticShadowHost(element) && isDelegatingFocus(element)) {
4441
4477
  return false;
4442
4478
  }
4443
4479
 
@@ -5126,7 +5162,7 @@
5126
5162
  disableKeyboardFocusNavigationRoutines();
5127
5163
  }
5128
5164
 
5129
- if (isHostElement(this) && isDelegatingFocus(this)) {
5165
+ if (isSyntheticShadowHost(this) && isDelegatingFocus(this)) {
5130
5166
  hostElementFocus.call(this);
5131
5167
  return;
5132
5168
  } // Typescript does not like it when you treat the `arguments` object as an array
@@ -5145,14 +5181,14 @@
5145
5181
  defineProperties(HTMLElement.prototype, {
5146
5182
  tabIndex: {
5147
5183
  get: function get() {
5148
- if (isHostElement(this)) {
5184
+ if (isSyntheticShadowHost(this)) {
5149
5185
  return tabIndexGetterPatched.call(this);
5150
5186
  }
5151
5187
 
5152
5188
  return tabIndexGetter.call(this);
5153
5189
  },
5154
5190
  set: function set(v) {
5155
- if (isHostElement(this)) {
5191
+ if (isSyntheticShadowHost(this)) {
5156
5192
  return tabIndexSetterPatched.call(this, v);
5157
5193
  }
5158
5194
 
@@ -5163,7 +5199,7 @@
5163
5199
  },
5164
5200
  blur: {
5165
5201
  value: function value() {
5166
- if (isHostElement(this)) {
5202
+ if (isSyntheticShadowHost(this)) {
5167
5203
  return blurPatched.call(this);
5168
5204
  }
5169
5205
 
@@ -5193,7 +5229,7 @@
5193
5229
  }
5194
5230
 
5195
5231
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
5196
- if (isNodeShadowed(this) || isHostElement(this)) {
5232
+ if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
5197
5233
  return getInnerText(this);
5198
5234
  }
5199
5235
 
@@ -5227,7 +5263,7 @@
5227
5263
  }
5228
5264
 
5229
5265
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
5230
- if (isNodeShadowed(this) || isHostElement(this)) {
5266
+ if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
5231
5267
  return getInnerText(this);
5232
5268
  }
5233
5269
 
@@ -5328,7 +5364,7 @@
5328
5364
  if (node instanceof Element) {
5329
5365
  setShadowToken(node, shadowToken);
5330
5366
 
5331
- if (isHostElement(node)) {
5367
+ if (isSyntheticShadowHost(node)) {
5332
5368
  // Root LWC elements can't get content slotted into them, therefore we don't observe their children.
5333
5369
  return;
5334
5370
  }
@@ -5431,6 +5467,6 @@
5431
5467
  },
5432
5468
  configurable: true
5433
5469
  });
5434
- /** version: 2.5.3 */
5470
+ /** version: 2.5.4 */
5435
5471
 
5436
5472
  }));
@@ -8,7 +8,7 @@
8
8
  function isUndefined(obj) {
9
9
  return obj === undefined;
10
10
  }
11
- /** version: 2.5.3 */
11
+ /** version: 2.5.4 */
12
12
 
13
13
  /*
14
14
  * Copyright (c) 2018, salesforce.com, inc.
@@ -227,6 +227,6 @@ class LegacyWireAdapterBridge {
227
227
  }
228
228
 
229
229
  }
230
- /** version: 2.5.3 */
230
+ /** version: 2.5.4 */
231
231
 
232
232
  export { ValueChangedEvent, register, registerWireService };
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
11
11
  function isUndefined(obj) {
12
12
  return obj === undefined;
13
13
  }
14
- /** version: 2.5.3 */
14
+ /** version: 2.5.4 */
15
15
 
16
16
  /*
17
17
  * Copyright (c) 2018, salesforce.com, inc.
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
230
230
  }
231
231
 
232
232
  }
233
- /** version: 2.5.3 */
233
+ /** version: 2.5.4 */
234
234
 
235
235
  exports.ValueChangedEvent = ValueChangedEvent;
236
236
  exports.register = register;
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
11
11
  function isUndefined(obj) {
12
12
  return obj === undefined;
13
13
  }
14
- /** version: 2.5.3 */
14
+ /** version: 2.5.4 */
15
15
 
16
16
  /*
17
17
  * Copyright (c) 2018, salesforce.com, inc.
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
230
230
  }
231
231
 
232
232
  }
233
- /** version: 2.5.3 */
233
+ /** version: 2.5.4 */
234
234
 
235
235
  exports.ValueChangedEvent = ValueChangedEvent;
236
236
  exports.register = register;
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.5.3 */
36
+ /** version: 2.5.4 */
37
37
 
38
38
  /*
39
39
  * Copyright (c) 2018, salesforce.com, inc.
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
280
280
 
281
281
  return LegacyWireAdapterBridge;
282
282
  }();
283
- /** version: 2.5.3 */
283
+ /** version: 2.5.4 */
284
284
 
285
285
  exports.ValueChangedEvent = ValueChangedEvent;
286
286
  exports.register = register;
@@ -1 +1 @@
1
- var WireService=function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var y=Array.prototype,d=y.forEach,h=y.splice,v=y.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,d.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){d.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){d.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();return e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
1
+ var WireService=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var y=Array.prototype,d=y.forEach,h=y.splice,v=y.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,d.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){d.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){d.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();return e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.5.3 */
36
+ /** version: 2.5.4 */
37
37
 
38
38
  /*
39
39
  * Copyright (c) 2018, salesforce.com, inc.
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
280
280
 
281
281
  return LegacyWireAdapterBridge;
282
282
  }();
283
- /** version: 2.5.3 */
283
+ /** version: 2.5.4 */
284
284
 
285
285
  exports.ValueChangedEvent = ValueChangedEvent;
286
286
  exports.register = register;
@@ -14,7 +14,7 @@
14
14
  function isUndefined(obj) {
15
15
  return obj === undefined;
16
16
  }
17
- /** version: 2.5.3 */
17
+ /** version: 2.5.4 */
18
18
 
19
19
  /*
20
20
  * Copyright (c) 2018, salesforce.com, inc.
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  }
236
- /** version: 2.5.3 */
236
+ /** version: 2.5.4 */
237
237
 
238
238
  exports.ValueChangedEvent = ValueChangedEvent;
239
239
  exports.register = register;
@@ -14,7 +14,7 @@
14
14
  function isUndefined(obj) {
15
15
  return obj === undefined;
16
16
  }
17
- /** version: 2.5.3 */
17
+ /** version: 2.5.4 */
18
18
 
19
19
  /*
20
20
  * Copyright (c) 2018, salesforce.com, inc.
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  }
236
- /** version: 2.5.3 */
236
+ /** version: 2.5.4 */
237
237
 
238
238
  exports.ValueChangedEvent = ValueChangedEvent;
239
239
  exports.register = register;
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.5.3 */
39
+ /** version: 2.5.4 */
40
40
 
41
41
  /*
42
42
  * Copyright (c) 2018, salesforce.com, inc.
@@ -283,7 +283,7 @@
283
283
 
284
284
  return LegacyWireAdapterBridge;
285
285
  }();
286
- /** version: 2.5.3 */
286
+ /** version: 2.5.4 */
287
287
 
288
288
  exports.ValueChangedEvent = ValueChangedEvent;
289
289
  exports.register = register;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var d=Array.prototype,y=d.forEach,h=d.splice,v=d.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,y.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){y.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){y.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var d=Array.prototype,y=d.forEach,h=d.splice,v=d.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,y.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){y.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){y.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.5.3 */
39
+ /** version: 2.5.4 */
40
40
 
41
41
  /*
42
42
  * Copyright (c) 2018, salesforce.com, inc.
@@ -283,7 +283,7 @@
283
283
 
284
284
  return LegacyWireAdapterBridge;
285
285
  }();
286
- /** version: 2.5.3 */
286
+ /** version: 2.5.4 */
287
287
 
288
288
  exports.ValueChangedEvent = ValueChangedEvent;
289
289
  exports.register = register;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lwc",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "Lightning Web Components (LWC)",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -41,12 +41,12 @@
41
41
  ]
42
42
  },
43
43
  "dependencies": {
44
- "@lwc/compiler": "2.5.3",
45
- "@lwc/engine-dom": "2.5.3",
46
- "@lwc/engine-server": "2.5.3",
47
- "@lwc/features": "2.5.3",
48
- "@lwc/synthetic-shadow": "2.5.3",
49
- "@lwc/wire-service": "2.5.3"
44
+ "@lwc/compiler": "2.5.4",
45
+ "@lwc/engine-dom": "2.5.4",
46
+ "@lwc/engine-server": "2.5.4",
47
+ "@lwc/features": "2.5.4",
48
+ "@lwc/synthetic-shadow": "2.5.4",
49
+ "@lwc/wire-service": "2.5.4"
50
50
  },
51
- "gitHead": "ac4aabb18775261b4b6f71eefd5e4cfc172c895b"
51
+ "gitHead": "ff17b5fc759b6444e16fa7adb559bede758136c9"
52
52
  }