@finsemble/finsemble-ui 8.3.0 → 8.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (548) 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.d.ts.map +1 -1
  5. package/clients/Interop/FinsembleDesktopAgent.js +7 -10
  6. package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
  7. package/clients/Startup/FSBLDesktop.d.ts +2 -8
  8. package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
  9. package/clients/Startup/FSBLDesktop.js +2 -4
  10. package/clients/Startup/FSBLDesktop.js.map +1 -1
  11. package/clients/Startup/unhandledErrors.d.ts.map +1 -1
  12. package/clients/Startup/unhandledErrors.js +6 -4
  13. package/clients/Startup/unhandledErrors.js.map +1 -1
  14. package/clients/Startup/windowStartup.d.ts.map +1 -1
  15. package/clients/Startup/windowStartup.js +125 -112
  16. package/clients/Startup/windowStartup.js.map +1 -1
  17. package/clients/StoreModel.d.ts +8 -8
  18. package/clients/StoreModel.js +8 -8
  19. package/clients/appsClient.d.ts +429 -0
  20. package/clients/appsClient.d.ts.map +1 -0
  21. package/clients/appsClient.js +649 -0
  22. package/clients/appsClient.js.map +1 -0
  23. package/clients/authenticationClient.d.ts +29 -27
  24. package/clients/authenticationClient.d.ts.map +1 -1
  25. package/clients/authenticationClient.js +11 -15
  26. package/clients/authenticationClient.js.map +1 -1
  27. package/clients/configClient.d.ts +134 -70
  28. package/clients/configClient.d.ts.map +1 -1
  29. package/clients/configClient.js +129 -112
  30. package/clients/configClient.js.map +1 -1
  31. package/clients/controller/DialogManagerClientController.d.ts +78 -0
  32. package/clients/controller/DialogManagerClientController.d.ts.map +1 -0
  33. package/clients/controller/DialogManagerClientController.js +213 -0
  34. package/clients/controller/DialogManagerClientController.js.map +1 -0
  35. package/clients/dialogManagerClient.d.ts +1 -75
  36. package/clients/dialogManagerClient.d.ts.map +1 -1
  37. package/clients/dialogManagerClient.js +1 -208
  38. package/clients/dialogManagerClient.js.map +1 -1
  39. package/clients/distributedStoreClient.d.ts +1 -0
  40. package/clients/distributedStoreClient.d.ts.map +1 -1
  41. package/clients/distributedStoreClient.js +1 -0
  42. package/clients/distributedStoreClient.js.map +1 -1
  43. package/clients/hotkeyClient.d.ts +18 -9
  44. package/clients/hotkeyClient.d.ts.map +1 -1
  45. package/clients/hotkeyClient.js +30 -14
  46. package/clients/hotkeyClient.js.map +1 -1
  47. package/clients/index.d.ts +2 -0
  48. package/clients/index.d.ts.map +1 -1
  49. package/clients/index.js +2 -0
  50. package/clients/index.js.map +1 -1
  51. package/clients/launcherClient.d.ts +50 -209
  52. package/clients/launcherClient.d.ts.map +1 -1
  53. package/clients/launcherClient.js +35 -422
  54. package/clients/launcherClient.js.map +1 -1
  55. package/clients/logger.d.ts.map +1 -1
  56. package/clients/logger.js +43 -41
  57. package/clients/logger.js.map +1 -1
  58. package/clients/notificationClient.d.ts +15 -8
  59. package/clients/notificationClient.d.ts.map +1 -1
  60. package/clients/notificationClient.js +15 -8
  61. package/clients/notificationClient.js.map +1 -1
  62. package/clients/routerClient.d.ts +25 -21
  63. package/clients/routerClient.d.ts.map +1 -1
  64. package/clients/routerClient.js +24 -20
  65. package/clients/routerClient.js.map +1 -1
  66. package/clients/searchClient.d.ts +2 -2
  67. package/clients/searchClient.js +2 -2
  68. package/clients/storageClient.d.ts +8 -5
  69. package/clients/storageClient.d.ts.map +1 -1
  70. package/clients/storageClient.js +7 -5
  71. package/clients/storageClient.js.map +1 -1
  72. package/clients/windowClient.d.ts +160 -79
  73. package/clients/windowClient.d.ts.map +1 -1
  74. package/clients/windowClient.js +244 -138
  75. package/clients/windowClient.js.map +1 -1
  76. package/clients/workspaceClient.d.ts +19 -14
  77. package/clients/workspaceClient.d.ts.map +1 -1
  78. package/clients/workspaceClient.js +15 -9
  79. package/clients/workspaceClient.js.map +1 -1
  80. package/common/Desktop.d.ts +9 -50
  81. package/common/Desktop.d.ts.map +1 -1
  82. package/common/Desktop.js +11 -64
  83. package/common/Desktop.js.map +1 -1
  84. package/common/FinsembleWindow.d.ts +4 -107
  85. package/common/FinsembleWindow.d.ts.map +1 -1
  86. package/common/FinsembleWindow.js +21 -342
  87. package/common/FinsembleWindow.js.map +1 -1
  88. package/common/Monitors.d.ts +30 -18
  89. package/common/Monitors.d.ts.map +1 -1
  90. package/common/Monitors.js +45 -80
  91. package/common/Monitors.js.map +1 -1
  92. package/common/Singleton.d.ts +7 -1
  93. package/common/Singleton.d.ts.map +1 -1
  94. package/common/Singleton.js +24 -11
  95. package/common/Singleton.js.map +1 -1
  96. package/common/constants.d.ts +3 -9
  97. package/common/constants.d.ts.map +1 -1
  98. package/common/constants.js +3 -14
  99. package/common/constants.js.map +1 -1
  100. package/common/events/FinsembleEvent.d.ts +1 -1
  101. package/common/events/FinsembleEvent.d.ts.map +1 -1
  102. package/common/redux/getRemoteStore.d.ts +53 -0
  103. package/common/redux/getRemoteStore.d.ts.map +1 -0
  104. package/common/redux/getRemoteStore.js +50 -0
  105. package/common/redux/getRemoteStore.js.map +1 -0
  106. package/common/redux/remoteReduxEnhancer.d.ts +7 -7
  107. package/common/redux/remoteReduxEnhancer.d.ts.map +1 -1
  108. package/common/redux/remoteReduxEnhancer.js +35 -20
  109. package/common/redux/remoteReduxEnhancer.js.map +1 -1
  110. package/common/redux/types.d.ts +14 -1
  111. package/common/redux/types.d.ts.map +1 -1
  112. package/common/systemManagerClient.d.ts +11 -5
  113. package/common/systemManagerClient.d.ts.map +1 -1
  114. package/common/systemManagerClient.js +25 -8
  115. package/common/systemManagerClient.js.map +1 -1
  116. package/common/util.d.ts +1 -7
  117. package/common/util.d.ts.map +1 -1
  118. package/common/util.js +1 -14
  119. package/common/util.js.map +1 -1
  120. package/deprecated/deprecatedFunctions.d.ts +1 -1
  121. package/deprecated/deprecatedFunctions.d.ts.map +1 -1
  122. package/deprecated/deprecatedFunctions.js +3 -4
  123. package/deprecated/deprecatedFunctions.js.map +1 -1
  124. package/deprecated/deprecatedlauncherClient.d.ts +1 -1
  125. package/deprecated/deprecatedlauncherClient.d.ts.map +1 -1
  126. package/deprecated/deprecatedlauncherClient.js.map +1 -1
  127. package/deprecated/dragAndDropClient.d.ts +3 -3
  128. package/deprecated/dragAndDropClient.d.ts.map +1 -1
  129. package/deprecated/dragAndDropClient.js +14 -4
  130. package/deprecated/dragAndDropClient.js.map +1 -1
  131. package/deprecated/linkerClient.d.ts +1 -1
  132. package/deprecated/linkerClient.d.ts.map +1 -1
  133. package/main.d.ts +277 -171
  134. package/main.d.ts.map +1 -1
  135. package/main.js +3 -1
  136. package/main.js.map +1 -1
  137. package/package.json +3 -3
  138. package/platform/services/Interop/types.d.ts +8 -1
  139. package/platform/services/Interop/types.d.ts.map +1 -1
  140. package/platform/services/Interop/types.js.map +1 -1
  141. package/platform/services/router/types.d.ts +5 -6
  142. package/platform/services/router/types.d.ts.map +1 -1
  143. package/platform/services/systemManager/_constants.d.ts +1 -0
  144. package/platform/services/systemManager/_constants.d.ts.map +1 -1
  145. package/platform/services/systemManager/_constants.js +2 -0
  146. package/platform/services/systemManager/_constants.js.map +1 -1
  147. package/platform/services/systemManager/types.d.ts +1 -1
  148. package/platform/services/systemManager/types.d.ts.map +1 -1
  149. package/platform/services/systemManager/types.js.map +1 -1
  150. package/platform/services/window/modules/actions.d.ts +63 -0
  151. package/platform/services/window/modules/actions.d.ts.map +1 -0
  152. package/platform/services/window/modules/actions.js +58 -0
  153. package/platform/services/window/modules/actions.js.map +1 -0
  154. package/platform/services/window/types.d.ts +257 -50
  155. package/platform/services/window/types.d.ts.map +1 -1
  156. package/platform/services/workspace/types.d.ts +4 -3
  157. package/platform/services/workspace/types.d.ts.map +1 -1
  158. package/react/assets/css/core/icons.css +0 -5
  159. package/react/assets/css/fonts/icons-reference.html +1 -1
  160. package/react/assets/css/processMonitor.css +9 -4
  161. package/react/assets/css/windowTitleBar.css +100 -284
  162. package/react/assets/icons/chevron-down.svg +1 -0
  163. package/react/assets/icons/chevron-up.svg +1 -0
  164. package/react/components/common/ButtonRow.d.ts.map +1 -1
  165. package/react/components/common/ButtonRow.js +4 -9
  166. package/react/components/common/ButtonRow.js.map +1 -1
  167. package/react/components/common/ContextMenu.d.ts.map +1 -1
  168. package/react/components/common/ContextMenu.js +2 -10
  169. package/react/components/common/ContextMenu.js.map +1 -1
  170. package/react/components/common/DropdownButton.d.ts.map +1 -1
  171. package/react/components/common/DropdownButton.js +11 -24
  172. package/react/components/common/DropdownButton.js.map +1 -1
  173. package/react/components/common/FinsembleIcon.d.ts +1 -1
  174. package/react/components/common/FinsembleIcon.d.ts.map +1 -1
  175. package/react/components/common/FinsembleIcon.js +6 -4
  176. package/react/components/common/FinsembleIcon.js.map +1 -1
  177. package/react/components/common/css/accordion.css +9 -21
  178. package/react/components/common/css/application-edit-page.css +0 -4
  179. package/react/components/common/css/selector.css +3 -1
  180. package/react/components/downloadManager/DownloadManager.d.ts +1 -1
  181. package/react/components/downloadManager/DownloadManager.d.ts.map +1 -1
  182. package/react/components/downloadManager/DownloadManager.js +2 -4
  183. package/react/components/downloadManager/DownloadManager.js.map +1 -1
  184. package/react/components/fdc3Resolver/ResolverContainer.d.ts +6 -0
  185. package/react/components/fdc3Resolver/ResolverContainer.d.ts.map +1 -1
  186. package/react/components/fdc3Resolver/ResolverContainer.js +37 -89
  187. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  188. package/react/components/fdc3Resolver/ResolverDialog.d.ts +10 -1
  189. package/react/components/fdc3Resolver/ResolverDialog.d.ts.map +1 -1
  190. package/react/components/fdc3Resolver/ResolverDialog.js +78 -66
  191. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  192. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
  193. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts.map +1 -1
  194. package/react/components/linker/remoteRedux.d.ts +2 -9
  195. package/react/components/linker/remoteRedux.d.ts.map +1 -1
  196. package/react/components/linker/remoteRedux.js +2 -22
  197. package/react/components/linker/remoteRedux.js.map +1 -1
  198. package/react/components/notifications/css/notification-center.css +2 -0
  199. package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
  200. package/react/components/processMonitor/ProcessMonitor.js +14 -36
  201. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  202. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +0 -4
  203. package/react/components/processMonitor/ProcessMonitorTypes.d.ts.map +1 -1
  204. package/react/components/processMonitor/ProcessMonitorTypes.js +1 -5
  205. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  206. package/react/components/processMonitor/components/ChildWindow.d.ts +2 -3
  207. package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
  208. package/react/components/processMonitor/components/ChildWindow.js +5 -9
  209. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  210. package/react/components/processMonitor/components/ListHeader.d.ts +1 -5
  211. package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
  212. package/react/components/processMonitor/components/ListHeader.js +3 -2
  213. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  214. package/react/components/processMonitor/components/Process.d.ts +10 -0
  215. package/react/components/processMonitor/components/Process.d.ts.map +1 -0
  216. package/react/components/processMonitor/components/Process.js +11 -0
  217. package/react/components/processMonitor/components/Process.js.map +1 -0
  218. package/react/components/processMonitor/components/ProcessStatistics.d.ts +5 -4
  219. package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
  220. package/react/components/processMonitor/components/ProcessStatistics.js +10 -7
  221. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  222. package/react/components/processMonitor/constants.d.ts +1 -2
  223. package/react/components/processMonitor/constants.d.ts.map +1 -1
  224. package/react/components/processMonitor/constants.js +2 -8
  225. package/react/components/processMonitor/constants.js.map +1 -1
  226. package/react/components/processMonitor/helpers.d.ts +0 -1
  227. package/react/components/processMonitor/helpers.d.ts.map +1 -1
  228. package/react/components/processMonitor/helpers.js +2 -9
  229. package/react/components/processMonitor/helpers.js.map +1 -1
  230. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +0 -4
  231. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts.map +1 -1
  232. package/react/components/processMonitor/stores/ProcessMonitorStore.js +0 -29
  233. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  234. package/react/components/search/SearchInput.d.ts +1 -2
  235. package/react/components/search/SearchInput.d.ts.map +1 -1
  236. package/react/components/search/SearchInput.js +11 -13
  237. package/react/components/search/SearchInput.js.map +1 -1
  238. package/react/components/search/SearchResults.d.ts.map +1 -1
  239. package/react/components/search/SearchResults.js +6 -6
  240. package/react/components/search/SearchResults.js.map +1 -1
  241. package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
  242. package/react/components/shared/openQuitConfirmationDialog.js +31 -4
  243. package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
  244. package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
  245. package/react/components/singleInputDialog/SingleInputDialog.js +83 -100
  246. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  247. package/react/components/toolbar/DragHandle.d.ts.map +1 -1
  248. package/react/components/toolbar/DragHandle.js +8 -5
  249. package/react/components/toolbar/DragHandle.js.map +1 -1
  250. package/react/components/toolbar/ToolbarShell.d.ts +1 -0
  251. package/react/components/toolbar/ToolbarShell.d.ts.map +1 -1
  252. package/react/components/toolbar/ToolbarShell.js +3 -2
  253. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  254. package/react/components/userPreferences/components/content/Workspaces.d.ts +5 -0
  255. package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
  256. package/react/components/userPreferences/components/content/Workspaces.js +14 -1
  257. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  258. package/react/components/utils.d.ts +50 -0
  259. package/react/components/utils.d.ts.map +1 -0
  260. package/react/components/utils.js +60 -0
  261. package/react/components/utils.js.map +1 -0
  262. package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts +9 -0
  263. package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts.map +1 -0
  264. package/react/components/windowTitleBar/AlwaysOnTopButton.js +29 -0
  265. package/react/components/windowTitleBar/AlwaysOnTopButton.js.map +1 -0
  266. package/react/components/windowTitleBar/{components/right/CloseButton.d.ts → CloseButton.d.ts} +0 -0
  267. package/react/components/windowTitleBar/CloseButton.d.ts.map +1 -0
  268. package/react/components/windowTitleBar/CloseButton.js +22 -0
  269. package/react/components/windowTitleBar/CloseButton.js.map +1 -0
  270. package/react/components/windowTitleBar/GroupingButton.d.ts +3 -0
  271. package/react/components/windowTitleBar/GroupingButton.d.ts.map +1 -0
  272. package/react/components/windowTitleBar/GroupingButton.js +25 -0
  273. package/react/components/windowTitleBar/GroupingButton.js.map +1 -0
  274. package/react/components/windowTitleBar/{components/left/LinkerButton.d.ts → LinkerButton.d.ts} +0 -0
  275. package/react/components/windowTitleBar/LinkerButton.d.ts.map +1 -0
  276. package/react/components/windowTitleBar/{components/left/LinkerButton.js → LinkerButton.js} +4 -4
  277. package/react/components/windowTitleBar/LinkerButton.js.map +1 -0
  278. package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts +11 -0
  279. package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts.map +1 -0
  280. package/react/components/windowTitleBar/LinkerButtonDeprecated.js +63 -0
  281. package/react/components/windowTitleBar/LinkerButtonDeprecated.js.map +1 -0
  282. package/react/components/windowTitleBar/{components/left/LinkerGroups.d.ts → LinkerGroups.d.ts} +0 -0
  283. package/react/components/windowTitleBar/LinkerGroups.d.ts.map +1 -0
  284. package/react/components/windowTitleBar/{components/left/LinkerGroups.js → LinkerGroups.js} +2 -3
  285. package/react/components/windowTitleBar/LinkerGroups.js.map +1 -0
  286. package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts +7 -0
  287. package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts.map +1 -0
  288. package/react/components/windowTitleBar/LinkerGroupsDeprecated.js +35 -0
  289. package/react/components/windowTitleBar/LinkerGroupsDeprecated.js.map +1 -0
  290. package/react/components/windowTitleBar/MaximizeButton.d.ts +3 -0
  291. package/react/components/windowTitleBar/MaximizeButton.d.ts.map +1 -0
  292. package/react/components/windowTitleBar/MaximizeButton.js +18 -0
  293. package/react/components/windowTitleBar/MaximizeButton.js.map +1 -0
  294. package/react/components/windowTitleBar/MinimizeButton.d.ts +3 -0
  295. package/react/components/windowTitleBar/MinimizeButton.d.ts.map +1 -0
  296. package/react/components/windowTitleBar/MinimizeButton.js +21 -0
  297. package/react/components/windowTitleBar/MinimizeButton.js.map +1 -0
  298. package/react/components/windowTitleBar/ShareButton.d.ts +3 -0
  299. package/react/components/windowTitleBar/ShareButton.d.ts.map +1 -0
  300. package/react/components/windowTitleBar/ShareButton.js +24 -0
  301. package/react/components/windowTitleBar/ShareButton.js.map +1 -0
  302. package/react/components/windowTitleBar/TabRegion.d.ts +7 -0
  303. package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -0
  304. package/react/components/windowTitleBar/TabRegion.js +453 -0
  305. package/react/components/windowTitleBar/TabRegion.js.map +1 -0
  306. package/react/components/windowTitleBar/TabTitle.d.ts +8 -0
  307. package/react/components/windowTitleBar/TabTitle.d.ts.map +1 -0
  308. package/react/components/windowTitleBar/TabTitle.js +17 -0
  309. package/react/components/windowTitleBar/TabTitle.js.map +1 -0
  310. package/react/components/windowTitleBar/TitleEdit.d.ts +10 -0
  311. package/react/components/windowTitleBar/TitleEdit.d.ts.map +1 -0
  312. package/react/components/windowTitleBar/TitleEdit.js +30 -0
  313. package/react/components/windowTitleBar/TitleEdit.js.map +1 -0
  314. package/react/components/windowTitleBar/WindowTitleBarContext.d.ts +12 -0
  315. package/react/components/windowTitleBar/WindowTitleBarContext.d.ts.map +1 -0
  316. package/react/components/windowTitleBar/WindowTitleBarContext.js +3 -0
  317. package/react/components/windowTitleBar/WindowTitleBarContext.js.map +1 -0
  318. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +14 -272
  319. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts.map +1 -1
  320. package/react/components/windowTitleBar/WindowTitleBarShell.js +41 -929
  321. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  322. package/react/components/windowTitleBar/index.d.ts +9 -8
  323. package/react/components/windowTitleBar/index.d.ts.map +1 -1
  324. package/react/components/windowTitleBar/index.js +9 -8
  325. package/react/components/windowTitleBar/index.js.map +1 -1
  326. package/react/components/windowTitleBar/useKeyboardNavigation.d.ts +7 -0
  327. package/react/components/windowTitleBar/useKeyboardNavigation.d.ts.map +1 -0
  328. package/react/components/windowTitleBar/useKeyboardNavigation.js +57 -0
  329. package/react/components/windowTitleBar/useKeyboardNavigation.js.map +1 -0
  330. package/react/components/windowTitleBar/useMaximize.d.ts +5 -0
  331. package/react/components/windowTitleBar/useMaximize.d.ts.map +1 -0
  332. package/react/components/windowTitleBar/useMaximize.js +23 -0
  333. package/react/components/windowTitleBar/useMaximize.js.map +1 -0
  334. package/react/components/yesNoDialog/timer.js +2 -1
  335. package/react/components/yesNoDialog/timer.js.map +1 -1
  336. package/react/hooks/useDashbar.d.ts.map +1 -1
  337. package/react/hooks/useDashbar.js.map +1 -1
  338. package/react/hooks/useDragRegion.d.ts +27 -0
  339. package/react/hooks/useDragRegion.d.ts.map +1 -0
  340. package/react/hooks/useDragRegion.js +74 -0
  341. package/react/hooks/useDragRegion.js.map +1 -0
  342. package/react/hooks/useInjectedTitleBar.d.ts +3 -0
  343. package/react/hooks/useInjectedTitleBar.d.ts.map +1 -0
  344. package/react/hooks/useInjectedTitleBar.js +437 -0
  345. package/react/hooks/useInjectedTitleBar.js.map +1 -0
  346. package/react/hooks/useNotifications.d.ts +1 -1
  347. package/react/hooks/useToolbar.d.ts +1 -0
  348. package/react/hooks/useToolbar.d.ts.map +1 -1
  349. package/react/hooks/useToolbar.js +13 -3
  350. package/react/hooks/useToolbar.js.map +1 -1
  351. package/typedefs/FDC3/api/AppMetadata.d.ts +1 -0
  352. package/typedefs/FDC3/api/AppMetadata.d.ts.map +1 -1
  353. package/typedoc-types.d.ts +9 -0
  354. package/typedoc-types.d.ts.map +1 -0
  355. package/typedoc-types.js +6 -0
  356. package/typedoc-types.js.map +1 -0
  357. package/types.d.ts +5 -11
  358. package/types.d.ts.map +1 -1
  359. package/types.js +2 -0
  360. package/types.js.map +1 -1
  361. package/common/events/PrivateEventManager.d.ts +0 -95
  362. package/common/events/PrivateEventManager.d.ts.map +0 -1
  363. package/common/events/PrivateEventManager.js +0 -295
  364. package/common/events/PrivateEventManager.js.map +0 -1
  365. package/common/events/PrivateFinsembleEvent.d.ts +0 -30
  366. package/common/events/PrivateFinsembleEvent.d.ts.map +0 -1
  367. package/common/events/PrivateFinsembleEvent.js +0 -65
  368. package/common/events/PrivateFinsembleEvent.js.map +0 -1
  369. package/common/redux/createReducer.d.ts +0 -128
  370. package/common/redux/createReducer.d.ts.map +0 -1
  371. package/common/redux/createReducer.js +0 -298
  372. package/common/redux/createReducer.js.map +0 -1
  373. package/common/redux/index.d.ts +0 -3
  374. package/common/redux/index.d.ts.map +0 -1
  375. package/common/redux/index.js +0 -3
  376. package/common/redux/index.js.map +0 -1
  377. package/platform/services/window/Common/Pools/ObjectPool.d.ts +0 -11
  378. package/platform/services/window/Common/Pools/ObjectPool.d.ts.map +0 -1
  379. package/platform/services/window/Common/Pools/ObjectPool.js +0 -43
  380. package/platform/services/window/Common/Pools/ObjectPool.js.map +0 -1
  381. package/platform/services/window/Common/Pools/PoolSingletons.d.ts +0 -10
  382. package/platform/services/window/Common/Pools/PoolSingletons.d.ts.map +0 -1
  383. package/platform/services/window/Common/Pools/PoolSingletons.js +0 -10
  384. package/platform/services/window/Common/Pools/PoolSingletons.js.map +0 -1
  385. package/platform/services/window/Common/Pools/WindowPool.d.ts +0 -7
  386. package/platform/services/window/Common/Pools/WindowPool.d.ts.map +0 -1
  387. package/platform/services/window/Common/Pools/WindowPool.js +0 -16
  388. package/platform/services/window/Common/Pools/WindowPool.js.map +0 -1
  389. package/platform/services/window/Docking/boxMath.d.ts +0 -144
  390. package/platform/services/window/Docking/boxMath.d.ts.map +0 -1
  391. package/platform/services/window/Docking/boxMath.js +0 -511
  392. package/platform/services/window/Docking/boxMath.js.map +0 -1
  393. package/platform/services/window/Docking/constants.d.ts +0 -29
  394. package/platform/services/window/Docking/constants.d.ts.map +0 -1
  395. package/platform/services/window/Docking/constants.js +0 -29
  396. package/platform/services/window/Docking/constants.js.map +0 -1
  397. package/platform/services/window/Docking/dockableBox.d.ts +0 -117
  398. package/platform/services/window/Docking/dockableBox.d.ts.map +0 -1
  399. package/platform/services/window/Docking/dockableBox.js +0 -525
  400. package/platform/services/window/Docking/dockableBox.js.map +0 -1
  401. package/platform/services/window/Docking/dockableGroup.d.ts +0 -252
  402. package/platform/services/window/Docking/dockableGroup.d.ts.map +0 -1
  403. package/platform/services/window/Docking/dockableGroup.js +0 -1054
  404. package/platform/services/window/Docking/dockableGroup.js.map +0 -1
  405. package/platform/services/window/Docking/dockableMonitor.d.ts +0 -99
  406. package/platform/services/window/Docking/dockableMonitor.d.ts.map +0 -1
  407. package/platform/services/window/Docking/dockableMonitor.js +0 -427
  408. package/platform/services/window/Docking/dockableMonitor.js.map +0 -1
  409. package/platform/services/window/Docking/dockableWindow.d.ts +0 -272
  410. package/platform/services/window/Docking/dockableWindow.d.ts.map +0 -1
  411. package/platform/services/window/Docking/dockableWindow.js +0 -1239
  412. package/platform/services/window/Docking/dockableWindow.js.map +0 -1
  413. package/platform/services/window/Docking/dockingCalculator.d.ts +0 -741
  414. package/platform/services/window/Docking/dockingCalculator.d.ts.map +0 -1
  415. package/platform/services/window/Docking/dockingCalculator.js +0 -3438
  416. package/platform/services/window/Docking/dockingCalculator.js.map +0 -1
  417. package/platform/services/window/Docking/dockingMain.d.ts +0 -349
  418. package/platform/services/window/Docking/dockingMain.d.ts.map +0 -1
  419. package/platform/services/window/Docking/dockingMain.js +0 -2541
  420. package/platform/services/window/Docking/dockingMain.js.map +0 -1
  421. package/platform/services/window/Docking/maskBoundsCalculator.d.ts +0 -28
  422. package/platform/services/window/Docking/maskBoundsCalculator.d.ts.map +0 -1
  423. package/platform/services/window/Docking/maskBoundsCalculator.js +0 -67
  424. package/platform/services/window/Docking/maskBoundsCalculator.js.map +0 -1
  425. package/platform/services/window/Docking/monitorUpdateHandler.d.ts +0 -32
  426. package/platform/services/window/Docking/monitorUpdateHandler.d.ts.map +0 -1
  427. package/platform/services/window/Docking/monitorUpdateHandler.js +0 -117
  428. package/platform/services/window/Docking/monitorUpdateHandler.js.map +0 -1
  429. package/platform/services/window/Docking/types.d.ts +0 -334
  430. package/platform/services/window/Docking/types.d.ts.map +0 -1
  431. package/platform/services/window/Docking/types.js +0 -12
  432. package/platform/services/window/Docking/types.js.map +0 -1
  433. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts +0 -90
  434. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts.map +0 -1
  435. package/platform/services/window/MultiWindowFeatures/autoArrange.js +0 -510
  436. package/platform/services/window/MultiWindowFeatures/autoArrange.js.map +0 -1
  437. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts +0 -411
  438. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts.map +0 -1
  439. package/platform/services/window/StackedWindowManager/stackedWindowManager.js +0 -1641
  440. package/platform/services/window/StackedWindowManager/stackedWindowManager.js.map +0 -1
  441. package/platform/services/window/WindowAbstractions/BaseWindow.d.ts +0 -469
  442. package/platform/services/window/WindowAbstractions/BaseWindow.d.ts.map +0 -1
  443. package/platform/services/window/WindowAbstractions/BaseWindow.js +0 -1347
  444. package/platform/services/window/WindowAbstractions/BaseWindow.js.map +0 -1
  445. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts +0 -9
  446. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts.map +0 -1
  447. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js +0 -23
  448. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js.map +0 -1
  449. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts +0 -227
  450. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts.map +0 -1
  451. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js +0 -1168
  452. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js.map +0 -1
  453. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts +0 -121
  454. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts.map +0 -1
  455. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js +0 -591
  456. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js.map +0 -1
  457. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts +0 -194
  458. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts.map +0 -1
  459. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js +0 -680
  460. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js.map +0 -1
  461. package/platform/services/window/windowGroup.d.ts +0 -86
  462. package/platform/services/window/windowGroup.d.ts.map +0 -1
  463. package/platform/services/window/windowGroup.js +0 -323
  464. package/platform/services/window/windowGroup.js.map +0 -1
  465. package/platform/services/workspace/windowStorageManager.d.ts +0 -180
  466. package/platform/services/workspace/windowStorageManager.d.ts.map +0 -1
  467. package/platform/services/workspace/windowStorageManager.js +0 -195
  468. package/platform/services/workspace/windowStorageManager.js.map +0 -1
  469. package/react/assets/icons/question-circle.svg +0 -6
  470. package/react/components/legacyControls/FinsembleHoverDetector.d.ts +0 -23
  471. package/react/components/legacyControls/FinsembleHoverDetector.d.ts.map +0 -1
  472. package/react/components/legacyControls/FinsembleHoverDetector.js +0 -57
  473. package/react/components/legacyControls/FinsembleHoverDetector.js.map +0 -1
  474. package/react/components/sdd/Appearance.helpers.d.ts +0 -2
  475. package/react/components/sdd/Appearance.helpers.d.ts.map +0 -1
  476. package/react/components/sdd/Appearance.helpers.js +0 -2
  477. package/react/components/sdd/Appearance.helpers.js.map +0 -1
  478. package/react/components/shared/linkerUtil.d.ts +0 -4
  479. package/react/components/shared/linkerUtil.d.ts.map +0 -1
  480. package/react/components/shared/linkerUtil.js +0 -10
  481. package/react/components/shared/linkerUtil.js.map +0 -1
  482. package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -31
  483. package/react/components/windowTitleBar/components/center/Tab.d.ts.map +0 -1
  484. package/react/components/windowTitleBar/components/center/Tab.js +0 -58
  485. package/react/components/windowTitleBar/components/center/Tab.js.map +0 -1
  486. package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -138
  487. package/react/components/windowTitleBar/components/center/TabList.d.ts.map +0 -1
  488. package/react/components/windowTitleBar/components/center/TabList.js +0 -614
  489. package/react/components/windowTitleBar/components/center/TabList.js.map +0 -1
  490. package/react/components/windowTitleBar/components/center/TabRegion.d.ts +0 -3
  491. package/react/components/windowTitleBar/components/center/TabRegion.d.ts.map +0 -1
  492. package/react/components/windowTitleBar/components/center/TabRegion.js +0 -13
  493. package/react/components/windowTitleBar/components/center/TabRegion.js.map +0 -1
  494. package/react/components/windowTitleBar/components/left/LinkerButton.d.ts.map +0 -1
  495. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +0 -1
  496. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +0 -85
  497. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts.map +0 -1
  498. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js +0 -172
  499. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +0 -1
  500. package/react/components/windowTitleBar/components/left/LinkerGroups.d.ts.map +0 -1
  501. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +0 -1
  502. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts +0 -50
  503. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts.map +0 -1
  504. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js +0 -120
  505. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +0 -1
  506. package/react/components/windowTitleBar/components/left/ShareButton.d.ts +0 -42
  507. package/react/components/windowTitleBar/components/left/ShareButton.d.ts.map +0 -1
  508. package/react/components/windowTitleBar/components/left/ShareButton.js +0 -82
  509. package/react/components/windowTitleBar/components/left/ShareButton.js.map +0 -1
  510. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts +0 -3
  511. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts.map +0 -1
  512. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js +0 -15
  513. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +0 -1
  514. package/react/components/windowTitleBar/components/right/CloseButton.d.ts.map +0 -1
  515. package/react/components/windowTitleBar/components/right/CloseButton.js +0 -16
  516. package/react/components/windowTitleBar/components/right/CloseButton.js.map +0 -1
  517. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +0 -50
  518. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts.map +0 -1
  519. package/react/components/windowTitleBar/components/right/GroupingButton.js +0 -82
  520. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +0 -1
  521. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +0 -59
  522. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts.map +0 -1
  523. package/react/components/windowTitleBar/components/right/MaximizeButton.js +0 -96
  524. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +0 -1
  525. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +0 -26
  526. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts.map +0 -1
  527. package/react/components/windowTitleBar/components/right/MinimizeButton.js +0 -32
  528. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +0 -1
  529. package/react/components/windowTitleBar/components/windowTitle.d.ts +0 -67
  530. package/react/components/windowTitleBar/components/windowTitle.d.ts.map +0 -1
  531. package/react/components/windowTitleBar/components/windowTitle.js +0 -382
  532. package/react/components/windowTitleBar/components/windowTitle.js.map +0 -1
  533. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +0 -69
  534. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts.map +0 -1
  535. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +0 -610
  536. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +0 -1
  537. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +0 -44
  538. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts.map +0 -1
  539. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js +0 -43
  540. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +0 -1
  541. package/react/components/windowTitleBar/windowTitleBarContext.d.ts +0 -23
  542. package/react/components/windowTitleBar/windowTitleBarContext.d.ts.map +0 -1
  543. package/react/components/windowTitleBar/windowTitleBarContext.js +0 -22
  544. package/react/components/windowTitleBar/windowTitleBarContext.js.map +0 -1
  545. package/react/types/windowTitleBar.d.ts +0 -49
  546. package/react/types/windowTitleBar.d.ts.map +0 -1
  547. package/react/types/windowTitleBar.js +0 -2
  548. package/react/types/windowTitleBar.js.map +0 -1
