@opexa/portal-components 0.1.84 → 0.1.86
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.
- package/dist/components/TermsOfUse/TermsOfUseV2.lazy.js +1 -4
- package/dist/constants/GameProvider.js +35 -0
- package/dist/handlers/index.d.ts +2 -2
- package/dist/images/game-providers/VIBRA.png +0 -0
- package/dist/images/game-providers/VIBRA_AQUA_GAMING.png +0 -0
- package/dist/images/game-providers/VIBRA_GOLDEN_SPINS.png +0 -0
- package/dist/images/game-providers/VIBRA_RUVI_BET.png +0 -0
- package/dist/images/game-providers/VIBRA_SPINOCCHIO.png +0 -0
- package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +72 -72
- package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +306 -306
- package/dist/ui/Menu/menu.recipe.d.ts +17 -17
- package/dist/ui/Popover/Popover.d.ts +121 -121
- package/dist/ui/Popover/popover.recipe.d.ts +11 -11
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
- package/dist/utils/getProviderData.js +25 -0
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
6
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
7
|
-
import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
|
|
8
7
|
import { TERMS_OF_USE_PENDING_STORAGE_KEY } from '../../constants/index.js';
|
|
9
8
|
import { ScrollToBottomIcon } from '../../icons/ScrollToBottomIcon.js';
|
|
10
9
|
import { ScrollToTopIcon } from '../../icons/ScrollToTopIcon.js';
|
|
@@ -14,7 +13,6 @@ import { Portal } from '../../ui/Portal/index.js';
|
|
|
14
13
|
import { openDisclaimerIfAllowed } from '../../utils/disclaimer-cooldown.js';
|
|
15
14
|
export function TermsOfUseV2({ logo, content }) {
|
|
16
15
|
const scrollableContentRef = useRef(null);
|
|
17
|
-
const sessionQuery = useSessionQuery();
|
|
18
16
|
const [hasReachedBottom, setHasReachedBottom] = useState(false);
|
|
19
17
|
const [isAtBottom, setIsAtBottom] = useState(false);
|
|
20
18
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -42,8 +40,7 @@ export function TermsOfUseV2({ logo, content }) {
|
|
|
42
40
|
setHasReachedBottom(false);
|
|
43
41
|
}
|
|
44
42
|
}, [isOpen]);
|
|
45
|
-
return (_jsx(Dialog.Root, { open: isOpen
|
|
46
|
-
sessionQuery.data?.status !== 'unauthenticated', onOpenChange: (details) => {
|
|
43
|
+
return (_jsx(Dialog.Root, { open: isOpen, onOpenChange: (details) => {
|
|
47
44
|
globalStore.termsOfUse.setOpen(details.open);
|
|
48
45
|
if (!details.open) {
|
|
49
46
|
globalStore.termsOfUse.setAccepted(true);
|
|
@@ -44,6 +44,11 @@ import sexycasino from '../images/game-providers/SEXYCASINO.png';
|
|
|
44
44
|
import spadegaming from '../images/game-providers/SPADEGAMING.png';
|
|
45
45
|
import spinix from '../images/game-providers/SPINIX.png';
|
|
46
46
|
import spribe from '../images/game-providers/SPRIBE.png';
|
|
47
|
+
import vibra from '../images/game-providers/VIBRA.png';
|
|
48
|
+
import vibraAquaGaming from '../images/game-providers/VIBRA_AQUA_GAMING.png';
|
|
49
|
+
import vibraGoldenSpins from '../images/game-providers/VIBRA_GOLDEN_SPINS.png';
|
|
50
|
+
import vibraRuviBet from '../images/game-providers/VIBRA_RUVI_BET.png';
|
|
51
|
+
import vibraSpinocchio from '../images/game-providers/VIBRA_SPINOCCHIO.png';
|
|
47
52
|
import yellowbat from '../images/game-providers/YELLOWBAT.png';
|
|
48
53
|
export const GAME_PROVIDER_DATA = {
|
|
49
54
|
ALIZE: {
|
|
@@ -364,6 +369,36 @@ export const GAME_PROVIDER_DATA = {
|
|
|
364
369
|
slug: 'evolution-tap-a-roo',
|
|
365
370
|
logo: evolutionTapARoo,
|
|
366
371
|
},
|
|
372
|
+
VIBRA: {
|
|
373
|
+
id: 'VIBRA',
|
|
374
|
+
name: 'Vibra',
|
|
375
|
+
slug: 'vibra',
|
|
376
|
+
logo: vibra,
|
|
377
|
+
},
|
|
378
|
+
VIBRA_GOLDEN_SPINS: {
|
|
379
|
+
id: 'VIBRA_GOLDEN_SPINS',
|
|
380
|
+
name: 'VibraGoldenSpins',
|
|
381
|
+
slug: 'vibra-golden-spins',
|
|
382
|
+
logo: vibraGoldenSpins,
|
|
383
|
+
},
|
|
384
|
+
VIBRA_SPINOCCHIO: {
|
|
385
|
+
id: 'VIBRA_SPINOCCHIO',
|
|
386
|
+
name: 'VibraSpinocchio',
|
|
387
|
+
slug: 'vibra-pinocchio',
|
|
388
|
+
logo: vibraSpinocchio,
|
|
389
|
+
},
|
|
390
|
+
VIBRA_RUVI_BET: {
|
|
391
|
+
id: 'VIBRA_RUVI_BET',
|
|
392
|
+
name: 'VibraRuviBet',
|
|
393
|
+
slug: 'vibra-ruvi-bet',
|
|
394
|
+
logo: vibraRuviBet,
|
|
395
|
+
},
|
|
396
|
+
VIBRA_AQUA_GAMING: {
|
|
397
|
+
id: 'VIBRA_AQUA_GAMING',
|
|
398
|
+
name: 'VibraAquaGaming',
|
|
399
|
+
slug: 'vibra-aqua-gaming',
|
|
400
|
+
logo: vibraAquaGaming,
|
|
401
|
+
},
|
|
367
402
|
};
|
|
368
403
|
export const GAME_PROVIDERS = Object.values(GAME_PROVIDER_DATA).map(({ id }) => id);
|
|
369
404
|
export const LEGACY_GAME_PROVIDERS = [
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
28
|
+
data: import("../types").Session;
|
|
29
29
|
}>>;
|
|
30
30
|
export declare const DELETE: (req: NextRequest, { params }: Context) => Promise<NextResponse<{
|
|
31
31
|
ok: true;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
}>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ export interface Announcement {
|
|
|
160
160
|
dateTimeLastUpdated: string;
|
|
161
161
|
}
|
|
162
162
|
export type GameType = 'SLOTS' | 'SPORTS' | 'FISHING' | 'BINGO' | 'LIVE' | 'GAMES' | 'TABLE' | 'SPECIALTY' | 'NUMERICAL' | 'NUMERIC' | 'ARCADE';
|
|
163
|
-
export type GameProvider = 'JILI' | 'JILI_BINGO' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'ONEAPI_EVOLUTION' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'EVOLUTION_TAP_A_ROO' | 'MEGABALL' | 'MEGA2SPIN' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO' | 'SPINIX' | 'JOKER' | 'HACKSAW' | 'JDBGTF' | 'JDBSPRIBE' | 'MICROGAMING' | 'RELAXGAMING' | 'EVOPLAY' | 'BOOONGO' | 'BGAMING' | 'KINGMAKER' | 'KINGMIDAS' | 'YELLOWBAT' | 'ETENGJUE' | 'SABA' | 'PRAGMATICPLAY' | 'PRAGMATICPLAY_DIRECT' | 'SPRIBE' | 'EZUGI' | 'ALIZE' | 'DIGITAIN' | 'BNG' | 'NO_LIMIT_CITY' | 'BIG_TIME_GAMING' | 'SAGAMING' | 'SEXYCASINO' | 'ONEAPI_SPADEGAMING' | 'JK8' | 'RUBYPLAY' | 'EVOLUTIONNETENT' | 'TEST';
|
|
163
|
+
export type GameProvider = 'JILI' | 'JILI_BINGO' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'ONEAPI_EVOLUTION' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'EVOLUTION_TAP_A_ROO' | 'MEGABALL' | 'MEGA2SPIN' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO' | 'SPINIX' | 'JOKER' | 'HACKSAW' | 'JDBGTF' | 'JDBSPRIBE' | 'MICROGAMING' | 'RELAXGAMING' | 'EVOPLAY' | 'BOOONGO' | 'BGAMING' | 'KINGMAKER' | 'KINGMIDAS' | 'YELLOWBAT' | 'ETENGJUE' | 'SABA' | 'PRAGMATICPLAY' | 'PRAGMATICPLAY_DIRECT' | 'SPRIBE' | 'EZUGI' | 'ALIZE' | 'DIGITAIN' | 'BNG' | 'NO_LIMIT_CITY' | 'BIG_TIME_GAMING' | 'SAGAMING' | 'SEXYCASINO' | 'ONEAPI_SPADEGAMING' | 'JK8' | 'RUBYPLAY' | 'EVOLUTIONNETENT' | 'VIBRA' | 'VIBRA_GOLDEN_SPINS' | 'VIBRA_SPINOCCHIO' | 'VIBRA_RUVI_BET' | 'VIBRA_AQUA_GAMING' | 'TEST';
|
|
164
164
|
export type GameStatus = 'ACTIVE' | 'INACTIVE' | 'HIDDEN';
|
|
165
165
|
export type GameTag = 'HOT' | 'hot' | 'NEW' | 'new' | 'TOP' | 'top' | 'POPULAR' | 'popular' | (string & {});
|
|
166
166
|
export interface Game {
|