|
1 | 1 | import { start, triggerAppChange } from 'single-spa'; |
2 | 2 | import { |
3 | | - setupApiModule, |
4 | | - renderLoadingSpinner, |
5 | | - type Config, |
6 | | - provide, |
7 | | - showNotification, |
8 | | - showActionableNotification, |
9 | | - showToast, |
10 | | - showSnackbar, |
11 | | - renderInlineNotifications, |
12 | | - renderActionableNotifications, |
13 | | - renderToasts, |
14 | | - renderSnackbars, |
15 | | - integrateBreakpoints, |
| 3 | + activateOfflineCapability, |
| 4 | + canAccessStorage, |
| 5 | + cleanupObsoleteFeatureFlags, |
16 | 6 | dispatchConnectivityChanged, |
17 | | - subscribeNotificationShown, |
18 | | - subscribeActionableNotificationShown, |
19 | | - subscribeToastShown, |
20 | | - subscribeSnackbarShown, |
21 | | - registerOmrsServiceWorker, |
22 | | - messageOmrsServiceWorker, |
23 | | - subscribeConnectivity, |
24 | | - getCurrentUser, |
25 | | - getConfig, |
26 | | - setupModals, |
27 | 7 | dispatchPrecacheStaticDependencies, |
28 | | - activateOfflineCapability, |
29 | | - subscribePrecacheStaticDependencies, |
30 | | - openmrsFetch, |
| 8 | + finishRegisteringAllApps, |
| 9 | + getConfig, |
| 10 | + getCurrentUser, |
| 11 | + integrateBreakpoints, |
31 | 12 | interpolateUrl, |
32 | | - type OpenmrsRoutes, |
33 | | - canAccessStorage, |
34 | | - localStorageRoutesPrefix, |
35 | 13 | isOpenmrsAppRoutes, |
36 | 14 | isOpenmrsRoutes, |
37 | | - setupHistory, |
| 15 | + localStorageRoutesPrefix, |
| 16 | + messageOmrsServiceWorker, |
| 17 | + openmrsFetch, |
| 18 | + provide, |
38 | 19 | registerApp, |
39 | | - finishRegisteringAllApps, |
| 20 | + registerOmrsServiceWorker, |
| 21 | + renderActionableNotifications, |
| 22 | + renderInlineNotifications, |
| 23 | + renderLoadingSpinner, |
| 24 | + renderSnackbars, |
| 25 | + renderToasts, |
| 26 | + restBaseUrl, |
| 27 | + setupApiModule, |
| 28 | + setupHistory, |
| 29 | + setupModals, |
| 30 | + showActionableNotification, |
| 31 | + showNotification, |
| 32 | + showSnackbar, |
| 33 | + showToast, |
| 34 | + subscribeActionableNotificationShown, |
| 35 | + subscribeConnectivity, |
| 36 | + subscribeNotificationShown, |
| 37 | + subscribePrecacheStaticDependencies, |
| 38 | + subscribeSnackbarShown, |
| 39 | + subscribeToastShown, |
40 | 40 | tryRegisterExtension, |
| 41 | + type Config, |
41 | 42 | type OpenmrsAppRoutes, |
42 | | - restBaseUrl, |
| 43 | + type OpenmrsRoutes, |
43 | 44 | } from '@openmrs/esm-framework/src/internal'; |
44 | 45 | import { setupI18n } from './locale'; |
45 | 46 | import { registerOptionalDependencyHandler } from './optionaldeps'; |
@@ -429,5 +430,6 @@ export function run(configUrls: Array<string>) { |
429 | 430 | .catch(handleInitFailure) |
430 | 431 | .then(closeLoading) |
431 | 432 | .then(offlineEnabled ? setupOffline : undefined) |
432 | | - .then(registerOptionalDependencyHandler); |
| 433 | + .then(registerOptionalDependencyHandler) |
| 434 | + .then(cleanupObsoleteFeatureFlags); |
433 | 435 | } |
0 commit comments