@lwrjs/view-registry 0.9.0-alpha.3 → 0.9.0-alpha.4
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.
|
@@ -111,7 +111,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
111
111
|
let importMetadata = await (0, import_shared_utils.toImportMetadata)(bootstrapModuleGraph, {imports: {}, index: {}}, moduleRegistry, runtimeEnvironment, runtimeParams);
|
|
112
112
|
const customElementsRecords = [];
|
|
113
113
|
const flattenedElements = (0, import_utils2.flattenCustomElements)(customElements, isSSR);
|
|
114
|
-
|
|
114
|
+
for (const {tagName: element} of flattenedElements) {
|
|
115
115
|
const graph = await (0, import_shared_utils.getModuleGraphs)((0, import_shared_utils.kebabCaseToModuleSpecifer)(element), {includeUris: true, includeLinkedDefinitions: true, depth}, moduleRegistry, bundle ? moduleBundler : moduleRegistry, runtimeEnvironment, runtimeParams ? runtimeParams : {}, visitedCache);
|
|
116
116
|
customElementsRecords.push({elementName: element, flatGraph: graph});
|
|
117
117
|
const specifier = graph.graphs[0].specifier;
|
|
@@ -131,7 +131,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
importMetadata = await (0, import_shared_utils.toImportMetadata)(graph, importMetadata, moduleRegistry, runtimeEnvironment, runtimeParams);
|
|
134
|
-
}
|
|
134
|
+
}
|
|
135
135
|
configResources.unshift(await (0, import_utils2.getViewBootstrapConfigurationResource)({
|
|
136
136
|
id: view.id,
|
|
137
137
|
url: viewParams?.page?.url,
|
|
@@ -118,7 +118,8 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
118
118
|
// ------- View related custom element moduleResources
|
|
119
119
|
const customElementsRecords = [];
|
|
120
120
|
const flattenedElements = flattenCustomElements(customElements, isSSR);
|
|
121
|
-
|
|
121
|
+
for (const { tagName: element } of flattenedElements) {
|
|
122
|
+
// eslint-disable-next-line no-await-in-loop
|
|
122
123
|
const graph = await getModuleGraphs(kebabCaseToModuleSpecifer(element), { includeUris: true, includeLinkedDefinitions: true, depth }, moduleRegistry, bundle ? moduleBundler : moduleRegistry, runtimeEnvironment, runtimeParams ? runtimeParams : {}, visitedCache);
|
|
123
124
|
// add to the viewRecord
|
|
124
125
|
customElementsRecords.push({ elementName: element, flatGraph: graph });
|
|
@@ -142,8 +143,9 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
142
143
|
imports[dynamicDep] = uri;
|
|
143
144
|
}
|
|
144
145
|
}
|
|
146
|
+
// eslint-disable-next-line no-await-in-loop
|
|
145
147
|
importMetadata = await toImportMetadata(graph, importMetadata, moduleRegistry, runtimeEnvironment, runtimeParams);
|
|
146
|
-
}
|
|
148
|
+
}
|
|
147
149
|
// ADD configuration of the bootstrapModule
|
|
148
150
|
configResources.unshift(await getViewBootstrapConfigurationResource({
|
|
149
151
|
id: view.id,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0-alpha.
|
|
7
|
+
"version": "0.9.0-alpha.4",
|
|
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.9.0-alpha.
|
|
34
|
-
"@lwrjs/diagnostics": "0.9.0-alpha.
|
|
35
|
-
"@lwrjs/shared-utils": "0.9.0-alpha.
|
|
33
|
+
"@lwrjs/app-service": "0.9.0-alpha.4",
|
|
34
|
+
"@lwrjs/diagnostics": "0.9.0-alpha.4",
|
|
35
|
+
"@lwrjs/shared-utils": "0.9.0-alpha.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lwrjs/types": "0.9.0-alpha.
|
|
38
|
+
"@lwrjs/types": "0.9.0-alpha.4"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=14.15.4 <19"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cb4f98fad4279ac953edec73f3e28996e2523c67"
|
|
44
44
|
}
|