@opexa/portal-components 0.1.31 → 0.1.33

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 (29) hide show
  1. package/dist/client/hooks/useSignInMutation.js +5 -2
  2. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/AurixPayQRPHDepositContext.d.ts +2 -2
  3. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/useAurixPayQRPHDeposit.d.ts +1 -1
  4. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  5. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  6. package/dist/components/Games/GamesCarousel.client.js +2 -1
  7. package/dist/components/Games/GamesList.client.js +2 -1
  8. package/dist/components/SignIn/CrazyWin/MobileNumberSignIn.js +1 -1
  9. package/dist/components/SignIn/HappyBingo/MobileNumberSignIn.js +1 -1
  10. package/dist/components/SignIn/MobileNumberSignIn.js +1 -1
  11. package/dist/components/SignIn/MobileNumberSignInternational.js +1 -1
  12. package/dist/components/SignIn/SignIn.lazy.d.ts +0 -4
  13. package/dist/components/SignIn/SignIn.lazy.js +1 -1
  14. package/dist/services/auth.js +6 -8
  15. package/dist/types/index.d.ts +1 -0
  16. package/dist/ui/Badge/Badge.d.ts +12 -12
  17. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  18. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  19. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  20. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  21. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  22. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  23. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  24. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  25. package/dist/ui/Select/Select.d.ts +45 -45
  26. package/dist/ui/Select/select.recipe.d.ts +3 -3
  27. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  28. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  29. package/package.json +1 -1
