@opexa/portal-components 0.0.920 → 0.0.922

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 (113) hide show
  1. package/dist/client/hooks/useUpdateMobileNumber.d.ts +3 -0
  2. package/dist/client/hooks/useUpdateMobileNumber.js +20 -0
  3. package/dist/components/AccountInfo/AccountInfo.js +5 -3
  4. package/dist/components/AccountSecurity/AccountSecurity.js +6 -3
  5. package/dist/components/AccountVerification/AccountVerification.js +1 -1
  6. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.d.ts +4 -4
  7. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.d.ts +2 -2
  8. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +4 -4
  9. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +2 -2
  10. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +4 -4
  11. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +2 -2
  12. package/dist/components/KYC/KYCVerificationStatus.lazy.js +4 -7
  13. package/dist/components/ResponsibleGaming/ResponsibleGamingV2.lazy.js +37 -14
  14. package/dist/components/TermsOfUse/TermsOfUseV2.lazy.js +35 -14
  15. package/dist/components/TransactionRecords/TableFilters.js +2 -2
  16. package/dist/components/UpdateMobileNumber/UpdateMobileNumber.d.ts +3 -0
  17. package/dist/components/UpdateMobileNumber/UpdateMobileNumber.js +136 -0
  18. package/dist/components/UpdateMobileNumber/index.d.ts +1 -0
  19. package/dist/components/UpdateMobileNumber/index.js +1 -0
  20. package/dist/icons/ScrollToBottomIcon.js +1 -1
  21. package/dist/icons/ScrollToTopIcon.d.ts +2 -0
  22. package/dist/icons/ScrollToTopIcon.js +4 -0
  23. package/dist/images/alert-circle-icon.png +0 -0
  24. package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
  25. package/dist/services/account.d.ts +21 -0
  26. package/dist/services/account.js +11 -1
  27. package/dist/services/queries.d.ts +1 -0
  28. package/dist/services/queries.js +14 -0
  29. package/dist/types/index.d.ts +1 -1
  30. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  31. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  32. package/dist/ui/Badge/Badge.d.ts +12 -12
  33. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  34. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  35. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  36. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  37. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  38. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  39. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  40. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  41. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  42. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  43. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  44. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  45. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  46. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  47. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  48. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  49. package/dist/ui/Menu/Menu.d.ts +252 -252
  50. package/dist/ui/Menu/menu.recipe.d.ts +14 -14
  51. package/dist/ui/Popover/Popover.d.ts +88 -88
  52. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  53. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  54. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  55. package/dist/ui/Select/Select.d.ts +45 -45
  56. package/dist/ui/Select/select.recipe.d.ts +3 -3
  57. package/dist/ui/Table/Table.d.ts +21 -21
  58. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  59. package/dist/ui/Table/table.recipe.d.ts +3 -3
  60. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  61. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  62. package/dist/utils/mutationKeys.d.ts +1 -0
  63. package/dist/utils/mutationKeys.js +8 -1
  64. package/package.json +1 -1
  65. package/dist/components/Banner/Banner.client.d.ts +0 -12
  66. package/dist/components/Banner/Banner.client.js +0 -49
  67. package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +0 -11
  68. package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +0 -55
  69. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  70. package/dist/components/DigitainLauncher/Loading.js +0 -5
  71. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  72. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  73. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  74. package/dist/components/KYC/BasicInformation.js +0 -101
  75. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  76. package/dist/components/KYC/IdentityVerification.js +0 -120
  77. package/dist/components/KYC/Indicator.d.ts +0 -1
  78. package/dist/components/KYC/Indicator.js +0 -8
  79. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  80. package/dist/components/KYC/KYC.lazy.js +0 -45
  81. package/dist/components/KYC/KYCContext.d.ts +0 -6
  82. package/dist/components/KYC/KYCContext.js +0 -2
  83. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  84. package/dist/components/KYC/PersonalInformation.js +0 -122
  85. package/dist/components/KYC/useKYC.d.ts +0 -25
  86. package/dist/components/KYC/useKYC.js +0 -38
  87. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  88. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  89. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  90. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
  91. package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
  92. package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
  93. package/dist/components/SessionWatcher/index.d.ts +0 -1
  94. package/dist/components/SessionWatcher/index.js +0 -1
  95. package/dist/components/SignIn/utils.d.ts +0 -8
  96. package/dist/components/SignIn/utils.js +0 -26
  97. package/dist/constants/Branches.d.ts +0 -2
  98. package/dist/constants/Branches.js +0 -42
  99. package/dist/images/responsible-gaming-yellow.png +0 -0
  100. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  101. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  102. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  103. package/dist/third-parties/FacebookPixel/api.js +0 -1
  104. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  105. package/dist/third-parties/FacebookPixel/index.js +0 -1
  106. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  107. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  108. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  109. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  110. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  111. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  112. package/dist/third-parties/index.d.ts +0 -2
  113. package/dist/third-parties/index.js +0 -2
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function ScrollToTopIcon(props) {
3
+ return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "12", viewBox: "0 0 10 12", fill: "none", ...props, children: _jsx("path", { d: "M9.16634 10.8335L4.99967 6.66683L0.833008 10.8335M9.16634 5.00016L4.99967 0.833496L0.833008 5.00016", stroke: "#CECFD2", strokeWidth: "1.66667", strokeLinecap: "round", strokeLinejoin: "round" }) }));
4
+ }
@@ -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
- password: string;
12
11
  verificationCode: string;
