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

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 (38) hide show
  1. package/dist/CommunityTaskList.css +110 -110
  2. package/dist/EligibilityInfo.css +69 -69
  3. package/dist/Quest.css +241 -241
  4. package/dist/chunks/{CommunityTaskList-C9Gv8KOF.js → CommunityTaskList-CrMvOB8w.js} +725 -441
  5. package/dist/chunks/{EligibilityInfo-D-Fuy9GE.js → EligibilityInfo-Beww12QX.js} +1569 -597
  6. package/dist/chunks/{LeaderboardWidget-BV2D2q1N.js → LeaderboardWidget-DwuSpVl0.js} +2 -2
  7. package/dist/chunks/{PageBuilder-DQoU4Mwf.js → PageBuilder-DsX6Tv0N.js} +5 -5
  8. package/dist/chunks/{Quest-B5NyVr3o.js → Quest-CuD2LElS.js} +661 -473
  9. package/dist/chunks/{TaskOnProvider-93UxARFo.js → TaskOnProvider-xUeP2Nro.js} +78 -65
  10. package/dist/chunks/{ThemeProvider-CPI_roeh.js → ThemeProvider-Bt4UZ33y.js} +30 -6
  11. package/dist/chunks/{UserCenterWidget-BRtigY_S.js → UserCenterWidget-CB0hnj-L.js} +67 -30
  12. package/dist/chunks/{UserCenterWidget-cADBSVg7.js → UserCenterWidget-CvU6K4AC.js} +2 -2
  13. package/dist/chunks/communitytask-es-1zawvXEX.js +311 -0
  14. package/dist/chunks/communitytask-ja-CmW6nP-L.js +311 -0
  15. package/dist/chunks/communitytask-ko-BD0hzQSi.js +311 -0
  16. package/dist/chunks/communitytask-ru-DhySaZL8.js +311 -0
  17. package/dist/chunks/createLocaleLoader-BameiEhU.js +65 -0
  18. package/dist/chunks/{dynamic-import-helper-DwXlQC0S.js → dynamic-import-helper-WmIF58Sb.js} +1 -1
  19. package/dist/chunks/quest-es-D-b5xcme.js +948 -0
  20. package/dist/chunks/quest-ja-Dxd2vqBF.js +948 -0
  21. package/dist/chunks/quest-ko-CSmRWgK_.js +948 -0
  22. package/dist/chunks/quest-ru-CkEKv1_F.js +948 -0
  23. package/dist/chunks/taskwidget-es-Do9b3Mqw.js +245 -0
  24. package/dist/chunks/taskwidget-ja-CqSu-yWA.js +245 -0
  25. package/dist/chunks/taskwidget-ko-EHgXFV4B.js +245 -0
  26. package/dist/chunks/taskwidget-ru-CMbLQDK4.js +245 -0
  27. package/dist/community-task.js +1 -1
  28. package/dist/core.d.ts +17 -5
  29. package/dist/core.js +8 -7
  30. package/dist/index.d.ts +56 -5
  31. package/dist/index.js +18 -16
  32. package/dist/leaderboard.js +2 -2
  33. package/dist/page-builder.js +1 -1
  34. package/dist/quest.d.ts +682 -0
  35. package/dist/quest.js +3 -1
  36. package/dist/user-center.d.ts +3 -1
  37. package/dist/user-center.js +5 -5
  38. package/package.json +4 -1
@@ -810,8 +810,8 @@
810
810
 
811
811
  .taskon-task-verify-failed-dialog-message {
812
812
  margin-top: var(--taskon-spacing-sm);
813
- font-size: 16px;
814
- line-height: 20px;
813
+ font-size: var(--taskon-font-size-lg);
814
+ line-height: 1.25;
815
815
  color: var(--taskon-color-text-tertiary);
816
816
  white-space: pre-wrap;
817
817
  }
@@ -870,7 +870,7 @@
870
870
  border-radius: var(--taskon-border-radius);
871
871
  background: var(--taskon-color-bg-surface-subtle);
872
872
  color: var(--taskon-color-text);
