cozy-ui 95.10.0 → 95.11.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,11 @@
|
|
|
1
|
+
# [95.11.0](https://github.com/cozy/cozy-ui/compare/v95.10.0...v95.11.0) (2023-11-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add missing `bicNumber` attribute ([ed37277](https://github.com/cozy/cozy-ui/commit/ed37277))
|
|
7
|
+
* Remove last occurence of `mespapiers.migrated.metadata` flag ([11c3147](https://github.com/cozy/cozy-ui/commit/11c3147))
|
|
8
|
+
|
|
1
9
|
# [95.10.0](https://github.com/cozy/cozy-ui/compare/v95.9.0...v95.10.0) (2023-11-14)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
package/react/Viewer/helpers.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { models, generateWebLink } from 'cozy-client'
|
|
2
|
-
import flag from 'cozy-flags'
|
|
3
2
|
|
|
4
3
|
const {
|
|
5
4
|
isEncrypted,
|
|
@@ -22,23 +21,14 @@ export const knownDateMetadataNames = [
|
|
|
22
21
|
'date',
|
|
23
22
|
'datetime'
|
|
24
23
|
]
|
|
25
|
-
export const knownInformationMetadataNames =
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'vinNumber',
|
|
34
|
-
'ibanNumber',
|
|
35
|
-
'bicNumber',
|
|
36
|
-
'country',
|
|
37
|
-
'passportNumber',
|
|
38
|
-
'refTaxIncome',
|
|
39
|
-
'contractType',
|
|
40
|
-
'noticePeriod'
|
|
41
|
-
]
|
|
24
|
+
export const knownInformationMetadataNames = [
|
|
25
|
+
'number',
|
|
26
|
+
'bicNumber',
|
|
27
|
+
'country',
|
|
28
|
+
'refTaxIncome',
|
|
29
|
+
'contractType',
|
|
30
|
+
'noticePeriod'
|
|
31
|
+
]
|
|
42
32
|
export const knownOtherMetadataNames = ['contact', 'page', 'qualification']
|
|
43
33
|
|
|
44
34
|
export const getCurrentModel = metadataName => {
|
|
@@ -8,7 +8,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8
8
|
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import { models, generateWebLink } from 'cozy-client';
|
|
11
|
-
import flag from 'cozy-flags';
|
|
12
11
|
var _models$file = models.file,
|
|
13
12
|
isEncrypted = _models$file.isEncrypted,
|
|
14
13
|
isFromKonnector = _models$file.isFromKonnector,
|
|
@@ -16,7 +15,7 @@ var _models$file = models.file,
|
|
|
16
15
|
hasCertifications = _models$file.hasCertifications,
|
|
17
16
|
normalize = _models$file.normalize;
|
|
18
17
|
export var knownDateMetadataNames = ['AObtentionDate', 'BObtentionDate', 'CObtentionDate', 'DObtentionDate', 'obtentionDate', 'expirationDate', 'referencedDate', 'issueDate', 'shootingDate', 'date', 'datetime'];
|
|
19
|
-
export var knownInformationMetadataNames =
|
|
18
|
+
export var knownInformationMetadataNames = ['number', 'bicNumber', 'country', 'refTaxIncome', 'contractType', 'noticePeriod'];
|
|
20
19
|
export var knownOtherMetadataNames = ['contact', 'page', 'qualification'];
|
|
21
20
|
export var getCurrentModel = function getCurrentModel(metadataName) {
|
|
22
21
|
if (knownDateMetadataNames.includes(metadataName) || knownInformationMetadataNames.includes(metadataName)) {
|