@tap-payments/auth-jsconnect 2.0.72-test → 2.0.75-test

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.
@@ -37,7 +37,6 @@ export declare const updateLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<{
37
37
  };
38
38
  }, NIDFormValues, {}>;
39
39
  export declare const resendOTPLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
40
- export declare const retrieveChannels: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
41
40
  export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<any, {
42
41
  leadId: string;
43
42
  }, {}>;
@@ -78,16 +78,15 @@ export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', functio
78
78
  leadResponse = undefined;
79
79
  brandInfo = undefined;
80
80
  boardResponse = undefined;
81
- if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 19];
81
+ if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 17];
82
82
  return [4, API.leadService.retrieveLead(data === null || data === void 0 ? void 0 : data.id)];
83
83
  case 2:
84
84
  leadResponse = _h.sent();
85
85
  entity_activities = leadResponse.data.entity_activities;
86
- if (!entity_activities) return [3, 4];
86
+ if (!!entity_activities) return [3, 4];
87
87
  return [4, API.dataService.getActivities()];
88
88
  case 3:
89
89
  data_1 = _h.sent();
90
- console.log(data_1);
91
90
  leadResponse.data = __assign(__assign({}, leadResponse.data), { entity_activities: data_1.list });
92
91
  _h.label = 4;
93
92
  case 4:
@@ -106,7 +105,7 @@ export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', functio
106
105
  if (data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH && !isKW(countryIso2)) {
107
106
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
108
107
  }
109
- if (!(data.step_name === 'business_info')) return [3, 19];
108
+ if (!(data.step_name === 'business_info')) return [3, 17];
110
109
  steps = (_d = leadResponse === null || leadResponse === void 0 ? void 0 : leadResponse.data) === null || _d === void 0 ? void 0 : _d.steps;
111
110
  brandID = (_f = (_e = leadResponse === null || leadResponse === void 0 ? void 0 : leadResponse.data) === null || _e === void 0 ? void 0 : _e.brand) === null || _f === void 0 ? void 0 : _f.id;
112
111
  hasBusinessCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_SUCCESS);
@@ -118,44 +117,38 @@ export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', functio
118
117
  case 7:
119
118
  _h.sent();
120
119
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
121
- return [3, 19];
120
+ return [3, 17];
122
121
  case 8:
123
122
  if (!(data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH)) return [3, 9];
124
123
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
125
- return [3, 19];
124
+ return [3, 17];
126
125
  case 9:
127
126
  if (!hasBusinessCustomersCompleted) return [3, 10];
128
127
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_STEP'));
129
- return [3, 19];
128
+ return [3, 17];
130
129
  case 10:
131
- if (!hasBusinessCRActivitiesCompleted) return [3, 14];
132
- return [4, thunkApi.dispatch(retrieveChannels())];
133
- case 11:
134
- _h.sent();
130
+ if (!hasBusinessCRActivitiesCompleted) return [3, 13];
135
131
  return [4, thunkApi.dispatch(retrieveDataList())];
136
- case 12:
132
+ case 11:
137
133
  _h.sent();
138
134
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_CUSTOMERS_STEP'));
139
135
  return [4, API.brandService.retrieveBrand(brandID)];
140
- case 13:
136
+ case 12:
141
137
  brandInfo = _h.sent();
142
- return [3, 19];
143
- case 14:
144
- if (!hasBusinessCRInfoCompleted) return [3, 17];
145
- return [4, thunkApi.dispatch(retrieveChannels())];
146
- case 15:
147
- _h.sent();
138
+ return [3, 17];
139
+ case 13:
140
+ if (!hasBusinessCRInfoCompleted) return [3, 15];
148
141
  return [4, API.brandService.retrieveBrand(brandID)];
149
- case 16:
142
+ case 14:
150
143
  brandInfo = _h.sent();
