@tap-payments/auth-jsconnect 2.0.53-test → 2.0.55-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.
Files changed (269) hide show
  1. package/build/@types/app.d.ts +24 -10
  2. package/build/api/account.js +1 -1
  3. package/build/api/auth.d.ts +1 -1
  4. package/build/api/auth.js +1 -1
  5. package/build/api/availabilityServices.js +1 -1
  6. package/build/api/axios.js +2 -2
  7. package/build/api/board.js +1 -1
  8. package/build/api/brand.d.ts +1 -1
  9. package/build/api/brand.js +1 -1
  10. package/build/api/country.js +1 -1
  11. package/build/api/data.d.ts +31 -8
  12. package/build/api/data.js +36 -15
  13. package/build/api/entity.js +1 -1
  14. package/build/api/firebase.js +1 -1
  15. package/build/api/individual.d.ts +1 -1
  16. package/build/api/individual.js +1 -1
  17. package/build/api/ip.js +1 -1
  18. package/build/api/lead.d.ts +1 -1
  19. package/build/api/lead.js +1 -1
  20. package/build/api/operator.js +1 -1
  21. package/build/api/user.js +1 -1
  22. package/build/app/rootReducer.d.ts +10 -10
  23. package/build/app/rootReducer.js +10 -10
  24. package/build/app/settings.d.ts +2 -2
  25. package/build/app/settings.js +5 -5
  26. package/build/app/store.d.ts +1 -1
  27. package/build/components/AnimationFlow/AnimationFlow.js +1 -1
  28. package/build/components/AnimationFlow/Dialog.js +3 -3
  29. package/build/components/DatePicker/DatePicker.js +3 -3
  30. package/build/components/FileInput/DragAndDrop.js +6 -6
  31. package/build/components/FileInput/UploadInput.js +2 -2
  32. package/build/components/Footer/Footer.js +3 -3
  33. package/build/components/Input/Input.js +2 -2
  34. package/build/components/OTPTimer/OTPTimer.js +1 -1
  35. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  36. package/build/components/SimpleList/SimpleList.js +1 -1
  37. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  38. package/build/components/SocialMediaGroup/SocialMediaGroup.js +2 -2
  39. package/build/constants/api.js +5 -5
  40. package/build/constants/app.d.ts +1 -1
  41. package/build/constants/app.js +1 -1
  42. package/build/features/app/auth/authStore.d.ts +2 -2
  43. package/build/features/app/auth/authStore.js +2 -2
  44. package/build/features/app/bank/bankStore.d.ts +2 -2
  45. package/build/features/app/bank/bankStore.js +4 -4
  46. package/build/features/app/business/businessStore.d.ts +2 -2
  47. package/build/features/app/business/businessStore.js +42 -36
  48. package/build/features/app/connect/connectStore.d.ts +2 -2
  49. package/build/features/app/connect/connectStore.js +6 -6
  50. package/build/features/app/entity/entityStore.d.ts +2 -2
  51. package/build/features/app/entity/entityStore.js +5 -5
  52. package/build/features/app/individual/individualStore.d.ts +2 -2
  53. package/build/features/app/individual/individualStore.js +23 -15
  54. package/build/features/app/otp/otpStore.d.ts +2 -2
  55. package/build/features/app/otp/otpStore.js +4 -4
  56. package/build/features/app/password/passwordStore.d.ts +2 -2
  57. package/build/features/app/password/passwordStore.js +4 -4
  58. package/build/features/app/signIn/signInStore.d.ts +2 -2
  59. package/build/features/app/signIn/signInStore.js +4 -4
  60. package/build/features/app/tax/taxStore.d.ts +2 -2
  61. package/build/features/app/tax/taxStore.js +5 -5
  62. package/build/features/auth/Auth.d.ts +1 -1
  63. package/build/features/auth/Auth.js +10 -10
  64. package/build/features/auth/screens/OTP/OTP.js +8 -8
  65. package/build/features/auth/screens/OTP/OTPInput.js +3 -3
  66. package/build/features/bank/Bank.d.ts +1 -1
  67. package/build/features/bank/Bank.js +10 -10
  68. package/build/features/bank/screens/BankDetails/BankDetails.js +7 -7
  69. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  70. package/build/features/bank/screens/BankDetails/BankStatement.js +5 -5
  71. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
  72. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
  73. package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
  74. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  75. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  76. package/build/features/bank/screens/Success/Success.js +3 -3
  77. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  78. package/build/features/bank/screens/Verify/OTPInput.js +4 -4
  79. package/build/features/bank/screens/Verify/Verify.js +9 -9
  80. package/build/features/business/Business.d.ts +1 -1
  81. package/build/features/business/Business.js +10 -10
  82. package/build/features/business/screens/Activities/Activities.js +7 -7
  83. package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
  84. package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
  85. package/build/features/business/screens/Activities/LicenseName.js +6 -6
  86. package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
  87. package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
  88. package/build/features/business/screens/Activities/SalesChannels.js +7 -7
  89. package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
  90. package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
  91. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
  92. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  93. package/build/features/business/screens/BusinessType/validation.js +2 -2
  94. package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
  95. package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
  96. package/build/features/business/screens/Customers/Customers.js +8 -8
  97. package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
  98. package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
  99. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  100. package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
  101. package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
  102. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  103. package/build/features/business/screens/IDBOD/ID.js +6 -6
  104. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  105. package/build/features/business/screens/OTP/OTP.js +9 -9
  106. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  107. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  108. package/build/features/business/screens/Success/Success.js +3 -3
  109. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  110. package/build/features/business/screens/Verify/OTPInput.js +4 -4
  111. package/build/features/business/screens/Verify/Verify.js +9 -9
  112. package/build/features/connect/Connect.d.ts +1 -1
  113. package/build/features/connect/Connect.js +10 -10
  114. package/build/features/connect/screens/CivilID/CivilID.js +8 -8
  115. package/build/features/connect/screens/CivilID/IDNumber.js +7 -7
  116. package/build/features/connect/screens/Individual/Email.js +7 -7
  117. package/build/features/connect/screens/Individual/Individual.js +10 -10
  118. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  119. package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
  120. package/build/features/connect/screens/Individual/Name.js +6 -6
  121. package/build/features/connect/screens/Individual/validation.js +1 -1
  122. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  123. package/build/features/connect/screens/Merchant/BrandList.js +8 -8
  124. package/build/features/connect/screens/Merchant/BrandName.js +10 -10
  125. package/build/features/connect/screens/Merchant/Merchant.js +9 -9
  126. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -1
  127. package/build/features/connect/screens/Merchant/SalesChannels.js +7 -7
  128. package/build/features/connect/screens/Merchant/SocialMedia.js +9 -9
  129. package/build/features/connect/screens/Merchant/TAC.js +7 -7
  130. package/build/features/connect/screens/Merchant/validation.js +1 -1
  131. package/build/features/connect/screens/Mobile/Mobile.js +10 -10
  132. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  133. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  134. package/build/features/connect/screens/Mobile/Title.js +2 -2
  135. package/build/features/connect/screens/NID/DOB.js +5 -5
  136. package/build/features/connect/screens/NID/IDNumber.js +8 -8
  137. package/build/features/connect/screens/NID/NID.js +8 -8
  138. package/build/features/connect/screens/OTP/OTP.js +9 -9
  139. package/build/features/connect/screens/OTP/OTPInput.js +4 -4
  140. package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
  141. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +8 -8
  142. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +3 -3
  143. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +1 -1
  144. package/build/features/entity/Entity.d.ts +1 -1
  145. package/build/features/entity/Entity.js +10 -10
  146. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +1 -1
  147. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +9 -9
  148. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +7 -7
  149. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +4 -4
  150. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +5 -5
  151. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +5 -5
  152. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +1 -1
  153. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +7 -7
  154. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  155. package/build/features/entity/screens/Success/Success.js +3 -3
  156. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  157. package/build/features/entity/screens/Verify/OTPInput.js +4 -4
  158. package/build/features/entity/screens/Verify/Verify.js +9 -9
  159. package/build/features/featuresScreens.d.ts +1 -1
  160. package/build/features/featuresScreens.js +49 -49
  161. package/build/features/individual/Individual.d.ts +1 -1
  162. package/build/features/individual/Individual.js +10 -10
  163. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
  164. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
  165. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
  166. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
  167. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
  168. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  169. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
  170. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
  171. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
  172. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
  173. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  174. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
  175. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  176. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  177. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
  178. package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
  179. package/build/features/individual/screens/Success/Success.js +3 -3
  180. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  181. package/build/features/individual/screens/Verify/OTPInput.js +4 -4
  182. package/build/features/individual/screens/Verify/Verify.js +9 -9
  183. package/build/features/otp/OTP.d.ts +1 -1
  184. package/build/features/otp/OTP.js +9 -9
  185. package/build/features/otp/screens/OTPVerify/OTPInput.js +4 -4
  186. package/build/features/otp/screens/OTPVerify/Verify.js +5 -5
  187. package/build/features/password/Password.d.ts +1 -1
  188. package/build/features/password/Password.js +10 -10
  189. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  190. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  191. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
  192. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  193. package/build/features/password/screens/OTP/OTP.js +9 -9
  194. package/build/features/password/screens/OTP/OTPInput.js +4 -4
  195. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  196. package/build/features/password/screens/Success/Success.js +4 -4
  197. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  198. package/build/features/password/screens/Verify/OTPInput.js +4 -4
  199. package/build/features/password/screens/Verify/Verify.js +9 -9
  200. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  201. package/build/features/shared/Background/Background.js +2 -2
  202. package/build/features/shared/Background/LogoBackground.js +3 -3
  203. package/build/features/shared/Button/AbsherButton.d.ts +1 -1
  204. package/build/features/shared/Button/AbsherButton.js +3 -3
  205. package/build/features/shared/Button/Button.d.ts +1 -1
  206. package/build/features/shared/Button/Button.js +7 -7
  207. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  208. package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
  209. package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
  210. package/build/features/shared/Button/FlowsButtons.js +6 -6
  211. package/build/features/shared/Button/MobileButton.d.ts +1 -1
  212. package/build/features/shared/Button/MobileButton.js +3 -3
  213. package/build/features/shared/Dialog/CloseDialog.js +2 -2
  214. package/build/features/shared/Dialog/DialogContainer.js +2 -2
  215. package/build/features/shared/Footer/Footer.js +4 -4
  216. package/build/features/shared/Input/Input.d.ts +1 -1
  217. package/build/features/shared/Input/Input.js +2 -2
  218. package/build/features/shared/OTP/OTP.d.ts +1 -1
  219. package/build/features/shared/OTP/OTP.js +3 -3
  220. package/build/features/shared/Search/Search.js +1 -1
  221. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  222. package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
  223. package/build/features/shared/UploadFile/UploadFile.js +10 -10
  224. package/build/features/signIn/SignIn.d.ts +1 -1
  225. package/build/features/signIn/SignIn.js +10 -10
  226. package/build/features/signIn/screens/Email/Email.js +8 -8
  227. package/build/features/signIn/screens/Email/EmailField.js +5 -5
  228. package/build/features/signIn/screens/Email/validation.js +1 -1
  229. package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
  230. package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
  231. package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
  232. package/build/features/signIn/screens/OTP/OTP.js +9 -9
  233. package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
  234. package/build/features/signIn/screens/Password/Password.js +7 -7
  235. package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
  236. package/build/features/tax/Tax.d.ts +1 -1
  237. package/build/features/tax/Tax.js +10 -10
  238. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  239. package/build/features/tax/screens/Success/Success.js +3 -3
  240. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  241. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
  242. package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
  243. package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
  244. package/build/features/tax/screens/Verify/OTPInput.js +4 -4
  245. package/build/features/tax/screens/Verify/Verify.js +9 -9
  246. package/build/hooks/useAppConfig.d.ts +1 -1
  247. package/build/hooks/useAppConfig.js +4 -4
  248. package/build/hooks/useAppSelector.d.ts +1 -1
  249. package/build/hooks/useAppTheme.d.ts +1 -1
  250. package/build/hooks/useAppTheme.js +3 -3
  251. package/build/hooks/useErrorListener.js +1 -1
  252. package/build/hooks/useLanguage.js +1 -1
  253. package/build/hooks/useRedirectionListener.js +1 -1
  254. package/build/hooks/useScreen.js +1 -1
  255. package/build/hooks/useStepStartedListener.js +1 -1
  256. package/build/i18n.js +1 -1
  257. package/build/index.d.ts +10 -10
  258. package/build/index.js +10 -10
  259. package/build/theme/theme.d.ts +1 -1
  260. package/build/utils/array.d.ts +1 -1
  261. package/build/utils/locale.d.ts +1 -1
  262. package/build/utils/locale.js +1 -1
  263. package/build/utils/rsa.js +1 -1
  264. package/build/utils/string.d.ts +1 -1
  265. package/build/utils/string.js +4 -4
  266. package/package.json +129 -129
  267. package/build/api/index.d.ts +0 -87
  268. package/build/components/DatePicker/customStyle.css +0 -86
  269. package/build/index.css +0 -140
