@huma-finance/widgets 0.0.48-beta.296 → 0.0.48-beta.298
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/API.md +69 -22
- package/dist/cjs/index.cjs +2105 -2188
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +45 -14
- package/dist/index.js +2105 -2189
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CreditLine/borrowV2/3-Transfer.tsx +1 -1
- package/src/components/CreditLine/paymentV2/1-ChooseAmount.tsx +5 -0
- package/src/components/InputAmountModal.tsx +32 -5
- package/src/components/Lend/{withdrawV2 → addRedemptionV2}/1-ChooseTranche.tsx +25 -30
- package/src/components/Lend/addRedemptionV2/2-ChooseAmount.tsx +62 -0
- package/src/components/Lend/{redeemV2 → addRedemptionV2}/3-Transfer.tsx +7 -12
- package/src/components/Lend/addRedemptionV2/4-Done.tsx +20 -0
- package/src/components/Lend/addRedemptionV2/index.tsx +172 -0
- package/src/components/Lend/cancelRedemptionV2 /1-Transfer.tsx +51 -0
- package/src/components/Lend/cancelRedemptionV2 /2-Done.tsx +29 -0
- package/src/components/Lend/cancelRedemptionV2 /index.tsx +120 -0
- package/src/components/Lend/supplyV2/1-ChooseTranche.tsx +23 -21
- package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +20 -30
- package/src/components/Lend/supplyV2/4-ApproveAllowance.tsx +2 -15
- package/src/components/Lend/supplyV2/5-Transfer.tsx +14 -58
- package/src/components/Lend/supplyV2/6-Success.tsx +5 -2
- package/src/components/Lend/supplyV2/index.tsx +31 -59
- package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +135 -0
- package/src/components/Lend/withdrawV2/2-Transfer.tsx +50 -0
- package/src/components/Lend/withdrawV2/index.tsx +89 -130
- package/src/index.tsx +44 -15
- package/src/components/Lend/redeemV2/1-ChooseAction.tsx +0 -237
- package/src/components/Lend/redeemV2/2-ChooseAmount.tsx +0 -101
- package/src/components/Lend/redeemV2/4-Done.tsx +0 -33
- package/src/components/Lend/redeemV2/index.tsx +0 -207
- package/src/components/Lend/withdrawV2/2-ChooseAmount.tsx +0 -88
- package/src/components/Lend/withdrawV2/3-Transfer.tsx +0 -110
- /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="#
|
|
28
|
-
<dd><p>
|
|
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="#
|
|
63
|
-
<dd><p>Lend pool
|
|
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="#
|
|
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="#
|
|
103
|
-
<dd><p>Lend pool
|
|
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="
|
|
265
|
+
<a name="CancelRedemptionWidgetV2"></a>
|
|
248
266
|
|
|
249
|
-
##
|
|
250
|
-
<p>
|
|
267
|
+
## CancelRedemptionWidgetV2(props) ⇒
|
|
268
|
+
<p>Cancel redemption widget V2</p>
|
|
251
269
|
|
|
252
270
|
**Kind**: global function
|
|
253
|
-
**Returns**: <p>Lend pool
|
|
271
|
+
**Returns**: <p>Lend pool cancel redemption widget component V2</p>
|
|
254
272
|
|
|
255
273
|
| Param | Type | Description |
|
|
256
274
|
| --- | --- | --- |
|
|
257
|
-
| props | [<code>
|
|
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="
|
|
471
|
+
<a name="AddRedemptionPropsV2"></a>
|
|
454
472
|
|
|
455
|
-
##
|
|
456
|
-
<p>Lend pool
|
|
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="
|
|
745
|
+
<a name="LendWithdrawWidgetPropsV2"></a>
|
|
712
746
|
|
|
713
|
-
##
|
|
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="
|
|
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
|
-
##
|
|
727
|
-
<p>Lend pool
|
|
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
|
-
|
|
|
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>
|