cozy-harvest-lib 30.0.4 → 30.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
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
+ # 30.2.0 (2024-10-30)
7
+
8
+
9
+ ### Features
10
+
11
+ * Download file on mobile viewer on press ([3c38062](https://github.com/cozy/cozy-libs/commit/3c38062e2c83d5b8f7d0065323c18d45b5ce9564))
12
+
13
+
14
+
15
+
16
+
17
+ # 30.1.0 (2024-10-25)
18
+
19
+
20
+ ### Features
21
+
22
+ * **Viewer:** Replace Encrypted provider by cozy-ui one ([aa81d02](https://github.com/cozy/cozy-libs/commit/aa81d02f0a70de8044f704cbd895b1d54c9f38b8))
23
+
24
+
25
+
26
+
27
+
6
28
  ## 30.0.4 (2024-10-23)
7
29
 
8
30
  **Note:** Version bump only for package cozy-harvest-lib
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Switch, Route, Redirect } from 'react-router-dom';
3
+ import flag from 'cozy-flags';
3
4
  import AccountModal from '../AccountModal';
4
5
  import EditAccountModal from '../EditAccountModal';
5
6
  import HarvestModalRoot from '../HarvestModalRoot';
@@ -54,8 +55,8 @@ var RoutesV4 = function RoutesV4(_ref) {
54
55
  accountId: match.params.accountId,
55
56
  accountsAndTriggers: accountsAndTriggers,
56
57
  onDismiss: onDismiss,
57
- showNewAccountButton: !konnectorWithTriggers.clientSide,
58
- showAccountSelection: !konnectorWithTriggers.clientSide,
58
+ showNewAccountButton: flag('clisk.multi-accounts'),
59
+ showAccountSelection: flag('clisk.multi-accounts'),
59
60
  Component: DataTab
60
61
  });
61
62
  }
@@ -69,8 +70,8 @@ var RoutesV4 = function RoutesV4(_ref) {
69
70
  accountId: match.params.accountId,
70
71
  accountsAndTriggers: accountsAndTriggers,
71
72
  onDismiss: onDismiss,
72
- showNewAccountButton: !konnectorWithTriggers.clientSide,
73
- showAccountSelection: !konnectorWithTriggers.clientSide,
73
+ showNewAccountButton: flag('clisk.multi-accounts'),
74
+ showAccountSelection: flag('clisk.multi-accounts'),
74
75
  Component: ConfigurationTab
75
76
  });
76
77
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Routes, Route, Navigate, useParams } from 'react-router-dom';
3
+ import flag from 'cozy-flags';
3
4
  import { ViewerModal } from '../../datacards/ViewerModal';
4
5
  import AccountModal from '../AccountModal';
5
6
  import EditAccountModal from '../EditAccountModal';
@@ -40,8 +41,8 @@ var RoutesV6 = function RoutesV6(_ref) {
40
41
  accountId: params.accountId,
41
42
  accountsAndTriggers: accountsAndTriggers,
42
43
  onDismiss: onDismiss,
43
- showNewAccountButton: !konnectorWithTriggers.clientSide,
44
- showAccountSelection: !konnectorWithTriggers.clientSide,
44
+ showNewAccountButton: flag('clisk.multi-accounts'),
45
+ showAccountSelection: flag('clisk.multi-accounts'),
45
46
  Component: DataTab
46
47
  });
47
48
  })
@@ -53,8 +54,8 @@ var RoutesV6 = function RoutesV6(_ref) {
53
54
  accountId: params.accountId,
54
55
  accountsAndTriggers: accountsAndTriggers,
55
56
  onDismiss: onDismiss,
56
- showNewAccountButton: !konnectorWithTriggers.clientSide,
57
- showAccountSelection: !konnectorWithTriggers.clientSide,
57
+ showNewAccountButton: flag('clisk.multi-accounts'),
58
+ showAccountSelection: flag('clisk.multi-accounts'),
58
59
  Component: ConfigurationTab
59
60
  });
60
61
  })
