@opexa/portal-components 0.0.260 → 0.0.262

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 (97) hide show
  1. package/dist/client/hooks/useCreateVentajaWithdrawalMutation.d.ts +2 -2
  2. package/dist/client/hooks/useCreateVentajaWithdrawalMutation.js +5 -5
  3. package/dist/components/DepositWithdrawal/Withdrawal/VentajaWithdrawal/VentajaWithdrawal.js +2 -2
  4. package/dist/components/Disclaimer/Disclaimer.d.ts +1 -1
  5. package/dist/components/Disclaimer/DisclaimerV2.d.ts +1 -1
  6. package/dist/components/Disclaimer/DisclaimerV2.js +6 -4
  7. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  8. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  9. package/dist/components/KYC/utils.js +18 -18
  10. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  11. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  12. package/dist/services/queries.d.ts +2 -2
  13. package/dist/services/queries.js +2570 -2568
  14. package/dist/services/wallet.d.ts +5 -5
  15. package/dist/services/wallet.js +6 -5
  16. package/dist/styles/theme.css +694 -694
  17. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  18. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  19. package/dist/utils/mutationKeys.d.ts +1 -1
  20. package/dist/utils/mutationKeys.js +1 -4
  21. package/package.json +166 -166
  22. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  23. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  24. package/dist/components/FeatureFlag/index.d.ts +0 -1
  25. package/dist/components/FeatureFlag/index.js +0 -1
  26. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  27. package/dist/components/KYC/AutoOpen.js +0 -40
  28. package/dist/components/KYC/backup/Header.d.ts +0 -1
  29. package/dist/components/KYC/backup/Header.js +0 -8
  30. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  31. package/dist/components/KYC/backup/Indicator.js +0 -9
  32. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  33. package/dist/components/KYC/backup/KYC.js +0 -14
  34. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  35. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  36. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  37. package/dist/components/KYC/backup/KYCContext.js +0 -2
  38. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  39. package/dist/components/KYC/backup/Step1.js +0 -13
  40. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  41. package/dist/components/KYC/backup/Step2.js +0 -13
  42. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  43. package/dist/components/KYC/backup/Step3.js +0 -13
  44. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  45. package/dist/components/KYC/backup/Step4.js +0 -7
  46. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  47. package/dist/components/KYC/backup/useKYC.js +0 -8
  48. package/dist/components/KYC/loadModels.d.ts +0 -1
  49. package/dist/components/KYC/loadModels.js +0 -9
  50. package/dist/components/Messages/Message.d.ts +0 -1
  51. package/dist/components/Messages/Message.js +0 -35
  52. package/dist/components/Messages/MessageContext.d.ts +0 -6
  53. package/dist/components/Messages/MessageContext.js +0 -2
  54. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  55. package/dist/components/Messages/MessagePopup.js +0 -20
  56. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  57. package/dist/components/Messages/MessageTrigger.js +0 -19
  58. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  59. package/dist/components/Quests/CountdownTimer.js +0 -33
  60. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  61. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  62. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  63. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  64. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  65. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  66. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  67. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  68. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  69. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  70. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  71. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  72. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  73. package/dist/components/SignUp/SignUpContext.js +0 -2
  74. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  75. package/dist/components/SignUp/SignUpForm.js +0 -284
  76. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  77. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  78. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  79. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  80. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  81. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  82. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  83. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  84. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  85. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  86. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  87. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  88. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  89. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  90. package/dist/constants/BranchCode.d.ts +0 -4
  91. package/dist/constants/BranchCode.js +0 -42
  92. package/dist/icons/BellRingIcon.d.ts +0 -2
  93. package/dist/icons/BellRingIcon.js +0 -4
  94. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  95. package/dist/utils/dataUrlToBlob.js +0 -11
  96. package/dist/utils/resizeImageSize.d.ts +0 -2
  97. package/dist/utils/resizeImageSize.js +0 -11
@@ -13,7 +13,7 @@ export declare const datePickerRecipe: import("tailwind-variants").TVReturnType<
13
13
  trigger: string;
14
14
  };
15
15
  };
