@lwrjs/everywhere 0.9.9-alpha.8 → 0.10.0-alpha.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.
- package/README.md +1 -6
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/9fa50240fcef7e2e2f0a984c64618266/config.js +10 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_0/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +18 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/2_38_1/s/8cf6b94d9c0b398c70c97fdca2759caa/lwc.js +8934 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/0_10_0-alpha_0/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js +66 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/0_10_0-alpha_0/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js +97 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_9_9-alpha_8/s/b234adc35388b40b104bed6bf73710c1 → 0_10_0-alpha_0/s/93913c303e4da43e040d25afbea8865a}/lwr_loader.js +362 -137
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/0_10_0-alpha_0/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js +66 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/0_10_0-alpha_0/s/e25f3b0b8b5c096acebf847d0a83ea62/lwr_profiler.js +68 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/0_10_0-alpha_0/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +21 -0
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_9_9-alpha_8 → 0_10_0-alpha_0/lwr-error-shim.js} +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/0_10_0-alpha_0/lwr-loader-shim.bundle.js +1547 -0
- package/build/assets/amd/lwr-everywhere-debug.js +39 -27
- package/build/assets/amd/lwr-everywhere-min.js +1 -1
- package/build/assets/amd/lwr-everywhere.js +39 -27
- package/build/assets/core/lwr-everywhere-debug.js +36 -24
- package/build/assets/core/lwr-everywhere-min.js +1 -1
- package/build/assets/core/lwr-everywhere.js +36 -24
- 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/@salesforce/lds-default-luvio/lds-default-luvio.js +11 -7
- package/build/modules/lwr/everywhere/everywhere.js +6 -7
- package/build/modules/lwr/everywhereAmd/everywhereAmd.js +9 -11
- package/build/modules/lwr/everywhereEsm/everywhereEsm.js +1 -2
- package/build/modules/lwr/host/host.js +23 -27
- package/build/modules/lwr/setupLDS/network.js +9 -17
- package/build/modules/lwr/setupLDS/setupLDS.js +6 -4
- package/build/modules/lwr/setupNodeLDS/network.js +9 -17
- package/build/modules/lwr/setupNodeLDS/setupNodeLDS.js +3 -1
- package/build/modules/lwr/vault/vault.js +3 -1
- package/package.json +11 -8
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/5a9af800813ae5f06687a5ebe9c0396e/config.js +0 -10
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_9-alpha_8/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/2_17_0/s/60dae7a83431c35c02c87ca8aaaa6044/lwc.js +0 -6244
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/0_9_9-alpha_8/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js +0 -48
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/0_9_9-alpha_8/s/6258bcb20cc2d5d6a9f3c5a6f9d0acaf/lwr_init.js +0 -58
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/0_9_9-alpha_8/s/dfbc827104d50ff7d16b59c9d0e06aca/lwr_metrics.js +0 -56
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/0_9_9-alpha_8/s/5a10236d8c52bc9f6dee22875cd7016d/lwr_profiler.js +0 -51
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/0_9_9-alpha_8/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +0 -13
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.js/v/0_9_9-alpha_8 +0 -311
- package/build/__generated_site_amd_modules__/en-US/index.html +0 -26
- package/build/__generated_site_amd_modules__/index.html +0 -26
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
LWR.define('lwr/metrics/v/0_10_0-alpha_0', ['exports'], function (exports) { 'use strict';
|
|
2
|
+
|
|
3
|
+
// Bootstrap / shim
|
|
4
|
+
const BOOTSTRAP_PREFIX = 'lwr.bootstrap.';
|
|
5
|
+
const BOOTSTRAP_END = `${BOOTSTRAP_PREFIX}end`;
|
|
6
|
+
const BOOTSTRAP_ERROR = `${BOOTSTRAP_PREFIX}error`;
|
|
7
|
+
const BOOTSTRAP_ERROR_COUNT = `${BOOTSTRAP_ERROR}.count`;
|
|
8
|
+
const BOOTSTRAP_DURATION = `${BOOTSTRAP_PREFIX}duration`;
|
|
9
|
+
|
|
10
|
+
// Loader: modules
|
|
11
|
+
const LOADER_PREFIX = 'lwr.loader.';
|
|
12
|
+
const MODULE_DEFINE = `${LOADER_PREFIX}module.define`;
|
|
13
|
+
const MODULE_DEFINE_COUNT = `${MODULE_DEFINE}.count`;
|
|
14
|
+
const MODULE_FETCH = `${LOADER_PREFIX}module.fetch`;
|
|
15
|
+
const MODULE_FETCH_COUNT = `${MODULE_FETCH}.count`;
|
|
16
|
+
const MODULE_FETCH_DURATION = `${MODULE_FETCH}.duration`;
|
|
17
|
+
const MODULE_ERROR = `${LOADER_PREFIX}module.error`;
|
|
18
|
+
const MODULE_ERROR_COUNT = `${MODULE_ERROR}.count`;
|
|
19
|
+
|
|
20
|
+
// Loader: mappings
|
|
21
|
+
const MAPPINGS_FETCH = `${LOADER_PREFIX}mappings.fetch`;
|
|
22
|
+
const MAPPINGS_FETCH_COUNT = `${MAPPINGS_FETCH}.count`;
|
|
23
|
+
const MAPPINGS_FETCH_DURATION = `${MAPPINGS_FETCH}.duration`;
|
|
24
|
+
const MAPPINGS_ERROR = `${LOADER_PREFIX}mappings.error`;
|
|
25
|
+
const MAPPINGS_ERROR_COUNT = `${MAPPINGS_ERROR}.count`;
|
|
26
|
+
|
|
27
|
+
// Router
|
|
28
|
+
const ROUTER_PREFIX = 'lwr.router.';
|
|
29
|
+
const ROUTER_NAV = `${ROUTER_PREFIX}navigate`;
|
|
30
|
+
const ROUTER_NAV_COUNT = `${ROUTER_NAV}.count`;
|
|
31
|
+
const ROUTER_NAV_DURATION = `${ROUTER_NAV}.duration`;
|
|
32
|
+
const ROUTER_VIEW = `${ROUTER_PREFIX}view`;
|
|
33
|
+
const ROUTER_VIEW_DURATION = `${ROUTER_VIEW}.duration`;
|
|
34
|
+
const ROUTER_ERROR = `${ROUTER_PREFIX}error`;
|
|
35
|
+
const ROUTER_ERROR_COUNT = `${ROUTER_ERROR}.count`;
|
|
36
|
+
|
|
37
|
+
exports.BOOTSTRAP_DURATION = BOOTSTRAP_DURATION;
|
|
38
|
+
exports.BOOTSTRAP_END = BOOTSTRAP_END;
|
|
39
|
+
exports.BOOTSTRAP_ERROR = BOOTSTRAP_ERROR;
|
|
40
|
+
exports.BOOTSTRAP_ERROR_COUNT = BOOTSTRAP_ERROR_COUNT;
|
|
41
|
+
exports.BOOTSTRAP_PREFIX = BOOTSTRAP_PREFIX;
|
|
42
|
+
exports.LOADER_PREFIX = LOADER_PREFIX;
|
|
43
|
+
exports.MAPPINGS_ERROR = MAPPINGS_ERROR;
|
|
44
|
+
exports.MAPPINGS_ERROR_COUNT = MAPPINGS_ERROR_COUNT;
|
|
45
|
+
exports.MAPPINGS_FETCH = MAPPINGS_FETCH;
|
|
46
|
+
exports.MAPPINGS_FETCH_COUNT = MAPPINGS_FETCH_COUNT;
|
|
47
|
+
exports.MAPPINGS_FETCH_DURATION = MAPPINGS_FETCH_DURATION;
|
|
48
|
+
exports.MODULE_DEFINE = MODULE_DEFINE;
|
|
49
|
+
exports.MODULE_DEFINE_COUNT = MODULE_DEFINE_COUNT;
|
|
50
|
+
exports.MODULE_ERROR = MODULE_ERROR;
|
|
51
|
+
exports.MODULE_ERROR_COUNT = MODULE_ERROR_COUNT;
|
|
52
|
+
exports.MODULE_FETCH = MODULE_FETCH;
|
|
53
|
+
exports.MODULE_FETCH_COUNT = MODULE_FETCH_COUNT;
|
|
54
|
+
exports.MODULE_FETCH_DURATION = MODULE_FETCH_DURATION;
|
|
55
|
+
exports.ROUTER_ERROR = ROUTER_ERROR;
|
|
56
|
+
exports.ROUTER_ERROR_COUNT = ROUTER_ERROR_COUNT;
|
|
57
|
+
exports.ROUTER_NAV = ROUTER_NAV;
|
|
58
|
+
exports.ROUTER_NAV_COUNT = ROUTER_NAV_COUNT;
|
|
59
|
+
exports.ROUTER_NAV_DURATION = ROUTER_NAV_DURATION;
|
|
60
|
+
exports.ROUTER_PREFIX = ROUTER_PREFIX;
|
|
61
|
+
exports.ROUTER_VIEW = ROUTER_VIEW;
|
|
62
|
+
exports.ROUTER_VIEW_DURATION = ROUTER_VIEW_DURATION;
|
|
63
|
+
|
|
64
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
65
|
+
|
|
66
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
LWR.define('lwr/profiler/v/0_10_0-alpha_0', ['exports'], function (exports) { 'use strict';
|
|
2
|
+
|
|
3
|
+
var Phase;
|
|
4
|
+
(function (Phase) {
|
|
5
|
+
Phase[Phase["Start"] = 0] = "Start";
|
|
6
|
+
Phase[Phase["End"] = 1] = "End";
|
|
7
|
+
})(Phase || (Phase = {}));
|
|
8
|
+
// Attach a custom dispatcher
|
|
9
|
+
let customDispatcher;
|
|
10
|
+
function attachDispatcher(dispatcher) {
|
|
11
|
+
customDispatcher = dispatcher;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Check if the Performance API is available
|
|
15
|
+
// e.g. JSDom (used in Jest) doesn't implement these
|
|
16
|
+
const perf = globalThis.performance;
|
|
17
|
+
const isPerfSupported = typeof perf !== 'undefined' && typeof perf.mark === 'function' && typeof perf.clearMarks === 'function' && typeof perf.measure === 'function' && typeof perf.clearMeasures === 'function';
|
|
18
|
+
|
|
19
|
+
// For marking request metrics
|
|
20
|
+
// Fallback to the Performance API if there is no custom dispatcher
|
|
21
|
+
function logOperationStart({
|
|
22
|
+
id,
|
|
23
|
+
specifier
|
|
24
|
+
}) {
|
|
25
|
+
if (customDispatcher) {
|
|
26
|
+
customDispatcher({
|
|
27
|
+
id,
|
|
28
|
+
phase: Phase.Start,
|
|
29
|
+
specifier
|
|
30
|
+
});
|
|
31
|
+
} else if (isPerfSupported) {
|
|
32
|
+
perf.mark(id + (specifier ? `.${specifier}` : ''));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// For measuring duration metrics
|
|
37
|
+
// Fallback to the Performance API if there is no custom dispatcher
|
|
38
|
+
/* istanbul ignore next */
|
|
39
|
+
function logOperationEnd({
|
|
40
|
+
id,
|
|
41
|
+
specifier
|
|
42
|
+
}) {
|
|
43
|
+
if (customDispatcher) {
|
|
44
|
+
customDispatcher({
|
|
45
|
+
id,
|
|
46
|
+
phase: Phase.End,
|
|
47
|
+
specifier
|
|
48
|
+
});
|
|
49
|
+
} else if (isPerfSupported) {
|
|
50
|
+
const suffix = specifier ? `.${specifier}` : '';
|
|
51
|
+
const markName = id + suffix;
|
|
52
|
+
const measureName = `${id}.duration${suffix}`;
|
|
53
|
+
perf.measure(measureName, markName);
|
|
54
|
+
|
|
55
|
+
// Clear the created mark and measure to avoid filling the performance entry buffer
|
|
56
|
+
// Even if they get deleted, existing PerformanceObservers preserve copies of the entries
|
|
57
|
+
perf.clearMarks(markName);
|
|
58
|
+
perf.clearMeasures(measureName);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
exports.attachDispatcher = attachDispatcher;
|
|
63
|
+
exports.logOperationEnd = logOperationEnd;
|
|
64
|
+
exports.logOperationStart = logOperationStart;
|
|
65
|
+
|
|
66
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
67
|
+
|
|
68
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
LWR.define('lwr/vault/v/0_10_0-alpha_0', ['exports'], function (exports) { 'use strict';
|
|
2
|
+
|
|
3
|
+
// Credential vault for storing setters and subscribers for OAuth info
|
|
4
|
+
// This module is a SINGLETON and must be excluded from ESM bundling
|
|
5
|
+
|
|
6
|
+
let authInfo;
|
|
7
|
+
|
|
8
|
+
// Get and set the OAuth info
|
|
9
|
+
function getAuthInfo() {
|
|
10
|
+
return authInfo;
|
|
11
|
+
}
|
|
12
|
+
function setAuthInfo(ai) {
|
|
13
|
+
authInfo = ai;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.getAuthInfo = getAuthInfo;
|
|
17
|
+
exports.setAuthInfo = setAuthInfo;
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
20
|
+
|
|
21
|
+
});
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6
6
|
*/
|
|
7
|
-
/* LWR Error Shim v0.
|
|
7
|
+
/* LWR Error Shim v0.10.0-alpha.0 */
|
|
8
8
|
!function(){"use strict";if(!(globalThis.LWR&&globalThis.LWR.define)){const o=new Error("The LWR application failed to bootstrap");if(!globalThis.LWR||!globalThis.LWR.onError)throw o;globalThis.LWR.onError(o)}}();
|