@huma-finance/widgets 0.0.48-beta.187 → 0.0.48-beta.189
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 -18
- package/dist/cjs/index.cjs +5488 -5814
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -33
- package/dist/index.js +5490 -5815
- package/dist/index.js.map +1 -1
- package/package.json +4 -7
- package/src/components/ApproveAllowanceModal.tsx +7 -0
- package/src/components/Lend/withdraw/2-ChooseAmount.tsx +7 -1
- package/src/components/Lend/withdraw/index.tsx +11 -4
- package/src/components/StreamFactoring/borrow/1-Evaluation.tsx +4 -3
- package/src/components/StreamFactoring/borrow/2-ChooseAmount.tsx +21 -15
- package/src/components/StreamFactoring/borrow/3-ConfirmTransfer.tsx +3 -8
- package/src/components/StreamFactoring/borrow/5-Permit.tsx +2 -35
- package/src/components/StreamFactoring/borrow/index.tsx +2 -3
- package/src/components/SuperfluidFactoring/SuperfluidFactoredList.tsx +2 -2
- package/src/components/SuperfluidFactoring/SuperfluidUpcomingList.tsx +3 -1
- package/src/index.tsx +11 -33
- package/src/components/RequestNetworkInvoiceFactoring/1-Evaluation.tsx +0 -58
- package/src/components/RequestNetworkInvoiceFactoring/2-ChooseAmount.tsx +0 -88
- package/src/components/RequestNetworkInvoiceFactoring/3-ConfirmTransfer.tsx +0 -37
- package/src/components/RequestNetworkInvoiceFactoring/4-ApproveNFT.tsx +0 -55
- package/src/components/RequestNetworkInvoiceFactoring/5-Transfer.tsx +0 -34
- package/src/components/RequestNetworkInvoiceFactoring/6-Success.tsx +0 -20
- package/src/components/RequestNetworkInvoiceFactoring/index.tsx +0 -137
- package/src/cosmos/RequestNetworkBorrow.fixture.tsx +0 -65
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { JsonRpcProvider } from '@ethersproject/providers';
|
|
|
3
3
|
import { Provider } from '@web3-react/types';
|
|
4
4
|
import { POOL_NAME, POOL_TYPE } from '@huma-finance/shared';
|
|
5
5
|
import { BigNumberish, BigNumber } from 'ethers';
|
|
6
|
-
import { RequestLogicTypes } from '@requestnetwork/types';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* Credit line pool approve allowance props
|
|
@@ -116,23 +115,6 @@ type LendWithdrawProps = {
|
|
|
116
115
|
handleSuccess?: (blockNumber?: number) => void;
|
|
117
116
|
};
|
|
118
117
|
|
|
119
|
-
/**
|
|
120
|
-
* Invoice factoring pool borrow props
|
|
121
|
-
* @typedef {Object} RequestNetworkInvoiceFactoringBorrowProps
|
|
122
|
-
* @property {POOL_NAME} poolName The name of the pool.
|
|
123
|
-
* @property {POOL_TYPE} poolType The type of the pool.
|
|
124
|
-
* @property {string|BigNumber} tokenId The NFT token id representing invoice.
|
|
125
|
-
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
126
|
-
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the invoice pool borrow action is successful.
|
|
127
|
-
*/
|
|
128
|
-
interface RequestNetworkInvoiceFactoringBorrowProps {
|
|
129
|
-
poolName: keyof typeof POOL_NAME;
|
|
130
|
-
poolType: keyof typeof POOL_TYPE;
|
|
131
|
-
requestId: RequestLogicTypes.RequestId;
|
|
132
|
-
handleClose: () => void;
|
|
133
|
-
handleSuccess?: (blockNumber?: number) => void;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
118
|
/**
|
|
137
119
|
* Mapping of your JSON-RPC connections indexed by chainId
|
|
138
120
|
* @typedef {Object} JsonRpcConnectionMap
|
|
@@ -154,20 +136,6 @@ type WidgetProps = {
|
|
|
154
136
|
jsonRpcUrlMap?: JsonRpcConnectionMap;
|
|
155
137
|
provider: Provider | JsonRpcProvider;
|
|
156
138
|
};
|
|
157
|
-
/**
|
|
158
|
-
* Invoice factoring pool borrow widget props
|
|
159
|
-
* @typedef {Object} RequestNetworkInvoiceFactoringBorrowWidgetProps
|
|
160
|
-
* @property {RequestNetworkInvoiceFactoringBorrowProps} RequestNetworkInvoiceFactoringBorrowProps - Invoice factoring pool borrow props.
|
|
161
|
-
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
162
|
-
*/
|
|
163
|
-
type RequestNetworkInvoiceFactoringBorrowWidgetProps = RequestNetworkInvoiceFactoringBorrowProps & WidgetProps;
|
|
164
|
-
/**
|
|
165
|
-
* Invoice factoring borrow widget
|
|
166
|
-
*
|
|
167
|
-
* @param {RequestNetworkInvoiceFactoringBorrowWidgetProps} props - The invoice factoring pool borrow widget props.
|
|
168
|
-
* @returns Invoice factoring pool borrow widget component
|
|
169
|
-
*/
|
|
170
|
-
declare function RequestNetworkInvoiceFactoringBorrowWidget(props: RequestNetworkInvoiceFactoringBorrowWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
171
139
|
/**
|
|
172
140
|
* Invoice factoring pool borrow widget props
|
|
173
141
|
* @typedef {Object} InvoiceFactoringBorrowWidgetProps
|
|
@@ -275,4 +243,4 @@ declare function LendWithdrawWidget(props: LendWithdrawWidgetProps): _emotion_re
|
|
|
275
243
|
*/
|
|
276
244
|
declare function SuperfluidFactoringWidget(props: WidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
277
245
|
|
|
278
|
-
export { CreditLineApproveWidget, CreditLineBorrowWidget, CreditLinePaymentWidget, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendWithdrawWidget,
|
|
246
|
+
export { CreditLineApproveWidget, CreditLineBorrowWidget, CreditLinePaymentWidget, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendWithdrawWidget, SuperfluidFactoringWidget };
|