@opexa/portal-components 0.0.965 → 0.0.967

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 (114) hide show
  1. package/dist/__tests__/utils/mocks.d.ts +1 -1
  2. package/dist/client/hooks/useCamera.js +15 -55
  3. package/dist/components/AccountInfo/AccountInfo.js +1 -1
  4. package/dist/components/AccountSecurity/AccountSecurity.js +1 -1
  5. package/dist/components/Banner/Banner.js +3 -3
  6. package/dist/components/DepositWithdrawal/Deposit/AiOGCashDeposit/AiOGCashDeposit.js +1 -1
  7. package/dist/components/DepositWithdrawal/Deposit/AiOGrabPayDeposit/AiOGrabPayDeposit.js +1 -1
  8. package/dist/components/DepositWithdrawal/Deposit/AiOPayMayaDeposit/AiOPayMayaDeposit.js +1 -1
  9. package/dist/components/DepositWithdrawal/Deposit/AurixPayGCashDeposit/AurixPayGCashDeposit.js +2 -2
  10. package/dist/components/DepositWithdrawal/Deposit/AurixPayGrabPayDeposit/AurixPayGrabPayDeposit.js +2 -2
  11. package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayPayMayaDeposit.js +2 -2
  12. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Form.js +1 -1
  13. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +22 -11
  14. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  15. package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit/GCashWebpayDeposit.js +1 -1
  16. package/dist/components/DepositWithdrawal/Deposit/LibanganDeposit/LibanganDeposit.js +1 -1
  17. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  18. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  19. package/dist/components/DepositWithdrawal/Deposit/MayaWebpayDeposit/MayaWebpayDeposit.js +1 -1
  20. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  21. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  22. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  23. package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.js +1 -1
  24. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/Form.js +1 -1
  25. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +1 -0
  26. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +2 -1
  27. package/dist/components/DepositWithdrawal/Withdrawal/GCashStandardCashInWithdrawal/GCashStandardCashInWithdrawal.js +2 -2
  28. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +2 -2
  29. package/dist/components/DepositWithdrawal/Withdrawal/InstapayGCashWithdrawal/InstapayGcashWithdrawal.js +3 -3
  30. package/dist/components/DepositWithdrawal/Withdrawal/InstapayPaymayaWithdrawal/InstapayPaymayaWithdrawal.js +3 -3
  31. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
  32. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
  33. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +2 -2
  34. package/dist/components/DepositWithdrawal/Withdrawal/PisoPayWithdrawal/PisoPayWithdrawal.js +1 -1
  35. package/dist/components/DepositWithdrawal/Withdrawal/TransactionPasswordNotSet.js +2 -2
  36. package/dist/components/DepositWithdrawal/Withdrawal/VentajaWithdrawal/VentajaWithdrawal.js +5 -5
  37. package/dist/components/Disclaimer/DisclaimerV1.js +3 -3
  38. package/dist/components/Disclaimer/DisclaimerV2.js +3 -3
  39. package/dist/components/Disclaimer/DisclaimerV3.js +24 -15
  40. package/dist/components/ForgotPassword/Crazywin/CWForgotPassword.js +1 -1
  41. package/dist/components/ForgotPassword/Crazywin/CWForgotPasswordForm.js +2 -2
  42. package/dist/components/ForgotPassword/ForgotPasswordForm.js +3 -3
  43. package/dist/components/GameProviders/GameProvidersCarousel.d.ts +8 -0
  44. package/dist/components/GameProviders/GameProvidersCarousel.js +32 -0
  45. package/dist/components/Games/Game.js +2 -1
  46. package/dist/components/GamesSearch/GamesSearch.js +8 -5
  47. package/dist/components/Jackpots/JackpotsCarouselNext/JackpotsCarouselStageItem.js +1 -1
  48. package/dist/components/Quests/Crazywin/components/Countdown.js +1 -1
  49. package/dist/components/Search/Search.lazy.js +8 -5
  50. package/dist/components/SignUp/SignUpKYC/SelfieImageField/useSelfieImageField.js +0 -1
  51. package/dist/components/TermsOfUse/TermsOfUseV2.lazy.d.ts +1 -1
  52. package/dist/components/TermsOfUse/TermsOfUseV2.lazy.js +1 -1
  53. package/dist/components/TermsOfUse/TermsOfUseV3.lazy.d.ts +1 -1
  54. package/dist/components/TermsOfUse/TermsOfUseV3.lazy.js +1 -1
  55. package/dist/components/UpdateMobilePhoneNumber/UpdateMobilePhoneNumber.d.ts +1 -0
  56. package/dist/{lib/components/UpdateMobileNumber/UpdateMobileNumber.js → components/UpdateMobilePhoneNumber/UpdateMobilePhoneNumber.js} +3 -5
  57. package/dist/components/UpdateMobilePhoneNumber/index.d.ts +1 -0
  58. package/dist/components/UpdateMobilePhoneNumber/index.js +1 -0
  59. package/dist/components/shared/SelfieImageField/useSelfieImageField.js +1 -3
  60. package/dist/handlers/index.d.ts +2 -2
  61. package/dist/lib/components/UpdateMobilePhoneNumber/UpdateMobilePhoneNumber.js +1 -1
  62. package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
  63. package/dist/services/auth.d.ts +2 -2
  64. package/dist/services/httpRequest.d.ts +2 -2
  65. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  66. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  67. package/dist/ui/Badge/Badge.d.ts +12 -12
  68. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  69. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  70. package/dist/ui/Carousel/Carousel.d.ts +126 -72
  71. package/dist/ui/Carousel/carousel.recipe.d.ts +14 -8
  72. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  73. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  74. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  75. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  76. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  77. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  78. package/dist/ui/Combobox/Combobox.d.ts +43 -43
  79. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  80. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  81. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  82. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  83. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  84. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  85. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  86. package/dist/ui/Menu/Menu.d.ts +198 -198
  87. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  88. package/dist/ui/Popover/Popover.d.ts +88 -88
  89. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  90. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  91. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  92. package/dist/ui/Select/Select.d.ts +46 -46
  93. package/dist/ui/Select/select.recipe.d.ts +3 -3
  94. package/dist/ui/Table/Table.d.ts +21 -21
  95. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  96. package/dist/ui/Table/table.recipe.d.ts +3 -3
  97. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  98. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  99. package/package.json +1 -1
  100. package/dist/client/hooks/useVerifyMobileNumber.d.ts +0 -3
  101. package/dist/client/hooks/useVerifyMobileNumber.js +0 -20
  102. package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.d.ts +0 -1
  103. package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js +0 -241
  104. package/dist/components/SingleSignOn/SingleSignOn.d.ts +0 -4
  105. package/dist/components/SingleSignOn/SingleSignOn.js +0 -185
  106. package/dist/components/SingleSignOn/index.d.ts +0 -1
  107. package/dist/components/SingleSignOn/index.js +0 -1
  108. package/dist/components/UpdateMobileNumber/UpdateMobileNumber.d.ts +0 -3
  109. package/dist/components/UpdateMobileNumber/UpdateMobileNumber.js +0 -141
  110. package/dist/components/UpdateMobileNumber/index.d.ts +0 -1
  111. package/dist/components/UpdateMobileNumber/index.js +0 -1
  112. package/dist/lib/components/UpdateMobileNumber/UpdateMobileNumber.d.ts +0 -1
  113. package/dist/lib/components/UpdateMobileNumber/index.d.ts +0 -1
  114. package/dist/lib/components/UpdateMobileNumber/index.js +0 -1
