@opexa/portal-components 0.0.695 → 0.0.696

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 (62) hide show
  1. package/dist/components/KYC/KycOpenOnHomeMount.js +10 -2
  2. package/dist/tsconfig.build.tsbuildinfo +1 -0
  3. package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
  4. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
  5. package/dist/ui/Badge/Badge.d.ts +12 -12
  6. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  7. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  8. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  9. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  10. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  11. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  12. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  13. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  14. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  15. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  16. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  17. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  18. package/dist/ui/Menu/Menu.d.ts +90 -90
  19. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  20. package/dist/ui/Popover/Popover.d.ts +55 -55
  21. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  22. package/dist/ui/Select/Select.d.ts +45 -45
  23. package/dist/ui/Select/select.recipe.d.ts +3 -3
  24. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  25. package/package.json +1 -1
  26. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +0 -7
  27. package/dist/components/AccountInfo/GoogleDisconnect.js +0 -11
  28. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  29. package/dist/components/DigitainLauncher/Loading.js +0 -5
  30. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  31. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  32. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  33. package/dist/components/KYC/BasicInformation.js +0 -101
  34. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  35. package/dist/components/KYC/IdentityVerification.js +0 -120
  36. package/dist/components/KYC/Indicator.d.ts +0 -1
  37. package/dist/components/KYC/Indicator.js +0 -8
  38. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  39. package/dist/components/KYC/KYC.lazy.js +0 -45
  40. package/dist/components/KYC/KYCContext.d.ts +0 -6
  41. package/dist/components/KYC/KYCContext.js +0 -2
  42. package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +0 -1
  43. package/dist/components/KYC/KYCDefault/BasicInformation.js +0 -101
  44. package/dist/components/KYC/KYCVerificationStatus.d.ts +0 -1
  45. package/dist/components/KYC/KYCVerificationStatus.js +0 -10
  46. package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +0 -1
  47. package/dist/components/KYC/KYCVerificationStatus.lazy.js +0 -33
  48. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  49. package/dist/components/KYC/PersonalInformation.js +0 -122
  50. package/dist/components/KYC/useKYC.d.ts +0 -25
  51. package/dist/components/KYC/useKYC.js +0 -38
  52. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  53. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  54. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  55. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
  56. package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
  57. package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
  58. package/dist/components/SessionWatcher/index.d.ts +0 -1
  59. package/dist/components/SessionWatcher/index.js +0 -1
  60. package/dist/icons/LinkBrokenIcon.d.ts +0 -2
  61. package/dist/icons/LinkBrokenIcon.js +0 -4
  62. package/dist/images/responsible-gaming-yellow.png +0 -0
@@ -10,6 +10,7 @@ export function KycOpenOnHomeMount(props) {
10
10
  const { data: account, isLoading: accountLoading } = useAccountQuery();
11
11
  const isVerificationLocked = account?.status === 'VERIFICATION_LOCKED';
12
12
  const isPending = account?.verificationStatus === 'PENDING';
13
+ const isRejected = verification?.status === 'REJECTED';
13
14
  const hasntSubmittedCompliantDocs = account?.verified ||
14
15
  verification?.sumsubVerified ||
15
16
  verification?.status === 'APPROVED' ||
@@ -34,14 +35,20 @@ export function KycOpenOnHomeMount(props) {
34
35
  !verification?.address;
35
36
  useEffect(() => {
36
37
  if (!verificationLoading && !accountLoading) {
38
+ const shouldShowReminder = Boolean(props.isSkippable);
37
39
  // Handle pending case with feature flag
38
40
  if (isPending) {
39
41
  setkycOpen(false);
40
42
  setkycReminderOpen(true);
41
43
  }
42
- if (hasntSubmittedCompliantDocs || hasntCompletedKYC) {
44
+ // Handle rejected verification status
45
+ else if (isRejected) {
46
+ setkycReminderOpen(shouldShowReminder);
47
+ setkycOpen(!shouldShowReminder);
48
+ }
49
+ // Handle cases where user hasn't submitted compliant documents or hasn't completed KYC
50
+ else if (hasntSubmittedCompliantDocs || hasntCompletedKYC) {
43
51
  // Set modal states based on whether KYC can be skipped
44
- const shouldShowReminder = Boolean(props.isSkippable);
45
52
  setkycReminderOpen(shouldShowReminder);
46
53
  setkycOpen(!shouldShowReminder);
47
54
  }
@@ -62,6 +69,7 @@ export function KycOpenOnHomeMount(props) {
62
69
  hasntCompletedKYC,
63
70
  isVerificationLocked,
64
71
  isPending,
72
+ isRejected,
65
73
  props.isSkippable,
66
74
  ]);
67
75
  return null;