@huma-finance/widgets 0.0.79 → 0.0.80-beta.1081

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 CHANGED
@@ -1,6 +1,8 @@
1
1
  ## Functions
2
2
 
3
3
  <dl>
4
+ <dt><a href="#StellarLendAddRedemption">StellarLendAddRedemption()</a></dt>
5
+ <dd><p>Stellar add redemption props – request to withdraw (redeem) shares from a tranche.</p></dd>
4
6
  <dt><a href="#InvoiceFactoringBorrowWidget">InvoiceFactoringBorrowWidget(props)</a> ⇒</dt>
5
7
  <dd><p>Invoice factoring borrow widget</p></dd>
6
8
  <dt><a href="#InvoiceFactoringPaymentWidget">InvoiceFactoringPaymentWidget(props)</a> ⇒</dt>
@@ -52,6 +54,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
52
54
  <dd><p>Solana lend withdraw widget</p></dd>
53
55
  <dt><a href="#StellarLendSupplyWidget">StellarLendSupplyWidget(props)</a></dt>
54
56
  <dd><p>Lend pool supply widget for Stellar pools</p></dd>
57
+ <dt><a href="#StellarLendAddRedemptionWidget">StellarLendAddRedemptionWidget(props)</a></dt>
58
+ <dd><p>Lend pool add redemption widget for Stellar pools</p></dd>
55
59
  <dt><a href="#StellarBorrowWidget">StellarBorrowWidget(props)</a></dt>
56
60
  <dd><p>Borrow widget for Stellar pools</p></dd>
57
61
  <dt><a href="#SolanaEnableAutoRedemptionWidget">SolanaEnableAutoRedemptionWidget(props)</a></dt>
@@ -165,12 +169,30 @@ To be used when re-enabling autopay and other pool actions that require allowanc
165
169
  <dd><p>Lend pool supply widget props for Solana pools</p></dd>
166
170
  <dt><a href="#StellarLendSupplyWidgetProps">StellarLendSupplyWidgetProps</a> : <code>Object</code></dt>
167
171
  <dd><p>Lend pool supply widget props for Stellar pools</p></dd>
172
+ <dt><a href="#StellarLendAddRedemptionWidgetProps">StellarLendAddRedemptionWidgetProps</a> : <code>Object</code></dt>
173
+ <dd><p>Lend pool add redemption widget props for Stellar pools</p></dd>
168
174
  <dt><a href="#StellarLendSupplyWidgetProps">StellarLendSupplyWidgetProps</a> : <code>Object</code></dt>
169
175
  <dd><p>Borrow widget props for Stellar pools</p></dd>
170
176
  <dt><a href="#SolanaEnableAutoRedemptionWidgetProps">SolanaEnableAutoRedemptionWidgetProps</a> : <code>Object</code></dt>
171
177
  <dd><p>Lend pool supply widget props for Solana pools</p></dd>
172
178
  </dl>
173
179
 
180
+ <a name="StellarLendAddRedemption"></a>
181
+
182
+ ## StellarLendAddRedemption()
183
+ <p>Stellar add redemption props – request to withdraw (redeem) shares from a tranche.</p>
184
+
185
+ **Kind**: global function
186
+ **Properties**
187
+
188
+ | Name | Type | Description |
189
+ | --- | --- | --- |
190
+ | poolInfo | <code>StellarPoolInfo</code> | <p>The metadata of the pool.</p> |
191
+ | poolState | <code>StellarPoolState</code> | <p>The current state config of the pool.</p> |
192
+ | tranche | <code>TrancheType</code> | <p>The tranche to redeem from (junior or senior).</p> |
193
+ | handleClose | <code>function</code> | <p>Function to close the widget modal.</p> |
194
+ | handleSuccess | <code>function</code> | <p>Optional callback when redemption request succeeds.</p> |
195
+
174
196
  <a name="InvoiceFactoringBorrowWidget"></a>
175
197
 
176
198
  ## InvoiceFactoringBorrowWidget(props) ⇒
@@ -466,6 +488,17 @@ To be used when re-enabling autopay and other pool actions that require allowanc
466
488
  | --- | --- | --- |
467
489
  | props | [<code>StellarLendSupplyWidgetProps</code>](#StellarLendSupplyWidgetProps) | <p>Widget props</p> |
468
490
 
491
+ <a name="StellarLendAddRedemptionWidget"></a>
492
+
493
+ ## StellarLendAddRedemptionWidget(props)
494
+ <p>Lend pool add redemption widget for Stellar pools</p>
495
+
496
+ **Kind**: global function
497
+
498
+ | Param | Type | Description |
499
+ | --- | --- | --- |
500
+ | props | [<code>StellarLendAddRedemptionWidgetProps</code>](#StellarLendAddRedemptionWidgetProps) | <p>Widget props</p> |
501
+
469
502
  <a name="StellarBorrowWidget"></a>
470
503
 
471
504
  ## StellarBorrowWidget(props)
@@ -1174,6 +1207,12 @@ To be used when re-enabling autopay and other pool actions that require allowanc
1174
1207
  ## StellarLendSupplyWidgetProps : <code>Object</code>
1175
1208
  <p>Lend pool supply widget props for Stellar pools</p>
1176
1209
 
1210
+ **Kind**: global typedef
1211
+ <a name="StellarLendAddRedemptionWidgetProps"></a>
1212
+
1213
+ ## StellarLendAddRedemptionWidgetProps : <code>Object</code>
1214
+ <p>Lend pool add redemption widget props for Stellar pools</p>
1215
+
1177
1216
  **Kind**: global typedef
1178
1217
  <a name="StellarLendSupplyWidgetProps"></a>
1179
1218