@lwrjs/types 0.17.2-alpha.3 → 0.17.2-alpha.5
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 +3 -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;
|
|
@@ -55,6 +52,7 @@ export interface RenderedAssetReference {
|
|
|
55
52
|
url: string;
|
|
56
53
|
tagName?: string;
|
|
57
54
|
override?: UriDefinition;
|
|
55
|
+
integrity?: string;
|
|
58
56
|
}
|
|
59
57
|
export interface AssetReference extends RenderedAssetReference {
|
|
60
58
|
importer?: string;
|
|
@@ -87,7 +85,6 @@ export interface LinkedViewDefinition {
|
|
|
87
85
|
viewRecord: RenderedViewRecord;
|
|
88
86
|
immutable: boolean;
|
|
89
87
|
cache?: CacheResponse;
|
|
90
|
-
status?: SsrStatus;
|
|
91
88
|
nonce?: string;
|
|
92
89
|
}
|
|
93
90
|
export interface ViewRequestQs {
|
|
@@ -152,7 +149,6 @@ type ViewPluginLinkHook = (builder: LwrStringBuilder, viewContext: ViewTransform
|
|
|
152
149
|
type ViewPluginLinkHookReturn = void | null | undefined | false | LwrStringBuilder | {
|
|
153
150
|
builder?: LwrStringBuilder;
|
|
154
151
|
cache?: CacheResponse;
|
|
155
|
-
status?: SsrStatus;
|
|
156
152
|
serverBundles?: Set<BundleDefinition>;
|
|
157
153
|
};
|
|
158
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.5",
|
|
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": "b87daf19f22c54126ccaf01e0f899aabe6265885"
|
|
33
33
|
}
|