lwc 2.17.0 → 2.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +137 -137
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +137 -137
  3. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +116 -116
  4. package/dist/engine-dom/iife/es5/engine-dom.js +148 -149
  5. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  6. package/dist/engine-dom/iife/es5/engine-dom_debug.js +127 -128
  7. package/dist/engine-dom/umd/es2017/engine-dom.js +137 -137
  8. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +116 -116
  9. package/dist/engine-dom/umd/es5/engine-dom.js +148 -149
  10. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  11. package/dist/engine-dom/umd/es5/engine-dom_debug.js +127 -128
  12. package/dist/engine-server/commonjs/es2017/engine-server.js +114 -114
  13. package/dist/engine-server/esm/es2017/engine-server.js +114 -114
  14. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
  15. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
  16. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +20 -20
  17. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
  18. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +20 -20
  19. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
  20. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +20 -20
  21. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
  22. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +20 -20
  23. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  24. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  25. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  26. package/dist/wire-service/iife/es5/wire-service.js +4 -4
  27. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  28. package/dist/wire-service/iife/es5/wire-service_debug.js +4 -4
  29. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  30. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es5/wire-service.js +4 -4
  32. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  33. package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
  34. package/package.json +7 -7
@@ -125,7 +125,7 @@
125
125
  var KEY__SHADOW_TOKEN = '$shadowToken$';
126
126
  var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
127
127
  var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
128
- /** version: 2.17.0 */
128
+ /** version: 2.19.1 */
129
129
 
130
130
  /*
131
131
  * Copyright (c) 2018, salesforce.com, inc.
@@ -134,7 +134,7 @@
134
134
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
135
135
  */
136
136
  // TODO [#2472]: Remove this workaround when appropriate.
137
- // eslint-disable-next-line lwc-internal/no-global-node
137
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
138
138
 
139
139
 
140
140
  var _Node = Node;
@@ -1211,7 +1211,7 @@
1211
1211
  }
1212
1212
 
1213
1213
  var runtimeFlags = _globalThis.lwcRuntimeFlags;
1214
- /** version: 2.17.0 */
1214
+ /** version: 2.19.1 */
1215
1215
 
1216
1216
  /*
1217
1217
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1748,7 +1748,7 @@
1748
1748
  };
1749
1749
 
1750
1750
  shadowRootWrappedListener.placement = 1
1751
- /* SHADOW_ROOT_LISTENER */
1751
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
1752
1752
  ;
1753
1753
  shadowRootEventListenerMap.set(listener, shadowRootWrappedListener);
1754
1754
  }
@@ -1777,7 +1777,7 @@
1777
1777
  };
1778
1778
 
1779
1779
  customElementWrappedListener.placement = 0
1780
- /* CUSTOM_ELEMENT_LISTENER */
1780
+ /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */
1781
1781
  ;
1782
1782
  customElementEventListenerMap.set(listener, customElementWrappedListener);
1783
1783
  }
@@ -1830,24 +1830,24 @@
1830
1830
  }
1831
1831
 
1832
1832
  eventToContextMap.set(evt, 1
1833
- /* SHADOW_ROOT_LISTENER */
1833
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
1834
1834
  );
1835
1835
  invokeListenersByPlacement(1
1836
- /* SHADOW_ROOT_LISTENER */
1836
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
1837
1837
  );
1838
1838
 
1839
1839
  if (isFalse(immediatePropagationStopped) && isFalse(propagationStopped)) {
1840
1840
  // doing the second iteration only if the first one didn't interrupt the event propagation
1841
1841
  eventToContextMap.set(evt, 0
1842
- /* CUSTOM_ELEMENT_LISTENER */
1842
+ /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */
1843
1843
  );
1844
1844
  invokeListenersByPlacement(0
1845
- /* CUSTOM_ELEMENT_LISTENER */
1845
+ /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */
1846
1846
  );
1847
1847
  }
1848
1848
 
1849
1849
  eventToContextMap.set(evt, 2
1850
- /* UNKNOWN_LISTENER */
1850
+ /* EventListenerContext.UNKNOWN_LISTENER */
1851
1851
  );
1852
1852
  }
1853
1853
 
@@ -3565,7 +3565,7 @@
3565
3565
  }
3566
3566
 
3567
3567
  if (eventToContextMap.get(this) === 1
3568
- /* SHADOW_ROOT_LISTENER */
3568
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
3569
3569
  ) {
3570
3570
  return getShadowRoot(currentTarget);
3571
3571
  }
@@ -3610,7 +3610,7 @@
3610
3610
  var context = eventToContextMap.get(this);
3611
3611
 
3612
3612
  if (context === 1
3613
- /* SHADOW_ROOT_LISTENER */
3613
+ /* EventListenerContext.SHADOW_ROOT_LISTENER */
3614
3614
  ) {
3615
3615
  actualCurrentTarget = getShadowRoot(originalCurrentTarget);
3616
3616
  }
