@huma-finance/widgets 0.0.48-beta.296 → 0.0.48-beta.297

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 (34) hide show
  1. package/API.md +69 -22
  2. package/dist/cjs/index.cjs +2062 -2185
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/index.d.ts +45 -14
  5. package/dist/index.js +2061 -2185
  6. package/dist/index.js.map +1 -1
  7. package/package.json +4 -4
  8. package/src/components/CreditLine/paymentV2/1-ChooseAmount.tsx +5 -0
  9. package/src/components/InputAmountModal.tsx +3 -1
  10. package/src/components/Lend/{withdrawV2 → addRedemptionV2}/1-ChooseTranche.tsx +25 -30
  11. package/src/components/Lend/addRedemptionV2/2-ChooseAmount.tsx +61 -0
  12. package/src/components/Lend/{redeemV2 → addRedemptionV2}/3-Transfer.tsx +7 -12
  13. package/src/components/Lend/addRedemptionV2/4-Done.tsx +20 -0
  14. package/src/components/Lend/addRedemptionV2/index.tsx +172 -0
  15. package/src/components/Lend/cancelRedemptionV2 /1-Transfer.tsx +51 -0
  16. package/src/components/Lend/cancelRedemptionV2 /2-Done.tsx +29 -0
  17. package/src/components/Lend/cancelRedemptionV2 /index.tsx +120 -0
  18. package/src/components/Lend/supplyV2/1-ChooseTranche.tsx +23 -21
  19. package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +20 -30
  20. package/src/components/Lend/supplyV2/4-ApproveAllowance.tsx +2 -15
  21. package/src/components/Lend/supplyV2/5-Transfer.tsx +14 -58
  22. package/src/components/Lend/supplyV2/6-Success.tsx +5 -2
  23. package/src/components/Lend/supplyV2/index.tsx +31 -59
  24. package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +131 -0
  25. package/src/components/Lend/withdrawV2/2-Transfer.tsx +48 -0
  26. package/src/components/Lend/withdrawV2/index.tsx +53 -136
  27. package/src/index.tsx +44 -15
  28. package/src/components/Lend/redeemV2/1-ChooseAction.tsx +0 -237
  29. package/src/components/Lend/redeemV2/2-ChooseAmount.tsx +0 -101
  30. package/src/components/Lend/redeemV2/4-Done.tsx +0 -33
  31. package/src/components/Lend/redeemV2/index.tsx +0 -207
  32. package/src/components/Lend/withdrawV2/2-ChooseAmount.tsx +0 -88
  33. package/src/components/Lend/withdrawV2/3-Transfer.tsx +0 -110
  34. /package/src/components/Lend/withdrawV2/{4-Done.tsx → 3-Done.tsx} +0 -0
package/API.md CHANGED
@@ -24,8 +24,10 @@ To be used when re-enabling autopay and other pool actions that require allowanc
24
24
  <dd><p>Lend withdraw widget</p></dd>
25
25
  <dt><a href="#LendWithdrawWidgetV2">LendWithdrawWidgetV2(props)</a> ⇒</dt>
26
26
  <dd><p>Lend withdraw widget V2</p></dd>
27
- <dt><a href="#LendRedeemWidgetV2">LendRedeemWidgetV2(props)</a> ⇒</dt>
28
- <dd><p>Lend redeem widget V2</p></dd>
27
+ <dt><a href="#AddRedemptionWidgetV2">AddRedemptionWidgetV2(props)</a> ⇒</dt>
28
+ <dd><p>Add redemption widget V2</p></dd>
29
+ <dt><a href="#CancelRedemptionWidgetV2">CancelRedemptionWidgetV2(props)</a> ⇒</dt>
30
+ <dd><p>Cancel redemption widget V2</p></dd>
29
31
  <dt><a href="#SupplyFirstLossCoverWidget">SupplyFirstLossCoverWidget(props)</a> ⇒</dt>
30
32
  <dd><p>Supply first loss cover widget</p></dd>
31
33
  <dt><a href="#SuperfluidFactoringWidget">SuperfluidFactoringWidget(props)</a> ⇒</dt>
@@ -59,8 +61,10 @@ To be used when re-enabling autopay and other pool actions that require allowanc
59
61
  <dd><p>Invoice factoring pool borrow props</p></dd>
60
62
  <dt><a href="#InvoiceFactoringPaymentProps">InvoiceFactoringPaymentProps</a> : <code>Object</code></dt>
61
63
  <dd><p>Invoice factoring pool payment props</p></dd>
