@tramvai/tokens-child-app 1.72.2 → 1.73.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 +8 -1
- package/lib/index.es.js +7 -1
- package/lib/index.js +7 -0
- package/package.json +4 -3
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Action, Command } from '@tramvai/core';
|
|
2
1
|
import type { ComponentType } from 'react';
|
|
2
|
+
import type { Action, Command } from '@tramvai/core';
|
|
3
|
+
import type { StoreClass } from '@tramvai/state';
|
|
3
4
|
import type { ChildAppLoader, ChildAppDiManager, ChildAppPreloadManager, ChildAppCommandLineRunner, ChildAppRequestConfig, WrapperProps, RootStateSubscription, ChildAppStateManager, ChildAppFinalConfig, ChildAppRenderManager, ChildAppResolutionConfig, ResolutionConfig } from './types';
|
|
4
5
|
export * from './types';
|
|
5
6
|
/**
|
|
@@ -52,10 +53,16 @@ export declare const CHILD_APP_INTERNAL_CONFIG_TOKEN: ChildAppFinalConfig;
|
|
|
52
53
|
*/
|
|
53
54
|
export declare const CHILD_APP_INTERNAL_ACTION_TOKEN: Action<any, any, any>;
|
|
54
55
|
/**
|
|
56
|
+
* @deprecated use CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN
|
|
55
57
|
* @public
|
|
56
58
|
* @description Subscription on a root state updates
|
|
57
59
|
*/
|
|
58
60
|
export declare const CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN: RootStateSubscription;
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
* @description Root-app stores that might be used inside child-app
|
|
64
|
+
*/
|
|
65
|
+
export declare const CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN: string | StoreClass;
|
|
59
66
|
/**
|
|
60
67
|
* @public
|
|
61
68
|
* @description Allows to recreate token implementation the same way as in root di, but specific to child-app di
|
package/lib/index.es.js
CHANGED
|
@@ -51,10 +51,16 @@ const CHILD_APP_INTERNAL_CONFIG_TOKEN = createToken('child-app current config');
|
|
|
51
51
|
*/
|
|
52
52
|
const CHILD_APP_INTERNAL_ACTION_TOKEN = createToken('child-app action', multiOptions);
|
|
53
53
|
/**
|
|
54
|
+
* @deprecated use CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN
|
|
54
55
|
* @public
|
|
55
56
|
* @description Subscription on a root state updates
|
|
56
57
|
*/
|
|
57
58
|
const CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN = createToken('child-app root state subscription', multiOptions);
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
* @description Root-app stores that might be used inside child-app
|
|
62
|
+
*/
|
|
63
|
+
const CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN = createToken('child-app root state allowed store', multiOptions);
|
|
58
64
|
/**
|
|
59
65
|
* @public
|
|
60
66
|
* @description Allows to recreate token implementation the same way as in root di, but specific to child-app di
|
|
@@ -106,4 +112,4 @@ const CHILD_APP_COMMON_INITIAL_STATE_TOKEN = createToken('child-app initialAppSt
|
|
|
106
112
|
*/
|
|
107
113
|
const CHILD_APP_INTERNAL_RENDER_TOKEN = createToken('child-app render');
|
|
108
114
|
|
|
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 };
|
|
115
|
+
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_ALLOWED_STORE_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
|
@@ -55,10 +55,16 @@ const CHILD_APP_INTERNAL_CONFIG_TOKEN = dippy.createToken('child-app current con
|
|
|
55
55
|
*/
|
|
56
56
|
const CHILD_APP_INTERNAL_ACTION_TOKEN = dippy.createToken('child-app action', multiOptions);
|
|
57
57
|
/**
|
|
58
|
+
* @deprecated use CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN
|
|
58
59
|
* @public
|
|
59
60
|
* @description Subscription on a root state updates
|
|
60
61
|
*/
|
|
61
62
|
const CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN = dippy.createToken('child-app root state subscription', multiOptions);
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
* @description Root-app stores that might be used inside child-app
|
|
66
|
+
*/
|
|
67
|
+
const CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN = dippy.createToken('child-app root state allowed store', multiOptions);
|
|
62
68
|
/**
|
|
63
69
|
* @public
|
|
64
70
|
* @description Allows to recreate token implementation the same way as in root di, but specific to child-app di
|
|
@@ -117,6 +123,7 @@ exports.CHILD_APP_INTERNAL_ACTION_TOKEN = CHILD_APP_INTERNAL_ACTION_TOKEN;
|
|
|
117
123
|
exports.CHILD_APP_INTERNAL_CONFIG_TOKEN = CHILD_APP_INTERNAL_CONFIG_TOKEN;
|
|
118
124
|
exports.CHILD_APP_INTERNAL_RENDER_TOKEN = CHILD_APP_INTERNAL_RENDER_TOKEN;
|
|
119
125
|
exports.CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN = CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN;
|
|
126
|
+
exports.CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN = CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN;
|
|
120
127
|
exports.CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN = CHILD_APP_INTERNAL_ROOT_STATE_SUBSCRIPTION_TOKEN;
|
|
121
128
|
exports.CHILD_APP_LOADER_TOKEN = CHILD_APP_LOADER_TOKEN;
|
|
122
129
|
exports.CHILD_APP_PRELOAD_MANAGER_TOKEN = CHILD_APP_PRELOAD_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.73.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@tinkoff/dippy": "0.7.38",
|
|
25
|
-
"@tramvai/core": "1.
|
|
26
|
-
"@tramvai/
|
|
25
|
+
"@tramvai/core": "1.73.0",
|
|
26
|
+
"@tramvai/state": "1.73.0",
|
|
27
|
+
"@tramvai/tokens-common": "1.73.0",
|
|
27
28
|
"react": ">=16.8.0"
|
|
28
29
|
},
|
|
29
30
|
"module": "lib/index.es.js"
|