@@ -21,7 +21,10 @@ export const useSignInMutation = (options) => {
21
21
  const token = recaptcha.reCaptchaKey
22
22
  ? await recaptcha.executeRecaptcha('submit')
23
23
  : null;
24
- const fingerprint = versionSession === 'Inplay' ? await getFingerprint() : null;
24
+ const isInplayEligible = input.type === 'NAME_AND_PASSWORD' || input.type === 'MOBILE_NUMBER';
25
+ const fingerprint = versionSession === 'Inplay' && isInplayEligible
26
+ ? await getFingerprint()
27
+ : null;
25
28
  const signInOnce = () => signIn(input, {
26
29
  headers: {
27
30
  ...(token && {
@@ -38,7 +41,7 @@ export const useSignInMutation = (options) => {
38
41
  : { Channel: 'IOS' }),
39
42
  },
40
43
  }, versionSession);
41
- const authenticator = versionSession === 'Inplay' && input.type === 'NAME_AND_PASSWORD'
44
+ const authenticator = versionSession === 'Inplay' && isInplayEligible
42
45
  ? await pollSignIn(signInOnce)
43
46
  : await signInOnce();
44
47
  if (!authenticator) {
@@ -1,6 +1,6 @@
1
1
  export declare const AurixPayQRPHDepositContext: (props: {
2
2
  value: {
3
- status: "idle" | "confirmed" | "failed" | "generating-qr-code" | "qr-code-generated";
3
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
4
4
  deposit: import("../../../../types").Deposit | null;
5
5
  errorMessage: {
6
6
  name: string;
@@ -13,7 +13,7 @@ export declare const AurixPayQRPHDepositContext: (props: {
13
13
  } & {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useAurixPayQRPHDepositContext: () => {
16
- status: "idle" | "confirmed" | "failed" | "generating-qr-code" | "qr-code-generated";
16
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
17
17
  deposit: import("../../../../types").Deposit | null;
18
18
  errorMessage: {
19
19
  name: string;
@@ -5,7 +5,7 @@ export interface GenerateQRCodeInput {
5
5
  promo?: string | null;
6
6
  }
7
7
  export declare function useAurixPayQRPHDeposit(): {
8
- status: "idle" | "confirmed" | "failed" | "generating-qr-code" | "qr-code-generated";
8
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
9
9
  deposit: Deposit | null;
10
10
  errorMessage: {
11
11
  name: string;
@@ -1,6 +1,6 @@
1
1
  export declare const OnlineBankDepositContext: (props: {
2
2
  value: {
3
- view: "vca" | "form";
3
+ view: "form" | "vca";
4
4
  status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
5
  verify: () => void;
6
6
  reset: () => void;
@@ -13,7 +13,7 @@ export declare const OnlineBankDepositContext: (props: {
13
13
  } & {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useOnlineBankDepositContext: () => {
16
- view: "vca" | "form";
16
+ view: "form" | "vca";
17
17
  status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
18
18
  verify: () => void;
19
19
  reset: () => void;
@@ -1,7 +1,7 @@
1
1
  import type { Deposit } from '../../../../types';
2
2
  export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
3
3
  export declare function useOnlineBankDeposit(): {
4
- view: "vca" | "form";
4
+ view: "form" | "vca";
5
5
  status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
@@ -29,7 +29,8 @@ export function GamesCarousel__client(props) {
29
29
  staleTime: 5 * 60 * 1000,
30
30
  });
31
31
  const availableRows = gamesQuery.data?.pages.flatMap((page) => page.edges.map((edge) => edge.node)) ?? [];
32
- const topGamesToDisplay = useMemo(() => (props.topGames ?? []).slice(0, 5), [props.topGames]);
32
+ const topGamesToDisplay = useMemo(() => (props.topGames ?? []).slice(0, 10), // increase top games to display
33
+ [props.topGames]);
33
34
  const { data: topGameRows = [] } = useTopGamesQuery(topGamesToDisplay);
34
35
  const sortedRows = useMemo(() => {
35
36
  if (!topGamesToDisplay.length)
@@ -27,7 +27,8 @@ export function GamesList__client(props) {
27
27
  search: props.search,
28
28
  sort: props.sort,
29
29
  });
30
- const topGamesToDisplay = useMemo(() => (props.topGames ?? []).slice(0, 5), [props.topGames]);
30
+ const topGamesToDisplay = useMemo(() => (props.topGames ?? []).slice(0, 10), // increase top games to display
31
+ [props.topGames]);
31
32
  const { data: topGameRows = [] } = useTopGamesQuery(topGamesToDisplay);
32
33
  const sortedRows = useMemo(() => {
33
34
  if (!topGamesToDisplay.length)
@@ -45,7 +45,7 @@ export function MobileNumberSignIn() {
45
45
  disclaimer: ctx.disclaimer,
46
46
  })));
47
47
  const signInMutation = useSignInMutation({
48
- // versionSession intentionally omitted: only applies to NAME_AND_PASSWORD
48
+ versionSession: signInProps.versionSession,
49
49
  onSuccess: async () => {
50
50
  step1Form.reset();
51
51
  step2Form.reset();
@@ -46,7 +46,7 @@ export function MobileNumberSignIn() {
46
46
  disclaimer: ctx.disclaimer,
47
47
  })));
48
48
  const signInMutation = useSignInMutation({
49
- // versionSession intentionally omitted: only applies to NAME_AND_PASSWORD
49
+ versionSession: signInProps.versionSession,
50
50
  onSuccess: async () => {
51
51
  step1Form.reset();
52
52
  step2Form.reset();
@@ -53,7 +53,7 @@ export function MobileNumberSignIn() {
53
53
  termsOfUse: ctx.termsOfUse,
54
54
  })));
55
55
  const signInMutation = useSignInMutation({
56
- // versionSession intentionally omitted: only applies to NAME_AND_PASSWORD
56
+ versionSession: signInProps.versionSession,
57
57
  onSuccess: async () => {
58
58
  step1Form.reset();
59
59
  step2Form.reset();
@@ -81,7 +81,7 @@ export function MobileNumberSignInInternational() {
81
81
  termsOfUse: ctx.termsOfUse,
82
82
  })));
83
83
  const signInMutation = useSignInMutation({
84
- // versionSession intentionally omitted: only applies to NAME_AND_PASSWORD
84
+ versionSession: signInProps.versionSession,
85
85
  onSuccess: async () => {
86
86
  step1Form.reset();
87
87
  step2Form.reset();
@@ -31,10 +31,6 @@ export interface SignInProps extends UseSignInProps {
31
31
  * - `Inplay`: `${AUTH_ENDPOINT}/v3/inplay/sessions`
32
32
  */
33
33
  versionSession?: VersionSession;
34
- /**
35
- * Optional browser fingerprint provider. For Inplay NAME_AND_PASSWORD
36
- * sign-ins, pass `() => sdk.fingerprint()` from the consuming app.
37
- */
38
34
  fingerprint?: () => Promise<string | null> | string | null;
39
35
  }
40
36
  export declare function SignIn(props: SignInProps): import("react/jsx-runtime").JSX.Element;
@@ -25,7 +25,7 @@ export function SignIn(props) {
25
25
  const mutating = useIsMutating({ mutationKey: getSignInMutationKey() }) > 0;
26
26
  const showLoader = mutating &&
27
27
  props.versionSession === 'Inplay' &&
28
- signIn.type === 'NAME_AND_PASSWORD';
28
+ (signIn.type === 'NAME_AND_PASSWORD' || signIn.type === 'MOBILE_NUMBER');
29
29
  return (_jsx(SignInPropsProvider, { value: props, children: _jsx(SignInProvider, { value: signIn, children: _jsx(Dialog.Root, { open: signInStore.open, onOpenChange: (details) => {
30
30
  signInStore.setOpen(details.open);
31
31
  }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: () => {
@@ -31,16 +31,14 @@ export async function createSession(input, options, versionSession = 'default')
31
31
  new Headers(options?.headers).forEach((value, key) => {
32
32
  headers.set(key, value);
33
33
  });
34
- // `versionSession` only applies to NAME_AND_PASSWORD sign-ins. All other
35
- // auth types (MOBILE_NUMBER, MAYA, SOCIALS, CABINET, SINGLE_USE_TOKEN) are
34
+ // `versionSession` applies to NAME_AND_PASSWORD and MOBILE_NUMBER sign-ins.
35
+ // All other auth types (MAYA, SOCIALS, CABINET, SINGLE_USE_TOKEN) are
36
36
  // forced to the default `/sessions` endpoint.
37
- const effectiveVersionSession = input.type === 'NAME_AND_PASSWORD' ? versionSession : 'default';
38
- // The `Fingerprint` header is only meaningful for the Inplay
39
- // NAME_AND_PASSWORD endpoint (`/v3/inplay/sessions`). Strip it for any
40
- // other combination to avoid leaking it to upstream endpoints that don't
41
- // expect it.
37
+ const effectiveVersionSession = input.type === 'NAME_AND_PASSWORD' || input.type === 'MOBILE_NUMBER'
38
+ ? versionSession
39
+ : 'default';
42
40
  if (effectiveVersionSession !== 'Inplay' ||
43
- input.type !== 'NAME_AND_PASSWORD') {
41
+ (input.type !== 'NAME_AND_PASSWORD' && input.type !== 'MOBILE_NUMBER')) {
44
42
  headers.delete(FINGERPRINT_HEADER_KEY);
45
43
  }
46
44
  try {
@@ -806,6 +806,7 @@ export interface TopWin {
806
806
  };
807
807
  multiplier: string;
808
808
  payout: string;
809
+ dateTimeCreated: Date;
809
810
  }
810
811
  export type JackpotStatus = 'ACTIVE' | 'CLOSING' | 'DISABLED' | 'CLOSED';
811
812
  export type JackpotType = 'MULTIPLIER' | 'MULTI_STAGE';
@@ -37,7 +37,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
37
37
  root: string;
38
38
  };
39
39
  };
40
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
40
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, {
41
41
  size: {
42
42
  md: {
43
43
  root: string;
@@ -72,7 +72,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
72
72
  root: string;
73
73
  };
74
74
  };
75
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
75
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
76
76
  size: {
77
77
  md: {
78
78
  root: string;
@@ -107,7 +107,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
107
107
  root: string;
108
108
  };
109
109
  };
110
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
110
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
111
111
  interface BadgeLabelProps extends ComponentPropsWithRef<'span'> {
112
112
  asChild?: boolean;
113
113
  }
@@ -146,7 +146,7 @@ export declare const Label: import("react").ComponentType<import("@ark-ui/react"
146
146
  root: string;
147
147
  };
148
148
  };
149
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
149
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, {
150
150
  size: {
151
151
  md: {
152
152
  root: string;
@@ -181,7 +181,7 @@ export declare const Label: import("react").ComponentType<import("@ark-ui/react"
181
181
  root: string;
182
182
  };
183
183
  };
184
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
184
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
185
185
  size: {
186
186
  md: {
187
187
  root: string;
@@ -216,7 +216,7 @@ export declare const Label: import("react").ComponentType<import("@ark-ui/react"
216
216
  root: string;
217
217
  };
218
218
  };
219
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
219
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
220
220
  interface BadgeIndicatorProps extends ComponentPropsWithRef<'svg'> {
221
221
  asChild?: boolean;
222
222
  }
@@ -255,7 +255,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
255
255
  root: string;
256
256
  };
257
257
  };
258
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
258
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, {
259
259
  size: {
260
260
  md: {
261
261
  root: string;
@@ -290,7 +290,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
290
290
  root: string;
291
291
  };
292
292
  };
293
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
293
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
294
294
  size: {
295
295
  md: {
296
296
  root: string;
@@ -325,7 +325,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
325
325
  root: string;
326
326
  };
327
327
  };
328
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
328
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
329
329
  interface BadgeIconProps extends ComponentPropsWithRef<'svg'> {
330
330
  asChild?: boolean;
331
331
  }
@@ -364,7 +364,7 @@ export declare const Icon: import("react").ComponentType<import("@ark-ui/react")
364
364
  root: string;
365
365
  };
366
366
  };
367
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
367
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, {
368
368
  size: {
369
369
  md: {
370
370
  root: string;
@@ -399,7 +399,7 @@ export declare const Icon: import("react").ComponentType<import("@ark-ui/react")
399
399
  root: string;
400
400
  };
401
401
  };
402
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
402
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
403
403
  size: {
404
404
  md: {
405
405
  root: string;
@@ -434,5 +434,5 @@ export declare const Icon: import("react").ComponentType<import("@ark-ui/react")
434
434
  root: string;
435
435
  };
436
436
  };
437
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
437
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
438
438
  export {};
@@ -1 +1 @@
1
- export declare const badgeAnatomy: import("@ark-ui/react/anatomy").AnatomyInstance<"label" | "root" | "icon" | "indicator">;
1
+ export declare const badgeAnatomy: import("@ark-ui/react/anatomy").AnatomyInstance<"label" | "icon" | "root" | "indicator">;
@@ -33,7 +33,7 @@ export declare const badgeRecipe: import("tailwind-variants").TVReturnType<{
33
33
  root: string;
34
34
  };
35
35
  };
36
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, {
36
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, {
37
37
  size: {
38
38
  md: {
39
39
  root: string;
@@ -68,7 +68,7 @@ export declare const badgeRecipe: import("tailwind-variants").TVReturnType<{
68
68
  root: string;
69
69
  };
70
70
  };
71
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
71
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
72
72
  size: {
73
73
  md: {
74
74
  root: string;
@@ -103,4 +103,4 @@ export declare const badgeRecipe: import("tailwind-variants").TVReturnType<{
103
103
  root: string;
104
104
  };
105
105
  };
106
- }, Record<"label" | "root" | "icon" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>;
106
+ }, Record<"label" | "icon" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>;