@tramvai/tokens-child-app 2.61.2 → 2.64.0
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/lib/index.d.ts +5 -5
- package/lib/types.d.ts +5 -4
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const CHILD_APP_RESOLUTION_CONFIGS_TOKEN: (ChildAppResolutionConf
|
|
|
34
34
|
__type?: "multi token" | undefined;
|
|
35
35
|
}) | (ChildAppResolutionConfig[] & {
|
|
36
36
|
__type?: "multi token" | undefined;
|
|
37
|
-
}) | ((() => ChildAppResolutionConfig | ChildAppResolutionConfig[]) & {
|
|
37
|
+
}) | ((() => ChildAppResolutionConfig | ChildAppResolutionConfig[] | Promise<ChildAppResolutionConfig> | Promise<ChildAppResolutionConfig[]>) & {
|
|
38
38
|
__type?: "multi token" | undefined;
|
|
39
39
|
});
|
|
40
40
|
/**
|
|
@@ -42,7 +42,7 @@ export declare const CHILD_APP_RESOLUTION_CONFIGS_TOKEN: (ChildAppResolutionConf
|
|
|
42
42
|
* @description Used to resolve and extend resolution configs for child-apps
|
|
43
43
|
*/
|
|
44
44
|
export declare const CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN: {
|
|
45
|
-
resolve(config: ChildAppRequestConfig): ResolutionConfig |
|
|
45
|
+
resolve(config: ChildAppRequestConfig): ResolutionConfig | undefined;
|
|
46
46
|
init(): Promise<void>;
|
|
47
47
|
} & {
|
|
48
48
|
__type?: "base token" | undefined;
|
|
@@ -51,16 +51,16 @@ export declare const CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN: {
|
|
|
51
51
|
* @public
|
|
52
52
|
* @description Used to resolve external config with urls to external code entries
|
|
53
53
|
*/
|
|
54
|
-
export declare const CHILD_APP_RESOLVE_CONFIG_TOKEN: ((config: ChildAppRequestConfig) => ChildAppFinalConfig) & {
|
|
54
|
+
export declare const CHILD_APP_RESOLVE_CONFIG_TOKEN: ((config: ChildAppRequestConfig) => ChildAppFinalConfig | undefined) & {
|
|
55
55
|
__type?: "base token" | undefined;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
* @public
|
|
59
59
|
* @description Base url for external urls for child apps on client
|
|
60
60
|
*/
|
|
61
|
-
export declare const CHILD_APP_RESOLVE_BASE_URL_TOKEN: string & {
|
|
61
|
+
export declare const CHILD_APP_RESOLVE_BASE_URL_TOKEN: (string & {
|
|
62
62
|
__type?: "base token" | undefined;
|
|
63
|
-
};
|
|
63
|
+
}) | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* @public
|
|
66
66
|
* @description Allows to preload child app for the specific page
|
package/lib/types.d.ts
CHANGED
|
@@ -26,7 +26,9 @@ export interface ChildAppExternalConfig {
|
|
|
26
26
|
}
|
|
27
27
|
export interface ChildAppReactConfig extends ChildAppRequestConfig {
|
|
28
28
|
props?: Record<string, any>;
|
|
29
|
-
fallback?: ComponentType<
|
|
29
|
+
fallback?: ComponentType<{
|
|
30
|
+
error?: Error;
|
|
31
|
+
}>;
|
|
30
32
|
}
|
|
31
33
|
export interface ResolutionConfig extends Partial<ChildAppExternalConfig> {
|
|
32
34
|
version: string;
|
|
@@ -53,8 +55,7 @@ export interface ChildAppPreloadManager {
|
|
|
53
55
|
getPreloadedList(): ChildAppFinalConfig[];
|
|
54
56
|
}
|
|
55
57
|
export interface ChildAppRenderManager {
|
|
56
|
-
getChildDi(request: ChildAppRequestConfig): [Container |
|
|
57
|
-
flush(): Promise<boolean>;
|
|
58
|
+
getChildDi(request: ChildAppRequestConfig): [Container | undefined, Promise<Container | undefined> | undefined];
|
|
58
59
|
clear(): void;
|
|
59
60
|
}
|
|
60
61
|
export interface ChildAppLoader {
|
|
@@ -67,7 +68,7 @@ export interface ChildAppStateManager {
|
|
|
67
68
|
getState(): any;
|
|
68
69
|
}
|
|
69
70
|
export interface ChildAppDiManager {
|
|
70
|
-
getChildDi(config: ChildAppFinalConfig): Container |
|
|
71
|
+
getChildDi(config: ChildAppFinalConfig): Container | undefined;
|
|
71
72
|
forEachChildDi(callback: (di: Container) => void): void;
|
|
72
73
|
}
|
|
73
74
|
export interface ChildAppCommandLineRunner {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-child-app",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@tinkoff/dippy": "0.8.11",
|
|
25
|
-
"@tramvai/core": "2.
|
|
26
|
-
"@tramvai/state": "2.
|
|
27
|
-
"@tramvai/tokens-common": "2.
|
|
25
|
+
"@tramvai/core": "2.64.0",
|
|
26
|
+
"@tramvai/state": "2.64.0",
|
|
27
|
+
"@tramvai/tokens-common": "2.64.0",
|
|
28
28
|
"react": ">=16.14.0"
|
|
29
29
|
},
|
|
30
30
|
"module": "lib/index.es.js"
|