@tap-payments/auth-jsconnect 2.1.9-test → 2.1.10-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 (61) hide show
  1. package/build/@types/form.d.ts +4 -3
  2. package/build/api/entity.d.ts +1 -1
  3. package/build/assets/locales/ar.json +7 -0
  4. package/build/assets/locales/en.json +7 -0
  5. package/build/components/FileInput/DragAndDrop.d.ts +3 -2
  6. package/build/components/FileInput/DragAndDrop.js +4 -4
  7. package/build/components/Lottie/Lottie.d.ts +2924 -127
  8. package/build/components/Lottie/Lottie.js +8 -4
  9. package/build/components/Lottie/files/error.json +692 -0
  10. package/build/components/Lottie/files/start_loading.json +1140 -0
  11. package/build/components/Lottie/files/still_loading.json +1140 -0
  12. package/build/features/app/business/businessStore.d.ts +8 -1
  13. package/build/features/app/business/businessStore.js +74 -15
  14. package/build/features/app/connect/connectStore.d.ts +1 -1
  15. package/build/features/app/connect/connectStore.js +47 -38
  16. package/build/features/bank/screens/BankDetails/BankStatement.js +14 -11
  17. package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
  18. package/build/features/business/screens/BusinessType/Article.js +89 -0
  19. package/build/features/business/screens/BusinessType/BusinessType.js +16 -10
  20. package/build/features/business/screens/BusinessType/EntityName.js +1 -1
  21. package/build/features/business/screens/BusinessType/LicenseCertificate.js +14 -9
  22. package/build/features/business/screens/BusinessType/LicenseList.js +3 -2
  23. package/build/features/business/screens/BusinessType/LicenseType.js +3 -3
  24. package/build/features/business/screens/BusinessType/validation.js +17 -8
  25. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  26. package/build/features/business/screens/VerifyPACI/VerifyPACI.js +9 -134
  27. package/build/features/connect/screens/Merchant/Merchant.js +4 -24
  28. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +2 -5
  29. package/build/features/connect/screens/Merchant/SalesChannels.js +29 -99
  30. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  31. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +9 -73
  32. package/build/features/entity/screens/EntityInfoConfirm/Article.js +14 -11
  33. package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
  34. package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
  35. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACILoading.d.ts +1 -0
  36. package/build/features/shared/PaciVerification/VerifyPACILoading.js +13 -0
  37. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.d.ts +0 -0
  38. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.js +1 -1
  39. package/build/features/shared/PaciVerification/index.d.ts +2 -0
  40. package/build/features/shared/PaciVerification/index.js +2 -0
  41. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
  42. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
  43. package/build/features/shared/SalesChannels/SalesChannel.d.ts +10 -0
  44. package/build/features/shared/SalesChannels/SalesChannel.js +132 -0
  45. package/build/features/shared/SalesChannels/index.d.ts +2 -0
  46. package/build/features/shared/SalesChannels/index.js +2 -0
  47. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -2
  48. package/build/features/shared/UploadFile/UploadFile.js +13 -13
  49. package/build/hooks/index.d.ts +1 -0
  50. package/build/hooks/index.js +1 -0
  51. package/build/hooks/useCountUp.d.ts +9 -0
  52. package/build/hooks/useCountUp.js +17 -0
  53. package/package.json +1 -1
  54. package/build/components/Lottie/files/pulsating_circle_waves.json +0 -236
  55. package/build/features/business/screens/VerifyPACI/VerifyPACILoading.js +0 -23
  56. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +0 -8
  57. package/build/features/connect/screens/Merchant/SocialMedia.js +0 -156
  58. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +0 -6
  59. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +0 -23
  60. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +0 -5
  61. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +0 -8
@@ -40,9 +40,10 @@ export declare type BusinessTypeFormValues = {
40
40
  licenseNumber: string;
41
41
  entityLegalName?: string;
42
42
  selectedLicense?: License;
43
- certificateId?: string;
44
- certificateFile?: File;
45
- uploading?: boolean;
43
+ certificateId?: Array<string>;
44
+ certificateFile?: Array<File>;
45
+ articleId?: string;
46
+ articleFile?: File;
46
47
  };
