lwc 2.6.2 → 2.6.3

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 +578 -384
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +578 -384
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -9
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +552 -360
  5. package/dist/engine-dom/iife/es5/engine-dom.js +630 -335
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -9
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +598 -311
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +578 -384
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -9
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +552 -360
  11. package/dist/engine-dom/umd/es5/engine-dom.js +630 -335
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -9
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +598 -311
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +647 -454
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -9
  16. package/dist/engine-server/esm/es2017/engine-server.js +647 -454
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +115 -13
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +115 -13
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +115 -13
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +119 -13
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +119 -13
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +115 -13
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +115 -13
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +119 -13
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +119 -13
  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 +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 +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 +3 -3
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +3 -3
  41. package/package.json +8 -8
@@ -123,7 +123,7 @@
123
123
  var KEY__SHADOW_TOKEN = '$shadowToken$';
124
124
  var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
125
125
  var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
126
- /** version: 2.6.2 */
126
+ /** version: 2.6.3 */
127
127
 
128
128
  /*
129
129
  * Copyright (c) 2018, salesforce.com, inc.
@@ -222,6 +222,9 @@
222
222
  var shadowRootGetter = hasOwnProperty.call(Element.prototype, 'shadowRoot') ? getOwnPropertyDescriptor(Element.prototype, 'shadowRoot').get : function () {
223
223
  return null;
224
224
  };
225
+ var assignedSlotGetter$1 = hasOwnProperty.call(Element.prototype, 'assignedSlot') ? getOwnPropertyDescriptor(Element.prototype, 'assignedSlot').get : function () {
226
+ return null;
227
+ };
225
228
  /*
226
229
  * Copyright (c) 2018, salesforce.com, inc.
227
230
  * All rights reserved.
@@ -814,6 +817,15 @@
814
817
  function isNodeShadowed(node) {
815
818
  return !isUndefined(getNodeOwnerKey(node));
816
819
  }
820
+ /**
821
+ * Returns true if this node is a shadow host, is in a shadow host, or contains a shadow host
822
+ * anywhere in its tree.
823
+ */
824
+
825
+
826
+ function isNodeOrDescendantsShadowed(node) {
827
+ return isNodeShadowed(node) || isSyntheticShadowHost(node) || containsHost(node);
828
+ }
817
829
  /*
818
830
  * Copyright (c) 2018, salesforce.com, inc.
819
831
  * All rights reserved.
@@ -1417,7 +1429,7 @@
1417
1429
  }
1418
1430
 
1419
1431
  var runtimeFlags = _globalThis.lwcRuntimeFlags;
1420
- /** version: 2.6.2 */
1432
+ /** version: 2.6.3 */
1421
1433
 
