@lwrjs/everywhere 0.13.0-alpha.19 → 0.13.0-alpha.20
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/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/4f954a44b801b9d82c819dff25671ebb/config.js +12 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_20/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js +14 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{6_6_6/s/cdfe5b3d7eb387194d2ae21629d926d8 → 7_0_0/s/ed008935d51f911e7bc67e4820765193}/lwc.js +159 -60
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js +3 -3
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js +21 -21
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_13_0-alpha_19/s/dc0769b8229f8a2f6ef0650ee3f0f8ab → 0_13_0-alpha_20/s/049f521eaf1c318c7c2edb3908c93ce6}/lwr_loader.js +4 -4
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/preInit/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/lwr-error-shim.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_13_0-alpha_19 → 0_13_0-alpha_20}/lwr-loader-shim.bundle.js +7 -7
- package/build/assets/amd/lwr-everywhere-debug.js +9 -9
- package/build/assets/amd/lwr-everywhere-min.js +2 -2
- package/build/assets/amd/lwr-everywhere.js +9 -9
- package/build/assets/core/lwr-everywhere-debug.js +5 -5
- package/build/assets/core/lwr-everywhere-min.js +1 -1
- package/build/assets/core/lwr-everywhere.js +5 -5
- package/build/assets/esm/lwr-everywhere-debug.js +1 -1
- package/build/assets/esm/lwr-everywhere-min.js +1 -1
- package/build/assets/esm/lwr-everywhere.js +1 -1
- package/build/modules/lwr/everywhere/everywhere.js +1 -1
- package/build/modules/lwr/host/host.js +1 -1
- package/package.json +10 -10
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/7ef24597596e213d639abdf3cc26ba37/config.js +0 -12
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_19/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* This script is generated */
|
|
2
|
+
/* Client Bootstrap configuration */
|
|
3
|
+
globalThis.LWR = globalThis.LWR || {};
|
|
4
|
+
Object.assign(globalThis.LWR, {"appId":"amd-bootstrap","bootstrapModule":"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_20","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_0-alpha_20/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_20"],"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_0-alpha_20/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js":["lwr/preInit/v/0_13_0-alpha_20"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_0-alpha_20/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js":["lwr/init/v/0_13_0-alpha_20"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_0-alpha_20/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js":["lwr/metrics/v/0_13_0-alpha_20"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F7_0_0/s/ed008935d51f911e7bc67e4820765193/lwc.js":["lwc/v/7_0_0"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_13_0-alpha_20/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_13_0-alpha_20"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_0-alpha_20/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_13_0-alpha_20"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_13_0-alpha_20/s/272183c0b6e02561b7c96a1b23473837/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/preInit/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/lwr%2FpreInit%2Fv%2F0_13_0-alpha_20/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js","lwr/init/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_13_0-alpha_20/s/d7186d4fbbc58762dab0d51cc1f0afb8/lwr_init.js","lwr/metrics/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_13_0-alpha_20/s/fb8c5dd340c69fdf7ded52d3eba633b9/lwr_metrics.js","lwc/v/7_0_0":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F7_0_0/s/ed008935d51f911e7bc67e4820765193/lwc.js","lwr/everywhereAmd/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_13_0-alpha_20/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js","lwr/vault/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_13_0-alpha_20/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_13_0-alpha_20"],"serverData":{},"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_20"],"preloadModules":["lwr/preInit/v/0_13_0-alpha_20","lwr/init/v/0_13_0-alpha_20","lwr/metrics/v/0_13_0-alpha_20","lwc/v/7_0_0","lwr/everywhereAmd/v/0_13_0-alpha_20"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
|
|
5
|
+
globalThis.LWR = {...globalThis.LWR, env: {"SSR":false,"basePath":"","locale":"en-US","assetBasePath":"","uiBasePath":""}};
|
|
6
|
+
globalThis.process={...globalThis.process,env:{...globalThis.process?.env,...{"NODE_ENV":"compat"}}};
|
|
7
|
+
globalThis.lwcRuntimeFlags = { ENABLE_MIXED_SHADOW_MODE: false };
|
|
8
|
+
// Appended by Static Site Generator
|
|
9
|
+
if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
|
|
10
|
+
Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_13_0-alpha_20/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js":["lwr/profiler/v/0_13_0-alpha_20"],"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_0-alpha_20/s/049f521eaf1c318c7c2edb3908c93ce6/lwr_loader.js":["lwr/loader/v/0_13_0-alpha_20"]})
|
|
11
|
+
if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
|
|
12
|
+
Object.assign(globalThis.LWR.index, {"lwr/profiler/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_13_0-alpha_20/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js","lwr/loader/v/0_13_0-alpha_20":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_13_0-alpha_20/s/049f521eaf1c318c7c2edb3908c93ce6/lwr_loader.js"})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_20', ['lwr/loader/v/0_13_0-alpha_20', 'lwr/preInit/v/0_13_0-alpha_20', 'lwr/init/v/0_13_0-alpha_20'], (function (_0_13_0Alpha_20$2, _0_13_0Alpha_20, _0_13_0Alpha_20$1) { 'use strict';
|
|
2
|
+
|
|
3
|
+
const clientBootstrapConfig = _0_13_0Alpha_20.getClientBootstrapConfig();
|
|
4
|
+
const { serverData, rootComponents } = clientBootstrapConfig;
|
|
5
|
+
|
|
6
|
+
// initialize additional non-configured root components
|
|
7
|
+
Promise.all(rootComponents.map(async (rootSpecifier) => {
|
|
8
|
+
const element = _0_13_0Alpha_20$1.toKebabCase(rootSpecifier);
|
|
9
|
+
return _0_13_0Alpha_20$2.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_13_0-alpha_20').then(({default: Ctor}) => {
|
|
10
|
+
_0_13_0Alpha_20$1.init([[element, Ctor]], serverData);
|
|
11
|
+
});
|
|
12
|
+
}));
|
|
13
|
+
|
|
14
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwc/v/
|
|
1
|
+
LWR.define('lwc/v/7_0_0', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -153,7 +153,8 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
153
153
|
replace: StringReplace,
|
|
154
154
|
split: StringSplit,
|
|
155
155
|
slice: StringSlice,
|
|
156
|
-
toLowerCase: StringToLowerCase
|
|
156
|
+
toLowerCase: StringToLowerCase,
|
|
157
|
+
trim: StringTrim
|
|
157
158
|
} = String.prototype;
|
|
158
159
|
/**
|
|
159
160
|
* Determines whether the argument is `undefined`.
|
|
@@ -313,6 +314,10 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
313
314
|
case 7 /* APIFeature.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE */:
|
|
314
315
|
case 6 /* APIFeature.USE_LIGHT_DOM_SLOT_FORWARDING */:
|
|
315
316
|
return apiVersion >= 61 /* APIVersion.V61_250_SUMMER_24 */;
|
|
317
|
+
case 9 /* APIFeature.ENABLE_THIS_DOT_HOST_ELEMENT */:
|
|
318
|
+
case 10 /* APIFeature.ENABLE_THIS_DOT_STYLE */:
|
|
319
|
+
case 11 /* APIFeature.TEMPLATE_CLASS_NAME_OBJECT_BINDING */:
|
|
320
|
+
return apiVersion >= 62 /* APIVersion.V62_252_WINTER_25 */;
|
|
316
321
|
}
|
|
317
322
|
}
|
|
318
323
|
|
|
@@ -442,9 +447,9 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
442
447
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
443
448
|
*/
|
|
444
449
|
// Increment whenever the LWC template compiler changes
|
|
445
|
-
const LWC_VERSION = "
|
|
450
|
+
const LWC_VERSION = "7.0.0";
|
|
446
451
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
447
|
-
/** version:
|
|
452
|
+
/** version: 7.0.0 */
|
|
448
453
|
|
|
449
454
|
/**
|
|
450
455
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -530,7 +535,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
530
535
|
setFeatureFlag(name, value);
|
|
531
536
|
}
|
|
532
537
|
}
|
|
533
|
-
/** version:
|
|
538
|
+
/** version: 7.0.0 */
|
|
534
539
|
|
|
535
540
|
/**
|
|
536
541
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -1722,7 +1727,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
1722
1727
|
valueMutated(originalTarget, key);
|
|
1723
1728
|
return true;
|
|
1724
1729
|
}
|
|
1725
|
-
/*LWC compiler
|
|
1730
|
+
/*LWC compiler v7.0.0*/
|
|
1726
1731
|
}
|
|
1727
1732
|
const getterMap = new WeakMap();
|
|
1728
1733
|
const setterMap = new WeakMap();
|
|
@@ -1815,7 +1820,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
1815
1820
|
/* istanbul ignore next */
|
|
1816
1821
|
return false;
|
|
1817
1822
|
}
|
|
1818
|
-
/*LWC compiler
|
|
1823
|
+
/*LWC compiler v7.0.0*/
|
|
1819
1824
|
}
|
|
1820
1825
|
function extract(objectOrArray) {
|
|
1821
1826
|
if (isArray(objectOrArray)) {
|
|
@@ -2097,7 +2102,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
2097
2102
|
}
|
|
2098
2103
|
|
|
2099
2104
|
/*
|
|
2100
|
-
* Copyright (c)
|
|
2105
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
2101
2106
|
* All rights reserved.
|
|
2102
2107
|
* SPDX-License-Identifier: MIT
|
|
2103
2108
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -2459,6 +2464,21 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
2459
2464
|
}
|
|
2460
2465
|
return vm.shadowRoot;
|
|
2461
2466
|
},
|
|
2467
|
+
get hostElement() {
|
|
2468
|
+
const vm = getAssociatedVM(this);
|
|
2469
|
+
const apiVersion = getComponentAPIVersion(vm.def.ctor);
|
|
2470
|
+
if (!isAPIFeatureEnabled(9 /* APIFeature.ENABLE_THIS_DOT_HOST_ELEMENT */, apiVersion)) {
|
|
2471
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2472
|
+
logWarnOnce('The `this.hostElement` API within LightningElement is ' + 'only supported in API version 62 and above. Increase the API version to use it.');
|
|
2473
|
+
}
|
|
2474
|
+
// Simulate the old behavior for `this.hostElement` to avoid a breaking change
|
|
2475
|
+
return undefined;
|
|
2476
|
+
}
|
|
2477
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2478
|
+
assert.isTrue(vm.elm instanceof Element, `this.hostElement should be an Element, found: ${vm.elm}`);
|
|
2479
|
+
}
|
|
2480
|
+
return vm.elm;
|
|
2481
|
+
},
|
|
2462
2482
|
get refs() {
|
|
2463
2483
|
const vm = getAssociatedVM(this);
|
|
2464
2484
|
if (isUpdatingTemplate) {
|
|
@@ -2587,6 +2607,22 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
2587
2607
|
} = getAssociatedVM(this);
|
|
2588
2608
|
return renderer.getTagName(elm);
|
|
2589
2609
|
},
|
|
2610
|
+
get style() {
|
|
2611
|
+
const {
|
|
2612
|
+
elm,
|
|
2613
|
+
renderer,
|
|
2614
|
+
def
|
|
2615
|
+
} = getAssociatedVM(this);
|
|
2616
|
+
const apiVersion = getComponentAPIVersion(def.ctor);
|
|
2617
|
+
if (!isAPIFeatureEnabled(10 /* APIFeature.ENABLE_THIS_DOT_STYLE */, apiVersion)) {
|
|
2618
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2619
|
+
logWarnOnce('The `this.style` API within LightningElement returning the CSSStyleDeclaration is ' + 'only supported in API version 62 and above. Increase the API version to use it.');
|
|
2620
|
+
}
|
|
2621
|
+
// Simulate the old behavior for `this.style` to avoid a breaking change
|
|
2622
|
+
return undefined;
|
|
2623
|
+
}
|
|
2624
|
+
return renderer.getStyle(elm);
|
|
2625
|
+
},
|
|
2590
2626
|
render() {
|
|
2591
2627
|
const vm = getAssociatedVM(this);
|
|
2592
2628
|
return vm.def.template;
|
|
@@ -2968,12 +3004,21 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
2968
3004
|
}
|
|
2969
3005
|
|
|
2970
3006
|
/*
|
|
2971
|
-
* Copyright (c)
|
|
3007
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
2972
3008
|
* All rights reserved.
|
|
2973
3009
|
* SPDX-License-Identifier: MIT
|
|
2974
3010
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2975
3011
|
*/
|
|
2976
|
-
|
|
3012
|
+
/**
|
|
3013
|
+
* The `@api` decorator marks public fields and public methods in
|
|
3014
|
+
* LWC Components. This function implements the internals of this
|
|
3015
|
+
* decorator.
|
|
3016
|
+
*/
|
|
3017
|
+
function api$1(
|
|
3018
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3019
|
+
value,
|
|
3020
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3021
|
+
context) {
|
|
2977
3022
|
if (process.env.NODE_ENV !== 'production') {
|
|
2978
3023
|
assert.fail(`@api decorator can only be used as a decorator function.`);
|
|
2979
3024
|
}
|
|
@@ -3050,7 +3095,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
3050
3095
|
}
|
|
3051
3096
|
|
|
3052
3097
|
/*
|
|
3053
|
-
* Copyright (c)
|
|
3098
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
3054
3099
|
* All rights reserved.
|
|
3055
3100
|
* SPDX-License-Identifier: MIT
|
|
3056
3101
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -3092,19 +3137,27 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
3092
3137
|
}
|
|
3093
3138
|
|
|
3094
3139
|
/*
|
|
3095
|
-
* Copyright (c)
|
|
3140
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
3096
3141
|
* All rights reserved.
|
|
3097
3142
|
* SPDX-License-Identifier: MIT
|
|
3098
3143
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3099
3144
|
*/
|
|
3100
3145
|
/**
|
|
3101
|
-
*
|
|
3102
|
-
*
|
|
3103
|
-
*
|
|
3104
|
-
* @
|
|
3105
|
-
* @
|
|
3106
|
-
|
|
3107
|
-
|
|
3146
|
+
* Decorator factory to wire a property or method to a wire adapter data source.
|
|
3147
|
+
* @param adapter the adapter used to provision data
|
|
3148
|
+
* @param config configuration object for the adapter
|
|
3149
|
+
* @returns A decorator function
|
|
3150
|
+
* @example
|
|
3151
|
+
* export default class WireExample extends LightningElement {
|
|
3152
|
+
* \@api bookId;
|
|
3153
|
+
* \@wire(getBook, { id: '$bookId'}) book;
|
|
3154
|
+
* }
|
|
3155
|
+
*/
|
|
3156
|
+
function wire(
|
|
3157
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3158
|
+
adapter,
|
|
3159
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3160
|
+
config) {
|
|
3108
3161
|
if (process.env.NODE_ENV !== 'production') {
|
|
3109
3162
|
assert.fail('@wire(adapter, config?) may only be used as a decorator.');
|
|
3110
3163
|
}
|
|
@@ -3140,11 +3193,11 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
3140
3193
|
*/
|
|
3141
3194
|
function getClassDescriptorType(descriptor) {
|
|
3142
3195
|
if (isFunction$1(descriptor.value)) {
|
|
3143
|
-
return
|
|
3196
|
+
return 'method';
|
|
3144
3197
|
} else if (isFunction$1(descriptor.set) || isFunction$1(descriptor.get)) {
|
|
3145
|
-
return
|
|
3198
|
+
return 'accessor';
|
|
3146
3199
|
} else {
|
|
3147
|
-
return
|
|
3200
|
+
return 'field';
|
|
3148
3201
|
}
|
|
3149
3202
|
}
|
|
3150
3203
|
function validateObservedField(Ctor, fieldName, descriptor) {
|
|
@@ -3381,9 +3434,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
3381
3434
|
const versionMatcher = func.toString().match(LWC_VERSION_COMMENT_REGEX);
|
|
3382
3435
|
if (!isNull(versionMatcher) && !warned) {
|
|
3383
3436
|
const version = versionMatcher[1];
|
|
3384
|
-
|
|
3385
|
-
const [expectedMajor, expectedMinor] = LWC_VERSION.split('.');
|
|
3386
|
-
if (major !== expectedMajor || minor !== expectedMinor) {
|
|
3437
|
+
if (version !== LWC_VERSION) {
|
|
3387
3438
|
warned = true; // only warn once to avoid flooding the console
|
|
3388
3439
|
// stylesheets and templates do not have user-meaningful names, but components do
|
|
3389
3440
|
const friendlyName = type === 'component' ? `${type} ${func.name}` : type;
|
|
@@ -3522,7 +3573,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
3522
3573
|
}
|
|
3523
3574
|
function HTMLBridgeElementFactory(SuperClass, publicProperties, methods, observedFields, proto, hasCustomSuperClass) {
|
|
3524
3575
|
const HTMLBridgeElement = class extends SuperClass {
|
|
3525
|
-
/*LWC compiler
|
|
3576
|
+
/*LWC compiler v7.0.0*/
|
|
3526
3577
|
};
|
|
3527
3578
|
// generating the hash table for attributes to avoid duplicate fields and facilitate validation
|
|
3528
3579
|
// and false positives in case of inheritance.
|
|
@@ -4040,7 +4091,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
4040
4091
|
let swappedStyleMap = /*@__PURE__@*/new WeakMap();
|
|
4041
4092
|
// The important thing here is the weak values – VMs are transient (one per component instance) and should be GC'ed,
|
|
4042
4093
|
// so we don't want to create strong references to them.
|
|
4043
|
-
// The weak keys are kind of useless, because Templates, LightningElementConstructors, and
|
|
4094
|
+
// The weak keys are kind of useless, because Templates, LightningElementConstructors, and Stylesheets are
|
|
4044
4095
|
// never GC'ed. But maybe they will be someday, so we may as well use weak keys too.
|
|
4045
4096
|
// The "pure" annotations are so that Rollup knows for sure it can remove these from prod mode
|
|
4046
4097
|
let activeTemplates = /*@__PURE__@*/new WeakMultiMap();
|
|
@@ -4191,11 +4242,22 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
4191
4242
|
}
|
|
4192
4243
|
function swapComponent(oldComponent, newComponent) {
|
|
4193
4244
|
if (process.env.NODE_ENV !== 'production') {
|
|
4194
|
-
|
|
4245
|
+
const isOldCtorAComponent = isComponentConstructor(oldComponent);
|
|
4246
|
+
const isNewCtorAComponent = isComponentConstructor(newComponent);
|
|
4247
|
+
if (isOldCtorAComponent && isNewCtorAComponent) {
|
|
4195
4248
|
swappedComponentMap.set(oldComponent, newComponent);
|
|
4196
4249
|
return rehydrateHotComponent(oldComponent);
|
|
4250
|
+
} else if (isOldCtorAComponent === false && isNewCtorAComponent === true) {
|
|
4251
|
+
throw new TypeError(`Invalid Component: Attempting to swap a non-component with a component`);
|
|
4252
|
+
} else if (isOldCtorAComponent === true && isNewCtorAComponent === false) {
|
|
4253
|
+
throw new TypeError(`Invalid Component: Attempting to swap a component with a non-component`);
|
|
4197
4254
|
} else {
|
|
4198
|
-
|
|
4255
|
+
// The dev-server relies on the presence of registerComponent() as a way to determine a
|
|
4256
|
+
// component module. However, the compiler cannot definitively add registerComponent()
|
|
4257
|
+
// transformation only to a component constructor. Hence the dev-server may attempt to
|
|
4258
|
+
// hot swap javascript modules that look like a component and should not cause the app
|
|
4259
|
+
// to fail. To allow that, this api ignores such hot swap attempts.
|
|
4260
|
+
return false;
|
|
4199
4261
|
}
|
|
4200
4262
|
}
|
|
4201
4263
|
return false;
|
|
@@ -4261,11 +4323,11 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
4261
4323
|
// But we keep it here just in case.
|
|
4262
4324
|
logError(`Missing ${ctorName}.constructor, ${ctorName} should have a "constructor" property.`);
|
|
4263
4325
|
}
|
|
4264
|
-
if (!isUndefined$1(ctorShadowSupportMode) && ctorShadowSupportMode !==
|
|
4326
|
+
if (!isUndefined$1(ctorShadowSupportMode) && ctorShadowSupportMode !== 'any' && ctorShadowSupportMode !== 'reset' && ctorShadowSupportMode !== 'native') {
|
|
4265
4327
|
logError(`Invalid value for static property shadowSupportMode: '${ctorShadowSupportMode}'`);
|
|
4266
4328
|
}
|
|
4267
4329
|
// TODO [#3971]: Completely remove shadowSupportMode "any"
|
|
4268
|
-
if (ctorShadowSupportMode ===
|
|
4330
|
+
if (ctorShadowSupportMode === 'any') {
|
|
4269
4331
|
logWarn(`Invalid value 'any' for static property shadowSupportMode. 'any' is deprecated and will be removed in a future release--use 'native' instead.`);
|
|
4270
4332
|
}
|
|
4271
4333
|
if (!isUndefined$1(ctorRenderMode) && ctorRenderMode !== 'light' && ctorRenderMode !== 'shadow') {
|
|
@@ -4313,7 +4375,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
4313
4375
|
let shadowSupportMode = superDef.shadowSupportMode;
|
|
4314
4376
|
if (!isUndefined$1(ctorShadowSupportMode)) {
|
|
4315
4377
|
shadowSupportMode = ctorShadowSupportMode;
|
|
4316
|
-
if (isReportingEnabled() && (shadowSupportMode ===
|
|
4378
|
+
if (isReportingEnabled() && (shadowSupportMode === 'any' || shadowSupportMode === 'native')) {
|
|
4317
4379
|
report("ShadowSupportModeUsage" /* ReportingEventId.ShadowSupportModeUsage */, {
|
|
4318
4380
|
tagName: Ctor.name,
|
|
4319
4381
|
mode: shadowSupportMode
|
|
@@ -4428,7 +4490,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
4428
4490
|
propsConfig: EmptyObject,
|
|
4429
4491
|
methods: EmptyObject,
|
|
4430
4492
|
renderMode: 1 /* RenderMode.Shadow */,
|
|
4431
|
-
shadowSupportMode:
|
|
4493
|
+
shadowSupportMode: 'reset',
|
|
4432
4494
|
formAssociated: undefined,
|
|
4433
4495
|
wire: EmptyObject,
|
|
4434
4496
|
bridge: BaseBridgeElement,
|
|
@@ -4459,7 +4521,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
4459
4521
|
publicProps[key] = {
|
|
4460
4522
|
config: propsConfig[key] || 0,
|
|
4461
4523
|
// a property by default
|
|
4462
|
-
type:
|
|
4524
|
+
type: 'any',
|
|
4463
4525
|
// no type inference for public services
|
|
4464
4526
|
attr: htmlPropertyToAttribute(key)
|
|
4465
4527
|
};
|
|
@@ -5555,14 +5617,14 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
5555
5617
|
context
|
|
5556
5618
|
}
|
|
5557
5619
|
} = vnode;
|
|
5558
|
-
if (owner.shadowMode === 1 /* ShadowMode.Synthetic */ && context?.lwc?.dom ===
|
|
5620
|
+
if (owner.shadowMode === 1 /* ShadowMode.Synthetic */ && context?.lwc?.dom === 'manual') {
|
|
5559
5621
|
elm.$domManual$ = true;
|
|
5560
5622
|
}
|
|
5561
5623
|
}
|
|
5562
5624
|
function applyElementRestrictions(elm, vnode) {
|
|
5563
5625
|
if (process.env.NODE_ENV !== 'production') {
|
|
5564
5626
|
const isSynthetic = vnode.owner.shadowMode === 1 /* ShadowMode.Synthetic */;
|
|
5565
|
-
const isPortal = vnode.type === 2 /* VNodeType.Element */ && vnode.data.context?.lwc?.dom ===
|
|
5627
|
+
const isPortal = vnode.type === 2 /* VNodeType.Element */ && vnode.data.context?.lwc?.dom === 'manual';
|
|
5566
5628
|
const isLight = vnode.owner.renderMode === 0 /* RenderMode.Light */;
|
|
5567
5629
|
patchElementWithRestrictions(elm, {
|
|
5568
5630
|
isPortal,
|
|
@@ -6456,6 +6518,35 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
6456
6518
|
function shc(content) {
|
|
6457
6519
|
return sanitizeHtmlContentHook(content);
|
|
6458
6520
|
}
|
|
6521
|
+
/**
|
|
6522
|
+
* [ncls] - Normalize class name attribute.
|
|
6523
|
+
*
|
|
6524
|
+
* Transforms the provided class property value from an object/string into a string the diffing algo
|
|
6525
|
+
* can operate on.
|
|
6526
|
+
*
|
|
6527
|
+
* This implementation is borrowed from Vue:
|
|
6528
|
+
* https://github.com/vuejs/core/blob/e790e1bdd7df7be39e14780529db86e4da47a3db/packages/shared/src/normalizeProp.ts#L63-L82
|
|
6529
|
+
*/
|
|
6530
|
+
function ncls(value) {
|
|
6531
|
+
let res = '';
|
|
6532
|
+
if (isString(value)) {
|
|
6533
|
+
res = value;
|
|
6534
|
+
} else if (isArray$1(value)) {
|
|
6535
|
+
for (let i = 0; i < value.length; i++) {
|
|
6536
|
+
const normalized = ncls(value[i]);
|
|
6537
|
+
if (normalized) {
|
|
6538
|
+
res += normalized + ' ';
|
|
6539
|
+
}
|
|
6540
|
+
}
|
|
6541
|
+
} else if (isObject(value)) {
|
|
6542
|
+
for (const key in value) {
|
|
6543
|
+
if (value[key]) {
|
|
6544
|
+
res += key + ' ';
|
|
6545
|
+
}
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
6548
|
+
return StringTrim.call(res);
|
|
6549
|
+
}
|
|
6459
6550
|
const api = freeze({
|
|
6460
6551
|
s,
|
|
6461
6552
|
h,
|
|
@@ -6476,7 +6567,8 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
6476
6567
|
shc,
|
|
6477
6568
|
ssf,
|
|
6478
6569
|
ddc,
|
|
6479
|
-
sp
|
|
6570
|
+
sp,
|
|
6571
|
+
ncls
|
|
6480
6572
|
});
|
|
6481
6573
|
|
|
6482
6574
|
/*
|
|
@@ -7311,7 +7403,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
7311
7403
|
// ShadowMode.Native implies "not synthetic shadow" which is consistent with how
|
|
7312
7404
|
// everything defaults to native when the synthetic shadow polyfill is unavailable.
|
|
7313
7405
|
shadowMode = 0 /* ShadowMode.Native */;
|
|
7314
|
-
} else if (def.shadowSupportMode ===
|
|
7406
|
+
} else if (def.shadowSupportMode === 'native') {
|
|
7315
7407
|
shadowMode = 0 /* ShadowMode.Native */;
|
|
7316
7408
|
} else {
|
|
7317
7409
|
const shadowAncestor = getNearestShadowAncestor(owner);
|
|
@@ -8142,7 +8234,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
8142
8234
|
const {
|
|
8143
8235
|
context
|
|
8144
8236
|
} = vnode.data;
|
|
8145
|
-
const isDomManual = Boolean(!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom ===
|
|
8237
|
+
const isDomManual = Boolean(!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === 'manual');
|
|
8146
8238
|
if (isDomManual) {
|
|
8147
8239
|
// it may be that this element has lwc:inner-html, we need to diff and in case are the same,
|
|
8148
8240
|
// remove the innerHTML from props so it reuses the existing dom elements.
|
|
@@ -8563,6 +8655,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
8563
8655
|
if (isUndefined$1(parts)) {
|
|
8564
8656
|
return true;
|
|
8565
8657
|
}
|
|
8658
|
+
const shouldValidateAttr = (data, attrName) => attrName in data;
|
|
8566
8659
|
// The validation here relies on 2 key invariants:
|
|
8567
8660
|
// 1. It's never the case that `parts` is undefined on the server but defined on the client (or vice-versa)
|
|
8568
8661
|
// 2. It's never the case that `parts` has one length on the server but another on the client
|
|
@@ -8578,8 +8671,11 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
8578
8671
|
data
|
|
8579
8672
|
} = part;
|
|
8580
8673
|
const hasMatchingAttrs = validateAttrs(vnode, elm, data, renderer, () => true);
|
|
8581
|
-
|
|
8582
|
-
|
|
8674
|
+
// Explicitly skip hydration validation when static parts don't contain `style` or `className`.
|
|
8675
|
+
// This means the style/class attributes are either static or don't exist on the element and
|
|
8676
|
+
// cannot be affected by hydration.
|
|
8677
|
+
const hasMatchingStyleAttr = shouldValidateAttr(data, 'style') ? validateStyleAttr(vnode, elm, data, renderer) : true;
|
|
8678
|
+
const hasMatchingClass = shouldValidateAttr(data, 'className') ? validateClassAttr(vnode, elm, data, renderer) : true;
|
|
8583
8679
|
if (isFalse(hasMatchingAttrs && hasMatchingStyleAttr && hasMatchingClass)) {
|
|
8584
8680
|
return false;
|
|
8585
8681
|
}
|
|
@@ -8849,7 +8945,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
8849
8945
|
}
|
|
8850
8946
|
return getReadOnlyProxy(obj);
|
|
8851
8947
|
}
|
|
8852
|
-
/** version:
|
|
8948
|
+
/** version: 7.0.0 */
|
|
8853
8949
|
|
|
8854
8950
|
/*
|
|
8855
8951
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -9120,36 +9216,30 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9120
9216
|
// Do we want to support this? Throw an error? Currently for backwards compat it's a no-op.
|
|
9121
9217
|
}
|
|
9122
9218
|
connectedCallback() {
|
|
9219
|
+
// native `connectedCallback`/`disconnectedCallback` are only enabled in native lifecycle mode
|
|
9123
9220
|
if (isTrue(nativeLifecycleElementsToUpgradedByLWC.get(this))) {
|
|
9124
9221
|
connectRootElement(this);
|
|
9125
9222
|
}
|
|
9126
9223
|
}
|
|
9127
9224
|
disconnectedCallback() {
|
|
9225
|
+
// native `connectedCallback`/`disconnectedCallback` are only enabled in native lifecycle mode
|
|
9128
9226
|
if (isTrue(nativeLifecycleElementsToUpgradedByLWC.get(this))) {
|
|
9129
9227
|
disconnectRootElement(this);
|
|
9130
9228
|
}
|
|
9131
9229
|
}
|
|
9132
9230
|
formAssociatedCallback(form) {
|
|
9133
|
-
|
|
9134
|
-
runFormAssociatedCallback(this, form);
|
|
9135
|
-
}
|
|
9231
|
+
runFormAssociatedCallback(this, form);
|
|
9136
9232
|
}
|
|
9137
9233
|
formDisabledCallback(disabled) {
|
|
9138
|
-
|
|
9139
|
-
runFormDisabledCallback(this, disabled);
|
|
9140
|
-
}
|
|
9234
|
+
runFormDisabledCallback(this, disabled);
|
|
9141
9235
|
}
|
|
9142
9236
|
formResetCallback() {
|
|
9143
|
-
|
|
9144
|
-
runFormResetCallback(this);
|
|
9145
|
-
}
|
|
9237
|
+
runFormResetCallback(this);
|
|
9146
9238
|
}
|
|
9147
9239
|
formStateRestoreCallback(state, reason) {
|
|
9148
|
-
|
|
9149
|
-
runFormStateRestoreCallback(this, state, reason);
|
|
9150
|
-
}
|
|
9240
|
+
runFormStateRestoreCallback(this, state, reason);
|
|
9151
9241
|
}
|
|
9152
|
-
/*LWC compiler
|
|
9242
|
+
/*LWC compiler v7.0.0*/
|
|
9153
9243
|
};
|
|
9154
9244
|
BaseHTMLElement = HTMLElement; // cache to track if it changes
|
|
9155
9245
|
}
|
|
@@ -9164,7 +9254,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9164
9254
|
// Using a BaseUpgradableConstructor superclass here is a perf optimization to avoid
|
|
9165
9255
|
// re-defining the same logic (connectedCallback, disconnectedCallback, etc.) over and over.
|
|
9166
9256
|
class UpgradableConstructor extends BaseUpgradableConstructor {
|
|
9167
|
-
/*LWC compiler
|
|
9257
|
+
/*LWC compiler v7.0.0*/
|
|
9168
9258
|
}
|
|
9169
9259
|
if (isFormAssociated) {
|
|
9170
9260
|
// Perf optimization - the vast majority of components have formAssociated=false,
|
|
@@ -9287,7 +9377,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9287
9377
|
function isNull(obj) {
|
|
9288
9378
|
return obj === null;
|
|
9289
9379
|
}
|
|
9290
|
-
/** version:
|
|
9380
|
+
/** version: 7.0.0 */
|
|
9291
9381
|
|
|
9292
9382
|
/*
|
|
9293
9383
|
* Copyright (c) 2023, salesforce.com, inc.
|
|
@@ -9307,7 +9397,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9307
9397
|
this.setNewContext = setNewContext;
|
|
9308
9398
|
this.setDisconnectedCallback = setDisconnectedCallback;
|
|
9309
9399
|
}
|
|
9310
|
-
/*LWC compiler
|
|
9400
|
+
/*LWC compiler v7.0.0*/
|
|
9311
9401
|
}
|
|
9312
9402
|
function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
|
|
9313
9403
|
dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
|
|
@@ -9459,6 +9549,9 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9459
9549
|
function getTagName(elm) {
|
|
9460
9550
|
return elm.tagName;
|
|
9461
9551
|
}
|
|
9552
|
+
function getStyle(elm) {
|
|
9553
|
+
return elm.style;
|
|
9554
|
+
}
|
|
9462
9555
|
function attachInternals(elm) {
|
|
9463
9556
|
return attachInternalsFunc.call(elm);
|
|
9464
9557
|
}
|
|
@@ -9491,6 +9584,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9491
9584
|
exports.getLastElementChild = getLastElementChild;
|
|
9492
9585
|
exports.getParentNode = getParentNode;
|
|
9493
9586
|
exports.getProperty = getProperty;
|
|
9587
|
+
exports.getStyle = getStyle;
|
|
9494
9588
|
exports.getTagName = getTagName;
|
|
9495
9589
|
exports.insert = insert;
|
|
9496
9590
|
exports.isConnected = isConnected;
|
|
@@ -9721,7 +9815,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9721
9815
|
formStateRestoreCallback(state, reason) {
|
|
9722
9816
|
runFormStateRestoreCallback(this, state, reason);
|
|
9723
9817
|
}
|
|
9724
|
-
/*LWC compiler
|
|
9818
|
+
/*LWC compiler v7.0.0*/
|
|
9725
9819
|
}, _a.observedAttributes = observedAttributes,
|
|
9726
9820
|
// Note CustomElementConstructor is not upgraded by LWC and inherits directly from HTMLElement which means it calls the native
|
|
9727
9821
|
// attachInternals API.
|
|
@@ -9801,6 +9895,11 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9801
9895
|
* difference that in the options, you can pass the `is` property set to a Constructor instead of
|
|
9802
9896
|
* just a string value. The intent is to allow the creation of an element controlled by LWC without
|
|
9803
9897
|
* having to register the element as a custom element.
|
|
9898
|
+
*
|
|
9899
|
+
* NOTE: The returned type incorrectly includes _all_ properties defined on the component class,
|
|
9900
|
+
* even though the runtime object only uses those decorated with `@api`. This is due to a
|
|
9901
|
+
* limitation of TypeScript. To avoid inferring incorrect properties, provide an explicit generic
|
|
9902
|
+
* parameter, e.g. `createElement<typeof LightningElement>('x-foo', { is: FooCtor })`.
|
|
9804
9903
|
* @param sel The tagname of the element to create
|
|
9805
9904
|
* @param options Control the behavior of the created element
|
|
9806
9905
|
* @param options.is The LWC component that the element should be
|
|
@@ -9961,7 +10060,7 @@ LWR.define('lwc/v/6_6_6', ['exports'], (function (exports) { 'use strict';
|
|
|
9961
10060
|
});
|
|
9962
10061
|
});
|
|
9963
10062
|
}
|
|
9964
|
-
/** version:
|
|
10063
|
+
/** version: 7.0.0 */
|
|
9965
10064
|
|
|
9966
10065
|
exports.LightningElement = LightningElement;
|
|
9967
10066
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
LWR.define('lwr/everywhereAmd/v/0_13_0-
|
|
1
|
+
LWR.define('lwr/everywhereAmd/v/0_13_0-alpha_20', ['exports', 'lwr/vault/v/0_13_0-alpha_20'], (function (exports, _0_13_0Alpha_20) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// IMPORTANT: Do not add any static imports to this file that are not bundled with the amd-client
|
|
4
4
|
|
|
5
5
|
// Do an OAuthed fetch
|
|
6
6
|
async function authFetch(url, accept = 'javascript') {
|
|
7
|
-
const authInfo =
|
|
7
|
+
const authInfo = _0_13_0Alpha_20.getAuthInfo();
|
|
8
8
|
if (authInfo) {
|
|
9
9
|
return fetch(url, {
|
|
10
10
|
headers: {
|
|
@@ -53,7 +53,7 @@ LWR.define('lwr/everywhereAmd/v/0_13_0-alpha_19', ['exports', 'lwr/vault/v/0_13_
|
|
|
53
53
|
function authenticate(authInfo) {
|
|
54
54
|
// Put OAuth info into the vault
|
|
55
55
|
if (authInfo) {
|
|
56
|
-
|
|
56
|
+
_0_13_0Alpha_20.setAuthInfo(authInfo);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|