@tramvai/tokens-child-app 1.68.1 → 1.71.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 CHANGED
@@ -108,8 +108,3 @@ 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,10 +105,5 @@ 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);
113
108
 
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 };
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
@@ -109,17 +109,11 @@ 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);
117
112
 
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
116
  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
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;
package/lib/types.d.ts CHANGED
@@ -46,6 +46,7 @@ export interface ChildAppPreloadManager {
46
46
  preload(config: ChildAppRequestConfig): Promise<void>;
47
47
  isPreloaded(config: ChildAppRequestConfig): boolean;
48
48
  runPreloaded(): Promise<void>;
49
+ pageRender(): void;
49
50
  clearPreloaded(): Promise<void>;
50
51
  getPreloadedList(): ChildAppRequestConfig[];
51
52
  }
@@ -83,6 +84,6 @@ declare type OptionalStore = {
83
84
  };
84
85
  export interface RootStateSubscription {
85
86
  stores: Array<Store | OptionalStore>;
86
- listener: (state: Record<string, any>) => void | Promise<void>;
87
+ listener: (state: Record<string, any>) => void;
87
88
  }
88
89
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-child-app",
3
- "version": "1.68.1",
3
+ "version": "1.71.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.68.1",
26
- "@tramvai/tokens-common": "1.68.1",
25
+ "@tramvai/core": "1.71.0",
26
+ "@tramvai/tokens-common": "1.71.0",
27
27
  "react": ">=16.8.0"
28
28
  },
29
29
  "module": "lib/index.es.js"