@equinor/amplify-component-lib 9.1.1 → 9.2.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.
Files changed (82) hide show
  1. package/dist/atoms/hooks/index.d.ts +1 -2
  2. package/dist/atoms/icons/drilling.d.ts +1 -0
  3. package/dist/atoms/icons/drilling.js +1 -1
  4. package/dist/atoms/index.js +1 -1
  5. package/dist/atoms/utils/index.d.ts +1 -0
  6. package/dist/atoms/utils/richtext.js +1 -1
  7. package/dist/atoms/utils/tutorials.d.ts +10 -0
  8. package/dist/atoms/utils/tutorials.js +1 -0
  9. package/dist/index.js +1 -1
  10. package/dist/molecules/DatePicker/DatePicker.js +1 -1
  11. package/dist/molecules/FileProgress/CompactFileProgress.styles.d.ts +2 -0
  12. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +1 -0
  13. package/dist/molecules/RichTextEditor/index.js +1 -1
  14. package/dist/node_modules/@equinor/eds-tokens/dist/esm/base/index.js +1 -1
  15. package/dist/node_modules/@equinor/eds-tokens/dist/esm/base/spacings.js +1 -1
  16. package/dist/node_modules/prosemirror-transform/dist/index.js +1 -1
  17. package/dist/organisms/FieldSelector/ChangingField.js +4 -4
  18. package/dist/organisms/Filter/Filter.styles.js +1 -1
  19. package/dist/organisms/Filter/QuickFilter.js +1 -1
  20. package/dist/organisms/Filter/Sorting.js +2 -2
  21. package/dist/organisms/SideBar/index.d.ts +7 -2
  22. package/dist/organisms/Status/Illustration.js +2 -2
  23. package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
  24. package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
  25. package/dist/organisms/Template/Template.js +2 -2
  26. package/dist/organisms/TopBar/Account/Account.js +1 -1
  27. package/dist/organisms/TopBar/Account/AccountAvatar.js +3 -3
  28. package/dist/organisms/TopBar/Account/AccountButton.js +3 -3
  29. package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
  30. package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +1 -1
  31. package/dist/organisms/TopBar/Account/ImpersonateButton.js +1 -1
  32. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
  33. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +1 -1
  34. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +1 -1
  35. package/dist/organisms/TopBar/Notifications/NotificationProvider.js +1 -1
  36. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.d.ts +2 -0
  37. package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
  38. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotes.js +1 -1
  39. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleasePosts/ReleasePost/ReleasePost.js +1 -1
  40. package/dist/organisms/TopBar/Resources/Resources.d.ts +0 -3
  41. package/dist/organisms/TopBar/Resources/Resources.js +5 -5
  42. package/dist/organisms/TopBar/TransferToAppDialog.js +3 -3
  43. package/dist/organisms/TopBar/Tutorials/TutorialItem.d.ts +8 -0
  44. package/dist/organisms/TopBar/Tutorials/TutorialItem.js +21 -0
  45. package/dist/organisms/TopBar/Tutorials/Tutorials.d.ts +6 -0
  46. package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -0
  47. package/dist/organisms/TopBar/Tutorials/Tutorials.styles.d.ts +2 -0
  48. package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +18 -0
  49. package/dist/organisms/TopBar/index.d.ts +2 -0
  50. package/dist/organisms/TopBar/index.js +1 -1
  51. package/dist/providers/AuthProvider/AuthProvider.js +1 -1
  52. package/dist/providers/ReleaseNotesProvider.utils.js +1 -1
  53. package/dist/providers/StepperProvider.js +1 -1
  54. package/dist/providers/TableOfContentsProvider.js +1 -1
  55. package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
  56. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.d.ts +2 -0
  57. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +1 -0
  58. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.d.ts +11 -0
  59. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +1 -0
  60. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.d.ts +6 -0
  61. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +24 -0
  62. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.d.ts +6 -0
  63. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +20 -0
  64. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.d.ts +11 -0
  65. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +45 -0
  66. package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.d.ts +1 -0
  67. package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +1 -0
  68. package/dist/providers/index.d.ts +1 -1
  69. package/dist/tests/mockHandlers.d.ts +5 -1
  70. package/package.json +69 -70
  71. package/dist/node_modules/@equinor/eds-tokens/dist/esm/base/clickbounds.js +0 -1
  72. package/dist/node_modules/@equinor/eds-tokens/dist/esm/base/interactions.js +0 -1
  73. package/dist/node_modules/@react-aria/i18n/dist/context.js +0 -1
  74. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.js +0 -1
  75. package/dist/node_modules/@react-aria/i18n/dist/utils.js +0 -1
  76. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.js +0 -1
  77. package/dist/organisms/TopBar/Resources/Tutorials/TutorialInfoDialog.d.ts +0 -15
  78. package/dist/organisms/TopBar/Resources/Tutorials/TutorialInfoDialog.js +0 -15
  79. package/dist/organisms/TopBar/Resources/Tutorials/TutorialItem.d.ts +0 -3
  80. package/dist/organisms/TopBar/Resources/Tutorials/TutorialItem.js +0 -12
  81. package/dist/providers/TutorialStepsProvider.d.ts +0 -23
  82. package/dist/providers/TutorialStepsProvider.js +0 -1
@@ -14,5 +14,4 @@ import { useSnackbar } from '../../providers/SnackbarProvider/SnackbarProvider';
14
14
  import { useStepper } from '../../providers/StepperProvider';
15
15
  import { useTableOfContents } from '../../providers/TableOfContentsProvider';
16
16
  import { useThemeProvider } from '../../providers/ThemeProvider/ThemeProvider';
17
- import { useTutorialSteps } from '../../providers/TutorialStepsProvider';
18
- export { useAuth, useStepper, useSelect, useDebounce, useFakeProgress, useLocalStorage, useNotification, useOnScreenMultiple, useTableOfContents, usePrevious, useReleaseNotes, useSideBar, useSignalRMessages, useSnackbar, useTutorialSteps, useThemeProvider, useAmplifyKit, };
17
+ export { useAuth, useStepper, useSelect, useDebounce, useFakeProgress, useLocalStorage, useNotification, useOnScreenMultiple, useTableOfContents, usePrevious, useReleaseNotes, useSideBar, useSignalRMessages, useSnackbar, useThemeProvider, useAmplifyKit, };
@@ -1,5 +1,6 @@
1
1
  import { IconData } from '@equinor/eds-icons';
2
2
  export declare const amplify_wellbore: IconData;
3
+ export declare const amplify_wireline: IconData;
3
4
  export declare const amplify_wireline_open_hole: IconData;
4
5
  export declare const amplify_wireline_cased_hole: IconData;
5
6
  export declare const amplify_lwd: IconData;
