@voyantjs/sellability-ui 0.16.0 → 0.18.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.
@@ -0,0 +1,102 @@
1
+ export declare const sellabilityUiRo: {
2
+ common: {
3
+ loading: string;
4
+ cancel: string;
5
+ active: string;
6
+ channelKindLabels: {
7
+ direct: string;
8
+ affiliate: string;
9
+ ota: string;
10
+ reseller: string;
11
+ marketplace: string;
12
+ api_partner: string;
13
+ connect: string;
14
+ };
15
+ channelStatusLabels: {
16
+ active: string;
17
+ inactive: string;
18
+ pending: string;
19
+ archived: string;
20
+ };
21
+ productStatusLabels: {
22
+ draft: string;
23
+ active: string;
24
+ archived: string;
25
+ };
26
+ productBookingModeLabels: {
27
+ date: string;
28
+ date_time: string;
29
+ open: string;
30
+ stay: string;
31
+ transfer: string;
32
+ itinerary: string;
33
+ other: string;
34
+ };
35
+ policyScopeLabels: {
36
+ global: string;
37
+ product: string;
38
+ option: string;
39
+ market: string;
40
+ channel: string;
41
+ };
42
+ policyTypeLabels: {
43
+ capability: string;
44
+ occupancy: string;
45
+ pickup: string;
46
+ question: string;
47
+ allotment: string;
48
+ availability_window: string;
49
+ currency: string;
50
+ custom: string;
51
+ };
52
+ };
53
+ channelCombobox: {
54
+ placeholder: string;
55
+ empty: string;
56
+ };
57
+ marketCombobox: {
58
+ placeholder: string;
59
+ empty: string;
60
+ };
61
+ productCombobox: {
62
+ placeholder: string;
63
+ empty: string;
64
+ };
65
+ productOptionCombobox: {
66
+ placeholder: string;
67
+ empty: string;
68
+ selectProductFirst: string;
69
+ };
70
+ policyDialog: {
71
+ titles: {
72
+ create: string;
73
+ edit: string;
74
+ };
75
+ fields: {
76
+ name: string;
77
+ scope: string;
78
+ type: string;
79
+ priority: string;
80
+ product: string;
81
+ option: string;
82
+ market: string;
83
+ channel: string;
84
+ conditionsJson: string;
85
+ effectsJson: string;
86
+ notes: string;
87
+ active: string;
88
+ };
89
+ placeholders: {
90
+ name: string;
91
+ };
92
+ actions: {
93
+ create: string;
94
+ save: string;
95
+ };
96
+ validation: {
97
+ nameRequired: string;
98
+ jsonObject: string;
99
+ };
100
+ };
101
+ };
102
+ //# sourceMappingURL=ro.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGK,CAAA"}
@@ -0,0 +1,101 @@
1
+ export const sellabilityUiRo = {
2
+ common: {
3
+ loading: "Se incarca...",
4
+ cancel: "Anuleaza",
5
+ active: "Activ",
6
+ channelKindLabels: {
7
+ direct: "Direct",
8
+ affiliate: "Afiliat",
9
+ ota: "OTA",
10
+ reseller: "Revanzator",
11
+ marketplace: "Marketplace",
12
+ api_partner: "Partener API",
13
+ connect: "Connect",
14
+ },
15
+ channelStatusLabels: {
16
+ active: "Activ",
17
+ inactive: "Inactiv",
18
+ pending: "In asteptare",
19
+ archived: "Arhivat",
20
+ },
21
+ productStatusLabels: {
22
+ draft: "Ciorna",
23
+ active: "Activ",
24
+ archived: "Arhivat",
25
+ },
26
+ productBookingModeLabels: {
27
+ date: "Data",
28
+ date_time: "Data si ora",
29
+ open: "Deschis",
30
+ stay: "Sejur",
31
+ transfer: "Transfer",
32
+ itinerary: "Itinerar",
33
+ other: "Altul",
34
+ },
35
+ policyScopeLabels: {
36
+ global: "Global",
37
+ product: "Produs",
38
+ option: "Optiune",
39
+ market: "Piata",
40
+ channel: "Canal",
41
+ },
42
+ policyTypeLabels: {
43
+ capability: "Capabilitate",
44
+ occupancy: "Ocupare",
45
+ pickup: "Preluare",
46
+ question: "Intrebare",
47
+ allotment: "Alocare",
48
+ availability_window: "Fereastra de disponibilitate",
49
+ currency: "Moneda",
50
+ custom: "Personalizat",
51
+ },
52
+ },
53
+ channelCombobox: {
54
+ placeholder: "Selecteaza canal...",
55
+ empty: "Nu s-au gasit canale.",
56
+ },
57
+ marketCombobox: {
58
+ placeholder: "Cauta piete...",
59
+ empty: "Nu s-au gasit piete.",
60
+ },
61
+ productCombobox: {
62
+ placeholder: "Cauta produse...",
63
+ empty: "Nu s-au gasit produse.",
64
+ },
65
+ productOptionCombobox: {
66
+ placeholder: "Selecteaza optiunea produsului...",
67
+ empty: "Nu s-au gasit optiuni de produs.",
68
+ selectProductFirst: "Selecteaza mai intai un produs.",
69
+ },
70
+ policyDialog: {
71
+ titles: {
72
+ create: "Adauga Politica",
73
+ edit: "Editeaza Politica",
74
+ },
75
+ fields: {
76
+ name: "Nume",
77
+ scope: "Domeniu",
78
+ type: "Tip",
79
+ priority: "Prioritate",
80
+ product: "Produs",
81
+ option: "Optiune",
82
+ market: "Piata",
83
+ channel: "Canal",
84
+ conditionsJson: "Conditii (JSON)",
85
+ effectsJson: "Efecte (JSON)",
86
+ notes: "Note",
87
+ active: "Activ",
88
+ },
89
+ placeholders: {
90
+ name: "Blocheaza rezervarile fara capabilitate",
91
+ },
92
+ actions: {
93
+ create: "Adauga Politica",
94
+ save: "Salveaza Modificarile",
95
+ },
96
+ validation: {
97
+ nameRequired: "Numele este obligatoriu",
98
+ jsonObject: "Trebuie sa fie un obiect JSON",
99
+ },
100
+ },
101
+ };
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export { MarketCombobox } from "./components/market-combobox";
3
3
  export { PolicyDialog } from "./components/policy-dialog";
