@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
@@ -1,295 +0,0 @@
1
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
- if (kind === "m") throw new TypeError("Private method is not writable");
3
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
- };
7
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
- };
12
- var _EventManager_unsubscribeWindowClosings;
13
- import { RouterClient } from "../../clients/routerClient";
14
- import { Logger } from "../../clients/logger";
15
- import PublicEventManager from "./PublicEventManager";
16
- import FinsembleEvent from "./PrivateFinsembleEvent";
17
- import { sleep } from "../util";
18
- import { LAUNCHER_SERVICE } from "../../common/constants";
19
- /**
20
- * This private Event Manager distributes events to remove event handlers (using the router).
21
- * It is used within the windowService and workspaceService. Clients use the PublicEventManager
22
- * in order to register and unregister handlers.
23
- *
24
- * The primary use is for FinsembleWindow events. FinsembleWindow is derived from PublicEventManager.
25
- *
26
- * The windowService will create multiple PrivateEventManagers, generally one per live window. Each
27
- * PrivateEventManager maintains its own private store of remote event handlers. Note that event handlers
28
- * may exist across multiple windows. For instance, a window called "Bobby" may want to know when another
29
- * window called "Gary" closes. When Bobby registers an event handler ("tell me when Gary closes") then
30
- * Gary's PrivateEventManager will gain a handler, which is associated with Bobby.
31
- *
32
- * In the above scenario, if Bobby (client) closes then Gary's PrivateEventManager will remove all references
33
- * to remote event handlers. But, if Gary closes then Bobby's references will become orphans - never triggered,
34
- * which is probably fine for most application logic.
35
- *
36
- * For more information on the distrubted event architecture - see https://miro.com/app/board/o9J_kwhN9zo=/
37
- *
38
- * Note, this class can also be used as a *local* event manager with the functions.
39
- */
40
- class EventManager extends PublicEventManager {
41
- /**
42
- *Creates an instance of EventManager.
43
- * @param {*} params
44
- * @memberof EventManager
45
- */
46
- constructor(params) {
47
- super(params);
48
- /**
49
- * Listens for [graceful] window closings and then removes event listeners associated with the closed window
50
- */
51
- _EventManager_unsubscribeWindowClosings.set(this, void 0);
52
- this.eventList = [];
53
- this.eventInternalHandlerMap = {};
54
- this.remoteListenerEventMap = {};
55
- this.windowToGuidsMap = {};
56
- this.waitList = {};
57
- this.unsubscribes = [];
58
- // listen for remote events registering
59
- this.unsubscribes.push(RouterClient.addListener(`Finsemble.RegisterInterruptibleEvent.${this.name}`, (err, response) => {
60
- this.registerRemoteEventHandler(response.data.event, response.data.listenerGuid, response.data.windowName);
61
- }));
62
- //listen for remote events unregistering
63
- this.unsubscribes.push(RouterClient.addListener(`Finsemble.UnregisterInterruptibleEvent.${this.name}`, (err, response) => {
64
- this.unregisterRemoteEventHandler(response.data.event, response.data.listenerGuid, response.data.windowName);
65
- }));
66
- /**
67
- * Listen on Finsemble's global window closed pubsub. When a window is closed all local listeners are removed.
68
- */
69
- __classPrivateFieldSet(this, _EventManager_unsubscribeWindowClosings, RouterClient.addListener(LAUNCHER_SERVICE.WINDOW_CLOSED, (err, response) => {
70
- if (err) {
71
- Logger.system.error(`PrivateEventManager: Error listening for ${LAUNCHER_SERVICE.WINDOW_CLOSED}: ${err}`);
72
- }
73
- else {
74
- const { name } = response.data;
75
- this.removeWindow(name);
76
- }
77
- }), "f");
78
- }
79
- /**
80
- * Removes all listeners associated with a window [that has closed]
81
- */
82
- removeWindow(listeningWindow) {
83
- var _a;
84
- ((_a = this.windowToGuidsMap[listeningWindow]) !== null && _a !== void 0 ? _a : []).forEach((listenerGuid) => {
85
- this.removeGuid(listenerGuid);
86
- });
87
- delete this.windowToGuidsMap[listeningWindow];
88
- }
89
- /**
90
- * Removes all listeners for a specific remote guid
91
- */
92
- removeGuid(listenerGuid) {
93
- const events = Object.keys(this.remoteListenerEventMap);
94
- events.forEach((event) => {
95
- this.remoteListenerEventMap[event] = this.remoteListenerEventMap[event].filter((oldGuid) => oldGuid !== listenerGuid);
96
- });
97
- }
98
- /**
99
- * Adds an individual remote listener (listenerGuid+event) to this event manager
100
- */
101
- registerRemoteEventHandler(event, listenerGuid, listenerWindow) {
102
- var _a;
103
- if (!this.remoteListenerEventMap[event])
104
- this.remoteListenerEventMap[event] = [];
105
- this.remoteListenerEventMap[event].push(listenerGuid);
106
- this.windowToGuidsMap[listenerWindow] = [listenerGuid].concat((_a = this.windowToGuidsMap[listenerWindow]) !== null && _a !== void 0 ? _a : []);
107
- }
108
- /**
109
- * Removes an individual remote listener (listenerGuid+event) from this event manager
110
- */
111
- unregisterRemoteEventHandler(event, listenerGuid, listenerWindow) {
112
- var _a;
113
- if (this.remoteListenerEventMap[event]) {
114
- // Remove the remote listener
115
- this.remoteListenerEventMap[event] = this.remoteListenerEventMap[event].filter((g) => g !== listenerGuid);
116
- // Remove from the window map. Delete the window map if there are no more listeners.
117
- this.windowToGuidsMap[listenerWindow] = ((_a = this.windowToGuidsMap[listenerWindow]) !== null && _a !== void 0 ? _a : []).filter((g) => g !== listenerGuid);
118
- if (this.windowToGuidsMap[listenerWindow].length === 0)
119
- delete this.windowToGuidsMap[listenerWindow];
120
- }
121
- else if (this.windowToGuidsMap[listenerWindow]) {
122
- // if window is still open
123
- // Straggling unregister requests may trickle in after a window is closed, but if the window is still open then something has probably gone wrong.
124
- Logger.system.warn(`PrivateEventManager.unregisterListener() attempt to remove unregistered event "${event}" for window ${listenerWindow}`);
125
- }
126
- }
127
- /**
128
- * We must wait for a remote transit if delayed
129
- *
130
- * @memberof EventManager
131
- */
132
- awaitRemoteDelayer(eventGuid, listenerGuid) {
133
- const awaitRemoteDelayerPromiseResolver = (resolve, reject) => {
134
- const listener = (err, response) => {
135
- RouterClient.removeListener(`Finsemble.Listener.Done.${eventGuid}.${listenerGuid}`, listener);
136
- if (response.data.canceled === true) {
137
- reject("canceled");
138
- }
139
- else {
140
- resolve(response.data.data);
141
- }
142
- };
143
- this.waitList[eventGuid] = listener;
144
- RouterClient.addListener(`Finsemble.Listener.Done.${eventGuid}.${listenerGuid}`, listener);
145
- };
146
- return new Promise(awaitRemoteDelayerPromiseResolver);
147
- }
148
- /**
149
- * Sends a message to a remote listener (PublicEventManager) which will then emit a local Finsemble event.
150
- *
151
- * Called by this.trigger().
152
- */
153
- async queryRemoteListener(event, listenerGuid, data, options) {
154
- // This needs to get added first, otherwise the event can be done before the listener is created; only do this for delayable events.
155
- const eventGuid = `${this.name}_private_${Date.now()}_${Math.random()}`;
156
- const eventData = {
157
- event,
158
- guid: eventGuid,
159
- data,
160
- };
161
- const delayListener = this.awaitRemoteDelayer(eventGuid, listenerGuid);
162
- // 1 second to respond to initial query - if this doesn't happen, the window that has the listener is likely crashed or uncleanly closed
163
- // We send the query without a timeout because there's a race condition. This interrupt may be delivered just as the
164
- // app is shutting down, in which case there will be no responder available to process this event.
165
- const { err, response } = await Promise.race([
166
- RouterClient.query(`Finsemble.Interrupt.${listenerGuid}`, eventData, { timeout: 0, logWhenNoResponder: false }, () => { }),
167
- sleep(options.initialQueryTimeout, true),
168
- ]).catch(() => {
169
- // sleep throws an exception
170
- RouterClient.removeListener(`Finsemble.Listener.Done.${eventGuid}.${listenerGuid}`, this.waitList[eventGuid]);
171
- throw "eventHandler failed initial response";
172
- });
173
- if (err || !response.data)
174
- return;
175
- let needToRemoveListener = true;
176
- if (response.data.wait === true) {
177
- try {
178
- needToRemoveListener = false;
179
- return await delayListener;
180
- }
181
- catch (e) {
182
- needToRemoveListener = true;
183
- }
184
- }
185
- if (response.data.delayed === true) {
186
- try {
187
- needToRemoveListener = false;
188
- // must respond within timeout seconds
189
- return await Promise.race([delayListener, sleep(options.timeout, true)]);
190
- }
191
- catch (e) {
192
- // sleep throws an exception
193
- if (e !== "timeout expired") {
194
- throw "event was canceled";
195
- }
196
- else {
197
- needToRemoveListener = true;
198
- }
199
- }
200
- }
201
- if (needToRemoveListener) {
202
- RouterClient.removeListener(`Finsemble.Listener.Done.${eventGuid}.${listenerGuid}`, this.waitList[eventGuid]);
203
- }
204
- if (response.data.canceled === true) {
205
- throw "event was canceled";
206
- }
207
- return response.data.data;
208
- }
209
- /**
210
- * Forwards an event to all remote listeners and then waits for them to respond.
211
- * They may optionally interrupt the event by sending a "cancel" which results in FinsembleEvent throwing
212
- * an exception. Any individual exception will cause this function to also throw an exception, thus
213
- * interrupting the event (which occurs upstream, e.g. preventing a window from closing).
214
- */
215
- async trigger(event, data = null, options = { initialQueryTimeout: 1000, timeout: 10000 }) {
216
- Logger.verbose(`Triggering ${event} for ${this.name}`, data);
217
- const listenerList = [];
218
- // If a tree falls in the forest and nobody is listening, does it matter?
219
- if (this.remoteListenerEventMap[event]) {
220
- // send a query all remote listeners
221
- for (let listenerGuid of this.remoteListenerEventMap[event]) {
222
- listenerList.push(this.queryRemoteListener(event, listenerGuid, data, options));
223
- }
224
- }
225
- // Send the event to each registered handler
226
- const handlers = this.handlers.filter((entry) => entry.event === event);
227
- handlers.forEach((entry) => {
228
- const finsembleEvent = new FinsembleEvent({
229
- source: this.name,
230
- sourceType: this.sourceType,
231
- handler: entry.handler,
232
- event,
233
- data,
234
- guid: entry.listenerGuid,
235
- });
236
- listenerList.push(finsembleEvent.complete);
237
- });
238
- try {
239
- return await Promise.all(listenerList);
240
- }
241
- catch (err) {
242
- if (err === "eventHandler failed initial response") {
243
- console.debug(`No response for interupt on event ${event}. Window is probably already closed.`);
244
- }
245
- else {
246
- throw "event was canceled";
247
- }
248
- }
249
- }
250
- /**
251
- * Adds a *local* event listener.
252
- */
253
- addEventListener(event, handler) {
254
- Logger.system.debug("PrivateEventManager.addEventListener:", event);
255
- const listenerGuid = `${this.name}_public_${Date.now()}_${Math.random()}`;
256
- this.handlers.push({
257
- event,
258
- handler,
259
- listenerGuid,
260
- });
261
- return () => {
262
- this.removeEventListener(event, handler);
263
- };
264
- }
265
- /**
266
- * Removes a *local* event listener.
267
- */
268
- removeEventListener(event, handler) {
269
- Logger.system.debug("PrivateEventManager.removeEventListener:", event);
270
- // Find the first entry that matches - noting that there could be multiple entries for the same handler
271
- // and this legacy interface provides no disambiguation via listenerGuid
272
- const index = this.handlers.findIndex((entry) => entry.event === event && entry.handler === handler);
273
- if (index == -1) {
274
- Logger.system.warn(`PrivateEventManager.removeEventListener() attempt to remove unregistered event "${event}"`);
275
- return;
276
- }
277
- this.handlers.splice(index, 1);
278
- }
279
- /**
280
- * Removes all router listeners and subscriptions. This is called when the windowService terminates this
281
- * PrivateEventManager (e.g. because the window has closed).
282
- */
283
- cleanup() {
284
- if (__classPrivateFieldGet(this, _EventManager_unsubscribeWindowClosings, "f"))
285
- __classPrivateFieldGet(this, _EventManager_unsubscribeWindowClosings, "f").call(this);
286
- // Close the router listeners that were opened in the constructor
287
- this.unsubscribes.forEach((unsubscribe) => {
288
- unsubscribe();
289
- });
290
- this.unsubscribes = [];
291
- }
292
- }
293
- _EventManager_unsubscribeWindowClosings = new WeakMap();
294
- export default EventManager;
295
- //# sourceMappingURL=PrivateEventManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrivateEventManager.js","sourceRoot":"","sources":["../../../../src/common/events/PrivateEventManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAA6B,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,kBAAoC,MAAM,sBAAsB,CAAC;AACxE,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAO1D;;;;;;;;;;;;;;;;;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AAO,CAAC,CAAC,WAAW,EAAE,EAAE;YACzC,WAAW,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACxB,CAAC;CACD;;AAED,eAAe,YAAY,CAAC"}
@@ -1,30 +0,0 @@
1
- declare class PrivateFinsembleEvent {
2
- private event;
3
- private source;
4
- private sourceType;
5
- private handler;
6
- private allowDelay;
7
- private delayed;
8
- private allowCancel;
9
- private canceled;
10
- private completed;
11
- private guid;
12
- data: any;
13
- complete: Promise<void>;
14
- private eventComplete;
15
- private eventCanceled;
16
- constructor(params: {
17
- event: string;
18
- source: string;
19
- sourceType: string;
20
- data: any;
21
- guid: string;
22
- handler: Function;
23
- });
24
- private internalHandler;
25
- cancel(): void;
26
- wait(): void;
27
- done(data?: any): void;
28
- }
29
- export default PrivateFinsembleEvent;
30
- //# sourceMappingURL=PrivateFinsembleEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrivateFinsembleEvent.d.ts","sourceRoot":"","sources":["../../../../src/common/events/PrivateFinsembleEvent.ts"],"names":[],"mappings":"AAEA,cAAM,qBAAqB;IAC1B,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,MAAM,CAAS;IAEvB,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,SAAS,CAAkB;IAEnC,OAAO,CAAC,IAAI,CAAS;IAEd,IAAI,EAAE,GAAG,CAAC;IAEV,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/B,OAAO,CAAC,aAAa,CAAuB;IAE5C,OAAO,CAAC,aAAa,CAAuB;gBAEhC,MAAM,EAAE;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,GAAG,CAAC;QACV,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,QAAQ,CAAC;KAClB;YA2Ba,eAAe;IAO7B,MAAM,IAAI,IAAI;IAOd,IAAI,IAAI,IAAI;IAQZ,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI;CAYtB;AAED,eAAe,qBAAqB,CAAC"}
@@ -1,65 +0,0 @@
1
- import * as Constants from "../constants";
2
- class PrivateFinsembleEvent {
3
- constructor(params) {
4
- this.allowDelay = false;
5
- this.delayed = false;
6
- this.allowCancel = false;
7
- this.canceled = false;
8
- this.completed = false;
9
- this.event = params.event;
10
- this.source = params.source;
11
- this.sourceType = params.sourceType;
12
- this.data = params.data;
13
- this.guid = params.guid;
14
- if (Constants[this.sourceType.toUpperCase()] &&
15
- Constants[this.sourceType.toUpperCase()].DELAYABLE_EVENTS.includes(this.event)) {
16
- this.allowDelay = true;
17
- }
18
- if (Constants[this.sourceType.toUpperCase()] &&
19
- Constants[this.sourceType.toUpperCase()].CANCELABLE_EVENTS.includes(this.event)) {
20
- this.allowCancel = true;
21
- }
22
- this.handler = params.handler;
23
- this.complete = new Promise((resolve, reject) => {
24
- this.eventCanceled = reject;
25
- this.eventComplete = resolve;
26
- });
27
- this.internalHandler();
28
- }
29
- async internalHandler() {
30
- if (this.handler)
31
- await this.handler(this);
32
- if (!(this.delayed || this.canceled || this.completed)) {
33
- this.done();
34
- }
35
- }
36
- cancel() {
37
- if (this.allowCancel) {
38
- this.canceled = true;
39
- this.done();
40
- }
41
- }
42
- wait() {
43
- if (this.allowDelay) {
44
- this.delayed = true;
45
- }
46
- else {
47
- this.done();
48
- }
49
- }
50
- done(data) {
51
- this.completed = true;
52
- if (this.canceled) {
53
- if (!!this.eventCanceled) {
54
- this.eventCanceled();
55
- }
56
- }
57
- else {
58
- if (!!this.eventComplete) {
59
- this.eventComplete(data);
60
- }
61
- }
62
- }
63
- }
64
- export default PrivateFinsembleEvent;
65
- //# sourceMappingURL=PrivateFinsembleEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrivateFinsembleEvent.js","sourceRoot":"","sources":["../../../../src/common/events/PrivateFinsembleEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,MAAM,qBAAqB;IA6B1B,YAAY,MAOX;QA3BO,eAAU,GAAY,KAAK,CAAC;QAE5B,YAAO,GAAY,KAAK,CAAC;QAEzB,gBAAW,GAAY,KAAK,CAAC;QAE7B,aAAQ,GAAY,KAAK,CAAC;QAE1B,cAAS,GAAY,KAAK,CAAC;QAoBlC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAExB,IACC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;YACxC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAC7E;YACD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SACvB;QACD,IACC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;YACxC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAC9E;YACD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;SACxB;QACD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,O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cmd, Loop } from "redux-loop";
4
- /**
5
- * Use `unImmer()` to safely pass objects from reducers to effects.
6
- *
7
- * @param obj Any object
8
- * @returns any
9
- */
10
- export declare const unImmer: (obj: any) => any;
11
- declare type DeepReadonly<T> = T extends (infer R)[] ? DeepReadonlyArray<R> : T extends Function ? T : T extends object ? DeepReadonlyObject<T> : T;
12
- interface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> {
13
- }
14
- declare type DeepReadonlyObject<T> = {
15
- readonly [P in keyof T]: DeepReadonly<T[P]>;
16
- };
17
- export interface AnyAction extends Action {
18
- [extraProps: string]: any;
19
- }
20
- export interface TypedActionCreator<Type extends string> {
21
- (...args: any[]): Action<Type>;
22
- type: Type;
23
- }
24
- declare type MyCaseReducer<S = any, A extends Action = AnyAction> = (state: DeepReadonly<S>, action: A) => DeepReadonly<S> | Loop<DeepReadonly<S>>;
25
- declare type LoopCaseReducer<S = any, A extends Action = AnyAction> = (state: Draft<S>, action: A, cmd: CMD) => void | S;
26
- export interface CMD {
27
- run: typeof Cmd.run;
28
- action: typeof Cmd.action;
29
- list: typeof Cmd.list;
30
- map: typeof Cmd.map;
31
- setTimeout: typeof Cmd.setTimeout;
32
- setInterval: typeof Cmd.setInterval;
33
- clearTimeout: typeof Cmd.clearTimeout;
34
- clearInterval: typeof Cmd.clearInterval;
35
- }
36
- export interface ActionReducerMapBuilder<State> {
37
- addNoImmerCase<ActionCreator extends TypedActionCreator<string>>(actionCreator: ActionCreator, reducer: MyCaseReducer<State, ReturnType<ActionCreator>>): ActionReducerMapBuilder<State>;
38
- addNoImmerCase<Type extends string, A extends Action<Type>>(type: Type, reducer: MyCaseReducer<State, A>): ActionReducerMapBuilder<State>;
39
- addCase<ActionCreator extends TypedActionCreator<string>>(actionCreator: ActionCreator, reducer: LoopCaseReducer<State, ReturnType<ActionCreator>>): ActionReducerMapBuilder<State>;
40
- addCase<Type extends string, A extends Action<Type>>(type: Type, reducer: LoopCaseReducer<State, A>): ActionReducerMapBuilder<State>;
41
- }
42
- declare type CaseReducerValue<State> = {
43
- reducer?: MyCaseReducer<State>;
44
- loopReducer?: LoopCaseReducer<State>;
45
- };
46
- declare type CaseReducers<State> = {
47
- [key: string]: CaseReducerValue<State>[];
48
- };
49
- /**
50
- * A slimmed down version of RTK's builder. See comments below in createReducer() for more information.
51
- */
52
- export declare function executeReducerBuilderCallback<S>(builderCallback: (builder: ActionReducerMapBuilder<S>) => void): CaseReducers<S>;
53
- export declare type Reducer<S = any, A extends Action = AnyAction> = (state: S | undefined, action: A) => S;
54
- export declare type CreateReducerHook = <S>(previousState: S, nextState: S, action: AnyAction) => void;
55
- /**
56
- * This requires that redux-loops middleware has been installed in the store.
57
- *
58
- * This is a forked version of the custom createReducer() from React-Toolkit (RTK).
59
- * This version adds support for redux-loops by passing a `cmd` as an optional third parameter in the reducer call.
60
- * That `cmd` is a proxy for redux-loop's "Cmd" and can be use in the same way.
61
- *
62
- * Unlike RTK's createReducer, this version does allow you to add multiple reducer cases for the same dispatch. Be
63
- * careful not to make assumptions about which reducer will run first! This is best used when there are no dependencies.
64
- *
65
- * The following RTK functionality has been removed: addMatcher(), addDefaultCase(), "Map Object" notation
66
- *
67
- * Direct state mutation via return values is still supported but a special builder function `addNoImmerCase`
68
- * is better suited for those situations because it enforces read only state. This case will also not send a redux-loop
69
- * cmd as a third parameter because you can use redux-loops the normal way.
70
- *
71
- * Example: Using redux-loop
72
- * ```
73
- * builder.addCase(myAction, (state, action: PayloadAction<ClientAdded>, cmd) => {
74
- * state.blah = action.payload.blah; // Do normal reducer stuff
75
- *
76
- * // Create a loop, see redux-loop documentation
77
- * cmd.run(getLinkerState, {
78
- * args : [windowName],
79
- * successActionCreator : actions.initializeWindow
80
- * })
81
- * })
82
- * ```
83
- *
84
- * Use `Cmd.getState`, `Cmd.dispatch` or `Cmd.none` by importing them from redux-loop. There aren't equivalents for cmd because
85
- * redux-loop uses the "unique symbol" type which cannot be copied (or so it seems).
86
- *
87
- * Example: Using Cmd.getState
88
- * ```
89
- * cmd.run(getLinkerState, { args: [Cmd.getState] })
90
- * ```
91
- *
92
- * Example: using addNoImmerCase
93
- * ```
94
- * builder.addNoImmerCase(myAction, (state, action: PayloadAction<ClientAdded>) => {
95
- * const newState = produce(state, (draft) => {
96
- * draft.blah=action.payload.blah; // Good!
97
- * state.blah=action.payload.blah; // Typescript error, you can't modify state!
98
- * });
99
- *
100
- * // Use redux-loop the old fashioned way
101
- * return loop(
102
- * newState,
103
- * Cmd.action(actions.dummy("blah"))
104
- * )
105
- * });
106
- *
107
- * ```
108
- *
109
- * Internals:
110
- *
111
- * Like RTK, the reducer cases are reduced to single nextState and returned to redux. To extract the loops
112
- * we use the CmdProxy to temporarily store the loop commands. They are compiled into a single `Cmd.list`
113
- * at the very end of the dispatch cycle. So in effect, redux is always receiving a loop from this reducer
114
- * rather than a state. This will therefore not work correctly if redux-loops middleware is not installed!
115
- */
116
- export declare function createReducer<S>(initialState: S, mapOrBuilderCallback: (builder: ActionReducerMapBuilder<S>) => void, hook?: CreateReducerHook): Reducer<S>;
117
- /**
118
- * Use this instead of console.log() when inside of reducers. Since addCase uses
119
- * immer under the covers, console.log will print out the entire immer proxy object which is ugly
120
- */
121
- export declare const log: (label: any, value: any) => void;
122
- /**
123
- * Predicate function for comparing an actionCreator to a raw action
124
- * Example: `addMatcherCase(is(action.joinChannels), ...`
125
- */
126
- export declare const is: (actionCreator: any) => (action: AnyAction) => boolean;
127
- export {};
128
- //# sourceMappingURL=createReducer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createReducer.d.ts","sourceRoot":"","sources":["../../../../src/common/redux/createReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAW,KAAK,EAAwB,MAAM,OAAO,CAAC;AAC7D,OAAO,EAEN,GAAG,EACH,IAAI,EASJ,MAAM,YAAY,CAAC;AAEpB;;;;;GAKG;AACH,eAAO,MAAM,OAAO,QAA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