@huma-finance/widgets 0.0.73-beta.946 → 0.0.73-beta.954
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 +38 -0
- package/dist/index.js +19689 -19293
- package/dist/src/components/CreditLine/stellarBorrow/1-ChooseAmount.d.ts +8 -0
- package/dist/src/components/CreditLine/stellarBorrow/2-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/CreditLine/stellarBorrow/3-Transfer.d.ts +7 -0
- package/dist/src/components/CreditLine/stellarBorrow/4-Success.d.ts +10 -0
- package/dist/src/components/CreditLine/stellarBorrow/index.d.ts +18 -0
- package/dist/src/index.d.ts +12 -0
- package/package.json +8 -6
- package/src/components/CreditLine/stellarBorrow/1-ChooseAmount.tsx +45 -0
- package/src/components/CreditLine/stellarBorrow/2-ApproveAllowance.tsx +119 -0
- package/src/components/CreditLine/stellarBorrow/3-Transfer.tsx +61 -0
- package/src/components/CreditLine/stellarBorrow/4-Success.tsx +46 -0
- package/src/components/CreditLine/stellarBorrow/index.tsx +100 -0
- package/src/index.tsx +23 -0
package/API.md
CHANGED
|
@@ -52,6 +52,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
52
52
|
<dd><p>Solana lend withdraw widget</p></dd>
|
|
53
53
|
<dt><a href="#StellarLendSupplyWidget">StellarLendSupplyWidget(props)</a></dt>
|
|
54
54
|
<dd><p>Lend pool supply widget for Stellar pools</p></dd>
|
|
55
|
+
<dt><a href="#StellarBorrowWidget">StellarBorrowWidget(props)</a></dt>
|
|
56
|
+
<dd><p>Borrow widget for Stellar pools</p></dd>
|
|
55
57
|
<dt><a href="#SolanaEnableAutoRedemptionWidget">SolanaEnableAutoRedemptionWidget(props)</a></dt>
|
|
56
58
|
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
57
59
|
</dl>
|
|
@@ -75,6 +77,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
75
77
|
<dd><p>Lend pool supply props</p></dd>
|
|
76
78
|
<dt><a href="#SolanaPaymentProps">SolanaPaymentProps</a> : <code>Object</code></dt>
|
|
77
79
|
<dd><p>Lend pool supply props</p></dd>
|
|
80
|
+
<dt><a href="#StellarBorrowProps">StellarBorrowProps</a> : <code>Object</code></dt>
|
|
81
|
+
<dd><p>Stellar pool borrow widget props</p></dd>
|
|
78
82
|
<dt><a href="#SupplyFirstLossCoverProps">SupplyFirstLossCoverProps</a> : <code>Object</code></dt>
|
|
79
83
|
<dd><p>Supply first loss cover props</p></dd>
|
|
80
84
|
<dt><a href="#InvoiceFactoringBorrowProps">InvoiceFactoringBorrowProps</a> : <code>Object</code></dt>
|
|
@@ -161,6 +165,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
161
165
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
162
166
|
<dt><a href="#StellarLendSupplyWidgetProps">StellarLendSupplyWidgetProps</a> : <code>Object</code></dt>
|
|
163
167
|
<dd><p>Lend pool supply widget props for Stellar pools</p></dd>
|
|
168
|
+
<dt><a href="#StellarLendSupplyWidgetProps">StellarLendSupplyWidgetProps</a> : <code>Object</code></dt>
|
|
169
|
+
<dd><p>Borrow widget props for Stellar pools</p></dd>
|
|
164
170
|
<dt><a href="#SolanaEnableAutoRedemptionWidgetProps">SolanaEnableAutoRedemptionWidgetProps</a> : <code>Object</code></dt>
|
|
165
171
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
166
172
|
</dl>
|
|
@@ -460,6 +466,17 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
460
466
|
| --- | --- | --- |
|
|
461
467
|
| props | [<code>StellarLendSupplyWidgetProps</code>](#StellarLendSupplyWidgetProps) | <p>Widget props</p> |
|
|
462
468
|
|
|
469
|
+
<a name="StellarBorrowWidget"></a>
|
|
470
|
+
|
|
471
|
+
## StellarBorrowWidget(props)
|
|
472
|
+
<p>Borrow widget for Stellar pools</p>
|
|
473
|
+
|
|
474
|
+
**Kind**: global function
|
|
475
|
+
|
|
476
|
+
| Param | Type | Description |
|
|
477
|
+
| --- | --- | --- |
|
|
478
|
+
| props | <code>StellarBorrowWidgetProps</code> | <p>Widget props</p> |
|
|
479
|
+
|
|
463
480
|
<a name="SolanaEnableAutoRedemptionWidget"></a>
|
|
464
481
|
|
|
465
482
|
## SolanaEnableAutoRedemptionWidget(props)
|
|
@@ -587,6 +604,21 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
587
604
|
| poolInfo | <code>SolanaPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
588
605
|
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
589
606
|
|
|
607
|
+
<a name="StellarBorrowProps"></a>
|
|
608
|
+
|
|
609
|
+
## StellarBorrowProps : <code>Object</code>
|
|
610
|
+
<p>Stellar pool borrow widget props</p>
|
|
611
|
+
|
|
612
|
+
**Kind**: global typedef
|
|
613
|
+
**Properties**
|
|
614
|
+
|
|
615
|
+
| Name | Type | Description |
|
|
616
|
+
| --- | --- | --- |
|
|
617
|
+
| poolInfo | <code>StellarPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
618
|
+
| poolState | <code>StellarPoolState</code> | <p>The current state config of the pool.</p> |
|
|
619
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
620
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
621
|
+
|
|
590
622
|
<a name="SupplyFirstLossCoverProps"></a>
|
|
591
623
|
|
|
592
624
|
## SupplyFirstLossCoverProps : <code>Object</code>
|
|
@@ -1142,6 +1174,12 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
1142
1174
|
## StellarLendSupplyWidgetProps : <code>Object</code>
|
|
1143
1175
|
<p>Lend pool supply widget props for Stellar pools</p>
|
|
1144
1176
|
|
|
1177
|
+
**Kind**: global typedef
|
|
1178
|
+
<a name="StellarLendSupplyWidgetProps"></a>
|
|
1179
|
+
|
|
1180
|
+
## StellarLendSupplyWidgetProps : <code>Object</code>
|
|
1181
|
+
<p>Borrow widget props for Stellar pools</p>
|
|
1182
|
+
|
|
1145
1183
|
**Kind**: global typedef
|
|
1146
1184
|
<a name="SolanaEnableAutoRedemptionWidgetProps"></a>
|
|
1147
1185
|
|