@finsemble/finsemble-ui 6.3.2 → 6.5.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 (448) hide show
  1. package/package.json +31 -42
  2. package/react/actions/smartDesktopDesignerActions.d.ts +6 -4
  3. package/react/actions/smartDesktopDesignerActions.js +2 -1
  4. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  5. package/react/assets/css/userPreferences.css +0 -30
  6. package/react/assets/css/windowTitleBar.css +6 -5
  7. package/react/assets/icons/always-on-top.svg +20 -0
  8. package/react/assets/icons/caret.svg +7 -0
  9. package/react/assets/icons/close.svg +11 -0
  10. package/react/assets/icons/code-block.svg +15 -0
  11. package/react/assets/icons/documentation.svg +20 -0
  12. package/react/assets/icons/linker.svg +18 -0
  13. package/react/assets/icons/maximize.svg +16 -0
  14. package/react/assets/icons/minimize.svg +15 -0
  15. package/react/assets/icons/toolbar.svg +12 -0
  16. package/react/assets/img/finsemble-display.png +0 -0
  17. package/react/componentTemplateGenerator.js +1 -1
  18. package/react/componentTemplateGenerator.js.map +1 -1
  19. package/react/components/FinsembleProvider.js.map +1 -1
  20. package/react/components/appCatalog/modules/FDC3.d.ts +1 -1
  21. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  22. package/react/components/appCatalog/stores/appStore.d.ts +2 -2
  23. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  24. package/react/components/common/Accordion.d.ts +11 -0
  25. package/react/components/common/Accordion.js +20 -0
  26. package/react/components/common/Accordion.js.map +1 -0
  27. package/react/components/common/Checkbox.d.ts +1 -0
  28. package/react/components/common/Checkbox.js +4 -2
  29. package/react/components/common/Checkbox.js.map +1 -1
  30. package/react/components/common/DropZone.js +3 -1
  31. package/react/components/common/DropZone.js.map +1 -1
  32. package/react/components/common/FileInput.d.ts +2 -1
  33. package/react/components/common/FileInput.js +9 -4
  34. package/react/components/common/FileInput.js.map +1 -1
  35. package/react/components/common/FinsembleIcon.d.ts +1 -1
  36. package/react/components/common/FinsembleIcon.js +18 -0
  37. package/react/components/common/FinsembleIcon.js.map +1 -1
  38. package/react/components/common/FinsembleSelect.js +1 -1
  39. package/react/components/common/FinsembleSelect.js.map +1 -1
  40. package/react/components/common/Header.js +1 -1
  41. package/react/components/common/Header.js.map +1 -1
  42. package/react/components/common/InputTable.d.ts +11 -0
  43. package/react/components/common/InputTable.js +50 -0
  44. package/react/components/common/InputTable.js.map +1 -0
  45. package/react/components/common/Tooltip.js +3 -1
  46. package/react/components/common/Tooltip.js.map +1 -1
  47. package/react/components/common/css/accordion.css +99 -0
  48. package/react/components/common/css/application-edit-page.css +209 -2
  49. package/react/components/common/css/application-list.css +6 -0
  50. package/react/components/common/css/button.css +9 -7
  51. package/react/components/common/css/checkbox.css +30 -0
  52. package/react/components/common/css/file-input.css +16 -0
  53. package/react/components/common/css/header.css +1 -14
  54. package/react/components/common/css/preload-edit-page.css +37 -0
  55. package/react/components/common/css/styles.css +0 -1
  56. package/react/components/common/css/tab.css +1 -1
  57. package/react/components/common/stories/Accordion.stories.d.ts +14 -0
  58. package/react/components/common/stories/Accordion.stories.js +42 -0
  59. package/react/components/common/stories/Accordion.stories.js.map +1 -0
  60. package/react/components/common/stories/DropdownButton.stories.d.ts +11 -0
  61. package/react/components/common/stories/DropdownButton.stories.js +12 -0
  62. package/react/components/common/stories/DropdownButton.stories.js.map +1 -1
  63. package/react/components/common/stories/FileInput.stories.d.ts +2 -1
  64. package/react/components/common/stories/FileInput.stories.js +6 -0
  65. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  66. package/react/components/common/stories/FinsembleIcon.stories.js +1 -0
  67. package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
  68. package/react/components/common/stories/InputTable.stories.d.ts +12 -0
  69. package/react/components/common/stories/InputTable.stories.js +35 -0
  70. package/react/components/common/stories/InputTable.stories.js.map +1 -0
  71. package/react/components/{smartDesktopDesigner/tests/ApplicationEdit.spec.d.ts → common/tests/Accordion.spec.d.ts} +0 -0
  72. package/react/components/common/tests/Accordion.spec.js +53 -0
  73. package/react/components/common/tests/Accordion.spec.js.map +1 -0
  74. package/react/components/common/tests/Checkbox.spec.js +5 -3
  75. package/react/components/common/tests/Checkbox.spec.js.map +1 -1
  76. package/react/components/common/tests/FileInput.spec.js +20 -5
  77. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  78. package/react/components/common/tests/Header.spec.js +6 -2
  79. package/react/components/common/tests/Header.spec.js.map +1 -1
  80. package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.d.ts → common/tests/InputTable.spec.d.ts} +0 -0
  81. package/react/components/common/tests/InputTable.spec.js +166 -0
  82. package/react/components/common/tests/InputTable.spec.js.map +1 -0
  83. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  84. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  85. package/react/components/fdc3Resolver/ResolverDialog.js +1 -1
  86. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  87. package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
  88. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  89. package/react/components/fdc3Resolver/ResolverDialog.stories.js +13 -0
  90. package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
  91. package/react/components/legacyControls/FinsembleDialogButton.js +1 -1
  92. package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
  93. package/react/components/legacyControls/FinsembleDnDContext.d.ts +2 -1
  94. package/react/components/legacyControls/FinsembleDnDContext.js +8 -6
  95. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  96. package/react/components/linker/remoteRedux.d.ts +1 -1
  97. package/react/components/linker/remoteRedux.js.map +1 -1
  98. package/react/components/menu/Menu.d.ts +1 -0
  99. package/react/components/menu/Menu.js.map +1 -1
  100. package/react/components/menu/MenuAutoResizer.d.ts +2 -1
  101. package/react/components/menu/MenuAutoResizer.js +4 -3
  102. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  103. package/react/components/menu/MenuPortal.js +118 -92
  104. package/react/components/menu/MenuPortal.js.map +1 -1
  105. package/react/components/menu/MenuShell.d.ts +1 -0
  106. package/react/components/menu/MenuShell.js +3 -2
  107. package/react/components/menu/MenuShell.js.map +1 -1
  108. package/react/components/menu/menuContext.d.ts +1 -0
  109. package/react/components/menu/menuContext.js.map +1 -1
  110. package/react/components/menu/menuHelpers.d.ts +1 -1
  111. package/react/components/menu/menuHelpers.js +2 -2
  112. package/react/components/menu/menuHelpers.js.map +1 -1
  113. package/react/components/notifications/components/drawer/DrawerControls.js +30 -6
  114. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  115. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +2 -0
  116. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  117. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +20 -27
  118. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  119. package/react/components/notifications/components/shared/CheckButton.d.ts +1 -1
  120. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  121. package/react/components/notifications/components/shared/IconButton.js +5 -1
  122. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  123. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
  124. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  125. package/react/components/notifications/components/shared/OverflowMenu.d.ts +1 -1
  126. package/react/components/notifications/components/shared/OverflowMenu.js +5 -1
  127. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  128. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +1 -1
  129. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  130. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +1 -1
  131. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  132. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
  133. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  134. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
  135. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  136. package/react/components/notifications/components/views/CardView.js.map +1 -1
  137. package/react/components/notifications/components/views/ListView.d.ts +1 -1
  138. package/react/components/notifications/components/views/ListView.js.map +1 -1
  139. package/react/components/notifications/components/views/NotificationDetailsView.d.ts +1 -1
  140. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  141. package/react/components/notifications/types.d.ts +1 -1
  142. package/react/components/notifications/types.js.map +1 -1
  143. package/react/components/notifications/utils.d.ts +1 -1
  144. package/react/components/notifications/utils.js.map +1 -1
  145. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  146. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  147. package/react/components/processMonitor/components/ListHeader.d.ts +1 -1
  148. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  149. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +3 -3
  150. package/react/components/processMonitor/stores/ProcessMonitorStore.js +49 -49
  151. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  152. package/react/components/search/SearchResult.js +4 -3
  153. package/react/components/search/SearchResult.js.map +1 -1
  154. package/react/components/shared/DefaultDropdownButton.js +1 -1
  155. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  156. package/react/components/smartDesktopDesigner/AddApp.d.ts +14 -0
  157. package/react/components/smartDesktopDesigner/AddApp.js +60 -0
  158. package/react/components/smartDesktopDesigner/AddApp.js.map +1 -0
  159. package/react/components/smartDesktopDesigner/AppEditAccess.js +16 -32
  160. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
  161. package/react/components/smartDesktopDesigner/AppEditPage.d.ts +6 -19
  162. package/react/components/smartDesktopDesigner/AppEditPage.js +552 -59
  163. package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
  164. package/react/components/smartDesktopDesigner/Appearance.css +8 -67
  165. package/react/components/smartDesktopDesigner/Appearance.js +1 -1
  166. package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
  167. package/react/components/smartDesktopDesigner/Application.d.ts +11 -3
  168. package/react/components/smartDesktopDesigner/Application.js +155 -104
  169. package/react/components/smartDesktopDesigner/Application.js.map +1 -1
  170. package/react/components/smartDesktopDesigner/Applications.d.ts +2 -3
  171. package/react/components/smartDesktopDesigner/Applications.js +67 -107
  172. package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
  173. package/react/components/smartDesktopDesigner/Authentication.js +2 -9
  174. package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
  175. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +8 -1
  176. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
  177. package/react/components/smartDesktopDesigner/ContentHeader.d.ts +5 -0
  178. package/react/components/smartDesktopDesigner/ContentHeader.js +10 -0
  179. package/react/components/smartDesktopDesigner/ContentHeader.js.map +1 -0
  180. package/react/components/smartDesktopDesigner/CurrentView.js +2 -1
  181. package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
  182. package/react/components/smartDesktopDesigner/EditPreload.d.ts +14 -0
  183. package/react/components/smartDesktopDesigner/EditPreload.js +169 -0
  184. package/react/components/smartDesktopDesigner/EditPreload.js.map +1 -0
  185. package/react/components/smartDesktopDesigner/Export.d.ts +1 -0
  186. package/react/components/smartDesktopDesigner/Export.js +40 -9
  187. package/react/components/smartDesktopDesigner/Export.js.map +1 -1
  188. package/react/components/smartDesktopDesigner/ExportCloud.d.ts +3 -1
  189. package/react/components/smartDesktopDesigner/ExportCloud.js +4 -6
  190. package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
  191. package/react/components/smartDesktopDesigner/ExportZip.d.ts +3 -1
  192. package/react/components/smartDesktopDesigner/ExportZip.js +8 -3
  193. package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
  194. package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -0
  195. package/react/components/smartDesktopDesigner/GettingStarted.js +11 -25
  196. package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
  197. package/react/components/smartDesktopDesigner/ItemList.d.ts +17 -0
  198. package/react/components/smartDesktopDesigner/ItemList.js +58 -0
  199. package/react/components/smartDesktopDesigner/ItemList.js.map +1 -0
  200. package/react/components/smartDesktopDesigner/Navigation.d.ts +2 -2
  201. package/react/components/smartDesktopDesigner/Navigation.js +17 -15
  202. package/react/components/smartDesktopDesigner/Navigation.js.map +1 -1
  203. package/react/components/smartDesktopDesigner/OptionalSettingsView.d.ts +11 -0
  204. package/react/components/smartDesktopDesigner/OptionalSettingsView.js +71 -0
  205. package/react/components/smartDesktopDesigner/OptionalSettingsView.js.map +1 -0
  206. package/react/components/smartDesktopDesigner/Preloads.d.ts +8 -0
  207. package/react/components/smartDesktopDesigner/Preloads.js +26 -0
  208. package/react/components/smartDesktopDesigner/Preloads.js.map +1 -0
  209. package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
  210. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +3 -3
  211. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +11 -17
  212. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  213. package/react/components/smartDesktopDesigner/ThemePage.css +0 -1
  214. package/react/components/smartDesktopDesigner/ThemePage.js +0 -7
  215. package/react/components/smartDesktopDesigner/ThemePage.js.map +1 -1
  216. package/react/components/smartDesktopDesigner/Themes.js +0 -2
  217. package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
  218. package/react/components/smartDesktopDesigner/Toolbar.d.ts +15 -0
  219. package/react/components/smartDesktopDesigner/Toolbar.js +123 -0
  220. package/react/components/smartDesktopDesigner/Toolbar.js.map +1 -0
  221. package/react/components/smartDesktopDesigner/View.js +1 -1
  222. package/react/components/smartDesktopDesigner/View.js.map +1 -1
  223. package/react/components/smartDesktopDesigner/common/fsbl_functions.d.ts +1 -1
  224. package/react/components/smartDesktopDesigner/common/fsbl_functions.js +2 -2
  225. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +1 -1
  226. package/react/components/smartDesktopDesigner/common/views.d.ts +2 -36
  227. package/react/components/smartDesktopDesigner/common/views.js +168 -111
  228. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  229. package/react/components/smartDesktopDesigner/css/appearance.css +20 -9
  230. package/react/components/smartDesktopDesigner/css/applications.css +40 -0
  231. package/react/components/smartDesktopDesigner/css/authentication.css +5 -11
  232. package/react/components/smartDesktopDesigner/css/export.css +32 -19
  233. package/react/components/smartDesktopDesigner/css/getting-started.css +22 -0
  234. package/react/components/smartDesktopDesigner/css/nav.css +38 -11
  235. package/react/components/smartDesktopDesigner/css/project-header.css +19 -16
  236. package/react/components/smartDesktopDesigner/css/styles.css +2 -3
  237. package/react/components/smartDesktopDesigner/css/views.css +11 -4
  238. package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +3 -1
  239. package/react/components/smartDesktopDesigner/fixtures/apps.js +63 -6
  240. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
  241. package/react/components/smartDesktopDesigner/fixtures/exportProps.js +3 -0
  242. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
  243. package/react/components/smartDesktopDesigner/fixtures/preloads.d.ts +22 -0
  244. package/react/components/smartDesktopDesigner/fixtures/preloads.js +40 -0
  245. package/react/components/smartDesktopDesigner/fixtures/preloads.js.map +1 -0
  246. package/react/components/smartDesktopDesigner/fixtures/publishProgress.d.ts +1 -1
  247. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
  248. package/react/components/smartDesktopDesigner/fixtures/views.d.ts +2 -2
  249. package/react/components/smartDesktopDesigner/fixtures/views.js +67 -26
  250. package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
  251. package/react/components/smartDesktopDesigner/sdd_helpers.d.ts +1 -1
  252. package/react/components/smartDesktopDesigner/sdd_helpers.js +4 -3
  253. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
  254. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -1
  255. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +13 -33
  256. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
  257. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.d.ts +10 -0
  258. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js +13 -0
  259. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +1 -0
  260. package/react/components/smartDesktopDesigner/stories/EditPreload.stories.d.ts +11 -0
  261. package/react/components/smartDesktopDesigner/stories/EditPreload.stories.js +35 -0
  262. package/react/components/smartDesktopDesigner/stories/EditPreload.stories.js.map +1 -0
  263. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.d.ts +1 -1
  264. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +1 -1
  265. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
  266. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.d.ts +1 -1
  267. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +1 -1
  268. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
  269. package/react/components/smartDesktopDesigner/stories/ItemList.stories.d.ts +16 -0
  270. package/react/components/smartDesktopDesigner/stories/{ApplicationList.stories.js → ItemList.stories.js} +30 -23
  271. package/react/components/smartDesktopDesigner/stories/ItemList.stories.js.map +1 -0
  272. package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.d.ts +11 -0
  273. package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.js +28 -0
  274. package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.js.map +1 -0
  275. package/react/components/smartDesktopDesigner/stories/Preloads.stories.d.ts +11 -0
  276. package/react/components/smartDesktopDesigner/stories/Preloads.stories.js +31 -0
  277. package/react/components/smartDesktopDesigner/stories/Preloads.stories.js.map +1 -0
  278. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +7 -1
  279. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
  280. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.d.ts +14 -0
  281. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js +38 -0
  282. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +1 -0
  283. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +1100 -308
  284. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
  285. package/react/components/smartDesktopDesigner/tests/{ApplicationSetup.spec.d.ts → Application.spec.d.ts} +0 -0
  286. package/react/components/smartDesktopDesigner/tests/Application.spec.js +1496 -0
  287. package/react/components/smartDesktopDesigner/tests/Application.spec.js.map +1 -0
  288. package/react/components/smartDesktopDesigner/tests/Applications.spec.d.ts +1 -1
  289. package/react/components/smartDesktopDesigner/tests/Applications.spec.js +62 -561
  290. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
  291. package/react/components/smartDesktopDesigner/tests/{ProjectHeader.spec.d.ts → ContentHeader.spec.d.ts} +0 -0
  292. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js +31 -0
  293. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +1 -0
  294. package/react/components/smartDesktopDesigner/tests/EditPreload.spec.d.ts +1 -0
  295. package/react/components/smartDesktopDesigner/tests/EditPreload.spec.js +61 -0
  296. package/react/components/smartDesktopDesigner/tests/EditPreload.spec.js.map +1 -0
  297. package/react/components/smartDesktopDesigner/tests/Export.spec.js +129 -0
  298. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
  299. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +7 -0
  300. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
  301. package/react/components/smartDesktopDesigner/tests/ItemList.spec.d.ts +1 -0
  302. package/react/components/smartDesktopDesigner/tests/{ApplicationList.spec.js → ItemList.spec.js} +8 -8
  303. package/react/components/smartDesktopDesigner/tests/ItemList.spec.js.map +1 -0
  304. package/react/components/smartDesktopDesigner/tests/Preloads.spec.d.ts +1 -0
  305. package/react/components/smartDesktopDesigner/tests/Preloads.spec.js +47 -0
  306. package/react/components/smartDesktopDesigner/tests/Preloads.spec.js.map +1 -0
  307. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +3 -14
  308. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
  309. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +7 -30
  310. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
  311. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.d.ts +1 -0
  312. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js +203 -0
  313. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +1 -0
  314. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.d.ts +1 -0
  315. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js +18 -0
  316. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +1 -0
  317. package/react/components/toolbar/DragHandle.spec.d.ts +1 -0
  318. package/react/components/toolbar/DragHandle.spec.js +31 -0
  319. package/react/components/toolbar/DragHandle.spec.js.map +1 -0
  320. package/react/components/toolbar/DragHandle.stories.d.ts +13 -0
  321. package/react/components/toolbar/DragHandle.stories.js +39 -0
  322. package/react/components/toolbar/DragHandle.stories.js.map +1 -0
  323. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
  324. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  325. package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +1 -1
  326. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  327. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  328. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +1 -1
  329. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +47 -45
  330. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  331. package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +1 -1
  332. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  333. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +2 -2
  334. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  335. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  336. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  337. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +1 -0
  338. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
  339. package/react/components/toolbar/appLauncher/components/componentList.d.ts +2 -2
  340. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  341. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +3 -2
  342. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +17 -34
  343. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  344. package/react/components/toolbar/dashbar/Dashbar.js +12 -13
  345. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  346. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +2 -2
  347. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  348. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  349. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  350. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  351. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  352. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +4 -4
  353. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +1 -1
  354. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  355. package/react/components/userPreferences/components/content/Workspaces.d.ts +1 -1
  356. package/react/components/userPreferences/components/content/Workspaces.js +1 -1
  357. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  358. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  359. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  360. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +1 -1
  361. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  362. package/react/components/userPreferences/tests/ScheduledRestart.spec.js +1 -1
  363. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  364. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +4 -2
  365. package/react/components/windowTitleBar/WindowTitleBarShell.js +60 -52
  366. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  367. package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -1
  368. package/react/components/windowTitleBar/components/center/Tab.js +2 -2
  369. package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
  370. package/react/components/windowTitleBar/components/center/TabList.d.ts +2 -3
  371. package/react/components/windowTitleBar/components/center/TabList.js +19 -79
  372. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  373. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  374. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  375. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +7 -0
  376. package/react/components/windowTitleBar/components/right/MaximizeButton.js +11 -1
  377. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  378. package/react/components/windowTitleBar/components/windowTitle.d.ts +9 -5
  379. package/react/components/windowTitleBar/components/windowTitle.js +154 -42
  380. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  381. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +3 -3
  382. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +214 -214
  383. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  384. package/react/enzymeSetup.js +1 -1
  385. package/react/enzymeSetup.js.map +1 -1
  386. package/react/hooks/useDashbar.d.ts +8 -0
  387. package/react/hooks/useDashbar.js +104 -0
  388. package/react/hooks/useDashbar.js.map +1 -0
  389. package/react/hooks/useFavoritesShell.js.map +1 -1
  390. package/react/hooks/useNotifications.d.ts +1 -1
  391. package/react/hooks/useNotifications.js.map +1 -1
  392. package/react/hooks/useToolbar.d.ts +0 -6
  393. package/react/hooks/useToolbar.js +0 -101
  394. package/react/hooks/useToolbar.js.map +1 -1
  395. package/react/reducers/rootReducer.d.ts +11 -7
  396. package/react/reducers/smartDesktopDesignerReducer.js +8 -3
  397. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  398. package/react/store.d.ts +22 -14
  399. package/react/types/fdc3.d.ts +7 -35
  400. package/react/types/fdc3.js.map +1 -1
  401. package/react/types/searchTypes.d.ts +1 -8
  402. package/react/types/searchTypes.js.map +1 -1
  403. package/react/types/smartDesktopDesignerTypes.d.ts +52 -6
  404. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  405. package/react/types/windowTitleBar.d.ts +4 -2
  406. package/react/types/windowTitleBar.js.map +1 -1
  407. package/react/components/common/FontSizeSelector.d.ts +0 -7
  408. package/react/components/common/FontSizeSelector.js +0 -42
  409. package/react/components/common/FontSizeSelector.js.map +0 -1
  410. package/react/components/common/stories/FontSizeSelector.stories.d.ts +0 -12
  411. package/react/components/common/stories/FontSizeSelector.stories.js +0 -24
  412. package/react/components/common/stories/FontSizeSelector.stories.js.map +0 -1
  413. package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +0 -25
  414. package/react/components/smartDesktopDesigner/ApplicationEdit.js +0 -103
  415. package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +0 -1
  416. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +0 -15
  417. package/react/components/smartDesktopDesigner/ApplicationList.js +0 -56
  418. package/react/components/smartDesktopDesigner/ApplicationList.js.map +0 -1
  419. package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +0 -23
  420. package/react/components/smartDesktopDesigner/ApplicationSetup.js +0 -73
  421. package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +0 -1
  422. package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +0 -14
  423. package/react/components/smartDesktopDesigner/ProjectHeader.js +0 -70
  424. package/react/components/smartDesktopDesigner/ProjectHeader.js.map +0 -1
  425. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.d.ts +0 -4
  426. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +0 -45
  427. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +0 -1
  428. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.d.ts +0 -3
  429. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +0 -29
  430. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +0 -1
  431. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.d.ts +0 -12
  432. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +0 -21
  433. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +0 -1
  434. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +0 -15
  435. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
  436. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.d.ts +0 -12
  437. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +0 -28
  438. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +0 -1
  439. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +0 -10
  440. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +0 -19
  441. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +0 -1
  442. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +0 -66
  443. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +0 -1
  444. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
  445. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +0 -41
  446. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +0 -1
  447. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +0 -27
  448. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +0 -1