1422
1434
  /*
1423
1435
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1511,7 +1523,9 @@
1511
1523
  }
1512
1524
 
1513
1525
  function compareDocumentPositionPatched(otherNode) {
1514
- if (this.getRootNode() === otherNode) {
1526
+ if (this === otherNode) {
1527
+ return 0;
1528
+ } else if (this.getRootNode() === otherNode) {
1515
1529
  // "this" is in a shadow tree where the shadow root is the "otherNode".
1516
1530
  return 10; // Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING
1517
1531
  } else if (getNodeOwnerKey(this) !== getNodeOwnerKey(otherNode)) {
@@ -1557,7 +1571,7 @@
1557
1571
  function childNodesGetterPatched() {
1558
1572
  if (isSyntheticShadowHost(this)) {
1559
1573
  var owner = getNodeOwner(this);
1560
- var childNodes = isNull(owner) ? [] : getAllMatches(owner, getFilteredChildNodes(this));
1574
+ var childNodes = isNull(owner) ? getFilteredChildNodes(this) : getAllMatches(owner, getFilteredChildNodes(this));
1561
1575
 
1562
1576
  return createStaticNodeList(childNodes);
1563
1577
  } // nothing to do here since this does not have a synthetic shadow attached to it
@@ -1658,7 +1672,8 @@
1658
1672
  textContent: {
1659
1673
  get: function get() {
1660
1674
  if (!runtimeFlags.ENABLE_NODE_PATCH) {
1661
- if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
1675
+ // See note on get innerHTML in faux-shadow/element.ts
1676
+ if (isNodeOrDescendantsShadowed(this)) {
1662
1677
  return textContentGetterPatched.call(this);
1663
1678
  }
1664
1679
 
@@ -1852,7 +1867,22 @@
1852
1867
  }
1853
1868
 
1854
1869
  return rootNodes;
1855
- }
1870
+ } // Keep searching up the host tree until we find an element that is within the immediate shadow root
1871
+
1872
+
1873
+ var findAncestorHostInImmediateShadowRoot = function findAncestorHostInImmediateShadowRoot(rootNode, targetRootNode) {
1874
+ var host;
1875
+
1876
+ while (!isUndefined(host = rootNode.host)) {
1877
+ var thisRootNode = host.getRootNode();
1878
+
1879
+ if (thisRootNode === targetRootNode) {
1880
+ return host;
1881
+ }
1882
+
1883
+ rootNode = thisRootNode;
1884
+ }
1885
+ };
1856
1886
 
1857
1887
  function fauxElementsFromPoint(context, doc, left, top) {
1858
1888
  var elements = elementsFromPoint.call(doc, left, top);
@@ -1866,8 +1896,28 @@
1866
1896
  for (var i = 0; i < elements.length; i++) {
1867
1897
  var element = elements[i];
1868
1898
 
1869
- if (rootNodes.indexOf(element.getRootNode()) !== -1 && !isSyntheticSlotElement(element)) {
1870
- result.push(element);
1899
+ if (isSyntheticSlotElement(element)) {
1900
+ continue;
1901
+ }
1902
+
1903
+ var elementRootNode = element.getRootNode();
1904
+
1905
+ if (ArrayIndexOf.call(rootNodes, elementRootNode) !== -1) {
1906
+ ArrayPush.call(result, element);
1907
+ continue;
1908
+ } // In cases where the host element is not visible but its shadow descendants are, then
1909
+ // we may get the shadow descendant instead of the host element here. (The
1910
+ // browser doesn't know the difference in synthetic shadow DOM.)
1911
+ // In native shadow DOM, however, elementsFromPoint would return the host but not
1912
+ // the child. So we need to detect if this shadow element's host is accessible from
1913
+ // the context's shadow root. Note we also need to be careful not to add the host
1914
+ // multiple times.
1915
+
1916
+
1917
+ var ancestorHost = findAncestorHostInImmediateShadowRoot(elementRootNode, rootNodes[0]);
1918
+
1919
+ if (!isUndefined(ancestorHost) && ArrayIndexOf.call(elements, ancestorHost) === -1 && ArrayIndexOf.call(result, ancestorHost) === -1) {
1920
+ ArrayPush.call(result, ancestorHost);
1871
1921
  }
1872
1922
  }
1873
1923
  }
@@ -1947,6 +1997,29 @@
1947
1997
  function isSyntheticShadowRoot(node) {
1948
1998
  var shadowRootRecord = InternalSlot.get(node);
1949
1999
  return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
2000
+ } // Return true if any descendant is a host element
2001
+
2002
+
2003
+ function containsHost(node) {
2004
+ // IE11 complains with "Unexpected call to method or property access." when calling walker.nextNode().
2005
+ // The fix for this is to only walk trees for nodes that are Node.ELEMENT_NODE.
2006
+ if (node.nodeType !== _Node.ELEMENT_NODE) {
2007
+ return false;
2008
+ } // IE requires all four arguments, even though the fourth is deprecated
2009
+ // https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker#browser_compatibility
2010
+ // @ts-ignore
2011
+
2012
+
2013
+ var walker = document.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, null, false);
2014
+ var descendant;
2015
+
2016
+ while (!isNull(descendant = walker.nextNode())) {
2017
+ if (isSyntheticShadowHost(descendant)) {
2018
+ return true;
2019
+ }
2020
+ }
2021
+
2022
+ return false;
1950
2023
  }
1951
2024
 
1952
2025
  var uid = 0;
@@ -1995,6 +2068,12 @@
1995
2068
  value: function value() {
1996
2069
  return "[object ShadowRoot]";
1997
2070
  }
2071
+ },
2072
+ synthetic: {
2073
+ writable: false,
2074
+ enumerable: false,
2075
+ configurable: false,
2076
+ value: true
1998
2077
  }
1999
2078
  };
2000
2079
  var ShadowRootDescriptors = {
@@ -3687,6 +3766,16 @@
3687
3766
  */
