lwc 2.23.0 → 2.23.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.
- package/dist/engine-dom/esm/es2017/engine-dom.js +29 -24
- package/dist/engine-dom/iife/es2017/engine-dom.js +29 -24
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +18 -13
- package/dist/engine-dom/iife/es5/engine-dom.js +30 -24
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +19 -13
- package/dist/engine-dom/umd/es2017/engine-dom.js +29 -24
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +18 -13
- package/dist/engine-dom/umd/es5/engine-dom.js +30 -24
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +19 -13
- package/dist/engine-server/commonjs/es2017/engine-server.js +19 -19
- package/dist/engine-server/esm/es2017/engine-server.js +19 -19
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +19 -19
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -349,7 +349,11 @@
|
|
|
349
349
|
CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
|
|
350
350
|
return attributeName;
|
|
351
351
|
}
|
|
352
|
-
/** version: 2.23.
|
|
352
|
+
/** version: 2.23.1 */
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Copyright (C) 2018 salesforce.com, inc.
|
|
356
|
+
*/
|
|
353
357
|
|
|
354
358
|
/*
|
|
355
359
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -359,7 +363,7 @@
|
|
|
359
363
|
*/
|
|
360
364
|
|
|
361
365
|
function detect(propName) {
|
|
362
|
-
return
|
|
366
|
+
return getOwnPropertyDescriptor$1(Element.prototype, propName) === undefined;
|
|
363
367
|
}
|
|
364
368
|
/*
|
|
365
369
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -439,6 +443,8 @@
|
|
|
439
443
|
patch$1(propName);
|
|
440
444
|
}
|
|
441
445
|
}
|
|
446
|
+
/** version: 2.23.1 */
|
|
447
|
+
|
|
442
448
|
/**
|
|
443
449
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
444
450
|
*/
|
|
@@ -471,7 +477,7 @@
|
|
|
471
477
|
});
|
|
472
478
|
}
|
|
473
479
|
|
|
474
|
-
var
|
|
480
|
+
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
475
481
|
/**
|
|
476
482
|
* Set the value at runtime of a given feature flag. This method only be invoked once per feature
|
|
477
483
|
* flag. It is meant to be used during the app initialization.
|
|
@@ -499,7 +505,7 @@
|
|
|
499
505
|
|
|
500
506
|
{
|
|
501
507
|
// Disallow the same flag to be set more than once in production
|
|
502
|
-
var runtimeValue =
|
|
508
|
+
var runtimeValue = lwcRuntimeFlags[name];
|
|
503
509
|
|
|
504
510
|
if (!isUndefined$1(runtimeValue)) {
|
|
505
511
|
// eslint-disable-next-line no-console
|
|
@@ -507,7 +513,7 @@
|
|
|
507
513
|
return;
|
|
508
514
|
}
|
|
509
515
|
|
|
510
|
-
defineProperty(
|
|
516
|
+
defineProperty(lwcRuntimeFlags, name, {
|
|
511
517
|
value: value
|
|
512
518
|
});
|
|
513
519
|
}
|
|
@@ -2173,7 +2179,7 @@
|
|
|
2173
2179
|
var vm = getAssociatedVM(this);
|
|
2174
2180
|
|
|
2175
2181
|
if (_set2) {
|
|
2176
|
-
if (
|
|
2182
|
+
if (lwcRuntimeFlags.ENABLE_REACTIVE_SETTER) {
|
|
2177
2183
|
var ro = vm.oar[key];
|
|
2178
2184
|
|
|
2179
2185
|
if (isUndefined$1(ro)) {
|
|
@@ -2679,7 +2685,7 @@
|
|
|
2679
2685
|
|
|
2680
2686
|
function swapTemplate(oldTpl, newTpl) {
|
|
2681
2687
|
|
|
2682
|
-
if (!
|
|
2688
|
+
if (!lwcRuntimeFlags.ENABLE_HMR) {
|
|
2683
2689
|
throw new Error('HMR is not enabled');
|
|
2684
2690
|
}
|
|
2685
2691
|
|
|
@@ -2688,7 +2694,7 @@
|
|
|
2688
2694
|
|
|
2689
2695
|
function swapComponent(oldComponent, newComponent) {
|
|
2690
2696
|
|
|
2691
|
-
if (!
|
|
2697
|
+
if (!lwcRuntimeFlags.ENABLE_HMR) {
|
|
2692
2698
|
throw new Error('HMR is not enabled');
|
|
2693
2699
|
}
|
|
2694
2700
|
|
|
@@ -2697,7 +2703,7 @@
|
|
|
2697
2703
|
|
|
2698
2704
|
function swapStyle(oldStyle, newStyle) {
|
|
2699
2705
|
|
|
2700
|
-
if (!
|
|
2706
|
+
if (!lwcRuntimeFlags.ENABLE_HMR) {
|
|
2701
2707
|
throw new Error('HMR is not enabled');
|
|
2702
2708
|
}
|
|
2703
2709
|
|
|
@@ -5231,7 +5237,7 @@
|
|
|
5231
5237
|
} else if (isNativeShadowDefined) {
|
|
5232
5238
|
// Not combined with above condition because @lwc/features only supports identifiers in
|
|
5233
5239
|
// the if-condition.
|
|
5234
|
-
if (
|
|
5240
|
+
if (lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
5235
5241
|
if (def.shadowSupportMode === "any"
|
|
5236
5242
|
/* ShadowSupportMode.Any */
|
|
5237
5243
|
) {
|
|
@@ -5876,7 +5882,7 @@
|
|
|
5876
5882
|
ArrayPush$1.call(wiredConnecting, function () {
|
|
5877
5883
|
connector.connect();
|
|
5878
5884
|
|
|
5879
|
-
if (!
|
|
5885
|
+
if (!lwcRuntimeFlags.ENABLE_WIRE_SYNC_EMIT) {
|
|
5880
5886
|
if (hasDynamicParams) {
|
|
5881
5887
|
Promise.resolve().then(computeConfigAndUpdate);
|
|
5882
5888
|
return;
|
|
@@ -6457,7 +6463,7 @@
|
|
|
6457
6463
|
|
|
6458
6464
|
return ctor;
|
|
6459
6465
|
}
|
|
6460
|
-
/* version: 2.23.
|
|
6466
|
+
/* version: 2.23.1 */
|
|
6461
6467
|
|
|
6462
6468
|
/*
|
|
6463
6469
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7312,7 +7318,7 @@
|
|
|
7312
7318
|
});
|
|
7313
7319
|
freeze(LightningElement);
|
|
7314
7320
|
seal(LightningElement.prototype);
|
|
7315
|
-
/* version: 2.23.
|
|
7321
|
+
/* version: 2.23.1 */
|
|
7316
7322
|
|
|
7317
7323
|
exports.LightningElement = LightningElement;
|
|
7318
7324
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -419,9 +419,9 @@ function htmlEscape(str, attrMode = false) {
|
|
|
419
419
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
420
420
|
*/
|
|
421
421
|
// Increment whenever the LWC template compiler changes
|
|
422
|
-
const LWC_VERSION = "2.23.
|
|
422
|
+
const LWC_VERSION = "2.23.1";
|
|
423
423
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
424
|
-
/** version: 2.23.
|
|
424
|
+
/** version: 2.23.1 */
|
|
425
425
|
|
|
426
426
|
/*
|
|
427
427
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -481,7 +481,7 @@ const features = {
|
|
|
481
481
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
482
482
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
483
483
|
}
|
|
484
|
-
const
|
|
484
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
485
485
|
/**
|
|
486
486
|
* Set the value at runtime of a given feature flag. This method only be invoked once per feature
|
|
487
487
|
* flag. It is meant to be used during the app initialization.
|
|
@@ -508,17 +508,17 @@ function setFeatureFlag(name, value) {
|
|
|
508
508
|
}
|
|
509
509
|
if (process.env.NODE_ENV !== 'production') {
|
|
510
510
|
// Allow the same flag to be set more than once outside of production to enable testing
|
|
511
|
-
|
|
511
|
+
lwcRuntimeFlags[name] = value;
|
|
512
512
|
}
|
|
513
513
|
else {
|
|
514
514
|
// Disallow the same flag to be set more than once in production
|
|
515
|
-
const runtimeValue =
|
|
515
|
+
const runtimeValue = lwcRuntimeFlags[name];
|
|
516
516
|
if (!isUndefined$1(runtimeValue)) {
|
|
517
517
|
// eslint-disable-next-line no-console
|
|
518
518
|
console.error(`Failed to set the value "${value}" for the runtime feature flag "${name}". "${name}" has already been set with the value "${runtimeValue}".`);
|
|
519
519
|
return;
|
|
520
520
|
}
|
|
521
|
-
defineProperty(
|
|
521
|
+
defineProperty(lwcRuntimeFlags, name, { value });
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
/**
|
|
@@ -530,7 +530,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
530
530
|
setFeatureFlag(name, value);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
/** version: 2.23.
|
|
533
|
+
/** version: 2.23.1 */
|
|
534
534
|
|
|
535
535
|
/* proxy-compat-disable */
|
|
536
536
|
|
|
@@ -546,7 +546,7 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
546
546
|
window.addEventListener('test-dummy-flag', () => {
|
|
547
547
|
let hasFlag = false;
|
|
548
548
|
|
|
549
|
-
if (
|
|
549
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
550
550
|
hasFlag = true;
|
|
551
551
|
}
|
|
552
552
|
|
|
@@ -2208,7 +2208,7 @@ function createPublicAccessorDescriptor(key, descriptor) {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
|
|
2210
2210
|
if (set) {
|
|
2211
|
-
if (
|
|
2211
|
+
if (lwcRuntimeFlags.ENABLE_REACTIVE_SETTER) {
|
|
2212
2212
|
let ro = vm.oar[key];
|
|
2213
2213
|
|
|
2214
2214
|
if (isUndefined$1(ro)) {
|
|
@@ -2787,7 +2787,7 @@ function getTemplateOrSwappedTemplate(tpl) {
|
|
|
2787
2787
|
throw new ReferenceError();
|
|
2788
2788
|
}
|
|
2789
2789
|
|
|
2790
|
-
if (
|
|
2790
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2791
2791
|
const visited = new Set();
|
|
2792
2792
|
|
|
2793
2793
|
while (swappedTemplateMap.has(tpl) && !visited.has(tpl)) {
|
|
@@ -2804,7 +2804,7 @@ function getComponentOrSwappedComponent(Ctor) {
|
|
|
2804
2804
|
throw new ReferenceError();
|
|
2805
2805
|
}
|
|
2806
2806
|
|
|
2807
|
-
if (
|
|
2807
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2808
2808
|
const visited = new Set();
|
|
2809
2809
|
|
|
2810
2810
|
while (swappedComponentMap.has(Ctor) && !visited.has(Ctor)) {
|
|
@@ -2821,7 +2821,7 @@ function getStyleOrSwappedStyle(style) {
|
|
|
2821
2821
|
throw new ReferenceError();
|
|
2822
2822
|
}
|
|
2823
2823
|
|
|
2824
|
-
if (
|
|
2824
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2825
2825
|
const visited = new Set();
|
|
2826
2826
|
|
|
2827
2827
|
while (swappedStyleMap.has(style) && !visited.has(style)) {
|
|
@@ -2838,7 +2838,7 @@ function setActiveVM(vm) {
|
|
|
2838
2838
|
throw new ReferenceError();
|
|
2839
2839
|
}
|
|
2840
2840
|
|
|
2841
|
-
if (
|
|
2841
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2842
2842
|
// tracking active component
|
|
2843
2843
|
const Ctor = vm.def.ctor;
|
|
2844
2844
|
let componentVMs = activeComponents.get(Ctor);
|
|
@@ -2895,7 +2895,7 @@ function removeActiveVM(vm) {
|
|
|
2895
2895
|
throw new ReferenceError();
|
|
2896
2896
|
}
|
|
2897
2897
|
|
|
2898
|
-
if (
|
|
2898
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2899
2899
|
// tracking inactive component
|
|
2900
2900
|
const Ctor = vm.def.ctor;
|
|
2901
2901
|
let list = activeComponents.get(Ctor);
|
|
@@ -5143,7 +5143,7 @@ function createVM(elm, ctor, renderer, options) {
|
|
|
5143
5143
|
return `[object:vm ${def.name} (${vm.idx})]`;
|
|
5144
5144
|
};
|
|
5145
5145
|
|
|
5146
|
-
if (
|
|
5146
|
+
if (lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
|
|
5147
5147
|
vm.shadowMode = 0
|
|
5148
5148
|
/* ShadowMode.Native */
|
|
5149
5149
|
;
|
|
@@ -5182,7 +5182,7 @@ function computeShadowMode(vm, renderer) {
|
|
|
5182
5182
|
} else if (isNativeShadowDefined) {
|
|
5183
5183
|
// Not combined with above condition because @lwc/features only supports identifiers in
|
|
5184
5184
|
// the if-condition.
|
|
5185
|
-
if (
|
|
5185
|
+
if (lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
5186
5186
|
if (def.shadowSupportMode === "any"
|
|
5187
5187
|
/* ShadowSupportMode.Any */
|
|
5188
5188
|
) {
|
|
@@ -5771,7 +5771,7 @@ function installWireAdapters(vm) {
|
|
|
5771
5771
|
ArrayPush$1.call(wiredConnecting, () => {
|
|
5772
5772
|
connector.connect();
|
|
5773
5773
|
|
|
5774
|
-
if (!
|
|
5774
|
+
if (!lwcRuntimeFlags.ENABLE_WIRE_SYNC_EMIT) {
|
|
5775
5775
|
if (hasDynamicParams) {
|
|
5776
5776
|
Promise.resolve().then(computeConfigAndUpdate);
|
|
5777
5777
|
return;
|
|
@@ -5980,7 +5980,7 @@ function freezeTemplate(tmpl) {
|
|
|
5980
5980
|
});
|
|
5981
5981
|
}
|
|
5982
5982
|
}
|
|
5983
|
-
/* version: 2.23.
|
|
5983
|
+
/* version: 2.23.1 */
|
|
5984
5984
|
|
|
5985
5985
|
/*
|
|
5986
5986
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -6450,7 +6450,7 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
6450
6450
|
*/
|
|
6451
6451
|
freeze(LightningElement);
|
|
6452
6452
|
seal(LightningElement.prototype);
|
|
6453
|
-
/* version: 2.23.
|
|
6453
|
+
/* version: 2.23.1 */
|
|
6454
6454
|
|
|
6455
6455
|
exports.LightningElement = LightningElement;
|
|
6456
6456
|
exports.api = api$1;
|
|
@@ -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.23.
|
|
418
|
+
const LWC_VERSION = "2.23.1";
|
|
419
419
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
420
|
-
/** version: 2.23.
|
|
420
|
+
/** version: 2.23.1 */
|
|
421
421
|
|
|
422
422
|
/*
|
|
423
423
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -477,7 +477,7 @@ const features = {
|
|
|
477
477
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
478
478
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
481
481
|
/**
|
|
482
482
|
* Set the value at runtime of a given feature flag. This method only be invoked once per feature
|
|
483
483
|
* flag. It is meant to be used during the app initialization.
|
|
@@ -504,17 +504,17 @@ function setFeatureFlag(name, value) {
|
|
|
504
504
|
}
|
|
505
505
|
if (process.env.NODE_ENV !== 'production') {
|
|
506
506
|
// Allow the same flag to be set more than once outside of production to enable testing
|
|
507
|
-
|
|
507
|
+
lwcRuntimeFlags[name] = value;
|
|
508
508
|
}
|
|
509
509
|
else {
|
|
510
510
|
// Disallow the same flag to be set more than once in production
|
|
511
|
-
const runtimeValue =
|
|
511
|
+
const runtimeValue = lwcRuntimeFlags[name];
|
|
512
512
|
if (!isUndefined$1(runtimeValue)) {
|
|
513
513
|
// eslint-disable-next-line no-console
|
|
514
514
|
console.error(`Failed to set the value "${value}" for the runtime feature flag "${name}". "${name}" has already been set with the value "${runtimeValue}".`);
|
|
515
515
|
return;
|
|
516
516
|
}
|
|
517
|
-
defineProperty(
|
|
517
|
+
defineProperty(lwcRuntimeFlags, name, { value });
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
/**
|
|
@@ -526,7 +526,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
526
526
|
setFeatureFlag(name, value);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
/** version: 2.23.
|
|
529
|
+
/** version: 2.23.1 */
|
|
530
530
|
|
|
531
531
|
/* proxy-compat-disable */
|
|
532
532
|
|
|
@@ -542,7 +542,7 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
542
542
|
window.addEventListener('test-dummy-flag', () => {
|
|
543
543
|
let hasFlag = false;
|
|
544
544
|
|
|
545
|
-
if (
|
|
545
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
546
546
|
hasFlag = true;
|
|
547
547
|
}
|
|
548
548
|
|
|
@@ -2204,7 +2204,7 @@ function createPublicAccessorDescriptor(key, descriptor) {
|
|
|
2204
2204
|
}
|
|
2205
2205
|
|
|
2206
2206
|
if (set) {
|
|
2207
|
-
if (
|
|
2207
|
+
if (lwcRuntimeFlags.ENABLE_REACTIVE_SETTER) {
|
|
2208
2208
|
let ro = vm.oar[key];
|
|
2209
2209
|
|
|
2210
2210
|
if (isUndefined$1(ro)) {
|
|
@@ -2783,7 +2783,7 @@ function getTemplateOrSwappedTemplate(tpl) {
|
|
|
2783
2783
|
throw new ReferenceError();
|
|
2784
2784
|
}
|
|
2785
2785
|
|
|
2786
|
-
if (
|
|
2786
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2787
2787
|
const visited = new Set();
|
|
2788
2788
|
|
|
2789
2789
|
while (swappedTemplateMap.has(tpl) && !visited.has(tpl)) {
|
|
@@ -2800,7 +2800,7 @@ function getComponentOrSwappedComponent(Ctor) {
|
|
|
2800
2800
|
throw new ReferenceError();
|
|
2801
2801
|
}
|
|
2802
2802
|
|
|
2803
|
-
if (
|
|
2803
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2804
2804
|
const visited = new Set();
|
|
2805
2805
|
|
|
2806
2806
|
while (swappedComponentMap.has(Ctor) && !visited.has(Ctor)) {
|
|
@@ -2817,7 +2817,7 @@ function getStyleOrSwappedStyle(style) {
|
|
|
2817
2817
|
throw new ReferenceError();
|
|
2818
2818
|
}
|
|
2819
2819
|
|
|
2820
|
-
if (
|
|
2820
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2821
2821
|
const visited = new Set();
|
|
2822
2822
|
|
|
2823
2823
|
while (swappedStyleMap.has(style) && !visited.has(style)) {
|
|
@@ -2834,7 +2834,7 @@ function setActiveVM(vm) {
|
|
|
2834
2834
|
throw new ReferenceError();
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
|
-
if (
|
|
2837
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2838
2838
|
// tracking active component
|
|
2839
2839
|
const Ctor = vm.def.ctor;
|
|
2840
2840
|
let componentVMs = activeComponents.get(Ctor);
|
|
@@ -2891,7 +2891,7 @@ function removeActiveVM(vm) {
|
|
|
2891
2891
|
throw new ReferenceError();
|
|
2892
2892
|
}
|
|
2893
2893
|
|
|
2894
|
-
if (
|
|
2894
|
+
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2895
2895
|
// tracking inactive component
|
|
2896
2896
|
const Ctor = vm.def.ctor;
|
|
2897
2897
|
let list = activeComponents.get(Ctor);
|
|
@@ -5139,7 +5139,7 @@ function createVM(elm, ctor, renderer, options) {
|
|
|
5139
5139
|
return `[object:vm ${def.name} (${vm.idx})]`;
|
|
5140
5140
|
};
|
|
5141
5141
|
|
|
5142
|
-
if (
|
|
5142
|
+
if (lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
|
|
5143
5143
|
vm.shadowMode = 0
|
|
5144
5144
|
/* ShadowMode.Native */
|
|
5145
5145
|
;
|
|
@@ -5178,7 +5178,7 @@ function computeShadowMode(vm, renderer) {
|
|
|
5178
5178
|
} else if (isNativeShadowDefined) {
|
|
5179
5179
|
// Not combined with above condition because @lwc/features only supports identifiers in
|
|
5180
5180
|
// the if-condition.
|
|
5181
|
-
if (
|
|
5181
|
+
if (lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
5182
5182
|
if (def.shadowSupportMode === "any"
|
|
5183
5183
|
/* ShadowSupportMode.Any */
|
|
5184
5184
|
) {
|
|
@@ -5767,7 +5767,7 @@ function installWireAdapters(vm) {
|
|
|
5767
5767
|
ArrayPush$1.call(wiredConnecting, () => {
|
|
5768
5768
|
connector.connect();
|
|
5769
5769
|
|
|
5770
|
-
if (!
|
|
5770
|
+
if (!lwcRuntimeFlags.ENABLE_WIRE_SYNC_EMIT) {
|
|
5771
5771
|
if (hasDynamicParams) {
|
|
5772
5772
|
Promise.resolve().then(computeConfigAndUpdate);
|
|
5773
5773
|
return;
|
|
@@ -5976,7 +5976,7 @@ function freezeTemplate(tmpl) {
|
|
|
5976
5976
|
});
|
|
5977
5977
|
}
|
|
5978
5978
|
}
|
|
5979
|
-
/* version: 2.23.
|
|
5979
|
+
/* version: 2.23.1 */
|
|
5980
5980
|
|
|
5981
5981
|
/*
|
|
5982
5982
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -6446,6 +6446,6 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
6446
6446
|
*/
|
|
6447
6447
|
freeze(LightningElement);
|
|
6448
6448
|
seal(LightningElement.prototype);
|
|
6449
|
-
/* version: 2.23.
|
|
6449
|
+
/* version: 2.23.1 */
|
|
6450
6450
|
|
|
6451
6451
|
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.23.
|
|
151
|
+
/** version: 2.23.1 */
|
|
152
152
|
|
|
153
153
|
/*
|
|
154
154
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1123,8 +1123,8 @@ function createStaticHTMLCollection(items) {
|
|
|
1123
1123
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1124
1124
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1127
|
-
/** version: 2.23.
|
|
1126
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1127
|
+
/** version: 2.23.1 */
|
|
1128
1128
|
|
|
1129
1129
|
/*
|
|
1130
1130
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1375,7 +1375,7 @@ defineProperties(_Node.prototype, {
|
|
|
1375
1375
|
},
|
|
1376
1376
|
textContent: {
|
|
1377
1377
|
get() {
|
|
1378
|
-
if (!
|
|
1378
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1379
1379
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1380
1380
|
return textContentGetterPatched.call(this);
|
|
1381
1381
|
}
|
|
@@ -1482,7 +1482,7 @@ defineProperties(_Node.prototype, {
|
|
|
1482
1482
|
return true;
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
if (!
|
|
1485
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1486
1486
|
if (otherNode == null) {
|
|
1487
1487
|
return false;
|
|
1488
1488
|
}
|
|
@@ -1508,7 +1508,7 @@ defineProperties(_Node.prototype, {
|
|
|
1508
1508
|
},
|
|
1509
1509
|
cloneNode: {
|
|
1510
1510
|
value(deep) {
|
|
1511
|
-
if (!
|
|
1511
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1512
1512
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1513
1513
|
return cloneNodePatched.call(this, deep);
|
|
1514
1514
|
}
|
|
@@ -3808,7 +3808,7 @@ function lastElementChildGetterPatched() {
|
|
|
3808
3808
|
defineProperties(Element.prototype, {
|
|
3809
3809
|
innerHTML: {
|
|
3810
3810
|
get() {
|
|
3811
|
-
if (!
|
|
3811
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3812
3812
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3813
3813
|
return innerHTMLGetterPatched.call(this);
|
|
3814
3814
|
}
|
|
@@ -3833,7 +3833,7 @@ defineProperties(Element.prototype, {
|
|
|
3833
3833
|
},
|
|
3834
3834
|
outerHTML: {
|
|
3835
3835
|
get() {
|
|
3836
|
-
if (!
|
|
3836
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3837
3837
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3838
3838
|
return outerHTMLGetterPatched.call(this);
|
|
3839
3839
|
}
|
|
@@ -3961,7 +3961,7 @@ function querySelectorPatched() {
|
|
|
3961
3961
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3962
3962
|
return isUndefined(elm) ? null : elm;
|
|
3963
3963
|
} else {
|
|
3964
|
-
if (!
|
|
3964
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3965
3965
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3966
3966
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3967
3967
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3973,7 +3973,7 @@ function querySelectorPatched() {
|
|
|
3973
3973
|
return isUndefined(elm) ? null : elm;
|
|
3974
3974
|
}
|
|
3975
3975
|
} else {
|
|
3976
|
-
if (!
|
|
3976
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3977
3977
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3978
3978
|
const elm = nodeList[0];
|
|
3979
3979
|
return isUndefined(elm) ? null : elm;
|
|
@@ -4056,7 +4056,7 @@ defineProperties(Element.prototype, {
|
|
|
4056
4056
|
value() {
|
|
4057
4057
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4058
4058
|
|
|
4059
|
-
if (!
|
|
4059
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4060
4060
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4061
4061
|
/* ShadowDomSemantic.Disabled */
|
|
4062
4062
|
);
|
|
@@ -4080,7 +4080,7 @@ if (process.env.NODE_ENV !== 'test') {
|
|
|
4080
4080
|
value() {
|
|
4081
4081
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4082
4082
|
|
|
4083
|
-
if (!
|
|
4083
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4084
4084
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4085
4085
|
}
|
|
4086
4086
|
|
|
@@ -4098,7 +4098,7 @@ if (process.env.NODE_ENV !== 'test') {
|
|
|
4098
4098
|
value() {
|
|
4099
4099
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4100
4100
|
|
|
4101
|
-
if (!
|
|
4101
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4102
4102
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4103
4103
|
}
|
|
4104
4104
|
|
|
@@ -4116,7 +4116,7 @@ if (process.env.NODE_ENV !== 'test') {
|
|
|
4116
4116
|
value() {
|
|
4117
4117
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4118
4118
|
|
|
4119
|
-
if (!
|
|
4119
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4120
4120
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4121
4121
|
}
|
|
4122
4122
|
|
|
@@ -4848,11 +4848,11 @@ defineProperties(HTMLElement.prototype, {
|
|
|
4848
4848
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4849
4849
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4850
4850
|
get() {
|
|
4851
|
-
if (!
|
|
4851
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4852
4852
|
return innerTextGetter.call(this);
|
|
4853
4853
|
}
|
|
4854
4854
|
|
|
4855
|
-
if (!
|
|
4855
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4856
4856
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4857
4857
|
return getInnerText(this);
|
|
4858
4858
|
}
|
|
@@ -4884,11 +4884,11 @@ if (outerTextGetter !== null && outerTextSetter !== null) {
|
|
|
4884
4884
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4885
4885
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4886
4886
|
get() {
|
|
4887
|
-
if (!
|
|
4887
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4888
4888
|
return outerTextGetter.call(this);
|
|
4889
4889
|
}
|
|
4890
4890
|
|
|
4891
|
-
if (!
|
|
4891
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4892
4892
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4893
4893
|
return getInnerText(this);
|
|
4894
4894
|
}
|
|
@@ -5102,7 +5102,7 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
5102
5102
|
window.addEventListener('test-dummy-flag', () => {
|
|
5103
5103
|
let hasFlag = false;
|
|
5104
5104
|
|
|
5105
|
-
if (
|
|
5105
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5106
5106
|
hasFlag = true;
|
|
5107
5107
|
}
|
|
5108
5108
|
|
|
@@ -5114,4 +5114,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
5114
5114
|
}));
|
|
5115
5115
|
});
|
|
5116
5116
|
}
|
|
5117
|
-
/** version: 2.23.
|
|
5117
|
+
/** version: 2.23.1 */
|