16
- }, Record<"content" | "input" | "label" | "table" | "view" | "root" | "trigger" | "positioner" | "control" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "tableHeader" | "tableBody" | "tableRow" | "viewTrigger" | "monthSelect" | "yearSelect" | "presetTrigger" | "rangeText" | "tableCell" | "tableCellTrigger" | "tableHead" | "viewControl", string | string[]>, undefined, {
16
+ }, Record<"content" | "table" | "input" | "label" | "view" | "root" | "trigger" | "positioner" | "control" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "tableHeader" | "tableBody" | "tableRow" | "viewTrigger" | "monthSelect" | "yearSelect" | "presetTrigger" | "rangeText" | "tableCell" | "tableCellTrigger" | "tableHead" | "viewControl", string | string[]>, undefined, {
17
17
  size: {
18
18
  md: {
19
19
  control: string;
@@ -28,7 +28,7 @@ export declare const datePickerRecipe: import("tailwind-variants").TVReturnType<
28
28
  trigger: string;
29
29
  };
30
30
  };
31
- }, Record<"content" | "input" | "label" | "table" | "view" | "root" | "trigger" | "positioner" | "control" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "tableHeader" | "tableBody" | "tableRow" | "viewTrigger" | "monthSelect" | "yearSelect" | "presetTrigger" | "rangeText" | "tableCell" | "tableCellTrigger" | "tableHead" | "viewControl", string | string[]>, import("tailwind-variants").TVReturnType<{
31
+ }, Record<"content" | "table" | "input" | "label" | "view" | "root" | "trigger" | "positioner" | "control" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "tableHeader" | "tableBody" | "tableRow" | "viewTrigger" | "monthSelect" | "yearSelect" | "presetTrigger" | "rangeText" | "tableCell" | "tableCellTrigger" | "tableHead" | "viewControl", string | string[]>, import("tailwind-variants").TVReturnType<{
32
32
  size: {
33
33
  md: {
34
34
  control: string;
@@ -43,4 +43,4 @@ export declare const datePickerRecipe: import("tailwind-variants").TVReturnType<
43
43
  trigger: string;
44
44
  };
45
45
  };
46
- }, Record<"content" | "input" | "label" | "table" | "view" | "root" | "trigger" | "positioner" | "control" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "tableHeader" | "tableBody" | "tableRow" | "viewTrigger" | "monthSelect" | "yearSelect" | "presetTrigger" | "rangeText" | "tableCell" | "tableCellTrigger" | "tableHead" | "viewControl", string | string[]>, undefined, unknown, unknown, undefined>>;
46
+ }, Record<"content" | "table" | "input" | "label" | "view" | "root" | "trigger" | "positioner" | "control" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "tableHeader" | "tableBody" | "tableRow" | "viewTrigger" | "monthSelect" | "yearSelect" | "presetTrigger" | "rangeText" | "tableCell" | "tableCellTrigger" | "tableHead" | "viewControl", string | string[]>, undefined, unknown, unknown, undefined>>;
@@ -16,7 +16,7 @@ export declare const getCreateGCashWithdrawalMutationKey: () => MutationKey;
16
16
  export declare const getCreateMayaWithdrawalMutationKey: () => MutationKey;
17
17
  export declare const getCreateMayaAppWithdrawalMutationKey: () => MutationKey;
18
18
  export declare const getCreateInstapayWithdrawalMutationKey: () => MutationKey;
19
- export declare const getCreateVentajaWithdrawalMutationKey: () => MutationKey;
19
+ export declare const getCreateVentajaDisbursementWithdrawalMutationKey: () => MutationKey;
20
20
  export declare const getCreatePisoPayWithdrawalMutationKey: () => MutationKey;
21
21
  export declare const getMarkMessageAsReadMutationKey: () => MutationKey;
22
22
  export declare const getCreateMemberVerificationQueryKey: () => MutationKey;
@@ -67,10 +67,7 @@ export const getCreateInstapayWithdrawalMutationKey = () => [
67
67
  PARENT_KEY,
68
68
  'createInstapayWithdrawal',
69
69
  ];
