@lwrjs/everywhere 0.9.0-alpha.0 → 0.9.0-alpha.10

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 (51) hide show
  1. package/README.md +1 -6
  2. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/690bb813af001b4134ce968b8713bd34/config.js +10 -0
  3. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_10/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +14 -0
  4. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{2_17_0/s/60dae7a83431c35c02c87ca8aaaa6044 → 2_33_0/s/90a5f16131da45cef1653112862ca9dc}/lwc.js +1907 -1061
  5. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_9_0-alpha_0/s/e66806169480601930ec9cfca972815e → 0_9_0-alpha_10/s/c538071acf5bde58e816967a14c465c3}/lwr_everywhereAmd.js +3 -3
  6. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_9_0-alpha_0 → 0_9_0-alpha_10}/s/6258bcb20cc2d5d6a9f3c5a6f9d0acaf/lwr_init.js +4 -4
  7. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_9_0-alpha_0/s/8ad94c326aceb977fd21980215398f4b → 0_9_0-alpha_10/s/2c5c9415efc211dbce3448c2096d3657}/lwr_loader.js +5 -3
  8. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_9_0-alpha_0 → 0_9_0-alpha_10}/s/dfbc827104d50ff7d16b59c9d0e06aca/lwr_metrics.js +1 -1
  9. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_9_0-alpha_0 → 0_9_0-alpha_10}/s/5a10236d8c52bc9f6dee22875cd7016d/lwr_profiler.js +1 -1
  10. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_9_0-alpha_0/s/6cbce1f9b7e815ee862b26f37ff4c76e → 0_9_0-alpha_10/s/c92abd8c1fec2d7eff62e4b097abbe14}/lwr_vault.js +1 -1
  11. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_9_0-alpha_0 → 0_9_0-alpha_10} +1 -1
  12. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.js/v/{0_9_0-alpha_0 → 0_9_0-alpha_10} +5 -5
  13. package/build/amd-client.js +1 -2
  14. package/build/assets/amd/lwr-everywhere-debug.js +19 -19
  15. package/build/assets/amd/lwr-everywhere-min.js +1 -1
  16. package/build/assets/amd/lwr-everywhere.js +19 -19
  17. package/build/assets/core/lwr-everywhere-debug.js +15 -15
  18. package/build/assets/core/lwr-everywhere-min.js +1 -1
  19. package/build/assets/core/lwr-everywhere.js +15 -15
  20. package/build/assets/esm/lwr-everywhere-debug.js +4 -7
  21. package/build/assets/esm/lwr-everywhere-min.js +1 -1
  22. package/build/assets/esm/lwr-everywhere.js +4 -7
  23. package/build/esm-client.js +1 -2
  24. package/build/generate.js +4 -3
  25. package/build/index.js +2 -2
  26. package/build/modules/@salesforce/lds-default-luvio/lds-default-luvio.d.ts +24 -0
  27. package/build/modules/@salesforce/lds-default-luvio/lds-default-luvio.js +56 -0
  28. package/build/modules/lwr/everywhere/everywhere.d.ts +1 -1
  29. package/build/modules/lwr/everywhere/everywhere.js +4 -1
  30. package/build/modules/lwr/everywhereAmd/everywhereAmd.d.ts +1 -1
  31. package/build/modules/lwr/setupLDS/network.d.ts +3 -0
  32. package/build/modules/lwr/setupLDS/network.js +96 -0
  33. package/build/modules/lwr/setupLDS/setupLDS.d.ts +2 -0
  34. package/build/modules/lwr/setupLDS/setupLDS.js +10 -0
  35. package/build/modules/lwr/setupNodeLDS/network.d.ts +3 -0
  36. package/build/modules/lwr/setupNodeLDS/network.js +96 -0
  37. package/build/modules/lwr/setupNodeLDS/setupNodeLDS.d.ts +2 -0
  38. package/build/modules/lwr/setupNodeLDS/setupNodeLDS.js +12 -0
  39. package/build/modules/lwr/vault/vault.d.ts +1 -1
  40. package/build/utils.d.ts +1 -8
  41. package/build/utils.js +1 -4
  42. package/package.json +13 -6
  43. package/src/amd-client.ts +1 -2
  44. package/src/esm-client.ts +2 -3
  45. package/src/generate.ts +4 -3
  46. package/src/index.ts +2 -2
  47. package/src/utils.ts +2 -13
  48. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/63c867e9664b3c9756ca7ddba946b950/config.js +0 -10
  49. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_0/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
  50. package/build/__generated_site_amd_modules__/en-US/index.html +0 -26
  51. package/build/__generated_site_amd_modules__/index.html +0 -26
