cozy-ui-plus 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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
+ ## [2.1.1](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@2.1.0...cozy-ui-plus@2.1.1) (2025-11-05)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **ui-plus:** Now spread props between Paywall and its subcomponents ([a86cf6a](https://github.com/cozy/cozy-libs/commit/a86cf6a353c1d64173226756147a3060f0a41ecc))
11
+
12
+ # [2.1.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@2.0.0...cozy-ui-plus@2.1.0) (2025-11-05)
13
+
14
+ ### Features
15
+
16
+ - **ui-plus:** Add AuthentificationDialog locales ([66ad8a3](https://github.com/cozy/cozy-libs/commit/66ad8a3a1f2e234d341a0bde6044ca22434e2824))
17
+
6
18
  # [2.0.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@1.2.0...cozy-ui-plus@2.0.0) (2025-11-05)
7
19
 
8
20
  ### Features
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.locales = exports.default = void 0;
9
+
10
+ var _withOnlyLocales = _interopRequireDefault(require("cozy-ui/transpiled/react/providers/I18n/withOnlyLocales"));
11
+
12
+ var en = {
13
+ cancel: "Cancel",
14
+ allow: "Allow",
15
+ "authentification-dialog": {
16
+ title: "Login",
17
+ "title-oidc": "Twake Pass",
18
+ subtitle: "For security, please confirm your identity",
19
+ label: "Twake password",
20
+ "label-oidc": "Twake Pass password",
21
+ abort: "Leave",
22
+ unlock: "Unlock",
23
+ "forgotten-password": "I forgot my password",
24
+ errors: {
25
+ invalid_password: "Incorrect password, try again.",
26
+ server_error: "Something went wrong with the server. Please, reload the page."
27
+ }
28
+ }
29
+ };
30
+ var fr = {
31
+ cancel: "Annuler",
32
+ allow: "Autoriser",
33
+ "authentification-dialog": {
34
+ title: "Authentification",
35
+ "title-oidc": "Twake Pass",
36
+ subtitle: "Par s\xE9curit\xE9, merci de confirmer votre identit\xE9",
37
+ label: "Mot de passe Twake",
38
+ "label-oidc": "Mot de passe Twake Pass",
39
+ abort: "Quitter",
40
+ unlock: "D\xE9verrouiller",
41
+ "forgotten-password": "J'ai oubli\xE9 mon mot de passe",
42
+ errors: {
43
+ invalid_password: "Mot de passe incorrect, essayer \xE0 nouveau.",
44
+ server_error: "Une erreur s'est produite. Merci de recharger la page."
45
+ }
46
+ }
47
+ };
48
+ var ru = {
49
+ cancel: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",
50
+ allow: "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C",
51
+ "authentification-dialog": {
52
+ title: "\u0412\u0445\u043E\u0434",
53
+ "title-oidc": "Twake Pass",
54
+ subtitle: "\u0414\u043B\u044F \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\u0443 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u044C",
55
+ label: "\u041F\u0430\u0440\u043E\u043B\u044C Twake",
56
+ "label-oidc": "\u041F\u0430\u0440\u043E\u043B\u044C Twake Pass",
57
+ abort: "\u0412\u044B\u0439\u0442\u0438",
58
+ unlock: "\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
59
+ "forgotten-password": "\u042F \u0437\u0430\u0431\u044B\u043B \u043F\u0430\u0440\u043E\u043B\u044C",
60
+ errors: {
61
+ invalid_password: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.",
62
+ server_error: "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443."
63
+ }
64
+ }
65
+ };
66
+ var vi = {
67
+ cancel: "H\u1EE7y",
68
+ allow: "Cho ph\xE9p",
69
+ "authentification-dialog": {
70
+ title: "\u0110\u0103ng nh\u1EADp",
71
+ "title-oidc": "Twake Pass",
72
+ subtitle: "\u0110\u1EC3 b\u1EA3o m\u1EADt, vui l\xF2ng x\xE1c nh\u1EADn danh t\xEDnh c\u1EE7a b\u1EA1n",
73
+ label: "M\u1EADt kh\u1EA9u Twake",
74
+ "label-oidc": "M\u1EADt kh\u1EA9u Twake Pass",
75
+ abort: "R\u1EDDi kh\u1ECFi",
76
+ unlock: "M\u1EDF kh\xF3a",
77
+ "forgotten-password": "T\xF4i qu\xEAn m\u1EADt kh\u1EA9u",
78
+ errors: {
79
+ invalid_password: "M\u1EADt kh\u1EA9u kh\xF4ng ch\xEDnh x\xE1c, h\xE3y th\u1EED l\u1EA1i.",
80
+ server_error: "C\xF3 l\u1ED7i x\u1EA3y ra v\u1EDBi m\xE1y ch\u1EE7. Vui l\xF2ng t\u1EA3i l\u1EA1i trang."
81
+ }
82
+ }
83
+ };
84
+ var locales = {
85
+ en: en,
86
+ fr: fr,
87
+ ru: ru,
88
+ vi: vi
89
+ };
90
+ exports.locales = locales;
91
+
92
+ var _default = (0, _withOnlyLocales.default)(locales);
93
+
94
+ exports.default = _default;
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
10
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
15
 
12
16
  var _react = _interopRequireDefault(require("react"));
@@ -15,21 +19,24 @@ var _Paywall = _interopRequireDefault(require("./Paywall"));
15
19
 
16
20
  var _withPaywallLocales = _interopRequireDefault(require("./locales/withPaywallLocales"));
17
21
 
22
+ var _excluded = ["max", "konnectorName", "onClose"];
23
+
18
24
  /**
19
25
  * Paywall displayed when the user reach the maximum accounts allowed for a konnector
20
26
  */
21
27
  var MaxAccountsByKonnectorPaywall = function MaxAccountsByKonnectorPaywall(_ref) {
22
28
  var max = _ref.max,
23
29
  konnectorName = _ref.konnectorName,
24
- onClose = _ref.onClose;
25
- return /*#__PURE__*/_react.default.createElement(_Paywall.default, {
30
+ onClose = _ref.onClose,
31
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
32
+ return /*#__PURE__*/_react.default.createElement(_Paywall.default, (0, _extends2.default)({
26
33
  variant: "maxAccountsByKonnector",
27
34
  contentInterpolation: {
28
35
  smart_count: max,
29
36
  konnectorName: konnectorName
30
37
  },
31
38
  onClose: onClose
32
- });
39
+ }, props));
33
40
  };
34
41
 
35
42
  MaxAccountsByKonnectorPaywall.propTypes = {
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
10
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
15
 
12
16
  var _react = _interopRequireDefault(require("react"));
@@ -15,19 +19,22 @@ var _Paywall = _interopRequireDefault(require("./Paywall"));
15
19
 
16
20
  var _withPaywallLocales = _interopRequireDefault(require("./locales/withPaywallLocales"));
17
21
 
22
+ var _excluded = ["max", "onClose"];
23
+
18
24
  /**
19
25
  * Paywall displayed when the user reach the maximum accounts allowed for all konnectors
20
26
  */
21
27
  var MaxAccountsPaywall = function MaxAccountsPaywall(_ref) {
22
28
  var max = _ref.max,
23
- onClose = _ref.onClose;
24
- return /*#__PURE__*/_react.default.createElement(_Paywall.default, {
29
+ onClose = _ref.onClose,
30
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
+ return /*#__PURE__*/_react.default.createElement(_Paywall.default, (0, _extends2.default)({
25
32
  variant: "maxAccounts",
26
33
  contentInterpolation: {
27
34
  smart_count: max
28
35
  },
29
36
  onClose: onClose
30
- });
37
+ }, props));
31
38
  };
32
39
 
33
40
  MaxAccountsPaywall.propTypes = {
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
10
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
15
 
12
16
  var _react = _interopRequireDefault(require("react"));
@@ -15,19 +19,22 @@ var _Paywall = _interopRequireDefault(require("./Paywall"));
15
19
 
16
20
  var _withPaywallLocales = _interopRequireDefault(require("./locales/withPaywallLocales"));
17
21
 
22
+ var _excluded = ["days", "onClose"];
23
+
18
24
  /**
19
25
  * Paywall displayed when the user reach the maximum days allowed of capture geolocated data
20
26
  */
21
27
  var MaxDaysToCapturePaywall = function MaxDaysToCapturePaywall(_ref) {
22
28
  var days = _ref.days,
23
- onClose = _ref.onClose;
24
- return /*#__PURE__*/_react.default.createElement(_Paywall.default, {
29
+ onClose = _ref.onClose,
30
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
+ return /*#__PURE__*/_react.default.createElement(_Paywall.default, (0, _extends2.default)({
25
32
  variant: "maxDaysToCapture",
26
33
  contentInterpolation: {
27
34
  smart_count: days
28
35
  },
29
36
  onClose: onClose
30
- });
37
+ }, props));
31
38
  };
32
39
 
33
40
  MaxDaysToCapturePaywall.propTypes = {
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
10
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
15
 
12
16
  var _react = _interopRequireDefault(require("react"));
@@ -15,6 +19,8 @@ var _Paywall = _interopRequireDefault(require("./Paywall"));
15
19
 
16
20
  var _withPaywallLocales = _interopRequireDefault(require("./locales/withPaywallLocales"));
17
21
 
22
+ var _excluded = ["max", "onClose"];
23
+
18
24
  /**
19
25
  * Paywall displayed when the user reaches the maximum number of papers created via the Mespapiers application.
20
26
  *
@@ -24,14 +30,15 @@ var _withPaywallLocales = _interopRequireDefault(require("./locales/withPaywallL
24
30
  */
25
31
  var MaxPapersPaywall = function MaxPapersPaywall(_ref) {
26
32
  var max = _ref.max,
27
- onClose = _ref.onClose;
28
- return /*#__PURE__*/_react.default.createElement(_Paywall.default, {
33
+ onClose = _ref.onClose,
34
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
35
+ return /*#__PURE__*/_react.default.createElement(_Paywall.default, (0, _extends2.default)({
29
36
  variant: "maxPapers",
30
37
  contentInterpolation: {
31
38
  smart_count: max
32
39
  },
33
40
  onClose: onClose
34
- });
41
+ }, props));
35
42
  };
36
43
 
37
44
  MaxPapersPaywall.propTypes = {
@@ -7,20 +7,27 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
10
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
15
 
12
16
  var _react = _interopRequireDefault(require("react"));
13
17
 
14
18
  var _Paywall = _interopRequireDefault(require("./Paywall"));
15
19
 
20
+ var _excluded = ["onClose", "isPublic"];
21
+
16
22
  var OnlyOfficePaywall = function OnlyOfficePaywall(_ref) {
17
23
  var onClose = _ref.onClose,
18
- isPublic = _ref.isPublic;
19
- return /*#__PURE__*/_react.default.createElement(_Paywall.default, {
24
+ isPublic = _ref.isPublic,
25
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
26
+ return /*#__PURE__*/_react.default.createElement(_Paywall.default, (0, _extends2.default)({
20
27
  variant: "onlyOffice",
21
28
  onClose: onClose,
22
29
  isPublic: isPublic
23
- });
30
+ }, props));
24
31
  };
25
32
  /**
26
33
  * Paywall displayed when the user is not authorised to access OnlyOffice
@@ -7,19 +7,26 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
10
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
15
 
12
16
  var _react = _interopRequireDefault(require("react"));
13
17
 
14
18
  var _Paywall = _interopRequireDefault(require("./Paywall"));
15
19
 
20
+ var _excluded = ["onClose"];
21
+
16
22
  var PasswordSharingPaywall = function PasswordSharingPaywall(_ref) {
17
- var onClose = _ref.onClose;
18
- return /*#__PURE__*/_react.default.createElement(_Paywall.default, {
23
+ var onClose = _ref.onClose,
24
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
25
+ return /*#__PURE__*/_react.default.createElement(_Paywall.default, (0, _extends2.default)({
19
26
  variant: "passwordSharing",
20
27
  onClose: onClose,
21
28
  isPublic: false
22
- });
29
+ }, props));
23
30
  };
24
31
  /**
25
32
  * Paywall displayed when the user is not authorised to share password
@@ -7,21 +7,28 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
10
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
15
 
12
16
  var _react = _interopRequireDefault(require("react"));
13
17
 
14
18
  var _Paywall = _interopRequireDefault(require("./Paywall"));
15
19
 
20
+ var _excluded = ["onClose"];
21
+
16
22
  /**
17
23
  * Paywall displayed when user disk space is full
18
24
  */
19
25
  var QuotaPaywall = function QuotaPaywall(_ref) {
20
- var onClose = _ref.onClose;
21
- return /*#__PURE__*/_react.default.createElement(_Paywall.default, {
26
+ var onClose = _ref.onClose,
27
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
+ return /*#__PURE__*/_react.default.createElement(_Paywall.default, (0, _extends2.default)({
22
29
  variant: "quota",
23
30
  onClose: onClose
24
- });
31
+ }, props));
25
32
  };
26
33
 
27
34
  QuotaPaywall.propTypes = {
@@ -0,0 +1,12 @@
1
+ export namespace locales {
2
+ export { en };
3
+ export { fr };
4
+ export { ru };
5
+ export { vi };
6
+ }
7
+ declare const _default: Component;
8
+ export default _default;
9
+ import en from './locales/en.json';
10
+ import fr from './locales/fr.json';
11
+ import ru from './locales/ru.json';
12
+ import vi from './locales/vi.json';
@@ -1,5 +1,6 @@
1
1
  export default OnlyOfficePaywall;
2
- declare function OnlyOfficePaywall({ onClose, isPublic }: {
2
+ declare function OnlyOfficePaywall({ onClose, isPublic, ...props }: {
3
+ [x: string]: any;
3
4
  onClose: any;
4
5
  isPublic: any;
5
6
  }): JSX.Element;
@@ -1,5 +1,6 @@
1
1
  export default PasswordSharingPaywall;
2
- declare function PasswordSharingPaywall({ onClose }: {
2
+ declare function PasswordSharingPaywall({ onClose, ...props }: {
3
+ [x: string]: any;
3
4
  onClose: any;
4
5
  }): JSX.Element;
5
6
  declare namespace PasswordSharingPaywall {
@@ -2,7 +2,8 @@ export default QuotaPaywall;
2
2
  /**
3
3
  * Paywall displayed when user disk space is full
4
4
  */
5
- declare function QuotaPaywall({ onClose }: {
5
+ declare function QuotaPaywall({ onClose, ...props }: {
6
+ [x: string]: any;
6
7
  onClose: any;
7
8
  }): JSX.Element;
8
9
  declare namespace QuotaPaywall {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui-plus",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "Cozy-ui-plus is an extension of cozy-ui and provides components based on cozy-client",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
@@ -72,5 +72,5 @@
72
72
  "react": "^16 || ^17 || ^18",
73
73
  "react-dom": "^16 || ^17 || ^18"
74
74
  },
75
- "gitHead": "a64c909f52d7de12fdec9836ed98f107cf8443b4"
75
+ "gitHead": "c53696d649980df8a8780451c87c29bc005cea1e"
76
76
  }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "allow": "Allow",
4
+ "authentification-dialog": {
5
+ "title": "Login",
6
+ "title-oidc": "Twake Pass",
7
+ "subtitle": "For security, please confirm your identity",
8
+ "label": "Twake password",
9
+ "label-oidc": "Twake Pass password",
10
+ "abort": "Leave",
11
+ "unlock": "Unlock",
12
+ "forgotten-password": "I forgot my password",
13
+ "errors": {
14
+ "invalid_password": "Incorrect password, try again.",
15
+ "server_error": "Something went wrong with the server. Please, reload the page."
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Annuler",
3
+ "allow": "Autoriser",
4
+ "authentification-dialog": {
5
+ "title": "Authentification",
6
+ "title-oidc": "Twake Pass",
7
+ "subtitle": "Par sécurité, merci de confirmer votre identité",
8
+ "label": "Mot de passe Twake",
9
+ "label-oidc": "Mot de passe Twake Pass",
10
+ "abort": "Quitter",
11
+ "unlock": "Déverrouiller",
12
+ "forgotten-password": "J'ai oublié mon mot de passe",
13
+ "errors": {
14
+ "invalid_password": "Mot de passe incorrect, essayer à nouveau.",
15
+ "server_error": "Une erreur s'est produite. Merci de recharger la page."
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Отменить",
3
+ "allow": "Разрешить",
4
+ "authentification-dialog": {
5
+ "title": "Вход",
6
+ "title-oidc": "Twake Pass",
7
+ "subtitle": "Для безопасности подтвердите вашу личность",
8
+ "label": "Пароль Twake",
9
+ "label-oidc": "Пароль Twake Pass",
10
+ "abort": "Выйти",
11
+ "unlock": "Разблокировать",
12
+ "forgotten-password": "Я забыл пароль",
13
+ "errors": {
14
+ "invalid_password": "Неверный пароль, попробуйте еще раз.",
15
+ "server_error": "Что-то пошло не так с сервером. Пожалуйста, перезагрузите страницу."
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Hủy",
3
+ "allow": "Cho phép",
4
+ "authentification-dialog": {
5
+ "title": "Đăng nhập",
6
+ "title-oidc": "Twake Pass",
7
+ "subtitle": "Để bảo mật, vui lòng xác nhận danh tính của bạn",
8
+ "label": "Mật khẩu Twake",
9
+ "label-oidc": "Mật khẩu Twake Pass",
10
+ "abort": "Rời khỏi",
11
+ "unlock": "Mở khóa",
12
+ "forgotten-password": "Tôi quên mật khẩu",
13
+ "errors": {
14
+ "invalid_password": "Mật khẩu không chính xác, hãy thử lại.",
15
+ "server_error": "Có lỗi xảy ra với máy chủ. Vui lòng tải lại trang."
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,15 @@
1
+ import withOnlyLocales from 'cozy-ui/transpiled/react/providers/I18n/withOnlyLocales'
2
+
3
+ import en from './locales/en.json'
4
+ import fr from './locales/fr.json'
5
+ import ru from './locales/ru.json'
6
+ import vi from './locales/vi.json'
7
+
8
+ export const locales = {
9
+ en,
10
+ fr,
11
+ ru,
12
+ vi
13
+ }
14
+
15
+ export default withOnlyLocales(locales)
@@ -7,7 +7,12 @@ import withPaywallLocales from './locales/withPaywallLocales'
7
7
  /**
8
8
  * Paywall displayed when the user reach the maximum accounts allowed for a konnector
9
9
  */
10
- const MaxAccountsByKonnectorPaywall = ({ max, konnectorName, onClose }) => {
10
+ const MaxAccountsByKonnectorPaywall = ({
11
+ max,
12
+ konnectorName,
13
+ onClose,
14
+ ...props
15
+ }) => {
11
16
  return (
12
17
  <Paywall
13
18
  variant="maxAccountsByKonnector"
@@ -16,6 +21,7 @@ const MaxAccountsByKonnectorPaywall = ({ max, konnectorName, onClose }) => {
16
21
  konnectorName
17
22
  }}
18
23
  onClose={onClose}
24
+ {...props}
19
25
  />
20
26
  )
21
27
  }
@@ -7,12 +7,13 @@ import withPaywallLocales from './locales/withPaywallLocales'
7
7
  /**
8
8
  * Paywall displayed when the user reach the maximum accounts allowed for all konnectors
9
9
  */
10
- const MaxAccountsPaywall = ({ max, onClose }) => {
10
+ const MaxAccountsPaywall = ({ max, onClose, ...props }) => {
11
11
  return (
12
12
  <Paywall
13
13
  variant="maxAccounts"
14
14
  contentInterpolation={{ smart_count: max }}
15
15
  onClose={onClose}
16
+ {...props}
16
17
  />
17
18
  )
18
19
  }
@@ -7,12 +7,13 @@ import withPaywallLocales from './locales/withPaywallLocales'
7
7
  /**
8
8
  * Paywall displayed when the user reach the maximum days allowed of capture geolocated data
9
9
  */
10
- const MaxDaysToCapturePaywall = ({ days, onClose }) => {
10
+ const MaxDaysToCapturePaywall = ({ days, onClose, ...props }) => {
11
11
  return (
12
12
  <Paywall
13
13
  variant="maxDaysToCapture"
14
14
  contentInterpolation={{ smart_count: days }}
15
15
  onClose={onClose}
16
+ {...props}
16
17
  />
17
18
  )
18
19
  }
@@ -11,12 +11,13 @@ import withPaywallLocales from './locales/withPaywallLocales'
11
11
  * @param {function} onClose - Callback used when the user close the paywall
12
12
  * @returns {React.Component} - React component
13
13
  */
14
- const MaxPapersPaywall = ({ max, onClose }) => {
14
+ const MaxPapersPaywall = ({ max, onClose, ...props }) => {
15
15
  return (
16
16
  <Paywall
17
17
  variant="maxPapers"
18
18
  contentInterpolation={{ smart_count: max }}
19
19
  onClose={onClose}
20
+ {...props}
20
21
  />
21
22
  )
22
23
  }
@@ -3,8 +3,15 @@ import React from 'react'
3
3
 
4
4
  import Paywall from './Paywall'
5
5
 
6
- const OnlyOfficePaywall = ({ onClose, isPublic }) => {
7
- return <Paywall variant="onlyOffice" onClose={onClose} isPublic={isPublic} />
6
+ const OnlyOfficePaywall = ({ onClose, isPublic, ...props }) => {
7
+ return (
8
+ <Paywall
9
+ variant="onlyOffice"
10
+ onClose={onClose}
11
+ isPublic={isPublic}
12
+ {...props}
13
+ />
14
+ )
8
15
  }
9
16
 
10
17
  /**
@@ -3,9 +3,14 @@ import React from 'react'
3
3
 
4
4
  import Paywall from './Paywall'
5
5
 
6
- const PasswordSharingPaywall = ({ onClose }) => {
6
+ const PasswordSharingPaywall = ({ onClose, ...props }) => {
7
7
  return (
8
- <Paywall variant="passwordSharing" onClose={onClose} isPublic={false} />
8
+ <Paywall
9
+ variant="passwordSharing"
10
+ onClose={onClose}
11
+ isPublic={false}
12
+ {...props}
13
+ />
9
14
  )
10
15
  }
11
16
 
@@ -6,8 +6,8 @@ import Paywall from './Paywall'
6
6
  /**
7
7
  * Paywall displayed when user disk space is full
8
8
  */
9
- const QuotaPaywall = ({ onClose }) => {
10
- return <Paywall variant="quota" onClose={onClose} />
9
+ const QuotaPaywall = ({ onClose, ...props }) => {
10
+ return <Paywall variant="quota" onClose={onClose} {...props} />
11
11
  }
12
12
 
13
13
  QuotaPaywall.propTypes = {