@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.
Files changed (44) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/core/translate.d.ts +1 -1
  3. package/dist/core/translate.d.ts.map +1 -1
  4. package/dist/core/translate.js +25 -7
  5. package/dist/main.js +21 -21
  6. package/dist/validValues/country.d.ts +6 -1
  7. package/dist/validValues/country.d.ts.map +1 -1
  8. package/dist/validValues/country.js +2 -149
  9. package/dist/validValues/designation.d.ts +0 -115
  10. package/dist/validValues/designation.d.ts.map +1 -1
  11. package/dist/validValues/subregion.d.ts +0 -2
  12. package/dist/validValues/subregion.d.ts.map +1 -1
  13. package/dist/validValues/subregion.js +1385 -2770
  14. package/dist/validValues/types/ValidValueDefinition.d.ts +1 -1
  15. package/dist/validValues/types/ValidValueDefinition.d.ts.map +1 -1
  16. package/package.json +2 -2
  17. package/src/core/translate.ts +33 -9
  18. package/src/locales/po/bg.po +1542 -1542
  19. package/src/locales/po/de.po +1542 -1542
  20. package/src/locales/po/ee.po +1542 -1542
  21. package/src/locales/po/en.po +1542 -1542
  22. package/src/locales/po/es.po +1542 -1542
  23. package/src/locales/po/fi.po +1542 -1542
  24. package/src/locales/po/fr.po +1542 -1542
  25. package/src/locales/po/hr.po +1542 -1542
  26. package/src/locales/po/hu.po +1542 -1542
  27. package/src/locales/po/it.po +1542 -1542
  28. package/src/locales/po/lt.po +1542 -1542
  29. package/src/locales/po/lv.po +1542 -1542
  30. package/src/locales/po/mt.po +1542 -1542
  31. package/src/locales/po/nl.po +1542 -1542
  32. package/src/locales/po/pl.po +1542 -1542
  33. package/src/locales/po/pt.po +1542 -1542
  34. package/src/locales/po/ro.po +1542 -1542
  35. package/src/locales/po/se.po +1542 -1542
  36. package/src/locales/po/si.po +1542 -1542
  37. package/src/locales/po/sk.po +1542 -1542
  38. package/src/main.ts +16 -13
  39. package/src/validValues/country.ts +7 -148
  40. package/src/validValues/designation.ts +0 -5
  41. package/src/validValues/subregion.ts +1 -1387
  42. package/src/validValues/types/ValidValueDefinition.ts +1 -1
  43. package/dist/validValues/types/Country.js +0 -5
  44. 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?: string | MessageDescriptor;
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,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -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
- }