@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.
Files changed (526) hide show
  1. package/FEA.d.ts +54 -24
  2. package/FEA.d.ts.map +1 -1
  3. package/FEA.js.map +1 -1
  4. package/clients/Interop/FinsembleDesktopAgent.js +2 -2
  5. package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
  6. package/clients/Startup/FSBLDesktop.d.ts +2 -8
  7. package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
  8. package/clients/Startup/FSBLDesktop.js +2 -4
  9. package/clients/Startup/FSBLDesktop.js.map +1 -1
  10. package/clients/Startup/unhandledErrors.d.ts.map +1 -1
  11. package/clients/Startup/unhandledErrors.js +6 -4
  12. package/clients/Startup/unhandledErrors.js.map +1 -1
  13. package/clients/Startup/windowStartup.d.ts.map +1 -1
  14. package/clients/Startup/windowStartup.js +77 -116
  15. package/clients/Startup/windowStartup.js.map +1 -1
  16. package/clients/StoreModel.d.ts +8 -8
  17. package/clients/StoreModel.js +8 -8
  18. package/clients/appsClient.d.ts +90 -0
  19. package/clients/appsClient.d.ts.map +1 -0
  20. package/clients/appsClient.js +51 -0
  21. package/clients/appsClient.js.map +1 -0
  22. package/clients/authenticationClient.d.ts +29 -27
  23. package/clients/authenticationClient.d.ts.map +1 -1
  24. package/clients/authenticationClient.js +11 -15
  25. package/clients/authenticationClient.js.map +1 -1
  26. package/clients/configClient.d.ts +134 -70
  27. package/clients/configClient.d.ts.map +1 -1
  28. package/clients/configClient.js +129 -112
  29. package/clients/configClient.js.map +1 -1
  30. package/clients/controller/DialogManagerClientController.d.ts +78 -0
  31. package/clients/controller/DialogManagerClientController.d.ts.map +1 -0
  32. package/clients/controller/DialogManagerClientController.js +213 -0
  33. package/clients/controller/DialogManagerClientController.js.map +1 -0
  34. package/clients/dialogManagerClient.d.ts +1 -75
  35. package/clients/dialogManagerClient.d.ts.map +1 -1
  36. package/clients/dialogManagerClient.js +1 -208
  37. package/clients/dialogManagerClient.js.map +1 -1
  38. package/clients/distributedStoreClient.d.ts +1 -0
  39. package/clients/distributedStoreClient.d.ts.map +1 -1
  40. package/clients/distributedStoreClient.js +1 -0
  41. package/clients/distributedStoreClient.js.map +1 -1
  42. package/clients/hotkeyClient.d.ts +18 -9
  43. package/clients/hotkeyClient.d.ts.map +1 -1
  44. package/clients/hotkeyClient.js +30 -14
  45. package/clients/hotkeyClient.js.map +1 -1
  46. package/clients/index.d.ts +2 -0
  47. package/clients/index.d.ts.map +1 -1
  48. package/clients/index.js +2 -0
  49. package/clients/index.js.map +1 -1
  50. package/clients/launcherClient.d.ts +157 -47
  51. package/clients/launcherClient.d.ts.map +1 -1
  52. package/clients/launcherClient.js +201 -22
  53. package/clients/launcherClient.js.map +1 -1
  54. package/clients/logger.d.ts.map +1 -1
  55. package/clients/logger.js +43 -41
  56. package/clients/logger.js.map +1 -1
  57. package/clients/notificationClient.d.ts +2 -2
  58. package/clients/notificationClient.d.ts.map +1 -1
  59. package/clients/notificationClient.js +2 -2
  60. package/clients/notificationClient.js.map +1 -1
  61. package/clients/routerClient.d.ts +25 -21
  62. package/clients/routerClient.d.ts.map +1 -1
  63. package/clients/routerClient.js +24 -20
  64. package/clients/routerClient.js.map +1 -1
  65. package/clients/searchClient.d.ts +2 -2
  66. package/clients/searchClient.js +2 -2
  67. package/clients/storageClient.d.ts +8 -5
  68. package/clients/storageClient.d.ts.map +1 -1
  69. package/clients/storageClient.js +7 -5
  70. package/clients/storageClient.js.map +1 -1
  71. package/clients/windowClient.d.ts +160 -79
  72. package/clients/windowClient.d.ts.map +1 -1
  73. package/clients/windowClient.js +244 -138
  74. package/clients/windowClient.js.map +1 -1
  75. package/clients/workspaceClient.d.ts +19 -14
  76. package/clients/workspaceClient.d.ts.map +1 -1
  77. package/clients/workspaceClient.js +15 -9
  78. package/clients/workspaceClient.js.map +1 -1
  79. package/common/Desktop.d.ts +9 -50
  80. package/common/Desktop.d.ts.map +1 -1
  81. package/common/Desktop.js +11 -64
  82. package/common/Desktop.js.map +1 -1
  83. package/common/FinsembleWindow.d.ts +4 -107
  84. package/common/FinsembleWindow.d.ts.map +1 -1
  85. package/common/FinsembleWindow.js +21 -342
  86. package/common/FinsembleWindow.js.map +1 -1
  87. package/common/Monitors.d.ts +30 -18
  88. package/common/Monitors.d.ts.map +1 -1
  89. package/common/Monitors.js +45 -80
  90. package/common/Monitors.js.map +1 -1
  91. package/common/Singleton.d.ts +7 -1
  92. package/common/Singleton.d.ts.map +1 -1
  93. package/common/Singleton.js +24 -11
  94. package/common/Singleton.js.map +1 -1
  95. package/common/constants.d.ts +3 -9
  96. package/common/constants.d.ts.map +1 -1
  97. package/common/constants.js +3 -14
  98. package/common/constants.js.map +1 -1
  99. package/common/events/FinsembleEvent.d.ts +1 -1
  100. package/common/events/FinsembleEvent.d.ts.map +1 -1
  101. package/common/redux/getRemoteStore.d.ts +53 -0
  102. package/common/redux/getRemoteStore.d.ts.map +1 -0
  103. package/common/redux/getRemoteStore.js +50 -0
  104. package/common/redux/getRemoteStore.js.map +1 -0
  105. package/common/redux/remoteReduxEnhancer.d.ts +7 -7
  106. package/common/redux/remoteReduxEnhancer.d.ts.map +1 -1
  107. package/common/redux/remoteReduxEnhancer.js +35 -20
  108. package/common/redux/remoteReduxEnhancer.js.map +1 -1
  109. package/common/redux/types.d.ts +14 -1
  110. package/common/redux/types.d.ts.map +1 -1
  111. package/common/systemManagerClient.d.ts +11 -5
  112. package/common/systemManagerClient.d.ts.map +1 -1
  113. package/common/systemManagerClient.js +25 -8
  114. package/common/systemManagerClient.js.map +1 -1
  115. package/common/util.d.ts +1 -7
  116. package/common/util.d.ts.map +1 -1
  117. package/common/util.js +1 -14
  118. package/common/util.js.map +1 -1
  119. package/deprecated/deprecatedFunctions.d.ts +1 -1
  120. package/deprecated/deprecatedFunctions.d.ts.map +1 -1
  121. package/deprecated/deprecatedFunctions.js +1 -2
  122. package/deprecated/deprecatedFunctions.js.map +1 -1
  123. package/deprecated/dragAndDropClient.d.ts +3 -3
  124. package/deprecated/dragAndDropClient.d.ts.map +1 -1
  125. package/deprecated/dragAndDropClient.js.map +1 -1
  126. package/deprecated/linkerClient.d.ts +1 -1
  127. package/deprecated/linkerClient.d.ts.map +1 -1
  128. package/main.d.ts +289 -190
  129. package/main.d.ts.map +1 -1
  130. package/main.js +3 -1
  131. package/main.js.map +1 -1
  132. package/package.json +3 -3
  133. package/platform/services/Interop/types.d.ts +2 -1
  134. package/platform/services/Interop/types.d.ts.map +1 -1
  135. package/platform/services/router/types.d.ts +5 -6
  136. package/platform/services/router/types.d.ts.map +1 -1
  137. package/platform/services/systemManager/_constants.d.ts +1 -0
  138. package/platform/services/systemManager/_constants.d.ts.map +1 -1
  139. package/platform/services/systemManager/_constants.js +1 -0
  140. package/platform/services/systemManager/_constants.js.map +1 -1
  141. package/platform/services/window/modules/actions.d.ts +59 -0
  142. package/platform/services/window/modules/actions.d.ts.map +1 -0
  143. package/platform/services/window/modules/actions.js +57 -0
  144. package/platform/services/window/modules/actions.js.map +1 -0
  145. package/platform/services/window/types.d.ts +257 -50
  146. package/platform/services/window/types.d.ts.map +1 -1
  147. package/platform/services/workspace/types.d.ts +4 -3
  148. package/platform/services/workspace/types.d.ts.map +1 -1
  149. package/react/assets/css/core/icons.css +0 -5
  150. package/react/assets/css/processMonitor.css +9 -4
  151. package/react/assets/css/windowTitleBar.css +98 -285
  152. package/react/assets/icons/chevron-down.svg +1 -0
  153. package/react/assets/icons/chevron-up.svg +1 -0
  154. package/react/components/common/ButtonRow.d.ts.map +1 -1
  155. package/react/components/common/ButtonRow.js +4 -9
  156. package/react/components/common/ButtonRow.js.map +1 -1
  157. package/react/components/common/ContextMenu.d.ts.map +1 -1
  158. package/react/components/common/ContextMenu.js +2 -10
  159. package/react/components/common/ContextMenu.js.map +1 -1
  160. package/react/components/common/DropdownButton.d.ts.map +1 -1
  161. package/react/components/common/DropdownButton.js +11 -24
  162. package/react/components/common/DropdownButton.js.map +1 -1
  163. package/react/components/common/FinsembleIcon.d.ts +1 -1
  164. package/react/components/common/FinsembleIcon.d.ts.map +1 -1
  165. package/react/components/common/FinsembleIcon.js +6 -4
  166. package/react/components/common/FinsembleIcon.js.map +1 -1
  167. package/react/components/common/css/accordion.css +9 -21
  168. package/react/components/common/css/application-edit-page.css +0 -4
  169. package/react/components/common/css/selector.css +3 -1
  170. package/react/components/downloadManager/DownloadManager.d.ts +1 -1
  171. package/react/components/downloadManager/DownloadManager.d.ts.map +1 -1
  172. package/react/components/downloadManager/DownloadManager.js +2 -4
  173. package/react/components/downloadManager/DownloadManager.js.map +1 -1
  174. package/react/components/fdc3Resolver/ResolverContainer.d.ts +6 -0
  175. package/react/components/fdc3Resolver/ResolverContainer.d.ts.map +1 -1
  176. package/react/components/fdc3Resolver/ResolverContainer.js +37 -89
  177. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  178. package/react/components/fdc3Resolver/ResolverDialog.d.ts +10 -1
  179. package/react/components/fdc3Resolver/ResolverDialog.d.ts.map +1 -1
  180. package/react/components/fdc3Resolver/ResolverDialog.js +78 -66
  181. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  182. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
  183. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts.map +1 -1
  184. package/react/components/linker/remoteRedux.d.ts +2 -9
  185. package/react/components/linker/remoteRedux.d.ts.map +1 -1
  186. package/react/components/linker/remoteRedux.js +2 -22
  187. package/react/components/linker/remoteRedux.js.map +1 -1
  188. package/react/components/notifications/css/notification-center.css +2 -0
  189. package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
  190. package/react/components/processMonitor/ProcessMonitor.js +14 -36
  191. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  192. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +0 -4
  193. package/react/components/processMonitor/ProcessMonitorTypes.d.ts.map +1 -1
  194. package/react/components/processMonitor/ProcessMonitorTypes.js +1 -5
  195. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  196. package/react/components/processMonitor/components/ChildWindow.d.ts +2 -3
  197. package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
  198. package/react/components/processMonitor/components/ChildWindow.js +5 -9
  199. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  200. package/react/components/processMonitor/components/ListHeader.d.ts +1 -5
  201. package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
  202. package/react/components/processMonitor/components/ListHeader.js +3 -2
  203. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  204. package/react/components/processMonitor/components/Process.d.ts +10 -0
  205. package/react/components/processMonitor/components/Process.d.ts.map +1 -0
  206. package/react/components/processMonitor/components/Process.js +11 -0
  207. package/react/components/processMonitor/components/Process.js.map +1 -0
  208. package/react/components/processMonitor/components/ProcessStatistics.d.ts +5 -4
  209. package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
  210. package/react/components/processMonitor/components/ProcessStatistics.js +10 -7
  211. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  212. package/react/components/processMonitor/constants.d.ts +1 -2
  213. package/react/components/processMonitor/constants.d.ts.map +1 -1
  214. package/react/components/processMonitor/constants.js +2 -8
  215. package/react/components/processMonitor/constants.js.map +1 -1
  216. package/react/components/processMonitor/helpers.d.ts +0 -1
  217. package/react/components/processMonitor/helpers.d.ts.map +1 -1
  218. package/react/components/processMonitor/helpers.js +2 -9
  219. package/react/components/processMonitor/helpers.js.map +1 -1
  220. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +0 -4
  221. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts.map +1 -1
  222. package/react/components/processMonitor/stores/ProcessMonitorStore.js +0 -29
  223. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  224. package/react/components/search/SearchInput.d.ts +1 -2
  225. package/react/components/search/SearchInput.d.ts.map +1 -1
  226. package/react/components/search/SearchInput.js +11 -13
  227. package/react/components/search/SearchInput.js.map +1 -1
  228. package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
  229. package/react/components/shared/openQuitConfirmationDialog.js +31 -4
  230. package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
  231. package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
  232. package/react/components/singleInputDialog/SingleInputDialog.js +81 -100
  233. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  234. package/react/components/toolbar/ToolbarShell.d.ts +1 -0
  235. package/react/components/toolbar/ToolbarShell.d.ts.map +1 -1
  236. package/react/components/toolbar/ToolbarShell.js +3 -2
  237. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  238. package/react/components/utils.d.ts +50 -0
  239. package/react/components/utils.d.ts.map +1 -0
  240. package/react/components/utils.js +60 -0
  241. package/react/components/utils.js.map +1 -0
  242. package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts +9 -0
  243. package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts.map +1 -0
  244. package/react/components/windowTitleBar/AlwaysOnTopButton.js +29 -0
  245. package/react/components/windowTitleBar/AlwaysOnTopButton.js.map +1 -0
  246. package/react/components/windowTitleBar/{components/right/CloseButton.d.ts → CloseButton.d.ts} +0 -0
  247. package/react/components/windowTitleBar/CloseButton.d.ts.map +1 -0
  248. package/react/components/windowTitleBar/CloseButton.js +22 -0
  249. package/react/components/windowTitleBar/CloseButton.js.map +1 -0
  250. package/react/components/windowTitleBar/GroupingButton.d.ts +3 -0
  251. package/react/components/windowTitleBar/GroupingButton.d.ts.map +1 -0
  252. package/react/components/windowTitleBar/GroupingButton.js +25 -0
  253. package/react/components/windowTitleBar/GroupingButton.js.map +1 -0
  254. package/react/components/windowTitleBar/{components/left/LinkerButton.d.ts → LinkerButton.d.ts} +0 -0
  255. package/react/components/windowTitleBar/LinkerButton.d.ts.map +1 -0
  256. package/react/components/windowTitleBar/{components/left/LinkerButton.js → LinkerButton.js} +4 -4
  257. package/react/components/windowTitleBar/LinkerButton.js.map +1 -0
  258. package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts +11 -0
  259. package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts.map +1 -0
  260. package/react/components/windowTitleBar/LinkerButtonDeprecated.js +63 -0
  261. package/react/components/windowTitleBar/LinkerButtonDeprecated.js.map +1 -0
  262. package/react/components/windowTitleBar/{components/left/LinkerGroups.d.ts → LinkerGroups.d.ts} +0 -0
  263. package/react/components/windowTitleBar/LinkerGroups.d.ts.map +1 -0
  264. package/react/components/windowTitleBar/{components/left/LinkerGroups.js → LinkerGroups.js} +2 -3
  265. package/react/components/windowTitleBar/LinkerGroups.js.map +1 -0
  266. package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts +7 -0
  267. package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts.map +1 -0
  268. package/react/components/windowTitleBar/LinkerGroupsDeprecated.js +35 -0
  269. package/react/components/windowTitleBar/LinkerGroupsDeprecated.js.map +1 -0
  270. package/react/components/windowTitleBar/MaximizeButton.d.ts +3 -0
  271. package/react/components/windowTitleBar/MaximizeButton.d.ts.map +1 -0
  272. package/react/components/windowTitleBar/MaximizeButton.js +18 -0
  273. package/react/components/windowTitleBar/MaximizeButton.js.map +1 -0
  274. package/react/components/windowTitleBar/MinimizeButton.d.ts +3 -0
  275. package/react/components/windowTitleBar/MinimizeButton.d.ts.map +1 -0
  276. package/react/components/windowTitleBar/MinimizeButton.js +21 -0
  277. package/react/components/windowTitleBar/MinimizeButton.js.map +1 -0
  278. package/react/components/windowTitleBar/ShareButton.d.ts +3 -0
  279. package/react/components/windowTitleBar/ShareButton.d.ts.map +1 -0
  280. package/react/components/windowTitleBar/ShareButton.js +24 -0
  281. package/react/components/windowTitleBar/ShareButton.js.map +1 -0
  282. package/react/components/windowTitleBar/TabRegion.d.ts +7 -0
  283. package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -0
  284. package/react/components/windowTitleBar/TabRegion.js +453 -0
  285. package/react/components/windowTitleBar/TabRegion.js.map +1 -0
  286. package/react/components/windowTitleBar/TabTitle.d.ts +8 -0
  287. package/react/components/windowTitleBar/TabTitle.d.ts.map +1 -0
  288. package/react/components/windowTitleBar/TabTitle.js +17 -0
  289. package/react/components/windowTitleBar/TabTitle.js.map +1 -0
  290. package/react/components/windowTitleBar/TitleEdit.d.ts +10 -0
  291. package/react/components/windowTitleBar/TitleEdit.d.ts.map +1 -0
  292. package/react/components/windowTitleBar/TitleEdit.js +30 -0
  293. package/react/components/windowTitleBar/TitleEdit.js.map +1 -0
  294. package/react/components/windowTitleBar/WindowTitleBarContext.d.ts +12 -0
  295. package/react/components/windowTitleBar/WindowTitleBarContext.d.ts.map +1 -0
  296. package/react/components/windowTitleBar/WindowTitleBarContext.js +3 -0
  297. package/react/components/windowTitleBar/WindowTitleBarContext.js.map +1 -0
  298. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +14 -272
  299. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts.map +1 -1
  300. package/react/components/windowTitleBar/WindowTitleBarShell.js +41 -929
  301. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  302. package/react/components/windowTitleBar/index.d.ts +9 -8
  303. package/react/components/windowTitleBar/index.d.ts.map +1 -1
  304. package/react/components/windowTitleBar/index.js +9 -8
  305. package/react/components/windowTitleBar/index.js.map +1 -1
  306. package/react/components/windowTitleBar/useKeyboardNavigation.d.ts +7 -0
  307. package/react/components/windowTitleBar/useKeyboardNavigation.d.ts.map +1 -0
  308. package/react/components/windowTitleBar/useKeyboardNavigation.js +57 -0
  309. package/react/components/windowTitleBar/useKeyboardNavigation.js.map +1 -0
  310. package/react/components/windowTitleBar/useMaximize.d.ts +5 -0
  311. package/react/components/windowTitleBar/useMaximize.d.ts.map +1 -0
  312. package/react/components/windowTitleBar/useMaximize.js +23 -0
  313. package/react/components/windowTitleBar/useMaximize.js.map +1 -0
  314. package/react/components/yesNoDialog/timer.js +2 -1
  315. package/react/components/yesNoDialog/timer.js.map +1 -1
  316. package/react/hooks/useDashbar.d.ts.map +1 -1
  317. package/react/hooks/useDashbar.js.map +1 -1
  318. package/react/hooks/useDragRegion.d.ts +27 -0
  319. package/react/hooks/useDragRegion.d.ts.map +1 -0
  320. package/react/hooks/useDragRegion.js +74 -0
  321. package/react/hooks/useDragRegion.js.map +1 -0
  322. package/react/hooks/useInjectedTitleBar.d.ts +3 -0
  323. package/react/hooks/useInjectedTitleBar.d.ts.map +1 -0
  324. package/react/hooks/useInjectedTitleBar.js +365 -0
  325. package/react/hooks/useInjectedTitleBar.js.map +1 -0
  326. package/react/hooks/useNotifications.d.ts +1 -1
  327. package/react/hooks/useToolbar.d.ts +1 -0
  328. package/react/hooks/useToolbar.d.ts.map +1 -1
  329. package/react/hooks/useToolbar.js +13 -3
  330. package/react/hooks/useToolbar.js.map +1 -1
  331. package/typedoc-types.d.ts +9 -0
  332. package/typedoc-types.d.ts.map +1 -0
  333. package/typedoc-types.js +6 -0
  334. package/typedoc-types.js.map +1 -0
  335. package/types.d.ts +5 -11
  336. package/types.d.ts.map +1 -1
  337. package/types.js +2 -0
  338. package/types.js.map +1 -1
  339. package/common/events/PrivateEventManager.d.ts +0 -95
  340. package/common/events/PrivateEventManager.d.ts.map +0 -1
  341. package/common/events/PrivateEventManager.js +0 -295
  342. package/common/events/PrivateEventManager.js.map +0 -1
  343. package/common/events/PrivateFinsembleEvent.d.ts +0 -30
  344. package/common/events/PrivateFinsembleEvent.d.ts.map +0 -1
  345. package/common/events/PrivateFinsembleEvent.js +0 -65
  346. package/common/events/PrivateFinsembleEvent.js.map +0 -1
  347. package/common/redux/createReducer.d.ts +0 -128
  348. package/common/redux/createReducer.d.ts.map +0 -1
  349. package/common/redux/createReducer.js +0 -298
  350. package/common/redux/createReducer.js.map +0 -1
  351. package/common/redux/index.d.ts +0 -3
  352. package/common/redux/index.d.ts.map +0 -1
  353. package/common/redux/index.js +0 -3
  354. package/common/redux/index.js.map +0 -1
  355. package/platform/services/window/Common/Pools/ObjectPool.d.ts +0 -11
  356. package/platform/services/window/Common/Pools/ObjectPool.d.ts.map +0 -1
  357. package/platform/services/window/Common/Pools/ObjectPool.js +0 -43
  358. package/platform/services/window/Common/Pools/ObjectPool.js.map +0 -1
  359. package/platform/services/window/Common/Pools/PoolSingletons.d.ts +0 -10
  360. package/platform/services/window/Common/Pools/PoolSingletons.d.ts.map +0 -1
  361. package/platform/services/window/Common/Pools/PoolSingletons.js +0 -10
  362. package/platform/services/window/Common/Pools/PoolSingletons.js.map +0 -1
  363. package/platform/services/window/Common/Pools/WindowPool.d.ts +0 -7
  364. package/platform/services/window/Common/Pools/WindowPool.d.ts.map +0 -1
  365. package/platform/services/window/Common/Pools/WindowPool.js +0 -16
  366. package/platform/services/window/Common/Pools/WindowPool.js.map +0 -1
  367. package/platform/services/window/Docking/boxMath.d.ts +0 -144
  368. package/platform/services/window/Docking/boxMath.d.ts.map +0 -1
  369. package/platform/services/window/Docking/boxMath.js +0 -511
  370. package/platform/services/window/Docking/boxMath.js.map +0 -1
  371. package/platform/services/window/Docking/constants.d.ts +0 -29
  372. package/platform/services/window/Docking/constants.d.ts.map +0 -1
  373. package/platform/services/window/Docking/constants.js +0 -29
  374. package/platform/services/window/Docking/constants.js.map +0 -1
  375. package/platform/services/window/Docking/dockableBox.d.ts +0 -117
  376. package/platform/services/window/Docking/dockableBox.d.ts.map +0 -1
  377. package/platform/services/window/Docking/dockableBox.js +0 -525
  378. package/platform/services/window/Docking/dockableBox.js.map +0 -1
  379. package/platform/services/window/Docking/dockableGroup.d.ts +0 -252
  380. package/platform/services/window/Docking/dockableGroup.d.ts.map +0 -1
  381. package/platform/services/window/Docking/dockableGroup.js +0 -1054
  382. package/platform/services/window/Docking/dockableGroup.js.map +0 -1
  383. package/platform/services/window/Docking/dockableMonitor.d.ts +0 -99
  384. package/platform/services/window/Docking/dockableMonitor.d.ts.map +0 -1
  385. package/platform/services/window/Docking/dockableMonitor.js +0 -427
  386. package/platform/services/window/Docking/dockableMonitor.js.map +0 -1
  387. package/platform/services/window/Docking/dockableWindow.d.ts +0 -272
  388. package/platform/services/window/Docking/dockableWindow.d.ts.map +0 -1
  389. package/platform/services/window/Docking/dockableWindow.js +0 -1239
  390. package/platform/services/window/Docking/dockableWindow.js.map +0 -1
  391. package/platform/services/window/Docking/dockingCalculator.d.ts +0 -741
  392. package/platform/services/window/Docking/dockingCalculator.d.ts.map +0 -1
  393. package/platform/services/window/Docking/dockingCalculator.js +0 -3438
  394. package/platform/services/window/Docking/dockingCalculator.js.map +0 -1
  395. package/platform/services/window/Docking/dockingMain.d.ts +0 -349
  396. package/platform/services/window/Docking/dockingMain.d.ts.map +0 -1
  397. package/platform/services/window/Docking/dockingMain.js +0 -2541
  398. package/platform/services/window/Docking/dockingMain.js.map +0 -1
  399. package/platform/services/window/Docking/maskBoundsCalculator.d.ts +0 -28
  400. package/platform/services/window/Docking/maskBoundsCalculator.d.ts.map +0 -1
  401. package/platform/services/window/Docking/maskBoundsCalculator.js +0 -67
  402. package/platform/services/window/Docking/maskBoundsCalculator.js.map +0 -1
  403. package/platform/services/window/Docking/monitorUpdateHandler.d.ts +0 -32
  404. package/platform/services/window/Docking/monitorUpdateHandler.d.ts.map +0 -1
  405. package/platform/services/window/Docking/monitorUpdateHandler.js +0 -117
  406. package/platform/services/window/Docking/monitorUpdateHandler.js.map +0 -1
  407. package/platform/services/window/Docking/types.d.ts +0 -334
  408. package/platform/services/window/Docking/types.d.ts.map +0 -1
  409. package/platform/services/window/Docking/types.js +0 -12
  410. package/platform/services/window/Docking/types.js.map +0 -1
  411. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts +0 -90
  412. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts.map +0 -1
  413. package/platform/services/window/MultiWindowFeatures/autoArrange.js +0 -510
  414. package/platform/services/window/MultiWindowFeatures/autoArrange.js.map +0 -1
  415. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts +0 -411
  416. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts.map +0 -1
  417. package/platform/services/window/StackedWindowManager/stackedWindowManager.js +0 -1641
  418. package/platform/services/window/StackedWindowManager/stackedWindowManager.js.map +0 -1
  419. package/platform/services/window/WindowAbstractions/BaseWindow.d.ts +0 -469
  420. package/platform/services/window/WindowAbstractions/BaseWindow.d.ts.map +0 -1
  421. package/platform/services/window/WindowAbstractions/BaseWindow.js +0 -1347
  422. package/platform/services/window/WindowAbstractions/BaseWindow.js.map +0 -1
  423. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts +0 -9
  424. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts.map +0 -1
  425. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js +0 -23
  426. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js.map +0 -1
  427. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts +0 -227
  428. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts.map +0 -1
  429. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js +0 -1168
  430. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js.map +0 -1
  431. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts +0 -121
  432. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts.map +0 -1
  433. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js +0 -591
  434. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js.map +0 -1
  435. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts +0 -194
  436. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts.map +0 -1
  437. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js +0 -680
  438. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js.map +0 -1
  439. package/platform/services/window/windowGroup.d.ts +0 -86
  440. package/platform/services/window/windowGroup.d.ts.map +0 -1
  441. package/platform/services/window/windowGroup.js +0 -323
  442. package/platform/services/window/windowGroup.js.map +0 -1
  443. package/platform/services/workspace/windowStorageManager.d.ts +0 -180
  444. package/platform/services/workspace/windowStorageManager.d.ts.map +0 -1
  445. package/platform/services/workspace/windowStorageManager.js +0 -195
  446. package/platform/services/workspace/windowStorageManager.js.map +0 -1
  447. package/react/assets/icons/question-circle.svg +0 -6
  448. package/react/components/legacyControls/FinsembleHoverDetector.d.ts +0 -23
  449. package/react/components/legacyControls/FinsembleHoverDetector.d.ts.map +0 -1
  450. package/react/components/legacyControls/FinsembleHoverDetector.js +0 -57
  451. package/react/components/legacyControls/FinsembleHoverDetector.js.map +0 -1
  452. package/react/components/sdd/Appearance.helpers.d.ts +0 -2
  453. package/react/components/sdd/Appearance.helpers.d.ts.map +0 -1
  454. package/react/components/sdd/Appearance.helpers.js +0 -2
  455. package/react/components/sdd/Appearance.helpers.js.map +0 -1
  456. package/react/components/shared/linkerUtil.d.ts +0 -4
  457. package/react/components/shared/linkerUtil.d.ts.map +0 -1
  458. package/react/components/shared/linkerUtil.js +0 -10
  459. package/react/components/shared/linkerUtil.js.map +0 -1
  460. package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -31
  461. package/react/components/windowTitleBar/components/center/Tab.d.ts.map +0 -1
  462. package/react/components/windowTitleBar/components/center/Tab.js +0 -58
  463. package/react/components/windowTitleBar/components/center/Tab.js.map +0 -1
  464. package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -138
  465. package/react/components/windowTitleBar/components/center/TabList.d.ts.map +0 -1
  466. package/react/components/windowTitleBar/components/center/TabList.js +0 -614
  467. package/react/components/windowTitleBar/components/center/TabList.js.map +0 -1
  468. package/react/components/windowTitleBar/components/center/TabRegion.d.ts +0 -3
  469. package/react/components/windowTitleBar/components/center/TabRegion.d.ts.map +0 -1
  470. package/react/components/windowTitleBar/components/center/TabRegion.js +0 -13
  471. package/react/components/windowTitleBar/components/center/TabRegion.js.map +0 -1
  472. package/react/components/windowTitleBar/components/left/LinkerButton.d.ts.map +0 -1
  473. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +0 -1
  474. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +0 -85
  475. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts.map +0 -1
  476. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js +0 -172
  477. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +0 -1
  478. package/react/components/windowTitleBar/components/left/LinkerGroups.d.ts.map +0 -1
  479. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +0 -1
  480. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts +0 -50
  481. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts.map +0 -1
  482. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js +0 -120
  483. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +0 -1
  484. package/react/components/windowTitleBar/components/left/ShareButton.d.ts +0 -42
  485. package/react/components/windowTitleBar/components/left/ShareButton.d.ts.map +0 -1
  486. package/react/components/windowTitleBar/components/left/ShareButton.js +0 -82
  487. package/react/components/windowTitleBar/components/left/ShareButton.js.map +0 -1
  488. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts +0 -3
  489. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts.map +0 -1
  490. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js +0 -15
  491. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +0 -1
  492. package/react/components/windowTitleBar/components/right/CloseButton.d.ts.map +0 -1
  493. package/react/components/windowTitleBar/components/right/CloseButton.js +0 -16
  494. package/react/components/windowTitleBar/components/right/CloseButton.js.map +0 -1
  495. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +0 -50
  496. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts.map +0 -1
  497. package/react/components/windowTitleBar/components/right/GroupingButton.js +0 -82
  498. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +0 -1
  499. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +0 -59
  500. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts.map +0 -1
  501. package/react/components/windowTitleBar/components/right/MaximizeButton.js +0 -96
  502. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +0 -1
  503. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +0 -26
  504. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts.map +0 -1
  505. package/react/components/windowTitleBar/components/right/MinimizeButton.js +0 -32
  506. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +0 -1
  507. package/react/components/windowTitleBar/components/windowTitle.d.ts +0 -67
  508. package/react/components/windowTitleBar/components/windowTitle.d.ts.map +0 -1
  509. package/react/components/windowTitleBar/components/windowTitle.js +0 -382
  510. package/react/components/windowTitleBar/components/windowTitle.js.map +0 -1
  511. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +0 -69
  512. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts.map +0 -1
  513. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +0 -610
  514. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +0 -1
  515. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +0 -44
  516. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts.map +0 -1
  517. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js +0 -43
  518. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +0 -1
  519. package/react/components/windowTitleBar/windowTitleBarContext.d.ts +0 -23
  520. package/react/components/windowTitleBar/windowTitleBarContext.d.ts.map +0 -1
  521. package/react/components/windowTitleBar/windowTitleBarContext.js +0 -22
  522. package/react/components/windowTitleBar/windowTitleBarContext.js.map +0 -1
  523. package/react/types/windowTitleBar.d.ts +0 -49
  524. package/react/types/windowTitleBar.d.ts.map +0 -1
  525. package/react/types/windowTitleBar.js +0 -2
  526. package/react/types/windowTitleBar.js.map +0 -1
