@lwrjs/types 0.11.0-alpha.5 → 0.11.0-alpha.7

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.
package/build/config.d.ts CHANGED
@@ -27,20 +27,27 @@ export interface NormalizedLwrErrorRoute extends LwrErrorRoute {
27
27
  bootstrap: NormalizedLwrAppBootstrapConfig;
28
28
  routeHandler?: ServiceEntry;
29
29
  }
30
- export interface NormalizedLwrAppBootstrapConfig {
31
- autoBoot: boolean;
32
- syntheticShadow: boolean;
33
- workers: {
30
+ export interface BootstrapService {
31
+ name: string;
32
+ ssr: boolean;
33
+ }
34
+ export interface LwrAppBootstrapConfig {
35
+ autoBoot?: boolean;
36
+ syntheticShadow?: boolean;
37
+ workers?: {
34
38
  [id: string]: string;
35
39
  };
36
- services: string[];
37
- configAsSrc: boolean;
38
- ssr: boolean;
39
- mixedMode: boolean;
40
+ services?: (string | BootstrapService)[];
41
+ configAsSrc?: boolean;
42
+ ssr?: boolean;
43
+ mixedMode?: boolean;
44
+ module?: string | undefined;
45
+ preloadModules?: string[];
46
+ }
47
+ export interface NormalizedLwrAppBootstrapConfig extends Required<Omit<LwrAppBootstrapConfig, 'module'>> {
48
+ services: BootstrapService[];
40
49
  module: string | undefined;
41
- preloadModules: string[];
42
50
  }
43
- export type LwrAppBootstrapConfig = Partial<NormalizedLwrAppBootstrapConfig>;
44
51
  export interface LwrLockerConfig {
45
52
  enabled: boolean;
46
53
  trustedComponents?: string[];
package/build/index.d.ts CHANGED
@@ -618,10 +618,18 @@ export interface SiteMetadata {
618
618
  * Get the current metadata about the pre-built module bundles for the site.
619
619
  */
620
620
  getSiteBundles(): SiteBundles;
621
+ /**
622
+ * Get the current debug metadata about the pre-built module bundles for the site.
623
+ */
624
+ getDebugSiteBundles(): SiteBundles;
621
625
  /**
622
626
  * Get the current metadata about the pre-built resources for the site.
623
627
  */
624
628
  getSiteResources(): SiteResources;
629
+ /**
630
+ * Get the current debug metadata about the pre-built resources for the site.
631
+ */
632
+ getDebugSiteResources(): SiteResources;
625
633
  /**
626
634
  * Get the current metadata about the pre-built assets for the site.
627
635
  */
package/build/views.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import type { LwrErrorRoute, LwrRoute, RouteHandlerFunction, RouteHandlerView, View } from './config.js';
3
3
  import type { AssetSource, UriDefinition, Endpoints, FlattenedModuleGraphs, ImportMetadata, Json, LwrStringBuilder, ResourceDefinition, RuntimeEnvironment, RuntimeParams, Specifier } from './index.js';
4
- export type ViewIdentity = Pick<View, 'rootComponent' | 'contentTemplate'>;
4
+ export type ViewIdentity = Pick<View, 'id' | 'rootComponent' | 'contentTemplate'>;
5
5
  export interface ViewSource {
6
6
  name: string;
7
7
  slug: string;
@@ -203,7 +203,9 @@ export interface SsrRequestContext {
203
203
  locale: string;
204
204
  }
205
205
  export interface SsrDataResponse {
206
- props?: Json;
206
+ props?: {
207
+ [prop: string]: Json;
208
+ };
207
209
  markup?: {
208
210
  links?: {
209
211
  href: string;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.11.0-alpha.5",
11
+ "version": "0.11.0-alpha.7",
12
12
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
13
13
  "repository": {
14
14
  "type": "git",
@@ -29,5 +29,5 @@
29
29
  "engines": {
30
30
  "node": ">=16.0.0"
31
31
  },
32
- "gitHead": "207dae3cc23cef3e44b64099d7cf7fd07ab36080"
32
+ "gitHead": "872180fbd00df214ab91971d7ec80ba138a73756"
33
33
  }