cozy-ui 108.1.0 → 109.0.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 +25 -0
- package/package.json +3 -3
- package/react/BottomSheet/BottomSheetHeader.jsx +1 -0
- package/react/ListItem/ExpandedAttributes/helpers.js +2 -4
- package/react/ListItem/Readme.md +1 -0
- package/react/ListItem/locales/en.json +1 -1
- package/react/ListItem/locales/fr.json +1 -1
- package/react/Viewer/Footer/Sharing.jsx +1 -1
- package/transpiled/react/BottomSheet/BottomSheetHeader.js +1 -0
- package/transpiled/react/ListItem/ExpandedAttributes/helpers.js +3 -1
- package/transpiled/react/ListItem/hoc/withListItemLocales.js +2 -2
- package/transpiled/react/Viewer/Footer/Sharing.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## [109.0.1](https://github.com/cozy/cozy-ui/compare/v109.0.0...v109.0.1) (2024-06-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **ExpandedAttributes:** Use Client to get excluded metadata ([1b49153](https://github.com/cozy/cozy-ui/commit/1b49153))
|
|
7
|
+
|
|
8
|
+
# [109.0.0](https://github.com/cozy/cozy-ui/compare/v108.1.0...v109.0.0) (2024-06-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **Viewer:** Add displayName static property to `BottomSheetHeader` ([2b6dc97](https://github.com/cozy/cozy-ui/commit/2b6dc97))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* Change translation of `confidentialNumber` ([73e89fe](https://github.com/cozy/cozy-ui/commit/73e89fe))
|
|
19
|
+
* Upgrade cozy-sharing peerDeps ([9c2c839](https://github.com/cozy/cozy-ui/commit/9c2c839))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* you must have `cozy-sharing >= 14.1.0`
|
|
25
|
+
|
|
1
26
|
# [108.1.0](https://github.com/cozy/cozy-ui/compare/v108.0.0...v108.1.0) (2024-06-06)
|
|
2
27
|
|
|
3
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "109.0.1",
|
|
4
4
|
"description": "Cozy apps UI SDK",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"cozy-harvest-lib": "^6.7.3",
|
|
98
98
|
"cozy-intent": "1.16.1",
|
|
99
99
|
"cozy-logger": "^1.9.0",
|
|
100
|
-
"cozy-sharing": "^
|
|
100
|
+
"cozy-sharing": "^14.1.0",
|
|
101
101
|
"cozy-stack-client": "^47.4.0",
|
|
102
102
|
"css-loader": "0.28.11",
|
|
103
103
|
"cssnano": "4.1.11",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"cozy-device-helper": "^2.0.0",
|
|
186
186
|
"cozy-harvest-lib": "^6.7.3",
|
|
187
187
|
"cozy-intent": ">=1.3.0",
|
|
188
|
-
"cozy-sharing": "
|
|
188
|
+
"cozy-sharing": ">=14.1.0",
|
|
189
189
|
"puppeteer": "^1.20.0",
|
|
190
190
|
"react": "^16.8.6",
|
|
191
191
|
"react-dom": "^16.8.6"
|
|
@@ -19,11 +19,9 @@ export const normalizeExpandedAttribute = attr =>
|
|
|
19
19
|
export const notExpandedAttributes = {
|
|
20
20
|
'io.cozy.contacts': ['fullname', 'civility', 'note'],
|
|
21
21
|
'io.cozy.files': [
|
|
22
|
-
|
|
23
|
-
'metadata.datetime',
|
|
24
|
-
'metadata.referencedDate',
|
|
25
|
-
'metadata.expirationDate',
|
|
22
|
+
...KNOWN_DATE_METADATA_NAMES.map(x => `metadata.${x}`),
|
|
26
23
|
'metadata.noticePeriod',
|
|
24
|
+
'name',
|
|
27
25
|
'flexsearchProps:translated:qualificationLabel',
|
|
28
26
|
'flexsearchProps:translated:driverLicense',
|
|
29
27
|
'flexsearchProps:translated:paymentProofFamilyAllowance',
|
package/react/ListItem/Readme.md
CHANGED
|
@@ -157,6 +157,7 @@ const files = [
|
|
|
157
157
|
datetimeLabel: 'expirationDate',
|
|
158
158
|
referencedDate: '2024-01-01T12:00:00.000Z',
|
|
159
159
|
expirationDate: '2024-01-11T12:00:00.000Z',
|
|
160
|
+
issueDate: '2024-01-11T12:00:00.000Z',
|
|
160
161
|
noticePeriod: '30',
|
|
161
162
|
qualification: {
|
|
162
163
|
label: 'driver_license'
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"netSocialAmount": "Net social amount",
|
|
33
33
|
"vehicle": {
|
|
34
34
|
"licenseNumber": "Vehicle registration number",
|
|
35
|
-
"confidentialNumber": "Confidential code"
|
|
35
|
+
"confidentialNumber": "Confidential vehicle registration code"
|
|
36
36
|
},
|
|
37
37
|
"number": {
|
|
38
38
|
"pay_sheet": "Gross remuneration",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"netSocialAmount": "Montant net social",
|
|
33
33
|
"vehicle": {
|
|
34
34
|
"licenseNumber": "Plaque d'immatriculation",
|
|
35
|
-
"confidentialNumber": "Code confidentiel"
|
|
35
|
+
"confidentialNumber": "Code confidentiel de la carte grise"
|
|
36
36
|
},
|
|
37
37
|
"number": {
|
|
38
38
|
"pay_sheet": "Rémunération brute",
|
|
@@ -10,7 +10,9 @@ export var normalizeExpandedAttribute = function normalizeExpandedAttribute(attr
|
|
|
10
10
|
|
|
11
11
|
export var notExpandedAttributes = {
|
|
12
12
|
'io.cozy.contacts': ['fullname', 'civility', 'note'],
|
|
13
|
-
'io.cozy.files': [
|
|
13
|
+
'io.cozy.files': [].concat(_toConsumableArray(KNOWN_DATE_METADATA_NAMES.map(function (x) {
|
|
14
|
+
return "metadata.".concat(x);
|
|
15
|
+
})), ['metadata.noticePeriod', 'name', 'flexsearchProps:translated:qualificationLabel', 'flexsearchProps:translated:driverLicense', 'flexsearchProps:translated:paymentProofFamilyAllowance', 'flexsearchProps:translated:caf', 'flexsearchProps:translated:vehicleRegistration', 'flexsearchProps:translated:nationalIdCard', 'flexsearchProps:translated:bankDetails', 'flexsearchProps:translated:paySheet', 'flexsearchProps:translated:passport', 'flexsearchProps:translated:residencePermit'])
|
|
14
16
|
}; // attributes that we want to display if no attribute of the document is related to the search
|
|
15
17
|
|
|
16
18
|
export var defaultExpandedAttributes = {
|
|
@@ -33,7 +33,7 @@ var en = {
|
|
|
33
33
|
netSocialAmount: "Net social amount",
|
|
34
34
|
vehicle: {
|
|
35
35
|
licenseNumber: "Vehicle registration number",
|
|
36
|
-
confidentialNumber: "Confidential code"
|
|
36
|
+
confidentialNumber: "Confidential vehicle registration code"
|
|
37
37
|
},
|
|
38
38
|
number: {
|
|
39
39
|
pay_sheet: "Gross remuneration",
|
|
@@ -108,7 +108,7 @@ var fr = {
|
|
|
108
108
|
netSocialAmount: "Montant net social",
|
|
109
109
|
vehicle: {
|
|
110
110
|
licenseNumber: "Plaque d'immatriculation",
|
|
111
|
-
confidentialNumber: "Code confidentiel"
|
|
111
|
+
confidentialNumber: "Code confidentiel de la carte grise"
|
|
112
112
|
},
|
|
113
113
|
number: {
|
|
114
114
|
pay_sheet: "R\xE9mun\xE9ration brute",
|
|
@@ -26,7 +26,7 @@ var Sharing = function Sharing(_ref) {
|
|
|
26
26
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
27
27
|
icon: ShareIcon
|
|
28
28
|
})) : /*#__PURE__*/React.createElement(ShareButton, {
|
|
29
|
-
|
|
29
|
+
fullWidth: true,
|
|
30
30
|
useShortLabel: true,
|
|
31
31
|
docId: file.id,
|
|
32
32
|
onClick: function onClick() {
|