873
- font-size: 14px;
873
+ font-size: var(--taskon-font-size);
874
874
  outline: none;
875
875
  transition: border-color 0.2s ease;
876
876
  }
@@ -958,8 +958,8 @@
958
958
 
959
959
  .taskon-pow-image-upload-tip {
960
960
  margin-top: 13px;
961
- font-size: 14px;
962
- line-height: 20px;
961
+ font-size: var(--taskon-font-size);
962
+ line-height: 1.43;
963
963
  letter-spacing: 0.04em;
964
964
  text-transform: uppercase;
965
965
  white-space: pre-wrap;
@@ -1025,7 +1025,7 @@
1025
1025
 
1026
1026
  .taskon-pow-error {
1027
1027
  margin-top: 10px;
1028
- font-size: 14px;
1028
+ font-size: var(--taskon-font-size);
1029
1029
  color: var(--taskon-color-error);
1030
1030
  }
1031
1031
 
@@ -1038,9 +1038,9 @@
1038
1038
  .taskon-pow-review-time {
1039
1039
  margin-top: 10px;
1040
1040
  color: var(--taskon-color-warning);
1041
- font-size: 13px;
1041
+ font-size: var(--taskon-font-size-sm);
1042
1042
  font-weight: 500;
1043
- line-height: 16px;
1043
+ line-height: 1.33;
1044
1044
  }
1045
1045
 
1046
1046
  /* ============================================
@@ -1118,7 +1118,7 @@
1118
1118
  }
1119
1119
 
1120
1120
  .taskon-dynamic-points-value {
1121
- font-size: 16px;
1121
+ font-size: var(--taskon-font-size-lg);
1122
1122
  font-weight: 600;
1123
1123
  color: var(--taskon-color-text);
1124
1124
  }
@@ -1128,7 +1128,7 @@
1128
1128
  }
1129
1129
 
1130
1130
  .taskon-dynamic-points-max {
1131
- font-size: 14px;
1131
+ font-size: var(--taskon-font-size);
1132
1132
  font-weight: 500;
1133
1133
  color: var(--taskon-color-text-tertiary);
1134
1134
  text-transform: capitalize;
@@ -1194,7 +1194,7 @@
1194
1194
  }
1195
1195
 
1196
1196
  .taskon-dynamic-points-cooldown {
1197
- font-size: 14px;
1197
+ font-size: var(--taskon-font-size);
1198
1198
  font-weight: 500;
1199
1199
  color: var(--taskon-color-link);
1200
1200
  }
@@ -1224,7 +1224,7 @@
1224
1224
  }
1225
1225
 
1226
1226
  .taskon-swap-rules-title {
1227
- font-size: 14px;
1227
+ font-size: var(--taskon-font-size);
1228
1228
  font-weight: 500;
1229
1229
  color: var(--taskon-color-text-tertiary);
1230
1230
  margin-bottom: var(--taskon-spacing-sm);
@@ -1238,7 +1238,7 @@
1238
1238
  padding: var(--taskon-spacing-md);
1239
1239
  border-radius: var(--taskon-border-radius);
1240
1240
  background: var(--taskon-color-bg-surface-subtle);
1241
- font-size: 14px;
1241
+ font-size: var(--taskon-font-size);
1242
1242
  font-weight: 500;
1243
1243
  color: var(--taskon-color-text-tertiary);
1244
1244
  }
@@ -1264,7 +1264,7 @@
1264
1264
  }
1265
1265
 
1266
1266
  .taskon-swap-instructions-title {
1267
- font-size: 14px;
1267
+ font-size: var(--taskon-font-size);
1268
1268
  font-weight: 500;
1269
1269
  color: var(--taskon-color-text-tertiary);
1270
1270
  margin-bottom: var(--taskon-spacing-sm);
@@ -1295,7 +1295,7 @@
1295
1295
  /* Dialog title */
1296
1296
 
1297
1297
  .taskon-outer-point-api-dialog-title {
1298
- font-size: 18px;
1298
+ font-size: var(--taskon-font-size-xl);
1299
1299
  font-weight: 600;
1300
1300
  color: var(--taskon-color-text);
1301
1301
  margin: 0;
@@ -1311,8 +1311,8 @@
1311
1311
  border-radius: var(--taskon-border-radius);
1312
1312
  background: var(--taskon-color-warning-bg);
1313
1313
  color: var(--taskon-color-warning);
1314
- font-size: 14px;
1315
- line-height: 20px;
1314
+ font-size: var(--taskon-font-size);
1315
+ line-height: 1.43;
1316
1316
  }
1317
1317
 
1318
1318
  .taskon-outer-point-api-dialog-warning-icon {
@@ -1324,8 +1324,8 @@
1324
1324
  /* Description text */
1325
1325
 
1326
1326
  .taskon-outer-point-api-dialog-desc {
1327
- font-size: 14px;
1328
- line-height: 20px;
1327
+ font-size: var(--taskon-font-size);
1328
+ line-height: 1.43;
1329
1329
  color: var(--taskon-color-text-tertiary);
1330
1330
  }
1331
1331
 
@@ -1338,7 +1338,7 @@
1338
1338
  }
1339
1339
 
1340
1340
  .taskon-outer-point-api-dialog-label {
1341
- font-size: 14px;
1341
+ font-size: var(--taskon-font-size);
1342
1342
  font-weight: 500;
1343
1343
  color: var(--taskon-color-text-secondary);
1344
1344
  }
@@ -1351,8 +1351,8 @@
1351
1351
  border: 1px solid var(--taskon-color-border);
1352
1352
  background: var(--taskon-color-bg-surface-subtle);
1353
1353
  color: var(--taskon-color-text);
1354
- font-size: 14px;
1355
- line-height: 20px;
1354
+ font-size: var(--taskon-font-size);
1355
+ line-height: 1.43;
1356
1356
  outline: none;
1357
1357
  transition: border-color 0.2s ease;
1358
1358
  box-sizing: border-box;
@@ -1371,7 +1371,7 @@
1371
1371
  }
