@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/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 };