@@ -4250,7 +4250,7 @@
4250
4250
  return getNodeNearestOwnerKey(elm) === ownerKey;
4251
4251
  });
4252
4252
  } else if (shadowDomSemantic === 1
4253
- /* Enabled */
4253
+ /* ShadowDomSemantic.Enabled */
4254
4254
  ) {
4255
4255
  // context is inside a shadow, we dont know which one.
4256
4256
  var contextNearestOwnerKey = getNodeNearestOwnerKey(context);
@@ -4263,7 +4263,7 @@
4263
4263
  }
4264
4264
  } else {
4265
4265
  if (context instanceof HTMLBodyElement || shadowDomSemantic === 1
4266
- /* Enabled */
4266
+ /* ShadowDomSemantic.Enabled */
4267
4267
  ) {
4268
4268
  // `context` is document.body or element belonging to the document with the patch enabled
4269
4269
  filtered = ArrayFilter.call(unfilteredNodes, // TODO [#1222]: remove global bypass
@@ -4301,13 +4301,13 @@
4301
4301
 
4302
4302
  if (!runtimeFlags.ENABLE_NODE_LIST_PATCH) {
4303
4303
  var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
4304
- /* Disabled */
4304
+ /* ShadowDomSemantic.Disabled */
4305
4305
  );
4306
4306
  return createStaticNodeList(filteredResults);
4307
4307
  }
4308
4308
 
4309
4309
  return createStaticNodeList(getFilteredArrayOfNodes(this, nodeList, 1
4310
- /* Enabled */
4310
+ /* ShadowDomSemantic.Enabled */
4311
4311
  ));
4312
4312
  },
4313
4313
  writable: true,
@@ -4327,7 +4327,7 @@
4327
4327
  }
4328
4328
 
4329
4329
  var filteredResults = getFilteredArrayOfNodes(this, elements, 1
4330
- /* Enabled */
4330
+ /* ShadowDomSemantic.Enabled */
4331
4331
  );
4332
4332
  return createStaticHTMLCollection(filteredResults);
4333
4333
  },
@@ -4344,7 +4344,7 @@
4344
4344
  }
4345
4345
 
4346
4346
  var filteredResults = getFilteredArrayOfNodes(this, elements, 1
4347
- /* Enabled */
4347
+ /* ShadowDomSemantic.Enabled */
4348
4348
  );
4349
4349
  return createStaticHTMLCollection(filteredResults);
4350
4350
  },
@@ -4361,7 +4361,7 @@
4361
4361
  }
4362
4362
 
4363
4363
  var filteredResults = getFilteredArrayOfNodes(this, elements, 1
4364
- /* Enabled */
4364
+ /* ShadowDomSemantic.Enabled */
4365
4365
  );
4366
4366
  return createStaticHTMLCollection(filteredResults);
4367
4367
  },
@@ -5443,6 +5443,6 @@
5443
5443
  },
5444
5444
  configurable: true
5445
5445
  });
5446
- /** version: 2.17.0 */
5446
+ /** version: 2.19.1 */
5447
5447
 
5448
5448
  }));
@@ -7,7 +7,7 @@
7
7
  function isUndefined(obj) {
8
8
  return obj === undefined;
9
9
  }
10
- /** version: 2.17.0 */
10
+ /** version: 2.19.1 */
11
11
 
12
12
  /*
13
13
  * Copyright (c) 2018, salesforce.com, inc.
@@ -181,6 +181,6 @@ class LegacyWireAdapterBridge {
181
181
  forEach.call(this.disconnecting, (listener) => listener.call(undefined));
182
182
  }
183
183
  }
184
- /** version: 2.17.0 */
184
+ /** version: 2.19.1 */
185
185
 
186
186
  export { ValueChangedEvent, register, registerWireService };