47
48
  export declare type ActivitiesFormValues = {
48
49
  activities: Array<Activity> | undefined;
@@ -69,7 +69,7 @@ export declare type UpdateEntityBody = {
69
69
  id: string;
70
70
  action: string;
71
71
  }>;
72
- legal_name: {
72
+ legal_name?: {
73
73
  ar: string;
74
74
  en: string;
75
75
  };
@@ -324,6 +324,13 @@
324
324
  "customer_base_name_hint": "customer_base_name_hint",
325
325
  "title_article": "Article",
326
326
  "article_of_association": "Article file. PDF, JPG or PNG files up to 5mb.",
327
+ "paci_verification_title_wait": "Please wait",
328
+ "paci_verification_title_check": "We are still checking",
329
+ "paci_verification_title_error": "We cannot confirm your authentication",
330
+ "paci_verification_description_wait": "This might take a moment...",
331
+ "paci_verification_description_check": "This might take a moment...",
332
+ "paci_verification_description_error": "Please try again.",
333
+ "paci_verification_redirection_message": "You will be redirected now",
327
334
  "commercial_reg_hint": "Commercial Registration",
328
335
  "homemaker_reg_hint": "Home Business"
329
336
  }
@@ -351,6 +351,13 @@
351
351
  "customer_base_name_hint": "customer_base_name_hint",
352
352
  "title_article": "Article",
353
353
  "article_of_association": "Article file. PDF, JPG or PNG files up to 5mb.",
354
+ "paci_verification_title_wait": "Please wait",
355
+ "paci_verification_title_check": "We are still checking",
356
+ "paci_verification_title_error": "We cannot confirm your authentication",
357
+ "paci_verification_description_wait": "This might take a moment...",
358
+ "paci_verification_description_check": "This might take a moment...",
359
+ "paci_verification_description_error": "Please try again.",
360
+ "paci_verification_redirection_message": "You will be redirected now",
354
361
  "commercial_reg_hint": "Commercial Registration",
355
362
  "homemaker_reg_hint": "Home Business"
356
363
  }
@@ -10,7 +10,8 @@ interface DragAndDropProps {
10
10
  uploading?: boolean;
11
11
  uploadSuccess?: boolean;
12
12
  fileExists: boolean;
13
- onSuccess?: (files: File) => void;
13
+ onSuccess?: (files: Array<File>) => void;
14
+ multiple?: boolean;
14
15
  }
15
- declare const DragAndDrop: ({ title, subTitle, description, error, uploadingTitle, successTitle, progress, uploading, fileExists, uploadSuccess, onSuccess }: DragAndDropProps) => JSX.Element;
16
+ declare const DragAndDrop: ({ title, subTitle, description, error, uploadingTitle, successTitle, progress, uploading, fileExists, uploadSuccess, onSuccess, multiple }: DragAndDropProps) => JSX.Element;
16
17
  export default DragAndDrop;
@@ -102,14 +102,14 @@ var WarningContainer = styled(Box)(function (_a) {
102
102
  return (__assign({ background: theme.palette.warning.dark, paddingBlock: theme.spacing(1.5), paddingInlineStart: theme.spacing(2.5), border: '0.5px solid', display: 'flex', justifyContent: 'space-around', borderColor: theme.palette.warning.main, color: theme.palette.warning.light, padding: theme.spacing(0.5, 1), borderRadius: theme.spacing(12.5) }, theme.typography.caption));
103
103
  });
104
104
  var DragAndDrop = function (_a) {
105
- var title = _a.title, subTitle = _a.subTitle, description = _a.description, error = _a.error, uploadingTitle = _a.uploadingTitle, successTitle = _a.successTitle, progress = _a.progress, uploading = _a.uploading, fileExists = _a.fileExists, uploadSuccess = _a.uploadSuccess, onSuccess = _a.onSuccess;
105
+ var title = _a.title, subTitle = _a.subTitle, description = _a.description, error = _a.error, uploadingTitle = _a.uploadingTitle, successTitle = _a.successTitle, progress = _a.progress, uploading = _a.uploading, fileExists = _a.fileExists, uploadSuccess = _a.uploadSuccess, onSuccess = _a.onSuccess, multiple = _a.multiple;
106
106
  var _b = React.useState(false), dragActive = _b[0], setDragActive = _b[1];
107
107
  var _c = React.useState(false), showDone = _c[0], setShowDone = _c[1];
108
108
  var _d = useDropzone({
109
- maxFiles: 1,
109
+ maxFiles: multiple ? undefined : 1,
110
110
  noKeyboard: true,
111
111
  noClick: false,
112
- multiple: false,
112
+ multiple: multiple || false,
113
113
  onDragOver: function () {
114
114
  if (!dragActive)
115
115
  setDragActive(true);
@@ -118,7 +118,7 @@ var DragAndDrop = function (_a) {
118
118
  setDragActive(false);
119
119
  },
120
120
  onDrop: function (files) {
121
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(files === null || files === void 0 ? void 0 : files[0]);
121
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(files);
122
122
  setDragActive(false);
123
123
  }
124
124
  }), getRootProps = _d.getRootProps, getInputProps = _d.getInputProps;