@finsemble/finsemble-ui 6.1.4 → 6.1.5
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/README.md +28 -28
- package/package.json +1 -1
- package/react/actions/favoriteActions.js.map +1 -1
- package/react/actions/linkerActions.js.map +1 -1
- package/react/actions/menuActions.js.map +1 -1
- package/react/actions/rootActions.js.map +1 -1
- package/react/actions/searchActions.js.map +1 -1
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/actions/toolbarActions.js.map +1 -1
- package/react/actions/workspaceActions.js.map +1 -1
- package/react/assets/css/advancedAppLauncher.css +636 -636
- package/react/assets/css/appCatalog.css +1069 -1069
- package/react/assets/css/authentication.css +78 -78
- package/react/assets/css/button.css +219 -219
- package/react/assets/css/core/formElements.css +23 -23
- package/react/assets/css/core/icons.css +69 -69
- package/react/assets/css/core/notifications.css +75 -75
- package/react/assets/css/core/windowFrame.css +36 -36
- package/react/assets/css/dashbar.css +78 -78
- package/react/assets/css/defaultTheme.css +356 -356
- package/react/assets/css/dialogs.css +158 -158
- package/react/assets/css/favorites.css +101 -101
- package/react/assets/css/finsemble.css +38 -38
- package/react/assets/css/focus.css +4 -4
- package/react/assets/css/font-finance.css +385 -385
- package/react/assets/css/fonts/Open_Sans/LICENSE.txt +202 -202
- package/react/assets/css/fonts/Open_Sans/OpenSans-Definition.css +118 -118
- package/react/assets/css/fonts/font-finance.svg +124 -124
- package/react/assets/css/fonts/icons-reference.html +1174 -1174
- package/react/assets/css/linkerWindow.css +124 -124
- package/react/assets/css/menus.css +195 -195
- package/react/assets/css/notificationsCenter.css +594 -594
- package/react/assets/css/processMonitor.css +213 -213
- package/react/assets/css/search.css +128 -128
- package/react/assets/css/shared/animations.css +99 -99
- package/react/assets/css/tags.css +136 -136
- package/react/assets/css/toolbar.css +413 -413
- package/react/assets/css/userPreferences.css +565 -565
- package/react/assets/css/windowTitleBar.css +619 -619
- package/react/assets/icons/check.svg +3 -3
- package/react/assets/icons/chevron-left.svg +3 -3
- package/react/assets/icons/chevron-right.svg +3 -3
- package/react/assets/icons/copy.svg +10 -10
- package/react/assets/icons/exclamation-circle.svg +4 -4
- package/react/assets/icons/external-link.svg +12 -12
- package/react/assets/icons/flag.svg +10 -10
- package/react/assets/icons/folder.svg +3 -3
- package/react/assets/icons/font.svg +3 -3
- package/react/assets/icons/globe.svg +3 -3
- package/react/assets/icons/hdd.svg +9 -9
- package/react/assets/icons/key.svg +10 -10
- package/react/assets/icons/life-ring.svg +3 -3
- package/react/assets/icons/magic.svg +15 -15
- package/react/assets/icons/moon.svg +10 -10
- package/react/assets/icons/paint-roller.svg +3 -3
- package/react/assets/icons/pencil.svg +10 -10
- package/react/assets/icons/plus.svg +3 -3
- package/react/assets/icons/question-circle.svg +5 -5
- package/react/assets/icons/search.svg +3 -3
- package/react/assets/icons/sun.svg +9 -9
- package/react/assets/icons/times.svg +3 -3
- package/react/assets/icons/toggle-off.svg +6 -6
- package/react/assets/icons/toggle-on.svg +6 -6
- package/react/assets/icons/tools.svg +3 -3
- package/react/assets/icons/trash.svg +12 -12
- package/react/assets/icons/upload.svg +10 -10
- package/react/assets/icons/window.svg +3 -3
- package/react/componentTemplateGenerator.js +85 -85
- package/react/componentTemplateGenerator.js.map +1 -1
- package/react/components/FinsembleProvider.js.map +1 -1
- package/react/components/appCatalog/AppCatalog.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/appCatalog/components/AppCard.js.map +1 -1
- package/react/components/appCatalog/components/AppList.js.map +1 -1
- package/react/components/appCatalog/components/AppResults.js.map +1 -1
- package/react/components/appCatalog/components/Carousel.js.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
- package/react/components/appCatalog/components/Hero.js.map +1 -1
- package/react/components/appCatalog/components/Home.js.map +1 -1
- package/react/components/appCatalog/components/SearchBar.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/SupportNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/VersionNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
- package/react/components/appCatalog/components/Tag.js.map +1 -1
- package/react/components/appCatalog/components/Toast.js.map +1 -1
- package/react/components/appCatalog/components/helpers.js.map +1 -1
- package/react/components/appCatalog/index.js.map +1 -1
- package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- 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.js.map +1 -1
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/ButtonTile.js.map +1 -1
- package/react/components/common/ColorPicker.js.map +1 -1
- package/react/components/common/DropZone.js.map +1 -1
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/FileInput.js.map +1 -1
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleSelect.js.map +1 -1
- package/react/components/common/FinsembleToggle.js.map +1 -1
- package/react/components/common/FontSizeSelector.js.map +1 -1
- package/react/components/common/Header.js.map +1 -1
- package/react/components/common/ImagePreview.js.map +1 -1
- package/react/components/common/LoadingSpinner.js.map +1 -1
- package/react/components/common/Tab.js.map +1 -1
- package/react/components/common/Tooltip.js.map +1 -1
- package/react/components/common/css/application-edit-page.css +117 -117
- package/react/components/common/css/application-list.css +47 -47
- package/react/components/common/css/button.css +164 -164
- package/react/components/common/css/color-picker.css +52 -52
- package/react/components/common/css/drop-zone.css +17 -17
- package/react/components/common/css/file-input.css +49 -49
- package/react/components/common/css/header.css +43 -43
- package/react/components/common/css/icon.css +13 -13
- package/react/components/common/css/image-preview.css +57 -57
- package/react/components/common/css/loading-spinner.css +39 -39
- package/react/components/common/css/selector.css +51 -51
- package/react/components/common/css/styles.css +128 -128
- package/react/components/common/css/tab.css +56 -56
- package/react/components/common/css/toggle.css +32 -32
- package/react/components/common/css/tooltip.css +68 -68
- package/react/components/common/file_helpers.js.map +1 -1
- package/react/components/common/fixtures/FinsembleIcon.css +4 -4
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/Button.stories.js.map +1 -1
- package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
- package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
- package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
- package/react/components/common/stories/DropZone.stories.js.map +1 -1
- package/react/components/common/stories/FileInput.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
- package/react/components/common/stories/FontSizeSelector.stories.js.map +1 -1
- package/react/components/common/stories/Header.stories.js.map +1 -1
- package/react/components/common/stories/ImagePreview.stories.js.map +1 -1
- package/react/components/common/stories/LoadingSpinner.stories.js.map +1 -1
- package/react/components/common/stories/Tab.stories.js.map +1 -1
- package/react/components/common/stories/Tooltip.stories.js.map +1 -1
- package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
- package/react/components/common/tests/DropZone.spec.js.map +1 -1
- package/react/components/common/tests/FileInput.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/common/tests/Header.spec.js.map +1 -1
- package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
- package/react/components/common/tests/Tab.spec.js.map +1 -1
- package/react/components/common/tests/Tooltip.spec.js.map +1 -1
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.js.map +1 -1
- package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
- package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
- package/react/components/favorites/index.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.css +125 -125
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/icon/index.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
- package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
- package/react/components/linker/index.js.map +1 -1
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/Menu.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuContent.js.map +1 -1
- package/react/components/menu/MenuHotKey.js.map +1 -1
- package/react/components/menu/MenuItem.js.map +1 -1
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/MenuShell.js.map +1 -1
- package/react/components/menu/MenuToggle.js.map +1 -1
- package/react/components/menu/index.js.map +1 -1
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/menu/menuContext.js.map +1 -1
- package/react/components/menu/menuHelpers.js.map +1 -1
- package/react/components/notifications/components/NoNotifications.js.map +1 -1
- package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.js +1 -1
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/constants.js.map +1 -1
- package/react/components/notifications/icons/Card.js.map +1 -1
- package/react/components/notifications/icons/Chevron.js.map +1 -1
- package/react/components/notifications/icons/CloseIcon.js.map +1 -1
- package/react/components/notifications/icons/EnvelopeClose.js.map +1 -1
- package/react/components/notifications/icons/EnvelopeOpen.js.map +1 -1
- package/react/components/notifications/icons/SnoozeIcon.js.map +1 -1
- package/react/components/notifications/index.js.map +1 -1
- package/react/components/notifications/notificationsContext.js.map +1 -1
- package/react/components/notifications/types.js.map +1 -1
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindows.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/index.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
- package/react/components/quickComponentForm/index.js.map +1 -1
- package/react/components/quickComponentForm/quickComponent.css +3 -3
- package/react/components/search/Highlight.js.map +1 -1
- package/react/components/search/Highlight.spec.js.map +1 -1
- package/react/components/search/Highlight.stories.js.map +1 -1
- package/react/components/search/Search.js.map +1 -1
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchInput.js.map +1 -1
- package/react/components/search/SearchProviderResults.js.map +1 -1
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/search/index.js.map +1 -1
- package/react/components/shared/Animate.js.map +1 -1
- package/react/components/shared/BellIcon.js.map +1 -1
- package/react/components/shared/BellIconCrossed.js.map +1 -1
- package/react/components/shared/Button.js.map +1 -1
- package/react/components/shared/ConditionalWrapper.js.map +1 -1
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/shared/NavigationButton.js.map +1 -1
- package/react/components/shared/Tag.js.map +1 -1
- package/react/components/shared/TagsMenu.js.map +1 -1
- package/react/components/shared/addProtocolToValidURL.js.map +1 -1
- package/react/components/shared/addProtocolToValidURL.spec.js.map +1 -1
- package/react/components/shared/linkerUtil.js.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/shared/validateURL.js.map +1 -1
- package/react/components/shared/validateURL.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.css +3 -3
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
- package/react/components/singleInputDialog/index.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Appearance.css +94 -94
- package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +1 -1
- package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
- package/react/components/smartDesktopDesigner/Application.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +1 -1
- package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
- package/react/components/smartDesktopDesigner/AssetsPage.css +26 -26
- package/react/components/smartDesktopDesigner/AssetsPage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
- package/react/components/smartDesktopDesigner/Content.js.map +1 -1
- package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
- package/react/components/smartDesktopDesigner/Export.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
- package/react/components/smartDesktopDesigner/Navigation.js.map +1 -1
- package/react/components/smartDesktopDesigner/ProjectErrors.js.map +1 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.js.map +1 -1
- package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
- package/react/components/smartDesktopDesigner/PublishProgress.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/smartDesktopDesigner/ThemePage.css +110 -110
- package/react/components/smartDesktopDesigner/ThemePage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
- package/react/components/smartDesktopDesigner/View.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/views.js +2 -2
- package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/css/appearance.css +10 -10
- package/react/components/smartDesktopDesigner/css/applications.css +89 -89
- package/react/components/smartDesktopDesigner/css/authentication.css +125 -125
- package/react/components/smartDesktopDesigner/css/buttons.css +12 -12
- package/react/components/smartDesktopDesigner/css/export.css +163 -163
- package/react/components/smartDesktopDesigner/css/getting-started.css +6 -6
- package/react/components/smartDesktopDesigner/css/nav.css +93 -93
- package/react/components/smartDesktopDesigner/css/project-errors.css +15 -15
- package/react/components/smartDesktopDesigner/css/project-header.css +121 -121
- package/react/components/smartDesktopDesigner/css/styles.css +179 -179
- package/react/components/smartDesktopDesigner/css/views.css +16 -16
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js +3 -3
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
- package/react/components/smartDesktopDesigner/themeDefinitions.js.map +1 -1
- package/react/components/system/System.js.map +1 -1
- package/react/components/system/System.spec.js.map +1 -1
- package/react/components/system/System.stories.js.map +1 -1
- package/react/components/system/SystemTrayComponentShell.js.map +1 -1
- package/react/components/system/index.js.map +1 -1
- package/react/components/toolbar/AutoArrange.js.map +1 -1
- package/react/components/toolbar/DragHandle.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.stories.js.map +1 -1
- package/react/components/toolbar/NotificationControl.js.map +1 -1
- package/react/components/toolbar/RevealAll.js.map +1 -1
- package/react/components/toolbar/RevealAll.spec.js.map +1 -1
- package/react/components/toolbar/RevealAll.stories.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/ToolbarSection.js.map +1 -1
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +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.js.map +1 -1
- package/react/components/toolbar/appLauncher/appLauncher.css +30 -30
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/index.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +94 -94
- package/react/components/userPreferences/NotificationsPreferencesContext.js.map +1 -1
- package/react/components/userPreferences/UserPreferences.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/components/Checkbox.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/LeftNav.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
- package/react/components/userPreferences/components/content/General.js.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
- package/react/components/userPreferences/index.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
- package/react/components/utils.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabRegion.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/components/left/ShareButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/index.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
- package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
- package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
- package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.css +3 -3
- package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
- package/react/components/yesNoDialog/index.js.map +1 -1
- package/react/components/yesNoDialog/timer.js.map +1 -1
- package/react/enzymeSetup.js.map +1 -1
- package/react/hooks/index.js.map +1 -1
- package/react/hooks/useAuth.js.map +1 -1
- package/react/hooks/useDeepEffect.js.map +1 -1
- package/react/hooks/useFavorites.js.map +1 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useHotkey.js.map +1 -1
- package/react/hooks/useLinker.js.map +1 -1
- package/react/hooks/useMenu.js.map +1 -1
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useOutsideClickDetector.js.map +1 -1
- package/react/hooks/usePubSub.js.map +1 -1
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/hooks/useWorkspace.js.map +1 -1
- package/react/reducers/favoriteReducer.js.map +1 -1
- package/react/reducers/linkerReducer.js.map +1 -1
- package/react/reducers/menuReducer.js.map +1 -1
- package/react/reducers/rootReducer.js.map +1 -1
- package/react/reducers/searchReducer.js.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/reducers/toolbarReducer.js.map +1 -1
- package/react/reducers/workspaceReducer.js.map +1 -1
- package/react/store.js.map +1 -1
- package/react/types/advancedAppLauncherTypes.js.map +1 -1
- package/react/types/dashbarTypes.js.map +1 -1
- package/react/types/favoriteTypes.js.map +1 -1
- package/react/types/fdc3.js.map +1 -1
- package/react/types/hotkeyTypes.js.map +1 -1
- package/react/types/iconTypes.js.map +1 -1
- package/react/types/linkerTypes.js.map +1 -1
- package/react/types/searchTypes.js.map +1 -1
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/react/types/workspaceTypes.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolbar.js","sourceRoot":"","sources":["../../src/hooks/useToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,IAAI,oBAAoB,GAAY,KAAK,CAAC;AAe1C,IAAI,YAA8B,CAAC;AAMnC,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAsB,EAAE,EAAE;IAC7D,eAAe,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,GAAQ,EAAE,EAAE;QAC/C,IAAI,GAAG,EAAE;YACR,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;SACrE;QAED,IAAI,KAAK,EAAE;YACV,eAAe,CAAC,KAAK,EAAE,CAAC;SACxB;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAKF,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,eAAe,CAAC,IAAI,EAAE,CAAC;IACvB,eAAe,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC,CAAC;AAKF,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,mBAAmB,EAAE,CAAC;IAChD,mBAAmB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AACtC,CAAC,CAAC;AAKF,MA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E,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,MAAM,EAAE,YAAY,EAAE,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAE/D,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAA0C,EAAE,EAAE;QAC9F,MAAM,oBAAoB,GAAG,CAAC,GAAG,YAAY,CAAC,CAAC;QAC/C,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QACzD,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACzC,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;QAE5D,MAAM,YAAY,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAE/E,YAAY,CAAC,QAAQ,CACpB;YACC,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE,YAAY;SACnB,EACD,GAAG,EAAE;YACJ,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;QACxE,CAAC,CACD,CAAC;IACH,CAAC,CAAC;IAEF,OAAO;QACN,YAAY;QACZ,2BAA2B;QAC3B,kBAAkB;QAClB,kBAAkB;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,WAAW;QACX,WAAW;QACX,mBAAmB;QACnB,iBAAiB;KACjB,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { useEffect } from \"react\";\r\nimport { useDeepEffect } from \"./useDeepEffect\";\r\nimport { useSelector } from \"../store\";\r\nimport { ToolbarActions } from \"../actions/toolbarActions\";\r\nimport { openQuitConfirmationDialog } from \"../components/shared/openQuitConfirmationDialog\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { DashbarItem } from \"../types/dashbarTypes\";\r\n\r\nlet storageIsInitialized: boolean = false;\r\n\r\ntype DashbarStoreValueType = {\r\n\tdashbaritems: DashbarItem[];\r\n};\r\n\r\ntype DashbarStoreType = {\r\n\tname: string;\r\n\tsetValue: Function;\r\n\tsetValues: Function;\r\n\taddListener: Function;\r\n\tremoveListener: Function;\r\n\tvalues: DashbarStoreValueType;\r\n};\r\n\r\nlet DashbarStore: DashbarStoreType;\r\n\r\n/**\r\n * Function to bring toolbar to front (since dockable toolbar can be hidden)\r\n * @param {boolean} focus If true, will also focus the toolbar\r\n */\r\nconst bringToolbarToFront = ({ focus }: { focus: boolean }) => {\r\n\tfinsembleWindow.bringToFront(null, (err: any) => {\r\n\t\tif (err) {\r\n\t\t\tFSBL.Clients.Logger.error(\"bringToolbarToFront failed, error:\", err);\r\n\t\t}\r\n\r\n\t\tif (focus) {\r\n\t\t\tfinsembleWindow.focus();\r\n\t\t}\r\n\t});\r\n};\r\n\r\n/**\r\n * Hides the toolbar\r\n */\r\nconst hideToolbar = () => {\r\n\tfinsembleWindow.blur();\r\n\tfinsembleWindow.hide();\r\n};\r\n\r\n/**\r\n * Shows the toolbar left-aligned to the user's mouse.\r\n */\r\nconst showToolbar = () => {\r\n\tFSBL.Clients.WindowClient.showAtMousePosition();\r\n\tbringToolbarToFront({ focus: true });\r\n};\r\n\r\n/**\r\n * Mimimizes all windows.\r\n */\r\nconst minimizeAllWindows = () => {\r\n\tFSBL.Clients.WorkspaceClient.minimizeAll();\r\n};\r\n\r\n/**\r\n * Brings all windows to front.\r\n */\r\nconst revealAllWindows = () => {\r\n\tFSBL.Clients.WorkspaceClient.bringWindowsToFront();\r\n};\r\n\r\n/**\r\n * Toggles Auto Arrange for all windows on the same monitor as the toolbar\r\n */\r\nconst toggleAutoArrange = () => {\r\n\tFSBL.Clients.WorkspaceClient.autoArrange({}, () => {\r\n\t\t// This is legacy and we're not sure if it's still required or not.\r\n\t\t// We can try eliminating this once core auto arrange is refactored.\r\n\t\tbringToolbarToFront({ focus: false });\r\n\t\trevealAllWindows();\r\n\t});\r\n};\r\n\r\n/**\r\n * It's a requirement that the toolbar not be minimized.\r\n * the minimizable option does not work.\r\n * Instead, we just listen for this event and restore the window.\r\n * Hacky. Best I can think of right now.\r\n * //TODO allowMinimize should be a component config option\r\n */\r\nconst preventMinimize = () => {\r\n\tfinsembleWindow.addEventListener(\"minimized\", () => {\r\n\t\tfinsembleWindow.restore();\r\n\t});\r\n};\r\n\r\n/**\r\n * Required to let the system know that the toolbar is up and ready.\r\n * Other pieces of the UI key off of this.\r\n * @TODO Determine whether this kind of baked-in dependency\r\n * makes sense in finsemble.\r\n */\r\nconst publishSystemCheckpoint = () => {\r\n\tFSBL.SystemManagerClient.publishCheckpointState(\"Toolbar\", \"initialize\", \"completed\");\r\n};\r\n\r\n/**\r\n * Prevents closing of the window.\r\n */\r\nconst onBeforeToolbarUnload = () => {\r\n\topenQuitConfirmationDialog();\r\n\t// Return of a non-void value (in this `onbeforeunload` handler) is what tells Electron not to close the window.\r\n\t// Don't delete this!\r\n\treturn false;\r\n};\r\n\r\nconst removeSystemClosePrevention = () => {\r\n\tif (window.onbeforeunload === onBeforeToolbarUnload) {\r\n\t\twindow.onbeforeunload = null;\r\n\t}\r\n};\r\n\r\nconst launchPreferences = (tabName: string) => {\r\n\tFSBL.Clients.RouterClient.transmit(\"FinsembleUserPreferencesChannel\", {\r\n\t\tpreferencesTab: tabName,\r\n\t});\r\n\tFSBL.Clients.LauncherClient.showWindow(\r\n\t\t{\r\n\t\t\tcomponentType: \"UserPreferences\",\r\n\t\t},\r\n\t\t{\r\n\t\t\tmonitor: \"mine\",\r\n\t\t\tleft: \"center\",\r\n\t\t\ttop: \"center\",\r\n\t\t}\r\n\t);\r\n};\r\n\r\n/**\r\n * Prevents the window from going down on alt+f4 or closing from taskbar.\r\n * Pops up a dialog asking if the user meant to shut down the system.\r\n */\r\nconst preventSystemClose = () => {\r\n\t// This function was already called, so no need to run it again.\r\n\tif (window.onbeforeunload === onBeforeToolbarUnload) return;\r\n\r\n\t// Bypass system close prevention if for some reason the toolbar has been customized with an alternative onbeforeunload handler\r\n\tif (window.onbeforeunload) {\r\n\t\tconsole.error(\r\n\t\t\t`Finsemble toolbar was configured to prevent system closes, however, there is already a function assigned to window.onbeforeunload. In order to prevent the OS from closing your window, we need to overwrite this handler. Users will be able to close your toolbar from the windows taskbar. Please remove your onbeforeunload handler or set the toolbar property 'allowSystemToCloseWindow' to true to get rid of this error message.`\r\n\t\t);\r\n\t\treturn;\r\n\t}\r\n\r\n\t/**\r\n\t * From the electron docs:\r\n\t * Note: There is a subtle difference between the behaviors of window.onbeforeunload = handler and window.addEventListener('beforeunload', handler). It is recommended to always set the event.returnValue explicitly, instead of only returning a value, as the former works more consistently within Electron.\r\n\t *\r\n\t * Tried addEventListener, and it wouldn't work.\r\n\t */\r\n\twindow.onbeforeunload = onBeforeToolbarUnload;\r\n\t// Terry, onShutdown() hasn't worked for many versions, so this code was never running\r\n\t// remove the listener when we're shutting down. Don't want to get into an infinite loop.\r\n\t//FSBL.onShutdown(removeSystemClosePrevention);\r\n};\r\n\r\nexport const useToolbar = () => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tuseEffect(() => {\r\n\t\tpreventMinimize();\r\n\t\tpublishSystemCheckpoint();\r\n\r\n\t\tif (FSBL.debug !== true) {\r\n\t\t\tpreventSystemClose();\r\n\t\t}\r\n\t}, []);\r\n\r\n\tasync function setDashbarItems(error: Error, data: any) {\r\n\t\tconst { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({\r\n\t\t\tfield: \"finsemble.availableDashbarItems\",\r\n\t\t});\r\n\t\tconst newDashbarItems: DashbarItem[] = [];\r\n\t\t// Add the widget name as an id to help identify\r\n\t\t// keys -> widgets when reordering items\r\n\t\tdata.value.forEach((itemName: string) => {\r\n\t\t\tif (availableDashbarItems.hasOwnProperty(itemName)) {\r\n\t\t\t\tconst newItem = availableDashbarItems[itemName];\r\n\t\t\t\tnewItem.id = itemName;\r\n\t\t\t\tnewDashbarItems.push(newItem);\r\n\t\t\t}\r\n\t\t});\r\n\t\tdispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));\r\n\t}\r\n\r\n\t/**\r\n\t * This effect initializes the dashbar items in the redux store. The store must only be initialized once. We use the module level variable\r\n\t * `storageIsInitialized` as a simple flag to prevent initialization from occuring more than once.\r\n\t */\r\n\tuseDeepEffect(() => {\r\n\t\tasync function fetchDashbarItems() {\r\n\t\t\ttry {\r\n\t\t\t\tstorageIsInitialized = true;\r\n\t\t\t\tFSBL.Clients.DistributedStoreClient.createStore(\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstore: \"Finsemble-Dashbar-Store\",\r\n\t\t\t\t\t\tglobal: true,\r\n\t\t\t\t\t\tpersist: true,\r\n\t\t\t\t\t},\r\n\t\t\t\t\tasync (getDashbarStoreErr: Error, store: any) => {\r\n\t\t\t\t\t\tif (getDashbarStoreErr) {\r\n\t\t\t\t\t\t\tFSBL.Clients.Logger.error(\r\n\t\t\t\t\t\t\t\t\"Error initializing dashbar: unable to retrieve stored items, falling back to config\",\r\n\t\t\t\t\t\t\t\tgetDashbarStoreErr\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tDashbarStore = store;\r\n\r\n\t\t\t\t\t\tconst { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({\r\n\t\t\t\t\t\t\tfield: \"finsemble.availableDashbarItems\",\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t// Fetch active dashbar items from store, if not found, fall back to spawn data\r\n\t\t\t\t\t\tlet dashbarItemList;\r\n\t\t\t\t\t\tif (DashbarStore && Object.keys(DashbarStore.values).length > 0) {\r\n\t\t\t\t\t\t\t({ dashbaritems: dashbarItemList } = DashbarStore.values);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!dashbarItemList) {\r\n\t\t\t\t\t\t\tconst spawnData = FSBL.Clients.WindowClient.getSpawnData();\r\n\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\tspawnData.hasOwnProperty(\"dashbar\") &&\r\n\t\t\t\t\t\t\t\tspawnData.dashbar.hasOwnProperty(\"items\") &&\r\n\t\t\t\t\t\t\t\tArray.isArray(spawnData.dashbar.items)\r\n\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\tdashbarItemList = spawnData.dashbar.items;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!dashbarItemList) dashbarItemList = [];\r\n\r\n\t\t\t\t\t\tconst newDashbarItems: DashbarItem[] = [];\r\n\t\t\t\t\t\tif (dashbarItemList.length > 0) {\r\n\t\t\t\t\t\t\tdashbarItemList.forEach((itemName: string) => {\r\n\t\t\t\t\t\t\t\tif (availableDashbarItems.hasOwnProperty(itemName)) {\r\n\t\t\t\t\t\t\t\t\tconst newItem = availableDashbarItems[itemName];\r\n\t\t\t\t\t\t\t\t\t// Add the widget name as an id to help identify\r\n\t\t\t\t\t\t\t\t\t// keys -> widgets when reordering items\r\n\t\t\t\t\t\t\t\t\tnewItem.id = itemName;\r\n\t\t\t\t\t\t\t\t\tnewDashbarItems.push(newItem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!DashbarStore.values.dashbaritems) {\r\n\t\t\t\t\t\t\tDashbarStore.setValue({\r\n\t\t\t\t\t\t\t\tfield: \"dashbaritems\",\r\n\t\t\t\t\t\t\t\tvalue: dashbarItemList,\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tdispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tDashbarStore.addListener({ field: \"dashbaritems\" }, setDashbarItems);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t} catch (majorErr) {\r\n\t\t\t\treturn FSBL.Clients.Logger.error(`Fatal error retrieving dashbar items`, majorErr);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (storageIsInitialized) return;\r\n\t\tfetchDashbarItems();\r\n\t\treturn function cleanup() {\r\n\t\t\tDashbarStore.removeListener({ field: \"dashbaritems\" }, setDashbarItems);\r\n\t\t};\r\n\t}, [dispatch]);\r\n\r\n\tconst { dashbarItems } = useSelector((state) => state.toolbar);\r\n\r\n\tconst reorderDashbarItems = ({ oldIndex, newIndex }: { oldIndex: number; newIndex: number }) => {\r\n\t\tconst dashbarItemsNewOrder = [...dashbarItems];\r\n\t\tconst dashbarItemToMove = dashbarItemsNewOrder[oldIndex];\r\n\t\tdashbarItemsNewOrder.splice(oldIndex, 1);\r\n\t\tdashbarItemsNewOrder.splice(newIndex, 0, dashbarItemToMove);\r\n\r\n\t\tconst newOrderList = dashbarItemsNewOrder.map((dashbarItem) => dashbarItem.id);\r\n\r\n\t\tDashbarStore.setValue(\r\n\t\t\t{\r\n\t\t\t\tfield: \"dashbaritems\",\r\n\t\t\t\tvalue: newOrderList,\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tdispatch(ToolbarActions.REORDER_DASHBAR_ITEMS({ oldIndex, newIndex }));\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\treturn {\r\n\t\tdashbarItems,\r\n\t\tremoveSystemClosePrevention,\r\n\t\tpreventSystemClose,\r\n\t\tminimizeAllWindows,\r\n\t\trevealAllWindows,\r\n\t\ttoggleAutoArrange,\r\n\t\tshowToolbar,\r\n\t\thideToolbar,\r\n\t\treorderDashbarItems,\r\n\t\tlaunchPreferences,\r\n\t};\r\n};\r\n"]}
|
|
1
|
+
{"version":3,"file":"useToolbar.js","sourceRoot":"","sources":["../../src/hooks/useToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EA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C,CAAC;QAC/C,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QACzD,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACzC,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;QAE5D,MAAM,YAAY,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAE/E,YAAY,CAAC,QAAQ,CACpB;YACC,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE,YAAY;SACnB,EACD,GAAG,EAAE;YACJ,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;QACxE,CAAC,CACD,CAAC;IACH,CAAC,CAAC;IAEF,OAAO;QACN,YAAY;QACZ,2BAA2B;QAC3B,kBAAkB;QAClB,kBAAkB;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,WAAW;QACX,WAAW;QACX,mBAAmB;QACnB,iBAAiB;KACjB,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { useEffect } from \"react\";\nimport { useDeepEffect } from \"./useDeepEffect\";\nimport { useSelector } from \"../store\";\nimport { ToolbarActions } from \"../actions/toolbarActions\";\nimport { openQuitConfirmationDialog } from \"../components/shared/openQuitConfirmationDialog\";\nimport { useDispatch } from \"react-redux\";\nimport { DashbarItem } from \"../types/dashbarTypes\";\n\nlet storageIsInitialized: boolean = false;\n\ntype DashbarStoreValueType = {\n\tdashbaritems: DashbarItem[];\n};\n\ntype DashbarStoreType = {\n\tname: string;\n\tsetValue: Function;\n\tsetValues: Function;\n\taddListener: Function;\n\tremoveListener: Function;\n\tvalues: DashbarStoreValueType;\n};\n\nlet DashbarStore: DashbarStoreType;\n\n/**\n * Function to bring toolbar to front (since dockable toolbar can be hidden)\n * @param {boolean} focus If true, will also focus the toolbar\n */\nconst bringToolbarToFront = ({ focus }: { focus: boolean }) => {\n\tfinsembleWindow.bringToFront(null, (err: any) => {\n\t\tif (err) {\n\t\t\tFSBL.Clients.Logger.error(\"bringToolbarToFront failed, error:\", err);\n\t\t}\n\n\t\tif (focus) {\n\t\t\tfinsembleWindow.focus();\n\t\t}\n\t});\n};\n\n/**\n * Hides the toolbar\n */\nconst hideToolbar = () => {\n\tfinsembleWindow.blur();\n\tfinsembleWindow.hide();\n};\n\n/**\n * Shows the toolbar left-aligned to the user's mouse.\n */\nconst showToolbar = () => {\n\tFSBL.Clients.WindowClient.showAtMousePosition();\n\tbringToolbarToFront({ focus: true });\n};\n\n/**\n * Mimimizes all windows.\n */\nconst minimizeAllWindows = () => {\n\tFSBL.Clients.WorkspaceClient.minimizeAll();\n};\n\n/**\n * Brings all windows to front.\n */\nconst revealAllWindows = () => {\n\tFSBL.Clients.WorkspaceClient.bringWindowsToFront();\n};\n\n/**\n * Toggles Auto Arrange for all windows on the same monitor as the toolbar\n */\nconst toggleAutoArrange = () => {\n\tFSBL.Clients.WorkspaceClient.autoArrange({}, () => {\n\t\t// This is legacy and we're not sure if it's still required or not.\n\t\t// We can try eliminating this once core auto arrange is refactored.\n\t\tbringToolbarToFront({ focus: false });\n\t\trevealAllWindows();\n\t});\n};\n\n/**\n * It's a requirement that the toolbar not be minimized.\n * the minimizable option does not work.\n * Instead, we just listen for this event and restore the window.\n * Hacky. Best I can think of right now.\n * //TODO allowMinimize should be a component config option\n */\nconst preventMinimize = () => {\n\tfinsembleWindow.addEventListener(\"minimized\", () => {\n\t\tfinsembleWindow.restore();\n\t});\n};\n\n/**\n * Required to let the system know that the toolbar is up and ready.\n * Other pieces of the UI key off of this.\n * @TODO Determine whether this kind of baked-in dependency\n * makes sense in finsemble.\n */\nconst publishSystemCheckpoint = () => {\n\tFSBL.SystemManagerClient.publishCheckpointState(\"Toolbar\", \"initialize\", \"completed\");\n};\n\n/**\n * Prevents closing of the window.\n */\nconst onBeforeToolbarUnload = () => {\n\topenQuitConfirmationDialog();\n\t// Return of a non-void value (in this `onbeforeunload` handler) is what tells Electron not to close the window.\n\t// Don't delete this!\n\treturn false;\n};\n\nconst removeSystemClosePrevention = () => {\n\tif (window.onbeforeunload === onBeforeToolbarUnload) {\n\t\twindow.onbeforeunload = null;\n\t}\n};\n\nconst launchPreferences = (tabName: string) => {\n\tFSBL.Clients.RouterClient.transmit(\"FinsembleUserPreferencesChannel\", {\n\t\tpreferencesTab: tabName,\n\t});\n\tFSBL.Clients.LauncherClient.showWindow(\n\t\t{\n\t\t\tcomponentType: \"UserPreferences\",\n\t\t},\n\t\t{\n\t\t\tmonitor: \"mine\",\n\t\t\tleft: \"center\",\n\t\t\ttop: \"center\",\n\t\t}\n\t);\n};\n\n/**\n * Prevents the window from going down on alt+f4 or closing from taskbar.\n * Pops up a dialog asking if the user meant to shut down the system.\n */\nconst preventSystemClose = () => {\n\t// This function was already called, so no need to run it again.\n\tif (window.onbeforeunload === onBeforeToolbarUnload) return;\n\n\t// Bypass system close prevention if for some reason the toolbar has been customized with an alternative onbeforeunload handler\n\tif (window.onbeforeunload) {\n\t\tconsole.error(\n\t\t\t`Finsemble toolbar was configured to prevent system closes, however, there is already a function assigned to window.onbeforeunload. In order to prevent the OS from closing your window, we need to overwrite this handler. Users will be able to close your toolbar from the windows taskbar. Please remove your onbeforeunload handler or set the toolbar property 'allowSystemToCloseWindow' to true to get rid of this error message.`\n\t\t);\n\t\treturn;\n\t}\n\n\t/**\n\t * From the electron docs:\n\t * Note: There is a subtle difference between the behaviors of window.onbeforeunload = handler and window.addEventListener('beforeunload', handler). It is recommended to always set the event.returnValue explicitly, instead of only returning a value, as the former works more consistently within Electron.\n\t *\n\t * Tried addEventListener, and it wouldn't work.\n\t */\n\twindow.onbeforeunload = onBeforeToolbarUnload;\n\t// Terry, onShutdown() hasn't worked for many versions, so this code was never running\n\t// remove the listener when we're shutting down. Don't want to get into an infinite loop.\n\t//FSBL.onShutdown(removeSystemClosePrevention);\n};\n\nexport const useToolbar = () => {\n\tconst dispatch = useDispatch();\n\n\tuseEffect(() => {\n\t\tpreventMinimize();\n\t\tpublishSystemCheckpoint();\n\n\t\tif (FSBL.debug !== true) {\n\t\t\tpreventSystemClose();\n\t\t}\n\t}, []);\n\n\tasync function setDashbarItems(error: Error, data: any) {\n\t\tconst { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({\n\t\t\tfield: \"finsemble.availableDashbarItems\",\n\t\t});\n\t\tconst newDashbarItems: DashbarItem[] = [];\n\t\t// Add the widget name as an id to help identify\n\t\t// keys -> widgets when reordering items\n\t\tdata.value.forEach((itemName: string) => {\n\t\t\tif (availableDashbarItems.hasOwnProperty(itemName)) {\n\t\t\t\tconst newItem = availableDashbarItems[itemName];\n\t\t\t\tnewItem.id = itemName;\n\t\t\t\tnewDashbarItems.push(newItem);\n\t\t\t}\n\t\t});\n\t\tdispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));\n\t}\n\n\t/**\n\t * This effect initializes the dashbar items in the redux store. The store must only be initialized once. We use the module level variable\n\t * `storageIsInitialized` as a simple flag to prevent initialization from occuring more than once.\n\t */\n\tuseDeepEffect(() => {\n\t\tasync function fetchDashbarItems() {\n\t\t\ttry {\n\t\t\t\tstorageIsInitialized = true;\n\t\t\t\tFSBL.Clients.DistributedStoreClient.createStore(\n\t\t\t\t\t{\n\t\t\t\t\t\tstore: \"Finsemble-Dashbar-Store\",\n\t\t\t\t\t\tglobal: true,\n\t\t\t\t\t\tpersist: true,\n\t\t\t\t\t},\n\t\t\t\t\tasync (getDashbarStoreErr: Error, store: any) => {\n\t\t\t\t\t\tif (getDashbarStoreErr) {\n\t\t\t\t\t\t\tFSBL.Clients.Logger.error(\n\t\t\t\t\t\t\t\t\"Error initializing dashbar: unable to retrieve stored items, falling back to config\",\n\t\t\t\t\t\t\t\tgetDashbarStoreErr\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tDashbarStore = store;\n\n\t\t\t\t\t\tconst { data: availableDashbarItems } = await FSBL.Clients.ConfigClient.getValue({\n\t\t\t\t\t\t\tfield: \"finsemble.availableDashbarItems\",\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// Fetch active dashbar items from store, if not found, fall back to spawn data\n\t\t\t\t\t\tlet dashbarItemList;\n\t\t\t\t\t\tif (DashbarStore && Object.keys(DashbarStore.values).length > 0) {\n\t\t\t\t\t\t\t({ dashbaritems: dashbarItemList } = DashbarStore.values);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!dashbarItemList) {\n\t\t\t\t\t\t\tconst spawnData = FSBL.Clients.WindowClient.getSpawnData();\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tspawnData.hasOwnProperty(\"dashbar\") &&\n\t\t\t\t\t\t\t\tspawnData.dashbar.hasOwnProperty(\"items\") &&\n\t\t\t\t\t\t\t\tArray.isArray(spawnData.dashbar.items)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tdashbarItemList = spawnData.dashbar.items;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!dashbarItemList) dashbarItemList = [];\n\n\t\t\t\t\t\tconst newDashbarItems: DashbarItem[] = [];\n\t\t\t\t\t\tif (dashbarItemList.length > 0) {\n\t\t\t\t\t\t\tdashbarItemList.forEach((itemName: string) => {\n\t\t\t\t\t\t\t\tif (availableDashbarItems.hasOwnProperty(itemName)) {\n\t\t\t\t\t\t\t\t\tconst newItem = availableDashbarItems[itemName];\n\t\t\t\t\t\t\t\t\t// Add the widget name as an id to help identify\n\t\t\t\t\t\t\t\t\t// keys -> widgets when reordering items\n\t\t\t\t\t\t\t\t\tnewItem.id = itemName;\n\t\t\t\t\t\t\t\t\tnewDashbarItems.push(newItem);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!DashbarStore.values.dashbaritems) {\n\t\t\t\t\t\t\tDashbarStore.setValue({\n\t\t\t\t\t\t\t\tfield: \"dashbaritems\",\n\t\t\t\t\t\t\t\tvalue: dashbarItemList,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdispatch(ToolbarActions.SET_DASHBAR_ITEMS(newDashbarItems));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tDashbarStore.addListener({ field: \"dashbaritems\" }, setDashbarItems);\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} catch (majorErr) {\n\t\t\t\treturn FSBL.Clients.Logger.error(`Fatal error retrieving dashbar items`, majorErr);\n\t\t\t}\n\t\t}\n\t\tif (storageIsInitialized) return;\n\t\tfetchDashbarItems();\n\t\treturn function cleanup() {\n\t\t\tDashbarStore.removeListener({ field: \"dashbaritems\" }, setDashbarItems);\n\t\t};\n\t}, [dispatch]);\n\n\tconst { dashbarItems } = useSelector((state) => state.toolbar);\n\n\tconst reorderDashbarItems = ({ oldIndex, newIndex }: { oldIndex: number; newIndex: number }) => {\n\t\tconst dashbarItemsNewOrder = [...dashbarItems];\n\t\tconst dashbarItemToMove = dashbarItemsNewOrder[oldIndex];\n\t\tdashbarItemsNewOrder.splice(oldIndex, 1);\n\t\tdashbarItemsNewOrder.splice(newIndex, 0, dashbarItemToMove);\n\n\t\tconst newOrderList = dashbarItemsNewOrder.map((dashbarItem) => dashbarItem.id);\n\n\t\tDashbarStore.setValue(\n\t\t\t{\n\t\t\t\tfield: \"dashbaritems\",\n\t\t\t\tvalue: newOrderList,\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tdispatch(ToolbarActions.REORDER_DASHBAR_ITEMS({ oldIndex, newIndex }));\n\t\t\t}\n\t\t);\n\t};\n\n\treturn {\n\t\tdashbarItems,\n\t\tremoveSystemClosePrevention,\n\t\tpreventSystemClose,\n\t\tminimizeAllWindows,\n\t\trevealAllWindows,\n\t\ttoggleAutoArrange,\n\t\tshowToolbar,\n\t\thideToolbar,\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,0BAA0B,CAAC,CAAC;QACnE,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC","sourcesContent":["import { useDispatch, useSelector } from \"../store\";\
|
|
1
|
+
{"version":3,"file":"useWorkspace.js","sourceRoot":"","sources":["../../src/hooks/useWorkspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,iBAAiB,GAAG,CAAC,CAAM,EAAE,EAAE,IAAI,EAA4B,EAAE,EAAE;QACxE,IAAI,IAAI,EAAE;YACT,QAAQ,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC;SACvD;IACF,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/D,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,cAAc,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QAGd,MAAM,0BAA0B,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CACrE,mCAAmC,EACnC,iBAAiB,CACjB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CACjC;YACC,KAAK,EAAE,mEAAmE;SAC1E,EACD,CAAC,CAAM,EAAE,IAAa,EAAE,EAAE;YAEzB,IAAI,IAAI,QAAQ,CAAC,gBAAgB,CAAC,0CAA0C,CAAC,IAAI,CAAC,CAAC,CAAC;QACrF,CAAC,CACD,CAAC;QAEF,OAAO,SAAS,OAAO;YACtB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;QACnE,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC","sourcesContent":["import { useDispatch, useSelector } from \"../store\";\nimport { WorkspaceActions } from \"../actions/workspaceActions\";\nimport { WorkspaceState } from \"../reducers/workspaceReducer\";\nimport { useEffect } from \"react\";\n\n/**\n * A hook for getting the current workspaces including the ActiveWorkspace,\n * and listening on any workspace updates.\n */\nexport const useWorkspaces = () => {\n\tconst dispatch = useDispatch();\n\n\tconst onWorkspaceUpdate = (_: any, { data }: { data: WorkspaceState }) => {\n\t\tif (data) {\n\t\t\tdispatch(WorkspaceActions.UPDATE_ALL_WORKSPACES(data));\n\t\t}\n\t};\n\n\tconst workspaceState = useSelector((state) => state.workspace);\n\tconst { workspaces, activeWorkspace, promptOnSave } = workspaceState;\n\n\tuseEffect(() => {\n\t\t// When the workspace updates, update the active workspace name.\n\t\t// We will also get the active workspace as soon as we subscribe.\n\t\tconst WorkspaceUpdateSubscribeID = FSBL.Clients.RouterClient.subscribe(\n\t\t\t\"Finsemble.WorkspaceService.update\",\n\t\t\tonWorkspaceUpdate\n\t\t);\n\t\tFSBL.Clients.ConfigClient.getValue(\n\t\t\t{\n\t\t\t\tfield: \"finsemble.preferences.workspaceService.promptUserOnDirtyWorkspace\",\n\t\t\t},\n\t\t\t(_: any, data: boolean) => {\n\t\t\t\t// default to false.\n\t\t\t\tdata && dispatch(WorkspaceActions.UPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE(data));\n\t\t\t}\n\t\t);\n\n\t\treturn function cleanup() {\n\t\t\tFSBL.Clients.RouterClient.unsubscribe(WorkspaceUpdateSubscribeID);\n\t\t};\n\t}, []);\n\n\treturn { workspaces, activeWorkspace, promptOnSave };\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favoriteReducer.js","sourceRoot":"","sources":["../../src/reducers/favoriteReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAuB,MAAM,4BAA4B,CAAC;AAWlF,MAAM,CAAC,MAAM,YAAY,GAAkB;IAC1C,SAAS,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAgD,OAAO,CAClF,CAAC,KAAoB,EAAE,MAA2B,EAAE,EAAE;IACrD,eAAe,CAAC,KAAK,CAAC,MAAM,EAAE;QAC7B,oBAAoB,EAAE,CAAC,SAA0B,EAAE,EAAE;YACpD,KAAK,CAAC,SAAS,GAAG,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,CAAC;QACD,YAAY,EAAE,CAAC,QAAkB,EAAE,EAAE;YACpC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;QACD,eAAe,EAAE,CAAC,QAAwB,EAAE,EAAE;YAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;YACzE,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC;QAChC,CAAC;QACD,iBAAiB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC7C,MAAM,mBAAmB,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;YACjD,MAAM,cAAc,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YACrD,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACxC,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC;YACxD,KAAK,CAAC,SAAS,GAAG,mBAAmB,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\
|
|
1
|
+
{"version":3,"file":"favoriteReducer.js","sourceRoot":"","sources":["../../src/reducers/favoriteReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAuB,MAAM,4BAA4B,CAAC;AAWlF,MAAM,CAAC,MAAM,YAAY,GAAkB;IAC1C,SAAS,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAgD,OAAO,CAClF,CAAC,KAAoB,EAAE,MAA2B,EAAE,EAAE;IACrD,eAAe,CAAC,KAAK,CAAC,MAAM,EAAE;QAC7B,oBAAoB,EAAE,CAAC,SAA0B,EAAE,EAAE;YACpD,KAAK,CAAC,SAAS,GAAG,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,CAAC;QACD,YAAY,EAAE,CAAC,QAAkB,EAAE,EAAE;YACpC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;QACD,eAAe,EAAE,CAAC,QAAwB,EAAE,EAAE;YAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;YACzE,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC;QAChC,CAAC;QACD,iBAAiB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC7C,MAAM,mBAAmB,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;YACjD,MAAM,cAAc,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YACrD,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACxC,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC;YACxD,KAAK,CAAC,SAAS,GAAG,mBAAmB,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { FavoriteActions, FavoriteActionTypes } from \"../actions/favoriteActions\";\nimport { Favorite } from \"../types/favoriteTypes\";\nimport { Reducer } from \"react\";\n\n/**\n * Favorite state definition.\n */\nexport type FavoriteState = {\n\tfavorites: Favorite[];\n};\n\nexport const initialState: FavoriteState = {\n\tfavorites: [],\n};\n\nexport const favoriteReducer: Reducer<FavoriteState, FavoriteActionTypes> = produce(\n\t(state: FavoriteState, action: FavoriteActionTypes) => {\n\t\tFavoriteActions.match(action, {\n\t\t\tINITIALIZE_FAVORITES: (favorites: Array<Favorite>) => {\n\t\t\t\tstate.favorites = favorites?.length ? favorites : [];\n\t\t\t},\n\t\t\tADD_FAVORITE: (favorite: Favorite) => {\n\t\t\t\tstate.favorites.push(favorite);\n\t\t\t},\n\t\t\tREMOVE_FAVORITE: (targetId: Favorite[\"id\"]) => {\n\t\t\t\tconst newFavorites = state.favorites.filter(({ id }) => id !== targetId);\n\t\t\t\tstate.favorites = newFavorites;\n\t\t\t},\n\t\t\tREORDER_FAVORITES: ({ oldIndex, newIndex }) => {\n\t\t\t\tconst favoritesInNewOrder = [...state.favorites];\n\t\t\t\tconst favoriteToMove = favoritesInNewOrder[oldIndex];\n\t\t\t\tfavoritesInNewOrder.splice(oldIndex, 1);\n\t\t\t\tfavoritesInNewOrder.splice(newIndex, 0, favoriteToMove);\n\t\t\t\tstate.favorites = favoritesInNewOrder;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkerReducer.js","sourceRoot":"","sources":["../../src/reducers/linkerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAqB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAkB5E,MAAM,CAAC,MAAM,YAAY,GAAgB;IACxC,QAAQ,EAAE,EAAE;IACZ,kBAAkB,EAAE,IAAI;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,OAAO,CAC5E,CAAC,KAAkB,EAAE,MAAyB,EAAE,EAAE;IACjD,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE;QAC3B,qBAAqB,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;YAChD,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;YAEhD,IAAI,aAAa;gBAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC;QAClD,CAAC;QACD,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC9B,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAgB,EAAE,KAAa,EAAE,EAAE;gBACjE,OAAO;oBACN,EAAE,EAAE,KAAK;oBACT,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,MAAM,EAAE,KAAK;iBACb,CAAC;YACH,CAAC,CAAC,CAAC;QACJ,CAAC;QACD,sBAAsB,EAAE,CAAC,EAAE,YAAY,EAAE,gBAAgB,EAAE,EAAE,EAAE;YAC9D,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC5E,KAAK,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;YAC1C,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;gBACpD,IAAI,OAAO,EAAE;oBACZ,OAAO,CAAC,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBACzD;aACD;QACF,CAAC;QACD,iBAAiB,EAAE,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE;YAC7C,KAAK,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC/C,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\
|
|
1
|
+
{"version":3,"file":"linkerReducer.js","sourceRoot":"","sources":["../../src/reducers/linkerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAqB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAkB5E,MAAM,CAAC,MAAM,YAAY,GAAgB;IACxC,QAAQ,EAAE,EAAE;IACZ,kBAAkB,EAAE,IAAI;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,OAAO,CAC5E,CAAC,KAAkB,EAAE,MAAyB,EAAE,EAAE;IACjD,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE;QAC3B,qBAAqB,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;YAChD,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;YAEhD,IAAI,aAAa;gBAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC;QAClD,CAAC;QACD,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC9B,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAgB,EAAE,KAAa,EAAE,EAAE;gBACjE,OAAO;oBACN,EAAE,EAAE,KAAK;oBACT,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,MAAM,EAAE,KAAK;iBACb,CAAC;YACH,CAAC,CAAC,CAAC;QACJ,CAAC;QACD,sBAAsB,EAAE,CAAC,EAAE,YAAY,EAAE,gBAAgB,EAAE,EAAE,EAAE;YAC9D,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC5E,KAAK,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;YAC1C,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;gBACpD,IAAI,OAAO,EAAE;oBACZ,OAAO,CAAC,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBACzD;aACD;QACF,CAAC;QACD,iBAAiB,EAAE,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE;YAC7C,KAAK,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC/C,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { Channel, WindowIdentifier } from \"../types/linkerTypes\";\nimport { LinkerActionTypes, LinkerActions } from \"../actions/linkerActions\";\nimport { Reducer } from \"react\";\n\n/**\n * Linker component type definition\n */\nexport type LinkerState = {\n\t/* The linker channels */\n\tchannels: Record<number, Channel | undefined>;\n\t/* Default to true. If the linker is an accessible linker, its channel labels will be shown along with the color indicators */\n\tisAccessibleLinker: boolean;\n\t/* The window identifier for the window that the linker component is on. They have one to one matching relationship */\n\twindowIdentifier?: WindowIdentifier;\n};\n\n// The linker state before we initialize the linker. The initialize linker function will\n// make calls to the LinkerClient and\n// fill in the state with the relevant linker information.\nexport const initialState: LinkerState = {\n\tchannels: {},\n\tisAccessibleLinker: true,\n};\n// The linker's reducer\nexport const linkerReducer: Reducer<LinkerState, LinkerActionTypes> = produce(\n\t(state: LinkerState, action: LinkerActionTypes) => {\n\t\tLinkerActions.match(action, {\n\t\t\tUPDATE_CHANNEL_STATUS: ({ channelId, active }) => {\n\t\t\t\tconst targetChannel = state.channels[channelId];\n\t\t\t\t// TODO: figure out how to log an error here.\n\t\t\t\tif (targetChannel) targetChannel.active = active;\n\t\t\t},\n\t\t\tSET_CHANNELS: ({ channels }) => {\n\t\t\t\tstate.channels = channels.map((channel: Channel, index: number) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: index,\n\t\t\t\t\t\tname: channel.name,\n\t\t\t\t\t\tcolor: channel.color,\n\t\t\t\t\t\tborder: channel.border,\n\t\t\t\t\t\tactive: false,\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t},\n\t\t\tUPDATE_ACTIVE_CHANNELS: ({ channelNames, windowIdentifier }) => {\n\t\t\t\tconst channelNameArray = Object.values(channelNames).map((obj) => obj.name);\n\t\t\t\tstate.windowIdentifier = windowIdentifier;\n\t\t\t\tfor (const channel of Object.values(state.channels)) {\n\t\t\t\t\tif (channel) {\n\t\t\t\t\t\tchannel.active = channelNameArray.includes(channel.name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tSET_ACCESSIBILITY: ({ isAccessibleLinker }) => {\n\t\t\t\tstate.isAccessibleLinker = isAccessibleLinker;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);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KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;YACnF,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5B,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\
|
|
1
|
+
{"version":3,"file":"menuReducer.js","sourceRoot":"","sources":["../../src/reducers/menuReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAmB,MAAM,wBAAwB,CAAC;AAiBtE,MAAM,CAAC,MAAM,YAAY,GAAc;IACtC,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,IAAI;CACnB,CAAC;AAqBF,MAAM,CAAC,MAAM,WAAW,GAAwC,OAAO,CAAC,CAAC,KAAgB,EAAE,MAAuB,EAAE,EAAE;IACrH,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE;QAIzB,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE;YACnB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QACxD,CAAC;QAID,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,EAAE,CAAC;QACvB,CAAC;QAID,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE;YAClB,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;QACtE,CAAC;QAID,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;QAC1B,CAAC;QAID,qBAAqB,EAAE,CAAC,EAAE,EAAE,EAAE;YAC7B,IAAI,KAAK,CAAC,aAAa,KAAK,EAAE,IAAI,KAAK,CAAC,UAAU,KAAK,EAAE;gBAAE,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;YACnF,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5B,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\nimport { MenuActions, MenuActionTypes } from \"../actions/menuActions\";\nimport { Reducer } from \"react\";\n\n/**\n * Menu state definition.\n */\nexport type MenuState = {\n\t/**\n\t * Contains the id of the currently open menu\n\t */\n\topenMenuId: string | null;\n\t/**\n\t * Contains the id of a menu that has been blurred but not yet closed. See menuReducer for algorithm.\n\t */\n\tpendingBlurId: string | null;\n};\n\nexport const initialState: MenuState = {\n\topenMenuId: null,\n\tpendingBlurId: null,\n};\n\n/**\n * Algorithm for managing \"toggle/blur\" race condition\n *\n * When a user clicks the for an open window it triggers two events which end up in a race.\n * A blur event will close the menu. A toggle event will also close the menu.\n * However, if the blur event arrives *before* the toggle event then the menu would (1) close, (2) toggle back open\n *\n * The algorithm to address this race condition is to instead use three events. These are the two races\n * (1) BLUR_MENU - sets pendingBlurId to the id of the menu\n * (2) TOGGLE_MENU - closes the menu if it is open (true), and clears pendingBlurId\n * (3) CLOSE_IF_PENDING - closes the menu only if pendingBlurId is still set, and clears pendingBlurId\n *\n * (1) TOGGLE_MENU - closes the menu if it is open (pendingBlurId will not be set)\n * (2) BLUR_MENU - sets pendingBlurId to the id of the menu\n * (3) CLOSE_IF_PENDING - menu is already closed. clears pendingBlurId.\n *\n * menuHook() is responsible for triggering each of these events.\n * This algorithm depends on the time delay between BLUR_MENU and CLOSE_IF_PENDING to be long enough that TOGGLE_MENU is assured to trigger.\n */\nexport const menuReducer: Reducer<MenuState, MenuActionTypes> = produce((state: MenuState, action: MenuActionTypes) => {\n\tMenuActions.match(action, {\n\t\t/**\n\t\t * If the menu is open then close it. If it's closed then open it.\n\t\t */\n\t\tTOGGLE_MENU: (id) => {\n\t\t\tstate.pendingBlurId = null;\n\t\t\tstate.openMenuId = state.openMenuId === id ? null : id;\n\t\t},\n\t\t/**\n\t\t * Opens the menu. If it is already open then state won't actually change.\n\t\t */\n\t\tOPEN_MENU: (id) => {\n\t\t\tstate.pendingBlurId = null;\n\t\t\tstate.openMenuId = id;\n\t\t},\n\t\t/**\n\t\t * Closes the menu iff it is open\n\t\t */\n\t\tCLOSE_MENU: (id) => {\n\t\t\tstate.pendingBlurId = null;\n\t\t\tstate.openMenuId = state.openMenuId === id ? null : state.openMenuId;\n\t\t},\n\t\t/**\n\t\t * Sets the menu to be pending close\n\t\t */\n\t\tBLUR_MENU: (id) => {\n\t\t\tstate.pendingBlurId = id;\n\t\t},\n\t\t/**\n\t\t * Closes the menu iff it is open and pending close\n\t\t */\n\t\tCLOSE_MENU_IF_PENDING: (id) => {\n\t\t\tif (state.pendingBlurId === id && state.openMenuId === id) state.openMenuId = null;\n\t\t\tstate.pendingBlurId = null;\n\t\t},\n\t\tdefault: () => state,\n\t});\n}, initialState);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootReducer.js","sourceRoot":"","sources":["../../src/reducers/rootReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAe,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAiB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAa,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAe5E,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IAC1C,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE,aAAa;IACrB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,eAAe;IACzB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,oBAAoB,EAAE,2BAA2B;CAIjD,CAAC,CAAC","sourcesContent":["import { ToolbarState, toolbarReducer } from \"./toolbarReducer\";\
|
|
1
|
+
{"version":3,"file":"rootReducer.js","sourceRoot":"","sources":["../../src/reducers/rootReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAe,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAiB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAa,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAe5E,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IAC1C,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE,aAAa;IACrB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,eAAe;IACzB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,oBAAoB,EAAE,2BAA2B;CAIjD,CAAC,CAAC","sourcesContent":["import { ToolbarState, toolbarReducer } from \"./toolbarReducer\";\nimport { LinkerState, linkerReducer } from \"./linkerReducer\";\nimport { combineReducers } from \"redux\";\nimport { workspaceReducer, WorkspaceState } from \"./workspaceReducer\";\nimport { favoriteReducer, FavoriteState } from \"./favoriteReducer\";\nimport { menuReducer, MenuState } from \"./menuReducer\";\nimport { searchReducer, SearchState } from \"./searchReducer\";\nimport { smartDesktopDesignerReducer } from \"./smartDesktopDesignerReducer\";\nimport { SmartDesktopDesignerState } from \"../types/smartDesktopDesignerTypes\";\n\n// DH 2/11/2019 - This should be auto-inferred from `typeof rootReducer`, but\n// I can't get it working, so we'll write it manually.\nexport type RootState = {\n\ttoolbar: ToolbarState;\n\tlinker: LinkerState;\n\tworkspace: WorkspaceState;\n\tmenu: MenuState;\n\tfavorite: FavoriteState;\n\tsearch: SearchState;\n\tsmartDesktopDesigner: SmartDesktopDesignerState;\n};\n\nexport const rootReducer = combineReducers({\n\ttoolbar: toolbarReducer,\n\tlinker: linkerReducer,\n\tworkspace: workspaceReducer,\n\tfavorite: favoriteReducer,\n\tmenu: menuReducer,\n\tsearch: searchReducer,\n\tsmartDesktopDesigner: smartDesktopDesignerReducer,\n\t// Before adding your reducer, be sure to add the correct action\n\t// types to ../actions/rootActions.ts. Otherwise you will get a deeply\n\t// nested type error like \"YOUR_ACTION_TYPE is not assignable to OTHER_ACTION_TYPE\".\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchReducer.js","sourceRoot":"","sources":["../../src/reducers/searchReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAqB,MAAM,0BAA0B,CAAC;AAe5E,MAAM,CAAC,MAAM,YAAY,GAAgB;IACxC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,OAAO,CAC5E,CAAC,KAAkB,EAAE,MAAyB,EAAE,EAAE;IACjD,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE;QAG3B,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;QAGD,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE;YAC3B,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC;QAC/B,CAAC;QAGD,YAAY,EAAE,GAAG,EAAE;YAClB,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;YACzB,KAAK,CAAC,WAAW,GAAG,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\
|
|
1
|
+
{"version":3,"file":"searchReducer.js","sourceRoot":"","sources":["../../src/reducers/searchReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAqB,MAAM,0BAA0B,CAAC;AAe5E,MAAM,CAAC,MAAM,YAAY,GAAgB;IACxC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,OAAO,CAC5E,CAAC,KAAkB,EAAE,MAAyB,EAAE,EAAE;IACjD,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE;QAG3B,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;QAGD,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE;YAC3B,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC;QAC/B,CAAC;QAGD,YAAY,EAAE,GAAG,EAAE;YAClB,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC;YACzB,KAAK,CAAC,WAAW,GAAG,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { SearchActions, SearchActionTypes } from \"../actions/searchActions\";\nimport { Reducer } from \"react\";\n\n/**\n * Search state definition.\n */\nexport type SearchState = {\n\t/**\n\t */\n\tsearchQuery: string;\n\t/**\n\t */\n\tsearchResults: Array<any>;\n};\n\nexport const initialState: SearchState = {\n\tsearchQuery: \"\",\n\tsearchResults: [],\n};\n\nexport const searchReducer: Reducer<SearchState, SearchActionTypes> = produce(\n\t(state: SearchState, action: SearchActionTypes) => {\n\t\tSearchActions.match(action, {\n\t\t\t/**\n\t\t\t */\n\t\t\tUPDATE_QUERY: (query) => {\n\t\t\t\tstate.searchQuery = query;\n\t\t\t},\n\t\t\t/**\n\t\t\t */\n\t\t\tUPDATE_RESULTS: (results) => {\n\t\t\t\tstate.searchResults = results;\n\t\t\t},\n\t\t\t/**\n\t\t\t */\n\t\t\tRESET_SEARCH: () => {\n\t\t\t\tstate.searchResults = [];\n\t\t\t\tstate.searchQuery = \"\";\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartDesktopDesignerReducer.js","sourceRoot":"","sources":["../../src/reducers/smartDesktopDesignerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,2BAA2B,EAAoC,MAAM,wCAAwC,CAAC;AAGvH,OAAO,EAEN,oBAAoB,EACpB,kBAAkB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,YAAY,GAA8B;IACtD,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,IAAI;IACnB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;IAClB,mBAAmB,EAAE,IAAI;IACzB,KAAK,EAAE,EAAE;IACT,WAAW,EAAE;QACZ,IAAI,EAAE,EA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GAAG,KAAK,CAAC;QACjC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\r\nimport { SmartDesktopDesignerActions, SmartDesktopDesignerActionsTypes } from \"../actions/smartDesktopDesignerActions\";\r\nimport { Reducer } from \"react\";\r\n\r\nimport {\r\n\tSmartDesktopDesignerState,\r\n\tApplicationSetupType,\r\n\tAuthenticationType,\r\n} from \"../types/smartDesktopDesignerTypes\";\r\n\r\nexport const initialState: SmartDesktopDesignerState = {\r\n\tisGettingStarted: false,\r\n\tpreviousViewId: null,\r\n\tcurrentViewId: null,\r\n\tapps: [],\r\n\tnewAppId: null,\r\n\tcurrentAppId: null,\r\n\tcurrentAppSetupType: null,\r\n\tmenus: {},\r\n\tprojectInfo: {\r\n\t\tname: \"\",\r\n\t\tuser: {\r\n\t\t\tfirstName: \"\",\r\n\t\t\tlastName: \"\",\r\n\t\t\tcompany: \"\",\r\n\t\t\temail: \"\",\r\n\t\t},\r\n\t\texport: {\r\n\t\t\tauthor: \"\",\r\n\t\t\tcompanyName: \"\",\r\n\t\t\tdescription: \"\",\r\n\t\t\ttoolbarIcon: \"\",\r\n\t\t\tinstallerIcon: \"\",\r\n\t\t\ttaskbarIcon: \"\",\r\n\t\t\tsystemTrayIcon: \"\",\r\n\t\t\tsplashScreenImage: \"\",\r\n\t\t},\r\n\t},\r\n\texport: {\r\n\t\tuuid: null, // `${new Date().getTime()}-${Math.round(Math.random() * Math.pow(10, 10))}`,\r\n\t\tisPublishing: false,\r\n\t\tpublishError: null,\r\n\t\tdeployInfo: null,\r\n\t},\r\n\tauthentication: {\r\n\t\tproviders: [\r\n\t\t\t{\r\n\t\t\t\tname: \"Google\",\r\n\t\t\t\ttype: AuthenticationType.OAUTH2,\r\n\t\t\t\tclient_id: null,\r\n\t\t\t\tsecret: null,\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tredirect_uri: \"\",\r\n\t\t\t\tauthorization_endpoint: \"https://accounts.google.com/o/oauth2/v2/auth\",\r\n\t\t\t\tscope: \"openid\",\r\n\t\t\t\tnonce: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tname: \"Salesforce\",\r\n\t\t\t\ttype: AuthenticationType.OAUTH2,\r\n\t\t\t\tclient_id: null,\r\n\t\t\t\tsecret: null,\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tredirect_uri: \"\",\r\n\t\t\t\tauthorization_endpoint: \"https://login.salesforce.com/services/oauth2/authorize\",\r\n\t\t\t\tnonce: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tname: \"Custom\",\r\n\t\t\t\ttype: AuthenticationType.OAUTH2,\r\n\t\t\t\tclient_id: null,\r\n\t\t\t\tsecret: null,\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tauthorization_endpoint: \"\",\r\n\t\t\t\tredirect_uri: \"\",\r\n\t\t\t\tscope: \"openid\",\r\n\t\t\t\tnonce: false,\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n\terrors: [],\r\n\tisReviewingErrors: false,\r\n};\r\n\r\nexport const smartDesktopDesignerReducer: Reducer<SmartDesktopDesignerState, SmartDesktopDesignerActionsTypes> =\r\n\tproduce((state: SmartDesktopDesignerState, action: SmartDesktopDesignerActionsTypes) => {\r\n\t\tSmartDesktopDesignerActions.match(action, {\r\n\t\t\tchange_view: (payload) => {\r\n\t\t\t\tstate.isGettingStarted = false;\r\n\t\t\t\tstate.previousViewId = state.currentViewId;\r\n\t\t\t\tstate.currentViewId = payload;\r\n\t\t\t\tstate.currentAppId = null;\r\n\t\t\t\tstate.currentAppSetupType = null;\r\n\t\t\t},\r\n\t\t\tupdate_apps: (payload) => {\r\n\t\t\t\tstate.apps = payload;\r\n\t\t\t},\r\n\t\t\tnew_app: (appId) => {\r\n\t\t\t\tstate.currentAppId = state.newAppId = appId;\r\n\t\t\t},\r\n\t\t\tset_current_app_id: (currentAppId) => {\r\n\t\t\t\tif (currentAppId !== null) {\r\n\t\t\t\t\tlet currentAppConfig = state.apps.find((app) => app.appId === currentAppId);\r\n\r\n\t\t\t\t\tif (!currentAppConfig || currentAppId === state.newAppId) {\r\n\t\t\t\t\t\tstate.currentAppSetupType = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tstate.currentAppSetupType = ApplicationSetupType.APP_EDIT_ADVANCED;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstate.currentAppSetupType = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tstate.currentAppId = currentAppId;\r\n\t\t\t},\r\n\t\t\tset_current_app_setup_type: (appSetupType) => {\r\n\t\t\t\tstate.currentAppSetupType = appSetupType;\r\n\t\t\t},\r\n\t\t\tupdate_app: (appConfig) => {\r\n\t\t\t\tif (!appConfig || !appConfig.appId) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appConfig.appId);\r\n\r\n\t\t\t\tstate.apps.push(appConfig);\r\n\t\t\t},\r\n\t\t\tupdate_menus: (menus) => {\r\n\t\t\t\tstate.menus = menus;\r\n\t\t\t},\r\n\t\t\tdelete_app: (appId) => {\r\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appId);\r\n\t\t\t},\r\n\t\t\tset_is_publishing: (isPublishing) => {\r\n\t\t\t\tstate.export.isPublishing = isPublishing;\r\n\t\t\t},\r\n\t\t\tset_deploy_info: (value) => {\r\n\t\t\t\tstate.export.deployInfo = value;\r\n\t\t\t},\r\n\t\t\tset_publish_error: (value) => {\r\n\t\t\t\tstate.export.publishError = value;\r\n\t\t\t},\r\n\t\t\tset_project_info: (value) => {\r\n\t\t\t\tstate.projectInfo = value;\r\n\t\t\t},\r\n\t\t\tset_is_getting_started: (value) => {\r\n\t\t\t\tstate.isGettingStarted = value;\r\n\t\t\t},\r\n\t\t\tupdate_auth_provider: (value) => {\r\n\t\t\t\tconst index = state.authentication.providers.findIndex((provider) => provider.name === value.name);\r\n\r\n\t\t\t\tif (index == -1) {\r\n\t\t\t\t\tstate.authentication.providers.push(value);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstate.authentication.providers[index] = value;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tenable_auth_provider: (value) => {\r\n\t\t\t\tstate.authentication.providers.forEach((provider) => {\r\n\t\t\t\t\tprovider.enabled = provider.name === value;\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tset_project_error: (value) => {\r\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\r\n\t\t\t\tstate.errors.push(value);\r\n\t\t\t},\r\n\t\t\tdelete_project_error: (value) => {\r\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\r\n\t\t\t},\r\n\t\t\tset_reviewing_project_errors: (value) => {\r\n\t\t\t\tstate.isReviewingErrors = value;\r\n\t\t\t},\r\n\t\t\tdefault: () => state,\r\n\t\t});\r\n\t}, initialState);\r\n"]}
|
|
1
|
+
{"version":3,"file":"smartDesktopDesignerReducer.js","sourceRoot":"","sources":["../../src/reducers/smartDesktopDesignerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,2BAA2B,EAAoC,MAAM,wCAAwC,CAAC;AAGvH,OAAO,EAEN,oBAAoB,EACpB,kBAAkB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,YAAY,GAA8B;IACtD,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,IAAI;IACnB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;IAClB,mBAAmB,EAAE,IAAI;IACzB,KAAK,EAAE,EAAE;IACT,WAAW,EAAE;QACZ,IAAI,EAAE,EAAE;QACR,IAAI,EAAE;YACL,SAAS,EA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,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\nimport { SmartDesktopDesignerActions, SmartDesktopDesignerActionsTypes } from \"../actions/smartDesktopDesignerActions\";\nimport { Reducer } from \"react\";\n\nimport {\n\tSmartDesktopDesignerState,\n\tApplicationSetupType,\n\tAuthenticationType,\n} from \"../types/smartDesktopDesignerTypes\";\n\nexport const initialState: SmartDesktopDesignerState = {\n\tisGettingStarted: false,\n\tpreviousViewId: null,\n\tcurrentViewId: null,\n\tapps: [],\n\tnewAppId: null,\n\tcurrentAppId: null,\n\tcurrentAppSetupType: null,\n\tmenus: {},\n\tprojectInfo: {\n\t\tname: \"\",\n\t\tuser: {\n\t\t\tfirstName: \"\",\n\t\t\tlastName: \"\",\n\t\t\tcompany: \"\",\n\t\t\temail: \"\",\n\t\t},\n\t\texport: {\n\t\t\tauthor: \"\",\n\t\t\tcompanyName: \"\",\n\t\t\tdescription: \"\",\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t},\n\texport: {\n\t\tuuid: null, // `${new Date().getTime()}-${Math.round(Math.random() * Math.pow(10, 10))}`,\n\t\tisPublishing: false,\n\t\tpublishError: null,\n\t\tdeployInfo: null,\n\t},\n\tauthentication: {\n\t\tproviders: [\n\t\t\t{\n\t\t\t\tname: \"Google\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://accounts.google.com/o/oauth2/v2/auth\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Salesforce\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://login.salesforce.com/services/oauth2/authorize\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Custom\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tauthorization_endpoint: \"\",\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t],\n\t},\n\terrors: [],\n\tisReviewingErrors: false,\n};\n\nexport const smartDesktopDesignerReducer: Reducer<SmartDesktopDesignerState, SmartDesktopDesignerActionsTypes> =\n\tproduce((state: SmartDesktopDesignerState, action: SmartDesktopDesignerActionsTypes) => {\n\t\tSmartDesktopDesignerActions.match(action, {\n\t\t\tchange_view: (payload) => {\n\t\t\t\tstate.isGettingStarted = false;\n\t\t\t\tstate.previousViewId = state.currentViewId;\n\t\t\t\tstate.currentViewId = payload;\n\t\t\t\tstate.currentAppId = null;\n\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t},\n\t\t\tupdate_apps: (payload) => {\n\t\t\t\tstate.apps = payload;\n\t\t\t},\n\t\t\tnew_app: (appId) => {\n\t\t\t\tstate.currentAppId = state.newAppId = appId;\n\t\t\t},\n\t\t\tset_current_app_id: (currentAppId) => {\n\t\t\t\tif (currentAppId !== null) {\n\t\t\t\t\tlet currentAppConfig = state.apps.find((app) => app.appId === currentAppId);\n\n\t\t\t\t\tif (!currentAppConfig || currentAppId === state.newAppId) {\n\t\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstate.currentAppSetupType = ApplicationSetupType.APP_EDIT_ADVANCED;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t}\n\n\t\t\t\tstate.currentAppId = currentAppId;\n\t\t\t},\n\t\t\tset_current_app_setup_type: (appSetupType) => {\n\t\t\t\tstate.currentAppSetupType = appSetupType;\n\t\t\t},\n\t\t\tupdate_app: (appConfig) => {\n\t\t\t\tif (!appConfig || !appConfig.appId) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appConfig.appId);\n\n\t\t\t\tstate.apps.push(appConfig);\n\t\t\t},\n\t\t\tupdate_menus: (menus) => {\n\t\t\t\tstate.menus = menus;\n\t\t\t},\n\t\t\tdelete_app: (appId) => {\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appId);\n\t\t\t},\n\t\t\tset_is_publishing: (isPublishing) => {\n\t\t\t\tstate.export.isPublishing = isPublishing;\n\t\t\t},\n\t\t\tset_deploy_info: (value) => {\n\t\t\t\tstate.export.deployInfo = value;\n\t\t\t},\n\t\t\tset_publish_error: (value) => {\n\t\t\t\tstate.export.publishError = value;\n\t\t\t},\n\t\t\tset_project_info: (value) => {\n\t\t\t\tstate.projectInfo = value;\n\t\t\t},\n\t\t\tset_is_getting_started: (value) => {\n\t\t\t\tstate.isGettingStarted = value;\n\t\t\t},\n\t\t\tupdate_auth_provider: (value) => {\n\t\t\t\tconst index = state.authentication.providers.findIndex((provider) => provider.name === value.name);\n\n\t\t\t\tif (index == -1) {\n\t\t\t\t\tstate.authentication.providers.push(value);\n\t\t\t\t} else {\n\t\t\t\t\tstate.authentication.providers[index] = value;\n\t\t\t\t}\n\t\t\t},\n\t\t\tenable_auth_provider: (value) => {\n\t\t\t\tstate.authentication.providers.forEach((provider) => {\n\t\t\t\t\tprovider.enabled = provider.name === value;\n\t\t\t\t});\n\t\t\t},\n\t\t\tset_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t\tstate.errors.push(value);\n\t\t\t},\n\t\t\tdelete_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t},\n\t\t\tset_reviewing_project_errors: (value) => {\n\t\t\t\tstate.isReviewingErrors = value;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t}, initialState);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbarReducer.js","sourceRoot":"","sources":["../../src/reducers/toolbarReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAsB,MAAM,2BAA2B,CAAC;AAU/E,MAAM,YAAY,GAAiB;IAClC,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA8C,OAAO,CAC/E,CAAC,KAAmB,EAAE,MAA0B,EAAE,EAAE;IACnD,cAAc,CAAC,KAAK,CAAC,MAAM,EAAE;QAC5B,qBAAqB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YACjD,MAAM,sBAAsB,GAAG,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;YACvD,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;YAC3D,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC3C,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;YAC9D,KAAK,CAAC,YAAY,GAAG,sBAAsB,CAAC;QAC7C,CAAC;QACD,iBAAiB,EAAE,CAAC,KAAyB,EAAE,EAAE;YAChD,KAAK,CAAC,YAAY,GAAG,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\
|
|
1
|
+
{"version":3,"file":"toolbarReducer.js","sourceRoot":"","sources":["../../src/reducers/toolbarReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAsB,MAAM,2BAA2B,CAAC;AAU/E,MAAM,YAAY,GAAiB;IAClC,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA8C,OAAO,CAC/E,CAAC,KAAmB,EAAE,MAA0B,EAAE,EAAE;IACnD,cAAc,CAAC,KAAK,CAAC,MAAM,EAAE;QAC5B,qBAAqB,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YACjD,MAAM,sBAAsB,GAAG,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;YACvD,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;YAC3D,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC3C,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;YAC9D,KAAK,CAAC,YAAY,GAAG,sBAAsB,CAAC;QAC7C,CAAC;QACD,iBAAiB,EAAE,CAAC,KAAyB,EAAE,EAAE;YAChD,KAAK,CAAC,YAAY,GAAG,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5B,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { DashbarItem } from \"../types/dashbarTypes\";\nimport { ToolbarActions, ToolbarActionTypes } from \"../actions/toolbarActions\";\nimport { Reducer } from \"react\";\n\nexport type ToolbarState = {\n\tmyFoo: string;\n\tmyBar: string;\n\tdashbarItems: DashbarItem[];\n\tdashbarItemKeys: string[];\n};\n\nconst initialState: ToolbarState = {\n\tmyFoo: \"\",\n\tmyBar: \"\",\n\tdashbarItems: [],\n\tdashbarItemKeys: [],\n};\n\nexport const toolbarReducer: Reducer<ToolbarState, ToolbarActionTypes> = produce(\n\t(state: ToolbarState, action: ToolbarActionTypes) => {\n\t\tToolbarActions.match(action, {\n\t\t\tREORDER_DASHBAR_ITEMS: ({ oldIndex, newIndex }) => {\n\t\t\t\tconst dashbarItemsInNewOrder = [...state.dashbarItems];\n\t\t\t\tconst dashbarItemToMove = dashbarItemsInNewOrder[oldIndex];\n\t\t\t\tdashbarItemsInNewOrder.splice(oldIndex, 1);\n\t\t\t\tdashbarItemsInNewOrder.splice(newIndex, 0, dashbarItemToMove);\n\t\t\t\tstate.dashbarItems = dashbarItemsInNewOrder;\n\t\t\t},\n\t\t\tSET_DASHBAR_ITEMS: (items: Array<DashbarItem>) => {\n\t\t\t\tstate.dashbarItems = items?.length ? items : [];\n\t\t\t},\n\t\t\tTOOLBAR_ACTION1: ({ foo }) => {\n\t\t\t\tstate.myFoo = foo;\n\t\t\t},\n\t\t\tTOOLBAR_ACTION2: ({ bar }) => {\n\t\t\t\tstate.myBar = bar;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceReducer.js","sourceRoot":"","sources":["../../src/reducers/workspaceReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAwB,MAAM,6BAA6B,CAAC;AAUrF,MAAM,CAAC,MAAM,YAAY,GAAmB;IAC3C,eAAe,EAAE;QAChB,IAAI,EAAE,EAAE;KACR;IACD,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAkD,OAAO,CACrF,CAAC,KAAqB,EAAE,MAA4B,EAAE,EAAE;IACvD,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE;QAC9B,qBAAqB,EAAE,CAAC,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,EAAE;YAC1D,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;YAExC,IAAI,UAAU,EAAE;gBAEf,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;oBAC9C,OAAO,EAAE,IAAI,EAAE,CAAC;gBACjB,CAAC,CAAC,CAAC;aACH;QACF,CAAC;QACD,0CAA0C,EAAE,CAAC,YAAY,EAAE,EAAE;YAC5D,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\
|
|
1
|
+
{"version":3,"file":"workspaceReducer.js","sourceRoot":"","sources":["../../src/reducers/workspaceReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAwB,MAAM,6BAA6B,CAAC;AAUrF,MAAM,CAAC,MAAM,YAAY,GAAmB;IAC3C,eAAe,EAAE;QAChB,IAAI,EAAE,EAAE;KACR;IACD,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAkD,OAAO,CACrF,CAAC,KAAqB,EAAE,MAA4B,EAAE,EAAE;IACvD,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE;QAC9B,qBAAqB,EAAE,CAAC,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,EAAE;YAC1D,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;YAExC,IAAI,UAAU,EAAE;gBAEf,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;oBAC9C,OAAO,EAAE,IAAI,EAAE,CAAC;gBACjB,CAAC,CAAC,CAAC;aACH;QACF,CAAC;QACD,0CAA0C,EAAE,CAAC,YAAY,EAAE,EAAE;YAC5D,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EACD,YAAY,CACZ,CAAC","sourcesContent":["import produce from \"immer\";\nimport { WorkspaceActions, WorkspaceActionTypes } from \"../actions/workspaceActions\";\nimport { Workspace } from \"../types/workspaceTypes\";\nimport { Reducer } from \"react\";\n\nexport type WorkspaceState = {\n\tactiveWorkspace: Workspace;\n\tworkspaces: Workspace[];\n\tpromptOnSave: boolean;\n};\n\nexport const initialState: WorkspaceState = {\n\tactiveWorkspace: {\n\t\tname: \"\",\n\t},\n\tworkspaces: [],\n\tpromptOnSave: false,\n};\n\nexport const workspaceReducer: Reducer<WorkspaceState, WorkspaceActionTypes> = produce(\n\t(state: WorkspaceState, action: WorkspaceActionTypes) => {\n\t\tWorkspaceActions.match(action, {\n\t\t\tUPDATE_ALL_WORKSPACES: ({ activeWorkspace, workspaces }) => {\n\t\t\t\tstate.activeWorkspace = activeWorkspace;\n\n\t\t\t\tif (workspaces) {\n\t\t\t\t\t// We only care about the name returned by the workspaceService updates\n\t\t\t\t\tstate.workspaces = workspaces.map(({ name }) => {\n\t\t\t\t\t\treturn { name };\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\n\t\t\tUPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE: (promptOnSave) => {\n\t\t\t\tstate.promptOnSave = promptOnSave;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t},\n\tinitialState\n);\n"]}
|
package/react/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAc,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI/F,OAAO,EAAa,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAMhE,MAAM,MAAM,GACX,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,CAAC,IAAS,EAAE,EAAE,CACd,CAAC,MAAW,EAAE,EAAE;IAEf,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;IAGxF,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;AAEnG,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;AAInC,MAAM,CAAC,MAAM,WAAW,GAAoC,gBAAgB,CAAC;AAI7E,MAAM,CAAC,MAAM,WAAW,GAAqD,gBAAgB,CAAC","sourcesContent":["import { createStore as createReduxStore, applyMiddleware, Middleware } from \"redux\";\
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAc,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI/F,OAAO,EAAa,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAMhE,MAAM,MAAM,GACX,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,CAAC,IAAS,EAAE,EAAE,CACd,CAAC,MAAW,EAAE,EAAE;IAEf,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;IAGxF,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;AAEnG,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;AAInC,MAAM,CAAC,MAAM,WAAW,GAAoC,gBAAgB,CAAC;AAI7E,MAAM,CAAC,MAAM,WAAW,GAAqD,gBAAgB,CAAC","sourcesContent":["import { createStore as createReduxStore, applyMiddleware, Middleware } from \"redux\";\nimport { useDispatch as reduxUseDispatch, useSelector as reduxUseSelector } from \"react-redux\";\n// TODO this breaks finsemble. cannot read status of undefined? Wat\n// import FSBL from \"./fsbl\";\nimport { Actions } from \"./actions/rootActions\";\nimport { RootState, rootReducer } from \"./reducers/rootReducer\";\n\n/**\n * Logging middleware that logs each action (and the resulting state).\n * Adapted from https://redux.js.org/api/applymiddleware/\n */\nconst logger: Middleware =\n\t({ getState }) =>\n\t(next: any) =>\n\t(action: any) => {\n\t\t// Call the next dispatch method in the middleware chain.\n\t\tconst returnValue = next(action);\n\n\t\tFSBL.Clients.Logger.system.debug(\"Toolbar Action\", action, \"Current State\", getState());\n\t\t// This will likely be the action itself, unless\n\t\t// a middleware further in chain changed it.\n\t\treturn returnValue;\n\t};\n\nexport const createStore = () => createReduxStore(rootReducer, undefined, applyMiddleware(logger));\n\nexport const store = createStore();\n\n/** Strongly typed version of useDispatch from react-redux.\n * https://react-redux.js.org/api/hooks#usedispatch */\nexport const useDispatch: () => (action: Actions) => void = reduxUseDispatch;\n\n/** Strongly typed version of useSelector from react-redux.\n * https://react-redux.js.org/api/hooks#useselector */\nexport const useSelector: <T1>(selectorFn: (state: RootState) => T1) => T1 = reduxUseSelector;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedAppLauncherTypes.js","sourceRoot":"","sources":["../../src/types/advancedAppLauncherTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\
|
|
1
|
+
{"version":3,"file":"advancedAppLauncherTypes.js","sourceRoot":"","sources":["../../src/types/advancedAppLauncherTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nexport type FavoriteCategory = \"Workspace\" | \"Application\";\n\nexport type FavoriteDropdown = {\n\t/* The unique identifier of a favorite */\n\tid: string;\n\t/* Favorite category - the kind of items that can be favorited */\n\tcategory: FavoriteCategory;\n\t/* The display name of a favorite */\n\tname: string;\n\t/* The object containing the entire application */\n\tapp: object;\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\n\ticon: Icon;\n\t/* Function to setState. Used to update dropdown menu's state */\n\tinstance: any;\n};\n\nexport type FavoriteStar = {\n\t/* The unique identifier of a favorite */\n\tid: string;\n\t/* Favorite category - the kind of items that can be favorited */\n\tcategory: FavoriteCategory;\n\t/* The display name of a favorite */\n\tname: string;\n\t/* The object containing the entire application */\n\tapp: object;\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\n\ticon: Icon;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashbarTypes.js","sourceRoot":"","sources":["../../src/types/dashbarTypes.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from \"react\";\
|
|
1
|
+
{"version":3,"file":"dashbarTypes.js","sourceRoot":"","sources":["../../src/types/dashbarTypes.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from \"react\";\n\nexport type DashbarItem = {\n\tid: string;\n\ttitle: string;\n\turl: string;\n\twidth: number;\n\theight?: number;\n\tdisablePointerEvents?: boolean;\n\traiseIntentOptions?: RaiseIntentOptions;\n};\n\nexport type RaiseIntentOptions = {\n\tintent: string;\n\tcontext: any;\n\ttargetApp: any;\n};\n\nexport type Dashbar = {\n\tclassName?: string;\n\tchildren?: React.ReactNode;\n\twidgetTitleGenerator: Function;\n};\n\nexport type View = {\n\tid: Number;\n\tremove: Function;\n\tsetBounds: Function;\n\tbringToFront: Function;\n};\n\nexport type DashbarView = {\n\turl: string;\n\ttitle: string;\n\tview: View;\n\twidth: number;\n\traiseIntentOptions?: RaiseIntentOptions;\n\tbounds: {\n\t\ttop: number;\n\t\tleft: number;\n\t\twidth: number;\n\t\theight: number;\n\t};\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favoriteTypes.js","sourceRoot":"","sources":["../../src/types/favoriteTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\
|
|
1
|
+
{"version":3,"file":"favoriteTypes.js","sourceRoot":"","sources":["../../src/types/favoriteTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nexport type FavoriteCategory = \"Workspace\" | \"Application\";\n\nexport type Favorite = {\n\t/* The unique identifier of a favorite */\n\tid: string;\n\t/* Favorite category - the kind of items that can be favorited */\n\tcategory: FavoriteCategory;\n\t/* The display name of a favorite */\n\tname: string;\n\t/* The icon for the favorite item in the toolbar. This value should be a className */\n\ticon: Icon;\n};\n"]}
|
package/react/types/fdc3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fdc3.js","sourceRoot":"","sources":["../../src/types/fdc3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,2CAA2B,CAAA;IAC3B,2DAA2C,CAAA;IAC3C,mDAAmC,CAAA;AACpC,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB","sourcesContent":["export enum ResolveError {\
|
|
1
|
+
{"version":3,"file":"fdc3.js","sourceRoot":"","sources":["../../src/types/fdc3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,2CAA2B,CAAA;IAC3B,2DAA2C,CAAA;IAC3C,mDAAmC,CAAA;AACpC,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB","sourcesContent":["export enum ResolveError {\n\tNoAppsFound = \"NoAppsFound\",\n\tResolverUnavailable = \"ResolverUnavailable\",\n\tResolverTimeout = \"ResolverTimeout\",\n}\nexport interface AppMetadata {\n\t/** The unique app name that can be used with the open and raiseIntent calls. */\n\treadonly name: string;\n\n\t/** The unique application identifier located within a specific application directory instance. An example of an appId might be 'app@sub.root' */\n\treadonly appId?: string;\n\n\t/** The Version of the application. */\n\treadonly version?: string;\n\n\t/** A more user-friendly application title that can be used to render UI elements */\n\treadonly title?: string;\n\n\t/** A tooltip for the application that can be used to render UI elements */\n\treadonly tooltip?: string;\n\n\t/** A longer, multi-paragraph description for the application that could include markup */\n\treadonly description?: string;\n\n\t/** A list of icon URLs for the application that can be used to render UI elements */\n\treadonly icons?: Array<string>;\n\n\t/** A list of image URLs for the application that can be used to render UI elements */\n\treadonly images?: Array<string>;\n}\n\nexport type ResolutionList = {\n\tintent?: {\n\t\tname: string;\n\t\tdisplayName: string;\n\t};\n\tapps: AppMetadata[];\n\topenApps: OpenApps[];\n\tcontext?: ContextAny;\n};\n\nexport interface Context {\n\tid?: { [key: string]: string };\n\tname?: string;\n\ttype: string;\n}\n\nexport type ContextAny = Context & { [data: string]: any };\n\nexport type OpenApps = {\n\twindowName: string;\n\tmeta: AppMetadata;\n};\n\nexport type IntentTargetList = {\n\tresolutionList: ResolutionList[] | null;\n\t// the origin field is display by UI Resolver to indicate the source of the request\n\torigin?: string;\n\t// the remaining properties support the old interface and will be removed before merging into main -- TEMPORARY UNTIL NEW UI RESOLVER INTEGRATED\n\tapps: AppMetadata[];\n\topenApps: OpenApps[];\n\tintent?: {\n\t\tname: string;\n\t\tdisplayName: string;\n\t};\n};\n\nexport type ResolverResolution = {\n\tselectedApp?: AppMetadata;\n\twindowName?: string; // windowName must be set if and only if the selected app is already open; otherwise should be undefined\n\terror?: ResolveError; // if error set then the other properties will be ignored (i.e. the intent resolution failed)\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotkeyTypes.js","sourceRoot":"","sources":["../../src/types/hotkeyTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type HotkeyCombination = Array<string>;\
|
|
1
|
+
{"version":3,"file":"hotkeyTypes.js","sourceRoot":"","sources":["../../src/types/hotkeyTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type HotkeyCombination = Array<string>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconTypes.js","sourceRoot":"","sources":["../../src/types/iconTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type IconUrl = {\
|
|
1
|
+
{"version":3,"file":"iconTypes.js","sourceRoot":"","sources":["../../src/types/iconTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type IconUrl = {\n\timageType: \"url\" | \"fonticon\";\n\tpath: string;\n};\n\nexport type IconInitials = {\n\timageType: \"initials\";\n\tname: string;\n};\n\nexport type Icon = (IconUrl | IconInitials) & {\n\tcategory?: string;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkerTypes.js","sourceRoot":"","sources":["../../src/types/linkerTypes.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC","sourcesContent":["export type WindowIdentifier = {\
|
|
1
|
+
{"version":3,"file":"linkerTypes.js","sourceRoot":"","sources":["../../src/types/linkerTypes.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC","sourcesContent":["export type WindowIdentifier = {\n\t/**\n\t * The name of the physical HTML window, or a reference to a native window that was launched with Assimilation service\n\t */\n\twindowName: string;\n\t/**\n\t * The type of component\n\t */\n\tcomponentType?: string;\n\t/**\n\t * Optional uuid of a particular application process\n\t */\n\tuuid?: string;\n\twindowType?: string;\n};\n\n/**\n * The linker channel\n */\nexport type Channel = {\n\t/* The ID of the channel */\n\tid: number;\n\t/* The name of the channel */\n\tname: string;\n\t/* The color of the channel */\n\tcolor?: string;\n\t/* Whether the channel is selected for a certain component or not. If selected, this field will be set to 'true' */\n\tactive?: boolean;\n\t/* The color of the channel's border */\n\tborder?: string;\n};\n\n/** Number of allowed active channels to be rendered on the titlebar. Current max is 6. */\nexport const MAXIMUM_ALLOWED_ACTIVE_CHANNELS = 6;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchTypes.js","sourceRoot":"","sources":["../../src/types/searchTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\
|
|
1
|
+
{"version":3,"file":"searchTypes.js","sourceRoot":"","sources":["../../src/types/searchTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nexport type SearchProvider = {\n\tdisplayName: string;\n\tchannel: string;\n\tproviderActionTitle: string;\n};\nexport type SearchProviderResponse = {\n\tprovider: SearchProvider;\n\treturnCallback: string;\n\tsearchId: string;\n\tdata: SearchResults;\n};\n\nexport type SearchResultType = {\n\tactions: { name: string }[];\n\tdescription: string;\n\tdisplayName: string;\n\ticon: Icon;\n\tscore: number;\n\tname: string;\n\tprovider: FunctionStringCallback;\n\ttype: string;\n};\n\nexport type SearchQuery = string | null;\nexport type SearchResults = SearchResultType[] | null;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartDesktopDesignerTypes.js","sourceRoot":"","sources":["../../src/types/smartDesktopDesignerTypes.ts"],"names":[],"mappings":"AA+CA,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;AAChB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AASD,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;IACf,yFAAiB,CAAA;AAClB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;AACtB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"file":"smartDesktopDesignerTypes.js","sourceRoot":"","sources":["../../src/types/smartDesktopDesignerTypes.ts"],"names":[],"mappings":"AA+CA,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;AAChB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AASD,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;IACf,yFAAiB,CAAA;AAClB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;AACtB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import React from \"react\";\nimport { FinsembleIcon } from \"../components/common/FinsembleIcon\";\n\nexport type ApplicationSaveData = {\n\tname: string;\n\tdescription: string;\n\tpath: string;\n\turl: string;\n\tappType?: string;\n\ttags?: string[];\n\twidth: number;\n\theight: number;\n};\n\nexport type ProjectSaveData = {\n\tname: string;\n\tpath?: string;\n\tuser: UserSaveData;\n\texport: ExportSaveData;\n};\n\nexport type ExportSaveData = {\n\tauthor: string;\n\tcompanyName: string;\n\tdescription: string;\n} & ProjectAssets;\n\nexport type ProjectAssets = {\n\ttoolbarIcon: string;\n\tinstallerIcon: string;\n\ttaskbarIcon: string;\n\tsystemTrayIcon: string;\n\tsplashScreenImage: string;\n};\n\nexport type UserSaveData = {\n\tfirstName: string;\n\tlastName: string;\n\tcompany: string;\n\temail: string;\n};\n\nexport type SDServerInfo = {\n\tenabled: boolean;\n\tapplicationRoot?: string;\n};\n\nexport enum ProgressState {\n\tStarted = \"Started\",\n\tNotStarted = \"NotStarted\",\n\tFinished = \"Finished\",\n\tError = \"Error\",\n}\n\nexport type PublishProgress = {\n\tstep: string;\n\terror: string;\n\tpercentComplete: number;\n\tstate: ProgressState;\n};\n\nexport enum ApplicationSetupType {\n\tAPP_ADD_SIMPLE,\n\tAPP_ADD_ADVANCED,\n\tAPP_EDIT_SIMPLE,\n\tAPP_EDIT_ADVANCED,\n}\n\nexport enum AuthenticationType {\n\tOAUTH2 = \"OAUTH2\",\n\tPASSWORD = \"PASSWORD\",\n}\n\nexport type AuthenticationProvider = {\n\tname: string;\n\ttype: AuthenticationType;\n\tclient_id: string | null;\n\tsecret: string | null;\n\tenabled: boolean;\n\tredirect_uri: string;\n\tauthorization_endpoint?: string;\n\tscope?: string;\n\tnonce: boolean;\n};\n\nexport type ProjectError = {\n\tviewId: string;\n\tmessage: string;\n};\n\nexport type SmartDesktopDesignerState = {\n\tisGettingStarted: boolean;\n\tpreviousViewId: string | null;\n\tcurrentViewId: string | null;\n\tapps: AppDConfig[];\n\tnewAppId: string | null;\n\tcurrentAppId: string | null;\n\tcurrentAppSetupType: null | ApplicationSetupType;\n\tmenus: MenuType;\n\tprojectInfo: ProjectSaveData;\n\texport: {\n\t\tuuid: string | null;\n\t\tisPublishing: boolean;\n\t\tdeployInfo: DeployInfo | null;\n\t\tpublishError: string | null;\n\t};\n\tauthentication: {\n\t\tproviders: AuthenticationProvider[];\n\t};\n\terrors: ProjectError[];\n\tisReviewingErrors: boolean;\n};\n\nexport type ViewInfo = {\n\tid: string;\n\ticon: FinsembleIcon;\n\tname: string;\n\tcomponent: React.ReactNode;\n\tprops?: any;\n};\n\nexport type MenuObjType = {\n\tdisplayName: string;\n\tapplications: string[];\n\tposition: number;\n};\nexport type MenuType = {\n\t[key: string]: MenuObjType;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceTypes.js","sourceRoot":"","sources":["../../src/types/workspaceTypes.ts"],"names":[],"mappings":"","sourcesContent":["/**\
|
|
1
|
+
{"version":3,"file":"workspaceTypes.js","sourceRoot":"","sources":["../../src/types/workspaceTypes.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The complete data representation of a Workspace.\n */\nexport type Workspace = {\n\t/** A string uniquely identifying the workspace from other workspaces.\n\t *\n\t * NOTE: Does not differentiate between instances of the same workspace.\n\t * For that, see the `guid` property of the `ActiveWorkspace` type.\n\t */\n\tname: string;\n};\n"]}
|