cozy-harvest-lib 6.14.2 → 6.14.6

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 (97) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cli/cli.js +1 -1
  3. package/dist/cli/prompt.js +1 -1
  4. package/dist/components/AccountForm/Field.js +4 -2
  5. package/dist/components/AccountForm/ReadOnlyIdentifier.js +2 -1
  6. package/dist/components/AccountModal.js +1 -1
  7. package/dist/components/AccountModal.spec.js +1 -1
  8. package/dist/components/AccountSelectBox/MenuWithFixedComponent.js +2 -1
  9. package/dist/components/DeleteAccountButton.js +2 -1
  10. package/dist/components/EditAccountModal.js +1 -1
  11. package/dist/components/KonnectorAccounts.js +1 -1
  12. package/dist/components/KonnectorAccounts.spec.js +1 -1
  13. package/dist/components/KonnectorBlock.js +1 -1
  14. package/dist/components/KonnectorBlock.spec.js +1 -1
  15. package/dist/components/KonnectorConfiguration/ConfigurationTab/EditContract.js +1 -1
  16. package/dist/components/KonnectorConfiguration/ConfigurationTab/EditContract.spec.js +1 -1
  17. package/dist/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.js +1 -1
  18. package/dist/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.spec.js +1 -1
  19. package/dist/components/KonnectorConfiguration/ConfigurationTab/helpers.js +1 -1
  20. package/dist/components/KonnectorConfiguration/ConfigurationTab/index.js +1 -1
  21. package/dist/components/KonnectorConfiguration/ConfigurationTab/index.spec.js +1 -1
  22. package/dist/components/KonnectorConfiguration/DataTab/index.js +2 -1
  23. package/dist/components/KonnectorIcon.js +2 -1
  24. package/dist/components/KonnectorModal.js +2 -1
  25. package/dist/components/KonnectorModal.spec.js +1 -1
  26. package/dist/components/KonnectorSuggestionModal/index.js +1 -1
  27. package/dist/components/Popup.js +2 -0
  28. package/dist/components/TriggerManager.js +5 -3
  29. package/dist/components/TriggerManager.spec.js +1 -1
  30. package/dist/components/VaultCiphersList/CiphersListItem.js +2 -1
  31. package/dist/components/VaultCiphersList/OtherAccountListItem.js +2 -1
  32. package/dist/components/VaultCiphersList/VaultCiphersList.spec.js +1 -1
  33. package/dist/components/hooks/useAppLinkWithStoreFallback.js +1 -1
  34. package/dist/components/hooks/useAppLinkWithStoreFallback.spec.js +1 -1
  35. package/dist/components/hooks/useMaintenanceStatus.js +1 -1
  36. package/dist/connections/accounts.js +1 -1
  37. package/dist/connections/accounts.spec.js +2 -1
  38. package/dist/connections/files.js +1 -1
  39. package/dist/connections/files.spec.js +1 -1
  40. package/dist/connections/permission.spec.js +1 -1
  41. package/dist/connections/permissions.js +1 -1
  42. package/dist/connections/triggers.js +1 -1
  43. package/dist/connections/triggers.spec.js +1 -1
  44. package/dist/helpers/konnectorBlock.js +1 -1
  45. package/dist/helpers/konnectorBlock.spec.js +1 -1
  46. package/dist/helpers/oauth.js +2 -1
  47. package/dist/locales/index.js +2 -3
  48. package/dist/models/ConnectionFlow.js +1 -1
  49. package/dist/models/ConnectionFlow.spec.js +1 -1
  50. package/dist/models/cipherUtils.js +1 -1
  51. package/dist/models/cipherUtils.spec.js +1 -1
  52. package/dist/models/konnector/KonnectorJobWatcher.js +1 -1
  53. package/dist/models/konnector/KonnectorJobWatcher.spec.js +1 -1
  54. package/dist/services/bi-http.js +1 -1
  55. package/dist/services/bi-http.spec.js +1 -1
  56. package/dist/services/budget-insight.js +14 -7
  57. package/dist/services/budget-insight.spec.js +5 -5
  58. package/dist/services/deleteAccounts.js +1 -1
  59. package/dist/services/deleteAccounts.spec.js +1 -1
  60. package/dist/services/softDeleteOrRestoreAccounts.js +1 -1
  61. package/dist/services/softDeleteOrRestoreAccounts.spec.js +1 -1
  62. package/dist/services/updateAccountsFromCipher.js +1 -1
  63. package/dist/services/updateAccountsFromCipher.spec.js +1 -1
  64. package/dist/services/utils.js +1 -1
  65. package/dist/services/utils.spec.js +1 -1
  66. package/package.json +9 -9
  67. package/src/cli/cli.js +5 -3
  68. package/src/components/AccountForm/index.spec.jsx +2 -8
  69. package/src/components/KonnectorAccounts.jsx +1 -5
  70. package/src/components/KonnectorAccounts.spec.jsx +1 -1
  71. package/src/components/KonnectorBlock.spec.jsx +1 -2
  72. package/src/components/KonnectorConfiguration/ConfigurationTab/EditContract.jsx +1 -1
  73. package/src/components/KonnectorConfiguration/ConfigurationTab/SyncContractSwitch.jsx +2 -8
  74. package/src/components/KonnectorConfiguration/ConfigurationTab/index.spec.jsx +1 -1
  75. package/src/components/KonnectorIcon.spec.jsx +1 -1
  76. package/src/components/KonnectorModal.jsx +13 -11
  77. package/src/components/KonnectorSuccess.spec.js +8 -47
  78. package/src/components/MountPointContext.jsx +3 -2
  79. package/src/components/OAuthForm.jsx +3 -10
  80. package/src/components/Popup.jsx +1 -0
  81. package/src/components/TriggerManager.jsx +4 -16
  82. package/src/components/TriggerManager.spec.jsx +4 -12
  83. package/src/components/TwoFAModal.jsx +1 -5
  84. package/src/components/cards/LaunchTriggerCard.jsx +3 -3
  85. package/src/components/hoc/tracking.jsx +3 -2
  86. package/src/connections/accounts.js +9 -7
  87. package/src/datacards/FileDataCard.jsx +3 -2
  88. package/src/helpers/konnectorBlock.js +1 -0
  89. package/src/helpers/konnectorBlock.spec.js +7 -14
  90. package/src/helpers/konnectors.js +8 -8
  91. package/src/helpers/oauth.js +1 -0
  92. package/src/index.js +1 -3
  93. package/src/jest.setup.js +2 -2
  94. package/src/locales/index.js +2 -3
  95. package/src/models/withConnectionFlow.jsx +11 -11
  96. package/src/services/budget-insight.js +5 -3
  97. package/src/services/budget-insight.spec.js +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
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
+ ## [6.14.6](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@6.14.5...cozy-harvest-lib@6.14.6) (2021-12-20)
7
+
8
+ **Note:** Version bump only for package cozy-harvest-lib
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.14.5](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@6.14.4...cozy-harvest-lib@6.14.5) (2021-12-02)
15
+
16
+ **Note:** Version bump only for package cozy-harvest-lib
17
+
18
+
19
+
20
+
21
+
22
+ ## [6.14.4](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@6.14.3...cozy-harvest-lib@6.14.4) (2021-11-30)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * Change timeout to get BI temporary token ([9dda46f](https://github.com/cozy/cozy-libs/commit/9dda46f))
28
+
29
+
30
+
31
+
32
+
33
+ ## [6.14.3](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@6.14.2...cozy-harvest-lib@6.14.3) (2021-11-24)
34
+
35
+ **Note:** Version bump only for package cozy-harvest-lib
36
+
37
+
38
+
39
+
40
+
6
41
  ## [6.14.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@6.14.1...cozy-harvest-lib@6.14.2) (2021-11-22)
