@tap-payments/auth-jsconnect 1.0.4 → 1.0.5

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 (156) hide show
  1. package/build/@types/app.d.ts +16 -0
  2. package/build/@types/app.js +6 -1
  3. package/build/@types/theme.d.ts +12 -3
  4. package/build/@types/theme.js +15 -1
  5. package/build/app/rootReducer.d.ts +1 -1
  6. package/build/app/rootReducer.js +1 -1
  7. package/build/app/settings.d.ts +7 -2
  8. package/build/app/settings.js +21 -6
  9. package/build/app/store.d.ts +2 -2
  10. package/build/assets/locales/ar.json +22 -3
  11. package/build/assets/locales/en.json +20 -1
  12. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -2
  13. package/build/components/AnimationFlow/BottomSheet.js +30 -3
  14. package/build/components/AnimationFlow/Dialog.d.ts +3 -2
  15. package/build/components/AnimationFlow/Dialog.js +32 -9
  16. package/build/components/Button/Button.d.ts +7 -3
  17. package/build/components/Button/Button.js +20 -2
  18. package/build/components/Collapse/Collapse.d.ts +5 -0
  19. package/build/components/Collapse/Collapse.js +28 -0
  20. package/build/components/Collapse/index.d.ts +3 -0
  21. package/build/components/Collapse/index.js +2 -0
  22. package/build/components/DatePicker/DatePicker.js +3 -3
  23. package/build/components/Input/Input.d.ts +4 -1
  24. package/build/components/Input/Input.js +7 -5
  25. package/build/components/Loader/Loader.d.ts +10 -8
  26. package/build/components/Loader/Loader.js +14 -35
  27. package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
  28. package/build/components/OTPTimer/OTPTimer.js +4 -5
  29. package/build/components/Providers/ThemeProvider.js +6 -9
  30. package/build/components/SimpleList/SimpleList.d.ts +10 -2
  31. package/build/components/SimpleList/SimpleList.js +53 -21
  32. package/build/components/Slide/Slide.d.ts +6 -0
  33. package/build/components/Slide/Slide.js +30 -0
  34. package/build/components/Slide/index.d.ts +3 -0
  35. package/build/components/Slide/index.js +2 -0
  36. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -0
  37. package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -0
  38. package/build/components/SocialMediaGroup/index.d.ts +3 -0
  39. package/build/components/SocialMediaGroup/index.js +2 -0
  40. package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
  41. package/build/components/ToggleButton/ToggleButton.js +44 -0
  42. package/build/components/ToggleButton/index.d.ts +3 -0
  43. package/build/components/ToggleButton/index.js +2 -0
  44. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
  45. package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
  46. package/build/components/ToggleButtonGroup/index.d.ts +3 -0
  47. package/build/components/ToggleButtonGroup/index.js +2 -0
  48. package/build/components/Tooltip/Tooltip.d.ts +10 -0
  49. package/build/components/Tooltip/Tooltip.js +44 -0
  50. package/build/components/Tooltip/index.d.ts +3 -0
  51. package/build/components/Tooltip/index.js +2 -0
  52. package/build/components/Warning/Warning.d.ts +2 -1
  53. package/build/components/Warning/Warning.js +2 -1
  54. package/build/constants/app.d.ts +5 -4
  55. package/build/constants/app.js +35 -4
  56. package/build/constants/assets.d.ts +7 -0
  57. package/build/constants/assets.js +8 -1
  58. package/build/constants/index.d.ts +1 -0
  59. package/build/constants/index.js +1 -0
  60. package/build/constants/validation.d.ts +2 -0
  61. package/build/constants/validation.js +2 -0
  62. package/build/features/app/{midStore.d.ts → business/midStore.d.ts} +2 -2
  63. package/build/features/app/{midStore.js → business/midStore.js} +0 -0
  64. package/build/features/app/connect/midStore.d.ts +10 -0
  65. package/build/features/app/connect/midStore.js +18 -0
  66. package/build/features/business/index.d.ts +0 -0
  67. package/build/features/business/index.js +1 -0
  68. package/build/features/business/screens/IDBOD/DOB.d.ts +5 -0
  69. package/build/features/business/screens/IDBOD/DOB.js +44 -0
  70. package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
  71. package/build/features/business/screens/IDBOD/ID.js +68 -0
  72. package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
  73. package/build/features/business/screens/IDBOD/IDBOD.js +86 -0
  74. package/build/features/business/screens/IDBOD/index.d.ts +3 -0
  75. package/build/features/business/screens/IDBOD/index.js +2 -0
  76. package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
  77. package/build/features/business/screens/IDBOD/validation.js +5 -0
  78. package/build/features/connect/Connect.js +28 -18
  79. package/build/features/connect/Footer.d.ts +4 -0
  80. package/build/features/connect/Footer.js +16 -0
  81. package/build/features/connect/screens/Individual/Email.d.ts +5 -0
  82. package/build/features/connect/screens/Individual/Email.js +56 -0
  83. package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
  84. package/build/features/connect/screens/Individual/Individual.js +86 -0
  85. package/build/features/connect/screens/Individual/Name.d.ts +5 -0
  86. package/build/features/connect/screens/Individual/Name.js +58 -0
  87. package/build/features/connect/screens/Individual/index.d.ts +3 -0
  88. package/build/features/connect/screens/Individual/index.js +2 -0
  89. package/build/features/connect/screens/Individual/validation.d.ts +11 -0
  90. package/build/features/connect/screens/Individual/validation.js +5 -0
  91. package/build/features/connect/screens/MID/BusinessCountry.d.ts +2 -6
  92. package/build/features/connect/screens/MID/BusinessCountry.js +16 -40
  93. package/build/features/connect/screens/MID/IDNumber.d.ts +0 -4
  94. package/build/features/connect/screens/MID/IDNumber.js +13 -10
  95. package/build/features/connect/screens/MID/MID.js +73 -19
  96. package/build/features/connect/screens/MID/MIDTitle.js +2 -2
  97. package/build/features/connect/screens/MID/MobileNumber.d.ts +2 -7
  98. package/build/features/connect/screens/MID/MobileNumber.js +23 -48
  99. package/build/features/connect/screens/MID/validation.d.ts +18 -0
  100. package/build/features/connect/screens/MID/validation.js +8 -0
  101. package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -0
  102. package/build/features/connect/screens/Merchant/BrandName.js +99 -0
  103. package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
  104. package/build/features/connect/screens/Merchant/Merchant.js +94 -0
  105. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +5 -0
  106. package/build/features/connect/screens/Merchant/SocialMedia.js +87 -0
  107. package/build/features/connect/screens/Merchant/TAC.d.ts +5 -0
  108. package/build/features/connect/screens/Merchant/TAC.js +88 -0
  109. package/build/features/connect/screens/Merchant/index.d.ts +3 -0
  110. package/build/features/connect/screens/Merchant/index.js +2 -0
  111. package/build/features/connect/screens/Merchant/validation.d.ts +50 -0
  112. package/build/features/connect/screens/Merchant/validation.js +23 -0
  113. package/build/features/connect/screens/OTP/OTP.d.ts +6 -2
  114. package/build/features/connect/screens/OTP/OTP.js +64 -25
  115. package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
  116. package/build/features/connect/screens/OTP/OTPInput.js +51 -0
  117. package/build/features/connect/screens/OTP/OTPTimer.d.ts +5 -0
  118. package/build/features/connect/screens/OTP/OTPTimer.js +35 -0
  119. package/build/features/connect/screens/OTP/validation.d.ts +8 -0
  120. package/build/features/connect/screens/OTP/validation.js +4 -0
  121. package/build/features/connect/screens/Password/Password.d.ts +5 -0
  122. package/build/features/connect/screens/Password/Password.js +86 -0
  123. package/build/features/connect/screens/Password/PasswordInput.d.ts +5 -0
  124. package/build/features/connect/screens/Password/PasswordInput.js +73 -0
  125. package/build/features/connect/screens/Password/index.d.ts +3 -0
  126. package/build/features/connect/screens/Password/index.js +2 -0
  127. package/build/features/connect/screens/Password/validation.d.ts +8 -0
  128. package/build/features/connect/screens/Password/validation.js +4 -0
  129. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
  130. package/build/features/connect/screens/ThankYou/ThankYou.js +76 -0
  131. package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
  132. package/build/features/connect/screens/ThankYou/index.js +2 -0
  133. package/build/features/featuresScreens.d.ts +2 -0
  134. package/build/features/featuresScreens.js +28 -0
  135. package/build/hooks/index.d.ts +4 -0
  136. package/build/hooks/index.js +4 -0
  137. package/build/hooks/useAppDispatch.d.ts +4 -0
  138. package/build/hooks/useAppDispatch.js +2 -0
  139. package/build/hooks/useAppSelector.d.ts +3 -0
  140. package/build/hooks/useAppSelector.js +2 -0
  141. package/build/hooks/useAppTheme.js +3 -2
  142. package/build/hooks/useEventListener.d.ts +5 -0
  143. package/build/hooks/useEventListener.js +20 -0
  144. package/build/hooks/useLanguage.d.ts +4 -0
  145. package/build/hooks/useLanguage.js +8 -0
  146. package/build/index.css +5 -0
  147. package/build/theme/palette.js +1 -0
  148. package/build/theme/theme.d.ts +1 -1
  149. package/build/theme/theme.js +0 -1
  150. package/build/utils/string.d.ts +1 -1
  151. package/build/utils/string.js +1 -3
  152. package/build/utils/validation.d.ts +4 -0
  153. package/build/utils/validation.js +12 -0
  154. package/package.json +120 -116
  155. package/build/app/hooks.d.ts +0 -7
  156. package/build/app/hooks.js +0 -3
