@opexa/portal-components 0.0.1011 → 0.0.1012

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 (47) hide show
  1. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  2. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  3. package/dist/components/KYC/KYCDefault/PersonalInformation.js +1 -1
  4. package/dist/components/KYC/KYCReview.js +2 -5
  5. package/dist/components/KYC/KycOpenOnHomeMount.js +2 -1
  6. package/dist/schemas/forgotPasswordSchema.d.ts +8 -8
  7. package/dist/types/index.d.ts +1 -0
  8. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  9. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  10. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  11. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  12. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  13. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  14. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  15. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  16. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  17. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  18. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  19. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  20. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  21. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  22. package/dist/ui/Menu/Menu.d.ts +144 -144
  23. package/dist/ui/Menu/menu.recipe.d.ts +8 -8
  24. package/dist/ui/Progress/Progress.d.ts +27 -27
  25. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  26. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  27. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  28. package/dist/ui/Select/Select.d.ts +45 -45
  29. package/dist/ui/Select/select.recipe.d.ts +3 -3
  30. package/dist/ui/Table/Table.d.ts +21 -21
  31. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  32. package/dist/ui/Table/table.recipe.d.ts +3 -3
  33. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  34. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  35. package/package.json +1 -1
  36. package/dist/client/hooks/useVerifyMobileNumber.d.ts +0 -3
  37. package/dist/client/hooks/useVerifyMobileNumber.js +0 -20
  38. package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.d.ts +0 -1
  39. package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js +0 -241
  40. package/dist/components/SingleSignOn/SingleSignOn.d.ts +0 -4
  41. package/dist/components/SingleSignOn/SingleSignOn.js +0 -185
  42. package/dist/components/SingleSignOn/index.d.ts +0 -1
  43. package/dist/components/SingleSignOn/index.js +0 -1
  44. package/dist/lib/components/UpdateMobilePhoneNumber/UpdateMobilePhoneNumber.d.ts +0 -1
  45. package/dist/lib/components/UpdateMobilePhoneNumber/UpdateMobilePhoneNumber.js +0 -152
  46. package/dist/lib/components/UpdateMobilePhoneNumber/index.d.ts +0 -1
  47. package/dist/lib/components/UpdateMobilePhoneNumber/index.js +0 -1