62
- <dt><a href="#LendRedeemPropsV2">LendRedeemPropsV2</a> : <code>Object</code></dt>
63
- <dd><p>Lend pool withdraw props</p></dd>
64
+ <dt><a href="#AddRedemptionPropsV2">AddRedemptionPropsV2</a> : <code>Object</code></dt>
65
+ <dd><p>Lend pool add redemption props</p></dd>
66
+ <dt><a href="#CancelRedemptionPropsV2">CancelRedemptionPropsV2</a> : <code>Object</code></dt>
67
+ <dd><p>Lend pool cancel redemption request props</p></dd>
64
68
  <dt><a href="#LendSupplyProps">LendSupplyProps</a> : <code>Object</code></dt>
65
69
  <dd><p>Lend pool supply props</p></dd>
66
70
  <dt><a href="#LendSupplyPropsV2">LendSupplyPropsV2</a> : <code>Object</code></dt>
@@ -97,10 +101,12 @@ To be used when re-enabling autopay and other pool actions that require allowanc
97
101
  <dd><p>Lend pool supply widget props V2</p></dd>
98
102
  <dt><a href="#LendWithdrawWidgetProps">LendWithdrawWidgetProps</a> : <code>Object</code></dt>
99
103
  <dd><p>Lend pool withdraw widget props</p></dd>
100
- <dt><a href="#LendSupplyWidgetPropsV2">LendSupplyWidgetPropsV2</a> : <code>Object</code></dt>
104
+ <dt><a href="#LendWithdrawWidgetPropsV2">LendWithdrawWidgetPropsV2</a> : <code>Object</code></dt>
101
105
  <dd><p>Lend pool supply widget props V2</p></dd>
102
- <dt><a href="#LendRedeemWidgetPropsV2">LendRedeemWidgetPropsV2</a> : <code>Object</code></dt>
103
- <dd><p>Lend pool redeem widget props V2</p></dd>
106
+ <dt><a href="#AddRedemptionWidgetPropsV2">AddRedemptionWidgetPropsV2</a> : <code>Object</code></dt>
107
+ <dd><p>Lend pool add redemption widget props V2</p></dd>
108
+ <dt><a href="#CancelRedemptionWidgetPropsV2">CancelRedemptionWidgetPropsV2</a> : <code>Object</code></dt>
109
+ <dd><p>Lend pool cancel redemption widget props V2</p></dd>
104
110
  <dt><a href="#SupplyFirstLossCoverWidgetProps">SupplyFirstLossCoverWidgetProps</a> : <code>Object</code></dt>
105
111
  <dd><p>Supply first loss cover widget props</p></dd>
106
112
  <dt><a href="#AutoPaybackWidgetPropsV2">AutoPaybackWidgetPropsV2</a> : <code>Object</code></dt>
@@ -242,19 +248,31 @@ To be used when re-enabling autopay and other pool actions that require allowanc
242
248
 
243
249
  | Param | Type | Description |
244
250
  | --- | --- | --- |