1372
1372
 
1373
1373
  .taskon-outer-point-api-dialog-error {
1374
- font-size: 12px;
1374
+ font-size: var(--taskon-font-size-sm);
1375
1375
  color: var(--taskon-color-error);
1376
1376
  }
1377
1377
 
@@ -1387,7 +1387,7 @@
1387
1387
  .taskon-outer-point-api-dialog-btn {
1388
1388
  padding: var(--taskon-spacing-sm) var(--taskon-spacing-lg);
1389
1389
  border-radius: var(--taskon-border-radius);
1390
- font-size: 14px;
1390
+ font-size: var(--taskon-font-size);
1391
1391
  font-weight: 500;
1392
1392
  cursor: pointer;
1393
1393
  transition: all 0.2s ease;
@@ -1474,14 +1474,14 @@
1474
1474
  }
1475
1475
 
1476
1476
  .taskon-task-list-section-title {
1477
- font-size: 22px;
1477
+ font-size: var(--taskon-font-size-xxl);
1478
1478
  font-weight: 600;
1479
- line-height: 21px;
1479
+ line-height: 1;
1480
1480
  color: var(--taskon-color-text);
1481
1481
  }
1482
1482
 
1483
1483
  .taskon-task-list-section-hint {
1484
- font-size: 14px;
1484
+ font-size: var(--taskon-font-size);
1485
1485
  color: var(--taskon-color-text-tertiary);
1486
1486
  }
1487
1487
 
@@ -1597,7 +1597,7 @@
1597
1597
  display: flex;
1598
1598
  align-items: center;
1599
1599
  gap: var(--taskon-spacing-xs);
1600
- font-size: 13px;
1600
+ font-size: var(--taskon-font-size-sm);
1601
1601
  color: var(--taskon-color-text-tertiary);
1602
1602
  }
1603
1603
 
@@ -1645,8 +1645,8 @@
1645
1645
  height: 20px;
1646
1646
  /* 文字样式 */
1647
1647
  color: var(--taskon-color-primary);
