@taskon/widget-react 0.0.1-beta.5 → 0.0.1-beta.7

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 (65) hide show
  1. package/README.md +61 -47
  2. package/dist/CommunityTaskList.css +9 -1
  3. package/dist/EligibilityInfo.css +48 -75
  4. package/dist/LeaderboardWidget.css +73 -71
  5. package/dist/PageBuilder.css +5 -0
  6. package/dist/Quest.css +18 -14
  7. package/dist/TaskOnProvider.css +289 -0
  8. package/dist/ThemeProvider.css +227 -0
  9. package/dist/UserCenterWidget.css +6 -6
  10. package/dist/UserCenterWidget2.css +1388 -1621
  11. package/dist/{dynamic-import-helper.css → WidgetShell.css} +0 -227
  12. package/dist/chunks/{CommunityTaskList-CrMvOB8w.js → CommunityTaskList-D0uVD8wD.js} +393 -208
  13. package/dist/chunks/{EligibilityInfo-Beww12QX.js → EligibilityInfo-Cf6hx9-a.js} +459 -679
  14. package/dist/chunks/{LeaderboardWidget-DwuSpVl0.js → LeaderboardWidget-DyoiiNS6.js} +274 -252
  15. package/dist/chunks/{PageBuilder-DsX6Tv0N.js → PageBuilder-DoAFPm6-.js} +5 -5
  16. package/dist/chunks/{Quest-CuD2LElS.js → Quest-ySZlYd4u.js} +74 -57
  17. package/dist/chunks/TaskOnProvider-CxtFIs3n.js +2072 -0
  18. package/dist/chunks/{dynamic-import-helper-WmIF58Sb.js → ThemeProvider-CulHkqqY.js} +1282 -555
  19. package/dist/chunks/UserCenterWidget-BJsc_GSZ.js +3246 -0
  20. package/dist/chunks/{UserCenterWidget-CvU6K4AC.js → UserCenterWidget-STq8kpV4.js} +1174 -1386
  21. package/dist/chunks/WidgetShell-8xn-Jivw.js +659 -0
  22. package/dist/chunks/communitytask-es-CBNnS4o2.js +521 -0
  23. package/dist/chunks/communitytask-ja-GRf9cbdx.js +521 -0
  24. package/dist/chunks/communitytask-ko-Bf24PQKI.js +521 -0
  25. package/dist/chunks/{communitytask-ru-DhySaZL8.js → communitytask-ru-CZm2CPoV.js} +211 -1
  26. package/dist/chunks/leaderboardwidget-es-vKjrjQaz.js +146 -0
  27. package/dist/chunks/leaderboardwidget-ja-Q6u0HxKG.js +146 -0
  28. package/dist/chunks/leaderboardwidget-ko-CG6SWgxf.js +146 -0
  29. package/dist/chunks/leaderboardwidget-ru-DCcHcJGz.js +146 -0
  30. package/dist/chunks/{quest-es-D-b5xcme.js → quest-es-Dyyy0zaw.js} +8 -93
  31. package/dist/chunks/{quest-ja-Dxd2vqBF.js → quest-ja-Depog33y.js} +8 -93
  32. package/dist/chunks/{quest-ko-CSmRWgK_.js → quest-ko-BMu3uRQJ.js} +8 -93
  33. package/dist/chunks/{quest-ru-CkEKv1_F.js → quest-ru-xne814Rw.js} +8 -93
  34. package/dist/chunks/useIsMobile-D6Ybur-6.js +30 -0
  35. package/dist/chunks/useToast-BGJhd3BX.js +93 -0
  36. package/dist/chunks/usercenter-es-Dz3Wp2vV.js +512 -0
  37. package/dist/chunks/usercenter-ja-CKE4DJC6.js +512 -0
  38. package/dist/chunks/usercenter-ko-Dtpkn2qb.js +512 -0
  39. package/dist/chunks/usercenter-ru-DnBGee45.js +512 -0
  40. package/dist/community-task.d.ts +0 -390
  41. package/dist/community-task.js +2 -7
  42. package/dist/core.d.ts +38 -20
  43. package/dist/core.js +9 -10
  44. package/dist/index.d.ts +86 -709
  45. package/dist/index.js +22 -28
  46. package/dist/leaderboard.d.ts +0 -498
  47. package/dist/leaderboard.js +2 -16
  48. package/dist/page-builder.js +1 -1
  49. package/dist/quest.d.ts +0 -971
  50. package/dist/quest.js +2 -7
  51. package/dist/user-center.d.ts +0 -1610
  52. package/dist/user-center.js +2 -494
  53. package/package.json +2 -2
  54. package/dist/chunks/TaskOnProvider-xUeP2Nro.js +0 -1243
  55. package/dist/chunks/ThemeProvider-Bt4UZ33y.js +0 -1334
  56. package/dist/chunks/UserCenterWidget-CB0hnj-L.js +0 -3230
  57. package/dist/chunks/communitytask-es-1zawvXEX.js +0 -311
  58. package/dist/chunks/communitytask-ja-CmW6nP-L.js +0 -311
  59. package/dist/chunks/communitytask-ko-BD0hzQSi.js +0 -311
  60. package/dist/chunks/createLocaleLoader-BameiEhU.js +0 -65
  61. package/dist/chunks/leaderboardwidget-ja-Bj6gz6y1.js +0 -119
  62. package/dist/chunks/leaderboardwidget-ko-f1cLO9ic.js +0 -119
  63. package/dist/chunks/useToast-CaRkylKe.js +0 -304
  64. package/dist/chunks/usercenter-ja-B2465c1O.js +0 -326
  65. package/dist/chunks/usercenter-ko-xAEYxqLg.js +0 -326
package/dist/quest.d.ts CHANGED
@@ -1,509 +1,10 @@
1
- import { CampaignStatus } from '@taskon/core';
2
- import { CampaignStatusInfo } from '@taskon/core';
3
1
  import { CampaignWinnerReward } from '@taskon/core';
4
2
  import { ChainType } from '@taskon/core';
5
3
  import { default as default_2 } from 'react';
6
- import { EligibilityValueItem } from '@taskon/core';
7
- import { QuestApi } from '@taskon/core';
8
4
  import { QuestCampaignInfo } from '@taskon/core';