@@ -0,0 +1,20 @@
1
+ import { useEffect, useLayoutEffect, useRef } from 'react';
2
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
3
+ function useEventListener(eventName, handler, element, options) {
4
+ var savedHandler = useRef(handler);
5
+ useIsomorphicLayoutEffect(function () {
6
+ savedHandler.current = handler;
7
+ }, [handler]);
8
+ useEffect(function () {
9
+ var targetElement = (element === null || element === void 0 ? void 0 : element.current) || window;
10
+ if (!(targetElement && targetElement.addEventListener)) {
11
+ return;
12
+ }
13
+ var eventListener = function (event) { return savedHandler.current(event); };
14
+ targetElement.addEventListener(eventName, eventListener, options);
15
+ return function () {
16
+ targetElement.removeEventListener(eventName, eventListener);
17
+ };
18
+ }, [eventName, element, options]);
19
+ }
20
+ export { useEventListener };
@@ -0,0 +1,4 @@
1
+ export declare function useLanguage(): {
2
+ isAr: boolean;
3
+ isEn: boolean;
4
+ };
@@ -0,0 +1,8 @@
1
+ import { useTranslation } from 'react-i18next';
2
+ import { LanguageMode } from '../@types';
3
+ export function useLanguage() {
4
+ var i18n = useTranslation().i18n;
5
+ var isAr = i18n.language === LanguageMode.AR;
6
+ var isEn = i18n.language === LanguageMode.EN;
7
+ return { isAr: isAr, isEn: isEn };
8
+ }
package/build/index.css CHANGED
@@ -1,3 +1,8 @@
1
1
  @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