@@ -10,7 +10,7 @@ var WireService = (function (exports) {
10
10
  function isUndefined(obj) {
11
11
  return obj === undefined;
12
12
  }
13
- /** version: 2.17.0 */
13
+ /** version: 2.19.1 */
14
14
 
15
15
  /*
16
16
  * Copyright (c) 2018, salesforce.com, inc.
@@ -184,7 +184,7 @@ var WireService = (function (exports) {
184
184
  forEach.call(this.disconnecting, (listener) => listener.call(undefined));
185
185
  }
186
186
  }
187
- /** version: 2.17.0 */
187
+ /** version: 2.19.1 */
188
188
 
189
189
  exports.ValueChangedEvent = ValueChangedEvent;
190
190
  exports.register = register;
@@ -10,7 +10,7 @@ var WireService = (function (exports) {
10
10
  function isUndefined(obj) {
11
11
  return obj === undefined;
12
12
  }
13
- /** version: 2.17.0 */
13
+ /** version: 2.19.1 */
14
14
 
15
15
  /*
16
16
  * Copyright (c) 2018, salesforce.com, inc.
@@ -184,7 +184,7 @@ var WireService = (function (exports) {
184
184
  forEach.call(this.disconnecting, (listener) => listener.call(undefined));
185
185
  }
186
186
  }
187
- /** version: 2.17.0 */
187
+ /** version: 2.19.1 */
188
188
 
189
189
  exports.ValueChangedEvent = ValueChangedEvent;
190
190
  exports.register = register;
@@ -5,7 +5,7 @@ var WireService = (function (exports) {
5
5
 
6
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
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
9
 
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
11
 
@@ -15,7 +15,7 @@ var WireService = (function (exports) {
15
15
 
16
16
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
17
17
 
18
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
18
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
19
 
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
21
 
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.17.0 */
36
+ /** version: 2.19.1 */
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.17.0 */
283
+ /** version: 2.19.1 */
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");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}({});
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?Object.setPrototypeOf.bind():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.bind():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}({});
@@ -5,7 +5,7 @@ var WireService = (function (exports) {
5
5
 
6
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
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
9
 
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
11
 
@@ -15,7 +15,7 @@ var WireService = (function (exports) {
15
15
 
16
16
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
17
17
 
18
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
18
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
19
 
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
21
 
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.17.0 */
36
+ /** version: 2.19.1 */
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.17.0 */
283
+ /** version: 2.19.1 */
284
284
 
285
285
  exports.ValueChangedEvent = ValueChangedEvent;
286
286
  exports.register = register;
@@ -13,7 +13,7 @@
13
13
  function isUndefined(obj) {
14
14
  return obj === undefined;
15
15
  }
16
- /** version: 2.17.0 */
16
+ /** version: 2.19.1 */
17
17
 
18
18
  /*
19
19
  * Copyright (c) 2018, salesforce.com, inc.
@@ -187,7 +187,7 @@
187
187
  forEach.call(this.disconnecting, (listener) => listener.call(undefined));
188
188
  }
189
189
  }
190
- /** version: 2.17.0 */
190
+ /** version: 2.19.1 */
191
191
 
192
192
  exports.ValueChangedEvent = ValueChangedEvent;
193
193
  exports.register = register;
@@ -13,7 +13,7 @@
13
13
  function isUndefined(obj) {
14
14
  return obj === undefined;
15
15
  }
16
- /** version: 2.17.0 */
16
+ /** version: 2.19.1 */
17
17
 
18
18
  /*
19
19
  * Copyright (c) 2018, salesforce.com, inc.
@@ -187,7 +187,7 @@
187
187
  forEach.call(this.disconnecting, (listener) => listener.call(undefined));
188
188
  }
189
189
  }
190
- /** version: 2.17.0 */
190
+ /** version: 2.19.1 */
191
191
 
192
192
  exports.ValueChangedEvent = ValueChangedEvent;
193
193
  exports.register = register;
@@ -8,7 +8,7 @@
8
8
 
9
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
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
 
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
20
 
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
22
 
23
23
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
24
24
 
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.17.0 */
39
+ /** version: 2.19.1 */
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.17.0 */
286
+ /** version: 2.19.1 */
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");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})}));
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?Object.setPrototypeOf.bind():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.bind():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,b=y.splice,v=y.indexOf,g="connect",m="disconnect",w="config";function E(e,t){var n=v.call(e,t);n>-1&&b.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})}));
@@ -8,7 +8,7 @@
8
8
 
9
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
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
 
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
20
 
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
22
 
23
23
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
24
24
 
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.17.0 */
39
+ /** version: 2.19.1 */
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.17.0 */
286
+ /** version: 2.19.1 */
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.17.0",
3
+ "version": "2.19.1",
4
4
  "description": "Lightning Web Components (LWC)",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -42,11 +42,11 @@
42
42
  ]
43
43
  },
44
44
  "dependencies": {
45
- "@lwc/compiler": "2.17.0",
46
- "@lwc/engine-dom": "2.17.0",
47
- "@lwc/engine-server": "2.17.0",
48
- "@lwc/features": "2.17.0",
49
- "@lwc/synthetic-shadow": "2.17.0",
50
- "@lwc/wire-service": "2.17.0"
45
+ "@lwc/compiler": "2.19.1",
46
+ "@lwc/engine-dom": "2.19.1",
47
+ "@lwc/engine-server": "2.19.1",
48
+ "@lwc/features": "2.19.1",
49
+ "@lwc/synthetic-shadow": "2.19.1",
50
+ "@lwc/wire-service": "2.19.1"
51
51
  }
52
52
  }