@@ -0,0 +1,96 @@
1
+ import { getAuthInfo } from 'lwr/vault';
2
+ /**
3
+ * Authenticated UI API Luvio Network Adapter
4
+ * See LDS error handling: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.data_error
5
+ */
6
+
7
+ class RecordError extends Error {
8
+ constructor(message, status = 404) {
9
+ super(message);
10
+ this.body = {
11
+ message
12
+ };
13
+ this.ok = false;
14
+ this.status = status;
15
+ this.statusText = message;
16
+ }
17
+
18
+ } // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+
20
+
21
+ export async function networkAdapter(req) {
22
+ const authInfo = getAuthInfo();
23
+
24
+ if (authInfo) {
25
+ const {
26
+ instance_url,
27
+ access_token
28
+ } = authInfo;
29
+ const {
30
+ baseUri,
31
+ basePath,
32
+ body,
33
+ queryParams,
34
+ method,
35
+ headers
36
+ } = req;
37
+ const path = `${instance_url}${baseUri}${basePath}${generateQueryString(queryParams)}`;
38
+
39
+ try {
40
+ const res = await fetch(path, {
41
+ method: method.toUpperCase(),
42
+ headers: access_token ? generateHeaders({ ...headers,
43
+ Authorization: `Bearer ${access_token}`
44
+ }) : generateHeaders(headers),
45
+ body: body === null ? null : JSON.stringify(body)
46
+ });
47
+
48
+ if (res.ok) {
49
+ return {
50
+ body: res.status === 204 ? undefined : await res.json(),
51
+ // HTTP 204 = No Content
52
+ status: res.status,
53
+ statusText: res.statusText,
54
+ ok: res.ok,
55
+ headers: {}
56
+ };
57
+ } // Request goes through but returns HTTP errors
58
+
59
+
60
+ throw new RecordError(res.statusText, res.status);
61
+ } catch (e) {
62
+ // Return the failure; no response status => 401
63
+ const error = e;
64
+ throw new RecordError(error.message, error.status >= 0 ? error.status : 401);
65
+ }
66
+ } else {
67
+ // There is no authentication data available to make this request
68
+ throw new RecordError('You are not authenticated.', 401);
69
+ }
70
+ } // eslint-disable-next-line @typescript-eslint/no-explicit-any
71
+
72
+ function generateQueryString(params) {
73
+ const queryStrings = [];
74
+
75
+ for (const key of Object.keys(params)) {
76
+ const value = Array.isArray(params[key]) ? params[key].join(',') : params[key];
77
+
78
+ if (value) {
79
+ queryStrings.push(`${key}=${value}`);
80
+ }
81
+ }
82
+
83
+ return queryStrings.length > 0 ? `?${queryStrings.join('&')}` : '';
84
+ }
85
+
86
+ function generateHeaders(headers) {
87
+ const fetchHeaders = new globalThis.Headers();
88
+
89
+ for (const key of Object.keys(headers)) {
90
+ fetchHeaders.set(key, headers[key]);
91
+ }
92
+
93
+ fetchHeaders.set('Accept', 'application/json');
94
+ fetchHeaders.set('Content-Type', 'application/json');
95
+ return fetchHeaders;
96
+ }
@@ -0,0 +1,2 @@
1
+ export default function (): void;
2
+ //# sourceMappingURL=setupNodeLDS.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { Luvio, Store, Environment } from '@luvio/engine';
2
+ import { setDefaultLuvio } from '@salesforce/lds-default-luvio';
3
+ import { networkAdapter } from './network'; // This module is used with LWR Node.js apps, it's aliased as "lwr/setupLDS" in package.json
4
+ // Set the default Luvio instance for LWR Everywhere
5
+ // It uses a fetch-based "web" network adapter with OAuth headers
6
+
7
+ export default function () {
8
+ const luvio = new Luvio(new Environment(new Store(), networkAdapter));
9
+ setDefaultLuvio({
10
+ luvio
11
+ });
12
+ }
@@ -1,5 +1,5 @@
1
1
  declare type AuthInfo = {
2
- access_token: string;
2
+ access_token?: string;
3
3
  instance_url: string;
4
4
  };