@@ -0,0 +1,437 @@
1
+ /**
2
+ * The useInjectedTitleBar hook is responsible for DOM manipulation of web content in windows where the Finsemble
3
+ * WindowTitleBar has been injected (as opposed to living in an encapsulating parent TitleBarWindow). This hook
4
+ * executes only once, to adjust any fixed content downward to make room for the title bar. It also enables a
5
+ * mutation observer that monitors the entire document.body for newly added nodes with "fixed" position, adjusting
6
+ * their vertical position accordingly when they are discovered.
7
+ */
8
+ import { useEffect, useState } from "react";
9
+ import { FEAGlobals } from "../../common/Globals";
10
+ // Values for possible zero
11
+ const possibleZeros = ["0", "0px", 0];
12
+ /** Utility function to retrieve all readable CSS rules, which are used to refine
13
+ * content height adjustments.
14
+ */
15
+ const getCSSRules = () => {
16
+ let temp = [];
17
+ // eslint-disable-next-line sonarjs/no-empty-collection
18
+ return temp.concat(...Array.from(document.styleSheets).map((s) => {
19
+ try {
20
+ return [...(s.cssRules || [])];
21
+ }
22
+ catch (e) {
23
+ console.debug("ignoring a cross-domain CSS rule we can't read");
24
+ return [];
25
+ }
26
+ }));
27
+ };
28
+ /** Utility function that filters a set of CSS rules to those that match
29
+ * a specific element. */
30
+ const getMatchedRules = (el, rules) => rules.filter((r) => el.matches(r.selectorText));
31
+ /** Utility function that determines if an element has a height set via CSS
32
+ * as we do not want to apply adjustments to elements that grow with their
33
+ * content
34
+ */
35
+ const getCSSHeight = (el, allRules) => {
36
+ var _a, _b;
37
+ if ((_a = el === null || el === void 0 ? void 0 : el.style) === null || _a === void 0 ? void 0 : _a.height)
38
+ return el.style.height;
39
+ let matchedRules = getMatchedRules(el, allRules);
40
+ for (const x of matchedRules) {
41
+ if ((_b = x.style) === null || _b === void 0 ? void 0 : _b.height)
42
+ return x.style.height;
43
+ }
44
+ return false;
45
+ };
46
+ /**
47
+ * Used in bumpFixedElements and bumpAbsoluteElements
48
+ * Calculates value to bump element by. If 'all' return top style plus the header height, if '0Positioned' return just header height
49
+ * @param type Whether all elements are being bumped by the header height and their top style or just header height
50
+ * @param topStyle Element top value
51
+ * @param bumpBy Value to bump element by
52
+ * @returns Top style for element
53
+ */
54
+ const calculateBumpValue = (type, topStyle, bumpBy) => {
55
+ let topVal = topStyle;
56
+ if (type == "all") {
57
+ topVal = `calc(${topStyle} + ${bumpBy})`;
58
+ }
59
+ else if (type == "0Positioned" && possibleZeros.includes(topStyle)) {
60
+ topVal = bumpBy;
61
+ }
62
+ return topVal;
63
+ };
64
+ /**
65
+ * Used in bumpAbsoluteElements
66
+ *
67
+ * Recursively traverse through the HTML document and return an array of the top level elements
68
+ * and elements with static parents
69
+ * @param {object} element The HTML element
70
+ * @param {array} acc accumulator
71
+ * @returns {array} array top level elements and elements with static parents
72
+ *
73
+ */
74
+ const traverseHtml = (element, acc = []) => {
75
+ const elements = element.children;
76
+ const len = elements.length;
77
+ if (!len) {
78
+ acc.push(element);
79
+ }
80
+ else {
81
+ for (let i = 0; i < len; i++) {
82
+ const style = window.getComputedStyle(elements[i], null);
83
+ if (style.getPropertyValue("position") == "static") {
84
+ acc = traverseHtml(elements[i], acc);
85
+ }
86
+ else {
87
+ acc.push(elements[i]);
88
+ }
89
+ }
90
+ }
91
+ return acc;
92
+ };
93
+ /**
94
+ * Called from bumpElements
95
+ *
96
+ * Bumps all elements with fixed positioning, that are not in the header, down by the configured amount.
97
+ * @private
98
+ * @param {object} params bumpElements object
99
+ */
100
+ const bumpFixedElements = (params) => {
101
+ var _a, _b;
102
+ let { fixed, bumpBy } = params;
103
+ const allNodes = document.body.querySelectorAll("*:not(#FSBLHeader, .fsbl-header)");
104
+ const getFixedElements = () => {
105
+ const fixedElements = [];
106
+ allNodes.forEach((node) => {
107
+ const style = window.getComputedStyle(node, null);
108
+ if (style.getPropertyValue("position") == "fixed")
109
+ fixedElements.push(node);
110
+ });
111
+ return fixedElements;
112
+ };
113
+ /**
114
+ * Filter out fixed positioned elements with parents containing the following properties:
115
+ * transform, perspective, filter or will-change="transform"
116
+ * as they put the fixed-positioned elements back into the document flow (so position
117
+ * is based on where they are in the DOM as per normal elements)
118
+ * This needs to be done because fixed positioned elements will be positioned relative
119
+ * to parents with these properties instead of the usual viewport,
120
+ * which means we do not need to bump the element since the parent will have been adjusted.
121
+ */
122
+ const filterFixedElements = (elements) => {
123
+ const ignorableNodes = [];
124
+ const filtered = [...elements];
125
+ const len = elements.length;
126
+ allNodes.forEach((node) => {
127
+ const style = window.getComputedStyle(node, null);
128
+ const properties = ["transform", "perspective", "filter"];
129
+ if (style.getPropertyValue("will-change") === "transform")
130
+ ignorableNodes.push(node);
131
+ properties.forEach((prop) => style.getPropertyValue(prop) !== "none" && ignorableNodes.push(node));
132
+ });
133
+ for (let i = len - 1; i >= 0; i--) {
134
+ for (let j = 0; j < ignorableNodes.length; j++) {
135
+ if (ignorableNodes[j].contains(elements[i])) {
136
+ filtered.pop();
137
+ break;
138
+ }
139
+ }
140
+ }
141
+ return filtered;
142
+ };
143
+ // Get all fixed positioned elements
144
+ const filteredElements = filterFixedElements(getFixedElements());
145
+ for (let i = 0; i < filteredElements.length; i++) {
146
+ const style = window.getComputedStyle(filteredElements[i], null);
147
+ const topStyle = style.getPropertyValue("top");
148
+ if (!((_b = (_a = filteredElements[i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains("bumped-element"))) {
149
+ filteredElements[i].style.top = calculateBumpValue(fixed, topStyle, bumpBy);
150
+ filteredElements[i].classList.add("bumped-element");
151
+ }
152
+ }
153
+ };
154
+ /**
155
+ * Called from bumpElements
156
+ *
157
+ * Bumps all absolute positioned elements with static parents, that are not in the header, down by the configured amount.
158
+ * @private
159
+ * @param {object} params bumpElements object
160
+ */
161
+ const bumpAbsoluteElements = (params) => {
162
+ var _a, _b;
163
+ let { absolute, bumpBy } = params;
164
+ const selector = "*:not(#FSBLHeader, .fsbl-header)";
165
+ // Get top level absolute positioned elements and elements who have static parents
166
+ const elements = traverseHtml({ children: document.body.querySelectorAll(`:scope > ${selector}`) });
167
+ const len = elements.length;
168
+ for (let i = 0; i < len; i++) {
169
+ const style = window.getComputedStyle(elements[i], null);
170
+ const topStyle = style.getPropertyValue("top");
171
+ // Target absolute positioned elements
172
+ if (style.getPropertyValue("position") == "absolute" && !((_b = (_a = elements[i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains("bumped-element"))) {
173
+ elements[i].style.top = calculateBumpValue(absolute, topStyle, bumpBy);
174
+ elements[i].classList.add("bumped-element");
175
+ }
176
+ }
177
+ };
178
+ /**
179
+ * Toggle setting found in `foreign.components.["Window Manager"].FSBLHeader.bumpElements.[bumpBy|fixed|absolute]`
180
+ * Called from beginAdjustment()
181
+ *
182
+ * Calls bumpFixedElements and bumpAbsoluteElements to bump fixed and/or absolute elements by the value of bumpBy if configured to do so.
183
+ * Since absolute and fixed positioned elements are removed from the document flow their positions will not be adjusted when the titlebar
184
+ * is injected and they have a set top style. However, if the element is an absolute positioned element and it's
185
+ * parent container has a position that is not set to static, then it'll adjust relative to the parent. Fixed positioned elements, on the other hand,
186
+ * won't adjust unless their top styles are changed.
187
+ */
188
+ const bumpElements = (config) => {
189
+ if (!config)
190
+ return;
191
+ if (config.bumpBy !== "0px") {
192
+ if (config.fixed)
193
+ bumpFixedElements(config);
194
+ if (config.absolute)
195
+ bumpAbsoluteElements(config);
196
+ }
197
+ };
198
+ /**
199
+ * This is used in adjustTopLevelHeight() and adjustContentHeight()
200
+ *
201
+ * Set the max height of each element (that has a defined height - as far as
202
+ * we can tell) to be the height of the parent container subtracted by the
203
+ * height of the previous element. This forces the element to either obey its
204
+ * predefined height or stay within the bounds of the max height.
205
+ *
206
+ * @param {array} cssRules CSS Rules for the current document.
207
+ * @param {object} elem HTML element
208
+ * @param {number} prevHeight height of previous sibling
209
+ * @param {string} maxElemHeight maximum height of the element
210
+ * @param {number} headerHeight the height of the header
211
+ */
212
+ const adjust = (cssRules, elem, prevHeight, headerHeight = 25) => {
213
+ var _a;
214
+ let hasHeight = getCSSHeight(elem, cssRules);
215
+ if (
216
+ // workaround to fix dnd scrim disappearing
217
+ !((_a = elem.classList) === null || _a === void 0 ? void 0 : _a.contains("fsbl-share-scrim")) &&
218
+ //only apply adjustments to elements that have a defined height
219
+ // (as far as we can tell - we can't access cross-domain css)
220
+ hasHeight) {
221
+ const clientHeight = elem.clientHeight ? elem.clientHeight : 0;
222
+ const offsetHeight = elem.offsetHeight ? elem.offsetHeight : 0;
223
+ const offset = offsetHeight - clientHeight;
224
+ let adjustPrev = prevHeight + offset;
225
+ const elemPosition = window.getComputedStyle(elem, null).getPropertyValue("position");
226
+ if (elemPosition == "fixed" || elemPosition == "absolute")
227
+ adjustPrev = headerHeight + offset;
228
+ elem.style.maxHeight = `calc(100% - ${adjustPrev}px)`;
229
+ elem.classList.add("adjusted-element");
230
+ }
231
+ };
232
+ /**
233
+ * Adjusts the content view height to be maximum of the parent container (passed in by adjustTopLevelHeight()) height
234
+ * subtracted by the total height of elements above it. The height of the previous elements are added to this calculation
235
+ * if they are not fixed or absolute.
236
+ *
237
+ * @param {array} cssRules CSS Rules for the current document.
238
+ * @param {object} parentElem parent element
239
+ * @param {number} headerHeight the height of the header
240
+ */
241
+ const adjustContentHeight = (cssRules, parentElem, headerHeight) => {
242
+ const { children } = parentElem;
243
+ const len = children.length;
244
+ let prevHeight = 0;
245
+ for (let i = 0; i < len; i++) {
246
+ adjust(cssRules, children[i], prevHeight, headerHeight);
247
+ // Fixed and absolute positioned elements are ignored since they are removed from the document flow.
248
+ const elemPosition = window.getComputedStyle(children[i], null).getPropertyValue("position");
249
+ if (elemPosition !== "fixed" && elemPosition !== "absolute")
250
+ prevHeight = prevHeight + children[i].offsetHeight;
251
+ }
252
+ };
253
+ /**
254
+ * Toggle setting found in `foreign.components.["Window Manager"].FSBLHeader.adjustContentHeights`
255
+ * Called from beginAdjustment()
256
+ *
257
+ * Adjusts the top level content max-height to be 100% subtracted by the total height of the previous elements.
258
+ * The height of the previous elements are added to this calculation if they are not fixed or absolute.
259
+ * These top level elements will be passed into adjustContentHeight where their descendants
260
+ * will also have their heights adjusted (where they have a defined height - elements that grow with content
261
+ * are left alone).
262
+ *
263
+ * Absolute and Fixed positions elements, however, will just have their max-heights set to 100% subtracted by the header height
264
+ * since they are not part of the document flow.
265
+ * Example:
266
+ * In this below situation, the B element extends passed the view because the header is injected. B doesn't have a
267
+ * set height so it'll extend as far as it needs.
268
+ * --------------------
269
+ * |******************|
270
+ * |* Titlebar *|
271
+ * |******************|
272
+ * |******************|
273
+ * |* A *|
274
+ * |* *|
275
+ * |******************|
276
+ * |******************|
277
+ * |* *|
278
+ * |* *|
279
+ * |* B *|
280
+ * |* *|
281
+ * |* *|
282
+ * |* *|
283
+ * --------------------
284
+ * The chain of adjust functions will set the maxHeight of A and B to ensure they both occupy space that the above element doesn't
285
+ * and keep it within the bounds of the view.
286
+ * --------------------
287
+ * |******************|
288
+ * |* Titlebar *|
289
+ * |******************|
290
+ * |******************|
291
+ * |* A *|
292
+ * |* *|
293
+ * |******************|
294
+ * |******************|
295
+ * |* *|
296
+ * |* *|
297
+ * |* B *|
298
+ * |* *|
299
+ * |* *|
300
+ * |******************|
301
+ * --------------------
302
+ * @param {number} headerHeight the height of the header
303
+ */
304
+ const adjustTopLevelHeight = (headerHeight) => {
305
+ const cssRules = getCSSRules();
306
+ const elements = document.body.querySelectorAll(":scope > *:not(#FSBLHeader, .fsbl-header)");
307
+ let prevHeight = 0;
308
+ // Tags that don't accept max-heights
309
+ const avoidTags = ["svg", "script"];
310
+ elements.forEach((elem) => {
311
+ if (!avoidTags.includes(String(elem.tagName).toLowerCase())) {
312
+ adjust(cssRules, elem, prevHeight, headerHeight);
313
+ // Heights of fixed and absolute positioned elements are not added to the total heights of previous elements
314
+ // since they are removed from the document flow and can be positioned anywhere in the page.
315
+ if (elem.style.position !== "fixed" && elem.style.position !== "absolute")
316
+ prevHeight = prevHeight + elem.offsetHeight;
317
+ adjustContentHeight(cssRules, elem, headerHeight);
318
+ }
319
+ });
320
+ };
321
+ /**
322
+ * Toggle setting found in `foreign.components.["Window Manager"].FSBLHeader.bumpElements.[monitorFixedAdditions]`
323
+ * Called from beginAdjustment()
324
+ *
325
+ * Monitors the DOM for mutations, if the added node has a fixed position with a top style of 0px, it will be bumped by the title bar height.
326
+ * This ensures that if a fixed positioned element is dynamically added to the DOM, for example a pop-up modal, it'll have it's height adjusted
327
+ * by the header height since the initial bumping of elements can happen before this element exists.
328
+ *
329
+ * Element heights are not monitored and adjusted since this would require that all pre-existing elements have their height recalculated each time
330
+ * a new element is dynamically added onto the page. Absolute positioned elements, however, could be monitored and adjusted since all we would
331
+ * need to check for is that it's parent has a static position or not, if it does then it can be adjusted.
332
+ * @param headerHeight the height of the header
333
+ */
334
+ const monitorFixedPositionedElements = (headerHeight) => {
335
+ const options = {
336
+ childList: true,
337
+ subtree: true,
338
+ };
339
+ /**
340
+ * MutationObserver interface provides the ability to watch for
341
+ * changes to the DOM tree using the observe method
342
+ */
343
+ const mutationObserver = new MutationObserver((mutations) => {
344
+ mutations.forEach((mutation) => {
345
+ mutation.addedNodes.forEach((node) => {
346
+ var _a;
347
+ if (!((_a = node === null || node === void 0 ? void 0 : node.classList) === null || _a === void 0 ? void 0 : _a.contains("bumped-element"))) {
348
+ try {
349
+ const nodeStyle = window.getComputedStyle(node);
350
+ const topStyle = nodeStyle.top;
351
+ // make sure node is fixed, has top style set to 0, and has not been bumped
352
+ if (nodeStyle.position === "fixed" && possibleZeros.includes(topStyle)) {
353
+ node.style.top = calculateBumpValue("0Positioned", topStyle, headerHeight);
354
+ node.classList.add("bumped-element");
355
+ }
356
+ }
357
+ catch (err) {
358
+ // Expected to error if the node is not an Element e.g text is not of type Element
359
+ }
360
+ }
361
+ });
362
+ });
363
+ });
364
+ // We observe the body and do not disconnect because there may be other elements that are dynamically loaded, such as a dialogue menu.
365
+ mutationObserver.observe(document.body, options);
366
+ };
367
+ // Hack the window's scrollbar so that it displays underneath the header. html.overflow: hidden body.overflow:auto
368
+ // This is turned on by default. Set "Window Manager.hackScrollbar: false" to turn it off
369
+ const hackScrollbar = () => {
370
+ const header = document.getElementsByClassName("fsbl-header")[0];
371
+ //Add a margin top to the body if there title bar is injected into the component.
372
+ if (header) {
373
+ document.body.style.margin = "0px";
374
+ document.body.style.marginTop = window.getComputedStyle(header, null).getPropertyValue("height");
375
+ }
376
+ const htmlElement = document.querySelector("html");
377
+ if (htmlElement)
378
+ htmlElement.style.overflowY = "hidden";
379
+ const bodyElement = document.querySelector("body");
380
+ if (bodyElement)
381
+ bodyElement.style.overflowY = "auto";
382
+ };
383
+ /**
384
+ * Begin adjusting the body and top level elements and their direct descendants by the header height.
385
+ */
386
+ const beginAdjustment = (bumpElementConfig) => {
387
+ const header = document.getElementsByClassName("fsbl-header")[0];
388
+ if (!header) {
389
+ FEAGlobals.FSBL.Clients.Logger.system.error("WindowTitleBarShell.maybeAdjustWindow:could not find fsbl-header.");
390
+ return;
391
+ }
392
+ const bodyElement = document.querySelector("body");
393
+ const headerHeight = window.getComputedStyle(header, null).getPropertyValue("height");
394
+ if (bodyElement) {
395
+ bodyElement.style.height = `calc(100vh - ${headerHeight})`;
396
+ }
397
+ if (bumpElementConfig.hackScrollbar)
398
+ hackScrollbar();
399
+ if (bumpElementConfig.adjustContentHeights)
400
+ adjustTopLevelHeight(Number.parseInt(headerHeight, 10));
401
+ if (bumpElementConfig.bumpFixedElements) {
402
+ bumpElements(bumpElementConfig);
403
+ if (bumpElementConfig.monitorFixedAdditions)
404
+ monitorFixedPositionedElements(headerHeight);
405
+ }
406
+ };
407
+ /**
408
+ * Once document is ready and header is injected into DOM, begin adjusting the height of elements and bump fixed/absolute elements
409
+ */
410
+ const adjustWindow = (bumpElementConfig) => {
411
+ // don't start pushing stuff down until page is ready. This is needed for preloaded title bars because they can happen before the page is ready.
412
+ if (document.readyState === "complete") {
413
+ beginAdjustment(bumpElementConfig);
414
+ }
415
+ else {
416
+ document.addEventListener("readystatechange", () => {
417
+ if (document.readyState === "complete")
418
+ beginAdjustment(bumpElementConfig);
419
+ });
420
+ }
421
+ };
422
+ export const useInjectedTitleBar = (bumpConfig) => {
423
+ const [bumped, setBumped] = useState(false);
424
+ // Run the hook when a BumpConfig is available (e.g. loaded from store)
425
+ useEffect(() => {
426
+ var _a;
427
+ // If this isn't an injected title bar window then do nothing
428
+ if ((_a = FEAGlobals === null || FEAGlobals === void 0 ? void 0 : FEAGlobals.fin) === null || _a === void 0 ? void 0 : _a.isTitlebarWindow())
429
+ return;
430
+ // Only run once, when the bumpConfig becomes available
431
+ if (bumpConfig && !bumped) {
432
+ adjustWindow(bumpConfig);
433
+ setBumped(true);
434
+ }
435
+ }, [bumpConfig]);
436
+ };
437
+ //# sourceMappingURL=useInjectedTitleBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInjectedTitleBar.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useInjectedTitleBar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,2BAA2B;AAC3B,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,IAAI,IAAI,GAAc,EAAE,CAAC;IACzB,uDAAuD;IACvD,OAAO,IAAI,CAAC,MAAM,CACjB,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC7C,IAAI;YACH,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC;SAC/B;QAAC,OAAO,CAAC,EAAE;YACX,OAAO,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;YAChE,OAAO,EAAE,CAAC;SACV;IACF,CAAC,CAAC,CACF,CAAC;AACH,CAAC,CAAC;AAEF;2BAC2B;AAC3B,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;AAEvF;;;GAGG;AACH,MAAM,YAAY,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE;;IACrC,IAAI,MAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,KAAK,0CAAE,MAAM;QAAE,OAAO,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC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C,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IACrD,uEAAuE;IACvE,SAAS,CAAC,GAAG,EAAE;;QACd,6DAA6D;QAC7D,IAAI,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,0CAAE,gBAAgB,EAAE;YAAE,OAAO;QAChD,uDAAuD;QACvD,IAAI,UAAU,IAAI,CAAC,MAAM,EAAE;YAC1B,YAAY,CAAC,UAAU,CAAC,CAAC;YACzB,SAAS,CAAC,IAAI,CAAC,CAAC;SAChB;IACF,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC"}
@@ -10,7 +10,7 @@ declare type NotificationUIStatePublish = (state: NotificationServiceState) => v
10
10
  export declare const useNotificationUI: () => [state: NotificationServiceState, setState: NotificationUIStatePublish];
11
11
  export declare const getToolbarMonitor: () => Promise<MonitorInfoDetail | undefined>;
12
12
  export declare const moveToToolbarMonitor: () => Promise<void>;
13
- export declare const getOS: () => "Mac" | "Windows" | "Linux" | undefined;
13
+ export declare const getOS: () => "Windows" | "Linux" | "Mac" | undefined;
14
14
  /**
15
15
  * Example for setting up button clicks
16
16
  *
@@ -6,6 +6,7 @@ export declare const useToolbar: () => {
6
6
  toggleAutoArrange: () => Promise<void>;
7
7
  showToolbar: () => void;
8
8
  hideToolbar: () => void;
9
+ dockToolbar: () => void;
9
10
  launchPreferences: (tabName: string) => void;
10
11
  };
11
12
  //# sourceMappingURL=useToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useToolbar.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useToolbar.ts"],"names":[],"mappings":"AA0JA,eAAO,MAAM,UAAU;;;;;;;;iCAlDa,MAAM;CAsEzC,CAAC"}
1
+ {"version":3,"file":"useToolbar.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useToolbar.ts"],"names":[],"mappings":"AAoKA,eAAO,MAAM,UAAU;;;;;;;;;iCAlDa,MAAM;CAuEzC,CAAC"}
@@ -33,7 +33,16 @@ const showToolbar = () => {
33
33
  bringToolbarToFront({ focus: true });
34
34
  };
35
35
  /**
36
- * Mimimizes all windows.
36
+ * Docks the toolbar to the primary monitor
37
+ */
38
+ const dockToolbar = () => {
39
+ FEAGlobals.FSBL.Clients.RouterClient.transmit("DockingService.dockWindow", {
40
+ windowName: FEAGlobals.finsembleWindow.name,
41
+ uuid: FEAGlobals.finsembleWindow.uuid,
42
+ });
43
+ };
44
+ /**
45
+ * Minimizes all windows.
37
46
  */
38
47
  const minimizeAllWindows = () => {
39
48
  FEAGlobals.FSBL.Clients.WorkspaceClient.minimizeAll();
@@ -49,8 +58,8 @@ const revealAllWindows = () => {
49
58
  */
50
59
  const toggleAutoArrange = async () => {
51
60
  /**
52
- * Bring windows to front before auto arranging them to ensure maximised windows are included in the action
53
- * This is relies on bringWindowsToFront() restoring maximised and minimised windows
61
+ * Bring windows to front before auto arranging them to ensure maximized windows are included in the action
62
+ * This is relies on bringWindowsToFront() restoring maximized and minimized windows
54
63
  */
55
64
  await FEAGlobals.FSBL.Clients.WorkspaceClient.bringWindowsToFront();
56
65
  FEAGlobals.FSBL.Clients.WorkspaceClient.autoArrange({}, () => {
@@ -146,6 +155,7 @@ export const useToolbar = () => {
146
155
  toggleAutoArrange,
147
156
  showToolbar,
148
157
  hideToolbar,
158
+ dockToolbar,
149
159
  launchPreferences,
150
160
  };
151
161
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useToolbar.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;GAGG;AACH,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAsB,EAAE,EAAE;IAC7D,UA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IAC9B,SAAS,CAAC,GAAG,EAAE;QACd,eAAe,EAAE,CAAC;QAClB,uBAAuB,EAAE,CAAC;QAE1B,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;YACnC,kBAAkB,EAAE,CAAC;SACrB;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACN,2BAA2B;QAC3B,kBAAkB;QAClB,kBAAkB;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,WAAW;QACX,WAAW;QACX,WAAW;QACX,iBAAiB;KACjB,CAAC;AACH,CAAC,CAAC"}
@@ -33,6 +33,7 @@ export interface AppMetadata extends AppIdentifier {
33
33
  readonly icons?: Array<Icon>;
34
34
  /** A list of image URLs for the application that can be used to render UI elements */
35
35
  readonly images?: Array<Image>;
36
+ readonly screenshots?: Array<Icon>;
36
37
  /** The type of output returned for any intent specified during resolution. May express a particular context type (e.g. "fdc3.instrument"), channel (e.g. "channel") or a channel that will receive a specified type (e.g. "channel<fdc3.instrument>"). */
37
38
  readonly resultType?: string | null;
38
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AppMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/AppMetadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;;;;;;GAMG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;IACjD;;;;KAII;IACJ,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB,sCAAsC;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B,mMAAmM;IACnM,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEhD,qFAA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,CAAC,IAAI,CAAC,CAAC;IAE7B,sFAAsF;IACtF,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/B,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEnC,0PAA0P;IAC1P,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}
@@ -0,0 +1,9 @@
1
+ export declare type StandardError = Error | string | null | undefined;
2
+ export declare type StandardErrorCallback<R = any> = (err: StandardError, response?: R) => void;
3
+ export declare type StandardPromise<R = any> = Promise<{
4
+ err?: StandardError;
5
+ data?: R;
6
+ }>;
7
+ export declare type StandardCallback<E = StandardError, R = any> = (err: E, response?: R) => void;
8
+ export declare type Manifest = Record<string, any>;
9
+ //# sourceMappingURL=typedoc-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typedoc-types.d.ts","sourceRoot":"","sources":["../../src/typedoc-types.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAG9D,oBAAY,qBAAqB,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAGxF,oBAAY,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,CAAC;IAC9C,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,CAAC,CAAC;CACT,CAAC,CAAC;AAGH,oBAAY,gBAAgB,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAG1F,oBAAY,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ // This page lists common types that are used repeatedly by the clients. These types have been isolated
2
+ // into a single entrypoint for TypeDocs to pull into the API docs.
3
+ // These used to live in main.ts or types.ts, but using either of those as entry points pulled a large
4
+ // amount of irrelevant type info into the docs. These have been isolated to keep things clean.
5
+ export {};
6
+ //# sourceMappingURL=typedoc-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typedoc-types.js","sourceRoot":"","sources":["../../src/typedoc-types.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,mEAAmE;AACnE,sGAAsG;AACtG,+FAA+F"}
package/types.d.ts CHANGED
@@ -1,23 +1,17 @@
1
+ import { StandardError } from "./typedoc-types";
1
2
  export { StoreModel } from "./clients/StoreModel";
2
3
  export { FDC3 } from "./typedefs";
3
4
  export declare type CallbackError = {
4
5
  message: string;
5
6
  code: string;
6
7
  };
7
- export declare type StandardError = Error | string | null | undefined;
8
- export declare type StandardErrorCallback<R = any> = (err: StandardError, response?: R) => void;
9
- export declare type StandardPromise<R = any> = Promise<{
10
- err?: StandardError;
11
- data?: R;
12
- }>;
8
+ export { AppDefinition, SelectConnectAppList } from "./platform/services/Interop/types";
9
+ export declare type FinsembleConfig = Record<string, any>;
10
+ export declare type AppConfig = Record<string, any>;
13
11
  export declare type StandardResponse<R = any> = {
14
12
  err?: StandardError;
15
13
  data?: R;
16
14
  };
17
- export declare type StandardCallback<E = StandardError, R = any> = (err: E, response?: R) => void;
18
- export declare type Manifest = Record<string, any>;
19
- export declare type FinsembleConfig = Record<string, any>;
20
- export declare type AppConfig = Record<string, any>;
21
- export { AppDefinition, SelectConnectAppList } from "./platform/services/Interop/types";
15
+ export * from "./typedoc-types";
22
16
  export * from "./platform/services/config/types";
23
17
  //# sourceMappingURL=types.d.ts.map
package/types.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAI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AAM,sBAAsB,CAAC;AAIlD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,oBAAY,aAAa,GAAG;IAE3B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAExF,oBAAY,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAElD,oBAAY,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE5C,oBAAY,gBAAgB,CAAC,CAAC,GAAG,GAAG,IAAI;IACvC,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,cAAc,iBAAiB,CAAC;AAChC,cAAc,kCAAkC,CAAC"}
package/types.js CHANGED
@@ -1,6 +1,8 @@
1
+ // This should be converted to an interface so that StoreModel and it's dependencies aren't exported
1
2
  export { StoreModel } from "./clients/StoreModel";
2
3
  // This is for backward compatibility only, forcing typedefs to be compiled and packaged.
3
4
  // Use @finos/fdc3 instead of typedefs
4
5
  export { FDC3 } from "./typedefs";
6
+ export * from "./typedoc-types";
5
7
  export * from "./platform/services/config/types";
6
8
  //# sourceMappingURL=types.js.map
package/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,yFAAyF;AACzF,sCAAsC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAsClC,cAAc,kCAAkC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,oGAAoG;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,yFAAyF;AACzF,sCAAsC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAqBlC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kCAAkC,CAAC"}