@taskon/widget-react 0.0.1-beta.4 → 0.0.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -4
- package/dist/CommunityTaskList.css +119 -111
- package/dist/EligibilityInfo.css +114 -110
- package/dist/LeaderboardWidget.css +73 -71
- package/dist/PageBuilder.css +5 -0
- package/dist/Quest.css +259 -255
- package/dist/TaskOnProvider.css +2 -0
- package/dist/UserCenterWidget.css +6 -6
- package/dist/UserCenterWidget2.css +1626 -1601
- package/dist/{dynamic-import-helper.css → WidgetShell.css} +2 -2
- package/dist/chunks/{CommunityTaskList-C9Gv8KOF.js → CommunityTaskList-Hde2OKHH.js} +1070 -580
- package/dist/chunks/{EligibilityInfo-D-Fuy9GE.js → EligibilityInfo-BV0Z2TgY.js} +1972 -1028
- package/dist/chunks/{LeaderboardWidget-BV2D2q1N.js → LeaderboardWidget-BNGRD5Bu.js} +270 -249
- package/dist/chunks/{PageBuilder-DQoU4Mwf.js → PageBuilder-C5DSHiW9.js} +5 -5
- package/dist/chunks/{Quest-B5NyVr3o.js → Quest-DG9zfXJo.js} +723 -513
- package/dist/chunks/{TaskOnProvider-93UxARFo.js → TaskOnProvider-BhamHIyY.js} +98 -68
- package/dist/chunks/{ThemeProvider-CPI_roeh.js → ThemeProvider-mXLdLSkq.js} +107 -20
- package/dist/chunks/{UserCenterWidget-cADBSVg7.js → UserCenterWidget-D5ttw4hO.js} +1328 -1337
- package/dist/chunks/{UserCenterWidget-BRtigY_S.js → UserCenterWidget-jDO5zTN1.js} +358 -254
- package/dist/chunks/{dynamic-import-helper-DwXlQC0S.js → WidgetShell-D7yC894Y.js} +447 -457
- package/dist/chunks/communitytask-es-CBNnS4o2.js +521 -0
- package/dist/chunks/communitytask-ja-GRf9cbdx.js +521 -0
- package/dist/chunks/communitytask-ko-Bf24PQKI.js +521 -0
- package/dist/chunks/communitytask-ru-CZm2CPoV.js +521 -0
- package/dist/chunks/leaderboardwidget-es-vKjrjQaz.js +146 -0
- package/dist/chunks/leaderboardwidget-ja-Q6u0HxKG.js +146 -0
- package/dist/chunks/leaderboardwidget-ko-CG6SWgxf.js +146 -0
- package/dist/chunks/leaderboardwidget-ru-DCcHcJGz.js +146 -0
- package/dist/chunks/quest-es-Dyyy0zaw.js +863 -0
- package/dist/chunks/quest-ja-Depog33y.js +863 -0
- package/dist/chunks/quest-ko-BMu3uRQJ.js +863 -0
- package/dist/chunks/quest-ru-xne814Rw.js +863 -0
- package/dist/chunks/taskwidget-es-Do9b3Mqw.js +245 -0
- package/dist/chunks/taskwidget-ja-CqSu-yWA.js +245 -0
- package/dist/chunks/taskwidget-ko-EHgXFV4B.js +245 -0
- package/dist/chunks/taskwidget-ru-CMbLQDK4.js +245 -0
- package/dist/chunks/usercenter-es-Dz3Wp2vV.js +512 -0
- package/dist/chunks/usercenter-ja-CKE4DJC6.js +512 -0
- package/dist/chunks/usercenter-ko-Dtpkn2qb.js +512 -0
- package/dist/chunks/usercenter-ru-DnBGee45.js +512 -0
- package/dist/community-task.d.ts +0 -390
- package/dist/community-task.js +2 -7
- package/dist/core.d.ts +46 -10
- package/dist/core.js +11 -11
- package/dist/index.d.ts +46 -667
- package/dist/index.js +19 -28
- package/dist/leaderboard.d.ts +0 -498
- package/dist/leaderboard.js +2 -16
- package/dist/page-builder.js +1 -1
- package/dist/quest.d.ts +0 -289
- package/dist/quest.js +2 -5
- package/dist/user-center.d.ts +0 -1608
- package/dist/user-center.js +2 -494
- package/package.json +5 -2
- package/dist/chunks/leaderboardwidget-ja-Bj6gz6y1.js +0 -119
- package/dist/chunks/leaderboardwidget-ko-f1cLO9ic.js +0 -119
- package/dist/chunks/usercenter-ja-B2465c1O.js +0 -326
- package/dist/chunks/usercenter-ko-xAEYxqLg.js +0 -326
package/README.md
CHANGED
|
@@ -190,7 +190,11 @@ interface TaskOnProviderConfig {
|
|
|
190
190
|
disableAutoDetect?: boolean; // Disable auto-detection
|
|
191
191
|
};
|
|
192
192
|
|
|
193
|
-
// WalletConnect Project ID
|
|
193
|
+
// WalletConnect Project ID
|
|
194
|
+
// Only needed when you design Web3 wallet login or wallet-based rewards
|
|
195
|
+
// (wallet binding, on-chain verification, NFT/token claiming, etc.)
|
|
196
|
+
// Optional; SDK has a built-in default project ID
|
|
197
|
+
// For production, strongly recommended to use your own project ID
|
|
194
198
|
// Get your project ID at https://cloud.walletconnect.com
|
|
195
199
|
walletConnectProjectId?: string;
|
|
196
200
|
|
|
@@ -667,14 +671,17 @@ When tasks require wallet binding (e.g., on-chain verification), TaskOn shows a
|
|
|
667
671
|
- ONTO Wallet
|
|
668
672
|
- Bitget Wallet
|
|
669
673
|
- OKX Wallet
|
|
670
|
-
- WalletConnect (
|
|
674
|
+
- WalletConnect (uses SDK default project ID if not configured; not recommended for production)
|
|
671
675
|
|
|
672
676
|
**Mobile (non-Dapp browser):**
|
|
673
|
-
- WalletConnect only (
|
|
677
|
+
- WalletConnect only (uses SDK default project ID if not configured; not recommended for production)
|
|
674
678
|
|
|
675
679
|
**Mobile (Dapp browser / wallet app):**
|
|
676
680
|
- Uses injected provider directly
|
|
677
681
|
|
|
682
|
+
Only configure `walletConnectProjectId` when your product needs Web3 wallet login
|
|
683
|
+
or wallet-based rewards (wallet binding, on-chain verification, NFT/token claiming).
|
|
684
|
+
|
|
678
685
|
To enable WalletConnect in the dialog:
|
|
679
686
|
|
|
680
687
|
```tsx
|
|
@@ -1068,6 +1075,7 @@ Works with:
|
|
|
1068
1075
|
|
|
1069
1076
|
### Optional Peer Dependencies
|
|
1070
1077
|
|
|
1078
|
+
Install these only when you need Web3 wallet login or wallet-based reward flows.
|
|
1071
1079
|
For WalletConnect support in the built-in wallet binding dialog:
|
|
1072
1080
|
|
|
1073
1081
|
```bash
|
|
@@ -1089,7 +1097,8 @@ Then configure your project ID:
|
|
|
1089
1097
|
|
|
1090
1098
|
Get your WalletConnect Project ID at https://cloud.walletconnect.com
|
|
1091
1099
|
|
|
1092
|
-
If not configured, the
|
|
1100
|
+
If not configured, the SDK will use a built-in default WalletConnect project ID.
|
|
1101
|
+
For production use, strongly recommend configuring your own `walletConnectProjectId`.
|
|
1093
1102
|
|
|
1094
1103
|
## Limitations
|
|
1095
1104
|
|