lwc 2.13.0 → 2.13.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 (39) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +88 -88
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +88 -88
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +76 -76
  5. package/dist/engine-dom/iife/es5/engine-dom.js +87 -87
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +69 -69
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +88 -88
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +76 -76
  11. package/dist/engine-dom/umd/es5/engine-dom.js +87 -87
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +69 -69
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +88 -88
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +88 -88
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +693 -693
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +693 -693
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +681 -681
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +686 -686
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +1 -1
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +697 -697
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +693 -693
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +681 -681
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +686 -686
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +1 -1
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +697 -697
  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 +1 -1
  34. package/dist/wire-service/iife/es5/wire-service_debug.js +1 -1
  35. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  36. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  37. package/dist/wire-service/umd/es5/wire-service.js +1 -1
  38. package/dist/wire-service/umd/es5/wire-service_debug.js +1 -1
  39. package/package.json +7 -7
@@ -564,7 +564,7 @@ var LWC = (function (exports) {
564
564
  var XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
565
565
  var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
566
566
  var XLINK_NAMESPACE = "http://www.w3.org/1999/xlink";
567
- /** version: 2.13.0 */ /*
567
+ /** version: 2.13.1 */ /*
568
568
  * Copyright (c) 2018, salesforce.com, inc.
569
569
  * All rights reserved.
570
570
  * SPDX-License-Identifier: MIT
@@ -697,7 +697,7 @@ var LWC = (function (exports) {
697
697
  * purposes. It is a no-op when invoked in production mode.
698
698
  */ function setFeatureFlagForTest(name, value) {
699
699
  }
700
- /** version: 2.13.0 */ /* proxy-compat-disable */ /*
700
+ /** version: 2.13.1 */ /* proxy-compat-disable */ /*
701
701
  * Copyright (c) 2018, salesforce.com, inc.
702
702
  * All rights reserved.
703
703
  * SPDX-License-Identifier: MIT
@@ -721,7 +721,7 @@ var LWC = (function (exports) {
721
721
  }
722
722
  function guid() {
723
723
  var s4 = function s4() {
724
- return Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
724
+ return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
725
725
  };
726
726
  return s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
727
727
  }
@@ -1126,6 +1126,18 @@ var LWC = (function (exports) {
1126
1126
  function logError(message, vm9) {
1127
1127
  log("error", message, vm9);
1128
1128
  }
1129
+ /*
1130
+ * Copyright (c) 2020, salesforce.com, inc.
1131
+ * All rights reserved.
1132
+ * SPDX-License-Identifier: MIT
1133
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1134
+ */ function resolveCircularModuleDependency(fn) {
1135
+ var module = fn();
1136
+ return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
1137
+ }
1138
+ function isCircularModuleDependency(obj) {
1139
+ return isFunction$1(obj) && hasOwnProperty$1.call(obj, "__circular__");
1140
+ }
1129
1141
  /*
1130
1142
  * Copyright (c) 2018, salesforce.com, inc.
1131
1143
  * All rights reserved.
@@ -2136,53 +2148,7 @@ var LWC = (function (exports) {
2136
2148
  },
2137
2149
  configurable: true
2138
2150
  });
2139
- /*
2140
- * Copyright (c) 2018, salesforce.com, inc.
2141
- * All rights reserved.
2142
- * SPDX-License-Identifier: MIT
2143
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2144
- */ /**
2145
- * @wire decorator to wire fields and methods to a wire adapter in
2146
- * LWC Components. This function implements the internals of this
2147
- * decorator.
2148
- */ function wire(_adapter, _config) {
2149
- throw new Error();
2150
- }
2151
- function internalWireFieldDecorator(key) {
2152
- return {
2153
- get: function get1() {
2154
- var vm = getAssociatedVM(this);
2155
- componentValueObserved(vm, key);
2156
- return vm.cmpFields[key];
2157
- },
2158
- set: function set1(value) {
2159
- var vm = getAssociatedVM(this);
2160
- /**
2161
- * Reactivity for wired fields is provided in wiring.
2162
- * We intentionally add reactivity here since this is just
2163
- * letting the author to do the wrong thing, but it will keep our
2164
- * system to be backward compatible.
2165
- */ if (value !== vm.cmpFields[key]) {
2166
- vm.cmpFields[key] = value;
2167
- componentValueMutated(vm, key);
2168
- }
2169
- },
2170
- enumerable: true,
2171
- configurable: true
2172
- };
2173
- }
2174
- /*
2175
- * Copyright (c) 2018, salesforce.com, inc.
2176
- * All rights reserved.
2177
- * SPDX-License-Identifier: MIT
2178
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2179
- */ function track(target) {
2180
- if (arguments.length === 1) {
2181
- return reactiveMembrane.getProxy(target);
2182
- }
2183
- throw new Error();
2184
- }
2185
- function internalTrackDecorator(key) {
2151
+ function createObservedFieldPropertyDescriptor(key) {
2186
2152
  return {
2187
2153
  get: function get1() {
2188
2154
  var vm = getAssociatedVM(this);
@@ -2191,9 +2157,8 @@ var LWC = (function (exports) {
2191
2157
  },
2192
2158
  set: function set1(newValue) {
2193
2159
  var vm = getAssociatedVM(this);
2194
- var reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
2195
- if (reactiveOrAnyValue !== vm.cmpFields[key]) {
2196
- vm.cmpFields[key] = reactiveOrAnyValue;
2160
+ if (newValue !== vm.cmpFields[key]) {
2161
+ vm.cmpFields[key] = newValue;
2197
2162
  componentValueMutated(vm, key);
2198
2163
  }
2199
2164
  },
@@ -2306,7 +2271,18 @@ var LWC = (function (exports) {
2306
2271
  configurable: configurable
2307
2272
  };
2308
2273
  }
2309
- function createObservedFieldPropertyDescriptor(key) {
2274
+ /*
2275
+ * Copyright (c) 2018, salesforce.com, inc.
2276
+ * All rights reserved.
2277
+ * SPDX-License-Identifier: MIT
2278
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2279
+ */ function track(target) {
2280
+ if (arguments.length === 1) {
2281
+ return reactiveMembrane.getProxy(target);
2282
+ }
2283
+ throw new Error();
2284
+ }
2285
+ function internalTrackDecorator(key) {
2310
2286
  return {
2311
2287
  get: function get1() {
2312
2288
  var vm = getAssociatedVM(this);
@@ -2315,8 +2291,44 @@ var LWC = (function (exports) {
2315
2291
  },
2316
2292
  set: function set1(newValue) {
2317
2293
  var vm = getAssociatedVM(this);
2318
- if (newValue !== vm.cmpFields[key]) {
2319
- vm.cmpFields[key] = newValue;
2294
+ var reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
2295
+ if (reactiveOrAnyValue !== vm.cmpFields[key]) {
2296
+ vm.cmpFields[key] = reactiveOrAnyValue;
2297
+ componentValueMutated(vm, key);
2298
+ }
2299
+ },
2300
+ enumerable: true,
2301
+ configurable: true
2302
+ };
2303
+ }
2304
+ /*
2305
+ * Copyright (c) 2018, salesforce.com, inc.
2306
+ * All rights reserved.
2307
+ * SPDX-License-Identifier: MIT
2308
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2309
+ */ /**
2310
+ * @wire decorator to wire fields and methods to a wire adapter in
2311
+ * LWC Components. This function implements the internals of this
2312
+ * decorator.
2313
+ */ function wire(_adapter, _config) {
2314
+ throw new Error();
2315
+ }
2316
+ function internalWireFieldDecorator(key) {
2317
+ return {
2318
+ get: function get1() {
2319
+ var vm = getAssociatedVM(this);
2320
+ componentValueObserved(vm, key);
2321
+ return vm.cmpFields[key];
2322
+ },
2323
+ set: function set1(value) {
2324
+ var vm = getAssociatedVM(this);
2325
+ /**
2326
+ * Reactivity for wired fields is provided in wiring.
2327
+ * We intentionally add reactivity here since this is just
2328
+ * letting the author to do the wrong thing, but it will keep our
2329
+ * system to be backward compatible.
2330
+ */ if (value !== vm.cmpFields[key]) {
2331
+ vm.cmpFields[key] = value;
2320
2332
  componentValueMutated(vm, key);
2321
2333
  }
2322
2334
  },
@@ -2610,18 +2622,6 @@ var LWC = (function (exports) {
2610
2622
  var BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor$1, getOwnPropertyNames$1(HTMLElementOriginalDescriptors), []);
2611
2623
  freeze(BaseBridgeElement);
2612
2624
  seal(BaseBridgeElement.prototype);
2613
- /*
2614
- * Copyright (c) 2020, salesforce.com, inc.
2615
- * All rights reserved.
2616
- * SPDX-License-Identifier: MIT
2617
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2618
- */ function resolveCircularModuleDependency(fn) {
2619
- var module = fn();
2620
- return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
2621
- }
2622
- function isCircularModuleDependency(obj) {
2623
- return isFunction$1(obj) && hasOwnProperty$1.call(obj, "__circular__");
2624
- }
2625
2625
  function setActiveVM(vm) {
2626
2626
  {
2627
2627
  // this method should never leak to prod
@@ -5197,7 +5197,7 @@ var LWC = (function (exports) {
5197
5197
  hooksAreSet = true;
5198
5198
  setSanitizeHtmlContentHook(hooks1.sanitizeHtmlContent);
5199
5199
  }
5200
- /* version: 2.13.0 */ /*
5200
+ /* version: 2.13.1 */ /*
5201
5201
  * Copyright (c) 2018, salesforce.com, inc.
5202
5202
  * All rights reserved.
5203
5203
  * SPDX-License-Identifier: MIT
@@ -304,9 +304,9 @@
304
304
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
305
305
  */
306
306
  // Increment whenever the LWC template compiler changes
307
- const LWC_VERSION = "2.13.0";
307
+ const LWC_VERSION = "2.13.1";
308
308
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
309
- /** version: 2.13.0 */
309
+ /** version: 2.13.1 */
310
310
 
311
311
  /*
312
312
  * Copyright (c) 2018, salesforce.com, inc.
@@ -459,7 +459,7 @@
459
459
  setFeatureFlag(name, value);
460
460
  }
461
461
  }
462
- /** version: 2.13.0 */
462
+ /** version: 2.13.1 */
463
463
 
464
464
  /* proxy-compat-disable */
465
465
 
@@ -897,6 +897,20 @@
897
897
  log('warn', message, vm);
898
898
  }
899
899
 
900
+ /*
901
+ * Copyright (c) 2020, salesforce.com, inc.
902
+ * All rights reserved.
903
+ * SPDX-License-Identifier: MIT
904
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
905
+ */
906
+ function resolveCircularModuleDependency(fn) {
907
+ const module = fn();
908
+ return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
909
+ }
910
+ function isCircularModuleDependency(obj) {
911
+ return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
912
+ }
913
+
900
914
  /*
901
915
  * Copyright (c) 2018, salesforce.com, inc.
902
916
  * All rights reserved.
@@ -2262,64 +2276,7 @@
2262
2276
  patchLightningElementPrototypeWithRestrictions(LightningElement.prototype);
2263
2277
  }
2264
2278
 
2265
- /*
2266
- * Copyright (c) 2018, salesforce.com, inc.
2267
- * All rights reserved.
2268
- * SPDX-License-Identifier: MIT
2269
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2270
- */
2271
- /**
2272
- * @wire decorator to wire fields and methods to a wire adapter in
2273
- * LWC Components. This function implements the internals of this
2274
- * decorator.
2275
- */
2276
- function wire(_adapter, _config) {
2277
- if (process.env.NODE_ENV !== 'production') {
2278
- assert.fail('@wire(adapter, config?) may only be used as a decorator.');
2279
- }
2280
- throw new Error();
2281
- }
2282
- function internalWireFieldDecorator(key) {
2283
- return {
2284
- get() {
2285
- const vm = getAssociatedVM(this);
2286
- componentValueObserved(vm, key);
2287
- return vm.cmpFields[key];
2288
- },
2289
- set(value) {
2290
- const vm = getAssociatedVM(this);
2291
- /**
2292
- * Reactivity for wired fields is provided in wiring.
2293
- * We intentionally add reactivity here since this is just
2294
- * letting the author to do the wrong thing, but it will keep our
2295
- * system to be backward compatible.
2296
- */
2297
- if (value !== vm.cmpFields[key]) {
2298
- vm.cmpFields[key] = value;
2299
- componentValueMutated(vm, key);
2300
- }
2301
- },
2302
- enumerable: true,
2303
- configurable: true,
2304
- };
2305
- }
2306
-
2307
- /*
2308
- * Copyright (c) 2018, salesforce.com, inc.
2309
- * All rights reserved.
2310
- * SPDX-License-Identifier: MIT
2311
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2312
- */
2313
- function track(target) {
2314
- if (arguments.length === 1) {
2315
- return reactiveMembrane.getProxy(target);
2316
- }
2317
- if (process.env.NODE_ENV !== 'production') {
2318
- assert.fail(`@track decorator can only be used with one argument to return a trackable object, or as a decorator function.`);
2319
- }
2320
- throw new Error();
2321
- }
2322
- function internalTrackDecorator(key) {
2279
+ function createObservedFieldPropertyDescriptor(key) {
2323
2280
  return {
2324
2281
  get() {
2325
2282
  const vm = getAssociatedVM(this);
@@ -2328,14 +2285,8 @@
2328
2285
  },
2329
2286
  set(newValue) {
2330
2287
  const vm = getAssociatedVM(this);
2331
- if (process.env.NODE_ENV !== 'production') {
2332
- const vmBeingRendered = getVMBeingRendered();
2333
- assert.invariant(!isInvokingRender, `${vmBeingRendered}.render() method has side effects on the state of ${vm}.${toString$1(key)}`);
2334
- assert.invariant(!isUpdatingTemplate, `Updating the template of ${vmBeingRendered} has side effects on the state of ${vm}.${toString$1(key)}`);
2335
- }
2336
- const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
2337
- if (reactiveOrAnyValue !== vm.cmpFields[key]) {
2338
- vm.cmpFields[key] = reactiveOrAnyValue;
2288
+ if (newValue !== vm.cmpFields[key]) {
2289
+ vm.cmpFields[key] = newValue;
2339
2290
  componentValueMutated(vm, key);
2340
2291
  }
2341
2292
  },
@@ -2499,7 +2450,22 @@
2499
2450
  };
2500
2451
  }
2501
2452
 
2502
- function createObservedFieldPropertyDescriptor(key) {
2453
+ /*
2454
+ * Copyright (c) 2018, salesforce.com, inc.
2455
+ * All rights reserved.
2456
+ * SPDX-License-Identifier: MIT
2457
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2458
+ */
2459
+ function track(target) {
2460
+ if (arguments.length === 1) {
2461
+ return reactiveMembrane.getProxy(target);
2462
+ }
2463
+ if (process.env.NODE_ENV !== 'production') {
2464
+ assert.fail(`@track decorator can only be used with one argument to return a trackable object, or as a decorator function.`);
2465
+ }
2466
+ throw new Error();
2467
+ }
2468
+ function internalTrackDecorator(key) {
2503
2469
  return {
2504
2470
  get() {
2505
2471
  const vm = getAssociatedVM(this);
@@ -2508,8 +2474,56 @@
2508
2474
  },
2509
2475
  set(newValue) {
2510
2476
  const vm = getAssociatedVM(this);
2511
- if (newValue !== vm.cmpFields[key]) {
2512
- vm.cmpFields[key] = newValue;
2477
+ if (process.env.NODE_ENV !== 'production') {
2478
+ const vmBeingRendered = getVMBeingRendered();
2479
+ assert.invariant(!isInvokingRender, `${vmBeingRendered}.render() method has side effects on the state of ${vm}.${toString$1(key)}`);
2480
+ assert.invariant(!isUpdatingTemplate, `Updating the template of ${vmBeingRendered} has side effects on the state of ${vm}.${toString$1(key)}`);
2481
+ }
2482
+ const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
2483
+ if (reactiveOrAnyValue !== vm.cmpFields[key]) {
2484
+ vm.cmpFields[key] = reactiveOrAnyValue;
2485
+ componentValueMutated(vm, key);
2486
+ }
2487
+ },
2488
+ enumerable: true,
2489
+ configurable: true,
2490
+ };
2491
+ }
2492
+
2493
+ /*
2494
+ * Copyright (c) 2018, salesforce.com, inc.
2495
+ * All rights reserved.
2496
+ * SPDX-License-Identifier: MIT
2497
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2498
+ */
2499
+ /**
2500
+ * @wire decorator to wire fields and methods to a wire adapter in
2501
+ * LWC Components. This function implements the internals of this
2502
+ * decorator.
2503
+ */
2504
+ function wire(_adapter, _config) {
2505
+ if (process.env.NODE_ENV !== 'production') {
2506
+ assert.fail('@wire(adapter, config?) may only be used as a decorator.');
2507
+ }
2508
+ throw new Error();
2509
+ }
2510
+ function internalWireFieldDecorator(key) {
2511
+ return {
2512
+ get() {
2513
+ const vm = getAssociatedVM(this);
2514
+ componentValueObserved(vm, key);
2515
+ return vm.cmpFields[key];
2516
+ },
2517
+ set(value) {
2518
+ const vm = getAssociatedVM(this);
2519
+ /**
2520
+ * Reactivity for wired fields is provided in wiring.
2521
+ * We intentionally add reactivity here since this is just
2522
+ * letting the author to do the wrong thing, but it will keep our
2523
+ * system to be backward compatible.
2524
+ */
2525
+ if (value !== vm.cmpFields[key]) {
2526
+ vm.cmpFields[key] = value;
2513
2527
  componentValueMutated(vm, key);
2514
2528
  }
2515
2529
  },
@@ -2943,20 +2957,6 @@
2943
2957
  freeze(BaseBridgeElement);
2944
2958
  seal(BaseBridgeElement.prototype);
2945
2959
 
2946
- /*
2947
- * Copyright (c) 2020, salesforce.com, inc.
2948
- * All rights reserved.
2949
- * SPDX-License-Identifier: MIT
2950
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2951
- */
2952
- function resolveCircularModuleDependency(fn) {
2953
- const module = fn();
2954
- return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
2955
- }
2956
- function isCircularModuleDependency(obj) {
2957
- return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
2958
- }
2959
-
2960
2960
  /*
2961
2961
  * Copyright (c) 2020, salesforce.com, inc.
2962
2962
  * All rights reserved.
@@ -6567,7 +6567,7 @@
6567
6567
  hooksAreSet = true;
6568
6568
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
6569
6569
  }
6570
- /* version: 2.13.0 */
6570
+ /* version: 2.13.1 */
6571
6571
 
6572
6572
  /*
6573
6573
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7207,7 +7207,7 @@
7207
7207
  });
7208
7208
  freeze(LightningElement);
7209
7209
  seal(LightningElement.prototype);
7210
- /* version: 2.13.0 */
7210
+ /* version: 2.13.1 */
7211
7211
 
7212
7212
  exports.LightningElement = LightningElement;
7213
7213
  exports.__unstable__ProfilerControl = profilerControl;