@monkvision/common 4.0.14 → 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);
@@ -445,16 +445,34 @@ exports.vehiclePartLabels = (_a = {},
445
445
  de: 'Kofferraum',
446
446
  nl: 'Kofferbak',
447
447
  },
448
+ _a[types_1.VehiclePart.BACKGROUND] = {
449
+ en: 'Background',
450
+ fr: 'Arrière-plan',
451
+ de: 'Hintergrund',
452
+ nl: 'Achtergrond',
453
+ },
454
+ _a[types_1.VehiclePart.CAR_INSIDE] = {
455
+ en: 'Car Inside',
456
+ fr: 'Intérieur',
457
+ de: 'Auto innen',
458
+ nl: 'Auto binnen',
459
+ },
460
+ _a[types_1.VehiclePart.DAMAGED_CAR_INSIDE] = {
461
+ en: 'Damaged Car Inside',
462
+ fr: 'Intérieur endommagé',
463
+ de: 'Beschädigtes Auto innen',
464
+ nl: 'Beschadigde auto binnen',
465
+ },
466
+ _a[types_1.VehiclePart.HANDLE_BACK_CENTER] = {
467
+ en: 'Handle Back Center',
468
+ fr: 'Poignée arrière centre',
469
+ de: 'Griff Rückseite Mitte',
470
+ nl: 'Handgreep Terug Midden',
471
+ },
448
472
  _a[types_1.VehiclePart.IGNORE] = {
449
473
  en: 'IGNORE',
450
474
  fr: 'IGNORE',
451
475
  de: 'IGNORE',
452
476
  nl: 'IGNORE',
453
477
  },
454
- _a[types_1.VehiclePart.BACKGROUND] = {
455
- en: 'BACKGROUND',
456
- fr: 'BACKGROUND',
457
- de: 'BACKGROUND',
458
- nl: 'BACKGROUND',
459
- },
460
478
  _a);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/common",
3
- "version": "4.0.14",
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.14",
32
- "@monkvision/monitoring": "4.0.14",
33
- "@monkvision/sights": "4.0.14",
34
- "@monkvision/types": "4.0.14",
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.14",
51
- "@monkvision/eslint-config-typescript": "4.0.14",
52
- "@monkvision/eslint-config-typescript-react": "4.0.14",
53
- "@monkvision/jest-config": "4.0.14",
54
- "@monkvision/prettier-config": "4.0.14",
55
- "@monkvision/test-utils": "4.0.14",
56
- "@monkvision/typescript-config": "4.0.14",
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": "ef206bab4a5ad0e8a8f94dee02ea4315ba1d9c7c"
99
+ "gitHead": "762612f30c2f46a1e6c43ba2de6384edcbc6c4f4"
100
100
  }