7
42
 
8
43
 
package/dist/cli/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  import './polyfill';
6
6
  import { build } from '@cozy/cli-tree';
7
7
  import { createClientInteractive } from 'cozy-client/dist/cli';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
 
4
4
  function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
5
5
 
@@ -1,6 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["label", "type"],
5
+ _excluded2 = ["secondaryLabels", "value", "onChange"];
4
6
  import React, { useState } from 'react';
5
7
  import UIField from 'cozy-ui/transpiled/react/Field';
6
8
 
@@ -32,7 +34,7 @@ var ObfuscatedLabel = function ObfuscatedLabel(_ref) {
32
34
  export var Field = function Field(_ref2) {
33
35
  var label = _ref2.label,
34
36
  type = _ref2.type,
35
- props = _objectWithoutProperties(_ref2, ["label", "type"]);
37
+ props = _objectWithoutProperties(_ref2, _excluded);
36
38
 
37
39
  var Component = type === 'password' ? PasswordField : UIField;
38
40
  return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
@@ -50,7 +52,7 @@ var PasswordField = function PasswordField(_ref3) {
50
52
  var secondaryLabels = _ref3.secondaryLabels,
51
53
  valueProps = _ref3.value,
52
54
  onChange = _ref3.onChange,
53
- props = _objectWithoutProperties(_ref3, ["secondaryLabels", "value", "onChange"]);
55
+ props = _objectWithoutProperties(_ref3, _excluded2);
54
56
 
55
57
  var _useState = useState(true),
56
58
  _useState2 = _slicedToArray(_useState, 2),
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className", "onClick", "konnector", "identifier"];
3
4
  import React from 'react';
4
5
  import PropTypes from 'prop-types';
5
6
  import cx from 'classnames';
@@ -14,7 +15,7 @@ var ReadOnlyIdentifier = function ReadOnlyIdentifier(props) {
14
15
  onClick = props.onClick,
15
16
  konnector = props.konnector,
16
17
  identifier = props.identifier,
17
- rest = _objectWithoutProperties(props, ["className", "onClick", "konnector", "identifier"]);
18
+ rest = _objectWithoutProperties(props, _excluded);
18
19
 
19
20
  return /*#__PURE__*/React.createElement(Card, _extends({
20
21
  className: cx({
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
 
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { AccountModal } from 'components/AccountModal';
4
4
  import React from 'react';
5
5
  import { shallow } from 'enzyme';
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["createAction"];
3
4
  import React from 'react';
4
5
  import { components } from 'cozy-ui/transpiled/react/SelectBox';
5
6
  import CreateAccountButton from './CreateAccountButton';
@@ -9,7 +10,7 @@ var MenuWithFixedComponent = function MenuWithFixedComponent(props) {
9
10
 
10
11
  var _props$selectProps = props.selectProps,
11
12
  createAction = _props$selectProps.createAction,
12
- selectProps = _objectWithoutProperties(_props$selectProps, ["createAction"]);
13
+ selectProps = _objectWithoutProperties(_props$selectProps, _excluded);
13
14
 
14
15
  return /*#__PURE__*/React.createElement(components.Menu, _extends({}, props, {
15
16
  selectProps: selectProps
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
- import _regeneratorRuntime from "@babel/runtime/regenerator";
4
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
5
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -13,6 +12,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
13
12
 
14
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
14
 
15
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
16
+
16
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
17
18
 
18
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
8
  import _extends from "@babel/runtime/helpers/extends";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
 
@@ -1,5 +1,4 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized
7
6
  import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
9
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
 
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import React from 'react';
4
4
  import { shallow } from 'enzyme';
5
5
  import { KonnectorAccounts } from 'components/KonnectorAccounts';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  import React, { useEffect, useState, useCallback } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import cx from 'classnames';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import React from 'react';
4
4
  import { render, waitFor } from '@testing-library/react';
5
5
  import { createMockClient } from 'cozy-client';
@@ -1,7 +1,7 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
3
  import _extends from "@babel/runtime/helpers/extends";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  import React, { useState, forwardRef } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { useClient, isQueryLoading, hasQueryBeenLoaded, useQuery } from 'cozy-client';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import React from 'react';
4
4
  import CozyClient, { useQuery } from 'cozy-client';
5
5
  import { render, fireEvent, act } from '@testing-library/react';
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized
7
6
  import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
9
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
 
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
 
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6
6
 
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import set from 'lodash/set';
4
4
  import { setFields as setBankAccountFields } from './bankAccountHelpers';
5
5
  var setFieldsPerDoctype = {
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import React, { useContext, useState } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import cx from 'classnames';
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
 
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6
6
 
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["slug"];
3
4
  import React from 'react';
4
5
  import PropTypes from 'prop-types';
5
6
  import { withClient } from 'cozy-client';
@@ -70,7 +71,7 @@ export var DataTab = function DataTab(_ref) {
70
71
  disabled: isInMaintenance
71
72
  }), appLinks.map(function (_ref2) {
72
73
  var slug = _ref2.slug,
73
- otherProps = _objectWithoutProperties(_ref2, ["slug"]);
74
+ otherProps = _objectWithoutProperties(_ref2, _excluded);
74
75
 
75
76
  return /*#__PURE__*/React.createElement(AppLinkCard, _extends({
76
77
  key: slug,
@@ -5,6 +5,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
5
5
  import _inherits from "@babel/runtime/helpers/inherits";
6
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
+ var _excluded = ["client", "konnector"];
8
9
 
9
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
11
 
@@ -45,7 +46,7 @@ var KonnectorIcon = /*#__PURE__*/function (_PureComponent) {
45
46
  var _this$props2 = this.props,
46
47
  client = _this$props2.client,
47
48
  konnector = _this$props2.konnector,
48
- restProps = _objectWithoutProperties(_this$props2, ["client", "konnector"]);
49
+ restProps = _objectWithoutProperties(_this$props2, _excluded);
49
50
 
50
51
  return /*#__PURE__*/React.createElement(AppIcon, _extends({
51
52
  fetchIcon: this.fetchIcon.bind(this)
@@ -1,5 +1,4 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -13,6 +12,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
13
12
 
14
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
14
 
15
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
16
+
16
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
17
18
 
18
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
 
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6
6
 
@@ -1,7 +1,7 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
 
6
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7
7
 
@@ -24,6 +24,8 @@ import { isMobileApp } from 'cozy-device-helper';
24
24
  // source https://stackoverflow.com/a/16861050
25
25
 
26
26
  export function popupCenter(w, h) {
27
+ // eslint-disable-next-line no-redeclare
28
+
27
29
  /* global screen */
28
30
  // Fixes dual-screen position
29
31
  // Most browsers Firefox
@@ -1,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- import _regeneratorRuntime from "@babel/runtime/regenerator";
4
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
5
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -8,6 +7,9 @@ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized
8
7
  import _inherits from "@babel/runtime/helpers/inherits";
9
8
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
10
9
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
10
+ var _excluded = ["onLaunch", "onSuccess", "onLoginSuccess", "onError", "initialTrigger"],
11
+ _excluded2 = ["vaultUnlockFormProps"];
12
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
11
13
 
12
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
15
 
@@ -602,7 +604,7 @@ var LegacyTriggerManager = function LegacyTriggerManager(props) {
602
604
  onLoginSuccess = props.onLoginSuccess,
603
605
  onError = props.onError,
604
606
  initialTrigger = props.initialTrigger,
605
- otherProps = _objectWithoutProperties(props, ["onLaunch", "onSuccess", "onLoginSuccess", "onError", "initialTrigger"]);
607
+ otherProps = _objectWithoutProperties(props, _excluded);
606
608
 
607
609
  return /*#__PURE__*/React.createElement(FlowProvider, {
608
610
  onLaunch: onLaunch,
@@ -621,7 +623,7 @@ var LegacyTriggerManager = function LegacyTriggerManager(props) {
621
623
 
622
624
  export var IntentTriggerManager = function IntentTriggerManager(_ref3) {
623
625
  var vaultUnlockFormProps = _ref3.vaultUnlockFormProps,
624
- props = _objectWithoutProperties(_ref3, ["vaultUnlockFormProps"]);
626
+ props = _objectWithoutProperties(_ref3, _excluded2);
625
627
 
626
628
  return /*#__PURE__*/React.createElement(HarvestVaultProvider, null, /*#__PURE__*/React.createElement(VaultUnlockProvider, null, /*#__PURE__*/React.createElement(LegacyTriggerManager, props), /*#__PURE__*/React.createElement(VaultUnlockPlaceholder, {
627
629
  unlockFormProps: vaultUnlockFormProps
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
 
6
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7
7
 
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["cipherView", "konnector", "className", "onClick"];
3
4
  import React from 'react';
4
5
  import PropTypes from 'prop-types';
5
6
  import get from 'lodash/get';
@@ -13,7 +14,7 @@ var CiphersListItem = function CiphersListItem(props) {
13
14
  konnector = props.konnector,
14
15
  className = props.className,
15
16
  onClick = props.onClick,
16
- rest = _objectWithoutProperties(props, ["cipherView", "konnector", "className", "onClick"]);
17
+ rest = _objectWithoutProperties(props, _excluded);
17
18
 
18
19
  return /*#__PURE__*/React.createElement(ListItem, _extends({
19
20
  button: Boolean(onClick),
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["f", "t"];
3
4
  import React from 'react';
4
5
  import ListItem from '@material-ui/core/ListItem';
5
6
  import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
@@ -9,7 +10,7 @@ var OtherAccountListItem = function OtherAccountListItem(props) {
9
10
  // eslint-disable-next-line no-unused-vars
10
11
  var f = props.f,
11
12
  t = props.t,
12
- rest = _objectWithoutProperties(props, ["f", "t"]);
13
+ rest = _objectWithoutProperties(props, _excluded);
13
14
 
14
15
  return /*#__PURE__*/React.createElement(ListItem, _extends({
15
16
  button: true
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { render, fireEvent } from '@testing-library/react';
4
4
  import React from 'react';
5
5
  import VaultCiphersList from './VaultCiphersList';
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { useEffect, useState } from 'react';
5
5
  import { Q, models } from 'cozy-client';
6
6
  var applications = models.applications;
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { renderHook } from '@testing-library/react-hooks';
4
4
  import useAppLinkWithStoreFallback from 'components/hooks/useAppLinkWithStoreFallback';
5
5
  describe('useAppLinkWithStoreFallback', function () {
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { useState, useEffect } from 'react';
5
5
  import { Registry } from 'cozy-client';
6
6
  import get from 'lodash/get';
@@ -1,11 +1,11 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
 
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6
5
 
7
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8
7
 
8
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
9
  import { Q } from 'cozy-client';
10
10
  import * as triggersModel from '../helpers/triggers';
11
11
  import merge from 'lodash/merge';
@@ -1,11 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
 
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6
5
 
7
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8
7
 
8
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
+
9
10
  /* eslint-env jest */
10
11
  import omit from 'lodash/omit';
11
12
  import CozyClient from 'cozy-client';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  var FILES_DOCTYPE = 'io.cozy.files';
4
4
  /**
5
5
  * Creates a directory from a given path
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
 
4
4
  /* eslint-env jest */
5
5
  import client from 'cozy-client';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
 
4
4
  /* eslint-env jest */
5
5
  import client from 'cozy-client';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  var PERMISSIONS_DOCTYPE = 'io.cozy.permissions';
4
4
  /**
5
5
  * Add the given permission to the given subject
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { CozyFolder as CozyFolderClass } from 'cozy-doctypes';
5
5
  import * as triggers from '../helpers/triggers';
6
6
  import * as accounts from '../helpers/accounts';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
 
4
4
  /* eslint-env jest */
5
5
  import { createTrigger, launchTrigger, ensureTrigger } from 'connections/triggers';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { triggers } from 'cozy-client/dist/models/trigger';
4
4
  import { generateUniversalLink } from 'cozy-ui/transpiled/react/AppLinker';
5
5
  import get from 'lodash/get';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { createMockClient } from 'cozy-client';
4
4
  import konnectorBlock from './konnectorBlock';
5
5
  var client = createMockClient({});
@@ -61,7 +61,8 @@ export var handleOAuthResponse = function handleOAuthResponse() {
61
61
  realtime = new CozyRealtime({
62
62
  client: client
63
63
  });
64
- }
64
+ } // eslint-disable-next-line no-redeclare
65
+
65
66
  /* global URLSearchParams */
66
67
 
67
68
 
@@ -7,9 +7,8 @@ for (var _i = 0, _langs = langs; _i < _langs.length; _i++) {
7
7
  var locales = {};
8
8
 
9
9
  try {
10
- locales = require("./".concat(lang, ".json"));
11
- } catch (e) {// eslint-disable-line no-empty-block
12
- }
10
+ locales = require("./".concat(lang, ".json")); // eslint-disable-next-line no-empty
11
+ } catch (e) {}
13
12
 
14
13
  var polyglot = new Polyglot();
15
14
  polyglot.extend(locales);