4
4
  export { ProductCombobox } from "./components/product-combobox";
5
5
  export { ProductOptionCombobox } from "./components/product-option-combobox";
6
+ export { getSellabilityUiI18n, resolveSellabilityUiMessages, type SellabilityUiMessageOverrides, type SellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiEn, sellabilityUiMessageDefinitions, sellabilityUiRo, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./i18n";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,6BAA6B,EAC7B,eAAe,EACf,+BAA+B,EAC/B,eAAe,EACf,oBAAoB,EACpB,6BAA6B,EAC7B,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,QAAQ,CAAA"}
package/dist/index.js CHANGED
@@ -3,3 +3,4 @@ export { MarketCombobox } from "./components/market-combobox";
3
3
  export { PolicyDialog } from "./components/policy-dialog";
4
4
  export { ProductCombobox } from "./components/product-combobox";
5
5
  export { ProductOptionCombobox } from "./components/product-option-combobox";
6
+ export { getSellabilityUiI18n, resolveSellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiEn, sellabilityUiMessageDefinitions, sellabilityUiRo, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./i18n";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voyantjs/sellability-ui",
3
- "version": "0.16.0",
4
- "license": "FSL-1.1-Apache-2.0",
3
+ "version": "0.18.0",
4
+ "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/voyantjs/voyant.git",
@@ -12,11 +12,28 @@
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js"
15
+ "import": "./dist/index.js",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "./i18n": {
19
+ "types": "./dist/i18n/index.d.ts",
20
+ "import": "./dist/i18n/index.js",
21
+ "default": "./dist/i18n/index.js"
22
+ },
23
+ "./i18n/en": {
24
+ "types": "./dist/i18n/en.d.ts",
25
+ "import": "./dist/i18n/en.js",
26
+ "default": "./dist/i18n/en.js"
27
+ },
28
+ "./i18n/ro": {
29
+ "types": "./dist/i18n/ro.d.ts",
30
+ "import": "./dist/i18n/ro.js",
31
+ "default": "./dist/i18n/ro.js"
16
32
  },
17
33
  "./components/*": {
18
34
  "types": "./dist/components/*.d.ts",
19
- "import": "./dist/components/*.js"
35
+ "import": "./dist/components/*.js",
36
+ "default": "./dist/components/*.js"
20
37
  }
21
38
  },
22
39
  "peerDependencies": {
@@ -25,12 +42,15 @@
25
42
  "react": "^19.0.0",
26
43
  "react-dom": "^19.0.0",
27
44
  "react-hook-form": "^7.60.0",
28
- "zod": "^3.25.76",
29
- "@voyantjs/distribution-react": "0.16.0",
30
- "@voyantjs/markets-react": "0.16.0",
31
- "@voyantjs/products-react": "0.16.0",
32
- "@voyantjs/sellability-react": "0.16.0",
33
- "@voyantjs/ui": "0.16.0"
45
+ "zod": "^4.3.6",
46
+ "@voyantjs/distribution-react": "0.18.0",
47
+ "@voyantjs/products-react": "0.18.0",
48
+ "@voyantjs/sellability-react": "0.18.0",
49
+ "@voyantjs/markets-react": "0.18.0",
50
+ "@voyantjs/ui": "0.18.0"
51
+ },
52
+ "dependencies": {
53
+ "@voyantjs/i18n": "0.18.0"
34
54
  },
35
55
  "devDependencies": {
36
56
  "@tanstack/react-query": "^5.96.2",
@@ -43,13 +63,14 @@
43
63
  "react-hook-form": "^7.60.0",
44
64
  "typescript": "^6.0.2",
45
65
  "vitest": "^4.1.2",
46
- "zod": "^3.25.76",
47
- "@voyantjs/distribution-react": "0.16.0",
48
- "@voyantjs/markets-react": "0.16.0",
49
- "@voyantjs/products-react": "0.16.0",
50
- "@voyantjs/sellability-react": "0.16.0",
66
+ "zod": "^4.3.6",
67
+ "@voyantjs/i18n": "0.18.0",
68
+ "@voyantjs/distribution-react": "0.18.0",
69
+ "@voyantjs/markets-react": "0.18.0",
70
+ "@voyantjs/sellability-react": "0.18.0",
51
71
  "@voyantjs/voyant-typescript-config": "0.1.0",
52
- "@voyantjs/ui": "0.16.0"
72
+ "@voyantjs/products-react": "0.18.0",
73
+ "@voyantjs/ui": "0.18.0"
53
74
  },
54
75
  "files": [
55
76
  "dist"