@lwrjs/types 0.12.0-alpha.19 → 0.12.0-alpha.20
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 +1 -0
- package/build/views.d.ts +9 -0
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export interface NormalizedRouteHandlersConfig {
|
|
|
61
61
|
}
|
|
62
62
|
export interface LocalizedViewRequest extends ViewRequest {
|
|
63
63
|
locale?: string;
|
|
64
|
+
basePath?: string;
|
|
64
65
|
}
|
|
65
66
|
export type RouteHandlerFunction = (viewRequest: LocalizedViewRequest, handlerContext: HandlerContext, routeHandlerOptions?: any) => Promise<RouteHandlerViewResponse> | RouteHandlerViewResponse;
|
|
66
67
|
export interface ResourcePaths {
|
package/build/views.d.ts
CHANGED
|
@@ -126,6 +126,9 @@ export interface ViewProvider {
|
|
|
126
126
|
getView(viewId: ViewIdentity): Promise<CompiledView | undefined>;
|
|
127
127
|
}
|
|
128
128
|
export interface ViewTransformPluginContext {
|
|
129
|
+
config: {
|
|
130
|
+
cacheDir: string;
|
|
131
|
+
};
|
|
129
132
|
view: View;
|
|
130
133
|
viewParams: ViewParams;
|
|
131
134
|
runtimeEnvironment: RuntimeEnvironment;
|
|
@@ -203,6 +206,12 @@ export interface SsrRequestContext {
|
|
|
203
206
|
locale: string;
|
|
204
207
|
basePath: string;
|
|
205
208
|
}
|
|
209
|
+
export interface SsrRequestOptions {
|
|
210
|
+
bundleSpecifier: string;
|
|
211
|
+
cacheDir: string;
|
|
212
|
+
host?: string;
|
|
213
|
+
requestDepth?: number;
|
|
214
|
+
}
|
|
206
215
|
export interface SsrDataResponse {
|
|
207
216
|
props?: {
|
|
208
217
|
[prop: string]: Json;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -b"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.12.0-alpha.
|
|
11
|
+
"version": "0.12.0-alpha.20",
|
|
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": "ae1793e34eaf4e9b97996d7aea9031908b23a13a"
|
|
33
33
|
}
|