@bottlebooks/valid-values 1.2.0 → 1.2.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 +6 -0
- package/dist/core/translate.d.ts +1 -1
- package/dist/core/translate.d.ts.map +1 -1
- package/dist/core/translate.js +25 -7
- package/dist/main.js +21 -21
- package/dist/validValues/country.d.ts +6 -1
- package/dist/validValues/country.d.ts.map +1 -1
- package/dist/validValues/country.js +2 -149
- package/dist/validValues/designation.d.ts +0 -115
- package/dist/validValues/designation.d.ts.map +1 -1
- package/dist/validValues/subregion.d.ts +0 -2
- package/dist/validValues/subregion.d.ts.map +1 -1
- package/dist/validValues/subregion.js +1385 -2770
- package/dist/validValues/types/ValidValueDefinition.d.ts +1 -1
- package/dist/validValues/types/ValidValueDefinition.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/core/translate.ts +33 -9
- package/src/locales/po/bg.po +1542 -1542
- package/src/locales/po/de.po +1542 -1542
- package/src/locales/po/ee.po +1542 -1542
- package/src/locales/po/en.po +1542 -1542
- package/src/locales/po/es.po +1542 -1542
- package/src/locales/po/fi.po +1542 -1542
- package/src/locales/po/fr.po +1542 -1542
- package/src/locales/po/hr.po +1542 -1542
- package/src/locales/po/hu.po +1542 -1542
- package/src/locales/po/it.po +1542 -1542
- package/src/locales/po/lt.po +1542 -1542
- package/src/locales/po/lv.po +1542 -1542
- package/src/locales/po/mt.po +1542 -1542
- package/src/locales/po/nl.po +1542 -1542
- package/src/locales/po/pl.po +1542 -1542
- package/src/locales/po/pt.po +1542 -1542
- package/src/locales/po/ro.po +1542 -1542
- package/src/locales/po/se.po +1542 -1542
- package/src/locales/po/si.po +1542 -1542
- package/src/locales/po/sk.po +1542 -1542
- package/src/main.ts +16 -13
- package/src/validValues/country.ts +7 -148
- package/src/validValues/designation.ts +0 -5
- package/src/validValues/subregion.ts +1 -1387
- package/src/validValues/types/ValidValueDefinition.ts +1 -1
- package/dist/validValues/types/Country.js +0 -5
- package/src/validValues/types/Country.ts +0 -39
|
@@ -12,7 +12,7 @@ export interface ValidValueDefinition {
|
|
|
12
12
|
*
|
|
13
13
|
* Define it using `defineMessage()` from @lingui/macro.
|
|
14
14
|
*/
|
|
15
|
-
title
|
|
15
|
+
title: string | MessageDescriptor;
|
|
16
16
|
/**
|
|
17
17
|
* Fields that will never be stored in the database,
|
|
18
18
|
* because they are not relevant to the frontend rendering.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { MessageDescriptor } from '@lingui/core';
|
|
2
|
-
interface ValidValueEnabledFor {
|
|
3
|
-
field: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface Country {
|
|
8
|
-
key: string;
|
|
9
|
-
enabledFor?: ValidValueEnabledFor[];
|
|
10
|
-
/**
|
|
11
|
-
* The translatable title of the valid value.
|
|
12
|
-
*
|
|
13
|
-
* Define it using `defineMessage()` from @lingui/macro.
|
|
14
|
-
*/
|
|
15
|
-
title?: string | MessageDescriptor;
|
|
16
|
-
/**
|
|
17
|
-
* Fields that will never be stored in the database,
|
|
18
|
-
* because they are not relevant to the frontend rendering.
|
|
19
|
-
* They are only used for the form, like grouping values for easier entry.
|
|
20
|
-
*/
|
|
21
|
-
form?: {
|
|
22
|
-
/**
|
|
23
|
-
* A helpful description shown only when using the form.
|
|
24
|
-
*/
|
|
25
|
-
// description?: MessageDescriptor;
|
|
26
|
-
};
|
|
27
|
-
regions?: string[];
|
|
28
|
-
/**
|
|
29
|
-
* Fields that are stored in the database together with each lookup value,
|
|
30
|
-
* because they affect the frontend rendering.
|
|
31
|
-
* They are also included in the hash values to detect breaking changes.
|
|
32
|
-
*
|
|
33
|
-
* We should try to avoid them if possible because if false positives:
|
|
34
|
-
* Any change in one of those fields would lead to
|
|
35
|
-
* eLabels that are marked as incompatible,
|
|
36
|
-
* although there might be no user-visible changes.
|
|
37
|
-
*/
|
|
38
|
-
frontend?: {};
|
|
39
|
-
}
|