@@ -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
- * Returns a DockableMonitor by window bounds.
129
- * If there is no overlap due to the window being off-monitor it will return the first monitor in the array
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 getMonitorByBounds: (windowBounds: Bounds) => DockableMonitor;
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.
@@ -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;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAE,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  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
- * Returns a DockableMonitor by window bounds.
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 getMonitorByBounds = (windowBounds) => {
449
- var _b;
450
- const overlaps = [];
451
- for (const monitor of MonitorPoolSingleton.iterator()) {
452
- const overlap = BoxMath.getOverlap(windowBounds, ((_b = monitor.rawMonitor) === null || _b === void 0 ? void 0 : _b.monitorRect) || monitor.availableRect);
453
- overlaps.push({
454
- monitor,
455
- overlap,
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
- // If there is no overlap due to the window being off-monitor it will return the first monitor in the array
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 MonitorPoolSingleton.iterator()[0];
461
- // Gets the monitor with the greatest overlap. The reduce function pulls the proper object with the greats overlap value. We return the monitor property of that object.
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
@@ -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;AAcl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*/
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
- * @examnple
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"}
@@ -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
- * @examnple
71
+ * @example
59
72
  * if(!MyClass.instance) MyClass.instance = singleton("MyClassKey", MyClass);
60
73
  */
61
74
  export const singleton = (key, Ctor, ...args) => {
62
- const SINGLETON_KEY = Symbol.for(`com.finsemble.singleton.${key}`);
63
- const globalSymbols = Object.getOwnPropertySymbols(global);
64
- const singletonExists = globalSymbols.indexOf(SINGLETON_KEY) > -1;
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 global[SINGLETON_KEY];
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 SINGLETON_KEY = Symbol.for(`com.finsemble.singleton.${key}`);
76
- const globalSymbols = Object.getOwnPropertySymbols(global);
77
- const singletonExists = globalSymbols.indexOf(SINGLETON_KEY) > -1;
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 global[SINGLETON_KEY];
94
+ return result;
82
95
  };
83
96
  //# sourceMappingURL=Singleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Singleton.js","sourceRoot":"","sources":["../../../src/common/Singleton.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAI,GAAW,EAAE,IAAiC,EAAE,GAAG,IAAW,EAAK,EAAE;IACjG,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,EAAE;QACrB,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;KAC1C;IACD,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAI,GAAW,EAAE,IAA2B,EAAE,GAAG,IAAW,EAAK,EAAE;IAClG,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,EAAE;QACrB,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;KACtC;IACD,OAAO,MA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,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"}
@@ -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
- UPDATE_PUBSUB: string;
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;IAC3B,aAAa,IAAI;CACjB;AAED,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAE7D,eAAO,MAAM,OAAO;;;;CAKnB,CAAC;AAGF,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,oBAAoB,UAA+E,CAAC;AAEjH,eAAO,MAAM,MAAM;;;CAGlB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GrB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;CAInC,CAAC;AAEF,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAE/E,eAAO,MAAM,yBAAyB,6CAA6C,CAAC;AAEpF,eAAO,MAAM,gBAAgB;;CAE5B,CAAC;AAEF,eAAO,MAAM,WAAW;;;CAGvB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;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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
- UPDATE_PUBSUB: "Finsemble.WorkspaceService.update",
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 = {
@@ -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;QAC7B,MAAM,EAAE,eAAe;QACvB,YAAY,EAAE,eAAe;QAC7B,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,eAAe;QAC7B,eAAe,EAAE,kBAAkB;KACnC,CAAC;IACF,2CAA2C;IAC3C,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,sBAAsB,GAAG,0BAA0B,CAAC;AACjE,MAAM,CAAN,IAAY,WAMX;AAND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P,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;QAC/E,aAAa,EAAE;YACd,wBAAwB;YACxB,yBAAyB;YACzB,uGAAuG;YACvG,QAAQ;SACR;KACD;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
+ {"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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C,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,5 +1,5 @@
1
1
  import { ResponderMessage } from "../../clients/routerClient";
2
- declare type FinsembleEventParams = {
2
+ export declare type FinsembleEventParams = {
3
3
  source: string;
4
4
  sourceType: string;
5
5
  event: string;
@@ -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,aAAK,oBAAoB,GAAG;IAC3B,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;IAE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,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