9
- import { QuestPointsInfo } from '@taskon/core';
10
- import { QuestRewardInfo } from '@taskon/core';
11
- import { QuestRewardInfoSimple } from '@taskon/core';
12
5
  import { RewardDisplayMode } from '@taskon/core';
13
6
  import { RewardValueInfo } from '@taskon/core';
14
7
  import { SnsType } from '@taskon/core';
15
- import { TaskValueItem } from '@taskon/core';
16
- import { UserCampaignStatusInfo } from '@taskon/core';
17
- import { UserTaskStatus } from '@taskon/core';
18
-
19
- declare const _default: {
20
- "gte_100_least_1_kyc": ">=100 (At least 1 KYC)",
21
- "gte_20_basic_filtering_bot": ">=20 (Basic filtering bot)",
22
- "qualified_users_receive_reward": "All qualified users receive reward",
23
- "tasks_quest_verified_valid_some_tasks_may_verified_quest": "All the tasks of this quest is verified as valid, some tasks may verified by quest creator not by TaskOn.",
24
- "available": "Available",
25
- "awesome_already_meet_requirements": "Awesome! You already meet the requirements.",
26
- "babt_holder": "BABT holder",
27
- "before_join_please_meet": "Before you join please meet",
28
- "binance_account_bound_token_bab": "Binance Account Bound Token (BAB)",
29
- "bind": "Bind",
30
- "bind_required_accounts": "Bind Required Accounts",
31
- "binding": "Binding...",
32
- "blind_box_reward": "Blind Box Reward",
33
- "bonus": "Bonus",
34
- "bound": "Bound",
35
- "campaign_id_required_please_provide_campaignid_via_props_widgetid": "Campaign ID is required. Please provide campaignId via props or widgetId.",
36
- "cap_airdropped_soon": "Cap will be airdropped soon...",
37
- "check_claim": "Check & Claim",
38
- "check_cap_element": "Check CAP on Element",
39
- "check_collection_opensea": "Check Collection on OpenSea",
40
- "chest_key": "Chest key",
41
- "claim": "Claim",
42
- "claim_again": "Claim Again",
43
- "claim_nft": "Claim NFT",
44
- "claim_failed": "Claim failed",
45
- "claim_successful": "Claim successful!",
46
- "claimed": "Claimed",
47
- "claiming_nft": "Claiming NFT...",
48
- "close": "Close",
49
- "complete_campaign": "Complete Campaign",
50
- "complete_action_first": "Complete action first",
51
- "complete": "Complete all",
52
- "complete_campaign_2": "Complete the Campaign",
53
- "complete_qualify_rewards": "Complete to qualify for rewards!",
54
- "complete_milestone_name_first": "Complete {milestone_name} first",
55
- "completing": "Completing...",
56
- "congratulations": "Congratulations!",
57
- "connect_wallet_participate": "Connect Wallet to Participate",
58
- "connecting_wallet": "Connecting wallet...",
59
- "continue_waiting": "Continue Waiting",
60
- "contract_address": "Contract Address",
61
- "copied": "Copied!",
62
- "copy_link": "Copy Link",
63
- "holder_own_least_one_token": "DID Holder(own at least one DID token)",
64
- "discord": "Discord",
65
- "discord_account_linked": "Discord Account Not Linked",
66
- "discord_role": "Discord Role",
67
- "discord_role_2": "Discord Role:",
68
- "ens_domains_eth": "ENS Domains (.eth)",
69
- "evm_chain": "EVM Chain",
70
- "exp_winner": "EXP/Winner",
71
- "ended": "Ended",
72
- "ending": "Ending in",
73
- "ends": "Ends In",
74
- "extra_reward_winners": "Extra reward for winners",
75
- "failed_claim_nft": "Failed to claim NFT",
76
- "failed_complete_quest": "Failed to complete quest",
77
- "failed_copy_nft_address": "Failed to copy NFT address:",
78
- "failed_download_poster": "Failed to download poster:",
79
- "failed_load_leaderboard": "Failed to load leaderboard",
80
- "failed_load_quest_detail": "Failed to load quest detail",
81
- "failed_load_quest_status": "Failed to load quest status",
82
- "failed_load_user_status": "Failed to load user status",
83
- "failed_load_winners": "Failed to load winners",
84
- "first_complete_gets_reward": "First to complete gets the reward",
85
- "getting_signature": "Getting signature...",
86
- "hold_tokens_one_following_service_providers": "Hold tokens from one of the following DID service providers:",
87
- "how_winner_selected": "How is winner be selected?",
88
- "resident_specific_countries_regions": "Is NOT a resident of specific countries/regions",
89
- "resident_specific_countries_regions_2": "Is a resident of specific countries/regions",
90
- "join_quest_earlier_next_time": "Join the quest earlier next time!",
91
- "join_campaignname_me": "Join the {campaignName} with me 🙌",
92
- "leaderboard": "Leaderboard",
93
- "limited_spots_gas_free_claiming": "Limited spots for gas free claiming!",
94
- "link_wallet_address": "Link Wallet Address",
95
- "link_copied": "Link copied!",
96
- "loading_quest": "Loading quest...",
97
- "loading": "Loading...",
98
- "lucky_draw": "Lucky Draw",
99
- "manually_upload": "Manually Upload",
100
- "points_required": "More Points Required",
101
- "tasks_required": "More Tasks Required",
102
- "na": "N/A",
103
- "nft_preview": "NFT Preview",
104
- "nft_airdropped_soon": "NFT will be airdropped soon...",
105
- "network_error_please_try_again": "Network error, please try again",
106
- "new_user_milestone": "New user of this milestone",
107
- "new_user_taskon": "New user to TaskOn",
108
- "no_data": "No Data",
109
- "no_participants": "No participants yet",
110
- "no_winners": "No winners yet",
111
- "qualified": "Not Qualified",
112
- "tasks_successfully_verified_better_luck_next_time": "Not all tasks are successfully verified, better luck next time!",
113
- "sybil_database": "Not in Sybil database",
114
- "included_public_sybil_address_database": "Not included in a public sybil address database.",
115
- "ok": "OK",
116
- "only": "ONLY",
117
- "chain_verification": "On-chain Verification",
118
- "once_qualified_every_point_counts_toward_better_rewards": "Once qualified, every point counts toward better rewards!",
119
- "ongoing": "Ongoing",
120
- "qualifier_selected_winner_select_method_depends_settings_fcfs": "Only Qualifier can be selected as winner, the select method depends on the settings such as FCFS.",
121
- "oops": "Oops!",
122
- "oops_better_luck_next_time": "Oops! Better Luck Next Time!",
123
- "oops_seems_like_already_finished_quest": "Oops! Seems like You already finished this quest",
124
- "oops_seems_like_already_finished_quest_2": "Oops! Seems like you already finished this quest",
125
- "oops_better_luck_next_time_2": "Oops, Better Luck Next Time!",
126
- "open_blind_box": "Open Blind Box",
127
- "open": "Open to All",
128
- "own": "Own",
129
- "own_least": "Own at least",
130
- "own_least_amount_token_name_chain_label": "Own at least {amount} {token_name} on {chain_label}",
131
- "own_amount_name_nft_chain": "Own {amount} {name} NFT On {chain}",
132
- "participants": "Participants",
133
- "participants_info": "Participants Info",
134
- "participants_any_user_who_complete_least_1_task_quest": "Participants: any user who complete at least 1 task of this quest.",
135
- "pending_transaction": "Pending Transaction",
136
- "please_bind_following_accounts_verify_eligibility": "Please bind the following accounts to verify eligibility.",
137
- "please_complete_mandatory_tasks": "Please complete all mandatory tasks",
138
- "please_complete_required_tasks_before_continuing": "Please complete all required tasks before continuing.",
139
- "please_complete_optional_tasks": "Please complete more optional tasks",
140
- "please_confirm_wallet": "Please confirm in your wallet",
141
- "please_keep_participating_tasks_e_g_keep_following_x": "Please keep participating in tasks (e.g. keep following on X) to stay eligible for winner draws!",
142
- "please_link_following_wallet_addresses_receive_rewards_required_fcfs": "Please link the following wallet addresses to receive rewards. This is required for FCFS rewards.",
143
- "please_link_following_wallet_addresses_receive_rewards_skip_step": "Please link the following wallet addresses to receive rewards. You can skip this step and link later before the campaign ends.",
144
- "points_history": "Points History",
145
- "points_winner": "Points/Winner",
146
- "position": "Position",
147
- "project_owner_selects_winners": "Project owner selects winners",
148
- "qr_code": "QR Code",
149
- "qualifier_point": "Qualifier Point",
150
- "qualifiers": "Qualifiers",
151
- "quest_eligibility": "Quest Eligibility",
152
- "quest_rewards": "Quest Rewards",
153
- "quest_found": "Quest not found",
154
- "random_amount": "Random Amount",
155
- "reach_poh_requirements": "Reach All POH Requirements",
156
- "reach_any_poh_requirements": "Reach Any POH Requirements",
157
- "read": "Read more",
158
- "refresh": "Refresh",
159
- "refresh_eligibility_status": "Refresh eligibility status",
160
- "refreshing": "Refreshing...",
161
- "retry": "Retry",
162
- "reward": "Reward",
163
- "reward_amount_revealed_once_quest_ends": "Reward amount will be revealed once quest ends.",
164
- "rewards": "Rewards",
165
- "rewards_missed": "Rewards Missed",
166
- "role": "Role",
167
- "save": "Save",
168
- "share": "Share",
169
- "share_qr_code": "Share QR Code",
170
- "show_less": "Show less",
171
- "smart_blind_box": "Smart Blind Box",
172
- "social_accounts": "Social Accounts",
173
- "sorry_late": "Sorry you are late.",
174
- "space_id_domains_bnb_arb": "Space ID Domains (.bnb & .arb)",
175
- "starting": "Starting in",
176
- "starts": "Starts In",
177
- "stay_tuned_verified_users_eligible_compete_rewards": "Stay tuned! Only verified users are eligible to compete for rewards.",
178
- "submitters": "Submitters",
179
- "successfully_entered": "Successfully Entered!",
180
- "switching_network": "Switching network...",
181
- "system_drawing_winners": "System is Drawing Winners...",
182
- "system_automatically_select_winners": "System will automatically select winners in",
183
- "task": "Task",
184
- "taskon_lv_level_higher": "TaskOn LV {level} or Higher",
185
- "taskon_lv_val": "TaskOn LV {val}",
186
- "taskon_poh_level_score_label": "Taskon POH Level {score_label}",
187
- "taskon_val_level_lv": "Taskon {val} Level {lv}",
188
- "tasks_incomplete": "Tasks Incomplete",
189
- "receive_address_t_changed": "This receive address can’t be changed:",
190
- "tier": "Tier",
191
- "ensure_fair_experience_submissions_identical_wallet_addresses_x_discord": "To ensure a fair experience, submissions with identical wallet addresses, X, Discord, or Telegram accounts, and email addresses are not permitted.",
192
- "receive_discord_role_reward_need_link_discord_account": "To receive the Discord Role reward, you need to link your Discord account.",
193
- "token_name": "Token Name",
194
- "token_rewards_pool": "Token Rewards Pool",
195
- "top_100": "Top 100",
196
- "top_40_percent_50_percent": "Top 40%-50%",
197
- "top_ranked_users_win": "Top ranked users win",
198
- "total_rewards_pool": "Total Rewards Pool",
199
- "transaction_hash": "Transaction hash:",
200
- "transaction_pending": "Transaction pending...",
201
- "transaction_rejected_user": "Transaction was rejected by user.",
202
- "twitter": "Twitter",
203
- "txn_hash": "Txn Hash:",
204
- "unranked": "Unranked",
205
- "upcoming": "Upcoming",
206
- "user": "User",
207
- "validation_failed": "Validation Failed",
208
- "view_leaderboard": "View Leaderboard",
209
- "view_explorer": "View on Explorer",
210
- "view_participants_info_details": "View participants info details",
211
- "view_winners_list": "View winners list",
212
- "waiting_final_ranking_stay_tuned_see_win": "Waiting For Final Ranking, Stay tuned to see if you win!",
213
- "waiting_task_verification": "Waiting For Task Verification",
214
- "waiting_drawing_winners": "Waiting for drawing winners",
215
- "waiting_drawing_winners_stay_tuned_see_win": "Waiting for drawing winners, Stay tuned to see if you win!",
216
- "waiting_final_ranking_stay_tuned_see_win_2": "Waiting for final ranking. Stay tuned to see if you win!",
217
- "waiting_project_owner_upload_winner_list_stay_tuned_see": "Waiting for project owner to upload the winner list, Stay tuned to see if you win!",
218
- "waiting_project_owner_upload_winner_list_stay_tuned_see_2": "Waiting for project owner to upload the winner list. Stay tuned to see if you win!",
219
- "wallet_address": "Wallet Address",
220
- "wallet_addresses_sybil_lists_these_protocols": "Wallet addresses are not in the Sybil lists from these protocols:",
221
- "what_participants": "What is Participants?",
222
- "whitelist": "Whitelist",
223
- "whitelist_description": "Whitelist Description",
224
- "who_completes_least_1_task": "Who completes at least 1 task.",
225
- "who_completes_quest": "Who completes the quest.",
226
- "winner_bonus": "Winner Bonus",
227
- "winner_generated_following_chart": "Winner is generated from the following chart.",
228
- "winners": "Winners",
229
- "winners_randomly_selected": "Winners are randomly selected",
230
- "withdraw": "Withdraw",
231
- "x_twitter": "X (Twitter)",
232
- "x_account_verification": "X account Verification",
233
- "x_account_don_t_use_default_profile_image": "X account don't use default profile image",
234
- "you": "YOU",
235
- "won": "You Have Won",
236
- "here": "You are here",
237
- "qualified_rewards_tier": "You are not qualified for rewards in this tier.",
238
- "ranked": "You are not ranked yet.",
239
- "check_transaction_explorer": "You can check this transaction on explorer:",
240
- "complete_campaign_without_linking_won_t_able_claim_discord": "You can still complete the campaign without linking, but you won't be able to claim the Discord Role reward.",
241
- "already_claimed_nft_please_wait_transaction_confirmed": "You have already claimed this NFT, please wait for this transaction to be confirmed.",
242
- "won_multiple_rewards": "You have won multiple rewards!",
243
- "ranked_after_completing_mandatory_tasks_quest": "You will be ranked only after completing all mandatory tasks in this quest.",
244
- "estimated_rewards": "Your Estimated Rewards",
245
- "final_rewards": "Your Final Rewards",
246
- "ranking": "Your Ranking",
247
- "complete_task": "Your did not complete task:",
248
- "own_discord_role": "Your do not own a Discord Role",
249
- "own_discord_role_community": "Your do not own a Discord Role {role} in {community}",
250
- "completed_task": "Your have completed task:",
251
- "own_discord_role_2": "Your own a Discord Role",
252
- "own_discord_role_community_2": "Your own a Discord Role {role} in {community}",
253
- "name_lv_lt_count": "Your {name} Lv is ≥/< {count}",
254
- "val_wallet_address_allowlist": "Your {val} wallet address is in the allowlist",
255
- "zkme_citizenship_nft_holder": "ZKMe Citizenship NFT holder",
256
- "after": "after",
257
- "tasks_reviewed": "all tasks have been reviewed.",
258
- "better_luck": "better luck",
259
- "recaptcha_verification_required": "reCAPTCHA verification required",
260
- "following_eligibilities": "the following Eligibilities",
261
- "val_higher": "{val} or Higher",
262
- "official": "⚠️ Not Official",
263
- "winners_2": "👑 Winners",
264
- "eq_total_rewards_pool_pointname_total_pointname": "= Total Rewards Pool * Your {pointName} / Total {pointName}",
265
- "all": "ALL",
266
- "any": "ANY",
267
- "winners_announced": "All winners are to be announced by",
268
- "least_count_transaction_s_chain": "At least {count} transaction(s) on {chain}",
269
- "click_copy_address": "Click to copy: {address}",
270
- "complete_2": "Complete",
271
- "complete_onchain_action_number_actionid": "Complete Onchain Action #{actionId}",
272
- "completed_current_required_optional_tasks": "Completed: {current} / {required} optional tasks",
273
- "confirm": "Confirm",
274
- "did": "DID",
275
- "holder_own_least_one": "DID Holder(own at least one",
276
- "earned_current_required_points": "Earned: {current} / {required} points",
277
- "equivalent_amounts_token_name": "Equivalent amounts of {token_name}",
278
- "link_discord_account": "Link Discord Account",
279
- "lv": "Lv is",
280
- "meet_eligibilities_below": "Meet Eligibilities Below",
281
- "member_discord_server": "Member of Discord server:",
282
- "multiple_rewards_detail": "Multiple Rewards Detail",
283
- "included_public_sybil_address": "Not included in a public sybil address",
284
- "chain_label": "On {chain_label}",
285
- "poh_verification": "POH Verification",
286
- "please_earn_least_count_points_optional_tasks": "Please earn at least {count} points from optional tasks",
287
- "please_move_key_blind_box_open_blind_box": "Please move the key to the blind box to open the blind box",
288
- "points": "Points",
289
- "qualifier": "Qualifier",
290
- "quest": "Quest",
291
- "required": "REQUIRED",
292
- "reviewed_tasks": "Reviewed All Tasks",
293
- "rewards_per_winner": "Rewards Per Winner",
294
- "taskon_poh_level": "Taskon POH Level",
295
- "rankings_based_total_pointsname_earned_tasks_within_quest_instances": "The rankings are based on the total {pointsName} earned from all tasks within this quest. In instances of tied {pointsName}, submitters are ranked according to chronological order.",
296
- "quest_includes_proof_work_pow_tasks_which": "This quest includes Proof of Work (POW) tasks, which",
297
- "tier_index": "Tier {index}",
298
- "top_percent": "Top {from}%-{to}%",
299
- "top": "Top {from}-{to}",
300
- "top_2": "Top {to}",
301
- "top_percent_2": "Top {to}%",
302
- "total_pointname": "Total {pointName}",
303
- "usd_token_name": "USD in {token_name}",
304
- "waiting": "Waiting for",
305
- "x_account_created_months_ago": "X account created more than {months} months ago",
306
- "x_account_count_followers": "X account with more than {count} followers",
307
- "your": "Your",
308
- "database": "database",
309
- "days": "days",
310
- "first": "first",
311
- "least": "for at least",
312
- "in": "in",
313
- "is": "is",
314
- "participants_2": "participants",
315
- "tasks_secure_valid_ranking": "tasks to secure a valid ranking.",
316
- "token": "token)",
317
- "review_winners_selected": "will review. Winners will be selected",
318
- "pointsname_collected_tasks_completed_during_quest": "{pointsName} collected from all tasks completed during the quest.",
319
- "claim_again_send_new_transaction_recommended_when_sure_there": "\"Claim Again\" will send a new transaction it is only recommended when you are sure there is something wrong with the current transaction.",
320
- "fcfs": "FCFS",
321
- "ranking_2": "Ranking",
322
- "before_join_please_meet_express_following_eligibilities": "Before you join please meet {express} the following Eligibilities",
323
- "complete_required_tasks_secure_valid_ranking": "Complete all {required} tasks to secure a valid ranking.",
324
- "holder_own_least_one_token_2": "DID Holder(own at least one {did} token)",
325
- "member_discord_server_least_days": "Member of Discord server: {server} for at least {days} days",
326
- "included_public_sybil_address_database_2": "Not included in a public sybil address {database}",
327
- "quest_includes_proof_work_pow_tasks_which_community_review": "This quest includes Proof of Work (POW) tasks, which {community} will review. Winners will be selected {only} after all tasks have been reviewed.",
328
- "waiting_community_reviewed_tasks": "Waiting for {community} Reviewed All Tasks",
329
- "lv_operator_count": "Your Lv is {operator} {count}",
330
- "name_lv_operator_count": "Your {name} Lv is {operator} {count}",
331
- "name_operator_count": "Your {name} is {operator} {count}",
332
- "pointname": "Your {pointName}",
333
- "amount_qualifier_pointsname": "{amount} Qualifier {pointsName}",
334
- "days_2": "{days} days"
335
- };
336
-
337
- /**
338
- * interpolate - Simple string interpolation utility
339
- *
340
- * Replaces placeholders in the format {key} with values from the params object.
341
- * This is a lightweight alternative to full i18n libraries when only simple
342
- * variable replacement is needed.
343
- */
344
- /**
345
- * Params object type for interpolation
346
- */
347
- declare type InterpolationParams = Record<string, string | number | undefined>;
348
-
349
- /**
350
- * Quest Complete Button 组件 Props
351
- */
352
- export declare interface QuestCompleteButtonProps {
353
- /** Campaign ID */
354
- campaignId: number;
355
- /** Campaign 信息 */
356
- campaign: QuestCampaignInfo;
357
- /** 用户状态信息 */
358
- userStatus?: UserCampaignStatusInfo;
359
- /** 是否禁用 */
360
- disabled?: boolean;
361
- /** 提交成功回调 */
362
- onSuccess?: () => void;
363
- /** 提交失败回调 */
364
- onError?: (error: Error) => void;
365
- }
366
-
367
- /**
368
- * Quest 资格展示信息
369
- */
370
- export declare interface QuestEligibilityDisplay {
371
- /** 资格条件列表 */
372
- eligibilities: EligibilityValueItem[];
373
- /** 用户是否符合资格 */
374
- isEligible: boolean;
375
- /** 各条件的验证结果 */
376
- eligibilityResults: boolean[];
377
- }
378
-
379
- /**
380
- * Quest Header 组件 Props
381
- */
382
- export declare interface QuestHeaderProps {
383
- /** Campaign 信息 */
384
- campaign: QuestCampaignInfo;
385
- /** 是否显示 Banner */
386
- showBanner?: boolean;
387
- /** 是否显示标题 */
388
- showTitle?: boolean;
389
- /** 是否显示描述 */
390
- showDescription?: boolean;
391
- /** 查看更多描述回调 */
392
- onViewMore?: () => void;
393
- }
394
-
395
- export declare type QuestMessageKey = keyof QuestMessages;
396
-
397
- export declare type QuestMessages = typeof _default;
398
-
399
- /**
400
- * Quest 奖励展示信息
401
- */
402
- export declare interface QuestRewardDisplay {
403
- /** 资格者奖励 */
404
- qualifierRewards: QuestRewardInfo[];
405
- /** 获奖者奖励(简化信息) */
406
- winnerRewardsSimple: QuestRewardInfoSimple[];
407
- /** 是否有资格者奖励 */
408
- hasQualifierRewards: boolean;
409
- /** 是否有获奖者奖励 */
410
- hasWinnerRewards: boolean;
411
- }
412
-
413
- /**
414
- * Quest Sidebar 组件 Props
415
- */
416
- export declare interface QuestSidebarProps {
417
- /** Campaign 信息 */
418
- campaign: QuestCampaignInfo;
419
- /** Campaign 状态信息 */
420
- statusInfo?: CampaignStatusInfo;
421
- /** 用户状态信息 */
422
- userStatus?: UserCampaignStatusInfo;
423
- }
424
-
425
- /**
426
- * Quest 状态信息(用于展示)
427
- */
428
- export declare interface QuestStatusDisplay {
429
- /** 状态类型 */
430
- status: QuestStatusType;
431
- /** 状态标签(Upcoming / Ongoing / Ended) */
432
- label: string;
433
- /** 原始状态枚举 */
434
- originalStatus: CampaignStatus;
435
- /** 是否已开始 */
436
- isStarted: boolean;
437
- /** 是否已结束 */
438
- isEnded: boolean;
439
- /** 是否进行中 */
440
- isActive: boolean;
441
- /** 剩余时间(毫秒,仅进行中状态有效) */
442
- remainingTime?: number;
443
- }
444
-
445
- /**
446
- * Quest 状态(简化)
447
- */
448
- export declare type QuestStatusType = "upcoming" | "ongoing" | "ended";
449
-
450
- /**
451
- * Quest Task List 组件 Props
452
- */
453
- export declare interface QuestTaskListProps {
454
- /** 任务列表 */
455
- tasks: TaskValueItem[];
456
- /** 用户任务状态 */
457
- userTaskStatuses?: UserTaskStatus[];
458
- /** Campaign ID */
459
- campaignId: number;
460
- /** 任务点击回调 */
461
- onTaskClick?: (task: TaskValueItem) => void;
462
- /** 任务完成回调 */
463
- onTaskCompleted?: (taskId: number) => void;
464
- }
465
-
466
- /**
467
- * Quest 任务进度信息
468
- */
469
- export declare interface QuestTaskProgress {
470
- /** 必做任务总数 */
471
- requiredTotal: number;
472
- /** 必做任务已完成数 */
473
- requiredCompleted: number;
474
- /** 选做任务总数 */
475
- optionalTotal: number;
476
- /** 选做任务已完成数 */
477
- optionalCompleted: number;
478
- /** 最少需要完成的选做任务数 */
479
- minOptionalRequired: number;
480
- /** 是否满足提交条件 */
481
- canSubmit: boolean;
482
- /** 当前积分 */
483
- currentPoints: QuestPointsInfo | null;
484
- }
485
-
486
- /**
487
- * Quest 用户状态展示信息
488
- */
489
- export declare interface QuestUserStatusDisplay {
490
- /** 是否为访客 */
491
- isVisitor: boolean;
492
- /** 是否为参与者 */
493
- isParticipant: boolean;
494
- /** 是否已提交 */
495
- isSubmitter: boolean;
496
- /** 是否为资格者 */
497
- isQualifier: boolean;
498
- /** 是否为获奖者 */
499
- isWinner: boolean;
500
- /** 提交是否失败 */
501
- submitFailed: boolean;
502
- /** 用户排名 */
503
- ranking: number;
504
- /** 任务进度 */
505
- taskProgress: QuestTaskProgress;
506
- }
507
8
 
