@huma-finance/widgets 0.0.62-beta.722 → 0.0.62-beta.724
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 +41 -3
- package/dist/cjs/index.cjs +770 -322
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +37 -11
- package/dist/index.js +773 -326
- package/dist/index.js.map +1 -1
- package/package.json +5 -7
- package/src/components/Lend/components/PersonaEvaluation.tsx +1 -1
- package/src/components/Lend/solanaSupply/3-ChooseAmount.tsx +1 -1
- package/src/components/Lend/solanaSupply/4-Transfer.tsx +12 -13
- package/src/components/Lend/solanaSupply/6-PointsEarned.tsx +1 -1
- package/src/components/Lend/stellarSupply/1-Evaluation.tsx +9 -0
- package/src/components/Lend/stellarSupply/2-ChooseTranche.tsx +116 -0
- package/src/components/Lend/stellarSupply/3-ChooseAmount.tsx +129 -0
- package/src/components/Lend/stellarSupply/4-Transfer.tsx +69 -0
- package/src/components/Lend/stellarSupply/5-Success.tsx +61 -0
- package/src/components/Lend/stellarSupply/index.tsx +159 -0
- package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +1 -1
- package/src/components/SolanaTxSendModal.tsx +8 -21
- package/src/components/StellarTxDoneModal.tsx +119 -0
- package/src/components/StellarTxSendModal.tsx +43 -0
- package/src/components/StellarViewOnExplorer.tsx +29 -0
- package/src/index.tsx +44 -21
- package/src/store/widgets.reducers.ts +5 -0
- package/src/store/widgets.store.ts +1 -0
package/API.md
CHANGED
|
@@ -48,6 +48,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
48
48
|
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
49
49
|
<dt><a href="#SolanaPaymentWidget">SolanaPaymentWidget(props)</a></dt>
|
|
50
50
|
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
51
|
+
<dt><a href="#StellarLendSupplyWidget">StellarLendSupplyWidget(props)</a></dt>
|
|
52
|
+
<dd><p>Lend pool supply widget for Stellar pools</p></dd>
|
|
51
53
|
<dt><a href="#SolanaEnableAutoRedemptionWidget">SolanaEnableAutoRedemptionWidget(props)</a></dt>
|
|
52
54
|
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
53
55
|
</dl>
|
|
@@ -89,6 +91,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
89
91
|
<dd><p>Lend pool supply props</p></dd>
|
|
90
92
|
<dt><a href="#SolanaLendSupplyProps">SolanaLendSupplyProps</a> : <code>Object</code></dt>
|
|
91
93
|
<dd><p>Lend pool supply props</p></dd>
|
|
94
|
+
<dt><a href="#StellarLendSupplyProps">StellarLendSupplyProps</a> : <code>Object</code></dt>
|
|
95
|
+
<dd><p>Lend pool supply props</p></dd>
|
|
92
96
|
<dt><a href="#LendSupplyProps">LendSupplyProps</a> : <code>Object</code></dt>
|
|
93
97
|
<dd><p>Lend pool supply props</p></dd>
|
|
94
98
|
<dt><a href="#LendSupplyPropsV2">LendSupplyPropsV2</a> : <code>Object</code></dt>
|
|
@@ -139,7 +143,7 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
139
143
|
<dd><p>Receivable backed credit line pool borrow widget props V2</p></dd>
|
|
140
144
|
<dt><a href="#ReceivableBackedCreditLinePaymentWidgetPropsV2">ReceivableBackedCreditLinePaymentWidgetPropsV2</a> : <code>Object</code></dt>
|
|
141
145
|
<dd><p>Receivable backed credit line pool payment widget props V2</p></dd>
|
|
142
|
-
<dt><a href="#
|
|
146
|
+
<dt><a href="#GenericWidgetProps">GenericWidgetProps</a> : <code>Object</code></dt>
|
|
143
147
|
<dd><p>Object representing the props passed to Solana widgets</p></dd>
|
|
144
148
|
<dt><a href="#SolanaLendSupplyWidgetProps">SolanaLendSupplyWidgetProps</a> : <code>Object</code></dt>
|
|
145
149
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
@@ -151,6 +155,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
151
155
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
152
156
|
<dt><a href="#SolanaPaymentWidgetProps">SolanaPaymentWidgetProps</a> : <code>Object</code></dt>
|
|
153
157
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
158
|
+
<dt><a href="#StellarLendSupplyWidgetProps">StellarLendSupplyWidgetProps</a> : <code>Object</code></dt>
|
|
159
|
+
<dd><p>Lend pool supply widget props for Stellar pools</p></dd>
|
|
154
160
|
<dt><a href="#SolanaEnableAutoRedemptionWidgetProps">SolanaEnableAutoRedemptionWidgetProps</a> : <code>Object</code></dt>
|
|
155
161
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
156
162
|
</dl>
|
|
@@ -427,6 +433,17 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
427
433
|
| --- | --- | --- |
|
|
428
434
|
| props | [<code>SolanaPaymentWidgetProps</code>](#SolanaPaymentWidgetProps) | <p>Widget props</p> |
|
|
429
435
|
|
|
436
|
+
<a name="StellarLendSupplyWidget"></a>
|
|
437
|
+
|
|
438
|
+
## StellarLendSupplyWidget(props)
|
|
439
|
+
<p>Lend pool supply widget for Stellar pools</p>
|
|
440
|
+
|
|
441
|
+
**Kind**: global function
|
|
442
|
+
|
|
443
|
+
| Param | Type | Description |
|
|
444
|
+
| --- | --- | --- |
|
|
445
|
+
| props | [<code>StellarLendSupplyWidgetProps</code>](#StellarLendSupplyWidgetProps) | <p>Widget props</p> |
|
|
446
|
+
|
|
430
447
|
<a name="SolanaEnableAutoRedemptionWidget"></a>
|
|
431
448
|
|
|
432
449
|
## SolanaEnableAutoRedemptionWidget(props)
|
|
@@ -689,6 +706,21 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
689
706
|
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
690
707
|
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
691
708
|
|
|
709
|
+
<a name="StellarLendSupplyProps"></a>
|
|
710
|
+
|
|
711
|
+
## StellarLendSupplyProps : <code>Object</code>
|
|
712
|
+
<p>Lend pool supply props</p>
|
|
713
|
+
|
|
714
|
+
**Kind**: global typedef
|
|
715
|
+
**Properties**
|
|
716
|
+
|
|
717
|
+
| Name | Type | Description |
|
|
718
|
+
| --- | --- | --- |
|
|
719
|
+
| poolInfo | <code>StellarPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
720
|
+
| poolState | <code>StellarPoolState</code> | <p>The current state config of the pool.</p> |
|
|
721
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
722
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
723
|
+
|
|
692
724
|
<a name="LendSupplyProps"></a>
|
|
693
725
|
|
|
694
726
|
## LendSupplyProps : <code>Object</code>
|
|
@@ -1027,9 +1059,9 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
1027
1059
|
| ReceivableBackedCreditLinePaymentPropsV2 | <code>ReceivableBackedCreditLinePaymentPropsV2</code> | <p>Receivable backed credit line pool payment props V2.</p> |
|
|
1028
1060
|
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
1029
1061
|
|
|
1030
|
-
<a name="
|
|
1062
|
+
<a name="GenericWidgetProps"></a>
|
|
1031
1063
|
|
|
1032
|
-
##
|
|
1064
|
+
## GenericWidgetProps : <code>Object</code>
|
|
1033
1065
|
<p>Object representing the props passed to Solana widgets</p>
|
|
1034
1066
|
|
|
1035
1067
|
**Kind**: global typedef
|
|
@@ -1062,6 +1094,12 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
1062
1094
|
## SolanaPaymentWidgetProps : <code>Object</code>
|
|
1063
1095
|
<p>Lend pool supply widget props for Solana pools</p>
|
|
1064
1096
|
|
|
1097
|
+
**Kind**: global typedef
|
|
1098
|
+
<a name="StellarLendSupplyWidgetProps"></a>
|
|
1099
|
+
|
|
1100
|
+
## StellarLendSupplyWidgetProps : <code>Object</code>
|
|
1101
|
+
<p>Lend pool supply widget props for Stellar pools</p>
|
|
1102
|
+
|
|
1065
1103
|
**Kind**: global typedef
|
|
1066
1104
|
<a name="SolanaEnableAutoRedemptionWidgetProps"></a>
|
|
1067
1105
|
|