@lwrjs/types 0.12.0-alpha.12 → 0.12.0-alpha.13
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 +4 -1
- package/build/lwr-shim.d.ts +8 -0
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
|
@@ -243,6 +243,9 @@ export interface InterchangeableModuleRecord {
|
|
|
243
243
|
[target: string]: string;
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
+
export interface Instrumentation {
|
|
247
|
+
flush(): void;
|
|
248
|
+
}
|
|
246
249
|
export interface HooksPlugin {
|
|
247
250
|
/**
|
|
248
251
|
* Programmatically modify application and runtime configurations.
|
|
@@ -269,7 +272,7 @@ export interface HooksPlugin {
|
|
|
269
272
|
* - When running LWR server, these hooks are invoked after `initConfigs` hooks and before `onStart` hooks
|
|
270
273
|
* - When running LWR handler, these hooks are invoked before config normalization and `onStart` hooks
|
|
271
274
|
*/
|
|
272
|
-
initInstrumentation?: () =>
|
|
275
|
+
initInstrumentation?: () => Instrumentation;
|
|
273
276
|
/**
|
|
274
277
|
* Set a subset of LWR Configuration at runtime. Works in mrt
|
|
275
278
|
*
|
package/build/lwr-shim.d.ts
CHANGED
|
@@ -8,6 +8,14 @@ interface LwrShim {
|
|
|
8
8
|
getResourceProviders(context: Partial<ProviderContext>): ResourceProvider[];
|
|
9
9
|
getViewProviders(context: Partial<ProviderContext>): ViewProvider[];
|
|
10
10
|
getViewTransformers(context: Partial<ProviderContext>): ViewTransformPlugin[];
|
|
11
|
+
env: GlobalThisEnvironment;
|
|
12
|
+
}
|
|
13
|
+
export interface GlobalThisEnvironment {
|
|
14
|
+
SSR: string | undefined;
|
|
15
|
+
basePath: string | undefined;
|
|
16
|
+
locale: string | undefined;
|
|
17
|
+
assetBasePath: string | undefined;
|
|
18
|
+
uiBasePath: string | undefined;
|
|
11
19
|
}
|
|
12
20
|
declare global {
|
|
13
21
|
const LWR: LwrShim | undefined;
|
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.13",
|
|
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": "7a63e416f9e5f27b44331311a371f68e20ce685c"
|
|
33
33
|
}
|