@opexa/portal-components 0.0.286 → 0.0.288

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 (73) hide show
  1. package/dist/client/hooks/useAuthenticateMutation.js +4 -0
  2. package/dist/client/hooks/useSignInMutation.js +4 -0
  3. package/dist/client/utils/recaptcha.d.ts +14 -0
  4. package/dist/client/utils/recaptcha.js +18 -0
  5. package/dist/components/DepositWithdrawal/Deposit/LibanganDeposit/LibanganDeposit.js +1 -1
  6. package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.js +1 -1
  7. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +2 -3
  8. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +1 -1
  9. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +2 -2
  10. package/dist/components/DigitainLauncher/DigitianContainter.js +2 -2
  11. package/dist/components/DigitainLauncher/types.d.ts +6 -1
  12. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +10 -0
  13. package/dist/components/Disclaimer/ResponsibleGaming.js +13 -0
  14. package/dist/components/Disclaimer/TermsOfUse.d.ts +11 -0
  15. package/dist/components/Disclaimer/TermsOfUse.js +13 -0
  16. package/dist/components/GamesSearch/GamesSearch.js +1 -1
  17. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  18. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  19. package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
  20. package/dist/components/KYC/CaptureIdDocument.js +219 -0
  21. package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
  22. package/dist/components/KYC/CaptureSelfie.js +285 -0
  23. package/dist/components/KYC/DisplayImage.d.ts +5 -0
  24. package/dist/components/KYC/DisplayImage.js +8 -0
  25. package/dist/components/KYC/FileUpload.d.ts +10 -0
  26. package/dist/components/KYC/FileUpload.js +72 -0
  27. package/dist/components/KYC/NoCameraError.d.ts +7 -0
  28. package/dist/components/KYC/NoCameraError.js +6 -0
  29. package/dist/components/KYC/PersonOverlayDesktop.d.ts +7 -0
  30. package/dist/components/KYC/PersonOverlayDesktop.js +9 -0
  31. package/dist/components/KYC/utils.d.ts +9 -0
  32. package/dist/components/KYC/utils.js +79 -0
  33. package/dist/components/PortalProvider/PortalProvider.d.ts +1 -5
  34. package/dist/components/PortalProvider/PortalProvider.js +4 -5
  35. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +17 -0
  36. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +18 -0
  37. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +6 -0
  38. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +2 -0
  39. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +1 -0
  40. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +310 -0
  41. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +1 -0
  42. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +198 -0
  43. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +1 -0
  44. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +251 -0
  45. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +10 -0
  46. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +42 -0
  47. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +7 -0
  48. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +9 -0
  49. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +1 -0
  50. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +464 -0
  51. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +11 -0
  52. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +20 -0
  53. package/dist/components/SignUp/SignUpKYC/utils.d.ts +9 -0
  54. package/dist/components/SignUp/SignUpKYC/utils.js +79 -0
  55. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  56. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  57. package/dist/constants/EnvVar.d.ts +1 -0
  58. package/dist/constants/EnvVar.js +6 -0
  59. package/dist/handlers/postTransformIdFrontImage.d.ts +3 -0
  60. package/dist/handlers/postTransformIdFrontImage.js +82 -0
  61. package/dist/handlers/postTransformSelfieImage.d.ts +3 -0
  62. package/dist/handlers/postTransformSelfieImage.js +82 -0
  63. package/dist/services/queries.js +2574 -2574
  64. package/dist/styles/theme.css +701 -697
  65. package/dist/utils/gamesAvailable3pmTo3am.d.ts +1 -0
  66. package/dist/utils/gamesAvailable3pmTo3am.js +1 -0
  67. package/dist/utils/getGameName.d.ts +1 -0
  68. package/dist/utils/getGameName.js +6 -0
  69. package/dist/utils/getPercentage.d.ts +1 -0
  70. package/dist/utils/getPercentage.js +6 -0
  71. package/dist/utils/isBetween3amAnd3pm.d.ts +1 -0
  72. package/dist/utils/isBetween3amAnd3pm.js +5 -0
  73. package/package.json +163 -163