508
9
  /**
509
10
  * Quest Widget 主组件
@@ -613,476 +114,4 @@ export declare interface QuestWidgetProps {
613
114
  rewardRedirectUrl?: string;
614
115
  }
615
116
 
616
- /**
617
- * Translation function type
618
- */
619
- declare type TFunction<T> = <K extends keyof T>(key: K, params?: InterpolationParams) => string;
620
-
621
- /**
622
- * 获取 Quest 详情 Hook
623
- *
624
- * @param options Hook 配置(包含从根组件传入的 api 实例)
625
- * @returns Quest 详情、加载状态、错误信息、重新加载方法
626
- */
627
- export declare function useQuestDetail(options: UseQuestDetailOptions): UseQuestDetailReturn;
628
-
629
- /**
630
- * useQuestDetail Hook 参数
631
- */
632
- export declare interface UseQuestDetailOptions {
633
- /** Quest API 实例(从根组件传入) */
634
- api: QuestApi | null;
635
- /** Campaign ID */
636
- campaignId: number;
637
- /** 渠道标识(可选) */
638
- channel?: string;
639
- /** KOL 标识(可选) */
640
- kolHandle?: string;
641
- /** 邀请码(可选) */
642
- inviteCode?: string;
643
- /** Boost ID(可选) */
644
- boostId?: number;
645
- /** 是否启用(默认 true) */
646
- enabled?: boolean;
647
- }
648
-
649
- /**
650
- * useQuestDetail Hook 返回值
651
- */
652
- export declare interface UseQuestDetailReturn {
653
- /** Campaign 详情数据 */
654
- data: QuestCampaignInfo | null;
655
- /** 是否加载中 */
656
- isLoading: boolean;
657
- /** 错误信息 */
658
- error: string | null;
659
- /** 重新加载 */
660
- refetch: () => void;
661
- }
662
-
663
- export declare function useQuestLocale(): UseTranslationResult< {
664
- gte_100_least_1_kyc: string;
665
- gte_20_basic_filtering_bot: string;
666
- qualified_users_receive_reward: string;
667
- tasks_quest_verified_valid_some_tasks_may_verified_quest: string;
668
- available: string;
669
- awesome_already_meet_requirements: string;
670
- babt_holder: string;
671
- before_join_please_meet: string;
672
- binance_account_bound_token_bab: string;
673
- bind: string;
674
- bind_required_accounts: string;
675
- binding: string;
676
- blind_box_reward: string;
677
- bonus: string;
678
- bound: string;
679
- campaign_id_required_please_provide_campaignid_via_props_widgetid: string;
680
- cap_airdropped_soon: string;
681
- check_claim: string;
682
- check_cap_element: string;
683
- check_collection_opensea: string;
684
- chest_key: string;
685
- claim: string;
686
- claim_again: string;
687
- claim_nft: string;
688
- claim_failed: string;
689
- claim_successful: string;
690
- claimed: string;
691
- claiming_nft: string;
692
- close: string;
693
- complete_campaign: string;
694
- complete_action_first: string;
695
- complete: string;
696
- complete_campaign_2: string;
697
- complete_qualify_rewards: string;
698
- complete_milestone_name_first: string;
699
- completing: string;
700
- congratulations: string;
701
- connect_wallet_participate: string;
702
- connecting_wallet: string;
703
- continue_waiting: string;
704
- contract_address: string;
705
- copied: string;
706
- copy_link: string;
707
- holder_own_least_one_token: string;
708
- discord: string;
709
- discord_account_linked: string;
710
- discord_role: string;
711
- discord_role_2: string;
712
- ens_domains_eth: string;
713
- evm_chain: string;
714
- exp_winner: string;
715
- ended: string;
716
- ending: string;
717
- ends: string;
718
- extra_reward_winners: string;
719
- failed_claim_nft: string;
720
- failed_complete_quest: string;
721
- failed_copy_nft_address: string;
722
- failed_download_poster: string;
723
- failed_load_leaderboard: string;
724
- failed_load_quest_detail: string;
725
- failed_load_quest_status: string;
726
- failed_load_user_status: string;
727
- failed_load_winners: string;
728
- first_complete_gets_reward: string;
729
- getting_signature: string;
730
- hold_tokens_one_following_service_providers: string;
731
- how_winner_selected: string;
732
- resident_specific_countries_regions: string;
733
- resident_specific_countries_regions_2: string;
734
- join_quest_earlier_next_time: string;
735
- join_campaignname_me: string;
736
- leaderboard: string;
737
- limited_spots_gas_free_claiming: string;
738
- link_wallet_address: string;
739
- link_copied: string;
740
- loading_quest: string;
741
- loading: string;
742
- lucky_draw: string;
743
- manually_upload: string;
744
- points_required: string;
745
- tasks_required: string;
746
- na: string;
747
- nft_preview: string;
748
- nft_airdropped_soon: string;
749
- network_error_please_try_again: string;
750
- new_user_milestone: string;
751
- new_user_taskon: string;
752
- no_data: string;
753
- no_participants: string;
754
- no_winners: string;
755
- qualified: string;
756
- tasks_successfully_verified_better_luck_next_time: string;
757
- sybil_database: string;
758
- included_public_sybil_address_database: string;
759
- ok: string;
760
- only: string;
761
- chain_verification: string;
762
- once_qualified_every_point_counts_toward_better_rewards: string;
763
- ongoing: string;
764
- qualifier_selected_winner_select_method_depends_settings_fcfs: string;
765
- oops: string;
766
- oops_better_luck_next_time: string;
767
- oops_seems_like_already_finished_quest: string;
768
- oops_seems_like_already_finished_quest_2: string;
769
- oops_better_luck_next_time_2: string;
770
- open_blind_box: string;
771
- open: string;
772
- own: string;
773
- own_least: string;
774
- own_least_amount_token_name_chain_label: string;
775
- own_amount_name_nft_chain: string;
776
- participants: string;
777
- participants_info: string;
778
- participants_any_user_who_complete_least_1_task_quest: string;
779
- pending_transaction: string;
780
- please_bind_following_accounts_verify_eligibility: string;
781
- please_complete_mandatory_tasks: string;
782
- please_complete_required_tasks_before_continuing: string;
783
- please_complete_optional_tasks: string;
784
- please_confirm_wallet: string;
785
- please_keep_participating_tasks_e_g_keep_following_x: string;
786
- please_link_following_wallet_addresses_receive_rewards_required_fcfs: string;
787
- please_link_following_wallet_addresses_receive_rewards_skip_step: string;
788
- points_history: string;
789
- points_winner: string;
790
- position: string;
791
- project_owner_selects_winners: string;
792
- qr_code: string;
793
- qualifier_point: string;
794
- qualifiers: string;
795
- quest_eligibility: string;
796
- quest_rewards: string;
797
- quest_found: string;
798
- random_amount: string;
799
- reach_poh_requirements: string;
800
- reach_any_poh_requirements: string;
801
- read: string;
802
- refresh: string;
803
- refresh_eligibility_status: string;
804
- refreshing: string;
805
- retry: string;
806
- reward: string;
807
- reward_amount_revealed_once_quest_ends: string;
808
- rewards: string;
809
- rewards_missed: string;
810
- role: string;
811
- save: string;
812
- share: string;
813
- share_qr_code: string;
814
- show_less: string;
815
- smart_blind_box: string;
816
- social_accounts: string;
817
- sorry_late: string;
818
- space_id_domains_bnb_arb: string;
819
- starting: string;
820
- starts: string;
821
- stay_tuned_verified_users_eligible_compete_rewards: string;
822
- submitters: string;
823
- successfully_entered: string;
824
- switching_network: string;
825
- system_drawing_winners: string;
826
- system_automatically_select_winners: string;
827
- task: string;
828
- taskon_lv_level_higher: string;
829
- taskon_lv_val: string;
830
- taskon_poh_level_score_label: string;
831
- taskon_val_level_lv: string;
832
- tasks_incomplete: string;
833
- receive_address_t_changed: string;
834
- tier: string;
835
- ensure_fair_experience_submissions_identical_wallet_addresses_x_discord: string;
836
- receive_discord_role_reward_need_link_discord_account: string;
837
- token_name: string;
838
- token_rewards_pool: string;
839
- top_100: string;
840
- top_40_percent_50_percent: string;
841
- top_ranked_users_win: string;
842
- total_rewards_pool: string;
843
- transaction_hash: string;
844
- transaction_pending: string;
845
- transaction_rejected_user: string;
846
- twitter: string;
847
- txn_hash: string;
848
- unranked: string;
849
- upcoming: string;
850
- user: string;
851
- validation_failed: string;
852
- view_leaderboard: string;
853
- view_explorer: string;
854
- view_participants_info_details: string;
855
- view_winners_list: string;
856
- waiting_final_ranking_stay_tuned_see_win: string;
857
- waiting_task_verification: string;
858
- waiting_drawing_winners: string;
859
- waiting_drawing_winners_stay_tuned_see_win: string;
860
- waiting_final_ranking_stay_tuned_see_win_2: string;
861
- waiting_project_owner_upload_winner_list_stay_tuned_see: string;
862
- waiting_project_owner_upload_winner_list_stay_tuned_see_2: string;
863
- wallet_address: string;
864
- wallet_addresses_sybil_lists_these_protocols: string;
865
- what_participants: string;
866
- whitelist: string;
867
- whitelist_description: string;
868
- who_completes_least_1_task: string;
869
- who_completes_quest: string;
870
- winner_bonus: string;
871
- winner_generated_following_chart: string;
872
- winners: string;
873
- winners_randomly_selected: string;
874
- withdraw: string;
875
- x_twitter: string;
876
- x_account_verification: string;
877
- x_account_don_t_use_default_profile_image: string;
878
- you: string;
879
- won: string;
880
- here: string;
881
- qualified_rewards_tier: string;
882
- ranked: string;
883
- check_transaction_explorer: string;
884
- complete_campaign_without_linking_won_t_able_claim_discord: string;
885
- already_claimed_nft_please_wait_transaction_confirmed: string;
886
- won_multiple_rewards: string;
887
- ranked_after_completing_mandatory_tasks_quest: string;
888
- estimated_rewards: string;
889
- final_rewards: string;
890
- ranking: string;
891
- complete_task: string;
892
- own_discord_role: string;
893
- own_discord_role_community: string;
894
- completed_task: string;
895
- own_discord_role_2: string;
896
- own_discord_role_community_2: string;
897
- name_lv_lt_count: string;
898
- val_wallet_address_allowlist: string;
899
- zkme_citizenship_nft_holder: string;
900
- after: string;
901
- tasks_reviewed: string;
902
- better_luck: string;
903
- recaptcha_verification_required: string;
904
- following_eligibilities: string;
905
- val_higher: string;
906
- official: string;
907
- winners_2: string;
908
- eq_total_rewards_pool_pointname_total_pointname: string;
909
- all: string;
910
- any: string;
911
- winners_announced: string;
912
- least_count_transaction_s_chain: string;
913
- click_copy_address: string;
914
- complete_2: string;
915
- complete_onchain_action_number_actionid: string;
916
- completed_current_required_optional_tasks: string;
917
- confirm: string;
918
- did: string;
919
- holder_own_least_one: string;
920
- earned_current_required_points: string;
921
- equivalent_amounts_token_name: string;
922
- link_discord_account: string;
923
- lv: string;
924
- meet_eligibilities_below: string;
925
- member_discord_server: string;
926
- multiple_rewards_detail: string;
927
- included_public_sybil_address: string;
928
- chain_label: string;
929
- poh_verification: string;
930
- please_earn_least_count_points_optional_tasks: string;
931
- please_move_key_blind_box_open_blind_box: string;
932
- points: string;
933
- qualifier: string;
934
- quest: string;
935
- required: string;
936
- reviewed_tasks: string;
937
- rewards_per_winner: string;
938
- taskon_poh_level: string;
939
- rankings_based_total_pointsname_earned_tasks_within_quest_instances: string;
940
- quest_includes_proof_work_pow_tasks_which: string;
941
- tier_index: string;
942
- top_percent: string;
943
- top: string;
944
- top_2: string;
945
- top_percent_2: string;
946
- total_pointname: string;
947
- usd_token_name: string;
948
- waiting: string;
949
- x_account_created_months_ago: string;
950
- x_account_count_followers: string;
951
- your: string;
952
- database: string;
953
- days: string;
954
- first: string;
955
- least: string;
956
- in: string;
957
- is: string;
958
- participants_2: string;
959
- tasks_secure_valid_ranking: string;
960
- token: string;
961
- review_winners_selected: string;
962
- pointsname_collected_tasks_completed_during_quest: string;
963
- claim_again_send_new_transaction_recommended_when_sure_there: string;
964
- fcfs: string;
965
- ranking_2: string;
966
- before_join_please_meet_express_following_eligibilities: string;
967
- complete_required_tasks_secure_valid_ranking: string;
968
- holder_own_least_one_token_2: string;
969
- member_discord_server_least_days: string;
970
- included_public_sybil_address_database_2: string;
971
- quest_includes_proof_work_pow_tasks_which_community_review: string;
972
- waiting_community_reviewed_tasks: string;
973
- lv_operator_count: string;
974
- name_lv_operator_count: string;
975
- name_operator_count: string;
976
- pointname: string;
977
- amount_qualifier_pointsname: string;
978
- days_2: string;
979
- }>;
980
-
981
- /**
982
- * 获取 Quest 状态信息 Hook
983
- *
984
- * @param options Hook 配置(包含从根组件传入的 api 实例)
985
- * @returns Quest 状态、加载状态、错误信息、重新加载方法
986
- */
987
- export declare function useQuestStatus(options: UseQuestStatusOptions): UseQuestStatusReturn;
988
-
989
- /**
990
- * useQuestStatus Hook 参数
991
- */
992
- export declare interface UseQuestStatusOptions {
993
- /** Quest API 实例(从根组件传入) */
994
- api: QuestApi | null;
995
- /** Campaign ID */
996
- campaignId: number;
997
- /** 渠道标识 */
998
- channel?: string;
999
- /** KOL 句柄 */
1000
- kolHandle?: string;
1001
- /** 是否启用(默认 true) */
1002
- enabled?: boolean;
1003
- }
1004
-
1005
- /**
1006
- * useQuestStatus Hook 返回值
1007
- */
1008
- export declare interface UseQuestStatusReturn {
1009
- /** Campaign 状态数据 */
1010
- data: CampaignStatusInfo | null;
1011
- /** 是否加载中 */
1012
- isLoading: boolean;
1013
- /** 错误信息 */
1014
- error: string | null;
1015
- /** 重新加载 */
1016
- refetch: () => void;
1017
- }
1018
-
1019
- /**
1020
- * 获取用户 Quest 状态 Hook
1021
- *
1022
- * @param options Hook 配置(包含从根组件传入的 api 实例)
1023
- * @returns 用户状态、加载状态、错误信息、重新加载方法
1024
- */
1025
- export declare function useQuestUserStatus(options: UseQuestUserStatusOptions): UseQuestUserStatusReturn;
1026
-
1027
- /**
1028
- * useQuestUserStatus Hook 参数
1029
- */
1030
- export declare interface UseQuestUserStatusOptions {
1031
- /** Quest API 实例(从根组件传入) */
1032
- api: QuestApi | null;
1033
- /** Campaign ID */
1034
- campaignId: number;
1035
- /** 渠道标识(可选) */
1036
- channel?: string;
1037
- /** KOL 标识(可选) */
1038
- kolHandle?: string;
1039
- /** 是否启用(默认 true) */
1040
- enabled?: boolean;
1041
- }
1042
-
1043
- /**
1044
- * useQuestUserStatus Hook 返回值
1045
- */
1046
- export declare interface UseQuestUserStatusReturn {
1047
- /** 用户状态数据 */
1048
- data: UserCampaignStatusInfo | null;
1049
- /** 是否加载中 */
1050
- isLoading: boolean;
1051
- /** 错误信息 */
1052
- error: string | null;
1053
- /** 重新加载 */
1054
- refetch: () => void;
1055
- /**
1056
- * 立即更新指定任务的本地状态(乐观更新)
1057
- * @param taskId 任务 ID
1058
- * @param isAsync 是否为异步任务(异步任务只更新 is_submitter)
1059
- */
1060
- updateTaskStatus: (taskId: number, isAsync?: boolean) => void;
1061
- }
1062
-
1063
- /**
1064
- * Return type for useTranslation hook
1065
- */
1066
- declare interface UseTranslationResult<T> {
1067
- /**
1068
- * Translation function with interpolation support
1069
- *
1070
- * @example
1071
- * ```ts
1072
- * t('greeting', { name: 'John' }) // => 'Hello, John!'
1073
- * t('points', { count: 100 }) // => 'You have 100 points'
1074
- * ```
1075
- */
1076
- t: TFunction<T>;
1077
- /**
1078
- * Raw messages object (without interpolation)
1079
- * Useful when you need direct access to message strings
1080
- */
1081
- messages: T;
1082
- /**
1083
- * Whether translations are currently loading
1084
- */
1085
- isLoading: boolean;
1086
- }
1087
-
1088
117
  export { }