@finsemble/finsemble-ui 8.3.0 → 8.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FEA.d.ts +54 -24
- package/FEA.d.ts.map +1 -1
- package/FEA.js.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js +2 -2
- package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
- package/clients/Startup/FSBLDesktop.d.ts +2 -8
- package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
- package/clients/Startup/FSBLDesktop.js +2 -4
- package/clients/Startup/FSBLDesktop.js.map +1 -1
- package/clients/Startup/unhandledErrors.d.ts.map +1 -1
- package/clients/Startup/unhandledErrors.js +6 -4
- package/clients/Startup/unhandledErrors.js.map +1 -1
- package/clients/Startup/windowStartup.d.ts.map +1 -1
- package/clients/Startup/windowStartup.js +77 -116
- package/clients/Startup/windowStartup.js.map +1 -1
- package/clients/StoreModel.d.ts +8 -8
- package/clients/StoreModel.js +8 -8
- package/clients/appsClient.d.ts +90 -0
- package/clients/appsClient.d.ts.map +1 -0
- package/clients/appsClient.js +51 -0
- package/clients/appsClient.js.map +1 -0
- package/clients/authenticationClient.d.ts +29 -27
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +11 -15
- package/clients/authenticationClient.js.map +1 -1
- package/clients/configClient.d.ts +134 -70
- package/clients/configClient.d.ts.map +1 -1
- package/clients/configClient.js +129 -112
- package/clients/configClient.js.map +1 -1
- package/clients/controller/DialogManagerClientController.d.ts +78 -0
- package/clients/controller/DialogManagerClientController.d.ts.map +1 -0
- package/clients/controller/DialogManagerClientController.js +213 -0
- package/clients/controller/DialogManagerClientController.js.map +1 -0
- package/clients/dialogManagerClient.d.ts +1 -75
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +1 -208
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/distributedStoreClient.d.ts +1 -0
- package/clients/distributedStoreClient.d.ts.map +1 -1
- package/clients/distributedStoreClient.js +1 -0
- package/clients/distributedStoreClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +18 -9
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +30 -14
- package/clients/hotkeyClient.js.map +1 -1
- package/clients/index.d.ts +2 -0
- package/clients/index.d.ts.map +1 -1
- package/clients/index.js +2 -0
- package/clients/index.js.map +1 -1
- package/clients/launcherClient.d.ts +157 -47
- package/clients/launcherClient.d.ts.map +1 -1
- package/clients/launcherClient.js +201 -22
- package/clients/launcherClient.js.map +1 -1
- package/clients/logger.d.ts.map +1 -1
- package/clients/logger.js +43 -41
- package/clients/logger.js.map +1 -1
- package/clients/notificationClient.d.ts +2 -2
- package/clients/notificationClient.d.ts.map +1 -1
- package/clients/notificationClient.js +2 -2
- package/clients/notificationClient.js.map +1 -1
- package/clients/routerClient.d.ts +25 -21
- package/clients/routerClient.d.ts.map +1 -1
- package/clients/routerClient.js +24 -20
- package/clients/routerClient.js.map +1 -1
- package/clients/searchClient.d.ts +2 -2
- package/clients/searchClient.js +2 -2
- package/clients/storageClient.d.ts +8 -5
- package/clients/storageClient.d.ts.map +1 -1
- package/clients/storageClient.js +7 -5
- package/clients/storageClient.js.map +1 -1
- package/clients/windowClient.d.ts +160 -79
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +244 -138
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +19 -14
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +15 -9
- package/clients/workspaceClient.js.map +1 -1
- package/common/Desktop.d.ts +9 -50
- package/common/Desktop.d.ts.map +1 -1
- package/common/Desktop.js +11 -64
- package/common/Desktop.js.map +1 -1
- package/common/FinsembleWindow.d.ts +4 -107
- package/common/FinsembleWindow.d.ts.map +1 -1
- package/common/FinsembleWindow.js +21 -342
- package/common/FinsembleWindow.js.map +1 -1
- package/common/Monitors.d.ts +30 -18
- package/common/Monitors.d.ts.map +1 -1
- package/common/Monitors.js +45 -80
- package/common/Monitors.js.map +1 -1
- package/common/Singleton.d.ts +7 -1
- package/common/Singleton.d.ts.map +1 -1
- package/common/Singleton.js +24 -11
- package/common/Singleton.js.map +1 -1
- package/common/constants.d.ts +3 -9
- package/common/constants.d.ts.map +1 -1
- package/common/constants.js +3 -14
- package/common/constants.js.map +1 -1
- package/common/events/FinsembleEvent.d.ts +1 -1
- package/common/events/FinsembleEvent.d.ts.map +1 -1
- package/common/redux/getRemoteStore.d.ts +53 -0
- package/common/redux/getRemoteStore.d.ts.map +1 -0
- package/common/redux/getRemoteStore.js +50 -0
- package/common/redux/getRemoteStore.js.map +1 -0
- package/common/redux/remoteReduxEnhancer.d.ts +7 -7
- package/common/redux/remoteReduxEnhancer.d.ts.map +1 -1
- package/common/redux/remoteReduxEnhancer.js +35 -20
- package/common/redux/remoteReduxEnhancer.js.map +1 -1
- package/common/redux/types.d.ts +14 -1
- package/common/redux/types.d.ts.map +1 -1
- package/common/systemManagerClient.d.ts +11 -5
- package/common/systemManagerClient.d.ts.map +1 -1
- package/common/systemManagerClient.js +25 -8
- package/common/systemManagerClient.js.map +1 -1
- package/common/util.d.ts +1 -7
- package/common/util.d.ts.map +1 -1
- package/common/util.js +1 -14
- package/common/util.js.map +1 -1
- package/deprecated/deprecatedFunctions.d.ts +1 -1
- package/deprecated/deprecatedFunctions.d.ts.map +1 -1
- package/deprecated/deprecatedFunctions.js +1 -2
- package/deprecated/deprecatedFunctions.js.map +1 -1
- package/deprecated/dragAndDropClient.d.ts +3 -3
- package/deprecated/dragAndDropClient.d.ts.map +1 -1
- package/deprecated/dragAndDropClient.js.map +1 -1
- package/deprecated/linkerClient.d.ts +1 -1
- package/deprecated/linkerClient.d.ts.map +1 -1
- package/main.d.ts +289 -190
- package/main.d.ts.map +1 -1
- package/main.js +3 -1
- package/main.js.map +1 -1
- package/package.json +3 -3
- package/platform/services/Interop/types.d.ts +2 -1
- package/platform/services/Interop/types.d.ts.map +1 -1
- package/platform/services/router/types.d.ts +5 -6
- package/platform/services/router/types.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.d.ts +1 -0
- package/platform/services/systemManager/_constants.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.js +1 -0
- package/platform/services/systemManager/_constants.js.map +1 -1
- package/platform/services/window/modules/actions.d.ts +59 -0
- package/platform/services/window/modules/actions.d.ts.map +1 -0
- package/platform/services/window/modules/actions.js +57 -0
- package/platform/services/window/modules/actions.js.map +1 -0
- package/platform/services/window/types.d.ts +257 -50
- package/platform/services/window/types.d.ts.map +1 -1
- package/platform/services/workspace/types.d.ts +4 -3
- package/platform/services/workspace/types.d.ts.map +1 -1
- package/react/assets/css/core/icons.css +0 -5
- package/react/assets/css/processMonitor.css +9 -4
- package/react/assets/css/windowTitleBar.css +98 -285
- package/react/assets/icons/chevron-down.svg +1 -0
- package/react/assets/icons/chevron-up.svg +1 -0
- package/react/components/common/ButtonRow.d.ts.map +1 -1
- package/react/components/common/ButtonRow.js +4 -9
- package/react/components/common/ButtonRow.js.map +1 -1
- package/react/components/common/ContextMenu.d.ts.map +1 -1
- package/react/components/common/ContextMenu.js +2 -10
- package/react/components/common/ContextMenu.js.map +1 -1
- package/react/components/common/DropdownButton.d.ts.map +1 -1
- package/react/components/common/DropdownButton.js +11 -24
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +1 -1
- package/react/components/common/FinsembleIcon.d.ts.map +1 -1
- package/react/components/common/FinsembleIcon.js +6 -4
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/css/accordion.css +9 -21
- package/react/components/common/css/application-edit-page.css +0 -4
- package/react/components/common/css/selector.css +3 -1
- package/react/components/downloadManager/DownloadManager.d.ts +1 -1
- package/react/components/downloadManager/DownloadManager.d.ts.map +1 -1
- package/react/components/downloadManager/DownloadManager.js +2 -4
- package/react/components/downloadManager/DownloadManager.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.d.ts +6 -0
- package/react/components/fdc3Resolver/ResolverContainer.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +37 -89
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.d.ts +10 -1
- package/react/components/fdc3Resolver/ResolverDialog.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js +78 -66
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts.map +1 -1
- package/react/components/linker/remoteRedux.d.ts +2 -9
- package/react/components/linker/remoteRedux.d.ts.map +1 -1
- package/react/components/linker/remoteRedux.js +2 -22
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/notifications/css/notification-center.css +2 -0
- package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js +14 -36
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +0 -4
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.js +1 -5
- package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.d.ts +2 -3
- package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js +5 -9
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +1 -5
- package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
- package/react/components/processMonitor/components/ListHeader.js +3 -2
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/Process.d.ts +10 -0
- package/react/components/processMonitor/components/Process.d.ts.map +1 -0
- package/react/components/processMonitor/components/Process.js +11 -0
- package/react/components/processMonitor/components/Process.js.map +1 -0
- package/react/components/processMonitor/components/ProcessStatistics.d.ts +5 -4
- package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +10 -7
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +1 -2
- package/react/components/processMonitor/constants.d.ts.map +1 -1
- package/react/components/processMonitor/constants.js +2 -8
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.d.ts +0 -1
- package/react/components/processMonitor/helpers.d.ts.map +1 -1
- package/react/components/processMonitor/helpers.js +2 -9
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +0 -4
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +0 -29
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/search/SearchInput.d.ts +1 -2
- package/react/components/search/SearchInput.d.ts.map +1 -1
- package/react/components/search/SearchInput.js +11 -13
- package/react/components/search/SearchInput.js.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js +31 -4
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.js +81 -100
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/toolbar/ToolbarShell.d.ts +1 -0
- package/react/components/toolbar/ToolbarShell.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarShell.js +3 -2
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/utils.d.ts +50 -0
- package/react/components/utils.d.ts.map +1 -0
- package/react/components/utils.js +60 -0
- package/react/components/utils.js.map +1 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts +9 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.js +29 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.js.map +1 -0
- package/react/components/windowTitleBar/{components/right/CloseButton.d.ts → CloseButton.d.ts} +0 -0
- package/react/components/windowTitleBar/CloseButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/CloseButton.js +22 -0
- package/react/components/windowTitleBar/CloseButton.js.map +1 -0
- package/react/components/windowTitleBar/GroupingButton.d.ts +3 -0
- package/react/components/windowTitleBar/GroupingButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/GroupingButton.js +25 -0
- package/react/components/windowTitleBar/GroupingButton.js.map +1 -0
- package/react/components/windowTitleBar/{components/left/LinkerButton.d.ts → LinkerButton.d.ts} +0 -0
- package/react/components/windowTitleBar/LinkerButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/{components/left/LinkerButton.js → LinkerButton.js} +4 -4
- package/react/components/windowTitleBar/LinkerButton.js.map +1 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts +11 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts.map +1 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js +63 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js.map +1 -0
- package/react/components/windowTitleBar/{components/left/LinkerGroups.d.ts → LinkerGroups.d.ts} +0 -0
- package/react/components/windowTitleBar/LinkerGroups.d.ts.map +1 -0
- package/react/components/windowTitleBar/{components/left/LinkerGroups.js → LinkerGroups.js} +2 -3
- package/react/components/windowTitleBar/LinkerGroups.js.map +1 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts +7 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts.map +1 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js +35 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js.map +1 -0
- package/react/components/windowTitleBar/MaximizeButton.d.ts +3 -0
- package/react/components/windowTitleBar/MaximizeButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/MaximizeButton.js +18 -0
- package/react/components/windowTitleBar/MaximizeButton.js.map +1 -0
- package/react/components/windowTitleBar/MinimizeButton.d.ts +3 -0
- package/react/components/windowTitleBar/MinimizeButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/MinimizeButton.js +21 -0
- package/react/components/windowTitleBar/MinimizeButton.js.map +1 -0
- package/react/components/windowTitleBar/ShareButton.d.ts +3 -0
- package/react/components/windowTitleBar/ShareButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/ShareButton.js +24 -0
- package/react/components/windowTitleBar/ShareButton.js.map +1 -0
- package/react/components/windowTitleBar/TabRegion.d.ts +7 -0
- package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -0
- package/react/components/windowTitleBar/TabRegion.js +453 -0
- package/react/components/windowTitleBar/TabRegion.js.map +1 -0
- package/react/components/windowTitleBar/TabTitle.d.ts +8 -0
- package/react/components/windowTitleBar/TabTitle.d.ts.map +1 -0
- package/react/components/windowTitleBar/TabTitle.js +17 -0
- package/react/components/windowTitleBar/TabTitle.js.map +1 -0
- package/react/components/windowTitleBar/TitleEdit.d.ts +10 -0
- package/react/components/windowTitleBar/TitleEdit.d.ts.map +1 -0
- package/react/components/windowTitleBar/TitleEdit.js +30 -0
- package/react/components/windowTitleBar/TitleEdit.js.map +1 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts +12 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts.map +1 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.js +3 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.js.map +1 -0
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +14 -272
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.js +41 -929
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/index.d.ts +9 -8
- package/react/components/windowTitleBar/index.d.ts.map +1 -1
- package/react/components/windowTitleBar/index.js +9 -8
- package/react/components/windowTitleBar/index.js.map +1 -1
- package/react/components/windowTitleBar/useKeyboardNavigation.d.ts +7 -0
- package/react/components/windowTitleBar/useKeyboardNavigation.d.ts.map +1 -0
- package/react/components/windowTitleBar/useKeyboardNavigation.js +57 -0
- package/react/components/windowTitleBar/useKeyboardNavigation.js.map +1 -0
- package/react/components/windowTitleBar/useMaximize.d.ts +5 -0
- package/react/components/windowTitleBar/useMaximize.d.ts.map +1 -0
- package/react/components/windowTitleBar/useMaximize.js +23 -0
- package/react/components/windowTitleBar/useMaximize.js.map +1 -0
- package/react/components/yesNoDialog/timer.js +2 -1
- package/react/components/yesNoDialog/timer.js.map +1 -1
- package/react/hooks/useDashbar.d.ts.map +1 -1
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useDragRegion.d.ts +27 -0
- package/react/hooks/useDragRegion.d.ts.map +1 -0
- package/react/hooks/useDragRegion.js +74 -0
- package/react/hooks/useDragRegion.js.map +1 -0
- package/react/hooks/useInjectedTitleBar.d.ts +3 -0
- package/react/hooks/useInjectedTitleBar.d.ts.map +1 -0
- package/react/hooks/useInjectedTitleBar.js +365 -0
- package/react/hooks/useInjectedTitleBar.js.map +1 -0
- package/react/hooks/useNotifications.d.ts +1 -1
- package/react/hooks/useToolbar.d.ts +1 -0
- package/react/hooks/useToolbar.d.ts.map +1 -1
- package/react/hooks/useToolbar.js +13 -3
- package/react/hooks/useToolbar.js.map +1 -1
- package/typedoc-types.d.ts +9 -0
- package/typedoc-types.d.ts.map +1 -0
- package/typedoc-types.js +6 -0
- package/typedoc-types.js.map +1 -0
- package/types.d.ts +5 -11
- package/types.d.ts.map +1 -1
- package/types.js +2 -0
- package/types.js.map +1 -1
- package/common/events/PrivateEventManager.d.ts +0 -95
- package/common/events/PrivateEventManager.d.ts.map +0 -1
- package/common/events/PrivateEventManager.js +0 -295
- package/common/events/PrivateEventManager.js.map +0 -1
- package/common/events/PrivateFinsembleEvent.d.ts +0 -30
- package/common/events/PrivateFinsembleEvent.d.ts.map +0 -1
- package/common/events/PrivateFinsembleEvent.js +0 -65
- package/common/events/PrivateFinsembleEvent.js.map +0 -1
- package/common/redux/createReducer.d.ts +0 -128
- package/common/redux/createReducer.d.ts.map +0 -1
- package/common/redux/createReducer.js +0 -298
- package/common/redux/createReducer.js.map +0 -1
- package/common/redux/index.d.ts +0 -3
- package/common/redux/index.d.ts.map +0 -1
- package/common/redux/index.js +0 -3
- package/common/redux/index.js.map +0 -1
- package/platform/services/window/Common/Pools/ObjectPool.d.ts +0 -11
- package/platform/services/window/Common/Pools/ObjectPool.d.ts.map +0 -1
- package/platform/services/window/Common/Pools/ObjectPool.js +0 -43
- package/platform/services/window/Common/Pools/ObjectPool.js.map +0 -1
- package/platform/services/window/Common/Pools/PoolSingletons.d.ts +0 -10
- package/platform/services/window/Common/Pools/PoolSingletons.d.ts.map +0 -1
- package/platform/services/window/Common/Pools/PoolSingletons.js +0 -10
- package/platform/services/window/Common/Pools/PoolSingletons.js.map +0 -1
- package/platform/services/window/Common/Pools/WindowPool.d.ts +0 -7
- package/platform/services/window/Common/Pools/WindowPool.d.ts.map +0 -1
- package/platform/services/window/Common/Pools/WindowPool.js +0 -16
- package/platform/services/window/Common/Pools/WindowPool.js.map +0 -1
- package/platform/services/window/Docking/boxMath.d.ts +0 -144
- package/platform/services/window/Docking/boxMath.d.ts.map +0 -1
- package/platform/services/window/Docking/boxMath.js +0 -511
- package/platform/services/window/Docking/boxMath.js.map +0 -1
- package/platform/services/window/Docking/constants.d.ts +0 -29
- package/platform/services/window/Docking/constants.d.ts.map +0 -1
- package/platform/services/window/Docking/constants.js +0 -29
- package/platform/services/window/Docking/constants.js.map +0 -1
- package/platform/services/window/Docking/dockableBox.d.ts +0 -117
- package/platform/services/window/Docking/dockableBox.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableBox.js +0 -525
- package/platform/services/window/Docking/dockableBox.js.map +0 -1
- package/platform/services/window/Docking/dockableGroup.d.ts +0 -252
- package/platform/services/window/Docking/dockableGroup.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableGroup.js +0 -1054
- package/platform/services/window/Docking/dockableGroup.js.map +0 -1
- package/platform/services/window/Docking/dockableMonitor.d.ts +0 -99
- package/platform/services/window/Docking/dockableMonitor.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableMonitor.js +0 -427
- package/platform/services/window/Docking/dockableMonitor.js.map +0 -1
- package/platform/services/window/Docking/dockableWindow.d.ts +0 -272
- package/platform/services/window/Docking/dockableWindow.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableWindow.js +0 -1239
- package/platform/services/window/Docking/dockableWindow.js.map +0 -1
- package/platform/services/window/Docking/dockingCalculator.d.ts +0 -741
- package/platform/services/window/Docking/dockingCalculator.d.ts.map +0 -1
- package/platform/services/window/Docking/dockingCalculator.js +0 -3438
- package/platform/services/window/Docking/dockingCalculator.js.map +0 -1
- package/platform/services/window/Docking/dockingMain.d.ts +0 -349
- package/platform/services/window/Docking/dockingMain.d.ts.map +0 -1
- package/platform/services/window/Docking/dockingMain.js +0 -2541
- package/platform/services/window/Docking/dockingMain.js.map +0 -1
- package/platform/services/window/Docking/maskBoundsCalculator.d.ts +0 -28
- package/platform/services/window/Docking/maskBoundsCalculator.d.ts.map +0 -1
- package/platform/services/window/Docking/maskBoundsCalculator.js +0 -67
- package/platform/services/window/Docking/maskBoundsCalculator.js.map +0 -1
- package/platform/services/window/Docking/monitorUpdateHandler.d.ts +0 -32
- package/platform/services/window/Docking/monitorUpdateHandler.d.ts.map +0 -1
- package/platform/services/window/Docking/monitorUpdateHandler.js +0 -117
- package/platform/services/window/Docking/monitorUpdateHandler.js.map +0 -1
- package/platform/services/window/Docking/types.d.ts +0 -334
- package/platform/services/window/Docking/types.d.ts.map +0 -1
- package/platform/services/window/Docking/types.js +0 -12
- package/platform/services/window/Docking/types.js.map +0 -1
- package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts +0 -90
- package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts.map +0 -1
- package/platform/services/window/MultiWindowFeatures/autoArrange.js +0 -510
- package/platform/services/window/MultiWindowFeatures/autoArrange.js.map +0 -1
- package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts +0 -411
- package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts.map +0 -1
- package/platform/services/window/StackedWindowManager/stackedWindowManager.js +0 -1641
- package/platform/services/window/StackedWindowManager/stackedWindowManager.js.map +0 -1
- package/platform/services/window/WindowAbstractions/BaseWindow.d.ts +0 -469
- package/platform/services/window/WindowAbstractions/BaseWindow.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/BaseWindow.js +0 -1347
- package/platform/services/window/WindowAbstractions/BaseWindow.js.map +0 -1
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts +0 -9
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js +0 -23
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js.map +0 -1
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts +0 -227
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.js +0 -1168
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.js.map +0 -1
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts +0 -121
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.js +0 -591
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.js.map +0 -1
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts +0 -194
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js +0 -680
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js.map +0 -1
- package/platform/services/window/windowGroup.d.ts +0 -86
- package/platform/services/window/windowGroup.d.ts.map +0 -1
- package/platform/services/window/windowGroup.js +0 -323
- package/platform/services/window/windowGroup.js.map +0 -1
- package/platform/services/workspace/windowStorageManager.d.ts +0 -180
- package/platform/services/workspace/windowStorageManager.d.ts.map +0 -1
- package/platform/services/workspace/windowStorageManager.js +0 -195
- package/platform/services/workspace/windowStorageManager.js.map +0 -1
- package/react/assets/icons/question-circle.svg +0 -6
- package/react/components/legacyControls/FinsembleHoverDetector.d.ts +0 -23
- package/react/components/legacyControls/FinsembleHoverDetector.d.ts.map +0 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js +0 -57
- package/react/components/legacyControls/FinsembleHoverDetector.js.map +0 -1
- package/react/components/sdd/Appearance.helpers.d.ts +0 -2
- package/react/components/sdd/Appearance.helpers.d.ts.map +0 -1
- package/react/components/sdd/Appearance.helpers.js +0 -2
- package/react/components/sdd/Appearance.helpers.js.map +0 -1
- package/react/components/shared/linkerUtil.d.ts +0 -4
- package/react/components/shared/linkerUtil.d.ts.map +0 -1
- package/react/components/shared/linkerUtil.js +0 -10
- package/react/components/shared/linkerUtil.js.map +0 -1
- package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -31
- package/react/components/windowTitleBar/components/center/Tab.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/center/Tab.js +0 -58
- package/react/components/windowTitleBar/components/center/Tab.js.map +0 -1
- package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -138
- package/react/components/windowTitleBar/components/center/TabList.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/center/TabList.js +0 -614
- package/react/components/windowTitleBar/components/center/TabList.js.map +0 -1
- package/react/components/windowTitleBar/components/center/TabRegion.d.ts +0 -3
- package/react/components/windowTitleBar/components/center/TabRegion.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/center/TabRegion.js +0 -13
- package/react/components/windowTitleBar/components/center/TabRegion.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +0 -85
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js +0 -172
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroups.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts +0 -50
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js +0 -120
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +0 -1
- package/react/components/windowTitleBar/components/left/ShareButton.d.ts +0 -42
- package/react/components/windowTitleBar/components/left/ShareButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/ShareButton.js +0 -82
- package/react/components/windowTitleBar/components/left/ShareButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts +0 -3
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js +0 -15
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/CloseButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/CloseButton.js +0 -16
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +0 -50
- package/react/components/windowTitleBar/components/right/GroupingButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.js +0 -82
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +0 -59
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.js +0 -96
- package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +0 -26
- package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/MinimizeButton.js +0 -32
- package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +0 -1
- package/react/components/windowTitleBar/components/windowTitle.d.ts +0 -67
- package/react/components/windowTitleBar/components/windowTitle.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/windowTitle.js +0 -382
- package/react/components/windowTitleBar/components/windowTitle.js.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +0 -69
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +0 -610
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +0 -44
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js +0 -43
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +0 -1
- package/react/components/windowTitleBar/windowTitleBarContext.d.ts +0 -23
- package/react/components/windowTitleBar/windowTitleBarContext.d.ts.map +0 -1
- package/react/components/windowTitleBar/windowTitleBarContext.js +0 -22
- package/react/components/windowTitleBar/windowTitleBarContext.js.map +0 -1
- package/react/types/windowTitleBar.d.ts +0 -49
- package/react/types/windowTitleBar.d.ts.map +0 -1
- package/react/types/windowTitleBar.js +0 -2
- package/react/types/windowTitleBar.js.map +0 -1
package/common/Monitors.d.ts
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
import { EventEmitter } from "events";
|
|
3
3
|
import { MonitorInfoDetail, MonitorTaskbar } from "../FEA";
|
|
4
4
|
import { WindowIdentifier, WindowDescriptor } from "../platform/services/window/types";
|
|
5
|
-
import { ILauncherGroup } from "../platform/services/window/types";
|
|
6
5
|
import { IRouterClient } from "../clients/routerClient";
|
|
7
6
|
import { StandardErrorCallback, StandardPromise } from "../types";
|
|
8
|
-
import DockableMonitor from "../platform/services/window/Docking/dockableMonitor";
|
|
9
7
|
export { MonitorInfoDetail } from "../FEA";
|
|
10
8
|
export declare type Bounds = {
|
|
11
9
|
left: number;
|
|
@@ -58,13 +56,6 @@ export declare const getMonitorFromScaledXY: (x: number, y: number) => Promise<M
|
|
|
58
56
|
*/
|
|
59
57
|
export declare const getMonitorFromWindow: (windowDescriptor: WindowDescriptor) => Promise<MonitorInfoDetail>;
|
|
60
58
|
export declare type MonitorCommand = "mine" | "primary" | "previous" | "next" | "" | number;
|
|
61
|
-
export declare type GetWhichMonitorParams = {
|
|
62
|
-
commandMonitor: MonitorCommand;
|
|
63
|
-
monitors: MonitorInfoDetail[];
|
|
64
|
-
launchingMonitorPosition: number;
|
|
65
|
-
windowIdentifier: WindowIdentifier;
|
|
66
|
-
activeWindows: ILauncherGroup;
|
|
67
|
-
};
|
|
68
59
|
/**
|
|
69
60
|
* This method can be used to retrieve monitor info from the window service. Use this from the client API.
|
|
70
61
|
*/
|
|
@@ -72,12 +63,6 @@ export declare const getWhichMonitorClientSide: (routerClient: IRouterClient, pa
|
|
|
72
63
|
monitor?: MonitorCommand;
|
|
73
64
|
windowIdentifier?: WindowIdentifier;
|
|
74
65
|
}, cb?: StandardErrorCallback<MonitorInfoDetail>) => StandardPromise<MonitorInfoDetail>;
|
|
75
|
-
/**
|
|
76
|
-
* Gets the monitor given a "command" where command can be "primary", "previous", "next" or a number representing a specific monitor.
|
|
77
|
-
*
|
|
78
|
-
* Used specifically by launcher. Don't use this in client code.
|
|
79
|
-
*/
|
|
80
|
-
export declare const getWhichMonitor: (params: GetWhichMonitorParams) => Promise<MonitorInfoDetail>;
|
|
81
66
|
/**
|
|
82
67
|
* This method can be used to retrieve all monitor info from the window service. Use this from the client API.
|
|
83
68
|
*/
|
|
@@ -124,11 +109,38 @@ export declare const adjustBoundsToBeOnMonitorAsync: (bounds: Bounds, rectToUse?
|
|
|
124
109
|
* Returns null if there is no taskbar.
|
|
125
110
|
*/
|
|
126
111
|
export declare const getTaskbar: (monitor: MonitorInfoDetail) => MonitorTaskbar | null;
|
|
112
|
+
declare type BaseMonitor = {
|
|
113
|
+
rawMonitor?: MonitorInfoDetail | undefined;
|
|
114
|
+
availableRect: {
|
|
115
|
+
bottom: number;
|
|
116
|
+
left: number;
|
|
117
|
+
right: number;
|
|
118
|
+
top: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
127
121
|
/**
|
|
128
|
-
*
|
|
129
|
-
|
|
122
|
+
* Gets the area of the overlap between two rectangles.
|
|
123
|
+
*/
|
|
124
|
+
export declare const getOverlap: (rect1: {
|
|
125
|
+
left: number;
|
|
126
|
+
right: number;
|
|
127
|
+
top: number;
|
|
128
|
+
bottom: number;
|
|
129
|
+
}, rect2: {
|
|
130
|
+
left: number;
|
|
131
|
+
right: number;
|
|
132
|
+
top: number;
|
|
133
|
+
bottom: number;
|
|
134
|
+
}) => number;
|
|
135
|
+
/**
|
|
136
|
+
* Given a set of monitors, will return the monitor on which a set of bounds overlaps.
|
|
137
|
+
* If the window bounds are across more than one monitor then the monitor with the most overlapping surface area with
|
|
138
|
+
* the window is returned.
|
|
139
|
+
*
|
|
140
|
+
* If there is no overlap due to the window being off-monitor it will return the first monitor in the array.
|
|
130
141
|
*/
|
|
131
|
-
export declare const
|
|
142
|
+
export declare const getMonitorByBoundsSync: <T extends BaseMonitor>(windowBounds: Bounds, monitors: T[]) => T;
|
|
143
|
+
export declare const getMonitorByBounds: (windowBounds: Bounds) => Promise<MonitorInfoDetail>;
|
|
132
144
|
/**
|
|
133
145
|
* PromiseReturnType is the promisified replacement for ReturnType<>.
|
|
134
146
|
* Unfortunately there’s no built-in for what is a very useful generic.
|
package/common/Monitors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Monitors.d.ts","sourceRoot":"","sources":["../../../src/common/Monitors.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI3D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"Monitors.d.ts","sourceRoot":"","sources":["../../../src/common/Monitors.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI3D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAEvF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,oBAAY,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,cAAM,QAAS,SAAQ,YAAY;;IAGlC,WAAW,EAAE,iBAAiB,EAAE,CAAM;IAEtC,KAAK,EAAE,OAAO,CAAS;;IAMvB;;;;OAIG;WACU,WAAW,IAAI,OAAO,CAAC,QAAQ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AC,CAAC;AAGlE,OAAO,EAAE,YAAY,IAAI,QAAQ,EAAE,CAAC"}
|
package/common/Monitors.js
CHANGED
|
@@ -17,8 +17,6 @@ import { singleton } from "./Singleton";
|
|
|
17
17
|
import { clone, getWindowDescriptor } from "./util";
|
|
18
18
|
import { getMyWindowIdentifier } from "./util";
|
|
19
19
|
import SystemManagerClient from "../common/systemManagerClient";
|
|
20
|
-
import { MonitorPoolSingleton } from "../platform/services/window/Common/Pools/PoolSingletons";
|
|
21
|
-
import BoxMath from "../platform/services/window/Docking/boxMath";
|
|
22
20
|
class Monitors extends EventEmitter {
|
|
23
21
|
constructor() {
|
|
24
22
|
super();
|
|
@@ -155,70 +153,6 @@ export const getWhichMonitorClientSide = async (routerClient, params = {}, cb) =
|
|
|
155
153
|
cb === null || cb === void 0 ? void 0 : cb(err, response.data);
|
|
156
154
|
return { err, data: response.data };
|
|
157
155
|
};
|
|
158
|
-
/**
|
|
159
|
-
* Gets the monitor given a "command" where command can be "primary", "previous", "next" or a number representing a specific monitor.
|
|
160
|
-
*
|
|
161
|
-
* Used specifically by launcher. Don't use this in client code.
|
|
162
|
-
*/
|
|
163
|
-
export const getWhichMonitor = (params) => new Promise((resolve) => {
|
|
164
|
-
let monitor;
|
|
165
|
-
let { commandMonitor, monitors, launchingMonitorPosition } = params;
|
|
166
|
-
const isANumber = typeof commandMonitor === "number";
|
|
167
|
-
if (commandMonitor === "mine") {
|
|
168
|
-
const w = params.activeWindows.getWindow(params.windowIdentifier.windowName);
|
|
169
|
-
if (w) {
|
|
170
|
-
w._getBounds({}, async (err, bounds) => {
|
|
171
|
-
if (!err) {
|
|
172
|
-
const calculatedMonitor = await getMonitorFromScaledXY(bounds.left, bounds.top);
|
|
173
|
-
resolve(calculatedMonitor);
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
monitor = monitors[0];
|
|
177
|
-
resolve(monitor);
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
// If there is not a window use the first monitor.
|
|
182
|
-
// It happens when call a `showWindow()` from the custom service, which doesn't have a UI window
|
|
183
|
-
else {
|
|
184
|
-
monitor = monitors[0];
|
|
185
|
-
resolve(monitor);
|
|
186
|
-
}
|
|
187
|
-
// resolve when _getBounds() finishes above
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
else if (commandMonitor === "primary") {
|
|
191
|
-
monitor = monitors.find((m) => m.whichMonitor === "primary");
|
|
192
|
-
}
|
|
193
|
-
else if (commandMonitor === "next") {
|
|
194
|
-
let position = launchingMonitorPosition + 1;
|
|
195
|
-
if (position >= monitors.length) {
|
|
196
|
-
position = 0;
|
|
197
|
-
}
|
|
198
|
-
monitor = monitors[position];
|
|
199
|
-
}
|
|
200
|
-
else if (commandMonitor === "previous") {
|
|
201
|
-
let position = launchingMonitorPosition - 1;
|
|
202
|
-
if (position < 0) {
|
|
203
|
-
position = monitors.length - 1;
|
|
204
|
-
}
|
|
205
|
-
monitor = monitors[position];
|
|
206
|
-
}
|
|
207
|
-
else if (isANumber) {
|
|
208
|
-
if (commandMonitor >= monitors.length) {
|
|
209
|
-
commandMonitor = monitors.length - 1;
|
|
210
|
-
}
|
|
211
|
-
monitor = monitors.filter((knownMonitor) => knownMonitor.position === commandMonitor)[0];
|
|
212
|
-
}
|
|
213
|
-
else if (launchingMonitorPosition) {
|
|
214
|
-
monitor = monitors[launchingMonitorPosition];
|
|
215
|
-
}
|
|
216
|
-
if (!monitor) {
|
|
217
|
-
// primary if no monitor found
|
|
218
|
-
monitor = monitors[0];
|
|
219
|
-
}
|
|
220
|
-
resolve(monitor);
|
|
221
|
-
});
|
|
222
156
|
/**
|
|
223
157
|
* This method can be used to retrieve all monitor info from the window service. Use this from the client API.
|
|
224
158
|
*/
|
|
@@ -442,23 +376,54 @@ export const getTaskbar = (monitor) => {
|
|
|
442
376
|
return null;
|
|
443
377
|
};
|
|
444
378
|
/**
|
|
445
|
-
*
|
|
446
|
-
* If there is no overlap due to the window being off-monitor it will return the first monitor in the array
|
|
379
|
+
* Gets the area of the overlap between two rectangles.
|
|
447
380
|
*/
|
|
448
|
-
export const
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
381
|
+
export const getOverlap = (rect1, rect2) => {
|
|
382
|
+
let xOverlap;
|
|
383
|
+
if (rect1.left >= rect2.left && rect1.left <= rect2.right) {
|
|
384
|
+
xOverlap = rect2.right - rect1.left;
|
|
385
|
+
}
|
|
386
|
+
else if (rect2.left >= rect1.left && rect2.left <= rect1.right) {
|
|
387
|
+
xOverlap = rect1.right - rect2.left;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
return 0;
|
|
391
|
+
}
|
|
392
|
+
let yOverlap;
|
|
393
|
+
if (rect1.top >= rect2.top && rect1.top <= rect2.bottom) {
|
|
394
|
+
yOverlap = rect2.bottom - rect1.top;
|
|
395
|
+
}
|
|
396
|
+
else if (rect2.top >= rect1.top && rect2.top <= rect1.bottom) {
|
|
397
|
+
yOverlap = rect1.bottom - rect2.top;
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
return 0;
|
|
457
401
|
}
|
|
458
|
-
|
|
402
|
+
return xOverlap * yOverlap;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Given a set of monitors, will return the monitor on which a set of bounds overlaps.
|
|
406
|
+
* If the window bounds are across more than one monitor then the monitor with the most overlapping surface area with
|
|
407
|
+
* the window is returned.
|
|
408
|
+
*
|
|
409
|
+
* If there is no overlap due to the window being off-monitor it will return the first monitor in the array.
|
|
410
|
+
*/
|
|
411
|
+
export const getMonitorByBoundsSync = (windowBounds, monitors) => {
|
|
412
|
+
const overlaps = monitors.map((monitor) => {
|
|
413
|
+
var _b;
|
|
414
|
+
return {
|
|
415
|
+
monitor,
|
|
416
|
+
overlap: getOverlap(windowBounds, ((_b = monitor.rawMonitor) === null || _b === void 0 ? void 0 : _b.monitorRect) || monitor.availableRect),
|
|
417
|
+
};
|
|
418
|
+
});
|
|
419
|
+
// If there is no overlap due to the window being off-screen it will return the first monitor in the array
|
|
459
420
|
if (overlaps.length === 0)
|
|
460
|
-
return
|
|
461
|
-
//
|
|
421
|
+
return monitors[0];
|
|
422
|
+
// Return the monitor with the greatest overlap.
|
|
462
423
|
return overlaps.reduce((prev, current) => (prev.overlap > current.overlap ? prev : current)).monitor;
|
|
463
424
|
};
|
|
425
|
+
export const getMonitorByBounds = async (windowBounds) => {
|
|
426
|
+
const monitors = await getAllMonitors();
|
|
427
|
+
return getMonitorByBoundsSync(windowBounds, monitors);
|
|
428
|
+
};
|
|
464
429
|
//# sourceMappingURL=Monitors.js.map
|
package/common/Monitors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Monitors.js","sourceRoot":"","sources":["../../../src/common/Monitors.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAG/C,OAAO,mBAAmB,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAC/F,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAclE,MAAM,QAAS,SAAQ,YAAY;IAOlC;QACC,KAAK,EAAE,CAAC;QALT,gBAAW,GAAwB,EAAE,CAAC;QAEtC,UAAK,GAAY,KAAK,CAAC;IAIvB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,WAAW;QACvB,IAAI,CAAC,uBAAA,Q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AQ,CAAC;AAC5B,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAwB,YAAoB,EAAE,QAAa,EAAK,EAAE;IACvG,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;QACzC,OAAO;YACN,OAAO;YACP,OAAO,EAAE,UAAU,CAAC,YAAY,EAAE,CAAA,MAAA,OAAO,CAAC,UAAU,0CAAE,WAAW,KAAI,OAAO,CAAC,aAAa,CAAC;SAC3F,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,0GAA0G;IAC1G,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9C,gDAAgD;IAChD,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;AACtG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EAAE,YAAoB,EAA8B,EAAE;IAC5F,MAAM,QAAQ,GAAG,MAAM,cAAc,EAAE,CAAC;IACxC,OAAO,sBAAsB,CAAC,YAAY,EAAE,QAAQ,CAAsB,CAAC;AAC5E,CAAC,CAAC"}
|
package/common/Singleton.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets a singleton. Returns null if the singleton doesn't yet exist.
|
|
3
|
+
*
|
|
4
|
+
* Use singleton() or singletonFactory() to lazily create singletons.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getSingleton: <A>(key: string) => A | null;
|
|
1
7
|
/**
|
|
2
8
|
* This code creates a *true* singleton that will never be duplicated across webpack module loads.
|
|
3
9
|
* If the singleton already exists then it is returned, otherwise a new one is created from the
|
|
@@ -55,7 +61,7 @@
|
|
|
55
61
|
* @param Ctor A constructor class.
|
|
56
62
|
* @param [...args] Any remaining parameters will be passed to the constructor as arguments
|
|
57
63
|
*
|
|
58
|
-
* @
|
|
64
|
+
* @example
|
|
59
65
|
* if(!MyClass.instance) MyClass.instance = singleton("MyClassKey", MyClass);
|
|
60
66
|
*/
|
|
61
67
|
export declare const singleton: <A>(key: string, Ctor: new (...args: any[]) => A, ...args: any[]) => A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Singleton.d.ts","sourceRoot":"","sources":["../../../src/common/Singleton.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,SAAS,WAAY,MAAM,sBAAwB,GAAG,EAAE,iBAAiB,GAAG,EAAE,MAQ1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAAY,MAAM,kBAAkB,GAAG,EAAE,iBAAiB,GAAG,EAAE,MAQ3F,CAAC"}
|
|
1
|
+
{"version":3,"file":"Singleton.d.ts","sourceRoot":"","sources":["../../../src/common/Singleton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,YAAY,WAAY,MAAM,aAM1C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,SAAS,WAAY,MAAM,sBAAwB,GAAG,EAAE,iBAAiB,GAAG,EAAE,MAQ1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAAY,MAAM,kBAAkB,GAAG,EAAE,iBAAiB,GAAG,EAAE,MAQ3F,CAAC"}
|
package/common/Singleton.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets a singleton. Returns null if the singleton doesn't yet exist.
|
|
3
|
+
*
|
|
4
|
+
* Use singleton() or singletonFactory() to lazily create singletons.
|
|
5
|
+
*/
|
|
6
|
+
export const getSingleton = (key) => {
|
|
7
|
+
const SINGLETON_KEY = Symbol.for(`com.finsemble.singleton.${key}`);
|
|
8
|
+
const globalSymbols = Object.getOwnPropertySymbols(global);
|
|
9
|
+
const singletonExists = globalSymbols.indexOf(SINGLETON_KEY) > -1;
|
|
10
|
+
if (!singletonExists)
|
|
11
|
+
return null;
|
|
12
|
+
return global[SINGLETON_KEY];
|
|
13
|
+
};
|
|
1
14
|
/**
|
|
2
15
|
* This code creates a *true* singleton that will never be duplicated across webpack module loads.
|
|
3
16
|
* If the singleton already exists then it is returned, otherwise a new one is created from the
|
|
@@ -55,29 +68,29 @@
|
|
|
55
68
|
* @param Ctor A constructor class.
|
|
56
69
|
* @param [...args] Any remaining parameters will be passed to the constructor as arguments
|
|
57
70
|
*
|
|
58
|
-
* @
|
|
71
|
+
* @example
|
|
59
72
|
* if(!MyClass.instance) MyClass.instance = singleton("MyClassKey", MyClass);
|
|
60
73
|
*/
|
|
61
74
|
export const singleton = (key, Ctor, ...args) => {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (!singletonExists) {
|
|
75
|
+
const result = getSingleton(key);
|
|
76
|
+
if (!result) {
|
|
77
|
+
const SINGLETON_KEY = Symbol.for(`com.finsemble.singleton.${key}`);
|
|
66
78
|
global[SINGLETON_KEY] = new Ctor(...args);
|
|
79
|
+
return global[SINGLETON_KEY];
|
|
67
80
|
}
|
|
68
|
-
return
|
|
81
|
+
return result;
|
|
69
82
|
};
|
|
70
83
|
/**
|
|
71
84
|
* Behaves just like singleton except that it accepts a function instead of a constructor to
|
|
72
85
|
* create the instance
|
|
73
86
|
*/
|
|
74
87
|
export const singletonFactory = (key, func, ...args) => {
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (!singletonExists) {
|
|
88
|
+
const result = getSingleton(key);
|
|
89
|
+
if (!result) {
|
|
90
|
+
const SINGLETON_KEY = Symbol.for(`com.finsemble.singleton.${key}`);
|
|
79
91
|
global[SINGLETON_KEY] = func(...args);
|
|
92
|
+
return global[SINGLETON_KEY];
|
|
80
93
|
}
|
|
81
|
-
return
|
|
94
|
+
return result;
|
|
82
95
|
};
|
|
83
96
|
//# sourceMappingURL=Singleton.js.map
|
package/common/Singleton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Singleton.js","sourceRoot":"","sources":["../../../src/common/Singleton.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Singleton.js","sourceRoot":"","sources":["../../../src/common/Singleton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,GAAW,EAAY,EAAE;IACxD,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;IACnE,MAAM,aAAa,GAAG,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC3D,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,eAAe;QAAE,OAAO,IAAI,CAAC;IAClC,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAI,GAAW,EAAE,IAAiC,EAAE,GAAG,IAAW,EAAK,EAAE;IACjG,MAAM,MAAM,GAAG,YAAY,CAAI,GAAG,CAAC,CAAC;IACpC,IAAI,CAAC,MAAM,EAAE;QACZ,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;QACnE,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAC1C,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC;KAC7B;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAI,GAAW,EAAE,IAA2B,EAAE,GAAG,IAAW,EAAK,EAAE;IAClG,MAAM,MAAM,GAAG,YAAY,CAAI,GAAG,CAAC,CAAC;IACpC,IAAI,CAAC,MAAM,EAAE;QACZ,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;QACnE,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC;KAC7B;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC"}
|
package/common/constants.d.ts
CHANGED
|
@@ -13,16 +13,10 @@ export declare enum WINDOWSTATE {
|
|
|
13
13
|
NORMAL = 0,
|
|
14
14
|
MINIMIZED_WAS_NORMAL = 1,
|
|
15
15
|
MAXIMIZED = 2,
|
|
16
|
-
MINIMIZED_WAS_MAXIMIZED = 3
|
|
17
|
-
TRANSITIONING = 4
|
|
16
|
+
MINIMIZED_WAS_MAXIMIZED = 3
|
|
18
17
|
}
|
|
19
18
|
export declare const SERVICE_START_CHANNEL = "Finsemble.Service.Start";
|
|
20
19
|
export declare const SERVICE_STOP_CHANNEL = "Finsemble.Service.Stop";
|
|
21
|
-
export declare const DOCKING: {
|
|
22
|
-
GROUP_UPDATE: string;
|
|
23
|
-
WORKSPACE_GROUP_UPDATE: string;
|
|
24
|
-
REQUEST_PUBLISH: string;
|
|
25
|
-
};
|
|
26
20
|
export declare const EVENT_INTERRUPT_CHANNEL = "Finsemble.Event.Interrupt";
|
|
27
21
|
export declare const INTERRUPTIBLE_EVENTS: string[];
|
|
28
22
|
export declare const WINDOW: {
|
|
@@ -33,7 +27,8 @@ export declare const WORKSPACE: {
|
|
|
33
27
|
DELAYABLE_EVENTS: string[];
|
|
34
28
|
CANCELABLE_EVENTS: string[];
|
|
35
29
|
CLEAN_SHUTDOWN: string;
|
|
36
|
-
|
|
30
|
+
WORKSPACE_UPDATED: string;
|
|
31
|
+
RELOAD_GROUPS: string;
|
|
37
32
|
STORAGE_TOPIC: string;
|
|
38
33
|
CACHE_STORAGE_TOPIC: string;
|
|
39
34
|
ALL_WORKSPACES: string;
|
|
@@ -86,7 +81,6 @@ export declare const WORKSPACE: {
|
|
|
86
81
|
ADDITIONAL_WINDOW_PROPS: {
|
|
87
82
|
WebWindow: string[];
|
|
88
83
|
NativeWindow: string[];
|
|
89
|
-
StackedWindow: string[];
|
|
90
84
|
};
|
|
91
85
|
};
|
|
92
86
|
export declare const WINDOW_SERVICE_REQUESTS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AACF,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AAGvE,eAAO,MAAM,4BAA4B,iDAAiD,CAAC;AAC3F,eAAO,MAAM,qBAAqB,0CAA0C,CAAC;AAC7E,eAAO,MAAM,uBAAuB,4CAA4C,CAAC;AACjF,eAAO,MAAM,sBAAsB,2CAA2C,CAAC;AAI/E,eAAO,MAAM,2BAA2B,SAAU,MAAM,WAAkD,CAAC;AAE3G,eAAO,MAAM,qBAAqB,SAAU,MAAM,WAejD,CAAC;AAGF,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,oBAAY,WAAW;IACtB,MAAM,IAAI;IACV,oBAAoB,IAAI;IACxB,SAAS,IAAI;IACb,uBAAuB,IAAI;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QA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ATE[WINDOWSTATE["MINIMIZED_WAS_MAXIMIZED"] = 3] = "MINIMIZED_WAS_MAXIMIZED";
|
|
38
|
-
WINDOWSTATE[WINDOWSTATE["TRANSITIONING"] = 4] = "TRANSITIONING";
|
|
39
38
|
})(WINDOWSTATE || (WINDOWSTATE = {}));
|
|
40
39
|
// These channels are to start and stop services dynamically.
|
|
41
40
|
export const SERVICE_START_CHANNEL = "Finsemble.Service.Start";
|
|
42
41
|
export const SERVICE_STOP_CHANNEL = "Finsemble.Service.Stop";
|
|
43
|
-
export const DOCKING = {
|
|
44
|
-
GROUP_UPDATE: "DockingService.groupUpdate",
|
|
45
|
-
// For legacy reasons, this is named Workspace, even though it's generated by docking.
|
|
46
|
-
WORKSPACE_GROUP_UPDATE: "Finsemble.WorkspaceService.groupUpdate",
|
|
47
|
-
REQUEST_PUBLISH: "DockingService.requestGroupDataPublish",
|
|
48
|
-
};
|
|
49
42
|
// These channels are for interrupting events
|
|
50
43
|
export const EVENT_INTERRUPT_CHANNEL = "Finsemble.Event.Interrupt";
|
|
51
44
|
export const INTERRUPTIBLE_EVENTS = ["close-requested", "closed", "close-complete", "_container-close-handlers"];
|
|
@@ -57,7 +50,9 @@ export const WORKSPACE = {
|
|
|
57
50
|
DELAYABLE_EVENTS: ["load-requested", "close-requested", "save-requested"],
|
|
58
51
|
CANCELABLE_EVENTS: ["close-requested"],
|
|
59
52
|
CLEAN_SHUTDOWN: "Finsemble.Workspace.cleanShutdown",
|
|
60
|
-
|
|
53
|
+
WORKSPACE_UPDATED: "Finsemble.WorkspaceService.update",
|
|
54
|
+
// Tells the docking service to use the groups delivered with this message
|
|
55
|
+
RELOAD_GROUPS: "Finsemble.WorkspaceService.reloadGroups",
|
|
61
56
|
STORAGE_TOPIC: "finsemble.workspace",
|
|
62
57
|
CACHE_STORAGE_TOPIC: "finsemble.workspace.cache",
|
|
63
58
|
ALL_WORKSPACES: "finsemble.allWorkspaces",
|
|
@@ -156,12 +151,6 @@ export const WORKSPACE = {
|
|
|
156
151
|
"appUUID",
|
|
157
152
|
],
|
|
158
153
|
NativeWindow: ["path", "alias", "arguments", "argumentsAsQueryString", "isWPF"],
|
|
159
|
-
StackedWindow: [
|
|
160
|
-
"childWindowIdentifiers",
|
|
161
|
-
"visibleWindowIdentifier",
|
|
162
|
-
// this third version of bounds is also required, otherwise stacks have errors and never become visible
|
|
163
|
-
"bounds",
|
|
164
|
-
],
|
|
165
154
|
},
|
|
166
155
|
};
|
|
167
156
|
export const WINDOW_SERVICE_REQUESTS = {
|
package/common/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB,MAAM,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,CAAC;CACnF,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,6BAA6B,CAAC;AAEvE,6KAA6K;AAC7K,MAAM,CAAC,MAAM,4BAA4B,GAAG,8CAA8C,CAAC;AAC3F,MAAM,CAAC,MAAM,qBAAqB,GAAG,uCAAuC,CAAC;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,yCAAyC,CAAC;AACjF,MAAM,CAAC,MAAM,sBAAsB,GAAG,wCAAwC,CAAC;AAE/E,iFAAiF;AACjF,yDAAyD;AACzD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,uCAAuC,IAAI,EAAE,CAAC;AAC3G,0IAA0I;AAC1I,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAE,EAAE;IACrD,MAAM,OAAO,GAA8B;QAC1C,oBAAoB,EAAE,uBAAuB;QAC7C,YAAY,EAAE,eAAe;QAC7B,sBAAsB,EAAE,kBAAkB;QAC1C,YAAY,EAAE,gBAAgB;QAC9B,YAAY,EAAE,eAAe;QAC7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WAAW;QACX,UAAU;QACV,WAAW;QACX,WAAW;QACX,aAAa;QACb,aAAa;QACb,SAAS;QACT,aAAa;QACb,mGAAmG;QACnG,MAAM;QACN,KAAK;QACL,OAAO;QACP,QAAQ;QACR,OAAO;QACP,QAAQ;QACR,4IAA4I;QAC5I,aAAa;QACb,YAAY;QACZ,cAAc;QACd,eAAe;QACf,cAAc;QACd,eAAe;QACf,aAAa;QACb,MAAM;QACN,cAAc;QACd,iBAAiB;QACjB,aAAa;QACb,0BAA0B;QAC1B,kBAAkB;KAClB;IACD,uBAAuB,EAAE;QACxB,SAAS,EAAE;YACV,KAAK;YACL,YAAY;YACZ,OAAO;YACP,iBAAiB;YACjB,aAAa;YACb,iBAAiB;YACjB,UAAU;YACV,SAAS;SACT;QACD,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,OAAO,CAAC;KAC/E;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC,YAAY,EAAE,2BAA2B;IACzC,iBAAiB,EAAE,sCAAsC;IACzD,gBAAgB,EAAE,qCAAqC;CACvD,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;AAE/E,MAAM,CAAC,MAAM,yBAAyB,GAAG,0CAA0C,CAAC;AAEpF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,aAAa,EAAE,8BAA8B;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,iBAAiB;CAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FinsembleEvent.d.ts","sourceRoot":"","sources":["../../../../src/common/events/FinsembleEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAI5E,
|
|
1
|
+
{"version":3,"file":"FinsembleEvent.d.ts","sourceRoot":"","sources":["../../../../src/common/events/FinsembleEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAI5E,oBAAY,oBAAoB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,QAAQ,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,cAAM,cAAc;IACnB,OAAO,CAAC,KAAK,CAAS;IAEf,MAAM,EAAE,MAAM,CAAC;IAEtB,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,OAAO,CAAW;IAE1B,OAAO,CAAC,UAAU,CAAkB;IAEpC,OAAO,CAAC,OAAO,CAAkB;IAEjC,OAAO,CAAC,WAAW,CAAkB;IAErC,OAAO,CAAC,QAAQ,CAAkB;IAElC,OAAO,CAAC,IAAI,CAAS;IAErB,OAAO,CAAC,SAAS,CAAkB;IAE5B,IAAI,EAAE,GAAG,CAAC;IAEjB,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,YAAY,CAA+B;gBAEvC,MAAM,EAAE,oBAAoB,EAAE,YAAY,CAAC,EAAE,gBAAgB;YAuB3D,eAAe;IAQ7B,MAAM,IAAI,IAAI;IAOd,IAAI,IAAI,IAAI;IASZ,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI;CAetB;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { RemoteReduxServerAddress } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a redux store and attaches it to a remote store.
|
|
4
|
+
*
|
|
5
|
+
* @param server The name of the remote redux server to attach.
|
|
6
|
+
* @param slice The slice from the remote redux server to subscribe.
|
|
7
|
+
* @param emptyStore An empty state for the local store, to handle the initial display prior to the remote side updating the local side.
|
|
8
|
+
* @param dispatchOnly - Set to true to opt out of inbound state changes on the store. This can minimize network traffic for write-only situations.
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare const getRemoteStore: <StoreType extends {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
} | undefined>({ server, slice, emptyStore, dispatchOnly, }: {
|
|
14
|
+
server: RemoteReduxServerAddress;
|
|
15
|
+
slice: string;
|
|
16
|
+
emptyStore: StoreType;
|
|
17
|
+
dispatchOnly?: boolean | undefined;
|
|
18
|
+
}) => import("@reduxjs/toolkit").EnhancedStore<any, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<any, import("redux").AnyAction, undefined>], import("redux").StoreEnhancer<{
|
|
19
|
+
dispatch: import("./types").PromiseDispatch;
|
|
20
|
+
}, {}>[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a redux store and attaches it to a remote store and then returns it as a singleton. This lazily creates
|
|
23
|
+
* the store and allows re-use without connection overhead.
|
|
24
|
+
*
|
|
25
|
+
* @param singletonName The unique identifier to use for the singleton
|
|
26
|
+
* @param server The name of the remote redux server to attach.
|
|
27
|
+
* @param slice The slice from the remote redux server to subscribe.
|
|
28
|
+
* @param emptyStore An empty state for the local store, to handle the initial display prior to the remote side updating the local side.
|
|
29
|
+
* @param dispatchOnly - Set to true to opt out of inbound state changes on the store. This can minimize network traffic for write-only situations.
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare const getRemoteStoreAsSingleton: <StoreType extends {
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
} | undefined>({ singletonName, server, slice, emptyStore, dispatchOnly, }: {
|
|
35
|
+
singletonName: string;
|
|
36
|
+
server: RemoteReduxServerAddress;
|
|
37
|
+
slice: string;
|
|
38
|
+
emptyStore: StoreType;
|
|
39
|
+
dispatchOnly?: boolean | undefined;
|
|
40
|
+
}) => import("@reduxjs/toolkit").EnhancedStore<any, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<any, import("redux").AnyAction, undefined>], import("redux").StoreEnhancer<{
|
|
41
|
+
dispatch: import("./types").PromiseDispatch;
|
|
42
|
+
}, {}>[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Resolves to a point in time snapshot of the requested remote redux store's state. If `slice` is specified
|
|
45
|
+
* then only that slice will be returned, otherwise the entire store will be returned.
|
|
46
|
+
*/
|
|
47
|
+
export declare const getRemoteState: <StoreType extends {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
} | undefined>({ server, slice, }: {
|
|
50
|
+
server: RemoteReduxServerAddress;
|
|
51
|
+
slice?: string | undefined;
|
|
52
|
+
}) => Promise<StoreType>;
|
|
53
|
+
//# sourceMappingURL=getRemoteStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRemoteStore.d.ts","sourceRoot":"","sources":["../../../../src/common/redux/getRemoteStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAQnD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;YAMlB,wBAAwB;WACzB,MAAM;;;;;SAcX,CAAC;AAEJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB;;;mBAOtB,MAAM;YACb,wBAAwB;WACzB,MAAM;;;;;SAG0F,CAAC;AAEzG;;;GAGG;AACH,eAAO,MAAM,cAAc;;;YAIlB,wBAAwB;;wBAYhC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { configureStore } from "@reduxjs/toolkit";
|
|
2
|
+
import { remoteReduxClientEnhancer } from "./remoteReduxEnhancer";
|
|
3
|
+
import { singletonFactory } from "../Singleton";
|
|
4
|
+
import { RouterClient } from "../../clients/routerClient";
|
|
5
|
+
// The local store doesn't have any reducers, but redux requires at least one, so we provide this reducer that does nothing
|
|
6
|
+
const noopReducer = (state) => state;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a redux store and attaches it to a remote store.
|
|
9
|
+
*
|
|
10
|
+
* @param server The name of the remote redux server to attach.
|
|
11
|
+
* @param slice The slice from the remote redux server to subscribe.
|
|
12
|
+
* @param emptyStore An empty state for the local store, to handle the initial display prior to the remote side updating the local side.
|
|
13
|
+
* @param dispatchOnly - Set to true to opt out of inbound state changes on the store. This can minimize network traffic for write-only situations.
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export const getRemoteStore = ({ server, slice, emptyStore, dispatchOnly = false, }) => configureStore({
|
|
17
|
+
preloadedState: emptyStore,
|
|
18
|
+
reducer: noopReducer,
|
|
19
|
+
enhancers: [
|
|
20
|
+
remoteReduxClientEnhancer({
|
|
21
|
+
server,
|
|
22
|
+
slice,
|
|
23
|
+
dispatchOnly,
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Creates a redux store and attaches it to a remote store and then returns it as a singleton. This lazily creates
|
|
29
|
+
* the store and allows re-use without connection overhead.
|
|
30
|
+
*
|
|
31
|
+
* @param singletonName The unique identifier to use for the singleton
|
|
32
|
+
* @param server The name of the remote redux server to attach.
|
|
33
|
+
* @param slice The slice from the remote redux server to subscribe.
|
|
34
|
+
* @param emptyStore An empty state for the local store, to handle the initial display prior to the remote side updating the local side.
|
|
35
|
+
* @param dispatchOnly - Set to true to opt out of inbound state changes on the store. This can minimize network traffic for write-only situations.
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export const getRemoteStoreAsSingleton = ({ singletonName, server, slice, emptyStore, dispatchOnly = false, }) => singletonFactory(singletonName, () => getRemoteStore({ server, slice, emptyStore, dispatchOnly }));
|
|
39
|
+
/**
|
|
40
|
+
* Resolves to a point in time snapshot of the requested remote redux store's state. If `slice` is specified
|
|
41
|
+
* then only that slice will be returned, otherwise the entire store will be returned.
|
|
42
|
+
*/
|
|
43
|
+
export const getRemoteState = async ({ server, slice, }) => {
|
|
44
|
+
const { response } = await RouterClient.query(server, {
|
|
45
|
+
"@@finsemble/action": "snapshot",
|
|
46
|
+
"@@finsemble/slice": slice,
|
|
47
|
+
}, () => { });
|
|
48
|
+
return response.data;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=getRemoteStore.js.map
|