@lwrjs/types 0.17.2-alpha.4 → 0.17.2-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.
- package/build/views.d.ts +2 -7
- package/package.json +2 -2
package/build/views.d.ts
CHANGED
|
@@ -16,17 +16,14 @@ export interface CompiledView extends ViewSource {
|
|
|
16
16
|
properties?: {
|
|
17
17
|
[key: string]: unknown;
|
|
18
18
|
};
|
|
19
|
-
render: (context:
|
|
19
|
+
render: (context: Record<string, any>, runtimeEnvironment: RuntimeEnvironment) => Promise<RenderingResult>;
|
|
20
20
|
}
|
|
21
|
-
export type NormalizedRenderingResult = Required<Pick<RenderingResult, 'renderedView' | 'metadata' | 'options' | 'cache'
|
|
22
|
-
status?: SsrStatus;
|
|
23
|
-
};
|
|
21
|
+
export type NormalizedRenderingResult = Required<Pick<RenderingResult, 'renderedView' | 'metadata' | 'options' | 'cache'>>;
|
|
24
22
|
export interface RenderingResult {
|
|
25
23
|
renderedView: string;
|
|
26
24
|
metadata?: RenderedViewMetadata;
|
|
27
25
|
options?: RenderOptions;
|
|
28
26
|
cache?: CacheResponse;
|
|
29
|
-
status?: SsrStatus;
|
|
30
27
|
}
|
|
31
28
|
export interface RenderedView extends NormalizedRenderingResult {
|
|
32
29
|
compiledView: CompiledView;
|
|
@@ -88,7 +85,6 @@ export interface LinkedViewDefinition {
|
|
|
88
85
|
viewRecord: RenderedViewRecord;
|
|
89
86
|
immutable: boolean;
|
|
90
87
|
cache?: CacheResponse;
|
|
91
|
-
status?: SsrStatus;
|
|
92
88
|
nonce?: string;
|
|
93
89
|
}
|
|
94
90
|
export interface ViewRequestQs {
|
|
@@ -153,7 +149,6 @@ type ViewPluginLinkHook = (builder: LwrStringBuilder, viewContext: ViewTransform
|
|
|
153
149
|
type ViewPluginLinkHookReturn = void | null | undefined | false | LwrStringBuilder | {
|
|
154
150
|
builder?: LwrStringBuilder;
|
|
155
151
|
cache?: CacheResponse;
|
|
156
|
-
status?: SsrStatus;
|
|
157
152
|
serverBundles?: Set<BundleDefinition>;
|
|
158
153
|
};
|
|
159
154
|
type ViewPluginOptimizeHook = (code: string, assetSource: AssetSource) => Promise<ViewPluginOptimizeHookReturn>;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -b"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.17.2-alpha.
|
|
11
|
+
"version": "0.17.2-alpha.6",
|
|
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": "e52a06333b7cd8d6d4bdc846ea9019d13f9fb85d"
|
|
33
33
|
}
|