@equinor/amplify-component-lib 9.16.0-beta.0 → 9.16.0-beta.1
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/dist/atoms/hooks/useAmplifyKit.js +1 -1
- package/dist/atoms/hooks/useFaqsInApplication.js +1 -1
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useOnScreenMultiple.js +1 -0
- package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
- package/dist/atoms/hooks/useRichTextImage.js +1 -0
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/hooks/useSelect.js +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/animation.js +1 -0
- package/dist/atoms/style/colors.js +1 -0
- package/dist/atoms/style/darkTokens.js +219 -0
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/style/lightTokens.js +158 -0
- package/dist/atoms/style/spacingTokens.js +50 -0
- package/dist/atoms/style/spacings.js +1 -0
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/date.js +1 -1
- package/dist/atoms/utils/map.js +1 -1
- package/dist/atoms/utils/richtext.js +1 -1
- package/dist/atoms/utils/size.js +1 -1
- package/dist/atoms/utils/skeleton.js +1 -0
- package/dist/atoms/utils/url.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.js +4 -4
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.js +1 -1
- package/dist/deprecated/OldStepper/OldStep.js +3 -3
- package/dist/deprecated/OldStepper/OldStepLine.js +2 -2
- package/dist/deprecated/OldStepper/OldStepper.js +3 -3
- package/dist/index.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +4 -4
- package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +1 -0
- package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
- package/dist/molecules/Badge/Badge.js +1 -1
- package/dist/molecules/Badge/Badge.styles.js +17 -0
- package/dist/molecules/Banner/Banner.js +1 -1
- package/dist/molecules/Banner/Banner.styles.js +3 -3
- package/dist/molecules/Button/Button.js +3 -3
- package/dist/molecules/Button/Button.utils.js +1 -0
- package/dist/molecules/Chip/Chip.d.ts +2 -2
- package/dist/molecules/Chip/Chip.js +1 -1
- package/dist/molecules/Chip/Chip.styles.js +65 -0
- package/dist/molecules/Chip/InteractiveChip.js +1 -0
- package/dist/molecules/Chip/ReadOnlyChip.js +1 -0
- package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
- package/dist/molecules/ContentMenu/ContentMenu.styles.js +52 -0
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/molecules/DatePicker/DatePicker.styles.js +63 -0
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/molecules/Dialog/Dialog.d.ts +3 -3
- package/dist/molecules/Dialog/Dialog.js +1 -1
- package/dist/molecules/Dialog/Dialog.styles.js +10 -10
- package/dist/molecules/Dialog/DialogAction.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/EquinorLogo/EquinorLogo.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +1 -0
- package/dist/molecules/FileProgress/CompactFileProgress.js +1 -0
- package/dist/molecules/FileProgress/CompactFileProgress.styles.js +100 -0
- package/dist/molecules/FileProgress/FileProgress.js +1 -1
- package/dist/molecules/FileProgress/FileProgress.utils.js +1 -0
- package/dist/molecules/FileProgress/RegularFileProgress.js +1 -0
- package/dist/molecules/FileProgress/RegularFileProgress.styles.js +35 -0
- package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +1 -0
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
- package/dist/molecules/FileUploadArea/UploadIllustration.js +1 -0
- package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
- package/dist/molecules/IconCell/IconCell.d.ts +2 -2
- package/dist/molecules/IconCell/IconCell.js +1 -1
- package/dist/molecules/IconCell/IconCell.styles.js +26 -26
- package/dist/molecules/IconCell/IconCell.utils.js +7 -7
- package/dist/molecules/InfoElement/CopyText.js +41 -0
- package/dist/molecules/InfoElement/InfoElement.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/ListItem/ListItem.js +13 -13
- package/dist/molecules/ListItem/ListItem.utils.js +1 -0
- package/dist/molecules/OptionDrawer/OptionDrawer.js +1 -1
- package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +36 -0
- package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +1 -0
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/OptionalTooltip/OptionalTooltip.js +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.js +6 -6
- package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
- package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.js +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.styles.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +2 -2
- package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +2 -2
- package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +23 -23
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +5 -5
- package/dist/molecules/RichTextEditor/index.js +1 -1
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Search/Search.js +8 -8
- package/dist/molecules/Select/AddTagItem.js +1 -0
- package/dist/molecules/Select/ComboBox/ComboBox.js +1 -1
- package/dist/molecules/Select/GroupedSelectMenu.js +1 -0
- package/dist/molecules/Select/ListSelectMenu.js +1 -0
- package/dist/molecules/Select/Select.js +1 -0
- package/dist/molecules/Select/Select.styles.d.ts +5 -5
- package/dist/molecules/Select/Select.styles.js +61 -61
- package/dist/molecules/Select/Select.utils.js +1 -0
- package/dist/molecules/Select/SelectMenuItem.js +1 -0
- package/dist/molecules/Select/SelectMenuItem.utils.js +1 -0
- package/dist/molecules/Select/SingleSelect/SingleSelect.js +1 -1
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
- package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
- package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
- package/dist/molecules/SelectionControls/SelectionControls.styles.js +24 -24
- package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
- package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
- package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +9 -9
- package/dist/molecules/Skeleton/Skeleton.styles.js +1 -0
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
- package/dist/molecules/Skeleton/SkeletonField.js +8 -0
- package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
- package/dist/molecules/Stepper/Step/Step.js +5 -5
- package/dist/molecules/Stepper/Step/StepIcon.js +19 -0
- package/dist/molecules/Stepper/StepLine.js +2 -2
- package/dist/molecules/Stepper/Stepper.js +4 -4
- package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +25 -0
- package/dist/molecules/Stepper/SubTitle/SubTitle.js +7 -0
- package/dist/molecules/Tabs/Tab.js +1 -1
- package/dist/molecules/Tabs/Tab.styles.js +22 -22
- package/dist/molecules/Tabs/Tabs.js +4 -4
- package/dist/molecules/TextField/TextField.js +74 -0
- package/dist/molecules/Waves/Waves.js +1 -1
- package/dist/molecules/index.d.ts +2 -2
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.js +6 -6
- package/dist/organisms/Faq/Category/Category.js +9 -0
- package/dist/organisms/Faq/Category/Question.js +22 -0
- package/dist/organisms/Faq/CategorySkeleton.js +29 -0
- package/dist/organisms/Faq/Faq.js +1 -1
- package/dist/organisms/Faq/Faq.styles.js +3 -3
- package/dist/organisms/Faq/Header.js +7 -7
- package/dist/organisms/FieldSelector/ChangingField.js +8 -8
- package/dist/organisms/FieldSelector/FieldSelector.js +3 -3
- package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +18 -18
- package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +6 -6
- package/dist/organisms/Filter/AutoCompleteMenu.js +10 -0
- package/dist/organisms/Filter/AutoCompleteText.js +11 -0
- package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
- package/dist/organisms/Filter/Filter.js +1 -1
- package/dist/organisms/Filter/Filter.styles.js +39 -39
- package/dist/organisms/Filter/Filter.utils.js +1 -0
- package/dist/organisms/Filter/QuickFilter.js +1 -1
- package/dist/organisms/Filter/SortMenu.js +2 -2
- package/dist/organisms/PageTitle/PageTitle.js +1 -1
- package/dist/organisms/ReleaseNote/MetaTags.js +10 -0
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
- package/dist/organisms/ReleaseNote/ReleaseNote.utils.js +1 -1
- package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
- package/dist/organisms/SideBar/CreateItem.js +1 -0
- package/dist/organisms/SideBar/CreateItem.styles.js +33 -0
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -0
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +48 -0
- package/dist/organisms/SideBar/MenuItem/MenuItem.js +1 -0
- package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +37 -0
- package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +1 -0
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/SideBar.js +1 -0
- package/dist/organisms/SideBar/SideBar.styles.js +41 -0
- package/dist/organisms/SideBar/ToggleOpen.js +1 -0
- package/dist/organisms/SideBar/ToggleOpen.styles.js +16 -0
- package/dist/organisms/SideBar/index.js +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Action.js +1 -1
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/Description.js +1 -1
- package/dist/organisms/Status/Illustration.constants.js +1 -0
- package/dist/organisms/Status/Illustration.js +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.js +4 -4
- package/dist/organisms/Status/Status.js +4 -4
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/Title.js +1 -1
- package/dist/organisms/Status/collections/ApiResponseError.js +1 -1
- package/dist/organisms/Status/collections/BadRequest.js +2 -2
- package/dist/organisms/Status/collections/GenericError.js +1 -1
- package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
- package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
- package/dist/organisms/Status/collections/PageNotFound.js +2 -2
- package/dist/organisms/Status/collections/ServerError.js +2 -2
- package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.styles.js +32 -32
- package/dist/organisms/TableOfContents/TableOfContentsItem.js +4 -4
- package/dist/organisms/Template/Template.d.ts +3 -3
- package/dist/organisms/Template/Template.js +7 -7
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroup.js +12 -12
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +20 -20
- package/dist/organisms/TopBar/Account/Account.js +1 -1
- package/dist/organisms/TopBar/Account/Account.styles.js +24 -24
- package/dist/organisms/TopBar/Account/AccountAvatar.js +7 -7
- package/dist/organisms/TopBar/Account/AccountButton.js +5 -5
- package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.constants.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +1 -0
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +16 -16
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCanImpersonate.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +1 -0
- package/dist/organisms/TopBar/Account/RoleChips.js +1 -1
- package/dist/organisms/TopBar/Account/RoleList.js +7 -7
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/Actions.js +3 -3
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.js +24 -24
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +24 -24
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
- package/dist/organisms/TopBar/Guidelines/Item.js +3 -3
- package/dist/organisms/TopBar/Guidelines/Section.js +7 -7
- package/dist/organisms/TopBar/Notifications/FilterOptions.js +6 -6
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ExperienceDue3Weeks.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/MergedBranchOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToBePublished.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReviewQANotification.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js +9 -9
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +41 -0
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +7 -7
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Title.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +7 -0
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +79 -0
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +8 -8
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +1 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +7 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +1 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +19 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +1 -0
- package/dist/organisms/TopBar/Resources/ResourceMenuItem.js +7 -7
- package/dist/organisms/TopBar/Resources/Resources.js +4 -4
- package/dist/organisms/TopBar/Settings.js +11 -11
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/TopBar/TopBar.styles.js +22 -22
- package/dist/organisms/TopBar/TopBarMenu.js +4 -4
- package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
- package/dist/organisms/TopBar/Tutorials/TutorialItem.js +8 -8
- package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
- package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +6 -6
- package/dist/organisms/index.js +1 -1
- package/dist/providers/AuthProvider/AuthProvider.js +1 -0
- package/dist/providers/AuthProvider/AuthProviderInner.js +1 -0
- package/dist/providers/LoadingProvider.js +1 -1
- package/dist/providers/ReleaseNotesProvider.js +1 -1
- package/dist/providers/ReleaseNotesProvider.utils.js +1 -0
- package/dist/providers/SideBarProvider.js +1 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.js +1 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +41 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +1 -0
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.utils.js +1 -0
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +1 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +1 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +24 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +20 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +75 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +1 -0
- package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +1 -0
- package/package.json +2 -2
- package/dist/atoms/hooks/index.js +0 -1
- package/dist/providers/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{formatRelativeDateTime as t}from"../../../../atoms/utils/date.js";import{ApplicationIcon as n}from"../../../../molecules/ApplicationIcon/ApplicationIcon.js";import{OptionalTooltip as r}from"../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as i}from"../../../../molecules/ProfileAvatar/ProfileAvatar.js";import{NotificationsTypes as a}from"./Notifications.types.js";import{DefaultNotification as o}from"./NotificationElements/DefaultNotification.js";import{ExperienceDue3Weeks as s}from"./NotificationElements/ExperienceDue3Weeks.js";import{MergedBranchOrca as c}from"./NotificationElements/MergedBranchOrca.js";import{ReadyToBePublished as l}from"./NotificationElements/ReadyToBePublished.js";import{ReadyToReportNotification as u}from"./NotificationElements/ReadyToReportNotification.js";import{RequestChangeOrca as d}from"./NotificationElements/RequestChangeOrca.js";import{RequestReviewOrca as f}from"./NotificationElements/RequestReviewOrca.js";import{ReviewQANotification as p}from"./NotificationElements/ReviewQANotification.js";import{Content as m,DeleteButton as h,Divider as g,Dot as _,FooterContainer as v,GridContainer as y,TopContainer as b,UserInformation as x,Wrapper as S}from"./NotificationTemplate.style.js";import{useMemo as C}from"react";import{Icon as w,Typography as T}from"@equinor/eds-core-react";import{Fragment as E,jsx as D,jsxs as O}from"react/jsx-runtime";import{delete_to_trash as k}from"@equinor/eds-icons";const{colors:A}=e,j=e=>{let{user:j,notificationType:M,applicationName:N,Read:P,field:F,time:I,footer:L=!0,onDelete:R}=e,z=C(()=>{switch(M){case a.READY_TO_REPORT:return D(u,{...e});case a.DEFAULT:return D(o,{...e});case a.REQUESTED_REVIEW:return D(f,{...e});case a.REQUESTED_CHANGES:return D(d,{...e});case a.MERGE_BRANCH:return D(c,{...e});case a.QA_COMMENTS:return D(p,{...e});case a.EXPERIENCE_READY_TO_PUBLISH:return D(l,{...e});case a.DUE_3_WEEKS:return D(s,{...e})}},[e,M]);return O(E,{children:[D(S,{children:O(y,{children:[O(b,{children:[j?O(x,{children:[!P&&D(_,{}),D(i,{url:j?.image,name:j?.shortName,size:`large`}),O(`div`,{children:[D(T,{color:A.text.static_icons__default.rgba,group:`heading`,variant:`h6`,children:j?.displayName}),D(T,{group:`paragraph`,variant:`caption`,color:A.text.static_icons__secondary.rgba,children:j?.shortName})]})]}):O(x,{$systemUser:!0,children:[!P&&D(_,{"data-testid":`unread-dot-system`}),D(n,{name:N}),D(T,{group:`heading`,variant:`h6`,children:N})]}),D(T,{group:`navigation`,variant:`label`,color:P?A.text.static_icons__secondary.rgba:A.infographic.substitute__blue_overcast.rgba,"data-testid":`notification-date`,children:t(I)})]}),D(m,{children:z}),L&&O(v,{children:[O(`div`,{style:{display:`flex`,gap:`5px`},children:[D(T,{group:`navigation`,variant:`label`,color:A.text.static_icons__tertiary.rgba,children:N}),D(T,{group:`navigation`,variant:`label`,color:A.text.static_icons__tertiary.rgba,children:F})]}),D(r,{title:`Delete notification`,children:D(h,{onClick:R,variant:`ghost_icon`,children:D(w,{data:k})})})]})]})}),D(g,{})]})};export{j as NotificationTemplate};
|
package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import
|
|
1
|
+
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{Button as t,Divider as n}from"@equinor/eds-core-react";import r from"styled-components";const{spacings:i,colors:a}=e,o=r.div`
|
|
2
2
|
padding: ${i.comfortable.medium};
|
|
3
3
|
//border-bottom: 1px solid ${a.ui.background__medium.rgba};
|
|
4
4
|
&:hover {
|
|
5
5
|
background: #f2f2f2;
|
|
6
6
|
}
|
|
7
|
-
`,s=
|
|
7
|
+
`,s=r.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
grid-column: span 3;
|
|
11
11
|
padding: ${i.comfortable.small};
|
|
12
12
|
cursor: pointer;
|
|
13
|
-
`,c=
|
|
13
|
+
`,c=r.div`
|
|
14
14
|
display: grid;
|
|
15
15
|
grid-template-columns: 10px 1fr;
|
|
16
16
|
grid-gap: ${i.comfortable.medium_small};
|
|
17
17
|
align-items: center;
|
|
18
|
-
`,l=
|
|
18
|
+
`,l=r.span`
|
|
19
19
|
width: 10px;
|
|
20
20
|
height: 10px;
|
|
21
21
|
border-radius: 50%;
|
|
22
22
|
background-color: ${a.infographic.substitute__blue_overcast.rgba};
|
|
23
23
|
position: relative;
|
|
24
|
-
`,u=
|
|
24
|
+
`,u=r.div`
|
|
25
25
|
display: grid;
|
|
26
26
|
grid-template-columns: auto 1fr;
|
|
27
27
|
align-items: start;
|
|
28
28
|
gap: ${i.comfortable.medium_small};
|
|
29
29
|
justify-items: end;
|
|
30
30
|
grid-column: span 3;
|
|
31
|
-
`,d=
|
|
31
|
+
`,d=r.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: row;
|
|
34
34
|
align-items: ${({$systemUser:e})=>e?`flex-start`:`center`};
|
|
35
35
|
gap: ${i.comfortable.small};
|
|
36
|
-
`,f=
|
|
36
|
+
`,f=r.div`
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: row;
|
|
39
39
|
gap: ${i.comfortable.medium_small};
|
|
@@ -42,12 +42,12 @@ import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/ba
|
|
|
42
42
|
justify-content: space-between;
|
|
43
43
|
height: 40px;
|
|
44
44
|
padding: 0 ${i.comfortable.small};
|
|
45
|
-
`,p=t
|
|
45
|
+
`,p=r(t)`
|
|
46
46
|
display: none;
|
|
47
47
|
${c}:hover & {
|
|
48
48
|
display: initial;
|
|
49
49
|
}
|
|
50
|
-
`,m=
|
|
50
|
+
`,m=r(n)`
|
|
51
51
|
display: flex;
|
|
52
52
|
margin: 0 ${i.comfortable.medium_small};
|
|
53
53
|
`;export{s as Content,p as DeleteButton,m as Divider,l as Dot,f as FooterContainer,c as GridContainer,u as TopContainer,d as UserInformation,o as Wrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{StatusEnum as e}from"./Feedback.types.js";const t=`serviceNowIncident`,
|
|
1
|
+
import{StatusEnum as e}from"./Feedback.types.js";const t=1048575,n=`serviceNowIncident`,r=`slackPostMessage`,i=`slackFileUpload`,a=`.equinor.com`,o=`There was an error with the request`,s=1e3*60*60,c={feedbackContent:{title:``,description:``,url:``,urgency:``},serviceNowRequestResponse:{status:e.idle}};export{c as DEFAULT_FEEDBACK_LOCAL_STORAGE,o as DEFAULT_REQUEST_ERROR_MESSAGE,a as EQUINOR_EMAIL_SUFFIX,t as MAX_FILE_SIZE_BYTES,s as ONE_HOUR_IN_MS,n as SERVICE_NOW_QUERY_KEY,i as SLACK_FILE_QUERY_KEY,r as SLACK_POST_QUERY_KEY};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{colors as e}from"../../../../atoms/style/colors.js";import{spacings as t}from"../../../../atoms/style/spacings.js";import{shape as n}from"../../../../atoms/style/index.js";import{Typography as r}from"@equinor/eds-core-react";import i from"styled-components";const a=i.div`
|
|
2
|
+
width: 700px;
|
|
3
|
+
height: fit-content;
|
|
4
|
+
padding: 0 ${t.medium} ${t.medium} ${t.medium};
|
|
5
|
+
`,o=i.div`
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: 1fr 1fr;
|
|
8
|
+
gap: ${t.medium};
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
`,s=i.div`
|
|
12
|
+
grid-column: 1/3;
|
|
13
|
+
display: flex;
|
|
14
|
+
gap: ${t.small};
|
|
15
|
+
height: fit-content;
|
|
16
|
+
align-self: flex-end;
|
|
17
|
+
align-items: center;
|
|
18
|
+
background-color: ${e.ui.background__info.rgba};
|
|
19
|
+
padding: ${t.medium_small};
|
|
20
|
+
border-radius: ${n.button.borderRadius};
|
|
21
|
+
`,c=i.div`
|
|
22
|
+
grid-column: 1/3;
|
|
23
|
+
display: grid;
|
|
24
|
+
grid-template-columns: 24px 1fr;
|
|
25
|
+
gap: ${t.small};
|
|
26
|
+
height: fit-content;
|
|
27
|
+
align-items: center;
|
|
28
|
+
background-color: ${e.ui.background__warning.rgba};
|
|
29
|
+
padding: ${t.medium_small};
|
|
30
|
+
border-radius: ${n.button.borderRadius};
|
|
31
|
+
`,l=i(r)`
|
|
32
|
+
grid-column: 1/3;
|
|
33
|
+
`,u=i.div`
|
|
34
|
+
grid-column: 1/3;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
> div {
|
|
38
|
+
display: flex;
|
|
39
|
+
gap: ${t.medium};
|
|
40
|
+
}
|
|
41
|
+
`;export{u as Actions,o as Container,a as ContentWrapper,c as LockedFormWarning,l as ReportLocationText,s as UploadInfo};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{
|
|
2
|
-
${e.urgency?
|
|
3
|
-
${t?
|
|
1
|
+
import{EnvironmentType as e}from"../../../../atoms/enums/Environment.js";import{environment as t}from"../../../../atoms/utils/auth_environment.js";import{formatDate as n}from"../../../../atoms/utils/date.js";import{capitalize as r}from"../../../../atoms/utils/string.js";import{Browsers as i,FeedbackType as a,UrgencyOption as o}from"./Feedback.types.js";import{ServiceNowUrgency as s}from"@equinor/subsurface-app-management";const{getAppName:c,getEnvironmentName:l}=t,u=e=>e.urgency===o.NO_IMPACT?`:large_yellow_circle:`:e.urgency===o.IMPEDES?`:large_orange_circle:`:`:red_circle:`,d=e=>{let t=new FileReader;return new Promise((n,r)=>{t.onerror=()=>{t.abort(),r(new DOMException(`Problem parsing input file.`))},t.onload=()=>{n(t.result)},t.readAsDataURL(e)})},f=e=>{switch(e){case o.UNABLE:return s.CRITICAL;case o.IMPEDES:return s.MODERATE;case o.NO_IMPACT:return s.NORMAL}},p=(e,t)=>{let n=`Url location of bug: ${e.url} \n`,i=`Severity of bug: ${e.urgency} \n`,a=`Field: ${r(t??``)} \n`,o=`Browser: ${_()} \n`;return`${e.url?n:``}
|
|
2
|
+
${e.urgency?i:``}
|
|
3
|
+
${t?a:``}
|
|
4
4
|
${o}
|
|
5
|
-
${e.description} \n \n User agent string: ${navigator.userAgent}`},
|
|
6
|
-
`+c(import.meta.env.VITE_NAME)},{type:`mrkdwn`,text:`*User* \n ${
|
|
7
|
-
`+
|
|
8
|
-
`+e.description}}];return
|
|
5
|
+
${e.description} \n \n User agent string: ${navigator.userAgent}`},m=(t,n)=>{let r=n?`selfservice?id=ticket&table=incident&sys_id=`:`now/nav/ui/classic/params/target/incident.do%3Fsys_id%3D`;return`https://equinor${l(import.meta.env.VITE_ENVIRONMENT_NAME)===e.PRODUCTION?``:`test`}.service-now.com/${r}${t}`},h=()=>{if(navigator.userAgent.includes(i.EDGE_SHORT))return i.EDGE;if(navigator.userAgent.includes(i.CHROME))return i.CHROME;if(navigator.userAgent.includes(i.SAFARI))return i.SAFARI;if(navigator.userAgent.includes(i.FIREFOX))return i.FIREFOX},g=e=>{let t=e;e===i.EDGE&&(t=i.EDGE_SHORT);let n=RegExp(`${t}/(\\d+(?:\\.\\d+)+)`);return navigator.userAgent.match(n)?.[1]},_=()=>{let e=h();return e?`${e} (${g(e)})`:`Not found`},v=(e,t,i,o,s)=>{let l=i===a.BUG?`:bug: Bug report`:`:bulb: Suggestion`,d=[],f=[];f.push({type:`mrkdwn`,text:`*Title* \n ${e.title}`}),d.push({type:`mrkdwn`,text:` ${n(new Date,{format:`DD. month YYYY`})}`}),e.url&&d.push({type:`mrkdwn`,text:`*<${e.url}|Error URL>*`}),e.urgency&&f.push({type:`mrkdwn`,text:`*Severity* \n ${u(e)} ${e.urgency}`});let p=[{type:`header`,text:{type:`plain_text`,text:l,emoji:!0}},{type:`section`,fields:d},{type:`section`,fields:f},{type:`section`,fields:[{type:`mrkdwn`,text:`*Application*
|
|
6
|
+
`+c(import.meta.env.VITE_NAME)},{type:`mrkdwn`,text:`*User* \n ${o}`}]},{type:`section`,fields:[{type:`mrkdwn`,text:`*Browser*
|
|
7
|
+
`+_()},{type:`mrkdwn`,text:`*Field* \n ${r(t??`Not found`)}`}]},{type:`section`,text:{type:`mrkdwn`,text:`*Description*
|
|
8
|
+
`+e.description}}];return s&&p.push({type:`section`,text:{type:`mrkdwn`,text:`*<${m(s)}|:link: Click to open the ticket in Service Now>*`}}),p.push({type:`divider`}),JSON.stringify(p)};export{p as createServiceNowDescription,m as createServiceNowUrl,v as createSlackMessage,f as getUrgencyNumber,d as readUploadedFileAsText};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../../../../atoms/style/spacings.js";import{TextField as n}from"../../../../../molecules/TextField/TextField.js";import{FeedbackType as r}from"../Feedback.types.js";import{useFeedbackContext as i}from"../hooks/useFeedbackContext.js";import{LockedInputTooltip as a}from"./LockedInputTooltip.js";import{useMemo as o}from"react";import{Typography as s}from"@equinor/eds-core-react";import c from"styled-components";import{jsx as l,jsxs as u}from"react/jsx-runtime";const{colors:d}=e,f=c.div`
|
|
2
2
|
grid-column: 1/3;
|
|
3
3
|
display: flex;
|
|
4
|
-
gap: ${
|
|
4
|
+
gap: ${t.medium};
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
textarea {
|
|
7
7
|
color: ${d.text.static_icons__default.rgba};
|
|
8
8
|
}
|
|
9
|
-
`,p=()=>{let{serviceNowSuccess:e,feedbackContent:
|
|
9
|
+
`,p=()=>{let{serviceNowSuccess:e,feedbackContent:t,selectedType:c,updateFeedback:p}=i(),m=o(()=>e?d.interactive.disabled__text.rgba:d.text.static_icons__default.rgba,[e]);return u(f,{children:[c===r.BUG&&u(`div`,{children:[l(s,{group:`input`,variant:`text`,color:m,children:`What is the specific bug?`}),l(s,{group:`input`,variant:`text`,color:m,children:`What are the expected results?`}),l(s,{group:`input`,variant:`text`,color:m,children:`How can we reproduce the issue?`}),l(s,{group:`input`,variant:`text`,color:m,children:`Is there a known workaround?`})]}),l(a,{show:e,children:l(n,{id:`feedback-description`,label:`Description`,disabled:e,meta:`Required`,value:t.description,placeholder:c===r.BUG?`Describe the bug, including expectations, reproductions steps, any workarounds...`:`Describe the feature. What would be the value for you?`,rows:4,onChange:e=>p(`description`,e.currentTarget.value),multiline:!0})})]})};export{p as Description};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FeedbackType as e}from"../Feedback.types.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{UploadFile as n}from"./UploadFile/UploadFile.js";import{Description as r}from"./Description.js";import{Severity as i}from"./Severity.js";import{Title as a}from"./Title.js";import{Url as o}from"./Url.js";import{
|
|
1
|
+
import{FeedbackType as e}from"../Feedback.types.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{UploadFile as n}from"./UploadFile/UploadFile.js";import{Description as r}from"./Description.js";import{Severity as i}from"./Severity.js";import{Title as a}from"./Title.js";import{Url as o}from"./Url.js";import{Actions as s,Container as c,ContentWrapper as l,LockedFormWarning as u,ReportLocationText as d,UploadInfo as f}from"../Feedback.styles.js";import{useMemo as p}from"react";import{Button as m,Icon as h,Typography as g}from"@equinor/eds-core-react";import{Fragment as _,jsx as v,jsxs as y}from"react/jsx-runtime";import{info_circle as b}from"@equinor/eds-icons";const x=()=>{let{isWrongDomain:x,selectedType:S,resetForm:C,feedbackContent:w,onDialogClose:T,serviceNowSuccess:E,handleSave:D,requestIsLoading:O}=t(),k=p(()=>w.title.length>0&&w.description.length>0&&!x,[w.title.length,w.description.length,x]);return v(l,{children:y(c,{children:[v(a,{}),S===e.BUG&&y(_,{children:[v(i,{}),v(o,{})]}),v(r,{}),y(f,{children:[v(h,{data:b}),v(g,{children:`Please make sure the uploaded files do not contain confidential or personal information`})]}),v(n,{}),v(d,{children:S===e.BUG?`Bug reports are sent to Service Now and to the development team directly`:`Feature suggestions are sent to the development team directly`}),E&&y(u,{children:[v(h,{data:b}),v(g,{children:`The report has already been sent to service now, and part of the form is locked, so you can retry sending it to the development team. Otherwise you can reset the form with the "Reset form" button in the bottom left corner.`})]}),y(s,{children:[v(m,{variant:`ghost`,onClick:C,"data-testid":`reset-form-button`,children:`Reset form`}),y(`div`,{children:[v(m,{variant:`ghost`,onClick:T,children:`Cancel`}),v(m,{onClick:D,disabled:!k||O,"data-testid":`submit-button`,children:E?`Send again`:`Send`})]})]})]})})};export{x as FeedbackForm};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{OptionalTooltip as e}from"../../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{forwardRef as t,useMemo as n}from"react";import r from"styled-components";import{jsx as i}from"react/jsx-runtime";const a=r(e)`
|
|
2
2
|
white-space: break-spaces;
|
|
3
3
|
text-align: center;
|
|
4
4
|
width: 400px;
|
|
5
|
-
`,o=
|
|
5
|
+
`,o=t(({show:e,children:t},r)=>{let o=n(()=>e?`The report was successfully submitted to ServiceNow.
|
|
6
6
|
This field is locked so you can retry sending it to the development team.
|
|
7
|
-
To reset the form, use the button in the bottom left corner.`:``,[e]);return
|
|
7
|
+
To reset the form, use the button in the bottom left corner.`:``,[e]);return i(a,{title:o,children:i(`div`,{ref:r,children:t})})});o.displayName=`LockedInputTooltip`;export{o as LockedInputTooltip};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{SingleSelect as e}from"../../../../../molecules/Select/SingleSelect/SingleSelect.js";import{UrgencyOption as t}from"../Feedback.types.js";import{useFeedbackContext as n}from"../hooks/useFeedbackContext.js";import{LockedInputTooltip as r}from"./LockedInputTooltip.js";import i from"styled-components";import{jsx as a}from"react/jsx-runtime";const o=i.div`
|
|
2
2
|
grid-column: 1/2;
|
|
3
|
-
`,s=Object.values(
|
|
3
|
+
`,s=Object.values(t).map(e=>({value:e,label:e})),c=()=>{let{serviceNowSuccess:t,feedbackContent:i,updateFeedback:c}=n(),l=i.urgency?{value:i.urgency,label:i.urgency}:void 0;return a(o,{children:a(r,{show:t,children:a(e,{items:s,label:`Severity`,meta:`optional`,clearable:!1,disabled:t,value:l,placeholder:`Select error impact`,onSelect:e=>{c(`urgency`,e.value)}})})})};export{c as Severity};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{TextField as e}from"../../../../../molecules/TextField/TextField.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{LockedInputTooltip as n}from"./LockedInputTooltip.js";import r from"styled-components";import{jsx as i}from"react/jsx-runtime";const a=r.div`
|
|
2
2
|
grid-column: 1/3;
|
|
3
|
-
`,o=()=>{let{serviceNowSuccess:
|
|
3
|
+
`,o=()=>{let{serviceNowSuccess:r,feedbackContent:o,updateFeedback:s}=t();return i(a,{children:i(n,{show:r,children:i(e,{id:`feedback-title`,label:`Title`,meta:`Required`,disabled:r,value:o.title,placeholder:`Write a title...`,onChange:e=>s(`title`,e.currentTarget.value)})})})};export{o as Title};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{tokens as e}from"../../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{readUploadedFileAsText as t}from"../../Feedback.utils.js";import{CloseButton as n,FileTooltip as r,ImageWrapper as i,Rejection as a}from"./UploadFile.styles.js";import{useEffect as o,useMemo as s,useState as c}from"react";import{Icon as l}from"@equinor/eds-core-react";import u from"styled-components";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{clear as p,error_outlined as m}from"@equinor/eds-icons";const{colors:h}=e,g=u.div`
|
|
2
|
+
border-radius: 4px;
|
|
3
|
+
margin: 10px 0;
|
|
4
|
+
width: 82px;
|
|
5
|
+
height: 82px;
|
|
6
|
+
position: relative;
|
|
7
|
+
`,_=e=>{let[u,_]=c(``),{error:v,onDelete:y}=e,b=s(()=>{if(!v)return;let t=e.errors[0].code,n=e.errors[0].message;return t===`file-too-large`?n=n.replace(/(\d+ bytes)/,`1MB`):t===`file-invalid-type`&&(n=n.replace(/(\w+\/\w+,)/g,``).replaceAll(`,`,`, `)),`${e.errors[0].code} \n${n}`},[v,e]),x=s(()=>e.file.name,[v,e]),S=s(()=>v?e.errors.find(e=>e.code.includes(`invalid`))?`Invalid file type`:e.errors.find(e=>e.code.includes(`large`))?`Invalid file size`:`Error`:``,[v,e]);return o(()=>{v||(async e=>{let n=await t(e);_(n)})(e.file)},[v,e]),f(g,{children:[d(r,{title:`${x}${v?`: `+b:``}`,children:v?f(a,{children:[d(l,{data:m,color:h.interactive.warning__text.rgba}),d(`div`,{children:S})]}):d(i,{children:d(`img`,{src:u,alt:`Uploaded file: ${x}`})})}),d(n,{"data-testid":`attachment-delete-button`,onClick:y,children:d(l,{color:h.text.static_icons__tertiary.rgba,data:p,size:24})})]})};export{_ as ImageFile};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{FileUploadArea as e}from"../../../../../../molecules/FileUploadArea/FileUploadArea.js";import{MAX_FILE_SIZE_BYTES as t}from"../../Feedback.const.js";import{useFeedbackContext as n}from"../../hooks/useFeedbackContext.js";import{FileUploadAreaWrapper as r,Title as i}from"./UploadFile.styles.js";import{ImageFile as a}from"./ImageFile.js";import{useState as o}from"react";import s from"styled-components";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=s.div`
|
|
2
2
|
grid-column: 1/3;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
`;function d(e,t){if(e.length===0||e.length===1)return e;for(let n=0;n<e.length;n++)for(let r=n+1;r<e.length;r++)t(e[n],e[r])&&e.splice(n,1);return e}const f=()=>{let{feedbackAttachments:
|
|
5
|
+
`;function d(e,t){if(e.length===0||e.length===1)return e;for(let n=0;n<e.length;n++)for(let r=n+1;r<e.length;r++)t(e[n],e[r])&&e.splice(n,1);return e}const f=()=>{let{feedbackAttachments:s,setFeedbackAttachments:f}=n(),[p,m]=o([]),h=(e,t)=>{if(e.length>=1){let t=e.filter(e=>!e.name.startsWith(`.`));new FileReader().readAsDataURL(e[0]);let n=[];s&&n.push(...s);let r=[...t,...n],i=d(r,(e,t)=>e.name===t.name&&e.size===t.size);f(i)}m(t)},g=e=>{let t=s?.filter(t=>t.name!==e.name&&t.size!==e.size)??[];f(t)},_=e=>{m(p?.filter(t=>t.file.name===e.file.name&&t.file.size!==e.file.size)??[])};return l(u,{children:[c(i,{group:`input`,variant:`label`,children:`Attachments (.jpg, .jpeg, .png) (max 1 MB)`}),l(r,{children:[c(e,{maxSize:t,onDrop:h,accept:{"image/jpeg":[`.jpeg`,`.jpg`],"image/png":[`.png`]},size:`small`}),s?.map(e=>c(a,{onDelete:()=>g(e),file:e},e.name+e.size)),p.map(e=>c(a,{...e,onDelete:()=>_(e),error:!0},e.file.name+e.file.size))]})]})};export{f as UploadFile};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import{tokens as e}from"../../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../../../../../atoms/style/spacings.js";import{Tooltip as n,Typography as r}from"@equinor/eds-core-react";import i from"styled-components";const{colors:a}=e,o=i(r)`
|
|
2
|
+
margin: ${t.small} ${t.small} 0 ${t.small};
|
|
3
|
+
color: ${a.text.static_icons__tertiary.rgba};
|
|
4
|
+
`,s=i.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
align-items: start;
|
|
8
|
+
gap: ${t.medium_small};
|
|
9
|
+
height: fit-content;
|
|
10
|
+
position: relative;
|
|
11
|
+
> :first-child {
|
|
12
|
+
margin-top: ${t.medium_small};
|
|
13
|
+
}
|
|
14
|
+
`,c=i.div`
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
height: 88px;
|
|
19
|
+
width: 88px;
|
|
20
|
+
margin-top: 2px;
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
border: 1px solid ${a.ui.background__medium.rgba};
|
|
23
|
+
position: relative;
|
|
24
|
+
transition: 0.1s ease-in;
|
|
25
|
+
> img {
|
|
26
|
+
width: 100%;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
&:hover {
|
|
30
|
+
background-color: ${a.ui.background__semitransparent.rgba};
|
|
31
|
+
}
|
|
32
|
+
`,l=i.div`
|
|
33
|
+
display: grid;
|
|
34
|
+
grid-template-rows: 1fr 1fr 1fr;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
height: 88px;
|
|
38
|
+
width: 88px;
|
|
39
|
+
margin-top: 2px;
|
|
40
|
+
font-size: 11px;
|
|
41
|
+
justify-items: center;
|
|
42
|
+
text-align: center;
|
|
43
|
+
border-radius: 4px;
|
|
44
|
+
border: 1px dashed ${a.interactive.warning__text.rgba};
|
|
45
|
+
gap: 0;
|
|
46
|
+
transition: 0.1s ease-in;
|
|
47
|
+
> svg {
|
|
48
|
+
grid-row: 2/3;
|
|
49
|
+
}
|
|
50
|
+
> div {
|
|
51
|
+
grid-row: 3/4;
|
|
52
|
+
color: ${a.interactive.warning__text.rgba};
|
|
53
|
+
}
|
|
54
|
+
&:hover {
|
|
55
|
+
background-color: ${a.interactive.warning__highlight.rgba};
|
|
56
|
+
}
|
|
57
|
+
`,u=i.div`
|
|
58
|
+
background-color: ${a.text.static_icons__tertiary.rgba};
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
border: 2px solid ${a.ui.background__default.rgba};
|
|
61
|
+
position: absolute;
|
|
62
|
+
width: 18px;
|
|
63
|
+
height: 18px;
|
|
64
|
+
right: -20px;
|
|
65
|
+
top: -8px;
|
|
66
|
+
transition: 0.1s ease-in;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
> svg {
|
|
69
|
+
width: 18px;
|
|
70
|
+
height: 18px;
|
|
71
|
+
fill: ${a.ui.background__default.rgba};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
background-color: ${a.text.static_icons__default.rgba};
|
|
76
|
+
}
|
|
77
|
+
`,d=i(n)`
|
|
78
|
+
white-space: pre;
|
|
79
|
+
`;export{u as CloseButton,d as FileTooltip,s as FileUploadAreaWrapper,c as ImageWrapper,l as Rejection,o as Title};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{TextField as e}from"../../../../../molecules/TextField/TextField.js";import{EQUINOR_EMAIL_SUFFIX as t}from"../Feedback.const.js";import{useFeedbackContext as n}from"../hooks/useFeedbackContext.js";import{LockedInputTooltip as r}from"./LockedInputTooltip.js";import i from"styled-components";import{jsx as a}from"react/jsx-runtime";const o=i.div`
|
|
2
2
|
grid-column: 2/3;
|
|
3
|
-
`,s=()=>{let{serviceNowSuccess:
|
|
3
|
+
`,s=()=>{let{serviceNowSuccess:i,feedbackContent:s,updateFeedback:c,isWrongDomain:l,setIsWrongDomain:u}=n();return a(o,{children:a(r,{show:i,children:a(e,{id:`feedback-url`,label:`URL`,disabled:i,meta:`optional`,value:s.url,placeholder:`URL of error location`,variant:l?`error`:void 0,helperText:l?`The provided URL must be from a ${t} domain`:``,onChange:e=>{c(`url`,e.currentTarget.value),(e.currentTarget.value===``||l&&e.currentTarget.value.includes(t))&&u(!1)},onBlur:e=>{let n=e.currentTarget.value;!n.includes(t)&&n.length!==0&&u(!0)}})})})};export{s as Url};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{spacings as e}from"../../../../../atoms/style/spacings.js";import{useEffect as t,useRef as n,useState as r}from"react";import i from"styled-components";import{jsx as a}from"react/jsx-runtime";import{motion as o}from"framer-motion";const s=i(o.div)`
|
|
2
2
|
display: flex;
|
|
3
|
-
gap: ${
|
|
3
|
+
gap: ${e.large};
|
|
4
4
|
height: auto;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
min-height: 30px;
|
|
7
|
-
`,c=({children:
|
|
7
|
+
`,c=({children:e})=>{let i=n(null),[c,l]=r(`auto`);return t(()=>{if(i.current){let e=new ResizeObserver(e=>{let t=e[0].contentRect.height;l(t)});return e.observe(i.current),()=>{e.disconnect()}}},[]),a(o.div,{style:{height:c},animate:{height:c},transition:{duration:.3},children:a(s,{ref:i,children:e})})};export{c as AnimateChangeInHeight};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
2
|
-
padding: ${
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../../../../atoms/style/spacings.js";import{useFeedbackContext as n}from"../hooks/useFeedbackContext.js";import{SlackRequestsWrapper as r}from"./ResponsePage.styles.js";import{RequestStatus as i}from"./RequestStatus.js";import a from"styled-components";import{jsx as o,jsxs as s}from"react/jsx-runtime";const{colors:c}=e,l=a.div`
|
|
2
|
+
padding: ${t.small};
|
|
3
3
|
background-color: ${c.ui.background__light.rgba};
|
|
4
|
-
`,u=({allSlackRequestStatus:e})=>{let{slackRequestResponse:
|
|
4
|
+
`,u=({allSlackRequestStatus:e})=>{let{slackRequestResponse:t,slackAttachmentsRequestResponse:a}=n();return s(l,{children:[o(i,{title:`Sending to development team`,requestStatus:e}),s(r,{children:[o(i,{title:`Posting text `,requestStatus:t}),a.map(e=>o(i,{title:`Posting ${e.fileName}`,requestStatus:e},e.fileName))]})]})};export{u as FullSlackResponse};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{StatusEnum as t}from"../Feedback.types.js";import{DEFAULT_REQUEST_ERROR_MESSAGE as n}from"../Feedback.const.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{StatusEnum as t}from"../Feedback.types.js";import{DEFAULT_REQUEST_ERROR_MESSAGE as n}from"../Feedback.const.js";import{Status as r}from"./ResponsePage.styles.js";import{useMemo as i}from"react";import{Icon as a,Typography as o}from"@equinor/eds-core-react";import s from"styled-components";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{check_circle_outlined as u,info_circle as d}from"@equinor/eds-icons";const{colors:f}=e,p=s.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: space-between;
|
|
5
|
-
`,m=({requestStatus:e,title:
|
|
5
|
+
`,m=({requestStatus:e,title:s})=>{let m=i(()=>{switch(e.status){case t.partial:return`Partially Failed`;case t.idle:case t.pending:return`Sending...`;case t.success:return`Success`;default:return``}},[e]),h=e.status===t.partial||e.status===t.error;return l(p,{children:[c(o,{group:`ui`,variant:`accordion_header`,children:s}),l(r,{children:[c(o,{color:h?f.interactive.warning__text.rgba:``,group:`ui`,variant:`snackbar`,children:e.status===t.error?e.errorText??n:m}),(h||e.status===t.success)&&c(a,{color:h?f.interactive.warning__text.rgba:f.interactive.success__resting.rgba,data:h?d:u})]})]})};export{m as RequestStatus};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{spacings as e}from"../../../../../atoms/style/spacings.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{ContentWrapper as n}from"../Feedback.styles.js";import{AnimateChangeInHeight as r}from"./AnimateChangeInHeight.js";import{ResponseStatus as i}from"./ResponseStatus.js";import{Success as a}from"./Success.js";import{useEffect as o,useState as s}from"react";import{Button as c}from"@equinor/eds-core-react";import l from"styled-components";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{motion as f}from"framer-motion";const p=l(f.div)`
|
|
2
2
|
display: flex;
|
|
3
|
-
gap: ${
|
|
3
|
+
gap: ${e.large};
|
|
4
4
|
height: auto;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
button {
|
|
7
7
|
align-self: end;
|
|
8
8
|
}
|
|
9
|
-
`,m=()=>{let[
|
|
9
|
+
`,m=()=>{let[e,l]=s(!1),{handleResponsePageOnClose:f,requestIsLoading:m,resetForm:h,requestHasError:g,relevantRequestsHaveBeenSuccess:_}=t();return o(()=>{!e&&_&&setTimeout(()=>{l(!0),h()},1e3)},[_,h,e]),u(n,{children:d(p,{children:[u(r,{children:u(e?a:i,{})}),u(c,{disabled:m,onClick:f,children:g?`Retry`:`Close`})]})})};export{m as ResponsePage};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import e from"
|
|
1
|
+
import{colors as e}from"../../../../../atoms/style/colors.js";import{spacings as t}from"../../../../../atoms/style/spacings.js";import{Typography as n}from"@equinor/eds-core-react";import r from"styled-components";const i=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 10px;
|
|
5
5
|
p {
|
|
6
6
|
font-weight: 500;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
`,a=r.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
|
-
padding-top: ${
|
|
12
|
-
gap: ${
|
|
13
|
-
margin-left: ${
|
|
14
|
-
`;
|
|
11
|
+
padding-top: ${t.medium};
|
|
12
|
+
gap: ${t.large};
|
|
13
|
+
margin-left: ${t.large};
|
|
14
|
+
`;r(n)`
|
|
15
15
|
align-self: flex-end;
|
|
16
|
-
color: ${
|
|
16
|
+
color: ${e.interactive.warning__text.rgba};
|
|
17
17
|
font-size: 16px;
|
|
18
18
|
font-weight: 500;
|
|
19
19
|
text-align: end;
|
|
20
|
-
`;export{i as
|
|
20
|
+
`;export{a as SlackRequestsWrapper,i as Status};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../../../../atoms/style/spacings.js";import{FeedbackType as n}from"../Feedback.types.js";import{useFeedbackContext as r}from"../hooks/useFeedbackContext.js";import{Typography as i}from"@equinor/eds-core-react";import a from"styled-components";import{jsx as o,jsxs as s}from"react/jsx-runtime";const{colors:c}=e,l=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
`,u=a.a`
|
|
5
5
|
color: ${c.interactive.primary__resting.rgba};
|
|
6
|
-
padding-left: ${
|
|
6
|
+
padding-left: ${t.large};
|
|
7
7
|
font-weight: 400;
|
|
8
8
|
font-size: 16px;
|
|
9
|
-
`,d=()=>{let{selectedType:e,serviceNowUrl:
|
|
9
|
+
`,d=()=>{let{selectedType:e,serviceNowUrl:t}=r();return s(l,{children:[o(i,{variant:`h3`,children:`Thank you, we have received your ${e===n.BUG?`report!`:`suggestion!`}`}),e===n.BUG&&t.length>0&&o(u,{href:t,children:`See ticket in ServiceNow`})]})};export{d as Success};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FeedbackType as
|
|
1
|
+
import{environment as e}from"../../../../../atoms/utils/auth_environment.js";import{useAuth as t}from"../../../../../providers/AuthProvider/AuthProvider.js";import{useLocalStorage as n}from"../../../../../atoms/hooks/useLocalStorage.js";import{FeedbackType as r,StatusEnum as i}from"../Feedback.types.js";import{DEFAULT_FEEDBACK_LOCAL_STORAGE as a,ONE_HOUR_IN_MS as o}from"../Feedback.const.js";import{createServiceNowDescription as ee,createServiceNowUrl as s,createSlackMessage as c,getUrgencyNumber as l}from"../Feedback.utils.js";import{useServiceNowIncident as u}from"../hooks/useServiceNowIncident.js";import{useSlackFileUpload as d}from"../hooks/useSlackFileUpload.js";import{useSlackPostMessage as te}from"../hooks/useSlackPostMessage.js";import{createContext as f,useCallback as p,useEffect as m,useMemo as h,useState as g}from"react";import{jsx as ne}from"react/jsx-runtime";const{getServiceNowConfigurationItem:re}=e,_=f(void 0),v=({children:e,selectedType:f,onClose:v,field:y})=>{let ie=re(import.meta.env.VITE_SERVICE_NOW_CONFIGURATION_ITEM)||`117499`,{account:b}=t(),x=b?.username,[S,C]=n(f+`-feedbackContentAndRequestStatus`,{...a},o),{feedbackContent:w,serviceNowRequestResponse:T}=S,[E,D]=g([]),[O,k]=g({status:i.idle}),[A,j]=g([]),[M,N]=g(!1),[P,F]=g(!1),{mutateAsync:I,isPending:L}=d(w),{mutateAsync:R,status:z}=te(w),{mutateAsync:B,status:V}=u(w),[H,U]=g(``),[W,G]=g(!1),K=h(()=>z===`pending`||V===`pending`||L,[L,z,V]),q=h(()=>T.status===i.success,[T.status]),J=h(()=>{let e=[O.status,...A.map(e=>e.status)];return e.every(e=>e===i.success)?i.success:e.includes(i.error)?i.partial:i.idle},[A,O.status]),Y=h(()=>J===i.error||J===i.partial,[J]),ae=h(()=>Y||T.status===i.error,[T.status,Y]),X=()=>{N(e=>!e)},Z=({status:e,response:t,error:n})=>{C({...S,serviceNowRequestResponse:{status:e,errorText:n?.message??void 0,serviceNowId:t?.sysId??void 0}})},Q=({status:e,filename:t,error:n})=>{j(r=>{let a=Array.from(r),o=a.find(e=>e.fileName===t);return o&&(o.status=e,o.errorText=e===i.error?n?.message:void 0),a})},$=({status:e,error:t})=>{k({status:e,errorText:t?.message??void 0})},oe=()=>{W?v():X()},se=(e,t)=>{C({...S,feedbackContent:{...w,[e]:t}})},ce=async()=>{X();let e=``;if(f===r.BUG&&x&&T.status!==i.success){let t=new FormData;t.append(`ConfigurationItem`,ie),t.append(`Title`,w.title),t.append(`Description`,ee(w,y)),t.append(`CallerEmail`,x),w.urgency&&t.append(`urgency`,l(w.urgency).toString()),E&&E.length>0&&E.forEach(e=>t.append(`Images`,e));try{let n=await B(t);e=n.sysId,Z({status:i.success,response:n})}catch(e){Z({status:i.error,error:e})}}let t=new FormData;t.append(`comment`,c(w,y,f,x,e));try{await R(t),$({status:i.success})}catch(e){$({status:i.error,error:e})}if(E&&E.length>0)for(let e of E){let t=new FormData;t.append(`comment`,`Title: ${w.title}`),t.append(`file`,e);try{await I(t),Q({status:i.success,filename:e.name})}catch(t){Q({status:i.error,filename:e.name,error:t})}}},le=p(()=>{C(a),D([]),k({status:i.idle}),j([])},[C]);return m(()=>()=>{T.status===i.success&&J===i.success&&setTimeout(()=>{C(a)},1100)},[J,T.status,C]),m(()=>{A.length!==E.length&&j(E.map(e=>({status:i.idle,fileName:e.name})))},[E,A.length]),m(()=>{T.serviceNowId&&T.serviceNowId.length!==0&&U(s(T.serviceNowId,!0))},[T.serviceNowId]),m(()=>{(f===r.SUGGESTION&&J===i.success||T.status===i.success&&J===i.success)&&G(!0)},[J,f,T.status]),ne(_.Provider,{value:{selectedType:f,showResponsePage:M,feedbackAttachments:E,slackAttachmentsRequestResponse:A,slackRequestResponse:O,updateFeedback:se,feedbackContent:w,serviceNowRequestResponse:T,handleResponsePageOnClose:oe,toggleShowResponsePage:X,onDialogClose:v,handleSave:ce,resetForm:le,requestIsLoading:K,serviceNowSuccess:q,isWrongDomain:P,setIsWrongDomain:F,setFeedbackAttachments:D,requestHasError:ae,showAllSlackRequests:Y,allSlackRequestStatus:J,serviceNowUrl:H,relevantRequestsHaveBeenSuccess:W},children:e})};export{_ as FeedbackContext,v as FeedbackContextProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useReleaseNotes as e}from"../../../../../providers/ReleaseNotesProvider.js";import{ButtonContainer as t,Wrapper as n}from"./Header.styles.js";import{Button as r,Icon as i,Tooltip as a,Typography as o}from"@equinor/eds-core-react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{close as l,external_link as u}from"@equinor/eds-icons";const d=()=>{let{setOpen:d,showAllReleaseNotesLink:f}=e();return c(n,{children:[s(o,{variant:`h1`,bold:!0,children:`What's new?`}),c(t,{children:[s(a,{title:`Release notes in SAM`,children:s(r,{variant:`ghost_icon`,href:f,target:`_blank`,children:s(i,{data:u})})}),s(r,{variant:`ghost_icon`,onClick:()=>{d(!1)},"aria-label":`close modal`,children:s(i,{data:l})})]})]})};export{d as Header};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Status as e}from"../../../Status/index.js";import{usePrefetchRichTextImages as t}from"../../../../atoms/hooks/usePrefetchRichTextImages.js";import{useReleaseNotes as n}from"../../../../providers/ReleaseNotesProvider.js";import{Button as r}from"../../../../molecules/Button/Button.js";import{Header as i}from"./Header/Header.js";import{AllReleaseNotesWrapper as a,LoadingWrapper as o,StyledDialog as s}from"./ReleaseNotesDialog.styles.js";import{ReleaseNote as c}from"../../../ReleaseNote/ReleaseNote.js";import{CircularProgress as l}from"@equinor/eds-core-react";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";import{ReleaseNotesService as p,useReleaseNotesQuery as m}from"@equinor/subsurface-app-management";const h=({enabled:h})=>{let{setOpen:g,open:_,mostRecentReleaseNote:v,showAllReleaseNotesLink:y}=n(),{isLoading:b}=m({enabled:h}),{isPrefetching:x}=t({richTextValues:v?.body?[v.body]:[],onImageRead:p.getReleaseNoteImage});return f(s,{open:_,onClose:()=>{g(!1)},isDismissable:!0,children:[d(i,{}),b||x?d(o,{children:d(l,{})}):v?f(u,{children:[d(c,{...v,expanded:!0}),d(a,{children:d(r,{variant:`ghost`,href:y,target:`_blank`,children:`See all release notes in SAM`})})]}):f(e,{children:[d(e.Title,{title:`No published release notes`}),d(e.Description,{text:`This application has no published release notes yet.`})]})]})};export{h as ReleaseNotesDialog};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{colors as e}from"../../../../atoms/style/colors.js";import{spacings as t}from"../../../../atoms/style/spacings.js";import{Dialog as n}from"@equinor/eds-core-react";import r from"styled-components";const i=r(n)`
|
|
2
|
+
background-color: ${e.ui.background__light.rgba};
|
|
3
|
+
width: 1280px;
|
|
4
|
+
height: 85vh;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
padding: ${t.xxx_large};
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
`,a=r.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
height: 168px;
|
|
14
|
+
`,o=r.div`
|
|
15
|
+
align-self: center;
|
|
16
|
+
justify-self: flex-end;
|
|
17
|
+
margin-top: auto;
|
|
18
|
+
margin-bottom: calc((${t.xxx_large} * -1) + ${t.medium});
|
|
19
|
+
`;export{o as AllReleaseNotesWrapper,a as LoadingWrapper,i as StyledDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EnvironmentType as e}from"../../../../atoms/enums/Environment.js";function t(t,n){return t&&t!==e.PRODUCTION?`https://client-subsurfappmanagement-frontend-${t}.radix.equinor.com/release-notes?filters={"applications"%3A["${encodeURIComponent(n)}"]}`:`https://subsurfappmanagement.equinor.com/release-notes?filters={"applications"%3A["${encodeURIComponent(n)}"]}`}export{t as environmentAndAppNameToURL};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{useMemo as n}from"react";import{Icon as r,Typography as i}from"@equinor/eds-core-react";import a from"styled-components";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{arrow_forward as c,external_link as l}from"@equinor/eds-icons";const{colors:u}=e,d=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
5
|
-
gap: ${
|
|
5
|
+
gap: ${t.x_small};
|
|
6
6
|
> span {
|
|
7
|
-
padding: ${
|
|
7
|
+
padding: ${t.small} ${t.x_small};
|
|
8
8
|
}
|
|
9
|
-
`,f=
|
|
9
|
+
`,f=a.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
justify-content: space-between;
|
|
12
|
-
padding: ${
|
|
12
|
+
padding: ${t.medium_small} ${t.medium};
|
|
13
13
|
text-decoration: none;
|
|
14
|
-
gap: ${
|
|
14
|
+
gap: ${t.medium};
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
align-items: center;
|
|
17
17
|
&:hover {
|
|
18
18
|
background-color: ${u.interactive.primary__hover_alt.rgba};
|
|
19
19
|
}
|
|
20
|
-
`,p=({text:e,icon:
|
|
20
|
+
`,p=({text:e,icon:t,isHref:a,onClick:p,id:m,lastItem:h=!1})=>n(()=>s(f,{id:m,onClick:p,role:`menuitem`,children:[s(d,{children:[o(r,{data:t,size:24,color:u.interactive.primary__resting.rgba}),o(i,{group:`navigation`,variant:`menu_title`,as:`span`,children:e})]}),!h&&o(r,{data:a?l:c,size:24,color:u.interactive.primary__resting.hsla})]}),[t,m,a,h,p,e]);export{p as ResourceMenuItem};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{environment as e}from"../../../atoms/utils/auth_environment.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{amplify_resources as n,amplify_small_portal as r}from"../../../atoms/icons/other.js";import{useReleaseNotes as i}from"../../../providers/ReleaseNotesProvider.js";import{TopBarMenu as a}from"../TopBarMenu.js";import{TopBarButton as o}from"../TopBar.styles.js";import{TransferToAppDialog as s}from"../TransferToAppDialog.js";import{FeedbackType as c}from"./Feedback/Feedback.types.js";import{Feedback as l}from"./Feedback/Feedback.js";import{ResourceMenuItem as u}from"./ResourceMenuItem.js";import{ReleaseNotesDialog as d}from"./ReleaseNotesDialog/ReleaseNotesDialog.js";import{useMemo as f,useRef as p,useState as m}from"react";import{Button as h,Dialog as g,Divider as _,Icon as v}from"@equinor/eds-core-react";import y from"styled-components";import{Fragment as b,jsx as x,jsxs as S}from"react/jsx-runtime";import{arrow_back as C,file_description as w,lightbulb as T,report_bug as E,school as D}from"@equinor/eds-icons";const{PORTAL_URL_WITHOUT_LOCALHOST:O}=e,k=y(g)`
|
|
2
2
|
width: fit-content;
|
|
3
3
|
`,A=y.div`
|
|
4
|
-
padding: ${
|
|
5
|
-
${
|
|
6
|
-
`,j=({field:
|
|
4
|
+
padding: ${t.medium} ${t.medium} ${t.small}
|
|
5
|
+
${t.medium};
|
|
6
|
+
`,j=({field:e,hideFeedback:t=!1,hideReleaseNotes:y=!1,hideLearnMore:j=!1,children:M,customButton:N})=>{let{open:P,setOpen:F}=i(),[I,L]=m(!1),[R,z]=m(!1),[B,V]=m(!1),[H,U]=m(void 0),W=p(null),[G,K]=m(void 0),q=()=>{U(void 0),L(!1)},J=()=>L(e=>!e),Y=e=>{K(e?.currentTarget.id),z(!0)},X=()=>{K(void 0),q(),z(!1)},Z=()=>F(!0),Q=()=>U(void 0),$=()=>U(`learn-more`),ee=()=>{V(!0)},te=()=>{V(!1),q()},ne=f(()=>{switch(H){case`learn-more`:return S(b,{children:[x(u,{text:`Open Application portal`,icon:r,onClick:ee,isHref:!0}),M&&!t&&!y&&x(_,{style:{margin:0}}),M&&x(`div`,{onClick:q,children:M}),x(A,{children:S(h,{variant:`outlined`,onClick:Q,children:[x(v,{data:C}),` Back`]})})]});default:return null}},[M,t,y,H]);return S(b,{children:[N?N(W,J):x(o,{variant:`ghost_icon`,ref:W,id:`anchor-match`,"aria-haspopup":`true`,"aria-expanded":I,"aria-controls":`menu-match`,onClick:J,children:x(v,{data:n})}),x(a,{open:I&&!P&&!R,title:`Resources`,onClose:q,anchorEl:W.current,children:ne||S(`section`,{children:[x(u,{id:c.BUG,onClick:Y,icon:E,text:`Report a bug`,lastItem:!0}),x(u,{id:c.SUGGESTION,onClick:Y,icon:T,text:`Suggest idea`,lastItem:!0}),!y&&x(u,{id:`release-notes`,icon:w,onClick:Z,text:`Open release notes`,isHref:!0}),!j&&x(u,{text:`Learn more`,icon:D,onClick:$})]})}),P&&x(d,{}),!t&&G!==void 0&&S(k,{open:G===c.BUG||G===c.SUGGESTION,onClose:X,isDismissable:!0,children:[x(g.Header,{children:G===c.BUG?`Report a bug - ServiceNow`:`Suggest a feature`}),x(l,{field:e,selectedType:G,onClose:X})]}),B&&x(s,{onClose:te,url:O,applicationName:`Portal`})]})};export{j as Resources};
|