@finsemble/finsemble-ui 6.4.0 → 6.6.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (595) hide show
  1. package/package.json +31 -28
  2. package/react/actions/smartDesktopDesignerActions.d.ts +6 -2
  3. package/react/actions/smartDesktopDesignerActions.js +2 -0
  4. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  5. package/react/assets/css/finsemble.css +0 -1
  6. package/react/assets/css/userPreferences.css +6 -0
  7. package/react/assets/icons/code-block.svg +15 -0
  8. package/react/componentTemplateGenerator.js +1 -1
  9. package/react/componentTemplateGenerator.js.map +1 -1
  10. package/react/components/FinsembleProvider.js.map +1 -1
  11. package/react/components/appCatalog/AppCatalogComponent.d.ts +1 -1
  12. package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +3 -3
  13. package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +1 -1
  14. package/react/components/appCatalog/modules/FDC3.d.ts +1 -1
  15. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  16. package/react/components/appCatalog/stores/appStore.d.ts +2 -2
  17. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  18. package/react/components/appCatalog/stores/storeActions.d.ts +1 -1
  19. package/react/components/common/Checkbox.js +1 -1
  20. package/react/components/common/Checkbox.js.map +1 -1
  21. package/react/components/common/DropZone.js +3 -1
  22. package/react/components/common/DropZone.js.map +1 -1
  23. package/react/components/common/FileInput.d.ts +2 -1
  24. package/react/components/common/FileInput.js +2 -2
  25. package/react/components/common/FileInput.js.map +1 -1
  26. package/react/components/common/FinsembleIcon.d.ts +1 -1
  27. package/react/components/common/FinsembleIcon.js +2 -0
  28. package/react/components/common/FinsembleIcon.js.map +1 -1
  29. package/react/components/common/FinsembleSelect.js +1 -1
  30. package/react/components/common/FinsembleSelect.js.map +1 -1
  31. package/react/components/common/ImagePreview.js +1 -1
  32. package/react/components/common/ImagePreview.js.map +1 -1
  33. package/react/components/common/Tooltip.js +3 -1
  34. package/react/components/common/Tooltip.js.map +1 -1
  35. package/react/components/common/css/application-edit-page.css +4 -1
  36. package/react/components/common/css/application-list.css +4 -0
  37. package/react/components/common/css/preload-edit-page.css +37 -0
  38. package/react/components/common/helpers.js +1 -0
  39. package/react/components/common/helpers.js.map +1 -1
  40. package/react/components/common/stories/FileInput.stories.d.ts +2 -1
  41. package/react/components/common/stories/FileInput.stories.js +6 -0
  42. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  43. package/react/components/common/tests/Accordion.spec.js +1 -1
  44. package/react/components/common/tests/Accordion.spec.js.map +1 -1
  45. package/react/components/common/tests/FileInput.spec.js +8 -1
  46. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  47. package/react/components/common/tests/FinsembleSelect.spec.js +1 -1
  48. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  49. package/react/components/common/tests/FinsembleToggle.spec.js +2 -2
  50. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  51. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  52. package/react/components/favorites/FavoritesShell.spec.js +1 -1
  53. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  54. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  55. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  56. package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
  57. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  58. package/react/components/icon/Icon.d.ts +4 -3
  59. package/react/components/icon/Icon.js +22 -12
  60. package/react/components/icon/Icon.js.map +1 -1
  61. package/react/components/legacyControls/FinsembleDnDContext.d.ts +2 -1
  62. package/react/components/legacyControls/FinsembleDnDContext.js +8 -6
  63. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  64. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +1 -1
  65. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  66. package/react/components/linker/LinkerMenu.js.map +1 -1
  67. package/react/components/linker/remoteRedux.d.ts +1 -1
  68. package/react/components/linker/remoteRedux.js.map +1 -1
  69. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  70. package/react/components/menu/MenuPortal.js +20 -1
  71. package/react/components/menu/MenuPortal.js.map +1 -1
  72. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  73. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  74. package/react/components/notifications/components/shared/CheckButton.d.ts +1 -1
  75. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  76. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
  77. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  78. package/react/components/notifications/components/shared/OverflowMenu.d.ts +1 -1
  79. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  80. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +1 -1
  81. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  82. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +1 -1
  83. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  84. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
  85. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  86. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
  87. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  88. package/react/components/notifications/components/views/CardView.js.map +1 -1
  89. package/react/components/notifications/components/views/ListView.d.ts +1 -1
  90. package/react/components/notifications/components/views/ListView.js.map +1 -1
  91. package/react/components/notifications/components/views/NotificationDetailsView.d.ts +1 -1
  92. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  93. package/react/components/notifications/types.d.ts +1 -1
  94. package/react/components/notifications/types.js.map +1 -1
  95. package/react/components/notifications/utils.d.ts +1 -1
  96. package/react/components/notifications/utils.js.map +1 -1
  97. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  98. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +4 -11
  99. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  100. package/react/components/processMonitor/components/ChildWindow.js +5 -10
  101. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  102. package/react/components/processMonitor/components/ListHeader.d.ts +1 -1
  103. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  104. package/react/components/processMonitor/components/ProcessStatistics.js +8 -10
  105. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  106. package/react/components/processMonitor/constants.d.ts +0 -2
  107. package/react/components/processMonitor/constants.js +0 -2
  108. package/react/components/processMonitor/constants.js.map +1 -1
  109. package/react/components/processMonitor/helpers.d.ts +0 -11
  110. package/react/components/processMonitor/helpers.js +1 -9
  111. package/react/components/processMonitor/helpers.js.map +1 -1
  112. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +6 -14
  113. package/react/components/processMonitor/stores/ProcessMonitorStore.js +22 -62
  114. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  115. package/react/components/{smartDesktopDesigner → sdd}/AddApp.d.ts +0 -0
  116. package/react/components/{smartDesktopDesigner → sdd}/AddApp.js +0 -0
  117. package/react/components/sdd/AddApp.js.map +1 -0
  118. package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.d.ts +0 -0
  119. package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.js +0 -0
  120. package/react/components/sdd/AppEditAccess.js.map +1 -0
  121. package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.d.ts +2 -1
  122. package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.js +77 -73
  123. package/react/components/sdd/AppEditPage.js.map +1 -0
  124. package/react/components/{smartDesktopDesigner → sdd}/Appearance.css +8 -0
  125. package/react/components/{smartDesktopDesigner → sdd}/Appearance.d.ts +0 -0
  126. package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.d.ts +0 -0
  127. package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.js +0 -0
  128. package/react/components/sdd/Appearance.helpers.js.map +1 -0
  129. package/react/components/{smartDesktopDesigner → sdd}/Appearance.js +0 -0
  130. package/react/components/sdd/Appearance.js.map +1 -0
  131. package/react/components/{smartDesktopDesigner → sdd}/Application.d.ts +10 -3
  132. package/react/components/sdd/Application.js +220 -0
  133. package/react/components/sdd/Application.js.map +1 -0
  134. package/react/components/{smartDesktopDesigner → sdd}/Applications.d.ts +2 -0
  135. package/react/components/{smartDesktopDesigner → sdd}/Applications.js +17 -7
  136. package/react/components/sdd/Applications.js.map +1 -0
  137. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.css +0 -0
  138. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.d.ts +0 -0
  139. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.js +0 -0
  140. package/react/components/sdd/AssetsPage.js.map +1 -0
  141. package/react/components/{smartDesktopDesigner → sdd}/Authentication.d.ts +0 -0
  142. package/react/components/{smartDesktopDesigner → sdd}/Authentication.js +1 -1
  143. package/react/components/sdd/Authentication.js.map +1 -0
  144. package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.d.ts +0 -0
  145. package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.js +0 -0
  146. package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -0
  147. package/react/components/{smartDesktopDesigner → sdd}/Content.d.ts +0 -0
  148. package/react/components/{smartDesktopDesigner → sdd}/Content.js +0 -0
  149. package/react/components/sdd/Content.js.map +1 -0
  150. package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.d.ts +0 -0
  151. package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.js +0 -0
  152. package/react/components/sdd/ContentHeader.js.map +1 -0
  153. package/react/components/{smartDesktopDesigner → sdd}/CurrentView.d.ts +0 -0
  154. package/react/components/{smartDesktopDesigner → sdd}/CurrentView.js +0 -0
  155. package/react/components/sdd/CurrentView.js.map +1 -0
  156. package/react/components/sdd/EditPreload.d.ts +14 -0
  157. package/react/components/sdd/EditPreload.js +169 -0
  158. package/react/components/sdd/EditPreload.js.map +1 -0
  159. package/react/components/{smartDesktopDesigner → sdd}/Export.d.ts +0 -0
  160. package/react/components/{smartDesktopDesigner → sdd}/Export.js +0 -0
  161. package/react/components/sdd/Export.js.map +1 -0
  162. package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.d.ts +0 -0
  163. package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.js +0 -0
  164. package/react/components/sdd/ExportCloud.js.map +1 -0
  165. package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.d.ts +0 -0
  166. package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.js +0 -0
  167. package/react/components/sdd/ExportDeployInfo.js.map +1 -0
  168. package/react/components/{smartDesktopDesigner → sdd}/ExportZip.d.ts +0 -0
  169. package/react/components/{smartDesktopDesigner → sdd}/ExportZip.js +0 -0
  170. package/react/components/sdd/ExportZip.js.map +1 -0
  171. package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.d.ts +0 -0
  172. package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.js +0 -0
  173. package/react/components/sdd/GettingStarted.js.map +1 -0
  174. package/react/components/sdd/ItemList.d.ts +17 -0
  175. package/react/components/sdd/ItemList.js +58 -0
  176. package/react/components/sdd/ItemList.js.map +1 -0
  177. package/react/components/{smartDesktopDesigner → sdd}/Navigation.d.ts +0 -0
  178. package/react/components/{smartDesktopDesigner → sdd}/Navigation.js +0 -0
  179. package/react/components/sdd/Navigation.js.map +1 -0
  180. package/react/components/sdd/OptionalSettingsView.d.ts +11 -0
  181. package/react/components/sdd/OptionalSettingsView.js +71 -0
  182. package/react/components/sdd/OptionalSettingsView.js.map +1 -0
  183. package/react/components/sdd/Preloads.d.ts +8 -0
  184. package/react/components/sdd/Preloads.js +26 -0
  185. package/react/components/sdd/Preloads.js.map +1 -0
  186. package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.d.ts +0 -0
  187. package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.js +0 -0
  188. package/react/components/sdd/ProjectErrors.js.map +1 -0
  189. package/react/components/{smartDesktopDesigner → sdd}/Publish.d.ts +0 -0
  190. package/react/components/{smartDesktopDesigner → sdd}/Publish.js +0 -0
  191. package/react/components/sdd/Publish.js.map +1 -0
  192. package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.d.ts +0 -0
  193. package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.js +0 -0
  194. package/react/components/sdd/PublishProgress.js.map +1 -0
  195. package/react/components/sdd/SmartDesktopDesigner.d.ts +28 -0
  196. package/react/components/sdd/SmartDesktopDesigner.js +121 -0
  197. package/react/components/sdd/SmartDesktopDesigner.js.map +1 -0
  198. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.css +0 -0
  199. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.d.ts +0 -0
  200. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.js +0 -0
  201. package/react/components/sdd/ThemePage.js.map +1 -0
  202. package/react/components/{smartDesktopDesigner → sdd}/Themes.d.ts +0 -0
  203. package/react/components/{smartDesktopDesigner → sdd}/Themes.js +0 -0
  204. package/react/components/sdd/Themes.js.map +1 -0
  205. package/react/components/{smartDesktopDesigner → sdd}/Toolbar.d.ts +0 -0
  206. package/react/components/{smartDesktopDesigner → sdd}/Toolbar.js +13 -11
  207. package/react/components/sdd/Toolbar.js.map +1 -0
  208. package/react/components/{smartDesktopDesigner → sdd}/View.d.ts +0 -0
  209. package/react/components/{smartDesktopDesigner → sdd}/View.js +0 -0
  210. package/react/components/sdd/View.js.map +1 -0
  211. package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.d.ts +0 -0
  212. package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.js +0 -0
  213. package/react/components/sdd/common/fsbl_functions.js.map +1 -0
  214. package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.d.ts +0 -0
  215. package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.js +0 -0
  216. package/react/components/sdd/common/getCSSVars.js.map +1 -0
  217. package/react/components/{smartDesktopDesigner/fixtures → sdd/common}/views.d.ts +0 -0
  218. package/react/components/sdd/common/views.js +204 -0
  219. package/react/components/sdd/common/views.js.map +1 -0
  220. package/react/components/{smartDesktopDesigner → sdd}/css/appearance.css +3 -0
  221. package/react/components/{smartDesktopDesigner → sdd}/css/applications.css +0 -0
  222. package/react/components/{smartDesktopDesigner → sdd}/css/authentication.css +5 -1
  223. package/react/components/{smartDesktopDesigner → sdd}/css/buttons.css +0 -0
  224. package/react/components/{smartDesktopDesigner → sdd}/css/export.css +0 -0
  225. package/react/components/{smartDesktopDesigner → sdd}/css/getting-started.css +0 -0
  226. package/react/components/{smartDesktopDesigner → sdd}/css/nav.css +0 -0
  227. package/react/components/{smartDesktopDesigner → sdd}/css/project-errors.css +0 -0
  228. package/react/components/{smartDesktopDesigner → sdd}/css/project-header.css +0 -0
  229. package/react/components/{smartDesktopDesigner → sdd}/css/styles.css +0 -0
  230. package/react/components/{smartDesktopDesigner → sdd}/css/views.css +0 -1
  231. package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.d.ts +1 -1
  232. package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.js +27 -5
  233. package/react/components/sdd/fixtures/apps.js.map +1 -0
  234. package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.d.ts +0 -0
  235. package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.js +0 -0
  236. package/react/components/sdd/fixtures/authenticationProps.js.map +1 -0
  237. package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.d.ts +1 -1
  238. package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.js +1 -1
  239. package/react/components/sdd/fixtures/configTemplate.js.map +1 -0
  240. package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.d.ts +0 -0
  241. package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.js +0 -0
  242. package/react/components/sdd/fixtures/exportProps.js.map +1 -0
  243. package/react/components/sdd/fixtures/preloads.d.ts +22 -0
  244. package/react/components/sdd/fixtures/preloads.js +40 -0
  245. package/react/components/sdd/fixtures/preloads.js.map +1 -0
  246. package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.d.ts +0 -0
  247. package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.js +0 -0
  248. package/react/components/sdd/fixtures/projectErrorsProps.js.map +1 -0
  249. package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.d.ts +1 -1
  250. package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.js +0 -0
  251. package/react/components/sdd/fixtures/publishProgress.js.map +1 -0
  252. package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.d.ts +0 -0
  253. package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.js +0 -0
  254. package/react/components/sdd/fixtures/themeProps.js.map +1 -0
  255. package/react/components/sdd/fixtures/views.d.ts +3 -0
  256. package/react/components/{smartDesktopDesigner → sdd}/fixtures/views.js +9 -0
  257. package/react/components/sdd/fixtures/views.js.map +1 -0
  258. package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.d.ts +0 -0
  259. package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.js +0 -0
  260. package/react/components/sdd/sdd_helpers.js.map +1 -0
  261. package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.d.ts +1 -1
  262. package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.js +1 -0
  263. package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -0
  264. package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.d.ts +0 -0
  265. package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.js +0 -0
  266. package/react/components/sdd/stories/Appearance.stories.js.map +1 -0
  267. package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.d.ts +0 -0
  268. package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.js +0 -0
  269. package/react/components/sdd/stories/Applications.stories.js.map +1 -0
  270. package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.d.ts +0 -0
  271. package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.js +0 -0
  272. package/react/components/sdd/stories/AssetsPage.stories.js.map +1 -0
  273. package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.d.ts +0 -0
  274. package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.js +0 -0
  275. package/react/components/sdd/stories/Authentication.stories.js.map +1 -0
  276. package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.d.ts +0 -0
  277. package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.js +0 -0
  278. package/react/components/sdd/stories/ContentHeader.stories.js.map +1 -0
  279. package/react/components/sdd/stories/EditPreload.stories.d.ts +11 -0
  280. package/react/components/sdd/stories/EditPreload.stories.js +35 -0
  281. package/react/components/sdd/stories/EditPreload.stories.js.map +1 -0
  282. package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.d.ts +0 -0
  283. package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.js +0 -0
  284. package/react/components/sdd/stories/Export.stories.js.map +1 -0
  285. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.d.ts +0 -0
  286. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.js +0 -0
  287. package/react/components/sdd/stories/ExportCloud.stories.js.map +1 -0
  288. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.d.ts +0 -0
  289. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.js +0 -0
  290. package/react/components/sdd/stories/ExportZip.stories.js.map +1 -0
  291. package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.d.ts +0 -0
  292. package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.js +0 -0
  293. package/react/components/sdd/stories/GettingStarted.stories.js.map +1 -0
  294. package/react/components/sdd/stories/ItemList.stories.d.ts +16 -0
  295. package/react/components/{smartDesktopDesigner/stories/ApplicationList.stories.js → sdd/stories/ItemList.stories.js} +26 -26
  296. package/react/components/sdd/stories/ItemList.stories.js.map +1 -0
  297. package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.d.ts +0 -0
  298. package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.js +0 -0
  299. package/react/components/sdd/stories/Navigation.stories.js.map +1 -0
  300. package/react/components/sdd/stories/OptionalSettingsView.stories.d.ts +11 -0
  301. package/react/components/sdd/stories/OptionalSettingsView.stories.js +28 -0
  302. package/react/components/sdd/stories/OptionalSettingsView.stories.js.map +1 -0
  303. package/react/components/sdd/stories/Preloads.stories.d.ts +11 -0
  304. package/react/components/sdd/stories/Preloads.stories.js +31 -0
  305. package/react/components/sdd/stories/Preloads.stories.js.map +1 -0
  306. package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.d.ts +0 -0
  307. package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.js +0 -0
  308. package/react/components/sdd/stories/ProjectErrors.stories.js.map +1 -0
  309. package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.d.ts +0 -0
  310. package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.js +0 -0
  311. package/react/components/sdd/stories/Publish.stories.js.map +1 -0
  312. package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.d.ts +0 -0
  313. package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.js +0 -0
  314. package/react/components/sdd/stories/PublishProgress.stories.js.map +1 -0
  315. package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.d.ts +0 -0
  316. package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.js +0 -0
  317. package/react/components/sdd/stories/SmartDesktopDesigner.stories.js.map +1 -0
  318. package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.d.ts +0 -0
  319. package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.js +0 -0
  320. package/react/components/sdd/stories/ThemePage.stories.js.map +1 -0
  321. package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.d.ts +0 -0
  322. package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.js +0 -0
  323. package/react/components/sdd/stories/Themes.stories.js.map +1 -0
  324. package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.d.ts +0 -0
  325. package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.js +0 -0
  326. package/react/components/sdd/stories/Toolbar.stories.js.map +1 -0
  327. package/react/components/{smartDesktopDesigner → sdd}/tests/AppEditPage.spec.d.ts +0 -0
  328. package/react/components/sdd/tests/AppEditPage.spec.js +1151 -0
  329. package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -0
  330. package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.d.ts → sdd/tests/Application.spec.d.ts} +0 -0
  331. package/react/components/sdd/tests/Application.spec.js +1478 -0
  332. package/react/components/sdd/tests/Application.spec.js.map +1 -0
  333. package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.d.ts +0 -0
  334. package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.js +3 -3
  335. package/react/components/sdd/tests/Applications.spec.js.map +1 -0
  336. package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.d.ts +0 -0
  337. package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.js +0 -0
  338. package/react/components/sdd/tests/Authentication.spec.js.map +1 -0
  339. package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.d.ts +0 -0
  340. package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.js +0 -0
  341. package/react/components/sdd/tests/ContentHeader.spec.js.map +1 -0
  342. package/react/components/{smartDesktopDesigner/tests/Export.spec.d.ts → sdd/tests/EditPreload.spec.d.ts} +0 -0
  343. package/react/components/sdd/tests/EditPreload.spec.js +61 -0
  344. package/react/components/sdd/tests/EditPreload.spec.js.map +1 -0
  345. package/react/components/{smartDesktopDesigner/tests/ExportZip.spec.d.ts → sdd/tests/Export.spec.d.ts} +0 -0
  346. package/react/components/{smartDesktopDesigner → sdd}/tests/Export.spec.js +0 -0
  347. package/react/components/sdd/tests/Export.spec.js.map +1 -0
  348. package/react/components/{smartDesktopDesigner/tests/Navigation.spec.d.ts → sdd/tests/ExportZip.spec.d.ts} +0 -0
  349. package/react/components/{smartDesktopDesigner → sdd}/tests/ExportZip.spec.js +0 -0
  350. package/react/components/sdd/tests/ExportZip.spec.js.map +1 -0
  351. package/react/components/{smartDesktopDesigner/tests/ProjectErrors.spec.d.ts → sdd/tests/ItemList.spec.d.ts} +0 -0
  352. package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.js → sdd/tests/ItemList.spec.js} +8 -8
  353. package/react/components/sdd/tests/ItemList.spec.js.map +1 -0
  354. package/react/components/{smartDesktopDesigner/tests/Publish.spec.d.ts → sdd/tests/Navigation.spec.d.ts} +0 -0
  355. package/react/components/{smartDesktopDesigner → sdd}/tests/Navigation.spec.js +0 -0
  356. package/react/components/sdd/tests/Navigation.spec.js.map +1 -0
  357. package/react/components/{smartDesktopDesigner/tests/PublishProgess.spec.d.ts → sdd/tests/Preloads.spec.d.ts} +0 -0
  358. package/react/components/sdd/tests/Preloads.spec.js +47 -0
  359. package/react/components/sdd/tests/Preloads.spec.js.map +1 -0
  360. package/react/components/{smartDesktopDesigner/tests/SmartDesktopDesigner.spec.d.ts → sdd/tests/ProjectErrors.spec.d.ts} +0 -0
  361. package/react/components/{smartDesktopDesigner → sdd}/tests/ProjectErrors.spec.js +0 -0
  362. package/react/components/sdd/tests/ProjectErrors.spec.js.map +1 -0
  363. package/react/components/{smartDesktopDesigner/tests/Themes.spec.d.ts → sdd/tests/Publish.spec.d.ts} +0 -0
  364. package/react/components/{smartDesktopDesigner → sdd}/tests/Publish.spec.js +0 -0
  365. package/react/components/sdd/tests/Publish.spec.js.map +1 -0
  366. package/react/components/{smartDesktopDesigner/tests/sdd_helpers.spec.d.ts → sdd/tests/PublishProgess.spec.d.ts} +0 -0
  367. package/react/components/{smartDesktopDesigner → sdd}/tests/PublishProgess.spec.js +0 -0
  368. package/react/components/sdd/tests/PublishProgess.spec.js.map +1 -0
  369. package/react/components/sdd/tests/SmartDesktopDesigner.spec.d.ts +1 -0
  370. package/react/components/{smartDesktopDesigner → sdd}/tests/SmartDesktopDesigner.spec.js +6 -0
  371. package/react/components/sdd/tests/SmartDesktopDesigner.spec.js.map +1 -0
  372. package/react/components/sdd/tests/Themes.spec.d.ts +1 -0
  373. package/react/components/{smartDesktopDesigner → sdd}/tests/Themes.spec.js +0 -0
  374. package/react/components/sdd/tests/Themes.spec.js.map +1 -0
  375. package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.d.ts +0 -0
  376. package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.js +0 -0
  377. package/react/components/sdd/tests/Toolbar.spec.js.map +1 -0
  378. package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.d.ts +0 -0
  379. package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.js +0 -0
  380. package/react/components/sdd/tests/a11y_helper.js.map +1 -0
  381. package/react/components/sdd/tests/sdd_helpers.spec.d.ts +1 -0
  382. package/react/components/{smartDesktopDesigner → sdd}/tests/sdd_helpers.spec.js +0 -0
  383. package/react/components/sdd/tests/sdd_helpers.spec.js.map +1 -0
  384. package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.d.ts +0 -0
  385. package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.js +0 -0
  386. package/react/components/sdd/themeDefinitions.js.map +1 -0
  387. package/react/components/search/SearchBestMatch.js.map +1 -1
  388. package/react/components/search/SearchProviderResults.d.ts +3 -1
  389. package/react/components/search/SearchProviderResults.js.map +1 -1
  390. package/react/components/search/SearchResult.d.ts +3 -1
  391. package/react/components/search/SearchResult.js +11 -8
  392. package/react/components/search/SearchResult.js.map +1 -1
  393. package/react/components/singleInputDialog/SingleInputDialog.spec.js +1 -1
  394. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  395. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
  396. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +2 -116
  397. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  398. package/react/components/smartDesktopDesigner/common/views.js +1 -185
  399. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  400. package/react/components/toolbar/AutoArrange.js +1 -1
  401. package/react/components/toolbar/AutoArrange.js.map +1 -1
  402. package/react/components/toolbar/AutoArrange.spec.d.ts +1 -0
  403. package/react/components/toolbar/AutoArrange.spec.js +48 -0
  404. package/react/components/toolbar/AutoArrange.spec.js.map +1 -0
  405. package/react/components/toolbar/AutoArrange.stories.d.ts +11 -0
  406. package/react/components/toolbar/AutoArrange.stories.js +21 -0
  407. package/react/components/toolbar/AutoArrange.stories.js.map +1 -0
  408. package/react/components/toolbar/DragHandle.spec.d.ts +1 -0
  409. package/react/components/toolbar/DragHandle.spec.js +31 -0
  410. package/react/components/toolbar/DragHandle.spec.js.map +1 -0
  411. package/react/components/toolbar/DragHandle.stories.d.ts +13 -0
  412. package/react/components/toolbar/DragHandle.stories.js +39 -0
  413. package/react/components/toolbar/DragHandle.stories.js.map +1 -0
  414. package/react/components/toolbar/SddButton.d.ts +2 -0
  415. package/react/components/toolbar/SddButton.js +23 -0
  416. package/react/components/toolbar/SddButton.js.map +1 -0
  417. package/react/components/toolbar/ToolbarShell.js +4 -1
  418. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  419. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
  420. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  421. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +3 -2
  422. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  423. package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +1 -1
  424. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  425. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  426. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +1 -1
  427. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  428. package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +1 -1
  429. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  430. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +2 -2
  431. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  432. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  433. package/react/components/toolbar/appLauncher/AppLauncherMenu.js +15 -4
  434. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  435. package/react/components/toolbar/appLauncher/components/componentList.d.ts +2 -2
  436. package/react/components/toolbar/appLauncher/components/componentList.js +3 -4
  437. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  438. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +2 -2
  439. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  440. package/react/components/toolbar/dashbar/Dashbar.js +11 -12
  441. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  442. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +2 -2
  443. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  444. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  445. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  446. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  447. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  448. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +4 -4
  449. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +72 -13
  450. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  451. package/react/components/userPreferences/components/content/Workspaces.d.ts +6 -1
  452. package/react/components/userPreferences/components/content/Workspaces.js +59 -18
  453. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  454. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  455. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  456. package/react/components/userPreferences/components/general/ScheduledRestart.d.ts +2 -0
  457. package/react/components/userPreferences/components/general/ScheduledRestart.js +10 -2
  458. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  459. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +2 -1
  460. package/react/components/userPreferences/stores/UserPreferencesStore.js +10 -0
  461. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  462. package/react/components/userPreferences/tests/ScheduledRestart.spec.js +6 -6
  463. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  464. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +5 -2
  465. package/react/components/windowTitleBar/WindowTitleBarShell.js +70 -59
  466. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  467. package/react/components/windowTitleBar/components/center/TabList.d.ts +2 -2
  468. package/react/components/windowTitleBar/components/center/TabList.js +5 -2
  469. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  470. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  471. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  472. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  473. package/react/components/windowTitleBar/components/windowTitle.d.ts +5 -2
  474. package/react/components/windowTitleBar/components/windowTitle.js +99 -94
  475. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  476. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +3 -3
  477. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +218 -219
  478. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  479. package/react/components/yesNoDialog/Timer.spec.js +1 -1
  480. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  481. package/react/components/yesNoDialog/YesNoDialog.spec.js +1 -1
  482. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  483. package/react/hooks/useDashbar.js.map +1 -1
  484. package/react/hooks/useFavoritesShell.js.map +1 -1
  485. package/react/hooks/useNotifications.d.ts +1 -1
  486. package/react/hooks/useNotifications.js.map +1 -1
  487. package/react/hooks/useSearch.d.ts +2 -1
  488. package/react/hooks/useSearch.js.map +1 -1
  489. package/react/hooks/useToolbar.js +6 -0
  490. package/react/hooks/useToolbar.js.map +1 -1
  491. package/react/reducers/rootReducer.d.ts +11 -3
  492. package/react/reducers/smartDesktopDesignerReducer.js +8 -0
  493. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  494. package/react/store.d.ts +22 -6
  495. package/react/types/advancedAppLauncherTypes.d.ts +5 -3
  496. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  497. package/react/types/favoriteTypes.d.ts +4 -2
  498. package/react/types/favoriteTypes.js.map +1 -1
  499. package/react/types/fdc3.d.ts +2 -2
  500. package/react/types/fdc3.js.map +1 -1
  501. package/react/types/smartDesktopDesignerTypes.d.ts +8 -2
  502. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  503. package/react/types/windowTitleBar.d.ts +1 -1
  504. package/react/types/windowTitleBar.js.map +1 -1
  505. package/react/components/smartDesktopDesigner/AddApp.js.map +0 -1
  506. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +0 -1
  507. package/react/components/smartDesktopDesigner/AppEditPage.js.map +0 -1
  508. package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +0 -1
  509. package/react/components/smartDesktopDesigner/Appearance.js.map +0 -1
  510. package/react/components/smartDesktopDesigner/Application.js +0 -228
  511. package/react/components/smartDesktopDesigner/Application.js.map +0 -1
  512. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +0 -16
  513. package/react/components/smartDesktopDesigner/ApplicationList.js +0 -60
  514. package/react/components/smartDesktopDesigner/ApplicationList.js.map +0 -1
  515. package/react/components/smartDesktopDesigner/Applications.js.map +0 -1
  516. package/react/components/smartDesktopDesigner/AssetsPage.js.map +0 -1
  517. package/react/components/smartDesktopDesigner/Authentication.js.map +0 -1
  518. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +0 -1
  519. package/react/components/smartDesktopDesigner/Content.js.map +0 -1
  520. package/react/components/smartDesktopDesigner/ContentHeader.js.map +0 -1
  521. package/react/components/smartDesktopDesigner/CurrentView.js.map +0 -1
  522. package/react/components/smartDesktopDesigner/Export.js.map +0 -1
  523. package/react/components/smartDesktopDesigner/ExportCloud.js.map +0 -1
  524. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +0 -1
  525. package/react/components/smartDesktopDesigner/ExportZip.js.map +0 -1
  526. package/react/components/smartDesktopDesigner/GettingStarted.js.map +0 -1
  527. package/react/components/smartDesktopDesigner/Navigation.js.map +0 -1
  528. package/react/components/smartDesktopDesigner/ProjectErrors.js.map +0 -1
  529. package/react/components/smartDesktopDesigner/Publish.js.map +0 -1
  530. package/react/components/smartDesktopDesigner/PublishProgress.js.map +0 -1
  531. package/react/components/smartDesktopDesigner/ThemePage.js.map +0 -1
  532. package/react/components/smartDesktopDesigner/Themes.js.map +0 -1
  533. package/react/components/smartDesktopDesigner/Toolbar.js.map +0 -1
  534. package/react/components/smartDesktopDesigner/View.js.map +0 -1
  535. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +0 -1
  536. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +0 -1
  537. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +0 -1
  538. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +0 -1
  539. package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +0 -1
  540. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +0 -1
  541. package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +0 -1
  542. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +0 -1
  543. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +0 -1
  544. package/react/components/smartDesktopDesigner/fixtures/views.js.map +0 -1
  545. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +0 -1
  546. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +0 -1
  547. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +0 -1
  548. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +0 -16
  549. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
  550. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +0 -1
  551. package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +0 -1
  552. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +0 -1
  553. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +0 -1
  554. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +0 -1
  555. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +0 -1
  556. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +0 -1
  557. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +0 -1
  558. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +0 -1
  559. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +0 -1
  560. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +0 -1
  561. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +0 -1
  562. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +0 -1
  563. package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +0 -1
  564. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +0 -1
  565. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +0 -1
  566. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +0 -310
  567. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +0 -1
  568. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
  569. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +0 -1
  570. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +0 -1
  571. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +0 -1
  572. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +0 -1
  573. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +0 -1
  574. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +0 -1
  575. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +0 -1
  576. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +0 -1
  577. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +0 -1
  578. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +0 -1
  579. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +0 -1
  580. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +0 -1
  581. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +0 -1
  582. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +0 -1
  583. package/react/components/smartDesktopDesigner/themeDefinitions.js.map +0 -1
  584. package/react/components/toolbar/appLauncher/DynamicAppLauncher.d.ts +0 -6
  585. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js +0 -23
  586. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +0 -1
  587. package/react/hooks/useWorkspace.d.ts +0 -5
  588. package/react/hooks/useWorkspace.js +0 -26
  589. package/react/hooks/useWorkspace.js.map +0 -1
  590. package/react/types/iconTypes.d.ts +0 -11
  591. package/react/types/iconTypes.js +0 -2
  592. package/react/types/iconTypes.js.map +0 -1
  593. package/react/types/searchTypes.d.ts +0 -29
  594. package/react/types/searchTypes.js +0 -2
  595. package/react/types/searchTypes.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Application.spec.js","sourceRoot":"","sources":["../../../../src/components/sdd/tests/Application.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAEN,gCAAgC,EAChC,mCAAmC,EACnC,kBAAkB,EAClB,kBAAkB,GAClB,MAAM,gBAAgB,CAAC;AAGxB,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IACjD,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QACnC,MAAM,SAAS,GAAG;YACjB,QAAQ,EAAE;gBACT,MAAM,EAAE;oBACP,QAAQ,EAAE,SAAS;oBACnB,GAAG,EAAE,GAAG;oBACR,IAAI,EAAE,GAAG;iBACT;aACD;SACgB,CAAC;QAEnB,MAAM,CAAC,gCAAgC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACvC,MAAM,SAAS,GAAG;YACjB,QAAQ,EAAE;gBACT,MAAM,EAAE;oBACP,QAAQ,EAAE,SAAS;oBACnB,MAAM,EAAE,GAAG;oBACX,KAAK,EAAE,GAAG;iBACV;aACD;SACgB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IAAI;wBACf,cAAc,EAAE,SAAS;wBACzB,kBAAkB,EAAE,EAAE;qBACtB;oBACD,IAAI,EAAE,EAAE;oBACR,KAAK,EAAE,EAAE;oBACT,UAAU,EAAE,cAAc;iBAC1B;aACD;YACD,YAAY,EAAE,WAAW;YACzB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,GAAG;SACZ,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { expect } from \"chai\";\nimport {\n\tAppDefinition,\n\tgenAbstractPositionFromAppConfig,\n\tgenWindowParamsFromAbstractPosition,\n\tappConfigToAppData,\n\tappDataToAppConfig,\n} from \"../Application\";\nimport * as Types from \"../../../types/smartDesktopDesignerTypes\";\n\ndescribe(\"genAbstractPositionFromAppConfig\", () => {\n\tit(\"should identify top left\", () => {\n\t\tconst appConfig = {\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\tposition: \"monitor\",\n\t\t\t\t\ttop: \"0\",\n\t\t\t\t\tleft: \"0\",\n\t\t\t\t},\n\t\t\t},\n\t\t} as AppDefinition;\n\n\t\texpect(genAbstractPositionFromAppConfig(appConfig)).to.equal(1);\n\t});\n\tit(\"should identify bottom right\", () => {\n\t\tconst appConfig = {\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\tposition: \"monitor\",\n\t\t\t\t\tbottom: \"0\",\n\t\t\t\t\tright: \"0\",\n\t\t\t\t},\n\t\t\t},\n\t\t} as AppDefinition;\n\n\t\texpect(genAbstractPositionFromAppConfig(appConfig)).to.equal(9);\n\t});\n\tit(\"should identify dead center\", () => {\n\t\tconst appConfig = {\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\tposition: \"monitor\",\n\t\t\t\t\ttop: \"center\",\n\t\t\t\t\tleft: \"center\",\n\t\t\t\t},\n\t\t\t},\n\t\t} as AppDefinition;\n\n\t\texpect(genAbstractPositionFromAppConfig(appConfig)).to.equal(5);\n\t});\n\tit(\"should identify default if no position is defined\", () => {\n\t\tconst appConfig = {\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\ttop: \"0\",\n\t\t\t\t\tleft: \"0\",\n\t\t\t\t},\n\t\t\t},\n\t\t} as AppDefinition;\n\n\t\texpect(genAbstractPositionFromAppConfig(appConfig)).to.equal(0);\n\t});\n\tit(\"should identify default if no manifest assigned\", () => {\n\t\tconst appConfig = {} as AppDefinition;\n\n\t\texpect(genAbstractPositionFromAppConfig(appConfig)).to.equal(0);\n\t});\n\tit(\"should identify default if no window assigned\", () => {\n\t\tconst appConfig = {\n\t\t\tmanifest: {},\n\t\t} as AppDefinition;\n\n\t\texpect(genAbstractPositionFromAppConfig(appConfig)).to.equal(0);\n\t});\n\tit(\"should return -1 if invalid value combination\", () => {\n\t\tconst appConfig = {\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\tposition: \"monitor\",\n\t\t\t\t\ttop: \"0\",\n\t\t\t\t\tbottom: \"0\",\n\t\t\t\t},\n\t\t\t},\n\t\t} as AppDefinition;\n\n\t\texpect(genAbstractPositionFromAppConfig(appConfig)).to.equal(-1);\n\t});\n});\n\ndescribe(\"genWindowParamsFromAbstractPosition\", () => {\n\tit(\"should handle default\", () => {\n\t\texpect(genWindowParamsFromAbstractPosition(1)).to.deep.equal({\n\t\t\tposition: \"monitor\",\n\t\t\ttop: \"0\",\n\t\t\tleft: \"0\",\n\t\t});\n\t});\n\tit(\"should handle top left\", () => {\n\t\texpect(genWindowParamsFromAbstractPosition(1)).to.deep.equal({\n\t\t\tposition: \"monitor\",\n\t\t\ttop: \"0\",\n\t\t\tleft: \"0\",\n\t\t});\n\t});\n\tit(\"should handle dead center\", () => {\n\t\texpect(genWindowParamsFromAbstractPosition(5)).to.deep.equal({\n\t\t\tposition: \"monitor\",\n\t\t\ttop: \"center\",\n\t\t\tleft: \"center\",\n\t\t});\n\t});\n\tit(\"should handle bottom right\", () => {\n\t\texpect(genWindowParamsFromAbstractPosition(9)).to.deep.equal({\n\t\t\tposition: \"monitor\",\n\t\t\tbottom: \"0\",\n\t\t\tright: \"0\",\n\t\t});\n\t});\n});\n\ndescribe(\"appConfigToAppData\", () => {\n\tit(\"kitchen sink\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"test ID\",\n\t\t\tname: \"test\",\n\t\t\tdescription: \"test\",\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tdisplayName: \"Test displayName\",\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t\tpreload: [\"zoom\"],\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\turl: \"\",\n\t\t\t\t\tpath: \"\",\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\twindowType: \"application\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tFSBLHeader: false, // true, false, object\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tintents: [],\n\t\t\t},\n\t\t} as AppDefinition;\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"application\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistURL: true,\n\t\t\tpersistPath: false,\n\t\t\tpreloads: [\"zoom\"],\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t});\n\t});\n\tit(\"defaults: FDC3 Workbench\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"FDC3 workbench\",\n\t\t\tname: \"FDC3 workbench\",\n\t\t\tdescription: \"Development and test tool for FDC3 desktop agents and apps\",\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\turl: \"http://fdc3.finos.org/toolbox/fdc3-workbench\",\n\t\t\t\t\twidth: 800,\n\t\t\t\t\theight: 750,\n\t\t\t\t\toptions: {\n\t\t\t\t\t\tminWidth: 75,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": { launchableByUser: true },\n\t\t\t\t\t\tToolbar: { iconURL: \"http://fdc3.finos.org/toolbox/fdc3-workbench/fdc3-icon-256.png\" },\n\t\t\t\t\t\t\"Window Manager\": { FSBLHeader: true, persistWindowState: true },\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {},\n\t\t\t},\n\t\t\tversion: \"1.0.0\",\n\t\t\ttooltip: \"FDC3 Workbench\",\n\t\t\timages: [\n\t\t\t\t{\n\t\t\t\t\turl: \"http://fdc3.finos.org/toolbox/fdc3-workbench/fdc3-icon-256.png\",\n\t\t\t\t\ttooltip: \"FDC3 logo\",\n\t\t\t\t},\n\t\t\t],\n\t\t\ttags: [\"fdc3\", \"interop\", \"interoperabilty\", \"developer tool\"],\n\t\t\tcontactEmail: \"info@cosaic.io\",\n\t\t\tsupportEmail: \"support@finsemble.com\",\n\t\t\tpublisher: \"Cosaic\",\n\t\t\ticons: [\n\t\t\t\t{\n\t\t\t\t\tsrc: \"http://fdc3.finos.org/toolbox/fdc3-workbench/fdc3-icon-256.png\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: false,\n\t\t\tappArguments: undefined,\n\t\t\tappType: undefined,\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"Development and test tool for FDC3 desktop agents and apps\",\n\t\t\tenableAOT: false,\n\t\t\tenableTitleBar: true,\n\t\t\theight: 750,\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"http://fdc3.finos.org/toolbox/fdc3-workbench/fdc3-icon-256.png\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: false,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"FDC3 workbench\",\n\t\t\tnative_windowSpawnTimeout: 30,\n\t\t\topacity: 1,\n\t\t\tpath: undefined,\n\t\t\tpersistPath: false,\n\t\t\tpersistURL: false,\n\t\t\tresizable: true,\n\t\t\trules: undefined,\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: false,\n\t\t\tspawnOnStartup: false,\n\t\t\tpreloads: [],\n\t\t\turl: \"http://fdc3.finos.org/toolbox/fdc3-workbench\",\n\t\t\twidth: 800,\n\t\t});\n\t});\n\tit(\"defaults: ChartIQ\", () => {\n\t\tconst appConfig = {\n\t\t\tname: \"ChartIQ Example App\",\n\t\t\tappId: \"ChartIQ Example App\",\n\t\t\tdescription: \"Visualize market data in the leading FDC3 compliant technical chart.\",\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\turl: \"https://assets.finsemble.com/components/chart/technical-analysis-chart.html\",\n\t\t\t\t\twidth: 800,\n\t\t\t\t\theight: 600,\n\t\t\t\t\toptions: {\n\t\t\t\t\t\tminWidth: 75,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tToolbar: {\n\t\t\t\t\t\t\ticonClass: \"ff-chart-advanced\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tselectConnect: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontextType: \"layout\",\n\t\t\t\t\t\t\tfwd: \"#Workspace\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontextType: \"fdc3.instrument\",\n\t\t\t\t\t\t\tcc: \"#Workspace\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t},\n\t\t\tversion: \"1.0.0\",\n\t\t\ttooltip: \"ChartIQ Technical Chart\",\n\t\t\timages: [\n\t\t\t\t{\n\t\t\t\t\turl: \"https://i.imgur.com/10C3LdH.png\",\n\t\t\t\t\ttooltip: \"ChartIQ FDC3 compatible chart\",\n\t\t\t\t},\n\t\t\t],\n\t\t\ttags: [\"charts\", \"market data\", \"visualization\", \"graphics\", \"fdc3\"],\n\t\t\tcontactEmail: \"info@cosaic.io\",\n\t\t\tsupportEmail: \"support@finsemble.com\",\n\t\t\tpublisher: \"Cosaic\",\n\t\t\tintents: [\n\t\t\t\t{\n\t\t\t\t\tname: \"ViewChart\",\n\t\t\t\t\tdisplayName: \"View Chart\",\n\t\t\t\t\tcontexts: [\"fdc3.instrument\"],\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: false,\n\t\t\tappArguments: undefined,\n\t\t\tappType: undefined,\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"Visualize market data in the leading FDC3 compliant technical chart.\",\n\t\t\tenableAOT: false,\n\t\t\tenableTitleBar: true,\n\t\t\theight: 600,\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [\n\t\t\t\t{\n\t\t\t\t\tcontexts: [\"fdc3.instrument\"],\n\t\t\t\t\tdisplayName: \"View Chart\",\n\t\t\t\t\tname: \"ViewChart\",\n\t\t\t\t},\n\t\t\t],\n\t\t\tisEvergreen: false,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"ChartIQ Example App\",\n\t\t\tnative_windowSpawnTimeout: 30,\n\t\t\topacity: 1,\n\t\t\tpath: undefined,\n\t\t\tpersistPath: false,\n\t\t\tpersistURL: false,\n\t\t\tpreloads: [],\n\t\t\tresizable: true,\n\t\t\trules: [\n\t\t\t\t{\n\t\t\t\t\tcontextType: \"layout\",\n\t\t\t\t\tfwd: \"#Workspace\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcc: \"#Workspace\",\n\t\t\t\t\tcontextType: \"fdc3.instrument\",\n\t\t\t\t},\n\t\t\t],\n\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: false,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"https://assets.finsemble.com/components/chart/technical-analysis-chart.html\",\n\t\t\twidth: 800,\n\t\t});\n\t});\n\tit(\"defaults: Grid\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"AG-Grid Example Blotter\",\n\t\t\tname: \"AG-Grid Example Blotter\",\n\t\t\tdescription: \"Organize data with FDC3 compliant blotters built on AG Grid\",\n\t\t\tmanifest: {\n\t\t\t\twindow: {\n\t\t\t\t\turl: \"https://assets.finsemble.com/components/ag-grid/index.html\",\n\t\t\t\t\twidth: 1000,\n\t\t\t\t\theight: 600,\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tToolbar: {\n\t\t\t\t\t\t\ticonURL: \"https://assets.finsemble.com/components/ag-grid/ag-grid-logo.png\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tselectConnect: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontextType: \"fdc3.instrument\",\n\t\t\t\t\t\t\tcc: \"#Workspace\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t},\n\t\t\tversion: \"1.0.0\",\n\t\t\ttooltip: \"AG Grid FDC3 compatible blotter\",\n\t\t\ttags: [\"grid\", \"ag-grid\", \"blotter\", \"fdc3\"],\n\t\t\tcontactEmail: \"info@cosaic.io\",\n\t\t\tsupportEmail: \"support@finsemble.com\",\n\t\t\tpublisher: \"Cosaic\",\n\t\t\ticons: [\n\t\t\t\t{\n\t\t\t\t\tsrc: \"https://assets.finsemble.com/components/ag-grid/ag-grid-logo.png\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: false,\n\t\t\tappArguments: undefined,\n\t\t\tappType: undefined,\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"Organize data with FDC3 compliant blotters built on AG Grid\",\n\t\t\tenableAOT: false,\n\t\t\tenableTitleBar: true,\n\t\t\theight: 600,\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"https://assets.finsemble.com/components/ag-grid/ag-grid-logo.png\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: false,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"AG-Grid Example Blotter\",\n\t\t\tnative_windowSpawnTimeout: 30,\n\t\t\topacity: 1,\n\t\t\tpath: undefined,\n\t\t\tpersistPath: false,\n\t\t\tpersistURL: false,\n\t\t\tpreloads: [],\n\t\t\tresizable: true,\n\t\t\trules: [\n\t\t\t\t{\n\t\t\t\t\tcc: \"#Workspace\",\n\t\t\t\t\tcontextType: \"fdc3.instrument\",\n\t\t\t\t},\n\t\t\t],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: false,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"https://assets.finsemble.com/components/ag-grid/index.html\",\n\t\t\twidth: 1000,\n\t\t});\n\t});\n\tit(\"with no manifest\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"test ID\",\n\t\t\tname: \"test\",\n\t\t\tdescription: \"test\",\n\t\t} as AppDefinition;\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: false,\n\t\t\tappArguments: undefined,\n\t\t\tappType: undefined,\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: false,\n\t\t\tenableTitleBar: true,\n\t\t\theight: undefined,\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: false,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 30,\n\t\t\topacity: 1,\n\t\t\tpath: undefined,\n\t\t\tpersistPath: false,\n\t\t\tpersistURL: false,\n\t\t\tpreloads: [],\n\t\t\tresizable: true,\n\t\t\trules: undefined,\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: false,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: undefined,\n\t\t\twidth: undefined,\n\t\t});\n\t});\n\tit(\"with no manifest.window\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"test ID\",\n\t\t\tname: \"test\",\n\t\t\tdescription: \"test\",\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tdisplayName: \"Test displayName\",\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tFSBLHeader: false, // true, false, object\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tintents: [],\n\t\t\t},\n\t\t} as AppDefinition;\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: false,\n\t\t\tappArguments: undefined,\n\t\t\tappType: undefined,\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: undefined,\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: false,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 30,\n\t\t\topacity: 1,\n\t\t\tpath: undefined,\n\t\t\tpersistPath: false,\n\t\t\tpersistURL: true,\n\t\t\tpreloads: [],\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: undefined,\n\t\t\twidth: undefined,\n\t\t});\n\t});\n\tit(\"with no description\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"test ID\",\n\t\t\tname: \"test\",\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tdisplayName: \"Test displayName\",\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\turl: \"\",\n\t\t\t\t\tpath: \"\",\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\twindowType: \"application\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tFSBLHeader: false, // true, false, object\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tintents: [],\n\t\t\t},\n\t\t} as AppDefinition;\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"application\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistURL: true,\n\t\t\tpersistPath: false,\n\t\t\tpreloads: [],\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t});\n\t});\n\tit(\"with no intents\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"test ID\",\n\t\t\tname: \"test\",\n\t\t\tdescription: \"test\",\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tdisplayName: \"Test displayName\",\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\turl: \"\",\n\t\t\t\t\tpath: \"\",\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\twindowType: \"application\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tFSBLHeader: false, // true, false, object\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t} as AppDefinition;\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"application\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistPath: false,\n\t\t\tpersistURL: true,\n\t\t\tpreloads: [],\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t});\n\t});\n\tit(\"with undefined addToWorkspace/allow/enable\", () => {\n\t\tconst appConfig = {\n\t\t\tappId: \"test ID\",\n\t\t\tname: \"test\",\n\t\t\tdescription: \"test\",\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tdisplayName: \"Test displayName\",\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\turl: \"\",\n\t\t\t\t\tpath: \"\",\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\twindowType: \"application\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tFSBLHeader: false, // true, false, object\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\twindowService: {},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tintents: [],\n\t\t\t},\n\t\t} as AppDefinition;\n\t\texpect(appConfigToAppData(appConfig)).to.deep.equal({\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"application\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistPath: false,\n\t\t\tpersistURL: true,\n\t\t\tpreloads: [],\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t});\n\t});\n});\n\ndescribe(\"appDataToAppConfig\", () => {\n\tconst configTemplate = {\n\t\tappId: \"123\",\n\t\tname: \"\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"\",\n\t\t\t\twidth: 1280,\n\t\t\t\theight: 600,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tcomponents: {\n\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t},\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"finsemble\",\n\t\tversion: \"1\",\n\t};\n\tit(\"appType: web\", () => {\n\t\tconst appData = {\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"web\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistURL: true,\n\t\t\tpersistPath: false,\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"http://www.google.com\",\n\t\t\twidth: \"\",\n\t\t\tpreloads: [\"zoom\"],\n\t\t} as Types.ApplicationSaveData;\n\n\t\texpect(appDataToAppConfig(configTemplate, appData, \"123\")).to.deep.equal({\n\t\t\tappId: \"123\",\n\t\t\tdescription: \"test\",\n\t\t\tintents: [],\n\t\t\ticons: [],\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t\tpreload: [\"zoom\"],\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\tFSBLHeader: false,\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistPath: false,\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\theight: \"\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\turl: \"http://www.google.com\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tmanifestType: \"finsemble\",\n\t\t\tname: \"test\",\n\t\t\tversion: \"1\",\n\t\t});\n\t});\n\tit(\"appType: native\", () => {\n\t\tconst appData = {\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"native\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"blah blah blah\",\n\t\t\tpersistURL: true,\n\t\t\tpersistPath: false,\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t\tpreloads: [],\n\t\t} as Types.ApplicationSaveData;\n\n\t\texpect(appDataToAppConfig(configTemplate, appData, \"123\")).to.deep.equal({\n\t\t\tappId: \"123\",\n\t\t\tdescription: \"test\",\n\t\t\tintents: [],\n\t\t\ticons: [],\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t\tpreload: [],\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\tFSBLHeader: false,\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistPath: false,\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t\tpath: \"blah blah blah\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\twindowType: \"native\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tmanifestType: \"finsemble\",\n\t\t\tname: \"test\",\n\t\t\tversion: \"1\",\n\t\t});\n\t});\n\tit(\"appType: assimilation + default position + empty icon URL\", () => {\n\t\tconst appData = {\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"application\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistURL: true,\n\t\t\tpersistPath: false,\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t\tpreloads: [],\n\t\t} as Types.ApplicationSaveData;\n\n\t\texpect(appDataToAppConfig(configTemplate, appData, \"123\")).to.deep.equal({\n\t\t\tappId: \"123\",\n\t\t\tdescription: \"test\",\n\t\t\tintents: [],\n\t\t\ticons: [],\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t\tpreload: [],\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\tFSBLHeader: false,\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistPath: false,\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t\tpath: \"\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\twindowType: \"assimilation\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tmanifestType: \"finsemble\",\n\t\t\tname: \"test\",\n\t\t\tversion: \"1\",\n\t\t});\n\t});\n\tit(\"set abstract position\", () => {\n\t\tconst appData = {\n\t\t\tabstractPosition: 4,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"application\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistURL: true,\n\t\t\tpersistPath: false,\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t\tpreloads: [],\n\t\t} as Types.ApplicationSaveData;\n\n\t\texpect(appDataToAppConfig(configTemplate, appData, \"123\")).to.deep.equal({\n\t\t\tappId: \"123\",\n\t\t\tdescription: \"test\",\n\t\t\tintents: [],\n\t\t\ticons: [],\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t\tpreload: [],\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\tFSBLHeader: false,\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistPath: false,\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\tleft: \"0\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t\tpath: \"\",\n\t\t\t\t\tposition: \"monitor\",\n\t\t\t\t\ttop: \"center\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\twindowType: \"assimilation\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tmanifestType: \"finsemble\",\n\t\t\tname: \"test\",\n\t\t\tversion: \"1\",\n\t\t});\n\t});\n\tit(\"specified iconURL\", () => {\n\t\tconst appData = {\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: true,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"application\",\n\t\t\tautoConnect: true,\n\t\t\tdescription: \"test\",\n\t\t\tenableAOT: true,\n\t\t\tenableTitleBar: false,\n\t\t\theight: \"\",\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"blah blah blah\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: true,\n\t\t\tlaunchableByUser: true,\n\t\t\tname: \"test\",\n\t\t\tnative_windowSpawnTimeout: 60,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistURL: true,\n\t\t\tpersistPath: false,\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: true,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"\",\n\t\t\twidth: \"\",\n\t\t\tpreloads: [],\n\t\t} as Types.ApplicationSaveData;\n\n\t\texpect(appDataToAppConfig(configTemplate, appData, \"123\")).to.deep.equal({\n\t\t\tappId: \"123\",\n\t\t\tdescription: \"test\",\n\t\t\tintents: [],\n\t\t\ticons: [\n\t\t\t\t{\n\t\t\t\t\tsrc: \"blah blah blah\",\n\t\t\t\t},\n\t\t\t],\n\t\t\tmanifest: {\n\t\t\t\tcomponent: {\n\t\t\t\t\tsingleton: true,\n\t\t\t\t\tspawnOnStartup: false,\n\t\t\t\t\tpreload: [],\n\t\t\t\t},\n\t\t\t\tforeign: {\n\t\t\t\t\tcomponents: {\n\t\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t\tFSBLHeader: false,\n\t\t\t\t\t\t\talwaysOnTopIcon: true,\n\t\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tservices: {\n\t\t\t\t\t\twindowService: {\n\t\t\t\t\t\t\tallowAutoArrange: true,\n\t\t\t\t\t\t\tallowGrouping: true,\n\t\t\t\t\t\t\tallowMaximize: true,\n\t\t\t\t\t\t\tallowMinimize: true,\n\t\t\t\t\t\t\tallowSnapping: true,\n\t\t\t\t\t\t\tallowTabbing: true,\n\t\t\t\t\t\t\tallowTiling: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t\tpersistPath: false,\n\t\t\t\t\t\t\tpersistURL: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinterop: {\n\t\t\t\t\tautoConnect: true,\n\t\t\t\t\tselectConnect: [],\n\t\t\t\t},\n\t\t\t\twindow: {\n\t\t\t\t\taddToWorkspace: true,\n\t\t\t\t\targuments: \"\",\n\t\t\t\t\theight: \"\",\n\t\t\t\t\toptions: {\n\t\t\t\t\t\talwaysOnTop: true,\n\t\t\t\t\t\tisEvergreen: true,\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\tresizable: true,\n\t\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t\t\twindowSpawnTimeout: 60,\n\t\t\t\t\t},\n\t\t\t\t\tpath: \"\",\n\t\t\t\t\twidth: \"\",\n\t\t\t\t\twindowType: \"assimilation\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tmanifestType: \"finsemble\",\n\t\t\tname: \"test\",\n\t\t\tversion: \"1\",\n\t\t});\n\t});\n});\n"]}
@@ -59,18 +59,18 @@ describe("<Applications/>", () => {
59
59
  wrapper.update();
60
60
  expect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, "3 apps are listed in the table").to.be.equal(3);
61
61
  wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).first().find(".icon-edit button").at(0).simulate("click");
62
- wrapper.find("input[name='interop-trust'][value='false']").simulate("click");
62
+ wrapper.find("input[name='interop-trust'][value='false']").simulate("change");
63
63
  expect(wrapper.find(APP_ACCESS_RULE).length, "SelectConnect access rules visible initially").to.equal(2);
64
64
  expect(wrapper.find(APP_ACCESS_BLOCKED).length, "Inbound SelectConnect blocked").to.equal(2);
65
65
  wrapper.find(".finsembleToggle input").first().simulate("change");
66
- expect(wrapper.find(".finsembleToggle-on").length, "should be toggled on").to.equal(1);
66
+ expect(wrapper.find(".finsembleToggle-on").length, "should be toggled on").to.equal(2);
67
67
  wrapper.find(".app-edit-actions button").last().simulate("click");
68
68
  await waitTick();
69
69
  wrapper.update();
70
70
  wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(1).find(".icon-edit button").at(0).simulate("click");
71
71
  await waitTick();
72
72
  wrapper.update();
73
- wrapper.find("input[name='interop-trust'][value='false']").simulate("click");
73
+ wrapper.find("input[name='interop-trust'][value='false']").simulate("change");
74
74
  expect(wrapper.find(APP_ACCESS_RULE).length, "SelectConnect access rules visible").to.equal(2);
75
75
  });