@@ -0,0 +1 @@
1
+ export declare const GAMES_AVAILABLE_3PM_TO_3AM: string[];
@@ -0,0 +1 @@
1
+ export const GAMES_AVAILABLE_3PM_TO_3AM = ['Marble Race', 'Rainbow Ball'];
@@ -0,0 +1 @@
1
+ export declare function getGameName(reference: string, defaultName: string): string;
@@ -0,0 +1,6 @@
1
+ export function getGameName(reference, defaultName) {
2
+ if (reference === 'Hwd1wEWHU6Gvfwecuh') {
3
+ return 'Marble Speedway';
4
+ }
5
+ return defaultName;
6
+ }
@@ -0,0 +1 @@
1
+ export declare function getPercentage(value: number | string, total: number | string): number;
@@ -0,0 +1,6 @@
1
+ import { parseDecimal } from './parseDecimal.js';
2
+ export function getPercentage(value, total) {
3
+ const v = parseDecimal(value, 0);
4
+ const t = parseDecimal(total, 0);
5
+ return t === 0 ? 0 : (v / t) * 100;
6
+ }
@@ -0,0 +1 @@
1
+ export declare const isBetween3amAnd3pm: () => boolean;
@@ -0,0 +1,5 @@
1
+ export const isBetween3amAnd3pm = () => {
2
+ const now = new Date();
3
+ const hour = now.getHours();
4
+ return hour >= 15 || hour < 3;
5
+ };
package/package.json CHANGED
@@ -1,163 +1,163 @@
1
- {
2
- "name": "@opexa/portal-components",
3
- "version": "0.0.286",
4
- "exports": {
5
- "./ui/*": {
6
- "types": "./dist/ui/*/index.d.ts",
7
- "default": "./dist/ui/*/index.js"
8
- },
9
- "./utils/*": {
10
- "types": "./dist/utils/*.d.ts",
11
- "import": "./dist/utils/*.js"
12
- },
13
- "./types": {
14
- "types": "./dist/types/index.d.ts",
15
- "import": "./dist/types/index.js"
16
- },
17
- "./handlers": {
18
- "types": "./dist/handlers/index.d.ts",
19
- "default": "./dist/handlers/index.js"
20
- },
21
- "./middleware": {
22
- "types": "./dist/middleware.d.ts",
23
- "default": "./dist/middleware.js"
24
- },
25
- "./constants": {
26
- "types": "./dist/constants/index.d.ts",
27
- "default": "./dist/constants/index.js"
28
- },
29
- "./services/*": {
30
- "types": "./dist/services/*.d.ts",
31
- "default": "./dist/services/*.js"
32
- },
33
- "./client-utils/*": {
34
- "types": "./dist/client/utils/*.d.ts",
35
- "default": "./dist/client/utils/*.js"
36
- },
37
- "./client-hooks/*": {
38
- "types": "./dist/client/hooks/*.d.ts",
39
- "default": "./dist/client/hooks/*.js"
40
- },
41
- "./client-services/*": {
42
- "types": "./dist/client/services/*.d.ts",
43
- "default": "./dist/client/services/*.js"
44
- },
45
- "./server-utils/*": {
46
- "types": "./dist/server/utils/*.d.ts",
47
- "default": "./dist/server/utils/*.js"
48
- },
49
- "./server-services/*": {
50
- "types": "./dist/server/services/*.d.ts",
51
- "default": "./dist/server/services/*.js"
52
- },
53
- "./next.config": {
54
- "types": "./dist/next.config.d.ts",
55
- "default": "./dist/next.config.js"
56
- },
57
- "./theme.css": "./dist/styles/theme.css",
58
- "./*": {
59
- "types": "./dist/components/*/index.d.ts",
60
- "default": "./dist/components/*/index.js"
61
- }
62
- },
63
- "files": [
64
- "dist",
65
- "!dist/tsconfig.tsbuildinfo",
66
- "!dist/tsconfig.build.tsbuildinfo"
67
- ],
68
- "publishConfig": {
69
- "access": "public"
70
- },
71
- "scripts": {
72
- "dev": "next dev --port 4000",
73
- "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json && copy-files-from-to",
74
- "build:app": "next build",
75
- "start": "next start",
76
- "lint": "next lint",
77
- "release": "release-it"
78
- },
79
- "dependencies": {
80
- "@ark-ui/react": "^5.16.0",
81
- "@date-fns/tz": "^1.2.0",
82
- "@mediapipe/tasks-vision": "0.10.22-rc.20250304",
83
- "@next/third-parties": "^15.3.4",
84
- "@tailwindcss/typography": "^0.5.16",
85
- "date-fns": "^4.1.0",
86
- "embla-carousel-autoplay": "^8.6.0",
87
- "embla-carousel-react": "^8.6.0",
88
- "is-mobile": "^5.0.0",
89
- "lodash-es": "^4.17.21",
90
- "tailwind-merge": "^3.3.1",
91
- "tailwind-variants": "^1.0.0",
92
- "tailwind-zag": "^1.0.2",
93
- "tiny-invariant": "^1.3.3",
94
- "type-fest": "^4.41.0",
95
- "usehooks-ts": "^3.1.1",
96
- "zustand": "^5.0.6"
97
- },
98
- "devDependencies": {
99
- "@eslint/eslintrc": "3",
100
- "@hookform/resolvers": "5.1.1",
101
- "@opexa/object-id": "0.1.6",
102
- "@tailwindcss/postcss": "4",
103
- "@tanstack/react-query": "5.81.5",
104
- "@tanstack/react-query-devtools": "5.81.5",
105
- "@total-typescript/ts-reset": "0.6.1",
106
- "@types/lodash-es": "4.17.12",
107
- "@types/node": "24",
108
- "@types/react": "19",
109
- "@types/react-dom": "19",
110
- "copy-files-from-to": "3.12.1",
111
- "eslint": "9",
112
- "eslint-config-next": "15.3.4",
113
- "next": "15.4.0-canary.116",
114
- "react": "19.1.0",
115
- "react-dom": "19.1.0",
116
- "react-hook-form": "7.59.0",
117
- "release-it": "19.0.3",
118
- "tailwindcss": "4.1.11",
119
- "tsc-alias": "1.8.16",
120
- "typescript": "5",
121
- "zod": "3.25.71"
122
- },
123
- "peerDependencies": {
124
- "@hookform/resolvers": "^4.0.0 || ^5.0.0",
125
- "@opexa/object-id": "^0.1.0",
126
- "@tanstack/react-query": "^5.0.0",
127
- "next": "^15.4.0-canary.1",
128
- "react": "^19.0.0",
129
- "react-dom": "^19.0.0",
130
- "react-hook-form": "^7.0.0",
131
- "tailwindcss": "^4.0.0",
132
- "zod": "^3.0.0"
133
- },
134
- "release-it": {
135
- "git": {
136
- "commitMessage": "chore: release ${npm.name} v${version}",
137
- "tagName": "${npm.name}@${version}"
138
- },
139
- "github": {
140
- "release": false
141
- },
142
- "hooks": {
143
- "before:bump": [
144
- "pnpm lint"
145
- ],
146
- "after:bump": [
147
- "pnpm build"
148
- ]
149
- }
150
- },
151
- "copyFiles": [
152
- {
153
- "from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
154
- "to": "dist/",
155
- "toFlat": false
156
- }
157
- ],
158
- "copyFilesSettings": {
159
- "whenFileExists": "overwrite",
160
- "removeSourceMappingURL": true,
161
- "ignoreDotFilesAndFolders": false
162
- }
163
- }
1
+ {
2
+ "name": "@opexa/portal-components",
3
+ "version": "0.0.288",
4
+ "exports": {
5
+ "./ui/*": {
6
+ "types": "./dist/ui/*/index.d.ts",
7
+ "default": "./dist/ui/*/index.js"
8
+ },
9
+ "./utils/*": {
10
+ "types": "./dist/utils/*.d.ts",
11
+ "import": "./dist/utils/*.js"
12
+ },
13
+ "./types": {
14
+ "types": "./dist/types/index.d.ts",
15
+ "import": "./dist/types/index.js"
16
+ },
17
+ "./handlers": {
18
+ "types": "./dist/handlers/index.d.ts",
19
+ "default": "./dist/handlers/index.js"
20
+ },
21
+ "./middleware": {
22
+ "types": "./dist/middleware.d.ts",
23
+ "default": "./dist/middleware.js"
24
+ },
25
+ "./constants": {
26
+ "types": "./dist/constants/index.d.ts",
27
+ "default": "./dist/constants/index.js"
28
+ },
29
+ "./services/*": {
30
+ "types": "./dist/services/*.d.ts",
31
+ "default": "./dist/services/*.js"
32
+ },
33
+ "./client-utils/*": {
34
+ "types": "./dist/client/utils/*.d.ts",
35
+ "default": "./dist/client/utils/*.js"
36
+ },
37
+ "./client-hooks/*": {
38
+ "types": "./dist/client/hooks/*.d.ts",
39
+ "default": "./dist/client/hooks/*.js"
40
+ },
41
+ "./client-services/*": {
42
+ "types": "./dist/client/services/*.d.ts",
43
+ "default": "./dist/client/services/*.js"
44
+ },
45
+ "./server-utils/*": {
46
+ "types": "./dist/server/utils/*.d.ts",
47
+ "default": "./dist/server/utils/*.js"
48
+ },
49
+ "./server-services/*": {
50
+ "types": "./dist/server/services/*.d.ts",
51
+ "default": "./dist/server/services/*.js"
52
+ },
53
+ "./next.config": {
54
+ "types": "./dist/next.config.d.ts",
55
+ "default": "./dist/next.config.js"
56
+ },
57
+ "./theme.css": "./dist/styles/theme.css",
58
+ "./*": {
59
+ "types": "./dist/components/*/index.d.ts",
60
+ "default": "./dist/components/*/index.js"
61
+ }
62
+ },
63
+ "files": [
64
+ "dist",
65
+ "!dist/tsconfig.tsbuildinfo",
66
+ "!dist/tsconfig.build.tsbuildinfo"
67
+ ],
68
+ "publishConfig": {
69
+ "access": "public"
70
+ },
71
+ "scripts": {
72
+ "dev": "next dev --port 4000",
73
+ "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json && copy-files-from-to",
74
+ "build:app": "next build",
75
+ "start": "next start",
76
+ "lint": "next lint",
77
+ "release": "release-it"
78
+ },
79
+ "dependencies": {
80
+ "@ark-ui/react": "^5.16.0",
81
+ "@date-fns/tz": "^1.2.0",
82
+ "@mediapipe/tasks-vision": "0.10.22-rc.20250304",
83
+ "@next/third-parties": "^15.3.4",
84
+ "@tailwindcss/typography": "^0.5.16",
85
+ "date-fns": "^4.1.0",
86
+ "embla-carousel-autoplay": "^8.6.0",
87
+ "embla-carousel-react": "^8.6.0",
88
+ "is-mobile": "^5.0.0",
89
+ "lodash-es": "^4.17.21",
90
+ "tailwind-merge": "^3.3.1",
91
+ "tailwind-variants": "^1.0.0",
92
+ "tailwind-zag": "^1.0.2",
93
+ "tiny-invariant": "^1.3.3",
94
+ "type-fest": "^4.41.0",
95
+ "usehooks-ts": "^3.1.1",
96
+ "zustand": "^5.0.6"
97
+ },
98
+ "devDependencies": {
99
+ "@eslint/eslintrc": "3",
100
+ "@hookform/resolvers": "5.1.1",
101
+ "@opexa/object-id": "0.1.6",
102
+ "@tailwindcss/postcss": "4",
103
+ "@tanstack/react-query": "5.81.5",
104
+ "@tanstack/react-query-devtools": "5.81.5",
105
+ "@total-typescript/ts-reset": "0.6.1",
106
+ "@types/lodash-es": "4.17.12",
107
+ "@types/node": "24",
108
+ "@types/react": "19",
109
+ "@types/react-dom": "19",
110
+ "copy-files-from-to": "3.12.1",
111
+ "eslint": "9",
112
+ "eslint-config-next": "15.3.4",
113
+ "next": "15.4.0-canary.116",
114
+ "react": "19.1.0",
115
+ "react-dom": "19.1.0",
116
+ "react-hook-form": "7.59.0",
117
+ "release-it": "19.0.3",
118
+ "tailwindcss": "4.1.11",
119
+ "tsc-alias": "1.8.16",
120
+ "typescript": "5",
121
+ "zod": "3.25.71"
122
+ },
123
+ "peerDependencies": {
124
+ "@hookform/resolvers": "^4.0.0 || ^5.0.0",
125
+ "@opexa/object-id": "^0.1.0",
126
+ "@tanstack/react-query": "^5.0.0",
127
+ "next": "^15.4.0-canary.1",
128
+ "react": "^19.0.0",
129
+ "react-dom": "^19.0.0",
130
+ "react-hook-form": "^7.0.0",
131
+ "tailwindcss": "^4.0.0",
132
+ "zod": "^3.0.0"
133
+ },
134
+ "release-it": {
135
+ "git": {
136
+ "commitMessage": "chore: release ${npm.name} v${version}",
137
+ "tagName": "${npm.name}@${version}"
138
+ },
139
+ "github": {
140
+ "release": false
141
+ },
142
+ "hooks": {
143
+ "before:bump": [
144
+ "pnpm lint"
145
+ ],
146
+ "after:bump": [
147
+ "pnpm build"
148
+ ]
149
+ }
150
+ },
151
+ "copyFiles": [
152
+ {
153
+ "from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
154
+ "to": "dist/",
155
+ "toFlat": false
156
+ }
157
+ ],
158
+ "copyFilesSettings": {
159
+ "whenFileExists": "overwrite",
160
+ "removeSourceMappingURL": true,
161
+ "ignoreDotFilesAndFolders": false
162
+ }
163
+ }