lwc 2.21.1 → 2.22.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 (35) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +145 -71
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +145 -71
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +143 -69
  5. package/dist/engine-dom/iife/es5/engine-dom.js +182 -79
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +167 -64
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +145 -71
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +143 -69
  11. package/dist/engine-dom/umd/es5/engine-dom.js +182 -79
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +167 -64
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +53 -262
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +53 -262
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
  23. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
  25. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
  26. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  28. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  30. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  34. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  35. package/package.json +7 -7
@@ -415,9 +415,9 @@ function htmlEscape(str, attrMode = false) {
415
415
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
416
416
  */
417
417
  // Increment whenever the LWC template compiler changes
418
- const LWC_VERSION = "2.21.1";
418
+ const LWC_VERSION = "2.22.0";
419
419
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
420
- /** version: 2.21.1 */
420
+ /** version: 2.22.0 */
421
421
 
422
422
  /*
423
423
  * Copyright (c) 2020, salesforce.com, inc.
@@ -526,7 +526,7 @@ function setFeatureFlagForTest(name, value) {
526
526
  setFeatureFlag(name, value);
527
527
  }
528
528
  }
529
- /** version: 2.21.1 */
529
+ /** version: 2.22.0 */
530
530
 
531
531
  /* proxy-compat-disable */
532
532
 
@@ -554,40 +554,9 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
554
554
  }));
555
555
  });
556
556
  }
557
-
558
- /*
559
- * Copyright (c) 2018, salesforce.com, inc.
560
- * All rights reserved.
561
- * SPDX-License-Identifier: MIT
562
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
563
- */
564
- let nextTickCallbackQueue = [];
565
557
  const SPACE_CHAR = 32;
566
558
  const EmptyObject = seal(create(null));
567
559
  const EmptyArray = seal([]);
