lwc 2.13.2 → 2.14.0

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 (43) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +339 -113
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +339 -112
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +185 -107
  5. package/dist/engine-dom/iife/es5/engine-dom.js +7560 -5747
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +5942 -4572
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +339 -112
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +185 -107
  11. package/dist/engine-dom/umd/es5/engine-dom.js +7560 -5747
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +5942 -4572
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +176 -36
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +176 -37
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +29 -4
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +29 -4
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +10 -13
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +4 -4
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +4601 -3603
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +10 -1
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +4424 -3481
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +29 -4
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +10 -13
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +4 -4
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +4601 -3603
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +10 -1
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +4424 -3481
  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.min.js +1 -1
  33. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  34. package/dist/wire-service/iife/es5/wire-service.js +243 -258
  35. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  36. package/dist/wire-service/iife/es5/wire-service_debug.js +243 -258
  37. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  38. package/dist/wire-service/umd/es2017/wire-service.min.js +1 -1
  39. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  40. package/dist/wire-service/umd/es5/wire-service.js +243 -258
  41. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  42. package/dist/wire-service/umd/es5/wire-service_debug.js +243 -258
  43. package/package.json +7 -7
@@ -4,301 +4,286 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WireService = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- function _assertThisInitialized(self) {
8
- if (self === void 0) {
9
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10
- }
11
- return self;
12
- }
13
- function _classCallCheck(instance, Constructor) {
14
- if (!(instance instanceof Constructor)) {
15
- throw new TypeError("Cannot call a class as a function");
16
- }
17
- }
18
- function _defineProperties(target, props) {
19
- for(var i = 0; i < props.length; i++){
20
- var descriptor = props[i];
21
- descriptor.enumerable = descriptor.enumerable || false;
22
- descriptor.configurable = true;
23
- if ("value" in descriptor) descriptor.writable = true;
24
- Object.defineProperty(target, descriptor.key, descriptor);
25
- }
26
- }
27
- function _createClass(Constructor, protoProps, staticProps) {
28
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29
- if (staticProps) _defineProperties(Constructor, staticProps);
30
- return Constructor;
31
- }
32
- function _getPrototypeOf(o1) {
33
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
34
- return o.__proto__ || Object.getPrototypeOf(o);
35
- };
36
- return _getPrototypeOf(o1);
37
- }
38
- function _inherits(subClass, superClass) {
39
- if (typeof superClass !== "function" && superClass !== null) {
40
- throw new TypeError("Super expression must either be null or a function");
41
- }
42
- subClass.prototype = Object.create(superClass && superClass.prototype, {
43
- constructor: {
44
- value: subClass,
45
- writable: true,
46
- configurable: true
47
- }
48
- });
49
- if (superClass) _setPrototypeOf(subClass, superClass);
50
- }
51
- function _instanceof(left, right) {
52
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
53
- return !!right[Symbol.hasInstance](left);
54
- } else {
55
- return left instanceof right;
56
- }
57
- }
58
- function _possibleConstructorReturn(self, call) {
59
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
60
- return call;
61
- }
62
- return _assertThisInitialized(self);
63
- }
64
- function _setPrototypeOf(o2, p1) {
65
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
66
- o.__proto__ = p;
67
- return o;
68
- };
69
- return _setPrototypeOf(o2, p1);
70
- }
71
- var _typeof = function(obj) {
72
- "@swc/helpers - typeof";
73
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
74
- };
75
- function _isNativeReflectConstruct() {
76
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77
- if (Reflect.construct.sham) return false;
78
- if (typeof Proxy === "function") return true;
79
- try {
80
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
81
- return true;
82
- } catch (e) {
83
- return false;
84
- }
85
- }
86
- function _createSuper(Derived) {
87
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
88
- return function _createSuperInternal() {
89
- var Super = _getPrototypeOf(Derived), result;
90
- if (hasNativeReflectConstruct) {
91
- var NewTarget = _getPrototypeOf(this).constructor;
92
- result = Reflect.construct(Super, arguments, NewTarget);
93
- } else {
94
- result = Super.apply(this, arguments);
95
- }
96
- return _possibleConstructorReturn(this, result);
97
- };
98
- }
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
+
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
+
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
+
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
+
15
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
16
+
17
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+
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
+
21
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
+
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
+
25
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
+
27
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
28
+
99
29
  /**
100
30
  * Copyright (C) 2018 salesforce.com, inc.
101
- */ /**
31
+ */
32
+
33
+ /**
102
34
  * Copyright (C) 2018 salesforce.com, inc.
103
- */ function isUndefined(obj) {
104
- return obj === undefined;
35
+ */
36
+ function isUndefined(obj) {
37
+ return obj === undefined;
105
38
  }
106
- /** version: 2.13.2 */ /*
39
+ /** version: 2.14.0 */
40
+
41
+ /*
107
42
  * Copyright (c) 2018, salesforce.com, inc.
108
43
  * All rights reserved.
109
44
  * SPDX-License-Identifier: MIT
110
45
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
111
- */ var ValueChangedEventType = "ValueChangedEvent";
46
+ */
47
+
48
+
49
+ var ValueChangedEventType = 'ValueChangedEvent';
112
50
  /**
113
51
  * Event fired by wire adapters to emit a new value.
114
- */ var ValueChangedEvent = function ValueChangedEvent(value) {
115
- _classCallCheck(this, ValueChangedEvent);
116
- this.type = ValueChangedEventType;
117
- this.value = value;
118
- };
52
+ */
53
+
54
+ var ValueChangedEvent = /*#__PURE__*/_createClass(function ValueChangedEvent(value) {
55
+ _classCallCheck(this, ValueChangedEvent);
56
+
57
+ this.type = ValueChangedEventType;
58
+ this.value = value;
59
+ });
119
60
  /*
120
61
  * Copyright (c) 2018, salesforce.com, inc.
121
62
  * All rights reserved.
122
63
  * SPDX-License-Identifier: MIT
123
64
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
124
- */ var freeze = Object.freeze, defineProperty = Object.defineProperty, isExtensible = Object.isExtensible;
125
- // This value needs to be in sync with wiring.ts from @lwc/engine-core
126
- var DeprecatedWiredElementHost = "$$DeprecatedWiredElementHostKey$$";
127
- var DeprecatedWiredParamsMeta = "$$DeprecatedWiredParamsMetaKey$$";
65
+ */
66
+
67
+
68
+ var freeze = Object.freeze,
69
+ defineProperty = Object.defineProperty,
70
+ isExtensible = Object.isExtensible; // This value needs to be in sync with wiring.ts from @lwc/engine-core
71
+
72
+ var DeprecatedWiredElementHost = '$$DeprecatedWiredElementHostKey$$';
73
+ var DeprecatedWiredParamsMeta = '$$DeprecatedWiredParamsMetaKey$$';
128
74
  /**
129
75
  * Registers a wire adapter factory for Lightning Platform.
130
76
  * @deprecated
131
- */ function register(adapterId, adapterEventTargetCallback) {
132
- if (adapterId == null || !isExtensible(adapterId)) {
133
- throw new TypeError("adapter id must be extensible");
134
- }
135
- if (typeof adapterEventTargetCallback !== "function") {
136
- throw new TypeError("adapter factory must be a callable");
137
- }
138
- if ("adapter" in adapterId) {
139
- throw new TypeError("adapter id is already associated to an adapter factory");
77
+ */
78
+
79
+ function register(adapterId, adapterEventTargetCallback) {
80
+ if (adapterId == null || !isExtensible(adapterId)) {
81
+ throw new TypeError('adapter id must be extensible');
82
+ }
83
+
84
+ if (typeof adapterEventTargetCallback !== 'function') {
85
+ throw new TypeError('adapter factory must be a callable');
86
+ }
87
+
88
+ if ('adapter' in adapterId) {
89
+ throw new TypeError('adapter id is already associated to an adapter factory');
90
+ }
91
+
92
+ var AdapterClass = /*#__PURE__*/function (_LegacyWireAdapterBri) {
93
+ _inherits(AdapterClass, _LegacyWireAdapterBri);
94
+
95
+ var _super = _createSuper(AdapterClass);
96
+
97
+ function AdapterClass(dataCallback) {
98
+ var _this;
99
+
100
+ _classCallCheck(this, AdapterClass);
101
+
102
+ _this = _super.call(this, dataCallback);
103
+ adapterEventTargetCallback(_this.eventTarget);
104
+ return _this;
140
105
  }
141
- var AdapterClass = /*#__PURE__*/ function(LegacyWireAdapterBridge1) {
142
- _inherits(_class, LegacyWireAdapterBridge1);
143
- var _super = _createSuper(_class);
144
- function _class(dataCallback) {
145
- _classCallCheck(this, _class);
146
- var _this;
147
- _this = _super.call(this, dataCallback);
148
- adapterEventTargetCallback(_this.eventTarget);
149
- return _this;
150
- }
151
- return _class;
152
- }(LegacyWireAdapterBridge);
153
- freeze(AdapterClass);
154
- freeze(AdapterClass.prototype);
155
- defineProperty(adapterId, "adapter", {
156
- writable: false,
157
- configurable: false,
158
- value: AdapterClass
159
- });
106
+
107
+ return _createClass(AdapterClass);
108
+ }(LegacyWireAdapterBridge);
109
+
110
+ freeze(AdapterClass);
111
+ freeze(AdapterClass.prototype);
112
+ defineProperty(adapterId, 'adapter', {
113
+ writable: false,
114
+ configurable: false,
115
+ value: AdapterClass
116
+ });
160
117
  }
161
118
  /**
162
119
  * Registers the wire service. noop
163
120
  * @deprecated
164
- */ function registerWireService() {}
165
- var _prototype = Array.prototype, forEach = _prototype.forEach, ArraySplice = _prototype.splice, ArrayIndexOf = _prototype.indexOf;
166
- // wire event target life cycle connectedCallback hook event type
167
- var CONNECT = "connect";
168
- // wire event target life cycle disconnectedCallback hook event type
169
- var DISCONNECT = "disconnect";
170
- // wire event target life cycle config changed hook event type
171
- var CONFIG = "config";
121
+ */
122
+
123
+
124
+ function registerWireService() {}
125
+
126
+ var _Array$prototype = Array.prototype,
127
+ forEach = _Array$prototype.forEach,
128
+ ArraySplice = _Array$prototype.splice,
129
+ ArrayIndexOf = _Array$prototype.indexOf; // wire event target life cycle connectedCallback hook event type
130
+
131
+ var CONNECT = 'connect'; // wire event target life cycle disconnectedCallback hook event type
132
+
133
+ var DISCONNECT = 'disconnect'; // wire event target life cycle config changed hook event type
134
+
135
+ var CONFIG = 'config';
136
+
172
137
  function removeListener(listeners, toRemove) {
173
- var idx = ArrayIndexOf.call(listeners, toRemove);
174
- if (idx > -1) {
175
- ArraySplice.call(listeners, idx, 1);
176
- }
138
+ var idx = ArrayIndexOf.call(listeners, toRemove);
139
+
140
+ if (idx > -1) {
141
+ ArraySplice.call(listeners, idx, 1);
142
+ }
177
143
  }
144
+
178
145
  function isEmptyConfig(config) {
179
- return Object.keys(config).length === 0;
146
+ return Object.keys(config).length === 0;
180
147
  }
148
+
181
149
  function isValidConfig(config, params) {
182
- // The config is valid if there is no params, or if exist a param for which config[param] !== undefined.
183
- return params.length === 0 || params.some(function(param) {
184
- return !isUndefined(config[param]);
185
- });
150
+ // The config is valid if there is no params, or if exist a param for which config[param] !== undefined.
151
+ return params.length === 0 || params.some(function (param) {
152
+ return !isUndefined(config[param]);
153
+ });
186
154
  }
155
+
187
156
  function isDifferentConfig(newConfig, oldConfig, params) {
188
- return params.some(function(param) {
189
- return newConfig[param] !== oldConfig[param];
190
- });
157
+ return params.some(function (param) {
158
+ return newConfig[param] !== oldConfig[param];
159
+ });
191
160
  }
192
- var LegacyWireAdapterBridge = /*#__PURE__*/ function() {
193
- function LegacyWireAdapterBridge(callback) {
194
- var _this = this;
195
- _classCallCheck(this, LegacyWireAdapterBridge);
196
- this.connecting = [];
197
- this.disconnecting = [];
198
- this.configuring = [];
199
- this.isFirstUpdate = true;
200
- this.callback = callback;
201
- this.wiredElementHost = callback[DeprecatedWiredElementHost];
202
- this.dynamicParamsNames = callback[DeprecatedWiredParamsMeta];
203
- this.eventTarget = {
204
- addEventListener: function(type, listener) {
205
- switch(type){
206
- case CONNECT:
207
- {
208
- _this.connecting.push(listener);
209
- break;
210
- }
211
- case DISCONNECT:
212
- {
213
- _this.disconnecting.push(listener);
214
- break;
215
- }
216
- case CONFIG:
217
- {
218
- _this.configuring.push(listener);
219
- if (_this.currentConfig !== undefined) {
220
- listener.call(undefined, _this.currentConfig);
221
- }
222
- break;
223
- }
224
- default:
225
- throw new Error("Invalid event type ".concat(type, "."));
226
- }
227
- },
228
- removeEventListener: function(type, listener) {
229
- switch(type){
230
- case CONNECT:
231
- {
232
- removeListener(_this.connecting, listener);
233
- break;
234
- }
235
- case DISCONNECT:
236
- {
237
- removeListener(_this.disconnecting, listener);
238
- break;
239
- }
240
- case CONFIG:
241
- {
242
- removeListener(_this.configuring, listener);
243
- break;
244
- }
245
- default:
246
- throw new Error("Invalid event type ".concat(type, "."));
247
- }
248
- },
249
- dispatchEvent: function(evt) {
250
- if (_instanceof(evt, ValueChangedEvent)) {
251
- var value = evt.value;
252
- _this.callback(value);
253
- } else if (evt.type === "wirecontextevent") {
254
- // TODO [#1357]: remove this branch
255
- return _this.wiredElementHost.dispatchEvent(evt);
256
- } else {
257
- throw new Error("Invalid event type ".concat(evt.type, "."));
258
- }
259
- return false; // canceling signal since we don't want this to propagate
161
+
162
+ var LegacyWireAdapterBridge = /*#__PURE__*/function () {
163
+ function LegacyWireAdapterBridge(callback) {
164
+ var _this2 = this;
165
+
166
+ _classCallCheck(this, LegacyWireAdapterBridge);
167
+
168
+ this.connecting = [];
169
+ this.disconnecting = [];
170
+ this.configuring = [];
171
+ this.isFirstUpdate = true;
172
+ this.callback = callback;
173
+ this.wiredElementHost = callback[DeprecatedWiredElementHost];
174
+ this.dynamicParamsNames = callback[DeprecatedWiredParamsMeta];
175
+ this.eventTarget = {
176
+ addEventListener: function addEventListener(type, listener) {
177
+ switch (type) {
178
+ case CONNECT:
179
+ {
180
+ _this2.connecting.push(listener);
181
+
182
+ break;
260
183
  }
261
- };
262
- }
263
- _createClass(LegacyWireAdapterBridge, [
264
- {
265
- key: "update",
266
- value: function update(config) {
267
- if (this.isFirstUpdate) {
268
- // this is a special case for legacy wire adapters: when all the config params are undefined,
269
- // the config on the wire adapter should not be called until one of them changes.
270
- this.isFirstUpdate = false;
271
- if (!isEmptyConfig(config) && !isValidConfig(config, this.dynamicParamsNames)) {
272
- return;
273
- }
274
- }
275
- if (isUndefined(this.currentConfig) || isDifferentConfig(config, this.currentConfig, this.dynamicParamsNames)) {
276
- this.currentConfig = config;
277
- forEach.call(this.configuring, function(listener) {
278
- listener.call(undefined, config);
279
- });
280
- }
184
+
185
+ case DISCONNECT:
186
+ {
187
+ _this2.disconnecting.push(listener);
188
+
189
+ break;
281
190
  }
282
- },
283
- {
284
- key: "connect",
285
- value: function connect() {
286
- forEach.call(this.connecting, function(listener) {
287
- return listener.call(undefined);
288
- });
191
+
192
+ case CONFIG:
193
+ {
194
+ _this2.configuring.push(listener);
195
+
196
+ if (_this2.currentConfig !== undefined) {
197
+ listener.call(undefined, _this2.currentConfig);
198
+ }
199
+
200
+ break;
289
201
  }
290
- },
291
- {
292
- key: "disconnect",
293
- value: function disconnect() {
294
- forEach.call(this.disconnecting, function(listener) {
295
- return listener.call(undefined);
296
- });
202
+
203
+ default:
204
+ throw new Error("Invalid event type ".concat(type, "."));
205
+ }
206
+ },
207
+ removeEventListener: function removeEventListener(type, listener) {
208
+ switch (type) {
209
+ case CONNECT:
210
+ {
211
+ removeListener(_this2.connecting, listener);
212
+ break;
297
213
  }
214
+
215
+ case DISCONNECT:
216
+ {
217
+ removeListener(_this2.disconnecting, listener);
218
+ break;
219
+ }
220
+
221
+ case CONFIG:
222
+ {
223
+ removeListener(_this2.configuring, listener);
224
+ break;
225
+ }
226
+
227
+ default:
228
+ throw new Error("Invalid event type ".concat(type, "."));
298
229
  }
299
- ]);
300
- return LegacyWireAdapterBridge;
230
+ },
231
+ dispatchEvent: function dispatchEvent(evt) {
232
+ if (evt instanceof ValueChangedEvent) {
233
+ var value = evt.value;
234
+
235
+ _this2.callback(value);
236
+ } else if (evt.type === 'wirecontextevent') {
237
+ // TODO [#1357]: remove this branch
238
+ return _this2.wiredElementHost.dispatchEvent(evt);
239
+ } else {
240
+ throw new Error("Invalid event type ".concat(evt.type, "."));
241
+ }
242
+
243
+ return false; // canceling signal since we don't want this to propagate
244
+ }
245
+ };
246
+ }
247
+
248
+ _createClass(LegacyWireAdapterBridge, [{
249
+ key: "update",
250
+ value: function update(config) {
251
+ if (this.isFirstUpdate) {
252
+ // this is a special case for legacy wire adapters: when all the config params are undefined,
253
+ // the config on the wire adapter should not be called until one of them changes.
254
+ this.isFirstUpdate = false;
255
+
256
+ if (!isEmptyConfig(config) && !isValidConfig(config, this.dynamicParamsNames)) {
257
+ return;
258
+ }
259
+ }
260
+
261
+ if (isUndefined(this.currentConfig) || isDifferentConfig(config, this.currentConfig, this.dynamicParamsNames)) {
262
+ this.currentConfig = config;
263
+ forEach.call(this.configuring, function (listener) {
264
+ listener.call(undefined, config);
265
+ });
266
+ }
267
+ }
268
+ }, {
269
+ key: "connect",
270
+ value: function connect() {
271
+ forEach.call(this.connecting, function (listener) {
272
+ return listener.call(undefined);
273
+ });
274
+ }
275
+ }, {
276
+ key: "disconnect",
277
+ value: function disconnect() {
278
+ forEach.call(this.disconnecting, function (listener) {
279
+ return listener.call(undefined);
280
+ });
281
+ }
282
+ }]);
283
+
284
+ return LegacyWireAdapterBridge;
301
285
  }();
286
+ /** version: 2.14.0 */
302
287
 
303
288
  exports.ValueChangedEvent = ValueChangedEvent;
304
289
  exports.register = register;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lwc",
3
- "version": "2.13.2",
3
+ "version": "2.14.0",
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.13.2",
46
- "@lwc/engine-dom": "2.13.2",
47
- "@lwc/engine-server": "2.13.2",
48
- "@lwc/features": "2.13.2",
49
- "@lwc/synthetic-shadow": "2.13.2",
50
- "@lwc/wire-service": "2.13.2"
45
+ "@lwc/compiler": "2.14.0",
46
+ "@lwc/engine-dom": "2.14.0",
47
+ "@lwc/engine-server": "2.14.0",
48
+ "@lwc/features": "2.14.0",
49
+ "@lwc/synthetic-shadow": "2.14.0",
50
+ "@lwc/wire-service": "2.14.0"
51
51
  }
52
52
  }