151
144
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_ACTIVITIES_STEP'));
152
- return [3, 19];
153
- case 17: return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
154
- case 18:
145
+ return [3, 17];
146
+ case 15: return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
147
+ case 16:
155
148
  _h.sent();
156
149
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP'));
157
- _h.label = 19;
158
- case 19: return [2, {
150
+ _h.label = 17;
151
+ case 17: return [2, {
159
152
  data: data,
160
153
  leadData: __assign(__assign({}, leadResponse === null || leadResponse === void 0 ? void 0 : leadResponse.data), { flows: BUSINESS_FLOW_SUCCESS.concat(boardResponse === null || boardResponse === void 0 ? void 0 : boardResponse.info) }),
161
154
  token: token,
@@ -206,7 +199,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
206
199
  case 1:
207
200
  data = (_j.sent()).data;
208
201
  brandInfo = undefined;
209
- if (!!data.errors) return [3, 15];
202
+ if (!!data.errors) return [3, 14];
210
203
  thunkApi.dispatch(updateStepName(stepName));
211
204
  return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
212
205
  case 2:
@@ -220,29 +213,28 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
220
213
  isIdentityAuthStep = data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH;
221
214
  if (!isNID) return [3, 3];
222
215
  thunkApi.dispatch(handleNextScreenStep());
223
- return [3, 15];
216
+ return [3, 14];
224
217
  case 3:
225
218
  if (!(isIdentityAuthStep && isKW(countryIso2))) return [3, 4];
226
219
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_CIVIL_ID_STEP'));
227
- return [3, 15];
220
+ return [3, 14];
228
221
  case 4:
229
222
  if (!hasBusinessCompleted) return [3, 6];
230
223
  return [4, thunkApi.dispatch(retrieveBoardDetails(verifyResponse === null || verifyResponse === void 0 ? void 0 : verifyResponse.board_id))];
231
224
  case 5:
232
225
  _j.sent();
233
226
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
234
- return [3, 15];
227
+ return [3, 14];
235
228
  case 6:
236
229
  if (!(data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH)) return [3, 7];
237
230
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
238
- return [3, 15];
231
+ return [3, 14];
239
232
  case 7:
240
233
  if (!hasBusinessCustomersCompleted) return [3, 8];
241
234
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_STEP'));
242
- return [3, 15];
235
+ return [3, 14];
243
236
  case 8:
244
237
  if (!hasBusinessCRActivitiesCompleted) return [3, 11];
245
- thunkApi.dispatch(retrieveChannels());
246
238
  return [4, thunkApi.dispatch(retrieveDataList())];
247
239
  case 9:
248
240
  _j.sent();
@@ -250,21 +242,18 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
250
242
  return [4, API.brandService.retrieveBrand(brandID)];
251
243
  case 10:
252
244
  brandInfo = _j.sent();
253
- return [3, 15];
245
+ return [3, 14];
254
246
  case 11:
255
- if (!hasBusinessCRInfoCompleted) return [3, 14];
256
- return [4, thunkApi.dispatch(retrieveChannels())];
257
- case 12:
258
- _j.sent();
247
+ if (!hasBusinessCRInfoCompleted) return [3, 13];
259
248
  return [4, API.brandService.retrieveBrand(brandID)];
260
- case 13:
249
+ case 12:
261
250
  brandInfo = _j.sent();
262
251
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_ACTIVITIES_STEP'));
263
- return [3, 15];
264
- case 14:
252
+ return [3, 14];
253
+ case 13:
265
254
  thunkApi.dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP'));
266
- _j.label = 15;
267
- case 15: return [2, { data: data, formData: __assign(__assign({}, params), { isNID: isNID }), brandInfo: brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.brand }];
255
+ _j.label = 14;
256
+ case 14: return [2, { data: data, formData: __assign(__assign({}, params), { isNID: isNID }), brandInfo: brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.brand }];
268
257
  }
269
258
  });
270
259
  }); });
@@ -392,21 +381,6 @@ export var resendOTPLeadIdentity = createAsyncThunk('resendOTPLeadIdentity', fun
392
381
  }