568
- function flushCallbackQueue() {
569
- if (process.env.NODE_ENV !== 'production') {
570
- if (nextTickCallbackQueue.length === 0) {
571
- throw new Error(`Internal Error: If callbackQueue is scheduled, it is because there must be at least one callback on this pending queue.`);
572
- }
573
- }
574
- const callbacks = nextTickCallbackQueue;
575
- nextTickCallbackQueue = []; // reset to a new queue
576
- for (let i = 0, len = callbacks.length; i < len; i += 1) {
577
- callbacks[i]();
578
- }
579
- }
580
- function addCallbackToNextTick(callback) {
581
- if (process.env.NODE_ENV !== 'production') {
582
- if (!isFunction$1(callback)) {
583
- throw new Error(`Internal Error: addCallbackToNextTick() can only accept a function callback`);
584
- }
585
- }
586
- if (nextTickCallbackQueue.length === 0) {
587
- Promise.resolve().then(flushCallbackQueue);
588
- }
589
- ArrayPush$1.call(nextTickCallbackQueue, callback);
590
- }
591
560
  function guid() {
592
561
  function s4() {
593
562
  return Math.floor((1 + Math.random()) * 0x10000)
@@ -616,16 +585,6 @@ function flattenStylesheets(stylesheets) {
616
585
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
617
586
  */
618
587
  const TargetToReactiveRecordMap = new WeakMap();
619
- function getReactiveRecord(target) {
620
- let reactiveRecord = TargetToReactiveRecordMap.get(target);
621
- if (isUndefined$1(reactiveRecord)) {
622
- const newRecord = create(null);
623
- reactiveRecord = newRecord;
624
- TargetToReactiveRecordMap.set(target, newRecord);
625
- }
626
- return reactiveRecord;
627
- }
628
- let currentReactiveObserver = null;
629
588
  function valueMutated(target, key) {
630
589
  const reactiveRecord = TargetToReactiveRecordMap.get(target);
631
590
  if (!isUndefined$1(reactiveRecord)) {
@@ -640,71 +599,9 @@ function valueMutated(target, key) {
640
599
  }
641
600
  function valueObserved(target, key) {
642
601
  // We should determine if an active Observing Record is present to track mutations.
643
- if (currentReactiveObserver === null) {
602
+ {
644
603
  return;
645
604
  }
646
- const ro = currentReactiveObserver;
647
- const reactiveRecord = getReactiveRecord(target);
648
- let reactiveObservers = reactiveRecord[key];
649
- if (isUndefined$1(reactiveObservers)) {
650
- reactiveObservers = [];
651
- reactiveRecord[key] = reactiveObservers;
652
- }
653
- else if (reactiveObservers[0] === ro) {
654
- return; // perf optimization considering that most subscriptions will come from the same record
655
- }
656
- if (ArrayIndexOf.call(reactiveObservers, ro) === -1) {
657
- ro.link(reactiveObservers);
658
- }
659
- }
660
- class ReactiveObserver {
661
- constructor(callback) {
662
- this.listeners = [];
663
- this.callback = callback;
664
- }
665
- observe(job) {
666
- const inceptionReactiveRecord = currentReactiveObserver;
667
- currentReactiveObserver = this;
668
- let error;
669
- try {
670
- job();
671
- }
672
- catch (e) {
673
- error = Object(e);
674
- }
675
- finally {
676
- currentReactiveObserver = inceptionReactiveRecord;
677
- if (error !== undefined) {
678
- throw error; // eslint-disable-line no-unsafe-finally
679
- }
680
- }
681
- }
682
- /**
683
- * This method is responsible for disconnecting the Reactive Observer
684
- * from any Reactive Record that has a reference to it, to prevent future
685
- * notifications about previously recorded access.
686
- */
687
- reset() {
688
- const { listeners } = this;
689
- const len = listeners.length;
690
- if (len > 0) {
691
- for (let i = 0; i < len; i += 1) {
692
- const set = listeners[i];
693
- const pos = ArrayIndexOf.call(listeners[i], this);
694
- ArraySplice.call(set, pos, 1);
695
- }
696
- listeners.length = 0;
697
- }
698
- }
699
- // friend methods
700
- notify() {
701
- this.callback.call(undefined, this);
702
- }
703
- link(reactiveObservers) {
704
- ArrayPush$1.call(reactiveObservers, this);
705
- // we keep track of observing records where the observing record was added to so we can do some clean up later on
706
- ArrayPush$1.call(this.listeners, reactiveObservers);
707
- }
708
605
  }
709
606
 
710
607
  /*
@@ -713,11 +610,16 @@ class ReactiveObserver {
713
610
  * SPDX-License-Identifier: MIT
714
611
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
715
612
  */
716
- function componentValueMutated(vm, key) {
717
- valueMutated(vm.component, key);
718
- }
719
- function componentValueObserved(vm, key) {
720
- valueObserved(vm.component, key);
613
+ const DUMMY_REACTIVE_OBSERVER = {
614
+ observe(job) {
615
+ job();
616
+ },
617
+ reset() { },
618
+ link() { },
619
+ };
620
+ function createReactiveObserver(callback) {
621
+ // On the server side, we don't need mutation tracking. Skipping it improves performance.
622
+ return DUMMY_REACTIVE_OBSERVER;
721
623
  }
722
624
 
723
625
  /*
@@ -1836,7 +1738,17 @@ const reactiveMembrane = new ObservableMembrane({
1836
1738
  * change or being removed.
1837
1739
  */
1838
1740
  function unwrap(value) {
1839
- return reactiveMembrane.unwrapProxy(value);
1741
+ // On the server side, we don't need mutation tracking. Skipping it improves performance.
1742
+ return value;
1743
+ }
1744
+ function getReadOnlyProxy(value) {
1745
+ // We must return a frozen wrapper around the value, so that child components cannot mutate properties passed to
1746
+ // them from their parents. This applies to both the client and server.
1747
+ return reactiveMembrane.getReadOnlyProxy(value);
1748
+ }
1749
+ function getReactiveProxy(value) {
1750
+ // On the server side, we don't need mutation tracking. Skipping it improves performance.
1751
+ return value;
1840
1752
  }
1841
1753
 
1842
1754
  /*
@@ -1876,7 +1788,6 @@ function createBridgeToElementDescriptor(propName, descriptor) {
1876
1788
  }
1877
1789
  return;
1878
1790
  }
1879
- componentValueObserved(vm, propName);
1880
1791
  return get.call(vm.elm);
1881
1792
  },
1882
1793
  set(newValue) {
@@ -1890,7 +1801,6 @@ function createBridgeToElementDescriptor(propName, descriptor) {
1890
1801
  }
1891
1802
  if (newValue !== vm.cmpProps[propName]) {
1892
1803
  vm.cmpProps[propName] = newValue;
1893
- componentValueMutated(vm, propName);
1894
1804
  }
1895
1805
  return set.call(vm.elm, newValue);
1896
1806
  },
@@ -1926,8 +1836,6 @@ const LightningElement = function () {
1926
1836
  vm.setHook = setHook;
1927
1837
  vm.getHook = getHook;
1928
1838
  }
1929
- // Making the component instance a live value when using Locker to support expandos.
1930
- this[lockerLivePropertyKey] = undefined;
1931
1839
  // Linking elm, shadow root and component with the VM.
1932
1840
  associateVM(component, vm);
1933
1841
  associateVM(elm, vm);
@@ -2182,14 +2090,12 @@ function createObservedFieldPropertyDescriptor(key) {
2182
2090
  return {
2183
2091
  get() {
2184
2092
  const vm = getAssociatedVM(this);
2185
- componentValueObserved(vm, key);
2186
2093
  return vm.cmpFields[key];
2187
2094
  },
2188
2095
  set(newValue) {
2189
2096
  const vm = getAssociatedVM(this);
2190
2097
  if (newValue !== vm.cmpFields[key]) {
2191
2098
  vm.cmpFields[key] = newValue;
2192
- componentValueMutated(vm, key);
2193
2099
  }
2194
2100
  },
2195
2101
  enumerable: true,
@@ -2197,6 +2103,24 @@ function createObservedFieldPropertyDescriptor(key) {
2197
2103
  };
2198
2104
  }
2199
2105
 
2106
+ /*
2107
+ * Copyright (c) 2018, salesforce.com, inc.
2108
+ * All rights reserved.
2109
+ * SPDX-License-Identifier: MIT
2110
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2111
+ */
2112
+ const DUMMY_ACCESSOR_REACTIVE_OBSERVER = {
2113
+ observe(job) {
2114
+ job();
2115
+ },
2116
+ reset() { },
2117
+ link() { },
2118
+ };
2119
+ function createAccessorReactiveObserver(vm, set) {
2120
+ // On the server side, we don't need mutation tracking. Skipping it improves performance.
2121
+ return DUMMY_ACCESSOR_REACTIVE_OBSERVER;
2122
+ }
2123
+
2200
2124
  /*
2201
2125
  * Copyright (c) 2018, salesforce.com, inc.
2202
2126
  * All rights reserved.
@@ -2222,8 +2146,6 @@ function createPublicPropertyDescriptor(key) {
2222
2146
 
2223
2147
  return;
2224
2148
  }
2225
-
2226
- componentValueObserved(vm, key);
2227
2149
  return vm.cmpProps[key];
2228
2150
  },
2229
2151
 
@@ -2237,57 +2159,12 @@ function createPublicPropertyDescriptor(key) {
2237
2159
  }
2238
2160
 
2239
2161
  vm.cmpProps[key] = newValue;
2240
- componentValueMutated(vm, key);
2241
2162
  },
2242
2163
 
2243
2164
  enumerable: true,
2244
2165
  configurable: true
2245
2166
  };
2246
2167
  }
2247
- class AccessorReactiveObserver extends ReactiveObserver {
2248
- constructor(vm, set) {
2249
- super(() => {
2250
- if (isFalse(this.debouncing)) {
2251
- this.debouncing = true;
2252
- addCallbackToNextTick(() => {
2253
- if (isTrue(this.debouncing)) {
2254
- const {
2255
- value
2256
- } = this;
2257
- const {
2258
- isDirty: dirtyStateBeforeSetterCall,
2259
- component,
2260
- idx
2261
- } = vm;
2262
- set.call(component, value); // de-bouncing after the call to the original setter to prevent
2263
- // infinity loop if the setter itself is mutating things that
2264
- // were accessed during the previous invocation.
2265
-
2266
- this.debouncing = false;
2267
-
2268
- if (isTrue(vm.isDirty) && isFalse(dirtyStateBeforeSetterCall) && idx > 0) {
2269
- // immediate rehydration due to a setter driven mutation, otherwise
2270
- // the component will get rendered on the second tick, which it is not
2271
- // desirable.
2272
- rerenderVM(vm);
2273
- }
2274
- }
2275
- });
2276
- }
2277
- });
2278
- this.debouncing = false;
2279
- }
2280
-
2281
- reset(value) {
2282
- super.reset();
2283
- this.debouncing = false;
2284
-
2285
- if (arguments.length > 0) {
2286
- this.value = value;
2287
- }
2288
- }
2289
-
2290
- }
2291
2168
  function createPublicAccessorDescriptor(key, descriptor) {
2292
2169
  const {
2293
2170
  get,
@@ -2328,7 +2205,7 @@ function createPublicAccessorDescriptor(key, descriptor) {
2328
2205
  let ro = vm.oar[key];
2329
2206
 
2330
2207
  if (isUndefined$1(ro)) {
2331
- ro = vm.oar[key] = new AccessorReactiveObserver(vm, set);
2208
+ ro = vm.oar[key] = createAccessorReactiveObserver();
2332
2209
  } // every time we invoke this setter from outside (through this wrapper setter)
2333
2210
  // we should reset the value and then debounce just in case there is a pending
2334
2211
  // invocation the next tick that is not longer relevant since the value is changing
@@ -2360,7 +2237,7 @@ function createPublicAccessorDescriptor(key, descriptor) {
2360
2237
  */
2361
2238
  function track(target) {
2362
2239
  if (arguments.length === 1) {
2363
- return reactiveMembrane.getProxy(target);
2240
+ return getReactiveProxy(target);
2364
2241
  }
2365
2242
  if (process.env.NODE_ENV !== 'production') {
2366
2243
  assert.fail(`@track decorator can only be used with one argument to return a trackable object, or as a decorator function.`);
@@ -2371,7 +2248,6 @@ function internalTrackDecorator(key) {
2371
2248
  return {
2372
2249
  get() {
2373
2250
  const vm = getAssociatedVM(this);
2374
- componentValueObserved(vm, key);
2375
2251
  return vm.cmpFields[key];
2376
2252
  },
2377
2253
  set(newValue) {
@@ -2381,10 +2257,9 @@ function internalTrackDecorator(key) {
2381
2257
  assert.invariant(!isInvokingRender, `${vmBeingRendered}.render() method has side effects on the state of ${vm}.${toString$1(key)}`);
2382
2258
  assert.invariant(!isUpdatingTemplate, `Updating the template of ${vmBeingRendered} has side effects on the state of ${vm}.${toString$1(key)}`);
2383
2259
  }
2384
- const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
2260
+ const reactiveOrAnyValue = getReactiveProxy(newValue);
2385
2261
  if (reactiveOrAnyValue !== vm.cmpFields[key]) {
2386
2262
  vm.cmpFields[key] = reactiveOrAnyValue;
2387
- componentValueMutated(vm, key);
2388
2263
  }
2389
2264
  },
2390
2265
  enumerable: true,
@@ -2413,7 +2288,6 @@ function internalWireFieldDecorator(key) {
2413
2288
  return {
2414
2289
  get() {
2415
2290
  const vm = getAssociatedVM(this);
2416
- componentValueObserved(vm, key);
2417
2291
  return vm.cmpFields[key];
2418
2292
  },
2419
2293
  set(value) {
@@ -2426,7 +2300,6 @@ function internalWireFieldDecorator(key) {
2426
2300
  */
2427
2301
  if (value !== vm.cmpFields[key]) {
2428
2302
  vm.cmpFields[key] = value;
2429
- componentValueMutated(vm, key);
2430
2303
  }
2431
2304
  },
2432
2305
  enumerable: true,
@@ -2773,7 +2646,7 @@ function createSetter(key) {
2773
2646
  fn = cachedSetterByKey[key] = function (newValue) {
2774
2647
  const vm = getAssociatedVM(this);
2775
2648
  const { setHook } = vm;
2776
- newValue = reactiveMembrane.getReadOnlyProxy(newValue);
2649
+ newValue = getReadOnlyProxy(newValue);
2777
2650
  setHook(vm.component, key, newValue);
2778
2651
  };
2779
2652
  }
@@ -5049,13 +4922,7 @@ function getComponentRegisteredTemplate(Ctor) {
5049
4922
  return signedTemplateMap.get(Ctor);
5050
4923
  }
5051
4924
  function getTemplateReactiveObserver(vm) {
5052
- return new ReactiveObserver(() => {
5053
- const { isDirty } = vm;
5054
- if (isFalse(isDirty)) {
5055
- markComponentAsDirty(vm);
5056
- scheduleRehydration(vm);
5057
- }
5058
- });
4925
+ return createReactiveObserver();
5059
4926
  }
5060
4927
  function renderComponent$1(vm) {
5061
4928
  if (process.env.NODE_ENV !== 'production') {
@@ -5292,7 +5159,7 @@ function createVM(elm, ctor, renderer, options) {
5292
5159
  renderer
5293
5160
  };
5294
5161
  vm.shadowMode = computeShadowMode(vm, renderer);
5295
- vm.tro = getTemplateReactiveObserver(vm);
5162
+ vm.tro = getTemplateReactiveObserver();
5296
5163
 
5297
5164
  if (process.env.NODE_ENV !== 'production') {
5298
5165
  vm.toString = () => {
@@ -5495,49 +5362,6 @@ function runRenderedCallback(vm) {
5495
5362
  , vm);
5496
5363
  }
5497
5364
  }
5498
- let rehydrateQueue = [];
5499
-
5500
- function flushRehydrationQueue() {
5501
- logGlobalOperationStart(8
5502
- /* OperationId.GlobalRehydrate */
5503
- );
5504
-
5505
- if (process.env.NODE_ENV !== 'production') {
5506
- assert.invariant(rehydrateQueue.length, `If rehydrateQueue was scheduled, it is because there must be at least one VM on this pending queue instead of ${rehydrateQueue}.`);
5507
- }
5508
-
5509
- const vms = rehydrateQueue.sort((a, b) => a.idx - b.idx);
5510
- rehydrateQueue = []; // reset to a new queue
5511
-
5512
- for (let i = 0, len = vms.length; i < len; i += 1) {
5513
- const vm = vms[i];
5514
-
5515
- try {
5516
- rehydrate(vm);
5517
- } catch (error) {
5518
- if (i + 1 < len) {
5519
- // pieces of the queue are still pending to be rehydrated, those should have priority
5520
- if (rehydrateQueue.length === 0) {
5521
- addCallbackToNextTick(flushRehydrationQueue);
5522
- }
5523
-
5524
- ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, i + 1));
5525
- } // we need to end the measure before throwing.
5526
-
5527
-
5528
- logGlobalOperationEnd(8
5529
- /* OperationId.GlobalRehydrate */
5530
- ); // re-throwing the original error will break the current tick, but since the next tick is
5531
- // already scheduled, it should continue patching the rest.
5532
-
5533
- throw error; // eslint-disable-line no-unsafe-finally
5534
- }
5535
- }
5536
-
5537
- logGlobalOperationEnd(8
5538
- /* OperationId.GlobalRehydrate */
5539
- );
5540
- }
5541
5365
 
5542
5366
  function runConnectedCallback(vm) {
5543
5367
  const {
@@ -5725,25 +5549,6 @@ function resetComponentRoot(vm) {
5725
5549
  runChildNodesDisconnectedCallback(vm);
5726
5550
  vm.velements = EmptyArray;
5727
5551
  }
5728
- function scheduleRehydration(vm) {
5729
- const {
5730
- renderer: {
5731
- ssr
5732
- }
5733
- } = vm;
5734
-
5735
- if (isTrue(ssr) || isTrue(vm.isScheduled)) {
5736
- return;
5737
- }
5738
-
5739
- vm.isScheduled = true;
5740
-
5741
- if (rehydrateQueue.length === 0) {
5742
- addCallbackToNextTick(flushRehydrationQueue);
5743
- }
5744
-
5745
- ArrayPush$1.call(rehydrateQueue, vm);
5746
- }
5747
5552
 
5748
5553
  function getErrorBoundaryVM(vm) {
5749
5554
  let currentVm = vm;
@@ -5829,7 +5634,6 @@ function createFieldDataCallback(vm, name) {
5829
5634
  if (value !== vm.cmpFields[name]) {
5830
5635
  // storing the value in the underlying storage
5831
5636
  cmpFields[name] = value;
5832
- componentValueMutated(vm, name);
5833
5637
  }
5834
5638
  };
5835
5639
  }
@@ -5845,21 +5649,8 @@ function createMethodDataCallback(vm, method) {
5845
5649
  }
5846
5650
 
5847
5651
  function createConfigWatcher(component, configCallback, callbackWhenConfigIsReady) {
5848
- let hasPendingConfig = false; // creating the reactive observer for reactive params when needed
5849
-
5850
- const ro = new ReactiveObserver(() => {
5851
- if (hasPendingConfig === false) {
5852
- hasPendingConfig = true; // collect new config in the micro-task
5853
5652
 
5854
- Promise.resolve().then(() => {
5855
- hasPendingConfig = false; // resetting current reactive params
5856
-
5857
- ro.reset(); // dispatching a new config due to a change in the configuration
5858
-
5859
- computeConfigAndUpdate();
5860
- });
5861
- }
5862
- });
5653
+ const ro = createReactiveObserver();
5863
5654
 
5864
5655
  const computeConfigAndUpdate = () => {
5865
5656
  let config;
@@ -6143,7 +5934,7 @@ function readonly(obj) {
6143
5934
  assert.fail('@readonly cannot be used as a decorator just yet, use it as a function with one argument to produce a readonly version of the provided value.');
6144
5935
  }
6145
5936
  }
6146
- return reactiveMembrane.getReadOnlyProxy(obj);
5937
+ return getReadOnlyProxy(obj);
6147
5938
  }
6148
5939
 
6149
5940
  /*
@@ -6257,7 +6048,7 @@ function freezeTemplate(tmpl) {
6257
6048
  });
6258
6049
  }
6259
6050
  }
6260
- /* version: 2.21.1 */
6051
+ /* version: 2.22.0 */
6261
6052
 
6262
6053
  /*
6263
6054
  * Copyright (c) 2020, salesforce.com, inc.
@@ -6733,6 +6524,6 @@ function renderComponent(tagName, Ctor, props = {}) {
6733
6524
  */
6734
6525
  freeze(LightningElement);
6735
6526
  seal(LightningElement.prototype);
6736
- /* version: 2.21.1 */
6527
+ /* version: 2.22.0 */
6737
6528
 
6738
6529
  export { LightningElement, api$1 as api, createContextProvider, freezeTemplate, getComponentDef, isComponentConstructor, parseFragment, parseFragment as parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, renderer, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };
@@ -148,7 +148,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
148
148
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
149
149
  // we can't use typeof since it will fail when transpiling.
150
150
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
151
- /** version: 2.21.1 */
151
+ /** version: 2.22.0 */
152
152
 
153
153
  /*
154
154
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1124,7 +1124,7 @@ if (!_globalThis.lwcRuntimeFlags) {
1124
1124
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1125
1125
  }
1126
1126
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1127
- /** version: 2.21.1 */
1127
+ /** version: 2.22.0 */
1128
1128
 
1129
1129
  /*
1130
1130
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5111,4 +5111,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
5111
5111
  }));
5112
5112
  });
5113
5113
  }
5114
- /** version: 2.21.1 */
5114
+ /** version: 2.22.0 */
@@ -151,7 +151,7 @@
151
151
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
152
152
  // we can't use typeof since it will fail when transpiling.
153
153
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
154
- /** version: 2.21.1 */
154
+ /** version: 2.22.0 */
155
155
 
156
156
  /*
157
157
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1127,7 +1127,7 @@
1127
1127
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1128
1128
  }
1129
1129
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1130
- /** version: 2.21.1 */
1130
+ /** version: 2.22.0 */
1131
1131
 
1132
1132
  /*
1133
1133
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5114,6 +5114,6 @@
5114
5114
  }));
5115
5115
  });
5116
5116
  }
5117
- /** version: 2.21.1 */
5117
+ /** version: 2.22.0 */
5118
5118
 
5119
5119
  })();
@@ -87,7 +87,7 @@
87
87
  const KEY__SHADOW_TOKEN = '$shadowToken$';
88
88
  const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
89
89
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
90
- /** version: 2.21.1 */
90
+ /** version: 2.22.0 */
91
91
 
92
92
  /*
93
93
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1049,7 +1049,7 @@
1049
1049
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1050
1050
  }
1051
1051
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1052
- /** version: 2.21.1 */
1052
+ /** version: 2.22.0 */
1053
1053
 
1054
1054
  /*
1055
1055
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4911,6 +4911,6 @@
4911
4911
  },
4912
4912
  configurable: true,
4913
4913
  });
4914
- /** version: 2.21.1 */
4914
+ /** version: 2.22.0 */
4915
4915
 
4916
4916
  })();
@@ -199,7 +199,7 @@
199
199
  var hasNativeSymbolSupport = /*@__PURE__*/function () {
200
200
  return Symbol('x').toString() === 'Symbol(x)';
201
201
  }();
202
- /** version: 2.21.1 */
202
+ /** version: 2.22.0 */
203
203
 
204
204
  /*
205
205
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1300,7 +1300,7 @@
1300
1300
  }
1301
1301
 
1302
1302
  var runtimeFlags = _globalThis.lwcRuntimeFlags;
1303
- /** version: 2.21.1 */
1303
+ /** version: 2.22.0 */
1304
1304
 
1305
1305
  /*
1306
1306
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5661,6 +5661,6 @@
5661
5661
  }));
5662
5662
  });
5663
5663
  }
5664
- /** version: 2.21.1 */
5664
+ /** version: 2.22.0 */
5665
5665
 
5666
5666
  })();
@@ -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.21.1 */
126
+ /** version: 2.22.0 */
127
127
 
128
128
  /*
129
129
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1209,7 +1209,7 @@
1209
1209
  }
1210
1210
 
1211
1211
  var runtimeFlags = _globalThis.lwcRuntimeFlags;
1212
- /** version: 2.21.1 */
1212
+ /** version: 2.22.0 */
1213
1213
 
1214
1214
  /*
1215
1215
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5441,6 +5441,6 @@
5441
5441
  },
5442
5442
  configurable: true
5443
5443
  });
5444
- /** version: 2.21.1 */
5444
+ /** version: 2.22.0 */
5445
5445
 
5446
5446
  })();
@@ -153,7 +153,7 @@
153
153
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
154
154
  // we can't use typeof since it will fail when transpiling.
155
155
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
156
- /** version: 2.21.1 */
156
+ /** version: 2.22.0 */
157
157
 
158
158
  /*
159
159
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1129,7 +1129,7 @@
1129
1129
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1130
1130
  }
1131
1131
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1132
- /** version: 2.21.1 */
1132
+ /** version: 2.22.0 */
1133
1133
 
1134
1134
  /*
1135
1135
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5116,6 +5116,6 @@
5116
5116
  }));
5117
5117
  });
5118
5118
  }
5119
- /** version: 2.21.1 */
5119
+ /** version: 2.22.0 */
5120
5120
 
5121
5121
  }));