@opexa/portal-components 0.0.33 → 0.0.35

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 (90) hide show
  1. package/dist/client/hooks/useMemberVerificationQuery.js +0 -1
  2. package/dist/client/hooks/useMessagesQuery.js +0 -1
  3. package/dist/client/hooks/useTransactionRecordsQuery.js +0 -1
  4. package/dist/client/hooks/useWithdrawalRecordsQuery.js +0 -1
  5. package/dist/components/Account/Account.js +1 -1
  6. package/dist/components/AccountInfo/AccountInfo.js +1 -1
  7. package/dist/components/AccountSecurity/AccountSecurity.js +2 -2
  8. package/dist/components/AccountVerification/AccountVerification.d.ts +4 -1
  9. package/dist/components/AccountVerification/AccountVerification.js +36 -2
  10. package/dist/components/AccountVerification/VerificationCapture.d.ts +1 -0
  11. package/dist/components/AccountVerification/VerificationCapture.js +57 -0
  12. package/dist/components/AccountVerification/selfie.png +0 -0
  13. package/dist/components/AccountVerification/upload-id.png +0 -0
  14. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  15. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  16. package/dist/components/DepositWithdrawal/PaymentMethods.js +5 -5
  17. package/dist/components/Disclaimer/Disclaimer.js +2 -2
  18. package/dist/components/GamesSearch/GamesSearch.js +1 -1
  19. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -1
  20. package/dist/components/JackpotCounter/JackpotCounterItem.js +11 -22
  21. package/dist/components/Jackpots/JackpotItemDesktop.js +12 -11
  22. package/dist/components/Jackpots/JackpotItemMobile.js +11 -10
  23. package/dist/components/Jackpots/Jackpots.js +4 -2
  24. package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -1
  25. package/dist/components/Jackpots/useJackpotItemData.js +0 -7
  26. package/dist/components/TournamentCounter/TournamentCounter.client.js +5 -12
  27. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +3 -4
  28. package/dist/components/TournamentCounter/TournamentCounterItem.js +24 -13
  29. package/dist/components/Tournaments/TournamentGameProviders.d.ts +5 -1
  30. package/dist/components/Tournaments/TournamentGameProviders.js +3 -4
  31. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +7 -0
  32. package/dist/components/Tournaments/TournamentItemDesktop.js +57 -0
  33. package/dist/components/Tournaments/TournamentItemMobile.d.ts +6 -6
  34. package/dist/components/Tournaments/TournamentItemMobile.js +21 -61
  35. package/dist/components/Tournaments/Tournaments.d.ts +3 -1
  36. package/dist/components/Tournaments/Tournaments.js +8 -15
  37. package/dist/components/Tournaments/useTournamentItemData.d.ts +16 -0
  38. package/dist/components/Tournaments/useTournamentItemData.js +64 -0
  39. package/dist/components/index.d.ts +0 -1
  40. package/dist/components/index.js +0 -1
  41. package/dist/icons/CreditCardCheckIcon.d.ts +2 -0
  42. package/dist/icons/CreditCardCheckIcon.js +4 -0
  43. package/dist/icons/FaceIdIcon.d.ts +2 -0
  44. package/dist/icons/FaceIdIcon.js +4 -0
  45. package/dist/icons/FileSearch02Icon.d.ts +2 -0
  46. package/dist/icons/FileSearch02Icon.js +4 -0
  47. package/dist/icons/FileX02Icon.d.ts +2 -0
  48. package/dist/icons/FileX02Icon.js +4 -0
  49. package/dist/icons/Globe05Icon.d.ts +2 -0
  50. package/dist/icons/Globe05Icon.js +4 -0
  51. package/dist/icons/index.d.ts +5 -0
  52. package/dist/icons/index.js +5 -0
  53. package/dist/next.config.d.ts +3 -0
  54. package/dist/next.config.js +51 -0
  55. package/dist/styles/theme.css +5 -0
  56. package/dist/tsconfig.build.tsbuildinfo +1 -1
  57. package/dist/ui/Progress/progress.recipe.js +1 -1
  58. package/dist/utils/getPercentage.d.ts +1 -0
  59. package/dist/utils/getPercentage.js +5 -0
  60. package/dist/utils/maskDisplayName.d.ts +1 -0
  61. package/dist/utils/maskDisplayName.js +8 -0
  62. package/package.json +150 -150
  63. package/dist/components/KYC/KYC.d.ts +0 -5
  64. package/dist/components/KYC/KYC.js +0 -19
  65. package/dist/components/KYC/KYCContext.d.ts +0 -3
  66. package/dist/components/KYC/KYCContext.js +0 -8
  67. package/dist/components/KYC/KYCTrigger.d.ts +0 -5
  68. package/dist/components/KYC/KYCTrigger.js +0 -14
  69. package/dist/components/KYC/Step1.d.ts +0 -1
  70. package/dist/components/KYC/Step1.js +0 -10
  71. package/dist/components/KYC/Step2.d.ts +0 -1
  72. package/dist/components/KYC/Step2.js +0 -15
  73. package/dist/components/KYC/Step3.d.ts +0 -1
  74. package/dist/components/KYC/Step3.js +0 -11
  75. package/dist/components/KYC/StepIndicator.d.ts +0 -1
  76. package/dist/components/KYC/StepIndicator.js +0 -13
  77. package/dist/components/KYC/UploadDocument.d.ts +0 -1
  78. package/dist/components/KYC/UploadDocument.js +0 -8
  79. package/dist/components/KYC/UploadSelfie.d.ts +0 -1
  80. package/dist/components/KYC/UploadSelfie.js +0 -8
  81. package/dist/components/KYC/index.d.ts +0 -2
  82. package/dist/components/KYC/index.js +0 -2
  83. package/dist/components/KYC/useKYC.d.ts +0 -14
  84. package/dist/components/KYC/useKYC.js +0 -32
  85. package/dist/components/KYC/utils.d.ts +0 -0
  86. package/dist/components/KYC/utils.js +0 -1
  87. package/dist/components/Tournaments/TournamentItem.d.ts +0 -5
  88. package/dist/components/Tournaments/TournamentItem.js +0 -97
  89. package/dist/config.d.ts +0 -272
  90. package/dist/config.js +0 -39
