@huma-finance/widgets 0.0.59-beta.487 → 0.0.59-beta.488

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 (41) hide show
  1. package/API.md +1 -0
  2. package/dist/cjs/index.cjs +1093 -323
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/index.d.ts +6 -0
  5. package/dist/index.js +1094 -325
  6. package/dist/index.js.map +1 -1
  7. package/package.json +6 -4
  8. package/src/components/Activity.tsx +1 -2
  9. package/src/components/ApproveAllowanceModal.tsx +1 -1
  10. package/src/components/ApproveAllowanceModalV2.tsx +1 -1
  11. package/src/components/ChooseAmountModal.tsx +10 -8
  12. package/src/components/ConfirmTransferModal.tsx +3 -3
  13. package/src/components/CreditLine/borrow/1-Evaluation.tsx +2 -2
  14. package/src/components/ErrorModal.tsx +3 -10
  15. package/src/components/InputAmountModal.tsx +7 -5
  16. package/src/components/Lend/supply/1-Evaluation/EvaluationEA.tsx +1 -1
  17. package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +1 -1
  18. package/src/components/Lend/supplyV2/2-Evaluation.tsx +28 -329
  19. package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +52 -9
  20. package/src/components/Lend/supplyV2/6-Success.tsx +49 -6
  21. package/src/components/Lend/supplyV2/7-Notifications.tsx +22 -3
  22. package/src/components/Lend/supplyV2/8-PointsEarned.tsx +219 -0
  23. package/src/components/Lend/supplyV2/components/PersonaEvaluation.tsx +427 -0
  24. package/src/components/Lend/supplyV2/components/SecuritizeEvaluation.tsx +345 -0
  25. package/src/components/Lend/supplyV2/index.tsx +61 -5
  26. package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +1 -1
  27. package/src/components/Notifi/NotifiSubscriptionModal.tsx +1 -1
  28. package/src/components/SignIn.tsx +8 -3
  29. package/src/components/TxDoneModal.tsx +22 -3
  30. package/src/components/WrapperModal.tsx +1 -1
  31. package/src/components/humaModal/HumaModal.tsx +4 -3
  32. package/src/components/humaModal/HumaModalHeader.tsx +1 -0
  33. package/src/components/icons/congratulations.svg +54 -0
  34. package/src/components/icons/huma-points.svg +15 -0
  35. package/src/components/icons/index.tsx +15 -0
  36. package/src/components/icons/ribbon.svg +9 -0
  37. package/src/store/widgets.reducers.ts +0 -1
  38. package/src/store/widgets.store.ts +1 -0
  39. package/src/theme/components.ts +2 -1
  40. package/src/theme/palette.ts +7 -7
  41. package/src/theme/typography.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -180,15 +180,21 @@ interface LendSupplyProps {
180
180
  handleSuccess?: (blockNumber?: number) => void;
181
181
  }
182
182
 
183
+ interface Campaign {
184
+ id: string;
185
+ campaignGroupId: string;
186
+ }
183
187
  /**
184
188
  * Lend pool supply props
185
189
  * @typedef {Object} LendSupplyPropsV2
186
190
  * @property {POOL_NAME} poolName The name of the pool.
191
+ * @property {Campaign} campaign The campaign info.
187
192
  * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
188
193
  * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
189
194
  */
190
195
  interface LendSupplyPropsV2 {
191
196
  poolName: keyof typeof POOL_NAME;
197
+ campaign?: Campaign;
192
198
  handleClose: () => void;
193
199
  handleSuccess?: (blockNumber?: number) => void;
194
200
  }