3688
3767
 
3689
3768
  retargetRelatedTarget(MouseEvent);
3769
+ /*
3770
+ * Copyright (c) 2021, salesforce.com, inc.
3771
+ * All rights reserved.
3772
+ * SPDX-License-Identifier: MIT
3773
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3774
+ */
3775
+
3776
+ var assignedSlotGetter = hasOwnProperty.call(Text.prototype, 'assignedSlot') ? getOwnPropertyDescriptor(Text.prototype, 'assignedSlot').get : function () {
3777
+ return null;
3778
+ };
3690
3779
  /*
3691
3780
  * Copyright (c) 2018, salesforce.com, inc.
3692
3781
  * All rights reserved.
@@ -3735,10 +3824,22 @@
3735
3824
  }
3736
3825
 
3737
3826
  function assignedSlotGetterPatched() {
3738
- var parentNode = parentNodeGetter.call(this);
3827
+ var parentNode = parentNodeGetter.call(this); // use original assignedSlot if parent has a native shdow root
3828
+
3829
+ if (parentNode instanceof Element) {
3830
+ var sr = shadowRootGetter.call(parentNode);
3831
+
3832
+ if (isInstanceOfNativeShadowRoot(sr)) {
3833
+ if (this instanceof Text) {
3834
+ return assignedSlotGetter.call(this);
3835
+ }
3836
+
3837
+ return assignedSlotGetter$1.call(this);
3838
+ }
3839
+ }
3739
3840
  /**
3740
3841
  * The node is assigned to a slot if:
3741
- * - it has a parent and it parent its parent is a slot element
3842
+ * - it has a parent and its parent is a slot element
3742
3843
  * - and if the slot owner key is different than the node owner key.
3743
3844
  *
3744
3845
  * When the slot and the slotted node are 2 different shadow trees, the owner keys will be
@@ -3747,6 +3848,7 @@
3747
3848
  * different than the node owner key (always `undefined`).
3748
3849
  */
3749
3850
 
3851
+
3750
3852
  if (!isNull(parentNode) && isSlotElement(parentNode) && getNodeOwnerKey(parentNode) !== getNodeOwnerKey(this)) {
3751
3853
  return parentNode;
3752
3854
  }
@@ -3963,7 +4065,10 @@
3963
4065
  innerHTML: {
3964
4066
  get: function get() {
3965
4067
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
3966
- if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4068
+ // If this element is in synthetic shadow, if it's a synthetic shadow host,
4069
+ // or if any of its descendants are synthetic shadow hosts, then we can't
4070
+ // use the native innerHTML because it would expose private node internals.
4071
+ if (isNodeOrDescendantsShadowed(this)) {
3967
4072
  return innerHTMLGetterPatched.call(this);
3968
4073
  }
3969
4074
 
@@ -3986,7 +4091,8 @@
3986
4091
  outerHTML: {
3987
4092
  get: function get() {
3988
4093
  if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
3989
- if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
4094
+ // See notes above on get innerHTML
4095
+ if (isNodeOrDescendantsShadowed(this)) {
3990
4096
  return outerHTMLGetterPatched.call(this);
3991
4097
  }
3992
4098
 
@@ -5340,6 +5446,6 @@
5340
5446
  },
5341
5447
  configurable: true
5342
5448
  });
5343
- /** version: 2.6.2 */
5449
+ /** version: 2.6.3 */
5344
5450
 
5345
5451
  }));
@@ -8,7 +8,7 @@
8
8
  function isUndefined(obj) {
9
9
  return obj === undefined;
10
10
  }
11
- /** version: 2.6.2 */
11
+ /** version: 2.6.3 */
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.6.2 */
230
+ /** version: 2.6.3 */
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.6.2 */
14
+ /** version: 2.6.3 */
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.6.2 */
233
+ /** version: 2.6.3 */
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.6.2 */
14
+ /** version: 2.6.3 */
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.6.2 */
233
+ /** version: 2.6.3 */
234
234
 