@@ -1,97 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { pick } from 'lodash-es';
4
- import Image from 'next/image';
5
- import React, { useEffect, useMemo, useState } from 'react';
6
- import { twMerge } from 'tailwind-merge';
7
- import { useLocaleInfo } from '../../client/hooks/index.js';
8
- import { Trophy01Icon } from '../../icons/index.js';
9
- import { Award01Icon } from '../../icons/Award01Icon.js';
10
- import { StarIcon } from '../../icons/StarIcon.js';
11
- import firstPlace from '../../images/first-place.png';
12
- import trophyTwo from '../../images/trophy-two.png';
13
- import trophy from '../../images/trophy.png';
14
- import { formatNumber } from '../../utils/index.js';
15
- import styles from '../JackpotCounter/JackpotCounterItem.module.css';
16
- import { TournamentGameProviders } from './TournamentGameProviders.js';
17
- import { TournamentRules } from './TournamentRules.js';
18
- export function TournamentItem({ jackpot }) {
19
- const localeInfo = useLocaleInfo();
20
- const [timeRemaining, setTimeRemaining] = useState({
21
- days: 0,
22
- hours: 0,
23
- minutes: 0,
24
- seconds: 0,
25
- isPast: false,
26
- });
27
- // Temp Date
28
- const activationEndDateTime = useMemo(() => {
29
- const now = new Date();
30
- return new Date(now.setSeconds(now.getSeconds() + 2 * 24 * 60 * 60)); // Add 2 days in seconds
31
- }, []);
32
- const calculateRemainingTime = React.useCallback(() => {
33
- const now = new Date();
34
- const diffMs = activationEndDateTime.getTime() - now.getTime();
35
- if (diffMs <= 0) {
36
- setTimeRemaining({
37
- days: 0,
38
- hours: 0,
39
- minutes: 0,
40
- seconds: 0,
41
- isPast: true,
42
- });
43
- return;
44
- }
45
- const diffSeconds = Math.floor(diffMs / 1000);
46
- const days = Math.floor(diffSeconds / (3600 * 24));
47
- const hours = Math.floor((diffSeconds % (3600 * 24)) / 3600);
48
- const minutes = Math.floor((diffSeconds % 3600) / 60);
49
- const seconds = diffSeconds % 60;
50
- const updated = pick({ days, hours, minutes, seconds, isPast: false }, [
51
- 'days',
52
- 'hours',
53
- 'minutes',
54
- 'seconds',
55
- 'isPast',
56
- ]);
57
- setTimeRemaining(updated);
58
- }, [activationEndDateTime]);
59
- useEffect(() => {
60
- calculateRemainingTime();
61
- const interval = setInterval(calculateRemainingTime, 1000); // Update every second
62
- return () => clearInterval(interval);
63
- }, [activationEndDateTime, calculateRemainingTime]);
64
- const timeParts = [
65
- { label: 'Day', value: timeRemaining.days },
66
- { label: 'Hour', value: timeRemaining.hours },
67
- { label: 'Min', value: timeRemaining.minutes },
68
- { label: 'Sec', value: timeRemaining.seconds },
69
- ];
70
- return (_jsxs("div", { className: twMerge('bg-bg-tertiary border-border-primary rounded-2xl border'), children: [_jsxs("div", { className: twMerge('relative flex shrink-0 p-3 text-center lg:gap-6 lg:p-5'), children: [_jsx("div", { className: "z-1 relative flex flex-1 flex-col", children: _jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { className: "w-full", children: [_jsxs("div", { className: "flex w-full justify-between", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx(Award01Icon, { className: "text-utility-brand-500 size-3.5" }), "Multiplier"] }), _jsx("div", { className: "flex h-fit", children: timeParts.map((part, idx) => (_jsxs(React.Fragment, { children: [_jsxs("div", { className: twMerge('bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5'), children: [_jsx("span", { className: "text-base font-medium", children: String(part.value).padStart(2, '0') }), _jsx("span", { className: "text-[8px]", children: part.label })] }), idx < timeParts.length - 1 && (_jsxs("div", { className: "flex flex-col justify-center gap-[6px] px-[6px]", children: [_jsx("div", { className: "bg-bg-primary h-1 w-1 rounded-full" }), _jsx("div", { className: "bg-bg-primary h-1 w-1 rounded-full" })] }))] }, part.label))) })] }), _jsx("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: formatNumber(jackpot.pool, {
71
- currency: localeInfo.currency.code,
72
- minDecimalPlaces: 2,
73
- maxDecimalPlaces: 2,
74
- }) })] }), _jsx("div", { className: "z-1 bottom-[-60] right-0 block lg:absolute", children: _jsx("div", { className: "h-[155px] w-auto shrink-0", children: _jsx(Image, { quality: 100, width: 155, height: 155, src: trophy, alt: "trophy", className: "px-6 py-2.5" }) }) })] }), _jsxs("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [_jsx(Image, { width: 66, height: 87, src: firstPlace, alt: "closeChest", className: "size-full h-auto w-[66px] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })] })] })] }) }) }) }), _jsxs("div", { className: "z-1 hidden flex-1 space-y-4 lg:block", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Image, { width: 24, height: 24, src: trophyTwo, quality: 100, alt: "leaderboardIcon", className: "size-full w-6" }), _jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Starting soon!" })] }), _jsx(TournamentRules, { jackpotRules: "<strong>Rules and guidelines <br> 1/20/2025 ~ 1/21/2025</strong><br><br>\r\n <p>1. The contest prize pool closely depends on the bankroll \u2014 the more players bet, the bigger it grows.</p>" })] }), _jsx("div", { className: twMerge('max-h-[272px] overflow-y-scroll', styles['scrollArea']), children: _jsx("div", { className: "border-gray-200 overflow-hidden rounded-xl", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium", children: [_jsx("th", { className: "w-[52px]", children: "#" }), _jsx("th", { children: "Player" }), _jsx("th", { children: "Multiplier" }), _jsx("th", { children: "Prize" })] }) }), _jsx("tbody", { children: Array.from({ length: 10 }).map((_, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : ('-') }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })] }, i))) })] }) }) })] })] }), _jsx(TournamentGameProviders, {})] }));
75
- }
76
- const starTierStyles = [
77
- {
78
- starColor: 'text-yellow-400',
79
- numberColor: 'text-bg-primary',
80
- },
81
- {
82
- starColor: 'text-utility-gray-700',
83
- numberColor: 'text-bg-primary',
84
- },
85
- {
86
- starColor: 'text-yellow-700',
87
- numberColor: 'text-bg-primary',
88
- },
89
- {
90
- starColor: 'text-bg-quaternary',
91
- numberColor: 'text-text-primary-900',
92
- },
93
- {
94
- starColor: 'text-bg-quaternary',
95
- numberColor: 'text-text-primary-900',
96
- },
97
- ];
package/dist/config.d.ts DELETED
@@ -1,272 +0,0 @@
1
- import type { NextConfig } from 'next';
2
- export declare function extendConfig(config: NextConfig): {
3
- images: {
4
- remotePatterns: (URL | import("next/dist/shared/lib/image-config").RemotePattern | {
5
- hostname: string;
6
- protocol: string;
7
- })[];
8
- deviceSizes?: number[] | undefined;
9
- imageSizes?: number[] | undefined;
10
- loader?: "default" | "imgix" | "cloudinary" | "akamai" | "custom" | undefined;
11
- path?: string | undefined;
12
- loaderFile?: string | undefined;
13
- domains?: string[] | undefined;
14
- disableStaticImages?: boolean | undefined;
15
- minimumCacheTTL?: number | undefined;
16
- formats?: ("image/avif" | "image/webp")[] | undefined;
17
- dangerouslyAllowSVG?: boolean | undefined;
18
- contentSecurityPolicy?: string | undefined;
19
- contentDispositionType?: "inline" | "attachment" | undefined;
20
- localPatterns?: import("next/dist/shared/lib/image-config").LocalPattern[] | undefined;
21
- qualities?: number[] | undefined;
22
- unoptimized?: boolean | undefined;
23
- };
24
- experimental: {
25
- nodeMiddleware: boolean;
26
- adapterPath?: string;
27
- useSkewCookie?: boolean;
28
- cacheHandlers?: {
29
- default?: string;
30
- remote?: string;
31
- static?: string;
32
- [handlerName: string]: string | undefined;
33
- };
34
- multiZoneDraftMode?: boolean;
35
- appNavFailHandling?: boolean;
36
- prerenderEarlyExit?: boolean;
37
- linkNoTouchStart?: boolean;
38
- caseSensitiveRoutes?: boolean;
39
- clientSegmentCache?: boolean | "client-only";
40
- dynamicOnHover?: boolean;
41
- appDocumentPreloading?: boolean;
42
- preloadEntriesOnStart?: boolean;
43
- strictNextHead?: boolean;
44
- clientRouterFilter?: boolean;
45
- clientRouterFilterRedirects?: boolean;
46
- staleTimes?: {
47
- dynamic?: number;
48
- static?: number;
49
- };
50
- cacheLife?: {
51
- [profile: string]: {
52
- stale?: number;
53
- revalidate?: number;
54
- expire?: number;
55
- };
56
- };
57
- clientRouterFilterAllowedRate?: number;
58
- externalMiddlewareRewritesResolve?: boolean;
59
- extensionAlias?: Record<string, any>;
60
- allowedRevalidateHeaderKeys?: string[];
61
- fetchCacheKeyPrefix?: string;
62
- imgOptConcurrency?: number | null;
63
- imgOptTimeoutInSeconds?: number;
64
- imgOptMaxInputPixels?: number;
65
- imgOptSequentialRead?: boolean | null;
66
- optimisticClientCache?: boolean;
67
- expireTime?: number;
68
- middlewarePrefetch?: "strict" | "flexible";
69
- manualClientBasePath?: boolean;
70
- cssChunking?: boolean | "strict";
71
- disablePostcssPresetEnv?: boolean;
72
- cpus?: number;
73
- memoryBasedWorkersCount?: boolean;
74
- proxyTimeout?: number;
75
- isrFlushToDisk?: boolean;
76
- workerThreads?: boolean;
77
- optimizeCss?: boolean | Record<string, unknown>;
78
- nextScriptWorkers?: boolean;
79
- scrollRestoration?: boolean;
80
- externalDir?: boolean;
81
- amp?: {
82
- optimizer?: any;
83
- validator?: string;
84
- skipValidation?: boolean;
85
- };
86
- disableOptimizedLoading?: boolean;
87
- gzipSize?: boolean;
88
- craCompat?: boolean;
89
- esmExternals?: boolean | "loose";
90
- fullySpecified?: boolean;
91
- urlImports?: NonNullable<import("next/dist/compiled/webpack/webpack").webpack.Configuration["experiments"]>["buildHttp"];
92
- swcTraceProfiling?: boolean;
93
- forceSwcTransforms?: boolean;
94
- swcPlugins?: Array<[string, Record<string, unknown>]>;
95
- largePageDataBytes?: number;
96
- fallbackNodePolyfills?: false;
97
- sri?: {
98
- algorithm?: import("next/dist/build/webpack/plugins/subresource-integrity-plugin").SubresourceIntegrityAlgorithm;
99
- };
100
- webVitalsAttribution?: Array<typeof import("next/dist/shared/lib/utils").WEB_VITALS[number]>;
101
- optimizePackageImports?: string[];
102
- optimizeServerReact?: boolean;
103
- turbo?: import("next/dist/server/config-shared").DeprecatedExperimentalTurboOptions;
104
- turbopackMemoryLimit?: number;
105
- turbopackMinify?: boolean;
106
- turbopackPersistentCaching?: boolean;
107
- turbopackSourceMaps?: boolean;
108
- turbopackTreeShaking?: boolean;
109
- mdxRs?: boolean | {
110
- development?: boolean;
111
- jsx?: boolean;
112
- jsxRuntime?: string;
113
- jsxImportSource?: string;
114
- providerImportSource?: string;
115
- mdxType?: "gfm" | "commonmark";
116
- };
117
- typedRoutes?: boolean;
118
- typedEnv?: boolean;
119
- parallelServerCompiles?: boolean;
120
- parallelServerBuildTraces?: boolean;
121
- webpackBuildWorker?: boolean;
122
- webpackMemoryOptimizations?: boolean;
123
- clientTraceMetadata?: string[];
124
- ppr?: import("next/dist/server/lib/experimental/ppr").ExperimentalPPRConfig;
125
- taint?: boolean;
126
- routerBFCache?: boolean;
127
- removeUncaughtErrorAndRejectionListeners?: boolean;
128
- serverActions?: {
129
- bodySizeLimit?: import("next").SizeLimit;
130
- allowedOrigins?: string[];
131
- };
132
- serverMinification?: boolean;
133
- enablePrerenderSourceMaps?: boolean;
134
- serverSourceMaps?: boolean;
135
- useWasmBinary?: boolean;
136
- useLightningcss?: boolean;
137
- useEarlyImport?: boolean;
138
- viewTransition?: boolean;
139
- testProxy?: boolean;
140
- defaultTestRunner?: import("next/dist/cli/next-test").SupportedTestRunners;
141
- allowDevelopmentBuild?: true;
142
- bundlePagesExternals?: boolean;
143
- serverComponentsExternalPackages?: string[];
144
- reactCompiler?: boolean | import("next/dist/server/config-shared").ReactCompilerOptions;
145
- staticGenerationRetryCount?: number;
146
- staticGenerationMaxConcurrency?: number;
147
- staticGenerationMinPagesPerWorker?: number;
148
- serverComponentsHmrCache?: boolean;
149
- dynamicIO?: boolean;
150
- inlineCss?: boolean;
151
- authInterrupts?: boolean;
152
- useCache?: boolean;
153
- slowModuleDetection?: {
154
- buildTimeThresholdMs: number;
155
- };
156
- globalNotFound?: boolean;
157
- devtoolSegmentExplorer?: boolean;
158
- };
159
- allowedDevOrigins?: string[];
160
- exportPathMap?: (defaultMap: import("next/dist/server/config-shared").ExportPathMap, ctx: {
161
- dev: boolean;
162
- dir: string;
163
- outDir: string | null;
164
- distDir: string;
165
- buildId: string;
166
- }) => Promise<import("next/dist/server/config-shared").ExportPathMap> | import("next/dist/server/config-shared").ExportPathMap;
167
- i18n?: import("next/dist/server/config-shared").I18NConfig | null;
168
- eslint?: import("next/dist/server/config-shared").ESLintConfig;
169
- typescript?: import("next/dist/server/config-shared").TypeScriptConfig;
170
- headers?: () => Promise<import("next/dist/lib/load-custom-routes").Header[]>;
171
- rewrites?: () => Promise<import("next/dist/lib/load-custom-routes").Rewrite[] | {
172
- beforeFiles?: import("next/dist/lib/load-custom-routes").Rewrite[];
173
- afterFiles?: import("next/dist/lib/load-custom-routes").Rewrite[];
174
- fallback?: import("next/dist/lib/load-custom-routes").Rewrite[];
175
- }>;
176
- redirects?: () => Promise<import("next/dist/lib/load-custom-routes").Redirect[]>;
177
- excludeDefaultMomentLocales?: boolean;
178
- webpack?: import("next/dist/server/config-shared").NextJsWebpackConfig | null;
179
- trailingSlash?: boolean;
180
- env?: Record<string, string | undefined>;
181
- distDir?: string;
182
- cleanDistDir?: boolean;
183
- assetPrefix?: string;
184
- cacheHandler?: string | undefined;
185
- cacheMaxMemorySize?: number;
186
- useFileSystemPublicRoutes?: boolean;
187
- generateBuildId?: () => string | null | Promise<string | null>;
188
- generateEtags?: boolean;
189
- pageExtensions?: string[];
190
- compress?: boolean;
191
- poweredByHeader?: boolean;
192
- devIndicators?: false | {
193
- appIsrStatus?: boolean;
194
- buildActivity?: boolean;
195
- buildActivityPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
196
- position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
197
- };
198
- onDemandEntries?: {
199
- maxInactiveAge?: number;
200
- pagesBufferLength?: number;
201
- };
202
- amp?: {
203
- canonicalBase?: string;
204
- };
205
- deploymentId?: string;
206
- basePath?: string;
207
- sassOptions?: {
208
- implementation?: string;
209
- [key: string]: any;
210
- };
211
- productionBrowserSourceMaps?: boolean;
212
- reactProductionProfiling?: boolean;
213
- reactStrictMode?: boolean | null;
214
- reactMaxHeadersLength?: number;
215
- publicRuntimeConfig?: {
216
- [key: string]: any;
217
- };
218
- serverRuntimeConfig?: {
219
- [key: string]: any;
220
- };
221
- httpAgentOptions?: {
222
- keepAlive?: boolean;
223
- };
224
- staticPageGenerationTimeout?: number;
225
- crossOrigin?: "anonymous" | "use-credentials";
226
- compiler?: {
227
- reactRemoveProperties?: boolean | {
228
- properties?: string[];
229
- };
230
- relay?: {
231
- src: string;
232
- artifactDirectory?: string;
233
- language?: "typescript" | "javascript" | "flow";
234
- eagerEsModules?: boolean;
235
- };
236
- removeConsole?: boolean | {
237
- exclude?: string[];
238
- };
239
- styledComponents?: boolean | import("next/dist/server/config-shared").StyledComponentsConfig;
240
- emotion?: boolean | import("next/dist/server/config-shared").EmotionConfig;
241
- styledJsx?: boolean | {
242
- useLightningcss?: boolean;
243
- };
244
- define?: Record<string, string>;
245
- defineServer?: Record<string, string>;
246
- runAfterProductionCompile?: (metadata: {
247
- projectDir: string;
248
- distDir: string;
249
- }) => Promise<void>;
250
- };
251
- output?: "standalone" | "export";
252
- transpilePackages?: string[];
253
- turbopack?: import("next/dist/server/config-shared").TurbopackOptions;
254
- skipMiddlewareUrlNormalize?: boolean;
255
- skipTrailingSlashRedirect?: boolean;
256
- modularizeImports?: Record<string, {
257
- transform: string | Record<string, string>;
258
- preventFullImport?: boolean;
259
- skipDefaultConversion?: boolean;
260
- }>;
261
- logging?: import("next/dist/server/config-shared").LoggingConfig | false;
262
- expireTime?: number;
263
- bundlePagesRouterDependencies?: boolean;
264
- serverExternalPackages?: string[];
265
- outputFileTracingRoot?: string;
266
- outputFileTracingExcludes?: Record<string, string[]>;
267
- outputFileTracingIncludes?: Record<string, string[]>;
268
- watchOptions?: {
269
- pollIntervalMs?: number;
270
- };
271
- htmlLimitedBots?: RegExp;
272
- };
package/dist/config.js DELETED
@@ -1,39 +0,0 @@
1
- export function extendConfig(config) {
2
- return {
3
- ...config,
4
- images: {
5
- ...config.images,
6
- remotePatterns: [
7
- ...(config.images?.remotePatterns ?? []),
8
- {
9
- hostname: 'static.opexa.io',
10
- protocol: 'https',
11
- },
12
- {
13
- hostname: 'static.development.opexa.io',
14
- protocol: 'https',
15
- },
16
- {
17
- hostname: 'assets.opexacms.io',
18
- protocol: 'https',
19
- },
20
- {
21
- hostname: 'assets.development.opexacms.io',
22
- protocol: 'https',
23
- },
24
- {
25
- hostname: 's3.ap-east-1.amazonaws.com',
26
- protocol: 'https',
27
- },
28
- {
29
- hostname: 'images.pexels.com',
30
- protocol: 'https',
31
- },
32
- ],
33
- },
34
- experimental: {
35
- ...config.experimental,
36
- nodeMiddleware: true,
37
- },
38
- };
39
- }