@opexa/portal-components 0.0.289 → 0.0.290
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/Bonus/Bonus.client.js +1 -1
- package/dist/components/Cashback/Cashback.client.js +1 -1
- package/dist/components/CustomPromo/CustomPromo.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
- package/dist/components/GamesSearch/GamesSearch.js +1 -1
- package/dist/components/News/News.js +1 -1
- package/dist/components/PortalProvider/FeatureFlag.js +1 -1
- package/dist/components/Promo/Promo.client.js +1 -1
- package/dist/components/Quests/JourneyQuest.d.ts +1 -0
- package/dist/components/Quests/JourneyQuest.js +61 -0
- package/dist/components/Quests/Quests.client.js +2 -0
- package/dist/components/Search/Search.lazy.js +1 -1
- package/dist/constants/GameProvider.d.ts +1 -1
- package/dist/constants/GameProvider.js +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
- package/dist/ui/AlertDialog/alertDialog.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 +55 -55
- package/dist/ui/Dialog/dialog.recipe.d.ts +5 -5
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/package.json +1 -1
- package/dist/client/hooks/index.d.ts +0 -65
- package/dist/client/hooks/index.js +0 -65
- package/dist/client/services/index.d.ts +0 -4
- package/dist/client/services/index.js +0 -4
- package/dist/client/utils/index.d.ts +0 -3
- package/dist/client/utils/index.js +0 -3
- package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +0 -2
- package/dist/components/CashbackBonus/CashbackBonus.client.js +0 -9
- package/dist/components/CashbackBonus/CashbackBonus.d.ts +0 -10
- package/dist/components/CashbackBonus/CashbackBonus.js +0 -5
- package/dist/components/CashbackBonus/index.d.ts +0 -1
- package/dist/components/CashbackBonus/index.js +0 -1
- package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
- package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
- package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
- package/dist/components/Disclaimer/TermsOfUse.js +0 -13
- package/dist/components/Empty.d.ts +0 -9
- package/dist/components/Empty.js +0 -7
- package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
- package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
- package/dist/components/FeatureFlag/index.d.ts +0 -1
- package/dist/components/FeatureFlag/index.js +0 -1
- package/dist/components/Games/GameContext.d.ts +0 -2
- package/dist/components/Games/GameContext.js +0 -2
- package/dist/components/InfiniteScroll.d.ts +0 -10
- package/dist/components/InfiniteScroll.js +0 -25
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
- package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
- package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
- package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
- package/dist/components/JackpotCounter/index.d.ts +0 -1
- package/dist/components/JackpotCounter/index.js +0 -1
- package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
- package/dist/components/Jackpots/JackpotDesktop.js +0 -45
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
- package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
- package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
- package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
- package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
- package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
- package/dist/components/Jackpots/JackpotMobile.js +0 -46
- package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
- package/dist/components/Jackpots/JackpotRules.js +0 -11
- package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
- package/dist/components/Jackpots/Jackpots.client.js +0 -29
- package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
- package/dist/components/Jackpots/JackpotsContext.js +0 -3
- package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
- package/dist/components/Jackpots/useJackpotData.js +0 -93
- package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
- package/dist/components/Jackpots/useJackpotItemData.js +0 -87
- package/dist/components/KYC/AutoOpen.d.ts +0 -1
- package/dist/components/KYC/AutoOpen.js +0 -45
- package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
- package/dist/components/KYC/CaptureIdDocument.js +0 -219
- package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
- package/dist/components/KYC/CaptureSelfie.js +0 -285
- package/dist/components/KYC/DisplayImage.d.ts +0 -5
- package/dist/components/KYC/DisplayImage.js +0 -8
- package/dist/components/KYC/FileUpload.d.ts +0 -10
- package/dist/components/KYC/FileUpload.js +0 -72
- package/dist/components/KYC/Header.d.ts +0 -1
- package/dist/components/KYC/Header.js +0 -8
- package/dist/components/KYC/NoCameraError.d.ts +0 -7
- package/dist/components/KYC/NoCameraError.js +0 -6
- package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
- package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
- package/dist/components/KYC/Step1.d.ts +0 -1
- package/dist/components/KYC/Step1.js +0 -13
- package/dist/components/KYC/Step2.d.ts +0 -1
- package/dist/components/KYC/Step2.js +0 -13
- package/dist/components/KYC/Step3.d.ts +0 -1
- package/dist/components/KYC/Step3.js +0 -13
- package/dist/components/KYC/Step4.d.ts +0 -1
- package/dist/components/KYC/Step4.js +0 -7
- package/dist/components/KYC/backup/Header.d.ts +0 -1
- package/dist/components/KYC/backup/Header.js +0 -8
- package/dist/components/KYC/backup/Indicator.d.ts +0 -1
- package/dist/components/KYC/backup/Indicator.js +0 -9
- package/dist/components/KYC/backup/KYC.d.ts +0 -1
- package/dist/components/KYC/backup/KYC.js +0 -14
- package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
- package/dist/components/KYC/backup/KYC.lazy.js +0 -26
- package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
- package/dist/components/KYC/backup/KYCContext.js +0 -2
- package/dist/components/KYC/backup/Step1.d.ts +0 -1
- package/dist/components/KYC/backup/Step1.js +0 -13
- package/dist/components/KYC/backup/Step2.d.ts +0 -1
- package/dist/components/KYC/backup/Step2.js +0 -13
- package/dist/components/KYC/backup/Step3.d.ts +0 -1
- package/dist/components/KYC/backup/Step3.js +0 -13
- package/dist/components/KYC/backup/Step4.d.ts +0 -1
- package/dist/components/KYC/backup/Step4.js +0 -7
- package/dist/components/KYC/backup/useKYC.d.ts +0 -10
- package/dist/components/KYC/backup/useKYC.js +0 -8
- package/dist/components/KYC/loadModels.d.ts +0 -1
- package/dist/components/KYC/loadModels.js +0 -9
- package/dist/components/KYC/utils.d.ts +0 -9
- package/dist/components/KYC/utils.js +0 -79
- package/dist/components/Messages/Message.d.ts +0 -1
- package/dist/components/Messages/Message.js +0 -34
- package/dist/components/Messages/MessageContext.d.ts +0 -6
- package/dist/components/Messages/MessageContext.js +0 -2
- package/dist/components/Messages/MessageItem.d.ts +0 -4
- package/dist/components/Messages/MessageItem.js +0 -34
- package/dist/components/Messages/MessagePopup.d.ts +0 -1
- package/dist/components/Messages/MessagePopup.js +0 -19
- package/dist/components/Messages/MessageTrigger.d.ts +0 -8
- package/dist/components/Messages/MessageTrigger.js +0 -19
- package/dist/components/Promo/PromoContent.d.ts +0 -2
- package/dist/components/Promo/PromoContent.js +0 -9
- package/dist/components/Promos/PromoCarousel.d.ts +0 -2
- package/dist/components/Promos/PromoCarousel.js +0 -41
- package/dist/components/Promos/PromoGrid.d.ts +0 -2
- package/dist/components/Promos/PromoGrid.js +0 -12
- package/dist/components/Promos/PromoItem.d.ts +0 -7
- package/dist/components/Promos/PromoItem.js +0 -10
- package/dist/components/Quests/CountdownTimer.d.ts +0 -15
- package/dist/components/Quests/CountdownTimer.js +0 -33
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
- package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
- package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
- package/dist/components/SignUp/SignUp.lazy.js +0 -18
- package/dist/components/SignUp/SignUpContext.d.ts +0 -6
- package/dist/components/SignUp/SignUpContext.js +0 -2
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
- package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
- package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
- package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
- package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -314
- package/dist/components/SignUp/SignUpForm.d.ts +0 -1
- package/dist/components/SignUp/SignUpForm.js +0 -288
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
- package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
- package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
- package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
- package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
- package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
- package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
- package/dist/components/TournamentCounter/index.d.ts +0 -1
- package/dist/components/TournamentCounter/index.js +0 -1
- package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
- package/dist/components/Tournaments/TournamentDesktop.js +0 -57
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
- package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
- package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
- package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
- package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
- package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
- package/dist/components/Tournaments/TournamentMobile.js +0 -55
- package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
- package/dist/components/Tournaments/TournamentRules.js +0 -11
- package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
- package/dist/components/Tournaments/Tournaments.client.js +0 -20
- package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
- package/dist/components/Tournaments/TournamentsContext.js +0 -3
- package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
- package/dist/components/Tournaments/useTournamentData.js +0 -72
- package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
- package/dist/components/Tournaments/useTournamentItemData.js +0 -64
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -33
- package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
- package/dist/components/shared/IdDocumentField.client.js +0 -204
- package/dist/components/shared/IdDocumentField.d.ts +0 -2
- package/dist/components/shared/IdDocumentField.js +0 -11
- package/dist/components/shared/SelfieField.client.d.ts +0 -20
- package/dist/components/shared/SelfieField.client.js +0 -327
- package/dist/components/shared/SelfieField.d.ts +0 -2
- package/dist/components/shared/SelfieField.js +0 -11
- package/dist/constants/BranchCode.d.ts +0 -4
- package/dist/constants/BranchCode.js +0 -42
- package/dist/constants/endpoints.d.ts +0 -10
- package/dist/constants/endpoints.js +0 -41
- package/dist/constants/envVars.d.ts +0 -5
- package/dist/constants/envVars.js +0 -28
- package/dist/constants/gameProviders.d.ts +0 -76
- package/dist/constants/gameProviders.js +0 -361
- package/dist/constants/gameTypes.d.ts +0 -3
- package/dist/constants/gameTypes.js +0 -64
- package/dist/constants/headerKeys.d.ts +0 -2
- package/dist/constants/headerKeys.js +0 -2
- package/dist/constants/secretQuestions.d.ts +0 -3
- package/dist/constants/secretQuestions.js +0 -24
- package/dist/constants/storageKeys.d.ts +0 -2
- package/dist/constants/storageKeys.js +0 -2
- package/dist/handlers.d.ts +0 -43
- package/dist/handlers.js +0 -297
- package/dist/icons/BellRingIcon.d.ts +0 -2
- package/dist/icons/BellRingIcon.js +0 -4
- package/dist/icons/index.d.ts +0 -65
- package/dist/icons/index.js +0 -65
- package/dist/images/hacksaw-gaming.png +0 -0
- package/dist/server/services/index.d.ts +0 -4
- package/dist/server/services/index.js +0 -4
- package/dist/server/utils/index.d.ts +0 -29
- package/dist/server/utils/index.js +0 -29
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +0 -1
- package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
- package/dist/third-parties/FacebookPixel/index.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
- package/dist/third-parties/index.d.ts +0 -2
- package/dist/third-parties/index.js +0 -2
- package/dist/ui/Presence.d.ts +0 -2
- package/dist/ui/Presence.js +0 -7
- package/dist/ui/Prose.d.ts +0 -2
- package/dist/ui/Prose.js +0 -5
- package/dist/ui/index.d.ts +0 -26
- package/dist/ui/index.js +0 -26
- package/dist/utils/createErrorFromCode.d.ts +0 -2
- package/dist/utils/createErrorFromCode.js +0 -11
- package/dist/utils/dataUrlToBlob.d.ts +0 -1
- package/dist/utils/dataUrlToBlob.js +0 -11
- package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
- package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
- package/dist/utils/getGameName.d.ts +0 -1
- package/dist/utils/getGameName.js +0 -6
- package/dist/utils/index.d.ts +0 -17
- package/dist/utils/index.js +0 -17
- package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
- package/dist/utils/isBetween3amAnd3pm.js +0 -5
- package/dist/utils/isMobile.d.ts +0 -5
- package/dist/utils/isMobile.js +0 -9
- package/dist/utils/resizeImageSize.d.ts +0 -1
- package/dist/utils/resizeImageSize.js +0 -6
package/dist/handlers.js
DELETED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { addDays, addMinutes, subMinutes } from 'date-fns';
|
|
2
|
-
import { NextResponse } from 'next/server';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { ACCESS_TOKEN_COOKIE_NAME, DOMAIN_COOKIE_NAME, DOMAIN_HEADER_KEY, RECAPTCHA_HEADER_KEY, REFRESH_TOKEN_COOKIE_NAME, } from './constants/index.js';
|
|
5
|
-
import { authenticate, createSession, destroySession, refreshSession, } from './services/auth.js';
|
|
6
|
-
const CreateSessionDefinition = z.union([
|
|
7
|
-
z.object({
|
|
8
|
-
type: z.literal('NAME_AND_PASSWORD'),
|
|
9
|
-
name: z.string(),
|
|
10
|
-
password: z.string(),
|
|
11
|
-
}),
|
|
12
|
-
z.object({
|
|
13
|
-
type: z.literal('MOBILE_NUMBER'),
|
|
14
|
-
mobileNumber: z.string(),
|
|
15
|
-
verificationCode: z.string(),
|
|
16
|
-
}),
|
|
17
|
-
z.object({
|
|
18
|
-
type: z.literal('MAYA'),
|
|
19
|
-
session: z.string(),
|
|
20
|
-
}),
|
|
21
|
-
z.object({
|
|
22
|
-
type: z.union([
|
|
23
|
-
z.literal('SOCIALS'),
|
|
24
|
-
z.literal('CABINET'),
|
|
25
|
-
z.literal('SINGLE_USE_TOKEN'),
|
|
26
|
-
]),
|
|
27
|
-
token: z.string(),
|
|
28
|
-
}),
|
|
29
|
-
]);
|
|
30
|
-
const AuthenticateDefinition = z.object({
|
|
31
|
-
type: z.literal('SECURITY_QUESTION'),
|
|
32
|
-
token: z.string(),
|
|
33
|
-
secretAnswer: z.string(),
|
|
34
|
-
});
|
|
35
|
-
export const GET = async (request, { params }) => {
|
|
36
|
-
const { auth } = await params;
|
|
37
|
-
const path = auth[0];
|
|
38
|
-
/*
|
|
39
|
-
*
|
|
40
|
-
* GET -> /api/health
|
|
41
|
-
* GET -> /api/healthcheck
|
|
42
|
-
* GET -> /api/health-check
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
if (/^health(-?check)?$/i.test(path)) {
|
|
46
|
-
return NextResponse.json({
|
|
47
|
-
ok: true,
|
|
48
|
-
}, {
|
|
49
|
-
headers: {
|
|
50
|
-
'Access-Control-Allow-Origin': '*',
|
|
51
|
-
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
|
52
|
-
Pragma: 'no-cache',
|
|
53
|
-
Expires: '0',
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/*
|
|
58
|
-
*
|
|
59
|
-
* GET -> /api/sessions
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
if (path === 'sessions') {
|
|
63
|
-
const accessToken = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)?.value;
|
|
64
|
-
const refreshToken = request.cookies.get(REFRESH_TOKEN_COOKIE_NAME)?.value;
|
|
65
|
-
const domain = request.cookies.get(DOMAIN_COOKIE_NAME)?.value;
|
|
66
|
-
if (!refreshToken) {
|
|
67
|
-
const response = NextResponse.json({
|
|
68
|
-
ok: true,
|
|
69
|
-
data: {
|
|
70
|
-
domain,
|
|
71
|
-
status: 'unauthenticated',
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
response.cookies.delete(ACCESS_TOKEN_COOKIE_NAME);
|
|
75
|
-
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
76
|
-
return response;
|
|
77
|
-
}
|
|
78
|
-
if (!accessToken) {
|
|
79
|
-
try {
|
|
80
|
-
const data = await refreshSession({
|
|
81
|
-
headers: {
|
|
82
|
-
Authorization: `Bearer ${refreshToken}`,
|
|
83
|
-
},
|
|
84
|
-
});
|
|
85
|
-
const response = NextResponse.json({
|
|
86
|
-
ok: true,
|
|
87
|
-
data: {
|
|
88
|
-
status: 'authenticated',
|
|
89
|
-
domain,
|
|
90
|
-
token: data.accessToken,
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, data.accessToken, {
|
|
94
|
-
expires: addMinutes(new Date(), 9),
|
|
95
|
-
httpOnly: true,
|
|
96
|
-
sameSite: 'strict',
|
|
97
|
-
});
|
|
98
|
-
return response;
|
|
99
|
-
}
|
|
100
|
-
catch {
|
|
101
|
-
const response = NextResponse.json({
|
|
102
|
-
ok: true,
|
|
103
|
-
data: {
|
|
104
|
-
status: 'unauthenticated',
|
|
105
|
-
domain,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
109
|
-
return response;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return NextResponse.json({
|
|
113
|
-
ok: true,
|
|
114
|
-
data: {
|
|
115
|
-
status: 'authenticated',
|
|
116
|
-
domain,
|
|
117
|
-
token: accessToken,
|
|
118
|
-
},
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
return NextResponse.json({
|
|
122
|
-
ok: false,
|
|
123
|
-
message: 'Not found',
|
|
124
|
-
}, { status: 404 });
|
|
125
|
-
};
|
|
126
|
-
export const DELETE = async (request, { params }) => {
|
|
127
|
-
const { auth } = await params;
|
|
128
|
-
const path = auth[0];
|
|
129
|
-
/*
|
|
130
|
-
*
|
|
131
|
-
* DELETE -> /api/sessions
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
134
|
-
if (path === 'sessions') {
|
|
135
|
-
const accessToken = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)?.value;
|
|
136
|
-
if (accessToken) {
|
|
137
|
-
await destroySession({
|
|
138
|
-
headers: {
|
|
139
|
-
Authorization: `Bearer ${accessToken}`,
|
|
140
|
-
},
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
const response = NextResponse.json({
|
|
144
|
-
ok: true,
|
|
145
|
-
});
|
|
146
|
-
response.cookies.delete(ACCESS_TOKEN_COOKIE_NAME);
|
|
147
|
-
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
148
|
-
return response;
|
|
149
|
-
}
|
|
150
|
-
return NextResponse.json({
|
|
151
|
-
ok: false,
|
|
152
|
-
message: 'Not found',
|
|
153
|
-
}, { status: 404 });
|
|
154
|
-
};
|
|
155
|
-
export const POST = async (request, { params }) => {
|
|
156
|
-
const { auth } = await params;
|
|
157
|
-
const path = auth[0];
|
|
158
|
-
/*
|
|
159
|
-
*
|
|
160
|
-
* POST -> /api/sessions
|
|
161
|
-
*
|
|
162
|
-
*/
|
|
163
|
-
if (path === 'sessions') {
|
|
164
|
-
const body = await request.json();
|
|
165
|
-
const parsed = CreateSessionDefinition.safeParse(body);
|
|
166
|
-
if (!parsed.success) {
|
|
167
|
-
return NextResponse.json({
|
|
168
|
-
ok: false,
|
|
169
|
-
message: parsed.error.issues[0].message,
|
|
170
|
-
}, { status: 400 });
|
|
171
|
-
}
|
|
172
|
-
const recaptcha = request.headers.get(RECAPTCHA_HEADER_KEY);
|
|
173
|
-
const domain = request.headers.get(DOMAIN_HEADER_KEY);
|
|
174
|
-
try {
|
|
175
|
-
const res = await createSession(parsed.data, {
|
|
176
|
-
headers: {
|
|
177
|
-
...(recaptcha && {
|
|
178
|
-
[RECAPTCHA_HEADER_KEY]: recaptcha,
|
|
179
|
-
}),
|
|
180
|
-
...(domain && {
|
|
181
|
-
[DOMAIN_HEADER_KEY]: domain,
|
|
182
|
-
}),
|
|
183
|
-
},
|
|
184
|
-
});
|
|
185
|
-
if (res.authenticator) {
|
|
186
|
-
return NextResponse.json({
|
|
187
|
-
ok: true,
|
|
188
|
-
data: res.authenticator,
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
const response = NextResponse.json({ ok: true, data: null }, { status: 201 });
|
|
192
|
-
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, res.accessToken, {
|
|
193
|
-
expires: addMinutes(new Date(), 9),
|
|
194
|
-
httpOnly: true,
|
|
195
|
-
sameSite: 'strict',
|
|
196
|
-
});
|
|
197
|
-
response.cookies.set(REFRESH_TOKEN_COOKIE_NAME, res.refreshToken, {
|
|
198
|
-
expires: subMinutes(addDays(new Date(), 30), 1),
|
|
199
|
-
httpOnly: true,
|
|
200
|
-
sameSite: 'strict',
|
|
201
|
-
});
|
|
202
|
-
return response;
|
|
203
|
-
}
|
|
204
|
-
catch (e) {
|
|
205
|
-
return NextResponse.json({
|
|
206
|
-
ok: false,
|
|
207
|
-
message: 'Unauthorized',
|
|
208
|
-
__error: e,
|
|
209
|
-
}, { status: 401 });
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
/*
|
|
213
|
-
*
|
|
214
|
-
* POST -> /api/authenticate
|
|
215
|
-
*
|
|
216
|
-
*/
|
|
217
|
-
if (path === 'authenticate') {
|
|
218
|
-
const body = await request.json();
|
|
219
|
-
const parsed = AuthenticateDefinition.safeParse(body);
|
|
220
|
-
if (!parsed.success) {
|
|
221
|
-
return NextResponse.json({
|
|
222
|
-
ok: false,
|
|
223
|
-
message: parsed.error.issues[0].message,
|
|
224
|
-
}, { status: 400 });
|
|
225
|
-
}
|
|
226
|
-
const recaptcha = request.headers.get(RECAPTCHA_HEADER_KEY);
|
|
227
|
-
const domain = request.headers.get(DOMAIN_HEADER_KEY);
|
|
228
|
-
try {
|
|
229
|
-
const res = await authenticate(parsed.data, {
|
|
230
|
-
headers: {
|
|
231
|
-
...(recaptcha && {
|
|
232
|
-
[RECAPTCHA_HEADER_KEY]: recaptcha,
|
|
233
|
-
}),
|
|
234
|
-
...(domain && {
|
|
235
|
-
[DOMAIN_HEADER_KEY]: domain,
|
|
236
|
-
}),
|
|
237
|
-
},
|
|
238
|
-
});
|
|
239
|
-
const response = NextResponse.json({ ok: true }, { status: 201 });
|
|
240
|
-
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, res.accessToken, {
|
|
241
|
-
expires: addMinutes(new Date(), 9),
|
|
242
|
-
httpOnly: true,
|
|
243
|
-
});
|
|
244
|
-
response.cookies.set(REFRESH_TOKEN_COOKIE_NAME, res.refreshToken, {
|
|
245
|
-
expires: subMinutes(addDays(new Date(), 30), 1),
|
|
246
|
-
httpOnly: true,
|
|
247
|
-
});
|
|
248
|
-
return response;
|
|
249
|
-
}
|
|
250
|
-
catch (e) {
|
|
251
|
-
return NextResponse.json({
|
|
252
|
-
ok: false,
|
|
253
|
-
message: 'Unauthorized',
|
|
254
|
-
__error: e,
|
|
255
|
-
}, { status: 401 });
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return NextResponse.json({
|
|
259
|
-
ok: false,
|
|
260
|
-
message: 'Not found',
|
|
261
|
-
}, { status: 404 });
|
|
262
|
-
};
|
|
263
|
-
const UpdateSessionDefinition = z.object({
|
|
264
|
-
domain: z.string().optional().nullable(),
|
|
265
|
-
});
|
|
266
|
-
export const PATCH = async (request, { params }) => {
|
|
267
|
-
const { auth } = await params;
|
|
268
|
-
const path = auth[0];
|
|
269
|
-
/*
|
|
270
|
-
*
|
|
271
|
-
* PATCH -> /api/sessions
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
if (path === 'sessions') {
|
|
275
|
-
const body = await request.json();
|
|
276
|
-
const parsed = UpdateSessionDefinition.safeParse(body);
|
|
277
|
-
if (!parsed.success) {
|
|
278
|
-
return NextResponse.json({
|
|
279
|
-
ok: false,
|
|
280
|
-
message: parsed.error.issues[0].message,
|
|
281
|
-
}, { status: 400 });
|
|
282
|
-
}
|
|
283
|
-
const response = NextResponse.json({ ok: true });
|
|
284
|
-
if (parsed.data.domain) {
|
|
285
|
-
response.cookies.set(DOMAIN_COOKIE_NAME, parsed.data.domain, {
|
|
286
|
-
expires: addDays(new Date(), 30),
|
|
287
|
-
httpOnly: true,
|
|
288
|
-
sameSite: 'strict',
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
return response;
|
|
292
|
-
}
|
|
293
|
-
return NextResponse.json({
|
|
294
|
-
ok: false,
|
|
295
|
-
message: 'Not found',
|
|
296
|
-
}, { status: 404 });
|
|
297
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export function BellRingIcon(props) {
|
|
3
|
-
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 25 24", fill: "none", stroke: "currentColor", ...props, children: _jsx("path", { d: "M15.5002 19C15.5002 20.6569 14.1571 22 12.5002 22C10.8434 22 9.50025 20.6569 9.50025 19M14.2968 6.23856C14.7322 5.78864 15.0002 5.17562 15.0002 4.5C15.0002 3.11929 13.881 2 12.5002 2C11.1195 2 10.0002 3.11929 10.0002 4.5C10.0002 5.17562 10.2683 5.78864 10.7037 6.23856M3.04707 8.32296C3.03272 6.87161 3.8152 5.51631 5.07928 4.80306M21.9534 8.32296C21.9678 6.87161 21.1853 5.51631 19.9212 4.80306M18.5002 11.2C18.5002 9.82087 17.8681 8.49823 16.7429 7.52304C15.6177 6.54786 14.0915 6 12.5002 6C10.9089 6 9.38283 6.54786 8.25761 7.52304C7.13239 8.49823 6.50025 9.82087 6.50025 11.2C6.50025 13.4818 5.93438 15.1506 5.22831 16.3447C4.42359 17.7056 4.02122 18.3861 4.03711 18.5486C4.05529 18.7346 4.08876 18.7933 4.23959 18.9036C4.37142 19 5.03376 19 6.35844 19H18.6421C19.9667 19 20.6291 19 20.7609 18.9036C20.9117 18.7933 20.9452 18.7346 20.9634 18.5486C20.9793 18.3861 20.5769 17.7056 19.7722 16.3447C19.0661 15.1506 18.5002 13.4818 18.5002 11.2Z", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
4
|
-
}
|
package/dist/icons/index.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export * from './AlertCircleIcon';
|
|
2
|
-
export * from './AlertTriangle';
|
|
3
|
-
export * from './Announcement01Icon';
|
|
4
|
-
export * from './ArrowLeftIcon';
|
|
5
|
-
export * from './ArrowNarrowDownIcon';
|
|
6
|
-
export * from './ArrowNarrowUpIcon';
|
|
7
|
-
export * from './ArrowNarrowUpRightIcon';
|
|
8
|
-
export * from './ArrowRightIcon';
|
|
9
|
-
export * from './Award01Icon';
|
|
10
|
-
export * from './Award02Icon';
|
|
11
|
-
export * from './BankIcon';
|
|
12
|
-
export * from './Bell01Icon';
|
|
13
|
-
export * from './BellRingIcon';
|
|
14
|
-
export * from './CalendarIcon';
|
|
15
|
-
export * from './Camera01Icon';
|
|
16
|
-
export * from './CheckCircleBrokenIcon';
|
|
17
|
-
export * from './CheckCircleIcon';
|
|
18
|
-
export * from './CheckIcon';
|
|
19
|
-
export * from './CheckVerified02Icon';
|
|
20
|
-
export * from './ChevronDownIcon';
|
|
21
|
-
export * from './ChevronLeftIcon';
|
|
22
|
-
export * from './ChevronRightIcon';
|
|
23
|
-
export * from './ChevronUpIcon';
|
|
24
|
-
export * from './ClockStopWatchIcon';
|
|
25
|
-
export * from './CoinsHandIcon';
|
|
26
|
-
export * from './CoinsStacked02Icon';
|
|
27
|
-
export * from './CoinsSwap02Icon';
|
|
28
|
-
export * from './CreditCard02Icon';
|
|
29
|
-
export * from './CreditCardCheckIcon';
|
|
30
|
-
export * from './Diamond01Icon';
|
|
31
|
-
export * from './Expand03Icon';
|
|
32
|
-
export * from './EyeIcon';
|
|
33
|
-
export * from './EyeOffIcon';
|
|
34
|
-
export * from './FacebookIcon';
|
|
35
|
-
export * from './FaceIdIcon';
|
|
36
|
-
export * from './File02Icon';
|
|
37
|
-
export * from './FileCheck02Icon';
|
|
38
|
-
export * from './FileSearch02Icon';
|
|
39
|
-
export * from './FileX02Icon';
|
|
40
|
-
export * from './GamingPad01Icon';
|
|
41
|
-
export * from './Gift01Icon';
|
|
42
|
-
export * from './Globe05Icon';
|
|
43
|
-
export * from './GoogleIcon';
|
|
44
|
-
export * from './HelpCircleIcon';
|
|
45
|
-
export * from './InfoCircleIcon';
|
|
46
|
-
export * from './Lock01Icon';
|
|
47
|
-
export * from './Logout01Icon';
|
|
48
|
-
export * from './MarkerPin06Icon';
|
|
49
|
-
export * from './Menu01Icon';
|
|
50
|
-
export * from './Menu03Icon';
|
|
51
|
-
export * from './PiggyBank02Icon';
|
|
52
|
-
export * from './QrCode02Icon';
|
|
53
|
-
export * from './SearchLgIcon';
|
|
54
|
-
export * from './SearchRefractionIcon';
|
|
55
|
-
export * from './Settings02Icon';
|
|
56
|
-
export * from './SpinnerIcon';
|
|
57
|
-
export * from './Star01Icon';
|
|
58
|
-
export * from './StarIcon';
|
|
59
|
-
export * from './StopWatchIcon';
|
|
60
|
-
export * from './Target04Icon';
|
|
61
|
-
export * from './Trophy01Icon';
|
|
62
|
-
export * from './UploadCloud02Icon';
|
|
63
|
-
export * from './User01Icon';
|
|
64
|
-
export * from './Wallet02Icon';
|
|
65
|
-
export * from './XIcon';
|
package/dist/icons/index.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export * from './AlertCircleIcon.js';
|
|
2
|
-
export * from './AlertTriangle.js';
|
|
3
|
-
export * from './Announcement01Icon.js';
|
|
4
|
-
export * from './ArrowLeftIcon.js';
|
|
5
|
-
export * from './ArrowNarrowDownIcon.js';
|
|
6
|
-
export * from './ArrowNarrowUpIcon.js';
|
|
7
|
-
export * from './ArrowNarrowUpRightIcon.js';
|
|
8
|
-
export * from './ArrowRightIcon.js';
|
|
9
|
-
export * from './Award01Icon.js';
|
|
10
|
-
export * from './Award02Icon.js';
|
|
11
|
-
export * from './BankIcon.js';
|
|
12
|
-
export * from './Bell01Icon.js';
|
|
13
|
-
export * from './BellRingIcon.js';
|
|
14
|
-
export * from './CalendarIcon.js';
|
|
15
|
-
export * from './Camera01Icon.js';
|
|
16
|
-
export * from './CheckCircleBrokenIcon.js';
|
|
17
|
-
export * from './CheckCircleIcon.js';
|
|
18
|
-
export * from './CheckIcon.js';
|
|
19
|
-
export * from './CheckVerified02Icon.js';
|
|
20
|
-
export * from './ChevronDownIcon.js';
|
|
21
|
-
export * from './ChevronLeftIcon.js';
|
|
22
|
-
export * from './ChevronRightIcon.js';
|
|
23
|
-
export * from './ChevronUpIcon.js';
|
|
24
|
-
export * from './ClockStopWatchIcon.js';
|
|
25
|
-
export * from './CoinsHandIcon.js';
|
|
26
|
-
export * from './CoinsStacked02Icon.js';
|
|
27
|
-
export * from './CoinsSwap02Icon.js';
|
|
28
|
-
export * from './CreditCard02Icon.js';
|
|
29
|
-
export * from './CreditCardCheckIcon.js';
|
|
30
|
-
export * from './Diamond01Icon.js';
|
|
31
|
-
export * from './Expand03Icon.js';
|
|
32
|
-
export * from './EyeIcon.js';
|
|
33
|
-
export * from './EyeOffIcon.js';
|
|
34
|
-
export * from './FacebookIcon.js';
|
|
35
|
-
export * from './FaceIdIcon.js';
|
|
36
|
-
export * from './File02Icon.js';
|
|
37
|
-
export * from './FileCheck02Icon.js';
|
|
38
|
-
export * from './FileSearch02Icon.js';
|
|
39
|
-
export * from './FileX02Icon.js';
|
|
40
|
-
export * from './GamingPad01Icon.js';
|
|
41
|
-
export * from './Gift01Icon.js';
|
|
42
|
-
export * from './Globe05Icon.js';
|
|
43
|
-
export * from './GoogleIcon.js';
|
|
44
|
-
export * from './HelpCircleIcon.js';
|
|
45
|
-
export * from './InfoCircleIcon.js';
|
|
46
|
-
export * from './Lock01Icon.js';
|
|
47
|
-
export * from './Logout01Icon.js';
|
|
48
|
-
export * from './MarkerPin06Icon.js';
|
|
49
|
-
export * from './Menu01Icon.js';
|
|
50
|
-
export * from './Menu03Icon.js';
|
|
51
|
-
export * from './PiggyBank02Icon.js';
|
|
52
|
-
export * from './QrCode02Icon.js';
|
|
53
|
-
export * from './SearchLgIcon.js';
|
|
54
|
-
export * from './SearchRefractionIcon.js';
|
|
55
|
-
export * from './Settings02Icon.js';
|
|
56
|
-
export * from './SpinnerIcon.js';
|
|
57
|
-
export * from './Star01Icon.js';
|
|
58
|
-
export * from './StarIcon.js';
|
|
59
|
-
export * from './StopWatchIcon.js';
|
|
60
|
-
export * from './Target04Icon.js';
|
|
61
|
-
export * from './Trophy01Icon.js';
|
|
62
|
-
export * from './UploadCloud02Icon.js';
|
|
63
|
-
export * from './User01Icon.js';
|
|
64
|
-
export * from './Wallet02Icon.js';
|
|
65
|
-
export * from './XIcon.js';
|
|
Binary file
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from './prefetchAccountQuery';
|
|
2
|
-
export * from './prefetchAvailablePromosQuery';
|
|
3
|
-
export * from './prefetchAvailableQuestsQuery';
|
|
4
|
-
export * from './prefetchBetRecordsQuery';
|
|
5
|
-
export * from './prefetchBonusesQuery';
|
|
6
|
-
export * from './prefetchBonusQuery';
|
|
7
|
-
export * from './prefetchCashbackBonusesQuery';
|
|
8
|
-
export * from './prefetchCashbackBonusQuery';
|
|
9
|
-
export * from './prefetchCashbackQuery';
|
|
10
|
-
export * from './prefetchCashbacksQuery';
|
|
11
|
-
export * from './prefetchDepositQuery';
|
|
12
|
-
export * from './prefetchDepositRecordsQuery';
|
|
13
|
-
export * from './prefetchFavoriteGamesQuery';
|
|
14
|
-
export * from './prefetchGamesQuery';
|
|
15
|
-
export * from './prefetchInstapayBankListQuery';
|
|
16
|
-
export * from './prefetchIsMayaSessionValidQuery';
|
|
17
|
-
export * from './prefetchJackpotsQuery';
|
|
18
|
-
export * from './prefetchMemberVerificationQuery';
|
|
19
|
-
export * from './prefetchPaymentSettingsQuery';
|
|
20
|
-
export * from './prefetchPlatformQuery';
|
|
21
|
-
export * from './prefetchProfileCompletionQuery';
|
|
22
|
-
export * from './prefetchPromoQuery';
|
|
23
|
-
export * from './prefetchPromosQuery';
|
|
24
|
-
export * from './prefetchSessionQuery';
|
|
25
|
-
export * from './prefetchTopWinsQuery';
|
|
26
|
-
export * from './prefetchTournamentsQuery';
|
|
27
|
-
export * from './prefetchTransactionRecordsQuery';
|
|
28
|
-
export * from './prefetchWalletQuery';
|
|
29
|
-
export * from './prefetchWithdrawalRecordsQuery';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from './prefetchAccountQuery.js';
|
|
2
|
-
export * from './prefetchAvailablePromosQuery.js';
|
|
3
|
-
export * from './prefetchAvailableQuestsQuery.js';
|
|
4
|
-
export * from './prefetchBetRecordsQuery.js';
|
|
5
|
-
export * from './prefetchBonusesQuery.js';
|
|
6
|
-
export * from './prefetchBonusQuery.js';
|
|
7
|
-
export * from './prefetchCashbackBonusesQuery.js';
|
|
8
|
-
export * from './prefetchCashbackBonusQuery.js';
|
|
9
|
-
export * from './prefetchCashbackQuery.js';
|
|
10
|
-
export * from './prefetchCashbacksQuery.js';
|
|
11
|
-
export * from './prefetchDepositQuery.js';
|
|
12
|
-
export * from './prefetchDepositRecordsQuery.js';
|
|
13
|
-
export * from './prefetchFavoriteGamesQuery.js';
|
|
14
|
-
export * from './prefetchGamesQuery.js';
|
|
15
|
-
export * from './prefetchInstapayBankListQuery.js';
|
|
16
|
-
export * from './prefetchIsMayaSessionValidQuery.js';
|
|
17
|
-
export * from './prefetchJackpotsQuery.js';
|
|
18
|
-
export * from './prefetchMemberVerificationQuery.js';
|
|
19
|
-
export * from './prefetchPaymentSettingsQuery.js';
|
|
20
|
-
export * from './prefetchPlatformQuery.js';
|
|
21
|
-
export * from './prefetchProfileCompletionQuery.js';
|
|
22
|
-
export * from './prefetchPromoQuery.js';
|
|
23
|
-
export * from './prefetchPromosQuery.js';
|
|
24
|
-
export * from './prefetchSessionQuery.js';
|
|
25
|
-
export * from './prefetchTopWinsQuery.js';
|
|
26
|
-
export * from './prefetchTournamentsQuery.js';
|
|
27
|
-
export * from './prefetchTransactionRecordsQuery.js';
|
|
28
|
-
export * from './prefetchWalletQuery.js';
|
|
29
|
-
export * from './prefetchWithdrawalRecordsQuery.js';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FacebookPixel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FacebookPixel.js';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GoogleRecaptcha';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GoogleRecaptcha.js';
|
package/dist/ui/Presence.d.ts
DELETED
package/dist/ui/Presence.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Presence as Primitive, } from '@ark-ui/react/presence';
|
|
4
|
-
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
export function Presence(props) {
|
|
6
|
-
return (_jsx(Primitive, { lazyMount: true, ...props, className: twMerge('ui-open:animate-fade-in ui-closed:animate-fade-out', props.className) }));
|
|
7
|
-
}
|
package/dist/ui/Prose.d.ts
DELETED
package/dist/ui/Prose.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
export function Prose(props) {
|
|
4
|
-
return (_jsx("div", { ...props, className: twMerge('prose', 'prose-invert', 'max-w-none', 'prose-h1:text-text-primary-900', 'prose-h2:text-text-primary-900', 'prose-h3:text-text-primary-900', 'prose-h4:text-text-primary-900', 'prose-h5:text-text-primary-900', 'prose-h6:text-text-primary-900', 'prose-h1:text-4xl', 'prose-h2:text-3xl', 'prose-h3:text-2xl', 'prose-h4:text-xl', 'prose-h5:text-lg', 'prose-h6:text-base', 'prose-headings:font-semibold', 'prose-p:text-text-secondary-700', 'prose-ul:text-text-secondary-700', 'prose-ol:text-text-secondary-700', 'prose-li:text-text-secondary-700', 'prose-li:marker:text-text-secondary-700', 'prose-strong:text-text-secondary-700', 'prose-ul:text-text-secondary-700', 'prose-em:text-text-secondary-700', 'prose-b:text-text-secondary-700', 'prose-u:text-text-secondary-700', 'prose-img:block', 'prose-img:w-full', 'prose-img:h-auto', 'prose-strong:font-medium', 'prose-b:font-medium', props.className) }));
|
|
5
|
-
}
|
package/dist/ui/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * from './AlertDialog';
|
|
2
|
-
export * from './Avatar';
|
|
3
|
-
export * from './Badge';
|
|
4
|
-
export * from './Button';
|
|
5
|
-
export * from './Checkbox';
|
|
6
|
-
export * from './Clipboard';
|
|
7
|
-
export * from './Collapsible';
|
|
8
|
-
export * from './Combobox';
|
|
9
|
-
export * from './DatePicker';
|
|
10
|
-
export * from './Dialog';
|
|
11
|
-
export * from './Drawer';
|
|
12
|
-
export * from './Field';
|
|
13
|
-
export * from './IconButton';
|
|
14
|
-
export * from './Menu';
|
|
15
|
-
export * from './NumberInput';
|
|
16
|
-
export * from './PasswordInput';
|
|
17
|
-
export * from './PinInput';
|
|
18
|
-
export * from './Popover';
|
|
19
|
-
export * from './Presence';
|
|
20
|
-
export * from './Progress';
|
|
21
|
-
export * from './Prose';
|
|
22
|
-
export * from './SegmentGroup';
|
|
23
|
-
export * from './Select';
|
|
24
|
-
export * from './Table';
|
|
25
|
-
export * from './Tabs';
|
|
26
|
-
export * from './Tooltip';
|
package/dist/ui/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * from './AlertDialog/index.js';
|
|
2
|
-
export * from './Avatar/index.js';
|
|
3
|
-
export * from './Badge/index.js';
|
|
4
|
-
export * from './Button/index.js';
|
|
5
|
-
export * from './Checkbox/index.js';
|
|
6
|
-
export * from './Clipboard/index.js';
|
|
7
|
-
export * from './Collapsible/index.js';
|
|
8
|
-
export * from './Combobox/index.js';
|
|
9
|
-
export * from './DatePicker/index.js';
|
|
10
|
-
export * from './Dialog/index.js';
|
|
11
|
-
export * from './Drawer/index.js';
|
|
12
|
-
export * from './Field/index.js';
|
|
13
|
-
export * from './IconButton/index.js';
|
|
14
|
-
export * from './Menu/index.js';
|
|
15
|
-
export * from './NumberInput/index.js';
|
|
16
|
-
export * from './PasswordInput/index.js';
|
|
17
|
-
export * from './PinInput/index.js';
|
|
18
|
-
export * from './Popover/index.js';
|
|
19
|
-
export * from './Presence.js';
|
|
20
|
-
export * from './Progress/index.js';
|
|
21
|
-
export * from './Prose.js';
|
|
22
|
-
export * from './SegmentGroup/index.js';
|
|
23
|
-
export * from './Select/index.js';
|
|
24
|
-
export * from './Table/index.js';
|
|
25
|
-
export * from './Tabs/index.js';
|
|
26
|
-
export * from './Tooltip/index.js';
|