2
2
  @import url('https://fonts.googleapis.com/icon?family=Material+Icons');
3
3
  @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
4
+
5
+ body {
6
+ margin: 0;
7
+ padding: 0;
8
+ }
@@ -23,6 +23,7 @@ export var lightPalette = {
23
23
  hover: 'rgba(0, 0, 0, 0.08)'
24
24
  },
25
25
  secondary: {
26
+ light: '#FAFBFC',
26
27
  main: '#CECECE'
27
28
  },
28
29
  error: {
@@ -1,2 +1,2 @@
1
1
  import { DirectionMode, ThemeMode } from '../@types';
2
- export declare const appTheme: (mode: ThemeMode, dir?: DirectionMode) => import("@mui/material/styles").Theme;
2
+ export declare const appTheme: (mode: ThemeMode, dir: DirectionMode) => import("@mui/material/styles").Theme;
@@ -4,7 +4,6 @@ import { darkPalette, lightPalette } from './palette';
4
4
  import { components } from './components';
5
5
  import { shadows } from './shadows';
6
6
  export var appTheme = function (mode, dir) {
7
- if (dir === void 0) { dir = 'ltr'; }
8
7
  return createTheme({
9
8
  palette: mode === 'dark' ? darkPalette : lightPalette,
10
9
  direction: dir,
@@ -1 +1 @@
1
- export declare const removeAllCharsFromNumber: (str: string) => string;
1
+ export declare const string = "";
@@ -1,3 +1 @@
1
- export var removeAllCharsFromNumber = function (str) {
2
- return str.replace(/[^0-9]/g, '');
3
- };
1
+ export var string = '';
@@ -1 +1,5 @@
1
1
  export declare const isNumber: (value: string) => boolean;
2
+ export declare const removeAllCharsFromNumber: (str: string) => string;
3
+ export declare const removeAllOtherThanAlphabet: (str: string) => string;
4
+ export declare const removeAllNumberFromChars: (str: string) => string;
5
+ export declare const keepEmailCharacters: (str: string) => string;
@@ -1,3 +1,15 @@
1
1
  export var isNumber = function (value) {
2
2
  return value.match(/^[0-9]+$/g) !== null;
3
3
  };
4
+ export var removeAllCharsFromNumber = function (str) {
5
+ return str.replace(/[^0-9]/g, '');
6
+ };
7
+ export var removeAllOtherThanAlphabet = function (str) {
8
+ return str.replace(/[^[A-Za-z]/g, '');
9
+ };
10
+ export var removeAllNumberFromChars = function (str) {
11
+ return str.replace(/[^a-zA-Z ]/g, '');
12
+ };
13
+ export var keepEmailCharacters = function (str) {
14
+ return str.replace(/[^a-zA-Z@.]/g, '');
15
+ };
package/package.json CHANGED
@@ -1,116 +1,120 @@
1
- {
2
- "name": "@tap-payments/auth-jsconnect",
3
- "version": "1.0.4",
4
- "description": "connect library, auth",
5
- "private": false,
6
- "main": "build/index.js",
7
- "module": "build/index.js",
8
- "types": "build/index.d.ts",
9
- "files": [
10
- "build",
11
- "README.md"
12
- ],
13
- "scripts": {
14
- "husky:setup": "npx husky install",
15
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\" *.json *.js",
16
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\" *.json *.js",
17
- "lint": "eslint src --color --ext .js,.jsx,.ts,.tsx,.json",
18
- "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
19
- "start": "cross-env NODE_ENV=development webpack serve",
20
- "build": "cross-env NODE_ENV=production webpack",
21
- "copy:files": "copyfiles -u 1 src/**/*.css build/",
22
- "tsc:alias": "tsc-alias -p tsconfig.json",
23
- "ts:build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
24
- "push": "npm publish --access public"
25
- },
26
- "keywords": [],
27
- "author": {
28
- "name": "Ahmed Elsharkawy",
29
- "email": "a.elsharkawy@tap.company"
30
- },
31
- "license": "ISC",
32
- "devDependencies": {
33
- "@babel/core": "^7.18.6",
34
- "@babel/preset-env": "^7.18.6",
35
- "@babel/preset-react": "^7.18.6",
36
- "@babel/preset-typescript": "^7.18.6",
37
- "@types/react": "^18.0.15",
38
- "@types/react-calendar": "~3.5.1",
39
- "@types/react-dom": "^18.0.6",
40
- "@typescript-eslint/eslint-plugin": "^5.30.5",
41
- "@typescript-eslint/parser": "^5.30.5",
42
- "babel-loader": "^8.2.5",
43
- "copyfiles": "^2.4.1",
44
- "cross-env": "^7.0.3",
45
- "css-loader": "^6.7.1",
46
- "css-minimizer-webpack-plugin": "^4.0.0",
47
- "eslint": "^8.19.0",
48
- "eslint-config-airbnb": "^19.0.4",
49
- "eslint-config-prettier": "^8.5.0",
50
- "eslint-plugin-import": "^2.26.0",
51
- "eslint-plugin-jsx-a11y": "^6.6.0",
52
- "eslint-plugin-node": "^11.1.0",
53
- "eslint-plugin-prettier": "^4.2.1",
54
- "eslint-plugin-react": "^7.30.1",
55
- "eslint-plugin-react-hooks": "^4.6.0",
56
- "file-loader": "^6.2.0",
57
- "fork-ts-checker-webpack-plugin": "^7.2.12",
58
- "html-loader": "^3.1.2",
59
- "html-webpack-plugin": "^5.5.0",
60
- "husky": "^8.0.1",
61
- "lint-staged": "^13.0.3",
62
- "mini-css-extract-plugin": "^2.6.1",
63
- "prettier": "^2.7.1",
64
- "sass": "^1.53.0",
65
- "sass-loader": "^13.0.2",
66
- "style-loader": "^3.3.1",
67
- "terser-webpack-plugin": "^5.3.3",
68
- "tsc-alias": "^1.6.11",
69
- "typescript": "^4.7.4",
70
- "webpack": "^5.73.0",
71
- "webpack-cli": "^4.10.0",
72
- "webpack-dev-server": "^4.9.3",
73
- "webpack-merge": "^5.8.0"
74
- },
75
- "dependencies": {
76
- "@emotion/react": "^11.9.3",
77
- "@emotion/styled": "^11.9.3",
78
- "@mui/icons-material": "^5.8.4",
79
- "@mui/material": "^5.8.7",
80
- "@reduxjs/toolkit": "^1.8.3",
81
- "i18next": "^21.8.14",
82
- "i18next-browser-languagedetector": "^6.1.4",
83
- "i18next-http-backend": "^1.4.1",
84
- "react": "^18.2.0",
85
- "react-calendar": "~3.7.0",
86
- "react-dom": "^18.2.0",
87
- "react-hook-form": "^7.33.1",
88
- "react-i18next": "^11.18.1",
89
- "react-otp-input": "^2.4.0",
90
- "react-redux": "^8.0.2",
91
- "react-spring-bottom-sheet": "^3.4.1"
92
- },
93
- "peerDependencies": {
94
- "react": "^18.2.0",
95
- "react-dom": "^18.2.0"
96
- },
97
- "lint-staged": {
98
- "src/**/*.{ts,tsx,json,js,jsx}": [
99
- "yarn run prettier:fix",
100
- "yarn run lint",
101
- "git add ."
102
- ]
103
- },
104
- "browserslist": {
105
- "production": [
106
- ">0.2%",
107
- "not dead",
108
- "not op_mini all"
109
- ],
110
- "development": [
111
- "last 1 chrome version",
112
- "last 1 firefox version",
113
- "last 1 safari version"
114
- ]
115
- }
116
- }
1
+ {
2
+ "name": "@tap-payments/auth-jsconnect",
3
+ "version": "1.0.5",
4
+ "description": "connect library, auth",
5
+ "private": false,
6
+ "main": "build/index.js",
7
+ "module": "build/index.js",
8
+ "types": "build/index.d.ts",
9
+ "files": [
10
+ "build",
11
+ "README.md"
12
+ ],
13
+ "scripts": {
14
+ "husky:setup": "npx husky install",
15
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\" *.json *.js",
16
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\" *.json *.js",
17
+ "lint": "eslint src --color --ext .js,.jsx,.ts,.tsx,.json",
18
+ "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
19
+ "start": "cross-env NODE_ENV=development webpack serve",
20
+ "build": "cross-env NODE_ENV=production webpack",
21
+ "copy:files": "copyfiles -u 1 src/**/*.css build/",
22
+ "tsc:alias": "tsc-alias -p tsconfig.json",
23
+ "ts:build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
24
+ "push": "npm publish --access public"
25
+ },
26
+ "keywords": [],
27
+ "author": {
28
+ "name": "Ahmed Elsharkawy",
29
+ "email": "a.elsharkawy@tap.company"
30
+ },
31
+ "license": "ISC",
32
+ "devDependencies": {
33
+ "@babel/core": "^7.18.6",
34
+ "@babel/preset-env": "^7.18.6",
35
+ "@babel/preset-react": "^7.18.6",
36
+ "@babel/preset-typescript": "^7.18.6",
37
+ "@types/lodash-es": "^4.17.6",
38
+ "@types/react": "^18.0.15",
39
+ "@types/react-calendar": "~3.5.1",
40
+ "@types/react-dom": "^18.0.6",
41
+ "@typescript-eslint/eslint-plugin": "^5.30.5",
42
+ "@typescript-eslint/parser": "^5.30.5",
43
+ "babel-loader": "^8.2.5",
44
+ "copyfiles": "^2.4.1",
45
+ "cross-env": "^7.0.3",
46
+ "css-loader": "^6.7.1",
47
+ "css-minimizer-webpack-plugin": "^4.0.0",
48
+ "eslint": "^8.19.0",
49
+ "eslint-config-airbnb": "^19.0.4",
50
+ "eslint-config-prettier": "^8.5.0",
51
+ "eslint-plugin-import": "^2.26.0",
52
+ "eslint-plugin-jsx-a11y": "^6.6.0",
53
+ "eslint-plugin-node": "^11.1.0",
54
+ "eslint-plugin-prettier": "^4.2.1",
55
+ "eslint-plugin-react": "^7.30.1",
56
+ "eslint-plugin-react-hooks": "^4.6.0",
57
+ "file-loader": "^6.2.0",
58
+ "fork-ts-checker-webpack-plugin": "^7.2.12",
59
+ "html-loader": "^3.1.2",
60
+ "html-webpack-plugin": "^5.5.0",
61
+ "husky": "^8.0.1",
62
+ "lint-staged": "^13.0.3",
63
+ "mini-css-extract-plugin": "^2.6.1",
64
+ "prettier": "^2.7.1",
65
+ "sass": "^1.53.0",
66
+ "sass-loader": "^13.0.2",
67
+ "style-loader": "^3.3.1",
68
+ "terser-webpack-plugin": "^5.3.3",
69
+ "tsc-alias": "^1.6.11",
70
+ "typescript": "^4.7.4",
71
+ "webpack": "^5.73.0",
72
+ "webpack-cli": "^4.10.0",
73
+ "webpack-dev-server": "^4.9.3",
74
+ "webpack-merge": "^5.8.0"
75
+ },
76
+ "dependencies": {
77
+ "@emotion/react": "^11.9.3",
78
+ "@emotion/styled": "^11.9.3",
79
+ "@hookform/resolvers": "^2.9.6",
80
+ "@mui/icons-material": "^5.8.4",
81
+ "@mui/material": "^5.8.7",
82
+ "@reduxjs/toolkit": "^1.8.3",
83
+ "i18next": "^21.8.14",
84
+ "i18next-browser-languagedetector": "^6.1.4",
85
+ "i18next-http-backend": "^1.4.1",
86
+ "lodash-es": "^4.17.21",
87
+ "react": "^18.2.0",
88
+ "react-calendar": "~3.7.0",
89
+ "react-dom": "^18.2.0",
90
+ "react-hook-form": "^7.33.1",
91
+ "react-i18next": "^11.18.1",
92
+ "react-otp-input": "^2.4.0",
93
+ "react-redux": "^8.0.2",
94
+ "react-spring-bottom-sheet": "^3.4.1",
95
+ "yup": "^0.32.11"
96
+ },
97
+ "peerDependencies": {
98
+ "react": "^18.2.0",
99
+ "react-dom": "^18.2.0"
100
+ },
101
+ "lint-staged": {
102
+ "src/**/*.{ts,tsx,json,js,jsx}": [
103
+ "yarn run prettier:fix",
104
+ "yarn run lint",
105
+ "git add ."
106
+ ]
107
+ },
108
+ "browserslist": {
109
+ "production": [
110
+ ">0.2%",
111
+ "not dead",
112
+ "not op_mini all"
113
+ ],
114
+ "development": [
115
+ "last 1 chrome version",
116
+ "last 1 firefox version",
117
+ "last 1 safari version"
118
+ ]
119
+ }
120
+ }
@@ -1,7 +0,0 @@
1
- import { TypedUseSelectorHook } from 'react-redux';
2
- import type { RootState } from './store';
3
- export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
4
- settings: import("./settings").SettingsState;
5
- mid: import("../features/app/midStore").MIDState;
6
- }, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
7
- export declare const useAppSelector: TypedUseSelectorHook<RootState>;
@@ -1,3 +0,0 @@
1
- import { useDispatch, useSelector } from 'react-redux';
2
- export var useAppDispatch = function () { return useDispatch(); };
3
- export var useAppSelector = useSelector;