@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.
Files changed (26) hide show
  1. package/API.md +0 -18
  2. package/dist/cjs/index.cjs +5488 -5814
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/index.d.ts +1 -33
  5. package/dist/index.js +5490 -5815
  6. package/dist/index.js.map +1 -1
  7. package/package.json +4 -7
  8. package/src/components/ApproveAllowanceModal.tsx +7 -0
  9. package/src/components/Lend/withdraw/2-ChooseAmount.tsx +7 -1
  10. package/src/components/Lend/withdraw/index.tsx +11 -4
  11. package/src/components/StreamFactoring/borrow/1-Evaluation.tsx +4 -3
  12. package/src/components/StreamFactoring/borrow/2-ChooseAmount.tsx +21 -15
  13. package/src/components/StreamFactoring/borrow/3-ConfirmTransfer.tsx +3 -8
  14. package/src/components/StreamFactoring/borrow/5-Permit.tsx +2 -35
  15. package/src/components/StreamFactoring/borrow/index.tsx +2 -3
  16. package/src/components/SuperfluidFactoring/SuperfluidFactoredList.tsx +2 -2
  17. package/src/components/SuperfluidFactoring/SuperfluidUpcomingList.tsx +3 -1
  18. package/src/index.tsx +11 -33
  19. package/src/components/RequestNetworkInvoiceFactoring/1-Evaluation.tsx +0 -58
  20. package/src/components/RequestNetworkInvoiceFactoring/2-ChooseAmount.tsx +0 -88
  21. package/src/components/RequestNetworkInvoiceFactoring/3-ConfirmTransfer.tsx +0 -37
  22. package/src/components/RequestNetworkInvoiceFactoring/4-ApproveNFT.tsx +0 -55
  23. package/src/components/RequestNetworkInvoiceFactoring/5-Transfer.tsx +0 -34
  24. package/src/components/RequestNetworkInvoiceFactoring/6-Success.tsx +0 -20
  25. package/src/components/RequestNetworkInvoiceFactoring/index.tsx +0 -137
  26. 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, RequestNetworkInvoiceFactoringBorrowWidget, SuperfluidFactoringWidget };
246
+ export { CreditLineApproveWidget, CreditLineBorrowWidget, CreditLinePaymentWidget, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendWithdrawWidget, SuperfluidFactoringWidget };