@finsemble/finsemble-ui 10.0.0-iocd.8 → 10.0.3-beta.2
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/FEA.d.ts +1440 -1430
- package/FEA.d.ts.map +1 -1
- package/FEA.js +10 -10
- package/FEA.js.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.d.ts +235 -235
- package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js +1331 -1308
- package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
- package/clients/Interop/InteropAdmin.d.ts +29 -29
- package/clients/Interop/InteropAdmin.js +98 -98
- package/clients/Interop/InteropAdmin.js.map +1 -1
- package/clients/Interop/index.d.ts +1 -1
- package/clients/Interop/index.js +2 -2
- package/clients/Interop/types.d.ts +445 -443
- package/clients/Interop/types.d.ts.map +1 -1
- package/clients/Interop/types.js +45 -45
- package/clients/Interop/types.js.map +1 -1
- package/clients/Startup/FSBLDesktop.d.ts +157 -157
- package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
- package/clients/Startup/FSBLDesktop.js +447 -430
- package/clients/Startup/FSBLDesktop.js.map +1 -1
- package/clients/Startup/FSBLFreestanding.d.ts +27 -27
- package/clients/Startup/FSBLFreestanding.js +129 -129
- package/clients/Startup/FSBLFreestanding.js.map +1 -1
- package/clients/Startup/FSBLService.d.ts +7 -7
- package/clients/Startup/FSBLService.js +57 -57
- package/clients/Startup/RouterConfig.d.ts +37 -37
- package/clients/Startup/RouterConfig.d.ts.map +1 -1
- package/clients/Startup/RouterConfig.js +124 -115
- package/clients/Startup/RouterConfig.js.map +1 -1
- package/clients/Startup/SDDListeners.d.ts +11 -11
- package/clients/Startup/SDDListeners.d.ts.map +1 -1
- package/clients/Startup/SDDListeners.js +96 -96
- package/clients/Startup/SDDListeners.js.map +1 -1
- package/clients/Startup/Startup.d.ts +58 -58
- package/clients/Startup/Startup.js +101 -101
- package/clients/Startup/Startup.js.map +1 -1
- package/clients/Startup/index.d.ts +1 -1
- package/clients/Startup/index.js +2 -2
- package/clients/Startup/types.d.ts +81 -81
- package/clients/Startup/types.d.ts.map +1 -1
- package/clients/Startup/types.js +1 -1
- package/clients/Startup/unhandledErrors.d.ts +6 -6
- package/clients/Startup/unhandledErrors.d.ts.map +1 -1
- package/clients/Startup/unhandledErrors.js +77 -75
- package/clients/Startup/unhandledErrors.js.map +1 -1
- package/clients/Startup/windowStartup.d.ts +17 -17
- package/clients/Startup/windowStartup.d.ts.map +1 -1
- package/clients/Startup/windowStartup.js +491 -478
- package/clients/Startup/windowStartup.js.map +1 -1
- package/clients/StoreModel.d.ts +394 -394
- package/clients/StoreModel.d.ts.map +1 -1
- package/clients/StoreModel.js +906 -906
- package/clients/StoreModel.js.map +1 -1
- package/clients/appsClient.d.ts +618 -476
- package/clients/appsClient.d.ts.map +1 -1
- package/clients/appsClient.js +729 -710
- package/clients/appsClient.js.map +1 -1
- package/clients/authenticationClient.d.ts +190 -190
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +247 -247
- package/clients/authenticationClient.js.map +1 -1
- package/clients/configClient.d.ts +638 -638
- package/clients/configClient.d.ts.map +1 -1
- package/clients/configClient.js +969 -969
- package/clients/configClient.js.map +1 -1
- package/clients/controller/DialogManagerClientController.d.ts +77 -77
- package/clients/controller/DialogManagerClientController.js +215 -215
- package/clients/controller/DialogManagerClientController.js.map +1 -1
- package/clients/dialogManagerClient.d.ts +186 -186
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +479 -475
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/distributedStoreClient.d.ts +150 -151
- package/clients/distributedStoreClient.d.ts.map +1 -1
- package/clients/distributedStoreClient.js +256 -253
- package/clients/distributedStoreClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +128 -128
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +648 -648
- package/clients/hotkeyClient.js.map +1 -1
- package/clients/index.d.ts +16 -16
- package/clients/index.js +18 -18
- package/clients/launcherClient.d.ts +123 -123
- package/clients/launcherClient.d.ts.map +1 -1
- package/clients/launcherClient.js +64 -64
- package/clients/logger.d.ts +363 -363
- package/clients/logger.d.ts.map +1 -1
- package/clients/logger.js +940 -931
- package/clients/logger.js.map +1 -1
- package/clients/notificationClient.d.ts +310 -310
- package/clients/notificationClient.d.ts.map +1 -1
- package/clients/notificationClient.js +557 -557
- package/clients/notificationClient.js.map +1 -1
- package/clients/routerClient.d.ts +520 -520
- package/clients/routerClient.d.ts.map +1 -1
- package/clients/routerClient.js +1448 -1416
- package/clients/routerClient.js.map +1 -1
- package/clients/searchClient.d.ts +156 -156
- package/clients/searchClient.d.ts.map +1 -1
- package/clients/searchClient.js +282 -282
- package/clients/searchClient.js.map +1 -1
- package/clients/storageClient.d.ts +235 -235
- package/clients/storageClient.d.ts.map +1 -1
- package/clients/storageClient.js +308 -308
- package/clients/storageClient.js.map +1 -1
- package/clients/windowClient.d.ts +714 -712
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +1072 -1070
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +511 -511
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +758 -746
- package/clients/workspaceClient.js.map +1 -1
- package/common/Desktop.d.ts +56 -56
- package/common/Desktop.d.ts.map +1 -1
- package/common/Desktop.js +109 -97
- package/common/Desktop.js.map +1 -1
- package/common/FinsembleWindow.d.ts +823 -813
- package/common/FinsembleWindow.d.ts.map +1 -1
- package/common/FinsembleWindow.js +1458 -1416
- package/common/FinsembleWindow.js.map +1 -1
- package/common/Globals.d.ts +96 -96
- package/common/Globals.d.ts.map +1 -1
- package/common/Globals.js +29 -29
- package/common/Monitors.d.ts +160 -155
- package/common/Monitors.d.ts.map +1 -1
- package/common/Monitors.js +504 -447
- package/common/Monitors.js.map +1 -1
- package/common/Performance.d.ts +6 -6
- package/common/Performance.js +12 -12
- package/common/REST.d.ts +16 -16
- package/common/REST.js +84 -84
- package/common/REST.js.map +1 -1
- package/common/Singleton.d.ts +74 -72
- package/common/Singleton.d.ts.map +1 -1
- package/common/Singleton.js +95 -95
- package/common/Singleton.js.map +1 -1
- package/common/configUtil.d.ts +58 -58
- package/common/configUtil.d.ts.map +1 -1
- package/common/configUtil.js +347 -347
- package/common/configUtil.js.map +1 -1
- package/common/constants.d.ts +101 -101
- package/common/constants.js +171 -171
- package/common/dependencyManager.d.ts +170 -171
- package/common/dependencyManager.d.ts.map +1 -1
- package/common/dependencyManager.js +383 -383
- package/common/dependencyManager.js.map +1 -1
- package/common/events/FinsembleEvent.d.ts +29 -29
- package/common/events/FinsembleEvent.d.ts.map +1 -1
- package/common/events/FinsembleEvent.js +71 -71
- package/common/events/FinsembleEvent.js.map +1 -1
- package/common/events/PublicEventManager.d.ts +69 -68
- package/common/events/PublicEventManager.d.ts.map +1 -1
- package/common/events/PublicEventManager.js +192 -192
- package/common/events/PublicEventManager.js.map +1 -1
- package/common/index.d.ts +3 -3
- package/common/index.js +5 -5
- package/common/redux/getRemoteStore.d.ts +53 -53
- package/common/redux/getRemoteStore.d.ts.map +1 -1
- package/common/redux/getRemoteStore.js +50 -50
- package/common/redux/remoteReduxEnhancer.d.ts +28 -28
- package/common/redux/remoteReduxEnhancer.d.ts.map +1 -1
- package/common/redux/remoteReduxEnhancer.js +228 -218
- package/common/redux/remoteReduxEnhancer.js.map +1 -1
- package/common/redux/types.d.ts +26 -26
- package/common/redux/types.d.ts.map +1 -1
- package/common/redux/types.js +1 -1
- package/common/system.d.ts +328 -308
- package/common/system.d.ts.map +1 -1
- package/common/system.js +559 -545
- package/common/system.js.map +1 -1
- package/common/systemManagerClient.d.ts +91 -91
- package/common/systemManagerClient.d.ts.map +1 -1
- package/common/systemManagerClient.js +189 -189
- package/common/systemManagerClient.js.map +1 -1
- package/common/testPoint.d.ts +56 -56
- package/common/testPoint.js +105 -105
- package/common/testPoint.js.map +1 -1
- package/common/toast.d.ts +35 -35
- package/common/toast.d.ts.map +1 -1
- package/common/toast.js +93 -87
- package/common/toast.js.map +1 -1
- package/common/util.d.ts +141 -136
- package/common/util.d.ts.map +1 -1
- package/common/util.js +458 -445
- package/common/util.js.map +1 -1
- package/deprecated/SmartDesktopClient.d.ts +18 -18
- package/deprecated/SmartDesktopClient.js +18 -18
- package/deprecated/baseClient.d.ts +87 -87
- package/deprecated/baseClient.d.ts.map +1 -1
- package/deprecated/baseClient.js +123 -123
- package/deprecated/baseClient.js.map +1 -1
- package/deprecated/deprecatedFunctions.d.ts +44 -44
- package/deprecated/deprecatedFunctions.d.ts.map +1 -1
- package/deprecated/deprecatedFunctions.js +199 -199
- package/deprecated/deprecatedFunctions.js.map +1 -1
- package/deprecated/deprecatedlauncherClient.d.ts +162 -162
- package/deprecated/deprecatedlauncherClient.d.ts.map +1 -1
- package/deprecated/deprecatedlauncherClient.js +285 -285
- package/deprecated/deprecatedlauncherClient.js.map +1 -1
- package/deprecated/dragAndDropClient.d.ts +288 -288
- package/deprecated/dragAndDropClient.d.ts.map +1 -1
- package/deprecated/dragAndDropClient.js +753 -698
- package/deprecated/dragAndDropClient.js.map +1 -1
- package/deprecated/index.d.ts +1 -1
- package/deprecated/index.d.ts.map +1 -1
- package/deprecated/index.js +1 -1
- package/deprecated/legacyUIComponentNames.d.ts +23 -23
- package/deprecated/legacyUIComponentNames.js +23 -23
- package/deprecated/linkerClient.d.ts +422 -422
- package/deprecated/linkerClient.d.ts.map +1 -1
- package/deprecated/linkerClient.js +892 -892
- package/deprecated/linkerClient.js.map +1 -1
- package/index.d.ts +65 -70
- package/index.d.ts.map +1 -1
- package/index.js +3 -5
- package/index.js.map +1 -1
- package/main.d.ts +725 -862
- package/main.d.ts.map +1 -1
- package/main.js +85 -85
- package/package.json +10 -14
- package/platform/preloads/BloombergBridgeClient.d.ts +453 -453
- package/platform/preloads/BloombergBridgeClient.d.ts.map +1 -1
- package/platform/preloads/BloombergBridgeClient.js +568 -568
- package/platform/preloads/BloombergBridgeClient.js.map +1 -1
- package/platform/services/Interop/AuthSignVerify.d.ts +50 -50
- package/platform/services/Interop/AuthSignVerify.js +283 -283
- package/platform/services/Interop/AuthSignVerify.js.map +1 -1
- package/platform/services/Interop/modules/actions.d.ts +16 -16
- package/platform/services/Interop/modules/actions.js +10 -10
- package/platform/services/Interop/modules/types.d.ts +182 -182
- package/platform/services/Interop/modules/types.d.ts.map +1 -1
- package/platform/services/Interop/modules/types.js +1 -1
- package/platform/services/Interop/types.d.ts +634 -632
- package/platform/services/Interop/types.d.ts.map +1 -1
- package/platform/services/Interop/types.js +25 -25
- package/platform/services/Interop/types.js.map +1 -1
- package/platform/services/baseService.d.ts +82 -82
- package/platform/services/baseService.d.ts.map +1 -1
- package/platform/services/baseService.js +300 -300
- package/platform/services/baseService.js.map +1 -1
- package/platform/services/bloombergBridge/lib/types.d.ts +108 -108
- package/platform/services/bloombergBridge/lib/types.d.ts.map +1 -1
- package/platform/services/bloombergBridge/lib/types.js +39 -39
- package/platform/services/config/types.d.ts +42 -42
- package/platform/services/config/types.d.ts.map +1 -1
- package/platform/services/config/types.js +1 -1
- package/platform/services/distributedStore/storeUtils.d.ts +67 -67
- package/platform/services/distributedStore/storeUtils.d.ts.map +1 -1
- package/platform/services/distributedStore/storeUtils.js +238 -238
- package/platform/services/distributedStore/storeUtils.js.map +1 -1
- package/platform/services/index.d.ts +5 -5
- package/platform/services/index.js +9 -9
- package/platform/services/logger/types.d.ts +78 -78
- package/platform/services/logger/types.d.ts.map +1 -1
- package/platform/services/logger/types.js +1 -1
- package/platform/services/notification/index.d.ts +1 -1
- package/platform/services/notification/index.js +2 -2
- package/platform/services/notification/types/Action.d.ts +12 -12
- package/platform/services/notification/types/Action.js +7 -7
- package/platform/services/notification/types/ActionTypes.d.ts +16 -16
- package/platform/services/notification/types/ActionTypes.js +18 -18
- package/platform/services/notification/types/Callbacks.d.ts +7 -7
- package/platform/services/notification/types/Callbacks.js +1 -1
- package/platform/services/notification/types/Filter.d.ts +22 -22
- package/platform/services/notification/types/Filter.js +19 -19
- package/platform/services/notification/types/IAction.d.ts +51 -51
- package/platform/services/notification/types/IAction.js +1 -1
- package/platform/services/notification/types/IFilter.d.ts +24 -24
- package/platform/services/notification/types/IFilter.js +1 -1
- package/platform/services/notification/types/ILastIssued.d.ts +8 -8
- package/platform/services/notification/types/ILastIssued.js +1 -1
- package/platform/services/notification/types/IMuteFilter.d.ts +7 -7
- package/platform/services/notification/types/IMuteFilter.js +4 -4
- package/platform/services/notification/types/INotification.d.ts +100 -100
- package/platform/services/notification/types/INotification.d.ts.map +1 -1
- package/platform/services/notification/types/INotification.js +1 -1
- package/platform/services/notification/types/INotificationClient.d.ts +94 -94
- package/platform/services/notification/types/INotificationClient.js +1 -1
- package/platform/services/notification/types/INotificationHistoryOptions.d.ts +18 -18
- package/platform/services/notification/types/INotificationHistoryOptions.d.ts.map +1 -1
- package/platform/services/notification/types/INotificationHistoryOptions.js +1 -1
- package/platform/services/notification/types/INotificationService.d.ts +57 -57
- package/platform/services/notification/types/INotificationService.js +1 -1
- package/platform/services/notification/types/IPerformedAction.d.ts +9 -9
- package/platform/services/notification/types/IPerformedAction.js +1 -1
- package/platform/services/notification/types/ISnoozeTimer.d.ts +13 -13
- package/platform/services/notification/types/ISnoozeTimer.js +9 -9
- package/platform/services/notification/types/ISubscription.d.ts +15 -15
- package/platform/services/notification/types/ISubscription.js +1 -1
- package/platform/services/notification/types/LastIssued.d.ts +10 -10
- package/platform/services/notification/types/LastIssued.js +6 -6
- package/platform/services/notification/types/Meta.d.ts +12 -12
- package/platform/services/notification/types/Meta.js +6 -6
- package/platform/services/notification/types/Notification.d.ts +29 -29
- package/platform/services/notification/types/Notification.js +16 -16
- package/platform/services/notification/types/NotificationConfig.d.ts +21 -21
- package/platform/services/notification/types/NotificationConfig.js +1 -1
- package/platform/services/notification/types/NotificationHookTypes.d.ts +6 -6
- package/platform/services/notification/types/NotificationHookTypes.js +1 -1
- package/platform/services/notification/types/PerformedAction.d.ts +10 -10
- package/platform/services/notification/types/PerformedAction.js +7 -7
- package/platform/services/notification/types/SnoozeTimer.d.ts +7 -7
- package/platform/services/notification/types/SnoozeTimer.js +2 -2
- package/platform/services/notification/types/Subscription.d.ts +13 -13
- package/platform/services/notification/types/Subscription.js +14 -14
- package/platform/services/notification/types/index.d.ts +45 -45
- package/platform/services/notification/types/index.d.ts.map +1 -1
- package/platform/services/notification/types/index.js +23 -23
- package/platform/services/router/routerTransport.d.ts +80 -80
- package/platform/services/router/routerTransport.d.ts.map +1 -1
- package/platform/services/router/routerTransport.js +486 -476
- package/platform/services/router/routerTransport.js.map +1 -1
- package/platform/services/router/types.d.ts +214 -212
- package/platform/services/router/types.d.ts.map +1 -1
- package/platform/services/router/types.js +1 -1
- package/platform/services/search/index.d.ts +1 -1
- package/platform/services/search/index.js +2 -2
- package/platform/services/search/types.d.ts +29 -29
- package/platform/services/search/types.d.ts.map +1 -1
- package/platform/services/search/types.js +1 -1
- package/platform/services/storage/adapters/base.d.ts +3 -3
- package/platform/services/storage/adapters/base.js +63 -63
- package/platform/services/storage/adapters/base.js.map +1 -1
- package/platform/services/storage/adapters/types.d.ts +21 -21
- package/platform/services/storage/adapters/types.d.ts.map +1 -1
- package/platform/services/storage/adapters/types.js +1 -1
- package/platform/services/systemManager/_constants.d.ts +9 -9
- package/platform/services/systemManager/_constants.js +22 -22
- package/platform/services/systemManager/common.d.ts +13 -13
- package/platform/services/systemManager/common.js +19 -19
- package/platform/services/systemManager/types.d.ts +49 -48
- package/platform/services/systemManager/types.d.ts.map +1 -1
- package/platform/services/systemManager/types.js +11 -11
- package/platform/services/types.d.ts +10 -10
- package/platform/services/types.d.ts.map +1 -1
- package/platform/services/types.js +9 -9
- package/platform/services/window/index.d.ts +1 -1
- package/platform/services/window/index.js +2 -2
- package/platform/services/window/modules/actions.d.ts +76 -70
- package/platform/services/window/modules/actions.d.ts.map +1 -1
- package/platform/services/window/modules/actions.js +67 -62
- package/platform/services/window/modules/actions.js.map +1 -1
- package/platform/services/window/types.d.ts +1211 -1194
- package/platform/services/window/types.d.ts.map +1 -1
- package/platform/services/window/types.js +6 -1
- package/platform/services/window/types.js.map +1 -1
- package/platform/services/workspace/index.d.ts +1 -1
- package/platform/services/workspace/index.js +2 -2
- package/platform/services/workspace/types.d.ts +78 -78
- package/platform/services/workspace/types.d.ts.map +1 -1
- package/platform/services/workspace/types.js +1 -1
- package/platform/services/workspace/workspaceAdminAPI.d.ts +26 -26
- package/platform/services/workspace/workspaceAdminAPI.d.ts.map +1 -1
- package/platform/services/workspace/workspaceAdminAPI.js +44 -44
- package/platform/services/workspace/workspaceAdminAPI.js.map +1 -1
- package/react/actions/favoriteActions.d.ts +21 -21
- package/react/actions/favoriteActions.d.ts.map +1 -1
- package/react/actions/favoriteActions.js +8 -8
- package/react/actions/linkerActions.d.ts +48 -48
- package/react/actions/linkerActions.d.ts.map +1 -1
- package/react/actions/linkerActions.js +8 -8
- package/react/actions/menuActions.d.ts +16 -16
- package/react/actions/menuActions.d.ts.map +1 -1
- package/react/actions/menuActions.js +9 -9
- package/react/actions/rootActions.d.ts +9 -9
- package/react/actions/rootActions.d.ts.map +1 -1
- package/react/actions/rootActions.js +2 -2
- package/react/actions/searchActions.d.ts +12 -12
- package/react/actions/searchActions.d.ts.map +1 -1
- package/react/actions/searchActions.js +7 -7
- package/react/actions/smartDesktopDesignerActions.d.ts +56 -56
- package/react/actions/smartDesktopDesignerActions.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.js +27 -27
- package/react/actions/toolbarActions.d.ts +61 -61
- package/react/actions/toolbarActions.d.ts.map +1 -1
- package/react/actions/toolbarActions.js +24 -24
- package/react/actions/workspaceActions.d.ts +11 -11
- package/react/actions/workspaceActions.d.ts.map +1 -1
- package/react/actions/workspaceActions.js +6 -6
- package/react/assets/css/advancedAppLauncher.css +1 -1
- package/react/assets/css/appCatalog.css +4 -4
- package/react/assets/css/dialogs.css +2 -6
- package/react/assets/css/favorites.css +1 -3
- package/react/assets/css/finsemble.css +0 -1
- package/react/assets/css/font-finance.css +4 -282
- package/react/assets/css/menus.css +5 -1
- package/react/assets/css/search.css +1 -2
- package/react/assets/css/toolbar.css +9 -1
- package/react/assets/css/userPreferences.css +1 -1
- package/react/components/FinsembleCSS.d.ts +17 -17
- package/react/components/FinsembleCSS.d.ts.map +1 -1
- package/react/components/FinsembleCSS.js +27 -26
- package/react/components/FinsembleCSS.js.map +1 -1
- package/react/components/FinsembleProvider.d.ts +28 -28
- package/react/components/FinsembleProvider.d.ts.map +1 -1
- package/react/components/FinsembleProvider.js +33 -33
- package/react/components/appCatalog/AppCatalog.d.ts +13 -13
- package/react/components/appCatalog/AppCatalog.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalog.js +33 -33
- package/react/components/appCatalog/AppCatalogComponent.d.ts +98 -98
- package/react/components/appCatalog/AppCatalogComponent.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js +307 -307
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/appCatalog/components/AppCard.d.ts +64 -64
- package/react/components/appCatalog/components/AppCard.d.ts.map +1 -1
- package/react/components/appCatalog/components/AppCard.js +200 -200
- package/react/components/appCatalog/components/AppCard.js.map +1 -1
- package/react/components/appCatalog/components/AppList.d.ts +8 -8
- package/react/components/appCatalog/components/AppList.d.ts.map +1 -1
- package/react/components/appCatalog/components/AppList.js +25 -25
- package/react/components/appCatalog/components/AppList.js.map +1 -1
- package/react/components/appCatalog/components/AppResults.d.ts +25 -21
- package/react/components/appCatalog/components/AppResults.d.ts.map +1 -1
- package/react/components/appCatalog/components/AppResults.js +71 -71
- package/react/components/appCatalog/components/AppResults.js.map +1 -1
- package/react/components/appCatalog/components/Carousel.d.ts +42 -42
- package/react/components/appCatalog/components/Carousel.d.ts.map +1 -1
- package/react/components/appCatalog/components/Carousel.js +126 -126
- package/react/components/appCatalog/components/Carousel.js.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.d.ts +11 -7
- package/react/components/appCatalog/components/EmptyResults.d.ts.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.js +12 -12
- package/react/components/appCatalog/components/Hero.d.ts +42 -42
- package/react/components/appCatalog/components/Hero.d.ts.map +1 -1
- package/react/components/appCatalog/components/Hero.js +83 -83
- package/react/components/appCatalog/components/Hero.js.map +1 -1
- package/react/components/appCatalog/components/Home.d.ts +29 -21
- package/react/components/appCatalog/components/Home.d.ts.map +1 -1
- package/react/components/appCatalog/components/Home.js +28 -28
- package/react/components/appCatalog/components/SearchBar.d.ts +57 -57
- package/react/components/appCatalog/components/SearchBar.js +107 -107
- package/react/components/appCatalog/components/SearchBar.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.d.ts +15 -11
- package/react/components/appCatalog/components/Showcase/AppDescription.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.js +15 -15
- package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts +18 -14
- package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js +30 -30
- package/react/components/appCatalog/components/Showcase/AppShowcase.d.ts +37 -37
- package/react/components/appCatalog/components/Showcase/AppShowcase.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js +128 -128
- package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.d.ts +21 -21
- package/react/components/appCatalog/components/Showcase/Header.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.js +58 -58
- package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +14 -13
- package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.js +25 -25
- package/react/components/appCatalog/components/Showcase/Modal.d.ts +18 -18
- package/react/components/appCatalog/components/Showcase/Modal.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/Modal.js +23 -23
- package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.d.ts +10 -9
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.js +18 -18
- package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +12 -11
- package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/SupportNotes.js +26 -26
- package/react/components/appCatalog/components/Showcase/VersionNotes.d.ts +10 -9
- package/react/components/appCatalog/components/Showcase/VersionNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/VersionNotes.js +21 -21
- package/react/components/appCatalog/components/Showcase/defaults.d.ts +3 -3
- package/react/components/appCatalog/components/Showcase/defaults.js +3 -3
- package/react/components/appCatalog/components/Toast.d.ts +15 -11
- package/react/components/appCatalog/components/Toast.d.ts.map +1 -1
- package/react/components/appCatalog/components/Toast.js +38 -38
- package/react/components/appCatalog/components/Toast.js.map +1 -1
- package/react/components/appCatalog/components/helpers.d.ts +2 -2
- package/react/components/appCatalog/components/helpers.js +33 -33
- package/react/components/appCatalog/components/helpers.js.map +1 -1
- package/react/components/appCatalog/index.d.ts +1 -1
- package/react/components/appCatalog/index.js +1 -1
- package/react/components/appCatalog/modules/AppDirectory.d.ts +12 -12
- package/react/components/appCatalog/modules/AppDirectory.d.ts.map +1 -1
- package/react/components/appCatalog/modules/AppDirectory.js +10 -10
- package/react/components/appCatalog/modules/FDC3.d.ts +51 -51
- package/react/components/appCatalog/modules/FDC3.js +146 -146
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.d.ts +9 -9
- package/react/components/appCatalog/stores/appStore.js +47 -47
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.d.ts +145 -145
- package/react/components/appCatalog/stores/storeActions.d.ts.map +1 -1
- package/react/components/appCatalog/stores/storeActions.js +423 -423
- package/react/components/appCatalog/stores/storeActions.js.map +1 -1
- package/react/components/bloomberg/BloombergFDC3.d.ts +3 -3
- package/react/components/bloomberg/BloombergFDC3.d.ts.map +1 -1
- package/react/components/bloomberg/BloombergFDC3.js +71 -71
- package/react/components/bloomberg/BloombergFDC3.js.map +1 -1
- package/react/components/bloomberg/BloombergLink.d.ts +11 -11
- package/react/components/bloomberg/BloombergLink.d.ts.map +1 -1
- package/react/components/bloomberg/BloombergLink.js +48 -48
- package/react/components/bloomberg/BloombergLink.js.map +1 -1
- package/react/components/bloomberg/BloombergRelay.d.ts +9 -9
- package/react/components/bloomberg/BloombergRelay.d.ts.map +1 -1
- package/react/components/bloomberg/BloombergRelay.js +74 -68
- package/react/components/bloomberg/BloombergRelay.js.map +1 -1
- package/react/components/common/Button.d.ts +35 -35
- package/react/components/common/Button.js +21 -21
- package/react/components/common/Button.js.map +1 -1
- package/react/components/common/ButtonIcon.d.ts +4 -4
- package/react/components/common/ButtonIcon.js +11 -11
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/ButtonRow.d.ts +15 -15
- package/react/components/common/ButtonRow.js +24 -24
- package/react/components/common/ButtonRow.js.map +1 -1
- package/react/components/common/Checkbox.d.ts +12 -12
- package/react/components/common/Checkbox.js +19 -19
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/ContextMenu.d.ts +13 -13
- package/react/components/common/ContextMenu.d.ts.map +1 -1
- package/react/components/common/ContextMenu.js +62 -62
- package/react/components/common/ContextMenu.js.map +1 -1
- package/react/components/common/Dropdown.d.ts +14 -14
- package/react/components/common/Dropdown.d.ts.map +1 -1
- package/react/components/common/Dropdown.js +82 -82
- package/react/components/common/Dropdown.js.map +1 -1
- package/react/components/common/DropdownButton.d.ts +10 -10
- package/react/components/common/DropdownButton.d.ts.map +1 -1
- package/react/components/common/DropdownButton.js +52 -52
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/ErrorBoundary.d.ts +35 -35
- package/react/components/common/ErrorBoundary.d.ts.map +1 -1
- package/react/components/common/ErrorBoundary.js +43 -43
- package/react/components/common/ErrorBoundary.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +20 -20
- package/react/components/common/FinsembleIcon.d.ts.map +1 -1
- package/react/components/common/FinsembleIcon.js +150 -150
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleToggle.d.ts +9 -9
- package/react/components/common/FinsembleToggle.d.ts.map +1 -1
- package/react/components/common/FinsembleToggle.js +11 -11
- package/react/components/common/FinsembleToggleButtonBar.d.ts +15 -15
- package/react/components/common/FinsembleToggleButtonBar.d.ts.map +1 -1
- package/react/components/common/FinsembleToggleButtonBar.js +39 -39
- package/react/components/common/FinsembleToggleButtonBar.js.map +1 -1
- package/react/components/common/Header.d.ts +13 -13
- package/react/components/common/Header.d.ts.map +1 -1
- package/react/components/common/Header.js +20 -20
- package/react/components/common/Header.js.map +1 -1
- package/react/components/common/TimeSelect.d.ts +16 -16
- package/react/components/common/TimeSelect.d.ts.map +1 -1
- package/react/components/common/TimeSelect.js +173 -173
- package/react/components/common/TimeSelect.js.map +1 -1
- package/react/components/common/css/icon.css +0 -2
- package/react/components/common/loadCSSAsStyle.d.ts +3 -0
- package/react/components/common/loadCSSAsStyle.d.ts.map +1 -0
- package/react/components/common/loadCSSAsStyle.js +18 -0
- package/react/components/common/loadCSSAsStyle.js.map +1 -0
- package/react/components/downloadManager/DownloadItem.d.ts +14 -14
- package/react/components/downloadManager/DownloadItem.d.ts.map +1 -1
- package/react/components/downloadManager/DownloadItem.js +76 -76
- package/react/components/downloadManager/DownloadItem.js.map +1 -1
- package/react/components/downloadManager/DownloadManager.d.ts +9 -9
- package/react/components/downloadManager/DownloadManager.d.ts.map +1 -1
- package/react/components/downloadManager/DownloadManager.js +39 -39
- package/react/components/downloadManager/DownloadManager.js.map +1 -1
- package/react/components/downloadManager/index.d.ts +1 -1
- package/react/components/downloadManager/index.js +1 -1
- package/react/components/favorites/FavoriteMaker.d.ts +17 -17
- package/react/components/favorites/FavoriteMaker.d.ts.map +1 -1
- package/react/components/favorites/FavoriteMaker.js +41 -41
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.d.ts +7 -7
- package/react/components/favorites/FavoritesShell.d.ts.map +1 -1
- package/react/components/favorites/FavoritesShell.js +40 -40
- package/react/components/favorites/FavoritesShell.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.d.ts +12 -8
- package/react/components/fdc3Resolver/ResolverContainer.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +98 -98
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.d.ts +31 -31
- package/react/components/fdc3Resolver/ResolverDialog.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js +167 -164
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/fdc3Resolver/index.d.ts +1 -1
- package/react/components/fdc3Resolver/index.js +1 -1
- package/react/components/icon/Icon.d.ts +21 -21
- package/react/components/icon/Icon.d.ts.map +1 -1
- package/react/components/icon/Icon.js +102 -102
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/icon/index.d.ts +1 -1
- package/react/components/icon/index.js +1 -1
- package/react/components/index.d.ts +28 -28
- package/react/components/index.js +28 -28
- package/react/components/legacyControls/FinsembleDialog.d.ts +18 -18
- package/react/components/legacyControls/FinsembleDialog.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.js +47 -47
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.d.ts +16 -16
- package/react/components/legacyControls/FinsembleDialogButton.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.js +21 -21
- package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.d.ts +14 -14
- package/react/components/legacyControls/FinsembleDialogQuestion.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js +16 -16
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +22 -22
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.js +64 -64
- package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.d.ts +46 -46
- package/react/components/legacyControls/FinsembleDnDContext.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.js +308 -308
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.d.ts +15 -15
- package/react/components/legacyControls/FinsembleDraggable.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js +21 -21
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/linker/LinkerMenu.d.ts +10 -6
- package/react/components/linker/LinkerMenu.d.ts.map +1 -1
- package/react/components/linker/LinkerMenu.js +155 -155
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.d.ts +13 -7
- package/react/components/linker/LinkerMenuDeprecated.d.ts.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js +38 -38
- package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
- package/react/components/linker/index.d.ts +1 -1
- package/react/components/linker/index.js +1 -1
- package/react/components/linker/remoteRedux.d.ts +3 -3
- package/react/components/linker/remoteRedux.d.ts.map +1 -1
- package/react/components/linker/remoteRedux.js +10 -9
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/Menu.d.ts +29 -29
- package/react/components/menu/Menu.d.ts.map +1 -1
- package/react/components/menu/Menu.js +25 -25
- package/react/components/menu/Menu.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.d.ts +19 -18
- package/react/components/menu/MenuAutoResizer.d.ts.map +1 -1
- package/react/components/menu/MenuAutoResizer.js +125 -67
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuContent.d.ts +11 -11
- package/react/components/menu/MenuContent.d.ts.map +1 -1
- package/react/components/menu/MenuContent.js +14 -14
- package/react/components/menu/MenuHotKey.d.ts +20 -20
- package/react/components/menu/MenuHotKey.d.ts.map +1 -1
- package/react/components/menu/MenuHotKey.js +45 -45
- package/react/components/menu/MenuHotKey.js.map +1 -1
- package/react/components/menu/MenuItem.d.ts +19 -19
- package/react/components/menu/MenuItem.d.ts.map +1 -1
- package/react/components/menu/MenuItem.js +28 -21
- package/react/components/menu/MenuItem.js.map +1 -1
- package/react/components/menu/MenuPortal.d.ts +7 -7
- package/react/components/menu/MenuPortal.d.ts.map +1 -1
- package/react/components/menu/MenuPortal.js +321 -245
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/MenuShell.d.ts +31 -31
- package/react/components/menu/MenuShell.d.ts.map +1 -1
- package/react/components/menu/MenuShell.js +47 -47
- package/react/components/menu/MenuToggle.d.ts +7 -7
- package/react/components/menu/MenuToggle.d.ts.map +1 -1
- package/react/components/menu/MenuToggle.js +19 -18
- package/react/components/menu/MenuToggle.js.map +1 -1
- package/react/components/menu/index.d.ts +5 -5
- package/react/components/menu/index.js +5 -5
- package/react/components/menu/keyboardNavigation.d.ts +13 -13
- package/react/components/menu/keyboardNavigation.d.ts.map +1 -1
- package/react/components/menu/keyboardNavigation.js +197 -195
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/menu/menuContext.d.ts +16 -17
- package/react/components/menu/menuContext.d.ts.map +1 -1
- package/react/components/menu/menuContext.js +8 -8
- package/react/components/menu/menuHelpers.d.ts +32 -32
- package/react/components/menu/menuHelpers.d.ts.map +1 -1
- package/react/components/menu/menuHelpers.js +112 -112
- package/react/components/menu/menuHelpers.js.map +1 -1
- package/react/components/notifications/components/NoNotifications.d.ts +3 -3
- package/react/components/notifications/components/NoNotifications.d.ts.map +1 -1
- package/react/components/notifications/components/NoNotifications.js +4 -4
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.d.ts +18 -18
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.js +83 -83
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.d.ts +5 -5
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +44 -44
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/CardView.d.ts +4 -4
- package/react/components/notifications/components/notificationsCenter/components/CardView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/CardView.js +91 -91
- package/react/components/notifications/components/notificationsCenter/components/CardView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/Drawer.d.ts +7 -7
- package/react/components/notifications/components/notificationsCenter/components/Drawer.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/Drawer.js +4 -4
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.d.ts +3 -3
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.js +93 -93
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.d.ts +7 -7
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.js +80 -77
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/ListView.d.ts +14 -14
- package/react/components/notifications/components/notificationsCenter/components/ListView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/ListView.js +150 -150
- package/react/components/notifications/components/notificationsCenter/components/ListView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.d.ts +18 -18
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.js +68 -68
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.d.ts +6 -6
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.js +63 -63
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.d.ts +9 -9
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.js +312 -303
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.d.ts +4 -4
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +220 -220
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.d.ts +5 -5
- package/react/components/notifications/components/shared/CheckButton.d.ts.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.js +38 -38
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.d.ts +10 -10
- package/react/components/notifications/components/shared/IconButton.d.ts.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js +10 -10
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +20 -20
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js +92 -92
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +5 -5
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js +31 -31
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.d.ts +4 -4
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js +6 -6
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +8 -8
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js +12 -12
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +13 -13
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js +149 -149
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.d.ts +4 -4
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js +7 -7
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +10 -10
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js +18 -18
- package/react/components/notifications/constants.d.ts +9 -9
- package/react/components/notifications/constants.js +11 -11
- package/react/components/notifications/css/notification-card.css +1 -1
- package/react/components/notifications/icons/EnvelopeClose.d.ts +2 -2
- package/react/components/notifications/icons/EnvelopeClose.d.ts.map +1 -1
- package/react/components/notifications/icons/EnvelopeClose.js +11 -11
- package/react/components/notifications/icons/EnvelopeOpen.d.ts +2 -2
- package/react/components/notifications/icons/EnvelopeOpen.d.ts.map +1 -1
- package/react/components/notifications/icons/EnvelopeOpen.js +10 -10
- package/react/components/notifications/icons/SnoozeIcon.d.ts +2 -2
- package/react/components/notifications/icons/SnoozeIcon.d.ts.map +1 -1
- package/react/components/notifications/icons/SnoozeIcon.js +12 -12
- package/react/components/notifications/index.d.ts +8 -8
- package/react/components/notifications/index.js +8 -8
- package/react/components/notifications/notificationsContext.d.ts +6 -7
- package/react/components/notifications/notificationsContext.d.ts.map +1 -1
- package/react/components/notifications/notificationsContext.js +6 -6
- package/react/components/notifications/types.d.ts +90 -90
- package/react/components/notifications/types.d.ts.map +1 -1
- package/react/components/notifications/types.js +1 -1
- package/react/components/notifications/utils.d.ts +12 -12
- package/react/components/notifications/utils.js +70 -70
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.d.ts +6 -6
- package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js +64 -64
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +22 -22
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.js +1 -1
- package/react/components/processMonitor/components/ChildWindow.d.ts +11 -11
- package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js +32 -32
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +8 -8
- package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
- package/react/components/processMonitor/components/ListHeader.js +50 -50
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/Process.d.ts +9 -9
- package/react/components/processMonitor/components/Process.d.ts.map +1 -1
- package/react/components/processMonitor/components/Process.js +10 -10
- package/react/components/processMonitor/components/ProcessStatistics.d.ts +10 -10
- package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +64 -64
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +8 -8
- package/react/components/processMonitor/constants.js +23 -23
- package/react/components/processMonitor/helpers.d.ts +17 -17
- package/react/components/processMonitor/helpers.js +48 -48
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/index.d.ts +1 -1
- package/react/components/processMonitor/index.js +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +58 -58
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +264 -264
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.d.ts +7 -7
- package/react/components/quickComponentForm/QuickComponentForm.d.ts.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.js +123 -123
- package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
- package/react/components/quickComponentForm/index.d.ts +1 -1
- package/react/components/quickComponentForm/index.js +1 -1
- package/react/components/search/Highlight.d.ts +12 -12
- package/react/components/search/Highlight.d.ts.map +1 -1
- package/react/components/search/Highlight.js +41 -41
- package/react/components/search/Highlight.js.map +1 -1
- package/react/components/search/Search.d.ts +5 -5
- package/react/components/search/Search.d.ts.map +1 -1
- package/react/components/search/Search.js +19 -27
- package/react/components/search/Search.js.map +1 -1
- package/react/components/search/SearchBestMatch.d.ts +6 -6
- package/react/components/search/SearchBestMatch.d.ts.map +1 -1
- package/react/components/search/SearchBestMatch.js +38 -38
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchInput.d.ts +6 -6
- package/react/components/search/SearchInput.d.ts.map +1 -1
- package/react/components/search/SearchInput.js +26 -26
- package/react/components/search/SearchInput.js.map +1 -1
- package/react/components/search/SearchProviderResults.d.ts +5 -5
- package/react/components/search/SearchProviderResults.d.ts.map +1 -1
- package/react/components/search/SearchProviderResults.js +26 -26
- package/react/components/search/SearchResult.d.ts +12 -12
- package/react/components/search/SearchResult.d.ts.map +1 -1
- package/react/components/search/SearchResult.js +52 -47
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResults.d.ts +3 -3
- package/react/components/search/SearchResults.d.ts.map +1 -1
- package/react/components/search/SearchResults.js +21 -21
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/search/index.d.ts +1 -1
- package/react/components/search/index.js +1 -1
- package/react/components/shared/BellIcon.d.ts +3 -3
- package/react/components/shared/BellIcon.d.ts.map +1 -1
- package/react/components/shared/BellIcon.js +7 -7
- package/react/components/shared/BellIconCrossed.d.ts +3 -3
- package/react/components/shared/BellIconCrossed.d.ts.map +1 -1
- package/react/components/shared/BellIconCrossed.js +9 -9
- package/react/components/shared/Button.d.ts +9 -9
- package/react/components/shared/Button.d.ts.map +1 -1
- package/react/components/shared/Button.js +5 -5
- package/react/components/shared/ConditionalWrapper.d.ts +8 -8
- package/react/components/shared/ConditionalWrapper.d.ts.map +1 -1
- package/react/components/shared/ConditionalWrapper.js +5 -5
- package/react/components/shared/DefaultDropdownButton.d.ts +18 -18
- package/react/components/shared/DefaultDropdownButton.d.ts.map +1 -1
- package/react/components/shared/DefaultDropdownButton.js +117 -117
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/shared/Tag.d.ts +16 -8
- package/react/components/shared/Tag.d.ts.map +1 -1
- package/react/components/shared/Tag.js +22 -22
- package/react/components/shared/TagsMenu.d.ts +36 -36
- package/react/components/shared/TagsMenu.js +77 -77
- package/react/components/shared/TagsMenu.js.map +1 -1
- package/react/components/shared/addProtocolToValidURL.d.ts +7 -7
- package/react/components/shared/addProtocolToValidURL.js +11 -11
- package/react/components/shared/openQuitConfirmationDialog.d.ts +1 -1
- package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js +73 -71
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/shared/validateURL.d.ts +19 -19
- package/react/components/shared/validateURL.js +29 -29
- package/react/components/singleInputDialog/SingleInputDialog.d.ts +12 -8
- package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.js +112 -112
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/singleInputDialog/index.d.ts +1 -1
- package/react/components/singleInputDialog/index.js +1 -1
- package/react/components/system/System.d.ts +34 -34
- package/react/components/system/System.d.ts.map +1 -1
- package/react/components/system/System.js +92 -93
- package/react/components/system/System.js.map +1 -1
- package/react/components/system/SystemTrayComponentShell.d.ts +14 -14
- package/react/components/system/SystemTrayComponentShell.d.ts.map +1 -1
- package/react/components/system/SystemTrayComponentShell.js +47 -45
- package/react/components/system/SystemTrayComponentShell.js.map +1 -1
- package/react/components/system/index.d.ts +2 -2
- package/react/components/system/index.js +2 -2
- package/react/components/toolbar/AlwaysOnTop.d.ts +10 -10
- package/react/components/toolbar/AlwaysOnTop.d.ts.map +1 -1
- package/react/components/toolbar/AlwaysOnTop.js +95 -78
- package/react/components/toolbar/AlwaysOnTop.js.map +1 -1
- package/react/components/toolbar/AutoArrange.d.ts +12 -12
- package/react/components/toolbar/AutoArrange.d.ts.map +1 -1
- package/react/components/toolbar/AutoArrange.js +36 -36
- package/react/components/toolbar/AutoArrange.js.map +1 -1
- package/react/components/toolbar/DownloadButton.d.ts +10 -10
- package/react/components/toolbar/DownloadButton.d.ts.map +1 -1
- package/react/components/toolbar/DownloadButton.js +43 -46
- package/react/components/toolbar/DownloadButton.js.map +1 -1
- package/react/components/toolbar/DragHandle.d.ts +11 -11
- package/react/components/toolbar/DragHandle.d.ts.map +1 -1
- package/react/components/toolbar/DragHandle.js +49 -49
- package/react/components/toolbar/MinimizeAll.d.ts +11 -11
- package/react/components/toolbar/MinimizeAll.d.ts.map +1 -1
- package/react/components/toolbar/MinimizeAll.js +24 -24
- package/react/components/toolbar/MinimizeAll.js.map +1 -1
- package/react/components/toolbar/NotificationControl.d.ts +12 -12
- package/react/components/toolbar/NotificationControl.d.ts.map +1 -1
- package/react/components/toolbar/NotificationControl.js +85 -79
- package/react/components/toolbar/NotificationControl.js.map +1 -1
- package/react/components/toolbar/RevealAll.d.ts +11 -11
- package/react/components/toolbar/RevealAll.d.ts.map +1 -1
- package/react/components/toolbar/RevealAll.js +26 -26
- package/react/components/toolbar/RevealAll.js.map +1 -1
- package/react/components/toolbar/SddButton.d.ts +6 -6
- package/react/components/toolbar/SddButton.d.ts.map +1 -1
- package/react/components/toolbar/SddButton.js +27 -27
- package/react/components/toolbar/SddButton.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.d.ts +6 -6
- package/react/components/toolbar/ToolbarIcon.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js +29 -41
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/ToolbarSection.d.ts +16 -16
- package/react/components/toolbar/ToolbarSection.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarSection.js +41 -41
- package/react/components/toolbar/ToolbarSection.js.map +1 -1
- package/react/components/toolbar/ToolbarShell.d.ts +20 -20
- package/react/components/toolbar/ToolbarShell.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarShell.js +35 -35
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.d.ts +10 -10
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +26 -33
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.d.ts +43 -42
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.js +97 -89
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewAppForm.d.ts +93 -93
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewAppForm.js +334 -333
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewFolder.d.ts +10 -10
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewFolder.js +15 -15
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppActionsMenu.d.ts +56 -56
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppActionsMenu.js +175 -175
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppActionsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.d.ts +33 -33
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.js +53 -53
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppTagsList.d.ts +16 -16
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppTagsList.js +43 -43
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.d.ts +38 -38
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.js +172 -171
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FilterSort.d.ts +20 -20
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FilterSort.js +52 -52
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.d.ts +59 -59
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.js +308 -295
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts +25 -25
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/LeftNavBottomLinks.js +103 -103
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/NoAppsFound.d.ts +11 -11
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/NoAppsFound.js +9 -9
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SearchBox.d.ts +18 -18
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SearchBox.js +51 -51
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SortBy.d.ts +13 -13
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SortBy.js +34 -34
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/TagsList.d.ts +19 -19
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/TagsList.js +38 -38
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts +8 -8
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.js +26 -26
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/AppDirectory.d.ts +8 -8
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/AppDirectory.js +10 -10
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.d.ts +55 -55
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.js +145 -145
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/LauncherStore.d.ts +5 -5
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/LauncherStore.js +21 -21
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.d.ts +96 -96
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.js +548 -546
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/utils/sort-functions.d.ts +18 -18
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/utils/sort-functions.js +55 -55
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.d.ts +16 -16
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js +279 -240
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AddNewAppForm.d.ts +96 -96
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AddNewAppForm.js +329 -328
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts +40 -40
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js +61 -61
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppTagsList.d.ts +17 -17
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppTagsList.js +42 -42
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts +18 -18
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js +114 -114
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.d.ts +62 -62
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js +260 -271
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts +9 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js +36 -37
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/NoAppsFound.d.ts +11 -11
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/NoAppsFound.js +9 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SearchBox.d.ts +12 -12
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SearchBox.js +23 -23
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.d.ts +12 -12
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js +16 -16
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/TagsList.d.ts +11 -11
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/TagsList.js +15 -15
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/constants.d.ts +4 -4
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/constants.js +4 -4
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.d.ts +26 -26
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.js +44 -42
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/types.d.ts +19 -19
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/types.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/types.js +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/utils/sort-functions.d.ts +16 -16
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/utils/sort-functions.js +46 -46
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts +28 -28
- package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +48 -48
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +29 -29
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js +54 -48
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/appLauncher.css +0 -6
- package/react/components/toolbar/appLauncher/components/componentList.d.ts +14 -7
- package/react/components/toolbar/appLauncher/components/componentList.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/components/componentList.js +133 -133
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +44 -44
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +274 -259
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/bloomberg/BloombergStatus.d.ts +4 -4
- package/react/components/toolbar/bloomberg/BloombergStatus.d.ts.map +1 -1
- package/react/components/toolbar/bloomberg/BloombergStatus.js +109 -109
- package/react/components/toolbar/bloomberg/BloombergStatus.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.d.ts +4 -4
- package/react/components/toolbar/dashbar/Dashbar.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +441 -449
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.d.ts +17 -17
- package/react/components/toolbar/dashbar/DashbarItem.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js +58 -58
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/index.d.ts +18 -18
- package/react/components/toolbar/index.js +18 -18
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +21 -21
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js +62 -56
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +23 -23
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js +76 -76
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +8 -3
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +50 -50
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +14 -9
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js +24 -24
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +136 -136
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +684 -684
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/NotificationsPreferencesContext.d.ts +14 -15
- package/react/components/userPreferences/NotificationsPreferencesContext.d.ts.map +1 -1
- package/react/components/userPreferences/NotificationsPreferencesContext.js +6 -6
- package/react/components/userPreferences/UserPreferenceTypes.d.ts +9 -9
- package/react/components/userPreferences/UserPreferenceTypes.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferenceTypes.js +1 -1
- package/react/components/userPreferences/UserPreferences.d.ts +20 -16
- package/react/components/userPreferences/UserPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferences.js +27 -24
- package/react/components/userPreferences/UserPreferences.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.d.ts +3 -11
- package/react/components/userPreferences/UserPreferencesBase.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.js +101 -101
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.d.ts +4 -4
- package/react/components/userPreferences/UserPreferencesWrapper.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.js +32 -28
- package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.d.ts +23 -12
- package/react/components/userPreferences/components/ContentSection.d.ts.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js +21 -21
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/LeftNav.d.ts +14 -14
- package/react/components/userPreferences/components/LeftNav.d.ts.map +1 -1
- package/react/components/userPreferences/components/LeftNav.js +31 -31
- package/react/components/userPreferences/components/LeftNav.js.map +1 -1
- package/react/components/userPreferences/components/content/BloombergPreferences.d.ts +3 -3
- package/react/components/userPreferences/components/content/BloombergPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/BloombergPreferences.js +58 -58
- package/react/components/userPreferences/components/content/BloombergPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.d.ts +8 -8
- package/react/components/userPreferences/components/content/DashbarEditor.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js +129 -129
- package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditorItem.d.ts +10 -10
- package/react/components/userPreferences/components/content/DashbarEditorItem.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditorItem.js +10 -10
- package/react/components/userPreferences/components/content/General.d.ts +3 -4
- package/react/components/userPreferences/components/content/General.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/General.js +48 -29
- package/react/components/userPreferences/components/content/General.js.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.d.ts +11 -11
- package/react/components/userPreferences/components/content/Notifications.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.js +39 -35
- package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +88 -88
- package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +546 -529
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.d.ts +3 -3
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +220 -211
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.d.ts +3 -3
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +134 -134
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.d.ts +3 -3
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +79 -79
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.d.ts +4 -4
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js +39 -39
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.d.ts +9 -9
- package/react/components/userPreferences/components/general/DownloadPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.js +119 -111
- package/react/components/userPreferences/components/general/DownloadPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts +3 -4
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.js +42 -36
- package/react/components/userPreferences/components/general/ResetPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts +10 -10
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.js +133 -76
- package/react/components/userPreferences/components/general/ScheduledClose.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts +8 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +8 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.d.ts +6 -6
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js +10 -10
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.d.ts +36 -35
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js +85 -86
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.d.ts +8 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js +6 -20
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
- package/react/components/userPreferences/index.d.ts +6 -6
- package/react/components/userPreferences/index.js +6 -6
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +39 -39
- package/react/components/userPreferences/stores/UserPreferencesStore.js +140 -140
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/utils.d.ts +49 -49
- package/react/components/utils.d.ts.map +1 -1
- package/react/components/utils.js +59 -59
- package/react/components/utils.js.map +1 -1
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts +8 -8
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/AlwaysOnTopButton.js +28 -28
- package/react/components/windowTitleBar/CloneButton.d.ts +2 -2
- package/react/components/windowTitleBar/CloneButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/CloneButton.js +22 -22
- package/react/components/windowTitleBar/CloneButton.js.map +1 -1
- package/react/components/windowTitleBar/CloseButton.d.ts +2 -2
- package/react/components/windowTitleBar/CloseButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/CloseButton.js +21 -21
- package/react/components/windowTitleBar/CloseButton.js.map +1 -1
- package/react/components/windowTitleBar/GroupingButton.d.ts +2 -2
- package/react/components/windowTitleBar/GroupingButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/GroupingButton.js +24 -24
- package/react/components/windowTitleBar/LinkerButton.d.ts +10 -6
- package/react/components/windowTitleBar/LinkerButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerButton.js +116 -116
- package/react/components/windowTitleBar/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts +10 -6
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js +62 -62
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/LinkerGroups.d.ts +6 -2
- package/react/components/windowTitleBar/LinkerGroups.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerGroups.js +20 -20
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts +6 -2
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js +34 -34
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/MaximizeButton.d.ts +2 -2
- package/react/components/windowTitleBar/MaximizeButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/MaximizeButton.js +17 -17
- package/react/components/windowTitleBar/MinimizeButton.d.ts +2 -2
- package/react/components/windowTitleBar/MinimizeButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/MinimizeButton.js +20 -20
- package/react/components/windowTitleBar/ShareButton.d.ts +2 -2
- package/react/components/windowTitleBar/ShareButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/ShareButton.js +23 -23
- package/react/components/windowTitleBar/TabRegion.d.ts +30 -30
- package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -1
- package/react/components/windowTitleBar/TabRegion.js +502 -490
- package/react/components/windowTitleBar/TabRegion.js.map +1 -1
- package/react/components/windowTitleBar/TabTitle.d.ts +7 -7
- package/react/components/windowTitleBar/TabTitle.d.ts.map +1 -1
- package/react/components/windowTitleBar/TabTitle.js +16 -16
- package/react/components/windowTitleBar/TabTitle.js.map +1 -1
- package/react/components/windowTitleBar/TitleEdit.d.ts +9 -9
- package/react/components/windowTitleBar/TitleEdit.d.ts.map +1 -1
- package/react/components/windowTitleBar/TitleEdit.js +30 -29
- package/react/components/windowTitleBar/TitleEdit.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts +10 -11
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarContext.js +2 -2
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +16 -16
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.js +46 -45
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/getOrCreateWindowTitleBarContainer.d.ts +9 -9
- package/react/components/windowTitleBar/getOrCreateWindowTitleBarContainer.js +22 -22
- package/react/components/windowTitleBar/index.d.ts +12 -12
- package/react/components/windowTitleBar/index.js +12 -12
- package/react/components/windowTitleBar/useKeyboardNavigation.d.ts +6 -6
- package/react/components/windowTitleBar/useKeyboardNavigation.js +56 -56
- package/react/components/windowTitleBar/useKeyboardNavigation.js.map +1 -1
- package/react/components/windowTitleBar/useMaximize.d.ts +4 -4
- package/react/components/windowTitleBar/useMaximize.js +22 -22
- package/react/components/yesNoDialog/YesNoDialog.d.ts +11 -7
- package/react/components/yesNoDialog/YesNoDialog.d.ts.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.js +154 -154
- package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
- package/react/components/yesNoDialog/index.d.ts +1 -1
- package/react/components/yesNoDialog/index.js +1 -1
- package/react/components/yesNoDialog/timer.d.ts +15 -16
- package/react/components/yesNoDialog/timer.d.ts.map +1 -1
- package/react/components/yesNoDialog/timer.js +32 -32
- package/react/components/yesNoDialog/timer.js.map +1 -1
- package/react/hooks/index.d.ts +4 -4
- package/react/hooks/index.js +4 -4
- package/react/hooks/useAuth.d.ts +10 -10
- package/react/hooks/useAuth.d.ts.map +1 -1
- package/react/hooks/useAuth.js +26 -26
- package/react/hooks/useDashbar.d.ts +8 -8
- package/react/hooks/useDashbar.d.ts.map +1 -1
- package/react/hooks/useDashbar.js +115 -115
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useDeepEffect.d.ts +5 -5
- package/react/hooks/useDeepEffect.js +33 -33
- package/react/hooks/useDeepEffect.js.map +1 -1
- package/react/hooks/useDownloadItems.d.ts +23 -23
- package/react/hooks/useDownloadItems.d.ts.map +1 -1
- package/react/hooks/useDownloadItems.js +67 -67
- package/react/hooks/useDownloadItems.js.map +1 -1
- package/react/hooks/useDragRegion.d.ts +25 -26
- package/react/hooks/useDragRegion.d.ts.map +1 -1
- package/react/hooks/useDragRegion.js +73 -73
- package/react/hooks/useDragRegion.js.map +1 -1
- package/react/hooks/useFavorites.d.ts +24 -24
- package/react/hooks/useFavorites.d.ts.map +1 -1
- package/react/hooks/useFavorites.js +23 -23
- package/react/hooks/useFavoritesShell.d.ts +14 -14
- package/react/hooks/useFavoritesShell.d.ts.map +1 -1
- package/react/hooks/useFavoritesShell.js +76 -83
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useFloatingFocus.d.ts +15 -15
- package/react/hooks/useFloatingFocus.d.ts.map +1 -1
- package/react/hooks/useFloatingFocus.js +36 -35
- package/react/hooks/useFloatingFocus.js.map +1 -1
- package/react/hooks/useHotkey.d.ts +8 -8
- package/react/hooks/useHotkey.js +24 -24
- package/react/hooks/useInjectedTitleBar.d.ts +2 -2
- package/react/hooks/useInjectedTitleBar.js +436 -436
- package/react/hooks/useInjectedTitleBar.js.map +1 -1
- package/react/hooks/useLinker.d.ts +4 -4
- package/react/hooks/useLinker.js +111 -111
- package/react/hooks/useLinker.js.map +1 -1
- package/react/hooks/useMenu.d.ts +39 -39
- package/react/hooks/useMenu.d.ts.map +1 -1
- package/react/hooks/useMenu.js +51 -51
- package/react/hooks/useNotifications.d.ts +76 -76
- package/react/hooks/useNotifications.d.ts.map +1 -1
- package/react/hooks/useNotifications.js +457 -434
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useOAuth.d.ts +16 -16
- package/react/hooks/useOAuth.d.ts.map +1 -1
- package/react/hooks/useOAuth.js +115 -115
- package/react/hooks/useOAuth.js.map +1 -1
- package/react/hooks/useOutsideClickDetector.d.ts +5 -5
- package/react/hooks/useOutsideClickDetector.d.ts.map +1 -1
- package/react/hooks/useOutsideClickDetector.js +17 -17
- package/react/hooks/useOutsideClickDetector.js.map +1 -1
- package/react/hooks/usePubSub.d.ts +21 -21
- package/react/hooks/usePubSub.js +38 -38
- package/react/hooks/usePubSub.js.map +1 -1
- package/react/hooks/useSearch.d.ts +14 -14
- package/react/hooks/useSearch.d.ts.map +1 -1
- package/react/hooks/useSearch.js +76 -72
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useTitle.d.ts +17 -17
- package/react/hooks/useTitle.d.ts.map +1 -1
- package/react/hooks/useTitle.js +28 -28
- package/react/hooks/useTitle.js.map +1 -1
- package/react/hooks/useToolbar.d.ts +11 -11
- package/react/hooks/useToolbar.js +162 -162
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/index.d.ts +2 -2
- package/react/index.js +2 -2
- package/react/reducers/favoriteReducer.d.ts +11 -11
- package/react/reducers/favoriteReducer.d.ts.map +1 -1
- package/react/reducers/favoriteReducer.js +27 -27
- package/react/reducers/linkerReducer.d.ts +13 -13
- package/react/reducers/linkerReducer.d.ts.map +1 -1
- package/react/reducers/linkerReducer.js +43 -43
- package/react/reducers/linkerReducer.js.map +1 -1
- package/react/reducers/menuReducer.d.ts +36 -36
- package/react/reducers/menuReducer.d.ts.map +1 -1
- package/react/reducers/menuReducer.js +65 -65
- package/react/reducers/rootReducer.d.ts +239 -239
- package/react/reducers/rootReducer.d.ts.map +1 -1
- package/react/reducers/rootReducer.js +20 -20
- package/react/reducers/searchReducer.d.ts +15 -15
- package/react/reducers/searchReducer.d.ts.map +1 -1
- package/react/reducers/searchReducer.js +27 -27
- package/react/reducers/smartDesktopDesignerReducer.d.ts +5 -5
- package/react/reducers/smartDesktopDesignerReducer.js +190 -190
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/reducers/toolbarReducer.d.ts +10 -10
- package/react/reducers/toolbarReducer.d.ts.map +1 -1
- package/react/reducers/toolbarReducer.js +29 -29
- package/react/reducers/workspaceReducer.d.ts +10 -10
- package/react/reducers/workspaceReducer.d.ts.map +1 -1
- package/react/reducers/workspaceReducer.js +26 -26
- package/react/reducers/workspaceReducer.js.map +1 -1
- package/react/store.d.ts +450 -450
- package/react/store.d.ts.map +1 -1
- package/react/store.js +17 -17
- package/react/types/advancedAppLauncherTypes.d.ts +44 -44
- package/react/types/advancedAppLauncherTypes.d.ts.map +1 -1
- package/react/types/advancedAppLauncherTypes.js +1 -1
- package/react/types/dashbarTypes.d.ts +44 -41
- package/react/types/dashbarTypes.d.ts.map +1 -1
- package/react/types/dashbarTypes.js +1 -1
- package/react/types/favoriteTypes.d.ts +8 -8
- package/react/types/favoriteTypes.d.ts.map +1 -1
- package/react/types/favoriteTypes.js +1 -1
- package/react/types/fdc3.d.ts +27 -29
- package/react/types/fdc3.d.ts.map +1 -1
- package/react/types/fdc3.js +6 -6
- package/react/types/hotkeyTypes.d.ts +1 -1
- package/react/types/hotkeyTypes.d.ts.map +1 -1
- package/react/types/hotkeyTypes.js +1 -1
- package/react/types/linkerTypes.d.ts +27 -27
- package/react/types/linkerTypes.d.ts.map +1 -1
- package/react/types/linkerTypes.js +2 -2
- package/react/types/smartDesktopDesignerTypes.d.ts +227 -227
- package/react/types/smartDesktopDesignerTypes.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.js +19 -19
- package/react/types/workspaceTypes.d.ts +30 -30
- package/react/types/workspaceTypes.d.ts.map +1 -1
- package/react/types/workspaceTypes.js +1 -1
- package/services/index.d.ts +6 -0
- package/services/index.d.ts.map +1 -0
- package/services/index.js +6 -0
- package/services/index.js.map +1 -0
- package/services/logger/types.d.ts +2 -0
- package/services/logger/types.d.ts.map +1 -0
- package/services/logger/types.js +2 -0
- package/services/logger/types.js.map +1 -0
- package/services/search/types.d.ts +2 -0
- package/services/search/types.d.ts.map +1 -0
- package/services/search/types.js +2 -0
- package/services/search/types.js.map +1 -0
- package/services/storage/adapters/types.d.ts +2 -0
- package/services/storage/adapters/types.d.ts.map +1 -0
- package/services/storage/adapters/types.js +2 -0
- package/services/storage/adapters/types.js.map +1 -0
- package/services/window/types.d.ts +2 -0
- package/services/window/types.d.ts.map +1 -0
- package/services/window/types.js +2 -0
- package/services/window/types.js.map +1 -0
- package/services/workspace/types.d.ts +2 -0
- package/services/workspace/types.d.ts.map +1 -0
- package/services/workspace/types.js +2 -0
- package/services/workspace/types.js.map +1 -0
- package/typedoc-types.d.ts +8 -8
- package/typedoc-types.d.ts.map +1 -1
- package/typedoc-types.js +5 -5
- package/types.d.ts +15 -16
- package/types.d.ts.map +1 -1
- package/types.js +4 -7
- package/types.js.map +1 -1
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts +0 -17
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts.map +0 -1
- package/react/components/userPreferences/FinsembleUserPreferences.js +0 -28
- package/react/components/userPreferences/FinsembleUserPreferences.js.map +0 -1
- package/react/components/userPreferences/iocdUserPreferences.d.ts +0 -17
- package/react/components/userPreferences/iocdUserPreferences.d.ts.map +0 -1
- package/react/components/userPreferences/iocdUserPreferences.js +0 -49
- package/react/components/userPreferences/iocdUserPreferences.js.map +0 -1
- package/react/components/userPreferences/utils.d.ts +0 -3
- package/react/components/userPreferences/utils.d.ts.map +0 -1
- package/react/components/userPreferences/utils.js +0 -11
- package/react/components/userPreferences/utils.js.map +0 -1
- package/typedefs/FDC3/api/AppIdentifier.d.ts +0 -22
- package/typedefs/FDC3/api/AppIdentifier.d.ts.map +0 -1
- package/typedefs/FDC3/api/AppIdentifier.js +0 -6
- package/typedefs/FDC3/api/AppIdentifier.js.map +0 -1
- package/typedefs/FDC3/api/AppIntent.d.ts +0 -16
- package/typedefs/FDC3/api/AppIntent.d.ts.map +0 -1
- package/typedefs/FDC3/api/AppIntent.js +0 -6
- package/typedefs/FDC3/api/AppIntent.js.map +0 -1
- package/typedefs/FDC3/api/AppMetadata.d.ts +0 -41
- package/typedefs/FDC3/api/AppMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/AppMetadata.js +0 -6
- package/typedefs/FDC3/api/AppMetadata.js.map +0 -1
- package/typedefs/FDC3/api/Channel.d.ts +0 -73
- package/typedefs/FDC3/api/Channel.d.ts.map +0 -1
- package/typedefs/FDC3/api/Channel.js +0 -6
- package/typedefs/FDC3/api/Channel.js.map +0 -1
- package/typedefs/FDC3/api/ContextMetadata.d.ts +0 -19
- package/typedefs/FDC3/api/ContextMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/ContextMetadata.js +0 -6
- package/typedefs/FDC3/api/ContextMetadata.js.map +0 -1
- package/typedefs/FDC3/api/DesktopAgent.d.ts +0 -549
- package/typedefs/FDC3/api/DesktopAgent.d.ts.map +0 -1
- package/typedefs/FDC3/api/DesktopAgent.js +0 -6
- package/typedefs/FDC3/api/DesktopAgent.js.map +0 -1
- package/typedefs/FDC3/api/DisplayMetadata.d.ts +0 -24
- package/typedefs/FDC3/api/DisplayMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/DisplayMetadata.js +0 -6
- package/typedefs/FDC3/api/DisplayMetadata.js.map +0 -1
- package/typedefs/FDC3/api/Errors.d.ts +0 -67
- package/typedefs/FDC3/api/Errors.d.ts.map +0 -1
- package/typedefs/FDC3/api/Errors.js +0 -72
- package/typedefs/FDC3/api/Errors.js.map +0 -1
- package/typedefs/FDC3/api/Icon.d.ts +0 -13
- package/typedefs/FDC3/api/Icon.d.ts.map +0 -1
- package/typedefs/FDC3/api/Icon.js +0 -6
- package/typedefs/FDC3/api/Icon.js.map +0 -1
- package/typedefs/FDC3/api/Image.d.ts +0 -15
- package/typedefs/FDC3/api/Image.d.ts.map +0 -1
- package/typedefs/FDC3/api/Image.js +0 -6
- package/typedefs/FDC3/api/Image.js.map +0 -1
- package/typedefs/FDC3/api/ImplementationMetadata.d.ts +0 -36
- package/typedefs/FDC3/api/ImplementationMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/ImplementationMetadata.js +0 -6
- package/typedefs/FDC3/api/ImplementationMetadata.js.map +0 -1
- package/typedefs/FDC3/api/IntentMetadata.d.ts +0 -18
- package/typedefs/FDC3/api/IntentMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/IntentMetadata.js +0 -6
- package/typedefs/FDC3/api/IntentMetadata.js.map +0 -1
- package/typedefs/FDC3/api/IntentResolution.d.ts +0 -68
- package/typedefs/FDC3/api/IntentResolution.d.ts.map +0 -1
- package/typedefs/FDC3/api/IntentResolution.js +0 -6
- package/typedefs/FDC3/api/IntentResolution.js.map +0 -1
- package/typedefs/FDC3/api/Listener.d.ts +0 -11
- package/typedefs/FDC3/api/Listener.d.ts.map +0 -1
- package/typedefs/FDC3/api/Listener.js +0 -6
- package/typedefs/FDC3/api/Listener.js.map +0 -1
- package/typedefs/FDC3/api/Methods.d.ts +0 -72
- package/typedefs/FDC3/api/Methods.d.ts.map +0 -1
- package/typedefs/FDC3/api/Methods.js +0 -199
- package/typedefs/FDC3/api/Methods.js.map +0 -1
- package/typedefs/FDC3/api/PrivateChannel.d.ts +0 -54
- package/typedefs/FDC3/api/PrivateChannel.d.ts.map +0 -1
- package/typedefs/FDC3/api/PrivateChannel.js +0 -6
- package/typedefs/FDC3/api/PrivateChannel.js.map +0 -1
- package/typedefs/FDC3/api/RecommendedChannels.d.ts +0 -14
- package/typedefs/FDC3/api/RecommendedChannels.d.ts.map +0 -1
- package/typedefs/FDC3/api/RecommendedChannels.js +0 -80
- package/typedefs/FDC3/api/RecommendedChannels.js.map +0 -1
- package/typedefs/FDC3/api/Types.d.ts +0 -30
- package/typedefs/FDC3/api/Types.d.ts.map +0 -1
- package/typedefs/FDC3/api/Types.js +0 -6
- package/typedefs/FDC3/api/Types.js.map +0 -1
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts +0 -3967
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts.map +0 -1
- package/typedefs/FDC3/bridging/BridgingTypes.js +0 -1857
- package/typedefs/FDC3/bridging/BridgingTypes.js.map +0 -1
- package/typedefs/FDC3/context/ContextType.d.ts +0 -41
- package/typedefs/FDC3/context/ContextType.d.ts.map +0 -1
- package/typedefs/FDC3/context/ContextType.js +0 -30
- package/typedefs/FDC3/context/ContextType.js.map +0 -1
- package/typedefs/FDC3/context/ContextTypes.d.ts +0 -2000
- package/typedefs/FDC3/context/ContextTypes.d.ts.map +0 -1
- package/typedefs/FDC3/context/ContextTypes.js +0 -873
- package/typedefs/FDC3/context/ContextTypes.js.map +0 -1
- package/typedefs/FDC3/index.d.ts +0 -34
- package/typedefs/FDC3/index.d.ts.map +0 -1
- package/typedefs/FDC3/index.js +0 -30
- package/typedefs/FDC3/index.js.map +0 -1
- package/typedefs/FDC3/intents/Intents.d.ts +0 -36
- package/typedefs/FDC3/intents/Intents.d.ts.map +0 -1
- package/typedefs/FDC3/intents/Intents.js +0 -29
- package/typedefs/FDC3/intents/Intents.js.map +0 -1
- package/typedefs/FDC3/internal/contextConfiguration.d.ts +0 -2
- package/typedefs/FDC3/internal/contextConfiguration.d.ts.map +0 -1
- package/typedefs/FDC3/internal/contextConfiguration.js +0 -5
- package/typedefs/FDC3/internal/contextConfiguration.js.map +0 -1
- package/typedefs/FDC3/internal/intentConfiguration.d.ts +0 -2
- package/typedefs/FDC3/internal/intentConfiguration.d.ts.map +0 -1
- package/typedefs/FDC3/internal/intentConfiguration.js +0 -5
- package/typedefs/FDC3/internal/intentConfiguration.js.map +0 -1
- package/typedefs/FDC3/internal/typeHelpers.d.ts +0 -7
- package/typedefs/FDC3/internal/typeHelpers.d.ts.map +0 -1
- package/typedefs/FDC3/internal/typeHelpers.js +0 -5
- package/typedefs/FDC3/internal/typeHelpers.js.map +0 -1
- package/typedefs/index.d.ts +0 -2
- package/typedefs/index.d.ts.map +0 -1
- package/typedefs/index.js +0 -3
- package/typedefs/index.js.map +0 -1
package/clients/routerClient.js
CHANGED
|
@@ -1,1417 +1,1449 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* For communications amongst desktop services, components, or outside the container entirely, Finsemble provides an event infrastructure with high level protocols.
|
|
7
|
-
* The Router is the center of this functionality, sending and receiving messages between windows.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* See the [Router tutorial](/docs/how-finsemble-works/TheRouter) for an overview.
|
|
11
|
-
* @module RouterClient
|
|
12
|
-
*/
|
|
13
|
-
import RouterTransport from "../platform/services/router/routerTransport";
|
|
14
|
-
import { toast } from "../common/toast";
|
|
15
|
-
import { LoggerClient as Logger } from "./logger"; // should never be used, but message sent before router ready will be queue
|
|
16
|
-
import { Globals } from "../common/Globals";
|
|
17
|
-
import { Performance } from "../common/Performance";
|
|
18
|
-
import { singleton } from "../common/Singleton";
|
|
19
|
-
import uuidv4 from "uuid-random";
|
|
20
|
-
/**
|
|
21
|
-
* Duplicate of Utils.clone(). Do not import Utils into this file because it drags along Monitors.ts which
|
|
22
|
-
* is incompatible with freestanding apps.
|
|
23
|
-
*/
|
|
24
|
-
function clone(from, to = {}) {
|
|
25
|
-
if (from === null || typeof from !== "object") {
|
|
26
|
-
return from;
|
|
27
|
-
}
|
|
28
|
-
if (from.constructor == Date ||
|
|
29
|
-
from.constructor == RegExp ||
|
|
30
|
-
from.constructor == Function ||
|
|
31
|
-
from.constructor == String ||
|
|
32
|
-
from.constructor == Number ||
|
|
33
|
-
from.constructor == Boolean) {
|
|
34
|
-
return new from.constructor(from);
|
|
35
|
-
}
|
|
36
|
-
to = to || new from.constructor();
|
|
37
|
-
for (const n in from) {
|
|
38
|
-
to[n] = typeof to[n] === "undefined" ? clone(from[n], null) : to[n];
|
|
39
|
-
}
|
|
40
|
-
return to;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @ignore
|
|
44
|
-
*/
|
|
45
|
-
export class RouterConnection {
|
|
46
|
-
constructor() {
|
|
47
|
-
this.queue = [];
|
|
48
|
-
this.started = false;
|
|
49
|
-
this.clientName = "RouterClient.clientName not yet set";
|
|
50
|
-
this.transport = null;
|
|
51
|
-
this.isRouterReady = false;
|
|
52
|
-
this.isTransportFailed = false;
|
|
53
|
-
this.parentReadyCallbackQueue = []; // must be queue because may be multiple waiters
|
|
54
|
-
this.parentFailureCallbackQueue = []; // must be queue because may be multiple waiters
|
|
55
|
-
// Maps all listeners ( registered with calls to subscribe() ) for the given topics
|
|
56
|
-
this.mapListeners = {};
|
|
57
|
-
// Maps query channels to the registered responder (from a call to addResponder() )
|
|
58
|
-
this.mapQueryResponders = {};
|
|
59
|
-
this.mapPubSubResponders = {};
|
|
60
|
-
// Contains the current state for all responder channels
|
|
61
|
-
this.mapPubSubResponderState = {};
|
|
62
|
-
this.mapPubSubResponderRegEx = {};
|
|
63
|
-
// For a given pubsub topic, which subscriber ID's are listening
|
|
64
|
-
this.pubsubListOfSubscribers = {};
|
|
65
|
-
// Maps subscriber ID's to their callbacks
|
|
66
|
-
this.mapSubscribersID = {};
|
|
67
|
-
// Maps subscriber ID's to the topic they're subscribed on
|
|
68
|
-
this.mapSubscribersTopic = {};
|
|
69
|
-
this.mapQueryResponses = {};
|
|
70
|
-
// Map of running queries to their timeouts
|
|
71
|
-
this.mapQueryResponseTimeOut = {};
|
|
72
|
-
}
|
|
73
|
-
// ////////////////////
|
|
74
|
-
// Private Functions
|
|
75
|
-
// ////////////////////
|
|
76
|
-
// See IRouterClient.ts
|
|
77
|
-
onReadyCallBack() {
|
|
78
|
-
Logger.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient Ready");
|
|
79
|
-
this.isRouterReady = true;
|
|
80
|
-
// invoke all the parent callbacks waiting for router to be ready
|
|
81
|
-
while (this.parentReadyCallbackQueue.length > 0) {
|
|
82
|
-
Logger.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient parentReady invoked");
|
|
83
|
-
const nextParentCallback = this.parentReadyCallbackQueue.shift();
|
|
84
|
-
nextParentCallback === null || nextParentCallback === void 0 ? void 0 : nextParentCallback();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// *** all outbound messages exit here though the appropriate transport ***
|
|
88
|
-
sendToRouterService(message) {
|
|
89
|
-
if (!this.transport) {
|
|
90
|
-
Logger.system.info("RouterClient: Queuing message since router initialization not complete", message);
|
|
91
|
-
this.queue.push(message);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
this.transport.send(message);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
// returns true if this routerClient originated the message
|
|
98
|
-
originatedHere(message) {
|
|
99
|
-
return message.header.origin === this.clientName;
|
|
100
|
-
}
|
|
101
|
-
// invoke client callbacks in the input array (that are attached to a specific channel and listener type)
|
|
102
|
-
invokeListeners(message) {
|
|
103
|
-
const { channel, origin } = message.header;
|
|
104
|
-
const listeners = this.mapListeners[channel] || [];
|
|
105
|
-
if (!Array.isArray(listeners) || listeners.length === 0) {
|
|
106
|
-
Logger.system.log(`RouterClient: no listener for incoming transmit on channel ${channel} from ${origin}. Possibly the listener was removed while this message was in transit.`, message);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
message.originatedHere = () => this.originatedHere(message);
|
|
110
|
-
listeners.forEach((listener) => {
|
|
111
|
-
if (!Logger.channelFilter(channel)) {
|
|
112
|
-
Logger.system.info("RouterClient: incoming transmit", "CHANNEL", channel, "FROM", origin, "MESSAGE", message);
|
|
113
|
-
}
|
|
114
|
-
listener(null, message); // invoke the callback; the error parameter is always null for this case
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* When an incoming query request is received from a client (via the RouterService) we look
|
|
120
|
-
* up the registered responder and pass it the incoming query along with
|
|
121
|
-
* a sendQueryResponse() method that will return the data back to the client.
|
|
122
|
-
*/
|
|
123
|
-
invokeResponder(queryMessage) {
|
|
124
|
-
const { channel, origin, queryID, error } = queryMessage.header;
|
|
125
|
-
Logger.system.info("RouterClient: incoming query", "CHANNEL", channel, "FROM", origin, "QUERY MESSAGE", queryMessage);
|
|
126
|
-
/**
|
|
127
|
-
* Set up a closure that will allow our responder to send back a QueryResponse
|
|
128
|
-
*/
|
|
129
|
-
const sendQueryResponse = (err, responseData) => {
|
|
130
|
-
Logger.system.info("RouterClient: outgoing query response", "CHANNEL", channel, "RESPONSE DATA", responseData, "QUERY ID", queryID);
|
|
131
|
-
let message = {
|
|
132
|
-
header: {
|
|
133
|
-
origin: this.clientName,
|
|
134
|
-
queryID: queryID,
|
|
135
|
-
type: "queryResponse",
|
|
136
|
-
},
|
|
137
|
-
data: responseData,
|
|
138
|
-
};
|
|
139
|
-
// Native apps expect a non-error condition to always result in transmission of null (not missing or undefined).
|
|
140
|
-
// For actual errors, toString() converts from Error or string type
|
|
141
|
-
message.header.error = err ? err.toString() : null;
|
|
142
|
-
this.sendToRouterService(message);
|
|
143
|
-
};
|
|
144
|
-
const responderCallback = this.mapQueryResponders[channel];
|
|
145
|
-
if (responderCallback === undefined) {
|
|
146
|
-
if (queryMessage.header.logWhenNoResponder) {
|
|
147
|
-
Logger.system.warn(`RouterClient: No query responder defined on channel ${channel} for incoming from ${origin}.`, queryMessage);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
else if (!error) {
|
|
151
|
-
// Add the sendQueryResponse() and originatedHere() methods
|
|
152
|
-
const responderObject =
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
Logger.system.info("RouterClient: incoming
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
Logger.system.info("RouterClient: incoming PubSub notify
|
|
204
|
-
notifyCallback(
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
};
|
|
718
|
-
}
|
|
719
|
-
// See IRouterClient.ts
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
this.
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
this.
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
};
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
*
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
*
|
|
1067
|
-
*
|
|
1068
|
-
*
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
* @
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
*
|
|
1093
|
-
*
|
|
1094
|
-
*
|
|
1095
|
-
*
|
|
1096
|
-
*
|
|
1097
|
-
*
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
*
|
|
1107
|
-
*
|
|
1108
|
-
*
|
|
1109
|
-
*
|
|
1110
|
-
*
|
|
1111
|
-
* @param {string} channel
|
|
1112
|
-
* @param {function} eventHandler
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
routerConnection
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
*
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1126
|
-
*
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1129
|
-
*
|
|
1130
|
-
*
|
|
1131
|
-
*
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
*
|
|
1139
|
-
*
|
|
1140
|
-
*
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1153
|
-
*
|
|
1154
|
-
*
|
|
1155
|
-
*
|
|
1156
|
-
*
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
1160
|
-
*
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1163
|
-
*
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
* });
|
|
1170
|
-
* ```
|
|
1171
|
-
* @param {string}
|
|
1172
|
-
* @param {
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
*
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
* See [`addResponder
|
|
1184
|
-
*
|
|
1185
|
-
* ```javascript
|
|
1186
|
-
* FSBL.Clients.RouterClient.
|
|
1187
|
-
*
|
|
1188
|
-
*
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1197
|
-
*
|
|
1198
|
-
*
|
|
1199
|
-
*
|
|
1200
|
-
*
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1203
|
-
*
|
|
1204
|
-
*
|
|
1205
|
-
*
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
*
|
|
1213
|
-
*
|
|
1214
|
-
*
|
|
1215
|
-
*
|
|
1216
|
-
*
|
|
1217
|
-
*
|
|
1218
|
-
* FSBL.Clients.RouterClient.
|
|
1219
|
-
*
|
|
1220
|
-
*
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
*
|
|
1228
|
-
*
|
|
1229
|
-
*
|
|
1230
|
-
*
|
|
1231
|
-
*
|
|
1232
|
-
*
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1237
|
-
*
|
|
1238
|
-
*
|
|
1239
|
-
*
|
|
1240
|
-
*
|
|
1241
|
-
*
|
|
1242
|
-
*
|
|
1243
|
-
*
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
*
|
|
1247
|
-
*
|
|
1248
|
-
*
|
|
1249
|
-
*
|
|
1250
|
-
*
|
|
1251
|
-
*
|
|
1252
|
-
*
|
|
1253
|
-
*
|
|
1254
|
-
*
|
|
1255
|
-
*
|
|
1256
|
-
*
|
|
1257
|
-
*
|
|
1258
|
-
*
|
|
1259
|
-
*
|
|
1260
|
-
*
|
|
1261
|
-
*
|
|
1262
|
-
*
|
|
1263
|
-
*
|
|
1264
|
-
*
|
|
1265
|
-
*
|
|
1266
|
-
*
|
|
1267
|
-
*
|
|
1268
|
-
*
|
|
1269
|
-
*
|
|
1270
|
-
*
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
*
|
|
1274
|
-
*
|
|
1275
|
-
*
|
|
1276
|
-
*
|
|
1277
|
-
*
|
|
1278
|
-
*
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
1282
|
-
*
|
|
1283
|
-
*
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
*
|
|
1291
|
-
*
|
|
1292
|
-
*
|
|
1293
|
-
*
|
|
1294
|
-
*
|
|
1295
|
-
*
|
|
1296
|
-
*
|
|
1297
|
-
*
|
|
1298
|
-
*
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
*
|
|
1306
|
-
*
|
|
1307
|
-
*
|
|
1308
|
-
*
|
|
1309
|
-
*
|
|
1310
|
-
*
|
|
1311
|
-
*
|
|
1312
|
-
*
|
|
1313
|
-
*
|
|
1314
|
-
*
|
|
1315
|
-
*
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
*
|
|
1344
|
-
*
|
|
1345
|
-
*
|
|
1346
|
-
*
|
|
1347
|
-
*
|
|
1348
|
-
*
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1351
|
-
* @param {
|
|
1352
|
-
* @
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
*
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
*
|
|
1378
|
-
*
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
*
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
*
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* For communications amongst desktop services, components, or outside the container entirely, Finsemble provides an event infrastructure with high level protocols.
|
|
7
|
+
* The Router is the center of this functionality, sending and receiving messages between windows.
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* See the [Router tutorial](/docs/how-finsemble-works/TheRouter) for an overview.
|
|
11
|
+
* @module RouterClient
|
|
12
|
+
*/
|
|
13
|
+
import RouterTransport from "../platform/services/router/routerTransport";
|
|
14
|
+
import { toast } from "../common/toast";
|
|
15
|
+
import { LoggerClient as Logger } from "./logger"; // should never be used, but message sent before router ready will be queue
|
|
16
|
+
import { Globals } from "../common/Globals";
|
|
17
|
+
import { Performance } from "../common/Performance";
|
|
18
|
+
import { singleton } from "../common/Singleton";
|
|
19
|
+
import uuidv4 from "uuid-random";
|
|
20
|
+
/**
|
|
21
|
+
* Duplicate of Utils.clone(). Do not import Utils into this file because it drags along Monitors.ts which
|
|
22
|
+
* is incompatible with freestanding apps.
|
|
23
|
+
*/
|
|
24
|
+
function clone(from, to = {}) {
|
|
25
|
+
if (from === null || typeof from !== "object") {
|
|
26
|
+
return from;
|
|
27
|
+
}
|
|
28
|
+
if (from.constructor == Date ||
|
|
29
|
+
from.constructor == RegExp ||
|
|
30
|
+
from.constructor == Function ||
|
|
31
|
+
from.constructor == String ||
|
|
32
|
+
from.constructor == Number ||
|
|
33
|
+
from.constructor == Boolean) {
|
|
34
|
+
return new from.constructor(from);
|
|
35
|
+
}
|
|
36
|
+
to = to || new from.constructor();
|
|
37
|
+
for (const n in from) {
|
|
38
|
+
to[n] = typeof to[n] === "undefined" ? clone(from[n], null) : to[n];
|
|
39
|
+
}
|
|
40
|
+
return to;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @ignore
|
|
44
|
+
*/
|
|
45
|
+
export class RouterConnection {
|
|
46
|
+
constructor() {
|
|
47
|
+
this.queue = [];
|
|
48
|
+
this.started = false;
|
|
49
|
+
this.clientName = "RouterClient.clientName not yet set";
|
|
50
|
+
this.transport = null;
|
|
51
|
+
this.isRouterReady = false;
|
|
52
|
+
this.isTransportFailed = false;
|
|
53
|
+
this.parentReadyCallbackQueue = []; // must be queue because may be multiple waiters
|
|
54
|
+
this.parentFailureCallbackQueue = []; // must be queue because may be multiple waiters
|
|
55
|
+
// Maps all listeners ( registered with calls to subscribe() ) for the given topics
|
|
56
|
+
this.mapListeners = {};
|
|
57
|
+
// Maps query channels to the registered responder (from a call to addResponder() )
|
|
58
|
+
this.mapQueryResponders = {};
|
|
59
|
+
this.mapPubSubResponders = {};
|
|
60
|
+
// Contains the current state for all responder channels
|
|
61
|
+
this.mapPubSubResponderState = {};
|
|
62
|
+
this.mapPubSubResponderRegEx = {};
|
|
63
|
+
// For a given pubsub topic, which subscriber ID's are listening
|
|
64
|
+
this.pubsubListOfSubscribers = {};
|
|
65
|
+
// Maps subscriber ID's to their callbacks
|
|
66
|
+
this.mapSubscribersID = {};
|
|
67
|
+
// Maps subscriber ID's to the topic they're subscribed on
|
|
68
|
+
this.mapSubscribersTopic = {};
|
|
69
|
+
this.mapQueryResponses = {};
|
|
70
|
+
// Map of running queries to their timeouts
|
|
71
|
+
this.mapQueryResponseTimeOut = {};
|
|
72
|
+
}
|
|
73
|
+
// ////////////////////
|
|
74
|
+
// Private Functions
|
|
75
|
+
// ////////////////////
|
|
76
|
+
// See IRouterClient.ts
|
|
77
|
+
onReadyCallBack() {
|
|
78
|
+
Logger.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient Ready");
|
|
79
|
+
this.isRouterReady = true;
|
|
80
|
+
// invoke all the parent callbacks waiting for router to be ready
|
|
81
|
+
while (this.parentReadyCallbackQueue.length > 0) {
|
|
82
|
+
Logger.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient parentReady invoked");
|
|
83
|
+
const nextParentCallback = this.parentReadyCallbackQueue.shift();
|
|
84
|
+
nextParentCallback === null || nextParentCallback === void 0 ? void 0 : nextParentCallback();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// *** all outbound messages exit here though the appropriate transport ***
|
|
88
|
+
sendToRouterService(message) {
|
|
89
|
+
if (!this.transport) {
|
|
90
|
+
Logger.system.info("RouterClient: Queuing message since router initialization not complete", message);
|
|
91
|
+
this.queue.push(message);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this.transport.send(message);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// returns true if this routerClient originated the message
|
|
98
|
+
originatedHere(message) {
|
|
99
|
+
return message.header.origin === this.clientName;
|
|
100
|
+
}
|
|
101
|
+
// invoke client callbacks in the input array (that are attached to a specific channel and listener type)
|
|
102
|
+
invokeListeners(message) {
|
|
103
|
+
const { channel, origin } = message.header;
|
|
104
|
+
const listeners = this.mapListeners[channel] || [];
|
|
105
|
+
if (!Array.isArray(listeners) || listeners.length === 0) {
|
|
106
|
+
Logger.system.log(`RouterClient: no listener for incoming transmit on channel ${channel} from ${origin}. Possibly the listener was removed while this message was in transit.`, message);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
message.originatedHere = () => this.originatedHere(message);
|
|
110
|
+
listeners.forEach((listener) => {
|
|
111
|
+
if (!Logger.channelFilter(channel)) {
|
|
112
|
+
Logger.system.info("RouterClient: incoming transmit", "CHANNEL", channel, "FROM", origin, "MESSAGE", message);
|
|
113
|
+
}
|
|
114
|
+
listener(null, message); // invoke the callback; the error parameter is always null for this case
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* When an incoming query request is received from a client (via the RouterService) we look
|
|
120
|
+
* up the registered responder and pass it the incoming query along with
|
|
121
|
+
* a sendQueryResponse() method that will return the data back to the client.
|
|
122
|
+
*/
|
|
123
|
+
invokeResponder(queryMessage) {
|
|
124
|
+
const { channel, origin, queryID, error } = queryMessage.header;
|
|
125
|
+
Logger.system.info("RouterClient: incoming query", "CHANNEL", channel, "FROM", origin, "QUERY MESSAGE", queryMessage);
|
|
126
|
+
/**
|
|
127
|
+
* Set up a closure that will allow our responder to send back a QueryResponse
|
|
128
|
+
*/
|
|
129
|
+
const sendQueryResponse = (err, responseData) => {
|
|
130
|
+
Logger.system.info("RouterClient: outgoing query response", "CHANNEL", channel, "RESPONSE DATA", responseData, "QUERY ID", queryID);
|
|
131
|
+
let message = {
|
|
132
|
+
header: {
|
|
133
|
+
origin: this.clientName,
|
|
134
|
+
queryID: queryID,
|
|
135
|
+
type: "queryResponse",
|
|
136
|
+
},
|
|
137
|
+
data: responseData,
|
|
138
|
+
};
|
|
139
|
+
// Native apps expect a non-error condition to always result in transmission of null (not missing or undefined).
|
|
140
|
+
// For actual errors, toString() converts from Error or string type
|
|
141
|
+
message.header.error = err ? err.toString() : null;
|
|
142
|
+
this.sendToRouterService(message);
|
|
143
|
+
};
|
|
144
|
+
const responderCallback = this.mapQueryResponders[channel];
|
|
145
|
+
if (responderCallback === undefined) {
|
|
146
|
+
if (queryMessage.header.logWhenNoResponder) {
|
|
147
|
+
Logger.system.warn(`RouterClient: No query responder defined on channel ${channel} for incoming from ${origin}.`, queryMessage);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
else if (!error) {
|
|
151
|
+
// Add the sendQueryResponse() and originatedHere() methods
|
|
152
|
+
const responderObject = {
|
|
153
|
+
...queryMessage,
|
|
154
|
+
originatedHere: () => this.originatedHere(queryMessage),
|
|
155
|
+
sendQueryResponse: (err, responseData) => {
|
|
156
|
+
sendQueryResponse(err, responseData);
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
responderCallback(null, responderObject); // invoke the callback (no error)
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
// invoke the callback with error since flag in message (from router service)
|
|
163
|
+
Logger.system.warn("RouterClient: queryResponder error", queryMessage);
|
|
164
|
+
responderCallback(error);
|
|
165
|
+
delete this.mapQueryResponders[channel]; // this is a bad responder (e.g. duplicate) so remove it
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Received a query response back from the router service. Look up the callback
|
|
170
|
+
* and invoke it with the received data.
|
|
171
|
+
*/
|
|
172
|
+
invokeQueryResponse(message) {
|
|
173
|
+
var _a;
|
|
174
|
+
Logger.system.info("RouterClient: incoming query response", "CHANNEL", message.header.channel, "QUERY ID", message.header.queryID, "message", message);
|
|
175
|
+
const { queryID } = message.header;
|
|
176
|
+
// delete any existing timer waiting on the response
|
|
177
|
+
const theTimer = this.mapQueryResponseTimeOut[queryID];
|
|
178
|
+
delete this.mapQueryResponseTimeOut[queryID];
|
|
179
|
+
if (theTimer)
|
|
180
|
+
clearTimeout(theTimer);
|
|
181
|
+
const clientCallback = this.mapQueryResponses[queryID];
|
|
182
|
+
if (clientCallback) {
|
|
183
|
+
delete this.mapQueryResponses[queryID];
|
|
184
|
+
const error = (_a = message.header.error) !== null && _a !== void 0 ? _a : null;
|
|
185
|
+
clientCallback(error, message);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
Logger.system.warn("Invariant: RouterClient: no handler found for incoming query response.", message);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Updates pub/sub subscriptions whenever state updates (or on initial subscribe to the topic).
|
|
193
|
+
* This looks up local subscribers and calls them with the pub/sub state.
|
|
194
|
+
*/
|
|
195
|
+
invokeNotifyCallback(notifyMessage) {
|
|
196
|
+
const { subscribeID, error } = notifyMessage.header;
|
|
197
|
+
const notifyCallback = this.mapSubscribersID[subscribeID];
|
|
198
|
+
if (!notifyCallback) {
|
|
199
|
+
Logger.system.info("RouterClient: no subscription handler defined for incoming notify for subscriberID. Possibly the subscription was removed while this publish was in transit.", subscribeID, notifyMessage);
|
|
200
|
+
}
|
|
201
|
+
else if (!error) {
|
|
202
|
+
notifyMessage.originatedHere = () => this.originatedHere(notifyMessage);
|
|
203
|
+
Logger.system.info("RouterClient: incoming PubSub notify", "SUBSCRIBER ID", subscribeID, "NOTIFY MESSAGE", notifyMessage);
|
|
204
|
+
notifyCallback(null, notifyMessage);
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
Logger.system.info("RouterClient: incoming PubSub notify error for subscriberID", "SUBSCRIBER ID", subscribeID, "NOTIFY MESSAGE", notifyMessage);
|
|
208
|
+
notifyCallback(error, notifyMessage);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Returns a responder given a topic. The topic could be a regex key, in
|
|
213
|
+
* which case mapPubSubResponderRegEx is searched
|
|
214
|
+
*/
|
|
215
|
+
findResponder(topic) {
|
|
216
|
+
const responder = this.mapPubSubResponders[topic];
|
|
217
|
+
// if responder is undefined then look for a matching RegEx topic
|
|
218
|
+
if (!responder) {
|
|
219
|
+
for (const key in this.mapPubSubResponderRegEx) {
|
|
220
|
+
if (this.mapPubSubResponderRegEx[key].test(topic)) {
|
|
221
|
+
return this.mapPubSubResponders[key];
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
return responder;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
// for incoming Publish: invoke publish callback for pubsub server
|
|
230
|
+
invokePublishEvent(publishMessage) {
|
|
231
|
+
const { topic } = publishMessage.header;
|
|
232
|
+
let responder = this.findResponder(topic);
|
|
233
|
+
// if responder is *still* undefined
|
|
234
|
+
if (!responder) {
|
|
235
|
+
Logger.system.warn("RouterClient: no pubsub responder defined for incoming publish", "TOPIC", topic, "PUBLISH MESSAGE", publishMessage);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
// callback function for invokePublishPubSubCallback to send Notify
|
|
239
|
+
const sendNotifyToAllSubscribers = (request, err, notifyData) => {
|
|
240
|
+
var _a;
|
|
241
|
+
if (!err) {
|
|
242
|
+
this.mapPubSubResponderState[topic] = notifyData; // store new state
|
|
243
|
+
const listOfSubscribers = (_a = this.pubsubListOfSubscribers[topic]) !== null && _a !== void 0 ? _a : [];
|
|
244
|
+
listOfSubscribers.forEach((subscribeID) => {
|
|
245
|
+
Logger.system.info("RouterClient: sending pubsub notify", "TOPIC", topic, "NOTIFY DATA", notifyData);
|
|
246
|
+
const message = {
|
|
247
|
+
header: {
|
|
248
|
+
origin: this.clientName,
|
|
249
|
+
type: "notify",
|
|
250
|
+
topic: topic,
|
|
251
|
+
subscribeID,
|
|
252
|
+
},
|
|
253
|
+
data: notifyData,
|
|
254
|
+
};
|
|
255
|
+
this.sendToRouterService(message);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
Logger.system.warn("RouterClient: incoming publish rejected by pubsub responder", err, notifyData);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
Logger.system.info(`RouterClient: incoming PubSub publish ${responder.publishCallback ? "(publishCallback hook invoked)" : ""}`, "TOPIC", topic, "PUBLISH MESSAGE", publishMessage);
|
|
263
|
+
// If the responder has a hook for publish events
|
|
264
|
+
if (responder.publishCallback) {
|
|
265
|
+
const hookMessage = {
|
|
266
|
+
...publishMessage,
|
|
267
|
+
sendNotifyToAllSubscribers: (err, data) => {
|
|
268
|
+
sendNotifyToAllSubscribers(publishMessage, err, data);
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
responder.publishCallback(null, hookMessage);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
// since no publish callback defined, use default functionality
|
|
275
|
+
sendNotifyToAllSubscribers(publishMessage, null, publishMessage.data);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
// for incoming subscribe: invoke notify callback for pubsub responder
|
|
280
|
+
invokeSubscribeEvent(subscribeMessage) {
|
|
281
|
+
var _a;
|
|
282
|
+
const { topic, error } = subscribeMessage.header;
|
|
283
|
+
Logger.system.info("RouterClient: PubSub subscribe", "TOPIC", topic);
|
|
284
|
+
let responder = this.mapPubSubResponders[topic];
|
|
285
|
+
if (!responder) {
|
|
286
|
+
// if responder is undefined then look for a matching RegEx topic
|
|
287
|
+
for (const regExKey in this.mapPubSubResponderRegEx) {
|
|
288
|
+
if (this.mapPubSubResponderRegEx[regExKey].test(topic)) {
|
|
289
|
+
responder = this.mapPubSubResponders[regExKey];
|
|
290
|
+
// If no initial state defined then take the default from the regEx
|
|
291
|
+
this.mapPubSubResponderState[topic] =
|
|
292
|
+
(_a = this.mapPubSubResponderState[topic]) !== null && _a !== void 0 ? _a : this.mapPubSubResponderState[regExKey];
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (!responder) {
|
|
298
|
+
// If responder is *still* undefined then warning
|
|
299
|
+
Logger.system.warn("RouterClient: no pubsub responder defined for incoming subscribe event", subscribeMessage);
|
|
300
|
+
}
|
|
301
|
+
else if (error) {
|
|
302
|
+
Logger.system.warn(`RouterClient: pubsub error received from router service: ${error}`, subscribeMessage);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
if (responder.subscribeCallback) {
|
|
306
|
+
const hookMessage = {
|
|
307
|
+
...subscribeMessage,
|
|
308
|
+
sendNotifyToSubscriber: (err, data) => {
|
|
309
|
+
this.sendNotifyToSubscriber(subscribeMessage, err, data);
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
subscribeMessage.data = this.mapPubSubResponderState[topic];
|
|
313
|
+
responder.subscribeCallback(null, hookMessage); // invoke the callback (no error)
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
// since no subscribe callback defined, use default functionality
|
|
317
|
+
this.sendNotifyToSubscriber(subscribeMessage, null, this.mapPubSubResponderState[topic]);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
// for incoming unsubscribe: invoke unsubscribe callback for pubsub server
|
|
322
|
+
invokeUnsubscribeEvent(unsubscribeMessage) {
|
|
323
|
+
const { topic, subscribeID } = unsubscribeMessage.header;
|
|
324
|
+
let responder = this.findResponder(topic);
|
|
325
|
+
if (!responder) {
|
|
326
|
+
// if responder is undefined then look for a matching RegEx topic
|
|
327
|
+
for (const key in this.mapPubSubResponderRegEx) {
|
|
328
|
+
if (this.mapPubSubResponderRegEx[key].test(topic)) {
|
|
329
|
+
responder = this.mapPubSubResponders[key];
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
if (!responder) {
|
|
335
|
+
// if responder is *still* undefined
|
|
336
|
+
Logger.system.warn("RouterClient: no pubsub responder defined for incoming unsubscribe event", "TOPIC", topic, "UNSUBSCRIBE MESSAGE", unsubscribeMessage);
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
Logger.system.info(`RouterClient: incoming unsubscribe ${responder.unsubscribeCallback ? "with unsubscribeCallback hook" : ""}`, "TOPIC", topic, "UNSUBSCRIBE MESSAGE", unsubscribeMessage);
|
|
340
|
+
if (responder.unsubscribeCallback) {
|
|
341
|
+
const hookMessage = {
|
|
342
|
+
...unsubscribeMessage,
|
|
343
|
+
removeSubscriber: () => {
|
|
344
|
+
this.removeSubscribers(topic, subscribeID);
|
|
345
|
+
},
|
|
346
|
+
};
|
|
347
|
+
responder.unsubscribeCallback(null, hookMessage); // invoke the callback (no error)
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
// since no unsubscribe callback defined, use default functionality
|
|
351
|
+
this.removeSubscribers(topic, subscribeID);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
// callback function for invokeSubscribePubSubCallback to notify new subscriber
|
|
356
|
+
sendNotifyToSubscriber(subscribeMessage, err, notifyData) {
|
|
357
|
+
const { topic, subscribeID } = subscribeMessage.header;
|
|
358
|
+
// Don't send initial notification unless state has been explicitly defined (it may be null, so we have to explicitly check for undefined).
|
|
359
|
+
// This matches functionality if this pubsub responder is in routerService;
|
|
360
|
+
// This can happen because initialState is an optional parameter
|
|
361
|
+
if (typeof notifyData !== "undefined") {
|
|
362
|
+
let message = {
|
|
363
|
+
header: {
|
|
364
|
+
origin: this.clientName,
|
|
365
|
+
type: "notify",
|
|
366
|
+
topic: topic,
|
|
367
|
+
subscribeID: subscribeID,
|
|
368
|
+
},
|
|
369
|
+
data: notifyData,
|
|
370
|
+
};
|
|
371
|
+
if (err)
|
|
372
|
+
message.header.error = err;
|
|
373
|
+
this.sendToRouterService(message);
|
|
374
|
+
}
|
|
375
|
+
if (!err) {
|
|
376
|
+
// add new subscriber to list
|
|
377
|
+
if (!(topic in this.pubsubListOfSubscribers)) {
|
|
378
|
+
this.pubsubListOfSubscribers[topic] = [subscribeID];
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
this.pubsubListOfSubscribers[topic].push(subscribeID);
|
|
382
|
+
}
|
|
383
|
+
Logger.system.info("RouterClient: incoming subscription added", "TOPIC", topic, "MESSAGE");
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
Logger.system.warn("RouterClient: incoming subscription rejected by pubsub responder", "TOPIC", topic, "MESSAGE", this);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
// Removes the subscribeID from the array for the given subscription topic
|
|
390
|
+
removeSubscribers(topic, subscribeID) {
|
|
391
|
+
let removed = false;
|
|
392
|
+
if (topic in this.pubsubListOfSubscribers) {
|
|
393
|
+
const list = this.pubsubListOfSubscribers[topic];
|
|
394
|
+
for (let i = 0; i < list.length; i++) {
|
|
395
|
+
if (subscribeID === list[i]) {
|
|
396
|
+
list.splice(i, 1);
|
|
397
|
+
if (list.length === 0) {
|
|
398
|
+
delete this.pubsubListOfSubscribers[topic];
|
|
399
|
+
}
|
|
400
|
+
removed = true;
|
|
401
|
+
Logger.system.info("RouterClient: PubSub removeListener", "TOPIC", topic, "FROM", subscribeID);
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
if (!removed) {
|
|
407
|
+
Logger.system.warn(`RouterClient: tried to remove non-existent listener on ${topic} from ${subscribeID}`);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
// route incoming message to appropriate callback, which depends on the message type and channel
|
|
411
|
+
routeIncomingMessage(incomingMessage) {
|
|
412
|
+
const newTimeCalibrationHandler = () => {
|
|
413
|
+
if (!this.timeCalibrationHandler) {
|
|
414
|
+
setTimeout(() => {
|
|
415
|
+
newTimeCalibrationHandler();
|
|
416
|
+
}, 10);
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
this.timeCalibrationHandler(incomingMessage);
|
|
420
|
+
};
|
|
421
|
+
Logger.system.verbose("Incoming Message Type", incomingMessage.header.type, incomingMessage);
|
|
422
|
+
switch (incomingMessage.header.type) {
|
|
423
|
+
case "transmit":
|
|
424
|
+
this.invokeListeners(incomingMessage);
|
|
425
|
+
break;
|
|
426
|
+
case "query":
|
|
427
|
+
this.invokeResponder(incomingMessage);
|
|
428
|
+
break;
|
|
429
|
+
case "queryResponse":
|
|
430
|
+
this.invokeQueryResponse(incomingMessage);
|
|
431
|
+
break;
|
|
432
|
+
case "notify":
|
|
433
|
+
this.invokeNotifyCallback(incomingMessage);
|
|
434
|
+
break;
|
|
435
|
+
case "publish":
|
|
436
|
+
this.invokePublishEvent(incomingMessage);
|
|
437
|
+
break;
|
|
438
|
+
case "subscribe":
|
|
439
|
+
this.invokeSubscribeEvent(incomingMessage);
|
|
440
|
+
break;
|
|
441
|
+
case "unsubscribe":
|
|
442
|
+
this.invokeUnsubscribeEvent(incomingMessage);
|
|
443
|
+
break;
|
|
444
|
+
case "timeCalibration":
|
|
445
|
+
// Sometimes when multiple BrowserViews are added to the same window in quick succession (e.g. when loading dashbar at startup)
|
|
446
|
+
// It gets in here before this function exists. So wait for the function to exist.
|
|
447
|
+
newTimeCalibrationHandler();
|
|
448
|
+
break;
|
|
449
|
+
case "initialHandshakeResponse":
|
|
450
|
+
this.handshakeHandler();
|
|
451
|
+
break;
|
|
452
|
+
default:
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
// connects to event-router service. will retry various ways if needed
|
|
456
|
+
asyncConnectToEventRouter(routerConfig, transportName, cb) {
|
|
457
|
+
Logger.system.debug(`Name of transport to establish: ${transportName}`);
|
|
458
|
+
let myTimer = null;
|
|
459
|
+
let myRetryCounter = 0;
|
|
460
|
+
let isFinished = false;
|
|
461
|
+
let handshakeFailedCount = 0;
|
|
462
|
+
// Define getClientTransport to avoid warning about it being used before defined.
|
|
463
|
+
let getClientTransport = null;
|
|
464
|
+
const handshakeFailedHandler = () => {
|
|
465
|
+
clearInterval(myTimer);
|
|
466
|
+
handshakeFailedCount++;
|
|
467
|
+
if (handshakeFailedCount <= 3) {
|
|
468
|
+
Logger.console.error("WINDOW LIFECYCLE:STARTUP:RouterClient: failure to connect to router service. Retrying...", handshakeFailedCount, routerConfig);
|
|
469
|
+
getClientTransport === null || getClientTransport === void 0 ? void 0 : getClientTransport();
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
const failureMessage = "A cross domain transport has failed to connect. Cross domain components may not work. Please contact your administrator.";
|
|
473
|
+
Logger.console.error(failureMessage, routerConfig);
|
|
474
|
+
toast("dev", "ONCE-SINCE-STARTUP", "FSBL-Internal-Transport-Failure", failureMessage);
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
const sendHandshake = () => {
|
|
478
|
+
var _a;
|
|
479
|
+
const MaxRetryHandshake = Number.MAX_SAFE_INTEGER;
|
|
480
|
+
Logger.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient: sendHandshake", myRetryCounter);
|
|
481
|
+
const message = {
|
|
482
|
+
header: {
|
|
483
|
+
origin: this.clientName,
|
|
484
|
+
type: "initialHandshake",
|
|
485
|
+
},
|
|
486
|
+
};
|
|
487
|
+
(_a = Globals.fin) === null || _a === void 0 ? void 0 : _a.log(`preload: sending handshake attempt ${myRetryCounter}`);
|
|
488
|
+
this.sendToRouterService(message);
|
|
489
|
+
if (myRetryCounter++ > MaxRetryHandshake) {
|
|
490
|
+
handshakeFailedHandler();
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
const finished = () => {
|
|
494
|
+
var _a, _b;
|
|
495
|
+
(_a = Globals.fin) === null || _a === void 0 ? void 0 : _a.log("preload: received finished handshake");
|
|
496
|
+
if (!isFinished) {
|
|
497
|
+
// ensure only invoked once
|
|
498
|
+
Logger.system.debug(`WINDOW LIFECYCLE:STARTUP:RouterClient connected: Starting ${this.clientName} with transport ${this.transport.identifier()}`);
|
|
499
|
+
isFinished = true;
|
|
500
|
+
clearInterval(myTimer);
|
|
501
|
+
// this should not happen with proper startup order, which waits on routerClient to be ready
|
|
502
|
+
for (let i = 0; i < this.queue.length; i++) {
|
|
503
|
+
Logger.system.debug("RouterClient: releasing queued msg");
|
|
504
|
+
const msg = this.queue[i];
|
|
505
|
+
// Queued messages won't yet have had a valid origin (clientName). We can replace it now that clientName has been definitively set.
|
|
506
|
+
this.transport.send({
|
|
507
|
+
...msg,
|
|
508
|
+
header: {
|
|
509
|
+
...msg.header,
|
|
510
|
+
origin: this.clientName,
|
|
511
|
+
},
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
// notify initialization is complete
|
|
515
|
+
(_b = Globals.fin) === null || _b === void 0 ? void 0 : _b.log("preload: routerClient handshake completed");
|
|
516
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
const transportReady = (transportObj) => {
|
|
520
|
+
var _a;
|
|
521
|
+
(_a = Globals.fin) === null || _a === void 0 ? void 0 : _a.log("preload: transportReady");
|
|
522
|
+
const HandshakeRetryInterval = 1000;
|
|
523
|
+
myRetryCounter = 0;
|
|
524
|
+
Logger.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:transport ready", "TRANSPORT OBJECT", transportObj);
|
|
525
|
+
this.transport = transportObj;
|
|
526
|
+
this.handshakeHandler = finished; // set function to receive handshake response
|
|
527
|
+
sendHandshake();
|
|
528
|
+
myTimer = setInterval(sendHandshake, HandshakeRetryInterval); // time to retry if response not received back from router service
|
|
529
|
+
};
|
|
530
|
+
const onFailureCallBack = () => {
|
|
531
|
+
Logger.system.error("RouterClient Transport Failed -- onFailure() callbacks invoked.");
|
|
532
|
+
this.isTransportFailed = true;
|
|
533
|
+
// invoke all the parent callbacks registered for onFailure
|
|
534
|
+
while (this.parentFailureCallbackQueue.length > 0) {
|
|
535
|
+
Logger.system.debug("RouterClient parentFailure invoked");
|
|
536
|
+
const nextParentCallback = this.parentFailureCallbackQueue.shift();
|
|
537
|
+
nextParentCallback === null || nextParentCallback === void 0 ? void 0 : nextParentCallback();
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
getClientTransport = () => {
|
|
541
|
+
Logger.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:getClientTransport", "ROUTER PARAMS:", routerConfig);
|
|
542
|
+
// *** all incoming messages from underlying transport arrive here ***
|
|
543
|
+
// although incoming transport information is available, it is not passed on because not needed
|
|
544
|
+
const incomingMessageHandler = (incomingTransportInfo, message) => {
|
|
545
|
+
message.header.lastClient = this.clientName; // add last client for diagnostics
|
|
546
|
+
message.header.incomingTransportInfo = incomingTransportInfo;
|
|
547
|
+
this.routeIncomingMessage(message);
|
|
548
|
+
};
|
|
549
|
+
RouterTransport.getTransport(routerConfig, transportName, incomingMessageHandler, this.clientName, "RouterService", onFailureCallBack)
|
|
550
|
+
.then(transportReady)
|
|
551
|
+
.catch((error) => {
|
|
552
|
+
Logger.console.error("RouterClient getTransport error", error);
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
// main code for this asyncConnectToEventRouter function -- only executed once
|
|
556
|
+
getClientTransport();
|
|
557
|
+
}
|
|
558
|
+
// support function for addPubSubResponder -- add pubsub responder callbackHandler for the given channel
|
|
559
|
+
addPubSubResponderCallBack(topic, subscribeCallback, publishCallback, unsubscribeCallback) {
|
|
560
|
+
const topicAsString = topic.toString(); // toString() in case RegExp
|
|
561
|
+
if (!this.mapPubSubResponders[topicAsString]) {
|
|
562
|
+
if (topic instanceof RegExp) {
|
|
563
|
+
this.mapPubSubResponderRegEx[topicAsString] = topic;
|
|
564
|
+
Logger.system.info(`RouterClient: PubSub RegEx added for topic ${topicAsString}`);
|
|
565
|
+
}
|
|
566
|
+
this.mapPubSubResponders[topicAsString] = {
|
|
567
|
+
subscribeCallback,
|
|
568
|
+
publishCallback,
|
|
569
|
+
unsubscribeCallback,
|
|
570
|
+
};
|
|
571
|
+
return true;
|
|
572
|
+
}
|
|
573
|
+
return false;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Estimates offset to align the reference time with Router Service. Does this by exchanging messages with RouterService, getting the service's time, and estimating communication delay.
|
|
577
|
+
*/
|
|
578
|
+
calibrateTimeWithRouterService(callback) {
|
|
579
|
+
const TARGET_HANDSHAKE_COUNT = 5;
|
|
580
|
+
let handshakeCounter = 0;
|
|
581
|
+
let offsetForFastest = 0;
|
|
582
|
+
let fastestRRT = Infinity;
|
|
583
|
+
const calibrationCalculation = (finalHandshakeMessage) => {
|
|
584
|
+
const { clientBaseTime, serviceBaseTime } = finalHandshakeMessage;
|
|
585
|
+
let timeOffset = 0;
|
|
586
|
+
for (let i = 1; i < TARGET_HANDSHAKE_COUNT; i++) {
|
|
587
|
+
const startClientTime = clientBaseTime[i - 1];
|
|
588
|
+
const stopClientTime = clientBaseTime[i];
|
|
589
|
+
const rtt = stopClientTime - startClientTime; // round-trip time
|
|
590
|
+
const serviceTime = serviceBaseTime[i - 1];
|
|
591
|
+
const offset = serviceTime - (startClientTime + rtt / 2);
|
|
592
|
+
if (rtt < fastestRRT) {
|
|
593
|
+
fastestRRT = rtt;
|
|
594
|
+
offsetForFastest = offset;
|
|
595
|
+
}
|
|
596
|
+
timeOffset = timeOffset + offset;
|
|
597
|
+
Logger.system.debug("calibrationCalculation Intermediate Values", "lastRRT", rtt, "lastOffset", offset, "fastestOffset", offsetForFastest, "fastestRRT", fastestRRT);
|
|
598
|
+
}
|
|
599
|
+
timeOffset = timeOffset / (TARGET_HANDSHAKE_COUNT - 1);
|
|
600
|
+
Logger.system.debug("RouterClient calibrationCalculation", "Average Offset", timeOffset, "Chosen FastestOffset", offsetForFastest, finalHandshakeMessage);
|
|
601
|
+
callback(offsetForFastest); // use the offset with the shortest RTT since it is often the most accurate
|
|
602
|
+
};
|
|
603
|
+
const timeCalibrationHandlerFunction = (calibration) => {
|
|
604
|
+
handshakeCounter++;
|
|
605
|
+
if (handshakeCounter > TARGET_HANDSHAKE_COUNT) {
|
|
606
|
+
calibrationCalculation(calibration); // enough handshake data gather, so do the calibration
|
|
607
|
+
}
|
|
608
|
+
else {
|
|
609
|
+
calibration.clientBaseTime.push(Performance.timing.navigationStart + Performance.now());
|
|
610
|
+
const message = {
|
|
611
|
+
header: {
|
|
612
|
+
origin: this.clientName,
|
|
613
|
+
type: "timeCalibration",
|
|
614
|
+
},
|
|
615
|
+
clientBaseTime: calibration.clientBaseTime,
|
|
616
|
+
serviceBaseTime: calibration.serviceBaseTime,
|
|
617
|
+
};
|
|
618
|
+
this.sendToRouterService(message);
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
const message = {
|
|
622
|
+
header: {
|
|
623
|
+
origin: this.clientName,
|
|
624
|
+
type: "timeCalibration",
|
|
625
|
+
},
|
|
626
|
+
clientBaseTime: [],
|
|
627
|
+
serviceBaseTime: [],
|
|
628
|
+
};
|
|
629
|
+
this.timeCalibrationHandler = timeCalibrationHandlerFunction; // used in routeIncomingMessage to route handshake response back to handler
|
|
630
|
+
this.timeCalibrationHandler(message); // invoke first time to start exchanging handshakes; will be invoked each time handshake message received back from RouterService
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* Starts the router client, creating a unique name to represent this instance, initiating the
|
|
634
|
+
* transport that is specified in routerConfig, and then registering itself with the router
|
|
635
|
+
* service. Most of this work occurs in the internal function `asyncConnectToEventRouter()`.
|
|
636
|
+
*/
|
|
637
|
+
start(routerConfig) {
|
|
638
|
+
return new Promise(async (resolve) => {
|
|
639
|
+
var _a;
|
|
640
|
+
if (this.started) {
|
|
641
|
+
const warning = `RouterClient.start() called twice. Ignoring second call.`;
|
|
642
|
+
Logger.system.warn(warning);
|
|
643
|
+
return resolve(warning);
|
|
644
|
+
}
|
|
645
|
+
this.started = true;
|
|
646
|
+
// The client name is also the origin name passed to router service.
|
|
647
|
+
// NOTE: the second dot-separated token in the clientName must be the window name since the router service will
|
|
648
|
+
// bind this name to the transport so the InteropService can use for authentication
|
|
649
|
+
this.clientName = `RouterClient.${routerConfig.windowName}.${uuidv4()}`;
|
|
650
|
+
const logMessage = `"RouterClient Check: connecting new client for ${this.clientName}`;
|
|
651
|
+
Logger.system.debug(logMessage);
|
|
652
|
+
console.debug(logMessage);
|
|
653
|
+
(_a = Globals.fin) === null || _a === void 0 ? void 0 : _a.log(logMessage);
|
|
654
|
+
RouterTransport.setTransports();
|
|
655
|
+
this.asyncConnectToEventRouter(routerConfig, routerConfig.transportName, () => {
|
|
656
|
+
this.onReadyCallBack();
|
|
657
|
+
resolve(null);
|
|
658
|
+
});
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
// See IRouterClient.ts
|
|
662
|
+
disconnectFromService() {
|
|
663
|
+
Logger.system.info("RouterClient.disconnectFromService");
|
|
664
|
+
const message = {
|
|
665
|
+
header: {
|
|
666
|
+
origin: this.clientName,
|
|
667
|
+
type: "disconnectFromService",
|
|
668
|
+
},
|
|
669
|
+
};
|
|
670
|
+
this.sendToRouterService(message);
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* Stops the router. This disconnects all responders and listeners and closes all transports.
|
|
674
|
+
* Once stopped, a router may be started again.
|
|
675
|
+
*/
|
|
676
|
+
stop() {
|
|
677
|
+
// Remove all registered listeners from router service
|
|
678
|
+
this.disconnectAll();
|
|
679
|
+
// Close the currently open transport
|
|
680
|
+
RouterTransport.close();
|
|
681
|
+
this.started = false;
|
|
682
|
+
this.disconnectFromService();
|
|
683
|
+
}
|
|
684
|
+
// ///////////////////////////////////////////
|
|
685
|
+
// Public Functions -- The Router Client API
|
|
686
|
+
// ///////////////////////////////////////////
|
|
687
|
+
// See IRouterClient.ts
|
|
688
|
+
onReady(cb) {
|
|
689
|
+
return new Promise((resolve) => {
|
|
690
|
+
const sendSignal = () => {
|
|
691
|
+
if (cb)
|
|
692
|
+
cb();
|
|
693
|
+
resolve();
|
|
694
|
+
};
|
|
695
|
+
if (this.isRouterReady) {
|
|
696
|
+
sendSignal();
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
this.parentReadyCallbackQueue.push(sendSignal);
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
// See IRouterClient.ts
|
|
704
|
+
onFailure(cb) {
|
|
705
|
+
return new Promise((resolve) => {
|
|
706
|
+
const sendSignal = () => {
|
|
707
|
+
if (cb)
|
|
708
|
+
cb();
|
|
709
|
+
resolve();
|
|
710
|
+
};
|
|
711
|
+
if (this.isTransportFailed) {
|
|
712
|
+
sendSignal();
|
|
713
|
+
}
|
|
714
|
+
else {
|
|
715
|
+
this.parentFailureCallbackQueue.push(sendSignal);
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
// See IRouterClient.ts
|
|
720
|
+
addListener(channel, eventHandler) {
|
|
721
|
+
Logger.system.info("RouterClient.addListener", "CHANNEL", channel);
|
|
722
|
+
// for addListener: add a callbackHandler into the specified map (which depends on listener type) for the given channel
|
|
723
|
+
const listeners = this.mapListeners[channel];
|
|
724
|
+
if (!listeners || listeners.length === 0) {
|
|
725
|
+
this.mapListeners[channel] = [eventHandler];
|
|
726
|
+
const message = {
|
|
727
|
+
header: {
|
|
728
|
+
origin: this.clientName,
|
|
729
|
+
type: "addListener",
|
|
730
|
+
channel,
|
|
731
|
+
},
|
|
732
|
+
};
|
|
733
|
+
this.sendToRouterService(message);
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
736
|
+
if (listeners.some((listener) => eventHandler === listener)) {
|
|
737
|
+
Logger.debug("RouterClient.addListener() Ignoring duplicate listener with identical callback", channel, eventHandler);
|
|
738
|
+
}
|
|
739
|
+
else {
|
|
740
|
+
listeners.push(eventHandler);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
return () => {
|
|
744
|
+
this.removeListener(channel, eventHandler);
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
// See IRouterClient.ts
|
|
748
|
+
transmit(toChannel, data, options) {
|
|
749
|
+
if (!Logger.channelFilter(toChannel)) {
|
|
750
|
+
Logger.system.info("RouterClient.transmit", "TO CHANNEL", toChannel, "DATA", data);
|
|
751
|
+
}
|
|
752
|
+
const message = {
|
|
753
|
+
header: {
|
|
754
|
+
origin: this.clientName,
|
|
755
|
+
type: "transmit",
|
|
756
|
+
channel: toChannel,
|
|
757
|
+
},
|
|
758
|
+
data,
|
|
759
|
+
options,
|
|
760
|
+
};
|
|
761
|
+
this.sendToRouterService(message);
|
|
762
|
+
}
|
|
763
|
+
// See IRouterClient.ts
|
|
764
|
+
removeListener(channel, eventHandler) {
|
|
765
|
+
Logger.system.info("RouterClient.removeListener", "CHANNEL", channel, "EVENT HANDLER", eventHandler);
|
|
766
|
+
if (!this.mapListeners[channel]) {
|
|
767
|
+
Logger.system.debug("Attempt to remove non existent listener", channel, eventHandler);
|
|
768
|
+
console.log("Attempt to remove non existent listener", channel, eventHandler);
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
// Remove any matching listeners from the listener array
|
|
772
|
+
this.mapListeners[channel] = this.mapListeners[channel].flatMap((listener) => {
|
|
773
|
+
if (listener === eventHandler) {
|
|
774
|
+
return [];
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
return [listener];
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
// If there are no more listeners for this channel then let the router service
|
|
781
|
+
// know that we are no longer interested in this channel.
|
|
782
|
+
if (!this.mapListeners[channel].length) {
|
|
783
|
+
delete this.mapListeners[channel];
|
|
784
|
+
const message = {
|
|
785
|
+
header: {
|
|
786
|
+
origin: this.clientName,
|
|
787
|
+
type: "removeListener",
|
|
788
|
+
channel,
|
|
789
|
+
},
|
|
790
|
+
};
|
|
791
|
+
this.sendToRouterService(message);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
// See IRouterClient.ts
|
|
795
|
+
addResponder(channel, queryEventHandler) {
|
|
796
|
+
Logger.system.info("RouterClient.addResponder", "CHANNEL", channel);
|
|
797
|
+
// add responder callbackHandler for the given channel
|
|
798
|
+
if (!this.mapQueryResponders[channel]) {
|
|
799
|
+
this.mapQueryResponders[channel] = queryEventHandler;
|
|
800
|
+
const message = {
|
|
801
|
+
header: {
|
|
802
|
+
origin: this.clientName,
|
|
803
|
+
type: "addResponder",
|
|
804
|
+
channel,
|
|
805
|
+
},
|
|
806
|
+
};
|
|
807
|
+
this.sendToRouterService(message);
|
|
808
|
+
}
|
|
809
|
+
else {
|
|
810
|
+
const warning = `RouterClient.addResponder: Responder already locally defined for channel ${channel}`;
|
|
811
|
+
Logger.system.warn(warning);
|
|
812
|
+
queryEventHandler(warning);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
// See IRouterClient.ts for overloads
|
|
816
|
+
// Here we have a complicated type definition to tackle both overloads
|
|
817
|
+
query(responderChannel, queryEvent, queryParams, responseEventHandler) {
|
|
818
|
+
var _a, _b;
|
|
819
|
+
const newQueryID = `${this.clientName}.${uuidv4()}.${responderChannel}`;
|
|
820
|
+
const timestamp = Performance.timing.navigationStart + Performance.now();
|
|
821
|
+
const navstart = Performance.timing.navigationStart;
|
|
822
|
+
const timenow = Performance.now(); // these timer values used for logging diagnostics
|
|
823
|
+
Logger.system.info("RouterClient.query", "RESPONDER CHANNEL", responderChannel, "QUERY EVENT", queryEvent, "PARAMS", queryParams, "QUERY ID", newQueryID, { timestamp, navstart, timenow });
|
|
824
|
+
// 4th parameter if it exists, otherwise 3rd parameter if it's a function, otherwise null
|
|
825
|
+
const handler = responseEventHandler !== null && responseEventHandler !== void 0 ? responseEventHandler : (typeof queryParams === "function" ? queryParams : null);
|
|
826
|
+
const timeout = (_a = queryParams === null || queryParams === void 0 ? void 0 : queryParams.timeout) !== null && _a !== void 0 ? _a : 20000;
|
|
827
|
+
// Normally the central logger will log a warning when no responder exists for a query but
|
|
828
|
+
// sometimes there are unavoidable race conditions. Use this parameter to work around those conditions
|
|
829
|
+
// along with timeout = 0
|
|
830
|
+
const logWhenNoResponder = (_b = queryParams === null || queryParams === void 0 ? void 0 : queryParams.logWhenNoResponder) !== null && _b !== void 0 ? _b : true;
|
|
831
|
+
const promiseResolver = (resolve) => {
|
|
832
|
+
// add a callbackHandler into the query-response map for the given queryID
|
|
833
|
+
this.mapQueryResponses[newQueryID] = (err, response) => {
|
|
834
|
+
handler === null || handler === void 0 ? void 0 : handler(err, response);
|
|
835
|
+
resolve({ err, response });
|
|
836
|
+
};
|
|
837
|
+
// Waiting on timeouts can cause unit tests to hang (if an unintended query is triggered)
|
|
838
|
+
if (!Globals.runningInFSBLUnitTest && timeout > 0) {
|
|
839
|
+
// add timer to wait for query response
|
|
840
|
+
// The RouterService is responsible for monitoring long queries and will log to central logger.
|
|
841
|
+
// So this local warning is really only in play when this app itself has gotten disconnected from the router
|
|
842
|
+
// therefore it is only logged to console, so as to avoid a mess of duplicate logs
|
|
843
|
+
this.mapQueryResponseTimeOut[newQueryID] = setTimeout(() => {
|
|
844
|
+
console.warn(`RouterClient: timeout after ${timeout} ms waiting on query response on channel ${responderChannel} for queryID ${newQueryID} from client ${this.clientName}`, "from event", queryEvent, "with params", queryParams);
|
|
845
|
+
delete this.mapQueryResponseTimeOut[newQueryID];
|
|
846
|
+
}, timeout);
|
|
847
|
+
}
|
|
848
|
+
const message = {
|
|
849
|
+
header: {
|
|
850
|
+
origin: this.clientName,
|
|
851
|
+
type: "query",
|
|
852
|
+
queryID: newQueryID,
|
|
853
|
+
channel: responderChannel,
|
|
854
|
+
logWhenNoResponder,
|
|
855
|
+
timeout,
|
|
856
|
+
},
|
|
857
|
+
data: queryEvent,
|
|
858
|
+
};
|
|
859
|
+
this.sendToRouterService(message);
|
|
860
|
+
};
|
|
861
|
+
return new Promise(promiseResolver);
|
|
862
|
+
}
|
|
863
|
+
// See IRouterClient.ts
|
|
864
|
+
removeResponder(responderChannel) {
|
|
865
|
+
Logger.system.info("RouterClient.removeResponder", "RESPONDER CHANNEL", responderChannel);
|
|
866
|
+
if (this.mapQueryResponders[responderChannel]) {
|
|
867
|
+
delete this.mapQueryResponders[responderChannel];
|
|
868
|
+
const message = {
|
|
869
|
+
header: {
|
|
870
|
+
origin: this.clientName,
|
|
871
|
+
type: "removeResponder",
|
|
872
|
+
channel: responderChannel,
|
|
873
|
+
},
|
|
874
|
+
};
|
|
875
|
+
this.sendToRouterService(message);
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
// See IRouterClient.ts
|
|
879
|
+
addPubSubResponder(topic, initialState, params, callback) {
|
|
880
|
+
let error;
|
|
881
|
+
let response;
|
|
882
|
+
Logger.system.info("RouterClient.addPubSubResponder", "TOPIC", topic, "INITIAL STATE", initialState, "PARAMS", params);
|
|
883
|
+
params = params || {};
|
|
884
|
+
// if this pubsub responder doesn't define any of the special callback handlers, then the pubsub can be handled in the router service
|
|
885
|
+
if (typeof params.subscribeCallback === "undefined" &&
|
|
886
|
+
typeof params.publishCallback === "undefined" &&
|
|
887
|
+
typeof params.unsubscribeCallback === "undefined") {
|
|
888
|
+
initialState = initialState || {};
|
|
889
|
+
// this message indicates the pubsub will be handled within the router service
|
|
890
|
+
const message = {
|
|
891
|
+
header: {
|
|
892
|
+
origin: this.clientName,
|
|
893
|
+
type: "addPubSubResponder",
|
|
894
|
+
topic: topic.toString(),
|
|
895
|
+
handleOnServer: true,
|
|
896
|
+
},
|
|
897
|
+
data: initialState,
|
|
898
|
+
};
|
|
899
|
+
this.sendToRouterService(message);
|
|
900
|
+
response = "success";
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
const status = this.addPubSubResponderCallBack(topic, params.subscribeCallback, params.publishCallback, params.unsubscribeCallback);
|
|
904
|
+
if (status) {
|
|
905
|
+
initialState = initialState || {};
|
|
906
|
+
this.mapPubSubResponderState[topic.toString()] = clone(initialState);
|
|
907
|
+
// this message indicates the pubsub will be handled locally withing this router client
|
|
908
|
+
const message = {
|
|
909
|
+
header: {
|
|
910
|
+
origin: this.clientName,
|
|
911
|
+
type: "addPubSubResponder",
|
|
912
|
+
topic: topic.toString(),
|
|
913
|
+
handleOnServer: false,
|
|
914
|
+
},
|
|
915
|
+
data: initialState,
|
|
916
|
+
};
|
|
917
|
+
this.sendToRouterService(message);
|
|
918
|
+
response = "success";
|
|
919
|
+
}
|
|
920
|
+
else {
|
|
921
|
+
error = `RouterClient.addPubSubResponder: Responder already locally defined for topic ${topic}`;
|
|
922
|
+
Logger.system.error(error);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
if (callback) {
|
|
926
|
+
callback(error, response);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
// See IRouterClient.ts
|
|
930
|
+
removePubSubResponder(topic) {
|
|
931
|
+
Logger.system.info("RouterClient.removePubSubResponder", "TOPIC", topic);
|
|
932
|
+
const topicAsString = topic.toString(); // string or RegExp
|
|
933
|
+
if (this.mapPubSubResponders[topicAsString]) {
|
|
934
|
+
delete this.mapPubSubResponders[topicAsString]; // remove responder
|
|
935
|
+
delete this.mapPubSubResponderState[topicAsString]; // remove corresponding state
|
|
936
|
+
delete this.mapPubSubResponderRegEx[topicAsString]; // remove regex maybe
|
|
937
|
+
const message = {
|
|
938
|
+
header: {
|
|
939
|
+
origin: this.clientName,
|
|
940
|
+
type: "removePubSubResponder",
|
|
941
|
+
topic,
|
|
942
|
+
},
|
|
943
|
+
};
|
|
944
|
+
this.sendToRouterService(message);
|
|
945
|
+
}
|
|
946
|
+
else {
|
|
947
|
+
Logger.system.warn(`RouterClient.removePubSubResponder failed: Could not find responder for topic ${topic}`);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
// See IRouterClient.ts
|
|
951
|
+
subscribe(topic, notifyCallback) {
|
|
952
|
+
Logger.system.info("RouterClient.subscribe", "TOPIC", topic);
|
|
953
|
+
const subscribeID = `${this.clientName}.${uuidv4()}`;
|
|
954
|
+
this.mapSubscribersID[subscribeID] = notifyCallback;
|
|
955
|
+
this.mapSubscribersTopic[subscribeID] = topic;
|
|
956
|
+
const message = {
|
|
957
|
+
header: {
|
|
958
|
+
origin: this.clientName,
|
|
959
|
+
type: "subscribe",
|
|
960
|
+
subscribeID,
|
|
961
|
+
topic,
|
|
962
|
+
},
|
|
963
|
+
};
|
|
964
|
+
this.sendToRouterService(message);
|
|
965
|
+
return { subscribeID, topic };
|
|
966
|
+
}
|
|
967
|
+
// See IRouterClient.ts
|
|
968
|
+
publish(topic, data) {
|
|
969
|
+
Logger.system.info("RouterClient.publish", "TOPIC", topic, "EVENT", data);
|
|
970
|
+
const message = {
|
|
971
|
+
header: {
|
|
972
|
+
origin: this.clientName,
|
|
973
|
+
type: "publish",
|
|
974
|
+
topic,
|
|
975
|
+
},
|
|
976
|
+
data: data,
|
|
977
|
+
};
|
|
978
|
+
this.sendToRouterService(message);
|
|
979
|
+
}
|
|
980
|
+
// See IRouterClient.ts
|
|
981
|
+
unsubscribe(subscribeIDStruct) {
|
|
982
|
+
Logger.system.info("RouterClient.unsubscribe", "SUBSCRIBE ID", subscribeIDStruct);
|
|
983
|
+
// outgoing Unsubscribe: remove subscriber callbackHandler for the given channel
|
|
984
|
+
const { subscribeID } = subscribeIDStruct;
|
|
985
|
+
if (this.mapSubscribersID[subscribeID]) {
|
|
986
|
+
delete this.mapSubscribersID[subscribeID];
|
|
987
|
+
delete this.mapSubscribersTopic[subscribeID];
|
|
988
|
+
const message = {
|
|
989
|
+
header: {
|
|
990
|
+
origin: this.clientName,
|
|
991
|
+
type: "unsubscribe",
|
|
992
|
+
subscribeID: subscribeIDStruct.subscribeID,
|
|
993
|
+
topic: subscribeIDStruct.topic,
|
|
994
|
+
},
|
|
995
|
+
};
|
|
996
|
+
this.sendToRouterService(message);
|
|
997
|
+
}
|
|
998
|
+
else {
|
|
999
|
+
Logger.system.warn(`RouterClient.unsubscribe: Could not find subscribeID for topic ${subscribeIDStruct.topic}`);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Test an incoming router message to see if it originated from the same origin (e.g. a trusted source...not cross-domain). Currently same origin is known only because a sharedWorker transport is used (by definition SharedWorkers do not work cross-domain). This means any message coming in over the Inter-application Bus will not be trusted; however, by default all same-origin components and services connect to the router using a SharedWorker transport.
|
|
1004
|
+
*
|
|
1005
|
+
* ```javascript
|
|
1006
|
+
* FSBL.Clients.RouterClient.trustedMessage(incomingRouterMessage);
|
|
1007
|
+
* ```
|
|
1008
|
+
* @param {object} incomingMessage an incoming router message (e.g. transmit, query, notification) to test to see if trusted.
|
|
1009
|
+
*/
|
|
1010
|
+
trustedMessage(incomingMessage) {
|
|
1011
|
+
var _a;
|
|
1012
|
+
Logger.system.debug("RouterClient.trustedMessage header", incomingMessage.header);
|
|
1013
|
+
return (_a = incomingMessage.header.originMetadata) === null || _a === void 0 ? void 0 : _a.transportInfo.transportID.includes("SharedWorker");
|
|
1014
|
+
}
|
|
1015
|
+
// See IRouterClient.ts
|
|
1016
|
+
disconnectAll() {
|
|
1017
|
+
Logger.system.info("RouterClient.disconnectAll");
|
|
1018
|
+
Object.keys(this.mapListeners).forEach((channel) => {
|
|
1019
|
+
const handlers = Array.from(new Set(this.mapListeners[channel])); // de-dupe to avoid warning messages
|
|
1020
|
+
handlers.forEach((handler) => {
|
|
1021
|
+
this.removeListener(channel, handler);
|
|
1022
|
+
});
|
|
1023
|
+
});
|
|
1024
|
+
Object.keys(this.mapQueryResponders).forEach((channel) => {
|
|
1025
|
+
this.removeResponder(channel);
|
|
1026
|
+
});
|
|
1027
|
+
Object.keys(this.mapPubSubResponders).forEach((topic) => {
|
|
1028
|
+
this.removePubSubResponder(topic);
|
|
1029
|
+
});
|
|
1030
|
+
Object.keys(this.mapSubscribersID).forEach((subscribeID) => {
|
|
1031
|
+
const topic = this.mapSubscribersTopic[subscribeID];
|
|
1032
|
+
this.unsubscribe({ topic, subscribeID });
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* @ignore
|
|
1038
|
+
*/
|
|
1039
|
+
export const RouterController = {
|
|
1040
|
+
/**
|
|
1041
|
+
* Used to start the router. This is called by entry points (FSBLDesktop.ts, FSBLFreestanding.ts, FSBLService.ts [ in baseService, serviceManager's bootEngine.ts, logger's main.jsx ] )
|
|
1042
|
+
* @private
|
|
1043
|
+
*/
|
|
1044
|
+
start: (params) => {
|
|
1045
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1046
|
+
Logger.setRouterClient(routerConnection);
|
|
1047
|
+
return routerConnection.start(params);
|
|
1048
|
+
},
|
|
1049
|
+
/**
|
|
1050
|
+
* Used to stop the router. Generally used for unit testing.
|
|
1051
|
+
* @private
|
|
1052
|
+
*/
|
|
1053
|
+
stop: () => {
|
|
1054
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1055
|
+
routerConnection.stop();
|
|
1056
|
+
},
|
|
1057
|
+
/**
|
|
1058
|
+
* Used internally by Logger client
|
|
1059
|
+
*/
|
|
1060
|
+
calibrateTimeWithRouterService(callback) {
|
|
1061
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1062
|
+
routerConnection.calibrateTimeWithRouterService(callback);
|
|
1063
|
+
},
|
|
1064
|
+
};
|
|
1065
|
+
/**
|
|
1066
|
+
* @language javascript, java, dotnet
|
|
1067
|
+
* @deprecated Don't use this method. (Apps that use the FSBL API and wait on the global `onReady` event are guaranteed that the router will be ready). Internal code
|
|
1068
|
+
* should wait on Startup.onReady().
|
|
1069
|
+
*
|
|
1070
|
+
* Checks if Router is ready. May be invoked multiple times. Invokes optional callback and resolves promise when ready, which may be immediately. Router is not ready until underlying transport to Router Service is ready.
|
|
1071
|
+
*
|
|
1072
|
+
* @param {function} [cb] Optional callback function to invoke when Router is ready.
|
|
1073
|
+
* @return {Promise} Promise resolves when Router is ready
|
|
1074
|
+
*/
|
|
1075
|
+
export const onReady = (cb) => {
|
|
1076
|
+
Logger.system.deprecated("You no longer need to call RouterClient.onReady()");
|
|
1077
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1078
|
+
return routerConnection.onReady(cb);
|
|
1079
|
+
};
|
|
1080
|
+
/**
|
|
1081
|
+
* @language javascript, java, dotnet
|
|
1082
|
+
* May be invoked multiple times. Invokes optional callback and resolves promise if router client fails, typically due to underlying transport failure.
|
|
1083
|
+
*
|
|
1084
|
+
* @param {function} [cb] Optional callback function to invoke if the routerClient fail due to a loss of connectivity.
|
|
1085
|
+
* @return {Promise} Promise resolves on Router failure
|
|
1086
|
+
*/
|
|
1087
|
+
export const onFailure = (cb) => {
|
|
1088
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1089
|
+
return routerConnection.onFailure(cb);
|
|
1090
|
+
};
|
|
1091
|
+
/**
|
|
1092
|
+
* @language javascript, java, dotnet
|
|
1093
|
+
* Adds a listener for incoming transmit events on the specified channel. Each of the incoming events will trigger the specified event handler. The number of listeners is not limited (either local to this Finsemble window or in a separate Finsemble window).
|
|
1094
|
+
*
|
|
1095
|
+
* See [`transmit`](#transmit) for sending a corresponding event message to the listener. See [`removeListener`](#removelistener) to remove the listener.
|
|
1096
|
+
*
|
|
1097
|
+
* ```javascript
|
|
1098
|
+
* FSBL.Clients.RouterClient.addListener("SomeChannelName", function (error, response) {
|
|
1099
|
+
* if (error) {
|
|
1100
|
+
* Logger.system.error("ChannelA Error: " + JSON.stringify(error));
|
|
1101
|
+
* } else {
|
|
1102
|
+
* var data = response.data;
|
|
1103
|
+
* if (response.originatedHere()) {
|
|
1104
|
+
* Logger.system.warn("Received a message from the calling window, ignoring");
|
|
1105
|
+
* } else {
|
|
1106
|
+
* // Logic to perform with data
|
|
1107
|
+
* }
|
|
1108
|
+
* }
|
|
1109
|
+
* });
|
|
1110
|
+
* ```
|
|
1111
|
+
* @param {string} channel A unique string to identify the channel (must match corresponding transmit channel name).
|
|
1112
|
+
* @param {function} eventHandler A callback handling any possible error and the response. Use <b>response.originatedHere()</b> to determine if the message came from the same window. (see example below).
|
|
1113
|
+
* @return {RouterListenerUnsubscribe} Returns a function that can be called to unsubscribe (convenient alternative to removeListener)
|
|
1114
|
+
*/
|
|
1115
|
+
export const addListener = (channel, eventHandler) => {
|
|
1116
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1117
|
+
return routerConnection.addListener(channel, eventHandler);
|
|
1118
|
+
};
|
|
1119
|
+
/**
|
|
1120
|
+
* @language javascript, java, dotnet
|
|
1121
|
+
* Transmits data to all listeners on the specified channel. If there are no listeners on the channel, the event is discarded without error. All listeners on the channel in this Finsemble window and other Finsemble windows will receive the transmit.
|
|
1122
|
+
*
|
|
1123
|
+
* See [`addListener`](#addlistener) to add a listener to receive the transmit.
|
|
1124
|
+
*
|
|
1125
|
+
* ```javascript
|
|
1126
|
+
* FSBL.Clients.RouterClient.transmit("SomeChannelName", event);
|
|
1127
|
+
* ```
|
|
1128
|
+
* @param {string} toChannel A unique string to identify the channel (must match corresponding listener channel name).
|
|
1129
|
+
* @param {any} data An object or primitive type to be transmitted.
|
|
1130
|
+
* @param {object} options An object containing options for your transmission.
|
|
1131
|
+
* @param {boolean} options.suppressWarnings By default, the Router will log warnings if you transmit to a channel with no listeners. Set this to true to eliminate those warnings.
|
|
1132
|
+
*/
|
|
1133
|
+
export const transmit = (toChannel, data, options) => {
|
|
1134
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1135
|
+
routerConnection.transmit(toChannel, data, options);
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
* @language javascript, java, dotnet
|
|
1139
|
+
* Removes an event listener from the specified channel for the specific event handler; only listeners created locally can be removed.
|
|
1140
|
+
*
|
|
1141
|
+
* See [`addListener`](#addlistener) for corresponding add of a listener.
|
|
1142
|
+
*
|
|
1143
|
+
* @param {string} channel The unique channel name from which to remove the listener.
|
|
1144
|
+
* @param {function} eventHandler Function used for the event handler when the listener was added.
|
|
1145
|
+
*/
|
|
1146
|
+
export const removeListener = (channel, eventHandler) => {
|
|
1147
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1148
|
+
routerConnection.removeListener(channel, eventHandler);
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* @language javascript, java, dotnet
|
|
1152
|
+
* Adds a query responder to the specified channel. The responder's `queryEventHandler` function will receive all incoming queries for the specified channel (whether from this Finsemble window or remote Finsemble windows).
|
|
1153
|
+
*
|
|
1154
|
+
* :::note
|
|
1155
|
+
* Only one responder is allowed per channel within Finsemble.
|
|
1156
|
+
* :::
|
|
1157
|
+
*
|
|
1158
|
+
* See [`query`](#query) for sending a corresponding query-event message to this responder.
|
|
1159
|
+
*
|
|
1160
|
+
* ```javascript
|
|
1161
|
+
* FSBL.Clients.RouterClient.addResponder("ResponderChannelName", function (error, queryMessage) {
|
|
1162
|
+
* if (error) {
|
|
1163
|
+
* Logger.system.log('addResponder failed: ' + JSON.stringify(error));
|
|
1164
|
+
* } else {
|
|
1165
|
+
* console.log("incoming data=" + queryMessage.data);
|
|
1166
|
+
* var response="Back at ya"; // Responses can be objects or strings
|
|
1167
|
+
* queryMessage.sendQueryResponse(null, response); // The callback must respond, else a timeout will occur on the querying client.
|
|
1168
|
+
* }
|
|
1169
|
+
* });
|
|
1170
|
+
* ```
|
|
1171
|
+
* @param {string} channel A unique string to identify the channel (must match corresponding query channel name); only one responder is allowed per channel.
|
|
1172
|
+
* @param {StandardCallback} queryEventHandler A function to handle the incoming query (see example); note the incoming `queryMessage` contains a function to send the response.
|
|
1173
|
+
*/
|
|
1174
|
+
export const addResponder = (channel, queryEventHandler) => {
|
|
1175
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1176
|
+
routerConnection.addResponder(channel, queryEventHandler);
|
|
1177
|
+
};
|
|
1178
|
+
/**
|
|
1179
|
+
* @language javascript, java, dotnet
|
|
1180
|
+
* Sends a query to the responder listening on the specified channel. The responder may be in this Finsemble window or another Finsemble window.
|
|
1181
|
+
*
|
|
1182
|
+
*
|
|
1183
|
+
* See [`addResponder`](#addresponser) to add a responder to receive the query.
|
|
1184
|
+
*
|
|
1185
|
+
* ```javascript
|
|
1186
|
+
* FSBL.Clients.RouterClient.query("someChannelName", {}, function (error, queryResponseMessage) {
|
|
1187
|
+
* if (error) {
|
|
1188
|
+
* Logger.system.log('query failed: ' + JSON.stringify(error));
|
|
1189
|
+
* } else {
|
|
1190
|
+
* // process income query response message
|
|
1191
|
+
* var responseData = queryResponseMessage.data;
|
|
1192
|
+
* Logger.system.log('query response: ' + JSON.stringify(queryResponseMessage));
|
|
1193
|
+
* }
|
|
1194
|
+
* });
|
|
1195
|
+
*
|
|
1196
|
+
* FSBL.Clients.RouterClient.query("someChannelName", { queryKey: "abc123"}, { timeout: 1000 }, function (error, queryResponseMessage) {
|
|
1197
|
+
* if (!error) {
|
|
1198
|
+
* // process income query response message
|
|
1199
|
+
* var responseData = queryResponseMessage.data;
|
|
1200
|
+
* }
|
|
1201
|
+
* });
|
|
1202
|
+
* ```
|
|
1203
|
+
* @param {string} responderChannel A unique string that identifies the channel (must match the channel name on which a responder is listening).
|
|
1204
|
+
* @param {object} queryEvent The event message sent to the responder.
|
|
1205
|
+
* @param {function} responseEventHandler An event handler to receive the query response (sent from a responder that is listening on this channel).
|
|
1206
|
+
*/
|
|
1207
|
+
export const query = (responderChannel, queryEvent, queryParams, responseEventHandler) => {
|
|
1208
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1209
|
+
return routerConnection.query(responderChannel, queryEvent, queryParams, responseEventHandler);
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* @language javascript, java, dotnet
|
|
1213
|
+
* Removes the query responder from the specified channel. Only a locally added responder can be removed (i.e., a responder defined in the same component or service).
|
|
1214
|
+
*
|
|
1215
|
+
* See [`addResponder()`](#addresponder) for adding a query responder.
|
|
1216
|
+
*
|
|
1217
|
+
* ```javascript
|
|
1218
|
+
* FSBL.Clients.RouterClient.removeResponder("someChannelName");
|
|
1219
|
+
* ```
|
|
1220
|
+
* @param {string} responderChannel String identifying the channel from which to remove the responder.
|
|
1221
|
+
*/
|
|
1222
|
+
export const removeResponder = (responderChannel) => {
|
|
1223
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1224
|
+
routerConnection.removeResponder(responderChannel);
|
|
1225
|
+
};
|
|
1226
|
+
/**
|
|
1227
|
+
* @language javascript, java, dotnet
|
|
1228
|
+
* Adds a PubSub responder for the specified topic (either a specific string or a regular-expression match). PubSub
|
|
1229
|
+
* topics are stateful. New subscribers to the topic are automatically provided the most recent state.
|
|
1230
|
+
* Once a responder has been added, other apps can subscribe to and publish state on the topic
|
|
1231
|
+
*
|
|
1232
|
+
* See [`publish()`](#publish) and [`subscribe()`](#subscribe).
|
|
1233
|
+
*
|
|
1234
|
+
* Only one responder may be set per topic across the entire system (otherwise a warning will show in Central Logger).
|
|
1235
|
+
* If another responder is set with an overlapping regular-expression then the responder with an exact string is still guaranteed to get the messages
|
|
1236
|
+
* (the regex responder will not receive messages that match a responder with a matching string).
|
|
1237
|
+
*
|
|
1238
|
+
* > If multiple responders are set with _overlapping_ regular-expressions, then the receiver is _indeterminate_.
|
|
1239
|
+
*
|
|
1240
|
+
* When initializing a responder, hooks can be provided to intercept and manipulate publish, subscribe, and unsubscribe events (see parameters).
|
|
1241
|
+
*
|
|
1242
|
+
* ```javascript
|
|
1243
|
+
* // Example, initializing a responder without any optional hooks:
|
|
1244
|
+
* FSBL.Clients.RouterClient.addPubSubResponder("topicABC", { "State": "start" });
|
|
1245
|
+
*
|
|
1246
|
+
* // Example, initializing a responder with a regex for matching topics:
|
|
1247
|
+
* FSBL.Clients.RouterClient.addPubSubResponder(new RegExp("topicA*"), { "State": "start" });
|
|
1248
|
+
*
|
|
1249
|
+
* // Example, initializing a responder with all three hooks and an initial state:
|
|
1250
|
+
* FSBL.Clients.RouterClient.addPubSubResponder("topicABC", { "State": "start" },
|
|
1251
|
+
* {
|
|
1252
|
+
* subscribeCallback:subscribeCallback,
|
|
1253
|
+
* publishCallback:publishCallback,
|
|
1254
|
+
* unsubscribeCallback:unsubscribeCallback
|
|
1255
|
+
* });
|
|
1256
|
+
*
|
|
1257
|
+
* // Example publish hook:
|
|
1258
|
+
* function publishCallback(error, publish) {
|
|
1259
|
+
* if (publish) {
|
|
1260
|
+
* // `publish.data` contains the data that the originating app published.
|
|
1261
|
+
* console.log(publish.data);
|
|
1262
|
+
*
|
|
1263
|
+
* // This function must be called to complete the publication. Set the first parameter to `null`
|
|
1264
|
+
* // to complete the publication. Set the first parameter to a string in order to suppress the publication
|
|
1265
|
+
* // and return an error to the publisher.
|
|
1266
|
+
* //
|
|
1267
|
+
* // The second parameter must contain the data that you wish to publish. This data will be sent to all
|
|
1268
|
+
* // subscribers including the originating app. It can be either the originating state (from `publish.data`)
|
|
1269
|
+
* // or a different/manipulated state. This will become the new current state for the topic.
|
|
1270
|
+
* publish.sendNotifyToAllSubscribers(null, { someOtherData: "blah"});
|
|
1271
|
+
* }
|
|
1272
|
+
* }
|
|
1273
|
+
*
|
|
1274
|
+
* // Example subscribe hook:
|
|
1275
|
+
* function subscribeCallback(error, subscribe) {
|
|
1276
|
+
* if (subscribe) {
|
|
1277
|
+
* // This function must be called to accept or reject the subscription. Send an error code as the first parameter
|
|
1278
|
+
* // to reject. Send null as the first parameter to accept. Once accepted, the subscriber will receive
|
|
1279
|
+
* // the current topic's state unless the second parameter is provided which will override what is sent
|
|
1280
|
+
* // to the subscriber (but not override the topic's actual internal state).
|
|
1281
|
+
* subscribe.sendNotifyToSubscriber(null, { "NOTIFICATION-STATE": "One" });
|
|
1282
|
+
* }
|
|
1283
|
+
* }
|
|
1284
|
+
*
|
|
1285
|
+
* // Example unsubscribe hook:
|
|
1286
|
+
* function unsubscribeCallback(error, unsubscribe) {
|
|
1287
|
+
* if (unsubscribe) {
|
|
1288
|
+
* // This function must be called to accept or reject the unsubscription. Send null (or nothing) as the first
|
|
1289
|
+
* // parameter to accept the unsubscription. Send an error code to reject it.
|
|
1290
|
+
* unsubscribe.removeSubscriber(null);
|
|
1291
|
+
* }
|
|
1292
|
+
* }
|
|
1293
|
+
* ```
|
|
1294
|
+
* @param string|RegExp topic A unique topic for this responder, or a RegEx (e.g. '/abc.+/') to handle a set of topics.
|
|
1295
|
+
* @param {object} initialState The initial state for the topic (defaults to `{}`).
|
|
1296
|
+
* @param {object} params Optional hooks
|
|
1297
|
+
* @param {function} params.publishCallback This hook is called whenever a remote app publishes new state.
|
|
1298
|
+
* `[arg2].sendNotifyToAllSubscribers()` must be called to complete the publication but can send a different state than what was published by the originating app
|
|
1299
|
+
* (the originating publishing app will receive this state on its subscriptions).
|
|
1300
|
+
* See example publish hook.
|
|
1301
|
+
*
|
|
1302
|
+
* @param {function} params.subscribeCallback This hook is called whenever a remote app subscribes to this responder's topic.
|
|
1303
|
+
* It can be used to deny subscriptions or to run independent code for any new subscription.
|
|
1304
|
+
* `[arg2].sendNotifyToSubscriber()` must be called in order for the responder to complete the subscription, and can optionally provide
|
|
1305
|
+
* the subscribing app with a different initial than the topic's current state.
|
|
1306
|
+
* See example subscribe hook.
|
|
1307
|
+
*
|
|
1308
|
+
* @param {function} params.unsubscribeCallback This hook is called whenever a remote app unsubscribes from this responder's topic.
|
|
1309
|
+
* `[arg2].removeSubscriber()` must be called in order to complete the unsubscription.
|
|
1310
|
+
* See example unsubscribe hook.
|
|
1311
|
+
*
|
|
1312
|
+
* @param {function} callback An optional callback function which should accept a possible error.
|
|
1313
|
+
* If `addPubSubResponder()` failed then the first parameter to the callback will contain the error condition.
|
|
1314
|
+
* The most common error is when adding a responder for a topic that already has a responder:
|
|
1315
|
+
* "RouterClient.addPubSubResponder: Responder already locally defined for topic ${topic}";
|
|
1316
|
+
*/
|
|
1317
|
+
export const addPubSubResponder = (topic, initialState, params, callback) => {
|
|
1318
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1319
|
+
routerConnection.addPubSubResponder(topic, initialState, params, callback);
|
|
1320
|
+
};
|
|
1321
|
+
/**
|
|
1322
|
+
* @language javascript, java, dotnet
|
|
1323
|
+
* Removes a PubSub responder from the specified topic. Only locally created responders (i.e. created in the local window) can be removed.
|
|
1324
|
+
*
|
|
1325
|
+
* See [`addPubSubResponder`](#addpubsubresponder) for corresponding addition of a PubSub responder.
|
|
1326
|
+
*
|
|
1327
|
+
* ```javascript
|
|
1328
|
+
* FSBL.Clients.RouterClient.removePubSubResponder("topicABC");
|
|
1329
|
+
* ```
|
|
1330
|
+
* @param {string} topic Unique topic for responder being removed (may be RegEx, but if so much be exact RegEx used previously with `addPubSubResponder`).
|
|
1331
|
+
*/
|
|
1332
|
+
export const removePubSubResponder = (topic) => {
|
|
1333
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1334
|
+
routerConnection.removePubSubResponder(topic);
|
|
1335
|
+
};
|
|
1336
|
+
/**
|
|
1337
|
+
* @language javascript, java, dotnet
|
|
1338
|
+
* Subscribe to a PubSub responder. Each responder topic can have many subscribers (local in this window or remote in other windows). Each subscriber immediately (but asynchronously) receives back current state in a notify; new notifications are received for each publish sent to the same topic.
|
|
1339
|
+
*
|
|
1340
|
+
* See [`addPubSubResponder`](#addpubsubresponder) for corresponding addition of a PubSub responder to handle the subscribe. See [`publish()`](#publish) for how to publish data to subscribers.
|
|
1341
|
+
*
|
|
1342
|
+
* ```javascript
|
|
1343
|
+
* var subscribeId = RouterClient.subscribe("topicABC", function(err, notify) {
|
|
1344
|
+
* if (!err) {
|
|
1345
|
+
* var notificationStateData = notify.data;
|
|
1346
|
+
* // do something with notify data
|
|
1347
|
+
* }
|
|
1348
|
+
* });
|
|
1349
|
+
* ```
|
|
1350
|
+
* @param {string} topic A unique string representing the topic being subscribed to.
|
|
1351
|
+
* @param {function} notifyCallback Invoked on immediately upon subscription, then again on each incoming notification for the specified topic.
|
|
1352
|
+
* @returns {object} An object containing a unique id representing the subscription. This can be used later to unsubscribe.
|
|
1353
|
+
*/
|
|
1354
|
+
export const subscribe = (topic, notifyCallback) => {
|
|
1355
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1356
|
+
return routerConnection.subscribe(topic, notifyCallback);
|
|
1357
|
+
};
|
|
1358
|
+
/**
|
|
1359
|
+
* @language javascript, java, dotnet
|
|
1360
|
+
* Publish to a PubSub Responder, which will trigger a corresponding notification to all subscribers (local in this window or remote in other windows). There may be multiple publishers for a topic (again, in same window or remote windows).
|
|
1361
|
+
*
|
|
1362
|
+
* See [`addPubSubResponder`](#addpubsubresponder) for corresponding addition of a PubSub publisher (i.e., sending notifications to all subscriber). See [`Subscribe`](#subscribe) for corresponding subscription published results (in the form of a `Notify` event).
|
|
1363
|
+
*
|
|
1364
|
+
* ```javascript
|
|
1365
|
+
* FSBL.Clients.RouterClient.publish("topicABC", topicState);
|
|
1366
|
+
* ```
|
|
1367
|
+
* @param {string} topic A unique string representing the topic being published.
|
|
1368
|
+
* @param {object} event The topic state to be published to all subscribers (unless the PubSub responder optionally modifies in between).
|
|
1369
|
+
*/
|
|
1370
|
+
export const publish = (topic, event) => {
|
|
1371
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1372
|
+
routerConnection.publish(topic, event);
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* @language javascript, java, dotnet
|
|
1376
|
+
* Unsubscribes from a PubSub responder so no more notifications are received (but doesn't affect other subscriptions). Only works from the window the PubSub responder was created in.
|
|
1377
|
+
*
|
|
1378
|
+
* See [`subscribe`](#subscribe) for corresponding subscription being removed.
|
|
1379
|
+
*
|
|
1380
|
+
* ```javascript
|
|
1381
|
+
* FSBL.Clients.RouterClient.unsubscribe(subscribeId);
|
|
1382
|
+
* ```
|
|
1383
|
+
* @param {object} subscribeIDStruct
|
|
1384
|
+
* @param {string} subscribeIDStruct.subscribeID The id returned from the corresponding subscription to the topic.
|
|
1385
|
+
* @param {string} subscribeIDStruct.topic The topic for the subscription.
|
|
1386
|
+
*/
|
|
1387
|
+
export const unsubscribe = (subscribeIDStruct) => {
|
|
1388
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1389
|
+
routerConnection.unsubscribe(subscribeIDStruct);
|
|
1390
|
+
};
|
|
1391
|
+
/**
|
|
1392
|
+
* @language javascript, java, dotnet
|
|
1393
|
+
* Tests an incoming Router message to see if it originated from the same origin (i.e., a trusted source; not cross-domain).
|
|
1394
|
+
*
|
|
1395
|
+
* Currently, the origin of an incoming Router message is determined by way of the SharedWorker transport. By definition, SharedWorkers do not work across domains.
|
|
1396
|
+
* This means any message coming in over the transport will not be trusted. However, by default, all same-origin components
|
|
1397
|
+
* and services connect to the Router using a SharedWorker transport.
|
|
1398
|
+
*
|
|
1399
|
+
* ```javascript
|
|
1400
|
+
* FSBL.Clients.RouterClient.trustedMessage(incomingRouterMessage);
|
|
1401
|
+
* ```
|
|
1402
|
+
* @param {object} incomingMessage An incoming Router message (e.g., transmit, query, notification) to test to see if trusted.
|
|
1403
|
+
*/
|
|
1404
|
+
export const trustedMessage = (incomingMessage) => {
|
|
1405
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1406
|
+
return routerConnection.trustedMessage(incomingMessage);
|
|
1407
|
+
};
|
|
1408
|
+
/**
|
|
1409
|
+
* @language javascript, java, dotnet
|
|
1410
|
+
* Removes all listeners, responders, and subscribers for this router client -- automatically called when the client is shutting down. Can be called multiple times.
|
|
1411
|
+
*/
|
|
1412
|
+
export const disconnectAll = () => {
|
|
1413
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1414
|
+
routerConnection.disconnectAll();
|
|
1415
|
+
};
|
|
1416
|
+
/**
|
|
1417
|
+
* Used internally by Logger client
|
|
1418
|
+
* @ignore
|
|
1419
|
+
*/
|
|
1420
|
+
export const calibrateTimeWithRouterService = (callback) => {
|
|
1421
|
+
const routerConnection = singleton("RouterClient", RouterConnection);
|
|
1422
|
+
routerConnection.calibrateTimeWithRouterService(callback);
|
|
1423
|
+
};
|
|
1424
|
+
/**
|
|
1425
|
+
* @ignore
|
|
1426
|
+
*/
|
|
1427
|
+
export const RouterClient = {
|
|
1428
|
+
onReady,
|
|
1429
|
+
onFailure,
|
|
1430
|
+
addListener,
|
|
1431
|
+
transmit,
|
|
1432
|
+
removeListener,
|
|
1433
|
+
addResponder,
|
|
1434
|
+
query,
|
|
1435
|
+
removeResponder,
|
|
1436
|
+
addPubSubResponder,
|
|
1437
|
+
removePubSubResponder,
|
|
1438
|
+
subscribe,
|
|
1439
|
+
publish,
|
|
1440
|
+
unsubscribe,
|
|
1441
|
+
trustedMessage,
|
|
1442
|
+
disconnectAll,
|
|
1443
|
+
calibrateTimeWithRouterService,
|
|
1444
|
+
};
|
|
1445
|
+
/**
|
|
1446
|
+
* @ignore
|
|
1447
|
+
*/
|
|
1448
|
+
export default RouterClient;
|
|
1417
1449
|
//# sourceMappingURL=routerClient.js.map
|