393
382
  });
394
383
  }); });
395
- export var retrieveChannels = createAsyncThunk('retrieveChannels', function () { return __awaiter(void 0, void 0, void 0, function () {
396
- var body, data;
397
- return __generator(this, function (_a) {
398
- switch (_a.label) {
399
- case 0:
400
- body = {
401
- page: 0
402
- };
403
- return [4, API.dataService.getChannelsOfServices(body)];
404
- case 1:
405
- data = _a.sent();
406
- return [2, data];
407
- }
408
- });
409
- }); });
410
384
  export var retrieveEntityList = createAsyncThunk('retrieveEntityList', function (params) { return __awaiter(void 0, void 0, void 0, function () {
411
385
  var data;
412
386
  return __generator(this, function (_a) {
@@ -452,7 +426,7 @@ export var updateLeadBusinessType = createAsyncThunk('updateLeadBusinessType', f
452
426
  case 1:
453
427
  data = _h.sent();
454
428
  entity_activities = data.entity_activities;
455
- if (!entity_activities) return [3, 3];
429
+ if (!!entity_activities) return [3, 3];
456
430
  return [4, API.dataService.getActivities()];
457
431
  case 2:
458
432
  list = (_h.sent()).list;
@@ -472,9 +446,6 @@ export var updateLeadBusinessType = createAsyncThunk('updateLeadBusinessType', f
472
446
  return [4, API.accountService.createAccount(accountBody)];
473
447
  case 4:
474
448
  accountData = _h.sent();
475
- return [4, thunkApi.dispatch(retrieveChannels())];
476
- case 5:
477
- _h.sent();
478
449
  thunkApi.dispatch(handleNextScreenStep());
479
450
  (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
480
451
  return [2, { data: data, formData: params, accountData: accountData }];
@@ -936,27 +907,6 @@ export var businessSlice = createSlice({
936
907
  .addCase(retrieveBoardDetails.rejected, function (state, action) {
937
908
  state.error = action.error.message;
938
909
  state.loading = false;
939
- })
940
- .addCase(retrieveChannels.pending, function (state) {
941
- state.error = null;
942
- state.loading = true;
943
- })
944
- .addCase(retrieveChannels.fulfilled, function (state, action) {
945
- var _a;
946
- state.error = null;
947
- state.loading = false;
948
- var data = action.payload || {};
949
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
950
- if (description) {
951
- state.error = description;
952
- return;
953
- }
954
- var channels = data.list || [];
955
- state.data.businessTypeData.responseBody = __assign(__assign({}, state.data.businessTypeData.responseBody), { channelList: channels });
956
- })
957
- .addCase(retrieveChannels.rejected, function (state, action) {
958
- state.error = action.error.message;
959
- state.loading = false;
960
910
  })
961
911
  .addCase(updateLeadBusinessType.pending, function (state) {
962
912
  state.loading = true;
package/package.json CHANGED
@@ -1,129 +1,129 @@
1
- {
2
- "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.72-test",
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": "rm -rf 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": "rm -rf 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/moment-hijri": "^2.1.0",
39
- "@types/react": "^18.0.15",
40
- "@types/react-calendar": "~3.5.1",
41
- "@types/react-dom": "^18.0.6",
42
- "@typescript-eslint/eslint-plugin": "^5.30.5",
43
- "@typescript-eslint/parser": "^5.30.5",
44
- "babel-loader": "^8.2.5",
45
- "copyfiles": "^2.4.1",
46
- "cross-env": "^7.0.3",
47
- "css-loader": "^6.7.1",
48
- "css-minimizer-webpack-plugin": "^4.0.0",
49
- "eslint": "^8.19.0",
50
- "eslint-config-airbnb": "^19.0.4",
51
- "eslint-config-prettier": "^8.5.0",
52
- "eslint-plugin-import": "^2.26.0",
53
- "eslint-plugin-jsx-a11y": "^6.6.0",
54
- "eslint-plugin-node": "^11.1.0",
55
- "eslint-plugin-prettier": "^4.2.1",
56
- "eslint-plugin-react": "^7.30.1",
57
- "eslint-plugin-react-hooks": "^4.6.0",
58
- "file-loader": "^6.2.0",
59
- "fork-ts-checker-webpack-plugin": "^7.2.12",
60
- "html-loader": "^3.1.2",
61
- "html-webpack-plugin": "^5.5.0",
62
- "husky": "^8.0.1",
63
- "lint-staged": "^13.0.3",
64
- "mini-css-extract-plugin": "^2.6.1",
65
- "prettier": "^2.7.1",
66
- "sass": "^1.53.0",
67
- "sass-loader": "^13.0.2",
68
- "style-loader": "^3.3.1",
69
- "terser-webpack-plugin": "^5.3.3",
70
- "tsc-alias": "^1.6.11",
71
- "typescript": "^4.7.4",
72
- "webpack": "^5.73.0",
73
- "webpack-cli": "^4.10.0",
74
- "webpack-dev-server": "^4.9.3",
75
- "webpack-merge": "^5.8.0"
76
- },
77
- "dependencies": {
78
- "@emotion/react": "^11.9.3",
79
- "@emotion/styled": "^11.9.3",
80
- "@fingerprintjs/fingerprintjs": "~3.3.4",
81
- "@hookform/resolvers": "^2.9.6",
82
- "@mui/icons-material": "^5.8.4",
83
- "@mui/material": "^5.8.7",
84
- "@reduxjs/toolkit": "^1.8.3",
85
- "axios": "^0.27.2",
86
- "device-detector-js": "^3.0.3",
87
- "i18next": "^21.8.14",
88
- "i18next-browser-languagedetector": "^6.1.4",
89
- "i18next-http-backend": "^1.4.1",
90
- "jsencrypt": "^2.3.1",
91
- "lodash-es": "^4.17.21",
92
- "lottie-web": "^5.9.6",
93
- "moment-hijri": "~2.1.2",
94
- "react": "^18.2.0",
95
- "react-calendar": "~3.7.0",
96
- "react-device-detect": "^2.2.2",
97
- "react-dom": "^18.2.0",
98
- "react-dropzone": "^14.2.2",
99
- "react-hook-form": "^7.33.1",
100
- "react-i18next": "^11.18.1",
101
- "react-otp-input": "^2.4.0",
102
- "react-redux": "^8.0.2",
103
- "react-spring-bottom-sheet": "^3.4.1",
104
- "yup": "^0.32.11"
105
- },
106
- "peerDependencies": {
107
- "react": "^18.2.0",
108
- "react-dom": "^18.2.0"
109
- },
110
- "lint-staged": {
111
- "src/**/*.{ts,tsx,json,js,jsx}": [
112
- "yarn run prettier:fix",
113
- "yarn run lint",
114
- "git add ."
115
- ]
116
- },
117
- "browserslist": {
118
- "production": [
119
- ">0.2%",
120
- "not dead",
121
- "not op_mini all"
122
- ],
123
- "development": [
124
- "last 1 chrome version",
125
- "last 1 firefox version",
126
- "last 1 safari version"
127
- ]
128
- }
129
- }
1
+ {
2
+ "name": "@tap-payments/auth-jsconnect",
3
+ "version": "2.0.75-test",
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": "rm -rf 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": "rm -rf 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/moment-hijri": "^2.1.0",
39
+ "@types/react": "^18.0.15",
40
+ "@types/react-calendar": "~3.5.1",
41
+ "@types/react-dom": "^18.0.6",
42
+ "@typescript-eslint/eslint-plugin": "^5.30.5",
43
+ "@typescript-eslint/parser": "^5.30.5",
44
+ "babel-loader": "^8.2.5",
45
+ "copyfiles": "^2.4.1",
46
+ "cross-env": "^7.0.3",
47
+ "css-loader": "^6.7.1",
48
+ "css-minimizer-webpack-plugin": "^4.0.0",
49
+ "eslint": "^8.19.0",
50
+ "eslint-config-airbnb": "^19.0.4",
51
+ "eslint-config-prettier": "^8.5.0",
52
+ "eslint-plugin-import": "^2.26.0",
53
+ "eslint-plugin-jsx-a11y": "^6.6.0",
54
+ "eslint-plugin-node": "^11.1.0",
55
+ "eslint-plugin-prettier": "^4.2.1",
56
+ "eslint-plugin-react": "^7.30.1",
57
+ "eslint-plugin-react-hooks": "^4.6.0",
58
+ "file-loader": "^6.2.0",
59
+ "fork-ts-checker-webpack-plugin": "^7.2.12",
60
+ "html-loader": "^3.1.2",
61
+ "html-webpack-plugin": "^5.5.0",
62
+ "husky": "^8.0.1",
63
+ "lint-staged": "^13.0.3",
64
+ "mini-css-extract-plugin": "^2.6.1",
65
+ "prettier": "^2.7.1",
66
+ "sass": "^1.53.0",
67
+ "sass-loader": "^13.0.2",
68
+ "style-loader": "^3.3.1",
69
+ "terser-webpack-plugin": "^5.3.3",
70
+ "tsc-alias": "^1.6.11",
71
+ "typescript": "^4.7.4",
72
+ "webpack": "^5.73.0",
73
+ "webpack-cli": "^4.10.0",
74
+ "webpack-dev-server": "^4.9.3",
75
+ "webpack-merge": "^5.8.0"
76
+ },
77
+ "dependencies": {
78
+ "@emotion/react": "^11.9.3",
79
+ "@emotion/styled": "^11.9.3",
80
+ "@fingerprintjs/fingerprintjs": "~3.3.4",
81
+ "@hookform/resolvers": "^2.9.6",
82
+ "@mui/icons-material": "^5.8.4",
83
+ "@mui/material": "^5.8.7",
84
+ "@reduxjs/toolkit": "^1.8.3",
85
+ "axios": "^0.27.2",
86
+ "device-detector-js": "^3.0.3",
87
+ "i18next": "^21.8.14",
88
+ "i18next-browser-languagedetector": "^6.1.4",
89
+ "i18next-http-backend": "^1.4.1",
90
+ "jsencrypt": "^2.3.1",
91
+ "lodash-es": "^4.17.21",
92
+ "lottie-web": "^5.9.6",
93
+ "moment-hijri": "~2.1.2",
94
+ "react": "^18.2.0",
95
+ "react-calendar": "~3.7.0",
96
+ "react-device-detect": "^2.2.2",
97
+ "react-dom": "^18.2.0",
98
+ "react-dropzone": "^14.2.2",
99
+ "react-hook-form": "^7.33.1",
100
+ "react-i18next": "^11.18.1",
101
+ "react-otp-input": "^2.4.0",
102
+ "react-redux": "^8.0.2",
103
+ "react-spring-bottom-sheet": "^3.4.1",
104
+ "yup": "^0.32.11"
105
+ },
106
+ "peerDependencies": {
107
+ "react": "^18.2.0",
108
+ "react-dom": "^18.2.0"
109
+ },
110
+ "lint-staged": {
111
+ "src/**/*.{ts,tsx,json,js,jsx}": [
112
+ "yarn run prettier:fix",
113
+ "yarn run lint",
114
+ "git add ."
115
+ ]
116
+ },
117
+ "browserslist": {
118
+ "production": [
119
+ ">0.2%",
120
+ "not dead",
121
+ "not op_mini all"
122
+ ],
123
+ "development": [
124
+ "last 1 chrome version",
125
+ "last 1 firefox version",
126
+ "last 1 safari version"
127
+ ]
128
+ }
129
+ }