5
5
  export declare function getAuthInfo(): AuthInfo | undefined;
package/build/utils.d.ts CHANGED
@@ -11,12 +11,5 @@ export interface EverywhereClientBootstrapOptions {
11
11
  bundle?: boolean;
12
12
  debug?: boolean;
13
13
  }
14
- interface EverywhereClientBootstrap {
15
- options: {
16
- NODE_ENV: 'production' | 'development';
17
- };
18
- config: ClientBootstrapConfig;
19
- }
20
- export declare function getConfiguration(options: EverywhereClientBootstrapOptions): EverywhereClientBootstrap;
21
- export {};
14
+ export declare function getConfiguration(options: EverywhereClientBootstrapOptions): ClientBootstrapConfig;
22
15
  //# sourceMappingURL=utils.d.ts.map
package/build/utils.js CHANGED
@@ -32,9 +32,6 @@ export function getConfiguration(options) {
32
32
  if (debug && config.endpoints) {
33
33
  config.endpoints.modifiers = { debug: 'true' };
34
34
  }
35
- return {
36
- options: { NODE_ENV: debug ? 'development' : 'production' },
37
- config, // globalThis.LWR
38
- };
35
+ return config;
39
36
  }
40
37
  //# sourceMappingURL=utils.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lwrjs/everywhere",
3
3
  "description": "LWR Everywhere",
4
- "version": "0.9.0-alpha.0",
4
+ "version": "0.9.0-alpha.10",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -48,24 +48,31 @@
48
48
  "rollup-plugin-typescript": "^1.0.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@lwc/module-resolver": "2.17.0",
52
- "@lwrjs/loader": "0.9.0-alpha.0",
53
- "@lwrjs/router": "0.9.0-alpha.0",
54
- "@lwrjs/types": "0.9.0-alpha.0"
51
+ "@luvio/engine": "0.47.5",
52
+ "@lwc/module-resolver": "2.33.0",
53
+ "@lwrjs/loader": "0.9.0-alpha.10",
54
+ "@lwrjs/router": "0.9.0-alpha.10",
55
+ "@lwrjs/types": "0.9.0-alpha.10"
55
56
  },
56
57
  "lwc": {
57
58
  "modules": [
58
59
  {
59
60
  "dir": "build/modules"
61
+ },
62
+ {
63
+ "name": "lwr/setupLDS",
64
+ "path": "build/modules/lwr/setupNodeLDS/setupNodeLDS.js"
60
65
  }
61
66
  ],
62
67
  "expose": [
68
+ "@salesforce/lds-default-luvio",
63
69
  "lwr/everywhere",
64
70
  "lwr/everywhereAmd",
65
71
  "lwr/everywhereEsm",
66
72
  "lwr/host",
73
+ "lwr/setupLDS",
67
74
  "lwr/vault"
68
75
  ]
69
76
  },
70
- "gitHead": "6890d8619b295a49ee1ed8253a372337d83863be"
77
+ "gitHead": "ecbf031157dd87d2b1a3d528b7fae8f9142eba7e"
71
78
  }
