@tramvai/tokens-child-app 1.66.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 CHANGED
@@ -108,3 +108,8 @@ export declare const CHILD_APP_COMMON_INITIAL_STATE_TOKEN: Record<string, {
108
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
109
109
  */
110
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
@@ -105,5 +105,10 @@ const CHILD_APP_COMMON_INITIAL_STATE_TOKEN = createToken('child-app initialAppSt
105
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
106
106
  */
107
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);
108
113
 
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 };
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
@@ -109,11 +109,17 @@ const CHILD_APP_COMMON_INITIAL_STATE_TOKEN = dippy.createToken('child-app initia
109
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
110
110
  */
111
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);
112
117
 
113
118
  exports.CHILD_APP_COMMAND_LINE_RUNNER_TOKEN = CHILD_APP_COMMAND_LINE_RUNNER_TOKEN;
114
119
  exports.CHILD_APP_COMMON_INITIAL_STATE_TOKEN = CHILD_APP_COMMON_INITIAL_STATE_TOKEN;
115
120
  exports.CHILD_APP_DI_MANAGER_TOKEN = CHILD_APP_DI_MANAGER_TOKEN;
116
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;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-child-app",
3
- "version": "1.66.0",
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.66.0",
26
- "@tramvai/tokens-common": "1.66.0",
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"