@lwrjs/view-registry 0.6.0-alpha.11 → 0.6.0-alpha.15

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.
@@ -124,6 +124,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
124
124
  url: viewParams?.page?.url,
125
125
  configAsSrc: view.bootstrap?.configAsSrc || false
126
126
  }, {
127
+ appId: appIdentity.appName,
127
128
  bootstrapModule: versionedSpecifier,
128
129
  autoBoot: view.bootstrap?.autoBoot === false ? false : true,
129
130
  importMappings: {
@@ -72,7 +72,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
72
72
  }, moduleRegistry, runtimeEnvironment, runtimeParams));
73
73
  }
74
74
  }
75
- const depth = isAMD ? {static: import_shared_utils.GraphDepth.ALL, dynamic: 1} : {static: import_shared_utils.GraphDepth.NONE, dynamic: 0};
75
+ const depth = isAMD ? {static: import_shared_utils.GraphDepth.ALL, dynamic: 1} : {static: import_shared_utils.GraphDepth.NONE, dynamic: 1};
76
76
  const bootstrapModuleGraph = await (0, import_shared_utils.getModuleGraphs)(bootstrapSpecifier, {includeUris: true, includeLinkedDefinitions: true, depth}, moduleRegistry, bundle ? moduleBundler : moduleRegistry, runtimeEnvironment, runtimeParams, visitedCache);
77
77
  const versionedSpecifier = bootstrapModuleGraph.graphs[0].specifier;
78
78
  const uri = bootstrapModuleGraph.uriMap[versionedSpecifier];
@@ -126,6 +126,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
126
126
  url: viewParams?.page?.url,
127
127
  configAsSrc: view.bootstrap?.configAsSrc || false
128
128
  }, {
129
+ appId: appIdentity.appName,
129
130
  bootstrapModule: versionedSpecifier,
130
131
  autoBoot: view.bootstrap?.autoBoot === false ? false : true,
131
132
  imports: importMetadata?.imports,
@@ -134,6 +134,7 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
134
134
  url: viewParams?.page?.url,
135
135
  configAsSrc: view.bootstrap?.configAsSrc || false,
136
136
  }, {
137
+ appId: appIdentity.appName,
137
138
  bootstrapModule: versionedSpecifier,
138
139
  autoBoot: view.bootstrap?.autoBoot === false ? false : true,
139
140
  importMappings: {
@@ -63,10 +63,9 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
63
63
  // ------- Application Bootstrap module
64
64
  // Traversal of the Bootstrap Module Graph is done to get all the URLS for discoverable static dependencies.
65
65
  // Reasoning: This is to avoid unnecessary HTTP 302's during initial application module fetching.
66
- // Scope: ESM currently only exposes immutable URI references, optimize for AMD formats
67
66
  const depth = isAMD
68
67
  ? { static: GraphDepth.ALL, dynamic: 1 }
69
- : { static: GraphDepth.NONE, dynamic: 0 };
68
+ : { static: GraphDepth.NONE, dynamic: 1 };
70
69
  const bootstrapModuleGraph = await getModuleGraphs(bootstrapSpecifier, { includeUris: true, includeLinkedDefinitions: true, depth }, moduleRegistry, bundle ? moduleBundler : moduleRegistry, runtimeEnvironment, runtimeParams, visitedCache);
71
70
  // ADD bootstrap module uri as a script resource
72
71
  const versionedSpecifier = bootstrapModuleGraph.graphs[0].specifier;
@@ -75,12 +74,12 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
75
74
  if (isAMD) {
76
75
  // ADD bootstrap module as required
77
76
  requiredAmdModules.push(versionedSpecifier);
78
- // AMD ADD bootstrap module uri addressability
77
+ // ADD bootstrap module uri addressability
79
78
  imports[versionedSpecifier] = uri;
80
79
  // PRELOAD bootstrap module static deps as link resource
81
80
  for (const staticDep of bootstrapModuleGraph.graphs[0].static) {
82
81
  const uri = bootstrapModuleGraph.uriMap[staticDep];
83
- // AMD ADD static module dep uri addressability
82
+ // ADD static module dep uri addressability
84
83
  imports[staticDep] = uri;
85
84
  // ADD bootstrap module static deps to requiredAmdModules if services, otherwise preloadModules
86
85
  if (services && services.length) {
@@ -89,7 +88,7 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
89
88
  requiredAmdModules.push(staticDep);
90
89
  }
91
90
  }
92
- // AMD Add import mappings for known dynamic imports
91
+ // Add import mappings for known dynamic imports
93
92
  for (const dynamicDep of bootstrapModuleGraph.graphs[0].dynamicRefs) {
94
93
  const uri = bootstrapModuleGraph.uriMap[dynamicDep];
95
94
  if (uri) {
@@ -136,6 +135,7 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
136
135
  url: viewParams?.page?.url,
137
136
  configAsSrc: view.bootstrap?.configAsSrc || false,
138
137
  }, {
138
+ appId: appIdentity.appName,
139
139
  bootstrapModule: versionedSpecifier,
140
140
  autoBoot: view.bootstrap?.autoBoot === false ? false : true,
141
141
  imports: importMetadata?.imports,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.6.0-alpha.11",
7
+ "version": "0.6.0-alpha.15",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/app-service": "0.6.0-alpha.11",
34
- "@lwrjs/diagnostics": "0.6.0-alpha.11",
35
- "@lwrjs/shared-utils": "0.6.0-alpha.11"
33
+ "@lwrjs/app-service": "0.6.0-alpha.15",
34
+ "@lwrjs/diagnostics": "0.6.0-alpha.15",
35
+ "@lwrjs/shared-utils": "0.6.0-alpha.15"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.6.0-alpha.11"
38
+ "@lwrjs/types": "0.6.0-alpha.15"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=14.15.4 <17"
42
42
  },
43
- "gitHead": "18ab72188c2d52e32cca47333951a9c76f996039"
43
+ "gitHead": "ebff01c190ee6f2777028f103e51446a1a8f00f7"
44
44
  }