cozy-harvest-lib 14.2.2 → 15.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/components/AccountForm/ReadOnlyIdentifier.js +1 -1
- package/dist/components/AccountForm/__snapshots__/index.spec.jsx.snap +1 -1
- package/dist/components/AccountForm/index.js +1 -1
- package/dist/components/AccountModal.js +2 -2
- 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/__snapshots__/AccountsListItem.spec.jsx.snap +2 -2
- package/dist/components/DeleteAccountButton.js +1 -1
- package/dist/components/DisconnectedAccountModal.js +1 -1
- package/dist/components/KonnectorAccounts.js +2 -2
- package/dist/components/KonnectorBlock.js +5 -5
- package/dist/components/KonnectorConfiguration/ConfigurationTab/BiContractActivationWindow.js +2 -2
- package/dist/components/KonnectorConfiguration/ConfigurationTab/ContractItem.js +3 -3
- package/dist/components/KonnectorConfiguration/ConfigurationTab/EditContract.js +3 -3
- package/dist/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.js +3 -3
- package/dist/components/KonnectorConfiguration/ConfigurationTab/index.js +5 -5
- package/dist/components/KonnectorConfiguration/DataTab/index.js +1 -1
- package/dist/components/KonnectorConfiguration/KonnectorAccountTabs.js +1 -1
- package/dist/components/KonnectorConfiguration/Success/BanksLink.js +1 -1
- package/dist/components/KonnectorConfiguration/Success/DriveLink.js +1 -1
- package/dist/components/KonnectorModal.js +2 -2
- package/dist/components/KonnectorModalHeader.js +1 -1
- package/dist/components/KonnectorSuccess.js +1 -1
- package/dist/components/KonnectorSuggestionModal/DataTypes.js +1 -1
- package/dist/components/KonnectorSuggestionModal/index.js +1 -1
- package/dist/components/KonnectorUpdateLinker.js +1 -1
- package/dist/components/OAuthForm.js +7 -3
- package/dist/components/OAuthForm.spec.js +13 -6
- package/dist/components/RedirectToAccountFormButton.js +1 -1
- package/dist/components/Routes/RoutesV6.js +1 -1
- package/dist/components/Routes.js +1 -1
- package/dist/components/TriggerManager.js +1 -1
- package/dist/components/TriggerManager.spec.js +36 -19
- package/dist/components/TwoFAModal.js +1 -1
- package/dist/components/VaultCiphersList/CiphersListItem.js +2 -2
- package/dist/components/VaultCiphersList/OtherAccountListItem.js +1 -1
- package/dist/components/VaultCiphersList/VaultCiphersList.js +1 -1
- package/dist/components/__snapshots__/AccountModal.spec.jsx.snap +1 -1
- package/dist/components/__snapshots__/KonnectorAccounts.spec.jsx.snap +1 -1
- package/dist/components/__snapshots__/OAuthForm.spec.js.snap +7 -7
- package/dist/components/cards/AppLinkCard.js +1 -1
- package/dist/components/cards/ConnectCard.js +1 -1
- package/dist/components/cards/InformationsCard.js +9 -9
- package/dist/components/cards/LaunchTriggerAlertMenu.js +1 -1
- package/dist/components/cards/LaunchTriggerCard.js +2 -2
- package/dist/components/cards/__snapshots__/LaunchTriggerCard.spec.jsx.snap +2 -2
- package/dist/components/infos/KonnectorUpdateInfos.js +1 -1
- package/dist/components/infos/TriggerErrorInfo.js +1 -1
- package/dist/datacards/FileDataCard.js +4 -4
- package/dist/datacards/GeoDataCard.js +1 -1
- package/dist/datacards/ViewerModal.js +1 -1
- package/package.json +6 -6
- package/src/components/AccountForm/ReadOnlyIdentifier.jsx +1 -1
- package/src/components/AccountForm/__snapshots__/index.spec.jsx.snap +1 -1
- package/src/components/AccountForm/index.jsx +1 -1
- package/src/components/AccountModal.jsx +2 -2
- 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/__snapshots__/AccountsListItem.spec.jsx.snap +2 -2
- package/src/components/DeleteAccountButton.jsx +1 -1
- package/src/components/DisconnectedAccountModal.jsx +1 -1
- package/src/components/KonnectorAccounts.jsx +2 -2
- package/src/components/KonnectorBlock.jsx +5 -5
- package/src/components/KonnectorConfiguration/ConfigurationTab/BiContractActivationWindow.jsx +2 -2
- package/src/components/KonnectorConfiguration/ConfigurationTab/ContractItem.jsx +3 -3
- package/src/components/KonnectorConfiguration/ConfigurationTab/EditContract.jsx +3 -3
- package/src/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.jsx +3 -3
- package/src/components/KonnectorConfiguration/ConfigurationTab/index.jsx +5 -5
- package/src/components/KonnectorConfiguration/DataTab/index.jsx +1 -1
- package/src/components/KonnectorConfiguration/KonnectorAccountTabs.jsx +1 -1
- package/src/components/KonnectorConfiguration/Success/BanksLink.jsx +1 -1
- package/src/components/KonnectorConfiguration/Success/DriveLink.jsx +1 -1
- package/src/components/KonnectorModal.jsx +2 -2
- package/src/components/KonnectorModalHeader.jsx +1 -1
- package/src/components/KonnectorSuccess.jsx +1 -1
- package/src/components/KonnectorSuggestionModal/DataTypes.jsx +1 -1
- package/src/components/KonnectorSuggestionModal/index.jsx +1 -1
- package/src/components/KonnectorUpdateLinker.jsx +1 -1
- package/src/components/OAuthForm.jsx +5 -2
- package/src/components/OAuthForm.spec.js +14 -7
- package/src/components/RedirectToAccountFormButton.jsx +1 -1
- package/src/components/Routes/RoutesV6.jsx +15 -17
- package/src/components/Routes.jsx +1 -1
- package/src/components/TriggerManager.jsx +1 -1
- package/src/components/TriggerManager.spec.jsx +21 -5
- package/src/components/TwoFAModal.jsx +1 -1
- package/src/components/VaultCiphersList/CiphersListItem.jsx +2 -2
- package/src/components/VaultCiphersList/OtherAccountListItem.jsx +1 -1
- package/src/components/VaultCiphersList/VaultCiphersList.jsx +1 -1
- package/src/components/__snapshots__/AccountModal.spec.jsx.snap +1 -1
- package/src/components/__snapshots__/KonnectorAccounts.spec.jsx.snap +1 -1
- package/src/components/__snapshots__/OAuthForm.spec.js.snap +7 -7
- package/src/components/cards/AppLinkCard.jsx +1 -1
- package/src/components/cards/ConnectCard.tsx +1 -1
- package/src/components/cards/InformationsCard.tsx +10 -9
- package/src/components/cards/LaunchTriggerAlertMenu.jsx +3 -1
- package/src/components/cards/LaunchTriggerCard.jsx +2 -2
- package/src/components/cards/__snapshots__/LaunchTriggerCard.spec.jsx.snap +2 -2
- package/src/components/infos/KonnectorUpdateInfos.jsx +1 -1
- package/src/components/infos/TriggerErrorInfo.jsx +1 -1
- package/src/datacards/FileDataCard.jsx +4 -4
- package/src/datacards/GeoDataCard.jsx +1 -1
- package/src/datacards/ViewerModal.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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
|
+
## [15.0.1](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@15.0.0...cozy-harvest-lib@15.0.1) (2023-07-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Display success dialog on powens account creation success ([ac25214](https://github.com/cozy/cozy-libs/commit/ac252145df6e1b567a9ed7705d2adf84f6152713))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [15.0.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@14.2.2...cozy-harvest-lib@15.0.0) (2023-06-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **harvest:** Update cozy-ui & cozy-keys-lib ([0ba48ed](https://github.com/cozy/cozy-libs/commit/0ba48ed4915e4449d081a42b3a564fe3807a9362))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* **harvest:** you must have `cozy-ui >= 88.1.1` &
|
|
28
|
+
`cozy-keys-lib >= 5.0.0`
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
## [14.2.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@14.2.1...cozy-harvest-lib@14.2.2) (2023-06-30)
|
|
7
35
|
|
|
8
36
|
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
9
|
import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect';
|
|
10
|
-
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/Media';
|
|
10
|
+
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media';
|
|
11
11
|
import KonnectorIcon from '../KonnectorIcon';
|
|
12
12
|
|
|
13
13
|
var ReadOnlyIdentifier = function ReadOnlyIdentifier(props) {
|
|
@@ -26,8 +26,8 @@ import { Dialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
|
26
26
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
27
27
|
import Info from 'cozy-ui/transpiled/react/Icons/Info';
|
|
28
28
|
import Link from 'cozy-ui/transpiled/react/Link';
|
|
29
|
-
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/Media';
|
|
30
29
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
30
|
+
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media';
|
|
31
31
|
import AccountFields from './AccountFields';
|
|
32
32
|
import CannotConnectModal from './CannotConnectModal';
|
|
33
33
|
import ReadOnlyIdentifier from './ReadOnlyIdentifier';
|
|
@@ -18,11 +18,11 @@ import PropTypes from 'prop-types';
|
|
|
18
18
|
import React, { Component } from 'react';
|
|
19
19
|
import { models, withClient } from 'cozy-client';
|
|
20
20
|
import flag from 'cozy-flags';
|
|
21
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
22
21
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
23
|
-
import Infos from 'cozy-ui/transpiled/react/Infos';
|
|
24
22
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
25
23
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
24
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
25
|
+
import Infos from 'cozy-ui/transpiled/react/deprecated/Infos';
|
|
26
26
|
import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints';
|
|
27
27
|
import AccountModalHeader from './AccountModalWithoutTabs/AccountModalHeader';
|
|
28
28
|
import AccountSelectBox from './AccountSelectBox/AccountSelectBox';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useClient } from 'cozy-client';
|
|
3
3
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
4
4
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
5
|
-
import Infos from 'cozy-ui/transpiled/react/Infos';
|
|
5
|
+
import Infos from 'cozy-ui/transpiled/react/deprecated/Infos';
|
|
6
6
|
import { loadSelectedAccountId } from '../../helpers/accounts';
|
|
7
7
|
import withLocales from '../hoc/withLocales';
|
|
8
8
|
|
|
@@ -5,11 +5,11 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { useClient } from 'cozy-client';
|
|
6
6
|
import flag from 'cozy-flags';
|
|
7
7
|
import { useWebviewIntent } from 'cozy-intent';
|
|
8
|
-
import { ActionMenuItem } from 'cozy-ui/transpiled/react/ActionMenu';
|
|
9
8
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
10
9
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
11
10
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
12
11
|
import SyncIcon from 'cozy-ui/transpiled/react/Icons/Sync';
|
|
12
|
+
import { ActionMenuItem } from 'cozy-ui/transpiled/react/deprecated/ActionMenu';
|
|
13
13
|
import { intentsApiProptype } from '../../helpers/proptypes';
|
|
14
14
|
import { OAUTH_SERVICE_OK, openOAuthWindow } from '../OAuthService';
|
|
15
15
|
import useOAuthExtraParams from '../hooks/useOAuthExtraParams';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
3
2
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
3
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
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
|
|
@@ -10,12 +10,12 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
10
10
|
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
14
13
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
15
14
|
import { DialogContent } from 'cozy-ui/transpiled/react/Dialog';
|
|
16
15
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
17
16
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
18
17
|
import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus';
|
|
18
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
19
19
|
import AccountsListItem from './AccountsListItem';
|
|
20
20
|
export var AccountsList = /*#__PURE__*/function (_React$PureComponent) {
|
|
21
21
|
_inherits(AccountsList, _React$PureComponent);
|
|
@@ -15,7 +15,7 @@ exports[`AccountsListItem should not render the caption since accountLogin is un
|
|
|
15
15
|
account-1
|
|
16
16
|
</ForwardRef>
|
|
17
17
|
</div>
|
|
18
|
-
<
|
|
18
|
+
<ForwardRef
|
|
19
19
|
konnector={
|
|
20
20
|
Object {
|
|
21
21
|
"name": "test-konnector",
|
|
@@ -50,7 +50,7 @@ exports[`AccountsListItem should render the caption since accountName !== login
|
|
|
50
50
|
mylogin
|
|
51
51
|
</ForwardRef>
|
|
52
52
|
</div>
|
|
53
|
-
<
|
|
53
|
+
<ForwardRef
|
|
54
54
|
konnector={
|
|
55
55
|
Object {
|
|
56
56
|
"name": "test-konnector",
|
|
@@ -22,8 +22,8 @@ import omit from 'lodash/omit';
|
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import React, { Component } from 'react';
|
|
24
24
|
import { withClient } from 'cozy-client';
|
|
25
|
-
import { Button } from 'cozy-ui/transpiled/react/Button';
|
|
26
25
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
26
|
+
import { Button } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
27
27
|
import { i18nContextTypes } from './hoc/withLocales';
|
|
28
28
|
import { deleteAccount } from '../connections/accounts';
|
|
29
29
|
export var DeleteAccountButton = /*#__PURE__*/function (_Component) {
|
|
@@ -7,8 +7,8 @@ import Card from 'cozy-ui/transpiled/react/Card';
|
|
|
7
7
|
import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
8
8
|
import Dialog from 'cozy-ui/transpiled/react/Dialog';
|
|
9
9
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
10
|
+
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
10
11
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
11
|
-
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
12
12
|
import { Tab, Tabs } from 'cozy-ui/transpiled/react/MuiTabs';
|
|
13
13
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
14
14
|
import { Contracts } from './KonnectorConfiguration/ConfigurationTab/Contracts';
|
|
@@ -17,12 +17,12 @@ import get from 'lodash/get';
|
|
|
17
17
|
import PropTypes from 'prop-types';
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { withClient } from 'cozy-client';
|
|
20
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
21
20
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
22
21
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
23
|
-
import Infos from 'cozy-ui/transpiled/react/Infos';
|
|
24
22
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
25
23
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
24
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
25
|
+
import Infos from 'cozy-ui/transpiled/react/deprecated/Infos';
|
|
26
26
|
import KonnectorModalHeader from './KonnectorModalHeader';
|
|
27
27
|
import withAdaptiveRouter from './hoc/withRouter';
|
|
28
28
|
import { fetchAccountsFromTriggers } from '../connections/accounts';
|
|
@@ -8,16 +8,16 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
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
|
+
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
11
12
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
12
13
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
13
14
|
import GlobeIcon from 'cozy-ui/transpiled/react/Icons/Globe';
|
|
14
15
|
import RightIcon from 'cozy-ui/transpiled/react/Icons/Right';
|
|
16
|
+
import List from 'cozy-ui/transpiled/react/List';
|
|
17
|
+
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
18
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
19
|
+
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryAction';
|
|
15
20
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
16
|
-
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
17
|
-
import List from 'cozy-ui/transpiled/react/MuiCozyTheme/List';
|
|
18
|
-
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
19
|
-
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
20
|
-
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemSecondaryAction';
|
|
21
21
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
22
22
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
23
23
|
import Markdown from './Markdown';
|
package/dist/components/KonnectorConfiguration/ConfigurationTab/BiContractActivationWindow.js
CHANGED
|
@@ -7,8 +7,8 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import React, { useState, useEffect } from 'react';
|
|
8
8
|
import { useClient } from 'cozy-client';
|
|
9
9
|
import { useWebviewIntent } from 'cozy-intent';
|
|
10
|
-
import Button from 'cozy-ui/transpiled/react/
|
|
11
|
-
import ListItem from 'cozy-ui/transpiled/react/
|
|
10
|
+
import Button from 'cozy-ui/transpiled/react/Button';
|
|
11
|
+
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
12
12
|
import { intentsApiProptype, innerAccountModalOverridesProptype } from '../../../helpers/proptypes';
|
|
13
13
|
import { findKonnectorPolicy } from '../../../konnector-policies';
|
|
14
14
|
import logger from '../../../logger';
|
|
@@ -4,10 +4,10 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
5
5
|
import RightIcon from 'cozy-ui/transpiled/react/Icons/Right';
|
|
6
6
|
import WalletIcon from 'cozy-ui/transpiled/react/Icons/Wallet';
|
|
7
|
+
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
8
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
9
|
+
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryAction';
|
|
7
10
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
8
|
-
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
9
|
-
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
10
|
-
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemSecondaryAction';
|
|
11
11
|
import ContractItemSecondaryText from './ContractItemSecondaryText';
|
|
12
12
|
import EditContract from './EditContract';
|
|
13
13
|
import { getPrimaryText, isDisabled } from './helpers';
|
|
@@ -5,19 +5,19 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import React, { useState, forwardRef } from 'react';
|
|
7
7
|
import { useClient, isQueryLoading, hasQueryBeenLoaded, useQuery } from 'cozy-client';
|
|
8
|
-
import Alerter from 'cozy-ui/transpiled/react/Alerter';
|
|
9
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
10
8
|
import BaseContactPicker from 'cozy-ui/transpiled/react/ContactPicker';
|
|
11
9
|
import { DialogCloseButton, DialogBackButton, ConfirmDialog, useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
12
10
|
import Dialog, { DialogContent, DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
11
|
+
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
13
12
|
import Field from 'cozy-ui/transpiled/react/Field';
|
|
14
13
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
15
14
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
16
15
|
import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash';
|
|
17
16
|
import CollectionField from 'cozy-ui/transpiled/react/Labs/CollectionField';
|
|
18
|
-
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
19
17
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
20
18
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
19
|
+
import Alerter from 'cozy-ui/transpiled/react/deprecated/Alerter';
|
|
20
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
21
21
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
22
22
|
import { withStyles } from 'cozy-ui/transpiled/react/styles';
|
|
23
23
|
import SyncContractSwitch from './SyncContractSwitch';
|
|
@@ -15,11 +15,11 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
15
15
|
import compose from 'lodash/flowRight';
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { withClient, queryConnect, models } from 'cozy-client';
|
|
18
|
-
import Alerter from 'cozy-ui/transpiled/react/Alerter';
|
|
19
18
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
20
|
-
import
|
|
21
|
-
import Switch from 'cozy-ui/transpiled/react/MuiCozyTheme/Switch';
|
|
19
|
+
import Switch from 'cozy-ui/transpiled/react/Switch';
|
|
22
20
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
21
|
+
import Alerter from 'cozy-ui/transpiled/react/deprecated/Alerter';
|
|
22
|
+
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media';
|
|
23
23
|
import { createAccountQuerySpec } from '../../../connections/accounts';
|
|
24
24
|
import { findKonnectorPolicy } from '../../../konnector-policies';
|
|
25
25
|
import { withTracker } from '../../hoc/tracking';
|
|
@@ -8,20 +8,20 @@ import React, { useContext, useState } from 'react';
|
|
|
8
8
|
import { useClient } from 'cozy-client';
|
|
9
9
|
import { Account } from 'cozy-doctypes';
|
|
10
10
|
import { useVaultClient, useVaultUnlockContext } from 'cozy-keys-lib';
|
|
11
|
-
import Alerter from 'cozy-ui/transpiled/react/Alerter';
|
|
12
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
13
11
|
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
14
12
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
15
13
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
16
14
|
import KeyIcon from 'cozy-ui/transpiled/react/Icons/Key';
|
|
17
15
|
import RightIcon from 'cozy-ui/transpiled/react/Icons/Right';
|
|
18
16
|
import UnlinkIcon from 'cozy-ui/transpiled/react/Icons/Unlink';
|
|
17
|
+
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
18
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
19
|
+
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryAction';
|
|
19
20
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
20
|
-
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
21
|
-
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
22
|
-
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemSecondaryAction';
|
|
23
21
|
import NavigationList, { NavigationListSection, NavigationListHeader } from 'cozy-ui/transpiled/react/NavigationList';
|
|
24
22
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
23
|
+
import Alerter from 'cozy-ui/transpiled/react/deprecated/Alerter';
|
|
24
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
25
25
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
26
26
|
import palette from 'cozy-ui/transpiled/react/palette'; // @ts-ignore peerDep
|
|
27
27
|
|
|
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { withClient } from 'cozy-client';
|
|
7
7
|
import flag from 'cozy-flags';
|
|
8
|
-
import Divider from 'cozy-ui/transpiled/react/
|
|
8
|
+
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
9
9
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
10
10
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
11
11
|
import appLinksProps from '../../../components/KonnectorConfiguration/DataTab/appLinksProps';
|
|
@@ -9,8 +9,8 @@ import { useClient } from 'cozy-client';
|
|
|
9
9
|
import flag from 'cozy-flags';
|
|
10
10
|
import { useWebviewIntent } from 'cozy-intent';
|
|
11
11
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
12
|
+
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
12
13
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
13
|
-
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
14
14
|
import { Tab as UITab, Tabs } from 'cozy-ui/transpiled/react/MuiTabs';
|
|
15
15
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
16
16
|
import { makeStyles } from 'cozy-ui/transpiled/react/styles';
|
|
@@ -2,8 +2,8 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { withClient } from 'cozy-client';
|
|
4
4
|
import AppLinker from 'cozy-ui/transpiled/react/AppLinker';
|
|
5
|
-
import { ButtonLink } from 'cozy-ui/transpiled/react/Button';
|
|
6
5
|
import OpenwithIcon from 'cozy-ui/transpiled/react/Icons/Openwith';
|
|
6
|
+
import { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
7
7
|
import withLocales from '../../hoc/withLocales';
|
|
8
8
|
import useAppLinkWithStoreFallback from '../../hooks/useAppLinkWithStoreFallback';
|
|
9
9
|
|
|
@@ -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 { ButtonLink } from 'cozy-ui/transpiled/react/Button';
|
|
6
5
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
7
6
|
import OpenwithIcon from 'cozy-ui/transpiled/react/Icons/Openwith';
|
|
7
|
+
import { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
8
8
|
import useAppLinkWithStoreFallback from '../../hooks/useAppLinkWithStoreFallback';
|
|
9
9
|
var DriveLink = /*#__PURE__*/memo(function (_ref) {
|
|
10
10
|
var folderId = _ref.folderId,
|
|
@@ -23,16 +23,16 @@ import PropTypes from 'prop-types';
|
|
|
23
23
|
import React, { PureComponent } from 'react';
|
|
24
24
|
import { withClient } from 'cozy-client';
|
|
25
25
|
import AppIcon from 'cozy-ui/transpiled/react/AppIcon';
|
|
26
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
27
26
|
import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
28
27
|
import Dialog, { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
29
28
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
30
29
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
31
30
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
32
31
|
import CrossIcon from 'cozy-ui/transpiled/react/Icons/Cross';
|
|
33
|
-
import Infos from 'cozy-ui/transpiled/react/Infos';
|
|
34
32
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
35
33
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
34
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
35
|
+
import Infos from 'cozy-ui/transpiled/react/deprecated/Infos';
|
|
36
36
|
import AccountSelectBox from './AccountSelectBox/AccountSelectBox';
|
|
37
37
|
import AccountsList from './AccountsList/AccountsList';
|
|
38
38
|
import DataTab from './KonnectorConfiguration/DataTab';
|
|
@@ -6,8 +6,8 @@ import cx from 'classnames';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
9
|
-
import { Media, Img } from 'cozy-ui/transpiled/react/Media';
|
|
10
9
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
10
|
+
import { Media, Img } from 'cozy-ui/transpiled/react/deprecated/Media';
|
|
11
11
|
import { useDialogContext } from './DialogContext';
|
|
12
12
|
import KonnectorIcon from './KonnectorIcon';
|
|
13
13
|
var resetFontStyles = {
|
|
@@ -13,10 +13,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
import get from 'lodash/get';
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import React, { Component } from 'react';
|
|
16
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
17
16
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
18
17
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
19
18
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
19
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
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 CompositeRow from 'cozy-ui/transpiled/react/CompositeRow';
|
|
4
3
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
5
4
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
5
|
+
import CompositeRow from 'cozy-ui/transpiled/react/deprecated/CompositeRow';
|
|
6
6
|
|
|
7
7
|
var activityIcon = function activityIcon(props) {
|
|
8
8
|
return /*#__PURE__*/React.createElement("svg", props, /*#__PURE__*/React.createElement("g", {
|
|
@@ -11,12 +11,12 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import React, { useState } from 'react';
|
|
12
12
|
import { withClient } from 'cozy-client';
|
|
13
13
|
import AppLinker, { generateWebLink } from 'cozy-ui/transpiled/react/AppLinker';
|
|
14
|
-
import { Button, ButtonLink } from 'cozy-ui/transpiled/react/Button';
|
|
15
14
|
import { DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
16
15
|
import Dialog, { DialogActions, DialogContent } from 'cozy-ui/transpiled/react/Dialog';
|
|
17
16
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
18
17
|
import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme';
|
|
19
18
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
19
|
+
import { Button, ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
20
20
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
21
21
|
import DataTypes from './DataTypes';
|
|
22
22
|
import Illustration from './Illustration';
|
|
@@ -3,8 +3,8 @@ import React, { memo } from 'react';
|
|
|
3
3
|
import { useQuery } from 'cozy-client';
|
|
4
4
|
import { Application } from 'cozy-doctypes';
|
|
5
5
|
import AppLinker from 'cozy-ui/transpiled/react/AppLinker';
|
|
6
|
-
import { ButtonLink } from 'cozy-ui/transpiled/react/Button';
|
|
7
6
|
import EyeIcon from 'cozy-ui/transpiled/react/Icons/Eye';
|
|
7
|
+
import { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
8
8
|
import { appsConn } from '../connections/apps';
|
|
9
9
|
|
|
10
10
|
var KonnectorUpdateButton = function KonnectorUpdateButton(_ref) {
|
|
@@ -4,10 +4,11 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import compose from 'lodash/flowRight';
|
|
5
5
|
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import React, { useCallback, useEffect, useState } from 'react';
|
|
7
|
+
import React, { useCallback, useContext, useEffect, useState } from 'react';
|
|
8
8
|
import { useClient } from 'cozy-client';
|
|
9
9
|
import flag from 'cozy-flags';
|
|
10
10
|
import { useWebviewIntent } from 'cozy-intent';
|
|
11
|
+
import { MountPointContext } from './MountPointContext';
|
|
11
12
|
import { OAUTH_SERVICE_ERROR, OAUTH_SERVICE_OK, openOAuthWindow } from './OAuthService';
|
|
12
13
|
import { ConnectCard } from './cards/ConnectCard';
|
|
13
14
|
import withLocales from './hoc/withLocales';
|
|
@@ -37,6 +38,9 @@ export var OAuthForm = function OAuthForm(props) {
|
|
|
37
38
|
var flowState = useFlowState(flow);
|
|
38
39
|
var webviewIntent = useWebviewIntent();
|
|
39
40
|
|
|
41
|
+
var _useContext = useContext(MountPointContext),
|
|
42
|
+
replaceHistory = _useContext.replaceHistory;
|
|
43
|
+
|
|
40
44
|
var _useOAuthExtraParams = useOAuthExtraParams({
|
|
41
45
|
account: account,
|
|
42
46
|
client: client,
|
|
@@ -94,7 +98,7 @@ export var OAuthForm = function OAuthForm(props) {
|
|
|
94
98
|
konnectorPolicy = findKonnectorPolicy(konnector);
|
|
95
99
|
|
|
96
100
|
if (konnectorPolicy.isBIWebView && flag('harvest.bi.fullwebhooks')) {
|
|
97
|
-
|
|
101
|
+
replaceHistory("/accounts/bi/success");
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
accountId = response.key;
|
|
@@ -109,7 +113,7 @@ export var OAuthForm = function OAuthForm(props) {
|
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
115
|
}, _callee);
|
|
112
|
-
})), [account, client, extraParams, flow, intentsApi, konnector, onSuccess, reconnect, webviewIntent]);
|
|
116
|
+
})), [account, client, extraParams, flow, intentsApi, konnector, onSuccess, reconnect, replaceHistory, webviewIntent]);
|
|
113
117
|
|
|
114
118
|
var handleLoginSuccess = function handleLoginSuccess() {
|
|
115
119
|
setShowOAuthWindow(false);
|
|
@@ -6,6 +6,7 @@ import { act, render } from '@testing-library/react';
|
|
|
6
6
|
import { OAuthForm } from 'components/OAuthForm';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import CozyClient from 'cozy-client';
|
|
9
|
+
import { MountPointContext } from './MountPointContext';
|
|
9
10
|
import AppLike from '../../test/AppLike';
|
|
10
11
|
import { KonnectorJobError } from '../helpers/konnectors';
|
|
11
12
|
import { findKonnectorPolicy } from '../konnector-policies';
|
|
@@ -50,6 +51,7 @@ describe('OAuthForm', function () {
|
|
|
50
51
|
client,
|
|
51
52
|
konnector,
|
|
52
53
|
flow,
|
|
54
|
+
mountPointContextValue,
|
|
53
55
|
root,
|
|
54
56
|
_args = arguments;
|
|
55
57
|
|
|
@@ -71,31 +73,36 @@ describe('OAuthForm', function () {
|
|
|
71
73
|
konnector = {};
|
|
72
74
|
flow = new ConnectionFlow(client, null, konnector);
|
|
73
75
|
flow.getState = jest.fn().mockReturnValue(flowState);
|
|
74
|
-
|
|
76
|
+
mountPointContextValue = {
|
|
77
|
+
replaceHistory: jest.fn()
|
|
78
|
+
};
|
|
79
|
+
_context.next = 10;
|
|
75
80
|
return render( /*#__PURE__*/React.createElement(AppLike, {
|
|
76
81
|
client: client
|
|
82
|
+
}, /*#__PURE__*/React.createElement(MountPointContext.Provider, {
|
|
83
|
+
value: mountPointContextValue
|
|
77
84
|
}, /*#__PURE__*/React.createElement(OAuthForm, {
|
|
78
85
|
account: account,
|
|
79
86
|
flow: flow,
|
|
80
87
|
konnector: fixtures.konnector,
|
|
81
88
|
reconnect: reconnect,
|
|
82
89
|
t: t
|
|
83
|
-
})));
|
|
90
|
+
}))));
|
|
84
91
|
|
|
85
|
-
case
|
|
92
|
+
case 10:
|
|
86
93
|
root = _context.sent;
|
|
87
|
-
_context.next =
|
|
94
|
+
_context.next = 13;
|
|
88
95
|
return act(function () {
|
|
89
96
|
return new Promise(setImmediate);
|
|
90
97
|
});
|
|
91
98
|
|
|
92
|
-
case
|
|
99
|
+
case 13:
|
|
93
100
|
return _context.abrupt("return", {
|
|
94
101
|
root: root,
|
|
95
102
|
client: client
|
|
96
103
|
});
|
|
97
104
|
|
|
98
|
-
case
|
|
105
|
+
case 14:
|
|
99
106
|
case "end":
|
|
100
107
|
return _context.stop();
|
|
101
108
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext, useCallback } from 'react';
|
|
2
|
-
import Button from 'cozy-ui/transpiled/react/Button';
|
|
3
2
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
3
|
+
import Button from 'cozy-ui/transpiled/react/deprecated/Button';
|
|
4
4
|
import { MountPointContext } from './MountPointContext';
|
|
5
5
|
import { getAccountId } from '../helpers/triggers';
|
|
6
6
|
|
|
@@ -80,7 +80,7 @@ var RoutesV6 = function RoutesV6(_ref) {
|
|
|
80
80
|
accounts: accountsAndTriggers
|
|
81
81
|
});
|
|
82
82
|
})
|
|
83
|
-
}),
|
|
83
|
+
}), /*#__PURE__*/React.createElement(Route, {
|
|
84
84
|
path: "accounts/:accountId/success",
|
|
85
85
|
element: /*#__PURE__*/React.createElement(HarvestParamsWrapper, null, function (params) {
|
|
86
86
|
return /*#__PURE__*/React.createElement(KonnectorSuccess, {
|
|
@@ -2,11 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import flag from 'cozy-flags';
|
|
4
4
|
import { useVaultUnlockContext, VaultUnlockPlaceholder } from 'cozy-keys-lib';
|
|
5
|
-
import Alerter from 'cozy-ui/transpiled/react/Alerter';
|
|
6
5
|
import { DialogCloseButton, useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
7
6
|
import Dialog from 'cozy-ui/transpiled/react/Dialog';
|
|
8
7
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
9
8
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
9
|
+
import Alerter from 'cozy-ui/transpiled/react/deprecated/Alerter';
|
|
10
10
|
import { withStyles } from 'cozy-ui/transpiled/react/styles';
|
|
11
11
|
import { DatacardOptions } from './Datacards/DatacardOptionsContext';
|
|
12
12
|
import DialogContext from './DialogContext';
|
|
@@ -23,8 +23,8 @@ import { withClient } from 'cozy-client';
|
|
|
23
23
|
import { Account } from 'cozy-doctypes';
|
|
24
24
|
import { useVaultClient, CipherType, withVaultUnlockContext, VaultUnlockPlaceholder } from 'cozy-keys-lib';
|
|
25
25
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
26
|
-
import { ModalBackButton } from 'cozy-ui/transpiled/react/Modal';
|
|
27
26
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
27
|
+
import { ModalBackButton } from 'cozy-ui/transpiled/react/deprecated/Modal';
|
|
28
28
|
import AccountForm from './AccountForm';
|
|
29
29
|
import AccountsPaywall from './AccountsPaywall/AccountsPaywall';
|
|
30
30
|
import FlowProvider from './FlowProvider';
|