@monkvision/common 4.0.15 → 4.0.16

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.
@@ -30,7 +30,7 @@ This wrapped is used by internal monk SDK to wrap the component with I18nextProv
30
30
 
31
31
  ### Example of usage
32
32
 
33
- ```ts
33
+ ```tsx
34
34
  import i18n from '@monkvision/common';
35
35
  import { i18nMyComponent } from './i18n';
36
36
 
@@ -0,0 +1,5 @@
1
+ import { DamageType, TranslationObject } from '@monkvision/types';
2
+ /**
3
+ * The translated labels for each damage type available in the SDK.
4
+ */
5
+ export declare const damageTypeLabels: Record<DamageType, TranslationObject>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.damageTypeLabels = void 0;
5
+ var types_1 = require("@monkvision/types");
6
+ /**
7
+ * The translated labels for each damage type available in the SDK.
8
+ */
9
+ exports.damageTypeLabels = (_a = {},
10
+ _a[types_1.DamageType.SCRATCH] = {
11
+ en: 'Scratch',
12
+ fr: 'Rayure',
13
+ de: 'Kratzer',
14
+ nl: 'Kras',
15
+ },
16
+ _a[types_1.DamageType.DENT] = {
17
+ en: 'Dent',
18
+ fr: 'Bosse',
19
+ de: 'Beule',
20
+ nl: 'Deuk',
21
+ },
22
+ _a[types_1.DamageType.BROKEN_GLASS] = {
23
+ en: 'Broken Glass',
24
+ fr: 'Bris de glace',
25
+ de: 'Zerbrochenes Glas',
26
+ nl: 'Gebroken glas',
27
+ },
28
+ _a[types_1.DamageType.BROKEN_LIGHT] = {
29
+ en: 'Broken Light',
30
+ fr: 'Feu cassé',
31
+ de: 'Kaputtem Licht',
32
+ nl: 'Gebroken licht',
33
+ },
34
+ _a[types_1.DamageType.HUBCAP_SCRATCH] = {
35
+ en: 'Hubcap Scratch',
36
+ fr: 'Enjoliveur rayé',
37
+ de: 'Zerkratzte Radkappe',
38
+ nl: 'Gebroken wieldop',
39
+ },
40
+ _a[types_1.DamageType.MISSING_HUBCAP] = {
41
+ en: 'Missing Hubcap',
42
+ fr: 'Enjoliveur manquant',
43
+ de: 'Fehlende Radkappe',
44
+ nl: 'Ontbrekende wieldop',
45
+ },
46
+ _a[types_1.DamageType.SMASH] = {
47
+ en: 'Smash',
48
+ fr: 'Collision',
49
+ de: 'Zusammenstoß',
50
+ nl: 'Botsing',
51
+ },
52
+ _a[types_1.DamageType.BODY_CRACK] = {
53
+ en: 'Body Crack',
54
+ fr: 'Fissure dans la carrosserie',
55
+ de: 'Karosserieriss',
56
+ nl: 'Carrosseriescheur',
57
+ },
58
+ _a[types_1.DamageType.MISSING_PIECE] = {
59
+ en: 'Missing Piece',
60
+ fr: 'Pièce manquante',
61
+ de: 'Fehlendes Teil',
62
+ nl: 'Ontbrekend onderdeel',
63
+ },
64
+ _a[types_1.DamageType.RUSTINESS] = {
65
+ en: 'Rustiness',
66
+ fr: 'Rouille',
67
+ de: 'Rostigkeit',
68
+ nl: 'Roest',
69
+ },
70
+ _a);
@@ -1,2 +1,3 @@
1
+ export * from './damageTypes';
1
2
  export * from './vehicleParts';
2
3
  export * from './image';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./damageTypes"), exports);
17
18
  __exportStar(require("./vehicleParts"), exports);
18
19
  __exportStar(require("./image"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/common",
3
- "version": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs common logic package",
@@ -28,10 +28,10 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/analytics": "4.0.15",
32
- "@monkvision/monitoring": "4.0.15",
33
- "@monkvision/sights": "4.0.15",
34
- "@monkvision/types": "4.0.15",
31
+ "@monkvision/analytics": "4.0.16",
32
+ "@monkvision/monitoring": "4.0.16",
33
+ "@monkvision/sights": "4.0.16",
34
+ "@monkvision/types": "4.0.16",
35
35
  "i18next": "^23.4.5",
36
36
  "jsonwebtoken": "^9.0.2",
37
37
  "jwt-decode": "^4.0.0",
@@ -47,13 +47,13 @@
47
47
  "react-router-dom": "^6.22.3"
48
48
  },
49
49
  "devDependencies": {
50
- "@monkvision/eslint-config-base": "4.0.15",
51
- "@monkvision/eslint-config-typescript": "4.0.15",
52
- "@monkvision/eslint-config-typescript-react": "4.0.15",
53
- "@monkvision/jest-config": "4.0.15",
54
- "@monkvision/prettier-config": "4.0.15",
55
- "@monkvision/test-utils": "4.0.15",
56
- "@monkvision/typescript-config": "4.0.15",
50
+ "@monkvision/eslint-config-base": "4.0.16",
51
+ "@monkvision/eslint-config-typescript": "4.0.16",
52
+ "@monkvision/eslint-config-typescript-react": "4.0.16",
53
+ "@monkvision/jest-config": "4.0.16",
54
+ "@monkvision/prettier-config": "4.0.16",
55
+ "@monkvision/test-utils": "4.0.16",
56
+ "@monkvision/typescript-config": "4.0.16",
57
57
  "@testing-library/react": "^12.1.5",
58
58
  "@testing-library/react-hooks": "^8.0.1",
59
59
  "@types/jest": "^29.2.2",
@@ -96,5 +96,5 @@
96
96
  "url": "https://github.com/monkvision/monkjs/issues"
97
97
  },
98
98
  "homepage": "https://github.com/monkvision/monkjs",
99
- "gitHead": "4ef0d6668a20018d374cc8c0588864670a973c2b"
99
+ "gitHead": "762612f30c2f46a1e6c43ba2de6384edcbc6c4f4"
100
100
  }