@tramvai/tokens-child-app 1.63.1 → 1.66.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 +6 -8
- package/lib/index.es.js +4 -9
- package/lib/index.js +4 -10
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -17,17 +17,15 @@ export declare const commandLineListTokens: {
|
|
|
17
17
|
* @public
|
|
18
18
|
* @description Contains child app configs that was used to figure out how to load child apps
|
|
19
19
|
*/
|
|
20
|
-
export declare const CHILD_APP_RESOLUTION_CONFIGS_TOKEN: ChildAppResolutionConfig[];
|
|
20
|
+
export declare const CHILD_APP_RESOLUTION_CONFIGS_TOKEN: (ChildAppResolutionConfig | ChildAppResolutionConfig[] | (() => ChildAppResolutionConfig | ChildAppResolutionConfig[]))[];
|
|
21
21
|
/**
|
|
22
22
|
* @public
|
|
23
|
-
* @description
|
|
23
|
+
* @description Used to resolve and extend resolution configs for child-apps
|
|
24
24
|
*/
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
export declare const CHILD_APP_GET_RESOLUTION_CONFIG_TOKEN: (config: ChildAppRequestConfig) => ResolutionConfig;
|
|
25
|
+
export declare const CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN: {
|
|
26
|
+
resolve(config: ChildAppRequestConfig): ResolutionConfig | null;
|
|
27
|
+
init(): Promise<void>;
|
|
28
|
+
};
|
|
31
29
|
/**
|
|
32
30
|
* @public
|
|
33
31
|
* @description Used to resolve external config with urls to external code entries
|
package/lib/index.es.js
CHANGED
|
@@ -19,17 +19,12 @@ const commandLineListTokens = {
|
|
|
19
19
|
* @public
|
|
20
20
|
* @description Contains child app configs that was used to figure out how to load child apps
|
|
21
21
|
*/
|
|
22
|
-
const CHILD_APP_RESOLUTION_CONFIGS_TOKEN = createToken('child-app resolve configs');
|
|
22
|
+
const CHILD_APP_RESOLUTION_CONFIGS_TOKEN = createToken('child-app resolve configs', multiOptions);
|
|
23
23
|
/**
|
|
24
24
|
* @public
|
|
25
|
-
* @description
|
|
25
|
+
* @description Used to resolve and extend resolution configs for child-apps
|
|
26
26
|
*/
|
|
27
|
-
const
|
|
28
|
-
/**
|
|
29
|
-
* @public
|
|
30
|
-
* @description Used to resolve resolution config for a specific child-app
|
|
31
|
-
*/
|
|
32
|
-
const CHILD_APP_GET_RESOLUTION_CONFIG_TOKEN = createToken('child-app get resolution config');
|
|
27
|
+
const CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN = createToken('child-app resolution config manager');
|
|
33
28
|
/**
|
|
34
29
|
* @public
|
|
35
30
|
* @description Used to resolve external config with urls to external code entries
|
|
@@ -111,4 +106,4 @@ const CHILD_APP_COMMON_INITIAL_STATE_TOKEN = createToken('child-app initialAppSt
|
|
|
111
106
|
*/
|
|
112
107
|
const CHILD_APP_INTERNAL_RENDER_TOKEN = createToken('child-app render');
|
|
113
108
|
|
|
114
|
-
export { CHILD_APP_COMMAND_LINE_RUNNER_TOKEN, CHILD_APP_COMMON_INITIAL_STATE_TOKEN, CHILD_APP_DI_MANAGER_TOKEN,
|
|
109
|
+
export { CHILD_APP_COMMAND_LINE_RUNNER_TOKEN, CHILD_APP_COMMON_INITIAL_STATE_TOKEN, CHILD_APP_DI_MANAGER_TOKEN, CHILD_APP_INTERNAL_ACTION_TOKEN, CHILD_APP_INTERNAL_CONFIG_TOKEN, CHILD_APP_INTERNAL_RENDER_TOKEN, CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN, CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN, CHILD_APP_LOADER_TOKEN, CHILD_APP_PRELOAD_MANAGER_TOKEN, CHILD_APP_RENDER_MANAGER_TOKEN, CHILD_APP_RESOLUTION_CONFIGS_TOKEN, CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN, CHILD_APP_RESOLVE_BASE_URL_TOKEN, CHILD_APP_RESOLVE_CONFIG_TOKEN, CHILD_APP_SINGLETON_DI_MANAGER_TOKEN, CHILD_APP_STATE_MANAGER_TOKEN, IS_CHILD_APP_DI_TOKEN, commandLineListTokens };
|
package/lib/index.js
CHANGED
|
@@ -23,17 +23,12 @@ const commandLineListTokens = {
|
|
|
23
23
|
* @public
|
|
24
24
|
* @description Contains child app configs that was used to figure out how to load child apps
|
|
25
25
|
*/
|
|
26
|
-
const CHILD_APP_RESOLUTION_CONFIGS_TOKEN = dippy.createToken('child-app resolve configs');
|
|
26
|
+
const CHILD_APP_RESOLUTION_CONFIGS_TOKEN = dippy.createToken('child-app resolve configs', multiOptions);
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* @description
|
|
29
|
+
* @description Used to resolve and extend resolution configs for child-apps
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
32
|
-
/**
|
|
33
|
-
* @public
|
|
34
|
-
* @description Used to resolve resolution config for a specific child-app
|
|
35
|
-
*/
|
|
36
|
-
const CHILD_APP_GET_RESOLUTION_CONFIG_TOKEN = dippy.createToken('child-app get resolution config');
|
|
31
|
+
const CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN = dippy.createToken('child-app resolution config manager');
|
|
37
32
|
/**
|
|
38
33
|
* @public
|
|
39
34
|
* @description Used to resolve external config with urls to external code entries
|
|
@@ -118,17 +113,16 @@ const CHILD_APP_INTERNAL_RENDER_TOKEN = dippy.createToken('child-app render');
|
|
|
118
113
|
exports.CHILD_APP_COMMAND_LINE_RUNNER_TOKEN = CHILD_APP_COMMAND_LINE_RUNNER_TOKEN;
|
|
119
114
|
exports.CHILD_APP_COMMON_INITIAL_STATE_TOKEN = CHILD_APP_COMMON_INITIAL_STATE_TOKEN;
|
|
120
115
|
exports.CHILD_APP_DI_MANAGER_TOKEN = CHILD_APP_DI_MANAGER_TOKEN;
|
|
121
|
-
exports.CHILD_APP_GET_RESOLUTION_CONFIG_TOKEN = CHILD_APP_GET_RESOLUTION_CONFIG_TOKEN;
|
|
122
116
|
exports.CHILD_APP_INTERNAL_ACTION_TOKEN = CHILD_APP_INTERNAL_ACTION_TOKEN;
|
|
123
117
|
exports.CHILD_APP_INTERNAL_CONFIG_TOKEN = CHILD_APP_INTERNAL_CONFIG_TOKEN;
|
|
124
118
|
exports.CHILD_APP_INTERNAL_RENDER_TOKEN = CHILD_APP_INTERNAL_RENDER_TOKEN;
|
|
125
119
|
exports.CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN = CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN;
|
|
126
120
|
exports.CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN = CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN;
|
|
127
121
|
exports.CHILD_APP_LOADER_TOKEN = CHILD_APP_LOADER_TOKEN;
|
|
128
|
-
exports.CHILD_APP_PRELOAD_EXTERNAL_CONFIG_TOKEN = CHILD_APP_PRELOAD_EXTERNAL_CONFIG_TOKEN;
|
|
129
122
|
exports.CHILD_APP_PRELOAD_MANAGER_TOKEN = CHILD_APP_PRELOAD_MANAGER_TOKEN;
|
|
130
123
|
exports.CHILD_APP_RENDER_MANAGER_TOKEN = CHILD_APP_RENDER_MANAGER_TOKEN;
|
|
131
124
|
exports.CHILD_APP_RESOLUTION_CONFIGS_TOKEN = CHILD_APP_RESOLUTION_CONFIGS_TOKEN;
|
|
125
|
+
exports.CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN = CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN;
|
|
132
126
|
exports.CHILD_APP_RESOLVE_BASE_URL_TOKEN = CHILD_APP_RESOLVE_BASE_URL_TOKEN;
|
|
133
127
|
exports.CHILD_APP_RESOLVE_CONFIG_TOKEN = CHILD_APP_RESOLVE_CONFIG_TOKEN;
|
|
134
128
|
exports.CHILD_APP_SINGLETON_DI_MANAGER_TOKEN = CHILD_APP_SINGLETON_DI_MANAGER_TOKEN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-child-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.66.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@tinkoff/dippy": "0.7.38",
|
|
25
|
-
"@tramvai/core": "1.
|
|
26
|
-
"@tramvai/tokens-common": "1.
|
|
25
|
+
"@tramvai/core": "1.66.0",
|
|
26
|
+
"@tramvai/tokens-common": "1.66.0",
|
|
27
27
|
"react": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"module": "lib/index.es.js"
|