@lwrjs/view-registry 0.8.0-alpha.5 → 0.8.0-alpha.6
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.
|
@@ -30,9 +30,7 @@ var import_view_bootstrap = __toModule(require("./view_bootstrap.cjs"));
|
|
|
30
30
|
var import_legacy_view_bootstrap = __toModule(require("./legacy_view_bootstrap.cjs"));
|
|
31
31
|
async function linkLwrResources(source, view, viewParams, cxt) {
|
|
32
32
|
const {lwrResourcesId, ...resourceContext} = cxt;
|
|
33
|
-
const
|
|
34
|
-
featureFlags: {LEGACY_LOADER}
|
|
35
|
-
} = resourceContext.runtimeEnvironment;
|
|
33
|
+
const LEGACY_LOADER = resourceContext.runtimeEnvironment?.featureFlags?.LEGACY_LOADER;
|
|
36
34
|
const {partial, viewRecord} = LEGACY_LOADER ? await (0, import_legacy_view_bootstrap.getHtmlResources)(view, viewParams, resourceContext) : await (0, import_view_bootstrap.getHtmlResources)(view, viewParams, resourceContext);
|
|
37
35
|
return {
|
|
38
36
|
renderedView: source.replace(lwrResourcesId, partial),
|
|
@@ -2,7 +2,7 @@ import { getHtmlResources } from './view_bootstrap.js';
|
|
|
2
2
|
import { getHtmlResources as getLegacyHtmlResource } from './legacy_view_bootstrap.js';
|
|
3
3
|
export async function linkLwrResources(source, view, viewParams, cxt) {
|
|
4
4
|
const { lwrResourcesId, ...resourceContext } = cxt;
|
|
5
|
-
const
|
|
5
|
+
const LEGACY_LOADER = resourceContext.runtimeEnvironment?.featureFlags?.LEGACY_LOADER;
|
|
6
6
|
const { partial, viewRecord } = LEGACY_LOADER
|
|
7
7
|
? await getLegacyHtmlResource(view, viewParams, resourceContext)
|
|
8
8
|
: await getHtmlResources(view, viewParams, resourceContext);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.8.0-alpha.
|
|
7
|
+
"version": "0.8.0-alpha.6",
|
|
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.8.0-alpha.
|
|
34
|
-
"@lwrjs/diagnostics": "0.8.0-alpha.
|
|
35
|
-
"@lwrjs/shared-utils": "0.8.0-alpha.
|
|
33
|
+
"@lwrjs/app-service": "0.8.0-alpha.6",
|
|
34
|
+
"@lwrjs/diagnostics": "0.8.0-alpha.6",
|
|
35
|
+
"@lwrjs/shared-utils": "0.8.0-alpha.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lwrjs/types": "0.8.0-alpha.
|
|
38
|
+
"@lwrjs/types": "0.8.0-alpha.6"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=14.15.4 <19"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cf34943d7df7b570d1183836868462c10a6a136c"
|
|
44
44
|
}
|