235
235
  exports.ValueChangedEvent = ValueChangedEvent;
236
236
  exports.register = register;
@@ -3,7 +3,7 @@ var WireService = (function (exports) {
3
3
 
4
4
  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); }
5
5
 
6
- 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); }
6
+ 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7
7
 
8
8
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
9
 
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.6.2 */
36
+ /** version: 2.6.3 */
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.6.2 */
283
+ /** version: 2.6.3 */
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},t(e)}function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(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=i(e);if(t){var c=i(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return o(this,n)}}function o(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 i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function c(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 a(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return void 0===e}var s=a((function e(t){u(this,e),this.type="ValueChangedEvent",this.value=t})),l=Object.freeze,p=Object.defineProperty,y=Object.isExtensible;var d=Array.prototype,h=d.forEach,v=d.splice,b=d.indexOf,g="connect",m="disconnect",w="config";function E(e,t){var n=b.call(e,t);n>-1&&v.call(e,n,1)}var O=function(){function e(t){var n=this;u(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 g:n.connecting.push(t);break;case m:n.disconnecting.push(t);break;case w: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 g:E(n.connecting,t);break;case m:E(n.disconnecting,t);break;case w:E(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof s)){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}}}return a(e,[{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!f(e[t])}))}(e,this.dynamicParamsNames)))&&((f(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,h.call(this.configuring,(function(t){t.call(void 0,e)}))))}},{key:"connect",value:function(){h.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){h.call(this.disconnecting,(function(e){return e.call(void 0)}))}}]),e}();return e.ValueChangedEvent=s,e.register=function(e,t){if(null==e||!y(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 o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&n(e,t)}(i,e);var o=r(i);function i(e){var n;return u(this,i),n=o.call(this,e),t(n.eventTarget),n}return a(i)}(O);l(o),l(o.prototype),p(e,"adapter",{writable:!1,configurable:!1,value:o})},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){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(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=i(e);if(t){var c=i(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return o(this,n)}}function o(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 i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function c(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 a(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return void 0===e}var s=a((function e(t){u(this,e),this.type="ValueChangedEvent",this.value=t})),l=Object.freeze,p=Object.defineProperty,y=Object.isExtensible;var d=Array.prototype,h=d.forEach,v=d.splice,b=d.indexOf,g="connect",m="disconnect",w="config";function E(e,t){var n=b.call(e,t);n>-1&&v.call(e,n,1)}var O=function(){function e(t){var n=this;u(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 g:n.connecting.push(t);break;case m:n.disconnecting.push(t);break;case w: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 g:E(n.connecting,t);break;case m:E(n.disconnecting,t);break;case w:E(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof s)){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}}}return a(e,[{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!f(e[t])}))}(e,this.dynamicParamsNames)))&&((f(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,h.call(this.configuring,(function(t){t.call(void 0,e)}))))}},{key:"connect",value:function(){h.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){h.call(this.disconnecting,(function(e){return e.call(void 0)}))}}]),e}();return e.ValueChangedEvent=s,e.register=function(e,t){if(null==e||!y(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 o=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}(i,e);var o=r(i);function i(e){var n;return u(this,i),n=o.call(this,e),t(n.eventTarget),n}return a(i)}(O);l(o),l(o.prototype),p(e,"adapter",{writable:!1,configurable:!1,value:o})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
@@ -3,7 +3,7 @@ var WireService = (function (exports) {
3
3
 
4
4
  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); }
5
5
 
6
- 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); }
6
+ 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7
7
 
8
8
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
9
 
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.6.2 */
36
+ /** version: 2.6.3 */
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.6.2 */
283
+ /** version: 2.6.3 */
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.6.2 */
17
+ /** version: 2.6.3 */
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.6.2 */
236
+ /** version: 2.6.3 */
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.6.2 */
17
+ /** version: 2.6.3 */
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.6.2 */
236
+ /** version: 2.6.3 */
237
237
 
238
238
  exports.ValueChangedEvent = ValueChangedEvent;
239
239
  exports.register = register;
@@ -6,7 +6,7 @@
6
6
 
7
7
  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); }
8
8
 
9
- 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); }
9
+ 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
10
 
