diff --git a/package-lock.json b/package-lock.json index 2e81ae0b7..292a70b0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "@hookform/resolvers": "^2.8.8", "@js-temporal/polyfill": "^0.4.3", "@monaco-editor/react": "^4.4.5", - "@scality/core-ui": "github:scality/core-ui#b4d68882cc21e02f4da7318773cb316ac1b0f8a2", + "@scality/core-ui": "github:scality/core-ui#f27d07d7a2472afc456413ed150ec3ff0b810464", "@scality/module-federation": "github:scality/module-federation#1.1.0", "@types/react-table": "^7.7.10", "@types/react-virtualized": "^9.21.20", @@ -3186,8 +3186,8 @@ }, "node_modules/@scality/core-ui": { "version": "0.98.0", - "resolved": "git+ssh://git@github.com/scality/core-ui.git#b4d68882cc21e02f4da7318773cb316ac1b0f8a2", - "integrity": "sha512-ysq4qjVb+AJ71v9BceVMfvR2bYEyqeh5nUvpYjDt+vwRWea6vMzEEHqVJFGLDwzqneeKI13KGPBFFrtVQ/coPw==", + "resolved": "git+ssh://git@github.com/scality/core-ui.git#f27d07d7a2472afc456413ed150ec3ff0b810464", + "integrity": "sha512-grXJjNartX0p4s7r72O3CDW6NPd4PnfQRP0QuNOc5hXLb3VIdRytl4kXOs71tNekikWKfs0Xtx4OD5XB32qeAA==", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@floating-ui/dom": "^0.1.10", @@ -23619,9 +23619,9 @@ "dev": true }, "@scality/core-ui": { - "version": "git+ssh://git@github.com/scality/core-ui.git#b4d68882cc21e02f4da7318773cb316ac1b0f8a2", - "integrity": "sha512-ysq4qjVb+AJ71v9BceVMfvR2bYEyqeh5nUvpYjDt+vwRWea6vMzEEHqVJFGLDwzqneeKI13KGPBFFrtVQ/coPw==", - "from": "@scality/core-ui@github:scality/core-ui#b4d68882cc21e02f4da7318773cb316ac1b0f8a2", + "version": "git+ssh://git@github.com/scality/core-ui.git#f27d07d7a2472afc456413ed150ec3ff0b810464", + "integrity": "sha512-grXJjNartX0p4s7r72O3CDW6NPd4PnfQRP0QuNOc5hXLb3VIdRytl4kXOs71tNekikWKfs0Xtx4OD5XB32qeAA==", + "from": "@scality/core-ui@github:scality/core-ui#f27d07d7a2472afc456413ed150ec3ff0b810464", "requires": { "@floating-ui/dom": "^0.1.10", "framer-motion": "^4.1.17" diff --git a/package.json b/package.json index 37f707dac..412824c39 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "@hookform/resolvers": "^2.8.8", "@js-temporal/polyfill": "^0.4.3", "@monaco-editor/react": "^4.4.5", - "@scality/core-ui": "github:scality/core-ui#b4d68882cc21e02f4da7318773cb316ac1b0f8a2", + "@scality/core-ui": "github:scality/core-ui#f27d07d7a2472afc456413ed150ec3ff0b810464", "@scality/module-federation": "github:scality/module-federation#1.1.0", "@types/react-table": "^7.7.10", "@types/react-virtualized": "^9.21.20", diff --git a/src/react/ZenkoUI.tsx b/src/react/ZenkoUI.tsx index 5ae7be913..339340392 100644 --- a/src/react/ZenkoUI.tsx +++ b/src/react/ZenkoUI.tsx @@ -3,7 +3,12 @@ import { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import Activity from './ui-elements/Activity'; import type { AppState } from '../types/state'; -import { Banner, Icon, ScrollbarWrapper } from '@scality/core-ui'; +import { + Banner, + Icon, + ScrollbarWrapper, + ToastProvider, +} from '@scality/core-ui'; import ErrorHandlerModal from './ui-elements/ErrorHandlerModal'; import Loader from './ui-elements/Loader'; import Routes from './Routes'; @@ -11,7 +16,6 @@ import { ThemeProvider } from 'styled-components'; import { loadAppConfig } from './actions'; import { useConfig } from './next-architecture/ui/ConfigProvider'; import { useAuth } from './next-architecture/ui/AuthProvider'; -import { ToastProvider } from './ToastProvider'; function ZenkoUI() { const isConfigLoaded = useSelector( diff --git a/src/react/databrowser/buckets/BucketCreate.tsx b/src/react/databrowser/buckets/BucketCreate.tsx index d57dcc7aa..ec667a5ac 100644 --- a/src/react/databrowser/buckets/BucketCreate.tsx +++ b/src/react/databrowser/buckets/BucketCreate.tsx @@ -4,6 +4,7 @@ import { FormGroup, FormSection, Stack, + useMutationsHandler, } from '@scality/core-ui'; import { Controller, FormProvider, useForm } from 'react-hook-form'; import { ChangeEvent, useMemo, useRef } from 'react'; @@ -22,7 +23,7 @@ import { XDM_FEATURE } from '../../../js/config'; import { renderLocation } from '../../locations/utils'; import { convertRemToPixels } from '@scality/core-ui/dist/utils'; import { useHistory, useParams } from 'react-router-dom'; -import { MutationConfig, useMutationsHandler } from '../../ToastProvider'; +import { MutationConfig } from '../../ToastProvider'; import { useChangeBucketDefaultRetention, useChangeBucketVersionning,