@@ -6,4 +6,4 @@ export interface TermsOfUseV3Props {
6
6
  siteName: string;
7
7
  responsibleGamingLogo?: ImageProps['src'];
8
8
  }
9
- export declare function TermsOfUseV3({ logo, siteName, content, ...props }: TermsOfUseV3Props): import("react/jsx-runtime").JSX.Element;
9
+ export declare function TermsOfUseV3({ logo, content }: TermsOfUseV3Props): import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,7 @@ import decorativebackground from '../../images/decorative-patern.png';
10
10
  import { Button } from '../../ui/Button/index.js';
11
11
  import { Dialog } from '../../ui/Dialog/index.js';
12
12
  import { Portal } from '../../ui/Portal/index.js';
13
- export function TermsOfUseV3({ logo, siteName, content, ...props }) {
13
+ export function TermsOfUseV3({ logo, content }) {
14
14
  const scrollableContentRef = useRef(null);
15
15
  const [hasReachedBottom, setHasReachedBottom] = useState(false);
16
16
  const [isAtBottom, setIsAtBottom] = useState(false);
@@ -0,0 +1 @@
1
+ export declare function UpdateMobilePhoneNumber(): import("react/jsx-runtime").JSX.Element;
@@ -20,13 +20,12 @@ import { Dialog } from '../../ui/Dialog/index.js';
20
20
  import { Field } from '../../ui/Field/index.js';
21
21
  import { PinInput } from '../../ui/PinInput/index.js';
22
22
  import { Portal } from '../../ui/Portal/index.js';
23
- export function UpdateMobileNumber() {
23
+ export function UpdateMobilePhoneNumber() {
24
24
  const accountQuery = useAccountQuery();
25
25
  const account = accountQuery.data;
26
26
  const isAccountLoading = accountQuery.isLoading;
27
27
  const hasMobileNumber = !!account?.mobileNumber;
28
28
  const [isDialogOpen, setIsDialogOpen] = useState(false);
29
- console.log('isDialogOpen', isDialogOpen);
30
29
  // biome-ignore lint/correctness/useExhaustiveDependencies: We only want to open the dialog when the account data loads, not on every hasMobileNumber change
31
30
  useEffect(() => {
32
31
  if (!isAccountLoading && !!account && !hasMobileNumber) {
@@ -59,11 +58,9 @@ export function UpdateMobileNumber() {
59
58
  description: 'Your mobile number has been verified.',
60
59
  });
61
60
  setIsDialogOpen(false);
62
- console.log('close dialog');
61
+ console.log('mobile number updated successfully');
63
62
  },
64
63
  onError: (err) => {
65
- console.log('err', err);
66
- console.log('error updating mobile number');
67
64
  const errorMessage = err.message === 'Internal Server Error'
68
65
  ? `mobile number ${mobileNumberParser.format(step1Form.getValues('mobileNumber'))} is not available`
69
66
  : err.message;
@@ -71,6 +68,7 @@ export function UpdateMobileNumber() {
71
68
  title: 'Sign In Failed',
72
69
  description: errorMessage,
73
70
  });
71
+ console.log('error updating mobile number');
74
72
  },
75
73
  });
76
74
  const localeInfo = useLocaleInfo();
@@ -0,0 +1 @@
1
+ export * from './UpdateMobilePhoneNumber';
@@ -0,0 +1 @@
1
+ export * from './UpdateMobilePhoneNumber.js';
@@ -2,7 +2,7 @@ import { useFieldContext } from '@ark-ui/react';
2
2
  import { FaceDetector, FilesetResolver } from '@mediapipe/tasks-vision';
3
3
  import { useRef, useState } from 'react';
4
4
  import invariant from 'tiny-invariant';
5
- import { useInterval, useMediaQuery } from 'usehooks-ts';
5
+ import { useInterval } from 'usehooks-ts';
6
6
  import { useCamera } from '../../../client/hooks/useCamera.js';
7
7
  import { useControllableState } from '../../../client/hooks/useControllableState.js';
8
8
  import { useDisclosure } from '../../../client/hooks/useDisclosure.js';
@@ -11,7 +11,6 @@ import { useUploadPrivateImageFileMutation } from '../../../client/hooks/useUplo
11
11
  import { toaster } from '../../../client/utils/toaster.js';
12
12
  export function useSelfieImageField(props) {
13
13
  const field = useFieldContext();
14
- const desktop = useMediaQuery('(min-width: 1024px)');
15
14
  const [value, setValue] = useControllableState({
16
15
  value: props.value,
17
16
  defaultValue: props.defaultValue ?? '',
@@ -88,7 +87,6 @@ export function useSelfieImageField(props) {
88
87
  invariant(blob);
89
88
  resolve(new File([blob], `front-image-${Date.now()}.jpeg`, {
90
89
  type: 'image/jpeg',
91
- endings: 'native',
92
90
  lastModified: Date.now(),
93
91
  }));
94
92
  }, 'image/jpeg', 1.0));
@@ -18,14 +18,14 @@ export declare const GET: (req: NextRequest, { params }: Context) => Promise<Nex
18
18
  __error?: unknown;
19
19
  } | {
20
20
  ok: true;
21
- data: import("../types").Session;
21
+ data: Record<string, unknown>;
22
22
  }> | NextResponse<{
23
23
  ok: false;
24
24
  message: string;
25
25
  __error?: unknown;
26
26
  } | {
27
27
  ok: true;
28
- data: Record<string, unknown>;
28
+ data: import("../types").Session;
29
29
  }>>;
30
30
  export declare const DELETE: (req: NextRequest, { params }: Context) => Promise<NextResponse<{
31
31
  ok: true;
@@ -61,7 +61,6 @@ export function UpdateMobilePhoneNumber() {
61
61
  console.log('mobile number updated successfully');
62
62
  },
63
63
  onError: (err) => {
64
- console.log('error updating mobile number');
65
64
  const errorMessage = err.message === 'Internal Server Error'
66
65
  ? `mobile number ${mobileNumberParser.format(step1Form.getValues('mobileNumber'))} is not available`
67
66
  : err.message;
@@ -69,6 +68,7 @@ export function UpdateMobilePhoneNumber() {
69
68
  title: 'Sign In Failed',
70
69
  description: errorMessage,
71
70
  });
71
+ console.log('error updating mobile number');
72
72
  },
73
73
  });
