@finsemble/finsemble-ui 6.3.1 → 6.4.0

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 (744) hide show
  1. package/README.md +28 -28
  2. package/package.json +21 -33
  3. package/react/actions/favoriteActions.js.map +1 -1
  4. package/react/actions/linkerActions.js.map +1 -1
  5. package/react/actions/menuActions.js.map +1 -1
  6. package/react/actions/rootActions.js.map +1 -1
  7. package/react/actions/searchActions.js.map +1 -1
  8. package/react/actions/smartDesktopDesignerActions.d.ts +1 -3
  9. package/react/actions/smartDesktopDesignerActions.js +0 -1
  10. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  11. package/react/actions/toolbarActions.js.map +1 -1
  12. package/react/actions/workspaceActions.js.map +1 -1
  13. package/react/assets/css/advancedAppLauncher.css +636 -636
  14. package/react/assets/css/appCatalog.css +1069 -1069
  15. package/react/assets/css/authentication.css +78 -78
  16. package/react/assets/css/button.css +220 -220
  17. package/react/assets/css/core/formElements.css +23 -23
  18. package/react/assets/css/core/icons.css +69 -69
  19. package/react/assets/css/core/notifications.css +75 -75
  20. package/react/assets/css/core/windowFrame.css +36 -36
  21. package/react/assets/css/dashbar.css +78 -78
  22. package/react/assets/css/defaultTheme.css +356 -356
  23. package/react/assets/css/dialogs.css +158 -158
  24. package/react/assets/css/favorites.css +101 -101
  25. package/react/assets/css/finsemble.css +38 -38
  26. package/react/assets/css/focus.css +4 -4
  27. package/react/assets/css/font-finance.css +385 -385
  28. package/react/assets/css/fonts/Open_Sans/LICENSE.txt +202 -202
  29. package/react/assets/css/fonts/Open_Sans/OpenSans-Definition.css +118 -118
  30. package/react/assets/css/fonts/font-finance.svg +124 -124
  31. package/react/assets/css/fonts/icons-reference.html +1174 -1174
  32. package/react/assets/css/linkerWindow.css +124 -124
  33. package/react/assets/css/menus.css +195 -195
  34. package/react/assets/css/notificationsCenter.css +597 -597
  35. package/react/assets/css/processMonitor.css +213 -213
  36. package/react/assets/css/search.css +128 -128
  37. package/react/assets/css/shared/animations.css +99 -99
  38. package/react/assets/css/tags.css +136 -136
  39. package/react/assets/css/toolbar.css +413 -413
  40. package/react/assets/css/userPreferences.css +538 -568
  41. package/react/assets/css/windowTitleBar.css +653 -652
  42. package/react/assets/icons/always-on-top.svg +20 -0
  43. package/react/assets/icons/caret.svg +7 -0
  44. package/react/assets/icons/check-square.svg +5 -5
  45. package/react/assets/icons/check.svg +3 -3
  46. package/react/assets/icons/chevron-left.svg +3 -3
  47. package/react/assets/icons/chevron-right.svg +3 -3
  48. package/react/assets/icons/close.svg +11 -0
  49. package/react/assets/icons/copy.svg +10 -10
  50. package/react/assets/icons/documentation.svg +20 -0
  51. package/react/assets/icons/exclamation-circle.svg +4 -4
  52. package/react/assets/icons/external-link.svg +12 -12
  53. package/react/assets/icons/flag.svg +10 -10
  54. package/react/assets/icons/folder.svg +3 -3
  55. package/react/assets/icons/font.svg +3 -3
  56. package/react/assets/icons/globe.svg +3 -3
  57. package/react/assets/icons/hdd.svg +9 -9
  58. package/react/assets/icons/key.svg +10 -10
  59. package/react/assets/icons/life-ring.svg +3 -3
  60. package/react/assets/icons/linker.svg +18 -0
  61. package/react/assets/icons/lock.svg +5 -5
  62. package/react/assets/icons/magic.svg +15 -15
  63. package/react/assets/icons/maximize.svg +16 -0
  64. package/react/assets/icons/minimize.svg +15 -0
  65. package/react/assets/icons/moon.svg +10 -10
  66. package/react/assets/icons/paint-roller.svg +3 -3
  67. package/react/assets/icons/pencil.svg +10 -10
  68. package/react/assets/icons/plus.svg +3 -3
  69. package/react/assets/icons/question-circle.svg +5 -5
  70. package/react/assets/icons/search.svg +3 -3
  71. package/react/assets/icons/sun.svg +9 -9
  72. package/react/assets/icons/times.svg +3 -3
  73. package/react/assets/icons/toggle-off.svg +6 -6
  74. package/react/assets/icons/toggle-on.svg +6 -6
  75. package/react/assets/icons/toolbar.svg +12 -0
  76. package/react/assets/icons/tools.svg +3 -3
  77. package/react/assets/icons/trash.svg +12 -12
  78. package/react/assets/icons/upload.svg +10 -10
  79. package/react/assets/icons/window.svg +3 -3
  80. package/react/assets/img/finsemble-display.png +0 -0
  81. package/react/componentTemplateGenerator.js +85 -85
  82. package/react/componentTemplateGenerator.js.map +1 -1
  83. package/react/components/FinsembleProvider.js.map +1 -1
  84. package/react/components/appCatalog/AppCatalog.js.map +1 -1
  85. package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
  86. package/react/components/appCatalog/components/AppCard.js.map +1 -1
  87. package/react/components/appCatalog/components/AppList.js.map +1 -1
  88. package/react/components/appCatalog/components/AppResults.js.map +1 -1
  89. package/react/components/appCatalog/components/Carousel.js.map +1 -1
  90. package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
  91. package/react/components/appCatalog/components/Hero.js.map +1 -1
  92. package/react/components/appCatalog/components/Home.js.map +1 -1
  93. package/react/components/appCatalog/components/SearchBar.js.map +1 -1
  94. package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
  95. package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
  96. package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
  97. package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
  98. package/react/components/appCatalog/components/Showcase/ImageCarousel.js.map +1 -1
  99. package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
  100. package/react/components/appCatalog/components/Showcase/ReleaseNotes.js.map +1 -1
  101. package/react/components/appCatalog/components/Showcase/SupportNotes.js.map +1 -1
  102. package/react/components/appCatalog/components/Showcase/VersionNotes.js.map +1 -1
  103. package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
  104. package/react/components/appCatalog/components/Tag.js.map +1 -1
  105. package/react/components/appCatalog/components/Toast.js.map +1 -1
  106. package/react/components/appCatalog/components/helpers.js.map +1 -1
  107. package/react/components/appCatalog/index.js.map +1 -1
  108. package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
  109. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  110. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  111. package/react/components/appCatalog/stores/storeActions.js.map +1 -1
  112. package/react/components/common/Accordion.d.ts +11 -0
  113. package/react/components/common/Accordion.js +20 -0
  114. package/react/components/common/Accordion.js.map +1 -0
  115. package/react/components/common/Button.js.map +1 -1
  116. package/react/components/common/ButtonIcon.js.map +1 -1
  117. package/react/components/common/ButtonRow.js.map +1 -1
  118. package/react/components/common/ButtonTile.js.map +1 -1
  119. package/react/components/common/Checkbox.d.ts +1 -0
  120. package/react/components/common/Checkbox.js +3 -1
  121. package/react/components/common/Checkbox.js.map +1 -1
  122. package/react/components/common/ColorPicker.js.map +1 -1
  123. package/react/components/common/DropZone.js.map +1 -1
  124. package/react/components/common/DropdownButton.js.map +1 -1
  125. package/react/components/common/FileInput.d.ts +2 -1
  126. package/react/components/common/FileInput.js +9 -4
  127. package/react/components/common/FileInput.js.map +1 -1
  128. package/react/components/common/FinsembleIcon.d.ts +1 -1
  129. package/react/components/common/FinsembleIcon.js +16 -0
  130. package/react/components/common/FinsembleIcon.js.map +1 -1
  131. package/react/components/common/FinsembleSelect.js.map +1 -1
  132. package/react/components/common/FinsembleToggle.js.map +1 -1
  133. package/react/components/common/Header.js +1 -1
  134. package/react/components/common/Header.js.map +1 -1
  135. package/react/components/common/ImagePreview.js.map +1 -1
  136. package/react/components/common/InputTable.d.ts +11 -0
  137. package/react/components/common/InputTable.js +50 -0
  138. package/react/components/common/InputTable.js.map +1 -0
  139. package/react/components/common/LoadingSpinner.js.map +1 -1
  140. package/react/components/common/Tab.js.map +1 -1
  141. package/react/components/common/Tooltip.js.map +1 -1
  142. package/react/components/common/css/accordion.css +99 -0
  143. package/react/components/common/css/application-edit-page.css +324 -117
  144. package/react/components/common/css/application-list.css +49 -47
  145. package/react/components/common/css/button.css +166 -164
  146. package/react/components/common/css/checkbox.css +30 -0
  147. package/react/components/common/css/color-picker.css +52 -52
  148. package/react/components/common/css/drop-zone.css +17 -17
  149. package/react/components/common/css/file-input.css +65 -49
  150. package/react/components/common/css/header.css +30 -43
  151. package/react/components/common/css/icon.css +13 -13
  152. package/react/components/common/css/image-preview.css +57 -57
  153. package/react/components/common/css/loading-spinner.css +39 -39
  154. package/react/components/common/css/selector.css +51 -51
  155. package/react/components/common/css/styles.css +127 -128
  156. package/react/components/common/css/tab.css +56 -56
  157. package/react/components/common/css/toggle.css +32 -32
  158. package/react/components/common/css/tooltip.css +78 -78
  159. package/react/components/common/file_helpers.js.map +1 -1
  160. package/react/components/common/fixtures/FinsembleIcon.css +4 -4
  161. package/react/components/common/helpers.js.map +1 -1
  162. package/react/components/common/stories/Accordion.stories.d.ts +14 -0
  163. package/react/components/common/stories/Accordion.stories.js +42 -0
  164. package/react/components/common/stories/Accordion.stories.js.map +1 -0
  165. package/react/components/common/stories/Button.stories.js.map +1 -1
  166. package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
  167. package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
  168. package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
  169. package/react/components/common/stories/Checkbox.stories.js.map +1 -1
  170. package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
  171. package/react/components/common/stories/DropZone.stories.js.map +1 -1
  172. package/react/components/common/stories/DropdownButton.stories.d.ts +11 -0
  173. package/react/components/common/stories/DropdownButton.stories.js +12 -0
  174. package/react/components/common/stories/DropdownButton.stories.js.map +1 -1
  175. package/react/components/common/stories/FileInput.stories.d.ts +2 -1
  176. package/react/components/common/stories/FileInput.stories.js +6 -0
  177. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  178. package/react/components/common/stories/FinsembleIcon.stories.js +1 -0
  179. package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
  180. package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
  181. package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
  182. package/react/components/common/stories/Header.stories.js.map +1 -1
  183. package/react/components/common/stories/ImagePreview.stories.js.map +1 -1
  184. package/react/components/common/stories/InputTable.stories.d.ts +12 -0
  185. package/react/components/common/stories/InputTable.stories.js +35 -0
  186. package/react/components/common/stories/InputTable.stories.js.map +1 -0
  187. package/react/components/common/stories/LoadingSpinner.stories.js.map +1 -1
  188. package/react/components/common/stories/Tab.stories.js.map +1 -1
  189. package/react/components/common/stories/Tooltip.stories.js.map +1 -1
  190. package/react/components/{smartDesktopDesigner/tests/ApplicationEdit.spec.d.ts → common/tests/Accordion.spec.d.ts} +0 -0
  191. package/react/components/common/tests/Accordion.spec.js +53 -0
  192. package/react/components/common/tests/Accordion.spec.js.map +1 -0
  193. package/react/components/common/tests/ButtonRow.spec.js.map +1 -1
  194. package/react/components/common/tests/Checkbox.spec.js +5 -3
  195. package/react/components/common/tests/Checkbox.spec.js.map +1 -1
  196. package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
  197. package/react/components/common/tests/DropZone.spec.js.map +1 -1
  198. package/react/components/common/tests/FileInput.spec.js +20 -5
  199. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  200. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  201. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  202. package/react/components/common/tests/Header.spec.js +6 -2
  203. package/react/components/common/tests/Header.spec.js.map +1 -1
  204. package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
  205. package/react/components/{smartDesktopDesigner/tests/ApplicationSetup.spec.d.ts → common/tests/InputTable.spec.d.ts} +0 -0
  206. package/react/components/common/tests/InputTable.spec.js +166 -0
  207. package/react/components/common/tests/InputTable.spec.js.map +1 -0
  208. package/react/components/common/tests/Tab.spec.js.map +1 -1
  209. package/react/components/common/tests/Tooltip.spec.js.map +1 -1
  210. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  211. package/react/components/favorites/FavoritesShell.js.map +1 -1
  212. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  213. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  214. package/react/components/favorites/index.js.map +1 -1
  215. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  216. package/react/components/fdc3Resolver/ResolverDialog.css +126 -126
  217. package/react/components/fdc3Resolver/ResolverDialog.js +1 -1
  218. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  219. package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
  220. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  221. package/react/components/fdc3Resolver/ResolverDialog.stories.js +13 -0
  222. package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
  223. package/react/components/icon/Icon.js.map +1 -1
  224. package/react/components/icon/index.js.map +1 -1
  225. package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
  226. package/react/components/legacyControls/FinsembleDialogButton.js +1 -1
  227. package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
  228. package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
  229. package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
  230. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  231. package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
  232. package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
  233. package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
  234. package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
  235. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
  236. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
  237. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
  238. package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
  239. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
  240. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
  241. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  242. package/react/components/linker/LinkerMenu.js.map +1 -1
  243. package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
  244. package/react/components/linker/index.js.map +1 -1
  245. package/react/components/linker/remoteRedux.js.map +1 -1
  246. package/react/components/menu/Menu.d.ts +1 -0
  247. package/react/components/menu/Menu.js.map +1 -1
  248. package/react/components/menu/MenuAutoResizer.d.ts +2 -1
  249. package/react/components/menu/MenuAutoResizer.js +4 -3
  250. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  251. package/react/components/menu/MenuContent.js.map +1 -1
  252. package/react/components/menu/MenuHotKey.js.map +1 -1
  253. package/react/components/menu/MenuItem.js.map +1 -1
  254. package/react/components/menu/MenuPortal.js +99 -92
  255. package/react/components/menu/MenuPortal.js.map +1 -1
  256. package/react/components/menu/MenuShell.d.ts +1 -0
  257. package/react/components/menu/MenuShell.js +3 -2
  258. package/react/components/menu/MenuShell.js.map +1 -1
  259. package/react/components/menu/MenuToggle.js.map +1 -1
  260. package/react/components/menu/index.js.map +1 -1
  261. package/react/components/menu/keyboardNavigation.js.map +1 -1
  262. package/react/components/menu/menuContext.d.ts +1 -0
  263. package/react/components/menu/menuContext.js.map +1 -1
  264. package/react/components/menu/menuHelpers.d.ts +1 -1
  265. package/react/components/menu/menuHelpers.js +2 -2
  266. package/react/components/menu/menuHelpers.js.map +1 -1
  267. package/react/components/notifications/components/NoNotifications.js.map +1 -1
  268. package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
  269. package/react/components/notifications/components/drawer/DrawerControls.js +30 -6
  270. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  271. package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
  272. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +2 -0
  273. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  274. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +20 -27
  275. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  276. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  277. package/react/components/notifications/components/shared/IconButton.js +5 -1
  278. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  279. package/react/components/notifications/components/shared/NotificationCardShell.js +1 -1
  280. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  281. package/react/components/notifications/components/shared/OverflowMenu.js +5 -1
  282. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  283. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  284. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js.map +1 -1
  285. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  286. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  287. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js.map +1 -1
  288. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  289. package/react/components/notifications/components/views/CardView.js.map +1 -1
  290. package/react/components/notifications/components/views/ListView.js +1 -1
  291. package/react/components/notifications/components/views/ListView.js.map +1 -1
  292. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  293. package/react/components/notifications/constants.js.map +1 -1
  294. package/react/components/notifications/icons/Card.js.map +1 -1
  295. package/react/components/notifications/icons/Chevron.js.map +1 -1
  296. package/react/components/notifications/icons/CloseIcon.js.map +1 -1
  297. package/react/components/notifications/icons/EnvelopeClose.js.map +1 -1
  298. package/react/components/notifications/icons/EnvelopeOpen.js.map +1 -1
  299. package/react/components/notifications/icons/SnoozeIcon.js.map +1 -1
  300. package/react/components/notifications/index.js.map +1 -1
  301. package/react/components/notifications/notificationsContext.js.map +1 -1
  302. package/react/components/notifications/types.js.map +1 -1
  303. package/react/components/notifications/utils.js.map +1 -1
  304. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  305. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  306. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  307. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  308. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  309. package/react/components/processMonitor/constants.js.map +1 -1
  310. package/react/components/processMonitor/helpers.js.map +1 -1
  311. package/react/components/processMonitor/helpers.spec.js.map +1 -1
  312. package/react/components/processMonitor/index.js.map +1 -1
  313. package/react/components/processMonitor/stores/ProcessMonitorStore.js +49 -49
  314. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  315. package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
  316. package/react/components/quickComponentForm/index.js.map +1 -1
  317. package/react/components/quickComponentForm/quickComponent.css +3 -3
  318. package/react/components/search/Highlight.js.map +1 -1
  319. package/react/components/search/Highlight.spec.js.map +1 -1
  320. package/react/components/search/Highlight.stories.js.map +1 -1
  321. package/react/components/search/Search.js.map +1 -1
  322. package/react/components/search/SearchBestMatch.js.map +1 -1
  323. package/react/components/search/SearchInput.js.map +1 -1
  324. package/react/components/search/SearchProviderResults.js.map +1 -1
  325. package/react/components/search/SearchResult.js.map +1 -1
  326. package/react/components/search/SearchResults.js.map +1 -1
  327. package/react/components/search/index.js.map +1 -1
  328. package/react/components/shared/Animate.js.map +1 -1
  329. package/react/components/shared/BellIcon.js.map +1 -1
  330. package/react/components/shared/BellIconCrossed.js.map +1 -1
  331. package/react/components/shared/Button.js.map +1 -1
  332. package/react/components/shared/ConditionalWrapper.js.map +1 -1
  333. package/react/components/shared/DefaultDropdownButton.js +1 -1
  334. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  335. package/react/components/shared/NavigationButton.js.map +1 -1
  336. package/react/components/shared/Tag.js.map +1 -1
  337. package/react/components/shared/TagsMenu.js.map +1 -1
  338. package/react/components/shared/addProtocolToValidURL.js.map +1 -1
  339. package/react/components/shared/linkerUtil.js.map +1 -1
  340. package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
  341. package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
  342. package/react/components/shared/tests/addProtocolToValidURL.spec.js.map +1 -1
  343. package/react/components/shared/validateURL.js.map +1 -1
  344. package/react/components/shared/validateURL.spec.js.map +1 -1
  345. package/react/components/singleInputDialog/SingleInputDialog.css +3 -3
  346. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  347. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  348. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  349. package/react/components/singleInputDialog/index.js.map +1 -1
  350. package/react/components/smartDesktopDesigner/AddApp.d.ts +14 -0
  351. package/react/components/smartDesktopDesigner/AddApp.js +60 -0
  352. package/react/components/smartDesktopDesigner/AddApp.js.map +1 -0
  353. package/react/components/smartDesktopDesigner/AppEditAccess.js +16 -32
  354. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
  355. package/react/components/smartDesktopDesigner/AppEditPage.d.ts +5 -19
  356. package/react/components/smartDesktopDesigner/AppEditPage.js +548 -59
  357. package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
  358. package/react/components/smartDesktopDesigner/Appearance.css +27 -94
  359. package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +1 -1
  360. package/react/components/smartDesktopDesigner/Appearance.js +1 -1
  361. package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
  362. package/react/components/smartDesktopDesigner/Application.d.ts +1 -0
  363. package/react/components/smartDesktopDesigner/Application.js +151 -93
  364. package/react/components/smartDesktopDesigner/Application.js.map +1 -1
  365. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +2 -1
  366. package/react/components/smartDesktopDesigner/ApplicationList.js +7 -3
  367. package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
  368. package/react/components/smartDesktopDesigner/Applications.d.ts +0 -3
  369. package/react/components/smartDesktopDesigner/Applications.js +52 -102
  370. package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
  371. package/react/components/smartDesktopDesigner/AssetsPage.css +26 -26
  372. package/react/components/smartDesktopDesigner/AssetsPage.js.map +1 -1
  373. package/react/components/smartDesktopDesigner/Authentication.js +2 -9
  374. package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
  375. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +8 -1
  376. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
  377. package/react/components/smartDesktopDesigner/Content.js.map +1 -1
  378. package/react/components/smartDesktopDesigner/ContentHeader.d.ts +5 -0
  379. package/react/components/smartDesktopDesigner/ContentHeader.js +10 -0
  380. package/react/components/smartDesktopDesigner/ContentHeader.js.map +1 -0
  381. package/react/components/smartDesktopDesigner/CurrentView.js +2 -1
  382. package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
  383. package/react/components/smartDesktopDesigner/Export.d.ts +1 -0
  384. package/react/components/smartDesktopDesigner/Export.js +40 -9
  385. package/react/components/smartDesktopDesigner/Export.js.map +1 -1
  386. package/react/components/smartDesktopDesigner/ExportCloud.d.ts +3 -1
  387. package/react/components/smartDesktopDesigner/ExportCloud.js +4 -6
  388. package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
  389. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
  390. package/react/components/smartDesktopDesigner/ExportZip.d.ts +3 -1
  391. package/react/components/smartDesktopDesigner/ExportZip.js +8 -3
  392. package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
  393. package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -0
  394. package/react/components/smartDesktopDesigner/GettingStarted.js +11 -25
  395. package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
  396. package/react/components/smartDesktopDesigner/Navigation.d.ts +2 -2
  397. package/react/components/smartDesktopDesigner/Navigation.js +17 -15
  398. package/react/components/smartDesktopDesigner/Navigation.js.map +1 -1
  399. package/react/components/smartDesktopDesigner/ProjectErrors.js.map +1 -1
  400. package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
  401. package/react/components/smartDesktopDesigner/PublishProgress.js.map +1 -1
  402. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +3 -3
  403. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +11 -17
  404. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  405. package/react/components/smartDesktopDesigner/ThemePage.css +109 -110
  406. package/react/components/smartDesktopDesigner/ThemePage.js +0 -7
  407. package/react/components/smartDesktopDesigner/ThemePage.js.map +1 -1
  408. package/react/components/smartDesktopDesigner/Themes.js +0 -2
  409. package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
  410. package/react/components/smartDesktopDesigner/Toolbar.d.ts +15 -0
  411. package/react/components/smartDesktopDesigner/Toolbar.js +123 -0
  412. package/react/components/smartDesktopDesigner/Toolbar.js.map +1 -0
  413. package/react/components/smartDesktopDesigner/View.js +1 -1
  414. package/react/components/smartDesktopDesigner/View.js.map +1 -1
  415. package/react/components/smartDesktopDesigner/common/fsbl_functions.d.ts +1 -1
  416. package/react/components/smartDesktopDesigner/common/fsbl_functions.js +2 -2
  417. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +1 -1
  418. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
  419. package/react/components/smartDesktopDesigner/common/views.d.ts +2 -36
  420. package/react/components/smartDesktopDesigner/common/views.js +150 -111
  421. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  422. package/react/components/smartDesktopDesigner/css/appearance.css +18 -10
  423. package/react/components/smartDesktopDesigner/css/applications.css +167 -127
  424. package/react/components/smartDesktopDesigner/css/authentication.css +119 -125
  425. package/react/components/smartDesktopDesigner/css/buttons.css +12 -12
  426. package/react/components/smartDesktopDesigner/css/export.css +176 -163
  427. package/react/components/smartDesktopDesigner/css/getting-started.css +28 -6
  428. package/react/components/smartDesktopDesigner/css/nav.css +120 -93
  429. package/react/components/smartDesktopDesigner/css/project-errors.css +15 -15
  430. package/react/components/smartDesktopDesigner/css/project-header.css +124 -121
  431. package/react/components/smartDesktopDesigner/css/styles.css +178 -179
  432. package/react/components/smartDesktopDesigner/css/views.css +23 -16
  433. package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +2 -0
  434. package/react/components/smartDesktopDesigner/fixtures/apps.js +41 -6
  435. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
  436. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +1 -1
  437. package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +1 -1
  438. package/react/components/smartDesktopDesigner/fixtures/exportProps.js +3 -0
  439. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
  440. package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +1 -1
  441. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
  442. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +1 -1
  443. package/react/components/smartDesktopDesigner/fixtures/views.d.ts +2 -2
  444. package/react/components/smartDesktopDesigner/fixtures/views.js +58 -26
  445. package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
  446. package/react/components/smartDesktopDesigner/sdd_helpers.d.ts +1 -1
  447. package/react/components/smartDesktopDesigner/sdd_helpers.js +4 -3
  448. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
  449. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -1
  450. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +12 -33
  451. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
  452. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
  453. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +2 -1
  454. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js +8 -1
  455. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
  456. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
  457. package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +1 -1
  458. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
  459. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.d.ts +10 -0
  460. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js +13 -0
  461. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +1 -0
  462. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
  463. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.d.ts +1 -1
  464. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +1 -1
  465. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
  466. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.d.ts +1 -1
  467. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +1 -1
  468. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
  469. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
  470. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
  471. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
  472. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
  473. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
  474. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +7 -1
  475. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
  476. package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +1 -1
  477. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
  478. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.d.ts +14 -0
  479. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js +38 -0
  480. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +1 -0
  481. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +73 -122
  482. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
  483. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
  484. package/react/components/smartDesktopDesigner/tests/Applications.spec.d.ts +1 -1
  485. package/react/components/smartDesktopDesigner/tests/Applications.spec.js +61 -560
  486. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
  487. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
  488. package/react/components/smartDesktopDesigner/tests/{ProjectHeader.spec.d.ts → ContentHeader.spec.d.ts} +0 -0
  489. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js +31 -0
  490. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +1 -0
  491. package/react/components/smartDesktopDesigner/tests/Export.spec.js +129 -0
  492. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
  493. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +7 -0
  494. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
  495. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
  496. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +3 -14
  497. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
  498. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
  499. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
  500. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +2 -31
  501. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
  502. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
  503. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.d.ts +1 -0
  504. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js +203 -0
  505. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +1 -0
  506. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
  507. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.d.ts +1 -0
  508. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js +18 -0
  509. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +1 -0
  510. package/react/components/smartDesktopDesigner/themeDefinitions.js.map +1 -1
  511. package/react/components/system/System.js.map +1 -1
  512. package/react/components/system/System.spec.js.map +1 -1
  513. package/react/components/system/System.stories.js.map +1 -1
  514. package/react/components/system/SystemTrayComponentShell.js.map +1 -1
  515. package/react/components/system/index.js.map +1 -1
  516. package/react/components/toolbar/AutoArrange.js.map +1 -1
  517. package/react/components/toolbar/DragHandle.js.map +1 -1
  518. package/react/components/toolbar/MinimizeAll.js.map +1 -1
  519. package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
  520. package/react/components/toolbar/MinimizeAll.stories.js.map +1 -1
  521. package/react/components/toolbar/NotificationControl.js.map +1 -1
  522. package/react/components/toolbar/RevealAll.js.map +1 -1
  523. package/react/components/toolbar/RevealAll.spec.js.map +1 -1
  524. package/react/components/toolbar/RevealAll.stories.js.map +1 -1
  525. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  526. package/react/components/toolbar/ToolbarSection.js.map +1 -1
  527. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  528. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  529. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
  530. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
  531. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
  532. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
  533. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  534. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
  535. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  536. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  537. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +47 -45
  538. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  539. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
  540. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
  541. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
  542. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
  543. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  544. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
  545. package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
  546. package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
  547. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
  548. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  549. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  550. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  551. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  552. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
  553. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +1 -0
  554. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
  555. package/react/components/toolbar/appLauncher/appLauncher.css +30 -30
  556. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  557. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +1 -0
  558. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +17 -34
  559. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  560. package/react/components/toolbar/dashbar/Dashbar.js +3 -1
  561. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  562. package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
  563. package/react/components/toolbar/index.js.map +1 -1
  564. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +1 -1
  565. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  566. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  567. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  568. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
  569. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  570. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  571. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +1 -1
  572. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  573. package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +90 -90
  574. package/react/components/userPreferences/NotificationsPreferencesContext.js.map +1 -1
  575. package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -1
  576. package/react/components/userPreferences/UserPreferences.js.map +1 -1
  577. package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
  578. package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
  579. package/react/components/userPreferences/components/ContentSection.js.map +1 -1
  580. package/react/components/userPreferences/components/LeftNav.js.map +1 -1
  581. package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
  582. package/react/components/userPreferences/components/content/DashbarEditorItem.js.map +1 -1
  583. package/react/components/userPreferences/components/content/General.js.map +1 -1
  584. package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
  585. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  586. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  587. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  588. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
  589. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  590. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  591. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
  592. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
  593. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
  594. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
  595. package/react/components/userPreferences/index.js.map +1 -1
  596. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  597. package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
  598. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
  599. package/react/components/userPreferences/stories/General.stories.js.map +1 -1
  600. package/react/components/userPreferences/stories/Notifications.stories.js.map +1 -1
  601. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
  602. package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
  603. package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
  604. package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
  605. package/react/components/userPreferences/stories/WorkspaceComponents.stories.js.map +1 -1
  606. package/react/components/userPreferences/stories/WorkspaceItem.stories.js.map +1 -1
  607. package/react/components/userPreferences/stories/WorkspaceItemList.stories.js.map +1 -1
  608. package/react/components/userPreferences/stories/Workspaces.stories.js.map +1 -1
  609. package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
  610. package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
  611. package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
  612. package/react/components/userPreferences/tests/General.spec.js.map +1 -1
  613. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  614. package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
  615. package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
  616. package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
  617. package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
  618. package/react/components/userPreferences/tests/ScheduledRestart.spec.js +1 -1
  619. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  620. package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
  621. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
  622. package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
  623. package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
  624. package/react/components/utils.js.map +1 -1
  625. package/react/components/windowTitleBar/WindowTitleBarShell.js +8 -1
  626. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  627. package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -1
  628. package/react/components/windowTitleBar/components/center/Tab.js +2 -2
  629. package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
  630. package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -1
  631. package/react/components/windowTitleBar/components/center/TabList.js +16 -79
  632. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  633. package/react/components/windowTitleBar/components/center/TabRegion.js.map +1 -1
  634. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  635. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +1 -1
  636. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
  637. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
  638. package/react/components/windowTitleBar/components/left/ShareButton.js.map +1 -1
  639. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +1 -1
  640. package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
  641. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  642. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +7 -0
  643. package/react/components/windowTitleBar/components/right/MaximizeButton.js +11 -1
  644. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  645. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
  646. package/react/components/windowTitleBar/components/windowTitle.d.ts +6 -5
  647. package/react/components/windowTitleBar/components/windowTitle.js +143 -35
  648. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  649. package/react/components/windowTitleBar/index.js.map +1 -1
  650. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +5 -1
  651. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  652. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
  653. package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
  654. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  655. package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
  656. package/react/components/yesNoDialog/YesNoDialog.css +3 -3
  657. package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
  658. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  659. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  660. package/react/components/yesNoDialog/index.js.map +1 -1
  661. package/react/components/yesNoDialog/timer.js.map +1 -1
  662. package/react/enzymeSetup.js +1 -1
  663. package/react/enzymeSetup.js.map +1 -1
  664. package/react/hooks/index.js.map +1 -1
  665. package/react/hooks/useAuth.js.map +1 -1
  666. package/react/hooks/useDashbar.d.ts +8 -0
  667. package/react/hooks/useDashbar.js +104 -0
  668. package/react/hooks/useDashbar.js.map +1 -0
  669. package/react/hooks/useDeepEffect.js.map +1 -1
  670. package/react/hooks/useFavorites.js.map +1 -1
  671. package/react/hooks/useFavoritesShell.js.map +1 -1
  672. package/react/hooks/useHotkey.js.map +1 -1
  673. package/react/hooks/useLinker.js.map +1 -1
  674. package/react/hooks/useMenu.js.map +1 -1
  675. package/react/hooks/useNotifications.js.map +1 -1
  676. package/react/hooks/useOutsideClickDetector.js.map +1 -1
  677. package/react/hooks/usePubSub.js.map +1 -1
  678. package/react/hooks/useSearch.js.map +1 -1
  679. package/react/hooks/useToolbar.d.ts +0 -6
  680. package/react/hooks/useToolbar.js +0 -101
  681. package/react/hooks/useToolbar.js.map +1 -1
  682. package/react/hooks/useWorkspace.js.map +1 -1
  683. package/react/reducers/favoriteReducer.js.map +1 -1
  684. package/react/reducers/linkerReducer.js.map +1 -1
  685. package/react/reducers/menuReducer.js.map +1 -1
  686. package/react/reducers/rootReducer.d.ts +0 -4
  687. package/react/reducers/rootReducer.js.map +1 -1
  688. package/react/reducers/searchReducer.js.map +1 -1
  689. package/react/reducers/smartDesktopDesignerReducer.js +0 -3
  690. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  691. package/react/reducers/toolbarReducer.js.map +1 -1
  692. package/react/reducers/workspaceReducer.js.map +1 -1
  693. package/react/store.d.ts +0 -8
  694. package/react/store.js.map +1 -1
  695. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  696. package/react/types/dashbarTypes.js.map +1 -1
  697. package/react/types/favoriteTypes.js.map +1 -1
  698. package/react/types/fdc3.d.ts +7 -35
  699. package/react/types/fdc3.js.map +1 -1
  700. package/react/types/hotkeyTypes.js.map +1 -1
  701. package/react/types/iconTypes.js.map +1 -1
  702. package/react/types/linkerTypes.js.map +1 -1
  703. package/react/types/searchTypes.js.map +1 -1
  704. package/react/types/smartDesktopDesignerTypes.d.ts +45 -5
  705. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  706. package/react/types/windowTitleBar.d.ts +4 -2
  707. package/react/types/windowTitleBar.js.map +1 -1
  708. package/react/types/workspaceTypes.js.map +1 -1
  709. package/react/components/common/FontSizeSelector.d.ts +0 -7
  710. package/react/components/common/FontSizeSelector.js +0 -42
  711. package/react/components/common/FontSizeSelector.js.map +0 -1
  712. package/react/components/common/stories/FontSizeSelector.stories.d.ts +0 -12
  713. package/react/components/common/stories/FontSizeSelector.stories.js +0 -24
  714. package/react/components/common/stories/FontSizeSelector.stories.js.map +0 -1
  715. package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +0 -25
  716. package/react/components/smartDesktopDesigner/ApplicationEdit.js +0 -103
  717. package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +0 -1
  718. package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +0 -23
  719. package/react/components/smartDesktopDesigner/ApplicationSetup.js +0 -73
  720. package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +0 -1
  721. package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +0 -14
  722. package/react/components/smartDesktopDesigner/ProjectHeader.js +0 -70
  723. package/react/components/smartDesktopDesigner/ProjectHeader.js.map +0 -1
  724. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.d.ts +0 -4
  725. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +0 -45
  726. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +0 -1
  727. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.d.ts +0 -3
  728. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +0 -29
  729. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +0 -1
  730. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.d.ts +0 -12
  731. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +0 -21
  732. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +0 -1
  733. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.d.ts +0 -12
  734. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +0 -28
  735. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +0 -1
  736. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +0 -10
  737. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +0 -19
  738. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +0 -1
  739. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +0 -66
  740. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +0 -1
  741. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +0 -41
  742. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +0 -1
  743. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +0 -27
  744. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useWorkspace.js","sourceRoot":"","sources":["../../src/hooks/useWorkspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,iBAAiB,GAAG,CAAC,CAAM,EAAE,EAAE,IAAI,EAA4B,EAAE,EAAE;QACxE,IAAI,IAAI,EAAE;YACT,QAAQ,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC;SACvD;IACF,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/D,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,cAAc,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QAGd,MAAM,0BAA0B,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CACrE,mCAAmC,EACnC,iBAAiB,CACjB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CACjC;YACC,KAAK,EAAE,mEAAmE;SAC1E,EACD,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAEb,IAAI,IAAI,QAAQ,CAAC,gBAAgB,CAAC,0CAA0C,CAAC,IAAI,CAAC,CAAC,CAAC;QACrF,CAAC,CACD,CAAC;QAEF,OAAO,SAAS,OAAO;YACtB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;QACnE,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC","sourcesContent":["import { useDispatch, useSelector } from \"../store\";\r\nimport { WorkspaceActions } from \"../actions/workspaceActions\";\r\nimport { WorkspaceState } from \"../reducers/workspaceReducer\";\r\nimport { useEffect } from \"react\";\r\n\r\n/**\r\n * A hook for getting the current workspaces including the ActiveWorkspace,\r\n * and listening on any workspace updates.\r\n */\r\nexport const useWorkspaces = () => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst onWorkspaceUpdate = (_: any, { data }: { data: WorkspaceState }) => {\r\n\t\tif (data) {\r\n\t\t\tdispatch(WorkspaceActions.UPDATE_ALL_WORKSPACES(data));\r\n\t\t}\r\n\t};\r\n\r\n\tconst workspaceState = useSelector((state) => state.workspace);\r\n\tconst { workspaces, activeWorkspace, promptOnSave } = workspaceState;\r\n\r\n\tuseEffect(() => {\r\n\t\t// When the workspace updates, update the active workspace name.\r\n\t\t// We will also get the active workspace as soon as we subscribe.\r\n\t\tconst WorkspaceUpdateSubscribeID = FSBL.Clients.RouterClient.subscribe(\r\n\t\t\t\"Finsemble.WorkspaceService.update\",\r\n\t\t\tonWorkspaceUpdate\r\n\t\t);\r\n\t\tFSBL.Clients.ConfigClient.getValue<boolean>(\r\n\t\t\t{\r\n\t\t\t\tfield: \"finsemble.preferences.workspaceService.promptUserOnDirtyWorkspace\",\r\n\t\t\t},\r\n\t\t\t(err, data) => {\r\n\t\t\t\t// default to false.\r\n\t\t\t\tdata && dispatch(WorkspaceActions.UPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE(data));\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t\treturn function cleanup() {\r\n\t\t\tFSBL.Clients.RouterClient.unsubscribe(WorkspaceUpdateSubscribeID);\r\n\t\t};\r\n\t}, []);\r\n\r\n\treturn { workspaces, activeWorkspace, promptOnSave };\r\n};\r\n"]}
