@linagora/linid-im-front-corelib 0.0.3 → 0.0.4
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/CHANGELOG.md +7 -0
- package/dist/core-lib.es.js +340 -345
- package/dist/core-lib.umd.js +1 -1
- package/dist/package.json +1 -1
- package/dist/types/src/lifecycle/skeleton.d.ts +6 -12
- package/dist/types/src/types/moduleLifecycle.d.ts +6 -12
- package/docs/module-lifecycle.md +44 -201
- package/package.json +1 -1
- package/src/lifecycle/skeleton.ts +7 -14
- package/src/types/moduleLifecycle.ts +6 -15
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
* LinID Identity Manager software.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
import type { App } from 'vue';
|
|
28
27
|
import type { ModuleHostConfig } from './module';
|
|
29
28
|
|
|
30
29
|
/**
|
|
@@ -67,7 +66,7 @@ export enum ModuleLifecyclePhase {
|
|
|
67
66
|
*
|
|
68
67
|
* Use this phase for cross-module integrations and final setup.
|
|
69
68
|
*/
|
|
70
|
-
POST_INIT = '
|
|
69
|
+
POST_INIT = 'postInit',
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
/**
|
|
@@ -112,52 +111,44 @@ export interface ModuleLifecycleHooks {
|
|
|
112
111
|
*
|
|
113
112
|
* Use this to prepare the module for initialization and validate
|
|
114
113
|
* that all required dependencies are available.
|
|
115
|
-
* @param app - The Vue application instance.
|
|
116
114
|
* @returns Promise resolving to the lifecycle result.
|
|
117
115
|
*/
|
|
118
|
-
|
|
116
|
+
setup(): Promise<ModuleLifecycleResult>;
|
|
119
117
|
|
|
120
118
|
/**
|
|
121
119
|
* Called to configure the module with application-specific settings.
|
|
122
120
|
*
|
|
123
121
|
* Use this to receive and validate the host configuration for your module.
|
|
124
122
|
* This is where you should check that all required configuration is present.
|
|
125
|
-
* @param app - The Vue application instance.
|
|
126
123
|
* @param config - Module-specific configuration from host (from module-<name>.json).
|
|
127
124
|
* @returns Promise resolving to the lifecycle result.
|
|
128
125
|
*/
|
|
129
|
-
|
|
130
|
-
app: App,
|
|
131
|
-
config: ModuleHostConfig
|
|
132
|
-
): Promise<ModuleLifecycleResult>;
|
|
126
|
+
configure(config: ModuleHostConfig): Promise<ModuleLifecycleResult>;
|
|
133
127
|
|
|
134
128
|
/**
|
|
135
129
|
* Called to initialize the module's core functionality.
|
|
136
130
|
*
|
|
137
131
|
* Use this to register Pinia stores and initialize any resources
|
|
138
132
|
* your module needs to function.
|
|
139
|
-
* @param app - The Vue application instance.
|
|
140
133
|
* @returns Promise resolving to the lifecycle result.
|
|
141
134
|
*/
|
|
142
|
-
|
|
135
|
+
initialize(): Promise<ModuleLifecycleResult>;
|
|
143
136
|
|
|
144
137
|
/**
|
|
145
138
|
* Called when the module is ready to be used.
|
|
146
139
|
*
|
|
147
140
|
* Use this to perform final checks and emit ready state.
|
|
148
141
|
* At this point, all other modules have completed initialization.
|
|
149
|
-
* @param app - The Vue application instance.
|
|
150
142
|
* @returns Promise resolving to the lifecycle result.
|
|
151
143
|
*/
|
|
152
|
-
|
|
144
|
+
ready(): Promise<ModuleLifecycleResult>;
|
|
153
145
|
|
|
154
146
|
/**
|
|
155
147
|
* Called after all modules have been initialized.
|
|
156
148
|
*
|
|
157
149
|
* Use this for cross-module integrations and final setup that requires
|
|
158
150
|
* all modules to be ready.
|
|
159
|
-
* @param app - The Vue application instance.
|
|
160
151
|
* @returns Promise resolving to the lifecycle result.
|
|
161
152
|
*/
|
|
162
|
-
|
|
153
|
+
postInit(): Promise<ModuleLifecycleResult>;
|
|
163
154
|
}
|