@@ -1,7 +1,7 @@
1
1
  export declare const OnlineBankDepositContext: (props: {
2
2
  value: {
3
3
  view: "form" | "vca";
4
- status: "failed" | "waiting" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
4
+ status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
5
  verify: () => void;
6
6
  reset: () => void;
7
7
  deposit: import("../../../../types").Deposit | null;
@@ -14,7 +14,7 @@ export declare const OnlineBankDepositContext: (props: {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useOnlineBankDepositContext: () => {
16
16
  view: "form" | "vca";
17
- status: "failed" | "waiting" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
17
+ status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
18
18
  verify: () => void;
19
19
  reset: () => void;
20
20
  deposit: import("../../../../types").Deposit | null;
@@ -2,7 +2,7 @@ import type { Deposit } from '../../../../types';
2
2
  export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
3
3
  export declare function useOnlineBankDeposit(): {
4
4
  view: "form" | "vca";
5
- status: "failed" | "waiting" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
+ status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
8
8
  deposit: Deposit | null;
@@ -168,7 +168,7 @@ export function PersonalInformation() {
168
168
  createMemberVerificationMutation.isPending, children: "Continue" }), kyc.isSkippable && (_jsx(Button, { variant: "outline", colorScheme: "gray", className: twMerge('mt-lg', accountStatus === 'VERIFICATION_LOCKED' && 'hidden'), type: "button", onClick: () => {
169
169
  globalStore.kyc.setOpen(false);
170
170
  }, disabled: updateMemberVerificationMutation.isPending ||
171
- createMemberVerificationMutation.isPending, children: "Skip for now" })), ' ', _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: async () => {
171
+ createMemberVerificationMutation.isPending, children: "Skip for now" })), _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: async () => {
172
172
  if (Capacitor.isNativePlatform()) {
173
173
  const session = await getQueryClient().fetchQuery({
174
174
  queryKey: getSessionQueryKey(),
@@ -3,7 +3,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import Image from 'next/image';
4
4
  import { useState } from 'react';
5
5
  import { useShallow } from 'zustand/shallow';
6
- import { useFeatureFlag } from '../../client/hooks/useFeatureFlag.js';
7
6
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
8
7
  import { getSession } from '../../client/services/getSession.js';
9
8
  import { toaster } from '../../client/utils/toaster.js';
@@ -16,9 +15,7 @@ import { Portal } from '../../ui/Portal/index.js';
16
15
  export function KYCReview() {
17
16
  const { kycReview } = useGlobalStore(useShallow((s) => ({ kycReview: s.kycReview })));
18
17
  const [isLoading, setIsLoading] = useState(false);
19
- const featureFlag = useFeatureFlag();
20
- const isDialogOpen = kycReview.open && featureFlag.enabled;
21
- return (_jsx(Dialog.Root, { open: isDialogOpen, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "flex items-center", children: _jsxs(Dialog.Content, { className: "flex w-[375px] flex-col items-center justify-between space-y-4 rounded-lg bg-[#232443] p-6 text-center", children: [_jsxs("div", { className: "flex flex-col items-center", children: [_jsx("div", { className: "mb-4 h-7 w-7 animate-spin rounded-full border-4 border-[#101730] border-t-[#F05027]" }), _jsx("div", { className: "font-semibold text-[#F5F5F6] text-lg", children: "Thanks for your submission." }), _jsxs("div", { className: "mt-1 text-[#CECFD2] text-sm", children: ["We\u2019re now ", '', _jsxs("span", { className: "text-[#F96B47]", children: ["reviewing your KYC information ", ''] }), "and will notify you once the verification is complete."] }), _jsx("div", { className: "mt-6 text-[#CECFD2] text-sm", children: "In the meantime, you can watch your favorite series on CinePop!" })] }), _jsxs("div", { className: "pt-3", children: [_jsx(Image, { src: cinePopLogo, alt: "cine poplogo", width: 151, height: 24, className: "mx-auto mb-2 h-auto w-[151px]" }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { src: secretConfessionsLogo, alt: "secret confessions logo", width: 104, height: 53, className: "h-auto w-[104px]" }), _jsx(Image, { src: dearUtolLogo, alt: "dear utol logo", width: 105, height: 53, className: "h-auto w-[105px]" }), _jsx(Image, { src: mariasDiary, alt: "maria's diary logo", width: 104, height: 53, className: "h-auto w-[104px]" })] })] }), _jsx("button", { disabled: isLoading, type: "button", className: "h-[44px] w-full rounded-md font-semibold", style: {
18
+ return (_jsx(Dialog.Root, { open: kycReview.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "flex items-center", children: _jsxs(Dialog.Content, { className: "flex w-[375px] flex-col items-center justify-between space-y-4 rounded-lg bg-[#232443] p-6 text-center", children: [_jsxs("div", { className: "flex flex-col items-center", children: [_jsx("div", { className: "mb-4 h-7 w-7 animate-spin rounded-full border-4 border-[#101730] border-t-[#F05027]" }), _jsx("div", { className: "font-semibold text-[#F5F5F6] text-lg", children: "Thanks for your submission." }), _jsxs("div", { className: "mt-1 text-[#CECFD2] text-sm", children: ["We\u2019re now ", '', _jsxs("span", { className: "text-[#F96B47]", children: ["reviewing your KYC information ", ''] }), "and will notify you once the verification is complete."] }), _jsx("div", { className: "mt-6 text-[#CECFD2] text-sm", children: "In the meantime, you can watch your favorite series on CinePop!" })] }), _jsxs("div", { className: "pt-3", children: [_jsx(Image, { src: cinePopLogo, alt: "cine poplogo", width: 151, height: 24, className: "mx-auto mb-2 h-auto w-[151px]" }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { src: secretConfessionsLogo, alt: "secret confessions logo", width: 104, height: 53, className: "h-auto w-[104px]" }), _jsx(Image, { src: dearUtolLogo, alt: "dear utol logo", width: 105, height: 53, className: "h-auto w-[105px]" }), _jsx(Image, { src: mariasDiary, alt: "maria's diary logo", width: 104, height: 53, className: "h-auto w-[104px]" })] })] }), _jsx("button", { disabled: isLoading, type: "button", className: "h-[44px] w-full rounded-md font-semibold", style: {
22
19
  background: 'linear-gradient(90deg, #9333E8 0%, #D92778 100%)',
23
20
  }, onClick: async () => {
24
21
  const session = await getSession();
@@ -32,7 +29,7 @@ export function KYCReview() {
32
29
  'Content-Type': 'application/json',
33
30
  },
34
31
  });
35
- const data = (await response.json());
32
+ const data = await response.json();
36
33
  window.open(data.data.redirectionUrl, '_blank');
37
34
  }
38
35
  catch {
@@ -46,8 +46,9 @@ export function KycOpenOnHomeMount(props) {
46
46
  setkycOpen(false);
47
47
  return;
48
48
  }
49
+ setkycAccountVerificationRequired(true);
49
50
  setkycReminderOpen(false);
50
- setkycOpen(true);
51
+ setkycOpen(false);
51
52
  sessionStorage.setItem('hasSeenKycModal', 'true');
52
53
  }
53
54
  else {
@@ -8,24 +8,24 @@ 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
- mobileNumber: string;
12
- password: string;
13
11
  verificationCode: string;
12
+ password: string;
13
+ mobileNumber: string;
14
14
  confirmPassword: string;
15
15
  }, {
16
- mobileNumber: string;
17
- password: string;
18
16
  verificationCode: string;
17
+ password: string;
18
+ mobileNumber: string;
19
19
  confirmPassword: string;
20
20
  }>, {
21
- mobileNumber: string;
22
- password: string;
23
21
  verificationCode: string;
22
+ password: string;
23
+ mobileNumber: string;
24
24
  confirmPassword: string;
25
25
  }, {
26
- mobileNumber: string;
27
- password: string;
28
26
  verificationCode: string;
27
+ password: string;
28
+ mobileNumber: string;
29
29
  confirmPassword: string;
30
30
  }>;
31
31
  export type ForgotPasswordSchema = z.infer<ReturnType<typeof createForgotPasswordSchema>>;
@@ -667,6 +667,7 @@ export interface Referral {
667
667
  turnover: string;
668
668
  commission: string;
669
669
  dateTimeCreated: string;
670
+ qualified: boolean;
670
671
  }
671
672
  export interface ReferralCommission {
672
673
  id: string;