cozy-harvest-lib 17.2.2 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/StoryContainer.tsx +3 -3
- package/CHANGELOG.md +31 -0
- package/dist/components/AccountForm/CannotConnectModal.js +1 -1
- package/dist/components/AccountForm/ConnectionBackdrop.js +2 -2
- package/dist/components/AccountForm/index.spec.js +1 -1
- package/dist/components/AccountModal.spec.js +1 -1
- package/dist/components/AccountModalWithoutTabs/Error.js +1 -1
- package/dist/components/AccountModalWithoutTabs/OpenOAuthWindowButton.js +1 -1
- package/dist/components/AccountSelectBox/CreateAccountButton.js +1 -1
- package/dist/components/AccountsList/AccountsList.js +1 -1
- package/dist/components/AccountsList/Status.js +1 -1
- package/dist/components/AccountsListModal.js +1 -1
- package/dist/components/DisconnectedAccountModal.js +2 -2
- package/dist/components/FlowProvider.js +1 -1
- package/dist/components/KonnectorAccounts.js +1 -1
- package/dist/components/KonnectorBlock.js +1 -1
- package/dist/components/KonnectorConfiguration/ConfigurationTab/ContractItemSecondaryText.js +1 -1
- package/dist/components/KonnectorConfiguration/ConfigurationTab/Contracts.js +1 -1
- package/dist/components/KonnectorConfiguration/ConfigurationTab/EditContract.js +2 -2
- package/dist/components/KonnectorConfiguration/ConfigurationTab/index.js +3 -3
- package/dist/components/KonnectorConfiguration/DataTab/index.js +1 -1
- package/dist/components/KonnectorConfiguration/DataTab.spec.js +1 -1
- package/dist/components/KonnectorConfiguration/KonnectorAccountTabs.js +2 -2
- package/dist/components/KonnectorConfiguration/Success/DriveLink.js +1 -1
- package/dist/components/KonnectorSuccess.js +1 -1
- package/dist/components/KonnectorSuggestionModal/DataTypes.js +1 -1
- package/dist/components/KonnectorSuggestionModal/index.js +2 -2
- package/dist/components/Maintenance/MaintenanceHeader.js +1 -1
- package/dist/components/Maintenance/index.js +1 -1
- package/dist/components/Maintenance/index.spec.js +1 -1
- package/dist/components/NewAccountModal.js +1 -1
- package/dist/components/OAuthWindow.js +1 -1
- package/dist/components/RedirectToAccountFormButton.js +1 -1
- package/dist/components/Routes.js +1 -1
- package/dist/components/TriggerManager.js +1 -1
- package/dist/components/TwoFAModal.js +1 -1
- package/dist/components/cards/AppLinkCard.js +2 -2
- package/dist/components/cards/InformationsCard.js +1 -1
- package/dist/components/cards/LaunchTriggerCard.js +1 -1
- package/dist/components/cards/LaunchTriggerCard.spec.js +1 -1
- package/dist/components/cards/RunningAlert.js +1 -1
- package/dist/components/cards/RunningAlert.spec.tsx +1 -1
- package/dist/components/cards/helpers.js +1 -1
- package/dist/components/hoc/withKonnectorLocales.js +1 -1
- package/dist/components/hoc/withLocales.js +2 -2
- package/dist/components/infos/KonnectorUpdateInfos.js +1 -1
- package/dist/components/infos/TriggerErrorDescription.js +1 -1
- package/dist/components/infos/TriggerErrorInfo.js +1 -1
- package/dist/components/infos/TriggerMaintenanceDescription.js +1 -1
- package/dist/datacards/FileDataCard.js +1 -1
- package/dist/datacards/GeoDataCard.js +1 -1
- package/dist/helpers/konnectorBlock.spec.js +1 -1
- package/dist/models/ConnectionFlow.js +163 -55
- package/package.json +8 -8
- package/src/components/AccountForm/CannotConnectModal.jsx +1 -1
- package/src/components/AccountForm/ConnectionBackdrop.jsx +2 -2
- package/src/components/AccountForm/index.spec.jsx +1 -1
- package/src/components/AccountModal.spec.jsx +1 -1
- package/src/components/AccountModalWithoutTabs/Error.jsx +1 -1
- package/src/components/AccountModalWithoutTabs/OpenOAuthWindowButton.jsx +1 -1
- package/src/components/AccountSelectBox/CreateAccountButton.jsx +1 -1
- package/src/components/AccountsList/AccountsList.jsx +1 -1
- package/src/components/AccountsList/Status.jsx +1 -1
- package/src/components/AccountsListModal.jsx +1 -1
- package/src/components/DisconnectedAccountModal.jsx +2 -2
- package/src/components/FlowProvider.jsx +1 -1
- package/src/components/KonnectorAccounts.jsx +1 -1
- package/src/components/KonnectorBlock.jsx +1 -1
- package/src/components/KonnectorConfiguration/ConfigurationTab/ContractItemSecondaryText.jsx +1 -1
- package/src/components/KonnectorConfiguration/ConfigurationTab/Contracts.jsx +1 -1
- package/src/components/KonnectorConfiguration/ConfigurationTab/EditContract.jsx +2 -2
- package/src/components/KonnectorConfiguration/ConfigurationTab/index.jsx +2 -2
- package/src/components/KonnectorConfiguration/DataTab/index.jsx +1 -1
- package/src/components/KonnectorConfiguration/DataTab.spec.jsx +1 -1
- package/src/components/KonnectorConfiguration/KonnectorAccountTabs.jsx +2 -2
- package/src/components/KonnectorConfiguration/Success/DriveLink.jsx +1 -1
- package/src/components/KonnectorSuccess.jsx +1 -1
- package/src/components/KonnectorSuggestionModal/DataTypes.jsx +1 -1
- package/src/components/KonnectorSuggestionModal/index.jsx +2 -2
- package/src/components/Maintenance/MaintenanceHeader.jsx +1 -1
- package/src/components/Maintenance/index.jsx +1 -1
- package/src/components/Maintenance/index.spec.jsx +1 -1
- package/src/components/NewAccountModal.jsx +1 -1
- package/src/components/OAuthWindow.jsx +1 -1
- package/src/components/RedirectToAccountFormButton.jsx +1 -1
- package/src/components/Routes.jsx +1 -1
- package/src/components/TriggerManager.jsx +1 -1
- package/src/components/TwoFAModal.jsx +1 -1
- package/src/components/cards/AppLinkCard.jsx +2 -2
- package/src/components/cards/InformationsCard.tsx +1 -1
- package/src/components/cards/LaunchTriggerCard.jsx +1 -1
- package/src/components/cards/LaunchTriggerCard.spec.jsx +1 -1
- package/src/components/cards/RunningAlert.spec.tsx +1 -1
- package/src/components/cards/RunningAlert.tsx +1 -1
- package/src/components/cards/helpers.js +1 -1
- package/src/components/hoc/withKonnectorLocales.jsx +1 -1
- package/src/components/hoc/withLocales.js +2 -2
- package/src/components/infos/KonnectorUpdateInfos.jsx +1 -1
- package/src/components/infos/TriggerErrorDescription.jsx +1 -1
- package/src/components/infos/TriggerErrorInfo.jsx +1 -1
- package/src/components/infos/TriggerMaintenanceDescription.jsx +1 -1
- package/src/datacards/FileDataCard.jsx +1 -1
- package/src/datacards/GeoDataCard.jsx +1 -1
- package/src/helpers/konnectorBlock.spec.js +1 -1
- package/src/models/ConnectionFlow.js +80 -2
- package/test/AppLike.jsx +2 -2
|
@@ -3,9 +3,9 @@ import { Provider as ReduxProvider } from 'react-redux'
|
|
|
3
3
|
|
|
4
4
|
import CozyClient, { CozyProvider as CozyClientProvider } from 'cozy-client'
|
|
5
5
|
import { useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
|
|
6
|
-
import I18n from 'cozy-ui/transpiled/react/I18n'
|
|
7
|
-
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/
|
|
8
|
-
import CozyTheme from 'cozy-ui/transpiled/react/CozyTheme'
|
|
6
|
+
import I18n from 'cozy-ui/transpiled/react/providers/I18n'
|
|
7
|
+
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
|
|
8
|
+
import CozyTheme from 'cozy-ui/transpiled/react/providers/CozyTheme'
|
|
9
9
|
import DialogContext from '../src/components/DialogContext'
|
|
10
10
|
import enLocale from '../src/locales/en.json'
|
|
11
11
|
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,37 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [18.0.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@17.3.0...cozy-harvest-lib@18.0.0) (2023-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **cozy-harverst-lib:** Update cozy-ui from 88.1.1 to 93.1.1 ([350cda6](https://github.com/cozy/cozy-libs/commit/350cda6263034e0666aa1b9764f9de33f0db54b2))
|
|
12
|
+
* **cozy-harvest-lib:** Update cozy-client from 40.2.0 to 41.0.0 ([183feef](https://github.com/cozy/cozy-libs/commit/183feef5eb10dc62c133977443593abe27fc2c8a))
|
|
13
|
+
* **cozy-harvest-lib:** Update cozy-keys-lib from 5.0.0 to 6.0.0 ([f3d20fa](https://github.com/cozy/cozy-libs/commit/f3d20fae43671b7d163224fd7b05434edd59370a))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* **cozy-harvest-lib:** You need cozy-keys-lib >= 6.0.0
|
|
19
|
+
* **cozy-harvest-lib:** You need cozy-client >= 41.0.0
|
|
20
|
+
* **cozy-harverst-lib:** You need cozy-ui >= 93.1.1
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [17.3.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@17.2.2...cozy-harvest-lib@17.3.0) (2023-09-28)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* Add createAccountSilently ([7236d8f](https://github.com/cozy/cozy-libs/commit/7236d8fa40e6e5fa633f17e88b481b08b0369ed6))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
6
37
|
## [17.2.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@17.2.1...cozy-harvest-lib@17.2.2) (2023-08-31)
|
|
7
38
|
|
|
8
39
|
**Note:** Version bump only for package cozy-harvest-lib
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
4
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
5
4
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
5
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
6
6
|
import Markdown from '../Markdown';
|
|
7
7
|
import { useComponentsProps } from '../Providers/ComponentsPropsProvider';
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Backdrop from 'cozy-ui/transpiled/react/Backdrop';
|
|
3
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
4
3
|
import LinearProgress from 'cozy-ui/transpiled/react/LinearProgress';
|
|
5
4
|
import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme';
|
|
6
5
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
7
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/
|
|
6
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
7
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
8
8
|
import { makeStyles } from 'cozy-ui/transpiled/react/styles';
|
|
9
9
|
var useStyles = makeStyles({
|
|
10
10
|
container: {
|
|
@@ -13,7 +13,7 @@ import Polyglot from 'node-polyglot';
|
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { isMobile } from 'cozy-device-helper';
|
|
16
|
-
import I18n from 'cozy-ui/transpiled/react/I18n';
|
|
16
|
+
import I18n from 'cozy-ui/transpiled/react/providers/I18n';
|
|
17
17
|
var polyglot = new Polyglot();
|
|
18
18
|
polyglot.extend(enLocale);
|
|
19
19
|
var t = polyglot.t.bind(polyglot);
|
|
@@ -9,7 +9,7 @@ jest.mock('../../src/connections/accounts', function () {
|
|
|
9
9
|
fetchAccount: jest.fn()
|
|
10
10
|
};
|
|
11
11
|
});
|
|
12
|
-
jest.mock('cozy-ui/transpiled/react/
|
|
12
|
+
jest.mock('cozy-ui/transpiled/react/providers/Breakpoints', function () {
|
|
13
13
|
return function () {
|
|
14
14
|
return {
|
|
15
15
|
isMobile: false
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useClient } from 'cozy-client';
|
|
3
3
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
4
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
5
4
|
import Infos from 'cozy-ui/transpiled/react/deprecated/Infos';
|
|
5
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
6
6
|
import { loadSelectedAccountId } from '../../helpers/accounts';
|
|
7
7
|
import withLocales from '../hoc/withLocales';
|
|
8
8
|
|
|
@@ -5,10 +5,10 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { useClient } from 'cozy-client';
|
|
6
6
|
import { useWebviewIntent } from 'cozy-intent';
|
|
7
7
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
8
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
9
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
10
9
|
import SyncIcon from 'cozy-ui/transpiled/react/Icons/Sync';
|
|
11
10
|
import { ActionMenuItem } from 'cozy-ui/transpiled/react/deprecated/ActionMenu';
|
|
11
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
12
12
|
import { intentsApiProptype } from '../../helpers/proptypes';
|
|
13
13
|
import { OAUTH_SERVICE_OK, openOAuthWindow } from '../OAuthService';
|
|
14
14
|
import useOAuthExtraParams from '../hooks/useOAuthExtraParams';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
3
2
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
3
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
4
4
|
/**
|
|
5
5
|
* onClick is not called when we are on mobile device.
|
|
6
6
|
* It seems that react-select captures this event before us
|
|
@@ -12,10 +12,10 @@ import PropTypes from 'prop-types';
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
14
14
|
import { DialogContent } from 'cozy-ui/transpiled/react/Dialog';
|
|
15
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
16
15
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
17
16
|
import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus';
|
|
18
17
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
18
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
19
19
|
import AccountsListItem from './AccountsListItem';
|
|
20
20
|
export var AccountsList = /*#__PURE__*/function (_React$PureComponent) {
|
|
21
21
|
_inherits(AccountsList, _React$PureComponent);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
4
3
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
5
4
|
import CheckIcon from 'cozy-ui/transpiled/react/Icons/Check';
|
|
6
5
|
import WarningIcon from 'cozy-ui/transpiled/react/Icons/Warning';
|
|
7
6
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
8
7
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
8
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
9
9
|
import { getErrorLocale } from '../../helpers/konnectors';
|
|
10
10
|
import FlowProvider from '../FlowProvider';
|
|
11
11
|
/**
|
|
@@ -2,8 +2,8 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import DialogTitle from 'cozy-ui/transpiled/react/Dialog/DialogTitle';
|
|
4
4
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
5
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
6
5
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
6
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
7
7
|
import AccountsList from './AccountsList/AccountsList';
|
|
8
8
|
import KonnectorIcon from './KonnectorIcon';
|
|
9
9
|
import { MountPointContext } from './MountPointContext';
|
|
@@ -8,9 +8,9 @@ import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyD
|
|
|
8
8
|
import Dialog from 'cozy-ui/transpiled/react/Dialog';
|
|
9
9
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
10
10
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
11
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
12
11
|
import { Tab, Tabs } from 'cozy-ui/transpiled/react/MuiTabs';
|
|
13
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/
|
|
12
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
13
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
14
14
|
import { Contracts } from './KonnectorConfiguration/ConfigurationTab/Contracts';
|
|
15
15
|
import { getAccountInstitutionLabel } from './KonnectorConfiguration/ConfigurationTab/bankAccountHelpers';
|
|
16
16
|
import KonnectorModalHeader from './KonnectorModalHeader';
|
|
@@ -18,7 +18,7 @@ import PropTypes from 'prop-types';
|
|
|
18
18
|
import React, { Component } from 'react';
|
|
19
19
|
import { createPortal } from 'react-dom';
|
|
20
20
|
import { withClient } from 'cozy-client';
|
|
21
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
21
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
22
22
|
import ConnectionBackdrop from './AccountForm/ConnectionBackdrop';
|
|
23
23
|
import TwoFAModal from './TwoFAModal';
|
|
24
24
|
import assert from '../assert';
|
|
@@ -18,11 +18,11 @@ import PropTypes from 'prop-types';
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { withClient } from 'cozy-client';
|
|
20
20
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
21
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
22
21
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
23
22
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
24
23
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
25
24
|
import Infos from 'cozy-ui/transpiled/react/deprecated/Infos';
|
|
25
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
26
26
|
import KonnectorModalHeader from './KonnectorModalHeader';
|
|
27
27
|
import withAdaptiveRouter from './hoc/withRouter';
|
|
28
28
|
import { fetchAccountsFromTriggers } from '../connections/accounts';
|
|
@@ -9,7 +9,6 @@ import React, { useEffect, useState, useCallback } from 'react';
|
|
|
9
9
|
import { useClient } from 'cozy-client';
|
|
10
10
|
import AppIcon from 'cozy-ui/transpiled/react/AppIcon';
|
|
11
11
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
12
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
13
12
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
14
13
|
import GlobeIcon from 'cozy-ui/transpiled/react/Icons/Globe';
|
|
15
14
|
import RightIcon from 'cozy-ui/transpiled/react/Icons/Right';
|
|
@@ -20,6 +19,7 @@ import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryA
|
|
|
20
19
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
21
20
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
22
21
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
22
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
23
23
|
import Markdown from './Markdown';
|
|
24
24
|
import withLocales from './hoc/withLocales';
|
|
25
25
|
import { fetchKonnectorData } from '../helpers/konnectorBlock';
|
package/dist/components/KonnectorConfiguration/ConfigurationTab/ContractItemSecondaryText.js
CHANGED
|
@@ -4,10 +4,10 @@ import dateFnsLocaleEs from 'date-fns/locale/es';
|
|
|
4
4
|
import dateFnsLocalefr from 'date-fns/locale/fr';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
8
7
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
8
|
import SyncIcon from 'cozy-ui/transpiled/react/Icons/Sync';
|
|
10
9
|
import UnlinkIcon from 'cozy-ui/transpiled/react/Icons/Unlink';
|
|
10
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
11
11
|
import { isDeleted, isDisabled, isErrored, isImported } from './helpers';
|
|
12
12
|
var dateFnsLocales = {
|
|
13
13
|
en: dateFnsLocaleEn,
|
|
@@ -3,9 +3,9 @@ import compose from 'lodash/flowRight';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import CozyClient, { Q, queryConnect, RealTimeQueries } from 'cozy-client';
|
|
6
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
7
6
|
import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme';
|
|
8
7
|
import NavigationList, { NavigationListSection, NavigationListHeader } from 'cozy-ui/transpiled/react/NavigationList';
|
|
8
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
9
9
|
import BIContractActivationWindow from './BiContractActivationWindow';
|
|
10
10
|
import ContractItem from './ContractItem';
|
|
11
11
|
import { intentsApiProptype, innerAccountModalOverridesProptype } from '../../../helpers/proptypes';
|
|
@@ -10,7 +10,6 @@ import { DialogCloseButton, DialogBackButton, ConfirmDialog, useCozyDialog } fro
|
|
|
10
10
|
import Dialog, { DialogContent, DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
11
11
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
12
12
|
import Field from 'cozy-ui/transpiled/react/Field';
|
|
13
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
14
13
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
15
14
|
import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash';
|
|
16
15
|
import CollectionField from 'cozy-ui/transpiled/react/Labs/CollectionField';
|
|
@@ -18,7 +17,8 @@ import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
|
18
17
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
19
18
|
import Alerter from 'cozy-ui/transpiled/react/deprecated/Alerter';
|
|
20
19
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
21
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/
|
|
20
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
21
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
22
22
|
import { withStyles } from 'cozy-ui/transpiled/react/styles';
|
|
23
23
|
import { getAccountLabel, getAccountInstitutionLabel, getAccountOwners } from './bankAccountHelpers';
|
|
24
24
|
import { updateContract } from './helpers';
|
|
@@ -9,7 +9,6 @@ import { useClient } from 'cozy-client';
|
|
|
9
9
|
import { Account } from 'cozy-doctypes';
|
|
10
10
|
import { useVaultClient, useVaultUnlockContext } from 'cozy-keys-lib';
|
|
11
11
|
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
12
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
13
12
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
14
13
|
import KeyIcon from 'cozy-ui/transpiled/react/Icons/Key';
|
|
15
14
|
import RightIcon from 'cozy-ui/transpiled/react/Icons/Right';
|
|
@@ -22,8 +21,9 @@ import NavigationList, { NavigationListSection, NavigationListHeader } from 'coz
|
|
|
22
21
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
23
22
|
import Alerter from 'cozy-ui/transpiled/react/deprecated/Alerter';
|
|
24
23
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
25
|
-
import
|
|
26
|
-
import
|
|
24
|
+
import palette from 'cozy-ui/transpiled/react/palette';
|
|
25
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
26
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'; // @ts-ignore peerDep
|
|
27
27
|
|
|
28
28
|
import { ContractsForAccount } from './Contracts';
|
|
29
29
|
import { deleteAccount } from '../../../connections/accounts';
|
|
@@ -7,7 +7,7 @@ import { withClient } from 'cozy-client';
|
|
|
7
7
|
import flag from 'cozy-flags';
|
|
8
8
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
9
9
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
10
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/
|
|
10
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
11
11
|
import appLinksProps from '../../../components/KonnectorConfiguration/DataTab/appLinksProps';
|
|
12
12
|
import KonnectorMaintenance from '../../../components/Maintenance';
|
|
13
13
|
import AppLinkCard from '../../../components/cards/AppLinkCard';
|
|
@@ -12,7 +12,7 @@ import useMaintenanceStatus from 'components/hooks/useMaintenanceStatus';
|
|
|
12
12
|
import { shallow } from 'enzyme';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
jest.mock('components/hooks/useMaintenanceStatus');
|
|
15
|
-
jest.mock('cozy-ui/transpiled/react/
|
|
15
|
+
jest.mock('cozy-ui/transpiled/react/providers/Breakpoints', function () {
|
|
16
16
|
return function () {
|
|
17
17
|
return {
|
|
18
18
|
isMobile: false
|
|
@@ -9,9 +9,9 @@ import { useClient } from 'cozy-client';
|
|
|
9
9
|
import { useWebviewIntent } from 'cozy-intent';
|
|
10
10
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
11
11
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
12
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
13
12
|
import { Tab as UITab, Tabs } from 'cozy-ui/transpiled/react/MuiTabs';
|
|
14
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/
|
|
13
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
14
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
15
15
|
import { makeStyles } from 'cozy-ui/transpiled/react/styles';
|
|
16
16
|
import ConfigurationTab from './ConfigurationTab';
|
|
17
17
|
import DataTab from './DataTab';
|
|
@@ -2,9 +2,9 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { withClient } from 'cozy-client';
|
|
4
4
|
import AppLinker from 'cozy-ui/transpiled/react/AppLinker';
|
|
5
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
6
5
|
import OpenwithIcon from 'cozy-ui/transpiled/react/Icons/Openwith';
|
|
7
6
|
import { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
7
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
8
8
|
import useAppLinkWithStoreFallback from '../../hooks/useAppLinkWithStoreFallback';
|
|
9
9
|
var DriveLink = /*#__PURE__*/memo(function (_ref) {
|
|
10
10
|
var folderId = _ref.folderId,
|
|
@@ -14,9 +14,9 @@ import get from 'lodash/get';
|
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import React, { Component } from 'react';
|
|
16
16
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
17
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
18
17
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
19
18
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
19
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
20
20
|
import BanksLink from './KonnectorConfiguration/Success/BanksLink';
|
|
21
21
|
import DriveLink from './KonnectorConfiguration/Success/DriveLink';
|
|
22
22
|
import Markdown from './Markdown';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
4
3
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
5
4
|
import CompositeRow from 'cozy-ui/transpiled/react/deprecated/CompositeRow';
|
|
5
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
6
6
|
|
|
7
7
|
var activityIcon = function activityIcon(props) {
|
|
8
8
|
return /*#__PURE__*/React.createElement("svg", props, /*#__PURE__*/React.createElement("g", {
|
|
@@ -13,11 +13,11 @@ import { withClient } from 'cozy-client';
|
|
|
13
13
|
import AppLinker, { generateWebLink } from 'cozy-ui/transpiled/react/AppLinker';
|
|
14
14
|
import { DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
15
15
|
import Dialog, { DialogActions, DialogContent } from 'cozy-ui/transpiled/react/Dialog';
|
|
16
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
17
16
|
import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme';
|
|
18
17
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
19
18
|
import { Button, ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
20
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/
|
|
19
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
20
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
21
21
|
import DataTypes from './DataTypes';
|
|
22
22
|
import Illustration from './Illustration';
|
|
23
23
|
import { getSuggestionReason } from '../../helpers/appSuggestions';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import cx from 'classnames';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
5
4
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
6
5
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
7
6
|
import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints';
|
|
7
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
8
8
|
import MaintenanceIcon from './MaintenanceIcon';
|
|
9
9
|
|
|
10
10
|
var MaintenanceHeader = function MaintenanceHeader(_ref) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
5
4
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
6
5
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
6
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
7
7
|
import MaintenanceHeader from './MaintenanceHeader';
|
|
8
8
|
import TriggerMaintenanceDescription from '../infos/TriggerMaintenanceDescription';
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import KonnectorMaintenance from 'components/Maintenance';
|
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
3
|
import enLocale from 'locales/en.json';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import I18n from 'cozy-ui/transpiled/react/I18n';
|
|
5
|
+
import I18n from 'cozy-ui/transpiled/react/providers/I18n';
|
|
6
6
|
describe('KonnectorMaintenance', function () {
|
|
7
7
|
it('should match the snapshot', function () {
|
|
8
8
|
var component = mount( /*#__PURE__*/React.createElement(I18n, {
|
|
@@ -6,9 +6,9 @@ import { useClient } from 'cozy-client';
|
|
|
6
6
|
import flag from 'cozy-flags';
|
|
7
7
|
import { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
8
8
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
9
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
10
9
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
11
10
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
11
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
12
12
|
import { useDialogContext } from './DialogContext';
|
|
13
13
|
import KonnectorIcon from './KonnectorIcon';
|
|
14
14
|
import KonnectorModalHeader from './KonnectorModalHeader';
|
|
@@ -16,7 +16,7 @@ import React, { PureComponent } from 'react';
|
|
|
16
16
|
import { withClient } from 'cozy-client';
|
|
17
17
|
import { isFlagshipApp } from 'cozy-device-helper';
|
|
18
18
|
import CozyRealtime from 'cozy-realtime';
|
|
19
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
19
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
20
20
|
import InAppBrowser from './InAppBrowser';
|
|
21
21
|
import Popup from './Popup';
|
|
22
22
|
import { prepareOAuth, checkOAuthData, terminateOAuth, OAUTH_REALTIME_CHANNEL } from '../helpers/oauth'; // TODO use PopUp from cozy-ui
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext, useCallback } from 'react';
|
|
2
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
3
2
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
3
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
4
4
|
import { MountPointContext } from './MountPointContext';
|
|
5
5
|
import { getAccountId } from '../helpers/triggers';
|
|
6
6
|
|
|
@@ -4,9 +4,9 @@ import flag from 'cozy-flags';
|
|
|
4
4
|
import { useVaultUnlockContext, VaultUnlockPlaceholder } from 'cozy-keys-lib';
|
|
5
5
|
import { DialogCloseButton, useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
6
6
|
import Dialog from 'cozy-ui/transpiled/react/Dialog';
|
|
7
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
8
7
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
9
8
|
import Alerter from 'cozy-ui/transpiled/react/deprecated/Alerter';
|
|
9
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
10
10
|
import { withStyles } from 'cozy-ui/transpiled/react/styles';
|
|
11
11
|
import { DatacardOptions } from './Datacards/DatacardOptionsContext';
|
|
12
12
|
import DialogContext from './DialogContext';
|
|
@@ -6,7 +6,7 @@ import compose from 'lodash/flowRight';
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { withClient } from 'cozy-client';
|
|
8
8
|
import { useVaultClient, withVaultUnlockContext, VaultUnlockPlaceholder } from 'cozy-keys-lib';
|
|
9
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
9
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
10
10
|
import { DumbTriggerManager } from './DumbTriggerManager';
|
|
11
11
|
import FlowProvider from './FlowProvider';
|
|
12
12
|
import HarvestWrapper from './HarvestWrapper';
|
|
@@ -14,10 +14,10 @@ import PropTypes from 'prop-types';
|
|
|
14
14
|
import React, { PureComponent } from 'react';
|
|
15
15
|
import { IllustrationDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
16
16
|
import Field from 'cozy-ui/transpiled/react/Field';
|
|
17
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
18
17
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
19
18
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
20
19
|
import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints';
|
|
20
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
21
21
|
import KonnectorIcon from './KonnectorIcon';
|
|
22
22
|
import withLocales from './hoc/withLocales';
|
|
23
23
|
import accounts, { TWOFA_PROVIDERS, TWOFA_USER_INPUT } from '../helpers/accounts';
|
|
@@ -5,13 +5,13 @@ import AppIcon from 'cozy-ui/transpiled/react/AppIcon';
|
|
|
5
5
|
import AppLinker from 'cozy-ui/transpiled/react/AppLinker';
|
|
6
6
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
7
7
|
import Circle from 'cozy-ui/transpiled/react/Circle';
|
|
8
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
9
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
10
9
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
11
10
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
12
11
|
import { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
13
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
14
12
|
import palette from 'cozy-ui/transpiled/react/palette';
|
|
13
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints';
|
|
14
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
15
15
|
import useAppLinkWithStoreFallback from '../hooks/useAppLinkWithStoreFallback';
|
|
16
16
|
export var AppLinkButton = function AppLinkButton(_ref) {
|
|
17
17
|
var slug = _ref.slug,
|
|
@@ -3,7 +3,7 @@ import cx from 'classnames';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
5
5
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
6
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
6
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
7
7
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
8
8
|
import GlobeIcon from 'cozy-ui/transpiled/react/Icons/Globe';
|
|
9
9
|
import List from 'cozy-ui/transpiled/react/List';
|
|
@@ -9,13 +9,13 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import flag from 'cozy-flags';
|
|
11
11
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
12
|
-
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
13
12
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
14
13
|
import Info from 'cozy-ui/transpiled/react/Icons/Info';
|
|
15
14
|
import SyncIcon from 'cozy-ui/transpiled/react/Icons/Sync';
|
|
16
15
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
17
16
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
18
17
|
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media';
|
|
18
|
+
import { translate } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
19
19
|
import LaunchTriggerAlert from './LaunchTriggerAlert';
|
|
20
20
|
import { intentsApiProptype } from '../../helpers/proptypes';
|
|
21
21
|
import * as triggers from '../../helpers/triggers';
|
|
@@ -10,7 +10,7 @@ import LaunchTriggerCard, { DumbLaunchTriggerCard } from 'components/cards/Launc
|
|
|
10
10
|
import { mount } from 'enzyme';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import CozyClient, { CozyProvider } from 'cozy-client';
|
|
13
|
-
import I18n from 'cozy-ui/transpiled/react/I18n';
|
|
13
|
+
import I18n from 'cozy-ui/transpiled/react/providers/I18n';
|
|
14
14
|
import enLocale from '../../locales/en.json';
|
|
15
15
|
import ConnectionFlow from '../../models/ConnectionFlow';
|
|
16
16
|
jest.mock('../../models/ConnectionFlow', function () {
|
|
@@ -4,7 +4,7 @@ import { isFlagshipApp } from 'cozy-device-helper';
|
|
|
4
4
|
import Alert from 'cozy-ui/transpiled/react/Alert';
|
|
5
5
|
import AlertTitle from 'cozy-ui/transpiled/react/AlertTitle';
|
|
6
6
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
7
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
7
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
9
|
import ArrowUp from 'cozy-ui/transpiled/react/Icons/ArrowUp';
|
|
10
10
|
export var RunningAlert = function RunningAlert() {
|
|
@@ -11,7 +11,7 @@ jest.mock('cozy-device-helper', () => ({
|
|
|
11
11
|
}))
|
|
12
12
|
|
|
13
13
|
// Mock the translation hook with distinct strings
|
|
14
|
-
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
|
|
14
|
+
jest.mock('cozy-ui/transpiled/react/providers/I18n', () => ({
|
|
15
15
|
useI18n: (): {
|
|
16
16
|
t: jest.Mock
|
|
17
17
|
} => ({ t: jest.fn().mockImplementation(key => key as string) })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import { formatLocallyDistanceToNow } from 'cozy-ui/transpiled/react/I18n/format';
|
|
2
|
+
import { formatLocallyDistanceToNow } from 'cozy-ui/transpiled/react/providers/I18n/format';
|
|
3
3
|
import { isDisconnected } from '../../helpers/konnectors';
|
|
4
4
|
import { getLastSuccessDate } from '../../helpers/triggers';
|
|
5
5
|
var DEFAULT_TIME = 300000; // To milliseconds (5 minutes)
|
|
@@ -15,7 +15,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
15
15
|
|
|
16
16
|
import PropTypes from 'prop-types';
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import { extend } from 'cozy-ui/transpiled/react/I18n';
|
|
18
|
+
import { extend } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
19
19
|
import { getDisplayName } from './utils';
|
|
20
20
|
/**
|
|
21
21
|
* HOC which ensures that a component get extended I18n with locales data from
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import I18n from 'cozy-ui/transpiled/react/I18n';
|
|
2
|
-
import withLocales from 'cozy-ui/transpiled/react/I18n/withLocales';
|
|
1
|
+
import I18n from 'cozy-ui/transpiled/react/providers/I18n';
|
|
2
|
+
import withLocales from 'cozy-ui/transpiled/react/providers/I18n/withLocales';
|
|
3
3
|
|
|
4
4
|
var dictRequire = function dictRequire(lang) {
|
|
5
5
|
return require("../../locales/".concat(lang, ".json"));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
4
3
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
5
4
|
import Infos from 'cozy-ui/transpiled/react/deprecated/Infos';
|
|
5
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
6
6
|
import KonnectorUpdateLinker from '../KonnectorUpdateLinker';
|
|
7
7
|
/**
|
|
8
8
|
* Warns the user that a new version is available for the given konnector.
|
|
@@ -4,8 +4,8 @@ var _excluded = ["children"];
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useClient } from 'cozy-client';
|
|
7
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
8
7
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
8
|
+
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
9
9
|
import { getErrorLocale } from '../../helpers/konnectors';
|
|
10
10
|
import Markdown from '../Markdown';
|
|
11
11
|
import withKonnectorLocales from '../hoc/withKonnectorLocales';
|