cozy-ui 86.0.0 → 86.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [86.1.0](https://github.com/cozy/cozy-ui/compare/v86.0.0...v86.1.0) (2023-06-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * Remove `mespapiers.migrated.metadata` flag ([43bcc3e](https://github.com/cozy/cozy-ui/commit/43bcc3e))
7
+
1
8
  # [86.0.0](https://github.com/cozy/cozy-ui/compare/v85.9.0...v86.0.0) (2023-06-20)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "86.0.0",
3
+ "version": "86.1.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -2,7 +2,6 @@ import React, { forwardRef } from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
 
4
4
  import { getBoundT } from 'cozy-client/dist/models/document/locales'
5
- import flag from 'cozy-flags'
6
5
 
7
6
  import ListItem from '../../MuiCozyTheme/ListItem'
8
7
  import ListItemSecondaryAction from '../../MuiCozyTheme/ListItemSecondaryAction'
@@ -42,7 +41,7 @@ const QualificationListItemInformation = forwardRef(
42
41
 
43
42
  const currentValue = makeInformationValue({ name, value, t, scannerT })
44
43
  const title =
45
- name === 'number' && flag('mespapiers.migrated.metadata') // TODO Remove duplicate translations when remove this flag
44
+ name === 'number'
46
45
  ? t(
47
46
  `Viewer.panel.qualification.information.title.${qualificationLabel}.${name}`
48
47
  )
@@ -79,13 +79,7 @@
79
79
  "country": "Beneficiary nationality",
80
80
  "refTaxIncome": "Reference tax income",
81
81
  "contractType": "Contract type",
82
- "noticePeriod": "Expiration alert",
83
- "number": "License number",
84
- "cafFileNumber": "CAF file number",
85
- "cardNumber": "National ID card number",
86
- "vinNumber": "Vehicle registration number (VIN)",
87
- "ibanNumber": "IBAN number",
88
- "passportNumber": "Passport number"
82
+ "noticePeriod": "Expiration alert"
89
83
  },
90
84
  "day": "day |||| days"
91
85
  },
@@ -79,13 +79,7 @@
79
79
  "country": "Nationalité du bénéficiaire",
80
80
  "refTaxIncome": "Revenu fiscal de référence",
81
81
  "contractType": "Type de contrat",
82
- "noticePeriod": "Alerte d’expiration",
83
- "number": "Numéro du permis",
84
- "cafFileNumber": "Numéro de dossier CAF",
85
- "cardNumber": "Numéro de la carte d'identité",
86
- "vinNumber": "Numéro de la carte grise (VIN)",
87
- "ibanNumber": "Numéro d'IBAN",
88
- "passportNumber": "Numéro du passeport"
82
+ "noticePeriod": "Alerte d’expiration"
89
83
  },
90
84
  "day": "jour |||| jours"
91
85
  },
@@ -1,7 +1,6 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { getBoundT } from 'cozy-client/dist/models/document/locales';
4
- import flag from 'cozy-flags';
5
4
  import ListItem from "cozy-ui/transpiled/react/MuiCozyTheme/ListItem";
6
5
  import ListItemSecondaryAction from "cozy-ui/transpiled/react/MuiCozyTheme/ListItemSecondaryAction";
7
6
  import IconButton from "cozy-ui/transpiled/react/IconButton";
@@ -59,8 +58,7 @@ var QualificationListItemInformation = /*#__PURE__*/forwardRef(function (_ref2,
59
58
  t: t,
60
59
  scannerT: scannerT
61
60
  });
62
- var title = name === 'number' && flag('mespapiers.migrated.metadata') // TODO Remove duplicate translations when remove this flag
63
- ? t("Viewer.panel.qualification.information.title.".concat(qualificationLabel, ".").concat(name)) : t("Viewer.panel.qualification.information.title.".concat(name));
61
+ var title = name === 'number' ? t("Viewer.panel.qualification.information.title.".concat(qualificationLabel, ".").concat(name)) : t("Viewer.panel.qualification.information.title.".concat(name));
64
62
  return /*#__PURE__*/React.createElement(ListItem, {
65
63
  className: 'u-pl-2 u-pr-3'
66
64
  }, /*#__PURE__*/React.createElement(QualificationListItemText, {
@@ -80,13 +80,7 @@ var en = {
80
80
  country: "Beneficiary nationality",
81
81
  refTaxIncome: "Reference tax income",
82
82
  contractType: "Contract type",
83
- noticePeriod: "Expiration alert",
84
- number: "License number",
85
- cafFileNumber: "CAF file number",
86
- cardNumber: "National ID card number",
87
- vinNumber: "Vehicle registration number (VIN)",
88
- ibanNumber: "IBAN number",
89
- passportNumber: "Passport number"
83
+ noticePeriod: "Expiration alert"
90
84
  },
91
85
  day: "day |||| days"
92
86
  },
@@ -209,13 +203,7 @@ var fr = {
209
203
  country: "Nationalit\xE9 du b\xE9n\xE9ficiaire",
210
204
  refTaxIncome: "Revenu fiscal de r\xE9f\xE9rence",
211
205
  contractType: "Type de contrat",
212
- noticePeriod: "Alerte d\u2019expiration",
213
- number: "Num\xE9ro du permis",
214
- cafFileNumber: "Num\xE9ro de dossier CAF",
215
- cardNumber: "Num\xE9ro de la carte d'identit\xE9",
216
- vinNumber: "Num\xE9ro de la carte grise (VIN)",
217
- ibanNumber: "Num\xE9ro d'IBAN",
218
- passportNumber: "Num\xE9ro du passeport"
206
+ noticePeriod: "Alerte d\u2019expiration"
219
207
  },
220
208
  day: "jour |||| jours"
221
209
  },