@finsemble/finsemble-ui 6.2.0 → 6.3.0-beta.20211008
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.
- package/package.json +17 -16
- package/react/actions/smartDesktopDesignerActions.d.ts +7 -8
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/actions/toolbarActions.d.ts +2 -3
- package/react/actions/toolbarActions.js.map +1 -1
- package/react/assets/css/notificationsCenter.css +4 -2
- package/react/assets/css/userPreferences.css +1 -0
- package/react/assets/css/windowTitleBar.css +33 -1
- package/react/components/FinsembleProvider.js +1 -1
- package/react/components/FinsembleProvider.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/appCatalog/components/AppList.d.ts +7 -1
- package/react/components/appCatalog/components/AppList.js +1 -1
- package/react/components/appCatalog/components/AppList.js.map +1 -1
- package/react/components/appCatalog/components/AppResults.d.ts +10 -8
- package/react/components/appCatalog/components/AppResults.js +1 -1
- package/react/components/appCatalog/components/AppResults.js.map +1 -1
- package/react/components/appCatalog/components/Carousel.js +1 -1
- package/react/components/appCatalog/components/Carousel.js.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.d.ts +2 -1
- package/react/components/appCatalog/components/EmptyResults.js +2 -4
- package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
- package/react/components/appCatalog/components/Hero.d.ts +24 -4
- package/react/components/appCatalog/components/Hero.js +2 -1
- package/react/components/appCatalog/components/Hero.js.map +1 -1
- package/react/components/appCatalog/components/Home.d.ts +18 -4
- package/react/components/appCatalog/components/Home.js.map +1 -1
- package/react/components/appCatalog/components/SearchBar.d.ts +20 -7
- package/react/components/appCatalog/components/SearchBar.js +4 -7
- package/react/components/appCatalog/components/SearchBar.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.d.ts +5 -3
- package/react/components/appCatalog/components/Showcase/AppDescription.js +4 -6
- package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts +5 -4
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.d.ts +13 -5
- package/react/components/appCatalog/components/Showcase/Header.js +2 -2
- package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Modal.d.ts +7 -4
- package/react/components/appCatalog/components/Showcase/Modal.js +6 -6
- package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/defaults.d.ts +3 -3
- package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
- package/react/components/appCatalog/components/Tag.d.ts +6 -4
- package/react/components/appCatalog/components/Tag.js.map +1 -1
- package/react/components/appCatalog/components/Toast.d.ts +5 -3
- package/react/components/appCatalog/components/Toast.js +5 -4
- package/react/components/appCatalog/components/Toast.js.map +1 -1
- package/react/components/appCatalog/modules/AppDirectory.d.ts +5 -1
- package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
- package/react/components/appCatalog/modules/FDC3.d.ts +12 -11
- package/react/components/appCatalog/modules/FDC3.js +20 -18
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.d.ts +9 -2
- package/react/components/appCatalog/stores/appStore.js +10 -4
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.js.map +1 -1
- package/react/components/common/Button.d.ts +4 -4
- package/react/components/common/Button.js +1 -1
- package/react/components/common/Button.js.map +1 -1
- package/react/components/common/ButtonIcon.js +1 -1
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/ColorPicker.js +1 -1
- package/react/components/common/ColorPicker.js.map +1 -1
- package/react/components/common/DropZone.d.ts +0 -5
- package/react/components/common/DropZone.js.map +1 -1
- package/react/components/common/DropdownButton.js +1 -1
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/FileInput.d.ts +0 -5
- package/react/components/common/FileInput.js +7 -9
- package/react/components/common/FileInput.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +2 -2
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleSelect.js +2 -5
- package/react/components/common/FinsembleSelect.js.map +1 -1
- package/react/components/common/FinsembleToggle.js +2 -2
- package/react/components/common/FinsembleToggle.js.map +1 -1
- package/react/components/common/FontSizeSelector.js +2 -2
- package/react/components/common/FontSizeSelector.js.map +1 -1
- package/react/components/common/ImagePreview.js +2 -2
- package/react/components/common/ImagePreview.js.map +1 -1
- package/react/components/common/Tab.js +2 -1
- package/react/components/common/Tab.js.map +1 -1
- package/react/components/common/file_helpers.js +3 -2
- package/react/components/common/file_helpers.js.map +1 -1
- package/react/components/common/helpers.js +8 -10
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/Button.stories.js +1 -1
- package/react/components/common/stories/Button.stories.js.map +1 -1
- package/react/components/common/stories/ButtonIcon.stories.js +1 -1
- package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
- package/react/components/common/stories/ButtonRow.stories.js +2 -2
- package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
- package/react/components/common/stories/ButtonTile.stories.js +1 -1
- package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
- package/react/components/common/stories/Checkbox.stories.js +1 -1
- package/react/components/common/stories/Checkbox.stories.js.map +1 -1
- package/react/components/common/stories/ColorPicker.stories.js +1 -1
- package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
- package/react/components/common/stories/DropZone.stories.js +1 -1
- package/react/components/common/stories/DropZone.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleSelect.stories.js +1 -1
- package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleToggle.stories.js +3 -1
- package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
- package/react/components/common/stories/FontSizeSelector.stories.js +1 -1
- package/react/components/common/stories/FontSizeSelector.stories.js.map +1 -1
- package/react/components/common/stories/Header.stories.js +1 -1
- package/react/components/common/stories/Header.stories.js.map +1 -1
- package/react/components/common/tests/Checkbox.spec.js +4 -4
- package/react/components/common/tests/Checkbox.spec.js.map +1 -1
- package/react/components/common/tests/ColorPicker.spec.js +6 -6
- package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
- package/react/components/common/tests/DropZone.spec.js +4 -4
- package/react/components/common/tests/DropZone.spec.js.map +1 -1
- package/react/components/common/tests/FileInput.spec.js +5 -5
- package/react/components/common/tests/FileInput.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js +12 -11
- package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js +8 -2
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/common/tests/Header.spec.js +3 -3
- package/react/components/common/tests/Header.spec.js.map +1 -1
- package/react/components/common/tests/ImagePreview.spec.js +8 -8
- package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
- package/react/components/common/tests/Tab.spec.js +3 -3
- package/react/components/common/tests/Tab.spec.js.map +1 -1
- package/react/components/common/tests/Tooltip.spec.js +5 -5
- package/react/components/common/tests/Tooltip.spec.js.map +1 -1
- package/react/components/favorites/FavoriteMaker.d.ts +0 -5
- package/react/components/favorites/FavoriteMaker.js +1 -1
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.js +1 -1
- package/react/components/favorites/FavoritesShell.js.map +1 -1
- package/react/components/favorites/FavoritesShell.spec.js +7 -7
- package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
- package/react/components/favorites/FavoritesShell.stories.js +5 -4
- package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +2 -1
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js +13 -13
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js +5 -5
- package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.stories.js +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
- package/react/components/icon/Icon.js +5 -4
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.d.ts +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.js +4 -3
- package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js +2 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.js +8 -5
- package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.js +18 -17
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js +3 -3
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js +2 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
- package/react/components/legacyControls/FinsembleMenuSection.js +6 -3
- package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialog.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialog.spec.js +1 -1
- package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js +8 -7
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js +7 -5
- package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +13 -12
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
- package/react/components/linker/LinkerMenu.js +4 -3
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
- package/react/components/linker/remoteRedux.d.ts +10 -42
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/Menu.d.ts +1 -1
- package/react/components/menu/Menu.js +1 -1
- package/react/components/menu/Menu.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuPortal.js +7 -6
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/keyboardNavigation.js +14 -15
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/notifications/components/NoNotifications.js +2 -4
- package/react/components/notifications/components/NoNotifications.js.map +1 -1
- package/react/components/notifications/components/drawer/Drawer.js +2 -4
- package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerControls.js +2 -4
- package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerHeader.js +1 -4
- package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +28 -43
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +10 -9
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.d.ts +2 -2
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js +3 -5
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +3 -2
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.d.ts +2 -1
- package/react/components/notifications/components/shared/OverflowMenu.js +6 -5
- package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js +2 -4
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js +15 -24
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.d.ts +2 -2
- package/react/components/notifications/components/views/ListView.js +9 -9
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.d.ts +2 -2
- package/react/components/notifications/components/views/NotificationDetailsView.js +2 -6
- package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/types.d.ts +7 -6
- package/react/components/notifications/types.js.map +1 -1
- package/react/components/notifications/utils.d.ts +6 -4
- package/react/components/notifications/utils.js +26 -32
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.d.ts +3 -1
- package/react/components/processMonitor/ProcessMonitor.js +17 -10
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +33 -0
- package/react/components/processMonitor/ProcessMonitorTypes.js +6 -0
- package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -0
- package/react/components/processMonitor/components/ChildWindow.d.ts +10 -3
- package/react/components/processMonitor/components/ChildWindow.js +19 -10
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +17 -4
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.d.ts +11 -3
- package/react/components/processMonitor/components/ProcessStatistics.js +25 -18
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +11 -16
- package/react/components/processMonitor/constants.js +3 -1
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.d.ts +25 -5
- package/react/components/processMonitor/helpers.js +28 -20
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/helpers.spec.d.ts +1 -0
- package/react/components/processMonitor/helpers.spec.js +44 -0
- package/react/components/processMonitor/helpers.spec.js.map +1 -0
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +30 -15
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +101 -86
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.d.ts +4 -1
- package/react/components/quickComponentForm/QuickComponentForm.js +13 -14
- package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
- package/react/components/search/Highlight.js +2 -2
- package/react/components/search/Highlight.js.map +1 -1
- package/react/components/search/Highlight.spec.js +3 -3
- package/react/components/search/Highlight.spec.js.map +1 -1
- package/react/components/search/Highlight.stories.js +1 -1
- package/react/components/search/Highlight.stories.js.map +1 -1
- package/react/components/search/Search.js +17 -8
- package/react/components/search/Search.js.map +1 -1
- package/react/components/search/SearchBestMatch.js +2 -1
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchProviderResults.js +4 -5
- package/react/components/search/SearchProviderResults.js.map +1 -1
- package/react/components/search/SearchResult.js +3 -2
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResults.js +1 -1
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/shared/Button.js +2 -4
- package/react/components/shared/Button.js.map +1 -1
- package/react/components/shared/DefaultDropdownButton.js +1 -1
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/shared/NavigationButton.js +9 -11
- package/react/components/shared/NavigationButton.js.map +1 -1
- package/react/components/shared/Tag.d.ts +11 -1
- package/react/components/shared/Tag.js.map +1 -1
- package/react/components/shared/TagsMenu.d.ts +26 -6
- package/react/components/shared/TagsMenu.js.map +1 -1
- package/react/components/shared/linkerUtil.d.ts +3 -1
- package/react/components/shared/linkerUtil.js.map +1 -1
- package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js +6 -6
- package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.stories.js +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditAccess.d.ts +1 -1
- package/react/components/smartDesktopDesigner/AppEditAccess.js +17 -34
- package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditPage.d.ts +4 -4
- package/react/components/smartDesktopDesigner/AppEditPage.js +2 -2
- package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Appearance.js +3 -5
- package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
- package/react/components/smartDesktopDesigner/Application.d.ts +4 -4
- package/react/components/smartDesktopDesigner/Application.js +84 -92
- package/react/components/smartDesktopDesigner/Application.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +1 -1
- package/react/components/smartDesktopDesigner/ApplicationEdit.js +68 -51
- package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationList.d.ts +4 -2
- package/react/components/smartDesktopDesigner/ApplicationList.js +23 -20
- package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +4 -3
- package/react/components/smartDesktopDesigner/ApplicationSetup.js +8 -20
- package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +1 -1
- package/react/components/smartDesktopDesigner/Applications.d.ts +0 -1
- package/react/components/smartDesktopDesigner/Applications.js +73 -62
- package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
- package/react/components/smartDesktopDesigner/Authentication.js +2 -8
- package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +1 -8
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
- package/react/components/smartDesktopDesigner/Content.js.map +1 -1
- package/react/components/smartDesktopDesigner/CurrentView.js +1 -1
- package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
- package/react/components/smartDesktopDesigner/Export.js +3 -3
- package/react/components/smartDesktopDesigner/Export.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js +1 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js +1 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportZip.js +0 -1
- package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.js +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +1 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.js +1 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.js.map +1 -1
- package/react/components/smartDesktopDesigner/Publish.js +1 -1
- package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +11 -24
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/smartDesktopDesigner/Themes.js +2 -8
- package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
- package/react/components/smartDesktopDesigner/View.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.d.ts +1 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js +2 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/views.d.ts +1 -1
- package/react/components/smartDesktopDesigner/common/views.js +4 -14
- package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +4 -4
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +2 -2
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js +2 -3
- package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +4 -70
- package/react/components/smartDesktopDesigner/fixtures/apps.js +9 -20
- package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.d.ts +2 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/views.js +4 -4
- package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js +2 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -4
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +8 -8
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js +7 -7
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +3 -7
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js +9 -2
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +3 -10
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js +7 -14
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Export.stories.js +2 -2
- package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +2 -2
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +5 -11
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.d.ts +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js +2 -4
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js +13 -28
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +3 -3
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +32 -32
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +6 -5
- package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js +11 -11
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +9 -7
- package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js +35 -35
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js +6 -18
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Export.spec.js +14 -22
- package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +2 -6
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js +2 -2
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +2 -2
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +2 -2
- package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js +3 -10
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js +2 -6
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +3 -3
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js +7 -7
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js +2 -1
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
- package/react/components/system/System.spec.js +1 -1
- package/react/components/system/System.spec.js.map +1 -1
- package/react/components/system/SystemTrayComponentShell.js +1 -1
- package/react/components/system/SystemTrayComponentShell.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.spec.js +5 -5
- package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
- package/react/components/toolbar/NotificationControl.js +3 -2
- package/react/components/toolbar/NotificationControl.js.map +1 -1
- package/react/components/toolbar/RevealAll.spec.js +5 -5
- package/react/components/toolbar/RevealAll.spec.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js +14 -2
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +22 -5
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js +11 -6
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +21 -9
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.d.ts +33 -10
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js +24 -3
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.d.ts +3 -3
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js +0 -3
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.d.ts +24 -8
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js +4 -2
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +18 -4
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +5 -4
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.d.ts +14 -6
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js +2 -2
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +34 -13
- package/react/components/toolbar/advancedAppLauncher/components/Content.js +23 -29
- package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.d.ts +15 -5
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js +4 -3
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +38 -21
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +13 -8
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts +18 -3
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +7 -3
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.d.ts +10 -3
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js +1 -3
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.d.ts +15 -6
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js +11 -6
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.d.ts +11 -4
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.js +3 -2
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +18 -6
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js +2 -2
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.d.ts +20 -4
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js +2 -4
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.d.ts +5 -1
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.d.ts +15 -10
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +5 -2
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +5 -4
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.d.ts +7 -6
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +11 -13
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts +3 -3
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +25 -3
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js +3 -10
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/components/componentList.d.ts +34 -6
- package/react/components/toolbar/appLauncher/components/componentList.js +24 -21
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +32 -32
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +37 -55
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +2 -3
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +28 -5
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js +17 -23
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +25 -3
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +13 -8
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +2 -2
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +16 -8
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js +0 -3
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +65 -11
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +95 -145
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/UserPreferenceTypes.d.ts +5 -0
- package/react/components/userPreferences/UserPreferenceTypes.js +2 -0
- package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -0
- package/react/components/userPreferences/UserPreferencesBase.js +2 -2
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.js +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js +2 -1
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/LeftNav.d.ts +1 -1
- package/react/components/userPreferences/components/LeftNav.js +1 -1
- package/react/components/userPreferences/components/LeftNav.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.js +2 -0
- package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +21 -10
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +48 -51
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +9 -9
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +4 -6
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js +6 -6
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.js +0 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts +3 -4
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +5 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js +8 -5
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js +15 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js +16 -2
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +12 -12
- package/react/components/userPreferences/stores/UserPreferencesStore.js +9 -16
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/stories/DashbarEditor.stories.js +1 -1
- package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
- package/react/components/userPreferences/stories/DashbarEditorItem.stories.js +1 -1
- package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
- package/react/components/userPreferences/stories/General.stories.js.map +1 -1
- package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js +1 -1
- package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
- package/react/components/userPreferences/stories/NotificationsSources.stories.js +1 -1
- package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
- package/react/components/userPreferences/stories/UserPreferences.stories.d.ts +1 -1
- package/react/components/userPreferences/stories/UserPreferences.stories.js +1 -1
- package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceButton.stories.d.ts +5 -9
- package/react/components/userPreferences/stories/WorkspaceButton.stories.js +10 -3
- package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceItem.stories.js +2 -2
- package/react/components/userPreferences/stories/WorkspaceItem.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceItemList.stories.js.map +1 -1
- package/react/components/userPreferences/stories/Workspaces.stories.js +1 -1
- package/react/components/userPreferences/stories/Workspaces.stories.js.map +1 -1
- package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
- package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
- package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
- package/react/components/userPreferences/tests/General.spec.js.map +1 -1
- package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
- package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
- package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
- package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
- package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
- package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceButton.spec.js +17 -3
- package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceComponents.spec.js +1 -1
- package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
- package/react/components/utils.js +1 -1
- package/react/components/utils.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +58 -31
- package/react/components/windowTitleBar/WindowTitleBarShell.js +47 -50
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/center/Tab.d.ts +27 -7
- package/react/components/windowTitleBar/components/center/Tab.js +2 -2
- package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabList.d.ts +43 -30
- package/react/components/windowTitleBar/components/center/TabList.js +111 -37
- package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js +5 -4
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +1 -21
- package/react/components/windowTitleBar/components/left/LinkerGroups.js +6 -8
- package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
- package/react/components/windowTitleBar/components/left/ShareButton.d.ts +1 -21
- package/react/components/windowTitleBar/components/right/CloseButton.d.ts +12 -25
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +17 -26
- package/react/components/windowTitleBar/components/right/GroupingButton.js +2 -2
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +1 -21
- package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +12 -25
- package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.js +11 -6
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +51 -44
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +63 -56
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +42 -44
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
- package/react/components/windowTitleBar/windowTitleBarContext.d.ts +9 -9
- package/react/components/windowTitleBar/windowTitleBarContext.js +2 -4
- package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
- package/react/components/yesNoDialog/Timer.spec.js +2 -2
- package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
- package/react/components/yesNoDialog/Timer.stories.js +1 -1
- package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js +5 -5
- package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.stories.js +1 -1
- package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useLinker.js +1 -1
- package/react/hooks/useLinker.js.map +1 -1
- package/react/hooks/useMenu.js +1 -1
- package/react/hooks/useMenu.js.map +1 -1
- package/react/hooks/useNotifications.d.ts +6 -6
- package/react/hooks/useNotifications.js +16 -17
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useSearch.js +1 -1
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/hooks/useWorkspace.js +1 -1
- package/react/hooks/useWorkspace.js.map +1 -1
- package/react/reducers/favoriteReducer.js +1 -1
- package/react/reducers/favoriteReducer.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +3 -4
- package/react/reducers/toolbarReducer.js +1 -1
- package/react/reducers/toolbarReducer.js.map +1 -1
- package/react/store.d.ts +6 -7
- package/react/types/advancedAppLauncherTypes.d.ts +28 -1
- package/react/types/advancedAppLauncherTypes.js.map +1 -1
- package/react/types/favoriteTypes.d.ts +1 -1
- package/react/types/favoriteTypes.js.map +1 -1
- package/react/types/fdc3.d.ts +22 -0
- package/react/types/fdc3.js.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +11 -9
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/react/types/windowTitleBar.d.ts +46 -0
- package/react/types/windowTitleBar.js +2 -0
- package/react/types/windowTitleBar.js.map +1 -0
- package/react/components/processMonitor/components/ChildWindows.d.ts +0 -4
- package/react/components/processMonitor/components/ChildWindows.js +0 -11
- package/react/components/processMonitor/components/ChildWindows.js.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNav.d.ts +0 -4
- package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js +0 -14
- package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportZip.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ExportZip.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ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AAM,EAAE,kCAAkC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEjG,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,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,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\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { DefaultExportZip, ErrorExportZip } from \"../stories/ExportZip.stories\";\r\nimport { ExportProps } from \"../Export\";\r\nimport { waitTick } from \"../sdd_helpers\";\r\n\r\ndescribe(\"<ExportZip/>\", () => {\r\n\tit(\"should show file count after success publish\", async () => {\r\n\t\tconst wrapper = mount(\r\n\t\t\t<DefaultExportZip\r\n\t\t\t\t{...{\r\n\t\t\t\t\t...(DefaultExportZip.args as ExportProps),\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\twrapper.find(\".export-method-button button\").simulate(\"click\");\r\n\r\n\t\tawait waitTick();\r\n\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(\".last-export-time\").length, \"Export success message container\").to.equal(1);\r\n\r\n\t\twrapper.unmount();\r\n\t});\r\n\tit(\"should error after failed publish\", async () => {\r\n\t\tconst wrapper = mount(\r\n\t\t\t<ErrorExportZip\r\n\t\t\t\t{...{\r\n\t\t\t\t\t...(ErrorExportZip.args as ExportProps),\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\twrapper.find(\".export-method-button button\").simulate(\"click\");\r\n\r\n\t\tawait waitTick();\r\n\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(\".last-export-error\").length, \"Export error message container\").to.equal(1);\r\n\r\n\t\twrapper.unmount();\r\n\t});\r\n});\r\n"]}
|
|
@@ -6,13 +6,13 @@ import { DefaultNavigation } from "../stories/Navigation.stories";
|
|
|
6
6
|
const NAV_ITEM = ".nav-item";
|
|
7
7
|
describe("<Navigation/>", () => {
|
|
8
8
|
it("should have first tab selected by default", async () => {
|
|
9
|
-
const wrapper = mount(React.createElement(DefaultNavigation, {
|
|
9
|
+
const wrapper = mount(React.createElement(DefaultNavigation, Object.assign({}, Object.assign({}, DefaultNavigation.args))));
|
|
10
10
|
wrapper.find(NAV_ITEM).forEach((item, index) => {
|
|
11
11
|
expect(item.hasClass("active"), "Has active class").to.equal(index === 0);
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
it("should change to selected tab", async () => {
|
|
15
|
-
const wrapper = mount(React.createElement(DefaultNavigation, {
|
|
15
|
+
const wrapper = mount(React.createElement(DefaultNavigation, Object.assign({}, Object.assign({}, DefaultNavigation.args))));
|
|
16
16
|
const navItems = wrapper.find(NAV_ITEM);
|
|
17
17
|
navItems.forEach((navItem, clickedIndex) => {
|
|
18
18
|
navItem.simulate("click");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Navigation.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,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AC,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\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { NavigationProps } from \"../Navigation\";\r\nimport { DefaultNavigation } from \"../stories/Navigation.stories\";\r\n\r\nconst NAV_ITEM = \".nav-item\";\r\n\r\ndescribe(\"<Navigation/>\", () => {\r\n\tit(\"should have first tab selected by default\", async () => {\r\n\t\tconst wrapper = mount(<DefaultNavigation {...{ ...(DefaultNavigation.args as NavigationProps) }} />);\r\n\r\n\t\twrapper.find(NAV_ITEM).forEach((item, index) => {\r\n\t\t\texpect(item.hasClass(\"active\"), \"Has active class\").to.equal(index === 0);\r\n\t\t});\r\n\t});\r\n\r\n\tit(\"should change to selected tab\", async () => {\r\n\t\tconst wrapper = mount(<DefaultNavigation {...{ ...(DefaultNavigation.args as NavigationProps) }} />);\r\n\r\n\t\tconst navItems = wrapper.find(NAV_ITEM);\r\n\r\n\t\tnavItems.forEach((navItem, clickedIndex) => {\r\n\t\t\tnavItem.simulate(\"click\");\r\n\r\n\t\t\tnavItem.forEach((item, index) => {\r\n\t\t\t\texpect(item.hasClass(\"active\"), \"Has active class\").to.equal(index === clickedIndex);\r\n\t\t\t});\r\n\t\t});\r\n\t});\r\n});\r\n"]}
|
|
@@ -5,14 +5,14 @@ import { expect } from "chai";
|
|
|
5
5
|
import { DefaultSDD } from "../stories/SmartDesktopDesigner.stories";
|
|
6
6
|
import { waitTick } from "../sdd_helpers";
|
|
7
7
|
import { ACTIVE_TAB_APP_LIST_TABLE_ROW } from "./Applications.spec";
|
|
8
|
-
const PROJECT_NAME_INPUT = "#project-name", PROJECT_NAME_WARNING = ".project-name-error-icon", APPLICATIONS_TAB = "#applications-nav-link", MENUS_TAB = '[aria-controls="tabpanel-1"]', ADD_MENU_BUTTON = "[data-label='Menus'] .button-container-primary.icon-before-add button", SAVE_MENU_BUTTON = ".app-edit-actions .button-container-secondary button", EMPTY_MENU_NAV_WARNING = "#applications-nav-link .nav-error-icon",
|
|
8
|
+
const PROJECT_NAME_INPUT = "#project-name", PROJECT_NAME_WARNING = ".project-name-error-icon", APPLICATIONS_TAB = "#applications-nav-link", MENUS_TAB = '[aria-controls="tabpanel-1"]', ADD_MENU_BUTTON = "[data-label='Menus'] .button-container-primary.icon-before-add button", SAVE_MENU_BUTTON = ".app-edit-actions .button-container-secondary button", EMPTY_MENU_NAV_WARNING = "#applications-nav-link .nav-error-icon", PUBLISH_TAB = "#export-nav-link", PROJECT_ERROR = ".project-errors-container .project-error";
|
|
9
9
|
const doClick = (element, name) => {
|
|
10
10
|
expect(element.length, name).to.be.greaterThan(0);
|
|
11
11
|
element.simulate("click");
|
|
12
12
|
};
|
|
13
13
|
describe("<ProjectErrors/>", () => {
|
|
14
14
|
it("should show project errors for invalid SDD sections", async () => {
|
|
15
|
-
const wrapper = mount(React.createElement(DefaultSDD, {
|
|
15
|
+
const wrapper = mount(React.createElement(DefaultSDD, Object.assign({}, DefaultSDD.args)));
|
|
16
16
|
await waitTick();
|
|
17
17
|
wrapper.update();
|
|
18
18
|
const projectName = wrapper.find(PROJECT_NAME_INPUT).at(0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectErrors.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ProjectErrors.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAgB,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectErrors.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ProjectErrors.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAgB,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpE,MAAM,kBAAkB,GAAG,eAAe,EACzC,oBAAoB,GAAG,0BAA0B,EACjD,gBAAgB,GAAG,wBAAwB,EAC3C,SAAS,GAAG,8BAA8B,EAC1C,eAAe,GAAG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,CAAC;QACjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1F,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACtF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount, ReactWrapper } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { DefaultSDD } from \"../stories/SmartDesktopDesigner.stories\";\r\nimport { waitTick } from \"../sdd_helpers\";\r\nimport { SmartDesktopDesignerProps } from \"../SmartDesktopDesigner\";\r\nimport { ACTIVE_TAB_APP_LIST_TABLE_ROW } from \"./Applications.spec\";\r\n\r\nconst PROJECT_NAME_INPUT = \"#project-name\",\r\n\tPROJECT_NAME_WARNING = \".project-name-error-icon\",\r\n\tAPPLICATIONS_TAB = \"#applications-nav-link\",\r\n\tMENUS_TAB = '[aria-controls=\"tabpanel-1\"]',\r\n\tADD_MENU_BUTTON = \"[data-label='Menus'] .button-container-primary.icon-before-add button\",\r\n\tSAVE_MENU_BUTTON = \".app-edit-actions .button-container-secondary button\",\r\n\tEMPTY_MENU_NAV_WARNING = \"#applications-nav-link .nav-error-icon\",\r\n\tPUBLISH_TAB = \"#export-nav-link\",\r\n\tPROJECT_ERROR = \".project-errors-container .project-error\";\r\n\r\nconst doClick = (element: ReactWrapper, name: string) => {\r\n\texpect(element.length, name).to.be.greaterThan(0);\r\n\r\n\telement.simulate(\"click\");\r\n};\r\n\r\ndescribe(\"<ProjectErrors/>\", () => {\r\n\tit(\"should show project errors for invalid SDD sections\", async () => {\r\n\t\tconst wrapper = mount(<DefaultSDD {...(DefaultSDD.args as SmartDesktopDesignerProps)} />);\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\tconst projectName = wrapper.find(PROJECT_NAME_INPUT).at(0);\r\n\r\n\t\tprojectName.simulate(\"focus\");\r\n\t\tprojectName.simulate(\"input\", { target: { value: \"~!invalid/name\" } });\r\n\t\tprojectName.simulate(\"blur\");\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\tdoClick(wrapper.find(APPLICATIONS_TAB).at(0), \"APPLICATIONS_TAB\");\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\tdoClick(wrapper.find(MENUS_TAB).at(0), \"MENUS_TAB\");\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\tdoClick(wrapper.find(ADD_MENU_BUTTON).at(0), \"ADD_MENU_BUTTON\");\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\t// Set name as \"Charts\"\r\n\t\twrapper\r\n\t\t\t.find(\"#menu-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"Charts\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\t// Click Save\r\n\t\twrapper.find(SAVE_MENU_BUTTON).at(0).simulate(\"click\");\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Menu list shows 1 empty menu\").to.be.equal(1);\r\n\r\n\t\texpect(wrapper.find(EMPTY_MENU_NAV_WARNING).length, \"Empty Menu Nav Warning\").to.equal(0);\r\n\t\texpect(wrapper.find(PROJECT_NAME_WARNING).length, \"Project Name Warning\").to.equal(0);\r\n\r\n\t\twrapper.find(PUBLISH_TAB).at(0).simulate(\"click\");\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(EMPTY_MENU_NAV_WARNING).length, \"Empty Menu Nav Warning\").to.equal(1);\r\n\t\texpect(wrapper.find(PROJECT_NAME_WARNING).length, \"Project Name Warning\").to.equal(1);\r\n\t\texpect(wrapper.find(PROJECT_ERROR).length, \"Project Errors\").to.equal(2);\r\n\t});\r\n});\r\n"]}
|
|
@@ -7,7 +7,7 @@ import { DefaultProjectHeader } from "../stories/ProjectHeader.stories";
|
|
|
7
7
|
describe("<ProjectHeader/>", () => {
|
|
8
8
|
it("should allow saving valid name", () => {
|
|
9
9
|
const onSaveProjectName = sinon.spy();
|
|
10
|
-
const wrapper = mount(React.createElement(DefaultProjectHeader, {
|
|
10
|
+
const wrapper = mount(React.createElement(DefaultProjectHeader, Object.assign({}, DefaultProjectHeader.args, { projectName: "", onSaveProjectName })));
|
|
11
11
|
const input = wrapper.find("input");
|
|
12
12
|
input.simulate("focus");
|
|
13
13
|
input.simulate("input", { target: { value: "New Name 123" } });
|
|
@@ -16,7 +16,7 @@ describe("<ProjectHeader/>", () => {
|
|
|
16
16
|
});
|
|
17
17
|
it("should not allow saving invalid", () => {
|
|
18
18
|
const onSaveProjectName = sinon.spy();
|
|
19
|
-
const wrapper = mount(React.createElement(DefaultProjectHeader, {
|
|
19
|
+
const wrapper = mount(React.createElement(DefaultProjectHeader, Object.assign({}, DefaultProjectHeader.args, { projectName: "", onSaveProjectName })));
|
|
20
20
|
const input = wrapper.find("input");
|
|
21
21
|
input.simulate("focus");
|
|
22
22
|
input.simulate("input", { target: { value: " (Inv@l!d- Project)[] 123" } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectHeader.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ProjectHeader.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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAGxE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACzC,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QACtC,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ProjectHeader.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ProjectHeader.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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAGxE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACzC,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QACtC,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,oBAAoB,oBACf,oBAAoB,CAAC,IAA2B,EACjD,EAAE,WAAW,EAAE,EAAE,EAAE,iBAAiB,EAAE,EACzC,CACF,CAAC;QAEF,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEpC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACxB,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;QAC/D,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAEvB,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC7C,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QAC1C,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QACtC,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,oBAAoB,oBACf,oBAAoB,CAAC,IAA2B,EACjD,EAAE,WAAW,EAAE,EAAE,EAAE,iBAAiB,EAAE,EACzC,CACF,CAAC;QAEF,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEpC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACxB,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE,EAAE,CAAC,CAAC;QAC5E,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAEvB,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC9C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { DefaultProjectHeader } from \"../stories/ProjectHeader.stories\";\r\nimport { ProjectHeaderProps } from \"../ProjectHeader\";\r\n\r\ndescribe(\"<ProjectHeader/>\", () => {\r\n\tit(\"should allow saving valid name\", () => {\r\n\t\tconst onSaveProjectName = sinon.spy();\r\n\t\tconst wrapper = mount(\r\n\t\t\t<DefaultProjectHeader\r\n\t\t\t\t{...(DefaultProjectHeader.args as ProjectHeaderProps)}\r\n\t\t\t\t{...{ projectName: \"\", onSaveProjectName }}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\tconst input = wrapper.find(\"input\");\r\n\r\n\t\tinput.simulate(\"focus\");\r\n\t\tinput.simulate(\"input\", { target: { value: \"New Name 123\" } });\r\n\t\tinput.simulate(\"blur\");\r\n\r\n\t\texpect(onSaveProjectName.called).to.be.true;\r\n\t});\r\n\tit(\"should not allow saving invalid\", () => {\r\n\t\tconst onSaveProjectName = sinon.spy();\r\n\t\tconst wrapper = mount(\r\n\t\t\t<DefaultProjectHeader\r\n\t\t\t\t{...(DefaultProjectHeader.args as ProjectHeaderProps)}\r\n\t\t\t\t{...{ projectName: \"\", onSaveProjectName }}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\tconst input = wrapper.find(\"input\");\r\n\r\n\t\tinput.simulate(\"focus\");\r\n\t\tinput.simulate(\"input\", { target: { value: \" (Inv@l!d- Project)[] 123\" } });\r\n\t\tinput.simulate(\"blur\");\r\n\r\n\t\texpect(onSaveProjectName.called).to.be.false;\r\n\t});\r\n});\r\n"]}
|
|
@@ -8,10 +8,7 @@ import { waitTick } from "../sdd_helpers";
|
|
|
8
8
|
import { accessibilityAssessor } from "./a11y_helper";
|
|
9
9
|
describe("<Publish/>", () => {
|
|
10
10
|
it("should show progress bar", async () => {
|
|
11
|
-
const wrapper = mount(React.createElement(DefaultPublish, {
|
|
12
|
-
...DefaultPublish.args,
|
|
13
|
-
progressCheckInterval: 1,
|
|
14
|
-
} }));
|
|
11
|
+
const wrapper = mount(React.createElement(DefaultPublish, Object.assign({}, Object.assign(Object.assign({}, DefaultPublish.args), { progressCheckInterval: 1 }))));
|
|
15
12
|
await waitTick();
|
|
16
13
|
wrapper.update();
|
|
17
14
|
expect(wrapper.find(".publish-progress-indicator").length).to.equal(1);
|
|
@@ -19,12 +16,8 @@ describe("<Publish/>", () => {
|
|
|
19
16
|
wrapper.unmount();
|
|
20
17
|
});
|
|
21
18
|
it("should show error message and allow retry", async () => {
|
|
22
|
-
const publishToCosaicCloud = sinon.spy(() => Error1Publish.args
|
|
23
|
-
const wrapper = mount(React.createElement(Error1Publish, {
|
|
24
|
-
...Error1Publish.args,
|
|
25
|
-
...{ publishToCosaicCloud },
|
|
26
|
-
progressCheckInterval: 1,
|
|
27
|
-
} }));
|
|
19
|
+
const publishToCosaicCloud = sinon.spy(() => { var _a; return (_a = Error1Publish.args) === null || _a === void 0 ? void 0 : _a.publishToCosaicCloud(); });
|
|
20
|
+
const wrapper = mount(React.createElement(Error1Publish, Object.assign({}, Object.assign(Object.assign(Object.assign({}, Error1Publish.args), { publishToCosaicCloud }), { progressCheckInterval: 1 }))));
|
|
28
21
|
await waitTick();
|
|
29
22
|
wrapper.update();
|
|
30
23
|
expect(wrapper.find(".publish-progress-pending").length).to.equal(0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Publish.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Publish.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,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe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AAC,CAAC,CAAC;IACH,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;QAC1D,MAAM,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,WAAC,OAAA,MAAA,aAAa,CAAC,IAAI,0CAAE,oBAAoB,EAAG,CAAA,EAAA,CAAC,CAAC;QAE1F,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,aAAa,kEAER,aAAa,CAAC,IAAqB,GAEnC,EAAE,oBAAoB,EAAmB,KAC7C,qBAAqB,EAAE,CAAC,KAExB,CACF,CAAC;QAEF,MAAM,QAAQ,EAAE,CAAC;QACjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACrE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzE,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAE/C,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,EAAE,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAE9E,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { DefaultPublish, Error1Publish } from \"../stories/Publish.stories\";\r\nimport { PublishProps } from \"../Publish\";\r\nimport sinon from \"sinon\";\r\nimport { waitTick } from \"../sdd_helpers\";\r\nimport { accessibilityAssessor } from \"./a11y_helper\";\r\n\r\ndescribe(\"<Publish/>\", () => {\r\n\tit(\"should show progress bar\", async () => {\r\n\t\tconst wrapper = mount(\r\n\t\t\t<DefaultPublish\r\n\t\t\t\t{...{\r\n\t\t\t\t\t...(DefaultPublish.args as PublishProps),\r\n\t\t\t\t\tprogressCheckInterval: 1,\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(\".publish-progress-indicator\").length).to.equal(1);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper), \"Accessibility scan\").to.be.true;\r\n\r\n\t\twrapper.unmount();\r\n\t});\r\n\tit(\"should show error message and allow retry\", async () => {\r\n\t\tconst publishToCosaicCloud = sinon.spy(() => Error1Publish.args?.publishToCosaicCloud!());\r\n\r\n\t\tconst wrapper = mount(\r\n\t\t\t<Error1Publish\r\n\t\t\t\t{...{\r\n\t\t\t\t\t...(Error1Publish.args as PublishProps),\r\n\t\t\t\t\t// @ts-ignore - sinon.spy() has different type signature than publishToCosaicCloud()\r\n\t\t\t\t\t...({ publishToCosaicCloud } as PublishProps),\r\n\t\t\t\t\tprogressCheckInterval: 1,\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(\".publish-progress-pending\").length).to.equal(0);\r\n\t\texpect(wrapper.find(\".export-publish-error\").length).to.equal(1);\r\n\t\texpect(wrapper.find(\".export-publish-error-message\").length).to.equal(1);\r\n\t\texpect(publishToCosaicCloud.called).to.be.true;\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper), \"Accessibility scan\").to.be.true;\r\n\r\n\t\twrapper.unmount();\r\n\t});\r\n});\r\n"]}
|
|
@@ -6,15 +6,11 @@ import { HalfPublishProgress } from "../stories/PublishProgress.stories";
|
|
|
6
6
|
import { accessibilityAssessor } from "./a11y_helper";
|
|
7
7
|
describe("<PublishProgress/>", () => {
|
|
8
8
|
it("should pass accessibility scans (Page)", async () => {
|
|
9
|
-
const wrapper = mount(React.createElement(HalfPublishProgress, {
|
|
10
|
-
...HalfPublishProgress.args,
|
|
11
|
-
} }));
|
|
9
|
+
const wrapper = mount(React.createElement(HalfPublishProgress, Object.assign({}, Object.assign({}, HalfPublishProgress.args))));
|
|
12
10
|
expect(await accessibilityAssessor(wrapper)).to.be.true;
|
|
13
11
|
});
|
|
14
12
|
it("should show progress bar", () => {
|
|
15
|
-
const wrapper = mount(React.createElement(HalfPublishProgress, {
|
|
16
|
-
...HalfPublishProgress.args,
|
|
17
|
-
} }));
|
|
13
|
+
const wrapper = mount(React.createElement(HalfPublishProgress, Object.assign({}, Object.assign({}, HalfPublishProgress.args))));
|
|
18
14
|
expect(wrapper.find(".publish-progress-indicator").length).to.equal(1);
|
|
19
15
|
});
|
|
20
16
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishProgess.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/PublishProgess.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,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"PublishProgess.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/PublishProgess.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,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,mBAAmB,sCAEd,mBAAmB,CAAC,IAA6B,GAErD,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,0BAA0B,EAAE,GAAG,EAAE;QACnC,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,mBAAmB,sCAEd,mBAAmB,CAAC,IAA6B,GAErD,CACF,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { HalfPublishProgress } from \"../stories/PublishProgress.stories\";\r\nimport { PublishProgressProps } from \"../PublishProgress\";\r\nimport { accessibilityAssessor } from \"./a11y_helper\";\r\n\r\ndescribe(\"<PublishProgress/>\", () => {\r\n\tit(\"should pass accessibility scans (Page)\", async () => {\r\n\t\tconst wrapper = mount(\r\n\t\t\t<HalfPublishProgress\r\n\t\t\t\t{...{\r\n\t\t\t\t\t...(HalfPublishProgress.args as PublishProgressProps),\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\tit(\"should show progress bar\", () => {\r\n\t\tconst wrapper = mount(\r\n\t\t\t<HalfPublishProgress\r\n\t\t\t\t{...{\r\n\t\t\t\t\t...(HalfPublishProgress.args as PublishProgressProps),\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\t\texpect(wrapper.find(\".publish-progress-indicator\").length).to.equal(1);\r\n\t});\r\n});\r\n"]}
|
|
@@ -7,7 +7,7 @@ import { waitTick } from "../sdd_helpers";
|
|
|
7
7
|
import { accessibilityAssessor } from "./a11y_helper";
|
|
8
8
|
describe("<SmartDesktopDesigner/>", () => {
|
|
9
9
|
it("should pass accessibility scans (Page)", async () => {
|
|
10
|
-
const wrapper = mount(React.createElement(DefaultSDD, {
|
|
10
|
+
const wrapper = mount(React.createElement(DefaultSDD, Object.assign({}, DefaultSDD.args)));
|
|
11
11
|
expect(await accessibilityAssessor(wrapper)).to.be.true;
|
|
12
12
|
});
|
|
13
13
|
[
|
|
@@ -53,7 +53,7 @@ describe("<SmartDesktopDesigner/>", () => {
|
|
|
53
53
|
},
|
|
54
54
|
].forEach((target) => {
|
|
55
55
|
it(`should navigate to ${target.nav.title} from left navigation`, async () => {
|
|
56
|
-
const wrapper = mount(React.createElement(DefaultSDD, {
|
|
56
|
+
const wrapper = mount(React.createElement(DefaultSDD, Object.assign({}, DefaultSDD.args)));
|
|
57
57
|
await waitTick();
|
|
58
58
|
wrapper.update();
|
|
59
59
|
expect(wrapper.find(".nav-item.active #getting-started-nav-link").length, "Currently on Getting Started").to.equal(1);
|
|
@@ -65,7 +65,7 @@ describe("<SmartDesktopDesigner/>", () => {
|
|
|
65
65
|
});
|
|
66
66
|
if (target.ql) {
|
|
67
67
|
it(`should navigate to ${target.ql.title} from quicklinks on GettingStarted`, async () => {
|
|
68
|
-
const wrapper = mount(React.createElement(DefaultSDD, {
|
|
68
|
+
const wrapper = mount(React.createElement(DefaultSDD, Object.assign({}, DefaultSDD.args)));
|
|
69
69
|
await waitTick();
|
|
70
70
|
wrapper.update();
|
|
71
71
|
expect(wrapper.find(".nav-item.active #getting-started-nav-link").length, "Currently on Getting Started").to.equal(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartDesktopDesigner.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/SmartDesktopDesigner.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,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"SmartDesktopDesigner.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,E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K,IAAI,EAAE;gBACxF,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAAkC,EAAI,CAAC,CAAC;gBAE1F,MAAM,QAAQ,EAAE,CAAC;gBACjB,OAAO,CAAC,MAAM,EAAE,CAAC;gBAEjB,MAAM,CACL,OAAO,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC,MAAM,EACjE,8BAA8B,CAC9B,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAEd,OAAO,CAAC,IAAI,CAAC,+BAA+B,MAAM,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;gBAE3F,MAAM,QAAQ,EAAE,CAAC;gBACjB,OAAO,CAAC,MAAM,EAAE,CAAC;gBAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAC5G,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,kBAAkB,MAAM,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,QAAQ,CACxG,MAAM,CAAC,EAAE,CAAC,KAAK,CACf,CAAC;YACH,CAAC,CAAC,CAAC;SACH;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { DefaultSDD } from \"../stories/SmartDesktopDesigner.stories\";\r\nimport { waitTick } from \"../sdd_helpers\";\r\nimport { SmartDesktopDesignerProps } from \"../SmartDesktopDesigner\";\r\nimport { accessibilityAssessor } from \"./a11y_helper\";\r\n\r\ndescribe(\"<SmartDesktopDesigner/>\", () => {\r\n\tit(\"should pass accessibility scans (Page)\", async () => {\r\n\t\tconst wrapper = mount(<DefaultSDD {...(DefaultSDD.args as SmartDesktopDesignerProps)} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\r\n\t[\r\n\t\t{\r\n\t\t\tnav: {\r\n\t\t\t\tid: \"applications-nav-link\",\r\n\t\t\t\ttitle: \"Apps\",\r\n\t\t\t},\r\n\t\t\tql: {\r\n\t\t\t\tid: \"application\",\r\n\t\t\t\ttitle: \"Add an app\",\r\n\t\t\t},\r\n\t\t},\r\n\t\t{\r\n\t\t\tnav: {\r\n\t\t\t\tid: \"themes-nav-link\",\r\n\t\t\t\ttitle: \"Themes\",\r\n\t\t\t},\r\n\t\t\tql: {\r\n\t\t\t\tid: \"theme\",\r\n\t\t\t\ttitle: \"Themes\",\r\n\t\t\t},\r\n\t\t},\r\n\t\t{\r\n\t\t\tnav: {\r\n\t\t\t\tid: \"authentication-nav-link\",\r\n\t\t\t\ttitle: \"Authentication\",\r\n\t\t\t},\r\n\t\t\tql: {\r\n\t\t\t\tid: \"authentication\",\r\n\t\t\t\ttitle: \"Authentication\",\r\n\t\t\t},\r\n\t\t},\r\n\t\t{\r\n\t\t\tnav: {\r\n\t\t\t\tid: \"export-nav-link\",\r\n\t\t\t\ttitle: \"Publish\",\r\n\t\t\t},\r\n\t\t\tql: {\r\n\t\t\t\tid: \"publish\",\r\n\t\t\t\ttitle: \"Publish\",\r\n\t\t\t},\r\n\t\t},\r\n\t].forEach((target) => {\r\n\t\tit(`should navigate to ${target.nav.title} from left navigation`, async () => {\r\n\t\t\tconst wrapper = mount(<DefaultSDD {...(DefaultSDD.args as SmartDesktopDesignerProps)} />);\r\n\r\n\t\t\tawait waitTick();\r\n\t\t\twrapper.update();\r\n\r\n\t\t\texpect(\r\n\t\t\t\twrapper.find(\".nav-item.active #getting-started-nav-link\").length,\r\n\t\t\t\t\"Currently on Getting Started\"\r\n\t\t\t).to.equal(1);\r\n\r\n\t\t\twrapper.find(`.nav-item #${target.nav.id}`).at(0).simulate(\"click\");\r\n\r\n\t\t\tawait waitTick();\r\n\t\t\twrapper.update();\r\n\r\n\t\t\texpect(wrapper.find(`.nav-item.active #${target.nav.id}`).length, `${target.nav.id} is active`).to.equal(1);\r\n\t\t\texpect(wrapper.find(\".view-title .leftSide\").at(0).text(), `page title is \"${target.nav.title}\"`).contains(\r\n\t\t\t\ttarget.nav.title\r\n\t\t\t);\r\n\t\t});\r\n\r\n\t\tif (target.ql) {\r\n\t\t\tit(`should navigate to ${target.ql.title} from quicklinks on GettingStarted`, async () => {\r\n\t\t\t\tconst wrapper = mount(<DefaultSDD {...(DefaultSDD.args as SmartDesktopDesignerProps)} />);\r\n\r\n\t\t\t\tawait waitTick();\r\n\t\t\t\twrapper.update();\r\n\r\n\t\t\t\texpect(\r\n\t\t\t\t\twrapper.find(\".nav-item.active #getting-started-nav-link\").length,\r\n\t\t\t\t\t\"Currently on Getting Started\"\r\n\t\t\t\t).to.equal(1);\r\n\r\n\t\t\t\twrapper.find(`.button-container-tile.icon-${target.ql.id} button`).at(0).simulate(\"click\");\r\n\r\n\t\t\t\tawait waitTick();\r\n\t\t\t\twrapper.update();\r\n\r\n\t\t\t\texpect(wrapper.find(`.nav-item.active #${target.nav.id}`).length, `${target.nav.id} is active`).to.equal(1);\r\n\t\t\t\texpect(wrapper.find(\".view-title .leftSide\").at(0).text(), `page title is \"${target.ql.title}\"`).contains(\r\n\t\t\t\t\ttarget.ql.title\r\n\t\t\t\t);\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n});\r\n"]}
|
|
@@ -10,40 +10,40 @@ describe("<Themes/>", () => {
|
|
|
10
10
|
sinon.restore();
|
|
11
11
|
});
|
|
12
12
|
it.skip("should pass accessibility scans", async () => {
|
|
13
|
-
const wrapper = mount(React.createElement(Page, {
|
|
13
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
14
14
|
expect(await accessibilityAssessor(wrapper)).to.be.true;
|
|
15
15
|
}).timeout(5000);
|
|
16
16
|
it("should change tab panels with the tab 'Images' is chosen", () => {
|
|
17
|
-
const wrapper = mount(React.createElement(Page, {
|
|
17
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
18
18
|
wrapper.find("[role='tab']").at(1).simulate("click");
|
|
19
19
|
expect(wrapper.find(".visible .images-section").exists()).to.be.true;
|
|
20
20
|
expect(wrapper.find(".visible .theme-settings").exists()).to.be.false;
|
|
21
21
|
});
|
|
22
22
|
it("should change tab panels with the tab 'Themes' is chosen", () => {
|
|
23
|
-
const wrapper = mount(React.createElement(Page, {
|
|
23
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
24
24
|
wrapper.find("[role='tab']").at(0).simulate("click");
|
|
25
25
|
expect(wrapper.find(".visible .images-section").exists()).to.be.false;
|
|
26
26
|
expect(wrapper.find(".visible .theme-settings").exists()).to.be.true;
|
|
27
27
|
});
|
|
28
28
|
it("should launch an Are You Sure dialog when the Dark Theme button is clicked", () => {
|
|
29
29
|
const buttonSpy = sinon.spy(Page.args, "areYouSure");
|
|
30
|
-
const wrapper = mount(React.createElement(Page, {
|
|
30
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
31
31
|
wrapper.find(".template-row button").at(0).simulate("click");
|
|
32
32
|
expect(buttonSpy.calledOnce).to.be.true;
|
|
33
33
|
});
|
|
34
34
|
it("should launch an Are You Sure dialog when the Light Theme button is clicked", () => {
|
|
35
35
|
const buttonSpy = sinon.spy(Page.args, "areYouSure");
|
|
36
|
-
const wrapper = mount(React.createElement(Page, {
|
|
36
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
37
37
|
wrapper.find(".template-row button").at(1).simulate("click");
|
|
38
38
|
expect(buttonSpy.calledOnce).to.be.true;
|
|
39
39
|
});
|
|
40
40
|
it("should change the color values when the Light Theme is chosen", () => {
|
|
41
|
-
const wrapper = mount(React.createElement(Page, {
|
|
41
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
42
42
|
wrapper.find(".template-row button").at(1).simulate("click");
|
|
43
43
|
expect(wrapper.find("[type='color']").first().prop("value")).to.equal("#2C2C2C");
|
|
44
44
|
});
|
|
45
45
|
it("should change the color values when the Dark Theme is chosen", () => {
|
|
46
|
-
const wrapper = mount(React.createElement(Page, {
|
|
46
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
47
47
|
wrapper.find(".template-row button").at(1).simulate("click");
|
|
48
48
|
wrapper.find(".template-row button").at(0).simulate("click");
|
|
49
49
|
expect(wrapper.find("[type='color']").first().prop("value")).to.equal("#ffffff");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Themes.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Themes.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IAC1B,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,IAAI,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QACrD,MAAM,O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,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAClF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { afterEach, describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { ThemeProps } from \"../Themes\";\r\nimport { Page } from \"../stories/Themes.stories\";\r\nimport { accessibilityAssessor } from \"./a11y_helper\";\r\n\r\ndescribe(\"<Themes/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\tit.skip(\"should pass accessibility scans\", async () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t}).timeout(5000); // This scan is very heavy (4s)\r\n\r\n\tit(\"should change tab panels with the tab 'Images' is chosen\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\r\n\t\twrapper.find(\"[role='tab']\").at(1).simulate(\"click\");\r\n\t\texpect(wrapper.find(\".visible .images-section\").exists()).to.be.true;\r\n\t\texpect(wrapper.find(\".visible .theme-settings\").exists()).to.be.false;\r\n\t});\r\n\tit(\"should change tab panels with the tab 'Themes' is chosen\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\r\n\t\twrapper.find(\"[role='tab']\").at(0).simulate(\"click\");\r\n\t\texpect(wrapper.find(\".visible .images-section\").exists()).to.be.false;\r\n\t\texpect(wrapper.find(\".visible .theme-settings\").exists()).to.be.true;\r\n\t});\r\n\tit(\"should launch an Are You Sure dialog when the Dark Theme button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as ThemeProps, \"areYouSure\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\r\n\t\twrapper.find(\".template-row button\").at(0).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should launch an Are You Sure dialog when the Light Theme button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as ThemeProps, \"areYouSure\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\r\n\t\twrapper.find(\".template-row button\").at(1).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should change the color values when the Light Theme is chosen\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\r\n\t\twrapper.find(\".template-row button\").at(1).simulate(\"click\");\r\n\t\texpect(wrapper.find(\"[type='color']\").first().prop(\"value\")).to.equal(\"#2C2C2C\");\r\n\t});\r\n\tit(\"should change the color values when the Dark Theme is chosen\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\r\n\t\twrapper.find(\".template-row button\").at(1).simulate(\"click\");\r\n\t\twrapper.find(\".template-row button\").at(0).simulate(\"click\");\r\n\t\texpect(wrapper.find(\"[type='color']\").first().prop(\"value\")).to.equal(\"#ffffff\");\r\n\t});\r\n});\r\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import axe from "axe-core";
|
|
2
2
|
export const accessibilityAssessor = async (wrapper) => {
|
|
3
|
+
var _a;
|
|
3
4
|
const id = "axeTestContainer";
|
|
4
5
|
document.body.insertAdjacentHTML("beforeend", `<div id="${id}">${wrapper.html()}</div>`);
|
|
5
6
|
const element = document.getElementById(id);
|
|
@@ -11,7 +12,7 @@ export const accessibilityAssessor = async (wrapper) => {
|
|
|
11
12
|
runOnly: ["wcag2a", "wcag2aa"],
|
|
12
13
|
};
|
|
13
14
|
const results = await axe.run(element, options);
|
|
14
|
-
element.parentElement
|
|
15
|
+
(_a = element.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(element);
|
|
15
16
|
if (results.violations.length === 0) {
|
|
16
17
|
return true;
|
|
17
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y_helper.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/a11y_helper.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAG3B,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EAAE,OAAqB,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"a11y_helper.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/a11y_helper.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAG3B,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EAAE,OAAqB,EAAE,EAAE;;IACpE,MAAM,EAAE,GAAG,kBAAkB,CAAC;IAI9B,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACzF,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC5C,IAAI,OAAO,KAAK,IAAI,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtC,OAAO,KAAK,CAAC;KACb;IAGD,MAAM,OAAO,GAAG;QACf,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;KAC9B,CAAC;IAGF,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,OAAsB,EAAE,OAAO,CAAC,CAAC;IAG/D,MAAA,OAAO,CAAC,aAAa,0CAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAG5C,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QACpC,OAAO,IAAI,CAAC;KACZ;IAGD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAEhC,OAAO,CAAC,GAAG,CAAC;GACV,OAAO,CAAC,UAAU,CAAC,GAAG,CACvB,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,SAAS,CAAC,IAAI;EAClD,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;CACpD,CACC,EAAE,CAAC,CAAC;IAGL,OAAO,KAAK,CAAC;AACd,CAAC,CAAC","sourcesContent":["import axe from \"axe-core\";\r\nimport { ReactWrapper } from \"enzyme\";\r\n\r\nexport const accessibilityAssessor = async (wrapper: ReactWrapper) => {\r\n\tconst id = \"axeTestContainer\";\r\n\r\n\t// Axe needs a DOM object\r\n\t// Create a DOM based on the ReactWrapper\r\n\tdocument.body.insertAdjacentHTML(\"beforeend\", `<div id=\"${id}\">${wrapper.html()}</div>`);\r\n\tconst element = document.getElementById(id);\r\n\tif (element === null) {\r\n\t\tconsole.log(\"Couldn't parse wrapper\");\r\n\t\treturn false;\r\n\t}\r\n\r\n\t// Only run WCAG 2.0 A and AA rules\r\n\tconst options = {\r\n\t\trunOnly: [\"wcag2a\", \"wcag2aa\"],\r\n\t};\r\n\r\n\t// Run the scan\r\n\tconst results = await axe.run(element as HTMLElement, options);\r\n\r\n\t// Tear down the created DOM\r\n\telement.parentElement?.removeChild(element);\r\n\r\n\t// If there are no violations, so this scan passes\r\n\tif (results.violations.length === 0) {\r\n\t\treturn true;\r\n\t}\r\n\r\n\t// If there are violations, print them out in a human-readable way\r\n\tconsole.log(results.violations);\r\n\r\n\tconsole.log(`Violations: \r\n\t${results.violations.map(\r\n\t\t(violation, key) => `#${key + 1}. ${violation.help}\r\n${violation.nodes.map((node) => node.html).join(\"\\n\")}\r\n`\r\n\t)}`);\r\n\r\n\t// There were violations, so this scan didn't pass\r\n\treturn false;\r\n};\r\n"]}
|
|
@@ -5,7 +5,7 @@ import { expect } from "chai";
|
|
|
5
5
|
import { Basic } from "./System.stories";
|
|
6
6
|
describe("System Tray menu", () => {
|
|
7
7
|
it("should display menu items text as expected", () => {
|
|
8
|
-
const wrapper = mount(React.createElement(Basic, {
|
|
8
|
+
const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
|
|
9
9
|
const menuItems = wrapper.find(".menu-item").map((elem) => elem.text());
|
|
10
10
|
expect(menuItems, "Mocked up System file menu contains the expected items in the expected order").to.deep.equal([
|
|
11
11
|
"Preferences",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"System.spec.js","sourceRoot":"","sources":["../../../src/components/system/System.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,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACrD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"System.spec.js","sourceRoot":"","sources":["../../../src/components/system/System.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,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACrD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,KAAK,oBAAK,KAAK,CAAC,IAAI,EAAI,CAAC,CAAC;QACjD,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACxE,MAAM,CAAC,SAAS,EAAE,8EAA8E,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;YAC/G,aAAa;YACb,YAAY;YACZ,gBAAgB;YAChB,eAAe;YACf,SAAS;YACT,OAAO;YACP,MAAM;SACN,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { Basic } from \"./System.stories\";\r\n\r\ndescribe(\"System Tray menu\", () => {\r\n\tit(\"should display menu items text as expected\", () => {\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\tconst menuItems = wrapper.find(\".menu-item\").map((elem) => elem.text());\r\n\t\texpect(menuItems, \"Mocked up System file menu contains the expected items in the expected order\").to.deep.equal([\r\n\t\t\t\"Preferences\",\r\n\t\t\t\"System Log\",\r\n\t\t\t\"Central Logger\",\r\n\t\t\t\"Documentation\",\r\n\t\t\t\"Restart\",\r\n\t\t\t\"Reset\",\r\n\t\t\t\"Quit\",\r\n\t\t]);\r\n\t});\r\n});\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemTrayComponentShell.js","sourceRoot":"","sources":["../../../src/components/system/SystemTrayComponentShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;AAS5B,MAAM,CAAC,MAAM,wBAAwB,GAA2D,CAAC,KAAK,EAAE,EAAE;IAEzG,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAGZ,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,IAAI,GAAG,GAAG,EAAE;YAEjB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"SystemTrayComponentShell.js","sourceRoot":"","sources":["../../../src/components/system/SystemTrayComponentShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;AAS5B,MAAM,CAAC,MAAM,wBAAwB,GAA2D,CAAC,KAAK,EAAE,EAAE;IAEzG,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAGZ,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,IAAI,GAAG,GAAG,EAAE;YAEjB,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;gBAAE,OAAO;YACxB,eAAe,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC,CAAC;QAEF,eAAe,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAClD,OAAO,GAAG,EAAE;YACX,eAAe,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,0CAAG,KAAK,CAAC,QAAQ,CAAI,CAAC;AAC9B,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\n\r\nconst { useEffect } = React;\r\ntype SystemTrayComponentShellProps = {};\r\n\r\n/**\r\n * This React component will automatically resize to the height of its DOM content and will hide itself when it loses focus.\r\n *\r\n * Note: Set FSBL.debug=true in order to override the window hide on blur effect, so that you can debug the window's contents.\r\n * @param {object} props\r\n */\r\nexport const SystemTrayComponentShell: React.FunctionComponent<SystemTrayComponentShellProps> = (props) => {\r\n\t// Resize window to fit the DOM height whenever the React children (window contents) change\r\n\tuseEffect(() => {\r\n\t\tFSBL.Clients.WindowClient.fitToDOM();\r\n\t}, [props]);\r\n\r\n\t// Hide window on blur.\r\n\tuseEffect(() => {\r\n\t\tconst hide = () => {\r\n\t\t\t// If FSBL.debug is set to true then bypass hide on blur effect\r\n\t\t\tif (FSBL?.debug) return;\r\n\t\t\tfinsembleWindow.hide();\r\n\t\t};\r\n\r\n\t\tfinsembleWindow.addEventListener(\"blurred\", hide);\r\n\t\treturn () => {\r\n\t\t\tfinsembleWindow.removeEventListener(\"blurred\", hide);\r\n\t\t};\r\n\t}, []);\r\n\r\n\treturn <>{props.children}</>;\r\n};\r\n"]}
|
|
@@ -11,18 +11,18 @@ describe("<MinimizeAll/>", () => {
|
|
|
11
11
|
sinon.restore();
|
|
12
12
|
});
|
|
13
13
|
it("should display icon", () => {
|
|
14
|
-
const wrapper = mount(React.createElement(Basic, {
|
|
14
|
+
const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
|
|
15
15
|
expect(wrapper.find("svg").exists()).to.be.true;
|
|
16
16
|
});
|
|
17
17
|
it("should call minimize action when clicked", () => {
|
|
18
18
|
const buttonSpy = sinon.spy(Basic.args, "action");
|
|
19
|
-
const wrapper = mount(React.createElement(Basic, {
|
|
19
|
+
const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
|
|
20
20
|
wrapper.find(".finsemble-toolbar-button").first().simulate("click");
|
|
21
21
|
expect(buttonSpy.calledOnce).to.be.true;
|
|
22
22
|
});
|
|
23
23
|
it("should call minimize action when user presses Enter", () => {
|
|
24
24
|
const buttonSpy = sinon.spy(Basic.args, "action");
|
|
25
|
-
const wrapper = mount(React.createElement(Basic, {
|
|
25
|
+
const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
|
|
26
26
|
wrapper.find(".finsemble-toolbar-button").first().simulate("keydown", {
|
|
27
27
|
key: "Enter",
|
|
28
28
|
});
|
|
@@ -30,7 +30,7 @@ describe("<MinimizeAll/>", () => {
|
|
|
30
30
|
});
|
|
31
31
|
it("should call minimize action when user presses Space", () => {
|
|
32
32
|
const buttonSpy = sinon.spy(Basic.args, "action");
|
|
33
|
-
const wrapper = mount(React.createElement(Basic, {
|
|
33
|
+
const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
|
|
34
34
|
wrapper.find(".finsemble-toolbar-button").first().simulate("keydown", {
|
|
35
35
|
key: "Space",
|
|
36
36
|
});
|
|
@@ -38,7 +38,7 @@ describe("<MinimizeAll/>", () => {
|
|
|
38
38
|
});
|
|
39
39
|
it("should not call minimize action when user presses a character other than Enter or Space", () => {
|
|
40
40
|
const buttonSpy = sinon.spy(Basic.args, "action");
|
|
41
|
-
const wrapper = mount(React.createElement(Basic, {
|
|
41
|
+
const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
|
|
42
42
|
wrapper.find(".finsemble-toolbar-button").first().simulate("keydown", {
|
|
43
43
|
key: "a",
|
|
44
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimizeAll.spec.js","sourceRoot":"","sources":["../../../src/components/toolbar/MinimizeAll.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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MA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,2BAA2B,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE;YACrE,GAAG,EAAE,OAAO;SACZ,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,yFAAyF,EAAE,GAAG,EAAE;QAClG,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAW,EAAE,QAAQ,CAAC,CAAC;QACzD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,KAAK,oBAAK,KAAK,CAAC,IAAI,EAAI,CAAC,CAAC;QACjD,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE;YACrE,GAAG,EAAE,GAAG;SACR,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC1C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { Basic } from \"./MinimizeAll.stories\";\r\n\r\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\r\nimport addons, { mockChannel } from \"@storybook/addons\";\r\naddons.setChannel(mockChannel());\r\n\r\ndescribe(\"<MinimizeAll/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\tit(\"should display icon\", () => {\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\texpect(wrapper.find(\"svg\").exists()).to.be.true;\r\n\t});\r\n\tit(\"should call minimize action when clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"action\");\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should call minimize action when user presses Enter\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"action\");\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"keydown\", {\r\n\t\t\tkey: \"Enter\",\r\n\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should call minimize action when user presses Space\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"action\");\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"keydown\", {\r\n\t\t\tkey: \"Space\",\r\n\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should not call minimize action when user presses a character other than Enter or Space\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"action\");\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"keydown\", {\r\n\t\t\tkey: \"a\",\r\n\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.false;\r\n\t});\r\n});\r\n"]}
|
|
@@ -23,15 +23,16 @@ export const NotificationControl = ({ className, children }) => {
|
|
|
23
23
|
}, []);
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
async function computeDotIcon(error, response) {
|
|
26
|
+
var _a, _b;
|
|
26
27
|
if (error) {
|
|
27
28
|
console.error("FinsembleUserPreferencesChannel: ", error);
|
|
28
29
|
}
|
|
29
30
|
else {
|
|
30
31
|
const { data } = response;
|
|
31
|
-
if (data
|
|
32
|
+
if ((_a = data === null || data === void 0 ? void 0 : data.notificationPreferences) === null || _a === void 0 ? void 0 : _a.hasOwnProperty("disableDotOnToolbarIcon")) {
|
|
32
33
|
setShowDotIcon(!data.notificationPreferences.disableDotOnToolbarIcon);
|
|
33
34
|
}
|
|
34
|
-
if (data
|
|
35
|
+
if ((_b = data === null || data === void 0 ? void 0 : data.notificationPreferences) === null || _b === void 0 ? void 0 : _b.hasOwnProperty("showDotOnToolbarIconForMutedNotifications")) {
|
|
35
36
|
setShowDotForMuted(data.notificationPreferences.showDotOnToolbarIconForMutedNotifications);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationControl.js","sourceRoot":"","sources":["../../../src/components/toolbar/NotificationControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAO1C,MAAM,CAAC,MAAM,mBAAmB,GAAoD,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/G,MAAM,EAAE,YAAY,EAAE,GAAG,sBAAsB,EAAE,CAAC;IAClD,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;QAC/D,MAAM,EAAE;YAEP,oBAAoB,EAAE,IAAI;SAC1B;KACD,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9D,SAAS,CAAC,GA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AE,cAAc,CAAC,CAAC;QAC7F,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,uBAAuB,GAAG,CAAC,eAAe,CAAC;QAC/C,QAAQ,CAAC,mBAAmB,CAAC,aAAa,EAAE,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9E,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,MAAM,cAAc,GAAG,sCAAsC,SAAS,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;IACtF,OAAO,CACN,6BACC,SAAS,EAAE,cAAc,EACzB,KAAK,EAAC,sBAAsB,EAC5B,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,CAAC,CAAsC,EAAE,EAAE;YACrD,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;gBACvC,YAAY,EAAE,CAAC;aACf;QACF,CAAC;QAEA,WAAW,IAAI,KAAK,GAAG,CAAC,IAAI,6BAAK,SAAS,EAAC,wBAAwB,GAAG;QACtE,QAAQ,IAAI,oBAAC,QAAQ,OAAG,CACpB,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["// disable eslint below because the svg in the icon definition will error if React is not imported\r\nimport * as React from \"react\"; // eslint-disable-line\r\nimport useNotifications, { initializeCenterToggle } from \"../../hooks/useNotifications\";\r\nimport { useEffect, useState } from \"react\";\r\nimport BellIcon from \"../shared/BellIcon\";\r\n\r\n/**\r\n * This control is responsible for the toggling of the notifcations drawer.\r\n *\r\n * @param {string} [className] - An optional CSS className to append.\r\n */\r\nexport const NotificationControl: React.FunctionComponent<{ className?: string }> = ({ className, children }) => {\r\n\tconst { toggleCenter } = initializeCenterToggle();\r\n\tconst { notifications, activeNotifications } = useNotifications({\r\n\t\tconfig: {\r\n\t\t\t// Get notification sent in previous session\r\n\t\t\tnotificationsHistory: true,\r\n\t\t},\r\n\t});\r\n\tconst [count, setCount] = useState(activeNotifications(notifications).length);\r\n\tconst [showDotIcon, setShowDotIcon] = useState(true);\r\n\tconst [showDotForMuted, setShowDotForMuted] = useState(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function getNotificationsPreferences() {\r\n\t\t\treturn await FSBL.Clients.NotificationClient.getPreferences();\r\n\t\t}\r\n\r\n\t\tgetNotificationsPreferences().then((preferences: any) => {\r\n\t\t\tsetShowDotIcon(!preferences.disableDotOnToolbarIcon);\r\n\t\t\tsetShowDotForMuted(preferences.showDotOnToolbarIconForMutedNotifications);\r\n\t\t});\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function computeDotIcon(error: any, response: any) {\r\n\t\t\tif (error) {\r\n\t\t\t\tconsole.error(\"FinsembleUserPreferencesChannel: \", error);\r\n\t\t\t} else {\r\n\t\t\t\tconst { data } = response;\r\n\t\t\t\tif (data?.notificationPreferences?.hasOwnProperty(\"disableDotOnToolbarIcon\")) {\r\n\t\t\t\t\tsetShowDotIcon(!data.notificationPreferences.disableDotOnToolbarIcon);\r\n\t\t\t\t}\r\n\t\t\t\tif (data?.notificationPreferences?.hasOwnProperty(\"showDotOnToolbarIconForMutedNotifications\")) {\r\n\t\t\t\t\tsetShowDotForMuted(data.notificationPreferences.showDotOnToolbarIconForMutedNotifications);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tFSBL.Clients.RouterClient.addListener(\"FinsembleUserPreferencesChannel\", computeDotIcon);\r\n\r\n\t\treturn () => {\r\n\t\t\tFSBL.Clients.RouterClient.removeListener(\"FinsembleUserPreferencesChannel\", computeDotIcon);\r\n\t\t};\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tlet applyMuteFilterOverride = !showDotForMuted;\r\n\t\tsetCount(activeNotifications(notifications, applyMuteFilterOverride).length);\r\n\t}, [notifications]);\r\n\r\n\tconst wrapperClasses = `finsemble-toolbar-button icon-only ${className || \"\"}`.trim();\r\n\treturn (\r\n\t\t<div\r\n\t\t\tclassName={wrapperClasses}\r\n\t\t\ttitle=\"Notification Control\"\r\n\t\t\tonClick={toggleCenter}\r\n\t\t\ttabIndex={0}\r\n\t\t\trole=\"button\"\r\n\t\t\tonKeyDown={(e: React.KeyboardEvent<HTMLDivElement>) => {\r\n\t\t\t\tif ([\"Enter\", \"Space\"].includes(e.key)) {\r\n\t\t\t\t\ttoggleCenter();\r\n\t\t\t\t}\r\n\t\t\t}}\r\n\t\t>\r\n\t\t\t{showDotIcon && count > 0 && <div className=\"notification-alert-dot\" />}\r\n\t\t\t{children || <BellIcon />}\r\n\t\t</div>\r\n\t);\r\n};\r\n"]}
|