1648
- font-size: 12px;
1649
- line-height: 16px;
1648
+ font-size: var(--taskon-font-size-sm);
1649
+ line-height: 1.33;
1650
1650
  font-weight: 500;
1651
1651
  text-align: center;
1652
1652
  display: flex;
@@ -1658,8 +1658,8 @@
1658
1658
 
1659
1659
  .taskon-task-item-recurrence .taskon-cooldown-timer {
1660
1660
  color: var(--taskon-color-primary);
1661
- font-size: 12px;
1662
- line-height: 16px;
1661
+ font-size: var(--taskon-font-size-sm);
1662
+ line-height: 1.33;
1663
1663
  font-weight: 500;
1664
1664
  }
1665
1665
 
@@ -1706,10 +1706,10 @@
1706
1706
 
1707
1707
  .taskon-task-item-title {
1708
1708
  display: inline;
1709
- font-size: 18px;
1709
+ font-size: var(--taskon-font-size-xl);
1710
1710
  font-weight: 500;
1711
1711
  color: var(--taskon-color-text);
1712
- line-height: 23px;
1712
+ line-height: 1.28;
1713
1713
  overflow-wrap: break-word;
1714
1714
  }
1715
1715
 
@@ -1780,7 +1780,7 @@
1780
1780
  gap: 2px;
1781
1781
  background: var(--taskon-color-bg-surface-subtle);
1782
1782
  border-radius: var(--taskon-border-radius-sm);
1783
- font-size: 16px;
1783
+ font-size: var(--taskon-font-size-lg);
1784
1784
  font-weight: 500;
1785
1785
  }
1786
1786
 
@@ -1795,7 +1795,7 @@
1795
1795
  }
1796
1796
 
1797
1797
  .taskon-task-item-points-time {
1798
- font-size: 12px;
1798
+ font-size: var(--taskon-font-size-sm);
1799
1799
  color: var(--taskon-color-text-tertiary);
1800
1800
  }
1801
1801
 
@@ -1808,7 +1808,7 @@
1808
1808
  /* Total points */
1809
1809
 
1810
1810
  .taskon-task-item-total-points {
1811
- font-size: 12px;
1811
+ font-size: var(--taskon-font-size-sm);
1812
1812
  color: var(--taskon-color-text-disabled);
1813
1813
  }
1814
1814
 
@@ -1824,12 +1824,12 @@
1824
1824
 
1825
1825
  .taskon-task-item-total-earn-text {
1826
1826
  color: var(--taskon-color-text-tertiary);
1827
- font-size: 14px;
1827
+ font-size: var(--taskon-font-size);
1828
1828
  }
1829
1829
 
1830
1830
  .taskon-task-item-total-earn-value {
1831
1831
  color: var(--taskon-color-primary);
1832
- font-size: 14px;
1832
+ font-size: var(--taskon-font-size);
1833
1833
  margin: 0 4px;
1834
1834
  }
1835
1835
 
@@ -1849,8 +1849,8 @@
1849
1849
  }
1850
1850
 
1851
1851
  .taskon-task-item-desc {
1852
- font-size: 14px;
1853
- line-height: 21px;
1852
+ font-size: var(--taskon-font-size);
1853
+ line-height: 1.5;
1854
1854
  color: var(--taskon-color-text-tertiary);
1855
1855
  word-break: break-word;
1856
1856
  white-space: pre-wrap;
@@ -1868,7 +1868,7 @@
1868
1868
  display: flex;
1869
1869
  align-items: baseline;
1870
1870
  gap: var(--taskon-spacing-sm);
1871
- font-size: 13px;
1871
+ font-size: var(--taskon-font-size-sm);
1872
1872
  }
1873
1873
 