76
76
  });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Applications.spec.js","sourceRoot":"","sources":["../../../../src/components/sdd/tests/Applications.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,yBAAyB,EAC1D,6BAA6B,GAAG,eAAe,EAC/C,sBAAsB,GAAG,iBAAiB,EAC1C,WAAW,GAAG,uBAAuB,EACrC,kBAAkB,GAAG,8BAA8B,EACnD,mBAAmB,GAAG,wCAAwC,EAC9D,mBAAmB,GAAG,wCAAwC,EAC9D,eAAe,GAAG,uBAAuB,EACzC,kBAAkB,GAAG,0BAA0B,E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C,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,QAAQ,EAAE,CAAC;QACjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACnE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultApplications, EmptyApplications } from \"../stories/Applications.stories\";\nimport { getApplicationsArgs } from \"../fixtures/apps\";\nimport { waitTick } from \"../sdd_helpers\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\nexport const ADD_NEW_APP_BUTTON = \".icon-before-add button\",\n\tACTIVE_TAB_APP_LIST_TABLE_ROW = \".app-list-row\",\n\tAPP_LIST_EMPTY_MESSAGE = \".app-list-empty\",\n\tPAGE_HEADER = \".view-title .leftSide\",\n\tPAGE_HEADER_BUTTON = \".view-title .leftSide button\",\n\tSETUP_WIZARD_BUTTON = \".tile-type-buttons .icon-wizard button\",\n\tSETUP_MANUAL_BUTTON = \".tile-type-buttons .icon-manual button\",\n\tAPP_ACCESS_RULE = \".app-edit-access-item\",\n\tAPP_ACCESS_BLOCKED = \".app-edit-access-blocked\",\n\tQUICK_ADD_APP = \".quick-add-app\",\n\tQUICK_ADD_APP_URL = \".quick-add-app #app-url\",\n\tQUICK_ADD_APP_BUTTON = \".save-button-container button\";\n\ndescribe(\"<Applications/>\", () => {\n\tit(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should pass accessibility scans (empty)\", async () => {\n\t\tconst wrapper = mount(<EmptyApplications {...getApplicationsArgs(\"empty\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should contain add button app list when not empty\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".view-content button\").first().text()).to.contain(\"Add\");\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length).to.be.greaterThan(0);\n\t\texpect(wrapper.find(APP_LIST_EMPTY_MESSAGE).length).to.equal(0);\n\t});\n\tit(\"should contain add button and empty message when empty\", async () => {\n\t\tconst wrapper = mount(<EmptyApplications {...getApplicationsArgs(\"empty\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".view-content button\").first().text()).to.contain(\"Add\");\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length).to.be.equal(0);\n\t\texpect(wrapper.find(APP_LIST_EMPTY_MESSAGE).first().text()).to.contain(\"nothing here\");\n\t});\n\tit(\"should be able to edit a web app\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"App list contains items\").to.be.greaterThan(0);\n\n\t\tconst app = wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).first();\n\n\t\tconst appName = app.find(\".app-name\").text();\n\n\t\tconst newName = `${appName} modified`;\n\t\tapp.find(\".icon-edit button\").at(0).simulate(\"click\");\n\n\t\tconst input = wrapper.find(\"input#app-name\");\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"change\", { target: { value: newName } });\n\n\t\twrapper.find(\".app-edit-actions .button-container-secondary button\").simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(\n\t\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).someWhere((node) => node.find(\".app-name\").text() === newName),\n\t\t\t\"App list contains newly renamed name\"\n\t\t).to.be.true;\n\t});\n\tit(\"should be able to grant selectConnect access between two apps\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"3 apps are listed in the table\").to.be.equal(3);\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).first().find(\".icon-edit button\").at(0).simulate(\"click\");\n\n\t\twrapper.find(\"input[name='interop-trust'][value='false']\").simulate(\"change\");\n\n\t\texpect(wrapper.find(APP_ACCESS_RULE).length, \"SelectConnect access rules visible initially\").to.equal(2);\n\n\t\texpect(wrapper.find(APP_ACCESS_BLOCKED).length, \"Inbound SelectConnect blocked\").to.equal(2);\n\n\t\twrapper.find(\".finsembleToggle input\").first().simulate(\"change\");\n\n\t\texpect(wrapper.find(\".finsembleToggle-on\").length, \"should be toggled on\").to.equal(2);\n\n\t\twrapper.find(\".app-edit-actions button\").last().simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(1).find(\".icon-edit button\").at(0).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(\"input[name='interop-trust'][value='false']\").simulate(\"change\");\n\t\texpect(wrapper.find(APP_ACCESS_RULE).length, \"SelectConnect access rules visible\").to.equal(2);\n\t});\n});\n\ndescribe(\"<Applications/> - Quick Add\", () => {\n\tit(\"should be able to quick add a web app\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Everything starts the way I expect\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Start out with 3 items in the list\").to.equal(3);\n\t\texpect(wrapper.find(QUICK_ADD_APP).is(\".collapsed\"), \"Quick Add doesn't display\").to.be.true;\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// expect quick add to display\n\t\texpect(wrapper.find(QUICK_ADD_APP).is(\".collapsed\"), \"Quick Add displays\").to.be.false;\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.facebook.com\",\n\t\t\t},\n\t\t});\n\n\t\t// click the Add button\n\t\twrapper.find(QUICK_ADD_APP_BUTTON).simulate(\"click\");\n\n\t\t// wait tick\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// expect updates\n\t\texpect(wrapper.find(QUICK_ADD_APP).is(\".collapsed\"), \"Quick Add doesn't display\").to.be.true;\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"App list shows 4 items\").to.equal(4);\n\t\texpect(\n\t\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).filterWhere((node: any) => node.text().includes(\"Facebook\")).length,\n\t\t\t\"App list includes 'Facebook'\"\n\t\t);\n\t});\n\n\tit(\"if you add a URL, the App name should pre-fill with a generated name\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.google.com\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\"#app-name\").prop(\"value\"), \"Pre-filled generated name\").to.equal(\"Google\");\n\t\texpect(wrapper.find(QUICK_ADD_APP_BUTTON).prop(\"disabled\"), \"Save button should be enabled\").to.be.false;\n\t});\n\n\tit(\"if you add a URL without an auto-name, the App name should be empty\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\"#app-name\").prop(\"value\"), \"Pre-filled generated name\").to.equal(\"\");\n\t\texpect(wrapper.find(QUICK_ADD_APP_BUTTON).prop(\"disabled\"), \"Save button should be disabled\").to.be.true;\n\t});\n\n\tit(\"if you add a URL, the path field should be disabled\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\".file-input-container button\").prop(\"disabled\"), \"File input disabled\").to.be.true;\n\t});\n\n\tit(\"if you add a URL and then save it, the URL should be cleared on re-open\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\t// click the Add button\n\t\twrapper.find(QUICK_ADD_APP_BUTTON).simulate(\"click\");\n\n\t\t// wait tick\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(QUICK_ADD_APP_URL).prop(\"value\")).to.be.empty;\n\t});\n\tit(\"if you add a URL and then close quick add, the URL should be cleared on re-open\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\t// click the Close button\n\t\twrapper.find(\"button[title='Close']\").simulate(\"click\");\n\n\t\t// wait tick\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(QUICK_ADD_APP_URL).prop(\"value\")).to.be.empty;\n\t});\n});\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Authentication.spec.js","sourceRoot":"","sources":["../../../../src/components/sdd/tests/Authentication.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,IAAI,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAClC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,cAAc,sCAET,cAAc,CAAC,IAA4B,GAE/C,CACF,CAAC;QAEF,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzD,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,cAAc,sCAET,cAAc,CAAC,IAA4B,GAE/C,CACF,CAAC;QAEF,OAAO;aACL,IAAI,CAAC,6BAA6B,CAAC;aACnC,EAAE,CAAC,CAAC,CAAC;aACL,QA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C;QAGF,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACjE,MAAM,EAAE;gBACP,KAAK,EAAE,eAAe;aACtB;SACD,CAAC,CAAC;QAEH,MAAM,QAAQ,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACtF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { Page as Authentication } from \"../stories/Authentication.stories\";\nimport { AuthenticationProps } from \"../Authentication\";\nimport { waitTick } from \"../sdd_helpers\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\ndescribe(\"<Authentication/>\", () => {\n\tit(\"should pass accessibility scans (Page)\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\tit(\"should allow adding auth settings\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\twrapper\n\t\t\t.find(\".auth-setup-select-provider\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Custom\",\n\t\t\t\t},\n\t\t\t});\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".auth-setup-provider\").length).to.equal(1);\n\n\t\tconst inputs = [\n\t\t\t{\n\t\t\t\tselector: \".auth-setup-provider .auth-setup-clientid input\",\n\t\t\t\tvalue: \"clientidTest\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tselector: \".auth-setup-provider .auth-setup-endpoint-url input\",\n\t\t\t\tvalue: \"http://test.com\",\n\t\t\t},\n\t\t];\n\n\t\tinputs.forEach((input) => {\n\t\t\texpect(wrapper.find(input.selector).length, `Find ${input.selector}`).to.be.greaterThan(0);\n\n\t\t\twrapper\n\t\t\t\t.find(input.selector)\n\t\t\t\t.at(0)\n\t\t\t\t.simulate(\"change\", {\n\t\t\t\t\ttarget: {\n\t\t\t\t\t\tvalue: input.value,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t});\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\tinputs.forEach((input) => {\n\t\t\texpect(wrapper.find(input.selector).at(0).prop(\"value\")).to.equal(input.value);\n\t\t\texpect(wrapper.find(input.selector).at(0).prop(\"aria-invalid\")).to.be.false;\n\t\t});\n\t});\n\n\tit(\"toggling advanced options should not clear inputs\", async () => {\n\t\tconst arbitrary_value = \"my test\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\twrapper\n\t\t\t.find(\".auth-setup-select-provider\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Custom\",\n\t\t\t\t},\n\t\t\t});\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-clientid input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\t\tawait waitTick();\n\n\t\t// Toggle the Advanced Options\n\t\twrapper.find(\".auth-setup-toggle-mode button\").simulate(\"click\");\n\n\t\t// Confirm that \"Client ID\" didn't change\n\t\texpect(wrapper.find(\".auth-setup-clientid input\").prop(\"value\"), `Confirm that \"Client ID\" didn't change`).to.equal(\n\t\t\tarbitrary_value\n\t\t);\n\n\t\t// Test accessibility of expanded options while we're at it\n\t\texpect(await accessibilityAssessor(wrapper), \"Accessibility scan\").to.be.true;\n\t});\n\n\tit(\"should allow saving valid endpoint URL\", async () => {\n\t\tconst arbitrary_value = \"http://cosaic.io\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-endpoint-url input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\n\t\tawait waitTick();\n\n\t\texpect(wrapper.find(\".auth-setup-actions button\").at(0).prop(\"disabled\")).to.be.false;\n\t});\n\n\tit(\"should not allow saving empty endpoint URL\", async () => {\n\t\tconst arbitrary_value = \"\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-endpoint-url input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\n\t\tawait waitTick();\n\n\t\texpect(wrapper.find(\".auth-setup-actions button\").at(0).prop(\"disabled\")).to.be.true;\n\t});\n\n\tit(\"should not allow saving invalid endpoint URL\", async () => {\n\t\tconst arbitrary_value = \"\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-endpoint-url input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\n\t\tawait waitTick();\n\n\t\texpect(wrapper.find(\".auth-setup-actions button\").at(0).prop(\"disabled\")).to.be.true;\n\t});\n});\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentHeader.spec.js","sourceRoot":"","sources":["../../../../src/components/sdd/tests/ContentHeader.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAKtD,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxD,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC9B,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAAoB,EAAI,CAAC,CAAC;QAE5E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,IAAI,EAAE,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,C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["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it, afterEach } from \"mocha\";\nimport { expect } from \"chai\";\nimport { HeaderProps } from \"../ContentHeader\";\nimport { BasicStory } from \"../stories/ContentHeader.stories\";\n\n// For running accessibility scans\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\n// For testing user interactions (like click events):\nimport sinon from \"sinon\";\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\nimport addons, { mockChannel } from \"@storybook/addons\";\naddons.setChannel(mockChannel());\n\ndescribe(\"<Header/>\", () => {\n\tit(\"should display text\", () => {\n\t\tconst wrapper = mount(<BasicStory {...(BasicStory.args as HeaderProps)} />);\n\n\t\texpect(wrapper.find(\".project-title-icon\").text(), \"The icon is set\").to.equal(\"P\");\n\t\texpect(wrapper.find(\".project-name\").text(), \"The text matches\").to.equal(\"Project Title\");\n\t});\n\n\tit(\"should have a capital Letter Icon\", () => {\n\t\tconst props = { ...(BasicStory.args as HeaderProps), name: \"hello Worms\" };\n\t\tconst wrapper = mount(<BasicStory {...props} />);\n\n\t\texpect(wrapper.find(\".project-title-icon\").text(), \"The icon is capitalised\").to.equal(\"H\");\n\t\texpect(wrapper.find(\".project-name\").text(), \"The text matches\").to.equal(\"hello Worms\");\n\t});\n\n\tit(\"should display default text\", () => {\n\t\tconst props = { ...(BasicStory.args as HeaderProps), name: \"default\" };\n\t\tconst wrapper = mount(<BasicStory {...props} />);\n\n\t\texpect(wrapper.find(\".project-name\").text(), \"The text matches\").to.equal(\"Untitled project\");\n\t});\n\n\tit(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<BasicStory {...(BasicStory.args as HeaderProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n});\n"]}