74
74
  const localeInfo = useLocaleInfo();
@@ -8,23 +8,23 @@ export declare const createForgotPasswordSchema: (mobileNumberParser: MobileNumb
8
8
  mobileNumber: z.ZodEffects<z.ZodString, string, string>;
9
9
  verificationCode: z.ZodEffects<z.ZodString, string, string>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- verificationCode: string;
12
11
  password: string;
12
+ verificationCode: string;
13
13
  mobileNumber: string;
14
14
  confirmPassword: string;
15
15
  }, {
16
- verificationCode: string;
17
16
  password: string;
17
+ verificationCode: string;
18
18
  mobileNumber: string;
19
19
  confirmPassword: string;
20
20
  }>, {
21
- verificationCode: string;
22
21
  password: string;
22
+ verificationCode: string;
23
23
  mobileNumber: string;
24
24
  confirmPassword: string;
25
25
  }, {
26
- verificationCode: string;
27
26
  password: string;
27
+ verificationCode: string;
28
28
  mobileNumber: string;
29
29
  confirmPassword: string;
30
30
  }>;
@@ -85,11 +85,11 @@ export declare function sendVerificationCode(input: SendVerificationCodeInput, o
85
85
  type: ResponseType;
86
86
  url: string;
87
87
  clone(): Response;
88
- body: ReadableStream<Uint8Array> | null;
88
+ body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
89
89
  bodyUsed: boolean;
90
90
  arrayBuffer(): Promise<ArrayBuffer>;
91
91
  blob(): Promise<Blob>;
92
- bytes(): Promise<Uint8Array>;
92
+ bytes(): Promise<Uint8Array<ArrayBuffer>>;
93
93
  formData(): Promise<FormData>;
94
94
  text(): Promise<string>;
95
95
  }>;
@@ -10,11 +10,11 @@ export declare function httpRequest(url: string, opts?: HttpRequestOptions): Pro
10
10
  type: ResponseType;
11
11
  url: string;
12
12
  clone(): Response;
13
- body: ReadableStream<Uint8Array> | null;
13
+ body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
14
14
  bodyUsed: boolean;
15
15
  arrayBuffer(): Promise<ArrayBuffer>;
16
16
  blob(): Promise<Blob>;
17
- bytes(): Promise<Uint8Array>;
17
+ bytes(): Promise<Uint8Array<ArrayBuffer>>;
18
18
  formData(): Promise<FormData>;
19
19
  text(): Promise<string>;
20
20
  }>;