cozy-harvest-lib 13.9.2 → 13.9.4
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
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [13.9.4](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@13.9.3...cozy-harvest-lib@13.9.4) (2023-03-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **harvest:** Display backdrop in a portal ([54d2e6e](https://github.com/cozy/cozy-libs/commit/54d2e6e1789baf6c83ccd4a70b0dc377e79b44dd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [13.9.3](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@13.9.2...cozy-harvest-lib@13.9.3) (2023-03-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package cozy-harvest-lib
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [13.9.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@13.9.1...cozy-harvest-lib@13.9.2) (2023-03-21)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package cozy-harvest-lib
|
|
@@ -30,7 +30,6 @@ import { Media, Img, Bd } from 'cozy-ui/transpiled/react/Media';
|
|
|
30
30
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
31
31
|
import AccountFields from './AccountFields';
|
|
32
32
|
import CannotConnectModal from './CannotConnectModal';
|
|
33
|
-
import ConnectionBackdrop from './ConnectionBackdrop';
|
|
34
33
|
import ReadOnlyIdentifier from './ReadOnlyIdentifier';
|
|
35
34
|
import fieldHelpers, { getEncryptedFieldName, SECRET } from '../../helpers/fields';
|
|
36
35
|
import { KonnectorJobError } from '../../helpers/konnectors';
|
|
@@ -391,8 +390,6 @@ export var AccountForm = /*#__PURE__*/function (_PureComponent) {
|
|
|
391
390
|
return _this3.handleSubmit(values, form);
|
|
392
391
|
},
|
|
393
392
|
"data-testid": "submit-btn"
|
|
394
|
-
}), submitting && flag('harvest.inappconnectors.enabled') && /*#__PURE__*/React.createElement(ConnectionBackdrop, {
|
|
395
|
-
name: name
|
|
396
393
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Media, {
|
|
397
394
|
align: "top"
|
|
398
395
|
}, /*#__PURE__*/React.createElement(Img, {
|
|
@@ -16,6 +16,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
16
16
|
|
|
17
17
|
import PropTypes from 'prop-types';
|
|
18
18
|
import React, { Component } from 'react';
|
|
19
|
+
import { createPortal } from 'react-dom';
|
|
19
20
|
import { withClient } from 'cozy-client';
|
|
20
21
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
21
22
|
import ConnectionBackdrop from './AccountForm/ConnectionBackdrop';
|
|
@@ -203,9 +204,9 @@ export var FlowProvider = /*#__PURE__*/function (_Component) {
|
|
|
203
204
|
flow: flow,
|
|
204
205
|
dismissAction: this.dismissTwoFAModal,
|
|
205
206
|
into: "coz-harvest-modal-place"
|
|
206
|
-
}), showConnectionBackdrop && /*#__PURE__*/React.createElement(ConnectionBackdrop, {
|
|
207
|
+
}), showConnectionBackdrop && /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(ConnectionBackdrop, {
|
|
207
208
|
name: flow.konnector.name
|
|
208
|
-
}));
|
|
209
|
+
}), document.body));
|
|
209
210
|
}
|
|
210
211
|
}]);
|
|
211
212
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-harvest-lib",
|
|
3
|
-
"version": "13.9.
|
|
3
|
+
"version": "13.9.4",
|
|
4
4
|
"description": "Provides logic, modules and components for Cozy's harvest applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@cozy/minilog": "^1.0.0",
|
|
31
31
|
"@sentry/browser": "^6.0.1",
|
|
32
32
|
"cozy-bi-auth": "0.0.25",
|
|
33
|
-
"cozy-doctypes": "^1.88.
|
|
33
|
+
"cozy-doctypes": "^1.88.3",
|
|
34
34
|
"cozy-logger": "^1.10.0",
|
|
35
35
|
"date-fns": "^1.30.1",
|
|
36
36
|
"final-form": "^4.18.5",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"react-router-dom": ">=4.3.1"
|
|
91
91
|
},
|
|
92
92
|
"sideEffects": false,
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "c2ee289a2f127ba69315b13665162bbfd2dd7ffd"
|
|
94
94
|
}
|
|
@@ -16,7 +16,6 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
|
16
16
|
|
|
17
17
|
import AccountFields from './AccountFields'
|
|
18
18
|
import CannotConnectModal from './CannotConnectModal'
|
|
19
|
-
import ConnectionBackdrop from './ConnectionBackdrop'
|
|
20
19
|
import ReadOnlyIdentifier from './ReadOnlyIdentifier'
|
|
21
20
|
import fieldHelpers, {
|
|
22
21
|
getEncryptedFieldName,
|
|
@@ -358,9 +357,6 @@ export class AccountForm extends PureComponent {
|
|
|
358
357
|
data-testid="submit-btn"
|
|
359
358
|
/>
|
|
360
359
|
)}
|
|
361
|
-
{submitting && flag('harvest.inappconnectors.enabled') && (
|
|
362
|
-
<ConnectionBackdrop name={name} />
|
|
363
|
-
)}
|
|
364
360
|
</>
|
|
365
361
|
) : (
|
|
366
362
|
<>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React, { Component } from 'react'
|
|
3
|
+
import { createPortal } from 'react-dom'
|
|
3
4
|
|
|
4
5
|
import { withClient } from 'cozy-client'
|
|
5
6
|
import { translate } from 'cozy-ui/transpiled/react/I18n'
|
|
@@ -173,9 +174,11 @@ export class FlowProvider extends Component {
|
|
|
173
174
|
/>
|
|
174
175
|
)}
|
|
175
176
|
|
|
176
|
-
{showConnectionBackdrop &&
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
{showConnectionBackdrop &&
|
|
178
|
+
createPortal(
|
|
179
|
+
<ConnectionBackdrop name={flow.konnector.name} />,
|
|
180
|
+
document.body
|
|
181
|
+
)}
|
|
179
182
|
</>
|
|
180
183
|
)
|
|
181
184
|
}
|