cozy-harvest-lib 13.7.2 → 13.9.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.
Files changed (330) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cli/cli.js +3 -3
  3. package/dist/components/AccountField.spec.js +2 -2
  4. package/dist/components/AccountFields.spec.js +2 -2
  5. package/dist/components/AccountForm/AccountField.js +5 -5
  6. package/dist/components/AccountForm/AccountFields.js +1 -1
  7. package/dist/components/AccountForm/CannotConnectModal.js +3 -3
  8. package/dist/components/AccountForm/ConnectionBackdrop.js +2 -2
  9. package/dist/components/AccountForm/ReadOnlyIdentifier.js +3 -3
  10. package/dist/components/AccountForm/index.spec.js +6 -6
  11. package/dist/components/AccountModal.js +9 -9
  12. package/dist/components/AccountModal.spec.js +1 -1
  13. package/dist/components/AccountModalWithoutTabs/AccountModalHeader.js +1 -1
  14. package/dist/components/AccountModalWithoutTabs/AccountModalWithoutTabs.js +5 -5
  15. package/dist/components/AccountModalWithoutTabs/Error.js +1 -1
  16. package/dist/components/AccountModalWithoutTabs/ForV4Router/AccountModalWithoutTabs.js +4 -4
  17. package/dist/components/AccountModalWithoutTabs/OpenOAuthWindowButton.js +6 -6
  18. package/dist/components/AccountModalWithoutTabs/TriggerError.js +3 -3
  19. package/dist/components/AccountModalWithoutTabs/TriggerErrorAction.js +3 -3
  20. package/dist/components/AccountSelectBox/AccountSelectBox.js +2 -2
  21. package/dist/components/AccountSelectBox/AccountSelectControl.js +1 -1
  22. package/dist/components/AccountsList/AccountsList.js +5 -5
  23. package/dist/components/AccountsList/AccountsList.spec.js +2 -2
  24. package/dist/components/AccountsList/AccountsListItem.js +2 -2
  25. package/dist/components/AccountsList/AccountsListItem.spec.js +2 -2
  26. package/dist/components/AccountsList/Status.js +4 -4
  27. package/dist/components/AccountsListModal.js +3 -3
  28. package/dist/components/DeleteAccountButton.js +3 -3
  29. package/dist/components/DeleteAccountButton.spec.js +2 -2
  30. package/dist/components/DisconnectedAccountModal.js +6 -6
  31. package/dist/components/DisconnectedAccountModal.spec.js +2 -2
  32. package/dist/components/EditAccountModal.js +11 -11
  33. package/dist/components/FlowProvider.spec.js +3 -3
  34. package/dist/components/HarvestModalRoot.js +1 -1
  35. package/dist/components/InAppBrowser.js +2 -2
  36. package/dist/components/InAppBrowser.spec.js +2 -2
  37. package/dist/components/KonnectorAccounts.js +9 -9
  38. package/dist/components/KonnectorAccounts.spec.js +2 -2
  39. package/dist/components/KonnectorBlock.js +10 -10
  40. package/dist/components/KonnectorBlock.spec.js +3 -3
  41. package/dist/components/KonnectorConfiguration/ConfigurationTab/BIContractActivationWindow.spec.js +2 -2
  42. package/dist/components/KonnectorConfiguration/ConfigurationTab/BiContractActivationWindow.js +7 -7
  43. package/dist/components/KonnectorConfiguration/ConfigurationTab/ContractItem.js +7 -7
  44. package/dist/components/KonnectorConfiguration/ConfigurationTab/ContractItemSecondaryText.js +4 -4
  45. package/dist/components/KonnectorConfiguration/ConfigurationTab/Contracts.js +6 -6
  46. package/dist/components/KonnectorConfiguration/ConfigurationTab/EditContract.js +14 -14
  47. package/dist/components/KonnectorConfiguration/ConfigurationTab/EditContract.spec.js +3 -3
  48. package/dist/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.js +2 -2
  49. package/dist/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.spec.js +2 -2
  50. package/dist/components/KonnectorConfiguration/ConfigurationTab/bankAccountHelpers.js +2 -2
  51. package/dist/components/KonnectorConfiguration/ConfigurationTab/bankAccountHelpers.spec.js +1 -1
  52. package/dist/components/KonnectorConfiguration/ConfigurationTab/index.js +15 -15
  53. package/dist/components/KonnectorConfiguration/ConfigurationTab/index.spec.js +5 -5
  54. package/dist/components/KonnectorConfiguration/DataTab/index.js +8 -8
  55. package/dist/components/KonnectorConfiguration/DataTab.spec.js +4 -4
  56. package/dist/components/KonnectorConfiguration/KonnectorAccountTabs.js +15 -15
  57. package/dist/components/KonnectorConfiguration/KonnectorAccountTabs.spec.js +3 -3
  58. package/dist/components/KonnectorConfiguration/Success/BanksLink.js +4 -4
  59. package/dist/components/KonnectorConfiguration/Success/DriveLink.js +3 -3
  60. package/dist/components/KonnectorIcon.js +1 -1
  61. package/dist/components/KonnectorIcon.spec.js +2 -2
  62. package/dist/components/KonnectorModal.js +14 -14
  63. package/dist/components/KonnectorModal.spec.js +2 -2
  64. package/dist/components/KonnectorModalHeader.js +4 -4
  65. package/dist/components/KonnectorSuccess.js +7 -7
  66. package/dist/components/KonnectorSuccess.spec.js +2 -2
  67. package/dist/components/KonnectorSuggestionModal/DataTypes.js +7 -7
  68. package/dist/components/KonnectorSuggestionModal/Illustration.js +1 -1
  69. package/dist/components/KonnectorSuggestionModal/index.js +7 -7
  70. package/dist/components/KonnectorUpdateLinker.js +2 -2
  71. package/dist/components/Maintenance/MaintenanceHeader.js +5 -5
  72. package/dist/components/Maintenance/MaintenanceIcon.js +1 -1
  73. package/dist/components/Maintenance/index.js +3 -3
  74. package/dist/components/Maintenance/index.spec.js +3 -3
  75. package/dist/components/MountPointContext.js +1 -1
  76. package/dist/components/NewAccountModal.js +10 -10
  77. package/dist/components/NewAccountModal.spec.js +3 -3
  78. package/dist/components/OAuthForm.js +12 -12
  79. package/dist/components/OAuthForm.spec.js +4 -4
  80. package/dist/components/OAuthService.js +1 -1
  81. package/dist/components/OAuthService.spec.js +2 -2
  82. package/dist/components/OAuthWindow.js +5 -5
  83. package/dist/components/Popup.js +1 -1
  84. package/dist/components/Popup.spec.js +2 -2
  85. package/dist/components/PopupService.js +1 -1
  86. package/dist/components/RedirectToAccountFormButton.js +2 -2
  87. package/dist/components/RedirectToAccountFormButton.spec.js +1 -1
  88. package/dist/components/Routes/RoutesV4.js +5 -5
  89. package/dist/components/Routes/RoutesV6.js +4 -4
  90. package/dist/components/Routes.js +8 -8
  91. package/dist/components/TriggerManager.js +10 -10
  92. package/dist/components/TriggerManager.spec.js +5 -5
  93. package/dist/components/TwoFAModal.js +5 -5
  94. package/dist/components/TwoFAModal.spec.js +2 -2
  95. package/dist/components/VaultCiphersList/CiphersListItem.js +4 -4
  96. package/dist/components/VaultCiphersList/OtherAccountListItem.js +1 -1
  97. package/dist/components/VaultCiphersList/VaultCiphersList.js +3 -3
  98. package/dist/components/cards/AppLinkCard.js +8 -8
  99. package/dist/components/cards/LaunchTriggerAlert.js +10 -10
  100. package/dist/components/cards/LaunchTriggerAlertMenu.js +4 -4
  101. package/dist/components/cards/LaunchTriggerCard.js +4 -4
  102. package/dist/components/cards/LaunchTriggerCard.spec.js +4 -4
  103. package/dist/components/cards/helpers.js +1 -1
  104. package/dist/components/cards/helpers.spec.js +1 -1
  105. package/dist/components/hoc/withKonnectorLocales.js +1 -1
  106. package/dist/components/hoc/withKonnectorModal.js +2 -2
  107. package/dist/components/hoc/withLocales.js +1 -1
  108. package/dist/components/hoc/withRouter.js +1 -1
  109. package/dist/components/hooks/useMaintenanceStatus.js +2 -2
  110. package/dist/components/hooks/useOAuthExtraParams.js +1 -1
  111. package/dist/components/infos/KonnectorUpdateInfos.js +2 -2
  112. package/dist/components/infos/KonnectorUpdateInfos.spec.js +2 -2
  113. package/dist/components/infos/TriggerErrorDescription.js +3 -3
  114. package/dist/components/infos/TriggerErrorInfo.js +3 -3
  115. package/dist/components/infos/TriggerErrorInfo.spec.js +2 -2
  116. package/dist/components/infos/TriggerMaintenanceDescription.js +2 -2
  117. package/dist/connections/accounts.js +3 -3
  118. package/dist/connections/accounts.spec.js +1 -1
  119. package/dist/connections/files.spec.js +1 -1
  120. package/dist/connections/permission.spec.js +1 -1
  121. package/dist/connections/triggers.js +4 -4
  122. package/dist/connections/triggers.spec.js +3 -3
  123. package/dist/datacards/FileDataCard.js +15 -15
  124. package/dist/datacards/GeoDataCard.js +11 -11
  125. package/dist/datacards/ViewerModal.js +1 -1
  126. package/dist/datacards/datacardOptions.js +1 -1
  127. package/dist/datacards/mime-utils.js +1 -1
  128. package/dist/datacards/trips.js +3 -3
  129. package/dist/datacards/useDataCardFiles.js +1 -1
  130. package/dist/helpers/accounts.js +2 -2
  131. package/dist/helpers/konnectorBlock.js +3 -3
  132. package/dist/helpers/konnectors.js +1 -1
  133. package/dist/helpers/manifest.js +3 -3
  134. package/dist/helpers/oauth.js +1 -1
  135. package/dist/helpers/triggers.js +1 -1
  136. package/dist/helpers/triggers.spec.js +1 -1
  137. package/dist/helpers/useKonnectorWithTriggers.js +2 -2
  138. package/dist/index.js +6 -6
  139. package/dist/konnector-policies.js +1 -1
  140. package/dist/locales/fr.json +1 -1
  141. package/dist/models/ConnectionFlow.js +21 -13
  142. package/dist/models/ConnectionFlow.spec.js +243 -180
  143. package/dist/models/cipherUtils.js +3 -3
  144. package/dist/models/konnector/KonnectorJobWatcher.js +1 -1
  145. package/dist/models/withConnectionFlow.spec.js +1 -1
  146. package/dist/policies/biWebView.js +6 -6
  147. package/dist/policies/biWebView.spec.js +1 -1
  148. package/dist/policies/budget-insight.js +7 -7
  149. package/dist/policies/budget-insight.spec.js +4 -4
  150. package/dist/policies/clisk.js +106 -17
  151. package/dist/services/deleteAccounts.js +1 -1
  152. package/dist/services/deleteAccounts.spec.js +1 -1
  153. package/dist/services/softDeleteOrRestoreAccounts.js +1 -1
  154. package/dist/services/softDeleteOrRestoreAccounts.spec.js +1 -1
  155. package/dist/services/updateAccountsFromCipher.js +1 -1
  156. package/dist/services/updateAccountsFromCipher.spec.js +1 -1
  157. package/dist/services/utils.js +1 -1
  158. package/dist/services/utils.spec.js +1 -1
  159. package/package.json +2 -2
  160. package/src/__mocks__/cozy-keys-lib/index.js +1 -0
  161. package/src/cli/cli.js +7 -4
  162. package/src/components/AccountField.spec.js +2 -3
  163. package/src/components/AccountFields.spec.js +2 -3
  164. package/src/components/AccountForm/AccountField.jsx +5 -4
  165. package/src/components/AccountForm/AccountFields.jsx +1 -1
  166. package/src/components/AccountForm/CannotConnectModal.jsx +3 -3
  167. package/src/components/AccountForm/ConnectionBackdrop.jsx +2 -2
  168. package/src/components/AccountForm/Field.jsx +1 -0
  169. package/src/components/AccountForm/ReadOnlyIdentifier.jsx +3 -4
  170. package/src/components/AccountForm/index.spec.jsx +7 -8
  171. package/src/components/AccountModal.jsx +9 -9
  172. package/src/components/AccountModal.spec.jsx +2 -1
  173. package/src/components/AccountModalWithoutTabs/AccountModalHeader.jsx +1 -1
  174. package/src/components/AccountModalWithoutTabs/AccountModalWithoutTabs.jsx +5 -5
  175. package/src/components/AccountModalWithoutTabs/Error.jsx +1 -1
  176. package/src/components/AccountModalWithoutTabs/ForV4Router/AccountModalWithoutTabs.jsx +6 -6
  177. package/src/components/AccountModalWithoutTabs/OpenOAuthWindowButton.jsx +6 -6
  178. package/src/components/AccountModalWithoutTabs/TriggerError.jsx +3 -3
  179. package/src/components/AccountModalWithoutTabs/TriggerErrorAction.jsx +3 -3
  180. package/src/components/AccountSelectBox/AccountSelectBox.jsx +3 -2
  181. package/src/components/AccountSelectBox/AccountSelectControl.jsx +2 -2
  182. package/src/components/AccountSelectBox/CreateAccountButton.jsx +1 -0
  183. package/src/components/AccountSelectBox/MenuWithFixedComponent.jsx +1 -0
  184. package/src/components/AccountsList/AccountsList.jsx +5 -6
  185. package/src/components/AccountsList/AccountsList.spec.js +2 -3
  186. package/src/components/AccountsList/AccountsListItem.jsx +3 -3
  187. package/src/components/AccountsList/AccountsListItem.spec.jsx +2 -3
  188. package/src/components/AccountsList/Status.jsx +4 -5
  189. package/src/components/AccountsListModal.jsx +3 -3
  190. package/src/components/Datacards/index.jsx +1 -0
  191. package/src/components/DeleteAccountButton.jsx +4 -3
  192. package/src/components/DeleteAccountButton.spec.js +2 -2
  193. package/src/components/DisconnectedAccountModal.jsx +9 -11
  194. package/src/components/DisconnectedAccountModal.spec.jsx +2 -2
  195. package/src/components/EditAccountModal.jsx +11 -12
  196. package/src/components/FlowProvider.spec.jsx +3 -3
  197. package/src/components/HarvestModalRoot.jsx +2 -1
  198. package/src/components/HarvestVaultProvider/index.jsx +1 -0
  199. package/src/components/InAppBrowser.jsx +4 -2
  200. package/src/components/InAppBrowser.spec.jsx +4 -2
  201. package/src/components/KonnectorAccounts.jsx +9 -9
  202. package/src/components/KonnectorAccounts.spec.jsx +4 -2
  203. package/src/components/KonnectorBlock.jsx +10 -11
  204. package/src/components/KonnectorBlock.spec.jsx +3 -4
  205. package/src/components/KonnectorConfiguration/ConfigurationTab/BIContractActivationWindow.spec.jsx +5 -2
  206. package/src/components/KonnectorConfiguration/ConfigurationTab/BiContractActivationWindow.jsx +9 -7
  207. package/src/components/KonnectorConfiguration/ConfigurationTab/ContractItem.jsx +7 -8
  208. package/src/components/KonnectorConfiguration/ConfigurationTab/ContractItemSecondaryText.jsx +4 -4
  209. package/src/components/KonnectorConfiguration/ConfigurationTab/Contracts.jsx +6 -6
  210. package/src/components/KonnectorConfiguration/ConfigurationTab/EditContract.jsx +14 -14
  211. package/src/components/KonnectorConfiguration/ConfigurationTab/EditContract.spec.jsx +4 -4
  212. package/src/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.jsx +2 -2
  213. package/src/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.spec.jsx +3 -2
  214. package/src/components/KonnectorConfiguration/ConfigurationTab/bankAccountHelpers.js +2 -2
  215. package/src/components/KonnectorConfiguration/ConfigurationTab/bankAccountHelpers.spec.js +1 -1
  216. package/src/components/KonnectorConfiguration/ConfigurationTab/helpers.js +1 -0
  217. package/src/components/KonnectorConfiguration/ConfigurationTab/index.jsx +20 -23
  218. package/src/components/KonnectorConfiguration/ConfigurationTab/index.spec.jsx +7 -5
  219. package/src/components/KonnectorConfiguration/DataTab/index.jsx +8 -8
  220. package/src/components/KonnectorConfiguration/DataTab.spec.jsx +4 -4
  221. package/src/components/KonnectorConfiguration/KonnectorAccountTabs.jsx +16 -16
  222. package/src/components/KonnectorConfiguration/KonnectorAccountTabs.spec.jsx +6 -4
  223. package/src/components/KonnectorConfiguration/Success/BanksLink.jsx +5 -5
  224. package/src/components/KonnectorConfiguration/Success/DriveLink.jsx +5 -4
  225. package/src/components/KonnectorIcon.jsx +2 -1
  226. package/src/components/KonnectorIcon.spec.jsx +4 -2
  227. package/src/components/KonnectorModal.jsx +17 -19
  228. package/src/components/KonnectorModal.spec.jsx +4 -3
  229. package/src/components/KonnectorModalHeader.jsx +4 -4
  230. package/src/components/KonnectorSuccess.jsx +7 -7
  231. package/src/components/KonnectorSuccess.spec.js +4 -4
  232. package/src/components/KonnectorSuggestionModal/DataTypes.jsx +6 -5
  233. package/src/components/KonnectorSuggestionModal/Illustration.jsx +2 -1
  234. package/src/components/KonnectorSuggestionModal/index.jsx +8 -8
  235. package/src/components/KonnectorUpdateLinker.jsx +2 -2
  236. package/src/components/Maintenance/MaintenanceHeader.jsx +7 -5
  237. package/src/components/Maintenance/MaintenanceIcon.jsx +3 -1
  238. package/src/components/Maintenance/index.jsx +5 -3
  239. package/src/components/Maintenance/index.spec.jsx +4 -3
  240. package/src/components/MountPointContext.jsx +1 -1
  241. package/src/components/NewAccountModal.jsx +10 -10
  242. package/src/components/NewAccountModal.spec.jsx +3 -3
  243. package/src/components/OAuthForm.jsx +14 -13
  244. package/src/components/OAuthForm.spec.js +5 -4
  245. package/src/components/OAuthService.js +2 -1
  246. package/src/components/OAuthService.spec.js +4 -3
  247. package/src/components/OAuthWindow.jsx +5 -5
  248. package/src/components/Popup.jsx +1 -1
  249. package/src/components/Popup.spec.js +2 -3
  250. package/src/components/PopupService.js +2 -1
  251. package/src/components/PopupService.spec.js +2 -0
  252. package/src/components/RedirectToAccountFormButton.jsx +4 -2
  253. package/src/components/RedirectToAccountFormButton.spec.jsx +2 -1
  254. package/src/components/Routes/RoutesV4.jsx +5 -5
  255. package/src/components/Routes/RoutesV6.jsx +4 -4
  256. package/src/components/Routes.jsx +8 -8
  257. package/src/components/TriggerManager.jsx +10 -11
  258. package/src/components/TriggerManager.spec.jsx +5 -5
  259. package/src/components/TwoFAModal.jsx +7 -8
  260. package/src/components/TwoFAModal.spec.jsx +2 -2
  261. package/src/components/VaultCiphersList/CiphersListItem.jsx +4 -5
  262. package/src/components/VaultCiphersList/OtherAccountListItem.jsx +1 -1
  263. package/src/components/VaultCiphersList/VaultCiphersList.jsx +4 -4
  264. package/src/components/VaultCiphersList/VaultCiphersList.spec.jsx +1 -0
  265. package/src/components/VaultUnlockProvider/index.jsx +1 -0
  266. package/src/components/cards/AppLinkCard.jsx +10 -8
  267. package/src/components/cards/LaunchTriggerAlert.jsx +10 -10
  268. package/src/components/cards/LaunchTriggerAlertMenu.jsx +4 -4
  269. package/src/components/cards/LaunchTriggerCard.jsx +4 -4
  270. package/src/components/cards/LaunchTriggerCard.spec.jsx +6 -5
  271. package/src/components/cards/helpers.js +1 -1
  272. package/src/components/cards/helpers.spec.js +1 -1
  273. package/src/components/hoc/withKonnectorLocales.jsx +1 -1
  274. package/src/components/hoc/withKonnectorModal.jsx +2 -2
  275. package/src/components/hoc/withLocales.js +1 -1
  276. package/src/components/hoc/withRouter.jsx +1 -1
  277. package/src/components/hooks/useAppLinkWithStoreFallback.jsx +1 -0
  278. package/src/components/hooks/useMaintenanceStatus.jsx +3 -2
  279. package/src/components/hooks/useOAuthExtraParams.js +1 -2
  280. package/src/components/infos/KonnectorUpdateInfos.jsx +2 -2
  281. package/src/components/infos/KonnectorUpdateInfos.spec.jsx +2 -2
  282. package/src/components/infos/TriggerErrorDescription.jsx +3 -3
  283. package/src/components/infos/TriggerErrorInfo.jsx +3 -3
  284. package/src/components/infos/TriggerErrorInfo.spec.js +3 -3
  285. package/src/components/infos/TriggerMaintenanceDescription.jsx +3 -2
  286. package/src/connections/accounts.js +4 -3
  287. package/src/connections/accounts.spec.js +4 -2
  288. package/src/connections/files.spec.js +2 -2
  289. package/src/connections/permission.spec.js +2 -2
  290. package/src/connections/triggers.js +4 -5
  291. package/src/connections/triggers.spec.js +4 -4
  292. package/src/datacards/FileDataCard.jsx +15 -17
  293. package/src/datacards/GeoDataCard.jsx +11 -16
  294. package/src/datacards/ViewerModal.jsx +1 -1
  295. package/src/datacards/datacardOptions.js +2 -1
  296. package/src/datacards/mime-utils.js +1 -1
  297. package/src/datacards/trips.js +3 -3
  298. package/src/datacards/useDataCardFiles.js +1 -1
  299. package/src/helpers/accounts.js +2 -2
  300. package/src/helpers/konnectorBlock.js +5 -5
  301. package/src/helpers/konnectors.js +1 -1
  302. package/src/helpers/manifest.js +3 -3
  303. package/src/helpers/oauth.js +1 -1
  304. package/src/helpers/triggers.js +1 -1
  305. package/src/helpers/triggers.spec.js +1 -1
  306. package/src/helpers/useKonnectorWithTriggers.js +3 -2
  307. package/src/index.js +5 -6
  308. package/src/konnector-policies.js +1 -1
  309. package/src/locales/fr.json +1 -1
  310. package/src/models/ConnectionFlow.js +35 -28
  311. package/src/models/ConnectionFlow.spec.js +48 -8
  312. package/src/models/cipherUtils.js +4 -4
  313. package/src/models/konnector/KonnectorJobWatcher.js +2 -1
  314. package/src/models/konnector/KonnectorJobWatcher.spec.js +1 -0
  315. package/src/models/withConnectionFlow.jsx +1 -0
  316. package/src/models/withConnectionFlow.spec.jsx +3 -1
  317. package/src/policies/biWebView.js +8 -8
  318. package/src/policies/biWebView.spec.js +2 -1
  319. package/src/policies/budget-insight.js +10 -9
  320. package/src/policies/budget-insight.spec.js +6 -4
  321. package/src/policies/clisk.js +63 -6
  322. package/src/services/deleteAccounts.js +2 -1
  323. package/src/services/deleteAccounts.spec.js +1 -1
  324. package/src/services/softDeleteOrRestoreAccounts.js +2 -1
  325. package/src/services/softDeleteOrRestoreAccounts.spec.js +1 -2
  326. package/src/services/updateAccountsFromCipher.js +1 -2
  327. package/src/services/updateAccountsFromCipher.spec.js +2 -2
  328. package/src/services/utils.js +2 -1
  329. package/src/services/utils.spec.js +2 -1
  330. package/test/AppLike.jsx +4 -3
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
+ # [13.9.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@13.8.0...cozy-harvest-lib@13.9.0) (2023-03-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **harvest:** Add FR translation to installFlagship ([31b5839](https://github.com/cozy/cozy-libs/commit/31b583970164bc13e5a98eaac7d6d097bb4e8998))
12
+
13
+
14
+
15
+
16
+
17
+ # [13.8.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@13.7.2...cozy-harvest-lib@13.8.0) (2023-03-17)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * Import order lint via --fix lint option ([728f86f](https://github.com/cozy/cozy-libs/commit/728f86fdd033031d9a8949a0bcf3a5bf7064a281))
23
+
24
+
25
+ ### Features
26
+
27
+ * Wait for startLaucher resolution ([5f322b7](https://github.com/cozy/cozy-libs/commit/5f322b7a7534350d3251f597180a957339ef1129))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [13.7.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@13.7.1...cozy-harvest-lib@13.7.2) (2023-03-16)
7
34
 
8
35
  **Note:** Version bump only for package cozy-harvest-lib
package/dist/cli/cli.js CHANGED
@@ -4,12 +4,12 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  import './polyfill';
6
6
  import { build } from '@cozy/cli-tree';
7
- import { createClientInteractive } from 'cozy-client/dist/cli';
8
- import ConnectionFlow, { ERROR_EVENT, SUCCESS_EVENT, LOGIN_SUCCESS_EVENT, TWO_FA_REQUEST_EVENT, UPDATE_EVENT } from '../models/ConnectionFlow';
9
7
  import minilog from '@cozy/minilog';
10
- import logger from '../logger';
8
+ import { createClientInteractive } from 'cozy-client/dist/cli';
11
9
  import { multiPrompt } from './prompt';
12
10
  import assert from '../assert';
11
+ import logger from '../logger';
12
+ import ConnectionFlow, { ERROR_EVENT, SUCCESS_EVENT, LOGIN_SUCCESS_EVENT, TWO_FA_REQUEST_EVENT, UPDATE_EVENT } from '../models/ConnectionFlow';
13
13
  minilog.enable();
14
14
  var KONNECTOR_DOCTYPE = 'io.cozy.konnectors';
15
15
  var ACCOUNT_DOCTYPE = 'io.cozy.accounts';
@@ -14,10 +14,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
14
14
 
15
15
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
16
 
17
- import React from 'react';
17
+ import { AccountField } from 'components/AccountForm/AccountField';
18
18
  import { shallow } from 'enzyme';
19
19
  import PropTypes from 'prop-types';
20
- import { AccountField } from 'components/AccountForm/AccountField';
20
+ import React from 'react';
21
21
  var fixtures = {
22
22
  username: {
23
23
  encrypted: false,
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { shallow } from 'enzyme';
3
1
  import { AccountFields } from 'components/AccountForm/AccountFields';
2
+ import { shallow } from 'enzyme';
3
+ import React from 'react';
4
4
  var fixtures = {
5
5
  fields: {
6
6
  username: {
@@ -16,13 +16,13 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
16
16
 
17
17
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
18
18
 
19
- import { Field } from './Field';
20
- import React, { PureComponent } from 'react';
21
- import PropTypes from 'prop-types';
22
19
  import pick from 'lodash/pick';
20
+ import PropTypes from 'prop-types';
21
+ import React, { PureComponent } from 'react';
22
+ import { isIOS } from 'cozy-device-helper';
23
+ import { Field } from './Field';
23
24
  import { getFieldPlaceholder, sanitizeSelectProps } from '../../helpers/fields';
24
- import { legacyLabels, predefinedLabels, ROLE_IDENTIFIER } from '../../helpers/manifest';
25
- import { isIOS } from 'cozy-device-helper'; // On iOS, focusing an input not in the same tick as the user action is buggy.
25
+ import { legacyLabels, predefinedLabels, ROLE_IDENTIFIER } from '../../helpers/manifest'; // On iOS, focusing an input not in the same tick as the user action is buggy.
26
26
  // The field is focused but the keyboard does not show up,
27
27
  // See https://github.com/apache/cordova-plugin-wkwebview-engine/pull/37/#issuecomment-308321094
28
28
 
@@ -14,10 +14,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
14
14
 
15
15
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
16
 
17
+ import get from 'lodash/get';
17
18
  import PropTypes from 'prop-types';
18
19
  import React, { PureComponent } from 'react';
19
20
  import { Field as FinalFormField } from 'react-final-form';
20
- import get from 'lodash/get';
21
21
  import AccountField from './AccountField';
22
22
  import { getEncryptedFieldName } from '../../helpers/fields'; // As SelectBox component from Cozy-UI, rendering dropdown type, is just giving
23
23
  // us the full Option object, we just get its value to facilitate mapping
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
3
- import Typography from 'cozy-ui/transpiled/react/Typography';
2
+ import React from 'react';
4
3
  import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
5
4
  import { useI18n } from 'cozy-ui/transpiled/react/I18n';
6
- import { useComponentsProps } from '../Providers/ComponentsPropsProvider';
5
+ import Typography from 'cozy-ui/transpiled/react/Typography';
7
6
  import Markdown from '../Markdown';
7
+ import { useComponentsProps } from '../Providers/ComponentsPropsProvider';
8
8
 
9
9
  var CannotConnectModal = function CannotConnectModal(_ref) {
10
10
  var _ComponentsProps$Cann;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { makeStyles } from 'cozy-ui/transpiled/react/styles';
3
- import { useI18n } from 'cozy-ui/transpiled/react/I18n';
4
2
  import Backdrop from 'cozy-ui/transpiled/react/Backdrop';
3
+ import { useI18n } from 'cozy-ui/transpiled/react/I18n';
5
4
  import LinearProgress from 'cozy-ui/transpiled/react/LinearProgress';
6
5
  import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme';
7
6
  import Typography from 'cozy-ui/transpiled/react/Typography';
7
+ import { makeStyles } from 'cozy-ui/transpiled/react/styles';
8
8
  var useStyles = makeStyles({
9
9
  container: {
10
10
  position: 'fixed',
@@ -1,14 +1,14 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "onClick", "konnector", "identifier"];
4
- import React from 'react';
5
- import PropTypes from 'prop-types';
6
4
  import cx from 'classnames';
5
+ import PropTypes from 'prop-types';
6
+ 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
+ import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect';
9
10
  import { Media, Img, Bd } from 'cozy-ui/transpiled/react/Media';
10
11
  import KonnectorIcon from '../KonnectorIcon';
11
- import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect';
12
12
 
13
13
  var ReadOnlyIdentifier = function ReadOnlyIdentifier(props) {
14
14
  var className = props.className,
@@ -5,15 +5,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
 
7
7
  /* eslint-env jest */
8
- import React from 'react';
9
- import PropTypes from 'prop-types';
10
- import { shallow, mount } from 'enzyme';
11
- import I18n from 'cozy-ui/transpiled/react/I18n';
12
- import { isMobile } from 'cozy-device-helper';
8
+ import { fireEvent, render } from '@testing-library/react';
13
9
  import { AccountForm } from 'components/AccountForm';
10
+ import { shallow, mount } from 'enzyme';
14
11
  import enLocale from 'locales/en.json';
15
12
  import Polyglot from 'node-polyglot';
16
- import { fireEvent, render } from '@testing-library/react';
13
+ import PropTypes from 'prop-types';
14
+ import React from 'react';
15
+ import { isMobile } from 'cozy-device-helper';
16
+ import I18n from 'cozy-ui/transpiled/react/I18n';
17
17
  var polyglot = new Polyglot();
18
18
  polyglot.extend(enLocale);
19
19
  var t = polyglot.t.bind(polyglot);
@@ -12,24 +12,24 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
12
12
 
13
13
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
14
14
 
15
- import React, { Component } from 'react';
16
- import PropTypes from 'prop-types';
17
- import get from 'lodash/get';
18
15
  import flow from 'lodash/flow';
16
+ import get from 'lodash/get';
17
+ import PropTypes from 'prop-types';
18
+ import React, { Component } from 'react';
19
19
  import { withClient } from 'cozy-client';
20
- import Spinner from 'cozy-ui/transpiled/react/Spinner';
21
- import Infos from 'cozy-ui/transpiled/react/Infos';
22
20
  import Button from 'cozy-ui/transpiled/react/Button';
23
- import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints';
24
21
  import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
25
- import { fetchAccount as _fetchAccount } from '../connections/accounts';
26
- import * as triggersModel from '../helpers/triggers';
27
- import KonnectorAccountTabs from './KonnectorConfiguration/KonnectorAccountTabs';
22
+ import Infos from 'cozy-ui/transpiled/react/Infos';
23
+ import Spinner from 'cozy-ui/transpiled/react/Spinner';
24
+ import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints';
28
25
  import AccountSelectBox from './AccountSelectBox/AccountSelectBox';
26
+ import KonnectorAccountTabs from './KonnectorConfiguration/KonnectorAccountTabs';
29
27
  import KonnectorModalHeader from './KonnectorModalHeader';
30
28
  import { withMountPointProps } from './MountPointContext';
31
29
  import withLocales from './hoc/withLocales';
30
+ import { fetchAccount as _fetchAccount } from '../connections/accounts';
32
31
  import { intentsApiProptype, innerAccountModalOverridesProptype } from '../helpers/proptypes';
32
+ import * as triggersModel from '../helpers/triggers';
33
33
  /**
34
34
  * Takes an accountId and a list of accounts containing their respecting triggers
35
35
  * isplays the selected account and the accounts linked
@@ -1,8 +1,8 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { AccountModal } from 'components/AccountModal';
4
- import React from 'react';
5
4
  import { shallow } from 'enzyme';
5
+ import React from 'react';
6
6
  import { fetchAccount } from '../../src/connections/accounts';
7
7
  jest.mock('../../src/connections/accounts', function () {
8
8
  return {
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
2
+ import React from 'react';
3
3
  import AccountSelectBox from '../AccountSelectBox/AccountSelectBox';
4
4
  import KonnectorModalHeader from '../KonnectorModalHeader';
5
5
  import { withMountPointProps } from '../MountPointContext';
@@ -1,17 +1,17 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["data"];
3
- import React from 'react';
3
+ import DialogContent from '@material-ui/core/DialogContent';
4
4
  import PropTypes from 'prop-types';
5
+ import React from 'react';
5
6
  import { Outlet } from 'react-router-dom';
6
- import DialogContent from '@material-ui/core/DialogContent';
7
7
  import { useQuery, isQueryLoading } from 'cozy-client';
8
8
  import Spinner from 'cozy-ui/transpiled/react/Spinner';
9
- import { buildAccountQueryById } from '../../connections/accounts';
10
- import { withMountPointProps } from '../MountPointContext';
11
- import { getMatchingTrigger } from './helpers';
12
9
  import AccountModalHeader from './AccountModalHeader';
13
10
  import Error from './Error';
11
+ import { getMatchingTrigger } from './helpers';
12
+ import { buildAccountQueryById } from '../../connections/accounts';
14
13
  import { innerAccountModalOverridesProptype, intentsApiProptype } from '../../helpers/proptypes';
14
+ import { withMountPointProps } from '../MountPointContext';
15
15
 
16
16
  var AccountModalWithoutTabs = function AccountModalWithoutTabs(_ref) {
17
17
  var accountsAndTriggers = _ref.accountsAndTriggers,
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { useClient } from 'cozy-client';
3
- import Infos from 'cozy-ui/transpiled/react/Infos';
4
3
  import Button from 'cozy-ui/transpiled/react/Buttons';
5
4
  import { useI18n } from 'cozy-ui/transpiled/react/I18n';
5
+ import Infos from 'cozy-ui/transpiled/react/Infos';
6
6
  import { loadSelectedAccountId } from '../../helpers/accounts';
7
7
  import withLocales from '../hoc/withLocales';
8
8
 
@@ -1,16 +1,16 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["data"];
3
- import React from 'react';
4
- import PropTypes from 'prop-types';
5
3
  import DialogContent from '@material-ui/core/DialogContent';
4
+ import PropTypes from 'prop-types';
5
+ import React from 'react';
6
6
  import { useQuery, isQueryLoading } from 'cozy-client';
7
7
  import Spinner from 'cozy-ui/transpiled/react/Spinner';
8
8
  import { buildAccountQueryById } from '../../../connections/accounts';
9
+ import { innerAccountModalOverridesProptype, intentsApiProptype } from '../../../helpers/proptypes';
9
10
  import { withMountPointProps } from '../../MountPointContext';
10
- import { getMatchingTrigger } from '../helpers';
11
11
  import AccountModalHeader from '../AccountModalHeader';
12
12
  import Error from '../Error';
13
- import { innerAccountModalOverridesProptype, intentsApiProptype } from '../../../helpers/proptypes';
13
+ import { getMatchingTrigger } from '../helpers';
14
14
 
15
15
  var AccountModalWithoutTabs = function AccountModalWithoutTabs(_ref) {
16
16
  var accountsAndTriggers = _ref.accountsAndTriggers,
@@ -1,15 +1,15 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import React, { useCallback } from 'react';
4
3
  import PropTypes from 'prop-types';
5
- import flag from 'cozy-flags';
4
+ import React, { useCallback } from 'react';
6
5
  import { useClient } from 'cozy-client';
7
- import { useI18n } from 'cozy-ui/transpiled/react/I18n';
8
- import { Button } from 'cozy-ui/transpiled/react/Button';
6
+ import flag from 'cozy-flags';
9
7
  import { useWebviewIntent } from 'cozy-intent';
10
- import useOAuthExtraParams from '../hooks/useOAuthExtraParams';
11
- import { OAUTH_SERVICE_OK, openOAuthWindow } from '../OAuthService';
8
+ import { Button } from 'cozy-ui/transpiled/react/Button';
9
+ import { useI18n } from 'cozy-ui/transpiled/react/I18n';
12
10
  import { intentsApiProptype } from '../../helpers/proptypes';
11
+ import { OAUTH_SERVICE_OK, openOAuthWindow } from '../OAuthService';
12
+ import useOAuthExtraParams from '../hooks/useOAuthExtraParams';
13
13
 
14
14
  var OpenOAuthWindowButton = function OpenOAuthWindowButton(_ref) {
15
15
  var flow = _ref.flow,
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
2
+ import React from 'react';
3
3
  import { useClient } from 'cozy-client';
4
- import useMaintenanceStatus from '../hooks/useMaintenanceStatus';
5
- import TriggerErrorInfo from '../infos/TriggerErrorInfo';
6
4
  import TriggerErrorAction from './TriggerErrorAction';
7
5
  import { intentsApiProptype } from '../../helpers/proptypes';
6
+ import useMaintenanceStatus from '../hooks/useMaintenanceStatus';
7
+ import TriggerErrorInfo from '../infos/TriggerErrorInfo';
8
8
 
9
9
  var TriggerError = function TriggerError(_ref) {
10
10
  var flow = _ref.flow,
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
3
- import { findKonnectorPolicy } from '../../konnector-policies';
4
- import RedirectToAccountFormButton from '../RedirectToAccountFormButton';
2
+ import React from 'react';
5
3
  import OpenOAuthWindowButton from './OpenOAuthWindowButton';
6
4
  import { intentsApiProptype } from '../../helpers/proptypes';
5
+ import { findKonnectorPolicy } from '../../konnector-policies';
6
+ import RedirectToAccountFormButton from '../RedirectToAccountFormButton';
7
7
 
8
8
  var TriggerErrorAction = function TriggerErrorAction(_ref) {
9
9
  var flow = _ref.flow,
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
2
+ import React from 'react';
3
3
  import { Account } from 'cozy-doctypes';
4
4
  import SelectBox, { reactSelectControl } from 'cozy-ui/transpiled/react/SelectBox';
5
- import MenuWithFixedComponent from './MenuWithFixedComponent';
6
5
  import AccountSelectControl from './AccountSelectControl';
6
+ import MenuWithFixedComponent from './MenuWithFixedComponent';
7
7
 
8
8
  var AccountSelectBox = function AccountSelectBox(_ref) {
9
9
  var accountsAndTriggers = _ref.accountsAndTriggers,
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import Icon from 'cozy-ui/transpiled/react/Icon';
3
- import palette from 'cozy-ui/transpiled/react/palette';
4
3
  import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom';
5
4
  import Typography from 'cozy-ui/transpiled/react/Typography';
5
+ import palette from 'cozy-ui/transpiled/react/palette';
6
6
 
7
7
  var AccountSelectControl = function AccountSelectControl(_ref) {
8
8
  var name = _ref.name;
@@ -8,15 +8,15 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
8
8
 
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
 
11
- import React from 'react';
12
11
  import PropTypes from 'prop-types';
13
- import Card from 'cozy-ui/transpiled/react/Card';
12
+ import React from 'react';
14
13
  import Button from 'cozy-ui/transpiled/react/Button';
14
+ import Card from 'cozy-ui/transpiled/react/Card';
15
+ import { DialogContent } from 'cozy-ui/transpiled/react/Dialog';
15
16
  import { translate } from 'cozy-ui/transpiled/react/I18n';
16
- import AccountsListItem from './AccountsListItem';
17
- import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus';
18
17
  import Icon from 'cozy-ui/transpiled/react/Icon';
19
- import { DialogContent } from 'cozy-ui/transpiled/react/Dialog';
18
+ import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus';
19
+ import AccountsListItem from './AccountsListItem';
20
20
  export var AccountsList = /*#__PURE__*/function (_React$PureComponent) {
21
21
  _inherits(AccountsList, _React$PureComponent);
22
22
 
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { shallow } from 'enzyme';
3
1
  import { AccountsList } from 'components/AccountsList/AccountsList';
2
+ import { shallow } from 'enzyme';
3
+ import React from 'react';
4
4
  describe('AccountsList', function () {
5
5
  it('should render', function () {
6
6
  var wrapper = shallow( /*#__PURE__*/React.createElement(AccountsList, {
@@ -8,12 +8,12 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
8
8
 
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
 
11
- import React from 'react';
12
11
  import PropTypes from 'prop-types';
12
+ import React from 'react';
13
13
  import { Account } from 'cozy-doctypes';
14
14
  import Card from 'cozy-ui/transpiled/react/Card';
15
- import Status from './Status';
16
15
  import Typography from 'cozy-ui/transpiled/react/Typography';
16
+ import Status from './Status';
17
17
  export var AccountsListItem = /*#__PURE__*/function (_React$PureComponent) {
18
18
  _inherits(AccountsListItem, _React$PureComponent);
19
19
 
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { shallow } from 'enzyme';
3
1
  import AccountsListItem from 'components/AccountsList/AccountsListItem';
2
+ import { shallow } from 'enzyme';
3
+ import React from 'react';
4
4
  describe('AccountsListItem', function () {
5
5
  it('should not render the caption since accountLogin is undefined', function () {
6
6
  var wrapper = shallow( /*#__PURE__*/React.createElement(AccountsListItem, {
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
2
+ import React from 'react';
3
+ import { translate } from 'cozy-ui/transpiled/react/I18n';
3
4
  import Icon from 'cozy-ui/transpiled/react/Icon';
5
+ import CheckIcon from 'cozy-ui/transpiled/react/Icons/Check';
6
+ import WarningIcon from 'cozy-ui/transpiled/react/Icons/Warning';
4
7
  import Spinner from 'cozy-ui/transpiled/react/Spinner';
5
8
  import Typography from 'cozy-ui/transpiled/react/Typography';
6
- import { translate } from 'cozy-ui/transpiled/react/I18n';
7
9
  import { getErrorLocale } from '../../helpers/konnectors';
8
10
  import FlowProvider from '../FlowProvider';
9
- import WarningIcon from 'cozy-ui/transpiled/react/Icons/Warning';
10
- import CheckIcon from 'cozy-ui/transpiled/react/Icons/Check';
11
11
  /**
12
12
  *
13
13
  * Display trigger's status.
@@ -1,8 +1,8 @@
1
- import React, { useContext } from 'react';
2
1
  import PropTypes from 'prop-types';
3
- import Stack from 'cozy-ui/transpiled/react/Stack';
4
- import { translate } from 'cozy-ui/transpiled/react/I18n';
2
+ import React, { useContext } from 'react';
5
3
  import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
4
+ import { translate } from 'cozy-ui/transpiled/react/I18n';
5
+ import Stack from 'cozy-ui/transpiled/react/Stack';
6
6
  import AccountsList from './AccountsList/AccountsList';
7
7
  import KonnectorIcon from './KonnectorIcon';
8
8
  import { MountPointContext } from './MountPointContext';
@@ -18,12 +18,12 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
18
18
 
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
20
 
21
- import React, { Component } from 'react';
22
- import PropTypes from 'prop-types';
23
21
  import omit from 'lodash/omit';
22
+ import PropTypes from 'prop-types';
23
+ import React, { Component } from 'react';
24
+ import { withClient } from 'cozy-client';
24
25
  import { Button } from 'cozy-ui/transpiled/react/Button';
25
26
  import { translate } from 'cozy-ui/transpiled/react/I18n';
26
- import { withClient } from 'cozy-client';
27
27
  import { i18nContextTypes } from './hoc/withLocales';
28
28
  import { deleteAccount } from '../connections/accounts';
29
29
  export var DeleteAccountButton = /*#__PURE__*/function (_Component) {
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import { shallow } from 'enzyme';
4
2
  import { DeleteAccountButton } from 'components/DeleteAccountButton';
3
+ import { shallow } from 'enzyme';
4
+ import React from 'react';
5
5
  import { deleteAccount } from '../../src/connections/accounts';
6
6
  jest.mock('../../src/connections/accounts', function () {
7
7
  return {
@@ -1,20 +1,20 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- import React, { useRef, useState } from 'react';
4
3
  import PropTypes from 'prop-types';
4
+ import React, { useRef, useState } from 'react';
5
5
  import { getCreatedByApp } from 'cozy-client/dist/models/utils';
6
- import { useI18n } from 'cozy-ui/transpiled/react/I18n';
7
6
  import Card from 'cozy-ui/transpiled/react/Card';
7
+ import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
8
+ import Dialog from 'cozy-ui/transpiled/react/Dialog';
9
+ import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
10
+ import { useI18n } from 'cozy-ui/transpiled/react/I18n';
8
11
  import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
9
12
  import { Tab, Tabs } from 'cozy-ui/transpiled/react/MuiTabs';
10
13
  import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
11
- import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
12
14
  import { Contracts } from './KonnectorConfiguration/ConfigurationTab/Contracts';
15
+ import { getAccountInstitutionLabel } from './KonnectorConfiguration/ConfigurationTab/bankAccountHelpers';
13
16
  import KonnectorModalHeader from './KonnectorModalHeader';
14
17
  import withLocales from './hoc/withLocales';
15
- import { getAccountInstitutionLabel } from './KonnectorConfiguration/ConfigurationTab/bankAccountHelpers';
16
- import Dialog from 'cozy-ui/transpiled/react/Dialog';
17
- import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
18
18
  import { intentsApiProptype } from '../helpers/proptypes';
19
19
 
20
20
  var createDummyKonnectorFromAccount = function createDummyKonnectorFromAccount(account) {
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
1
  import { render } from '@testing-library/react';
3
- import AppLike from '../../test/AppLike';
2
+ import React from 'react';
4
3
  import DisconnectedAccountModal from './DisconnectedAccountModal';
5
4
  import bankAccounts from './KonnectorConfiguration/ConfigurationTab/bank-account-fixture.json';
5
+ import AppLike from '../../test/AppLike';
6
6
  describe('DisconnectedAccountModal', function () {
7
7
  var setup = function setup() {
8
8
  var mockClient = {};
@@ -12,27 +12,27 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
12
12
 
13
13
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
14
14
 
15
- import React, { Component } from 'react';
16
- import PropTypes from 'prop-types';
17
15
  import cx from 'classnames';
18
- import get from 'lodash/get';
19
16
  import flow from 'lodash/flow';
20
- import flag from 'cozy-flags';
17
+ import get from 'lodash/get';
18
+ import PropTypes from 'prop-types';
19
+ import React, { Component } from 'react';
21
20
  import { withClient } from 'cozy-client';
22
- import Spinner from 'cozy-ui/transpiled/react/Spinner';
21
+ import flag from 'cozy-flags';
23
22
  import CipherIcon from 'cozy-ui/transpiled/react/CipherIcon';
24
- import Typography from 'cozy-ui/transpiled/react/Typography';
25
- import Dialog, { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
26
23
  import { DialogCloseButton, useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
24
+ import Dialog, { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
27
25
  import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
28
- import { fetchAccount as _fetchAccount } from '../connections/accounts';
29
- import * as triggersModel from '../helpers/triggers';
30
- import TriggerManager from './TriggerManager';
26
+ import Spinner from 'cozy-ui/transpiled/react/Spinner';
27
+ import Typography from 'cozy-ui/transpiled/react/Typography';
31
28
  import { withMountPointProps } from './MountPointContext';
32
- import logger from '../logger';
29
+ import TriggerManager from './TriggerManager';
33
30
  import { withTracker } from './hoc/tracking';
34
31
  import useTimeout from './hooks/useTimeout';
32
+ import { fetchAccount as _fetchAccount } from '../connections/accounts';
35
33
  import { intentsApiProptype } from '../helpers/proptypes';
34
+ import * as triggersModel from '../helpers/triggers';
35
+ import logger from '../logger';
36
36
  var showStyle = {
37
37
  opacity: 1,
38
38
  transition: 'opacity 0.3s ease'
@@ -5,11 +5,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5
5
 
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
 
8
- import React from 'react';
9
- import { shallow } from 'enzyme';
10
8
  import { FlowProvider } from 'components/FlowProvider';
11
- import { ERROR_EVENT, SUCCESS_EVENT, LOGIN_SUCCESS_EVENT, TWO_FA_REQUEST_EVENT } from 'models/flowEvents';
12
9
  import TwoFAModal from 'components/TwoFAModal';
10
+ import { shallow } from 'enzyme';
11
+ import { ERROR_EVENT, SUCCESS_EVENT, LOGIN_SUCCESS_EVENT, TWO_FA_REQUEST_EVENT } from 'models/flowEvents';
12
+ import React from 'react';
13
13
  var client = {
14
14
  on: jest.fn(),
15
15
  stackClient: {
@@ -1,5 +1,5 @@
1
- import React, { useContext } from 'react';
2
1
  import PropTypes from 'prop-types';
2
+ import React, { useContext } from 'react';
3
3
  import AccountsListModal from './AccountsListModal';
4
4
  import { MountPointContext } from './MountPointContext';
5
5
 
@@ -1,10 +1,10 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import React, { useEffect } from 'react';
4
3
  import PropTypes from 'prop-types';
4
+ import React, { useEffect } from 'react';
5
5
  import { useWebviewIntent } from 'cozy-intent';
6
- import logger from '../logger';
7
6
  import { intentsApiProptype } from '../helpers/proptypes';
7
+ import logger from '../logger';
8
8
 
9
9
  var InAppBrowser = function InAppBrowser(_ref) {
10
10
  var url = _ref.url,
@@ -1,9 +1,9 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import React from 'react';
4
3
  import { render, waitFor } from '@testing-library/react';
5
- import InAppBrowser from './InAppBrowser';
4
+ import React from 'react';
6
5
  import { WebviewIntentProvider } from 'cozy-intent';
6
+ import InAppBrowser from './InAppBrowser';
7
7
  describe('InAppBrowser', function () {
8
8
  it('should call fetchSessionCode and showInAppBrowser', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
9
9
  var url, intentCall, webviewService;