12
+ password: string;
13
13
  mobileNumber: string;
14
14
  confirmPassword: string;
15
15
  }, {
16
- password: string;
17
16
  verificationCode: string;
17
+ password: string;
18
18
  mobileNumber: string;
19
19
  confirmPassword: string;
20
20
  }>, {
21
- password: string;
22
21
  verificationCode: string;
22
+ password: string;
23
23
  mobileNumber: string;
24
24
  confirmPassword: string;
25
25
  }, {
26
- password: string;
27
26
  verificationCode: string;
27
+ password: string;
28
28
  mobileNumber: string;
29
29
  confirmPassword: string;
30
30
  }>;
@@ -231,6 +231,27 @@ export interface VerifyMobileNumberMutationVariables {
231
231
  };
232
232
  }
233
233
  export declare const verifyMobileNumber: (verificationCode: string, options?: GraphQLRequestOptions) => Promise<void>;
234
+ export type UpdateMobileNumberError = {
235
+ name: 'InvalidSMSVerificationCodeError';
236
+ message: string;
237
+ } | {
238
+ name: 'MobileNumberNotAvailableError';
239
+ message: string;
240
+ };
241
+ export interface UpdateMobileNumberMutation {
242
+ updateMobileNumber?: null | UpdateMobileNumberError;
243
+ }
244
+ export type UpdateMobileNumberInput = {
245
+ mobileNumber: string;
246
+ verificationCode: string;
247
+ };
248
+ export interface UpdateMobileNumberMutationVariables {
249
+ input: {
250
+ mobileNumber: string;
251
+ verificationCode: string;
252
+ };
253
+ }
254
+ export declare const updateMobileNumber: (mobileNumber: string, verificationCode: string, options?: GraphQLRequestOptions) => Promise<void>;
234
255
  export type CreateMemberVerificationError = {
235
256
  name: 'FileDoesNotExistError';
236
257
  message: string;
@@ -1,7 +1,7 @@
1
1
  import { cache } from 'react';
2
2
  import { ACCOUNT_GRAPHQL_ENDPOINT } from '../constants/index.js';
3
3
  import { graphqlRequest } from './graphqlRequest.js';
4
- import { ANNOUNCEMENTS, APPROVE_MEMBER_VERIFICATION__NEXT, CREATE_MEMBER_VERIFICATION, CREATE_MEMBER_VERIFICATION__NEXT, DELETE_MEMBER_ACCOUNT, FACEBOOK_CLIENT_ID, GENERATE_SUMSUB_VERIFICATION_TOKEN, GOOGLE_CLIENT_ID, MEMBER_ACCOUNT, MEMBER_VERIFICATION, PAYMENT_SETTINGS, POINTS_CLUB_SETTINGS, PROFILE_COMPLETION, REFERRAL_CODE, REGISTER_MAYA_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT__NEXT, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER, REGISTER_MEMBER_ACCOUNT_BY_NAME, REGISTER_MEMBER_ACCOUNT_VIA_MOBILE, REQUIRE_FIRST_DEPOSIT, RESET_PASSWORD, UNLINK_FACEBOOK, UNLINK_GOOGLE, UPDATE_MEMBER_ACCOUNT, UPDATE_MEMBER_VERIFICATION, UPDATE_MEMBER_VERIFICATION__NEXT, UPDATE_REFERRAL_CODE, VERIFY_MOBILE_NUMBER, } from './queries.js';
4
+ import { ANNOUNCEMENTS, APPROVE_MEMBER_VERIFICATION__NEXT, CREATE_MEMBER_VERIFICATION, CREATE_MEMBER_VERIFICATION__NEXT, DELETE_MEMBER_ACCOUNT, FACEBOOK_CLIENT_ID, GENERATE_SUMSUB_VERIFICATION_TOKEN, GOOGLE_CLIENT_ID, MEMBER_ACCOUNT, MEMBER_VERIFICATION, PAYMENT_SETTINGS, POINTS_CLUB_SETTINGS, PROFILE_COMPLETION, REFERRAL_CODE, REGISTER_MAYA_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT__NEXT, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER, REGISTER_MEMBER_ACCOUNT_BY_NAME, REGISTER_MEMBER_ACCOUNT_VIA_MOBILE, REQUIRE_FIRST_DEPOSIT, RESET_PASSWORD, UNLINK_FACEBOOK, UNLINK_GOOGLE, UPDATE_MEMBER_ACCOUNT, UPDATE_MEMBER_VERIFICATION, UPDATE_MEMBER_VERIFICATION__NEXT, UPDATE_MOBILE_NUMBER, UPDATE_REFERRAL_CODE, VERIFY_MOBILE_NUMBER, } from './queries.js';
5
5
  import { sha256 } from './sha256.js';
6
6
  export const getMemberAccount = cache(async (options) => {
7
7
  const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, MEMBER_ACCOUNT, undefined, options);
@@ -166,6 +166,16 @@ export const verifyMobileNumber = async (verificationCode, options) => {
166
166
  throw error;
167
167
  }
168
168
  };
169
+ export const updateMobileNumber = async (mobileNumber, verificationCode, options) => {
170
+ const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, UPDATE_MOBILE_NUMBER, { input: { mobileNumber, verificationCode } }, options);
171
+ if (res.updateMobileNumber) {
172
+ const error = new Error();
173
+ error.name = res.updateMobileNumber.name;
174
+ error.message = ERROR_CODES_MESSAGE_MAP[res.updateMobileNumber.name];
175
+ Error.captureStackTrace?.(error, updateMobileNumber);
176
+ throw error;
177
+ }
178
+ };
169
179
  export const createMemberVerification = async (input, options) => {
170
180
  const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, CREATE_MEMBER_VERIFICATION, { input }, options);