@@ -1,11 +1,5 @@
1
1
  import { useEffect } from "react";
2
- import { useDeepEffect } from "./useDeepEffect";
3
- import { useSelector } from "../store";
4
- import { ToolbarActions } from "../actions/toolbarActions";
5
2
  import { openQuitConfirmationDialog } from "../components/shared/openQuitConfirmationDialog";
6
- import { useDispatch } from "react-redux";
7
- let storageIsInitialized = false;
8
- let DashbarStore;
9
3
  const bringToolbarToFront = ({ focus }) => {
10
4
  finsembleWindow.bringToFront(null, (err) => {
11
5
  if (err) {
@@ -78,7 +72,6 @@ const preventSystemClose = () => {
78
72
  window.onbeforeunload = onBeforeToolbarUnload;
79
73
  };
80
74
  export const useToolbar = () => {
81
- const dispatch = useDispatch();
82
75
  useEffect(() => {
83
76
  preventMinimize();
84
77
  publishSystemCheckpoint();
@@ -86,100 +79,7 @@ export const useToolbar = () => {
86
79
  preventSystemClose();
87
80
  }
88
81
  }, []);
89
- const setDashbarItem = (itemName, availableDashbarItems, newDashbarItems) => {
90
- if (availableDashbarItems.hasOwnProperty(itemName)) {
91
- const newItem = availableDashbarItems[itemName];
92
- newItem.id = itemName;
93
- newDashbarItems.push(newItem);
94
- }
95
- };
96
- async function setDashbarItems(_, data) {
97
- const { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({
98
- field: "finsemble.availableDashbarItems",
99
- });
100
- const newDashbarItems = [];
101
- data.value.forEach((item) => setDashbarItem(item, availableDashbarItems, newDashbarItems));
102
- dispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));
103
- }
104
- useDeepEffect(() => {
105
- async function createStoreAndFetchDashbarItems() {
106
- try {
107
- FSBL.Clients.RouterClient.subscribe("distributedStoresLoading", (subscribeErr, notify) => {
108
- if (!subscribeErr && notify.data.State === "done") {
109
- if (storageIsInitialized)
110
- return;
111
- storageIsInitialized = true;
112
- FSBL.Clients.DistributedStoreClient.createStore({
113
- store: "Finsemble-Dashbar-Store",
114
- global: true,
115
- persist: true,
116
- }, async (getDashbarStoreErr, store) => {
117
- if (getDashbarStoreErr) {
118
- FSBL.Clients.Logger.system.error("Error initializing dashbar: unable to retrieve stored items, falling back to config", getDashbarStoreErr);
119
- }
120
- DashbarStore = store;
121
- const { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({
122
- field: "finsemble.availableDashbarItems",
123
- });
124
- let dashbarItemList;
125
- if (DashbarStore && Object.keys(DashbarStore.values).length > 0) {
126
- ({ dashbaritems: dashbarItemList } = DashbarStore.values);
127
- }
128
- if (!dashbarItemList) {
129
- const spawnData = FSBL.Clients.WindowClient.getSpawnData();
130
- if (spawnData.hasOwnProperty("dashbar") &&
131
- spawnData.dashbar.hasOwnProperty("items") &&
132
- Array.isArray(spawnData.dashbar.items)) {
133
- dashbarItemList = spawnData.dashbar.items;
134
- }
135
- }
136
- if (!dashbarItemList)
137
- dashbarItemList = [];
138
- const newDashbarItems = [];
139
- if (dashbarItemList.length > 0) {
140
- dashbarItemList.forEach((itemName) => setDashbarItem(itemName, availableDashbarItems, newDashbarItems));
141
- }
142
- if (!DashbarStore.values.dashbaritems) {
143
- DashbarStore.setValue({
144
- field: "dashbaritems",
145
- value: dashbarItemList,
146
- });
147
- }
148
- else {
149
- dispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));
150
- }
151
- DashbarStore.addListener({ field: "dashbaritems" }, setDashbarItems);
152
- });
153
- }
154
- });
155
- }
156
- catch (majorErr) {
157
- return FSBL.Clients.Logger.system.error(`Fatal error retrieving dashbar items`, majorErr);
158
- }
159
- }
160
- if (!storageIsInitialized) {
161
- createStoreAndFetchDashbarItems();
162
- }
163
- return function cleanup() {
164
- DashbarStore.removeListener({ field: "dashbaritems" }, setDashbarItems);
165
- };
166
- }, [dispatch]);
167
- const { dashbarItems } = useSelector((state) => state.toolbar);
168
- const reorderDashbarItems = ({ oldIndex, newIndex }) => {
169
- const dashbarItemsNewOrder = [...dashbarItems];
170
- const dashbarItemToMove = dashbarItemsNewOrder[oldIndex];
171
- dashbarItemsNewOrder.splice(oldIndex, 1);
172
- dashbarItemsNewOrder.splice(newIndex, 0, dashbarItemToMove);
173
- const newOrderList = dashbarItemsNewOrder.map((dashbarItem) => dashbarItem.id);
174
- DashbarStore.setValue({
175
- field: "dashbaritems",
176
- value: newOrderList,
177
- }, () => {
178
- dispatch(ToolbarActions.REORDER_DASHBAR_ITEMS({ oldIndex, newIndex }));
179
- });
180
- };
181
82
  return {
182
- dashbarItems,
183
83
  removeSystemClosePrevention,
184
84
  preventSystemClose,
185
85
  minimizeAllWindows,
@@ -187,7 +87,6 @@ export const useToolbar = () => {
187
87
  toggleAutoArrange,
188
88
  showToolbar,
189
89
  hideToolbar,
190
- reorderDashbarItems,
191
90
  launchPreferences,
192
91
  };
193
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useToolbar.js","sourceRoot":"","sources":["../../src/hooks/useToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,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CAAC,CAAC;IAEf,MAAM,EAAE,YAAY,EAAE,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAE/D,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAA0C,EAAE,EAAE;QAC9F,MAAM,oBAAoB,GAAG,CAAC,GAAG,YAAY,CAAC,CAAC;QAC/C,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QACzD,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACzC,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;QAE5D,MAAM,YAAY,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAE/E,YAAY,CAAC,QAAQ,CACpB;YACC,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE,YAAY;SACnB,EACD,GAAG,EAAE;YACJ,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;QACxE,CAAC,CACD,CAAC;IACH,CAAC,CAAC;IAEF,OAAO;QACN,YAAY;QACZ,2BAA2B;QAC3B,kBAAkB;QAClB,kBAAkB;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,WAAW;QACX,WAAW;QACX,mBAAmB;QACnB,iBAAiB;KACjB,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { useEffect } from \"react\";\nimport { useDeepEffect } from \"./useDeepEffect\";\nimport { useSelector } from \"../store\";\nimport { ToolbarActions } from \"../actions/toolbarActions\";\nimport { openQuitConfirmationDialog } from \"../components/shared/openQuitConfirmationDialog\";\nimport { useDispatch } from \"react-redux\";\nimport { DashbarItem } from \"../types/dashbarTypes\";\nimport { types } from \"@finsemble/finsemble-core\";\n\ntype StandardError = types.StandardError;\n\nlet storageIsInitialized: boolean = false;\n\ntype DashbarStoreValueType = {\n\tdashbaritems: DashbarItem[];\n};\n\ntype DashbarStoreType = {\n\tname: string;\n\tsetValue: Function;\n\tsetValues: Function;\n\taddListener: Function;\n\tremoveListener: Function;\n\tvalues: DashbarStoreValueType;\n};\n\nlet DashbarStore: DashbarStoreType;\n\n/**\n * Function to bring toolbar to front (since dockable toolbar can be hidden)\n * @param {boolean} focus If true, will also focus the toolbar\n */\nconst bringToolbarToFront = ({ focus }: { focus: boolean }) => {\n\tfinsembleWindow.bringToFront(null, (err: any) => {\n\t\tif (err) {\n\t\t\tFSBL.Clients.Logger.system.error(\"bringToolbarToFront failed, error:\", err);\n\t\t}\n\n\t\tif (focus) {\n\t\t\tfinsembleWindow.focus();\n\t\t}\n\t});\n};\n\n/**\n * Hides the toolbar\n */\nconst hideToolbar = () => {\n\tfinsembleWindow.blur();\n\tfinsembleWindow.hide();\n};\n\n/**\n * Shows the toolbar left-aligned to the user's mouse.\n */\nconst showToolbar = () => {\n\tFSBL.Clients.RouterClient.transmit(\"DockingService.showAtMousePosition\", {\n\t\twindowName: finsembleWindow.name,\n\t\tuuid: finsembleWindow.uuid,\n\t});\n\tbringToolbarToFront({ focus: true });\n};\n\n/**\n * Mimimizes all windows.\n */\nconst minimizeAllWindows = () => {\n\tFSBL.Clients.WorkspaceClient.minimizeAll();\n};\n\n/**\n * Brings all windows to front.\n */\nconst revealAllWindows = () => {\n\tFSBL.Clients.WorkspaceClient.bringWindowsToFront();\n};\n\n/**\n * Toggles Auto Arrange for all windows on the same monitor as the toolbar\n */\nconst toggleAutoArrange = () => {\n\tFSBL.Clients.WorkspaceClient.autoArrange({}, () => {\n\t\t// This is legacy and we're not sure if it's still required or not.\n\t\t// We can try eliminating this once core auto arrange is refactored.\n\t\tbringToolbarToFront({ focus: false });\n\t\trevealAllWindows();\n\t});\n};\n\n/**\n * It's a requirement that the toolbar not be minimized.\n * the minimizable option does not work.\n * Instead, we just listen for this event and restore the window.\n */\nconst preventMinimize = () => {\n\tfinsembleWindow.addEventListener(\"minimized\", () => {\n\t\tfinsembleWindow.restore();\n\t});\n};\n\n/**\n * Required to let the system know that the toolbar is up and ready.\n * Other pieces of the UI key off of this.\n */\nconst publishSystemCheckpoint = () => {\n\tFSBL.SystemManagerClient.publishCheckpointState(\"Toolbar\", \"initialize\", \"completed\");\n};\n\n/**\n * Prevents closing of the window.\n */\nconst onBeforeToolbarUnload = () => {\n\topenQuitConfirmationDialog();\n\t// Return of a non-void value (in this `onbeforeunload` handler) is what tells Electron not to close the window.\n\t// Don't delete this!\n\treturn false;\n};\n\nconst removeSystemClosePrevention = () => {\n\tif (window.onbeforeunload === onBeforeToolbarUnload) {\n\t\twindow.onbeforeunload = null;\n\t}\n};\n\nconst launchPreferences = (tabName: string) => {\n\tFSBL.Clients.RouterClient.transmit(\"FinsembleUserPreferencesChannel\", {\n\t\tpreferencesTab: tabName,\n\t});\n\tFSBL.Clients.LauncherClient.showWindow(\n\t\t{\n\t\t\tcomponentType: \"UserPreferences\",\n\t\t},\n\t\t{\n\t\t\tmonitor: \"mine\",\n\t\t\tleft: \"center\",\n\t\t\ttop: \"center\",\n\t\t}\n\t);\n};\n\n/**\n * Prevents the window from going down on alt+f4 or closing from taskbar.\n * Pops up a dialog asking if the user meant to shut down the system.\n */\nconst preventSystemClose = () => {\n\t// This function was already called, so no need to run it again.\n\tif (window.onbeforeunload === onBeforeToolbarUnload) return;\n\n\t// Bypass system close prevention if for some reason the toolbar has been customized with an alternative onbeforeunload handler\n\tif (window.onbeforeunload) {\n\t\tconsole.error(\n\t\t\t`Finsemble toolbar was configured to prevent system closes, however, there is already a function assigned to window.onbeforeunload. In order to prevent the OS from closing your window, we need to overwrite this handler. Users will be able to close your toolbar from the windows taskbar. Please remove your onbeforeunload handler or set the toolbar property 'allowSystemToCloseWindow' to true to get rid of this error message.`\n\t\t);\n\t\treturn;\n\t}\n\n\t/**\n\t * From the electron docs:\n\t * Note: There is a subtle difference between the behaviors of window.onbeforeunload = handler and window.addEventListener('beforeunload', handler). It is recommended to always set the event.returnValue explicitly, instead of only returning a value, as the former works more consistently within Electron.\n\t *\n\t * Tried addEventListener, and it wouldn't work.\n\t */\n\twindow.onbeforeunload = onBeforeToolbarUnload;\n\t// Terry, onShutdown() hasn't worked for many versions, so this code was never running\n\t// remove the listener when we're shutting down. Don't want to get into an infinite loop.\n\t//FSBL.onShutdown(removeSystemClosePrevention);\n};\n\nexport const useToolbar = () => {\n\tconst dispatch = useDispatch();\n\n\tuseEffect(() => {\n\t\tpreventMinimize();\n\t\tpublishSystemCheckpoint();\n\n\t\tif (FSBL.debug !== true) {\n\t\t\tpreventSystemClose();\n\t\t}\n\t}, []);\n\n\tconst setDashbarItem = (\n\t\titemName: string,\n\t\tavailableDashbarItems: Record<string, DashbarItem>,\n\t\tnewDashbarItems: DashbarItem[]\n\t) => {\n\t\tif (availableDashbarItems.hasOwnProperty(itemName)) {\n\t\t\tconst newItem = availableDashbarItems[itemName];\n\t\t\tnewItem.id = itemName;\n\t\t\tnewDashbarItems.push(newItem);\n\t\t}\n\t};\n\n\tasync function setDashbarItems(_: Error, data: any) {\n\t\tconst { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({\n\t\t\tfield: \"finsemble.availableDashbarItems\",\n\t\t});\n\t\tconst newDashbarItems: DashbarItem[] = [];\n\t\t// Add the widget name as an id to help identify\n\t\t// keys -> widgets when reordering items\n\t\tdata.value.forEach((item: string) => setDashbarItem(item, availableDashbarItems, newDashbarItems));\n\n\t\tdispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));\n\t}\n\n\t/**\n\t * This effect initializes the dashbar items in the redux store. The store must only be initialized once. We use the module level variable\n\t * `storageIsInitialized` as a simple flag to prevent initialization from occuring more than once.\n\t */\n\tuseDeepEffect(() => {\n\t\tasync function createStoreAndFetchDashbarItems() {\n\t\t\ttry {\n\t\t\t\tFSBL.Clients.RouterClient.subscribe(\"distributedStoresLoading\", (subscribeErr, notify) => {\n\t\t\t\t\tif (!subscribeErr && notify.data.State === \"done\") {\n\t\t\t\t\t\t// if we already initialized the store we bail out\n\t\t\t\t\t\tif (storageIsInitialized) return;\n\n\t\t\t\t\t\tstorageIsInitialized = true;\n\t\t\t\t\t\tFSBL.Clients.DistributedStoreClient.createStore(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstore: \"Finsemble-Dashbar-Store\",\n\t\t\t\t\t\t\t\tglobal: true,\n\t\t\t\t\t\t\t\tpersist: true,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tasync (getDashbarStoreErr: StandardError, store?: any) => {\n\t\t\t\t\t\t\t\tif (getDashbarStoreErr) {\n\t\t\t\t\t\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\t\t\t\t\t\"Error initializing dashbar: unable to retrieve stored items, falling back to config\",\n\t\t\t\t\t\t\t\t\t\tgetDashbarStoreErr\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tDashbarStore = store;\n\n\t\t\t\t\t\t\t\tconst { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({\n\t\t\t\t\t\t\t\t\tfield: \"finsemble.availableDashbarItems\",\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t// Fetch active dashbar items from store, if not found, fall back to spawn data\n\t\t\t\t\t\t\t\tlet dashbarItemList;\n\t\t\t\t\t\t\t\tif (DashbarStore && Object.keys(DashbarStore.values).length > 0) {\n\t\t\t\t\t\t\t\t\t({ dashbaritems: dashbarItemList } = DashbarStore.values);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (!dashbarItemList) {\n\t\t\t\t\t\t\t\t\tconst spawnData = FSBL.Clients.WindowClient.getSpawnData();\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\tspawnData.hasOwnProperty(\"dashbar\") &&\n\t\t\t\t\t\t\t\t\t\tspawnData.dashbar.hasOwnProperty(\"items\") &&\n\t\t\t\t\t\t\t\t\t\tArray.isArray(spawnData.dashbar.items)\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tdashbarItemList = spawnData.dashbar.items;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (!dashbarItemList) dashbarItemList = [];\n\n\t\t\t\t\t\t\t\tconst newDashbarItems: DashbarItem[] = [];\n\t\t\t\t\t\t\t\tif (dashbarItemList.length > 0) {\n\t\t\t\t\t\t\t\t\tdashbarItemList.forEach((itemName: string) =>\n\t\t\t\t\t\t\t\t\t\tsetDashbarItem(itemName, availableDashbarItems, newDashbarItems)\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (!DashbarStore.values.dashbaritems) {\n\t\t\t\t\t\t\t\t\tDashbarStore.setValue({\n\t\t\t\t\t\t\t\t\t\tfield: \"dashbaritems\",\n\t\t\t\t\t\t\t\t\t\tvalue: dashbarItemList,\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tdispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tDashbarStore.addListener({ field: \"dashbaritems\" }, setDashbarItems);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (majorErr) {\n\t\t\t\treturn FSBL.Clients.Logger.system.error(`Fatal error retrieving dashbar items`, majorErr);\n\t\t\t}\n\t\t}\n\t\tif (!storageIsInitialized) {\n\t\t\tcreateStoreAndFetchDashbarItems();\n\t\t}\n\t\treturn function cleanup() {\n\t\t\tDashbarStore.removeListener({ field: \"dashbaritems\" }, setDashbarItems);\n\t\t};\n\t}, [dispatch]);\n\n\tconst { dashbarItems } = useSelector((state) => state.toolbar);\n\n\tconst reorderDashbarItems = ({ oldIndex, newIndex }: { oldIndex: number; newIndex: number }) => {\n\t\tconst dashbarItemsNewOrder = [...dashbarItems];\n\t\tconst dashbarItemToMove = dashbarItemsNewOrder[oldIndex];\n\t\tdashbarItemsNewOrder.splice(oldIndex, 1);\n\t\tdashbarItemsNewOrder.splice(newIndex, 0, dashbarItemToMove);\n\n\t\tconst newOrderList = dashbarItemsNewOrder.map((dashbarItem) => dashbarItem.id);\n\n\t\tDashbarStore.setValue(\n\t\t\t{\n\t\t\t\tfield: \"dashbaritems\",\n\t\t\t\tvalue: newOrderList,\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tdispatch(ToolbarActions.REORDER_DASHBAR_ITEMS({ oldIndex, newIndex }));\n\t\t\t}\n\t\t);\n\t};\n\n\treturn {\n\t\tdashbarItems,\n\t\tremoveSystemClosePrevention,\n\t\tpreventSystemClose,\n\t\tminimizeAllWindows,\n\t\trevealAllWindows,\n\t\ttoggleAutoArrange,\n\t\tshowToolbar,\n\t\thideToolbar,\n\t\treorderDashbarItems,\n\t\tlaunchPreferences,\n\t};\n};\n"]}
1
+ {"version":3,"file":"useToolbar.js","sourceRoot":"","sources":["../../src/hooks/useToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAM7F,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAsB,EAAE,EAAE;IAC7D,eAAe,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,GAAQ,EAAE,EAAE;QAC/C,IAAI,GAAG,EAAE;YACR,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;SAC5E;QAED,IAAI,KAAK,EAAE;YACV,eAAe,CAAC,KAAK,EAAE,CAAC;SACxB;IACF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ACjB,WAAW;QACX,WAAW;QACX,iBAAiB;KACjB,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { useEffect } from \"react\";\nimport { openQuitConfirmationDialog } from \"../components/shared/openQuitConfirmationDialog\";\n\n/**\n * Function to bring toolbar to front (since dockable toolbar can be hidden)\n * @param {boolean} focus If true, will also focus the toolbar\n */\nconst bringToolbarToFront = ({ focus }: { focus: boolean }) => {\n\tfinsembleWindow.bringToFront(null, (err: any) => {\n\t\tif (err) {\n\t\t\tFSBL.Clients.Logger.system.error(\"bringToolbarToFront failed, error:\", err);\n\t\t}\n\n\t\tif (focus) {\n\t\t\tfinsembleWindow.focus();\n\t\t}\n\t});\n};\n\n/**\n * Hides the toolbar\n */\nconst hideToolbar = () => {\n\tfinsembleWindow.blur();\n\tfinsembleWindow.hide();\n};\n\n/**\n * Shows the toolbar left-aligned to the user's mouse.\n */\nconst showToolbar = () => {\n\tFSBL.Clients.RouterClient.transmit(\"DockingService.showAtMousePosition\", {\n\t\twindowName: finsembleWindow.name,\n\t\tuuid: finsembleWindow.uuid,\n\t});\n\tbringToolbarToFront({ focus: true });\n};\n\n/**\n * Mimimizes all windows.\n */\nconst minimizeAllWindows = () => {\n\tFSBL.Clients.WorkspaceClient.minimizeAll();\n};\n\n/**\n * Brings all windows to front.\n */\nconst revealAllWindows = () => {\n\tFSBL.Clients.WorkspaceClient.bringWindowsToFront();\n};\n\n/**\n * Toggles Auto Arrange for all windows on the same monitor as the toolbar\n */\nconst toggleAutoArrange = () => {\n\tFSBL.Clients.WorkspaceClient.autoArrange({}, () => {\n\t\t// This is legacy and we're not sure if it's still required or not.\n\t\t// We can try eliminating this once core auto arrange is refactored.\n\t\tbringToolbarToFront({ focus: false });\n\t\trevealAllWindows();\n\t});\n};\n\n/**\n * It's a requirement that the toolbar not be minimized.\n * the minimizable option does not work.\n * Instead, we just listen for this event and restore the window.\n */\nconst preventMinimize = () => {\n\tfinsembleWindow.addEventListener(\"minimized\", () => {\n\t\tfinsembleWindow.restore();\n\t});\n};\n\n/**\n * Required to let the system know that the toolbar is up and ready.\n * Other pieces of the UI key off of this.\n */\nconst publishSystemCheckpoint = () => {\n\tFSBL.SystemManagerClient.publishCheckpointState(\"Toolbar\", \"initialize\", \"completed\");\n};\n\n/**\n * Prevents closing of the window.\n */\nconst onBeforeToolbarUnload = () => {\n\topenQuitConfirmationDialog();\n\t// Return of a non-void value (in this `onbeforeunload` handler) is what tells Electron not to close the window.\n\t// Don't delete this!\n\treturn false;\n};\n\nconst removeSystemClosePrevention = () => {\n\tif (window.onbeforeunload === onBeforeToolbarUnload) {\n\t\twindow.onbeforeunload = null;\n\t}\n};\n\nconst launchPreferences = (tabName: string) => {\n\tFSBL.Clients.RouterClient.transmit(\"FinsembleUserPreferencesChannel\", {\n\t\tpreferencesTab: tabName,\n\t});\n\tFSBL.Clients.LauncherClient.showWindow(\n\t\t{\n\t\t\tcomponentType: \"UserPreferences\",\n\t\t},\n\t\t{\n\t\t\tmonitor: \"mine\",\n\t\t\tleft: \"center\",\n\t\t\ttop: \"center\",\n\t\t}\n\t);\n};\n\n/**\n * Prevents the window from going down on alt+f4 or closing from taskbar.\n * Pops up a dialog asking if the user meant to shut down the system.\n */\nconst preventSystemClose = () => {\n\t// This function was already called, so no need to run it again.\n\tif (window.onbeforeunload === onBeforeToolbarUnload) return;\n\n\t// Bypass system close prevention if for some reason the toolbar has been customized with an alternative onbeforeunload handler\n\tif (window.onbeforeunload) {\n\t\tconsole.error(\n\t\t\t`Finsemble toolbar was configured to prevent system closes, however, there is already a function assigned to window.onbeforeunload. In order to prevent the OS from closing your window, we need to overwrite this handler. Users will be able to close your toolbar from the windows taskbar. Please remove your onbeforeunload handler or set the toolbar property 'allowSystemToCloseWindow' to true to get rid of this error message.`\n\t\t);\n\t\treturn;\n\t}\n\n\t/**\n\t * From the electron docs:\n\t * Note: There is a subtle difference between the behaviors of window.onbeforeunload = handler and window.addEventListener('beforeunload', handler). It is recommended to always set the event.returnValue explicitly, instead of only returning a value, as the former works more consistently within Electron.\n\t *\n\t * Tried addEventListener, and it wouldn't work.\n\t */\n\twindow.onbeforeunload = onBeforeToolbarUnload;\n\t// Terry, onShutdown() hasn't worked for many versions, so this code was never running\n\t// remove the listener when we're shutting down. Don't want to get into an infinite loop.\n\t//FSBL.onShutdown(removeSystemClosePrevention);\n};\n\nexport const useToolbar = () => {\n\tuseEffect(() => {\n\t\tpreventMinimize();\n\t\tpublishSystemCheckpoint();\n\n\t\tif (FSBL.debug !== true) {\n\t\t\tpreventSystemClose();\n\t\t}\n\t}, []);\n\n\treturn {\n\t\tremoveSystemClosePrevention,\n\t\tpreventSystemClose,\n\t\tminimizeAllWindows,\n\t\trevealAllWindows,\n\t\ttoggleAutoArrange,\n\t\tshowToolbar,\n\t\thideToolbar,\n\t\tlaunchPreferences,\n\t};\n};\n"]}
@@ -147,7 +147,7 @@ export declare const rootReducer: import("redux").Reducer<import("redux").Combin
147
147
  }) | ({
148
148
  type: "update_apps";
149
149
  } & {
150
- payload: import("@finsemble/finsemble-core/types/services/Interop/types").AppDefinition[];
150
+ payload: import("@finsemble/finsemble-api/types/services/Interop/types").AppDefinition[];
151
151
  }) | ({
152
152
  type: "new_app";
153
153
  } & {
@@ -156,14 +156,10 @@ export declare const rootReducer: import("redux").Reducer<import("redux").Combin
156
156
  type: "set_current_app_id";
157
157
  } & {
158
158
  payload: string | null;
159
- }) | ({
160
- type: "set_current_app_setup_type";
161
- } & {
162
- payload: import("../types/smartDesktopDesignerTypes").ApplicationSetupType | null;
163
159
  }) | ({
164
160
  type: "update_app";
165
161
  } & {
166
- payload: import("@finsemble/finsemble-core/types/services/Interop/types").AppDefinition;
162
+ payload: import("@finsemble/finsemble-api/types/services/Interop/types").AppDefinition;
167
163
  }) | ({
168
164
  type: "delete_app";
169
165
  } & {
@@ -172,10 +168,18 @@ export declare const rootReducer: import("redux").Reducer<import("redux").Combin
172
168
  type: "update_menus";
173
169
  } & {
174
170
  payload: import("../types/smartDesktopDesignerTypes").MenuType;
171
+ }) | ({
172
+ type: "update_preloads";
173
+ } & {
174
+ payload: import("../types/smartDesktopDesignerTypes").PreloadType[];
175
+ }) | ({
176
+ type: "set_current_preload";
177
+ } & {
178
+ payload: import("../types/smartDesktopDesignerTypes").PreloadType | null;
175
179
  }) | ({
176
180
  type: "set_deploy_info";
177
181
  } & {
178
- payload: import("@finsemble/finsemble-core/types/FEA").DeployInfo | null;
182
+ payload: import("@finsemble/finsemble-api/types/FEA").DeployInfo | null;
179
183
  }) | ({
180
184
  type: "set_publish_error";
181
185
  } & {
@@ -9,7 +9,9 @@ export const initialState = {
9
9
  newAppId: null,
10
10
  currentAppId: null,
11
11
  currentAppSetupType: null,
12
+ currentPreload: null,
12
13
  menus: {},
14
+ preloads: [],
13
15
  projectInfo: {
14
16
  name: "",
15
17
  user: {
@@ -104,9 +106,6 @@ export const smartDesktopDesignerReducer = produce((state, action) => {
104
106
  }
105
107
  state.currentAppId = currentAppId;
106
108
  },
107
- set_current_app_setup_type: (appSetupType) => {
108
- state.currentAppSetupType = appSetupType;
109
- },
110
109
  update_app: (appConfig) => {
111
110
  if (!appConfig || !appConfig.appId) {
112
111
  return;
@@ -159,6 +158,12 @@ export const smartDesktopDesignerReducer = produce((state, action) => {
159
158
  set_reviewing_project_errors: (value) => {
160
159
  state.isReviewingErrors = value;
161
160
  },
161
+ update_preloads: (preloads) => {
162
+ state.preloads = preloads;
163
+ },
164
+ set_current_preload: (preload) => {
165
+ state.currentPreload = preload;
166
+ },
162
167
  default: () => state,
163
168
  });
164
169
  }, initialState);
@@ -1 +1 @@
1
- {"version":3,"file":"smartDesktopDesignerReducer.js","sourceRoot":"","sources":["../../src/reducers/smartDesktopDesignerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,2BAA2B,EAAoC,MAAM,wCAAwC,CAAC;AAGvH,OAAO,EAEN,oBAAoB,EACpB,kBAAkB,GAClB,MAAM,oCAAoC,CAAC;AAE5C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,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9E,CAAC;QACD,4BAA4B,EAAE,CAAC,KAAK,EAAE,EAAE;YACvC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACjC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\nimport { SmartDesktopDesignerActions, SmartDesktopDesignerActionsTypes } from \"../actions/smartDesktopDesignerActions\";\nimport { Reducer } from \"react\";\n\nimport {\n\tSmartDesktopDesignerState,\n\tApplicationSetupType,\n\tAuthenticationType,\n} from \"../types/smartDesktopDesignerTypes\";\n\nexport const initialState: SmartDesktopDesignerState = {\n\tisGettingStarted: false,\n\tpreviousViewId: null,\n\tcurrentViewId: null,\n\tapps: [],\n\tnewAppId: null,\n\tcurrentAppId: null,\n\tcurrentAppSetupType: null,\n\tmenus: {},\n\tprojectInfo: {\n\t\tname: \"\",\n\t\tuser: {\n\t\t\tfirstName: \"\",\n\t\t\tlastName: \"\",\n\t\t\tcompany: \"\",\n\t\t\temail: \"\",\n\t\t},\n\t\texport: {\n\t\t\tauthor: \"\",\n\t\t\tcompanyName: \"\",\n\t\t\tdescription: \"\",\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t},\n\texport: {\n\t\tuuid: null, // `${new Date().getTime()}-${Math.round(Math.random() * Math.pow(10, 10))}`,\n\t\tisPublishing: false,\n\t\tpublishError: null,\n\t\tdeployInfo: null,\n\t},\n\tauthentication: {\n\t\tproviders: [\n\t\t\t{\n\t\t\t\tname: \"Google\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://accounts.google.com/o/oauth2/v2/auth\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Salesforce\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://login.salesforce.com/services/oauth2/authorize\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Custom\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tauthorization_endpoint: \"\",\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t],\n\t},\n\terrors: [],\n\tisReviewingErrors: false,\n};\n\nexport const smartDesktopDesignerReducer: Reducer<SmartDesktopDesignerState, SmartDesktopDesignerActionsTypes> =\n\tproduce((state: SmartDesktopDesignerState, action: SmartDesktopDesignerActionsTypes) => {\n\t\tSmartDesktopDesignerActions.match(action, {\n\t\t\tchange_view: (payload) => {\n\t\t\t\tstate.isGettingStarted = false;\n\t\t\t\tstate.previousViewId = state.currentViewId;\n\t\t\t\tstate.currentViewId = payload;\n\t\t\t\tstate.currentAppId = null;\n\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t},\n\t\t\tupdate_apps: (payload) => {\n\t\t\t\tstate.apps = payload;\n\t\t\t},\n\t\t\tnew_app: (appId) => {\n\t\t\t\tstate.currentAppId = state.newAppId = appId;\n\t\t\t},\n\t\t\tset_current_app_id: (currentAppId) => {\n\t\t\t\tif (currentAppId !== null) {\n\t\t\t\t\tlet currentAppConfig = state.apps.find((app) => app.appId === currentAppId);\n\n\t\t\t\t\tif (!currentAppConfig || currentAppId === state.newAppId) {\n\t\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstate.currentAppSetupType = ApplicationSetupType.APP_EDIT_ADVANCED;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t}\n\n\t\t\t\tstate.currentAppId = currentAppId;\n\t\t\t},\n\t\t\tset_current_app_setup_type: (appSetupType) => {\n\t\t\t\tstate.currentAppSetupType = appSetupType;\n\t\t\t},\n\t\t\tupdate_app: (appConfig) => {\n\t\t\t\tif (!appConfig || !appConfig.appId) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appConfig.appId);\n\n\t\t\t\tstate.apps.push(appConfig);\n\t\t\t},\n\t\t\tupdate_menus: (menus) => {\n\t\t\t\tstate.menus = menus;\n\t\t\t},\n\t\t\tdelete_app: (appId) => {\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appId);\n\t\t\t},\n\t\t\tset_is_publishing: (isPublishing) => {\n\t\t\t\tstate.export.isPublishing = isPublishing;\n\t\t\t},\n\t\t\tset_deploy_info: (value) => {\n\t\t\t\tstate.export.deployInfo = value;\n\t\t\t},\n\t\t\tset_publish_error: (value) => {\n\t\t\t\tstate.export.publishError = value;\n\t\t\t},\n\t\t\tset_project_info: (value) => {\n\t\t\t\tstate.projectInfo = value;\n\t\t\t},\n\t\t\tset_is_getting_started: (value) => {\n\t\t\t\tstate.isGettingStarted = value;\n\t\t\t},\n\t\t\tupdate_auth_provider: (value) => {\n\t\t\t\tconst index = state.authentication.providers.findIndex((provider) => provider.name === value.name);\n\n\t\t\t\tif (index == -1) {\n\t\t\t\t\tstate.authentication.providers.push(value);\n\t\t\t\t} else {\n\t\t\t\t\tstate.authentication.providers[index] = value;\n\t\t\t\t}\n\t\t\t},\n\t\t\tenable_auth_provider: (value) => {\n\t\t\t\tstate.authentication.providers.forEach((provider) => {\n\t\t\t\t\tprovider.enabled = provider.name === value;\n\t\t\t\t});\n\t\t\t},\n\t\t\tset_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t\tstate.errors.push(value);\n\t\t\t},\n\t\t\tdelete_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t},\n\t\t\tset_reviewing_project_errors: (value) => {\n\t\t\t\tstate.isReviewingErrors = value;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t}, initialState);\n"]}
1
+ {"version":3,"file":"smartDesktopDesignerReducer.js","sourceRoot":"","sources":["../../src/reducers/smartDesktopDesignerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,2BAA2B,EAAoC,MAAM,wCAAwC,CAAC;AAGvH,OAAO,EAEN,oBAAoB,EACpB,kBAAkB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,YAAY,GAA8B;IACtD,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,IAAI;IACnB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;IAClB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;IACpB,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE;QACZ,IAAI,EAAE,EAAE;QACR,IAAI,EAAE;YACL,SAAS,EAAE,EAAE;YACb,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACT;QACD,MAAM,EAAE;YACP,MAAM,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G,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\nimport { SmartDesktopDesignerActions, SmartDesktopDesignerActionsTypes } from \"../actions/smartDesktopDesignerActions\";\nimport { Reducer } from \"react\";\n\nimport {\n\tSmartDesktopDesignerState,\n\tApplicationSetupType,\n\tAuthenticationType,\n} from \"../types/smartDesktopDesignerTypes\";\n\nexport const initialState: SmartDesktopDesignerState = {\n\tisGettingStarted: false,\n\tpreviousViewId: null,\n\tcurrentViewId: null,\n\tapps: [],\n\tnewAppId: null,\n\tcurrentAppId: null,\n\tcurrentAppSetupType: null,\n\tcurrentPreload: null,\n\tmenus: {},\n\tpreloads: [],\n\tprojectInfo: {\n\t\tname: \"\",\n\t\tuser: {\n\t\t\tfirstName: \"\",\n\t\t\tlastName: \"\",\n\t\t\tcompany: \"\",\n\t\t\temail: \"\",\n\t\t},\n\t\texport: {\n\t\t\tauthor: \"\",\n\t\t\tcompanyName: \"\",\n\t\t\tdescription: \"\",\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t},\n\texport: {\n\t\tuuid: null, // `${new Date().getTime()}-${Math.round(Math.random() * Math.pow(10, 10))}`,\n\t\tisPublishing: false,\n\t\tpublishError: null,\n\t\tdeployInfo: null,\n\t},\n\tauthentication: {\n\t\tproviders: [\n\t\t\t{\n\t\t\t\tname: \"Google\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://accounts.google.com/o/oauth2/v2/auth\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Salesforce\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://login.salesforce.com/services/oauth2/authorize\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Custom\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tauthorization_endpoint: \"\",\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t],\n\t},\n\terrors: [],\n\tisReviewingErrors: false,\n};\n\nexport const smartDesktopDesignerReducer: Reducer<SmartDesktopDesignerState, SmartDesktopDesignerActionsTypes> =\n\tproduce((state: SmartDesktopDesignerState, action: SmartDesktopDesignerActionsTypes) => {\n\t\tSmartDesktopDesignerActions.match(action, {\n\t\t\tchange_view: (payload) => {\n\t\t\t\tstate.isGettingStarted = false;\n\t\t\t\tstate.previousViewId = state.currentViewId;\n\t\t\t\tstate.currentViewId = payload;\n\t\t\t\tstate.currentAppId = null;\n\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t},\n\t\t\tupdate_apps: (payload) => {\n\t\t\t\tstate.apps = payload;\n\t\t\t},\n\t\t\tnew_app: (appId) => {\n\t\t\t\tstate.currentAppId = state.newAppId = appId;\n\t\t\t},\n\t\t\tset_current_app_id: (currentAppId) => {\n\t\t\t\tif (currentAppId !== null) {\n\t\t\t\t\tlet currentAppConfig = state.apps.find((app) => app.appId === currentAppId);\n\n\t\t\t\t\tif (!currentAppConfig || currentAppId === state.newAppId) {\n\t\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstate.currentAppSetupType = ApplicationSetupType.APP_EDIT_ADVANCED;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t}\n\n\t\t\t\tstate.currentAppId = currentAppId;\n\t\t\t},\n\t\t\tupdate_app: (appConfig) => {\n\t\t\t\tif (!appConfig || !appConfig.appId) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appConfig.appId);\n\n\t\t\t\tstate.apps.push(appConfig);\n\t\t\t},\n\t\t\tupdate_menus: (menus) => {\n\t\t\t\tstate.menus = menus;\n\t\t\t},\n\t\t\tdelete_app: (appId) => {\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appId);\n\t\t\t},\n\t\t\tset_is_publishing: (isPublishing) => {\n\t\t\t\tstate.export.isPublishing = isPublishing;\n\t\t\t},\n\t\t\tset_deploy_info: (value) => {\n\t\t\t\tstate.export.deployInfo = value;\n\t\t\t},\n\t\t\tset_publish_error: (value) => {\n\t\t\t\tstate.export.publishError = value;\n\t\t\t},\n\t\t\tset_project_info: (value) => {\n\t\t\t\tstate.projectInfo = value;\n\t\t\t},\n\t\t\tset_is_getting_started: (value) => {\n\t\t\t\tstate.isGettingStarted = value;\n\t\t\t},\n\t\t\tupdate_auth_provider: (value) => {\n\t\t\t\tconst index = state.authentication.providers.findIndex((provider) => provider.name === value.name);\n\n\t\t\t\tif (index == -1) {\n\t\t\t\t\tstate.authentication.providers.push(value);\n\t\t\t\t} else {\n\t\t\t\t\tstate.authentication.providers[index] = value;\n\t\t\t\t}\n\t\t\t},\n\t\t\tenable_auth_provider: (value) => {\n\t\t\t\tstate.authentication.providers.forEach((provider) => {\n\t\t\t\t\tprovider.enabled = provider.name === value;\n\t\t\t\t});\n\t\t\t},\n\t\t\tset_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t\tstate.errors.push(value);\n\t\t\t},\n\t\t\tdelete_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t},\n\t\t\tset_reviewing_project_errors: (value) => {\n\t\t\t\tstate.isReviewingErrors = value;\n\t\t\t},\n\t\t\tupdate_preloads: (preloads) => {\n\t\t\t\tstate.preloads = preloads;\n\t\t\t},\n\t\t\tset_current_preload: (preload) => {\n\t\t\t\tstate.currentPreload = preload;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t}, initialState);\n"]}
package/react/store.d.ts CHANGED
@@ -133,7 +133,7 @@ export declare const createStore: () => import("redux").Store<import("redux").Em
133
133
  }) | ({
134
134
  type: "update_apps";
135
135
  } & {
136
- payload: import("@finsemble/finsemble-core/types/services/Interop/types").AppDefinition[];
136
+ payload: import("@finsemble/finsemble-api/types/services/Interop/types").AppDefinition[];
137
137
  }) | ({
138
138
  type: "new_app";
139
139
  } & {
@@ -142,14 +142,10 @@ export declare const createStore: () => import("redux").Store<import("redux").Em
142
142
  type: "set_current_app_id";
143
143
  } & {
144
144
  payload: string | null;
145
- }) | ({
146
- type: "set_current_app_setup_type";
147
- } & {
148
- payload: import("./types/smartDesktopDesignerTypes").ApplicationSetupType | null;
149
145
  }) | ({
150
146
  type: "update_app";
151
147
  } & {
152
- payload: import("@finsemble/finsemble-core/types/services/Interop/types").AppDefinition;
148
+ payload: import("@finsemble/finsemble-api/types/services/Interop/types").AppDefinition;
153
149
  }) | ({
154
150
  type: "delete_app";
155
151
  } & {
@@ -158,10 +154,18 @@ export declare const createStore: () => import("redux").Store<import("redux").Em
158
154
  type: "update_menus";
159
155
  } & {
160
156
  payload: import("./types/smartDesktopDesignerTypes").MenuType;
157
+ }) | ({
158
+ type: "update_preloads";
159
+ } & {
160
+ payload: import("./types/smartDesktopDesignerTypes").PreloadType[];
161
+ }) | ({
162
+ type: "set_current_preload";
163
+ } & {
164
+ payload: import("./types/smartDesktopDesignerTypes").PreloadType | null;
161
165
  }) | ({
162
166
  type: "set_deploy_info";
163
167
  } & {
164
- payload: import("@finsemble/finsemble-core/types/FEA").DeployInfo | null;
168
+ payload: import("@finsemble/finsemble-api/types/FEA").DeployInfo | null;
165
169
  }) | ({
166
170
  type: "set_publish_error";
167
171
  } & {
@@ -334,7 +338,7 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
334
338
  }) | ({
335
339
  type: "update_apps";
336
340
  } & {
337
- payload: import("@finsemble/finsemble-core/types/services/Interop/types").AppDefinition[];
341
+ payload: import("@finsemble/finsemble-api/types/services/Interop/types").AppDefinition[];
338
342
  }) | ({
339
343
  type: "new_app";
340
344
  } & {
@@ -343,14 +347,10 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
343
347
  type: "set_current_app_id";
344
348
  } & {
345
349
  payload: string | null;
346
- }) | ({
347
- type: "set_current_app_setup_type";
348
- } & {
349
- payload: import("./types/smartDesktopDesignerTypes").ApplicationSetupType | null;
350
350
  }) | ({
351
351
  type: "update_app";
352
352
  } & {
353
- payload: import("@finsemble/finsemble-core/types/services/Interop/types").AppDefinition;
353
+ payload: import("@finsemble/finsemble-api/types/services/Interop/types").AppDefinition;
354
354
  }) | ({
355
355
  type: "delete_app";
356
356
  } & {
@@ -359,10 +359,18 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
359
359
  type: "update_menus";
360
360
  } & {
361
361
  payload: import("./types/smartDesktopDesignerTypes").MenuType;
362
+ }) | ({
363
+ type: "update_preloads";
364
+ } & {
365
+ payload: import("./types/smartDesktopDesignerTypes").PreloadType[];
366
+ }) | ({
367
+ type: "set_current_preload";
368
+ } & {
369
+ payload: import("./types/smartDesktopDesignerTypes").PreloadType | null;
362
370
  }) | ({
363
371
  type: "set_deploy_info";
364
372
  } & {
365
- payload: import("@finsemble/finsemble-core/types/FEA").DeployInfo | null;
373
+ payload: import("@finsemble/finsemble-api/types/FEA").DeployInfo | null;
366
374
  }) | ({
367
375
  type: "set_publish_error";
368
376
  } & {
@@ -1,43 +1,15 @@
1
- import { StandardError } from "@finsemble/finsemble-core/types/types";
1
+ import { StandardError, FDC3 } from "@finsemble/finsemble-api/types/types";
2
+ import { clients } from "@finsemble/finsemble-api";
2
3
  export declare enum ResolveError {
3
4
  NoAppsFound = "NoAppsFound",
4
5
  ResolverUnavailable = "ResolverUnavailable",
5
6
  ResolverTimeout = "ResolverTimeout"
6
7
  }
7
- export interface AppMetadata {
8
- readonly name: string;
9
- readonly appId?: string;
10
- readonly version?: string;
11
- readonly title?: string;
12
- readonly tooltip?: string;
13
- readonly description?: string;
14
- readonly icons?: Array<string>;
15
- readonly images?: Array<string>;
16
- }
17
- export declare type ResolutionCandidate = {
18
- meta: AppMetadata;
19
- uuid?: string;
20
- windowName?: string;
21
- };
22
- export declare type ResolutionList = {
23
- intent: {
24
- name: string;
25
- displayName: string;
26
- };
27
- launchableApps: ResolutionCandidate[];
28
- openApps: ResolutionCandidate[];
29
- context?: ContextAny;
30
- };
31
- export interface Context {
32
- id?: {
33
- [key: string]: string;
34
- };
35
- name?: string;
36
- type: string;
37
- }
38
- export declare type ContextAny = Context & {
39
- [data: string]: any;
40
- };
8
+ export declare type AppMetadata = FDC3.AppMetadata;
9
+ export declare type Context = FDC3.Context;
10
+ export declare type ResolutionCandidate = clients.Interop.types.ResolutionCandidate;
11
+ export declare type ResolutionList = clients.Interop.types.ResolutionList;
12
+ export declare type ContextAny = clients.Interop.types.ContextAny;
41
13
  export interface FDC3Props {
42
14
  config: {
43
15
  url?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fdc3.js","sourceRoot":"","sources":["../../src/types/fdc3.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,2CAA2B,CAAA;IAC3B,2DAA2C,CAAA;IAC3C,mDAAmC,CAAA;AACpC,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB","sourcesContent":["import { StandardError } from \"@finsemble/finsemble-core/types/types\";\n\nexport enum ResolveError {\n\tNoAppsFound = \"NoAppsFound\",\n\tResolverUnavailable = \"ResolverUnavailable\",\n\tResolverTimeout = \"ResolverTimeout\",\n}\nexport interface AppMetadata {\n\t/** The unique app name that can be used with the open and raiseIntent calls. */\n\treadonly name: string;\n\n\t/** The unique application identifier located within a specific application directory instance. An example of an appId might be 'app@sub.root' */\n\treadonly appId?: string;\n\n\t/** The Version of the application. */\n\treadonly version?: string;\n\n\t/** A more user-friendly application title that can be used to render UI elements */\n\treadonly title?: string;\n\n\t/** A tooltip for the application that can be used to render UI elements */\n\treadonly tooltip?: string;\n\n\t/** A longer, multi-paragraph description for the application that could include markup */\n\treadonly description?: string;\n\n\t/** A list of icon URLs for the application that can be used to render UI elements */\n\treadonly icons?: Array<string>;\n\n\t/** A list of image URLs for the application that can be used to render UI elements */\n\treadonly images?: Array<string>;\n}\n\n/** This is a copy & paste from core/clients/Interop/types.ts */\nexport type ResolutionCandidate = {\n\tmeta: AppMetadata;\n\tuuid?: string;\n\twindowName?: string;\n};\n\n/** This is a copy & paste from core/clients/Interop/types.ts */\nexport type ResolutionList = {\n\tintent: {\n\t\tname: string;\n\t\tdisplayName: string;\n\t};\n\tlaunchableApps: ResolutionCandidate[];\n\topenApps: ResolutionCandidate[];\n\tcontext?: ContextAny;\n};\n\nexport interface Context {\n\tid?: { [key: string]: string };\n\tname?: string;\n\ttype: string;\n}\n\nexport type ContextAny = Context & { [data: string]: any };\n\nexport interface FDC3Props {\n\tconfig: {\n\t\turl?: string;\n\t};\n\tcreds: {};\n}\n\nexport type myTmpType = (first: null, second: string) => void;\n\nexport type FDC3GetCallback = (\n\targ1: null | Record<string, string>,\n\topts?: { applications: string[]; tags: string[] }\n) => void;\n\nexport type FDC3PostCallbackData =\n\t| {\n\t\t\tapplications: string[];\n\t }\n\t| undefined;\n\nexport type ErrorOrMessage = StandardError | { message: string };\n\nexport type FDC3PostCallback = (arg1: ErrorOrMessage, opts?: { applications: string[] }) => void;\n\nexport type FDC3SearchCallback = (error: string | null, applications: string[] | undefined) => void;\n"]}
1
+ {"version":3,"file":"fdc3.js","sourceRoot":"","sources":["../../src/types/fdc3.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,2CAA2B,CAAA;IAC3B,2DAA2C,CAAA;IAC3C,mDAAmC,CAAA;AACpC,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB","sourcesContent":["import { StandardError, FDC3 } from \"@finsemble/finsemble-api/types/types\";\nimport { clients } from \"@finsemble/finsemble-api\";\n\nexport enum ResolveError {\n\tNoAppsFound = \"NoAppsFound\",\n\tResolverUnavailable = \"ResolverUnavailable\",\n\tResolverTimeout = \"ResolverTimeout\",\n}\nexport type AppMetadata = FDC3.AppMetadata;\nexport type Context = FDC3.Context;\n\n/** This is a copy & paste from core/clients/Interop/types.ts */\nexport type ResolutionCandidate = clients.Interop.types.ResolutionCandidate;\n\n/** This is a copy & paste from core/clients/Interop/types.ts */\nexport type ResolutionList = clients.Interop.types.ResolutionList;\n\nexport type ContextAny = clients.Interop.types.ContextAny;\n\nexport interface FDC3Props {\n\tconfig: {\n\t\turl?: string;\n\t};\n\tcreds: {};\n}\n\nexport type myTmpType = (first: null, second: string) => void;\n\nexport type FDC3GetCallback = (\n\targ1: null | Record<string, string>,\n\topts?: { applications: string[]; tags: string[] }\n) => void;\n\nexport type FDC3PostCallbackData =\n\t| {\n\t\t\tapplications: string[];\n\t }\n\t| undefined;\n\nexport type ErrorOrMessage = StandardError | { message: string };\n\nexport type FDC3PostCallback = (arg1: ErrorOrMessage, opts?: { applications: string[] }) => void;\n\nexport type FDC3SearchCallback = (error: string | null, applications: string[] | undefined) => void;\n"]}
@@ -1,12 +1,5 @@
1
1
  import { Icon } from "./iconTypes";
2
- export declare type SearchProvider = {
3
- displayName: string;
4
- channel: string;
5
- providerActionTitle: string;
6
- providerActionCallback: Function;
7
- windowName: string;
8
- name: string;
9
- };
2
+ import { SearchProvider } from "@finsemble/finsemble-api/types/services/search";
10
3
  export declare type SearchProviderResponse = {
11
4
  provider: SearchProvider;
12
5
  returnCallback: string;
@@ -1 +1 @@
1
- {"version":3,"file":"searchTypes.js","sourceRoot":"","sources":["../../src/types/searchTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nexport type SearchProvider = {\n\tdisplayName: string;\n\tchannel: string;\n\tproviderActionTitle: string;\n\tproviderActionCallback: Function;\n\twindowName: string;\n\tname: string;\n};\nexport type SearchProviderResponse = {\n\tprovider: SearchProvider;\n\treturnCallback: string;\n\tsearchId: string;\n\tdata: SearchResults;\n};\n\nexport type SearchResultType = {\n\tactions: { name: string }[];\n\tdescription: string;\n\tdisplayName: string;\n\ticon: Icon;\n\tscore: number;\n\tname: string;\n\tprovider: FunctionStringCallback;\n\ttype: string;\n};\n\nexport type SearchQuery = string | null;\nexport type SearchResults = SearchResultType[] | null;\n"]}
1
+ {"version":3,"file":"searchTypes.js","sourceRoot":"","sources":["../../src/types/searchTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nimport { SearchProvider } from \"@finsemble/finsemble-api/types/services/search\";\n\nexport type SearchProviderResponse = {\n\tprovider: SearchProvider;\n\treturnCallback: string;\n\tsearchId: string;\n\tdata: SearchResults;\n};\n\nexport type SearchResultType = {\n\tactions: { name: string }[];\n\tdescription: string;\n\tdisplayName: string;\n\ticon: Icon;\n\tscore: number;\n\tname: string;\n\tprovider: FunctionStringCallback;\n\ttype: string;\n};\n\nexport type SearchQuery = string | null;\nexport type SearchResults = SearchResultType[] | null;\n"]}
@@ -1,19 +1,54 @@
1
1
  import React from "react";
2
2
  import { FinsembleIconType } from "../components/common/FinsembleIcon";
3
- import { services, FEA } from "@finsemble/finsemble-core";
3
+ import { services, FEA } from "@finsemble/finsemble-api";
4
4
  export declare type ApplicationRule = services.Interop.types.SelectConnectRule;
5
5
  declare type AppDefinition = services.Interop.types.AppDefinition;
6
6
  declare type DeployInfo = FEA.DeployInfo;
7
7
  export declare type ApplicationSaveData = {
8
8
  name: string;
9
- description: string;
10
- path?: string;
11
- url?: string;
9
+ abstractPosition: number;
10
+ addToWorkspace: boolean;
11
+ allowAutoArrange: boolean;
12
+ allowGrouping: boolean;
13
+ allowMinimize: boolean;
14
+ allowMaximize: boolean;
15
+ allowSnapping: boolean;
16
+ allowTabbing: boolean;
17
+ allowTiling: boolean;
18
+ alwaysOnTop: boolean;
19
+ appArguments?: string;
12
20
  appType?: string;
13
- tags?: string[];
14
- width?: number | string;
21
+ autoConnect: boolean;
22
+ description?: string;
23
+ enableAOT: boolean;
24
+ enableTitleBar: boolean;
15
25
  height?: number | string;
26
+ hideClose: boolean;
27
+ hideMaximize: boolean;
28
+ hideMinimize: boolean;
29
+ iconURL?: string;
30
+ intents: IntentEntry[];
31
+ isEvergreen: boolean;
32
+ launchableByUser: boolean;
33
+ native_windowSpawnTimeout: number;
34
+ opacity: number;
35
+ path?: string;
36
+ persistPath: boolean;
37
+ persistURL: boolean;
38
+ preloads: string[];
39
+ resizable: boolean;
16
40
  rules?: ApplicationRule[];
41
+ security: "trusted" | "untrusted";
42
+ singleton: boolean;
43
+ spawnOnStartup: boolean;
44
+ tags?: string[];
45
+ url?: string;
46
+ width?: number | string;
47
+ };
48
+ export declare type IntentEntry = {
49
+ name: string;
50
+ displayName: string;
51
+ contexts?: string[];
17
52
  };
18
53
  export declare type ProjectSaveData = {
19
54
  name: string;
@@ -76,6 +111,10 @@ export declare type AuthenticationProvider = {
76
111
  scope?: string;
77
112
  nonce: boolean;
78
113
  };
114
+ export declare type PreloadType = {
115
+ alias: string;
116
+ url: string;
117
+ };
79
118
  export declare type ProjectError = {
80
119
  viewId: string;
81
120
  message: string;
@@ -88,7 +127,9 @@ export declare type SmartDesktopDesignerState = {
88
127
  newAppId: string | null;
89
128
  currentAppId: string | null;
90
129
  currentAppSetupType: null | ApplicationSetupType;
130
+ currentPreload: PreloadType | null;
91
131
  menus: MenuType;
132
+ preloads: PreloadType[];
92
133
  projectInfo: ProjectSaveData;
93
134
  export: {
94
135
  uuid: string | null;
@@ -109,6 +150,11 @@ export declare type ViewInfo = {
109
150
  component: React.ReactNode;
110
151
  props?: any;
111
152
  };
153
+ export declare type ViewSectionInfo = {
154
+ showLabel: boolean;
155
+ label: string;
156
+ views: ViewInfo[];
157
+ };
112
158
  export declare type MenuObjType = {
113
159
  displayName: string;
114
160
  applications: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"smartDesktopDesignerTypes.js","sourceRoot":"","sources":["../../src/types/smartDesktopDesignerTypes.ts"],"names":[],"mappings":"AAqDA,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;AAChB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AASD,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;IACf,yFAAiB,CAAA;AAClB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;AACtB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import React from \"react\";\nimport { FinsembleIconType } from \"../components/common/FinsembleIcon\";\nimport { services, FEA } from \"@finsemble/finsemble-core\";\n\nexport type ApplicationRule = services.Interop.types.SelectConnectRule;\ntype AppDefinition = services.Interop.types.AppDefinition;\ntype DeployInfo = FEA.DeployInfo;\n\nexport type ApplicationSaveData = {\n\tname: string;\n\tdescription: string;\n\tpath?: string;\n\turl?: string;\n\tappType?: string;\n\ttags?: string[];\n\twidth?: number | string;\n\theight?: number | string;\n\trules?: ApplicationRule[];\n};\n\nexport type ProjectSaveData = {\n\tname: string;\n\tpath?: string;\n\tuser: UserSaveData;\n\texport: ExportSaveData;\n};\n\nexport type ExportSaveData = {\n\tauthor: string;\n\tcompanyName: string;\n\tdescription: string;\n} & ProjectAssets;\n\nexport type ProjectAssets = {\n\ttoolbarIcon: string;\n\tinstallerIcon: string;\n\ttaskbarIcon: string;\n\tsystemTrayIcon: string;\n\tsplashScreenImage: string;\n};\n\nexport type UserSaveData = {\n\tfirstName: string;\n\tlastName: string;\n\tcompany: string;\n\temail: string;\n};\n\nexport type SDServerInfo = {\n\tenabled: boolean;\n\tapplicationRoot?: string;\n};\n\nexport enum ProgressState {\n\tStarted = \"Started\",\n\tNotStarted = \"NotStarted\",\n\tFinished = \"Finished\",\n\tError = \"Error\",\n}\n\nexport type PublishProgress = {\n\tstep: string;\n\terror: string;\n\tpercentComplete: number;\n\tstate: ProgressState;\n};\n\nexport enum ApplicationSetupType {\n\tAPP_ADD_SIMPLE,\n\tAPP_ADD_ADVANCED,\n\tAPP_EDIT_SIMPLE,\n\tAPP_EDIT_ADVANCED,\n}\n\nexport enum AuthenticationType {\n\tOAUTH2 = \"OAUTH2\",\n\tPASSWORD = \"PASSWORD\",\n}\n\nexport type AuthenticationProvider = {\n\tname: string;\n\ttype: AuthenticationType;\n\tclient_id: string | null;\n\tsecret: string | null;\n\tenabled: boolean;\n\tredirect_uri: string;\n\tauthorization_endpoint?: string;\n\tscope?: string;\n\tnonce: boolean;\n};\n\nexport type ProjectError = {\n\tviewId: string;\n\tmessage: string;\n};\n\nexport type SmartDesktopDesignerState = {\n\tisGettingStarted: boolean;\n\tpreviousViewId: string | null;\n\tcurrentViewId: string | null;\n\tapps: AppDefinition[];\n\tnewAppId: string | null;\n\tcurrentAppId: string | null;\n\tcurrentAppSetupType: null | ApplicationSetupType;\n\tmenus: MenuType;\n\tprojectInfo: ProjectSaveData;\n\texport: {\n\t\tuuid: string | null;\n\t\tisPublishing: boolean;\n\t\tdeployInfo: DeployInfo | null;\n\t\tpublishError: string | null;\n\t};\n\tauthentication: {\n\t\tproviders: AuthenticationProvider[];\n\t};\n\terrors: ProjectError[];\n\tisReviewingErrors: boolean;\n};\n\nexport type ViewInfo = {\n\tid: string;\n\ticon: FinsembleIconType;\n\tname: string;\n\tcomponent: React.ReactNode;\n\tprops?: any;\n};\n\nexport type MenuObjType = {\n\tdisplayName: string;\n\tapplications: string[];\n\tposition: number;\n};\nexport type MenuType = {\n\t[key: string]: MenuObjType;\n};\n"]}
1
+ {"version":3,"file":"smartDesktopDesignerTypes.js","sourceRoot":"","sources":["../../src/types/smartDesktopDesignerTypes.ts"],"names":[],"mappings":"AA0FA,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;AAChB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AASD,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;IACf,yFAAiB,CAAA;AAClB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;AACtB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import React from \"react\";\nimport { FinsembleIconType } from \"../components/common/FinsembleIcon\";\nimport { services, FEA } from \"@finsemble/finsemble-api\";\n\nexport type ApplicationRule = services.Interop.types.SelectConnectRule;\ntype AppDefinition = services.Interop.types.AppDefinition;\ntype DeployInfo = FEA.DeployInfo;\n\nexport type ApplicationSaveData = {\n\tname: string;\n\n\tabstractPosition: number;\n\taddToWorkspace: boolean;\n\tallowAutoArrange: boolean;\n\tallowGrouping: boolean;\n\tallowMinimize: boolean;\n\tallowMaximize: boolean;\n\tallowSnapping: boolean;\n\tallowTabbing: boolean;\n\tallowTiling: boolean;\n\talwaysOnTop: boolean;\n\tappArguments?: string;\n\tappType?: string;\n\tautoConnect: boolean;\n\tdescription?: string;\n\tenableAOT: boolean;\n\tenableTitleBar: boolean;\n\theight?: number | string;\n\thideClose: boolean;\n\thideMaximize: boolean;\n\thideMinimize: boolean;\n\ticonURL?: string;\n\tintents: IntentEntry[];\n\tisEvergreen: boolean;\n\tlaunchableByUser: boolean;\n\tnative_windowSpawnTimeout: number;\n\topacity: number;\n\tpath?: string;\n\tpersistPath: boolean;\n\tpersistURL: boolean;\n\tpreloads: string[];\n\tresizable: boolean;\n\trules?: ApplicationRule[];\n\tsecurity: \"trusted\" | \"untrusted\";\n\tsingleton: boolean;\n\tspawnOnStartup: boolean;\n\ttags?: string[];\n\turl?: string;\n\twidth?: number | string;\n};\n\nexport type IntentEntry = {\n\tname: string;\n\tdisplayName: string;\n\tcontexts?: string[];\n};\n\nexport type ProjectSaveData = {\n\tname: string;\n\tpath?: string;\n\tuser: UserSaveData;\n\texport: ExportSaveData;\n};\n\nexport type ExportSaveData = {\n\tauthor: string;\n\tcompanyName: string;\n\tdescription: string;\n} & ProjectAssets;\n\nexport type ProjectAssets = {\n\ttoolbarIcon: string;\n\tinstallerIcon: string;\n\ttaskbarIcon: string;\n\tsystemTrayIcon: string;\n\tsplashScreenImage: string;\n};\n\nexport type UserSaveData = {\n\tfirstName: string;\n\tlastName: string;\n\tcompany: string;\n\temail: string;\n};\n\nexport type SDServerInfo = {\n\tenabled: boolean;\n\tapplicationRoot?: string;\n};\n\nexport enum ProgressState {\n\tStarted = \"Started\",\n\tNotStarted = \"NotStarted\",\n\tFinished = \"Finished\",\n\tError = \"Error\",\n}\n\nexport type PublishProgress = {\n\tstep: string;\n\terror: string;\n\tpercentComplete: number;\n\tstate: ProgressState;\n};\n\nexport enum ApplicationSetupType {\n\tAPP_ADD_SIMPLE,\n\tAPP_ADD_ADVANCED,\n\tAPP_EDIT_SIMPLE,\n\tAPP_EDIT_ADVANCED,\n}\n\nexport enum AuthenticationType {\n\tOAUTH2 = \"OAUTH2\",\n\tPASSWORD = \"PASSWORD\",\n}\n\nexport type AuthenticationProvider = {\n\tname: string;\n\ttype: AuthenticationType;\n\tclient_id: string | null;\n\tsecret: string | null;\n\tenabled: boolean;\n\tredirect_uri: string;\n\tauthorization_endpoint?: string;\n\tscope?: string;\n\tnonce: boolean;\n};\n\nexport type PreloadType = {\n\talias: string;\n\turl: string;\n};\n\nexport type ProjectError = {\n\tviewId: string;\n\tmessage: string;\n};\n\nexport type SmartDesktopDesignerState = {\n\tisGettingStarted: boolean;\n\tpreviousViewId: string | null;\n\tcurrentViewId: string | null;\n\tapps: AppDefinition[];\n\tnewAppId: string | null;\n\tcurrentAppId: string | null;\n\tcurrentAppSetupType: null | ApplicationSetupType;\n\tcurrentPreload: PreloadType | null;\n\tmenus: MenuType;\n\tpreloads: PreloadType[];\n\tprojectInfo: ProjectSaveData;\n\texport: {\n\t\tuuid: string | null;\n\t\tisPublishing: boolean;\n\t\tdeployInfo: DeployInfo | null;\n\t\tpublishError: string | null;\n\t};\n\tauthentication: {\n\t\tproviders: AuthenticationProvider[];\n\t};\n\terrors: ProjectError[];\n\tisReviewingErrors: boolean;\n};\n\nexport type ViewInfo = {\n\tid: string;\n\ticon: FinsembleIconType;\n\tname: string;\n\tcomponent: React.ReactNode;\n\tprops?: any;\n};\n\nexport type ViewSectionInfo = {\n\tshowLabel: boolean;\n\tlabel: string;\n\tviews: ViewInfo[];\n};\n\nexport type MenuObjType = {\n\tdisplayName: string;\n\tapplications: string[];\n\tposition: number;\n};\nexport type MenuType = {\n\t[key: string]: MenuObjType;\n};\n"]}
@@ -1,11 +1,13 @@
1
1
  /// <reference types="react" />
2
+ import { WindowIdentifier } from "@finsemble/finsemble-api";
2
3
  export declare type ValueOf<T> = T[keyof T];
3
4
  export interface EditTabProps {
4
5
  tabWidth?: number;
5
6
  tab?: TabProperties;
6
- setActiveTab?: (tab: TabProperties) => void;
7
+ setActiveTab?: () => void;
7
8
  children: React.ReactNode;
8
- updateTitle?: EventTarget;
9
+ title?: string;
10
+ windowIdentifier: WindowIdentifier;
9
11
  }
10
12
  export interface TabProperties {
11
13
  windowName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"windowTitleBar.js","sourceRoot":"","sources":["../../src/types/windowTitleBar.ts"],"names":[],"mappings":"","sourcesContent":["export type ValueOf<T> = T[keyof T];\n\nexport interface EditTabProps {\n\ttabWidth?: number;\n\ttab?: TabProperties;\n\tsetActiveTab?: (tab: TabProperties) => void;\n\tchildren: React.ReactNode;\n\tupdateTitle?: EventTarget;\n}\n\nexport interface TabProperties {\n\twindowName: string;\n\tuuid: string;\n\tname?: string;\n\ttitle: string;\n}\n\nexport interface TabListProps {\n\tlistenForDragOver: boolean;\n\tclassName: string;\n\tonTitleUpdated: Function;\n\tonTabDropped: Function;\n\tthisWindowTitle: string;\n\tboundingBox: BoundingBox;\n\ttabs: TabProperties[];\n}\n\ninterface BoundingBox {\n\ttop: number;\n\tbottom: number;\n\tright: number;\n\tleft: number;\n\twidth: number;\n\theight: number;\n}\n\nexport interface TabListState {\n\ttranslateX: number;\n\ttabs: TabProperties[];\n\tactiveTab: TabProperties;\n\tboundingBox: BoundingBox;\n\tiAmDragging: boolean;\n\thoverState: string;\n\ttabWidth: number;\n\thoveredTabIndex: number | undefined;\n}\n\nexport interface GetTabWidthParams {\n\tboundingBox?: BoundingBox;\n\ttabList?: TabProperties[];\n}\n"]}
1
+ {"version":3,"file":"windowTitleBar.js","sourceRoot":"","sources":["../../src/types/windowTitleBar.ts"],"names":[],"mappings":"","sourcesContent":["import { WindowIdentifier } from \"@finsemble/finsemble-api\";\n\nexport type ValueOf<T> = T[keyof T];\n\nexport interface EditTabProps {\n\ttabWidth?: number;\n\ttab?: TabProperties;\n\tsetActiveTab?: () => void;\n\tchildren: React.ReactNode;\n\ttitle?: string;\n\t// The windowIdentifier indicates which app/component this tab instance should represent\n\twindowIdentifier: WindowIdentifier;\n}\n\nexport interface TabProperties {\n\twindowName: string;\n\tuuid: string;\n\tname?: string;\n\ttitle: string;\n}\n\nexport interface TabListProps {\n\tlistenForDragOver: boolean;\n\tclassName: string;\n\tonTitleUpdated: Function;\n\tonTabDropped: Function;\n\tthisWindowTitle: string;\n\tboundingBox: BoundingBox;\n\ttabs: TabProperties[];\n}\n\ninterface BoundingBox {\n\ttop: number;\n\tbottom: number;\n\tright: number;\n\tleft: number;\n\twidth: number;\n\theight: number;\n}\n\nexport interface TabListState {\n\ttranslateX: number;\n\ttabs: TabProperties[];\n\tactiveTab: TabProperties;\n\tboundingBox: BoundingBox;\n\tiAmDragging: boolean;\n\thoverState: string;\n\ttabWidth: number;\n\thoveredTabIndex: number | undefined;\n}\n\nexport interface GetTabWidthParams {\n\tboundingBox?: BoundingBox;\n\ttabList?: TabProperties[];\n}\n"]}