package/src/amd-client.ts CHANGED
@@ -10,8 +10,7 @@ import { Loader } from 'lwr/loader';
10
10
  // Process the LWR Client Bootstrap Config
11
11
  const configOptions = '$REPLACE_CLIENT_BOOTSTRAP_OPTIONS$' as unknown as EverywhereClientBootstrapOptions;
12
12
  const configuration = getConfiguration(configOptions);
13
- const { bootstrapModule, endpoints, baseUrl, imports, index } = configuration.config;
14
- (globalThis as GlobalThis).process = { env: { NODE_ENV: configuration.options.NODE_ENV } }; // Required by LWC
13
+ const { bootstrapModule, endpoints, baseUrl, imports, index } = configuration;
15
14
 
16
15
  // Initialize the AMD loader (its code is bundled into the LWR Everywhere module)
17
16
  const loader = new Loader({ endpoints, baseUrl });
package/src/esm-client.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EverywhereClientBootstrapOptions, GlobalThis } from './utils';
1
+ import type { EverywhereClientBootstrapOptions } from './utils';
2
2
  import { getConfiguration } from './utils';
3
3
 
4
4
  /** LWR Everywhere module for ESM **/
@@ -6,8 +6,7 @@ import { getConfiguration } from './utils';
6
6
  // Process the LWR Client Bootstrap Config
7
7
  const configOptions = '$REPLACE_CLIENT_BOOTSTRAP_OPTIONS$' as unknown as EverywhereClientBootstrapOptions;
8
8
  const configuration = getConfiguration(configOptions);
9
- const { bootstrapModule, imports, index = {}, importMappings, endpoints } = configuration.config;
10
- (globalThis as GlobalThis).process = { env: { NODE_ENV: configuration.options.NODE_ENV } }; // Required by LWC
9
+ const { bootstrapModule, imports, index = {}, importMappings, endpoints } = configuration;
11
10
 
12
11
  // Set up the ESM loader; Export the LWRE APIs