@@ -0,0 +1,61 @@
1
+ import * as React from "react";
2
+ import { mount } from "enzyme";
3
+ import { describe, it, afterEach } from "mocha";
4
+ import { expect } from "chai";
5
+ import { AddNewPreload } from "../stories/EditPreload.stories";
6
+ import { accessibilityAssessor } from "./a11y_helper";
7
+ import sinon from "sinon";
8
+ import addons, { mockChannel } from "@storybook/addons";
9
+ addons.setChannel(mockChannel());
10
+ describe("<EditPreload/>", () => {
11
+ afterEach(() => {
12
+ sinon.restore();
13
+ });
14
+ it("should have initial state", () => {
15
+ const wrapper = mount(React.createElement(AddNewPreload, Object.assign({}, AddNewPreload.args)));
16
+ expect(wrapper.find("h2").exists(), "The heading exists").to.be.true;
17
+ expect(wrapper.find("h2").text(), "The heading text").to.equal("Untitled preload");
18
+ const buttons = wrapper.find(".preload-edit-actions button");
19
+ expect(buttons, "No remove button").to.have.lengthOf(2);
20
+ expect(buttons.last().text(), "Has save button").to.equal("Save");
21
+ expect(buttons.last().prop("disabled"), "Save button is disabled").to.be.true;
22
+ expect(wrapper.find({ value: "selection" }).prop("checked"), "Selected apps is selected").to.be.true;
23
+ expect(wrapper.find(".emperorOption input[checked]"), "No checked apps").to.have.lengthOf(0);
24
+ });
25
+ it('should hide and show app list based on "Load for" value ', async () => {
26
+ const wrapper = mount(React.createElement(AddNewPreload, Object.assign({}, AddNewPreload.args)));
27
+ expect(wrapper.find(".emperorSelectContainer").exists(), "App select should be shown").to.be.true;
28
+ wrapper
29
+ .find("input[name='preload-usage']")
30
+ .first()
31
+ .simulate("change", {
32
+ target: {
33
+ checked: true,
34
+ },
35
+ });
36
+ expect(wrapper.find(".emperorSelectContainer").exists(), "App select should not be shown").to.be.false;
37
+ });
38
+ it("should change the alias", async () => {
39
+ const wrapper = mount(React.createElement(AddNewPreload, Object.assign({}, AddNewPreload.args)));
40
+ expect(wrapper.find("h2").text(), "The heading text").to.equal("Untitled preload");
41
+ expect(wrapper.find(".preload-edit-actions button").last().prop("disabled"), "Save button is disabled").to.be.true;
42
+ wrapper.find("#preload-alias").simulate("change", {
43
+ target: {
44
+ value: "test-alias",
45
+ },
46
+ });
47
+ expect(wrapper.find("h2").text(), "The heading text").to.equal("test-alias");
48
+ wrapper.find("#preload-url").simulate("change", {
49
+ target: {
50
+ value: "http://www.example.com/preload.js",
51
+ },
52
+ });
53
+ expect(wrapper.find(".preload-edit-actions button").last().prop("disabled"), "Save button no longer disabled").to.be
54
+ .false;
55
+ });
56
+ it("should pass accessibility scans", async () => {
57
+ const wrapper = mount(React.createElement(AddNewPreload, Object.assign({}, AddNewPreload.args)));
58
+ expect(await accessibilityAssessor(wrapper)).to.be.true;
59
+ });
60
+ });
61
+ //# sourceMappingURL=EditPreload.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditPreload.spec.js","sourceRoot":"","sources":["../../../../src/components/sdd/tests/EditPreload.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAuB,MAAM,gCAAgC,CAAC;AAGpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAE/B,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACpC,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,aAAa,oBAAM,aAAa,CAAC,IAAyB,EAAI,CAAC,CAAC;QACvF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAA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H,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,gCAAgC,CAAC,CAAC,EAAE,CAAC,EAAE;aAClH,KAAK,CAAC;IACT,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAChD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,aAAa,oBAAM,aAAa,CAAC,IAAyB,EAAI,CAAC,CAAC;QACvF,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it, afterEach } from \"mocha\";\nimport { expect } from \"chai\";\nimport { EditPreloadProps } from \"../EditPreload\";\nimport { AddNewPreload, EditExistingPreload } from \"../stories/EditPreload.stories\";\n\n// For running accessibility scans\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\n// For testing user interactions (like click events):\nimport sinon from \"sinon\";\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\nimport addons, { mockChannel } from \"@storybook/addons\";\nimport { waitTick, waitTime } from \"../sdd_helpers\";\naddons.setChannel(mockChannel());\n\ndescribe(\"<EditPreload/>\", () => {\n\t// Used to clear after each interactive test using sinon\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit(\"should have initial state\", () => {\n\t\tconst wrapper = mount(<AddNewPreload {...(AddNewPreload.args as EditPreloadProps)} />);\n\t\texpect(wrapper.find(\"h2\").exists(), \"The heading exists\").to.be.true;\n\t\texpect(wrapper.find(\"h2\").text(), \"The heading text\").to.equal(\"Untitled preload\");\n\t\tconst buttons = wrapper.find(\".preload-edit-actions button\");\n\t\texpect(buttons, \"No remove button\").to.have.lengthOf(2);\n\t\texpect(buttons.last().text(), \"Has save button\").to.equal(\"Save\");\n\t\texpect(buttons.last().prop(\"disabled\"), \"Save button is disabled\").to.be.true;\n\t\texpect(wrapper.find({ value: \"selection\" }).prop(\"checked\"), \"Selected apps is selected\").to.be.true;\n\t\texpect(wrapper.find(\".emperorOption input[checked]\"), \"No checked apps\").to.have.lengthOf(0);\n\t});\n\n\tit('should hide and show app list based on \"Load for\" value ', async () => {\n\t\tconst wrapper = mount(<AddNewPreload {...(AddNewPreload.args as EditPreloadProps)} />);\n\t\texpect(wrapper.find(\".emperorSelectContainer\").exists(), \"App select should be shown\").to.be.true;\n\n\t\twrapper\n\t\t\t.find(\"input[name='preload-usage']\")\n\t\t\t.first()\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tchecked: true,\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\".emperorSelectContainer\").exists(), \"App select should not be shown\").to.be.false;\n\t});\n\n\tit(\"should change the alias\", async () => {\n\t\tconst wrapper = mount(<AddNewPreload {...(AddNewPreload.args as EditPreloadProps)} />);\n\n\t\texpect(wrapper.find(\"h2\").text(), \"The heading text\").to.equal(\"Untitled preload\");\n\t\texpect(wrapper.find(\".preload-edit-actions button\").last().prop(\"disabled\"), \"Save button is disabled\").to.be.true;\n\t\twrapper.find(\"#preload-alias\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"test-alias\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\"h2\").text(), \"The heading text\").to.equal(\"test-alias\");\n\n\t\twrapper.find(\"#preload-url\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.example.com/preload.js\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\".preload-edit-actions button\").last().prop(\"disabled\"), \"Save button no longer disabled\").to.be\n\t\t\t.false;\n\t});\n\n\tit(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<AddNewPreload {...(AddNewPreload.args as EditPreloadProps)} />);\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n});\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Export.spec.js","sourceRoot":"","sources":["../../../../src/components/sdd/tests/Export.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,SAAS,GAAG,cAAc,CAAC;AACjC,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAEhD,MAAM,QAAQ,GAAG;IAChB,WAAW,EAAE,oBAAoB;IACjC,aAAa,EAAE,yBAAyB;IACxC,YAAY,EAAE,8BAA8B;IAC5C,QAAQ,EAAE,wBAAwB;CAClC,CAAC;AAEF,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IACjD,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC/C,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QACxB,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAClC,IAAI,OAAO,CAAgB,CAAC,OAAO,EAAE,EAAE;YACtC,GAAG,EAAE,CAAC;YACN,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACJ,MAAM,OAAO,GAAG,K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B,CAAC,CAAC;QAEnG,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultExport } from \"../stories/Export.stories\";\nimport { ExportProps } from \"../Export\";\nimport publishTests from \"../fixtures/publishProgress\";\nimport { waitTick } from \"../sdd_helpers\";\nimport sinon from \"sinon\";\n\nconst validName = \"New Name 123\";\nconst invalidName = \" (Inv@l!d- Project)[] 123\";\n\nconst locators = {\n\tprojectName: \"input[type='text']\",\n\tpublishButton: \".package-project button\",\n\texportButton: \".export-method-button button\",\n\tcheckbox: \".complex-menu-checkbox\",\n};\n\ndescribe(\"<Export /> - saving project name\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\tit(\"should allow not saving invalid name\", () => {\n\t\tconst spy = sinon.spy();\n\t\tconst updateProjectSettings = () =>\n\t\t\tnew Promise<{ err: null }>((resolve) => {\n\t\t\t\tspy();\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} {...{ updateProjectSettings }} />);\n\n\t\tconst input = wrapper.find(\"input\");\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: \" (Inv@l!d- Project)[] 123\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(spy.calledOnce).to.be.false;\n\t\twrapper.unmount();\n\t});\n\tit(\"should allow saving valid name\", () => {\n\t\tconst spy = sinon.spy();\n\t\tconst updateProjectSettings = () =>\n\t\t\tnew Promise<{ err: null }>((resolve) => {\n\t\t\t\tspy();\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} {...{ updateProjectSettings }} />);\n\n\t\tconst input = wrapper.find(\"input\");\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: \"New Name 123\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(spy.calledOnce).to.be.true;\n\t\twrapper.unmount();\n\t});\n});\n\ndescribe(\"<Export /> - enabling publish button\", () => {\n\tit(\"if project name is valid, publish should be enabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\tconst input = wrapper.find(locators.projectName);\n\t\tinput.simulate(\"input\", { target: { value: \"\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: validName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should be enabled\").to.be.false;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is invalid, publish should be disabled\", async () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\tconst input = wrapper.find(locators.projectName);\n\t\tinput.simulate(\"input\", { target: { value: \"\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: invalidName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should still be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n});\n\ndescribe(\"<Export /> - enabling export button\", () => {\n\tit(\"if project name is valid and checkbox is checked, export should be enabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tconst input = wrapper.find(locators.projectName);\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: validName } });\n\t\tinput.simulate(\"blur\");\n\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tcheckbox.simulate(\"click\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be enabled\").to.be.false;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is invalid and checkbox is checked, export should be disabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\tconst input = wrapper.find(locators.projectName);\n\t\tinput.simulate(\"input\", { target: { value: \"\" } });\n\t\tinput.simulate(\"blur\");\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tif (checkbox.is(\".checked\")) {\n\t\t\tcheckbox.simulate(\"click\");\n\t\t}\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: invalidName } });\n\t\tinput.simulate(\"blur\");\n\n\t\tcheckbox.simulate(\"click\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is valid and checkbox is not checked, export should be disabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tconst input = wrapper.find(locators.projectName);\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: validName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is invalid and checkbox is not checked, export should be disabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tconst input = wrapper.find(locators.projectName);\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: invalidName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n});\n\ndescribe(\"<Export/>\", () => {\n\tit(\"should show publish url after successful publish action\", (done) => {\n\t\tconst publishTest = publishTests.find((test) => test.name === \"success\")!;\n\n\t\tlet stateIndex = 0;\n\t\tlet lastHTML = \"\";\n\n\t\tconst wrapper = mount(\n\t\t\t<DefaultExport\n\t\t\t\t{...{\n\t\t\t\t\t...(DefaultExport.args as ExportProps),\n\t\t\t\t\tprogressCheckInterval: 1,\n\t\t\t\t\tgetPublishProgress: () =>\n\t\t\t\t\t\tnew Promise((resolve) => {\n\t\t\t\t\t\t\tconst publishState = publishTest?.states[stateIndex++];\n\n\t\t\t\t\t\t\tif (!publishState || stateIndex >= publishTest.states.length) {\n\t\t\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\t\t\tcheckExportFinished(); // requires definition of `const wrapper`\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tresolve(publishState);\n\n\t\t\t\t\t\t\twrapper.update();\n\n\t\t\t\t\t\t\tconst html = wrapper.html();\n\n\t\t\t\t\t\t\texpect(lastHTML).to.not.eql(html);\n\n\t\t\t\t\t\t\tlastHTML = html;\n\t\t\t\t\t\t}),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tfunction checkExportFinished() {\n\t\t\twrapper.update();\n\n\t\t\texpect(wrapper.find(\".export-publish-url\").length).to.equal(1);\n\t\t\texpect(wrapper.find(\".export-publish-url input\").at(0).prop(\"value\")).to.eql(\"https://cosaic.io/\");\n\n\t\t\twrapper.unmount();\n\n\t\t\tdone();\n\t\t}\n\n\t\tconst button = wrapper.find(\".button-container-secondary button\").at(0);\n\n\t\texpect(button.text(), \"Button with Publish text\").to.contain(\"Publish\");\n\n\t\tbutton.simulate(\"click\");\n\n\t\texpect(wrapper.find(\".export-publish-container h2\").text()).to.contain(\"Publishing\");\n\n\t\tlastHTML = wrapper.html();\n\t});\n\n\tit(\"should show publish url after upload step\", async () => {\n\t\tconst publishTest = publishTests.find((test) => test.name === \"step-4-started\")!;\n\n\t\tconst wrapper = mount(\n\t\t\t<DefaultExport\n\t\t\t\t{...{\n\t\t\t\t\t...(DefaultExport.args as ExportProps),\n\t\t\t\t\tprogressCheckInterval: 1,\n\t\t\t\t\tgetPublishProgress: () =>\n\t\t\t\t\t\tnew Promise((resolve) => {\n\t\t\t\t\t\t\tresolve(publishTest.states[0]);\n\t\t\t\t\t\t}),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tconst button = wrapper.find(\".button-container-secondary button\").at(0);\n\n\t\texpect(button.text(), \"Button with Publish text\").to.contain(\"Publish\");\n\n\t\tbutton.simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".publish-progress-success\").length).to.equal(3);\n\t\texpect(wrapper.find(\".publish-progress-indicator\").length).to.equal(1);\n\t\texpect(wrapper.find(\".export-publish-url\").length).to.equal(1);\n\t\texpect(wrapper.find(\".export-publish-url input\").at(0).prop(\"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AC,CAAC;IACH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,cAAc,sCAET,cAAc,CAAC,IAAoB,GAEvC,CACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACjD,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE3B,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE/D,MAAM,QAAQ,EAAE,CAAC;QAEjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEhG,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultExportZip, ErrorExportZip } from \"../stories/ExportZip.stories\";\nimport { ExportProps } from \"../Export\";\nimport { waitTick } from \"../sdd_helpers\";\n\nconst locators = {\n\tcheckbox: \".complex-menu-checkbox\",\n};\n\ndescribe(\"<ExportZip/>\", () => {\n\tit(\"should show file count after success publish\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<DefaultExportZip\n\t\t\t\t{...{\n\t\t\t\t\t...(DefaultExportZip.args as ExportProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tcheckbox.simulate(\"click\");\n\n\t\twrapper.find(\".export-method-button button\").simulate(\"click\");\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".last-export-time\").length, \"Export success message container\").to.equal(1);\n\n\t\twrapper.unmount();\n\t});\n\tit(\"should error after failed publish\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<ErrorExportZip\n\t\t\t\t{...{\n\t\t\t\t\t...(ErrorExportZip.args as ExportProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tcheckbox.simulate(\"click\");\n\n\t\twrapper.find(\".export-method-button button\").simulate(\"click\");\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".last-export-error\").length, \"Export error message container\").to.equal(1);\n\n\t\twrapper.unmount();\n\t});\n});\n"]}
@@ -3,11 +3,11 @@ import { mount } from "enzyme";
3
3
  import { afterEach, describe, it } from "mocha";
