@lwrjs/types 0.15.0-alpha.11 → 0.15.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 +10 -0
- package/build/index.d.ts +4 -2
- package/build/serviceAPI/serviceAPI.d.ts +11 -0
- package/build/views.d.ts +1 -0
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
|
@@ -41,11 +41,14 @@ export interface LwrAppBootstrapConfig {
|
|
|
41
41
|
configAsSrc?: boolean;
|
|
42
42
|
ssr?: boolean;
|
|
43
43
|
preloadData?: boolean;
|
|
44
|
+
proxyForSSR?: boolean;
|
|
45
|
+
includeCookiesForSSR?: boolean;
|
|
44
46
|
mixedMode?: boolean;
|
|
45
47
|
module?: string | undefined;
|
|
46
48
|
preloadModules?: string[];
|
|
47
49
|
lwrVersion?: string;
|
|
48
50
|
lwcVersion?: string;
|
|
51
|
+
preloadResources?: PreloadResources;
|
|
49
52
|
}
|
|
50
53
|
export interface NormalizedLwrAppBootstrapConfig extends Required<Omit<LwrAppBootstrapConfig, 'module'>> {
|
|
51
54
|
services: BootstrapService[];
|
|
@@ -312,5 +315,12 @@ export interface I18NConfig {
|
|
|
312
315
|
uriPattern?: UriPattern;
|
|
313
316
|
}
|
|
314
317
|
export type UriPattern = undefined | 'path-prefix';
|
|
318
|
+
export interface PreloadResources {
|
|
319
|
+
patterns: PreloadResourcePatterns[];
|
|
320
|
+
}
|
|
321
|
+
export interface PreloadResourcePatterns {
|
|
322
|
+
match: string;
|
|
323
|
+
attributes?: Record<string, string>;
|
|
324
|
+
}
|
|
315
325
|
export {};
|
|
316
326
|
//# sourceMappingURL=config.d.ts.map
|
package/build/index.d.ts
CHANGED
|
@@ -191,7 +191,9 @@ export interface RuntimeEnvironment extends ServerModeConfig {
|
|
|
191
191
|
export interface SourceMapRuntimeEnvironment extends RuntimeEnvironment {
|
|
192
192
|
sourceMapUrl?: string;
|
|
193
193
|
}
|
|
194
|
-
export type RuntimeParams = Record<string, string | number | boolean | null | undefined | Record<string, string
|
|
194
|
+
export type RuntimeParams = Record<string, string | number | boolean | null | undefined | Record<string, string>> & {
|
|
195
|
+
requestCache?: Record<string, any>;
|
|
196
|
+
};
|
|
195
197
|
export interface EnvironmentContext {
|
|
196
198
|
basePath: string;
|
|
197
199
|
locale: string;
|
|
@@ -642,7 +644,7 @@ export interface DecisionTree<Artifact extends SiteArtifact> {
|
|
|
642
644
|
/**
|
|
643
645
|
* Retrieve an artifact from the tree based on a path of decisions
|
|
644
646
|
*/
|
|
645
|
-
find(siteArtifactId: string | Partial<AbstractModuleId>, debug?: boolean, localeId?: string): Artifact | undefined;
|
|
647
|
+
find(siteArtifactId: string | Partial<AbstractModuleId>, debug?: boolean, ssr?: boolean, localeId?: string): Artifact | undefined;
|
|
646
648
|
}
|
|
647
649
|
export interface SiteMetadata {
|
|
648
650
|
/**
|
|
@@ -11,6 +11,16 @@ export interface ServerDataCallback {
|
|
|
11
11
|
interface RegisterServerDataCallback {
|
|
12
12
|
(hook: ServerDataCallback): void;
|
|
13
13
|
}
|
|
14
|
+
export type RequestHookParams = {
|
|
15
|
+
cookies: RequestHookCookies;
|
|
16
|
+
};
|
|
17
|
+
export type RequestHookCookies = Record<string, string> | null;
|
|
18
|
+
export interface RequestHook {
|
|
19
|
+
(params: RequestHookParams): void | null;
|
|
20
|
+
}
|
|
21
|
+
interface RegisterRequestHook {
|
|
22
|
+
(hook: RequestHook): void;
|
|
23
|
+
}
|
|
14
24
|
export interface ServiceAPI {
|
|
15
25
|
addLoaderPlugin: NoOp | RegisterLoaderHooks;
|
|
16
26
|
handleStaleModule: RegisterHandleStaleModuleHook;
|
|
@@ -20,6 +30,7 @@ export interface ServiceAPI {
|
|
|
20
30
|
export interface ServerServiceAPI {
|
|
21
31
|
addLoaderPlugin: NoOp | RegisterLoaderHooks;
|
|
22
32
|
addServerDataCallback: RegisterServerDataCallback;
|
|
33
|
+
addRequestHook: RegisterRequestHook;
|
|
23
34
|
}
|
|
24
35
|
export interface NoOp {
|
|
25
36
|
(): void;
|
package/build/views.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -b"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.15.0-alpha.
|
|
11
|
+
"version": "0.15.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": "687327a328b33a1abc3ac45e1406d72ebe7d37b4"
|
|
33
33
|
}
|