245
- | props | <code>LendWithdrawWidgetPropsV2</code> | <p>The lend pool supply widget props V2.</p> |
251
+ | props | [<code>LendWithdrawWidgetPropsV2</code>](#LendWithdrawWidgetPropsV2) | <p>The lend pool supply widget props V2.</p> |
252
+
253
+ <a name="AddRedemptionWidgetV2"></a>
254
+
255
+ ## AddRedemptionWidgetV2(props) ⇒
256
+ <p>Add redemption widget V2</p>
257
+
258
+ **Kind**: global function
259
+ **Returns**: <p>Lend pool add redemption widget component V2</p>
260
+
261
+ | Param | Type | Description |
262
+ | --- | --- | --- |
263
+ | props | [<code>AddRedemptionWidgetPropsV2</code>](#AddRedemptionWidgetPropsV2) | <p>The lend pool add redemption widget props V2.</p> |
246
264
 
247
- <a name="LendRedeemWidgetV2"></a>
265
+ <a name="CancelRedemptionWidgetV2"></a>
248
266
 
249
- ## LendRedeemWidgetV2(props) ⇒
250
- <p>Lend redeem widget V2</p>
267
+ ## CancelRedemptionWidgetV2(props) ⇒
268
+ <p>Cancel redemption widget V2</p>
251
269
 
252
270
  **Kind**: global function
253
- **Returns**: <p>Lend pool redeem widget component V2</p>
271
+ **Returns**: <p>Lend pool cancel redemption widget component V2</p>
254
272
 
255
273
  | Param | Type | Description |
256
274
  | --- | --- | --- |
257
- | props | [<code>LendRedeemWidgetPropsV2</code>](#LendRedeemWidgetPropsV2) | <p>The lend pool redeem widget props V2.</p> |
275
+ | props | [<code>CancelRedemptionWidgetPropsV2</code>](#CancelRedemptionWidgetPropsV2) | <p>The lend pool cancel redemption widget props V2.</p> |
258
276
 
259
277
  <a name="SupplyFirstLossCoverWidget"></a>
260
278
 
@@ -450,10 +468,24 @@ To be used when re-enabling autopay and other pool actions that require allowanc
450
468
  | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
451
469
  | handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool payment action is successful.</p> |
452
470
 
453
- <a name="LendRedeemPropsV2"></a>
471
+ <a name="AddRedemptionPropsV2"></a>
454
472
 
455
- ## LendRedeemPropsV2 : <code>Object</code>
456
- <p>Lend pool withdraw props</p>
473
+ ## AddRedemptionPropsV2 : <code>Object</code>
474
+ <p>Lend pool add redemption props</p>
475
+
476
+ **Kind**: global typedef
477
+ **Properties**
478
+
479
+ | Name | Type | Description |
480
+ | --- | --- | --- |
481
+ | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
482
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
483
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
484
+
485
+ <a name="CancelRedemptionPropsV2"></a>
486
+
487
+ ## CancelRedemptionPropsV2 : <code>Object</code>
488
+ <p>Lend pool cancel redemption request props</p>
457
489
 
458
490
  **Kind**: global typedef
459
491
  **Properties**
@@ -461,6 +493,7 @@ To be used when re-enabling autopay and other pool actions that require allowanc
461
493
  | Name | Type | Description |
462
494
  | --- | --- | --- |
463
495
  | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
496
+ | trancheType | <code>TrancheType</code> | <p>The type of the tranche.</p> |
464
497
  | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
465
498
  | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
466
499
 
@@ -519,6 +552,7 @@ To be used when re-enabling autopay and other pool actions that require allowanc
519
552
  | Name | Type | Description |
520
553
  | --- | --- | --- |
521
554
  | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
555
+ | trancheType | <code>TrancheType</code> | <p>The type of the tranche.</p> |
522
556
  | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
523
557
  | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
524
558
 
@@ -708,9 +742,9 @@ To be used when re-enabling autopay and other pool actions that require allowanc
708
742
  | LendWithdrawProps | [<code>LendWithdrawProps</code>](#LendWithdrawProps) | <p>Lend pool withdraw props.</p> |
709
743
  | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
710
744
 
711
- <a name="LendSupplyWidgetPropsV2"></a>
745
+ <a name="LendWithdrawWidgetPropsV2"></a>
712
746
 
713
- ## LendSupplyWidgetPropsV2 : <code>Object</code>
747
+ ## LendWithdrawWidgetPropsV2 : <code>Object</code>
714
748
  <p>Lend pool supply widget props V2</p>
715
749
 
716
750
  **Kind**: global typedef
@@ -721,17 +755,30 @@ To be used when re-enabling autopay and other pool actions that require allowanc
721
755
  | LendSupplyPropsV2 | [<code>LendWithdrawPropsV2</code>](#LendWithdrawPropsV2) | <p>Lend pool supply props V2.</p> |
722
756
  | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
723
757
 
724
- <a name="LendRedeemWidgetPropsV2"></a>
758
+ <a name="AddRedemptionWidgetPropsV2"></a>
759
+
760
+ ## AddRedemptionWidgetPropsV2 : <code>Object</code>
761
+ <p>Lend pool add redemption widget props V2</p>
762
+
763
+ **Kind**: global typedef
764
+ **Properties**
765
+
766
+ | Name | Type | Description |
767
+ | --- | --- | --- |
768
+ | AddRedemptionWidgetPropsV2 | [<code>AddRedemptionWidgetPropsV2</code>](#AddRedemptionWidgetPropsV2) | <p>Lend pool add redemption props V2.</p> |
769
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
770
+
771
+ <a name="CancelRedemptionWidgetPropsV2"></a>
725
772
 
726
- ## LendRedeemWidgetPropsV2 : <code>Object</code>
727
- <p>Lend pool redeem widget props V2</p>
773
+ ## CancelRedemptionWidgetPropsV2 : <code>Object</code>
774
+ <p>Lend pool cancel redemption widget props V2</p>
728
775
 
729
776
  **Kind**: global typedef
730
777
  **Properties**
731
778
 
732
779
  | Name | Type | Description |
733
780
  | --- | --- | --- |
734
- | LendRedeemPropsV2 | [<code>LendRedeemPropsV2</code>](#LendRedeemPropsV2) | <p>Lend pool redeem props V2.</p> |
781
+ | CancelRedemptionWidgetPropsV2 | [<code>CancelRedemptionWidgetPropsV2</code>](#CancelRedemptionWidgetPropsV2) | <p>Lend pool cancel redemption props V2.</p> |
735
782
  | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
736
783
 
737
784
  <a name="SupplyFirstLossCoverWidgetProps"></a>