171
181
  if (res.createMemberVerification) {
@@ -88,6 +88,7 @@ export declare const UPDATE_MEMBER_ACCOUNT = "\n mutation UpdateMemberAccount($
88
88
  export declare const RESET_PASSWORD = "\n mutation ResetPassword(\n $input: ResetPasswordInput!\n $verificationCode: String\n ) {\n resetPassword(input: $input, verificationCode: $verificationCode) {\n ... on AccountNotFoundError {\n name: __typename\n message\n }\n ... on InvalidVerificationCodeError {\n name: __typename\n message\n }\n }\n }\n";
89
89
  export declare const DELETE_MEMBER_ACCOUNT = "\n mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {\n deleteMemberAccount(input: $input)\n }\n";
90
90
  export declare const VERIFY_MOBILE_NUMBER = "\n mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {\n verifyMobileNumber(input: $input) {\n ... on InvalidSMSVerificationCodeError {\n name: __typename\n message\n }\n ... on MobileNumberAlreadyVerifiedError {\n name: __typename\n message\n }\n }\n }\n";
91
+ export declare const UPDATE_MOBILE_NUMBER = "\n mutation UpdateMobileNumber($input: UpdateMobileNumberInput!) {\n updateMobileNumber(input: $input) {\n ... on InvalidSMSVerificationCodeError {\n name: __typename\n message\n }\n ... on MobileNumberNotAvailableError {\n name: __typename\n message\n }\n }\n }\n";
91
92
  export declare const CREATE_MEMBER_VERIFICATION = "\n mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {\n createMemberVerification(input: $input) {\n ... on FileDoesNotExistError {\n name: __typename\n message\n }\n ... on FileNotReadyError {\n name: __typename\n message\n }\n ... on MemberVerificationAlreadyExistsError {\n name: __typename\n message\n }\n }\n }\n";
92
93
  export declare const CREATE_MEMBER_VERIFICATION__NEXT = "\n mutation CreateMemberVerification(\n $input: CreateMemberVerificationInput_next!\n ) {\n createMemberVerification: createMemberVerification_next(input: $input) {\n ... on FileDoesNotExistError {\n name: __typename\n message\n }\n ... on FileNotReadyError {\n name: __typename\n message\n }\n ... on MemberVerificationAlreadyExistsError {\n name: __typename\n message\n }\n }\n }\n";
93
94
  export declare const UPDATE_MEMBER_VERIFICATION = "\n mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {\n updateMemberVerification(input: $input) {\n ... on FileDoesNotExistError {\n name: __typename\n message\n }\n ... on FileNotReadyError {\n name: __typename\n message\n }\n ... on MemberVerificationAlreadyApprovedError {\n name: __typename\n message\n }\n ... on MemberVerificationDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
@@ -2375,6 +2375,20 @@ export const VERIFY_MOBILE_NUMBER = /* GraphQL */ `
2375
2375
  }
2376
2376
  }
2377
2377
  `;
2378
+ export const UPDATE_MOBILE_NUMBER = /* GraphQL */ `
2379
+ mutation UpdateMobileNumber($input: UpdateMobileNumberInput!) {
2380
+ updateMobileNumber(input: $input) {
2381
+ ... on InvalidSMSVerificationCodeError {
2382
+ name: __typename
2383
+ message
2384
+ }
2385
+ ... on MobileNumberNotAvailableError {
2386
+ name: __typename
2387
+ message
2388
+ }
2389
+ }
2390
+ }
2391
+ `;
2378
2392
  export const CREATE_MEMBER_VERIFICATION = /* GraphQL */ `
2379
2393
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
2380
2394
  createMemberVerification(input: $input) {
@@ -255,7 +255,7 @@ export interface LatestBetRecord {
255
255
  dateTimeSettled: string;
256
256
  dateTimeCreated: string;
257
257
  }
258
- export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'MAYA_WEBPAY' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'PISO_PAY_CHECKOUT' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'LIBANGAN_PAY_IN' | 'AURIX_PAY_QRPH' | 'AURIX_PAY_GCASH' | 'AURIX_PAY_PAYMAYA' | 'AURIX_PAY_GRAB_PAY' | 'TEST';
258
+ export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'MAYA_WEBPAY' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'PISO_PAY_CHECKOUT' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'LIBANGAN_PAY_IN' | 'AURIX_PAY_QR_PH' | 'AURIX_PAY_GCASH' | 'AURIX_PAY_PAY_MAYA' | 'AURIX_PAY_GRAB_PAY' | 'TEST';
259
259
  export type DepositStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
260
260
  export type KnownDepositError = 'INSUFFICIENT_BALANCE' | 'DEPOSIT_CREATION_REQUEST_FAILED' | 'DEPOSIT_EXECUTION_REQUEST_FAILED' | 'REQUEST_SESSION_EXPIRED' | 'REQUEST_TIMEOUT' | 'SYSTEM_CANCELLATION' | 'UNEXPECTED_ERROR' | 'FAILED_TO_PROCESS_PAYMENT' | 'MINIMUM_DEPOSIT_AMOUNT_NOT_MET' | 'UNTOUCHED';
261
261
  export interface DepositRecord {