@lwrjs/types 0.12.0-alpha.10 → 0.12.0-alpha.12
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 +10 -1
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssetProvider, AssetTransformPlugin, BundleProvider, CacheResponse, LwrService, ModuleProvider, RenderOptions, ResourceProvider, RouteHandlerViewResponse, RuntimeEnvironment, ServerTypes, ServiceCtor, Specifier, UriTransformPlugin, ViewParams, ViewProvider, ViewRequest, ViewResponse, ViewTransformPlugin } from './index';
|
|
1
|
+
import type { AssetProvider, AssetTransformPlugin, BundleProvider, CacheResponse, LwrService, ModuleProvider, RenderOptions, ResourceProvider, RouteHandlerViewResponse, RuntimeEnvironment, ServerContext, ServerTypes, ServiceCtor, Specifier, UriTransformPlugin, ViewParams, ViewProvider, ViewRequest, ViewResponse, ViewTransformPlugin } from './index';
|
|
2
2
|
export interface View {
|
|
3
3
|
id: string;
|
|
4
4
|
rootComponent?: string;
|
|
@@ -281,6 +281,15 @@ export interface HooksPlugin {
|
|
|
281
281
|
* For the `createHandler` runtime, these hooks are invoked during server context initialization.
|
|
282
282
|
*/
|
|
283
283
|
onStart?: (config: OnStartConfig) => void;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* Attach instantiated route handlers, providers, and transformers directly to the server context.
|
|
287
|
+
*
|
|
288
|
+
* @remarks
|
|
289
|
+
* This is a temporary hook to enable a tactical solution for LWR@MRT local development
|
|
290
|
+
*
|
|
291
|
+
*/
|
|
292
|
+
setupServerContext?: (context: ServerContext, startHooks: HooksPlugin[]) => Promise<void> | void;
|
|
284
293
|
}
|
|
285
294
|
export interface Locale {
|
|
286
295
|
id: string;
|
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.12",
|
|
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": "bc8a88bce246e9ec00641955152de526ea030ebb"
|
|
33
33
|
}
|