1874
1874
  .taskon-task-item-field-key {
@@ -1897,7 +1897,7 @@
1897
1897
  display: inline-flex;
1898
1898
  align-items: center;
1899
1899
  padding: var(--taskon-spacing-sm) var(--taskon-spacing-md);
1900
- font-size: 13px;
1900
+ font-size: var(--taskon-font-size-sm);
1901
1901
  font-weight: 500;
1902
1902
  color: var(--taskon-color-primary);
1903
1903
  background: transparent;
@@ -1952,7 +1952,7 @@
1952
1952
  display: inline-flex;
1953
1953
  align-items: center;
1954
1954
  gap: var(--taskon-spacing-xs);
1955
- font-size: 13px;
1955
+ font-size: var(--taskon-font-size-sm);
1956
1956
  color: var(--taskon-color-warning);
1957
1957
  }
1958
1958
 
@@ -1967,9 +1967,9 @@
1967
1967
  gap: var(--taskon-spacing-xs);
1968
1968
  height: 34px;
1969
1969
  padding: 0 var(--taskon-spacing-md);
1970
- font-size: 14px;
1970
+ font-size: var(--taskon-font-size);
1971
1971
  font-weight: 500;
1972
- line-height: 20px;
1972
+ line-height: 1.43;
1973
1973
  color: var(--taskon-color-text);
1974
1974
  background: transparent;
1975
1975
  border: 1px solid var(--taskon-color-border);
@@ -2018,7 +2018,7 @@
2018
2018
  gap: var(--taskon-spacing-xs);
2019
2019
  padding: 0;
2020
2020
  margin-top: var(--taskon-spacing-sm);
2021
- font-size: 13px;
2021
+ font-size: var(--taskon-font-size-sm);
2022
2022
  font-weight: 500;
2023
2023
  color: var(--taskon-color-text);
2024
2024
  background: transparent;
@@ -2111,8 +2111,8 @@
2111
2111
  ============================================ */
2112
2112
 
2113
2113
  .taskon-task-time-range {
2114
- font-size: 14px;
2115
- line-height: 18px;
2114
+ font-size: var(--taskon-font-size);
2115
+ line-height: 1.29;
2116
2116
  margin-top: 14px;
2117
2117
  }
2118
2118
 
