@huma-finance/widgets 0.0.62-beta.631 → 0.0.62-beta.633
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 +0 -194
- package/dist/cjs/index.cjs +258 -1866
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -136
- package/dist/index.js +261 -1864
- package/dist/index.js.map +1 -1
- package/package.json +8 -18
- package/src/components/CreditLine/paymentV2/1-ChooseAmount.tsx +0 -1
- package/src/components/InputAmountModal.tsx +2 -13
- package/src/components/Lend/supplyV2/6-Success.tsx +3 -3
- package/src/components/WidgetWrapper.tsx +4 -6
- package/src/index.tsx +0 -139
- package/src/store/widgets.reducers.ts +0 -5
- package/src/store/widgets.store.ts +0 -1
- package/src/components/CreditLine/solanaBorrow/1-ChooseAmount.tsx +0 -67
- package/src/components/CreditLine/solanaBorrow/2-Transfer.tsx +0 -159
- package/src/components/CreditLine/solanaBorrow/3-Done.tsx +0 -38
- package/src/components/CreditLine/solanaBorrow/index.tsx +0 -90
- package/src/components/CreditLine/solanaPayment/1-ChooseAmount.tsx +0 -75
- package/src/components/CreditLine/solanaPayment/2-Transfer.tsx +0 -92
- package/src/components/CreditLine/solanaPayment/3-Done.tsx +0 -59
- package/src/components/CreditLine/solanaPayment/index.tsx +0 -83
- package/src/components/Lend/solanaAddRedemption/1-ChooseTranche.tsx +0 -114
- package/src/components/Lend/solanaAddRedemption/2-ChooseAmount.tsx +0 -183
- package/src/components/Lend/solanaAddRedemption/3-Transfer.tsx +0 -102
- package/src/components/Lend/solanaAddRedemption/4-Done.tsx +0 -29
- package/src/components/Lend/solanaAddRedemption/index.tsx +0 -155
- package/src/components/Lend/solanaCancelRedemption/1-ChooseTranche.tsx +0 -114
- package/src/components/Lend/solanaCancelRedemption/2-Transfer.tsx +0 -99
- package/src/components/Lend/solanaCancelRedemption/3-Done.tsx +0 -55
- package/src/components/Lend/solanaCancelRedemption/index.tsx +0 -162
- package/src/components/Lend/solanaSupply/1-Evaluation.tsx +0 -106
- package/src/components/Lend/solanaSupply/2-ChooseTranche.tsx +0 -116
- package/src/components/Lend/solanaSupply/3-ChooseAmount.tsx +0 -131
- package/src/components/Lend/solanaSupply/4-Transfer.tsx +0 -137
- package/src/components/Lend/solanaSupply/5-Success.tsx +0 -52
- package/src/components/Lend/solanaSupply/index.tsx +0 -155
- package/src/components/SolanaTxDoneModal.tsx +0 -119
- package/src/components/SolanaTxSendModal.tsx +0 -61
- package/src/components/SolanaViewOnExplorer.tsx +0 -29
package/API.md
CHANGED
|
@@ -38,16 +38,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
38
38
|
<dd><p>Receivable backed credit line borrow widget V2</p></dd>
|
|
39
39
|
<dt><a href="#ReceivableBackedCreditLinePaymentWidgetV2">ReceivableBackedCreditLinePaymentWidgetV2(props)</a> ⇒</dt>
|
|
40
40
|
<dd><p>Receivable backed credit line payment widget V2</p></dd>
|
|
41
|
-
<dt><a href="#SolanaLendSupplyWidget">SolanaLendSupplyWidget(props)</a></dt>
|
|
42
|
-
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
43
|
-
<dt><a href="#SolanaLendAddRedemptionWidget">SolanaLendAddRedemptionWidget(props)</a></dt>
|
|
44
|
-
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
45
|
-
<dt><a href="#SolanaLendCancelRedemptionWidget">SolanaLendCancelRedemptionWidget(props)</a></dt>
|
|
46
|
-
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
47
|
-
<dt><a href="#SolanaBorrowWidget">SolanaBorrowWidget(props)</a></dt>
|
|
48
|
-
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
49
|
-
<dt><a href="#SolanaPaymentWidget">SolanaPaymentWidget(props)</a></dt>
|
|
50
|
-
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
51
41
|
</dl>
|
|
52
42
|
|
|
53
43
|
## Typedefs
|
|
@@ -65,10 +55,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
65
55
|
<dd><p>Credit line pool payment props</p></dd>
|
|
66
56
|
<dt><a href="#CreditLinePaymentPropsV2">CreditLinePaymentPropsV2</a> : <code>Object</code></dt>
|
|
67
57
|
<dd><p>Credit line pool payment props V2</p></dd>
|
|
68
|
-
<dt><a href="#SolanaBorrowProps">SolanaBorrowProps</a> : <code>Object</code></dt>
|
|
69
|
-
<dd><p>Lend pool supply props</p></dd>
|
|
70
|
-
<dt><a href="#SolanaPaymentProps">SolanaPaymentProps</a> : <code>Object</code></dt>
|
|
71
|
-
<dd><p>Lend pool supply props</p></dd>
|
|
72
58
|
<dt><a href="#SupplyFirstLossCoverProps">SupplyFirstLossCoverProps</a> : <code>Object</code></dt>
|
|
73
59
|
<dd><p>Supply first loss cover props</p></dd>
|
|
74
60
|
<dt><a href="#InvoiceFactoringBorrowProps">InvoiceFactoringBorrowProps</a> : <code>Object</code></dt>
|
|
@@ -79,12 +65,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
79
65
|
<dd><p>Lend pool add redemption props</p></dd>
|
|
80
66
|
<dt><a href="#CancelRedemptionPropsV2">CancelRedemptionPropsV2</a> : <code>Object</code></dt>
|
|
81
67
|
<dd><p>Lend pool cancel redemption request props</p></dd>
|
|
82
|
-
<dt><a href="#SolanaLendAddRedemptionProps">SolanaLendAddRedemptionProps</a> : <code>Object</code></dt>
|
|
83
|
-
<dd><p>Lend pool supply props</p></dd>
|
|
84
|
-
<dt><a href="#SolanaLendCancelRedemptionProps">SolanaLendCancelRedemptionProps</a> : <code>Object</code></dt>
|
|
85
|
-
<dd><p>Lend pool supply props</p></dd>
|
|
86
|
-
<dt><a href="#SolanaLendSupplyProps">SolanaLendSupplyProps</a> : <code>Object</code></dt>
|
|
87
|
-
<dd><p>Lend pool supply props</p></dd>
|
|
88
68
|
<dt><a href="#LendSupplyProps">LendSupplyProps</a> : <code>Object</code></dt>
|
|
89
69
|
<dd><p>Lend pool supply props</p></dd>
|
|
90
70
|
<dt><a href="#LendSupplyPropsV2">LendSupplyPropsV2</a> : <code>Object</code></dt>
|
|
@@ -135,18 +115,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
135
115
|
<dd><p>Receivable backed credit line pool borrow widget props V2</p></dd>
|
|
136
116
|
<dt><a href="#ReceivableBackedCreditLinePaymentWidgetPropsV2">ReceivableBackedCreditLinePaymentWidgetPropsV2</a> : <code>Object</code></dt>
|
|
137
117
|
<dd><p>Receivable backed credit line pool payment widget props V2</p></dd>
|
|
138
|
-
<dt><a href="#SolanaWidgetProps">SolanaWidgetProps</a> : <code>Object</code></dt>
|
|
139
|
-
<dd><p>Object representing the props passed to Solana widgets</p></dd>
|
|
140
|
-
<dt><a href="#SolanaLendSupplyWidgetProps">SolanaLendSupplyWidgetProps</a> : <code>Object</code></dt>
|
|
141
|
-
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
142
|
-
<dt><a href="#SolanaLendAddRedemptionWidgetProps">SolanaLendAddRedemptionWidgetProps</a> : <code>Object</code></dt>
|
|
143
|
-
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
144
|
-
<dt><a href="#SolanaLendCancelRedemptionWidgetProps">SolanaLendCancelRedemptionWidgetProps</a> : <code>Object</code></dt>
|
|
145
|
-
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
146
|
-
<dt><a href="#SolanaBorrowWidgetProps">SolanaBorrowWidgetProps</a> : <code>Object</code></dt>
|
|
147
|
-
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
148
|
-
<dt><a href="#SolanaPaymentWidgetProps">SolanaPaymentWidgetProps</a> : <code>Object</code></dt>
|
|
149
|
-
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
150
118
|
</dl>
|
|
151
119
|
|
|
152
120
|
<a name="InvoiceFactoringBorrowWidget"></a>
|
|
@@ -366,61 +334,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
366
334
|
| --- | --- | --- |
|
|
367
335
|
| props | [<code>ReceivableBackedCreditLinePaymentWidgetPropsV2</code>](#ReceivableBackedCreditLinePaymentWidgetPropsV2) | <p>The receivable backed credit line pool payment widget props V2.</p> |
|
|
368
336
|
|
|
369
|
-
<a name="SolanaLendSupplyWidget"></a>
|
|
370
|
-
|
|
371
|
-
## SolanaLendSupplyWidget(props)
|
|
372
|
-
<p>Lend pool supply widget for Solana pools</p>
|
|
373
|
-
|
|
374
|
-
**Kind**: global function
|
|
375
|
-
|
|
376
|
-
| Param | Type | Description |
|
|
377
|
-
| --- | --- | --- |
|
|
378
|
-
| props | [<code>SolanaLendSupplyWidgetProps</code>](#SolanaLendSupplyWidgetProps) | <p>Widget props</p> |
|
|
379
|
-
|
|
380
|
-
<a name="SolanaLendAddRedemptionWidget"></a>
|
|
381
|
-
|
|
382
|
-
## SolanaLendAddRedemptionWidget(props)
|
|
383
|
-
<p>Lend pool supply widget for Solana pools</p>
|
|
384
|
-
|
|
385
|
-
**Kind**: global function
|
|
386
|
-
|
|
387
|
-
| Param | Type | Description |
|
|
388
|
-
| --- | --- | --- |
|
|
389
|
-
| props | [<code>SolanaLendAddRedemptionWidgetProps</code>](#SolanaLendAddRedemptionWidgetProps) | <p>Widget props</p> |
|
|
390
|
-
|
|
391
|
-
<a name="SolanaLendCancelRedemptionWidget"></a>
|
|
392
|
-
|
|
393
|
-
## SolanaLendCancelRedemptionWidget(props)
|
|
394
|
-
<p>Lend pool supply widget for Solana pools</p>
|
|
395
|
-
|
|
396
|
-
**Kind**: global function
|
|
397
|
-
|
|
398
|
-
| Param | Type | Description |
|
|
399
|
-
| --- | --- | --- |
|
|
400
|
-
| props | [<code>SolanaLendCancelRedemptionWidgetProps</code>](#SolanaLendCancelRedemptionWidgetProps) | <p>Widget props</p> |
|
|
401
|
-
|
|
402
|
-
<a name="SolanaBorrowWidget"></a>
|
|
403
|
-
|
|
404
|
-
## SolanaBorrowWidget(props)
|
|
405
|
-
<p>Lend pool supply widget for Solana pools</p>
|
|
406
|
-
|
|
407
|
-
**Kind**: global function
|
|
408
|
-
|
|
409
|
-
| Param | Type | Description |
|
|
410
|
-
| --- | --- | --- |
|
|
411
|
-
| props | [<code>SolanaBorrowWidgetProps</code>](#SolanaBorrowWidgetProps) | <p>Widget props</p> |
|
|
412
|
-
|
|
413
|
-
<a name="SolanaPaymentWidget"></a>
|
|
414
|
-
|
|
415
|
-
## SolanaPaymentWidget(props)
|
|
416
|
-
<p>Lend pool supply widget for Solana pools</p>
|
|
417
|
-
|
|
418
|
-
**Kind**: global function
|
|
419
|
-
|
|
420
|
-
| Param | Type | Description |
|
|
421
|
-
| --- | --- | --- |
|
|
422
|
-
| props | [<code>SolanaPaymentWidgetProps</code>](#SolanaPaymentWidgetProps) | <p>Widget props</p> |
|
|
423
|
-
|
|
424
337
|
<a name="CreditLineApproveProps"></a>
|
|
425
338
|
|
|
426
339
|
## CreditLineApproveProps : <code>Object</code>
|
|
@@ -510,33 +423,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
510
423
|
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
511
424
|
| handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool payment action is successful.</p> |
|
|
512
425
|
|
|
513
|
-
<a name="SolanaBorrowProps"></a>
|
|
514
|
-
|
|
515
|
-
## SolanaBorrowProps : <code>Object</code>
|
|
516
|
-
<p>Lend pool supply props</p>
|
|
517
|
-
|
|
518
|
-
**Kind**: global typedef
|
|
519
|
-
**Properties**
|
|
520
|
-
|
|
521
|
-
| Name | Type | Description |
|
|
522
|
-
| --- | --- | --- |
|
|
523
|
-
| poolInfo | <code>SolanaPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
524
|
-
| poolState | <code>SolanaPoolState</code> | <p>The current state config of the pool. * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
525
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
526
|
-
|
|
527
|
-
<a name="SolanaPaymentProps"></a>
|
|
528
|
-
|
|
529
|
-
## SolanaPaymentProps : <code>Object</code>
|
|
530
|
-
<p>Lend pool supply props</p>
|
|
531
|
-
|
|
532
|
-
**Kind**: global typedef
|
|
533
|
-
**Properties**
|
|
534
|
-
|
|
535
|
-
| Name | Type | Description |
|
|
536
|
-
| --- | --- | --- |
|
|
537
|
-
| poolInfo | <code>SolanaPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
538
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
539
|
-
|
|
540
426
|
<a name="SupplyFirstLossCoverProps"></a>
|
|
541
427
|
|
|
542
428
|
## SupplyFirstLossCoverProps : <code>Object</code>
|
|
@@ -612,50 +498,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
612
498
|
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
613
499
|
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
|
|
614
500
|
|
|
615
|
-
<a name="SolanaLendAddRedemptionProps"></a>
|
|
616
|
-
|
|
617
|
-
## SolanaLendAddRedemptionProps : <code>Object</code>
|
|
618
|
-
<p>Lend pool supply props</p>
|
|
619
|
-
|
|
620
|
-
**Kind**: global typedef
|
|
621
|
-
**Properties**
|
|
622
|
-
|
|
623
|
-
| Name | Type | Description |
|
|
624
|
-
| --- | --- | --- |
|
|
625
|
-
| poolInfo | <code>SolanaPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
626
|
-
| poolState | <code>SolanaPoolState</code> | <p>The current state config of the pool. * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
627
|
-
| tranche | <code>POOL\_NTrancheTypeAME</code> | <p>The tranche type.</p> |
|
|
628
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
629
|
-
|
|
630
|
-
<a name="SolanaLendCancelRedemptionProps"></a>
|
|
631
|
-
|
|
632
|
-
## SolanaLendCancelRedemptionProps : <code>Object</code>
|
|
633
|
-
<p>Lend pool supply props</p>
|
|
634
|
-
|
|
635
|
-
**Kind**: global typedef
|
|
636
|
-
**Properties**
|
|
637
|
-
|
|
638
|
-
| Name | Type | Description |
|
|
639
|
-
| --- | --- | --- |
|
|
640
|
-
| poolInfo | <code>SolanaPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
641
|
-
| poolState | <code>SolanaPoolState</code> | <p>The current state config of the pool. * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
642
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
643
|
-
|
|
644
|
-
<a name="SolanaLendSupplyProps"></a>
|
|
645
|
-
|
|
646
|
-
## SolanaLendSupplyProps : <code>Object</code>
|
|
647
|
-
<p>Lend pool supply props</p>
|
|
648
|
-
|
|
649
|
-
**Kind**: global typedef
|
|
650
|
-
**Properties**
|
|
651
|
-
|
|
652
|
-
| Name | Type | Description |
|
|
653
|
-
| --- | --- | --- |
|
|
654
|
-
| poolInfo | <code>SolanaPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
655
|
-
| poolState | <code>SolanaPoolState</code> | <p>The current state config of the pool.</p> |
|
|
656
|
-
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
657
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
658
|
-
|
|
659
501
|
<a name="LendSupplyProps"></a>
|
|
660
502
|
|
|
661
503
|
## LendSupplyProps : <code>Object</code>
|
|
@@ -994,39 +836,3 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
994
836
|
| ReceivableBackedCreditLinePaymentPropsV2 | <code>ReceivableBackedCreditLinePaymentPropsV2</code> | <p>Receivable backed credit line pool payment props V2.</p> |
|
|
995
837
|
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
996
838
|
|
|
997
|
-
<a name="SolanaWidgetProps"></a>
|
|
998
|
-
|
|
999
|
-
## SolanaWidgetProps : <code>Object</code>
|
|
1000
|
-
<p>Object representing the props passed to Solana widgets</p>
|
|
1001
|
-
|
|
1002
|
-
**Kind**: global typedef
|
|
1003
|
-
<a name="SolanaLendSupplyWidgetProps"></a>
|
|
1004
|
-
|
|
1005
|
-
## SolanaLendSupplyWidgetProps : <code>Object</code>
|
|
1006
|
-
<p>Lend pool supply widget props for Solana pools</p>
|
|
1007
|
-
|
|
1008
|
-
**Kind**: global typedef
|
|
1009
|
-
<a name="SolanaLendAddRedemptionWidgetProps"></a>
|
|
1010
|
-
|
|
1011
|
-
## SolanaLendAddRedemptionWidgetProps : <code>Object</code>
|
|
1012
|
-
<p>Lend pool supply widget props for Solana pools</p>
|
|
1013
|
-
|
|
1014
|
-
**Kind**: global typedef
|
|
1015
|
-
<a name="SolanaLendCancelRedemptionWidgetProps"></a>
|
|
1016
|
-
|
|
1017
|
-
## SolanaLendCancelRedemptionWidgetProps : <code>Object</code>
|
|
1018
|
-
<p>Lend pool supply widget props for Solana pools</p>
|
|
1019
|
-
|
|
1020
|
-
**Kind**: global typedef
|
|
1021
|
-
<a name="SolanaBorrowWidgetProps"></a>
|
|
1022
|
-
|
|
1023
|
-
## SolanaBorrowWidgetProps : <code>Object</code>
|
|
1024
|
-
<p>Lend pool supply widget props for Solana pools</p>
|
|
1025
|
-
|
|
1026
|
-
**Kind**: global typedef
|
|
1027
|
-
<a name="SolanaPaymentWidgetProps"></a>
|
|
1028
|
-
|
|
1029
|
-
## SolanaPaymentWidgetProps : <code>Object</code>
|
|
1030
|
-
<p>Lend pool supply widget props for Solana pools</p>
|
|
1031
|
-
|
|
1032
|
-
**Kind**: global typedef
|