@@ -250,6 +250,10 @@
250
250
  "ACCOUNT_WITH_SAME_IDENTIFIER_ALREADY_DEFINED": {
251
251
  "title": "This account already exists",
252
252
  "description": "Your possible modification of the list of synchronized accounts will be taken into account within a few minutes."
253
+ },
254
+ "WRONG_ACCOUNT_IDENTIFIER": {
255
+ "title": "These are the wrong identifiers",
256
+ "description": "You submitted the wrong identifier which are not associated to this account"
253
257
  }
254
258
  }
255
259
  },
@@ -250,6 +250,10 @@
250
250
  "ACCOUNT_WITH_SAME_IDENTIFIER_ALREADY_DEFINED": {
251
251
  "title": "Ce compte est déjà configuré",
252
252
  "description": "Votre éventuelle modification de la liste des comptes synchronisés sera prise en compte sous quelques minutes."
253
+ },
254
+ "WRONG_ACCOUNT_IDENTIFIER": {
255
+ "title": "Mauvais identifiants",
256
+ "description": "Vous avez saisi des identifiant qui ne sont pas associés à ce compte"
253
257
  }
254
258
  }
255
259
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-harvest-lib",
3
- "version": "30.0.4",
3
+ "version": "30.2.0",
4
4
  "description": "Provides logic, modules and components for Cozy's harvest applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -32,8 +32,8 @@
32
32
  "@cozy/minilog": "^1.0.0",
33
33
  "classnames": "^2.3.1",
34
34
  "cozy-bi-auth": "0.0.25",
35
- "cozy-doctypes": "^1.91.4",
36
- "cozy-logger": "^1.10.6",
35
+ "cozy-doctypes": "^1.93.0",
36
+ "cozy-logger": "^1.12.0",
37
37
  "date-fns": "^1.30.1",
38
38
  "final-form": "^4.18.5",
39
39
  "lodash": "^4.17.19",
@@ -49,7 +49,7 @@
49
49
  "@babel/cli": "7.16.8",
50
50
  "@babel/core": "7.16.12",
51
51
  "@babel/register": "7.16.9",
52
- "@cozy/cli-tree": "^0.7.2",
52
+ "@cozy/cli-tree": "^0.9.0",
53
53
  "@sentry/react": "7.119.0",
54
54
  "@storybook/addon-essentials": "^7.0.23",
55
55
  "@storybook/addon-interactions": "^7.0.23",
@@ -64,15 +64,15 @@
64
64
  "@types/react-redux": "7.1.25",
65
65
  "babel-jest": "26.6.3",
66
66
  "babel-plugin-inline-react-svg": "1.1.2",
67
- "babel-preset-cozy-app": "^2.2.2",
67
+ "babel-preset-cozy-app": "^2.4.0",
68
68
  "cozy-client": "^48.8.0",
69
- "cozy-device-helper": "^3.1.3",
70
- "cozy-flags": "^4.0.3",
71
- "cozy-intent": "^2.23.3",
72
- "cozy-interapp": "^0.9.3",
69
+ "cozy-device-helper": "^3.3.0",
70
+ "cozy-flags": "^4.2.0",
71
+ "cozy-intent": "^2.25.0",
72
+ "cozy-interapp": "^0.11.0",
73
73
  "cozy-keys-lib": "^6.1.1",
74
- "cozy-realtime": "^5.0.5",
75
- "cozy-tsconfig": "^1.2.2",
74
+ "cozy-realtime": "^5.2.0",
75
+ "cozy-tsconfig": "^1.4.0",
76
76
  "cozy-ui": "^111.12.0",
77
77
  "enzyme": "3.11.0",
78
78
  "enzyme-adapter-react-16": "1.15.6",
@@ -108,5 +108,5 @@
108
108
  "react-router-dom": ">=4.3.1"
109
109
  },
110
110
  "sideEffects": false,
111
- "gitHead": "1d7cc93f1c89ad2d02caffe8190ef1af57a8bb70"
111
+ "gitHead": "b9937f0b5374a867281c8bdbd10aba5db8e9dc0e"
112
112
  }
@@ -1,6 +1,8 @@
1
1
  import React from 'react'
2
2
  import { Switch, Route, Redirect } from 'react-router-dom'
3
3
 
4
+ import flag from 'cozy-flags'
5
+
4
6
  import AccountModal from '../AccountModal'