11
11
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
 
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.6.2 */
39
+ /** version: 2.6.3 */
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.6.2 */
286
+ /** version: 2.6.3 */
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},t(e)}function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(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=i(e);if(t){var c=i(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return o(this,n)}}function o(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 i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function c(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 a(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return void 0===e}var s=a((function e(t){u(this,e),this.type="ValueChangedEvent",this.value=t})),l=Object.freeze,p=Object.defineProperty,d=Object.isExtensible;var y=Array.prototype,h=y.forEach,v=y.splice,b=y.indexOf,g="connect",m="disconnect",w="config";function E(e,t){var n=b.call(e,t);n>-1&&v.call(e,n,1)}var O=function(){function e(t){var n=this;u(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 g:n.connecting.push(t);break;case m:n.disconnecting.push(t);break;case w: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 g:E(n.connecting,t);break;case m:E(n.disconnecting,t);break;case w:E(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof s)){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}}}return a(e,[{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!f(e[t])}))}(e,this.dynamicParamsNames)))&&((f(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,h.call(this.configuring,(function(t){t.call(void 0,e)}))))}},{key:"connect",value:function(){h.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){h.call(this.disconnecting,(function(e){return e.call(void 0)}))}}]),e}();e.ValueChangedEvent=s,e.register=function(e,t){if(null==e||!d(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 o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&n(e,t)}(i,e);var o=r(i);function i(e){var n;return u(this,i),n=o.call(this,e),t(n.eventTarget),n}return a(i)}(O);l(o),l(o.prototype),p(e,"adapter",{writable:!1,configurable:!1,value:o})},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){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(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=i(e);if(t){var c=i(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return o(this,n)}}function o(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 i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function c(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 a(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return void 0===e}var s=a((function e(t){u(this,e),this.type="ValueChangedEvent",this.value=t})),l=Object.freeze,p=Object.defineProperty,d=Object.isExtensible;var y=Array.prototype,h=y.forEach,v=y.splice,b=y.indexOf,g="connect",m="disconnect",w="config";function E(e,t){var n=b.call(e,t);n>-1&&v.call(e,n,1)}var O=function(){function e(t){var n=this;u(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 g:n.connecting.push(t);break;case m:n.disconnecting.push(t);break;case w: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 g:E(n.connecting,t);break;case m:E(n.disconnecting,t);break;case w:E(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof s)){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}}}return a(e,[{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!f(e[t])}))}(e,this.dynamicParamsNames)))&&((f(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,h.call(this.configuring,(function(t){t.call(void 0,e)}))))}},{key:"connect",value:function(){h.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){h.call(this.disconnecting,(function(e){return e.call(void 0)}))}}]),e}();e.ValueChangedEvent=s,e.register=function(e,t){if(null==e||!d(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 o=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}(i,e);var o=r(i);function i(e){var n;return u(this,i),n=o.call(this,e),t(n.eventTarget),n}return a(i)}(O);l(o),l(o.prototype),p(e,"adapter",{writable:!1,configurable:!1,value:o})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -6,7 +6,7 @@
6
6
 
7
7
  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); }
8
8
 
9
- 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); }
9
+ 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
10
 
11
11
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
 
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.6.2 */
39
+ /** version: 2.6.3 */
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.6.2 */
286
+ /** version: 2.6.3 */
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.6.2",
3
+ "version": "2.6.3",
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.6.2",
45
- "@lwc/engine-dom": "2.6.2",
46
- "@lwc/engine-server": "2.6.2",
47
- "@lwc/features": "2.6.2",
48
- "@lwc/synthetic-shadow": "2.6.2",
49
- "@lwc/wire-service": "2.6.2"
44
+ "@lwc/compiler": "2.6.3",
45
+ "@lwc/engine-dom": "2.6.3",
46
+ "@lwc/engine-server": "2.6.3",
47
+ "@lwc/features": "2.6.3",
48
+ "@lwc/synthetic-shadow": "2.6.3",
49
+ "@lwc/wire-service": "2.6.3"
50
50
  },
51
- "gitHead": "a49666f207d17e164aa914cf00b8f9d5a656228d"
51
+ "gitHead": "1fdd835243eed190b8ab9ca61ae7eae9f9a4073d"
52
52
  }