@huma-finance/widgets 0.0.59-beta.494 → 0.0.59-beta.511

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 (31) hide show
  1. package/API.md +2 -0
  2. package/dist/cjs/index.cjs +967 -191
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/index.d.ts +8 -0
  5. package/dist/index.js +968 -193
  6. package/dist/index.js.map +1 -1
  7. package/package.json +6 -4
  8. package/src/components/ChooseAmountModal.tsx +2 -3
  9. package/src/components/ConfirmTransferModal.tsx +1 -1
  10. package/src/components/ErrorModal.tsx +1 -1
  11. package/src/components/InputAmountModal.tsx +2 -2
  12. package/src/components/Lend/supplyV2/2-Evaluation.tsx +31 -329
  13. package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +58 -9
  14. package/src/components/Lend/supplyV2/6-Success.tsx +49 -6
  15. package/src/components/Lend/supplyV2/7-Notifications.tsx +22 -3
  16. package/src/components/Lend/supplyV2/8-PointsEarned.tsx +231 -0
  17. package/src/components/Lend/supplyV2/components/PersonaEvaluation.tsx +442 -0
  18. package/src/components/Lend/supplyV2/components/SecuritizeEvaluation.tsx +345 -0
  19. package/src/components/Lend/supplyV2/index.tsx +67 -5
  20. package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +1 -1
  21. package/src/components/SignIn.tsx +7 -2
  22. package/src/components/TxDoneModal.tsx +21 -2
  23. package/src/components/humaModal/HumaModal.tsx +1 -0
  24. package/src/components/humaModal/HumaModalHeader.tsx +1 -0
  25. package/src/components/icons/congratulations.svg +54 -0
  26. package/src/components/icons/huma-points.svg +15 -0
  27. package/src/components/icons/index.tsx +15 -0
  28. package/src/components/icons/ribbon.svg +9 -0
  29. package/src/store/widgets.reducers.ts +0 -1
  30. package/src/store/widgets.store.ts +1 -0
  31. package/src/theme/palette.ts +1 -1
package/API.md CHANGED
@@ -523,6 +523,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
523
523
  | Name | Type | Description |
524
524
  | --- | --- | --- |
525
525
  | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
526
+ | pointsTestnetExperience | <code>boolean</code> | <p>If the user is in the testnet experience.</p> |
527
+ | campaign | <code>Campaign</code> | <p>The campaign info.</p> |
526
528
  | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
527
529
  | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
528
530