package/package.json CHANGED
@@ -1,129 +1,129 @@
1
- {
2
- "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.53-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.55-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,87 +0,0 @@
1
- import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
2
- import { ValidateOperatorBody } from './operator';
3
- import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody } from './auth';
4
- import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
5
- import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
- import { EntityInfoBody, EntityBankUpdateBody } from './entity';
7
- import { CreateAccountBody } from './account';
8
- import { BrandListBody, UpdateBrandBody } from './individual';
9
- import { UpdateBoardBody } from './board';
10
- declare const API: {
11
- ipService: {
12
- getIP: () => Promise<any>;
13
- };
14
- operatorService: {
15
- validateOperator: (body: ValidateOperatorBody) => Promise<any>;
16
- };
17
- countryService: {
18
- getCountries: () => Promise<any>;
19
- };
20
- authService: {
21
- createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
22
- verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
23
- createPassword: (data: CreatePasswordBody) => Promise<any>;
24
- verifyAuthKitOTP: (data: import("./auth").VerifyAuthKitOTPBody) => Promise<any>;
25
- getVerifyAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
26
- };
27
- leadService: {
28
- createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
29
- updateLead: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
30
- retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
31
- verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
32
- verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
33
- retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
34
- };
35
- entityService: {
36
- createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
37
- updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
38
- createBankAccount: (data: EntityBankUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
39
- retrieveBankAccount: (id: string) => Promise<any>;
40
- retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
41
- updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
42
- uploadFileInfo: (data: import("./entity").UploadFileBody) => Promise<any>;
43
- };
44
- availabilityServices: {
45
- checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
46
- checkBrand: (data: CheckBrandBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
47
- checkIbanBank: (data: import("./availabilityServices").CheckIBanBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
48
- };
49
- firebaseService: {
50
- getLocale: () => Promise<any>;
51
- };
52
- accountService: {
53
- createAccount: (data: CreateAccountBody) => Promise<any>;
54
- };
55
- dataService: {
56
- getChannelsOfServices: (data: {
57
- page: number;
58
- }) => Promise<any>;
59
- getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
60
- getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
61
- getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
62
- getSourceOfIncome: () => Promise<import("axios").AxiosResponse<any, any>>;
63
- getMonthlyIncome: (countryCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
64
- getOccupation: () => Promise<any>;
65
- };
66
- individualService: {
67
- retrieveIndividualInfo: (id: string) => Promise<any>;
68
- };
69
- boardService: {
70
- retrieveBoard: (id: string) => Promise<any>;
71
- updateBoard: ({ id, ...data }: UpdateBoardBody) => Promise<any>;
72
- retrieveBoardInfo: ({ id, infoId }: import("./board").RetrieveBoardInfoBody) => Promise<any>;
73
- updateBoardInfo: ({ id, infoId, ...data }: import("./board").UpdateBoardInfoBody) => Promise<any>;
74
- retrieveBoardDetails: (id: string) => Promise<any>;
75
- };
76
- userService: {
77
- retrieveUserInfo: (userId: string) => Promise<any>;
78
- };
79
- brandService: {
80
- retrieveBrand: (id: string) => Promise<any>;
81
- getBrandList: (data: BrandListBody) => Promise<any>;
82
- updateBrandInfo: ({ id, ...data }: UpdateBrandBody) => Promise<any>;
83
- };
84
- };
85
- export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody };
86
- export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
87
- export default API;
@@ -1,86 +0,0 @@
1
- .date_picker_input {
2
- cursor: pointer;
3
- }
4
-
5
- .react-calendar {
6
- width: 100%;
7
- border: none;
8
- padding: 15px 0px 15px 0px;
9
- }
10
-
11
- .react-calendar__navigation {
12
- display: flex;
13
- position: relative;
14
- }
15
- .react-calendar__navigation__label__labelText {
16
- font-family: 'Lato', 'Roboto';
17
- }
18
- .react-calendar__navigation button:enabled:hover,
19
- .react-calendar__navigation button:enabled:focus {
20
- background-color: #ffffff;
21
- }
22
- .react-calendar__navigation__prev-button {
23
- top: 20px;
24
- left: 86px;
25
- }
26
-
27
- .react-calendar__navigation__next-button {
28
- top: 0px;
29
- left: 86px;
30
- }
31
-
32
- .react-calendar__navigation__prev2-button {
33
- top: 20px;
34
- right: 13px;
35
- }
36
-
37
- .react-calendar__navigation__next2-button {
38
- top: 0px;
39
- right: 13px;
40
- }
41
-
42
- .react-calendar__navigation__arrow {
43
- background-color: transparent !important;
44
- }
45
-
46
- abbr[title] {
47
- text-decoration: none;
48
- font-weight: 400;
49
- color: #abaeb6;
50
- }
51
-
52
- .react-calendar__tile {
53
- transition: all 0.5s ease;
54
- }
55
-
56
- .react-calendar__tile:enabled:hover,
57
- .react-calendar__tile:enabled:focus {
58
- background-color: transparent;
59
- }
60
-
61
- .react-calendar__tile:enabled:hover {
62
- background: radial-gradient(circle closest-side, #fafafa 0%, #fafafa 98%, rgba(0, 0, 0, 0) 100%);
63
- }
64
-
65
- .react-calendar__month-view__days__day--weekend,
66
- .react-calendar__tile {
67
- color: #3a4154;
68
- }
69
- .react-calendar__tile--hasActive {
70
- background: radial-gradient(circle closest-side, #fafafa 0%, #fafafa 98%, rgba(0, 0, 0, 0) 100%);
71
- }
72
-
73
- .react-calendar__tile--active,
74
- .react-calendar__tile--active:enabled:hover,
75
- .react-calendar__tile--active:enabled:focus {
76
- background-color: transparent;
77
- background: radial-gradient(circle closest-side, #3a4154 0%, #3a4154 98%, rgba(0, 0, 0, 0) 100%);
78
- color: #ffffff;
79
- }
80
- .react-calendar__tile--now {
81
- background-color: transparent;
82
- }
83
- .react-calendar__navigation button:disabled {
84
- background-color: #ffffff;
85
- color: #3a4154;
86
- }
package/build/index.css DELETED
@@ -1,140 +0,0 @@
1
- @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');
2
- @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
3
- @import url('https://fonts.googleapis.com/icon?family=Material+Icons');
4
- @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
5
- @import url('https://fonts.googleapis.com/css?family=Tajawal&display=swap');
6
-
7
- /* http://meyerweb.com/eric/tools/css/reset/
8
- v2.0 | 20110126
9
- License: none (public domain)
10
- */
11
-
12
- html,
13
- body,
14
- div,
15
- span,
16
- applet,
17
- object,
18
- iframe,
19
- h1,
20
- h2,
21
- h3,
22
- h4,
23
- h5,
24
- h6,
25
- p,
26
- blockquote,
27
- pre,
28
- a,
29
- abbr,
30
- acronym,
31
- address,
32
- big,
33
- cite,
34
- code,
35
- del,
36
- dfn,
37
- em,
38
- img,
39
- ins,
40
- kbd,
41
- q,
42
- s,
43
- samp,
44
- small,
45
- strike,
46
- strong,
47
- sub,
48
- sup,
49
- tt,
50
- var,
51
- b,
52
- u,
53
- i,
54
- center,
55
- dl,
56
- dt,
57
- dd,
58
- ol,
59
- ul,
60
- li,
61
- fieldset,
62
- form,
63
- label,
64
- legend,
65
- table,
66
- caption,
67
- tbody,
68
- tfoot,
69
- thead,
70
- tr,
71
- th,
72
- td,
73
- article,
74
- aside,
75
- canvas,
76
- details,
77
- embed,
78
- figure,
79
- figcaption,
80
- footer,
81
- header,
82
- hgroup,
83
- menu,
84
- nav,
85
- output,
86
- ruby,
87
- section,
88
- summary,
89
- time,
90
- mark,
91
- audio,
92
- video {
93
- margin: 0;
94
- padding: 0;
95
- border: 0;
96
- font-size: 100%;
97
- font: inherit;
98
- vertical-align: baseline;
99
- }
100
- /* HTML5 display-role reset for older browsers */
101
- article,
102
- aside,
103
- details,
104
- figcaption,
105
- figure,
106
- footer,
107
- header,
108
- hgroup,
109
- menu,
110
- nav,
111
- section {
112
- display: block;
113
- }
114
- body {
115
- line-height: 1;
116
- overflow-y: hidden;
117
- }
118
- ol,
119
- ul {
120
- list-style: none;
121
- }
122
- blockquote,
123
- q {
124
- quotes: none;
125
- }
126
- blockquote:before,
127
- blockquote:after,
128
- q:before,
129
- q:after {
130
- content: '';
131
- content: none;
132
- }
133
- table {
134
- border-collapse: collapse;
135
- border-spacing: 0;
136
- }
137
-
138
- * {
139
- box-sizing: border-box;
140
- }