@@ -1 +1 @@
1
- const L={name:"wellbore",prefix:"amplify",height:"42",width:"42",svgPathData:"M5.43945 4.03906H36.5719V19.9348C36.5719 20.8749 35.8098 21.637 34.8697 21.637C33.9296 21.637 33.1675 20.8749 33.1675 19.9348V7.44345H29.6153L29.6153 25.1655H26.2786V36.716C26.2786 37.6561 25.5165 38.4182 24.5764 38.4182C23.6363 38.4182 22.8742 37.6561 22.8742 36.716V21.7611H26.2109V7.44345H15.7908L15.7908 21.7611H19.1274V36.716C19.1274 37.6561 18.3653 38.4182 17.4252 38.4182C16.4852 38.4182 15.7231 37.6561 15.7231 36.716V25.1655H12.3864L12.3864 7.44345H8.84384V19.9348C8.84384 20.8749 8.08174 21.637 7.14165 21.637C6.20155 21.637 5.43945 20.8749 5.43945 19.9348V4.03906Z"},V={name:"wireline_open_hole",prefix:"amplify",height:"24",width:"24",svgPathData:"M5.51325 4.13135V6.51157L7.02186 8.91188L7.34357 9.42376L7.03979 9.94648L5.82346 12.0394L7.03239 14.0516L7.41798 14.6934L6.91072 15.2441L5.51325 16.7613V18.8685V19.8685H3.51325V18.8685V16.3709V15.9805L3.77773 15.6934L4.93241 14.4398L3.80474 12.5629L3.50041 12.0563L3.79734 11.5454L5.00681 9.46427L3.66659 7.33186L3.51325 7.08788V6.79973V4.13135H5.51325ZM12.7393 4.13135H11.2598V8.24681L11.1224 8.37123L10.3456 9.04913C10.2766 9.10935 10.2371 9.19655 10.2374 9.28814L10.2452 11.9135L10.2373 15.1397C10.2371 15.2312 10.2766 15.3184 10.3455 15.3785L11.1224 16.0565L11.7875 16.6589C11.9079 16.768 12.0914 16.768 12.2118 16.6589L12.8769 16.0565L13.6538 15.3785C13.7227 15.3184 13.7622 15.2312 13.762 15.1397L13.7542 11.9135L13.7619 9.28814C13.7622 9.19655 13.7227 9.10935 13.6537 9.04913L12.8769 8.37123L12.7393 8.24656V4.13135ZM18.4868 6.51157V4.13135H20.4868V6.79973V7.08788L20.3334 7.33186L18.9932 9.46427L20.2027 11.5454L20.4996 12.0563L20.1953 12.5629L19.0676 14.4398L20.2223 15.6934L20.4868 15.9805V16.3709V18.8685V19.8685H18.4868V18.8685V16.7613L17.0893 15.2441L16.582 14.6934L16.9676 14.0516L18.1766 12.0394L16.9602 9.94648L16.6564 9.42376L16.9782 8.91188L18.4868 6.51157Z"},C={name:"wireline_cased_hole",prefix:"amplify",height:"24",width:"24",svgPathData:"M6.97852 4.51562V18.8799C6.97852 19.7083 7.65009 20.3799 8.47852 20.3799H15.5234C16.3519 20.3799 17.0234 19.7083 17.0234 18.8799V4.51562H15.0234V18.3799H8.97852V4.51562H6.97852Z M5.5 4.51562V19.1718C5.5 19.7241 5.05228 20.1718 4.5 20.1718C3.94772 20.1718 3.5 19.7241 3.5 19.1718V4.51562H5.5Z M20.5 4.51562V19.3789C20.5 19.9311 20.0523 20.3789 19.5 20.3789L19.5 20.3789C18.9477 20.3789 18.5 19.9311 18.5 19.3789V4.51562H20.5Z M12.7406 4.51562H11.2611V8.63109L11.1237 8.75551L10.3469 9.4334C10.2779 9.49363 10.2384 9.58083 10.2387 9.67242L10.2465 12.2978L10.2386 15.524C10.2384 15.6155 10.2779 15.7026 10.3469 15.7628L11.1237 16.4408L11.7889 17.0432C11.9092 17.1523 12.0927 17.1523 12.2131 17.0432L12.8782 16.4408L13.6551 15.7628C13.7241 15.7026 13.7635 15.6155 13.7633 15.524L13.7555 12.2978L13.7632 9.67242C13.7635 9.58083 13.724 9.49363 13.655 9.4334L12.8782 8.75551L12.7406 8.63084V4.51562Z"},H={name:"lwd",prefix:"amplify",height:"24",width:"24",svgPathData:"M11.1543 6.53806V4.14014H9.70985V14.0316L11.5709 15.8199C11.8504 16.0884 12.2908 16.0926 12.5754 15.8295L14.5039 14.0459V13.7301H13.7817L14.5039 13.729V4.14014H13.0595V7.93155L11.1543 6.53806ZM11.1543 7.44841V9.18162L13.0595 10.5751V8.8419L11.1543 7.44841ZM13.0595 11.4855L11.1543 10.092V13.4163L12.0875 14.3131L13.0595 13.4143V11.4855ZM8.42558 4.15088H3.50717V6.15088H6.42548L6.42504 15.5138L10.8021 19.4223C11.4379 19.99 12.3932 20.0073 13.0491 19.463L17.7738 15.542L17.7739 6.15119H20.4928V4.15119H15.774L15.7738 14.6027L11.9559 17.7712L8.42508 14.6184L8.42558 4.15088Z"},a={name:"success",prefix:"amplify",height:"24",width:"24",svgPathData:"M13 2H11V6.08296C10.0884 6.2359 9.24647 6.59441 8.52355 7.10919L5.41421 3.99985L4 5.41406L7.10931 8.52338C6.59447 9.24633 6.23591 10.0883 6.08296 11H2V13H6.08296C6.23382 13.8992 6.58469 14.7306 7.08827 15.4469L3.99962 18.5355L5.41384 19.9497L8.49397 16.8696C9.22346 17.3958 10.0759 17.762 11 17.917V22H13V17.917C13.9117 17.7641 14.7537 17.4055 15.4766 16.8907L18.5355 19.9496L19.9497 18.5354L16.8908 15.4764C17.4056 14.7535 17.7641 13.9116 17.917 13H22V11H17.917C17.762 10.0759 17.3958 9.22346 16.8696 8.49397L19.9494 5.41421L18.5352 4L15.4469 7.08827C14.7306 6.58469 13.8992 6.23382 13 6.08296V2Z"},e={name:"failure",prefix:"amplify",height:"24",width:"24",svgPathData:"M11 2H13V6.08296C15.5125 6.50448 17.4955 8.4875 17.917 11H22V13H17.917C17.4955 15.5125 15.5125 17.4955 13 17.917V22H11V17.917C8.4875 17.4955 6.50448 15.5125 6.08296 13H2V11H6.08296C6.50448 8.4875 8.4875 6.50448 11 6.08296V2ZM16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z"};export{e as amplify_failure,H as amplify_lwd,a as amplify_success,L as amplify_wellbore,C as amplify_wireline_cased_hole,V as amplify_wireline_open_hole};
1
+ const L={name:"wellbore",prefix:"amplify",height:"42",width:"42",svgPathData:"M5.43945 4.03906H36.5719V19.9348C36.5719 20.8749 35.8098 21.637 34.8697 21.637C33.9296 21.637 33.1675 20.8749 33.1675 19.9348V7.44345H29.6153L29.6153 25.1655H26.2786V36.716C26.2786 37.6561 25.5165 38.4182 24.5764 38.4182C23.6363 38.4182 22.8742 37.6561 22.8742 36.716V21.7611H26.2109V7.44345H15.7908L15.7908 21.7611H19.1274V36.716C19.1274 37.6561 18.3653 38.4182 17.4252 38.4182C16.4852 38.4182 15.7231 37.6561 15.7231 36.716V25.1655H12.3864L12.3864 7.44345H8.84384V19.9348C8.84384 20.8749 8.08174 21.637 7.14165 21.637C6.20155 21.637 5.43945 20.8749 5.43945 19.9348V4.03906Z"},V={name:"wireline",prefix:"amplify",height:"24",width:"24",svgPathData:'M15.9253 2H10.0753V2.9H8.12531V4.7L9.10031 4.7V6.4174L6.50033 17H5.41699V19H10.8566V17L8.66699 17L9.2719 14.5022L12.4587 11.5606V22H13.542V11.5606L16.7287 14.5022L17.3337 17H15.144V19H20.5837V17H19.5003L16.9003 6.41741V4.7L17.8753 4.7V2.9H15.9253V2ZM13.7664 10.3535L16.2876 12.6808L15.6913 10.2186L15.415 8.83173L13.7664 10.3535ZM15.1769 7.63724L13.542 9.14641V4.7H14.9503V6.5L15.1769 7.63724ZM12.2343 10.3535L9.713 12.6809L10.2948 10.2784L10.5468 9.0269L10.5857 8.83171L12.2343 10.3535ZM12.4587 9.14641L10.8237 7.63721L10.8566 7.47219L11.0503 6.5V4.7H12.4587V9.14641Z" fill="#007079'},H={name:"wireline_open_hole",prefix:"amplify",height:"24",width:"24",svgPathData:"M5.51325 4.13135V6.51157L7.02186 8.91188L7.34357 9.42376L7.03979 9.94648L5.82346 12.0394L7.03239 14.0516L7.41798 14.6934L6.91072 15.2441L5.51325 16.7613V18.8685V19.8685H3.51325V18.8685V16.3709V15.9805L3.77773 15.6934L4.93241 14.4398L3.80474 12.5629L3.50041 12.0563L3.79734 11.5454L5.00681 9.46427L3.66659 7.33186L3.51325 7.08788V6.79973V4.13135H5.51325ZM12.7393 4.13135H11.2598V8.24681L11.1224 8.37123L10.3456 9.04913C10.2766 9.10935 10.2371 9.19655 10.2374 9.28814L10.2452 11.9135L10.2373 15.1397C10.2371 15.2312 10.2766 15.3184 10.3455 15.3785L11.1224 16.0565L11.7875 16.6589C11.9079 16.768 12.0914 16.768 12.2118 16.6589L12.8769 16.0565L13.6538 15.3785C13.7227 15.3184 13.7622 15.2312 13.762 15.1397L13.7542 11.9135L13.7619 9.28814C13.7622 9.19655 13.7227 9.10935 13.6537 9.04913L12.8769 8.37123L12.7393 8.24656V4.13135ZM18.4868 6.51157V4.13135H20.4868V6.79973V7.08788L20.3334 7.33186L18.9932 9.46427L20.2027 11.5454L20.4996 12.0563L20.1953 12.5629L19.0676 14.4398L20.2223 15.6934L20.4868 15.9805V16.3709V18.8685V19.8685H18.4868V18.8685V16.7613L17.0893 15.2441L16.582 14.6934L16.9676 14.0516L18.1766 12.0394L16.9602 9.94648L16.6564 9.42376L16.9782 8.91188L18.4868 6.51157Z"},C={name:"wireline_cased_hole",prefix:"amplify",height:"24",width:"24",svgPathData:"M6.97852 4.51562V18.8799C6.97852 19.7083 7.65009 20.3799 8.47852 20.3799H15.5234C16.3519 20.3799 17.0234 19.7083 17.0234 18.8799V4.51562H15.0234V18.3799H8.97852V4.51562H6.97852Z M5.5 4.51562V19.1718C5.5 19.7241 5.05228 20.1718 4.5 20.1718C3.94772 20.1718 3.5 19.7241 3.5 19.1718V4.51562H5.5Z M20.5 4.51562V19.3789C20.5 19.9311 20.0523 20.3789 19.5 20.3789L19.5 20.3789C18.9477 20.3789 18.5 19.9311 18.5 19.3789V4.51562H20.5Z M12.7406 4.51562H11.2611V8.63109L11.1237 8.75551L10.3469 9.4334C10.2779 9.49363 10.2384 9.58083 10.2387 9.67242L10.2465 12.2978L10.2386 15.524C10.2384 15.6155 10.2779 15.7026 10.3469 15.7628L11.1237 16.4408L11.7889 17.0432C11.9092 17.1523 12.0927 17.1523 12.2131 17.0432L12.8782 16.4408L13.6551 15.7628C13.7241 15.7026 13.7635 15.6155 13.7633 15.524L13.7555 12.2978L13.7632 9.67242C13.7635 9.58083 13.724 9.49363 13.655 9.4334L12.8782 8.75551L12.7406 8.63084V4.51562Z"},a={name:"lwd",prefix:"amplify",height:"24",width:"24",svgPathData:"M11.1543 6.53806V4.14014H9.70985V14.0316L11.5709 15.8199C11.8504 16.0884 12.2908 16.0926 12.5754 15.8295L14.5039 14.0459V13.7301H13.7817L14.5039 13.729V4.14014H13.0595V7.93155L11.1543 6.53806ZM11.1543 7.44841V9.18162L13.0595 10.5751V8.8419L11.1543 7.44841ZM13.0595 11.4855L11.1543 10.092V13.4163L12.0875 14.3131L13.0595 13.4143V11.4855ZM8.42558 4.15088H3.50717V6.15088H6.42548L6.42504 15.5138L10.8021 19.4223C11.4379 19.99 12.3932 20.0073 13.0491 19.463L17.7738 15.542L17.7739 6.15119H20.4928V4.15119H15.774L15.7738 14.6027L11.9559 17.7712L8.42508 14.6184L8.42558 4.15088Z"},e={name:"success",prefix:"amplify",height:"24",width:"24",svgPathData:"M13 2H11V6.08296C10.0884 6.2359 9.24647 6.59441 8.52355 7.10919L5.41421 3.99985L4 5.41406L7.10931 8.52338C6.59447 9.24633 6.23591 10.0883 6.08296 11H2V13H6.08296C6.23382 13.8992 6.58469 14.7306 7.08827 15.4469L3.99962 18.5355L5.41384 19.9497L8.49397 16.8696C9.22346 17.3958 10.0759 17.762 11 17.917V22H13V17.917C13.9117 17.7641 14.7537 17.4055 15.4766 16.8907L18.5355 19.9496L19.9497 18.5354L16.8908 15.4764C17.4056 14.7535 17.7641 13.9116 17.917 13H22V11H17.917C17.762 10.0759 17.3958 9.22346 16.8696 8.49397L19.9494 5.41421L18.5352 4L15.4469 7.08827C14.7306 6.58469 13.8992 6.23382 13 6.08296V2Z"},i={name:"failure",prefix:"amplify",height:"24",width:"24",svgPathData:"M11 2H13V6.08296C15.5125 6.50448 17.4955 8.4875 17.917 11H22V13H17.917C17.4955 15.5125 15.5125 17.4955 13 17.917V22H11V17.917C8.4875 17.4955 6.50448 15.5125 6.08296 13H2V11H6.08296C6.50448 8.4875 8.4875 6.50448 11 6.08296V2ZM16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z"};export{i as amplify_failure,a as amplify_lwd,e as amplify_success,L as amplify_wellbore,V as amplify_wireline,C as amplify_wireline_cased_hole,H as amplify_wireline_open_hole};
@@ -1 +1 @@
1
- import"react";import"../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../molecules/RichTextEditor/RichTextEditor.types.js";import"../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";export{EnvironmentType}from"./enums/Environment.js";export{auth,environment}from"./utils/auth_environment.js";export{useNotification}from"../organisms/TopBar/Notifications/NotificationProvider.js";export{useAuth}from"../providers/AuthProvider/AuthProvider.js";export{useReleaseNotes}from"../providers/ReleaseNotesProvider.js";export{useSideBar}from"../providers/SideBarProvider.js";export{useSnackbar}from"../providers/SnackbarProvider/SnackbarProvider.js";export{useStepper}from"../providers/StepperProvider.js";export{useTableOfContents}from"../providers/TableOfContentsProvider.js";export{useThemeProvider}from"../providers/ThemeProvider/ThemeProvider.js";export{useTutorialSteps}from"../providers/TutorialStepsProvider.js";import*as r from"./style/index.js";export{elevation,shape,typography}from"./style/index.js";export{ErrorType}from"./enums/Errors.js";export{Theme}from"./enums/Theme.js";export{SpacingsMode}from"./enums/SpacingsMode.js";import"html2canvas";import"proj4";const e=r;export{e as style};
1
+ import"react";import"../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../molecules/RichTextEditor/RichTextEditor.types.js";import"../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";export{EnvironmentType}from"./enums/Environment.js";export{auth,environment}from"./utils/auth_environment.js";export{useNotification}from"../organisms/TopBar/Notifications/NotificationProvider.js";export{useAuth}from"../providers/AuthProvider/AuthProvider.js";export{useReleaseNotes}from"../providers/ReleaseNotesProvider.js";export{useSideBar}from"../providers/SideBarProvider.js";export{useSnackbar}from"../providers/SnackbarProvider/SnackbarProvider.js";export{useStepper}from"../providers/StepperProvider.js";export{useTableOfContents}from"../providers/TableOfContentsProvider.js";export{useThemeProvider}from"../providers/ThemeProvider/ThemeProvider.js";import*as r from"./style/index.js";export{elevation,shape,typography}from"./style/index.js";export{ErrorType}from"./enums/Errors.js";export{Theme}from"./enums/Theme.js";export{SpacingsMode}from"./enums/SpacingsMode.js";import"html2canvas";import"proj4";const e=r;export{e as style};
@@ -10,3 +10,4 @@ export * from './size';
10
10
  export * from './sort';
11
11
  export * from './string';
12
12
  export * from './url';
