@tabres/react 1.0.41 → 1.0.44

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 (34) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/models/index.d.ts +1 -0
  6. package/dist/models/index.esm.js.map +1 -1
  7. package/dist/models/index.js.map +1 -1
  8. package/dist/models/models/index.d.ts +1 -0
  9. package/dist/models/modules/branch/constants.d.ts +1 -0
  10. package/dist/models/modules/branch/hooks.d.ts +1 -0
  11. package/dist/models/modules/branch/models.d.ts +1 -0
  12. package/dist/models/modules/business/constants.d.ts +0 -1
  13. package/dist/models/modules/business/hooks.d.ts +0 -1
  14. package/dist/models/modules/business/models.d.ts +0 -1
  15. package/dist/models/modules/pos/models/compliance.d.ts +9 -0
  16. package/dist/models/modules/pos/models/index.d.ts +1 -0
  17. package/dist/modules/branch/constants.d.ts +1 -0
  18. package/dist/modules/branch/hooks.d.ts +1 -0
  19. package/dist/modules/branch/models.d.ts +1 -0
  20. package/dist/modules/business/constants.d.ts +0 -1
  21. package/dist/modules/business/hooks.d.ts +0 -1
  22. package/dist/modules/business/models.d.ts +0 -1
  23. package/dist/modules/pos/models/index.d.ts +1 -0
  24. package/dist/utils/index.esm.js.map +1 -1
  25. package/dist/utils/index.js.map +1 -1
  26. package/dist/utils/models/index.d.ts +1 -0
  27. package/dist/utils/modules/branch/constants.d.ts +1 -0
  28. package/dist/utils/modules/branch/hooks.d.ts +1 -0
  29. package/dist/utils/modules/branch/models.d.ts +1 -0
  30. package/dist/utils/modules/business/constants.d.ts +0 -1
  31. package/dist/utils/modules/business/hooks.d.ts +0 -1
  32. package/dist/utils/modules/business/models.d.ts +0 -1
  33. package/dist/utils/modules/pos/models/index.d.ts +1 -0
  34. package/package.json +16 -9
@@ -12,5 +12,6 @@ export * from "../modules/user/models";
12
12
  export * from "../modules/category/models";
13
13
  export * from "../modules/menu/models";
14
14
  export * from "../modules/video/models";
15
+ export * from "../modules/pos/models";
15
16
  export * from "../components/PublicMenu/ProductsGridItem/ProductsGridItem.types";
16
17
  export * from "../components/PublicMenu/OrderMethods/OrderMethods.types";
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_CURRENCY = "EUR";
@@ -2,6 +2,7 @@ import * as viewModels from "src/modules/view/models";
2
2
  import { Branch, BranchServes, BranchSettings } from "./models";
3
3
  export declare const useHasSingleBranch: () => boolean;
4
4
  export declare const useSelectedBranch: () => Branch;
5
+ export declare const useCurrency: () => string;
5
6
  export declare const useBranchCoordinates: () => viewModels.Coordinates;
6
7
  export declare const useBranchAddress: () => string;
7
8
  export declare const useBranchServes: () => BranchServes;
@@ -46,6 +46,7 @@ export interface Branch {
46
46
  wifiPassword?: string;
47
47
  createdAt?: number;
48
48
  coverPhoto?: string;
49
+ currency?: string;
49
50
  timezone?: string;
50
51
  businessDayStart?: string;
51
52
  settings?: BranchSettings;
@@ -1,2 +1 @@
1
1
  export declare const DEFAULT_LANGUAGE = "en";
2
- export declare const DEFAULT_CURRENCY = "AZN";
@@ -1,6 +1,5 @@
1
1
  import { Business, BusinessLanguage } from "./models";
2
2
  export declare const useBusiness: () => Business;
3
- export declare const useCurrency: () => string;
4
3
  export declare const useBusinessId: () => number;
5
4
  export declare const useBusinessUsername: () => string;
6
5
  export declare const useLanguages: () => BusinessLanguage[];
@@ -24,7 +24,6 @@ export interface Business {
24
24
  facebook?: string;
25
25
  tiktok?: string;
26
26
  createdAt?: number;
27
- currency: string;
28
27
  languages: BusinessLanguage[];
29
28
  subscriptions?: subscriptionModels.Subscription[];
30
29
  segment?: featureModels.FeatureSegment;
@@ -0,0 +1 @@
1
+ export * from "./compliance";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tabres/react",
3
- "version": "1.0.41",
3
+ "version": "1.0.44",
4
4
  "description": "React Library by tabres.com",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -65,23 +65,23 @@
65
65
  "react-dom": ">=19.2.3"
66
66
  },
67
67
  "devDependencies": {
68
- "@eslint/js": "^9.39.3",
68
+ "@eslint/js": "^10.0.1",
69
69
  "@rollup/plugin-commonjs": "^29.0.3",
70
70
  "@rollup/plugin-node-resolve": "^16.0.3",
71
71
  "@rollup/plugin-terser": "^1.0.0",
72
72
  "@rollup/plugin-typescript": "^12.3.0",
73
73
  "@testing-library/jest-dom": "^6.9.1",
74
74
  "@testing-library/react": "^16.3.2",
75
- "@types/google.maps": "^3.65.1",
75
+ "@types/google.maps": "^3.65.2",
76
76
  "@types/jest": "^30.0.0",
77
- "@types/node": "^25.0.1",
77
+ "@types/node": "^26.0.0",
78
78
  "@types/react": "^19.2.17",
79
79
  "@types/react-dom": "^19.2.3",
80
80
  "autoprefixer": "^10.5.0",
81
- "eslint": "^9.39.3",
81
+ "eslint": "^10.5.0",
82
82
  "eslint-plugin-react": "^7.37.5",
83
- "eslint-plugin-react-hooks": "^7.0.1",
84
- "eslint-plugin-unicorn": "^64.0.0",
83
+ "eslint-plugin-react-hooks": "^7.1.1",
84
+ "eslint-plugin-unicorn": "^68.0.0",
85
85
  "husky": "^9.1.7",
86
86
  "jest": "^30.4.2",
87
87
  "jest-environment-jsdom": "^30.4.1",
@@ -89,12 +89,19 @@
89
89
  "rollup-plugin-copy": "^3.5.0",
90
90
  "rollup-plugin-peer-deps-external": "^2.2.4",
91
91
  "rollup-plugin-postcss": "^4.0.2",
92
- "sass": "^1.100.0",
92
+ "sass": "^1.101.0",
93
93
  "ts-jest": "^29.4.11",
94
94
  "ts-node": "^10.9.2",
95
95
  "tslib": "^2.8.1",
96
96
  "typescript": "^6.0.3",
97
- "typescript-eslint": "^8.57.2",
97
+ "typescript-eslint": "^8.61.1",
98
98
  "vite": "^8.0.16"
99
+ },
100
+ "overrides": {
101
+ "@babel/core": "^7.29.7",
102
+ "js-yaml": "^4.2.0",
103
+ "eslint-plugin-react": {
104
+ "eslint": "$eslint"
105
+ }
99
106
  }
100
107
  }