1
+ {"version":3,"file":"useWorkspace.js","sourceRoot":"","sources":["../../src/hooks/useWorkspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,iBAAiB,GAAG,CAAC,CAAM,EAAE,EAAE,IAAI,EAA4B,EAAE,EAAE;QACxE,IAAI,IAAI,EAAE;YACT,QAAQ,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC;SACvD;IACF,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/D,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,cAAc,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QAGd,MAAM,0BAA0B,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CACrE,mCAAmC,EACnC,iBAAiB,CACjB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CACjC;YACC,KAAK,EAAE,mEAAmE;SAC1E,EACD,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAEb,IAAI,IAAI,QAAQ,CAAC,gBAAgB,CAAC,0CAA0C,CAAC,IAAI,CAAC,CAAC,CAAC;QACrF,CAAC,CACD,CAAC;QAEF,OAAO,SAAS,OAAO;YACtB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;QACnE,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC","sourcesContent":["import { useDispatch, useSelector } from \"../store\";\nimport { WorkspaceActions } from \"../actions/workspaceActions\";\nimport { WorkspaceState } from \"../reducers/workspaceReducer\";\nimport { useEffect } from \"react\";\n\n/**\n * A hook for getting the current workspaces including the ActiveWorkspace,\n * and listening on any workspace updates.\n */\nexport const useWorkspaces = () => {\n\tconst dispatch = useDispatch();\n\n\tconst onWorkspaceUpdate = (_: any, { data }: { data: WorkspaceState }) => {\n\t\tif (data) {\n\t\t\tdispatch(WorkspaceActions.UPDATE_ALL_WORKSPACES(data));\n\t\t}\n\t};\n\n\tconst workspaceState = useSelector((state) => state.workspace);\n\tconst { workspaces, activeWorkspace, promptOnSave } = workspaceState;\n\n\tuseEffect(() => {\n\t\t// When the workspace updates, update the active workspace name.\n\t\t// We will also get the active workspace as soon as we subscribe.\n\t\tconst WorkspaceUpdateSubscribeID = FSBL.Clients.RouterClient.subscribe(\n\t\t\t\"Finsemble.WorkspaceService.update\",\n\t\t\tonWorkspaceUpdate\n\t\t);\n\t\tFSBL.Clients.ConfigClient.getValue<boolean>(\n\t\t\t{\n\t\t\t\tfield: \"finsemble.preferences.workspaceService.promptUserOnDirtyWorkspace\",\n\t\t\t},\n\t\t\t(err, data) => {\n\t\t\t\t// default to false.\n\t\t\t\tdata && dispatch(WorkspaceActions.UPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE(data));\n\t\t\t}\n\t\t);\n\n\t\treturn function cleanup() {\n\t\t\tFSBL.Clients.RouterClient.unsubscribe(WorkspaceUpdateSubscribeID);\n\t\t};\n\t}, []);\n\n\treturn { workspaces, activeWorkspace, promptOnSave };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"favoriteReducer.js","sourceRoot":"","sources":["../../src/reducers/favoriteReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAuB,MAAM,4BAA4B,CAAC;AAWlF,MAAM,CAAC,MAAM,YAAY,GAAkB;IAC1C,SAAS,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAgD,OAAO,CAClF,CAAC,KAAoB,EAAE,MAA2B,EAAE,EAAE;IACrD,eAAe,CAAC,KAAK,CAAC,MAAM,EAAE;QAC7B,oBAAoB,EAAE,CAAC,SAA0B,EAAE,EAAE;YACpD,KAAK,CAAC,SAAS,GAAG,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,EAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,CAAC;QACD,YAAY,EAAE,CAAC,QAAkB,EAAE,EAAE;YACpC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;QACD,eAAe,EAAE,CAAC,QAAwB,EAAE,EAAE;YAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;YACzE,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC;QAChC,CAAC;QACD,iBAAiB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC7C,MAAM,mBAAmB,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;YACjD,MAAM,cAAc,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YACrD,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACxC,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC;YACxD,KAAK,CAAC,SAAS,GAAG,mBAAmB,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\r\nimport { FavoriteActions, FavoriteActionTypes } from \"../actions/favoriteActions\";\r\nimport { Favorite } from \"../types/favoriteTypes\";\r\nimport { Reducer } from \"react\";\r\n\r\n/**\r\n * Favorite state definition.\r\n */\r\nexport type FavoriteState = {\r\n\tfavorites: Favorite[];\r\n};\r\n\r\nexport const initialState: FavoriteState = {\r\n\tfavorites: [],\r\n};\r\n\r\nexport const favoriteReducer: Reducer<FavoriteState, FavoriteActionTypes> = produce(\r\n\t(state: FavoriteState, action: FavoriteActionTypes) => {\r\n\t\tFavoriteActions.match(action, {\r\n\t\t\tINITIALIZE_FAVORITES: (favorites: Array<Favorite>) => {\r\n\t\t\t\tstate.favorites = favorites?.length ? favorites : [];\r\n\t\t\t},\r\n\t\t\tADD_FAVORITE: (favorite: Favorite) => {\r\n\t\t\t\tstate.favorites.push(favorite);\r\n\t\t\t},\r\n\t\t\tREMOVE_FAVORITE: (targetId: Favorite[\"id\"]) => {\r\n\t\t\t\tconst newFavorites = state.favorites.filter(({ id }) => id !== targetId);\r\n\t\t\t\tstate.favorites = newFavorites;\r\n\t\t\t},\r\n\t\t\tREORDER_FAVORITES: ({ oldIndex, newIndex }) => {\r\n\t\t\t\tconst favoritesInNewOrder = [...state.favorites];\r\n\t\t\t\tconst favoriteToMove = favoritesInNewOrder[oldIndex];\r\n\t\t\t\tfavoritesInNewOrder.splice(oldIndex, 1);\r\n\t\t\t\tfavoritesInNewOrder.splice(newIndex, 0, favoriteToMove);\r\n\t\t\t\tstate.favorites = favoritesInNewOrder;\r\n\t\t\t},\r\n\t\t\tdefault: () => state,\r\n\t\t});\r\n\t},\r\n\tinitialState\r\n);\r\n"]}
1
+ {"version":3,"file":"favoriteReducer.js","sourceRoot":"","sources":["../../src/reducers/favoriteReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAuB,MAAM,4BAA4B,CAAC;AAWlF,MAAM,CAAC,MAAM,YAAY,GAAkB;IAC1C,SAAS,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAgD,OAAO,CAClF,CAAC,KAAoB,EAAE,MAA2B,EAAE,EAAE;IACrD,eAAe,CAAC,KAAK,CAAC,MAAM,EAAE;QAC7B,oBAAoB,EAAE,CAAC,SAA0B,EAAE,EAAE;YACpD,KAAK,CAAC,SAAS,GAAG,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,EAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,CAAC;QACD,YAAY,EAAE,CAAC,QAAkB,EAAE,EAAE;YACpC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;QACD,eAAe,EAAE,CAAC,QAAwB,EAAE,EAAE;YAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;YACzE,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC;QAChC,CAAC;QACD,iBAAiB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC7C,MAAM,mBAAmB,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;YACjD,MAAM,cAAc,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YACrD,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACxC,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC;YACxD,KAAK,CAAC,SAAS,GAAG,mBAAmB,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { FavoriteActions, FavoriteActionTypes } from \"../actions/favoriteActions\";\nimport { Favorite } from \"../types/favoriteTypes\";\nimport { Reducer } from \"react\";\n\n/**\n * Favorite state definition.\n */\nexport type FavoriteState = {\n\tfavorites: Favorite[];\n};\n\nexport const initialState: FavoriteState = {\n\tfavorites: [],\n};\n\nexport const favoriteReducer: Reducer<FavoriteState, FavoriteActionTypes> = produce(\n\t(state: FavoriteState, action: FavoriteActionTypes) => {\n\t\tFavoriteActions.match(action, {\n\t\t\tINITIALIZE_FAVORITES: (favorites: Array<Favorite>) => {\n\t\t\t\tstate.favorites = favorites?.length ? favorites : [];\n\t\t\t},\n\t\t\tADD_FAVORITE: (favorite: Favorite) => {\n\t\t\t\tstate.favorites.push(favorite);\n\t\t\t},\n\t\t\tREMOVE_FAVORITE: (targetId: Favorite[\"id\"]) => {\n\t\t\t\tconst newFavorites = state.favorites.filter(({ id }) => id !== targetId);\n\t\t\t\tstate.favorites = newFavorites;\n\t\t\t},\n\t\t\tREORDER_FAVORITES: ({ oldIndex, newIndex }) => {\n\t\t\t\tconst favoritesInNewOrder = [...state.favorites];\n\t\t\t\tconst favoriteToMove = favoritesInNewOrder[oldIndex];\n\t\t\t\tfavoritesInNewOrder.splice(oldIndex, 1);\n\t\t\t\tfavoritesInNewOrder.splice(newIndex, 0, favoriteToMove);\n\t\t\t\tstate.favorites = favoritesInNewOrder;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
@@ -1 +1 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BAAgB,CAAC;YAC1C,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;gBACpD,IAAI,OAAO,EAAE;oBACZ,OAAO,CAAC,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBACzD;aACD;QACF,CAAC;QACD,iBAAiB,EAAE,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE;YAC7C,KAAK,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC/C,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\r\nimport { Channel, WindowIdentifier } from \"../types/linkerTypes\";\r\nimport { LinkerActionTypes, LinkerActions } from \"../actions/linkerActions\";\r\nimport { Reducer } from \"react\";\r\n\r\n/**\r\n * Linker component type definition\r\n */\r\nexport type LinkerState = {\r\n\t/* The linker channels */\r\n\tchannels: Record<number, Channel | undefined>;\r\n\t/* Default to true. If the linker is an accessible linker, its channel labels will be shown along with the color indicators */\r\n\tisAccessibleLinker: boolean;\r\n\t/* The window identifier for the window that the linker component is on. They have one to one matching relationship */\r\n\twindowIdentifier?: WindowIdentifier;\r\n};\r\n\r\n// The linker state before we initialize the linker. The initialize linker function will\r\n// make calls to the LinkerClient and\r\n// fill in the state with the relevant linker information.\r\nexport const initialState: LinkerState = {\r\n\tchannels: {},\r\n\tisAccessibleLinker: true,\r\n};\r\n// The linker's reducer\r\nexport const linkerReducer: Reducer<LinkerState, LinkerActionTypes> = produce(\r\n\t(state: LinkerState, action: LinkerActionTypes) => {\r\n\t\tLinkerActions.match(action, {\r\n\t\t\tUPDATE_CHANNEL_STATUS: ({ channelId, active }) => {\r\n\t\t\t\tconst targetChannel = state.channels[channelId];\r\n\t\t\t\tif (targetChannel) targetChannel.active = active;\r\n\t\t\t},\r\n\t\t\tSET_CHANNELS: ({ channels }) => {\r\n\t\t\t\tstate.channels = channels.map((channel: Channel, index: number) => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tid: index,\r\n\t\t\t\t\t\tname: channel.name,\r\n\t\t\t\t\t\tcolor: channel.color,\r\n\t\t\t\t\t\tborder: channel.border,\r\n\t\t\t\t\t\tactive: false,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tUPDATE_ACTIVE_CHANNELS: ({ channelNames, windowIdentifier }) => {\r\n\t\t\t\tconst channelNameArray = Object.values(channelNames).map((obj) => obj.name);\r\n\t\t\t\tstate.windowIdentifier = windowIdentifier;\r\n\t\t\t\tfor (const channel of Object.values(state.channels)) {\r\n\t\t\t\t\tif (channel) {\r\n\t\t\t\t\t\tchannel.active = channelNameArray.includes(channel.name);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tSET_ACCESSIBILITY: ({ isAccessibleLinker }) => {\r\n\t\t\t\tstate.isAccessibleLinker = isAccessibleLinker;\r\n\t\t\t},\r\n\t\t\tdefault: () => state,\r\n\t\t});\r\n\t},\r\n\tinitialState\r\n);\r\n"]}
1
+ {"version":3,"file":"linkerReducer.js","sourceRoot":"","sources":["../../src/reducers/linkerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAqB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAkB5E,MAAM,CAAC,MAAM,YAAY,GAAgB;IACxC,QAAQ,EAAE,EAAE;IACZ,kBAAkB,EAAE,IAAI;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,OAAO,CAC5E,CAAC,KAAkB,EAAE,MAAyB,EAAE,EAAE;IACjD,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE;QAC3B,qBAAqB,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;YAChD,MAAM,aAA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ier } from \"../types/linkerTypes\";\nimport { LinkerActionTypes, LinkerActions } from \"../actions/linkerActions\";\nimport { Reducer } from \"react\";\n\n/**\n * Linker component type definition\n */\nexport type LinkerState = {\n\t/* The linker channels */\n\tchannels: Record<number, Channel | undefined>;\n\t/* Default to true. If the linker is an accessible linker, its channel labels will be shown along with the color indicators */\n\tisAccessibleLinker: boolean;\n\t/* The window identifier for the window that the linker component is on. They have one to one matching relationship */\n\twindowIdentifier?: WindowIdentifier;\n};\n\n// The linker state before we initialize the linker. The initialize linker function will\n// make calls to the LinkerClient and\n// fill in the state with the relevant linker information.\nexport const initialState: LinkerState = {\n\tchannels: {},\n\tisAccessibleLinker: true,\n};\n// The linker's reducer\nexport const linkerReducer: Reducer<LinkerState, LinkerActionTypes> = produce(\n\t(state: LinkerState, action: LinkerActionTypes) => {\n\t\tLinkerActions.match(action, {\n\t\t\tUPDATE_CHANNEL_STATUS: ({ channelId, active }) => {\n\t\t\t\tconst targetChannel = state.channels[channelId];\n\t\t\t\tif (targetChannel) targetChannel.active = active;\n\t\t\t},\n\t\t\tSET_CHANNELS: ({ channels }) => {\n\t\t\t\tstate.channels = channels.map((channel: Channel, index: number) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: index,\n\t\t\t\t\t\tname: channel.name,\n\t\t\t\t\t\tcolor: channel.color,\n\t\t\t\t\t\tborder: channel.border,\n\t\t\t\t\t\tactive: false,\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t},\n\t\t\tUPDATE_ACTIVE_CHANNELS: ({ channelNames, windowIdentifier }) => {\n\t\t\t\tconst channelNameArray = Object.values(channelNames).map((obj) => obj.name);\n\t\t\t\tstate.windowIdentifier = windowIdentifier;\n\t\t\t\tfor (const channel of Object.values(state.channels)) {\n\t\t\t\t\tif (channel) {\n\t\t\t\t\t\tchannel.active = channelNameArray.includes(channel.name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tSET_ACCESSIBILITY: ({ isAccessibleLinker }) => {\n\t\t\t\tstate.isAccessibleLinker = isAccessibleLinker;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"menuReducer.js","sourceRoot":"","sources":["../../src/reducers/menuReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAmB,MAAM,wBAAwB,CAAC;AAiBtE,MAAM,CAAC,MAAM,YAAY,GAAc;IACtC,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,IAAI;CACnB,CAAC;AAqBF,MAAM,CAAC,MAAM,WAAW,GAAwC,OAAO,CAAC,CAAC,KAAgB,EAAE,MAAuB,EAAE,EAAE;IACrH,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE;QAIzB,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE;YACnB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QACxD,CAAC;QAID,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,EAAE,CAAC;QACvB,CAAC;QAID,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE;YAClB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;QACtE,CAAC;QAID,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;QAC1B,CAAC;QAID,qBAAqB,EAAE,CAAC,EAAE,EAAE,EAAE;YAC7B,IAAI,KAAK,CAAC,aAAa,KAAK,EAAE,IAAI,KAAK,CAAC,UAAU,KAAK,EAAE;gBAAE,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;YACnF,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5B,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\r\nimport { MenuActions, MenuActionTypes } from \"../actions/menuActions\";\r\nimport { Reducer } from \"react\";\r\n\r\n/**\r\n * Menu state definition.\r\n */\r\nexport type MenuState = {\r\n\t/**\r\n\t * Contains the id of the currently open menu\r\n\t */\r\n\topenMenuId: string | null;\r\n\t/**\r\n\t * Contains the id of a menu that has been blurred but not yet closed. See menuReducer for algorithm.\r\n\t */\r\n\tpendingBlurId: string | null;\r\n};\r\n\r\nexport const initialState: MenuState = {\r\n\topenMenuId: null,\r\n\tpendingBlurId: null,\r\n};\r\n\r\n/**\r\n * Algorithm for managing \"toggle/blur\" race condition\r\n *\r\n * When a user clicks the for an open window it triggers two events which end up in a race.\r\n * A blur event will close the menu. A toggle event will also close the menu.\r\n * However, if the blur event arrives *before* the toggle event then the menu would (1) close, (2) toggle back open\r\n *\r\n * The algorithm to address this race condition is to instead use three events. These are the two races\r\n * (1) BLUR_MENU - sets pendingBlurId to the id of the menu\r\n * (2) TOGGLE_MENU - closes the menu if it is open (true), and clears pendingBlurId\r\n * (3) CLOSE_IF_PENDING - closes the menu only if pendingBlurId is still set, and clears pendingBlurId\r\n *\r\n * (1) TOGGLE_MENU - closes the menu if it is open (pendingBlurId will not be set)\r\n * (2) BLUR_MENU - sets pendingBlurId to the id of the menu\r\n * (3) CLOSE_IF_PENDING - menu is already closed. clears pendingBlurId.\r\n *\r\n * menuHook() is responsible for triggering each of these events.\r\n * This algorithm depends on the time delay between BLUR_MENU and CLOSE_IF_PENDING to be long enough that TOGGLE_MENU is assured to trigger.\r\n */\r\nexport const menuReducer: Reducer<MenuState, MenuActionTypes> = produce((state: MenuState, action: MenuActionTypes) => {\r\n\tMenuActions.match(action, {\r\n\t\t/**\r\n\t\t * If the menu is open then close it. If it's closed then open it.\r\n\t\t */\r\n\t\tTOGGLE_MENU: (id) => {\r\n\t\t\tstate.pendingBlurId = null;\r\n\t\t\tstate.openMenuId = state.openMenuId === id ? null : id;\r\n\t\t},\r\n\t\t/**\r\n\t\t * Opens the menu. If it is already open then state won't actually change.\r\n\t\t */\r\n\t\tOPEN_MENU: (id) => {\r\n\t\t\tstate.pendingBlurId = null;\r\n\t\t\tstate.openMenuId = id;\r\n\t\t},\r\n\t\t/**\r\n\t\t * Closes the menu iff it is open\r\n\t\t */\r\n\t\tCLOSE_MENU: (id) => {\r\n\t\t\tstate.pendingBlurId = null;\r\n\t\t\tstate.openMenuId = state.openMenuId === id ? null : state.openMenuId;\r\n\t\t},\r\n\t\t/**\r\n\t\t * Sets the menu to be pending close\r\n\t\t */\r\n\t\tBLUR_MENU: (id) => {\r\n\t\t\tstate.pendingBlurId = id;\r\n\t\t},\r\n\t\t/**\r\n\t\t * Closes the menu iff it is open and pending close\r\n\t\t */\r\n\t\tCLOSE_MENU_IF_PENDING: (id) => {\r\n\t\t\tif (state.pendingBlurId === id && state.openMenuId === id) state.openMenuId = null;\r\n\t\t\tstate.pendingBlurId = null;\r\n\t\t},\r\n\t\tdefault: () => state,\r\n\t});\r\n}, initialState);\r\n"]}
1
+ {"version":3,"file":"menuReducer.js","sourceRoot":"","sources":["../../src/reducers/menuReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAmB,MAAM,wBAAwB,CAAC;AAiBtE,MAAM,CAAC,MAAM,YAAY,GAAc;IACtC,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,IAAI;CACnB,CAAC;AAqBF,MAAM,CAAC,MAAM,WAAW,GAAwC,OAAO,CAAC,CAAC,KAAgB,EAAE,MAAuB,EAAE,EAAE;IACrH,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE;QAIzB,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE;YACnB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QACxD,CAAC;QAID,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,EAAE,CAAC;QACvB,CAAC;QAID,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE;YAClB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;QACtE,CAAC;QAID,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;QAC1B,CAAC;QAID,qBAAqB,EAAE,CAAC,EAAE,EAAE,EAAE;YAC7B,IAAI,KAAK,CAAC,aAAa,KAAK,EAAE,IAAI,KAAK,CAAC,UAAU,KAAK,EAAE;gBAAE,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;YACnF,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5B,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\nimport { MenuActions, MenuActionTypes } from \"../actions/menuActions\";\nimport { Reducer } from \"react\";\n\n/**\n * Menu state definition.\n */\nexport type MenuState = {\n\t/**\n\t * Contains the id of the currently open menu\n\t */\n\topenMenuId: string | null;\n\t/**\n\t * Contains the id of a menu that has been blurred but not yet closed. See menuReducer for algorithm.\n\t */\n\tpendingBlurId: string | null;\n};\n\nexport const initialState: MenuState = {\n\topenMenuId: null,\n\tpendingBlurId: null,\n};\n\n/**\n * Algorithm for managing \"toggle/blur\" race condition\n *\n * When a user clicks the for an open window it triggers two events which end up in a race.\n * A blur event will close the menu. A toggle event will also close the menu.\n * However, if the blur event arrives *before* the toggle event then the menu would (1) close, (2) toggle back open\n *\n * The algorithm to address this race condition is to instead use three events. These are the two races\n * (1) BLUR_MENU - sets pendingBlurId to the id of the menu\n * (2) TOGGLE_MENU - closes the menu if it is open (true), and clears pendingBlurId\n * (3) CLOSE_IF_PENDING - closes the menu only if pendingBlurId is still set, and clears pendingBlurId\n *\n * (1) TOGGLE_MENU - closes the menu if it is open (pendingBlurId will not be set)\n * (2) BLUR_MENU - sets pendingBlurId to the id of the menu\n * (3) CLOSE_IF_PENDING - menu is already closed. clears pendingBlurId.\n *\n * menuHook() is responsible for triggering each of these events.\n * This algorithm depends on the time delay between BLUR_MENU and CLOSE_IF_PENDING to be long enough that TOGGLE_MENU is assured to trigger.\n */\nexport const menuReducer: Reducer<MenuState, MenuActionTypes> = produce((state: MenuState, action: MenuActionTypes) => {\n\tMenuActions.match(action, {\n\t\t/**\n\t\t * If the menu is open then close it. If it's closed then open it.\n\t\t */\n\t\tTOGGLE_MENU: (id) => {\n\t\t\tstate.pendingBlurId = null;\n\t\t\tstate.openMenuId = state.openMenuId === id ? null : id;\n\t\t},\n\t\t/**\n\t\t * Opens the menu. If it is already open then state won't actually change.\n\t\t */\n\t\tOPEN_MENU: (id) => {\n\t\t\tstate.pendingBlurId = null;\n\t\t\tstate.openMenuId = id;\n\t\t},\n\t\t/**\n\t\t * Closes the menu iff it is open\n\t\t */\n\t\tCLOSE_MENU: (id) => {\n\t\t\tstate.pendingBlurId = null;\n\t\t\tstate.openMenuId = state.openMenuId === id ? null : state.openMenuId;\n\t\t},\n\t\t/**\n\t\t * Sets the menu to be pending close\n\t\t */\n\t\tBLUR_MENU: (id) => {\n\t\t\tstate.pendingBlurId = id;\n\t\t},\n\t\t/**\n\t\t * Closes the menu iff it is open and pending close\n\t\t */\n\t\tCLOSE_MENU_IF_PENDING: (id) => {\n\t\t\tif (state.pendingBlurId === id && state.openMenuId === id) state.openMenuId = null;\n\t\t\tstate.pendingBlurId = null;\n\t\t},\n\t\tdefault: () => state,\n\t});\n}, initialState);\n"]}
@@ -156,10 +156,6 @@ 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
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"rootReducer.js","sourceRoot":"","sources":["../../src/reducers/rootReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAe,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAiB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAa,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAe5E,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IAC1C,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE,aAAa;IACrB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,eAAe;IACzB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,oBAAoB,EAAE,2BAA2B;CAIjD,CAAC,CAAC","sourcesContent":["import { ToolbarState, toolbarReducer } from \"./toolbarReducer\";\r\nimport { LinkerState, linkerReducer } from \"./linkerReducer\";\r\nimport { combineReducers } from \"redux\";\r\nimport { workspaceReducer, WorkspaceState } from \"./workspaceReducer\";\r\nimport { favoriteReducer, FavoriteState } from \"./favoriteReducer\";\r\nimport { menuReducer, MenuState } from \"./menuReducer\";\r\nimport { searchReducer, SearchState } from \"./searchReducer\";\r\nimport { smartDesktopDesignerReducer } from \"./smartDesktopDesignerReducer\";\r\nimport { SmartDesktopDesignerState } from \"../types/smartDesktopDesignerTypes\";\r\n\r\n// DH 2/11/2019 - This should be auto-inferred from `typeof rootReducer`, but\r\n// I can't get it working, so we'll write it manually.\r\nexport type RootState = {\r\n\ttoolbar: ToolbarState;\r\n\tlinker: LinkerState;\r\n\tworkspace: WorkspaceState;\r\n\tmenu: MenuState;\r\n\tfavorite: FavoriteState;\r\n\tsearch: SearchState;\r\n\tsmartDesktopDesigner: SmartDesktopDesignerState;\r\n};\r\n\r\nexport const rootReducer = combineReducers({\r\n\ttoolbar: toolbarReducer,\r\n\tlinker: linkerReducer,\r\n\tworkspace: workspaceReducer,\r\n\tfavorite: favoriteReducer,\r\n\tmenu: menuReducer,\r\n\tsearch: searchReducer,\r\n\tsmartDesktopDesigner: smartDesktopDesignerReducer,\r\n\t// Before adding your reducer, be sure to add the correct action\r\n\t// types to ../actions/rootActions.ts. Otherwise you will get a deeply\r\n\t// nested type error like \"YOUR_ACTION_TYPE is not assignable to OTHER_ACTION_TYPE\".\r\n});\r\n"]}
1
+ {"version":3,"file":"rootReducer.js","sourceRoot":"","sources":["../../src/reducers/rootReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAe,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAiB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAa,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAe5E,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IAC1C,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE,aAAa;IACrB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,eAAe;IACzB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,oBAAoB,EAAE,2BAA2B;CAIjD,CAAC,CAAC","sourcesContent":["import { ToolbarState, toolbarReducer } from \"./toolbarReducer\";\nimport { LinkerState, linkerReducer } from \"./linkerReducer\";\nimport { combineReducers } from \"redux\";\nimport { workspaceReducer, WorkspaceState } from \"./workspaceReducer\";\nimport { favoriteReducer, FavoriteState } from \"./favoriteReducer\";\nimport { menuReducer, MenuState } from \"./menuReducer\";\nimport { searchReducer, SearchState } from \"./searchReducer\";\nimport { smartDesktopDesignerReducer } from \"./smartDesktopDesignerReducer\";\nimport { SmartDesktopDesignerState } from \"../types/smartDesktopDesignerTypes\";\n\n// DH 2/11/2019 - This should be auto-inferred from `typeof rootReducer`, but\n// I can't get it working, so we'll write it manually.\nexport type RootState = {\n\ttoolbar: ToolbarState;\n\tlinker: LinkerState;\n\tworkspace: WorkspaceState;\n\tmenu: MenuState;\n\tfavorite: FavoriteState;\n\tsearch: SearchState;\n\tsmartDesktopDesigner: SmartDesktopDesignerState;\n};\n\nexport const rootReducer = combineReducers({\n\ttoolbar: toolbarReducer,\n\tlinker: linkerReducer,\n\tworkspace: workspaceReducer,\n\tfavorite: favoriteReducer,\n\tmenu: menuReducer,\n\tsearch: searchReducer,\n\tsmartDesktopDesigner: smartDesktopDesignerReducer,\n\t// Before adding your reducer, be sure to add the correct action\n\t// types to ../actions/rootActions.ts. Otherwise you will get a deeply\n\t// nested type error like \"YOUR_ACTION_TYPE is not assignable to OTHER_ACTION_TYPE\".\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"searchReducer.js","sourceRoot":"","sources":["../../src/reducers/searchReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAqB,MAAM,0BAA0B,CAAC;AAe5E,MAAM,CAAC,MAAM,YAAY,GAAgB;IACxC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,OAAO,CAC5E,CAAC,KAAkB,EAAE,MAAyB,EAAE,EAAE;IACjD,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE;QAG3B,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;QAGD,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE;YAC3B,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC;QAC/B,CAAC;QAGD,YAAY,EAAE,GAAG,EAAE;YAClB,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;YACzB,KAAK,CAAC,WAAW,GAAG,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\r\nimport { SearchActions, SearchActionTypes } from \"../actions/searchActions\";\r\nimport { Reducer } from \"react\";\r\n\r\n/**\r\n * Search state definition.\r\n */\r\nexport type SearchState = {\r\n\t/**\r\n\t */\r\n\tsearchQuery: string;\r\n\t/**\r\n\t */\r\n\tsearchResults: Array<any>;\r\n};\r\n\r\nexport const initialState: SearchState = {\r\n\tsearchQuery: \"\",\r\n\tsearchResults: [],\r\n};\r\n\r\nexport const searchReducer: Reducer<SearchState, SearchActionTypes> = produce(\r\n\t(state: SearchState, action: SearchActionTypes) => {\r\n\t\tSearchActions.match(action, {\r\n\t\t\t/**\r\n\t\t\t */\r\n\t\t\tUPDATE_QUERY: (query) => {\r\n\t\t\t\tstate.searchQuery = query;\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t */\r\n\t\t\tUPDATE_RESULTS: (results) => {\r\n\t\t\t\tstate.searchResults = results;\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t */\r\n\t\t\tRESET_SEARCH: () => {\r\n\t\t\t\tstate.searchResults = [];\r\n\t\t\t\tstate.searchQuery = \"\";\r\n\t\t\t},\r\n\t\t\tdefault: () => state,\r\n\t\t});\r\n\t},\r\n\tinitialState\r\n);\r\n"]}
1
+ {"version":3,"file":"searchReducer.js","sourceRoot":"","sources":["../../src/reducers/searchReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAqB,MAAM,0BAA0B,CAAC;AAe5E,MAAM,CAAC,MAAM,YAAY,GAAgB;IACxC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,OAAO,CAC5E,CAAC,KAAkB,EAAE,MAAyB,EAAE,EAAE;IACjD,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE;QAG3B,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;QAGD,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE;YAC3B,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC;QAC/B,CAAC;QAGD,YAAY,EAAE,GAAG,EAAE;YAClB,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;YACzB,KAAK,CAAC,WAAW,GAAG,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { SearchActions, SearchActionTypes } from \"../actions/searchActions\";\nimport { Reducer } from \"react\";\n\n/**\n * Search state definition.\n */\nexport type SearchState = {\n\t/**\n\t */\n\tsearchQuery: string;\n\t/**\n\t */\n\tsearchResults: Array<any>;\n};\n\nexport const initialState: SearchState = {\n\tsearchQuery: \"\",\n\tsearchResults: [],\n};\n\nexport const searchReducer: Reducer<SearchState, SearchActionTypes> = produce(\n\t(state: SearchState, action: SearchActionTypes) => {\n\t\tSearchActions.match(action, {\n\t\t\t/**\n\t\t\t */\n\t\t\tUPDATE_QUERY: (query) => {\n\t\t\t\tstate.searchQuery = query;\n\t\t\t},\n\t\t\t/**\n\t\t\t */\n\t\t\tUPDATE_RESULTS: (results) => {\n\t\t\t\tstate.searchResults = results;\n\t\t\t},\n\t\t\t/**\n\t\t\t */\n\t\t\tRESET_SEARCH: () => {\n\t\t\t\tstate.searchResults = [];\n\t\t\t\tstate.searchQuery = \"\";\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
@@ -104,9 +104,6 @@ export const smartDesktopDesignerReducer = produce((state, action) => {
104
104
  }
105
105
  state.currentAppId = currentAppId;
106
106
  },
107
- set_current_app_setup_type: (appSetupType) => {
108
- state.currentAppSetupType = appSetupType;
109
- },
110
107
  update_app: (appConfig) => {
111
108
  if (!appConfig || !appConfig.appId) {
112
109
  return;
@@ -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,C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ACD,oBAAoB,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\";\r\nimport { SmartDesktopDesignerActions, SmartDesktopDesignerActionsTypes } from \"../actions/smartDesktopDesignerActions\";\r\nimport { Reducer } from \"react\";\r\n\r\nimport {\r\n\tSmartDesktopDesignerState,\r\n\tApplicationSetupType,\r\n\tAuthenticationType,\r\n} from \"../types/smartDesktopDesignerTypes\";\r\n\r\nexport const initialState: SmartDesktopDesignerState = {\r\n\tisGettingStarted: false,\r\n\tpreviousViewId: null,\r\n\tcurrentViewId: null,\r\n\tapps: [],\r\n\tnewAppId: null,\r\n\tcurrentAppId: null,\r\n\tcurrentAppSetupType: null,\r\n\tmenus: {},\r\n\tprojectInfo: {\r\n\t\tname: \"\",\r\n\t\tuser: {\r\n\t\t\tfirstName: \"\",\r\n\t\t\tlastName: \"\",\r\n\t\t\tcompany: \"\",\r\n\t\t\temail: \"\",\r\n\t\t},\r\n\t\texport: {\r\n\t\t\tauthor: \"\",\r\n\t\t\tcompanyName: \"\",\r\n\t\t\tdescription: \"\",\r\n\t\t\ttoolbarIcon: \"\",\r\n\t\t\tinstallerIcon: \"\",\r\n\t\t\ttaskbarIcon: \"\",\r\n\t\t\tsystemTrayIcon: \"\",\r\n\t\t\tsplashScreenImage: \"\",\r\n\t\t},\r\n\t},\r\n\texport: {\r\n\t\tuuid: null, // `${new Date().getTime()}-${Math.round(Math.random() * Math.pow(10, 10))}`,\r\n\t\tisPublishing: false,\r\n\t\tpublishError: null,\r\n\t\tdeployInfo: null,\r\n\t},\r\n\tauthentication: {\r\n\t\tproviders: [\r\n\t\t\t{\r\n\t\t\t\tname: \"Google\",\r\n\t\t\t\ttype: AuthenticationType.OAUTH2,\r\n\t\t\t\tclient_id: null,\r\n\t\t\t\tsecret: null,\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tredirect_uri: \"\",\r\n\t\t\t\tauthorization_endpoint: \"https://accounts.google.com/o/oauth2/v2/auth\",\r\n\t\t\t\tscope: \"openid\",\r\n\t\t\t\tnonce: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tname: \"Salesforce\",\r\n\t\t\t\ttype: AuthenticationType.OAUTH2,\r\n\t\t\t\tclient_id: null,\r\n\t\t\t\tsecret: null,\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tredirect_uri: \"\",\r\n\t\t\t\tauthorization_endpoint: \"https://login.salesforce.com/services/oauth2/authorize\",\r\n\t\t\t\tnonce: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tname: \"Custom\",\r\n\t\t\t\ttype: AuthenticationType.OAUTH2,\r\n\t\t\t\tclient_id: null,\r\n\t\t\t\tsecret: null,\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tauthorization_endpoint: \"\",\r\n\t\t\t\tredirect_uri: \"\",\r\n\t\t\t\tscope: \"openid\",\r\n\t\t\t\tnonce: false,\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n\terrors: [],\r\n\tisReviewingErrors: false,\r\n};\r\n\r\nexport const smartDesktopDesignerReducer: Reducer<SmartDesktopDesignerState, SmartDesktopDesignerActionsTypes> =\r\n\tproduce((state: SmartDesktopDesignerState, action: SmartDesktopDesignerActionsTypes) => {\r\n\t\tSmartDesktopDesignerActions.match(action, {\r\n\t\t\tchange_view: (payload) => {\r\n\t\t\t\tstate.isGettingStarted = false;\r\n\t\t\t\tstate.previousViewId = state.currentViewId;\r\n\t\t\t\tstate.currentViewId = payload;\r\n\t\t\t\tstate.currentAppId = null;\r\n\t\t\t\tstate.currentAppSetupType = null;\r\n\t\t\t},\r\n\t\t\tupdate_apps: (payload) => {\r\n\t\t\t\tstate.apps = payload;\r\n\t\t\t},\r\n\t\t\tnew_app: (appId) => {\r\n\t\t\t\tstate.currentAppId = state.newAppId = appId;\r\n\t\t\t},\r\n\t\t\tset_current_app_id: (currentAppId) => {\r\n\t\t\t\tif (currentAppId !== null) {\r\n\t\t\t\t\tlet currentAppConfig = state.apps.find((app) => app.appId === currentAppId);\r\n\r\n\t\t\t\t\tif (!currentAppConfig || currentAppId === state.newAppId) {\r\n\t\t\t\t\t\tstate.currentAppSetupType = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tstate.currentAppSetupType = ApplicationSetupType.APP_EDIT_ADVANCED;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstate.currentAppSetupType = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tstate.currentAppId = currentAppId;\r\n\t\t\t},\r\n\t\t\tset_current_app_setup_type: (appSetupType) => {\r\n\t\t\t\tstate.currentAppSetupType = appSetupType;\r\n\t\t\t},\r\n\t\t\tupdate_app: (appConfig) => {\r\n\t\t\t\tif (!appConfig || !appConfig.appId) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appConfig.appId);\r\n\r\n\t\t\t\tstate.apps.push(appConfig);\r\n\t\t\t},\r\n\t\t\tupdate_menus: (menus) => {\r\n\t\t\t\tstate.menus = menus;\r\n\t\t\t},\r\n\t\t\tdelete_app: (appId) => {\r\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appId);\r\n\t\t\t},\r\n\t\t\tset_is_publishing: (isPublishing) => {\r\n\t\t\t\tstate.export.isPublishing = isPublishing;\r\n\t\t\t},\r\n\t\t\tset_deploy_info: (value) => {\r\n\t\t\t\tstate.export.deployInfo = value;\r\n\t\t\t},\r\n\t\t\tset_publish_error: (value) => {\r\n\t\t\t\tstate.export.publishError = value;\r\n\t\t\t},\r\n\t\t\tset_project_info: (value) => {\r\n\t\t\t\tstate.projectInfo = value;\r\n\t\t\t},\r\n\t\t\tset_is_getting_started: (value) => {\r\n\t\t\t\tstate.isGettingStarted = value;\r\n\t\t\t},\r\n\t\t\tupdate_auth_provider: (value) => {\r\n\t\t\t\tconst index = state.authentication.providers.findIndex((provider) => provider.name === value.name);\r\n\r\n\t\t\t\tif (index == -1) {\r\n\t\t\t\t\tstate.authentication.providers.push(value);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstate.authentication.providers[index] = value;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tenable_auth_provider: (value) => {\r\n\t\t\t\tstate.authentication.providers.forEach((provider) => {\r\n\t\t\t\t\tprovider.enabled = provider.name === value;\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tset_project_error: (value) => {\r\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\r\n\t\t\t\tstate.errors.push(value);\r\n\t\t\t},\r\n\t\t\tdelete_project_error: (value) => {\r\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\r\n\t\t\t},\r\n\t\t\tset_reviewing_project_errors: (value) => {\r\n\t\t\t\tstate.isReviewingErrors = value;\r\n\t\t\t},\r\n\t\t\tdefault: () => state,\r\n\t\t});\r\n\t}, initialState);\r\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,GAA8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K,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\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 +1 @@
1
- {"version":3,"file":"toolbarReducer.js","sourceRoot":"","sources":["../../src/reducers/toolbarReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAsB,MAAM,2BAA2B,CAAC;AAU/E,MAAM,YAAY,GAAiB;IAClC,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA8C,OAAO,CAC/E,CAAC,KAAmB,EAAE,MAA0B,EAAE,EAAE;IACnD,cAAc,CAAC,KAAK,CAAC,MAAM,EAAE;QAC5B,qBAAqB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YACjD,MAAM,sBAAsB,GAAG,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;YACvD,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;YAC3D,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC3C,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;YAC9D,KAAK,CAAC,YAAY,GAAG,sBAAsB,CAAC;QAC7C,CAAC;QACD,iBAAiB,EAAE,CAAC,KAAyB,EAAE,EAAE;YAChD,KAAK,CAAC,YAAY,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\r\nimport { DashbarItem } from \"../types/dashbarTypes\";\r\nimport { ToolbarActions, ToolbarActionTypes } from \"../actions/toolbarActions\";\r\nimport { Reducer } from \"react\";\r\n\r\nexport type ToolbarState = {\r\n\tmyFoo: string;\r\n\tmyBar: string;\r\n\tdashbarItems: DashbarItem[];\r\n\tdashbarItemKeys: string[];\r\n};\r\n\r\nconst initialState: ToolbarState = {\r\n\tmyFoo: \"\",\r\n\tmyBar: \"\",\r\n\tdashbarItems: [],\r\n\tdashbarItemKeys: [],\r\n};\r\n\r\nexport const toolbarReducer: Reducer<ToolbarState, ToolbarActionTypes> = produce(\r\n\t(state: ToolbarState, action: ToolbarActionTypes) => {\r\n\t\tToolbarActions.match(action, {\r\n\t\t\tREORDER_DASHBAR_ITEMS: ({ oldIndex, newIndex }) => {\r\n\t\t\t\tconst dashbarItemsInNewOrder = [...state.dashbarItems];\r\n\t\t\t\tconst dashbarItemToMove = dashbarItemsInNewOrder[oldIndex];\r\n\t\t\t\tdashbarItemsInNewOrder.splice(oldIndex, 1);\r\n\t\t\t\tdashbarItemsInNewOrder.splice(newIndex, 0, dashbarItemToMove);\r\n\t\t\t\tstate.dashbarItems = dashbarItemsInNewOrder;\r\n\t\t\t},\r\n\t\t\tSET_DASHBAR_ITEMS: (items: Array<DashbarItem>) => {\r\n\t\t\t\tstate.dashbarItems = items?.length ? items : [];\r\n\t\t\t},\r\n\t\t\tTOOLBAR_ACTION1: ({ foo }) => {\r\n\t\t\t\tstate.myFoo = foo;\r\n\t\t\t},\r\n\t\t\tTOOLBAR_ACTION2: ({ bar }) => {\r\n\t\t\t\tstate.myBar = bar;\r\n\t\t\t},\r\n\t\t\tdefault: () => state,\r\n\t\t});\r\n\t},\r\n\tinitialState\r\n);\r\n"]}
1
+ {"version":3,"file":"toolbarReducer.js","sourceRoot":"","sources":["../../src/reducers/toolbarReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAsB,MAAM,2BAA2B,CAAC;AAU/E,MAAM,YAAY,GAAiB;IAClC,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA8C,OAAO,CAC/E,CAAC,KAAmB,EAAE,MAA0B,EAAE,EAAE;IACnD,cAAc,CAAC,KAAK,CAAC,MAAM,EAAE;QAC5B,qBAAqB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YACjD,MAAM,sBAAsB,GAAG,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;YACvD,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;YAC3D,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC3C,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;YAC9D,KAAK,CAAC,YAAY,GAAG,sBAAsB,CAAC;QAC7C,CAAC;QACD,iBAAiB,EAAE,CAAC,KAAyB,EAAE,EAAE;YAChD,KAAK,CAAC,YAAY,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { DashbarItem } from \"../types/dashbarTypes\";\nimport { ToolbarActions, ToolbarActionTypes } from \"../actions/toolbarActions\";\nimport { Reducer } from \"react\";\n\nexport type ToolbarState = {\n\tmyFoo: string;\n\tmyBar: string;\n\tdashbarItems: DashbarItem[];\n\tdashbarItemKeys: string[];\n};\n\nconst initialState: ToolbarState = {\n\tmyFoo: \"\",\n\tmyBar: \"\",\n\tdashbarItems: [],\n\tdashbarItemKeys: [],\n};\n\nexport const toolbarReducer: Reducer<ToolbarState, ToolbarActionTypes> = produce(\n\t(state: ToolbarState, action: ToolbarActionTypes) => {\n\t\tToolbarActions.match(action, {\n\t\t\tREORDER_DASHBAR_ITEMS: ({ oldIndex, newIndex }) => {\n\t\t\t\tconst dashbarItemsInNewOrder = [...state.dashbarItems];\n\t\t\t\tconst dashbarItemToMove = dashbarItemsInNewOrder[oldIndex];\n\t\t\t\tdashbarItemsInNewOrder.splice(oldIndex, 1);\n\t\t\t\tdashbarItemsInNewOrder.splice(newIndex, 0, dashbarItemToMove);\n\t\t\t\tstate.dashbarItems = dashbarItemsInNewOrder;\n\t\t\t},\n\t\t\tSET_DASHBAR_ITEMS: (items: Array<DashbarItem>) => {\n\t\t\t\tstate.dashbarItems = items?.length ? items : [];\n\t\t\t},\n\t\t\tTOOLBAR_ACTION1: ({ foo }) => {\n\t\t\t\tstate.myFoo = foo;\n\t\t\t},\n\t\t\tTOOLBAR_ACTION2: ({ bar }) => {\n\t\t\t\tstate.myBar = bar;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"workspaceReducer.js","sourceRoot":"","sources":["../../src/reducers/workspaceReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAwB,MAAM,6BAA6B,CAAC;AAUrF,MAAM,CAAC,MAAM,YAAY,GAAmB;IAC3C,eAAe,EAAE;QAChB,IAAI,EAAE,EAAE;KACR;IACD,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAkD,OAAO,CACrF,CAAC,KAAqB,EAAE,MAA4B,EAAE,EAAE;IACvD,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE;QAC9B,qBAAqB,EAAE,CAAC,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,EAAE;YAC1D,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;YAExC,IAAI,UAAU,EAAE;gBAEf,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;oBAC9C,OAAO,EAAE,IAAI,EAAE,CAAC;gBACjB,CAAC,CAAC,CAAC;aACH;QACF,CAAC;QACD,0CAA0C,EAAE,CAAC,YAAY,EAAE,EAAE;YAC5D,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\r\nimport { WorkspaceActions, WorkspaceActionTypes } from \"../actions/workspaceActions\";\r\nimport { Workspace } from \"../types/workspaceTypes\";\r\nimport { Reducer } from \"react\";\r\n\r\nexport type WorkspaceState = {\r\n\tactiveWorkspace: Workspace;\r\n\tworkspaces: Workspace[];\r\n\tpromptOnSave: boolean;\r\n};\r\n\r\nexport const initialState: WorkspaceState = {\r\n\tactiveWorkspace: {\r\n\t\tname: \"\",\r\n\t},\r\n\tworkspaces: [],\r\n\tpromptOnSave: false,\r\n};\r\n\r\nexport const workspaceReducer: Reducer<WorkspaceState, WorkspaceActionTypes> = produce(\r\n\t(state: WorkspaceState, action: WorkspaceActionTypes) => {\r\n\t\tWorkspaceActions.match(action, {\r\n\t\t\tUPDATE_ALL_WORKSPACES: ({ activeWorkspace, workspaces }) => {\r\n\t\t\t\tstate.activeWorkspace = activeWorkspace;\r\n\r\n\t\t\t\tif (workspaces) {\r\n\t\t\t\t\t// We only care about the name returned by the workspaceService updates\r\n\t\t\t\t\tstate.workspaces = workspaces.map(({ name }) => {\r\n\t\t\t\t\t\treturn { name };\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tUPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE: (promptOnSave) => {\r\n\t\t\t\tstate.promptOnSave = promptOnSave;\r\n\t\t\t},\r\n\t\t\tdefault: () => state,\r\n\t\t});\r\n\t},\r\n\tinitialState\r\n);\r\n"]}
1
+ {"version":3,"file":"workspaceReducer.js","sourceRoot":"","sources":["../../src/reducers/workspaceReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAwB,MAAM,6BAA6B,CAAC;AAUrF,MAAM,CAAC,MAAM,YAAY,GAAmB;IAC3C,eAAe,EAAE;QAChB,IAAI,EAAE,EAAE;KACR;IACD,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAkD,OAAO,CACrF,CAAC,KAAqB,EAAE,MAA4B,EAAE,EAAE;IACvD,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE;QAC9B,qBAAqB,EAAE,CAAC,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,EAAE;YAC1D,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;YAExC,IAAI,UAAU,EAAE;gBAEf,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;oBAC9C,OAAO,EAAE,IAAI,EAAE,CAAC;gBACjB,CAAC,CAAC,CAAC;aACH;QACF,CAAC;QACD,0CAA0C,EAAE,CAAC,YAAY,EAAE,EAAE;YAC5D,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { WorkspaceActions, WorkspaceActionTypes } from \"../actions/workspaceActions\";\nimport { Workspace } from \"../types/workspaceTypes\";\nimport { Reducer } from \"react\";\n\nexport type WorkspaceState = {\n\tactiveWorkspace: Workspace;\n\tworkspaces: Workspace[];\n\tpromptOnSave: boolean;\n};\n\nexport const initialState: WorkspaceState = {\n\tactiveWorkspace: {\n\t\tname: \"\",\n\t},\n\tworkspaces: [],\n\tpromptOnSave: false,\n};\n\nexport const workspaceReducer: Reducer<WorkspaceState, WorkspaceActionTypes> = produce(\n\t(state: WorkspaceState, action: WorkspaceActionTypes) => {\n\t\tWorkspaceActions.match(action, {\n\t\t\tUPDATE_ALL_WORKSPACES: ({ activeWorkspace, workspaces }) => {\n\t\t\t\tstate.activeWorkspace = activeWorkspace;\n\n\t\t\t\tif (workspaces) {\n\t\t\t\t\t// We only care about the name returned by the workspaceService updates\n\t\t\t\t\tstate.workspaces = workspaces.map(({ name }) => {\n\t\t\t\t\t\treturn { name };\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\n\t\t\tUPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE: (promptOnSave) => {\n\t\t\t\tstate.promptOnSave = promptOnSave;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
package/react/store.d.ts CHANGED
@@ -142,10 +142,6 @@ 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
  } & {
@@ -343,10 +339,6 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
343
339
  type: "set_current_app_id";
344
340
  } & {
345
341
  payload: string | null;
346
- }) | ({
347
- type: "set_current_app_setup_type";
348
- } & {
349
- payload: import("./types/smartDesktopDesignerTypes").ApplicationSetupType | null;
350
342
  }) | ({
351
343
  type: "update_app";
352
344
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAc,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/F,OAAO,EAAa,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAMhE,MAAM,MAAM,GACX,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,CAAC,IAAS,EAAE,EAAE,CACd,CAAC,MAAW,EAAE,EAAE;IAEf,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;IAGxF,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;AAEnG,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;AAInC,MAAM,CAAC,MAAM,WAAW,GAAoC,gBAAgB,CAAC;AAI7E,MAAM,CAAC,MAAM,WAAW,GAAqD,gBAAgB,CAAC","sourcesContent":["import { createStore as createReduxStore, applyMiddleware, Middleware } from \"redux\";\r\nimport { useDispatch as reduxUseDispatch, useSelector as reduxUseSelector } from \"react-redux\";\r\nimport { Actions } from \"./actions/rootActions\";\r\nimport { RootState, rootReducer } from \"./reducers/rootReducer\";\r\n\r\n/**\r\n * Logging middleware that logs each action (and the resulting state).\r\n * Adapted from https://redux.js.org/api/applymiddleware/\r\n */\r\nconst logger: Middleware =\r\n\t({ getState }) =>\r\n\t(next: any) =>\r\n\t(action: any) => {\r\n\t\t// Call the next dispatch method in the middleware chain.\r\n\t\tconst returnValue = next(action);\r\n\r\n\t\tFSBL.Clients.Logger.system.debug(\"Toolbar Action\", action, \"Current State\", getState());\r\n\t\t// This will likely be the action itself, unless\r\n\t\t// a middleware further in chain changed it.\r\n\t\treturn returnValue;\r\n\t};\r\n\r\nexport const createStore = () => createReduxStore(rootReducer, undefined, applyMiddleware(logger));\r\n\r\nexport const store = createStore();\r\n\r\n/** Strongly typed version of useDispatch from react-redux.\r\n * https://react-redux.js.org/api/hooks#usedispatch */\r\nexport const useDispatch: () => (action: Actions) => void = reduxUseDispatch;\r\n\r\n/** Strongly typed version of useSelector from react-redux.\r\n * https://react-redux.js.org/api/hooks#useselector */\r\nexport const useSelector: <T1>(selectorFn: (state: RootState) => T1) => T1 = reduxUseSelector;\r\n"]}
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAc,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/F,OAAO,EAAa,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAMhE,MAAM,MAAM,GACX,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,CAAC,IAAS,EAAE,EAAE,CACd,CAAC,MAAW,EAAE,EAAE;IAEf,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;IAGxF,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;AAEnG,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;AAInC,MAAM,CAAC,MAAM,WAAW,GAAoC,gBAAgB,CAAC;AAI7E,MAAM,CAAC,MAAM,WAAW,GAAqD,gBAAgB,CAAC","sourcesContent":["import { createStore as createReduxStore, applyMiddleware, Middleware } from \"redux\";\nimport { useDispatch as reduxUseDispatch, useSelector as reduxUseSelector } from \"react-redux\";\nimport { Actions } from \"./actions/rootActions\";\nimport { RootState, rootReducer } from \"./reducers/rootReducer\";\n\n/**\n * Logging middleware that logs each action (and the resulting state).\n * Adapted from https://redux.js.org/api/applymiddleware/\n */\nconst logger: Middleware =\n\t({ getState }) =>\n\t(next: any) =>\n\t(action: any) => {\n\t\t// Call the next dispatch method in the middleware chain.\n\t\tconst returnValue = next(action);\n\n\t\tFSBL.Clients.Logger.system.debug(\"Toolbar Action\", action, \"Current State\", getState());\n\t\t// This will likely be the action itself, unless\n\t\t// a middleware further in chain changed it.\n\t\treturn returnValue;\n\t};\n\nexport const createStore = () => createReduxStore(rootReducer, undefined, applyMiddleware(logger));\n\nexport const store = createStore();\n\n/** Strongly typed version of useDispatch from react-redux.\n * https://react-redux.js.org/api/hooks#usedispatch */\nexport const useDispatch: () => (action: Actions) => void = reduxUseDispatch;\n\n/** Strongly typed version of useSelector from react-redux.\n * https://react-redux.js.org/api/hooks#useselector */\nexport const useSelector: <T1>(selectorFn: (state: RootState) => T1) => T1 = reduxUseSelector;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"advancedAppLauncherTypes.js","sourceRoot":"","sources":["../../src/types/advancedAppLauncherTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\r\n\r\nexport type FavoriteCategory = \"Workspace\" | \"Application\";\r\n\r\nexport type FavoriteDropdown = {\r\n\t/* The unique identifier of a favorite */\r\n\tid: string;\r\n\t/* Favorite category - the kind of items that can be favorited */\r\n\tcategory: FavoriteCategory;\r\n\t/* The display name of a favorite */\r\n\tname: string;\r\n\t/* The object containing the entire application */\r\n\tapp?: object;\r\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\r\n\ticon: Icon;\r\n\t/* Function to setState. Used to update dropdown menu's state */\r\n\tinstance: any;\r\n};\r\n\r\nexport type FavoriteStar = {\r\n\t/* The unique identifier of a favorite */\r\n\tid: string;\r\n\t/* Favorite category - the kind of items that can be favorited */\r\n\tcategory: FavoriteCategory;\r\n\t/* The display name of a favorite */\r\n\tname: string;\r\n\t/* The object containing the entire application */\r\n\tapp: object;\r\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\r\n\ticon: Icon;\r\n};\r\n\r\nexport type FolderAppType = {\r\n\tname: string;\r\n\tappID: string;\r\n\tdisplayName?: string;\r\n\ttags?: string[];\r\n};\r\n\r\nexport type FolderType = {\r\n\tname?: string;\r\n\ticon?: string;\r\n\ttype?: \"folder\";\r\n\tcanDelete?: boolean;\r\n\tcanEdit?: boolean;\r\n\tapps: FolderAppType[];\r\n};\r\n\r\nexport type FoldersType = {\r\n\tlist: string[];\r\n\tfolders: {\r\n\t\t[folderName: string]: FolderType;\r\n\t};\r\n};\r\n\r\nexport interface WindowOptions {\r\n\tcustomData: {\r\n\t\tcomponent: {\r\n\t\t\tuseAppCatalog: boolean;\r\n\t\t};\r\n\t};\r\n}\r\n"]}
1
+ {"version":3,"file":"advancedAppLauncherTypes.js","sourceRoot":"","sources":["../../src/types/advancedAppLauncherTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nexport type FavoriteCategory = \"Workspace\" | \"Application\";\n\nexport type FavoriteDropdown = {\n\t/* The unique identifier of a favorite */\n\tid: string;\n\t/* Favorite category - the kind of items that can be favorited */\n\tcategory: FavoriteCategory;\n\t/* The display name of a favorite */\n\tname: string;\n\t/* The object containing the entire application */\n\tapp?: object;\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\n\ticon: Icon;\n\t/* Function to setState. Used to update dropdown menu's state */\n\tinstance: any;\n};\n\nexport type FavoriteStar = {\n\t/* The unique identifier of a favorite */\n\tid: string;\n\t/* Favorite category - the kind of items that can be favorited */\n\tcategory: FavoriteCategory;\n\t/* The display name of a favorite */\n\tname: string;\n\t/* The object containing the entire application */\n\tapp: object;\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\n\ticon: Icon;\n};\n\nexport type FolderAppType = {\n\tname: string;\n\tappID: string;\n\tdisplayName?: string;\n\ttags?: string[];\n};\n\nexport type FolderType = {\n\tname?: string;\n\ticon?: string;\n\ttype?: \"folder\";\n\tcanDelete?: boolean;\n\tcanEdit?: boolean;\n\tapps: FolderAppType[];\n};\n\nexport type FoldersType = {\n\tlist: string[];\n\tfolders: {\n\t\t[folderName: string]: FolderType;\n\t};\n};\n\nexport interface WindowOptions {\n\tcustomData: {\n\t\tcomponent: {\n\t\t\tuseAppCatalog: boolean;\n\t\t};\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dashbarTypes.js","sourceRoot":"","sources":["../../src/types/dashbarTypes.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from \"react\";\r\n\r\nexport type DashbarItem = {\r\n\tid: string;\r\n\ttitle: string;\r\n\turl: string;\r\n\twidth: number;\r\n\theight?: number;\r\n\tdisablePointerEvents?: boolean;\r\n\traiseIntentOptions?: RaiseIntentOptions;\r\n};\r\n\r\nexport type RaiseIntentOptions = {\r\n\tintent: string;\r\n\tcontext: any;\r\n\ttargetApp: any;\r\n};\r\n\r\nexport type Dashbar = {\r\n\tclassName?: string;\r\n\tchildren?: React.ReactNode;\r\n\twidgetTitleGenerator?: Function;\r\n};\r\n\r\nexport type View = {\r\n\tid: Number;\r\n\tremove: Function;\r\n\tsetBounds: Function;\r\n\tbringToFront: Function;\r\n};\r\n\r\nexport type DashbarView = {\r\n\turl: string;\r\n\ttitle: string;\r\n\tview: View;\r\n\twidth: number;\r\n\traiseIntentOptions?: RaiseIntentOptions;\r\n\tbounds: {\r\n\t\ttop: number;\r\n\t\tleft: number;\r\n\t\twidth: number;\r\n\t\theight: number;\r\n\t};\r\n};\r\n"]}
1
+ {"version":3,"file":"dashbarTypes.js","sourceRoot":"","sources":["../../src/types/dashbarTypes.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from \"react\";\n\nexport type DashbarItem = {\n\tid: string;\n\ttitle: string;\n\turl: string;\n\twidth: number;\n\theight?: number;\n\tdisablePointerEvents?: boolean;\n\traiseIntentOptions?: RaiseIntentOptions;\n};\n\nexport type RaiseIntentOptions = {\n\tintent: string;\n\tcontext: any;\n\ttargetApp: any;\n};\n\nexport type Dashbar = {\n\tclassName?: string;\n\tchildren?: React.ReactNode;\n\twidgetTitleGenerator?: Function;\n};\n\nexport type View = {\n\tid: Number;\n\tremove: Function;\n\tsetBounds: Function;\n\tbringToFront: Function;\n};\n\nexport type DashbarView = {\n\turl: string;\n\ttitle: string;\n\tview: View;\n\twidth: number;\n\traiseIntentOptions?: RaiseIntentOptions;\n\tbounds: {\n\t\ttop: number;\n\t\tleft: number;\n\t\twidth: number;\n\t\theight: number;\n\t};\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"favoriteTypes.js","sourceRoot":"","sources":["../../src/types/favoriteTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\r\n\r\nexport type FavoriteCategory = \"Workspace\" | \"Application\";\r\n\r\nexport type Favorite = {\r\n\t/* The unique identifier of a favorite */\r\n\tid: string;\r\n\t/* Favorite category - the kind of items that can be favorited */\r\n\tcategory: FavoriteCategory;\r\n\t/* The display name of a favorite */\r\n\tname: string;\r\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\r\n\ticon?: Icon;\r\n};\r\n"]}
1
+ {"version":3,"file":"favoriteTypes.js","sourceRoot":"","sources":["../../src/types/favoriteTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nexport type FavoriteCategory = \"Workspace\" | \"Application\";\n\nexport type Favorite = {\n\t/* The unique identifier of a favorite */\n\tid: string;\n\t/* Favorite category - the kind of items that can be favorited */\n\tcategory: FavoriteCategory;\n\t/* The display name of a favorite */\n\tname: string;\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\n\ticon?: Icon;\n};\n"]}
@@ -1,43 +1,15 @@
1
- import { StandardError } from "@finsemble/finsemble-core/types/types";
1
+ import { StandardError, FDC3 } from "@finsemble/finsemble-core/types/types";
2
+ import { clients } from "@finsemble/finsemble-core";
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\";\r\n\r\nexport enum ResolveError {\r\n\tNoAppsFound = \"NoAppsFound\",\r\n\tResolverUnavailable = \"ResolverUnavailable\",\r\n\tResolverTimeout = \"ResolverTimeout\",\r\n}\r\nexport interface AppMetadata {\r\n\t/** The unique app name that can be used with the open and raiseIntent calls. */\r\n\treadonly name: string;\r\n\r\n\t/** The unique application identifier located within a specific application directory instance. An example of an appId might be 'app@sub.root' */\r\n\treadonly appId?: string;\r\n\r\n\t/** The Version of the application. */\r\n\treadonly version?: string;\r\n\r\n\t/** A more user-friendly application title that can be used to render UI elements */\r\n\treadonly title?: string;\r\n\r\n\t/** A tooltip for the application that can be used to render UI elements */\r\n\treadonly tooltip?: string;\r\n\r\n\t/** A longer, multi-paragraph description for the application that could include markup */\r\n\treadonly description?: string;\r\n\r\n\t/** A list of icon URLs for the application that can be used to render UI elements */\r\n\treadonly icons?: Array<string>;\r\n\r\n\t/** A list of image URLs for the application that can be used to render UI elements */\r\n\treadonly images?: Array<string>;\r\n}\r\n\r\n/** This is a copy & paste from core/clients/Interop/types.ts */\r\nexport type ResolutionCandidate = {\r\n\tmeta: AppMetadata;\r\n\tuuid?: string;\r\n\twindowName?: string;\r\n};\r\n\r\n/** This is a copy & paste from core/clients/Interop/types.ts */\r\nexport type ResolutionList = {\r\n\tintent: {\r\n\t\tname: string;\r\n\t\tdisplayName: string;\r\n\t};\r\n\tlaunchableApps: ResolutionCandidate[];\r\n\topenApps: ResolutionCandidate[];\r\n\tcontext?: ContextAny;\r\n};\r\n\r\nexport interface Context {\r\n\tid?: { [key: string]: string };\r\n\tname?: string;\r\n\ttype: string;\r\n}\r\n\r\nexport type ContextAny = Context & { [data: string]: any };\r\n\r\nexport interface FDC3Props {\r\n\tconfig: {\r\n\t\turl?: string;\r\n\t};\r\n\tcreds: {};\r\n}\r\n\r\nexport type myTmpType = (first: null, second: string) => void;\r\n\r\nexport type FDC3GetCallback = (\r\n\targ1: null | Record<string, string>,\r\n\topts?: { applications: string[]; tags: string[] }\r\n) => void;\r\n\r\nexport type FDC3PostCallbackData =\r\n\t| {\r\n\t\t\tapplications: string[];\r\n\t }\r\n\t| undefined;\r\n\r\nexport type ErrorOrMessage = StandardError | { message: string };\r\n\r\nexport type FDC3PostCallback = (arg1: ErrorOrMessage, opts?: { applications: string[] }) => void;\r\n\r\nexport type FDC3SearchCallback = (error: string | null, applications: string[] | undefined) => void;\r\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-core/types/types\";\nimport { clients } from \"@finsemble/finsemble-core\";\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 +1 @@
1
- {"version":3,"file":"hotkeyTypes.js","sourceRoot":"","sources":["../../src/types/hotkeyTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type HotkeyCombination = Array<string>;\r\n"]}
1
+ {"version":3,"file":"hotkeyTypes.js","sourceRoot":"","sources":["../../src/types/hotkeyTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type HotkeyCombination = Array<string>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"iconTypes.js","sourceRoot":"","sources":["../../src/types/iconTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type IconUrl = {\r\n\timageType: \"url\" | \"fonticon\";\r\n\tpath: string;\r\n};\r\n\r\nexport type IconInitials = {\r\n\timageType: \"initials\";\r\n\tname: string;\r\n};\r\n\r\nexport type Icon = (IconUrl | IconInitials) & {\r\n\tcategory?: string;\r\n};\r\n"]}
1
+ {"version":3,"file":"iconTypes.js","sourceRoot":"","sources":["../../src/types/iconTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type IconUrl = {\n\timageType: \"url\" | \"fonticon\";\n\tpath: string;\n};\n\nexport type IconInitials = {\n\timageType: \"initials\";\n\tname: string;\n};\n\nexport type Icon = (IconUrl | IconInitials) & {\n\tcategory?: string;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"linkerTypes.js","sourceRoot":"","sources":["../../src/types/linkerTypes.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC","sourcesContent":["export type WindowIdentifier = {\r\n\t/**\r\n\t * The name of the physical HTML window, or a reference to a native window that was launched with Assimilation service\r\n\t */\r\n\twindowName: string;\r\n\t/**\r\n\t * The type of component\r\n\t */\r\n\tcomponentType?: string;\r\n\t/**\r\n\t * Optional uuid of a particular application process\r\n\t */\r\n\tuuid?: string;\r\n\twindowType?: string;\r\n};\r\n\r\n/**\r\n * The linker channel\r\n */\r\nexport type Channel = {\r\n\t/* The ID of the channel */\r\n\tid: number;\r\n\t/* The name of the channel */\r\n\tname: string;\r\n\t/* The color of the channel */\r\n\tcolor?: string;\r\n\t/* Whether the channel is selected for a certain component or not. If selected, this field will be set to 'true' */\r\n\tactive?: boolean;\r\n\t/* The color of the channel's border */\r\n\tborder?: string;\r\n};\r\n\r\n/** Number of allowed active channels to be rendered on the titlebar. Current max is 6. */\r\nexport const MAXIMUM_ALLOWED_ACTIVE_CHANNELS = 6;\r\n"]}
1
+ {"version":3,"file":"linkerTypes.js","sourceRoot":"","sources":["../../src/types/linkerTypes.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC","sourcesContent":["export type WindowIdentifier = {\n\t/**\n\t * The name of the physical HTML window, or a reference to a native window that was launched with Assimilation service\n\t */\n\twindowName: string;\n\t/**\n\t * The type of component\n\t */\n\tcomponentType?: string;\n\t/**\n\t * Optional uuid of a particular application process\n\t */\n\tuuid?: string;\n\twindowType?: string;\n};\n\n/**\n * The linker channel\n */\nexport type Channel = {\n\t/* The ID of the channel */\n\tid: number;\n\t/* The name of the channel */\n\tname: string;\n\t/* The color of the channel */\n\tcolor?: string;\n\t/* Whether the channel is selected for a certain component or not. If selected, this field will be set to 'true' */\n\tactive?: boolean;\n\t/* The color of the channel's border */\n\tborder?: string;\n};\n\n/** Number of allowed active channels to be rendered on the titlebar. Current max is 6. */\nexport const MAXIMUM_ALLOWED_ACTIVE_CHANNELS = 6;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"searchTypes.js","sourceRoot":"","sources":["../../src/types/searchTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\r\n\r\nexport type SearchProvider = {\r\n\tdisplayName: string;\r\n\tchannel: string;\r\n\tproviderActionTitle: string;\r\n\tproviderActionCallback: Function;\r\n\twindowName: string;\r\n\tname: string;\r\n};\r\nexport type SearchProviderResponse = {\r\n\tprovider: SearchProvider;\r\n\treturnCallback: string;\r\n\tsearchId: string;\r\n\tdata: SearchResults;\r\n};\r\n\r\nexport type SearchResultType = {\r\n\tactions: { name: string }[];\r\n\tdescription: string;\r\n\tdisplayName: string;\r\n\ticon: Icon;\r\n\tscore: number;\r\n\tname: string;\r\n\tprovider: FunctionStringCallback;\r\n\ttype: string;\r\n};\r\n\r\nexport type SearchQuery = string | null;\r\nexport type SearchResults = SearchResultType[] | null;\r\n"]}
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"]}
@@ -6,14 +6,49 @@ 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;
25
+ grpc: boolean;
15
26
  height?: number | string;
27
+ hideClose: boolean;
28
+ hideMaximize: boolean;
29
+ hideMinimize: boolean;
30
+ iconURL?: string;
31
+ intents: IntentEntry[];
32
+ isEvergreen: boolean;
33
+ launchableByUser: boolean;
34
+ native_windowSpawnTimeout: number;
35
+ opacity: number;
36
+ path?: string;
37
+ persistPath: boolean;
38
+ persistURL: boolean;
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;
@@ -109,6 +144,11 @@ export declare type ViewInfo = {
109
144
  component: React.ReactNode;
110
145
  props?: any;
111
146
  };
147
+ export declare type ViewSectionInfo = {
148
+ showLabel: boolean;
149
+ label: string;
150
+ views: ViewInfo[];
151
+ };
112
152
  export declare type MenuObjType = {
113
153
  displayName: string;
114
154
  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\";\r\nimport { FinsembleIconType } from \"../components/common/FinsembleIcon\";\r\nimport { services, FEA } from \"@finsemble/finsemble-core\";\r\n\r\nexport type ApplicationRule = services.Interop.types.SelectConnectRule;\r\ntype AppDefinition = services.Interop.types.AppDefinition;\r\ntype DeployInfo = FEA.DeployInfo;\r\n\r\nexport type ApplicationSaveData = {\r\n\tname: string;\r\n\tdescription: string;\r\n\tpath?: string;\r\n\turl?: string;\r\n\tappType?: string;\r\n\ttags?: string[];\r\n\twidth?: number | string;\r\n\theight?: number | string;\r\n\trules?: ApplicationRule[];\r\n};\r\n\r\nexport type ProjectSaveData = {\r\n\tname: string;\r\n\tpath?: string;\r\n\tuser: UserSaveData;\r\n\texport: ExportSaveData;\r\n};\r\n\r\nexport type ExportSaveData = {\r\n\tauthor: string;\r\n\tcompanyName: string;\r\n\tdescription: string;\r\n} & ProjectAssets;\r\n\r\nexport type ProjectAssets = {\r\n\ttoolbarIcon: string;\r\n\tinstallerIcon: string;\r\n\ttaskbarIcon: string;\r\n\tsystemTrayIcon: string;\r\n\tsplashScreenImage: string;\r\n};\r\n\r\nexport type UserSaveData = {\r\n\tfirstName: string;\r\n\tlastName: string;\r\n\tcompany: string;\r\n\temail: string;\r\n};\r\n\r\nexport type SDServerInfo = {\r\n\tenabled: boolean;\r\n\tapplicationRoot?: string;\r\n};\r\n\r\nexport enum ProgressState {\r\n\tStarted = \"Started\",\r\n\tNotStarted = \"NotStarted\",\r\n\tFinished = \"Finished\",\r\n\tError = \"Error\",\r\n}\r\n\r\nexport type PublishProgress = {\r\n\tstep: string;\r\n\terror: string;\r\n\tpercentComplete: number;\r\n\tstate: ProgressState;\r\n};\r\n\r\nexport enum ApplicationSetupType {\r\n\tAPP_ADD_SIMPLE,\r\n\tAPP_ADD_ADVANCED,\r\n\tAPP_EDIT_SIMPLE,\r\n\tAPP_EDIT_ADVANCED,\r\n}\r\n\r\nexport enum AuthenticationType {\r\n\tOAUTH2 = \"OAUTH2\",\r\n\tPASSWORD = \"PASSWORD\",\r\n}\r\n\r\nexport type AuthenticationProvider = {\r\n\tname: string;\r\n\ttype: AuthenticationType;\r\n\tclient_id: string | null;\r\n\tsecret: string | null;\r\n\tenabled: boolean;\r\n\tredirect_uri: string;\r\n\tauthorization_endpoint?: string;\r\n\tscope?: string;\r\n\tnonce: boolean;\r\n};\r\n\r\nexport type ProjectError = {\r\n\tviewId: string;\r\n\tmessage: string;\r\n};\r\n\r\nexport type SmartDesktopDesignerState = {\r\n\tisGettingStarted: boolean;\r\n\tpreviousViewId: string | null;\r\n\tcurrentViewId: string | null;\r\n\tapps: AppDefinition[];\r\n\tnewAppId: string | null;\r\n\tcurrentAppId: string | null;\r\n\tcurrentAppSetupType: null | ApplicationSetupType;\r\n\tmenus: MenuType;\r\n\tprojectInfo: ProjectSaveData;\r\n\texport: {\r\n\t\tuuid: string | null;\r\n\t\tisPublishing: boolean;\r\n\t\tdeployInfo: DeployInfo | null;\r\n\t\tpublishError: string | null;\r\n\t};\r\n\tauthentication: {\r\n\t\tproviders: AuthenticationProvider[];\r\n\t};\r\n\terrors: ProjectError[];\r\n\tisReviewingErrors: boolean;\r\n};\r\n\r\nexport type ViewInfo = {\r\n\tid: string;\r\n\ticon: FinsembleIconType;\r\n\tname: string;\r\n\tcomponent: React.ReactNode;\r\n\tprops?: any;\r\n};\r\n\r\nexport type MenuObjType = {\r\n\tdisplayName: string;\r\n\tapplications: string[];\r\n\tposition: number;\r\n};\r\nexport type MenuType = {\r\n\t[key: string]: MenuObjType;\r\n};\r\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-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\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\tgrpc: 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\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 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 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-core";
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];\r\n\r\nexport interface EditTabProps {\r\n\ttabWidth?: number;\r\n\ttab?: TabProperties;\r\n\tsetActiveTab?: (tab: TabProperties) => void;\r\n\tchildren: React.ReactNode;\r\n\tupdateTitle?: EventTarget;\r\n}\r\n\r\nexport interface TabProperties {\r\n\twindowName: string;\r\n\tuuid: string;\r\n\tname?: string;\r\n\ttitle: string;\r\n}\r\n\r\nexport interface TabListProps {\r\n\tlistenForDragOver: boolean;\r\n\tclassName: string;\r\n\tonTitleUpdated: Function;\r\n\tonTabDropped: Function;\r\n\tthisWindowTitle: string;\r\n\tboundingBox: BoundingBox;\r\n\ttabs: TabProperties[];\r\n}\r\n\r\ninterface BoundingBox {\r\n\ttop: number;\r\n\tbottom: number;\r\n\tright: number;\r\n\tleft: number;\r\n\twidth: number;\r\n\theight: number;\r\n}\r\n\r\nexport interface TabListState {\r\n\ttranslateX: number;\r\n\ttabs: TabProperties[];\r\n\tactiveTab: TabProperties;\r\n\tboundingBox: BoundingBox;\r\n\tiAmDragging: boolean;\r\n\thoverState: string;\r\n\ttabWidth: number;\r\n\thoveredTabIndex: number | undefined;\r\n}\r\n\r\nexport interface GetTabWidthParams {\r\n\tboundingBox?: BoundingBox;\r\n\ttabList?: TabProperties[];\r\n}\r\n"]}
1
+ {"version":3,"file":"windowTitleBar.js","sourceRoot":"","sources":["../../src/types/windowTitleBar.ts"],"names":[],"mappings":"","sourcesContent":["import { WindowIdentifier } from \"@finsemble/finsemble-core\";\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\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"workspaceTypes.js","sourceRoot":"","sources":["../../src/types/workspaceTypes.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * The complete data representation of a Workspace.\r\n */\r\nexport type Workspace = {\r\n\t/** A string uniquely identifying the workspace from other workspaces.\r\n\t *\r\n\t * NOTE: Does not differentiate between instances of the same workspace.\r\n\t * For that, see the `guid` property of the `ActiveWorkspace` type.\r\n\t */\r\n\tname: string;\r\n\tcomponents?: string[];\r\n};\r\n\r\nexport type ImportWorkspace = (evt: Event) => any;\r\n\r\nexport interface WorkspaceData {\r\n\tvalue: {\r\n\t\t\"finsemble.initialWorkspace\": string;\r\n\t};\r\n}\r\n\r\nexport interface WorkspaceWindowData {\r\n\tcomponentType: string;\r\n\tcustomData: {\r\n\t\tcomponent: {\r\n\t\t\ttype: string;\r\n\t\t};\r\n\t};\r\n}\r\n\r\nexport interface WorkspaceTemplate {\r\n\twindows: string[];\r\n\twindowData: WorkspaceWindowData[];\r\n}\r\n"]}
1
+ {"version":3,"file":"workspaceTypes.js","sourceRoot":"","sources":["../../src/types/workspaceTypes.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The complete data representation of a Workspace.\n */\nexport type Workspace = {\n\t/** A string uniquely identifying the workspace from other workspaces.\n\t *\n\t * NOTE: Does not differentiate between instances of the same workspace.\n\t * For that, see the `guid` property of the `ActiveWorkspace` type.\n\t */\n\tname: string;\n\tcomponents?: string[];\n};\n\nexport type ImportWorkspace = (evt: Event) => any;\n\nexport interface WorkspaceData {\n\tvalue: {\n\t\t\"finsemble.initialWorkspace\": string;\n\t};\n}\n\nexport interface WorkspaceWindowData {\n\tcomponentType: string;\n\tcustomData: {\n\t\tcomponent: {\n\t\t\ttype: string;\n\t\t};\n\t};\n}\n\nexport interface WorkspaceTemplate {\n\twindows: string[];\n\twindowData: WorkspaceWindowData[];\n}\n"]}
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface FontSizeProps {
3
- id?: string;
4
- startSize: string;
5
- updateSize: (newSize: string) => void;
6
- }
7
- export declare const FontSize: ({ id, startSize, updateSize }: FontSizeProps) => JSX.Element;
@@ -1,42 +0,0 @@
1
- import React, { useState } from "react";
2
- const FONT_SIZE_LIST = [
3
- "xx-small",
4
- "x-small",
5
- "small",
6
- "medium",
7
- "large",
8
- "x-large",
9
- "xx-large",
10
- "xxx-large",
11
- "smaller",
12
- "larger",
13
- "8px",
14
- "10px",
15
- "12px",
16
- "14px",
17
- "16px",
18
- "8pt",
19
- "10pt",
20
- "12pt",
21
- "14pt",
22
- "0.6em",
23
- "0.8em",
24
- "1.2em",
25
- "1.4em",
26
- "60%",
27
- "80%",
28
- "120%",
29
- "140%",
30
- "inherit",
31
- "initial",
32
- "unset",
33
- ];
34
- export const FontSize = ({ id, startSize, updateSize }) => {
35
- const [size, setSize] = useState(startSize);
36
- return (React.createElement("div", { className: "font-size-picker" },
37
- React.createElement("select", Object.assign({}, { id }, { value: size, onChange: (e) => {
38
- setSize(e.target.value);
39
- updateSize(e.target.value);
40
- } }), FONT_SIZE_LIST.map((font_size) => (React.createElement("option", { key: font_size }, font_size))))));
41
- };
42
- //# sourceMappingURL=FontSizeSelector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FontSizeSelector.js","sourceRoot":"","sources":["../../../src/components/common/FontSizeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAe,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,cAAc,GAAG;IACtB,UAAU;IACV,SAAS;IACT,OAAO;IACP,QAAQ;IACR,OAAO;IACP,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,QAAQ;IACR,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,SAAS;IACT,SAAS;IACT,OAAO;CACP,CAAC;AAaF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAiB,EAAE,EAAE;IACxE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACN,6BAAK,SAAS,EAAC,kBAAkB;QAChC,gDACK,EAAE,EAAE,EAAE,IACV,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAiC,EAAE,EAAE;gBAC/C,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACxB,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,KAEA,cAAc,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAClC,gCAAQ,GAAG,EAAE,SAAS,IAAG,SAAS,CAAU,CAC5C,CAAC,CACM,CACJ,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { ChangeEvent, useState } from \"react\";\r\n\r\nconst FONT_SIZE_LIST = [\r\n\t\"xx-small\",\r\n\t\"x-small\",\r\n\t\"small\",\r\n\t\"medium\",\r\n\t\"large\",\r\n\t\"x-large\",\r\n\t\"xx-large\",\r\n\t\"xxx-large\",\r\n\t\"smaller\",\r\n\t\"larger\",\r\n\t\"8px\",\r\n\t\"10px\",\r\n\t\"12px\",\r\n\t\"14px\",\r\n\t\"16px\",\r\n\t\"8pt\",\r\n\t\"10pt\",\r\n\t\"12pt\",\r\n\t\"14pt\",\r\n\t\"0.6em\",\r\n\t\"0.8em\",\r\n\t\"1.2em\",\r\n\t\"1.4em\",\r\n\t\"60%\",\r\n\t\"80%\",\r\n\t\"120%\",\r\n\t\"140%\",\r\n\t\"inherit\",\r\n\t\"initial\",\r\n\t\"unset\",\r\n];\r\n\r\nexport interface FontSizeProps {\r\n\tid?: string;\r\n\tstartSize: string;\r\n\tupdateSize: (newSize: string) => void;\r\n}\r\n\r\n/**\r\n * FontSize component to update theme variables. Text input that validates against browser.\r\n *\r\n * @param {{ id?: string; startSize: string; updateSize: (newSize: string) => void }} { startSize, updateSize }\r\n */\r\nexport const FontSize = ({ id, startSize, updateSize }: FontSizeProps) => {\r\n\tconst [size, setSize] = useState(startSize);\r\n\r\n\treturn (\r\n\t\t<div className=\"font-size-picker\">\r\n\t\t\t<select\r\n\t\t\t\t{...{ id }}\r\n\t\t\t\tvalue={size}\r\n\t\t\t\tonChange={(e: ChangeEvent<HTMLSelectElement>) => {\r\n\t\t\t\t\tsetSize(e.target.value);\r\n\t\t\t\t\tupdateSize(e.target.value);\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t{FONT_SIZE_LIST.map((font_size) => (\r\n\t\t\t\t\t<option key={font_size}>{font_size}</option>\r\n\t\t\t\t))}\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t);\r\n};\r\n"]}
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { FontSizeProps } from "../FontSizeSelector";
3
- import "../../../assets/css/finsemble.css";
4
- import "../css/styles.css";
5
- import { Story } from "@storybook/react/types-6-0";
6
- declare const _default: {
7
- title: string;
8
- component: ({ id, startSize, updateSize }: FontSizeProps) => JSX.Element;
9
- };
10
- export default _default;
11
- export declare const EmptyField: Story<FontSizeProps>;
12
- export declare const Large: Story<FontSizeProps>;