@equinor/amplify-component-lib 9.15.3 → 9.16.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/hooks/index.js +1 -0
- 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/usePrefetchRichTextImages.js +1 -1
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/hooks/useSelect.js +1 -1
- package/dist/atoms/index.d.ts +0 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/date.d.ts +1 -1
- package/dist/atoms/utils/richtext.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.d.ts +4 -5
- 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/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/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/Chip/Chip.d.ts +2 -2
- package/dist/molecules/Chip/Chip.js +1 -1
- package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DatePicker/DatePicker.js +1 -1
- 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/FileProgress/FileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
- package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
- package/dist/molecules/IconCell/IconCell.d.ts +54 -0
- package/dist/molecules/IconCell/IconCell.js +1 -0
- package/dist/molecules/IconCell/IconCell.styles.js +108 -0
- package/dist/molecules/IconCell/IconCell.types.d.ts +33 -0
- package/dist/molecules/IconCell/IconCell.types.js +1 -0
- package/dist/molecules/IconCell/IconCell.utils.js +8 -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/OptionDrawer/OptionDrawer.js +1 -1
- package/dist/molecules/OptionalTooltip/OptionalTooltip.js +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 +6 -6
- 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 +6 -6
- 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/ComboBox/ComboBox.js +1 -1
- package/dist/molecules/Select/Select.styles.d.ts +1 -1
- package/dist/molecules/Select/Select.styles.js +61 -61
- 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/SkeletonBase/SkeletonBase.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
- package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
- package/dist/molecules/Stepper/Step/Step.js +5 -5
- package/dist/molecules/Stepper/StepLine.js +2 -2
- package/dist/molecules/Stepper/Stepper.js +4 -4
- 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/Tabs/Tabs.types.d.ts +1 -1
- package/dist/molecules/index.d.ts +5 -5
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.js +6 -6
- 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/ButtonWithMenu.js +1 -1
- package/dist/organisms/Filter/Filter.d.ts +2 -2
- package/dist/organisms/Filter/Filter.js +1 -1
- package/dist/organisms/Filter/Filter.styles.js +39 -39
- package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
- package/dist/organisms/Filter/QuickFilter.js +1 -1
- package/dist/organisms/Filter/SortMenu.d.ts +2 -2
- package/dist/organisms/Filter/SortMenu.js +2 -2
- package/dist/organisms/PageTitle/PageTitle.js +1 -1
- package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
- package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- 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.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.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/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/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.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/UploadFile.js +2 -2
- 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/ResponseStatus.js +1 -1
- 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/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/LoadingProvider.js +1 -1
- package/dist/providers/ReleaseNotesProvider.js +1 -1
- package/dist/providers/SideBarProvider.js +1 -1
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.js +1 -1
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/providers/index.js +1 -0
- package/package.json +4 -8
- package/dist/atoms/hooks/useOnScreenMultiple.js +0 -1
- package/dist/atoms/hooks/useRichTextImage.js +0 -1
- package/dist/atoms/hooks/useSearchParameter.d.ts +0 -12
- package/dist/atoms/hooks/useSearchParameter.js +0 -1
- package/dist/atoms/style/animation.js +0 -1
- package/dist/atoms/style/colors.js +0 -1
- package/dist/atoms/style/darkTokens.js +0 -219
- package/dist/atoms/style/lightTokens.js +0 -158
- package/dist/atoms/style/spacingTokens.js +0 -50
- package/dist/atoms/style/spacings.js +0 -1
- package/dist/atoms/utils/skeleton.js +0 -1
- package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +0 -1
- package/dist/molecules/Badge/Badge.styles.js +0 -17
- package/dist/molecules/Button/Button.utils.js +0 -1
- package/dist/molecules/Chip/Chip.styles.js +0 -65
- package/dist/molecules/Chip/InteractiveChip.js +0 -1
- package/dist/molecules/Chip/ReadOnlyChip.js +0 -1
- package/dist/molecules/ContentMenu/ContentMenu.styles.js +0 -52
- package/dist/molecules/DatePicker/DatePicker.styles.js +0 -63
- package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +0 -1
- package/dist/molecules/FileProgress/CompactFileProgress.js +0 -1
- package/dist/molecules/FileProgress/CompactFileProgress.styles.js +0 -100
- package/dist/molecules/FileProgress/FileProgress.utils.js +0 -1
- package/dist/molecules/FileProgress/RegularFileProgress.js +0 -1
- package/dist/molecules/FileProgress/RegularFileProgress.styles.js +0 -35
- package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +0 -1
- package/dist/molecules/FileUploadArea/UploadIllustration.js +0 -1
- package/dist/molecules/InfoElement/CopyText.js +0 -41
- package/dist/molecules/ListItem/ListItem.utils.js +0 -1
- package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +0 -36
- package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +0 -1
- package/dist/molecules/Select/AddTagItem.js +0 -1
- package/dist/molecules/Select/GroupedSelectMenu.js +0 -1
- package/dist/molecules/Select/ListSelectMenu.js +0 -1
- package/dist/molecules/Select/Select.js +0 -1
- package/dist/molecules/Select/Select.utils.js +0 -1
- package/dist/molecules/Select/SelectMenuItem.js +0 -1
- package/dist/molecules/Select/SelectMenuItem.utils.js +0 -1
- package/dist/molecules/Sieve/Filter.d.ts +0 -10
- package/dist/molecules/Sieve/Filter.js +0 -1
- package/dist/molecules/Sieve/Sieve.d.ts +0 -7
- package/dist/molecules/Sieve/Sieve.js +0 -1
- package/dist/molecules/Sieve/Sieve.styles.js +0 -43
- package/dist/molecules/Sieve/Sieve.types.d.ts +0 -28
- package/dist/molecules/Sieve/Sort.js +0 -1
- package/dist/molecules/Skeleton/Skeleton.styles.js +0 -1
- package/dist/molecules/Skeleton/SkeletonField.js +0 -8
- package/dist/molecules/Stepper/Step/StepIcon.js +0 -19
- package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +0 -25
- package/dist/molecules/Stepper/SubTitle/SubTitle.js +0 -7
- package/dist/molecules/TextField/TextField.js +0 -74
- package/dist/organisms/Faq/Category/Category.js +0 -9
- package/dist/organisms/Faq/Category/Question.js +0 -22
- package/dist/organisms/Faq/CategorySkeleton.js +0 -29
- package/dist/organisms/Filter/AutoCompleteMenu.js +0 -10
- package/dist/organisms/Filter/AutoCompleteText.js +0 -11
- package/dist/organisms/Filter/Filter.utils.js +0 -1
- package/dist/organisms/ReleaseNote/MetaTags.js +0 -10
- package/dist/organisms/SideBar/CreateItem.js +0 -1
- package/dist/organisms/SideBar/CreateItem.styles.js +0 -33
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +0 -1
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +0 -48
- package/dist/organisms/SideBar/MenuItem/MenuItem.js +0 -1
- package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +0 -37
- package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +0 -1
- package/dist/organisms/SideBar/SideBar.js +0 -1
- package/dist/organisms/SideBar/SideBar.styles.js +0 -41
- package/dist/organisms/SideBar/ToggleOpen.js +0 -1
- package/dist/organisms/SideBar/ToggleOpen.styles.js +0 -16
- package/dist/organisms/Status/Illustration.constants.js +0 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +0 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +0 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +0 -41
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +0 -7
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +0 -79
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +0 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +0 -7
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +0 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +0 -19
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +0 -1
- package/dist/providers/AuthProvider/AuthProvider.js +0 -1
- package/dist/providers/AuthProvider/AuthProviderInner.js +0 -1
- package/dist/providers/ReleaseNotesProvider.utils.js +0 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.js +0 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +0 -41
- package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +0 -1
- package/dist/providers/TableOfContentsProvider.utils.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +0 -24
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +0 -20
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +0 -75
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import t from"styled-components";import{TextField as n}from"src/molecules/TextField/TextField";import{EQUINOR_EMAIL_SUFFIX as r}from"src/organisms/TopBar/Resources/Feedback/Feedback.const";import{useFeedbackContext as i}from"src/organisms/TopBar/Resources/Feedback/hooks/useFeedbackContext";import{LockedInputTooltip as a}from"src/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip";const o=t.div`
|
|
2
2
|
grid-column: 2/3;
|
|
3
|
-
`,s=()=>{let{serviceNowSuccess:
|
|
3
|
+
`,s=()=>{let{serviceNowSuccess:t,feedbackContent:s,updateFeedback:c,isWrongDomain:l,setIsWrongDomain:u}=i(),d=e=>{c(`url`,e.currentTarget.value),(e.currentTarget.value===``||l&&e.currentTarget.value.includes(r))&&u(!1)},f=e=>{let t=e.currentTarget.value;!t.includes(r)&&t.length!==0&&u(!0)};return e(o,{children:e(a,{show:t,children:e(n,{id:`feedback-url`,label:`URL`,disabled:t,meta:`optional`,value:s.url,placeholder:`URL of error location`,variant:l?`error`:void 0,helperText:l?`The provided URL must be from a ${r} domain`:``,onChange:d,onBlur:f})})})};export{s as Url};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useEffect as e,useRef as t,useState as n}from"react";import{jsx as r}from"react/jsx-runtime";import i from"styled-components";import{spacings as a}from"src/atoms/style";import{motion as o}from"framer-motion";const s=i(o.div)`
|
|
2
2
|
display: flex;
|
|
3
|
-
gap: ${
|
|
3
|
+
gap: ${a.large};
|
|
4
4
|
height: auto;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
min-height: 30px;
|
|
7
|
-
`,c=({children:
|
|
7
|
+
`,c=({children:i})=>{let a=t(null),[c,l]=n(`auto`);return e(()=>{if(a.current){let e=new ResizeObserver(e=>{let t=e[0].contentRect.height;l(t)});return e.observe(a.current),()=>{e.disconnect()}}},[]),r(o.div,{style:{height:c},animate:{height:c},transition:{duration:.3},children:r(s,{ref:a,children:i})})};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{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{RequestStatus as n}from"./RequestStatus.js";import{SlackRequestsWrapper as r}from"./ResponsePage.styles.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";import o from"styled-components";import{spacings as s}from"src/atoms/style";const{colors:c}=e,l=o.div`
|
|
2
|
+
padding: ${s.small};
|
|
3
3
|
background-color: ${c.ui.background__light.rgba};
|
|
4
|
-
`,u=({allSlackRequestStatus:e})=>{let{slackRequestResponse:
|
|
4
|
+
`,u=({allSlackRequestStatus:e})=>{let{slackRequestResponse:o,slackAttachmentsRequestResponse:s}=t();return a(l,{children:[i(n,{title:`Sending to development team`,requestStatus:e}),a(r,{children:[i(n,{title:`Posting text `,requestStatus:o}),s.map(e=>i(n,{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{useMemo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{check_circle_outlined as o,info_circle as s}from"@equinor/eds-icons";import c from"styled-components";import{Icon as l,Typography as u}from"@equinor/eds-core-react";import{Status as d}from"src/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles";const{colors:f}=e,p=c.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:c})=>{let m=r(()=>{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 a(p,{children:[i(u,{group:`ui`,variant:`accordion_header`,children:c}),a(d,{children:[i(u,{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)&&i(l,{color:h?f.interactive.warning__text.rgba:f.interactive.success__resting.rgba,data:h?s:o})]})]})};export{m as RequestStatus};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useFeedbackContext as e}from"../hooks/useFeedbackContext.js";import{AnimateChangeInHeight as t}from"./AnimateChangeInHeight.js";import{ResponseStatus as n}from"./ResponseStatus.js";import{Success as r}from"./Success.js";import{useEffect as i,useState as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import c from"styled-components";import{Button as l}from"@equinor/eds-core-react";import{spacings as u}from"src/atoms/style";import{motion as d}from"framer-motion";import{ContentWrapper as f}from"src/organisms/TopBar/Resources/Feedback/Feedback.styles";const p=c(d.div)`
|
|
2
2
|
display: flex;
|
|
3
|
-
gap: ${
|
|
3
|
+
gap: ${u.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[c,u]=a(!1),{handleResponsePageOnClose:d,requestIsLoading:m,resetForm:h,requestHasError:g,relevantRequestsHaveBeenSuccess:_}=e();return i(()=>{!c&&_&&setTimeout(()=>{u(!0),h()},1e3)},[_,h,c]),o(f,{children:s(p,{children:[o(t,{children:o(c?r:n,{})}),o(l,{disabled:m,onClick:d,children:g?`Retry`:`Close`})]})})};export{m as ResponsePage};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"styled-components";import{Typography as t}from"@equinor/eds-core-react";import{colors as n,spacings as r}from"src/atoms/style";e.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
|
+
`;const i=e.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
|
-
padding-top: ${
|
|
12
|
-
gap: ${
|
|
13
|
-
margin-left: ${
|
|
14
|
-
`;
|
|
11
|
+
padding-top: ${r.medium};
|
|
12
|
+
gap: ${r.large};
|
|
13
|
+
margin-left: ${r.large};
|
|
14
|
+
`;e(t)`
|
|
15
15
|
align-self: flex-end;
|
|
16
|
-
color: ${
|
|
16
|
+
color: ${n.interactive.warning__text.rgba};
|
|
17
17
|
font-size: 16px;
|
|
18
18
|
font-weight: 500;
|
|
19
19
|
text-align: end;
|
|
20
|
-
`;export{
|
|
20
|
+
`;export{i as SlackRequestsWrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FeedbackType as e}from"../Feedback.types.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{RequestStatus as n}from"./RequestStatus.js";import{FullSlackResponse as r}from"./FullSlackResponse.js";import{Fragment as i,jsx as a,jsxs as o}from"react/jsx-runtime";const s=()=>{let{serviceNowRequestResponse:s,selectedType:c,showAllSlackRequests:l,allSlackRequestStatus:u}=t();return o(i,{children:[c===e.BUG&&a(n,{title:`Service Now`,requestStatus:s}),l?a(r,{allSlackRequestStatus:{status:u}}):a(n,{title:`Development team`,requestStatus:{status:u}})]})};export{s as
|
|
1
|
+
import{FeedbackType as e}from"../Feedback.types.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{RequestStatus as n}from"./RequestStatus.js";import{FullSlackResponse as r}from"./FullSlackResponse.js";import{Fragment as i,jsx as a,jsxs as o}from"react/jsx-runtime";const s=()=>{let{serviceNowRequestResponse:s,selectedType:c,showAllSlackRequests:l,allSlackRequestStatus:u}=t();return o(i,{children:[c===e.BUG&&a(n,{title:`Service Now`,requestStatus:s}),l?a(r,{allSlackRequestStatus:{status:u}}):a(n,{title:`Development team`,requestStatus:{status:u}})]})};export{s as ResponseStatus};
|
|
@@ -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{FeedbackType as t}from"../Feedback.types.js";import{useFeedbackContext as n}from"../hooks/useFeedbackContext.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import a from"styled-components";import{Typography as o}from"@equinor/eds-core-react";import{spacings as s}from"src/atoms/style";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: ${s.large};
|
|
7
7
|
font-weight: 400;
|
|
8
8
|
font-size: 16px;
|
|
9
|
-
`,d=()=>{let{selectedType:e,serviceNowUrl:
|
|
9
|
+
`,d=()=>{let{selectedType:e,serviceNowUrl:a}=n();return i(l,{children:[r(o,{variant:`h3`,children:`Thank you, we have received your ${e===t.BUG?`report!`:`suggestion!`}`}),e===t.BUG&&a.length>0&&r(u,{href:a,children:`See ticket in ServiceNow`})]})};export{d as Success};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{FeedbackType as e,StatusEnum as t}from"../Feedback.types.js";import{DEFAULT_FEEDBACK_LOCAL_STORAGE as n,ONE_HOUR_IN_MS as r}from"../Feedback.const.js";import{createServiceNowDescription as i,createServiceNowUrl as a,createSlackMessage as o,getUrgencyNumber as ee}from"../Feedback.utils.js";import{useServiceNowIncident as s}from"../hooks/useServiceNowIncident.js";import{useSlackFileUpload as c}from"../hooks/useSlackFileUpload.js";import{useSlackPostMessage as l}from"../hooks/useSlackPostMessage.js";import{createContext as u,useCallback as te,useEffect as d,useMemo as f,useState as p}from"react";import{jsx as m}from"react/jsx-runtime";import{environment as h}from"src/atoms/utils";import{useAuth as ne,useLocalStorage as re}from"src/atoms/hooks";const{getServiceNowConfigurationItem:ie}=h,g=u(void 0),_=({children:u,selectedType:h,onClose:_,field:v})=>{let y=ie(import.meta.env.VITE_SERVICE_NOW_CONFIGURATION_ITEM)||`117499`,{account:b}=ne(),x=b?.username,[S,C]=re(h+`-feedbackContentAndRequestStatus`,{...n},r),{feedbackContent:w,serviceNowRequestResponse:T}=S,[E,D]=p([]),[O,k]=p({status:t.idle}),[A,j]=p([]),[M,N]=p(!1),[P,F]=p(!1),{mutateAsync:I,isPending:L}=c(w),{mutateAsync:R,status:z}=l(w),{mutateAsync:B,status:V}=s(w),[H,U]=p(``),[W,G]=p(!1),K=f(()=>z===`pending`||V===`pending`||L,[L,z,V]),q=f(()=>T.status===t.success,[T.status]),J=f(()=>{let e=[O.status,...A.map(e=>e.status)];return e.every(e=>e===t.success)?t.success:e.includes(t.error)?t.partial:t.idle},[A,O.status]),Y=f(()=>J===t.error||J===t.partial,[J]),ae=f(()=>Y||T.status===t.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:n,error:r})=>{j(i=>{let a=Array.from(i),o=a.find(e=>e.fileName===n);return o&&(o.status=e,o.errorText=e===t.error?r?.message:void 0),a})},$=({status:e,error:t})=>{k({status:e,errorText:t?.message??void 0})},oe=()=>{W?_():X()},se=(e,t)=>{C({...S,feedbackContent:{...w,[e]:t}})},ce=async()=>{X();let n=``;if(h===e.BUG&&x&&T.status!==t.success){let e=new FormData;e.append(`ConfigurationItem`,y),e.append(`Title`,w.title),e.append(`Description`,i(w,v)),e.append(`CallerEmail`,x),w.urgency&&e.append(`urgency`,ee(w.urgency).toString()),E&&E.length>0&&E.forEach(t=>e.append(`Images`,t));try{let r=await B(e);n=r.sysId,Z({status:t.success,response:r})}catch(e){Z({status:t.error,error:e})}}let r=new FormData;r.append(`comment`,o(w,v,h,x,n));try{await R(r),$({status:t.success})}catch(e){$({status:t.error,error:e})}if(E&&E.length>0)for(let e of E){let n=new FormData;n.append(`comment`,`Title: ${w.title}`),n.append(`file`,e);try{await I(n),Q({status:t.success,filename:e.name})}catch(n){Q({status:t.error,filename:e.name,error:n})}}},le=te(()=>{C(n),D([]),k({status:t.idle}),j([])},[C]);return d(()=>()=>{T.status===t.success&&J===t.success&&setTimeout(()=>{C(n)},1100)},[J,T.status,C]),d(()=>{A.length!==E.length&&j(E.map(e=>({status:t.idle,fileName:e.name})))},[E,A.length]),d(()=>{T.serviceNowId&&T.serviceNowId.length!==0&&U(a(T.serviceNowId,!0))},[T.serviceNowId]),d(()=>{(h===e.SUGGESTION&&J===t.success||T.status===t.success&&J===t.success)&&G(!0)},[J,h,T.status]),m(g.Provider,{value:{selectedType:h,showResponsePage:M,feedbackAttachments:E,slackAttachmentsRequestResponse:A,slackRequestResponse:O,updateFeedback:se,feedbackContent:w,serviceNowRequestResponse:T,handleResponsePageOnClose:oe,toggleShowResponsePage:X,onDialogClose:_,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:u})};export{g as FeedbackContext,_ as FeedbackContextProvider};
|
|
@@ -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{useMemo as t}from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{arrow_forward as i,external_link as a}from"@equinor/eds-icons";import o from"styled-components";import{Icon as s,Typography as c}from"@equinor/eds-core-react";import{spacings as l}from"src/atoms/style";const{colors:u}=e,d=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
5
|
-
gap: ${
|
|
5
|
+
gap: ${l.x_small};
|
|
6
6
|
> span {
|
|
7
|
-
padding: ${
|
|
7
|
+
padding: ${l.small} ${l.x_small};
|
|
8
8
|
}
|
|
9
|
-
`,f=
|
|
9
|
+
`,f=o.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
justify-content: space-between;
|
|
12
|
-
padding: ${
|
|
12
|
+
padding: ${l.medium_small} ${l.medium};
|
|
13
13
|
text-decoration: none;
|
|
14
|
-
gap: ${
|
|
14
|
+
gap: ${l.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:o,isHref:l,onClick:p,id:m,lastItem:h=!1})=>t(()=>r(f,{id:m,onClick:p,role:`menuitem`,children:[r(d,{children:[n(s,{data:o,size:24,color:u.interactive.primary__resting.rgba}),n(c,{group:`navigation`,variant:`menu_title`,as:`span`,children:e})]}),!h&&n(s,{data:l?a:i,size:24,color:u.interactive.primary__resting.hsla})]}),[o,m,l,h,p,e]);export{p as ResourceMenuItem};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{TransferToAppDialog as n}from"../TransferToAppDialog.js";import{FeedbackType as r}from"./Feedback/Feedback.types.js";import{Feedback as i}from"./Feedback/Feedback.js";import{ResourceMenuItem as a}from"./ResourceMenuItem.js";import{useMemo as o,useRef as s,useState as c}from"react";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{environment as f}from"src/atoms/utils";import{useReleaseNotes as p}from"src/providers/ReleaseNotesProvider";import{arrow_back as m,file_description as h,lightbulb as g,report_bug as _,school as v}from"@equinor/eds-icons";import y from"styled-components";import{Button as b,Dialog as x,Divider as S,Icon as C}from"@equinor/eds-core-react";import{spacings as w}from"src/atoms/style";import{amplify_resources as T,amplify_small_portal as E}from"src/atoms/icons";import{ReleaseNotesDialog as D}from"src/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog";const{PORTAL_URL_WITHOUT_LOCALHOST:O}=f,k=y(x)`
|
|
2
2
|
width: fit-content;
|
|
3
3
|
`,A=y.div`
|
|
4
|
-
padding: ${
|
|
5
|
-
${
|
|
6
|
-
`,j=({field:
|
|
4
|
+
padding: ${w.medium} ${w.medium} ${w.small}
|
|
5
|
+
${w.medium};
|
|
6
|
+
`,j=({field:f,hideFeedback:y=!1,hideReleaseNotes:w=!1,hideLearnMore:j=!1,children:M,customButton:N})=>{let{open:P,setOpen:F}=p(),[I,L]=c(!1),[R,z]=c(!1),[B,V]=c(!1),[H,U]=c(void 0),W=s(null),[G,K]=c(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=o(()=>{switch(H){case`learn-more`:return d(l,{children:[u(a,{text:`Open Application portal`,icon:E,onClick:ee,isHref:!0}),M&&!y&&!w&&u(S,{style:{margin:0}}),M&&u(`div`,{onClick:q,children:M}),u(A,{children:d(b,{variant:`outlined`,onClick:Q,children:[u(C,{data:m}),` Back`]})})]});default:return null}},[M,y,w,H]);return d(l,{children:[N?N(W,J):u(t,{variant:`ghost_icon`,ref:W,id:`anchor-match`,"aria-haspopup":`true`,"aria-expanded":I,"aria-controls":`menu-match`,onClick:J,children:u(C,{data:T})}),u(e,{open:I&&!P&&!R,title:`Resources`,onClose:q,anchorEl:W.current,children:ne||d(`section`,{children:[u(a,{id:r.BUG,onClick:Y,icon:_,text:`Report a bug`,lastItem:!0}),u(a,{id:r.SUGGESTION,onClick:Y,icon:g,text:`Suggest idea`,lastItem:!0}),!w&&u(a,{id:`release-notes`,icon:h,onClick:Z,text:`Open release notes`,isHref:!0}),!j&&u(a,{text:`Learn more`,icon:v,onClick:$})]})}),P&&u(D,{}),!y&&G!==void 0&&d(k,{open:G===r.BUG||G===r.SUGGESTION,onClose:X,isDismissable:!0,children:[u(x.Header,{children:G===r.BUG?`Report a bug - ServiceNow`:`Suggest a feature`}),u(i,{field:f,selectedType:G,onClose:X})]}),B&&u(n,{onClose:te,url:O,applicationName:`Portal`})]})};export{j as Resources};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{TopBarMenu as e}from"./TopBarMenu.js";import{TopBarButton as t}from"./TopBar.styles.js";import{useContext as n,useMemo as r,useRef as i,useState as a}from"react";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";import{ThemeProviderContext as l}from"src/providers/ThemeProvider/ThemeProvider";import{settings as u}from"@equinor/eds-icons";import d from"styled-components";import{Icon as f,Radio as p,Typography as m}from"@equinor/eds-core-react";import{elevation as h,spacings as g}from"src/atoms/style";import{Theme as _}from"src/atoms/enums";const v=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
5
|
-
gap: ${
|
|
6
|
-
padding: 0 ${
|
|
5
|
+
gap: ${g.x_small};
|
|
6
|
+
padding: 0 ${g.large} 0 ${g.small};
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
> span {
|
|
9
|
-
padding: ${
|
|
9
|
+
padding: ${g.small} ${g.x_small};
|
|
10
10
|
}
|
|
11
|
-
`,y=
|
|
11
|
+
`,y=d.div`
|
|
12
12
|
width: 64px;
|
|
13
13
|
height: 32px;
|
|
14
14
|
background-color: ${e=>e.$color};
|
|
15
|
-
box-shadow: ${
|
|
15
|
+
box-shadow: ${h.raised};
|
|
16
16
|
border-radius: 4px;
|
|
17
|
-
`,b=
|
|
17
|
+
`,b=d.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
|
-
gap: ${
|
|
20
|
+
gap: ${g.medium};
|
|
21
21
|
> div > p {
|
|
22
|
-
padding-top: ${
|
|
23
|
-
padding-left: ${
|
|
22
|
+
padding-top: ${g.small};
|
|
23
|
+
padding-left: ${g.medium};
|
|
24
24
|
}
|
|
25
|
-
`,x=({allSettings:
|
|
25
|
+
`,x=({allSettings:d,children:h})=>{let g=i(null),[x,S]=a(!1),C=n(l),w=()=>S(!1),T=()=>S(!x),E=r(()=>C?[{title:`Theme`,value:C.theme,onChange:e=>C.setTheme(e),items:[{label:`Light Mode`,name:`theme-group`,value:_.LIGHT,colorBox:`#ffffff`},{label:`Dark Mode`,name:`theme-group`,value:_.DARK,colorBox:`#243746`}]},...d??[]]:d??[],[d,C]);if(E.length===0)throw Error(`Empty settings in TopBar.Settings!`);return c(o,{children:[s(t,{variant:`ghost_icon`,onClick:T,ref:g,children:s(f,{data:u,size:24})}),c(e,{open:x,title:`Settings`,onClose:w,anchorEl:g.current,children:[s(b,{children:E.map((e,t)=>c(`div`,{children:[s(m,{variant:`overline`,children:e.title}),e.items.map((t,n)=>c(v,{children:[s(p,{id:t.label,disabled:t.disabled,label:t.label,name:e.title,value:`${t.label}-${n}`,checked:e.value===t.value,onChange:()=>e.onChange?.(t.value)}),t.colorBox&&s(y,{$color:t.colorBox,"data-testid":`colorbox-${t.colorBox}`}),t.text&&s(m,{variant:`h6`,children:t.text}),t.element&&t.element]},n))]},t))}),h]})]})};x.displayName=`TopBar.Settings`;export{x as Settings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{AppAndFieldContainer as e,AppIdentifier as t,AppName as n,Bar as r,CircularProgress as i,EnvironmentTag as a}from"./TopBar.styles.js";import{FieldMenu as o}from"./FieldMenu/FieldMenu.js";import s,{forwardRef as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{EnvironmentType as d}from"src/atoms/enums/Environment";import{Typography as f}from"@equinor/eds-core-react";import{ApplicationIcon as p}from"src/molecules/ApplicationIcon/ApplicationIcon";const m=c(({id:s,children:c,headerLink:m,applicationIcon:h,applicationName:g,environment:_,isFetching:v=!1,capitalize:y=!1,availableFields:b,onSelectField:x,currentField:S,showAccessITLink:C,itemNameSingular:w},T)=>u(r,{ref:T,children:[u(e,{id:s,children:[u(t,{tabIndex:0,to:m||`/`,children:[l(p,{name:h,size:32,withHover:!0}),l(n,{group:`navigation`,variant:`menu_title`,$capitalize:y,children:y?g.toLowerCase():g})]}),b&&x&&l(o,{availableFields:b,onSelect:x,currentField:S,showAccessITLink:C,itemNameSingular:w}),v&&l(i,{size:16})]}),(_===d.DEVELOP||_===d.STAGING||_===d.LOCALHOST)&&l(a,{$environmentType:_,children:l(f,{group:`heading`,variant:`h5`,children:_})}),c]}));m.displayName=`TopBar`;export{m as TopBar};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import{
|
|
2
|
-
border-bottom: 1px solid ${
|
|
3
|
-
padding-left: ${
|
|
1
|
+
import{Link as e}from"@tanstack/react-router";import{EnvironmentType as t}from"src/atoms/enums/Environment";import n,{css as r}from"styled-components";import{Button as i,CircularProgress as a,TopBar as o,Typography as s}from"@equinor/eds-core-react";import{colors as c,spacings as l}from"src/atoms/style";const u=n(o)`
|
|
2
|
+
border-bottom: 1px solid ${c.ui.background__medium.rgba};
|
|
3
|
+
padding-left: ${l.medium};
|
|
4
4
|
align-content: center;
|
|
5
5
|
position: relative;
|
|
6
|
-
`,d=
|
|
6
|
+
`,d=n(e)`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
align-items: center;
|
|
10
|
-
gap: ${
|
|
10
|
+
gap: ${l.medium_small};
|
|
11
11
|
padding: 0;
|
|
12
|
-
outline-offset: ${
|
|
12
|
+
outline-offset: ${l.x_small};
|
|
13
13
|
text-decoration: none;
|
|
14
14
|
&:hover {
|
|
15
15
|
border-radius: 4px;
|
|
16
16
|
outline: none;
|
|
17
17
|
}
|
|
18
|
-
`,f=
|
|
18
|
+
`,f=n(o.Header)`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
|
-
gap: ${
|
|
22
|
-
`,p=s
|
|
21
|
+
gap: ${l.medium};
|
|
22
|
+
`,p=n(s)`
|
|
23
23
|
text-transform: ${e=>e.$capitalize?`capitalize`:`none`};
|
|
24
|
-
`,m=
|
|
24
|
+
`,m=n(a)`
|
|
25
25
|
circle {
|
|
26
|
-
stroke: ${
|
|
26
|
+
stroke: ${c.interactive.primary__resting.rgba};
|
|
27
27
|
}
|
|
28
28
|
circle:first-child {
|
|
29
|
-
stroke: ${
|
|
29
|
+
stroke: ${c.interactive.primary__hover_alt.rgba};
|
|
30
30
|
}
|
|
31
|
-
`;function h(
|
|
32
|
-
background-color: ${
|
|
33
|
-
border: 1px solid ${
|
|
34
|
-
`}const g=
|
|
31
|
+
`;function h(e){let n=`none`,r=`none`;return e===t.LOCALHOST?(n=c.interactive.disabled__fill.rgba,r=c.interactive.disabled__text.rgba):e===t.DEVELOP?(n=c.ui.background__info.rgba,r=c.infographic.substitute__blue_overcast.rgba):e===t.STAGING&&(n=c.ui.background__warning.rgba,r=c.interactive.warning__text.rgba),`
|
|
32
|
+
background-color: ${n};
|
|
33
|
+
border: 1px solid ${r};
|
|
34
|
+
`}const g=n.div`
|
|
35
35
|
width: 214px;
|
|
36
36
|
height: 36px;
|
|
37
37
|
border-radius: 4px;
|
|
@@ -43,22 +43,22 @@ import{EnvironmentType as e}from"../../atoms/enums/Environment.js";import{colors
|
|
|
43
43
|
transform: translateX(-50%);
|
|
44
44
|
text-transform: capitalize;
|
|
45
45
|
${e=>h(e.$environmentType)}
|
|
46
|
-
`,_=
|
|
47
|
-
background-color: ${
|
|
46
|
+
`,_=n.div`
|
|
47
|
+
background-color: ${c.interactive.danger__resting.rgba};
|
|
48
48
|
width: 10px;
|
|
49
49
|
height: 10px;
|
|
50
50
|
border-radius: 50%;
|
|
51
51
|
position: absolute;
|
|
52
52
|
right: 2px;
|
|
53
53
|
top: 4px;
|
|
54
|
-
border: 2px solid ${
|
|
54
|
+
border: 2px solid ${c.text.static_icons__primary_white.rgba};
|
|
55
55
|
// Box-sizing is a quickfix for use in PWEX because of global styling
|
|
56
56
|
box-sizing: content-box;
|
|
57
|
-
`,v=
|
|
57
|
+
`,v=n(i)`
|
|
58
58
|
&:hover ${_} {
|
|
59
|
-
border: 2px solid ${
|
|
59
|
+
border: 2px solid ${c.interactive.primary__hover_alt.rgba};
|
|
60
60
|
}
|
|
61
|
-
${({$fieldSelector:e})=>{if(!e)return
|
|
61
|
+
${({$fieldSelector:e})=>{if(!e)return r`
|
|
62
62
|
height: 36px;
|
|
63
63
|
width: 36px;
|
|
64
64
|
`}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e,{forwardRef as t,useEffect as n}from"react";import{jsx as r}from"react/jsx-runtime";import i from"styled-components";import{Menu as a}from"@equinor/eds-core-react";import{spacings as o}from"src/atoms/style";const s=i(a)`
|
|
2
2
|
padding: 0 !important;
|
|
3
3
|
min-width: 350px;
|
|
4
4
|
width: fit-content;
|
|
5
5
|
border-radius: 5px;
|
|
6
|
-
${({$withGap:
|
|
7
|
-
gap: ${
|
|
6
|
+
${({$withGap:e})=>e&&` > div[role="menu"] {
|
|
7
|
+
gap: ${o.large};
|
|
8
8
|
|
|
9
9
|
}
|
|
10
10
|
`}
|
|
11
|
-
`,c=
|
|
11
|
+
`,c=t(({open:e,onClose:t,children:i,anchorEl:a,isNotification:o,withGap:c=!1},l)=>(n(()=>{let n=()=>{e&&t()};return window.addEventListener(`resize`,n),()=>{window.removeEventListener(`resize`,n)}},[e,t]),e?r(s,{open:e,onClose:t,anchorEl:a,placement:o?`bottom`:`bottom-end`,"data-testid":`top-bar-menu`,ref:l,$withGap:c,children:i}):null));c.displayName=`TopBarMenu`;export{c as TopBarMenu};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{capitalize as i}from"src/atoms/utils";import{close as a}from"@equinor/eds-icons";import o from"styled-components";import{Button as s,Dialog as c,Icon as l,LinearProgress as u,Typography as d}from"@equinor/eds-core-react";import{spacings as f}from"src/atoms/style";import{useFakeProgress as p}from"src/atoms/hooks";import{AnimatedCheckmark as m}from"src/molecules/AnimatedCheckmark/AnimatedCheckmark";const h=o(c)`
|
|
2
2
|
width: 400px;
|
|
3
3
|
height: 323px;
|
|
4
|
-
`,g=
|
|
5
|
-
gap: ${
|
|
4
|
+
`,g=o.div`
|
|
5
|
+
gap: ${f.medium};
|
|
6
6
|
position: absolute;
|
|
7
7
|
top: 50%;
|
|
8
8
|
left: 50%;
|
|
@@ -14,20 +14,20 @@ import{spacings as e}from"../../atoms/style/spacings.js";import{capitalize as t}
|
|
|
14
14
|
|
|
15
15
|
width: 100%;
|
|
16
16
|
max-width: 370px;
|
|
17
|
-
padding: ${
|
|
18
|
-
`,_=
|
|
17
|
+
padding: ${f.medium} ${f.large};
|
|
18
|
+
`,_=o(d)`
|
|
19
19
|
span {
|
|
20
20
|
text-transform: capitalize;
|
|
21
21
|
}
|
|
22
|
-
`,v=
|
|
22
|
+
`,v=o.div`
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
|
-
gap: ${
|
|
26
|
-
`,y=
|
|
25
|
+
gap: ${f.large};
|
|
26
|
+
`,y=o.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
|
-
gap: ${
|
|
29
|
+
gap: ${f.small};
|
|
30
30
|
width: 100%;
|
|
31
31
|
align-items: center;
|
|
32
|
-
padding: ${
|
|
33
|
-
`,b=({onClose:e,applicationName:
|
|
32
|
+
padding: ${f.large} 0;
|
|
33
|
+
`,b=({onClose:e,applicationName:o,url:f})=>{let{finished:b,progress:x}=p({onDone:()=>window.open(f,`_self`)});return n(t,{children:r(h,{open:!0,children:[r(c.Header,{children:[`Open link`,n(s,{variant:`ghost_icon`,onClick:e,"data-testid":`close-transfer-app`,children:n(l,{data:a})})]}),n(c.CustomContent,{children:n(g,{children:b?r(y,{children:[n(_,{variant:`h3`,children:n(`span`,{children:i(o)})}),n(m,{size:`small`})]}):r(v,{children:[r(d,{variant:`h3`,children:[`Transferring you to application.`,`.`.repeat(x/35)]}),n(u,{variant:`determinate`,value:x})]})})})]})})};export{b as TransferToAppDialog};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useTutorials as n}from"@equinor/subsurface-app-management";import{check as r,chevron_right as i}from"@equinor/eds-icons";import a from"styled-components";import{Icon as o,Typography as s}from"@equinor/eds-core-react";import{animation as c,colors as l,spacings as u}from"src/atoms/style";const d=a.button`
|
|
2
2
|
display: grid;
|
|
3
3
|
align-items: center;
|
|
4
4
|
grid-template-columns: 1fr auto;
|
|
5
|
-
row-gap: ${
|
|
6
|
-
padding: ${
|
|
7
|
-
transition: background ${
|
|
5
|
+
row-gap: ${u.small};
|
|
6
|
+
padding: ${u.medium};
|
|
7
|
+
transition: background ${c.transitionMS};
|
|
8
8
|
> header {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
|
-
gap: ${
|
|
11
|
+
gap: ${u.small};
|
|
12
12
|
grid-column: span 2;
|
|
13
13
|
> p {
|
|
14
|
-
color: ${
|
|
14
|
+
color: ${l.interactive.primary__resting.rgba};
|
|
15
15
|
font-weight: 500;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
&:hover {
|
|
19
|
-
background: ${
|
|
19
|
+
background: ${l.interactive.primary__hover_alt.rgba};
|
|
20
20
|
}
|
|
21
|
-
`,f=({onTutorialStart:
|
|
21
|
+
`,f=({onTutorialStart:a,onClose:c,id:u,name:f})=>{let{startTutorial:p,seenTutorialIDs:m}=n(),h=m.includes(u),g=()=>{p(u),a?.(u),c()};return t(d,{onClick:g,children:[h&&t(`header`,{children:[e(o,{data:r,size:16,color:l.interactive.primary__resting.rgba}),e(s,{varinat:`caption`,children:`COMPLETED`})]}),e(s,{variant:`h4`,children:f}),e(o,{data:i,color:l.interactive.primary__resting.rgba})]})};export{f as TutorialItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{TutorialItem as e}from"./TutorialItem.js";import{Container as t,TutorialList as n}from"./Tutorials.styles.js";import{useRef as r,useState as i}from"react";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";import{useTutorials as c}from"@equinor/subsurface-app-management";import{youtube_alt as l}from"@equinor/eds-icons";import{Divider as u,Icon as d,Typography as f}from"@equinor/eds-core-react";import{TopBarButton as p}from"src/organisms/TopBar/TopBar.styles";import{TopBarMenu as m}from"src/organisms/TopBar/TopBarMenu";const h=({filterTutorials:h,onTutorialStart:g,..._})=>{let{allTutorials:v,tutorialsOnThisPage:y}=c(),[b,x]=i(!1),S=r(null),C=h?v.filter(h):v,w=h?y.filter(h):y,T=C.filter(e=>w.findIndex(t=>t.id===e.id)===-1),E=()=>x(e=>!e);return s(a,{children:[o(p,{variant:`ghost_icon`,ref:S,onClick:E,..._,children:o(d,{data:l})}),b&&o(m,{open:!0,onClose:E,anchorEl:S.current,children:s(t,{children:[s(f,{variant:`h4`,children:[`Available Tutorials (`,C.length,`)`]}),w.length>0&&s(n,{children:[o(f,{variant:`caption`,children:`For current page`}),w.map(t=>o(e,{onTutorialStart:g,onClose:E,...t},t.id))]}),w.length>0&&w.length>0&&o(u,{}),T.length>0&&s(n,{children:[o(f,{variant:`caption`,children:`For other pages`}),T.map(t=>o(e,{onTutorialStart:g,onClose:E,...t},t.id))]})]})})]})};export{h as Tutorials};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import{spacings as
|
|
1
|
+
import e from"styled-components";import{spacings as t}from"src/atoms/style";const n=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
padding: ${
|
|
4
|
+
padding: ${t.large};
|
|
5
5
|
width: 520px;
|
|
6
6
|
> h4 {
|
|
7
|
-
margin-bottom: ${
|
|
7
|
+
margin-bottom: ${t.x_large};
|
|
8
8
|
}
|
|
9
9
|
> hr {
|
|
10
|
-
margin-bottom: ${
|
|
10
|
+
margin-bottom: ${t.x_large};
|
|
11
11
|
}
|
|
12
|
-
`,r=
|
|
12
|
+
`,r=e.section`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
> p:first-child {
|
|
16
|
-
margin-bottom: ${
|
|
16
|
+
margin-bottom: ${t.medium_small};
|
|
17
17
|
}
|
|
18
18
|
`;export{n as Container,r as TutorialList};
|
package/dist/organisms/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{DataGrid as e}from"./DataGrid/DataGrid.js";import{Template as t}from"./Template/Template.js";import{FieldSelector as n}from"./FieldSelector/FieldSelector.js";import{Filter as r}from"./Filter/index.js";import{SideBar as i}from"./SideBar/index.js";import{TopBar as a}from"./TopBar/index.js";import{Status as o}from"./Status/index.js";import{BadRequest as s}from"./Status/collections/BadRequest.js";import{GenericError as c}from"./Status/collections/GenericError.js";import{MissingAccessToApp as l}from"./Status/collections/MissingAccessToApp.js";import{MissingPermissions as u}from"./Status/collections/MissingPermissions.js";import{PageNotFound as d}from"./Status/collections/PageNotFound.js";import{ServerError as f}from"./Status/collections/ServerError.js";import{ApiResponseError as p}from"./Status/collections/ApiResponseError.js";import{TableOfContents as m}from"./TableOfContents/TableOfContents.js";import{PageTitle as h}from"./PageTitle/PageTitle.js";import{ReleaseNote as g}from"./ReleaseNote/ReleaseNote.js";import{ToggleGroup as _}from"./ToggleGroup/index.js";import{Faq as v}from"./Faq/Faq.js";import{Card as y}from"@equinor/eds-core-react";export{y as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useAuth as e}from"src/providers/AuthProvider/AuthProvider";import{useEffect as t,useState as n}from"react";import{jsx as r}from"react/jsx-runtime";import{SAM_QUERIES as i}from"@equinor/subsurface-app-management";import{useIsFetching as a}from"@tanstack/react-query";import{FullPageSpinner as o}from"src/molecules/FullPageSpinner/FullPageSpinner";const s=({customQueryKeys:s=[],children:c})=>{let{authState:l}=e(),u=a({predicate:e=>i.some(t=>e.queryKey.includes(t))||s.some(t=>e.queryKey.includes(t))})>0,[d,f]=n(!0);return t(()=>{l===`authorized`&&!u&&d&&f(!1)},[l,u,d]),l===`authorized`?d?r(o,{variant:`application`,fixedPosition:!0,children:c}):c:r(o,{variant:`application`,fixedPosition:!0})};export{s as LoadingProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createContext as e,useContext as t,useEffect as n,useState as r}from"react";import{jsx as i}from"react/jsx-runtime";import{useReleaseNotesQuery as a}from"@equinor/subsurface-app-management";import{EnvironmentType as o}from"src/atoms/enums/Environment";import{useLocalStorage as s}from"src/atoms/hooks/useLocalStorage";import{environment as c}from"src/atoms/utils";import{usingReleaseNoteDate as l}from"src/organisms/ReleaseNote/ReleaseNote.utils";import{environmentAndAppNameToURL as u}from"src/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils";import{sortReleaseNotesByDate as d}from"src/providers/ReleaseNotesProvider.utils";const{getEnvironmentName:f,getAppName:p}=c,m=e(void 0),h=1e3*60*60*24*14,g=({children:e,enabled:t,popUpNewReleaseNote:c=!1})=>{let{data:g}=a({enabled:t}),[_,v]=r(!1),[y,b]=s(`release-notes-was-viewed-key`,``,h),x=g?.toSorted(d).at(0),S=p(import.meta.env.VITE_NAME),C=f(import.meta.env.VITE_ENVIRONMENT_NAME),w=C===o.LOCALHOST?o.DEVELOP:C,T=u(w,S);return n(()=>{if(!x||!c)return;let e=new Date(l(x)).getTime(),t=Date.now(),n=t-e;n<=h&&y!==x.releaseId&&(v(!0),b(x.releaseId))},[y,x,c,b]),i(m.Provider,{value:{open:_,setOpen:v,mostRecentReleaseNote:x,showAllReleaseNotesLink:T},children:e})};export{g as ReleaseNotesProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createContext as e,useContext as t,useReducer as n}from"react";import{jsx as r}from"react/jsx-runtime";
|
|
1
|
+
import{createContext as e,useContext as t,useReducer as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=e(void 0),a=`amplify-sidebar-state`,o=()=>{let e=localStorage.getItem(a);return e?JSON.parse(e):{isOpen:!1}},s=e=>{localStorage.setItem(a,JSON.stringify(e))},c=(e,t)=>(s(t),t),l=({children:e})=>{let[t,a]=n(c,o()),s=e=>{a({isOpen:e})};return r(i.Provider,{value:{isOpen:t.isOpen,setIsOpen:s},children:e})};export{l as SideBarProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createContext as e,useCallback as t,useContext as n,useState as r}from"react";import{jsx as i}from"react/jsx-runtime";import{useLocation as a,useNavigate as o,useParams as s}from"react-router";const c=e(void 0)
|
|
1
|
+
import{createContext as e,useCallback as t,useContext as n,useState as r}from"react";import{jsx as i}from"react/jsx-runtime";import{useLocation as a,useNavigate as o,useParams as s}from"@tanstack/react-router";const c=e(void 0),l=({steps:e,children:n,isStepDisabled:l,...u})=>{let{step:d}=s({strict:!1}),f=o(),p=a().pathname.split(`/`).slice(0,-1).join(`/`),m=u.syncToURLParam?Number(d):u?.initialStep??0;if(u.syncToURLParam&&d&&isNaN(Number(d)))throw Error(`Step URL param must be a valid number when using "syncToURLParam"`);if(e.length<2)throw Error(`Stepper must have at least 2 steps`);let[h,g]=r(m),_=u.syncToURLParam?Number(d):h,[v,y]=r(0);if(m>=e.length||m<0)throw Error(`initialStep must be a valid index of the steps array`);let b=e=>{u.syncToURLParam?f({to:`${p}/${e}`}):g(e)},x=()=>{v!==0&&y(0)},S=()=>{if(`subSteps`in e[_]&&e[_].subSteps&&v<e[_].subSteps.length-1){y(e=>e+1);return}_!==e.length-1&&(b(_+1),x())},C=()=>{if(v>0&&`subSteps`in e[_]&&e[_].subSteps&&e[_].subSteps.length>0){y(e=>e-1);return}if(_===0)return;b(_-1);let t=e.at(_-1);t&&`subSteps`in t&&t.subSteps&&y(t.subSteps.length-1)},w=t(t=>l?l({step:e[t],stepIndex:t,currentStep:e[_],currentStepIndex:_}):!1,[l,_,e]);return i(c.Provider,{value:{steps:e,currentStep:_,currentSubStep:v,setCurrentStep:b,goToNextStep:S,goToPreviousStep:C,isStepAtIndexDisabled:w},children:n})};export{l as StepperProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createContext as e,useCallback as t,useContext as n,useEffect as r,useMemo as i,useRef as a,useState as o}from"react";import{jsx as s}from"react/jsx-runtime";import{useLocation as c,useNavigate as l}from"@tanstack/react-router";import{useOnScreenMultiple as u}from"src/atoms/hooks/useOnScreenMultiple";import{getValues as d}from"src/providers/TableOfContentsProvider.utils";const f=e(void 0),p=({items:e,children:n,hashNavigation:p})=>{let m=l(),{hash:h}=c(),[g,_]=o(e[0]?.value),[v,y]=o([]),b=a(!1),x=i(()=>e.flatMap(e=>d([],e)),[e]);r(()=>{y(x.map(e=>document.getElementById(e)))},[x]),r(()=>{h.length||(b.current=!0)},[h]);let S=t(e=>{if(e.value===g)return!0;if(e.children&&g){let t=d([],e);return t.includes(g)}return!1},[g]),C=u(v),w=a(-1),T=t((e,t)=>{let n=x.findIndex(t=>t===e);if(p){_(x[n]),m({to:`.`,hash:`#${x[n]}`,hashScrollIntoView:!1,replace:!0});return}let r=v[n];if(r){let e=t?.behavior??`smooth`;r.scrollIntoView({block:`start`,behavior:e}),w.current=n;let i=1/0,a=0,o=()=>{let e=r?.getBoundingClientRect().top;if(e===i){if(a+=1,a>1){_(x[n]),w.current=-1;return}}else a=0,i=e;requestAnimationFrame(o)};requestAnimationFrame(o)}},[v,p,m,x]);return r(()=>{if(h&&!b.current){b.current=!0;let e=decodeURIComponent(h.replace(`#`,``));if(!e.length||!x.includes(e))return;_(e),m({to:`.`,hash:`#${e}`,hashScrollIntoView:{block:`start`,behavior:`instant`},replace:!0})}},[h,m,x]),r(()=>{if(C.length===0||C.length!==x.length||w.current!==-1||!b.current)return;let e=-1;for(let t=C.length-1;t>=0;t--)C[t]&&(e=t);e===-1||x.at(e)===void 0||(_(x[e]),p&&m({to:`.`,hash:`#${x[e]}`,hashScrollIntoView:!1,replace:!0}))},[T,p,m,x,C]),s(f.Provider,{value:{items:e,selected:g,setSelected:T,isActive:S},children:n})};export{p as TableOfContentsProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{THEME_LOCALSTORAGE_KEY as e}from"./ThemeProvider.constants.js";import{createContext as t,useContext as n,useEffect as r}from"react";import{jsx as i}from"react/jsx-runtime";import{useLocalStorage as a}from"src/atoms/hooks/useLocalStorage";import{Theme as o}from"src/atoms/enums/Theme";const s=t(void 0),c=({children:t})=>{let[n,c]=a(e,o.LIGHT);r(()=>{document.documentElement.setAttribute(`data-theme`,n)},[n]);let l=e=>{c(e)};return i(s.Provider,{value:{theme:n,setTheme:l},children:t})};export{c as ThemeProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SideBarProvider as e}from"./SideBarProvider.js";import{TableOfContentsProvider as t}from"./TableOfContentsProvider.js";import{ReleaseNotesProvider as n}from"./ReleaseNotesProvider.js";import{LoadingProvider as r}from"./LoadingProvider.js";import{ThemeProvider as i}from"./ThemeProvider/ThemeProvider.js";import{StepperProvider as a}from"./StepperProvider.js";import{AuthProvider as o}from"src/providers/AuthProvider/AuthProvider";import{SnackbarProvider as s}from"src/providers/SnackbarProvider/SnackbarProvider";import{TutorialHighlightingProvider as c}from"src/providers/TutorialHighlightingProvider/TutorialHighlightingProvider";export{o as AuthProvider,s as SnackbarProvider,c as TutorialHighlightingProvider};
|