@lwrjs/types 0.15.0-alpha.13 → 0.15.0-alpha.15
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/views.d.ts +10 -1
- package/package.json +2 -2
package/build/views.d.ts
CHANGED
|
@@ -18,12 +18,15 @@ export interface CompiledView extends ViewSource {
|
|
|
18
18
|
};
|
|
19
19
|
render: (context: any, runtimeEnvironment: RuntimeEnvironment) => Promise<RenderingResult>;
|
|
20
20
|
}
|
|
21
|
-
export type NormalizedRenderingResult = Required<RenderingResult
|
|
21
|
+
export type NormalizedRenderingResult = Required<Pick<RenderingResult, 'renderedView' | 'metadata' | 'options' | 'cache'>> & {
|
|
22
|
+
redirect?: SsrRedirect;
|
|
23
|
+
};
|
|
22
24
|
export interface RenderingResult {
|
|
23
25
|
renderedView: string;
|
|
24
26
|
metadata?: RenderedViewMetadata;
|
|
25
27
|
options?: RenderOptions;
|
|
26
28
|
cache?: CacheResponse;
|
|
29
|
+
redirect?: SsrRedirect;
|
|
27
30
|
}
|
|
28
31
|
export interface RenderedView extends NormalizedRenderingResult {
|
|
29
32
|
compiledView: CompiledView;
|
|
@@ -86,6 +89,7 @@ export interface LinkedViewDefinition {
|
|
|
86
89
|
viewRecord: RenderedViewRecord;
|
|
87
90
|
immutable: boolean;
|
|
88
91
|
cache?: CacheResponse;
|
|
92
|
+
redirect?: SsrRedirect;
|
|
89
93
|
nonce?: string;
|
|
90
94
|
}
|
|
91
95
|
export interface ViewRequestQs {
|
|
@@ -248,6 +252,11 @@ export interface SsrDataResponse {
|
|
|
248
252
|
}[];
|
|
249
253
|
};
|
|
250
254
|
cache?: CacheResponse;
|
|
255
|
+
redirect?: SsrRedirect;
|
|
256
|
+
}
|
|
257
|
+
export interface SsrRedirect {
|
|
258
|
+
status?: 301 | 302;
|
|
259
|
+
location: string;
|
|
251
260
|
}
|
|
252
261
|
export {};
|
|
253
262
|
//# sourceMappingURL=views.d.ts.map
|
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.
|
|
11
|
+
"version": "0.15.0-alpha.15",
|
|
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": "
|
|
32
|
+
"gitHead": "6399f18c87c36ded4daf9d90360a7e044a769394"
|
|
33
33
|
}
|