@opexa/portal-components 0.0.235 → 0.0.237
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/client/hooks/useCamera.d.ts +8 -7
- package/dist/client/hooks/useCamera.js +6 -6
- package/dist/components/Bonuses/ClaimSpotBonus.lazy.js +1 -1
- package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +2 -0
- package/dist/components/CashbackBonus/CashbackBonus.client.js +9 -0
- package/dist/components/CashbackBonus/CashbackBonus.d.ts +10 -0
- package/dist/components/CashbackBonus/CashbackBonus.js +5 -0
- package/dist/components/CashbackBonus/index.d.ts +1 -0
- package/dist/components/CashbackBonus/index.js +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +1 -1
- package/dist/components/Disclaimer/DisclaimerV1.js +1 -1
- package/dist/components/Disclaimer/DisclaimerV2.js +1 -1
- package/dist/components/Disclaimer/ResponsibleGaming.js +3 -3
- package/dist/components/Disclaimer/TermsOfUse.js +4 -4
- package/dist/components/Empty.d.ts +1 -2
- package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +1 -1
- package/dist/components/KYC/Header.js +4 -2
- package/dist/components/KYC/KYC.lazy.js +1 -1
- package/dist/components/KYC/KYCReminder.lazy.js +1 -1
- package/dist/components/KYC/Step1.js +3 -2
- package/dist/components/KYC/Step2.js +3 -2
- package/dist/components/KYC/Step3.js +4 -2
- package/dist/components/KYC/Step4.js +3 -2
- package/dist/components/KYC/backup/KYCContext.d.ts +5 -1
- package/dist/components/KYC/loadModels.d.ts +1 -0
- package/dist/components/KYC/loadModels.js +9 -0
- package/dist/components/Messages/Message.js +2 -3
- package/dist/components/Messages/MessageContext.d.ts +5 -1
- package/dist/components/Messages/MessagePopup.js +2 -3
- package/dist/components/Messages/Messages.lazy.js +1 -1
- package/dist/components/Messages/MessagesPopup.js +1 -1
- package/dist/components/Promo/PromoContent.d.ts +2 -0
- package/dist/components/Promo/PromoContent.js +9 -0
- package/dist/components/Promos/PromoCarousel.d.ts +2 -0
- package/dist/components/Promos/PromoCarousel.js +41 -0
- package/dist/components/Promos/PromoGrid.d.ts +2 -0
- package/dist/components/Promos/PromoGrid.js +12 -0
- package/dist/components/Promos/PromoItem.d.ts +7 -0
- package/dist/components/Promos/PromoItem.js +10 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +10 -5
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +4 -3
- package/dist/components/Quests/DailyCheckInQuest.js +1 -1
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -1
- package/dist/components/Quests/OnboardingQuest.js +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuest.js +3 -2
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +4 -3
- package/dist/components/Quests/WageringQuest.js +1 -1
- package/dist/components/Search/Search.lazy.js +1 -1
- package/dist/components/SignIn/SignIn.lazy.js +1 -1
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +1 -1
- package/dist/components/SignUp/SignUpForm.js +6 -1
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +1 -1
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +1 -1
- package/dist/components/SignUp/SignUpKYC/SignUpKYC.lazy.js +1 -1
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +1 -1
- package/dist/components/shared/IdDocumentField.d.ts +14 -6
- package/dist/components/shared/IdDocumentField.js +69 -58
- package/dist/components/shared/SelfieField.d.ts +12 -6
- package/dist/components/shared/SelfieField.js +188 -72
- package/dist/constants/BranchCode.d.ts +4 -0
- package/dist/constants/BranchCode.js +42 -0
- package/dist/constants/endpoints.d.ts +10 -0
- package/dist/constants/endpoints.js +41 -0
- package/dist/constants/gameProviders.d.ts +1 -2
- package/dist/constants/gameProviders.js +6 -0
- package/dist/constants/gameTypes.d.ts +1 -2
- package/dist/constants/headerKeys.d.ts +1 -0
- package/dist/constants/headerKeys.js +1 -0
- package/dist/constants/secretQuestions.d.ts +1 -1
- package/dist/next.config.js +8 -0
- package/dist/ui/Presence.d.ts +1 -1
- package/dist/ui/Presence.js +1 -1
- package/dist/utils/createErrorFromCode.d.ts +2 -0
- package/dist/utils/createErrorFromCode.js +11 -0
- package/package.json +5 -3
- package/dist/utils/constants.d.ts +0 -2
- package/dist/utils/constants.js +0 -2
- package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
- package/dist/utils/isBetween3amAnd3pm.js +0 -5
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const BRANCH_CODES = [
|
|
2
|
+
{
|
|
3
|
+
code: 'BRCAL',
|
|
4
|
+
name: 'Bingo Republic 2nd floor Primark Center Deparo St., Caloocan City',
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
code: 'BRNAG',
|
|
8
|
+
name: 'Bingo Republic 3rd floor Robinsons Mall, Naga City, Camarines Sur',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
code: 'BRANT',
|
|
12
|
+
name: 'Bingo Republic 2nd floor Robinsons Mall, San Vicente,Antique',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
code: 'BRCLA',
|
|
16
|
+
name: 'Clark',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
code: 'BRLAG',
|
|
20
|
+
name: 'Laguna',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
code: 'BREAS',
|
|
24
|
+
name: 'Eastwood City, Quezon City',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
code: 'BRMAR',
|
|
28
|
+
name: 'Bingo ng Bayan 4th floor Marikina Public Market, Marikina City',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
code: 'BRILO',
|
|
32
|
+
name: 'Iloilo',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
code: 'BRFIM',
|
|
36
|
+
name: 'Fisher Mall,Quezon City',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
code: 'BRCAC',
|
|
40
|
+
name: 'Villa Caceres Hotel, Naga City,Camsur',
|
|
41
|
+
},
|
|
42
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ACCOUNT_GRAPHQL_ENDPOINT: string;
|
|
2
|
+
export declare const FILE_GRAPHQL_ENDPOINT: string;
|
|
3
|
+
export declare const GAME_GRAPHQL_ENDPOINT: string;
|
|
4
|
+
export declare const PORTAL_GRAPHQL_ENDPOINT: string;
|
|
5
|
+
export declare const REPORT_GRAPHQL_ENDPOINT: string;
|
|
6
|
+
export declare const TRIGGER_GRAPHQL_ENDPOINT: string;
|
|
7
|
+
export declare const WALLET_GRAPHQL_ENDPOINT: string;
|
|
8
|
+
export declare const AUTH_ENDPOINT: string;
|
|
9
|
+
export declare const CMS_PORTAL_ENDPOINT: string;
|
|
10
|
+
export declare const STATIC_ENDPOINT: string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ENVIRONMENT } from './envVars.js';
|
|
2
|
+
export const ACCOUNT_GRAPHQL_ENDPOINT = {
|
|
3
|
+
development: 'https://account.development.opexa.io/graphql',
|
|
4
|
+
production: 'https://account.opexa.io/graphql',
|
|
5
|
+
}[ENVIRONMENT];
|
|
6
|
+
export const FILE_GRAPHQL_ENDPOINT = {
|
|
7
|
+
development: 'https://file.development.opexa.io/graphql',
|
|
8
|
+
production: 'https://file.opexa.io/graphql',
|
|
9
|
+
}[ENVIRONMENT];
|
|
10
|
+
export const GAME_GRAPHQL_ENDPOINT = {
|
|
11
|
+
development: 'https://game.development.opexa.io/graphql',
|
|
12
|
+
production: 'https://game.opexa.io/graphql',
|
|
13
|
+
}[ENVIRONMENT];
|
|
14
|
+
export const PORTAL_GRAPHQL_ENDPOINT = {
|
|
15
|
+
development: 'https://portal.development.opexa.io/graphql',
|
|
16
|
+
production: 'https://portal.opexa.io/graphql',
|
|
17
|
+
}[ENVIRONMENT];
|
|
18
|
+
export const REPORT_GRAPHQL_ENDPOINT = {
|
|
19
|
+
development: 'https://report.development.opexa.io/graphql',
|
|
20
|
+
production: 'https://report.opexa.io/graphql',
|
|
21
|
+
}[ENVIRONMENT];
|
|
22
|
+
export const TRIGGER_GRAPHQL_ENDPOINT = {
|
|
23
|
+
development: 'https://trigger.development.opexa.io/graphql',
|
|
24
|
+
production: 'https://trigger.opexa.io/graphql',
|
|
25
|
+
}[ENVIRONMENT];
|
|
26
|
+
export const WALLET_GRAPHQL_ENDPOINT = {
|
|
27
|
+
development: 'https://wallet.development.opexa.io/graphql',
|
|
28
|
+
production: 'https://wallet.opexa.io/graphql',
|
|
29
|
+
}[ENVIRONMENT];
|
|
30
|
+
export const AUTH_ENDPOINT = {
|
|
31
|
+
development: 'https://auth.development.opexa.io',
|
|
32
|
+
production: 'https://auth.opexa.io',
|
|
33
|
+
}[ENVIRONMENT];
|
|
34
|
+
export const CMS_PORTAL_ENDPOINT = {
|
|
35
|
+
development: 'https://portal-api.opexacms.io',
|
|
36
|
+
production: 'https://portal-api.opexacms.io',
|
|
37
|
+
}[ENVIRONMENT];
|
|
38
|
+
export const STATIC_ENDPOINT = {
|
|
39
|
+
development: 'https://static.development.atalos.io',
|
|
40
|
+
production: 'https://static.atalos.io',
|
|
41
|
+
}[ENVIRONMENT];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { GameProvider } from '
|
|
2
|
-
import type { GameProviderData } from '../types';
|
|
1
|
+
import type { GameProvider, GameProviderData } from '../types';
|
|
3
2
|
export declare const GAME_PROVIDER_DATA: Record<GameProvider, GameProviderData>;
|
|
4
3
|
export declare const GAME_PROVIDERS: ["ALIZE", "BGAMING", "BOOONGO", "EVOPLAY", "BTI", "CQ9", "DARWIN", "DG", "DRBINGO", "E2E", "ETENGJUE", "EVOLUTION", "EVOLUTION_REDTIGER", "EZUGI", "FACHAI", "HABANERO", "HACKSAW", "HOLLYWOODTV", "JDB", "JILI", "JDBGTF", "JOKER", "JDBSPRIBE", "JILI_BINGO", "KINGMAKER", "KINGMIDAS", "MEGA2SPIN", "MICROGAMING", "MEGABALL", "ONEAPI_EVOLUTION", "PGSOFT", "PLAYTECH", "PRAGMATICPLAY", "RELAXGAMING", "RTG", "SABA", "SPINIX", "SPRIBE", "YELLOWBAT", "EVOLUTIONNETENT", "EVOLUTION_NETENT"];
|
|
5
4
|
export declare const LEGACY_GAME_PROVIDERS: ["JILI", "PGSOFT", "FACHAI", "BTI", "DG", "PLAYTECH", "E2E", "ONEAPI_EVOLUTION", "CQ9", "JDB", "HABANERO", "SPINIX", "JOKER", "HACKSAW", "EVOLUTIONNETENT", "JDBGTF", "JDBSPRIBE", "MICROGAMING", "RELAXGAMING", "EVOPLAY", "BOOONGO", "BGAMING", "KINGMAKER", "KINGMIDAS", "YELLOWBAT", "ETENGJUE", "SABA", "PRAGMATICPLAY", "SPRIBE", "EZUGI", "ALIZE"];
|
|
@@ -283,6 +283,12 @@ export const GAME_PROVIDER_DATA = {
|
|
|
283
283
|
slug: 'evolution-netent',
|
|
284
284
|
logo: evolutionNetent,
|
|
285
285
|
},
|
|
286
|
+
DIGITAIN: {
|
|
287
|
+
id: 'DIGITAIN',
|
|
288
|
+
name: 'Digitain',
|
|
289
|
+
slug: 'digitain',
|
|
290
|
+
logo: '',
|
|
291
|
+
},
|
|
286
292
|
};
|
|
287
293
|
export const GAME_PROVIDERS = [
|
|
288
294
|
'ALIZE',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { GameType } from '
|
|
2
|
-
import type { GameTypeData } from '../types';
|
|
1
|
+
import type { GameType, GameTypeData } from '../types';
|
|
3
2
|
export declare const GAME_TYPE_DATA: Record<GameType, GameTypeData>;
|
|
4
3
|
export declare const GAME_TYPES: ["ARCADE", "BINGO", "FISHING", "GAMES", "LIVE", "NUMERICAL", "SLOTS", "SPECIALTY", "SPORTS", "TABLE"];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SecretQuestion } from '
|
|
1
|
+
import type { SecretQuestion } from '../types';
|
|
2
2
|
export declare const SECRET_QUESTIONS: ["BEST_CHILDHOOD_FRIEND", "BIRTH_PLACE", "FAVORITE_BOOK", "FAVORITE_MOVIE", "FAVORITE_TEACHER", "FIRST_CAR", "FIRST_PET", "FIRST_SCHOOL", "MOTHERS_MAIDEN_NAME", "PARENTS_MET_CITY"];
|
|
3
3
|
export declare const SECRET_QUESTIONS_MAP: Record<SecretQuestion, string>;
|
package/dist/next.config.js
CHANGED
|
@@ -48,6 +48,14 @@ export const config = {
|
|
|
48
48
|
compiler: {
|
|
49
49
|
removeConsole: process.env.NODE_ENV === 'production',
|
|
50
50
|
},
|
|
51
|
+
webpack(config) {
|
|
52
|
+
config.resolve.fallback = {
|
|
53
|
+
fs: false,
|
|
54
|
+
path: false,
|
|
55
|
+
crypto: false,
|
|
56
|
+
};
|
|
57
|
+
return config;
|
|
58
|
+
},
|
|
51
59
|
};
|
|
52
60
|
export function extendConfig(userConfig) {
|
|
53
61
|
return {
|
package/dist/ui/Presence.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type PresenceProps } from '@ark-ui/react';
|
|
1
|
+
import { type PresenceProps } from '@ark-ui/react/presence';
|
|
2
2
|
export declare function Presence(props: PresenceProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/Presence.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Presence as Primitive } from '@ark-ui/react';
|
|
3
|
+
import { Presence as Primitive, } from '@ark-ui/react/presence';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
export function Presence(props) {
|
|
6
6
|
return (_jsx(Primitive, { lazyMount: true, ...props, className: twMerge('ui-open:animate-fade-in ui-closed:animate-fade-out', props.className) }));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ✏️ TODO
|
|
2
|
+
const ERROR_CODES_MAP = {
|
|
3
|
+
'': '',
|
|
4
|
+
};
|
|
5
|
+
export function createErrorFromCode(name, message) {
|
|
6
|
+
const error = new Error();
|
|
7
|
+
error.name = name;
|
|
8
|
+
error.message = ERROR_CODES_MAP[name] ?? message ?? 'Something went wrong';
|
|
9
|
+
Error.captureStackTrace?.(error, createErrorFromCode);
|
|
10
|
+
return error;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opexa/portal-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.237",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./ui/*": {
|
|
6
6
|
"types": "./dist/ui/*/index.d.ts",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
|
-
"dev": "next dev --port 4000
|
|
72
|
+
"dev": "next dev --port 4000",
|
|
73
73
|
"build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json && copy-files-from-to",
|
|
74
74
|
"build:app": "next build",
|
|
75
75
|
"start": "next start",
|
|
@@ -79,11 +79,13 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@ark-ui/react": "^5.14.2",
|
|
81
81
|
"@date-fns/tz": "^1.2.0",
|
|
82
|
+
"@mediapipe/face_detection": "^0.4.1646425229",
|
|
82
83
|
"@next/third-parties": "^15.3.4",
|
|
83
84
|
"@tailwindcss/typography": "^0.5.16",
|
|
84
85
|
"@tensorflow-models/face-detection": "^1.0.3",
|
|
85
|
-
"@tensorflow/tfjs": "^4.22.0",
|
|
86
86
|
"@tensorflow/tfjs-backend-webgl": "^4.22.0",
|
|
87
|
+
"@tensorflow/tfjs-converter": "^4.22.0",
|
|
88
|
+
"@tensorflow/tfjs-core": "^4.22.0",
|
|
87
89
|
"date-fns": "^4.1.0",
|
|
88
90
|
"embla-carousel-autoplay": "^8.6.0",
|
|
89
91
|
"embla-carousel-react": "^8.6.0",
|
package/dist/utils/constants.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isBetween3amAnd3pm: () => boolean;
|