@@ -2212,7 +2212,7 @@
2212
2212
  .taskon-quest-blindbox-dialog-title {
2213
2213
  margin: 0 0 var(--taskon-spacing-md);
2214
2214
  padding: 0 var(--taskon-spacing-lg);
2215
- font-size: 22px;
2215
+ font-size: var(--taskon-font-size-xxl);
2216
2216
  font-weight: 600;
2217
2217
  line-height: 1.4;
2218
2218
  color: #fff;
@@ -2369,7 +2369,7 @@
2369
2369
  .taskon-quest-blindbox-reward-title {
2370
2370
  font-size: 32px;
2371
2371
  font-weight: 600;
2372
- line-height: 40px;
2372
+ line-height: 1.25;
2373
2373
  margin: 0;
2374
2374
  }
2375
2375
 
@@ -2377,7 +2377,7 @@
2377
2377
 
2378
2378
  .taskon-quest-blindbox-reward-subtitle {
2379
2379
  margin-top: 12px;
2380
- font-size: 16px;
2380
+ font-size: var(--taskon-font-size-lg);
2381
2381
  line-height: 1.5;
2382
2382
  color: rgba(255, 255, 255, 0.7);
2383
2383
  }
@@ -2422,20 +2422,20 @@
2422
2422
  /* Token amount with orange color and underline like Vue version */
2423
2423
 
2424
2424
  .taskon-quest-blindbox-reward-card-amount {
2425
- font-size: 18px;
2425
+ font-size: var(--taskon-font-size-xl);
2426
2426
  font-weight: 600;
2427
2427
  color: #fbb15a;
2428
2428
  text-decoration: underline;
2429
2429
  }
2430
2430
 
2431
2431
  .taskon-quest-blindbox-reward-card-name {
2432
- font-size: 14px;
2432
+ font-size: var(--taskon-font-size);
2433
2433
  color: #fbb15a;
2434
2434
  text-decoration: underline;
2435
2435
  }
2436
2436
 
2437
2437
  .taskon-quest-blindbox-reward-card-value {
2438
- font-size: 12px;
2438
+ font-size: var(--taskon-font-size-sm);
2439
2439
  color: rgba(255, 255, 255, 0.5);
2440
2440
  margin-top: 2px;
2441
2441
  }
@@ -2453,7 +2453,7 @@
2453
2453
  .taskon-quest-blindbox-reward-btn {
2454
2454
  height: 36px;
2455
2455
  padding: 0 24px;
2456
- font-size: 14px;
2456
+ font-size: var(--taskon-font-size);
2457
2457
  font-weight: 500;
2458
2458
  color: #fff;
2459
2459
  background: transparent;
@@ -2483,7 +2483,7 @@
2483
2483
  gap: 8px;
2484
2484
  width: 100%;
2485
2485
  padding: 14px 24px;
2486
- font-size: 16px;
2486
+ font-size: var(--taskon-font-size-lg);
2487
2487
  font-weight: 600;
2488
2488
  color: #000;
2489
2489
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
@@ -2600,8 +2600,8 @@
2600
2600
  display: flex;
2601
2601
  align-items: center;
2602
2602
  gap: 10px;
2603
- font-size: 16px;
2604
- line-height: 20px;
2603
+ font-size: var(--taskon-font-size-lg);
2604
+ line-height: 1.25;
2605
2605
  cursor: pointer;
2606
2606
  user-select: none;
2607
2607
  }
@@ -2755,8 +2755,8 @@
2755
2755
 
2756
2756
  .taskon-quest-eligs-item-content {
2757
2757
  flex: 1;
2758
- font-size: 14px;
2759
- line-height: 18px;
2758
+ font-size: var(--taskon-font-size);
2759
+ line-height: 1.29;
2760
2760
  color: var(--taskon-color-text-secondary);
2761
2761
  }
2762
2762
 
@@ -2800,8 +2800,8 @@
2800
2800
  margin-top: 4px;
2801
2801
  padding: 8px 12px;
2802
2802
  max-width: 300px;
2803
- font-size: 12px;
2804
- line-height: 16px;
2803
+ font-size: var(--taskon-font-size-sm);
2804
+ line-height: 1.33;
2805
2805
  color: var(--taskon-color-text);
2806
2806
  background-color: var(--taskon-color-bg-floating);
2807
2807
  border-radius: var(--taskon-border-radius-sm);
@@ -2857,8 +2857,8 @@
2857
2857
  }
2858
2858
 
2859
2859
  .taskon-quest-eligs-sub-list li {
2860
- font-size: 14px;
2861
- line-height: 18px;
2860
+ font-size: var(--taskon-font-size);
2861
+ line-height: 1.29;
2862
2862
  color: var(--taskon-color-text-secondary);
2863
2863
  }
2864
2864
 
@@ -2939,7 +2939,7 @@
2939
2939
  border-radius: var(--taskon-border-radius);
2940
2940
  box-shadow: 0 4px 16px var(--taskon-color-bg-mask);
2941
2941
  z-index: 100;
2942
- font-size: 14px;
2942
+ font-size: var(--taskon-font-size);
2943
2943
  line-height: 1.5;
2944
2944
  }
2945
2945
 
@@ -2975,8 +2975,8 @@
2975
2975
  .taskon-quest-eligs-onchain-tooltip-link {
2976
2976
  color: var(--taskon-color-link);
2977
2977
  text-decoration: underline;
2978
- font-size: 14px;
2979
- line-height: 18px;
2978
+ font-size: var(--taskon-font-size);
2979
+ line-height: 1.29;
2980
2980
  }
2981
2981
 
2982
2982
  .taskon-quest-eligs-onchain-tooltip-link:hover {
@@ -3011,7 +3011,7 @@
3011
3011
  padding: 4px 8px;
3012
3012
  background-color: var(--taskon-color-bg-surface);
3013
3013
  border-radius: var(--taskon-border-radius-sm);
3014
- font-size: 12px;
3014
+ font-size: var(--taskon-font-size-sm);
3015
3015
  color: var(--taskon-color-secondary);
3016
3016
  white-space: nowrap;
3017
3017
  pointer-events: none;