70
- export const getCreateVentajaWithdrawalMutationKey = () => [
71
- PARENT_KEY,
72
- 'createVentajaWithdrawal',
73
- ];
70
+ export const getCreateVentajaDisbursementWithdrawalMutationKey = () => [PARENT_KEY, 'createVentajaDisbursementWithdrawal'];
74
71
  export const getCreatePisoPayWithdrawalMutationKey = () => [
75
72
  PARENT_KEY,
76
73
  'createPisopayWithdrawal',
package/package.json CHANGED
@@ -1,166 +1,166 @@
1
- {
2
- "name": "@opexa/portal-components",
3
- "version": "0.0.260",
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
- "face-api.js": "^0.22.2",
89
- "is-mobile": "^5.0.0",
90
- "lodash-es": "^4.17.21",
91
- "react-image-file-resizer": "^0.4.8",
92
- "sharp": "^0.34.2",
93
- "tailwind-merge": "^3.3.1",
94
- "tailwind-variants": "^1.0.0",
95
- "tailwind-zag": "^1.0.2",
96
- "tiny-invariant": "^1.3.3",
97
- "type-fest": "^4.41.0",
98
- "usehooks-ts": "^3.1.1",
99
- "zustand": "^5.0.6"
100
- },
101
- "devDependencies": {
102
- "@eslint/eslintrc": "3",
103
- "@hookform/resolvers": "5.1.1",
104
- "@opexa/object-id": "0.1.6",
105
- "@tailwindcss/postcss": "4",
106
- "@tanstack/react-query": "5.81.5",
107
- "@tanstack/react-query-devtools": "5.81.5",
108
- "@total-typescript/ts-reset": "0.6.1",
109
- "@types/lodash-es": "4.17.12",
110
- "@types/node": "24",
111
- "@types/react": "19",
112
- "@types/react-dom": "19",
113
- "copy-files-from-to": "3.12.1",
114
- "eslint": "9",
115
- "eslint-config-next": "15.3.4",
116
- "next": "15.4.0-canary.61",
117
- "react": "19.1.0",
118
- "react-dom": "19.1.0",
119
- "react-hook-form": "7.59.0",
120
- "release-it": "19.0.3",
121
- "tailwindcss": "4.1.11",
122
- "tsc-alias": "1.8.16",
123
- "typescript": "5",
124
- "zod": "3.25.71"
125
- },
126
- "peerDependencies": {
127
- "@hookform/resolvers": "^4.0.0 || ^5.0.0",
128
- "@opexa/object-id": "^0.1.0",
129
- "@tanstack/react-query": "^5.0.0",
130
- "next": "^15.4.0-canary.1",
131
- "react": "^19.0.0",
132
- "react-dom": "^19.0.0",
133
- "react-hook-form": "^7.0.0",
134
- "tailwindcss": "^4.0.0",
135
- "zod": "^3.0.0"
136
- },
137
- "release-it": {
138
- "git": {
139
- "commitMessage": "chore: release ${npm.name} v${version}",
140
- "tagName": "${npm.name}@${version}"
141
- },
142
- "github": {
143
- "release": false
144
- },
145
- "hooks": {
146
- "before:bump": [
147
- "pnpm lint"
148
- ],
149
- "after:bump": [
150
- "pnpm build"
151
- ]
152
- }
153
- },
154
- "copyFiles": [
155
- {
156
- "from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
157
- "to": "dist/",
158
- "toFlat": false
159
- }
160
- ],
161
- "copyFilesSettings": {
162
- "whenFileExists": "overwrite",
163
- "removeSourceMappingURL": true,
164
- "ignoreDotFilesAndFolders": false
165
- }
166
- }
1
+ {
2
+ "name": "@opexa/portal-components",
3
+ "version": "0.0.262",
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
+ "face-api.js": "^0.22.2",
89
+ "is-mobile": "^5.0.0",
90
+ "lodash-es": "^4.17.21",
91
+ "react-image-file-resizer": "^0.4.8",
92
+ "sharp": "^0.34.2",
93
+ "tailwind-merge": "^3.3.1",
94
+ "tailwind-variants": "^1.0.0",
95
+ "tailwind-zag": "^1.0.2",
96
+ "tiny-invariant": "^1.3.3",
97
+ "type-fest": "^4.41.0",
98
+ "usehooks-ts": "^3.1.1",
99
+ "zustand": "^5.0.6"
100
+ },
101
+ "devDependencies": {
102
+ "@eslint/eslintrc": "3",
103
+ "@hookform/resolvers": "5.1.1",
104
+ "@opexa/object-id": "0.1.6",
105
+ "@tailwindcss/postcss": "4",
106
+ "@tanstack/react-query": "5.81.5",
107
+ "@tanstack/react-query-devtools": "5.81.5",
108
+ "@total-typescript/ts-reset": "0.6.1",
109
+ "@types/lodash-es": "4.17.12",
110
+ "@types/node": "24",
111
+ "@types/react": "19",
112
+ "@types/react-dom": "19",
113
+ "copy-files-from-to": "3.12.1",
114
+ "eslint": "9",
115
+ "eslint-config-next": "15.3.4",
116
+ "next": "15.4.0-canary.61",
117
+ "react": "19.1.0",
118
+ "react-dom": "19.1.0",
119
+ "react-hook-form": "7.59.0",
120
+ "release-it": "19.0.3",
121
+ "tailwindcss": "4.1.11",
122
+ "tsc-alias": "1.8.16",
123
+ "typescript": "5",
124
+ "zod": "3.25.71"
125
+ },
126
+ "peerDependencies": {
127
+ "@hookform/resolvers": "^4.0.0 || ^5.0.0",
128
+ "@opexa/object-id": "^0.1.0",
129
+ "@tanstack/react-query": "^5.0.0",
130
+ "next": "^15.4.0-canary.1",
131
+ "react": "^19.0.0",
132
+ "react-dom": "^19.0.0",
133
+ "react-hook-form": "^7.0.0",
134
+ "tailwindcss": "^4.0.0",
135
+ "zod": "^3.0.0"
136
+ },
137
+ "release-it": {
138
+ "git": {
139
+ "commitMessage": "chore: release ${npm.name} v${version}",
140
+ "tagName": "${npm.name}@${version}"
141
+ },
142
+ "github": {
143
+ "release": false
144
+ },
145
+ "hooks": {
146
+ "before:bump": [
147
+ "pnpm lint"
148
+ ],
149
+ "after:bump": [
150
+ "pnpm build"
151
+ ]
152
+ }
153
+ },
154
+ "copyFiles": [
155
+ {
156
+ "from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
157
+ "to": "dist/",
158
+ "toFlat": false
159
+ }
160
+ ],
161
+ "copyFilesSettings": {
162
+ "whenFileExists": "overwrite",
163
+ "removeSourceMappingURL": true,
164
+ "ignoreDotFilesAndFolders": false
165
+ }
166
+ }
@@ -1 +0,0 @@
1
- export declare function FeatureFlag(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,29 +0,0 @@
1
- 'use client';
2
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
- import { useRouter, useSearchParams } from 'next/navigation';
4
- import { useEffect } from 'react';
5
- import { FEATURE_FLAG_KEY, useFeatureFlag, } from '../../client/hooks/useFeatureFlag.js';
6
- export function FeatureFlag() {
7
- const { featureFlagEnabled, setFeatureFlagEnabled } = useFeatureFlag();
8
- const searchParams = useSearchParams();
9
- const router = useRouter();
10
- useEffect(() => {
11
- const futureFlagParam = searchParams.get('future');
12
- if (futureFlagParam !== null) {
13
- const isEnabled = futureFlagParam === 'true';
14
- setFeatureFlagEnabled(isEnabled);
15
- localStorage.setItem(FEATURE_FLAG_KEY, isEnabled.toString());
16
- }
17
- }, [searchParams, setFeatureFlagEnabled]);
18
- function disableFeatureFlag() {
19
- setFeatureFlagEnabled(false);
20
- localStorage.removeItem(FEATURE_FLAG_KEY);
21
- const params = new URLSearchParams(searchParams.toString());
22
- params.delete('future');
23
- router.replace(`?${params.toString()}`, { scroll: false });
24
- }
25
- if (!featureFlagEnabled) {
26
- return null;
27
- }
28
- return (_jsx("div", { className: "fixed bottom-3 flex w-full flex-col items-center justify-center", children: _jsxs("div", { className: "bg-black/70 p-1", children: ["Experimental features are enabled.", ' ', _jsxs("button", { onClick: () => disableFeatureFlag(), className: "cursor-pointer underline", children: [' ', "Disable"] })] }) }));
29
- }
@@ -1 +0,0 @@
1
- export * from './FeatureFlag';
@@ -1 +0,0 @@
1
- export * from './FeatureFlag.js';
@@ -1 +0,0 @@
1
- export declare function AutoOpen(): null;
@@ -1,40 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { useShallow } from 'zustand/shallow';
3
- import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
4
- import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
5
- import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
6
- import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
7
- import { KYC_PROMPT_LOCALSTORAGE_KEY } from '../../constants/index.js';
8
- export function AutoOpen() {
9
- const kycStore = useGlobalStore(useShallow((ctx) => ctx.kyc));
10
- const { data: session } = useSessionQuery();
11
- const { data: account } = useAccountQuery();
12
- const { data: verification } = useMemberVerificationQuery();
13
- const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
14
- const isUploadCompleted = verification &&
15
- verification.idFrontImage !== null &&
16
- verification.selfieImage !== null;
17
- const isRejected = Boolean(verification?.status === 'REJECTED');
18
- const step = !isBasicInfoCompleted
19
- ? 1
20
- : isRejected
21
- ? 2
22
- : isUploadCompleted
23
- ? 3
24
- : 2;
25
- const shouldOpen = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
26
- useEffect(() => {
27
- if (session?.status == 'authenticated' &&
28
- shouldOpen &&
29
- localStorage.getItem(KYC_PROMPT_LOCALSTORAGE_KEY) === null) {
30
- kycStore.setKycReminder(true);
31
- return;
32
- }
33
- }, [kycStore, session?.status, shouldOpen]);
34
- useEffect(() => {
35
- if (step) {
36
- kycStore.setStep(step);
37
- }
38
- }, [kycStore, step]);
39
- return null;
40
- }
@@ -1 +0,0 @@
1
- export declare function Header(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ChevronLeftIcon } from '../../../icons/ChevronLeftIcon.js';
3
- import { XIcon } from '../../../icons/XIcon.js';
4
- import { Dialog } from '../../../ui/Dialog/index.js';
5
- import { IconButton } from '../../../ui/IconButton/index.js';
6
- export function Header() {
7
- return (_jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "bg-bg-primary-alt relative flex items-center gap-xl px-xl py-md lg:justify-center lg:bg-transparent lg:p-0", children: [_jsx(IconButton, { size: "2xs", variant: "outline", colorScheme: "gray", className: "lg:hidden", onClick: () => api.setOpen(false), children: _jsx(ChevronLeftIcon, {}) }), _jsx(Dialog.Title, { className: "text-lg font-semibold", children: "Personal Verification" }), _jsx("button", { type: "button", className: "text-text-quinary absolute right-0 top-1/2 hidden -translate-y-1/2 lg:block", onClick: () => api.setOpen(false), children: _jsx(XIcon, { className: "size-6" }) })] })) }));
8
- }
@@ -1 +0,0 @@
1
- export declare function Indicator(): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { noop } from 'lodash-es';
3
- import { ArrowLeftIcon } from '../../../icons/ArrowLeftIcon.js';
4
- import { Progress } from '../../../ui/Progress/index.js';
5
- import { useKYCContext } from './KYCContext.js';
6
- export function Indicator() {
7
- const context = useKYCContext();
8
- return (_jsxs("div", { className: "mt-xl grid grid-cols-[max-content_auto_auto] items-center px-xl lg:mt-md lg:px-0", children: [_jsxs("button", { className: "text-text-tertiary-600 flex items-center gap-sm text-sm font-semibold", children: [_jsx(ArrowLeftIcon, { className: "size-5" }), "Back"] }), _jsxs("div", { className: "flex justify-center gap-2", children: [_jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 2 ? 100 : 50, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 3 ? 50 : 0, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) })] })] }));
9
- }
@@ -1 +0,0 @@
1
- export declare function KYC(): import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,14 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import dynamic from 'next/dynamic';
4
- import { useShallow } from 'zustand/shallow';
5
- import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
6
- const Component = dynamic(() => import('./KYC.lazy.js').then((m) => m.KYC), {
7
- ssr: false,
8
- loading: () => null,
9
- });
10
- export function KYC() {
11
- const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
12
- if (touched)
13
- return _jsx(Component, {});
14
- }
@@ -1 +0,0 @@
1
- export declare function KYC(): import("react/jsx-runtime").JSX.Element;
@@ -1,26 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { twMerge } from 'tailwind-merge';
4
- import { useShallow } from 'zustand/shallow';
5
- import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
6
- import { Dialog } from '../../../ui/Dialog/index.js';
7
- import { Portal } from '../../../ui/Portal/index.js';
8
- import { Header } from './Header.js';
9
- import { Indicator } from './Indicator.js';
10
- import { KYCContext } from './KYCContext.js';
11
- import { Step1 } from './Step1.js';
12
- import { Step2 } from './Step2.js';
13
- import { Step3 } from './Step3.js';
14
- import { Step4 } from './Step4.js';
15
- import { useKYC } from './useKYC.js';
16
- export function KYC() {
17
- const globalStore = useGlobalStore(useShallow((ctx) => ({
18
- kyc: ctx.kyc,
19
- })));
20
- const context = useKYC();
21
- return (_jsx(KYCContext, { value: context, children: _jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
22
- globalStore.kyc.setOpen(details.open);
23
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: twMerge(context.step === 4 && 'flex items-center'), children: _jsxs(Dialog.Content, { className: twMerge(context.step < 4
24
- ? 'bg-bg-primary lg:bg-bg-primary-alt mx-auto h-full w-full lg:h-auto lg:w-[400px] lg:p-3xl'
25
- : 'mx-auto w-[25rem] max-w-[calc(100%-2rem)] p-3xl'), children: [context.step < 4 && _jsx(Header, {}), context.step < 4 && _jsx(Indicator, {}), context.step === 1 && _jsx(Step1, {}), context.step === 2 && _jsx(Step2, {}), context.step === 3 && _jsx(Step3, {}), context.step === 4 && _jsx(Step4, {})] }) })] }) }) }));
26
- }
@@ -1,6 +0,0 @@
1
- import type { UseKYCReturn } from './useKYC';
2
- export declare const KYCContext: (props: {
3
- value: UseKYCReturn;
4
- } & {
5
- children?: import("react").ReactNode | undefined;
6
- }) => React.ReactNode, useKYCContext: () => UseKYCReturn;
@@ -1,2 +0,0 @@
1
- import { createContext } from '../../../client/utils/createContext.js';
2
- export const [KYCContext, useKYCContext] = createContext();
@@ -1 +0,0 @@
1
- export declare function Step1(): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Image from 'next/image';
3
- import { CheckIcon } from '../../../icons/CheckIcon.js';
4
- import { XIcon } from '../../../icons/XIcon.js';
5
- import uploadId from '../../../images/capture-id-banner.png';
6
- import { Button } from '../../../ui/Button/index.js';
7
- import { useKYCContext } from './KYCContext.js';
8
- export function Step1() {
9
- const context = useKYCContext();
10
- return (_jsxs("div", { className: "mt-2xl px-xl lg:mt-3xl lg:px-0", children: [_jsx("p", { className: "lg:text-text-secondary-700 text-center text-2xl font-semibold lg:text-base", children: "Prepare to upload your ID" }), _jsxs("div", { className: "border-border-secondary bg-bg-primary-alt mt-6 rounded-xl border p-4 lg:mt-2xl lg:border-0 lg:bg-transparent lg:p-0", children: [_jsx(Image, { src: uploadId, alt: "", className: "h-auto w-full", width: 600, height: 352 }), _jsxs("ul", { className: "mt-2xl space-y-3", children: [_jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Upload front side of your ID"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Take a photo in a well lit room"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(XIcon, { className: "text-text-featured-icon-light-error size-6" }), "Don't edit image of your ID"] })] }), _jsxs("div", { className: "mt-4xl space-y-lg", children: [_jsx(Button, { onClick: () => {
11
- context.setStep(2);
12
- }, children: "Continue" }), _jsx(Button, { variant: "outline", children: "Continue on phone" })] })] })] }));
13
- }
@@ -1 +0,0 @@
1
- export declare function Step2(): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Image from 'next/image';
3
- import { CheckIcon } from '../../../icons/CheckIcon.js';
4
- import { XIcon } from '../../../icons/XIcon.js';
5
- import selfie from '../../../images/capture-selfie-banner.png';
6
- import { Button } from '../../../ui/Button/index.js';
7
- import { useKYCContext } from './KYCContext.js';
8
- export function Step2() {
9
- const context = useKYCContext();
10
- return (_jsxs("div", { className: "mt-2xl px-xl lg:mt-3xl lg:px-0", children: [_jsx("p", { className: "lg:text-text-secondary-700 text-center text-2xl font-semibold lg:text-base", children: "Take a selfie holding your ID" }), _jsxs("div", { className: "border-border-secondary bg-bg-primary-alt mt-6 rounded-xl border p-4 lg:mt-2xl lg:border-0 lg:bg-transparent lg:p-0", children: [_jsx(Image, { src: selfie, alt: "", className: "h-auto w-full", width: 600, height: 352 }), _jsxs("ul", { className: "mt-2xl space-y-3", children: [_jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Face and ID must be clearly visible"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Take a photo in a well lit room"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(XIcon, { className: "text-text-featured-icon-light-error size-6" }), "No hats, sunglasses, or masks"] })] }), _jsxs("div", { className: "mt-4xl space-y-lg", children: [_jsx(Button, { size: "sm", onClick: () => {
11
- context.setStep(3);
12
- }, children: "Continue" }), _jsx(Button, { variant: "outline", children: "Continue on phone" })] })] })] }));
13
- }
@@ -1 +0,0 @@
1
- export declare function Step3(): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckIcon } from '../../../icons/CheckIcon.js';
3
- import { Button } from '../../../ui/Button/index.js';
4
- import { Checkbox } from '../../../ui/Checkbox/index.js';
5
- import { Field } from '../../../ui/Field/index.js';
6
- import { useKYCContext } from './KYCContext.js';
7
- export function Step3() {
8
- const context = useKYCContext();
9
- return (_jsxs("div", { className: "mt-2xl px-xl lg:mt-3xl lg:px-0", children: [_jsx("p", { className: "lg:text-text-secondary-700 text-center text-2xl font-semibold lg:text-base", children: "Enter your basic and work-related information" }), _jsxs("form", { className: "border-border-secondary bg-bg-primary-alt mt-6 rounded-xl border p-4 lg:mt-2xl lg:border-0 lg:bg-transparent lg:p-0", onSubmit: (e) => {
10
- e.preventDefault();
11
- context.setStep(4);
12
- }, children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Permanent address" }), _jsx(Field.Input, { placeholder: "Enter your permanent address" })] }), _jsxs(Checkbox.Root, { className: "mt-2xl", children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { children: "Same as permanent address" }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Field.Root, { className: "mt-sm", children: [_jsx(Field.Label, { children: "Current address" }), _jsx(Field.Input, { placeholder: "Enter your current address" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Source of income" }), _jsx(Field.Input, { placeholder: "Enter your source of income" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Work Description" }), _jsx(Field.Input, { placeholder: "Enter your work description" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Place of birth" }), _jsx(Field.Input, { placeholder: "Enter your place of birth" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Nationality" }), _jsx(Field.Input, { placeholder: "Enter your nationality" })] }), _jsx(Button, { type: "submit", className: "mt-4xl", children: "Submit" })] })] }));
13
- }
@@ -1 +0,0 @@
1
- export declare function Step4(): import("react/jsx-runtime").JSX.Element;