5
7
  import EditAccountModal from '../EditAccountModal'
6
8
  import HarvestModalRoot from '../HarvestModalRoot'
@@ -59,8 +61,8 @@ const RoutesV4 = ({
59
61
  accountId={match.params.accountId}
60
62
  accountsAndTriggers={accountsAndTriggers}
61
63
  onDismiss={onDismiss}
62
- showNewAccountButton={!konnectorWithTriggers.clientSide}
63
- showAccountSelection={!konnectorWithTriggers.clientSide}
64
+ showNewAccountButton={flag('clisk.multi-accounts')}
65
+ showAccountSelection={flag('clisk.multi-accounts')}
64
66
  Component={DataTab}
65
67
  />
66
68
  )}
@@ -74,8 +76,8 @@ const RoutesV4 = ({
74
76
  accountId={match.params.accountId}
75
77
  accountsAndTriggers={accountsAndTriggers}
76
78
  onDismiss={onDismiss}
77
- showNewAccountButton={!konnectorWithTriggers.clientSide}
78
- showAccountSelection={!konnectorWithTriggers.clientSide}
79
+ showNewAccountButton={flag('clisk.multi-accounts')}
80
+ showAccountSelection={flag('clisk.multi-accounts')}
79
81
  Component={ConfigurationTab}
80
82
  />
81
83
  )}
@@ -1,6 +1,8 @@
1
1
  import React from 'react'
2
2
  import { Routes, Route, Navigate, useParams } from 'react-router-dom'
3
3
 
4
+ import flag from 'cozy-flags'
5
+
4
6
  import { ViewerModal } from '../../datacards/ViewerModal'
5
7
  import AccountModal from '../AccountModal'
6
8
  import EditAccountModal from '../EditAccountModal'
@@ -54,8 +56,8 @@ const RoutesV6 = ({
54
56
  accountId={params.accountId}
55
57
  accountsAndTriggers={accountsAndTriggers}
56
58
  onDismiss={onDismiss}
57
- showNewAccountButton={!konnectorWithTriggers.clientSide}
58
- showAccountSelection={!konnectorWithTriggers.clientSide}
59
+ showNewAccountButton={flag('clisk.multi-accounts')}
60
+ showAccountSelection={flag('clisk.multi-accounts')}
59
61
  Component={DataTab}
60
62
  />
61
63
  )}
@@ -73,8 +75,8 @@ const RoutesV6 = ({
73
75
  accountId={params.accountId}
74
76
  accountsAndTriggers={accountsAndTriggers}
75
77
  onDismiss={onDismiss}
76
- showNewAccountButton={!konnectorWithTriggers.clientSide}
77
- showAccountSelection={!konnectorWithTriggers.clientSide}
78
+ showNewAccountButton={flag('clisk.multi-accounts')}
79
+ showAccountSelection={flag('clisk.multi-accounts')}
78
80
  Component={ConfigurationTab}
79
81
  />
80
82
  )}
@@ -250,6 +250,10 @@
250
250
  "ACCOUNT_WITH_SAME_IDENTIFIER_ALREADY_DEFINED": {
251
251
  "title": "This account already exists",
252
252
  "description": "Your possible modification of the list of synchronized accounts will be taken into account within a few minutes."
253
+ },
254
+ "WRONG_ACCOUNT_IDENTIFIER": {
255
+ "title": "These are the wrong identifiers",
256
+ "description": "You submitted the wrong identifier which are not associated to this account"
253
257
  }
254
258
  }
255
259
  },
@@ -250,6 +250,10 @@
250
250
  "ACCOUNT_WITH_SAME_IDENTIFIER_ALREADY_DEFINED": {
251
251
  "title": "Ce compte est déjà configuré",
252
252
  "description": "Votre éventuelle modification de la liste des comptes synchronisés sera prise en compte sous quelques minutes."
253
+ },
254
+ "WRONG_ACCOUNT_IDENTIFIER": {
255
+ "title": "Mauvais identifiants",
256
+ "description": "Vous avez saisi des identifiant qui ne sont pas associés à ce compte"
253
257
  }
254
258
  }
255
259
  },