13
12
  const { initEsm, authenticate, createComponent } = await import(
package/src/generate.ts CHANGED
@@ -13,7 +13,7 @@ import { rootPath, version } from '@lwrjs/everywhere/package';
13
13
 
14
14
  const CORE_VERSION = '0_0_1';
15
15
  const NPM_VERSION = version.replace(/\./g, '_');
16
- const NPM2CORE_REGEX = new RegExp(`lwr/([a-zA-Z#_.]+)/v/${NPM_VERSION}`, 'g');
16
+ const NPM2CORE_REGEX = new RegExp(`/v/${NPM_VERSION}`, 'g');
17
17
 
18
18
  /* istanbul ignore next */
19
19
  const lwcResolver = {
@@ -64,7 +64,7 @@ export async function generate(options: GenerationOptions): Promise<void> {
64
64
  amdModules = getAmdModule('everywhereAmd') + getAmdModule('vault');
65
65
  if (isCore) {
66
66
  // Workaround: core does not have proper versioning; replace all versions with 0.0.1
67
- amdModules = amdModules.replace(NPM2CORE_REGEX, `lwr/$1/v/${CORE_VERSION}`);
67
+ amdModules = amdModules.replace(NPM2CORE_REGEX, `/v/${CORE_VERSION}`);
68
68
  }
69
69
  }
70
70
 
@@ -118,7 +118,8 @@ export async function generate(options: GenerationOptions): Promise<void> {
118
118
  * All rights reserved.
119
119
  * SPDX-License-Identifier: MIT
120
120
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
121
- */`,
121
+ */
122
+ globalThis.process = { env: { NODE_ENV: '${debug ? 'development' : 'production'}' } };`,
122
123
  });
123
124
 
124
125
  // Write the rollup output to the file system
package/src/index.ts CHANGED
@@ -16,7 +16,7 @@ export default class LwrEverywhereClientProvider implements ResourceProvider {
16
16
  directory: string;
17
17
  context: ProviderContext;
18
18
 
19
- constructor({ dir = 'assets' }: { dir: string }, context: ProviderContext) {
19
+ constructor({ dir = 'build/assets' }: { dir: string }, context: ProviderContext) {
20
20
  this.directory = dir;
21
21
  this.context = context;
22
22
  }
@@ -33,7 +33,7 @@ export default class LwrEverywhereClientProvider implements ResourceProvider {
33
33
  }
34
34
 
35
35
  // Retrieve the filepath from the build directory
36
- const absFilepath = path.join(rootPath, '..', this.directory, format, specifier);
36
+ const absFilepath = path.join(rootPath, this.directory, format, specifier);
37
37
  if (fs.existsSync(absFilepath)) {
38
38
  return {
39
39
  specifier,
package/src/utils.ts CHANGED
@@ -13,16 +13,8 @@ export interface EverywhereClientBootstrapOptions {
13
13
  debug?: boolean;
14
14
  }
15
15
 
16
- // Output: Normalized options and Client Bootstrap Config object
17
- interface EverywhereClientBootstrap {
18
- options: {
19
- NODE_ENV: 'production' | 'development';
20
- };
21
- config: ClientBootstrapConfig;
22
- }
23
-
24
16
  // Construct the Client Bootstrap Config object
25
- export function getConfiguration(options: EverywhereClientBootstrapOptions): EverywhereClientBootstrap {
17
+ export function getConfiguration(options: EverywhereClientBootstrapOptions): ClientBootstrapConfig {
26
18
  const { format, server, apiVersion, apiPrefix, locale, bundle, debug } = options;
27
19
  const thisUrl = new URL(import.meta.url);
28
20
 
@@ -59,8 +51,5 @@ export function getConfiguration(options: EverywhereClientBootstrapOptions): Eve
59
51
  config.endpoints.modifiers = { debug: 'true' };
60
52
  }
61
53
 
62
- return {
63
- options: { NODE_ENV: debug ? 'development' : 'production' },
64
- config, // globalThis.LWR
65
- };
54
+ return config;
66
55
  }
@@ -1,10 +0,0 @@
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_9_0-alpha_0","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_0/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_0"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_0/s/6258bcb20cc2d5d6a9f3c5a6f9d0acaf/lwr_init.js":["lwr/init/v/0_9_0-alpha_0"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_0/s/dfbc827104d50ff7d16b59c9d0e06aca/lwr_metrics.js":["lwr/metrics/v/0_9_0-alpha_0"],"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_0/s/5a10236d8c52bc9f6dee22875cd7016d/lwr_profiler.js":["lwr/profiler/v/0_9_0-alpha_0"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_17_0/s/60dae7a83431c35c02c87ca8aaaa6044/lwc.js":["lwc/v/2_17_0"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_0/s/e66806169480601930ec9cfca972815e/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_9_0-alpha_0"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_0/s/6cbce1f9b7e815ee862b26f37ff4c76e/lwr_vault.js":["lwr/vault/v/0_9_0-alpha_0"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_0":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_0/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/init/v/0_9_0-alpha_0":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_0/s/6258bcb20cc2d5d6a9f3c5a6f9d0acaf/lwr_init.js","lwr/metrics/v/0_9_0-alpha_0":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_0/s/dfbc827104d50ff7d16b59c9d0e06aca/lwr_metrics.js","lwr/profiler/v/0_9_0-alpha_0":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_0/s/5a10236d8c52bc9f6dee22875cd7016d/lwr_profiler.js","lwc/v/2_17_0":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_17_0/s/60dae7a83431c35c02c87ca8aaaa6044/lwc.js","lwr/everywhereAmd/v/0_9_0-alpha_0":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_0/s/e66806169480601930ec9cfca972815e/lwr_everywhereAmd.js","lwr/vault/v/0_9_0-alpha_0":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_0/s/6cbce1f9b7e815ee862b26f37ff4c76e/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_9_0-alpha_0"],"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_0"],"preloadModules":["lwr/everywhereAmd/v/0_9_0-alpha_0"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
5
- globalThis.process = { env: { NODE_ENV: "compat" } };
6
- // Appended by Static Site Generator
7
- if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
8
- Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_0/s/8ad94c326aceb977fd21980215398f4b/lwr_loader.js":["lwr/loader/v/0_9_0-alpha_0"]})
9
- if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
10
- Object.assign(globalThis.LWR.index, {"lwr/loader/v/0_9_0-alpha_0":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_0/s/8ad94c326aceb977fd21980215398f4b/lwr_loader.js"})
@@ -1,14 +0,0 @@
1
- LWR.define("@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_0", ["lwr/loader/v/0_9_0-alpha_0", "lwr/init/v/0_9_0-alpha_0"], function(_0_9_0Alpha_0$1, _0_9_0Alpha_0) {
2
- "use strict";
3
- const clientBootstrapConfig = globalThis.LWR;
4
- const {rootComponents, ssrProps} = clientBootstrapConfig;
5
- Promise.all(rootComponents.map(async (rootSpecifier) => {
6
- const element = _0_9_0Alpha_0.toKebabCase(rootSpecifier);
7
- return _0_9_0Alpha_0$1.load(rootSpecifier, "@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_0").then(({default: Ctor}) => {
8
- _0_9_0Alpha_0.init([[element, Ctor]], ssrProps);
9
- });
10
- }));
11
- globalThis.LWR = Object.freeze({
12
- define: globalThis.LWR.define
13
- });
14
- });
@@ -1,26 +0,0 @@
1
-
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
7
- <title>LWR App</title>
8
- </head>
9
- <body class="wrapper">
10
- <lwr-everywhere-amd></lwr-everywhere-amd>
11
- </body>
12
- <script type="application/javascript" src="/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-%2F-/s/63c867e9664b3c9756ca7ddba946b950/config.js"></script>
13
- <script type="application/javascript" src="/1/resource/amd/lwr-loader-shim.js%2Fv%2F0_9_0-alpha_0"></script>
14
- <script type="application/javascript">/**
15
- * Copyright (c) 2021, salesforce.com, inc.
16
- * All rights reserved.
17
- * SPDX-License-Identifier: MIT
18
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
19
- */
20
- /* LWR Error Shim v0.9.0-alpha.0 */
21
- !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)}}();
22
- </script>
23
- <script type="application/javascript" src="/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_0/s/8ad94c326aceb977fd21980215398f4b/lwr_loader.js"></script>
24
- <script type="application/javascript" src="/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_0/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js"></script>
25
- <script type="application/javascript" async src="/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_0/s/e66806169480601930ec9cfca972815e/lwr_everywhereAmd.js"></script>
26
- </html>
@@ -1,26 +0,0 @@
1
-
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
7
- <title>LWR App</title>
8
- </head>
9
- <body class="wrapper">
10
- <lwr-everywhere-amd></lwr-everywhere-amd>
11
- </body>
12
- <script type="application/javascript" src="/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-%2F-/s/63c867e9664b3c9756ca7ddba946b950/config.js"></script>
13
- <script type="application/javascript" src="/1/resource/amd/lwr-loader-shim.js%2Fv%2F0_9_0-alpha_0"></script>
14
- <script type="application/javascript">/**
15
- * Copyright (c) 2021, salesforce.com, inc.
16
- * All rights reserved.
17
- * SPDX-License-Identifier: MIT
18
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
19
- */
20
- /* LWR Error Shim v0.9.0-alpha.0 */
21
- !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)}}();
22
- </script>
23
- <script type="application/javascript" src="/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_0/s/8ad94c326aceb977fd21980215398f4b/lwr_loader.js"></script>
24
- <script type="application/javascript" src="/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_0/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js"></script>
25
- <script type="application/javascript" async src="/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_0/s/e66806169480601930ec9cfca972815e/lwr_everywhereAmd.js"></script>
26
- </html>