13
+ export * from './tutorials';
@@ -1 +1 @@
1
- import{RichTextEditorFeatures as e,DEFAULT_FEATURES as r}from"../../molecules/RichTextEditor/RichTextEditor.types.js";function t({features:t,extendFeatures:n,removeFeatures:o,onImageUpload:i}){const a=[...t??r,...n??[]].filter((e=>!o?.includes(e))).filter(((e,r,t)=>r===t.indexOf(e)));if(a.includes(e.IMAGES)&&void 0===i)throw new Error("onImageUpload cannot be undefined when features include images!\n Either add the onImageUpload function or remove RichTextEditorFeatures.IMAGES from the features array");return a}const n=/(<img src=".*?" alt="(.*?)">)/g,o=/(<img alt="(.*?)" \/>)/g;function i(e){if(!e)return[];const r=[],t=e.matchAll(o);for(const e of t)r.push(e[2]);return r}function a(e){return new Promise(((r,t)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{"string"==typeof n.result&&r(n.result)},n.onerror=t}))}function s(e){return e.replaceAll(n,'<img alt="$2" />')}export{o as IMG_WITH_ALT,n as IMG_WITH_SRC_AND_ALT,s as cleanRichTextValue,i as extractImageUrls,t as getFeatures,a as imageToB64};
1
+ import{DEFAULT_FEATURES as e,RichTextEditorFeatures as r}from"../../molecules/RichTextEditor/RichTextEditor.types.js";function t({features:t,extendFeatures:n,removeFeatures:o,onImageUpload:i}){const a=[...t??e,...n??[]].filter((e=>!o?.includes(e))).filter(((e,r,t)=>r===t.indexOf(e)));if(a.includes(r.IMAGES)&&void 0===i)throw new Error("onImageUpload cannot be undefined when features include images!\n Either add the onImageUpload function or remove RichTextEditorFeatures.IMAGES from the features array");return a}const n=/(<img src=".*?" alt="(.*?)">)/g,o=/(<img alt="(.*?)" \/>)/g;function i(e){if(!e)return[];const r=[],t=e.matchAll(o);for(const e of t)r.push(e[2]);return r}function a(e){return new Promise(((r,t)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{"string"==typeof n.result&&r(n.result)},n.onerror=t}))}function s(e){return e.replaceAll(n,'<img alt="$2" />')}export{o as IMG_WITH_ALT,n as IMG_WITH_SRC_AND_ALT,s as cleanRichTextValue,i as extractImageUrls,t as getFeatures,a as imageToB64};
@@ -0,0 +1,10 @@
1
+ /**
2
+ *
3
+ * @param tutorialId - ID of the relevant tutorial in SAM
4
+ * @param stepNum - Which step in the tutorial, starts at 0
5
+ */
6
+ export declare function highlightTutorialElementID(tutorialId: string, stepNum: number): string;
7
+ export interface TutorialHighlight extends Pick<DOMRect, 'top' | 'left' | 'height' | 'width'> {
8
+ id: string;
9
+ }
10
+ export declare function getHighlightElementBoundingBox(tutorialId: string, stepNum: number): TutorialHighlight | undefined;
@@ -0,0 +1 @@
1
+ function t(t,e){if(e<0)throw new Error(`[TutorialHighlightingProvider]: stepNum must be greater than or equal to 0, received ${e}`);return`sam-tutorial-${t}-${e}`}function e(e,o){const n=t(e,o),i=document.getElementById(n);if(!i)return void console.warn(`[TutorialHighlightingProvider]: Element with ID ${n} not found`);const r=i.getBoundingClientRect(),l=document.getElementById("content").scrollTop;return(r.top<=0||r.left<=0||r.bottom>=window.innerHeight||r.right>=window.innerWidth)&&i.scrollIntoView({behavior:"smooth",block:"center"}),{id:e,top:r.top-5+l,left:r.left-5,width:r.width+10,height:r.height+10}}export{e as getHighlightElementBoundingBox,t as highlightTutorialElementID};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{AuthProvider,useAuth}from"./providers/AuthProvider/AuthProvider.js";export{SideBarProvider,useSideBar}from"./providers/SideBarProvider.js";export{SnackbarProvider,useSnackbar}from"./providers/SnackbarProvider/SnackbarProvider.js";export{TableOfContentsProvider,useTableOfContents}from"./providers/TableOfContentsProvider.js";export{ReleaseNotesProvider,useReleaseNotes}from"./providers/ReleaseNotesProvider.js";export{TutorialStepsProvider,useTutorialSteps}from"./providers/TutorialStepsProvider.js";export{LoadingProvider}from"./providers/LoadingProvider.js";export{ThemeProvider,useThemeProvider}from"./providers/ThemeProvider/ThemeProvider.js";export{StepperProvider,useStepper}from"./providers/StepperProvider.js";export{style}from"./atoms/index.js";export{AnimatedCheckmark}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";export{ApplicationIcon}from"./molecules/ApplicationIcon/ApplicationIcon.js";export{Badge}from"./molecules/Badge/Badge.js";export{Banner}from"./molecules/Banner/Banner.js";export{Chip}from"./molecules/Chip/Chip.js";export{ContentMenu}from"./molecules/ContentMenu/ContentMenu.js";export{DatePicker}from"./molecules/DatePicker/DatePicker.js";export{Dialog}from"./molecules/Dialog/Dialog.js";export{EquinorLogo}from"./molecules/EquinorLogo/EquinorLogo.js";export{FileProgress}from"./molecules/FileProgress/FileProgress.js";export{FileUploadArea}from"./molecules/FileUploadArea/FileUploadArea.js";export{FullPageSpinner}from"./molecules/FullPageSpinner/FullPageSpinner.js";export{InfoElement}from"./molecules/InfoElement/InfoElement.js";export{OptionalTooltip}from"./molecules/OptionalTooltip/OptionalTooltip.js";export{ProfileAvatar}from"./molecules/ProfileAvatar/ProfileAvatar.js";export{RichTextDisplay}from"./molecules/RichTextDisplay/RichTextDisplay.js";export{RichText}from"./molecules/RichTextEditor/index.js";export{AmplifyBar,EditorMenu,EditorText}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";export{AmplifyKit}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";export{TableMenuBar,TextTable}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";export{DEFAULT_FEATURES,RichTextEditorFeatures}from"./molecules/RichTextEditor/RichTextEditor.types.js";export{Search}from"./molecules/Search/Search.js";export{Sieve}from"./molecules/Sieve/Sieve.js";export{SingleFilterMenu}from"./molecules/SingleFilterMenu/SingleFilterMenu.js";export{SkeletonBase,skeletonBaseloading}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";export{SkeletonGradient}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";export{Stepper}from"./molecules/Stepper/Stepper.js";export{OptionDrawer}from"./molecules/OptionDrawer/OptionDrawer.js";export{ComboBox}from"./molecules/Select/ComboBox/ComboBox.js";export{ComboBoxChip}from"./molecules/Select/Select.styles.js";export{SingleSelect}from"./molecules/Select/SingleSelect/SingleSelect.js";export{PageWithTitle}from"./molecules/PageWithTitle/PageWithTitle.js";export{FeedBackIcon}from"./molecules/FeedBackIcon/FeedBackIcon.js";export{ListItem}from"./molecules/ListItem/ListItem.js";export{Checkbox}from"./molecules/SelectionControls/Checkbox/Checkbox.js";export{Radio}from"./molecules/SelectionControls/Radio/Radio.js";export{Switch}from"./molecules/SelectionControls/Switch/Switch.js";export{Accordion,Breadcrumbs,Button,Card,CircularProgress,DateRangePicker,Divider,DotProgress,Dialog as EDSDialog,Icon,LinearProgress,Menu,Tabs,TextField,Typography}from"@equinor/eds-core-react";export{DataGrid}from"./organisms/DataGrid/DataGrid.js";export{FieldSelector}from"./organisms/FieldSelector/FieldSelector.js";export{Filter}from"./organisms/Filter/Filter.js";export{SideBar}from"./organisms/SideBar/index.js";export{TopBar}from"./organisms/TopBar/index.js";export{Status}from"./organisms/Status/index.js";export{BadRequest}from"./organisms/Status/collections/BadRequest.js";export{GenericError}from"./organisms/Status/collections/GenericError.js";export{MissingAccessToApp}from"./organisms/Status/collections/MissingAccessToApp.js";export{MissingPermissions}from"./organisms/Status/collections/MissingPermissions.js";export{PageNotFound}from"./organisms/Status/collections/PageNotFound.js";export{ServerError}from"./organisms/Status/collections/ServerError.js";export{ApiResponseError}from"./organisms/Status/collections/ApiResponseError.js";export{TableOfContents}from"./organisms/TableOfContents/TableOfContents.js";export{Template}from"./organisms/Template/Template.js";export{ExpandingIconButton}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";export{default as IconToggleButton}from"./deprecated/IconToggleButton.js";export{OldStepper}from"./deprecated/OldStepper/OldStepper.js";export{useSelect}from"./atoms/hooks/useSelect.js";export{useDebounce}from"./atoms/hooks/useDebounce.js";export{useFakeProgress}from"./atoms/hooks/useFakeProgress.js";export{useLocalStorage}from"./atoms/hooks/useLocalStorage.js";export{useNotification}from"./organisms/TopBar/Notifications/NotificationProvider.js";export{useOnScreenMultiple}from"./atoms/hooks/useOnScreenMultiple.js";export{usePrevious}from"./atoms/hooks/usePrevious.js";export{useSignalRMessages}from"./atoms/hooks/useSignalRMessages.js";export{useAmplifyKit}from"./atoms/hooks/useAmplifyKit.js";export{spacings}from"./atoms/style/spacings.js";export{colors}from"./atoms/style/colors.js";export{animation}from"./atoms/style/animation.js";export{elevation,shape,typography}from"./atoms/style/index.js";export{ErrorType}from"./atoms/enums/Errors.js";export{EnvironmentType}from"./atoms/enums/Environment.js";export{Theme}from"./atoms/enums/Theme.js";export{SpacingsMode}from"./atoms/enums/SpacingsMode.js";export{amplify_failure,amplify_lwd,amplify_success,amplify_wellbore,amplify_wireline_cased_hole,amplify_wireline_open_hole}from"./atoms/icons/drilling.js";export{amplify_calculator,amplify_overlay,amplify_sidebyside}from"./atoms/icons/map.js";export{amplify_aml,amplify_arrow_up_down,amplify_branch,amplify_info_small,amplify_merged,amplify_overview,amplify_resources,amplify_sharepoint,amplify_shield_person,amplify_small_portal,amplify_snail,amplify_sort_small,amplify_tutorials}from"./atoms/icons/other.js";export{amplify_h1,amplify_h2,amplify_h3,amplify_h4,amplify_table_add_column_left,amplify_table_add_column_right,amplify_table_add_row_above,amplify_table_add_row_below,amplify_table_column_heading,amplify_table_merge_cells,amplify_table_remove_column,amplify_table_remove_row,amplify_table_row_heading,amplify_table_split_cell}from"./atoms/icons/wysiwyg.js";export{auth,environment}from"./atoms/utils/auth_environment.js";export{formatLatLng,formatUtm}from"./atoms/utils/coordinate.js";export{formatDate,formatDateTime,formatRelativeDateTime,isBetweenDates}from"./atoms/utils/date.js";export{exportComponent}from"./atoms/utils/export.js";export{setupIcons}from"./atoms/utils/favicon.js";export{convertLatLngToUtm,convertUtmToLatLng,degrees2radians,distanceLatLng,utmProjection}from"./atoms/utils/map.js";export{defaultQueryOptions}from"./atoms/utils/reactquery.js";export{IMG_WITH_ALT,IMG_WITH_SRC_AND_ALT,cleanRichTextValue,extractImageUrls,getFeatures,imageToB64}from"./atoms/utils/richtext.js";export{formatBytes,formatDataSize,formatKiloBytes}from"./atoms/utils/size.js";export{sortByDate,sortByWellboreName}from"./atoms/utils/sort.js";export{Empty,capitalize}from"./atoms/utils/string.js";export{isValidUrl}from"./atoms/utils/url.js";export{RichTextEditor}from"./molecules/RichTextEditor/RichTextEditor.js";
1
+ export{AuthProvider,useAuth}from"./providers/AuthProvider/AuthProvider.js";export{SideBarProvider,useSideBar}from"./providers/SideBarProvider.js";export{SnackbarProvider,useSnackbar}from"./providers/SnackbarProvider/SnackbarProvider.js";export{TableOfContentsProvider,useTableOfContents}from"./providers/TableOfContentsProvider.js";export{ReleaseNotesProvider,useReleaseNotes}from"./providers/ReleaseNotesProvider.js";export{TutorialHighlightingProvider}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";export{LoadingProvider}from"./providers/LoadingProvider.js";export{ThemeProvider,useThemeProvider}from"./providers/ThemeProvider/ThemeProvider.js";export{StepperProvider,useStepper}from"./providers/StepperProvider.js";export{style}from"./atoms/index.js";export{AnimatedCheckmark}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";export{ApplicationIcon}from"./molecules/ApplicationIcon/ApplicationIcon.js";export{Badge}from"./molecules/Badge/Badge.js";export{Banner}from"./molecules/Banner/Banner.js";export{Chip}from"./molecules/Chip/Chip.js";export{ContentMenu}from"./molecules/ContentMenu/ContentMenu.js";export{DatePicker}from"./molecules/DatePicker/DatePicker.js";export{Dialog}from"./molecules/Dialog/Dialog.js";export{EquinorLogo}from"./molecules/EquinorLogo/EquinorLogo.js";export{FileProgress}from"./molecules/FileProgress/FileProgress.js";export{FileUploadArea}from"./molecules/FileUploadArea/FileUploadArea.js";export{FullPageSpinner}from"./molecules/FullPageSpinner/FullPageSpinner.js";export{InfoElement}from"./molecules/InfoElement/InfoElement.js";export{OptionalTooltip}from"./molecules/OptionalTooltip/OptionalTooltip.js";export{ProfileAvatar}from"./molecules/ProfileAvatar/ProfileAvatar.js";export{RichTextDisplay}from"./molecules/RichTextDisplay/RichTextDisplay.js";export{RichText}from"./molecules/RichTextEditor/index.js";export{AmplifyBar,EditorMenu,EditorText}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";export{AmplifyKit}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";export{TableMenuBar,TextTable}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";export{DEFAULT_FEATURES,RichTextEditorFeatures}from"./molecules/RichTextEditor/RichTextEditor.types.js";export{Search}from"./molecules/Search/Search.js";export{Sieve}from"./molecules/Sieve/Sieve.js";export{SingleFilterMenu}from"./molecules/SingleFilterMenu/SingleFilterMenu.js";export{SkeletonBase,skeletonBaseloading}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";export{SkeletonGradient}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";export{Stepper}from"./molecules/Stepper/Stepper.js";export{OptionDrawer}from"./molecules/OptionDrawer/OptionDrawer.js";export{ComboBox}from"./molecules/Select/ComboBox/ComboBox.js";export{ComboBoxChip}from"./molecules/Select/Select.styles.js";export{SingleSelect}from"./molecules/Select/SingleSelect/SingleSelect.js";export{PageWithTitle}from"./molecules/PageWithTitle/PageWithTitle.js";export{FeedBackIcon}from"./molecules/FeedBackIcon/FeedBackIcon.js";export{ListItem}from"./molecules/ListItem/ListItem.js";export{Checkbox}from"./molecules/SelectionControls/Checkbox/Checkbox.js";export{Radio}from"./molecules/SelectionControls/Radio/Radio.js";export{Switch}from"./molecules/SelectionControls/Switch/Switch.js";export{Accordion,Breadcrumbs,Button,Card,CircularProgress,DateRangePicker,Divider,DotProgress,Dialog as EDSDialog,Icon,LinearProgress,Menu,Tabs,TextField,Typography}from"@equinor/eds-core-react";export{DataGrid}from"./organisms/DataGrid/DataGrid.js";export{FieldSelector}from"./organisms/FieldSelector/FieldSelector.js";export{Filter}from"./organisms/Filter/Filter.js";export{SideBar}from"./organisms/SideBar/index.js";export{TopBar}from"./organisms/TopBar/index.js";export{Status}from"./organisms/Status/index.js";export{BadRequest}from"./organisms/Status/collections/BadRequest.js";export{GenericError}from"./organisms/Status/collections/GenericError.js";export{MissingAccessToApp}from"./organisms/Status/collections/MissingAccessToApp.js";export{MissingPermissions}from"./organisms/Status/collections/MissingPermissions.js";export{PageNotFound}from"./organisms/Status/collections/PageNotFound.js";export{ServerError}from"./organisms/Status/collections/ServerError.js";export{ApiResponseError}from"./organisms/Status/collections/ApiResponseError.js";export{TableOfContents}from"./organisms/TableOfContents/TableOfContents.js";export{Template}from"./organisms/Template/Template.js";export{ExpandingIconButton}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";export{default as IconToggleButton}from"./deprecated/IconToggleButton.js";export{OldStepper}from"./deprecated/OldStepper/OldStepper.js";export{useSelect}from"./atoms/hooks/useSelect.js";export{useDebounce}from"./atoms/hooks/useDebounce.js";export{useFakeProgress}from"./atoms/hooks/useFakeProgress.js";export{useLocalStorage}from"./atoms/hooks/useLocalStorage.js";export{useNotification}from"./organisms/TopBar/Notifications/NotificationProvider.js";export{useOnScreenMultiple}from"./atoms/hooks/useOnScreenMultiple.js";export{usePrevious}from"./atoms/hooks/usePrevious.js";export{useSignalRMessages}from"./atoms/hooks/useSignalRMessages.js";export{useAmplifyKit}from"./atoms/hooks/useAmplifyKit.js";export{spacings}from"./atoms/style/spacings.js";export{colors}from"./atoms/style/colors.js";export{animation}from"./atoms/style/animation.js";export{elevation,shape,typography}from"./atoms/style/index.js";export{ErrorType}from"./atoms/enums/Errors.js";export{EnvironmentType}from"./atoms/enums/Environment.js";export{Theme}from"./atoms/enums/Theme.js";export{SpacingsMode}from"./atoms/enums/SpacingsMode.js";export{amplify_failure,amplify_lwd,amplify_success,amplify_wellbore,amplify_wireline,amplify_wireline_cased_hole,amplify_wireline_open_hole}from"./atoms/icons/drilling.js";export{amplify_calculator,amplify_overlay,amplify_sidebyside}from"./atoms/icons/map.js";export{amplify_aml,amplify_arrow_up_down,amplify_branch,amplify_info_small,amplify_merged,amplify_overview,amplify_resources,amplify_sharepoint,amplify_shield_person,amplify_small_portal,amplify_snail,amplify_sort_small,amplify_tutorials}from"./atoms/icons/other.js";export{amplify_h1,amplify_h2,amplify_h3,amplify_h4,amplify_table_add_column_left,amplify_table_add_column_right,amplify_table_add_row_above,amplify_table_add_row_below,amplify_table_column_heading,amplify_table_merge_cells,amplify_table_remove_column,amplify_table_remove_row,amplify_table_row_heading,amplify_table_split_cell}from"./atoms/icons/wysiwyg.js";export{auth,environment}from"./atoms/utils/auth_environment.js";export{formatLatLng,formatUtm}from"./atoms/utils/coordinate.js";export{formatDate,formatDateTime,formatRelativeDateTime,isBetweenDates}from"./atoms/utils/date.js";export{exportComponent}from"./atoms/utils/export.js";export{setupIcons}from"./atoms/utils/favicon.js";export{convertLatLngToUtm,convertUtmToLatLng,degrees2radians,distanceLatLng,utmProjection}from"./atoms/utils/map.js";export{defaultQueryOptions}from"./atoms/utils/reactquery.js";export{IMG_WITH_ALT,IMG_WITH_SRC_AND_ALT,cleanRichTextValue,extractImageUrls,getFeatures,imageToB64}from"./atoms/utils/richtext.js";export{formatBytes,formatDataSize,formatKiloBytes}from"./atoms/utils/size.js";export{sortByDate,sortByWellboreName}from"./atoms/utils/sort.js";export{Empty,capitalize}from"./atoms/utils/string.js";export{isValidUrl}from"./atoms/utils/url.js";export{getHighlightElementBoundingBox,highlightTutorialElementID}from"./atoms/utils/tutorials.js";export{RichTextEditor}from"./molecules/RichTextEditor/RichTextEditor.js";
@@ -1 +1 @@
1
- import{jsxs as r,jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{DatePicker as o,Typography as i}from"@equinor/eds-core-react";import{DatePickerWrapper as a}from"./DatePicker.styles.js";import{I18nProvider as n}from"../../node_modules/@react-aria/i18n/dist/context.js";const m=t(((t,m)=>{const c=t.locale??"en-GB",s=void 0!==t.formatOptions?t.formatOptions:{month:"long",day:"2-digit",year:"numeric"};return r(a,{children:[e(n,{locale:c,children:e(o,{...t,ref:m,formatOptions:s})}),t.meta&&e(i,{variant:"helper",group:"input",children:t.meta})]})}));m.displayName="DatePicker";export{m as DatePicker};
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{DatePicker as o,Typography as i}from"@equinor/eds-core-react";import{DatePickerWrapper as a}from"./DatePicker.styles.js";const m=t(((t,m)=>{const n=t.locale??"en-GB",c=void 0!==t.formatOptions?t.formatOptions:{month:"long",day:"2-digit",year:"numeric"};return r(a,{children:[e(o,{...t,ref:m,locale:n,formatOptions:c}),t.meta&&e(i,{variant:"helper",group:"input",children:t.meta})]})}));m.displayName="DatePicker";export{m as DatePicker};
@@ -18,11 +18,13 @@ export declare const FileTooltip: import("styled-components/dist/types").IStyled
18
18
  title?: string;
19
19
  children: React.ReactElement & React.RefAttributes<HTMLElement>;
20
20
  enterDelay?: number;
21
+ portalContainer?: HTMLElement;
21
22
  } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<{
22
23
  placement?: import("@floating-ui/utils").Placement;
23
24
  title?: string;
24
25
  children: React.ReactElement & React.RefAttributes<HTMLElement>;
25
26
  enterDelay?: number;
27
+ portalContainer?: HTMLElement;
26
28
  } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
