@huma-finance/widgets 0.0.62-beta.718 → 0.0.62-beta.720
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/cjs/index.cjs +443 -184
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +444 -186
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Lend/solanaEnableAutoRedemption/1-ApproveAllowance.tsx +61 -0
- package/src/components/Lend/solanaEnableAutoRedemption/2-Transfer.tsx +167 -0
- package/src/components/Lend/solanaEnableAutoRedemption/3-Success.tsx +45 -0
- package/src/components/Lend/solanaEnableAutoRedemption/index.tsx +76 -0
- package/src/components/Lend/solanaSupply/3-ChooseAmount.tsx +2 -2
- package/src/components/Lend/solanaSupply/4-ApproveAllowance.tsx +59 -0
- package/src/components/Lend/solanaSupply/4-Transfer.tsx +28 -4
- package/src/components/Lend/solanaSupply/index.tsx +4 -0
- package/src/index.tsx +26 -0
package/dist/index.d.ts
CHANGED
|
@@ -338,6 +338,21 @@ interface SolanaPaymentProps {
|
|
|
338
338
|
handleSuccess?: () => void;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
+
/**
|
|
342
|
+
* Lend pool supply props
|
|
343
|
+
* @typedef {Object} SolanaEnableAutoRedemptionProps
|
|
344
|
+
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
345
|
+
* @property {SolanaPoolState} poolState The current state config of the pool.
|
|
346
|
+
* @property {function((CloseModalOptions|undefined)):void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
347
|
+
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
348
|
+
*/
|
|
349
|
+
interface SolanaEnableAutoRedemptionProps {
|
|
350
|
+
poolInfo: SolanaPoolInfo;
|
|
351
|
+
poolState: SolanaPoolState;
|
|
352
|
+
handleClose: (options?: CloseModalOptions) => void;
|
|
353
|
+
handleSuccess?: () => void;
|
|
354
|
+
}
|
|
355
|
+
|
|
341
356
|
type Props = {
|
|
342
357
|
chainId: number | undefined;
|
|
343
358
|
children?: any;
|
|
@@ -673,5 +688,16 @@ type SolanaPaymentWidgetProps = SolanaPaymentProps & SolanaWidgetProps;
|
|
|
673
688
|
* @param {SolanaPaymentWidgetProps} props - Widget props
|
|
674
689
|
*/
|
|
675
690
|
declare function SolanaPaymentWidget(props: SolanaPaymentWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
691
|
+
/**
|
|
692
|
+
* Lend pool supply widget props for Solana pools
|
|
693
|
+
* @typedef {Object} SolanaEnableAutoRedemptionWidgetProps
|
|
694
|
+
*/
|
|
695
|
+
type SolanaEnableAutoRedemptionWidgetProps = SolanaEnableAutoRedemptionProps & SolanaWidgetProps;
|
|
696
|
+
/**
|
|
697
|
+
* Lend pool supply widget for Solana pools
|
|
698
|
+
*
|
|
699
|
+
* @param {SolanaEnableAutoRedemptionWidgetProps} props - Widget props
|
|
700
|
+
*/
|
|
701
|
+
declare function SolanaEnableAutoRedemptionWidget(props: SolanaEnableAutoRedemptionWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
676
702
|
|
|
677
|
-
export { AddRedemptionWidgetV2, AutoPaybackWidgetV2, CancelRedemptionWidgetV2, CreditLineApproveWidget, CreditLineBorrowWidget, CreditLineBorrowWidgetV2, CreditLinePaymentWidget, CreditLinePaymentWidgetV2, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendSupplyWidgetV2, LendWithdrawWidget, LendWithdrawWidgetV2, NotifiContextWrapper, ReceivableBackedCreditLineBorrowWidgetV2, ReceivableBackedCreditLinePaymentWidgetV2, SolanaBorrowWidget, SolanaLendAddRedemptionWidget, SolanaLendCancelRedemptionWidget, SolanaLendSupplyWidget, SolanaPaymentWidget, SuperfluidFactoringWidget, SupplyFirstLossCoverWidget };
|
|
703
|
+
export { AddRedemptionWidgetV2, AutoPaybackWidgetV2, CancelRedemptionWidgetV2, CreditLineApproveWidget, CreditLineBorrowWidget, CreditLineBorrowWidgetV2, CreditLinePaymentWidget, CreditLinePaymentWidgetV2, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendSupplyWidgetV2, LendWithdrawWidget, LendWithdrawWidgetV2, NotifiContextWrapper, ReceivableBackedCreditLineBorrowWidgetV2, ReceivableBackedCreditLinePaymentWidgetV2, SolanaBorrowWidget, SolanaEnableAutoRedemptionWidget, SolanaLendAddRedemptionWidget, SolanaLendCancelRedemptionWidget, SolanaLendSupplyWidget, SolanaPaymentWidget, SuperfluidFactoringWidget, SupplyFirstLossCoverWidget };
|