@lwrjs/view-registry 0.8.0-alpha.5 → 0.8.0-alpha.8

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.
@@ -58,7 +58,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
58
58
  const rootComponents = [];
59
59
  const requiredAmdModules = [];
60
60
  const preloadAmdModules = [];
61
- const isSSR = view.bootstrap?.experimentalSSR;
61
+ const isSSR = view.bootstrap?.ssr;
62
62
  if (isAMD) {
63
63
  const shimBundle = !bundle ? "lwr-loader-shim-legacy.js" : debug || minify === false ? "lwr-loader-shim-legacy.bundle.js" : "lwr-loader-shim-legacy.bundle.min.js";
64
64
  const def = await resourceRegistry.getResource({specifier: shimBundle, version}, runtimeEnvironment, runtimeParams);
@@ -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),
@@ -58,7 +58,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
58
58
  const rootComponents = [];
59
59
  const requiredAmdModules = [];
60
60
  const preloadAmdModules = [];
61
- const isSSR = view.bootstrap?.experimentalSSR;
61
+ const isSSR = view.bootstrap?.ssr;
62
62
  if (isAMD) {
63
63
  const shimBundle = !bundle ? "lwr-loader-shim.js" : debug || minify === false ? "lwr-loader-shim.bundle.js" : "lwr-loader-shim.bundle.min.js";
64
64
  const def = await resourceRegistry.getResource({specifier: shimBundle, version}, runtimeEnvironment, runtimeParams);
@@ -40,7 +40,7 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
40
40
  // Collection of modules that will be loaded in the view
41
41
  const preloadAmdModules = [];
42
42
  // Determine if server side rendering view modules
43
- const isSSR = view.bootstrap?.experimentalSSR;
43
+ const isSSR = view.bootstrap?.ssr;
44
44
  // ------ AMD Required module resources
45
45
  if (isAMD) {
46
46
  // Keep shim format in sync with view_bootstrap.ts
@@ -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 { featureFlags: { LEGACY_LOADER }, } = resourceContext.runtimeEnvironment;
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);
@@ -40,7 +40,7 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
40
40
  // Collection of modules that will be loaded in the view
41
41
  const preloadAmdModules = [];
42
42
  // Determine if server side rendering view modules
43
- const isSSR = view.bootstrap?.experimentalSSR;
43
+ const isSSR = view.bootstrap?.ssr;
44
44
  // ------ AMD Required module resources
45
45
  if (isAMD) {
46
46
  // Keep shim format in sync with legacy_view_bootstrap.ts
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.8.0-alpha.5",
7
+ "version": "0.8.0-alpha.8",
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.5",
34
- "@lwrjs/diagnostics": "0.8.0-alpha.5",
35
- "@lwrjs/shared-utils": "0.8.0-alpha.5"
33
+ "@lwrjs/app-service": "0.8.0-alpha.8",
34
+ "@lwrjs/diagnostics": "0.8.0-alpha.8",
35
+ "@lwrjs/shared-utils": "0.8.0-alpha.8"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.8.0-alpha.5"
38
+ "@lwrjs/types": "0.8.0-alpha.8"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=14.15.4 <19"
42
42
  },
43
- "gitHead": "bc2eed0c7a5a5f9ecbbd335bf896e6d6c5076c19"
43
+ "gitHead": "345e7545d2d1d1f587567aacf0a072473c746d9e"
44
44
  }