27
29
  export declare const CircularProgress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@equinor/eds-core-react").CircularProgressProps, "ref"> & import("react").RefAttributes<SVGSVGElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("@equinor/eds-core-react").CircularProgressProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>, keyof import("react").Component<any, {}, any>>;
28
30
  export {};
@@ -9,4 +9,5 @@ export declare const OptionalTooltip: import("react").ForwardRefExoticComponent<
9
9
  title?: string;
10
10
  children: React.ReactElement & React.RefAttributes<HTMLElement>;
11
11
  enterDelay?: number;
12
+ portalContainer?: HTMLElement;
12
13
  } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- import{AmplifyBar as r}from"./MenuBar/MenuBar.js";import{EditorProvider as t}from"./EditorProvider.js";import{EditorStyling as o,EditorContent as i}from"./RichTextEditor.styles.js";import{RichTextDisplay as e}from"../RichTextDisplay/RichTextDisplay.js";import"react/jsx-runtime";import"@equinor/eds-core-react";import"../../atoms/style/colors.js";import"./RichTextEditor.types.js";const s={Styling:o,Provider:t,Content:i,Display:e,Bar:r};export{s as RichText};
1
+ import{AmplifyBar as r}from"./MenuBar/MenuBar.js";import{EditorProvider as t}from"./EditorProvider.js";import{EditorContent as o,EditorStyling as i}from"./RichTextEditor.styles.js";import{RichTextDisplay as e}from"../RichTextDisplay/RichTextDisplay.js";import"react/jsx-runtime";import"@equinor/eds-core-react";import"../../atoms/style/colors.js";import"./RichTextEditor.types.js";const s={Styling:i,Provider:t,Content:o,Display:e,Bar:r};export{s as RichText};
@@ -1 +1 @@
1
- import{clickbounds as o}from"./clickbounds.js";import{colors as r}from"./colors.js";import{elevation as s}from"./elevation.js";import{interactions as i}from"./interactions.js";import{shape as p}from"./shape.js";import{typography as t}from"./typography.js";import{spacings as m}from"./spacings.js";var a={clickbounds:o,colors:r,elevation:s,interactions:i,shape:p,typography:t,spacings:m};export{a as tokens};
1
+ import{colors as o}from"./colors.js";import{elevation as r}from"./elevation.js";import{shape as p}from"./shape.js";import{typography as s}from"./typography.js";import{spacings as m}from"./spacings.js";var t={colors:o,elevation:r,shape:p,typography:s,spacings:m};export{t as tokens};
@@ -1 +1 @@
1
- var x={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}};export{x as spacings};
1
+ var l={comfortable:{large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px"}};export{l as spacings};
@@ -1 +1 @@
1
- import{Slice as t,Fragment as e,ReplaceError as r}from"../../prosemirror-model/dist/index.js";const s=Math.pow(2,16);function o(t){return 65535&t}class i{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class n{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&n.empty)return n.empty}recover(t){let e=0,r=o(t);if(!this.inverted)for(let t=0;t<r;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*r]+e+function(t){return(t-(65535&t))/s}(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,r){let o=0,n=this.inverted?2:1,a=this.inverted?1:2;for(let h=0;h<this.ranges.length;h+=3){let p=this.ranges[h]-(this.inverted?o:0);if(p>t)break;let l=this.ranges[h+n],m=this.ranges[h+a],u=p+l;if(t<=u){let n=p+o+((l?t==p?-1:t==u?1:e:e)<0?0:m);if(r)return n;let a=t==(e<0?p:u)?null:h/3+(t-p)*s,f=t==p?2:t==u?1:4;return(e<0?t!=p:t!=u)&&(f|=8),new i(n,f,a)}o+=m-l}return r?t+o:new i(t+o,0,null)}touches(t,e){let r=0,s=o(e),i=this.inverted?2:1,n=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let o=this.ranges[e]-(this.inverted?r:0);if(o>t)break;let a=this.ranges[e+i];if(t<=o+a&&e==3*s)return!0;r+=this.ranges[e+n]-a}return!1}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let s=0,o=0;s<this.ranges.length;s+=3){let i=this.ranges[s],n=i-(this.inverted?o:0),a=i+(this.inverted?0:o),h=this.ranges[s+e],p=this.ranges[s+r];t(n,n+h,a,a+p),o+=p-h}}invert(){return new n(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?n.empty:new n(t<0?[0,-t,0]:[0,0,t])}}n.empty=new n([]);const a=Object.create(null);class h{getMap(){return n.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=a[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in a)throw new RangeError("Duplicate use of step JSON ID "+t);return a[t]=e,e.prototype.jsonID=t,e}}class p{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new p(t,null)}static fail(t){return new p(null,t)}static fromReplace(t,e,s,o){try{return p.ok(t.replace(e,s,o))}catch(t){if(t instanceof r)return p.fail(t.message);throw t}}}function l(t,r,s){let o=[];for(let e=0;e<t.childCount;e++){let i=t.child(e);i.content.size&&(i=i.copy(l(i.content,r,i))),i.isInline&&(i=r(i,s,e)),o.push(i)}return e.fromArray(o)}class m extends h{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),s=e.resolve(this.from),o=s.node(s.sharedDepth(this.to)),i=new t(l(r.content,((t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),o),r.openStart,r.openEnd);return p.fromReplace(e,this.from,this.to,i)}invert(){return new u(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new m(e.pos,r.pos,this.mark)}merge(t){return t instanceof m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new m(e.from,e.to,t.markFromJSON(e.mark))}}h.jsonID("addMark",m);class u extends h{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),s=new t(l(r.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),e),r.openStart,r.openEnd);return p.fromReplace(e,this.from,this.to,s)}invert(){return new m(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new u(e.pos,r.pos,this.mark)}merge(t){return t instanceof u&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new u(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new u(e.from,e.to,t.markFromJSON(e.mark))}}h.jsonID("removeMark",u);class f extends h{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let s=r.nodeAt(this.pos);if(!s)return p.fail("No node at mark step's position");let o=s.type.create(s.attrs,null,this.mark.addToSet(s.marks));return p.fromReplace(r,this.pos,this.pos+1,new t(e.from(o),0,s.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(t))return new f(this.pos,e.marks[r]);return new f(this.pos,this.mark)}}return new c(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new f(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new f(e.pos,t.markFromJSON(e.mark))}}h.jsonID("addNodeMark",f);class c extends h{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let s=r.nodeAt(this.pos);if(!s)return p.fail("No node at mark step's position");let o=s.type.create(s.attrs,null,this.mark.removeFromSet(s.marks));return p.fromReplace(r,this.pos,this.pos+1,new t(e.from(o),0,s.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new f(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new c(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new c(e.pos,t.markFromJSON(e.mark))}}h.jsonID("removeNodeMark",c);class d extends h{constructor(t,e,r,s=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=s}apply(t){return this.structure&&k(t,this.from,this.to)?p.fail("Structure replace would overwrite content"):p.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new n([this.from,this.to-this.from,this.slice.size])}invert(t){return new d(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deletedAcross&&r.deletedAcross?null:new d(e.pos,Math.max(e.pos,r.pos),this.slice)}merge(e){if(!(e instanceof d)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let r=this.slice.size+e.slice.size==0?t.empty:new t(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new d(e.from,this.to,r,this.structure)}}{let r=this.slice.size+e.slice.size==0?t.empty:new t(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new d(this.from,this.to+(e.to-e.from),r,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new d(r.from,r.to,t.fromJSON(e,r.slice),!!r.structure)}}h.jsonID("replace",d);class g extends h{constructor(t,e,r,s,o,i,n=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=s,this.slice=o,this.insert=i,this.structure=n}apply(t){if(this.structure&&(k(t,this.from,this.gapFrom)||k(t,this.gapTo,this.to)))return p.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return p.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?p.fromReplace(t,this.from,this.to,r):p.fail("Content does not fit in gap")}getMap(){return new n([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),s=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||s<e.pos||o>r.pos?null:new g(e.pos,r.pos,s,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to||"number"!=typeof r.gapFrom||"number"!=typeof r.gapTo||"number"!=typeof r.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(r.from,r.to,r.gapFrom,r.gapTo,t.fromJSON(e,r.slice),r.insert,!!r.structure)}}function k(t,e,r){let s=t.resolve(e),o=r-e,i=s.depth;for(;o>0&&i>0&&s.indexAfter(i)==s.node(i).childCount;)i--,o--;if(o>0){let t=s.node(i).maybeChild(s.indexAfter(i));for(;o>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,o--}}return!1}h.jsonID("replaceAround",g);class w extends h{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r}apply(r){let s=r.nodeAt(this.pos);if(!s)return p.fail("No node at attribute step's position");let o=Object.create(null);for(let t in s.attrs)o[t]=s.attrs[t];o[this.attr]=this.value;let i=s.type.create(o,null,s.marks);return p.fromReplace(r,this.pos,this.pos+1,new t(e.from(i),0,s.isLeaf?0:1))}getMap(){return n.empty}invert(t){return new w(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new w(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new w(e.pos,e.attr,e.value)}}h.jsonID("attr",w);class S extends h{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let r in t.attrs)e[r]=t.attrs[r];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return p.ok(r)}getMap(){return n.empty}invert(t){return new S(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new S(e.attr,e.value)}}h.jsonID("docAttr",S);let y=class extends Error{};y=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r},(y.prototype=Object.create(Error.prototype)).constructor=y,y.prototype.name="TransformError";export{m as AddMarkStep,f as AddNodeMarkStep,w as AttrStep,S as DocAttrStep,i as MapResult,u as RemoveMarkStep,c as RemoveNodeMarkStep,g as ReplaceAroundStep,d as ReplaceStep,h as Step,n as StepMap,p as StepResult,y as TransformError};
1
+ import{Slice as t,ReplaceError as e,Fragment as r}from"../../prosemirror-model/dist/index.js";const s=Math.pow(2,16);function o(t){return 65535&t}class i{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class n{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&n.empty)return n.empty}recover(t){let e=0,r=o(t);if(!this.inverted)for(let t=0;t<r;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*r]+e+function(t){return(t-(65535&t))/s}(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,r){let o=0,n=this.inverted?2:1,a=this.inverted?1:2;for(let h=0;h<this.ranges.length;h+=3){let p=this.ranges[h]-(this.inverted?o:0);if(p>t)break;let l=this.ranges[h+n],m=this.ranges[h+a],u=p+l;if(t<=u){let n=p+o+((l?t==p?-1:t==u?1:e:e)<0?0:m);if(r)return n;let a=t==(e<0?p:u)?null:h/3+(t-p)*s,f=t==p?2:t==u?1:4;return(e<0?t!=p:t!=u)&&(f|=8),new i(n,f,a)}o+=m-l}return r?t+o:new i(t+o,0,null)}touches(t,e){let r=0,s=o(e),i=this.inverted?2:1,n=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let o=this.ranges[e]-(this.inverted?r:0);if(o>t)break;let a=this.ranges[e+i];if(t<=o+a&&e==3*s)return!0;r+=this.ranges[e+n]-a}return!1}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let s=0,o=0;s<this.ranges.length;s+=3){let i=this.ranges[s],n=i-(this.inverted?o:0),a=i+(this.inverted?0:o),h=this.ranges[s+e],p=this.ranges[s+r];t(n,n+h,a,a+p),o+=p-h}}invert(){return new n(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?n.empty:new n(t<0?[0,-t,0]:[0,0,t])}}n.empty=new n([]);const a=Object.create(null);class h{getMap(){return n.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=a[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in a)throw new RangeError("Duplicate use of step JSON ID "+t);return a[t]=e,e.prototype.jsonID=t,e}}class p{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new p(t,null)}static fail(t){return new p(null,t)}static fromReplace(t,r,s,o){try{return p.ok(t.replace(r,s,o))}catch(t){if(t instanceof e)return p.fail(t.message);throw t}}}function l(t,e,s){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(l(i.content,e,i))),i.isInline&&(i=e(i,s,r)),o.push(i)}return r.fromArray(o)}class m extends h{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),s=e.resolve(this.from),o=s.node(s.sharedDepth(this.to)),i=new t(l(r.content,((t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),o),r.openStart,r.openEnd);return p.fromReplace(e,this.from,this.to,i)}invert(){return new u(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new m(e.pos,r.pos,this.mark)}merge(t){return t instanceof m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new m(e.from,e.to,t.markFromJSON(e.mark))}}h.jsonID("addMark",m);class u extends h{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),s=new t(l(r.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),e),r.openStart,r.openEnd);return p.fromReplace(e,this.from,this.to,s)}invert(){return new m(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new u(e.pos,r.pos,this.mark)}merge(t){return t instanceof u&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new u(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new u(e.from,e.to,t.markFromJSON(e.mark))}}h.jsonID("removeMark",u);class f extends h{constructor(t,e){super(),this.pos=t,this.mark=e}apply(e){let s=e.nodeAt(this.pos);if(!s)return p.fail("No node at mark step's position");let o=s.type.create(s.attrs,null,this.mark.addToSet(s.marks));return p.fromReplace(e,this.pos,this.pos+1,new t(r.from(o),0,s.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(t))return new f(this.pos,e.marks[r]);return new f(this.pos,this.mark)}}return new c(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new f(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new f(e.pos,t.markFromJSON(e.mark))}}h.jsonID("addNodeMark",f);class c extends h{constructor(t,e){super(),this.pos=t,this.mark=e}apply(e){let s=e.nodeAt(this.pos);if(!s)return p.fail("No node at mark step's position");let o=s.type.create(s.attrs,null,this.mark.removeFromSet(s.marks));return p.fromReplace(e,this.pos,this.pos+1,new t(r.from(o),0,s.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new f(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new c(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new c(e.pos,t.markFromJSON(e.mark))}}h.jsonID("removeNodeMark",c);class d extends h{constructor(t,e,r,s=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=s}apply(t){return this.structure&&k(t,this.from,this.to)?p.fail("Structure replace would overwrite content"):p.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new n([this.from,this.to-this.from,this.slice.size])}invert(t){return new d(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deletedAcross&&r.deletedAcross?null:new d(e.pos,Math.max(e.pos,r.pos),this.slice)}merge(e){if(!(e instanceof d)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let r=this.slice.size+e.slice.size==0?t.empty:new t(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new d(e.from,this.to,r,this.structure)}}{let r=this.slice.size+e.slice.size==0?t.empty:new t(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new d(this.from,this.to+(e.to-e.from),r,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new d(r.from,r.to,t.fromJSON(e,r.slice),!!r.structure)}}h.jsonID("replace",d);class g extends h{constructor(t,e,r,s,o,i,n=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=s,this.slice=o,this.insert=i,this.structure=n}apply(t){if(this.structure&&(k(t,this.from,this.gapFrom)||k(t,this.gapTo,this.to)))return p.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return p.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?p.fromReplace(t,this.from,this.to,r):p.fail("Content does not fit in gap")}getMap(){return new n([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),s=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||s<e.pos||o>r.pos?null:new g(e.pos,r.pos,s,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to||"number"!=typeof r.gapFrom||"number"!=typeof r.gapTo||"number"!=typeof r.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(r.from,r.to,r.gapFrom,r.gapTo,t.fromJSON(e,r.slice),r.insert,!!r.structure)}}function k(t,e,r){let s=t.resolve(e),o=r-e,i=s.depth;for(;o>0&&i>0&&s.indexAfter(i)==s.node(i).childCount;)i--,o--;if(o>0){let t=s.node(i).maybeChild(s.indexAfter(i));for(;o>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,o--}}return!1}h.jsonID("replaceAround",g);class w extends h{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r}apply(e){let s=e.nodeAt(this.pos);if(!s)return p.fail("No node at attribute step's position");let o=Object.create(null);for(let t in s.attrs)o[t]=s.attrs[t];o[this.attr]=this.value;let i=s.type.create(o,null,s.marks);return p.fromReplace(e,this.pos,this.pos+1,new t(r.from(i),0,s.isLeaf?0:1))}getMap(){return n.empty}invert(t){return new w(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new w(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new w(e.pos,e.attr,e.value)}}h.jsonID("attr",w);class S extends h{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let r in t.attrs)e[r]=t.attrs[r];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return p.ok(r)}getMap(){return n.empty}invert(t){return new S(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new S(e.attr,e.value)}}h.jsonID("docAttr",S);let y=class extends Error{};y=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r},(y.prototype=Object.create(Error.prototype)).constructor=y,y.prototype.name="TransformError";export{m as AddMarkStep,f as AddNodeMarkStep,w as AttrStep,S as DocAttrStep,i as MapResult,u as RemoveMarkStep,c as RemoveNodeMarkStep,g as ReplaceAroundStep,d as ReplaceStep,h as Step,n as StepMap,p as StepResult,y as TransformError};
@@ -1,4 +1,4 @@
1
- import{jsx as r,jsxs as e,Fragment as i}from"react/jsx-runtime";import{LinearProgress as o,Typography as t}from"@equinor/eds-core-react";import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import{useFakeProgress as s}from"../../atoms/hooks/useFakeProgress.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import"../../providers/TutorialStepsProvider.js";import{colors as a}from"../../atoms/style/colors.js";import{spacings as m}from"../../atoms/style/spacings.js";import"html2canvas";import"proj4";import{capitalize as n}from"../../atoms/utils/string.js";import{AnimatedCheckmark as p}from"../../molecules/AnimatedCheckmark/AnimatedCheckmark.js";import d from"styled-components";const c=d.div`
1
+ import{jsx as r,jsxs as e,Fragment as i}from"react/jsx-runtime";import{LinearProgress as t,Typography as o}from"@equinor/eds-core-react";import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import{useFakeProgress as s}from"../../atoms/hooks/useFakeProgress.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import{colors as a}from"../../atoms/style/colors.js";import{spacings as m}from"../../atoms/style/spacings.js";import"html2canvas";import"proj4";import{capitalize as n}from"../../atoms/utils/string.js";import{AnimatedCheckmark as p}from"../../molecules/AnimatedCheckmark/AnimatedCheckmark.js";import d from"styled-components";const c=d.div`
2
2
  gap: ${m.medium};
3
3
  position: absolute;
4
4
  top: 50%;
@@ -11,14 +11,14 @@ import{jsx as r,jsxs as e,Fragment as i}from"react/jsx-runtime";import{LinearPro
11
11
  min-height: calc(100vh - (${m.xxx_large} * 4));
12
12
  width: 100%;
13
13
  max-width: 370px;
14
- `,l=d(o)`
14
+ `,l=d(t)`
15
15
  background-color: ${a.interactive.primary__hover_alt.rgba};
16
16
 
17
17
  div {
18
18
  background-color: ${a.interactive.primary__resting.rgba};
19
19
  }
20
- `,v=d(t)`
20
+ `,h=d(o)`
21
21
  span {
22
22
  text-transform: capitalize;
23
23
  }
24
- `,h=({fieldName:o,onChangedField:a,finishedText:m})=>{const{finished:d,progress:h}=s({onDone:a});return r(c,{children:e(i,d?{children:[e(v,{variant:"h3",children:["Changed to ",r("span",{children:n(o)})]}),r(p,{}),r(t,{variant:"h6",children:m})]}:{children:[e(t,{variant:"h3",children:["Changing field.",".".repeat(h/35)]}),r(l,{variant:"determinate",value:h})]})})};export{h as ChangingField,l as LinearProgress};
24
+ `,v=({fieldName:t,onChangedField:a,finishedText:m})=>{const{finished:d,progress:v}=s({onDone:a});return r(c,{children:e(i,d?{children:[e(h,{variant:"h3",children:["Changed to ",r("span",{children:n(t)})]}),r(p,{}),r(o,{variant:"h6",children:m})]}:{children:[e(o,{variant:"h3",children:["Changing field.",".".repeat(v/35)]}),r(l,{variant:"determinate",value:v})]})})};export{v as ChangingField,l as LinearProgress};
@@ -1,4 +1,4 @@
1
- import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import"../../providers/TutorialStepsProvider.js";import{shape as r,typography as t}from"../../atoms/style/index.js";import"../../atoms/enums/Errors.js";import"../../atoms/enums/Theme.js";import"../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import{Chip as e}from"../../molecules/Chip/Chip.js";import{motion as i}from"framer-motion";import o,{css as a}from"styled-components";import{colors as s}from"../../atoms/style/colors.js";import{spacings as n}from"../../atoms/style/spacings.js";const d=o.div`
1
+ import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import{shape as r,typography as t}from"../../atoms/style/index.js";import"../../atoms/enums/Errors.js";import"../../atoms/enums/Theme.js";import"../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import{Chip as e}from"../../molecules/Chip/Chip.js";import{motion as i}from"framer-motion";import o,{css as a}from"styled-components";import{colors as s}from"../../atoms/style/colors.js";import{spacings as n}from"../../atoms/style/spacings.js";const d=o.div`
2
2
  width: 100%;
3
3
  border: 1px solid ${s.ui.background__heavy.rgba};
4
4
  border-radius: ${r.corners.borderRadius};
@@ -1 +1 @@
1
- import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useState as t}from"react";import{Menu as i,Typography as n,Icon as o}from"@equinor/eds-core-react";import{arrow_drop_up as a,arrow_drop_down as m}from"@equinor/eds-icons";import{ButtonWithMenu as c}from"./ButtonWithMenu.js";function u({quickFilterItems:u,onQuickFilter:l}){const[p,s]=t(!1);return r(c,{onOpenChange:s,menuItems:u.map((r=>e(i.Item,{onClick:()=>l(r.value),children:r.label},r.label))),children:[e(n,{as:"span",variant:"button",group:"navigation",children:"Quick filter"}),e(o,{data:p?a:m})]})}export{u as QuickFilter};
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useState as t}from"react";import{Typography as i,Icon as n,Menu as o}from"@equinor/eds-core-react";import{arrow_drop_up as a,arrow_drop_down as m}from"@equinor/eds-icons";import{ButtonWithMenu as c}from"./ButtonWithMenu.js";function u({quickFilterItems:u,onQuickFilter:l}){const[p,s]=t(!1);return r(c,{onOpenChange:s,menuItems:u.map((r=>e(o.Item,{onClick:()=>l(r.value),children:r.label},r.label))),children:[e(i,{as:"span",variant:"button",group:"navigation",children:"Quick filter"}),e(n,{data:p?a:m})]})}export{u as QuickFilter};
@@ -1,5 +1,5 @@
1
- import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Menu as t,Icon as e,Typography as i}from"@equinor/eds-core-react";import{radio_button_selected as s,radio_button_unselected as m,sort as a}from"@equinor/eds-icons";import{ButtonWithMenu as n}from"./ButtonWithMenu.js";import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import"../../providers/TutorialStepsProvider.js";import{colors as p}from"../../atoms/style/colors.js";import"../../atoms/enums/Errors.js";import"../../atoms/enums/Theme.js";import"../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import d from"styled-components";const c=d(t.Item)`
1
+ import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Menu as t,Typography as e,Icon as i}from"@equinor/eds-core-react";import{sort as s,radio_button_selected as m,radio_button_unselected as a}from"@equinor/eds-icons";import{ButtonWithMenu as n}from"./ButtonWithMenu.js";import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import{colors as p}from"../../atoms/style/colors.js";import"../../atoms/enums/Errors.js";import"../../atoms/enums/Theme.js";import"../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import c from"styled-components";const d=c(t.Item)`
2
2
  > div {
3
3
  grid-template-columns: 1fr auto;
4
4
  }
5
- `;function l({sortValue:t,onSortChange:d,sortItems:l}){const u=l.find((r=>r.value===t));return r(n,{menuItems:l.map((i=>r(c,{onClick:()=>{var r;r=i.value,d(r)},children:[i.label,o(e,{color:i.value===t?p.interactive.primary__resting.rgba:p.text.static_icons__tertiary.rgba,data:i.value===t?s:m})]},i.label))),children:[r(i,{as:"span",variant:"button",group:"navigation",children:["Sort by ",u?.label]}),o(e,{data:a})]})}export{l as Sorting};
5
+ `;function l({sortValue:t,onSortChange:c,sortItems:l}){const u=l.find((r=>r.value===t));return r(n,{menuItems:l.map((e=>r(d,{onClick:()=>{var r;r=e.value,c(r)},children:[e.label,o(i,{color:e.value===t?p.interactive.primary__resting.rgba:p.text.static_icons__tertiary.rgba,data:e.value===t?m:a})]},e.label))),children:[r(e,{as:"span",variant:"button",group:"navigation",children:["Sort by ",u?.label]}),o(i,{data:s})]})}export{l as Sorting};
@@ -1,8 +1,13 @@
1
- import { SideBarMenuItem as ItemType } from '../../atoms/types/SideBar';
1
+ import { SideBarMenuItem } from '../../atoms/types/SideBar';
2
2
  import { MenuItem } from './MenuItem';
3
3
  import { SideBar as BaseSideBar } from './SideBar';
4
4
  type SidebarType = typeof BaseSideBar & {
5
5
  Item: typeof MenuItem;
6
6
  };
7
+ /**
8
+ * @deprecated Unnecessary rename of SideBarMenuItem, use SideBarMenuItem instead
9
+ */
10
+ type ItemType = SideBarMenuItem;
7
11
  export declare const SideBar: SidebarType;
8
- export type { ItemType, SidebarType };
12
+ export type { ItemType };
13
+ export type { SidebarType };
@@ -1,4 +1,4 @@
1
- import{jsx as i,jsxs as t}from"react/jsx-runtime";import{SHAPE_ANIMATIONS as e,SHAPES as l,SHAPE_INITIALS as n,SHAPE_TRANSITIONS as r}from"./Illustration.constants.js";import{motion as a}from"framer-motion";import o from"styled-components";const h=o.div`
1
+ import{jsx as i,jsxs as t}from"react/jsx-runtime";import{SHAPE_ANIMATIONS as e,SHAPE_TRANSITIONS as l,SHAPE_INITIALS as n,SHAPES as r}from"./Illustration.constants.js";import{motion as a}from"framer-motion";import o from"styled-components";const h=o.div`
2
2
  width: 328px;
3
3
  height: 232px;
4
4
  overflow: hidden;
@@ -14,4 +14,4 @@ import{jsx as i,jsxs as t}from"react/jsx-runtime";import{SHAPE_ANIMATIONS as e,S
14
14
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
15
15
  }
16
16
  }
17
- `,s=({color:o})=>i(h,{children:t("svg",{width:"1015",height:"713",viewBox:"0 0 1015 713",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("rect",{width:"1015",height:"713",fill:"#333333"}),e.map(((t,e)=>i(a.path,{fillRule:"evenodd",fill:l[e].fill,initial:n[e],animate:t,transition:r[e]},e))),i("rect",{width:"1015",height:"713",fill:o,mask:"url(#color-mask)",style:{mixBlendMode:"multiply"}}),i("rect",{width:"1015",height:"713",filter:"url(#nnnoise-filter)",mask:"url(#noise-mask)"}),t("defs",{children:[t("mask",{id:"color-mask",children:[i("rect",{width:"1015",height:"713",fill:"white"}),i(a.path,{fillRule:"evenodd",clipRule:"evenodd",initial:n.at(-2),animate:e.at(-2),transition:r.at(-2),fill:"black"}),i(a.path,{fillRule:"evenodd",clipRule:"evenodd",initial:n.at(-1),animate:e.at(-1),transition:r.at(-1),fill:"black"})]}),t("mask",{id:"noise-mask",children:[i("rect",{width:"1015",height:"713",fill:"white"}),i(a.path,{fillRule:"evenodd",clipRule:"evenodd",initial:n.at(-1),animate:e.at(-1),transition:r.at(-1),fill:"black"})]}),t("filter",{id:"nnnoise-filter",x:"-20%",y:"-20%",width:"140%",height:"140%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",colorInterpolationFilters:"linearRGB",children:[i("feTurbulence",{type:"turbulence",baseFrequency:"0.2",numOctaves:"4",seed:"15",stitchTiles:"stitch",x:"0%",y:"0%",width:"100%",height:"100%",result:"turbulence"}),i(a.feSpecularLighting,{surfaceScale:"60",specularConstant:"2.3",specularExponent:"10",lightingColor:"#441c7b",x:"0%",y:"0%",width:"100%",height:"100%",in:"turbulence",result:"specularLighting",children:i("feDistantLight",{azimuth:"3",elevation:"54"})}),i("feColorMatrix",{type:"saturate",values:"0",x:"0%",y:"0%",width:"100%",height:"100%",in:"specularLighting",result:"colormatrix"})]})]})]})});export{s as Illustration};
17
+ `,s=({color:o})=>i(h,{children:t("svg",{width:"1015",height:"713",viewBox:"0 0 1015 713",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("rect",{width:"1015",height:"713",fill:"#333333"}),e.map(((t,e)=>i(a.path,{fillRule:"evenodd",fill:r[e].fill,initial:n[e],animate:t,transition:l[e]},e))),i("rect",{width:"1015",height:"713",fill:o,mask:"url(#color-mask)",style:{mixBlendMode:"multiply"}}),i("rect",{width:"1015",height:"713",filter:"url(#nnnoise-filter)",mask:"url(#noise-mask)"}),t("defs",{children:[t("mask",{id:"color-mask",children:[i("rect",{width:"1015",height:"713",fill:"white"}),i(a.path,{fillRule:"evenodd",clipRule:"evenodd",initial:n.at(-2),animate:e.at(-2),transition:l.at(-2),fill:"black"}),i(a.path,{fillRule:"evenodd",clipRule:"evenodd",initial:n.at(-1),animate:e.at(-1),transition:l.at(-1),fill:"black"})]}),t("mask",{id:"noise-mask",children:[i("rect",{width:"1015",height:"713",fill:"white"}),i(a.path,{fillRule:"evenodd",clipRule:"evenodd",initial:n.at(-1),animate:e.at(-1),transition:l.at(-1),fill:"black"})]}),t("filter",{id:"nnnoise-filter",x:"-20%",y:"-20%",width:"140%",height:"140%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",colorInterpolationFilters:"linearRGB",children:[i("feTurbulence",{type:"turbulence",baseFrequency:"0.2",numOctaves:"4",seed:"15",stitchTiles:"stitch",x:"0%",y:"0%",width:"100%",height:"100%",result:"turbulence"}),i(a.feSpecularLighting,{surfaceScale:"60",specularConstant:"2.3",specularExponent:"10",lightingColor:"#441c7b",x:"0%",y:"0%",width:"100%",height:"100%",in:"turbulence",result:"specularLighting",children:i("feDistantLight",{azimuth:"3",elevation:"54"})}),i("feColorMatrix",{type:"saturate",values:"0",x:"0%",y:"0%",width:"100%",height:"100%",in:"specularLighting",result:"colormatrix"})]})]})]})});export{s as Illustration};
@@ -1 +1 @@
1
- import{jsxs as r,jsx as o}from"react/jsx-runtime";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import{environment as t}from"../../../atoms/utils/auth_environment.js";import"../../TopBar/Notifications/NotificationProvider.js";import"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../providers/TutorialStepsProvider.js";import"../../../atoms/style/colors.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import{Status as e}from"../index.js";const i=()=>{const i=t.getAppName(import.meta.env.VITE_NAME);return r(e,{children:[o(e.Title,{title:`You don't have access to ${i}`}),o(e.Description,{text:"You can apply for acces to the app in AccessIT"}),o(e.Action,{onClick:()=>{window.open(`https://accessit.equinor.com/Search/Search?term=${encodeURIComponent(i)}`,"_blank")},buttonText:"Apply for access"})]})};export{i as MissingAccessToApp};
1
+ import{jsxs as r,jsx as o}from"react/jsx-runtime";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import{environment as t}from"../../../atoms/utils/auth_environment.js";import"../../TopBar/Notifications/NotificationProvider.js";import"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../atoms/style/colors.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import{Status as e}from"../index.js";const i=()=>{const i=t.getAppName(import.meta.env.VITE_NAME);return r(e,{children:[o(e.Title,{title:`You don't have access to ${i}`}),o(e.Description,{text:"You can apply for acces to the app in AccessIT"}),o(e.Action,{onClick:()=>{window.open(`https://accessit.equinor.com/Search/Search?term=${encodeURIComponent(i)}`,"_blank")},buttonText:"Apply for access"})]})};export{i as MissingAccessToApp};
@@ -1 +1 @@
1
- import"../../atoms/style/colors.js";import{spacings as o}from"../../atoms/style/spacings.js";const r={buttons:"39px",border:"34px",borderHorizontal:"34px"},t={buttons:o.x_small,border:"0",borderHorizontal:"0"};export{t as GAP,r as HEIGHT};
1
+ import"../../atoms/style/colors.js";import{spacings as o}from"../../atoms/style/spacings.js";const s={buttons:"39px",border:"34px",borderHorizontal:"34px"},t={buttons:o.x_small};export{t as GAP,s as HEIGHT};
@@ -6,7 +6,7 @@ import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
6
6
  background: ${r.ui.background__light.rgba};
7
7
  `,l=a.div`
8
8
  display: flex;
9
- `,c=".fullwidth",m=a.div`
9
+ `,c="fullwidth",m=a.div`
10
10
  position: relative;
11
11
  display: flex;
12
12
  /* 64px is height of TopBar */
@@ -15,7 +15,7 @@ import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
15
15
  overflow: auto;
16
16
  /* 231px and 64px is width of Sidebar when open/closed */
17
17
  min-width: calc(100% - ${o=>o.$open?"231px":"64px"});
18
- &:not(:has(${c})) {
18
+ &:not(:has(.${c})) {
19
19
  padding: 0
20
20
  max(${i.xxx_large}, calc(50% - ${i.xxx_large} - 1280px / 2));
21
21
  margin: 0 auto;
@@ -1 +1 @@
1
- import{jsxs as o,Fragment as r,jsx as e}from"react/jsx-runtime";import{useState as t,useRef as i,useCallback as m,useEffect as s,useMemo as n}from"react";import{Typography as p,Button as a,Icon as c}from"@equinor/eds-core-react";import{log_out as u}from"@equinor/eds-icons";import{TopBarMenu as l}from"../TopBarMenu.js";import{useActiveImpersonationUser as d}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import{useCanImpersonate as v}from"./ImpersonateMenu/hooks/useCanImpersonate.js";import{useStopImpersonation as h}from"./ImpersonateMenu/hooks/useStopImpersonation.js";import{ImpersonateMenu as j}from"./ImpersonateMenu/ImpersonateMenu.js";import{Container as f,TextContent as I,RolesContainer as N,RoleChip as A,ButtonWrapper as E}from"./Account.styles.js";import{AccountAvatar as T}from"./AccountAvatar.js";import{AccountButton as P}from"./AccountButton.js";import{ActiveUserImpersonationButton as C}from"./ActiveUserImpersonationButton.js";import{ImpersonateButton as M}from"./ImpersonateButton.js";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import{EnvironmentType as g}from"../../../atoms/enums/Environment.js";import{environment as k}from"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as _}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../providers/TutorialStepsProvider.js";import"../../../atoms/style/colors.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";const B=({renderCustomButton:B,hideRoleChips:R=!1,children:S})=>{const x=k.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME),y=k.getApiClientId(import.meta.env.VITE_API_CLIENT_ID),q=k.getAppName(import.meta.env.VITE_NAME),{account:O,roles:b,logout:V}=_(),[U,D]=t(!1),[L,K]=t(!1),w=i(null),{data:z=!0}=v(),{data:F}=d(),{mutate:G}=h(),H=F?F.fullName:O?.name,J=F?F.roles:b,Q=F?F.uniqueName:O?.username,W=()=>D(!1),X=m((()=>{D((o=>!o)),K(!1)}),[]),Y=()=>{K(!0),D(!1)};s((()=>{F&&null!=F.appName&&F.appName!=q&&G()}),[F,q,G]);const Z=n((()=>B?B(w,X):null),[B,X]);return o(r,{children:[Z||e(P,{ref:w,onClick:X}),o(l,{open:U,title:"Account",onClose:W,anchorEl:w.current,children:[o(f,{children:[F&&e(C,{onClick:Y}),e(T,{}),o(I,{children:[e(p,{variant:"h6",children:H}),e(p,{children:Q})]}),J&&!R&&e(N,{children:J.map((o=>e(A,{children:o},o)))}),S,z&&x!==g.PRODUCTION&&y&&e(M,{onOpenImpersonateMenu:Y,onClose:W})]}),e(E,{children:o(a,{variant:"ghost",onClick:V,children:[e(c,{data:u}),"Log out"]})})]}),e(j,{open:L,onClose:()=>K(!1),anchorEl:w.current})]})};B.displayName="TopBar.Account";export{B as Account};
1
+ import{jsxs as o,Fragment as r,jsx as e}from"react/jsx-runtime";import{useState as t,useRef as i,useCallback as m,useEffect as n,useMemo as s}from"react";import{Typography as p,Button as a,Icon as c}from"@equinor/eds-core-react";import{log_out as u}from"@equinor/eds-icons";import{TopBarMenu as l}from"../TopBarMenu.js";import{useActiveImpersonationUser as d}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import{useCanImpersonate as h}from"./ImpersonateMenu/hooks/useCanImpersonate.js";import{useStopImpersonation as v}from"./ImpersonateMenu/hooks/useStopImpersonation.js";import{ImpersonateMenu as j}from"./ImpersonateMenu/ImpersonateMenu.js";import{Container as f,TextContent as I,RolesContainer as N,RoleChip as A,ButtonWrapper as E}from"./Account.styles.js";import{AccountAvatar as T}from"./AccountAvatar.js";import{AccountButton as C}from"./AccountButton.js";import{ActiveUserImpersonationButton as P}from"./ActiveUserImpersonationButton.js";import{ImpersonateButton as M}from"./ImpersonateButton.js";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import{EnvironmentType as g}from"../../../atoms/enums/Environment.js";import{environment as k}from"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as _}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../atoms/style/colors.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";const B=({renderCustomButton:B,hideRoleChips:R=!1,children:x})=>{const y=k.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME),S=k.getApiClientId(import.meta.env.VITE_API_CLIENT_ID),q=k.getAppName(import.meta.env.VITE_NAME),{account:O,roles:b,logout:V}=_(),[U,D]=t(!1),[L,K]=t(!1),w=i(null),{data:z=!0}=h(),{data:F}=d(),{mutate:G}=v(),H=F?F.fullName:O?.name,J=F?F.roles:b,Q=F?F.uniqueName:O?.username,W=()=>D(!1),X=m((()=>{D((o=>!o)),K(!1)}),[]),Y=()=>{K(!0),D(!1)};n((()=>{F&&null!=F.appName&&F.appName!=q&&G()}),[F,q,G]);const Z=s((()=>B?B(w,X):null),[B,X]);return o(r,{children:[Z||e(C,{ref:w,onClick:X}),o(l,{open:U,title:"Account",onClose:W,anchorEl:w.current,children:[o(f,{children:[F&&e(P,{onClick:Y}),e(T,{}),o(I,{children:[e(p,{variant:"h6",children:H}),e(p,{children:Q})]}),J&&!R&&e(N,{children:J.map((o=>e(A,{children:o},o)))}),x,z&&y!==g.PRODUCTION&&S&&e(M,{onOpenImpersonateMenu:Y,onClose:W})]}),e(E,{children:o(a,{variant:"ghost",onClick:V,children:[e(c,{data:u}),"Log out"]})})]}),e(j,{open:L,onClose:()=>K(!1),anchorEl:w.current})]})};B.displayName="TopBar.Account";export{B as Account};
@@ -1,11 +1,11 @@
1
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useActiveImpersonationUser as r}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as t}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../providers/TutorialStepsProvider.js";import{colors as i}from"../../../atoms/style/colors.js";import{spacings as s}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import"../../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../../molecules/Badge/Badge.styles.js";import"@equinor/eds-core-react";import"../../../molecules/Banner/Banner.styles.js";import"@equinor/eds-icons";import{Chip as m}from"../../../molecules/Chip/Chip.js";import"../../../molecules/ContentMenu/ContentMenu.styles.js";import"../../../molecules/DatePicker/DatePicker.js";import"../../../molecules/Dialog/Dialog.js";import"../../../molecules/EquinorLogo/EquinorLogo.js";import"../../../molecules/FileProgress/CompactFileProgress.styles.js";import"../../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../../molecules/FileUploadArea/FileUploadArea.js";import"../../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../../molecules/InfoElement/InfoElement.js";import"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as l}from"../../../molecules/ProfileAvatar/ProfileAvatar.js";import"@tiptap/react";import"../../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../../molecules/Search/Search.js";import"react-router-dom";import"../../../molecules/Sieve/Sieve.styles.js";import"../../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../../molecules/Skeleton/Skeleton.styles.js";import"../../../molecules/Stepper/Stepper.js";import"../../../molecules/OptionDrawer/OptionDrawer.js";import"../../../molecules/Select/Select.styles.js";import"../../../molecules/ListItem/ListItem.js";import"../../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../../molecules/SelectionControls/Radio/Radio.js";import"../../../molecules/SelectionControls/Switch/Switch.js";import{ImpersonateAvatar as p}from"./ImpersonateAvatar.js";import n from"styled-components";const a=n.div`
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useActiveImpersonationUser as r}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as t}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import{colors as i}from"../../../atoms/style/colors.js";import{spacings as s}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import"../../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../../molecules/Badge/Badge.styles.js";import"@equinor/eds-core-react";import"../../../molecules/Banner/Banner.styles.js";import"@equinor/eds-icons";import{Chip as m}from"../../../molecules/Chip/Chip.js";import"../../../molecules/ContentMenu/ContentMenu.styles.js";import"../../../molecules/DatePicker/DatePicker.js";import"../../../molecules/Dialog/Dialog.js";import"../../../molecules/EquinorLogo/EquinorLogo.js";import"../../../molecules/FileProgress/CompactFileProgress.styles.js";import"../../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../../molecules/FileUploadArea/FileUploadArea.js";import"../../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../../molecules/InfoElement/InfoElement.js";import"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as l}from"../../../molecules/ProfileAvatar/ProfileAvatar.js";import"@tiptap/react";import"../../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../../molecules/Search/Search.js";import"react-router-dom";import"../../../molecules/Sieve/Sieve.styles.js";import"../../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../../molecules/Skeleton/Skeleton.styles.js";import"../../../molecules/Stepper/Stepper.js";import"../../../molecules/OptionDrawer/OptionDrawer.js";import"../../../molecules/Select/Select.styles.js";import"../../../molecules/ListItem/ListItem.js";import"../../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../../molecules/SelectionControls/Radio/Radio.js";import"../../../molecules/SelectionControls/Switch/Switch.js";import{ImpersonateAvatar as n}from"./ImpersonateAvatar.js";import p from"styled-components";const a=p.div`
2
2
  position: relative;
3
3
  margin-bottom: ${s.small};
4
- `,c=n(m)`
4
+ `,c=p(m)`
5
5
  position: absolute;
6
6
  bottom: calc(${s.x_small} * -1);
7
7
  left: 50%;
8
8
  transform: translateX(-50%);
9
9
  background: ${i.interactive.warning__resting.rgba};
10
10
  outline-color: ${i.interactive.warning__resting.rgba};
11
- `,u=()=>{const{account:i,photo:s}=t(),{data:m}=r();return m?e(a,{children:[o(p,{size:64}),o(c,{children:"Impersonating"})]}):o(l,{size:64,name:i?.name,url:s})};export{u as AccountAvatar};
11
+ `,u=()=>{const{account:i,photo:s}=t(),{data:m}=r();return m?e(a,{children:[o(n,{size:64}),o(c,{children:"Impersonating"})]}):o(l,{size:64,name:i?.name,url:s})};export{u as AccountAvatar};
@@ -1,9 +1,9 @@
1
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{forwardRef as r}from"react";import{useActiveImpersonationUser as t}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import{ProfileButton as i}from"./Account.styles.js";import{ImpersonateAvatar as s}from"./ImpersonateAvatar.js";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as m}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../providers/TutorialStepsProvider.js";import{colors as l}from"../../../atoms/style/colors.js";import{spacings as n}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import"../../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../../molecules/Badge/Badge.styles.js";import"@equinor/eds-core-react";import"../../../molecules/Banner/Banner.styles.js";import"@equinor/eds-icons";import{Chip as p}from"../../../molecules/Chip/Chip.js";import"../../../molecules/ContentMenu/ContentMenu.styles.js";import"../../../molecules/DatePicker/DatePicker.js";import"../../../molecules/Dialog/Dialog.js";import"../../../molecules/EquinorLogo/EquinorLogo.js";import"../../../molecules/FileProgress/CompactFileProgress.styles.js";import"../../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../../molecules/FileUploadArea/FileUploadArea.js";import"../../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../../molecules/InfoElement/InfoElement.js";import"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as a}from"../../../molecules/ProfileAvatar/ProfileAvatar.js";import"@tiptap/react";import"../../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../../molecules/Search/Search.js";import"react-router-dom";import"../../../molecules/Sieve/Sieve.styles.js";import"../../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../../molecules/Skeleton/Skeleton.styles.js";import"../../../molecules/Stepper/Stepper.js";import"../../../molecules/OptionDrawer/OptionDrawer.js";import"../../../molecules/Select/Select.styles.js";import"../../../molecules/ListItem/ListItem.js";import"../../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../../molecules/SelectionControls/Radio/Radio.js";import"../../../molecules/SelectionControls/Switch/Switch.js";import c from"styled-components";const u=c.div`
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{forwardRef as r}from"react";import{useActiveImpersonationUser as t}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import{ProfileButton as s}from"./Account.styles.js";import{ImpersonateAvatar as i}from"./ImpersonateAvatar.js";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as m}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import{colors as l}from"../../../atoms/style/colors.js";import{spacings as n}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import"../../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../../molecules/Badge/Badge.styles.js";import"@equinor/eds-core-react";import"../../../molecules/Banner/Banner.styles.js";import"@equinor/eds-icons";import{Chip as p}from"../../../molecules/Chip/Chip.js";import"../../../molecules/ContentMenu/ContentMenu.styles.js";import"../../../molecules/DatePicker/DatePicker.js";import"../../../molecules/Dialog/Dialog.js";import"../../../molecules/EquinorLogo/EquinorLogo.js";import"../../../molecules/FileProgress/CompactFileProgress.styles.js";import"../../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../../molecules/FileUploadArea/FileUploadArea.js";import"../../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../../molecules/InfoElement/InfoElement.js";import"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as c}from"../../../molecules/ProfileAvatar/ProfileAvatar.js";import"@tiptap/react";import"../../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../../molecules/Search/Search.js";import"react-router-dom";import"../../../molecules/Sieve/Sieve.styles.js";import"../../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../../molecules/Skeleton/Skeleton.styles.js";import"../../../molecules/Stepper/Stepper.js";import"../../../molecules/OptionDrawer/OptionDrawer.js";import"../../../molecules/Select/Select.styles.js";import"../../../molecules/ListItem/ListItem.js";import"../../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../../molecules/SelectionControls/Radio/Radio.js";import"../../../molecules/SelectionControls/Switch/Switch.js";import a from"styled-components";const u=a.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: ${n.xx_small};
5
- `,j=c(p)`
5
+ `,j=a(p)`
6
6
  background: ${l.interactive.warning__resting.rgba};
7
7
  outline: none;
8
8
  padding: 0;
9
- `,d=r((({onClick:r},l)=>{const{account:n,photo:p}=m(),{data:c}=t(),d=c?.roles?.sort()??[];return e(u,{children:[d.at(0)&&o(j,{children:d[0]}),d.length>1&&o(j,{children:"+"+(d.length-1)}),o(i,{ref:l,onClick:r,children:c?o(s,{size:36}):o(a,{size:36,name:n?.name,url:p})})]})}));d.displayName="AccountButton";export{d as AccountButton};
9
+ `,d=r((({onClick:r},l)=>{const{account:n,photo:p}=m(),{data:a}=t(),d=a?.roles?.sort()??[];return e(u,{children:[d.at(0)&&o(j,{children:d[0]}),d.length>1&&o(j,{children:"+"+(d.length-1)}),o(s,{ref:l,onClick:r,children:a?o(i,{size:36}):o(c,{size:36,name:n?.name,url:p})})]})}));d.displayName="AccountButton";export{d as AccountButton};
@@ -1,11 +1,11 @@
1
- import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Icon as t,Typography as i}from"@equinor/eds-core-react";import{engineering as e,arrow_forward as s}from"@equinor/eds-icons";import{OpenImpersonationMenuButton as m}from"./Account.styles.js";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as a}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../providers/TutorialStepsProvider.js";import{colors as p}from"../../../atoms/style/colors.js";import{spacings as n}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import c from"styled-components";const d=c.div`
1
+ import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Icon as t,Typography as i}from"@equinor/eds-core-react";import{engineering as e,arrow_forward as s}from"@equinor/eds-icons";import{OpenImpersonationMenuButton as m}from"./Account.styles.js";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import{useAuth as a}from"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import{colors as n}from"../../../atoms/style/colors.js";import{spacings as p}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import c from"styled-components";const d=c.div`
2
2
  display: flex;
3
3
  align-items: center;
4
- gap: ${n.x_small};
4
+ gap: ${p.x_small};
5
5
  > hr {
6
- background: ${p.text.static_icons__tertiary.rgba};
6
+ background: ${n.text.static_icons__tertiary.rgba};
7
7
  width: 4px;
8
8
  height: 4px;
9
9
  border-radius: 50%;
10
10
  }
11
- `,l=({onClick:n})=>{const{account:c}=a();return r(m,{onClick:n,children:[o(t,{data:e}),r(d,{children:[o(i,{variant:"breadcrumb",group:"navigation",children:c?.name?.split(" ").at(0)}),o("hr",{}),o(i,{variant:"breadcrumb",group:"navigation",color:p.text.static_icons__tertiary.rgba,children:c?.username})]}),o(t,{data:s})]})};export{l as ActiveUserImpersonationButton};
11
+ `,l=({onClick:p})=>{const{account:c}=a();return r(m,{onClick:p,children:[o(t,{data:e}),r(d,{children:[o(i,{variant:"breadcrumb",group:"navigation",children:c?.name?.split(" ").at(0)}),o("hr",{}),o(i,{variant:"breadcrumb",group:"navigation",color:n.text.static_icons__tertiary.rgba,children:c?.username})]}),o(t,{data:s})]})};export{l as ActiveUserImpersonationButton};
@@ -1,4 +1,4 @@
1
- import{jsx as e}from"react/jsx-runtime";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../providers/TutorialStepsProvider.js";import{colors as o}from"../../../atoms/style/colors.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import"../../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../../molecules/Badge/Badge.styles.js";import"@equinor/eds-core-react";import"../../../molecules/Banner/Banner.styles.js";import"@equinor/eds-icons";import"../../../molecules/Chip/Chip.js";import"../../../molecules/ContentMenu/ContentMenu.styles.js";import"../../../molecules/DatePicker/DatePicker.js";import"../../../molecules/Dialog/Dialog.js";import"../../../molecules/EquinorLogo/EquinorLogo.js";import"../../../molecules/FileProgress/CompactFileProgress.styles.js";import"../../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../../molecules/FileUploadArea/FileUploadArea.js";import"../../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../../molecules/InfoElement/InfoElement.js";import"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as r}from"../../../molecules/ProfileAvatar/ProfileAvatar.js";import"@tiptap/react";import"../../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../../molecules/Search/Search.js";import"react-router-dom";import"../../../molecules/Sieve/Sieve.styles.js";import"../../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../../molecules/Skeleton/Skeleton.styles.js";import"../../../molecules/Stepper/Stepper.js";import"../../../molecules/OptionDrawer/OptionDrawer.js";import"../../../molecules/Select/Select.styles.js";import"../../../molecules/ListItem/ListItem.js";import"../../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../../molecules/SelectionControls/Radio/Radio.js";import"../../../molecules/SelectionControls/Switch/Switch.js";import{useActiveImpersonationUser as t}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import i from"styled-components";const s=i.div`
1
+ import{jsx as e}from"react/jsx-runtime";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import{colors as o}from"../../../atoms/style/colors.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import"../../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../../molecules/Badge/Badge.styles.js";import"@equinor/eds-core-react";import"../../../molecules/Banner/Banner.styles.js";import"@equinor/eds-icons";import"../../../molecules/Chip/Chip.js";import"../../../molecules/ContentMenu/ContentMenu.styles.js";import"../../../molecules/DatePicker/DatePicker.js";import"../../../molecules/Dialog/Dialog.js";import"../../../molecules/EquinorLogo/EquinorLogo.js";import"../../../molecules/FileProgress/CompactFileProgress.styles.js";import"../../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../../molecules/FileUploadArea/FileUploadArea.js";import"../../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../../molecules/InfoElement/InfoElement.js";import"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as r}from"../../../molecules/ProfileAvatar/ProfileAvatar.js";import"@tiptap/react";import"../../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"../../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../../molecules/Search/Search.js";import"react-router-dom";import"../../../molecules/Sieve/Sieve.styles.js";import"../../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../../molecules/Skeleton/Skeleton.styles.js";import"../../../molecules/Stepper/Stepper.js";import"../../../molecules/OptionDrawer/OptionDrawer.js";import"../../../molecules/Select/Select.styles.js";import"../../../molecules/ListItem/ListItem.js";import"../../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../../molecules/SelectionControls/Radio/Radio.js";import"../../../molecules/SelectionControls/Switch/Switch.js";import{useActiveImpersonationUser as t}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import i from"styled-components";const s=i.div`
2
2
  width: fit-content;
3
3
  border: 2px solid ${o.interactive.warning__resting.rgba};
4
4
  border-radius: 50%;
@@ -1,4 +1,4 @@
1
- import{jsx as r,jsxs as o}from"react/jsx-runtime";import{Button as t,DotProgress as e,Icon as i,Typography as s}from"@equinor/eds-core-react";import{do_not_disturb as n,assignment_user as m,arrow_forward as a}from"@equinor/eds-icons";import{useActiveImpersonationUser as p}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import{useStopImpersonation as d}from"./ImpersonateMenu/hooks/useStopImpersonation.js";import{OpenImpersonationMenuButton as c}from"./Account.styles.js";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import"../../../providers/TutorialStepsProvider.js";import{colors as l}from"../../../atoms/style/colors.js";import{spacings as u}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import v from"styled-components";const j=v(t)`
1
+ import{jsx as r,jsxs as o}from"react/jsx-runtime";import{Button as t,DotProgress as e,Icon as i,Typography as s}from"@equinor/eds-core-react";import{do_not_disturb as n,assignment_user as m,arrow_forward as a}from"@equinor/eds-icons";import{useActiveImpersonationUser as p}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import{useStopImpersonation as d}from"./ImpersonateMenu/hooks/useStopImpersonation.js";import{OpenImpersonationMenuButton as c}from"./Account.styles.js";import"react";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../../atoms/enums/Environment.js";import"../../../atoms/utils/auth_environment.js";import"../Notifications/NotificationProvider.js";import"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/ReleaseNotesProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider/SnackbarProvider.js";import"../../../providers/StepperProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/ThemeProvider/ThemeProvider.js";import{colors as l}from"../../../atoms/style/colors.js";import{spacings as u}from"../../../atoms/style/spacings.js";import"../../../atoms/enums/Errors.js";import"../../../atoms/enums/Theme.js";import"../../../atoms/enums/SpacingsMode.js";import"html2canvas";import"proj4";import v from"styled-components";const j=v(t)`
2
2
  margin-top: ${u.large};
3
3
  width: 100%;
4
4
  height: 48px;