@tramvai/tokens-child-app 1.64.0 → 1.66.1
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 +11 -8
- package/lib/index.es.js +9 -9
- package/lib/index.js +10 -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
|
|
@@ -110,3 +108,8 @@ export declare const CHILD_APP_COMMON_INITIAL_STATE_TOKEN: Record<string, {
|
|
|
110
108
|
* @description Used as render function for a child app. Usually implemented as a wrapper over child app render itself with an additional logic for di and connections to root app
|
|
111
109
|
*/
|
|
112
110
|
export declare const CHILD_APP_INTERNAL_RENDER_TOKEN: ComponentType<WrapperProps<any>>;
|
|
111
|
+
/**
|
|
112
|
+
* @public
|
|
113
|
+
* @description Allows to subscribe to the event that happens right before React render itself
|
|
114
|
+
*/
|
|
115
|
+
export declare const CHILD_APP_INTERNAL_BEFORE_RENDER_TOKEN: () => Promise<void>;
|
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
|
|
@@ -110,5 +105,10 @@ const CHILD_APP_COMMON_INITIAL_STATE_TOKEN = createToken('child-app initialAppSt
|
|
|
110
105
|
* @description Used as render function for a child app. Usually implemented as a wrapper over child app render itself with an additional logic for di and connections to root app
|
|
111
106
|
*/
|
|
112
107
|
const CHILD_APP_INTERNAL_RENDER_TOKEN = createToken('child-app render');
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
* @description Allows to subscribe to the event that happens right before React render itself
|
|
111
|
+
*/
|
|
112
|
+
const CHILD_APP_INTERNAL_BEFORE_RENDER_TOKEN = createToken('child-app before-render', multiOptions);
|
|
113
113
|
|
|
114
|
-
export { CHILD_APP_COMMAND_LINE_RUNNER_TOKEN, CHILD_APP_COMMON_INITIAL_STATE_TOKEN, CHILD_APP_DI_MANAGER_TOKEN,
|
|
114
|
+
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_BEFORE_RENDER_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
|
|
@@ -114,21 +109,26 @@ const CHILD_APP_COMMON_INITIAL_STATE_TOKEN = dippy.createToken('child-app initia
|
|
|
114
109
|
* @description Used as render function for a child app. Usually implemented as a wrapper over child app render itself with an additional logic for di and connections to root app
|
|
115
110
|
*/
|
|
116
111
|
const CHILD_APP_INTERNAL_RENDER_TOKEN = dippy.createToken('child-app render');
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
* @description Allows to subscribe to the event that happens right before React render itself
|
|
115
|
+
*/
|
|
116
|
+
const CHILD_APP_INTERNAL_BEFORE_RENDER_TOKEN = dippy.createToken('child-app before-render', multiOptions);
|
|
117
117
|
|
|
118
118
|
exports.CHILD_APP_COMMAND_LINE_RUNNER_TOKEN = CHILD_APP_COMMAND_LINE_RUNNER_TOKEN;
|
|
119
119
|
exports.CHILD_APP_COMMON_INITIAL_STATE_TOKEN = CHILD_APP_COMMON_INITIAL_STATE_TOKEN;
|
|
120
120
|
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
121
|
exports.CHILD_APP_INTERNAL_ACTION_TOKEN = CHILD_APP_INTERNAL_ACTION_TOKEN;
|
|
122
|
+
exports.CHILD_APP_INTERNAL_BEFORE_RENDER_TOKEN = CHILD_APP_INTERNAL_BEFORE_RENDER_TOKEN;
|
|
123
123
|
exports.CHILD_APP_INTERNAL_CONFIG_TOKEN = CHILD_APP_INTERNAL_CONFIG_TOKEN;
|
|
124
124
|
exports.CHILD_APP_INTERNAL_RENDER_TOKEN = CHILD_APP_INTERNAL_RENDER_TOKEN;
|
|
125
125
|
exports.CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN = CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN;
|
|
126
126
|
exports.CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN = CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN;
|
|
127
127
|
exports.CHILD_APP_LOADER_TOKEN = CHILD_APP_LOADER_TOKEN;
|
|
128
|
-
exports.CHILD_APP_PRELOAD_EXTERNAL_CONFIG_TOKEN = CHILD_APP_PRELOAD_EXTERNAL_CONFIG_TOKEN;
|
|
129
128
|
exports.CHILD_APP_PRELOAD_MANAGER_TOKEN = CHILD_APP_PRELOAD_MANAGER_TOKEN;
|
|
130
129
|
exports.CHILD_APP_RENDER_MANAGER_TOKEN = CHILD_APP_RENDER_MANAGER_TOKEN;
|
|
131
130
|
exports.CHILD_APP_RESOLUTION_CONFIGS_TOKEN = CHILD_APP_RESOLUTION_CONFIGS_TOKEN;
|
|
131
|
+
exports.CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN = CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN;
|
|
132
132
|
exports.CHILD_APP_RESOLVE_BASE_URL_TOKEN = CHILD_APP_RESOLVE_BASE_URL_TOKEN;
|
|
133
133
|
exports.CHILD_APP_RESOLVE_CONFIG_TOKEN = CHILD_APP_RESOLVE_CONFIG_TOKEN;
|
|
134
134
|
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.1",
|
|
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.1",
|
|
26
|
+
"@tramvai/tokens-common": "1.66.1",
|
|
27
27
|
"react": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"module": "lib/index.es.js"
|