@lwrjs/types 0.15.0-alpha.33 → 0.15.0-alpha.35

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.
Files changed (2) hide show
  1. package/build/views.d.ts +4 -5
  2. package/package.json +2 -2
package/build/views.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { LwrErrorRoute, LwrRoute, RouteHandlerFunction, RouteHandlerView, View } from './config.js';
3
- import type { AssetSource, UriDefinition, Endpoints, FlattenedModuleGraphs, ImportMetadata, Json, LwrStringBuilder, ResourceDefinition, RuntimeEnvironment, RuntimeParams, Specifier, ServerData } from './index.js';
3
+ import type { AssetSource, BundleDefinition, Endpoints, FlattenedModuleGraphs, ImportMetadata, Json, LwrStringBuilder, ResourceDefinition, RuntimeEnvironment, RuntimeParams, Specifier, ServerData, UriDefinition } from './index.js';
4
4
  export type ViewIdentity = Pick<View, 'id' | 'rootComponent' | 'contentTemplate'>;
5
5
  export interface ViewSource {
6
6
  name: string;
@@ -45,6 +45,7 @@ export interface CustomElementReference {
45
45
  export interface RenderedViewMetadata {
46
46
  customElements: CustomElementReference[];
47
47
  assetReferences: AssetReference[];
48
+ serverBundles?: Set<BundleDefinition>;
48
49
  serverData?: ServerData;
49
50
  serverDebug?: {
50
51
  message?: string;
@@ -63,10 +64,6 @@ export interface AssetReference extends RenderedAssetReference {
63
64
  endOffset: number;
64
65
  };
65
66
  }
66
- export interface LinkedViewDefinitionMetaData {
67
- customElements: string[];
68
- assetReferences: RenderedAssetReference[];
69
- }
70
67
  export interface CustomElementRecord {
71
68
  elementName: string;
72
69
  flatGraph: FlattenedModuleGraphs;
@@ -75,6 +72,7 @@ export interface RenderedViewRecord {
75
72
  resources?: ResourceDefinition[];
76
73
  assetReferences?: RenderedAssetReference[];
77
74
  customElements?: CustomElementRecord[];
75
+ serverBundles?: Set<BundleDefinition>;
78
76
  endpoints?: Endpoints;
79
77
  importMetadata?: ImportMetadata;
80
78
  moduleResources: ResourceDefinition[];
@@ -155,6 +153,7 @@ type ViewPluginLinkHookReturn = void | null | undefined | false | LwrStringBuild
155
153
  builder?: LwrStringBuilder;
156
154
  cache?: CacheResponse;
157
155
  redirect?: SsrRedirect;
156
+ serverBundles?: Set<BundleDefinition>;
158
157
  };
159
158
  type ViewPluginOptimizeHook = (code: string, assetSource: AssetSource) => Promise<ViewPluginOptimizeHookReturn>;
160
159
  type ViewPluginOptimizeHookReturn = null | undefined | false | string | {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.15.0-alpha.33",
11
+ "version": "0.15.0-alpha.35",
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": ">=18.0.0"
31
31
  },
32
- "gitHead": "0e636fb16ede654870100f5fa3bb5b3985a3db00"
32
+ "gitHead": "42f04ad68558ec00f543a04e363671ceb294c88b"
33
33
  }