cozy-harvest-lib 9.7.0 → 9.7.3

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,33 @@
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
+ ## [9.7.3](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.7.2...cozy-harvest-lib@9.7.3) (2022-06-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Avoid React error message when not in BI webview mode ([413853d](https://github.com/cozy/cozy-libs/commit/413853da26b5d580f5454d7cf6c6069c3b2880b0))
12
+
13
+
14
+
15
+
16
+
17
+ ## [9.7.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.7.1...cozy-harvest-lib@9.7.2) (2022-06-07)
18
+
19
+ **Note:** Version bump only for package cozy-harvest-lib
20
+
21
+
22
+
23
+
24
+
25
+ ## [9.7.1](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.7.0...cozy-harvest-lib@9.7.1) (2022-06-03)
26
+
27
+ **Note:** Version bump only for package cozy-harvest-lib
28
+
29
+
30
+
31
+
32
+
6
33
  # [9.7.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.6.1...cozy-harvest-lib@9.7.0) (2022-06-01)
7
34
 
8
35
 
@@ -112,7 +112,7 @@ var BIContractActivationWindow = function BIContractActivationWindow(_ref) {
112
112
  handleLinkFetch();
113
113
  }
114
114
  }, [konnector, account, client, konnectorPolicy]);
115
- return konnectorPolicy.fetchContractSynchronizationUrl && /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(Button, {
115
+ return konnectorPolicy.fetchContractSynchronizationUrl ? /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(Button, {
116
116
  disabled: !initialUrl,
117
117
  onClick: function onClick() {
118
118
  return setWindowVisible(true);
@@ -125,7 +125,7 @@ var BIContractActivationWindow = function BIContractActivationWindow(_ref) {
125
125
  width: "800",
126
126
  height: "800",
127
127
  onClose: onPopupClosed
128
- })));
128
+ }))) : null;
129
129
  };
130
130
 
131
131
  BIContractActivationWindow.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-harvest-lib",
3
- "version": "9.7.0",
3
+ "version": "9.7.3",
4
4
  "description": "Provides logic, modules and components for Cozy's harvest applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -53,11 +53,11 @@
53
53
  "babel-plugin-inline-react-svg": "1.1.2",
54
54
  "babel-preset-cozy-app": "^2.0.2",
55
55
  "cozy-client": "27.17.0",
56
- "cozy-device-helper": "^2.1.0",
57
- "cozy-flags": "^2.8.7",
58
- "cozy-intent": "^2.1.0",
56
+ "cozy-device-helper": "^2.2.0",
57
+ "cozy-flags": "^2.9.0",
58
+ "cozy-intent": "^2.2.0",
59
59
  "cozy-keys-lib": "^4.1.9",
60
- "cozy-realtime": "^4.1.0",
60
+ "cozy-realtime": "^4.2.0",
61
61
  "cozy-ui": "60.6.0",
62
62
  "enzyme": "3.11.0",
63
63
  "enzyme-adapter-react-16": "1.15.6",
@@ -87,5 +87,5 @@
87
87
  "react-router-dom": "^5.0.1"
88
88
  },
89
89
  "sideEffects": false,
90
- "gitHead": "a505cba003091c4adc1f5a2c47cd9c05c7a1f939"
90
+ "gitHead": "0799b1fe4a2585784f81996457afa350482d4e35"
91
91
  }
@@ -47,7 +47,7 @@ const BIContractActivationWindow = ({ konnector, account, t }) => {
47
47
  }, [konnector, account, client, konnectorPolicy])
48
48
 
49
49
  return (
50
- konnectorPolicy.fetchContractSynchronizationUrl && (
50
+ konnectorPolicy.fetchContractSynchronizationUrl ? (
51
51
  <ListItem>
52
52
  <Button disabled={!initialUrl} onClick={() => setWindowVisible(true)}>
53
53
  {t('contracts.handle-synchronization')}
@@ -64,7 +64,7 @@ const BIContractActivationWindow = ({ konnector, account, t }) => {
64
64
  />
65
65
  ))}
66
66
  </ListItem>
67
- )
67
+ ) : null
68
68
  )
69
69
  }
70
70