4
4
  import { expect } from "chai";
5
5
  import sinon from "sinon";
6
- import { EmptyAppList, OneAppInList, AppWithoutDisplayName, SampleAppList } from "../stories/ApplicationList.stories";
6
+ import { EmptyAppList, OneAppInList, AppWithoutDisplayName, SampleAppList } from "../stories/ItemList.stories";
7
7
  import { accessibilityAssessor } from "./a11y_helper";
8
8
  import addons, { mockChannel } from "@storybook/addons";
9
9
  addons.setChannel(mockChannel());
10
- describe("<ApplicationList/>", () => {
10
+ describe("<ItemList/>", () => {
11
11
  afterEach(() => {
12
12
  sinon.restore();
13
13
  });
@@ -37,7 +37,7 @@ describe("<ApplicationList/>", () => {
37
37
  expect(wrapper.find(".app-list-row")).to.have.lengthOf(3);
38
38
  });
39
39
  it("should delete an app when the delete button is clicked", () => {
40
- const buttonSpy = sinon.spy(SampleAppList.args, "deleteApp");
40
+ const buttonSpy = sinon.spy(SampleAppList.args, "deleteItem");
41
41
  const wrapper = mount(React.createElement(SampleAppList, Object.assign({}, SampleAppList.args)));
42
42
  wrapper
43
43
  .find(".app-list-row button")
@@ -46,7 +46,7 @@ describe("<ApplicationList/>", () => {
46
46
  expect(buttonSpy.calledOnce).to.be.true;
47
47
  });
48
48
  it("should perform the launch action when the app name is clicked", () => {
49
- const buttonSpy = sinon.spy(SampleAppList.args, "clickApp");
49
+ const buttonSpy = sinon.spy(SampleAppList.args, "clickItem");
50
50
  const wrapper = mount(React.createElement(SampleAppList, Object.assign({}, SampleAppList.args)));
51
51
  wrapper
52
52
  .find(".app-list-row")
@@ -55,7 +55,7 @@ describe("<ApplicationList/>", () => {
55
55
  expect(buttonSpy.calledOnce).to.be.true;
56
56
  });
57
57
  it("should perform the launch action when the app name is in focus and the Enter key is pressed", () => {
58
- const buttonSpy = sinon.spy(SampleAppList.args, "clickApp");
58
+ const buttonSpy = sinon.spy(SampleAppList.args, "clickItem");
59
59
  const wrapper = mount(React.createElement(SampleAppList, Object.assign({}, SampleAppList.args)));
60
60
  wrapper
61
61
  .find(".app-list-row")
@@ -67,7 +67,7 @@ describe("<ApplicationList/>", () => {
67
67
  expect(buttonSpy.calledOnce).to.be.true;
68
68
  });
69
69
  it("should perform the launch action when the app name is in focus and the spacebar is pressed", () => {
70
- const buttonSpy = sinon.spy(SampleAppList.args, "clickApp");
70
+ const buttonSpy = sinon.spy(SampleAppList.args, "clickItem");
71
71
  const wrapper = mount(React.createElement(SampleAppList, Object.assign({}, SampleAppList.args)));
72
72
  wrapper
73
73
  .find(".app-list-row")
@@ -79,7 +79,7 @@ describe("<ApplicationList/>", () => {
79
79
  expect(buttonSpy.calledOnce).to.be.true;
80
80
  });
81
81
  it("should delete an app when the app name is in focus and the delete key is pressed", () => {
82
- const buttonSpy = sinon.spy(SampleAppList.args, "deleteApp");
82
+ const buttonSpy = sinon.spy(SampleAppList.args, "deleteItem");
83
83
  const wrapper = mount(React.createElement(SampleAppList, Object.assign({}, SampleAppList.args)));
84
84
  wrapper
85
85
  .find(".app-list-row")
@@ -91,4 +91,4 @@ describe("<ApplicationList/>", () => {
91
91
  expect(buttonSpy.calledOnce).to.be.true;
92
92
  });
93
93
  });
94
- //# sourceMappingURL=ApplicationList.spec.js.map
94
+ //# sourceMappingURL=ItemList.spec.js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AE,CAAC,CAAC,CAAC;aACL,QAAQ,CAAC,SAAS,EAAE;YACpB,GAAG,EAAE,QAAQ;YACb,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC;SACzB,CAAC,CAAC;QACJ,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzC,CAAC,CAAC,CAAC;AAIJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { afterEach, describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport sinon from \"sinon\";\nimport { ItemListProps } from \"../ItemList\";\nimport { EmptyAppList, OneAppInList, AppWithoutDisplayName, SampleAppList } from \"../stories/ItemList.stories\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\nimport addons, { mockChannel } from \"@storybook/addons\";\naddons.setChannel(mockChannel());\n\ndescribe(\"<ItemList/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit(\"should pass accessibility scans (when empty)\", async () => {\n\t\tconst wrapper = mount(<EmptyAppList {...(EmptyAppList.args as ItemListProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should pass accessibility scans (Sample)\", async () => {\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ItemListProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should show a zero state message when there are no apps to display\", () => {\n\t\tconst wrapper = mount(<EmptyAppList {...(EmptyAppList.args as ItemListProps)} />);\n\n\t\texpect(wrapper.find(\".app-list-empty\").first().text()).to.contain(\"There’s nothing here\");\n\t});\n\n\tit(\"should show an app title and a delete icon when 1 app is provided\", () => {\n\t\tconst wrapper = mount(<OneAppInList {...(OneAppInList.args as ItemListProps)} />);\n\n\t\texpect(wrapper.find(\".app-list-row .app-name\").exists()).to.be.true;\n\t\texpect(wrapper.find(\".app-list-row .icon-delete\").exists()).to.be.true;\n\t});\n\n\tit(\"should show an appId if no displayname is provided\", () => {\n\t\tconst wrapper = mount(<AppWithoutDisplayName {...(AppWithoutDisplayName.args as ItemListProps)} />);\n\t\texpect(wrapper.find(\".app-list-row .app-name\").text()).to.equal(\"NoDisplayName\");\n\t});\n\tit(\"should show 3 apps when 3 apps are provided\", () => {\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ItemListProps)} />);\n\t\texpect(wrapper.find(\".app-list-row\")).to.have.lengthOf(3);\n\t});\n\tit(\"should delete an app when the delete button is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ItemListProps, \"deleteItem\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ItemListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row button\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"click\", { stopPropagation: () => {} });\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should perform the launch action when the app name is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ItemListProps, \"clickItem\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ItemListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"click\", { preventDefault: () => {} });\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should perform the launch action when the app name is in focus and the Enter key is pressed\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ItemListProps, \"clickItem\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ItemListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keyDown\", {\n\t\t\t\tkey: \"Enter\",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should perform the launch action when the app name is in focus and the spacebar is pressed\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ItemListProps, \"clickItem\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ItemListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keyDown\", {\n\t\t\t\tkey: \" \",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should delete an app when the app name is in focus and the delete key is pressed\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ItemListProps, \"deleteItem\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ItemListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keyDown\", {\n\t\t\t\tkey: \"Delete\",\n\t\t\t\tstopPropagation: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\t// it(\"should not perform the launch action when the delete name is clicked\", () => {\n\t// \tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t// });\n});\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Navigation.spec.js","sourceRoot":"","sources":["../../../../src/components/sdd/tests/Navigation.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,QAAQ,GAAG,WAAW,CAAC;AAE7B,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;QAC1D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,iBAAiB,sCAAW,iBAAiB,CAAC,IAAwB,GAAM,CAAC,CAAC;QAErG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC9C,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,iBAAiB,sCAAW,iBAAiB,CAAC,IAAwB,GAAM,CAAC,CAAC;QAErG,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAExC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE;YAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAE1B,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBAC/B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,YAAY,CAAC,CAAC;YACtF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { NavigationProps } from \"../Navigation\";\nimport { DefaultNavigation } from \"../stories/Navigation.stories\";\n\nconst NAV_ITEM = \".nav-item\";\n\ndescribe(\"<Navigation/>\", () => {\n\tit(\"should have first tab selected by default\", async () => {\n\t\tconst wrapper = mount(<DefaultNavigation {...{ ...(DefaultNavigation.args as NavigationProps) }} />);\n\n\t\twrapper.find(NAV_ITEM).forEach((item, index) => {\n\t\t\texpect(item.hasClass(\"active\"), \"Has active class\").to.equal(index === 0);\n\t\t});\n\t});\n\n\tit(\"should change to selected tab\", async () => {\n\t\tconst wrapper = mount(<DefaultNavigation {...{ ...(DefaultNavigation.args as NavigationProps) }} />);\n\n\t\tconst navItems = wrapper.find(NAV_ITEM);\n\n\t\tnavItems.forEach((navItem, clickedIndex) => {\n\t\t\tnavItem.simulate(\"click\");\n\n\t\t\tnavItem.forEach((item, index) => {\n\t\t\t\texpect(item.hasClass(\"active\"), \"Has active class\").to.equal(index === clickedIndex);\n\t\t\t});\n\t\t});\n\t});\n});\n"]}