@huma-finance/widgets 0.0.38-beta.27 → 0.0.38-beta.40

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 (2) hide show
  1. package/API.md +121 -121
  2. package/package.json +6 -5
package/API.md CHANGED
@@ -1,10 +1,3 @@
1
- ## Members
2
-
3
- <dl>
4
- <dt><a href="#ChainEnum">ChainEnum</a></dt>
5
- <dd><p>Updates cy.visit() to include an injected window.ethereum provider.</p></dd>
6
- </dl>
7
-
8
1
  ## Functions
9
2
 
10
3
  <dl>
@@ -25,9 +18,6 @@ To be used when re-enabling autopay and other pool actions that require allowanc
25
18
  <dd><p>Lend withdraw widget</p></dd>
26
19
  <dt><a href="#SuperfluidFactoringWidget">SuperfluidFactoringWidget(props)</a> ⇒</dt>
27
20
  <dd><p>Superfluid factoring widget</p></dd>
28
- <dt><a href="#components">components()</a></dt>
29
- <dd><p>This file can be used to override default props and styles on the various Material components
30
- see: https://mui.com/customization/theme-components/</p></dd>
31
21
  </dl>
32
22
 
33
23
  ## Typedefs
@@ -67,338 +57,348 @@ see: https://mui.com/customization/theme-components/</p></dd>
67
57
  <dd><p>Lend pool withdraw widget props</p></dd>
68
58
  </dl>
69
59
 
70
- <a name="ChainEnum"></a>
71
-
72
- ## ChainEnum
73
- <p>Updates cy.visit() to include an injected window.ethereum provider.</p>
74
-
75
- **Kind**: global variable
76
60
  <a name="InvoiceFactoringBorrowWidget"></a>
77
61
 
78
62
  ## InvoiceFactoringBorrowWidget(props) ⇒
63
+
79
64
  <p>Invoice factoring borrow widget</p>
80
65
 
81
66
  **Kind**: global function
82
- **Returns**: <p>Invoice factoring pool borrow widget component</p>
67
+ **Returns**: <p>Invoice factoring pool borrow widget component</p>
83
68
 
84
- | Param | Type | Description |
85
- | --- | --- | --- |
69
+ | Param | Type | Description |
70
+ | ----- | ------------------------------------------------------------------------------------ | ------------------------------------------------------ |
86
71
  | props | [<code>InvoiceFactoringBorrowWidgetProps</code>](#InvoiceFactoringBorrowWidgetProps) | <p>The invoice factoring pool borrow widget props.</p> |
87
72
 
88
73
  <a name="InvoiceFactoringPaymentWidget"></a>
89
74
 
90
75
  ## InvoiceFactoringPaymentWidget(props) ⇒
76
+
91
77
  <p>Invoice factoring payment widget</p>
92
78
 
93
79
  **Kind**: global function
94
- **Returns**: <p>Invoice factoring pool payment widget component</p>
80
+ **Returns**: <p>Invoice factoring pool payment widget component</p>
95
81
 
96
- | Param | Type | Description |
97
- | --- | --- | --- |
82
+ | Param | Type | Description |
83
+ | ----- | -------------------------------------------------------------------------------------- | ------------------------------------------------------- |
98
84
  | props | [<code>InvoiceFactoringPaymentWidgetProps</code>](#InvoiceFactoringPaymentWidgetProps) | <p>The invoice factoring pool payment widget props.</p> |
99
85
 
100
86
  <a name="CreditLineBorrowWidget"></a>
101
87
 
102
88
  ## CreditLineBorrowWidget(props) ⇒
89
+
103
90
  <p>Credit line borrow widget</p>
104
91
 
105
92
  **Kind**: global function
106
- **Returns**: <p>Credit line pool borrow widget component</p>
93
+ **Returns**: <p>Credit line pool borrow widget component</p>
107
94
 
108
- | Param | Type | Description |
109
- | --- | --- | --- |
95
+ | Param | Type | Description |
96
+ | ----- | ------------------------------------------------------------------------ | ------------------------------------------------ |
110
97
  | props | [<code>CreditLineBorrowWidgetProps</code>](#CreditLineBorrowWidgetProps) | <p>The credit line pool borrow widget props.</p> |
111
98
 
112
99
  <a name="CreditLinePaymentWidget"></a>
113
100
 
114
101
  ## CreditLinePaymentWidget(props) ⇒
102
+
115
103
  <p>Credit line payment widget</p>
116
104
 
117
105
  **Kind**: global function
118
- **Returns**: <p>Credit line pool payment widget component</p>
106
+ **Returns**: <p>Credit line pool payment widget component</p>
119
107
 
120
- | Param | Type | Description |
121
- | --- | --- | --- |
108
+ | Param | Type | Description |
109
+ | ----- | -------------------------------------------------------------------------- | ------------------------------------------------- |
122
110
  | props | [<code>CreditLinePaymentWidgetProps</code>](#CreditLinePaymentWidgetProps) | <p>The credit line pool payment widget props.</p> |
123
111
 
124
112
  <a name="CreditLineApproveWidget"></a>
125
113
 
126
114
  ## CreditLineApproveWidget(props) ⇒
115
+
127
116
  <p>Credit line allowance approve widget to top up a pool's ERC20 token allowance.
128
117
  To be used when re-enabling autopay and other pool actions that require allowance.</p>
129
118
 
130
119
  **Kind**: global function
131
- **Returns**: <p>Credit line pool approve widget component</p>
120
+ **Returns**: <p>Credit line pool approve widget component</p>
132
121
 
133
- | Param | Type | Description |
134
- | --- | --- | --- |
122
+ | Param | Type | Description |
123
+ | ----- | ----------------------------------------- | ------------------------------------------------- |
135
124
  | props | <code>CreditLineApproveWidgetProps</code> | <p>The credit line pool approve widget props.</p> |
136
125
 
137
126
  <a name="LendSupplyWidget"></a>
138
127
 
139
128
  ## LendSupplyWidget(props) ⇒
129
+
140
130
  <p>Lend supply widget</p>
141
131
 
142
132
  **Kind**: global function
143
- **Returns**: <p>Lend pool supply widget component</p>
133
+ **Returns**: <p>Lend pool supply widget component</p>
144
134
 
145
- | Param | Type | Description |
146
- | --- | --- | --- |
135
+ | Param | Type | Description |
136
+ | ----- | ------------------------------------------------------------ | ----------------------------------------- |
147
137
  | props | [<code>LendSupplyWidgetProps</code>](#LendSupplyWidgetProps) | <p>The lend pool supply widget props.</p> |
148
138
 
149
139
  <a name="LendWithdrawWidget"></a>
150
140
 
151
141
  ## LendWithdrawWidget(props) ⇒
142
+
152
143
  <p>Lend withdraw widget</p>
153
144
 
154
145
  **Kind**: global function
155
- **Returns**: <p>Lend pool withdraw widget component</p>
146
+ **Returns**: <p>Lend pool withdraw widget component</p>
156
147
 
157
- | Param | Type | Description |
158
- | --- | --- | --- |
148
+ | Param | Type | Description |
149
+ | ----- | ---------------------------------------------------------------- | ------------------------------------------ |
159
150
  | props | [<code>LendWithdrawWidgetProps</code>](#LendWithdrawWidgetProps) | <p>The lend pool withdraw widget props</p> |
160
151
 
161
152
  <a name="SuperfluidFactoringWidget"></a>
162
153
 
163
154
  ## SuperfluidFactoringWidget(props) ⇒
155
+
164
156
  <p>Superfluid factoring widget</p>
165
157
 
166
158
  **Kind**: global function
167
- **Returns**: <p>Superfluid factoring widget component</p>
159
+ **Returns**: <p>Superfluid factoring widget component</p>
168
160
 
169
- | Param | Type | Description |
170
- | --- | --- | --- |
161
+ | Param | Type | Description |
162
+ | ----- | ---------------------------------------- | --------------------------------------------- |
171
163
  | props | [<code>WidgetProps</code>](#WidgetProps) | <p>The superfluid factoring widget props.</p> |
172
164
 
173
- <a name="components"></a>
174
-
175
- ## components()
176
- <p>This file can be used to override default props and styles on the various Material components
177
- see: https://mui.com/customization/theme-components/</p>
178
-
179
- **Kind**: global function
180
165
  <a name="CreditLineApproveProps"></a>
181
166
 
182
167
  ## CreditLineApproveProps : <code>Object</code>
168
+
183
169
  <p>Credit line pool approve allowance props</p>
184
170
 
185
171
  **Kind**: global typedef
186
172
  **Properties**
187
173
 
188
- | Name | Type | Description |
189
- | --- | --- | --- |
190
- | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
191
- | poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
192
- | amount | <code>BigNumberish</code> \| <code>undefined</code> | <p>The amount to approve.</p> |
193
- | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
194
- | handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool approve allowance action is successful.</p> |
174
+ | Name | Type | Description |
175
+ | ------------- | --------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
176
+ | poolName | <code>POOL_NAME</code> | <p>The name of the pool.</p> |
177
+ | poolType | <code>POOL_TYPE</code> | <p>The type of the pool.</p> |
178
+ | amount | <code>BigNumberish</code> \| <code>undefined</code> | <p>The amount to approve.</p> |
179
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
180
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool approve allowance action is successful.</p> |
195
181
 
196
182
  <a name="CreditLineBorrowProps"></a>
197
183
 
198
184
  ## CreditLineBorrowProps : <code>Object</code>
185
+
199
186
  <p>Credit line pool borrow props</p>
200
187
 
201
188
  **Kind**: global typedef
202
189
  **Properties**
203
190
 
204
- | Name | Type | Description |
205
- | --- | --- | --- |
206
- | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
207
- | poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
208
- | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
209
- | handleApprove | <code>function</code> | <p>Optional function to notify when user is approved successfully to borrow again pool.</p> |
210
- | handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool borrow action is successful.</p> |
191
+ | Name | Type | Description |
192
+ | ------------- | ---------------------- | ------------------------------------------------------------------------------------------- |
193
+ | poolName | <code>POOL_NAME</code> | <p>The name of the pool.</p> |
194
+ | poolType | <code>POOL_TYPE</code> | <p>The type of the pool.</p> |
195
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
196
+ | handleApprove | <code>function</code> | <p>Optional function to notify when user is approved successfully to borrow again pool.</p> |
197
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool borrow action is successful.</p> |
211
198
 
212
199
  <a name="CreditLinePaymentProps"></a>
213
200
 
214
201
  ## CreditLinePaymentProps : <code>Object</code>
202
+
215
203
  <p>Credit line pool payment props</p>
216
204
 
217
205
  **Kind**: global typedef
218
206
  **Properties**
219
207
 
220
- | Name | Type | Description |
221
- | --- | --- | --- |
222
- | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
223
- | poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
224
- | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
225
- | handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool payment action is successful.</p> |
208
+ | Name | Type | Description |
209
+ | ------------- | ---------------------- | ------------------------------------------------------------------------------------------ |
210
+ | poolName | <code>POOL_NAME</code> | <p>The name of the pool.</p> |
211
+ | poolType | <code>POOL_TYPE</code> | <p>The type of the pool.</p> |
212
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
213
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool payment action is successful.</p> |
226
214
 
227
215
  <a name="InvoiceFactoringBorrowProps"></a>
228
216
 
229
217
  ## InvoiceFactoringBorrowProps : <code>Object</code>
218
+
230
219
  <p>Invoice factoring pool borrow props</p>
231
220
 
232
221
  **Kind**: global typedef
233
222
  **Properties**
234
223
 
235
- | Name | Type | Description |
236
- | --- | --- | --- |
237
- | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
238
- | poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
239
- | tokenId | <code>string</code> \| <code>BigNumber</code> | <p>The NFT token id representing invoice.</p> |
240
- | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
241
- | handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool borrow action is successful.</p> |
224
+ | Name | Type | Description |
225
+ | ------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------ |
226
+ | poolName | <code>POOL_NAME</code> | <p>The name of the pool.</p> |
227
+ | poolType | <code>POOL_TYPE</code> | <p>The type of the pool.</p> |
228
+ | tokenId | <code>string</code> \| <code>BigNumber</code> | <p>The NFT token id representing invoice.</p> |
229
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
230
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool borrow action is successful.</p> |
242
231
 
243
232
  <a name="InvoiceFactoringPaymentProps"></a>
244
233
 
245
234
  ## InvoiceFactoringPaymentProps : <code>Object</code>
235
+
246
236
  <p>Invoice factoring pool payment props</p>
247
237
 
248
238
  **Kind**: global typedef
249
239
  **Properties**
250
240
 
251
- | Name | Type | Description |
252
- | --- | --- | --- |
253
- | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
254
- | poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
255
- | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
256
- | handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool payment action is successful.</p> |
241
+ | Name | Type | Description |
242
+ | ------------- | ---------------------- | ------------------------------------------------------------------------------------------ |
243
+ | poolName | <code>POOL_NAME</code> | <p>The name of the pool.</p> |
244
+ | poolType | <code>POOL_TYPE</code> | <p>The type of the pool.</p> |
245
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
246
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool payment action is successful.</p> |
257
247
 
258
248
  <a name="LendSupplyProps"></a>
259
249
 
260
250
  ## LendSupplyProps : <code>Object</code>
251
+
261
252
  <p>Lend pool supply props</p>
262
253
 
263
254
  **Kind**: global typedef
264
255
  **Properties**
265
256
 
266
- | Name | Type | Description |
267
- | --- | --- | --- |
268
- | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
269
- | poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
270
- | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
271
- | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
257
+ | Name | Type | Description |
258
+ | ------------- | ---------------------- | ------------------------------------------------------------------------------------------ |
259
+ | poolName | <code>POOL_NAME</code> | <p>The name of the pool.</p> |
260
+ | poolType | <code>POOL_TYPE</code> | <p>The type of the pool.</p> |
261
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
262
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
272
263
 
273
264
  <a name="LendWithdrawProps"></a>
274
265
 
275
266
  ## LendWithdrawProps : <code>Object</code>
267
+
276
268
  <p>Lend pool withdraw props</p>
277
269
 
278
270
  **Kind**: global typedef
279
271
  **Properties**
280
272
 
281
- | Name | Type | Description |
282
- | --- | --- | --- |
283
- | poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
284
- | poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
285
- | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
286
- | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
273
+ | Name | Type | Description |
274
+ | ------------- | ---------------------- | ------------------------------------------------------------------------------------------ |
275
+ | poolName | <code>POOL_NAME</code> | <p>The name of the pool.</p> |
276
+ | poolType | <code>POOL_TYPE</code> | <p>The type of the pool.</p> |
277
+ | handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
278
+ | handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
287
279
 
288
280
  <a name="JsonRpcConnectionMap"></a>
289
281
 
290
282
  ## JsonRpcConnectionMap : <code>Object</code>
283
+
291
284
  <p>Mapping of your JSON-RPC connections indexed by chainId</p>
292
285
 
293
286
  **Kind**: global typedef
294
287
  **Properties**
295
288
 
296
- | Name | Type | Description |
297
- | --- | --- | --- |
289
+ | Name | Type | Description |
290
+ | ------- | ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
298
291
  | chainId | <code>Object.&lt;number, (string\|Array.&lt;string&gt;\|JsonRpcProvider\|Array.&lt;JsonRpcProvider&gt;)&gt;</code> | <p>Chain id to map the JSON-RPC URL/URLs or JsonRpcProvider/JsonRpcProviders</p> |
299
292
 
300
293
  <a name="WidgetProps"></a>
301
294
 
302
295
  ## WidgetProps : <code>Object</code>
296
+
303
297
  <p>Object representing the props passed to web3 provider</p>
304
298
 
305
299
  **Kind**: global typedef
306
300
  **Properties**
307
301
 
308
- | Name | Type | Description |
309
- | --- | --- | --- |
310
- | desiredChainId | <code>desiredChainId</code> \| <code>undefined</code> | <p>Optional desired chain id, will trigger the switch network action if different from the current chain id</p> |
311
- | jsonRpcUrlMap | [<code>JsonRpcConnectionMap</code>](#JsonRpcConnectionMap) \| <code>undefined</code> | <p>Optional mapping of your JSON-RPC connections indexed by chainId</p> |
312
- | provider | <code>Eip1193Provider</code> \| <code>JsonRpcProviderl</code> | <p>EIP-1193 provider or JsonRpc Provider</p> |
302
+ | Name | Type | Description |
303
+ | -------------- | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- |
304
+ | desiredChainId | <code>desiredChainId</code> \| <code>undefined</code> | <p>Optional desired chain id, will trigger the switch network action if different from the current chain id</p> |
305
+ | jsonRpcUrlMap | [<code>JsonRpcConnectionMap</code>](#JsonRpcConnectionMap) \| <code>undefined</code> | <p>Optional mapping of your JSON-RPC connections indexed by chainId</p> |
306
+ | provider | <code>Eip1193Provider</code> \| <code>JsonRpcProviderl</code> | <p>EIP-1193 provider or JsonRpc Provider</p> |
313
307
 
314
308
  <a name="InvoiceFactoringBorrowWidgetProps"></a>
315
309
 
316
310
  ## InvoiceFactoringBorrowWidgetProps : <code>Object</code>
311
+
317
312
  <p>Invoice factoring pool borrow widget props</p>
318
313
 
319
314
  **Kind**: global typedef
320
315
  **Properties**
321
316
 
322
- | Name | Type | Description |
323
- | --- | --- | --- |
317
+ | Name | Type | Description |
318
+ | --------------------------- | ------------------------------------------------------------------------ | ------------------------------------------- |
324
319
  | InvoiceFactoringBorrowProps | [<code>InvoiceFactoringBorrowProps</code>](#InvoiceFactoringBorrowProps) | <p>Invoice factoring pool borrow props.</p> |
325
- | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
320
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
326
321
 
327
322
  <a name="InvoiceFactoringPaymentWidgetProps"></a>
328
323
 
329
324
  ## InvoiceFactoringPaymentWidgetProps : <code>Object</code>
325
+
330
326
  <p>Invoice factoring pool payment widget props</p>
331
327
 
332
328
  **Kind**: global typedef
333
329
  **Properties**
334
330
 
335
- | Name | Type | Description |
336
- | --- | --- | --- |
331
+ | Name | Type | Description |
332
+ | ---------------------------- | -------------------------------------------------------------------------- | -------------------------------------------- |
337
333
  | InvoiceFactoringPaymentProps | [<code>InvoiceFactoringPaymentProps</code>](#InvoiceFactoringPaymentProps) | <p>Invoice factoring pool payment props.</p> |
338
- | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
334
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
339
335
 
340
336
  <a name="CreditLineBorrowWidgetProps"></a>
341
337
 
342
338
  ## CreditLineBorrowWidgetProps : <code>Object</code>
339
+
343
340
  <p>Credit line pool borrow widget props</p>
344
341
 
345
342
  **Kind**: global typedef
346
343
  **Properties**
347
344
 
348
- | Name | Type | Description |
349
- | --- | --- | --- |
345
+ | Name | Type | Description |
346
+ | --------------------- | ------------------------------------------------------------ | ------------------------------------- |
350
347
  | CreditLineBorrowProps | [<code>CreditLineBorrowProps</code>](#CreditLineBorrowProps) | <p>Credit line pool borrow props.</p> |
351
- | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
348
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
352
349
 
353
350
  <a name="CreditLinePaymentWidgetProps"></a>
354
351
 
355
352
  ## CreditLinePaymentWidgetProps : <code>Object</code>
353
+
356
354
  <p>Credit line pool payment widget props</p>
357
355
 
358
356
  **Kind**: global typedef
359
357
  **Properties**
360
358
 
361
- | Name | Type | Description |
362
- | --- | --- | --- |
359
+ | Name | Type | Description |
360
+ | ---------------------- | -------------------------------------------------------------- | -------------------------------------- |
363
361
  | CreditLinePaymentProps | [<code>CreditLinePaymentProps</code>](#CreditLinePaymentProps) | <p>Credit line pool payment props.</p> |
364
- | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
362
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
365
363
 
366
364
  <a name="CreditLinePaymentWidgetProps"></a>
367
365
 
368
366
  ## CreditLinePaymentWidgetProps : <code>Object</code>
367
+
369
368
  <p>Credit line allowance approval widget props</p>
370
369
 
371
370
  **Kind**: global typedef
372
371
  **Properties**
373
372
 
374
- | Name | Type | Description |
375
- | --- | --- | --- |
373
+ | Name | Type | Description |
374
+ | ---------------------- | -------------------------------------------------------------- | ------------------------------------------- |
376
375
  | CreditLineApproveProps | [<code>CreditLineApproveProps</code>](#CreditLineApproveProps) | <p>Credit line allowance approve props.</p> |
377
- | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
376
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
378
377
 
379
378
  <a name="LendSupplyWidgetProps"></a>
380
379
 
381
380
  ## LendSupplyWidgetProps : <code>Object</code>
381
+
382
382
  <p>Lend pool supply widget props</p>
383
383
 
384
384
  **Kind**: global typedef
385
385
  **Properties**
386
386
 
387
- | Name | Type | Description |
388
- | --- | --- | --- |
387
+ | Name | Type | Description |
388
+ | --------------- | ------------------------------------------------ | ------------------------------ |
389
389
  | LendSupplyProps | [<code>LendSupplyProps</code>](#LendSupplyProps) | <p>Lend pool supply props.</p> |
390
- | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
390
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
391
391
 
392
392
  <a name="LendWithdrawWidgetProps"></a>
393
393
 
394
394
  ## LendWithdrawWidgetProps : <code>Object</code>
395
+
395
396
  <p>Lend pool withdraw widget props</p>
396
397
 
397
398
  **Kind**: global typedef
398
399
  **Properties**
399
400
 
400
- | Name | Type | Description |
401
- | --- | --- | --- |
401
+ | Name | Type | Description |
402
+ | ----------------- | ---------------------------------------------------- | -------------------------------- |
402
403
  | LendWithdrawProps | [<code>LendWithdrawProps</code>](#LendWithdrawProps) | <p>Lend pool withdraw props.</p> |
403
- | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
404
-
404
+ | WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.38-beta.27+d33faeb",
3
+ "version": "0.0.38-beta.40+26ed627",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,8 +30,8 @@
30
30
  "@ethersproject/experimental": "^5.7.0",
31
31
  "@ethersproject/providers": "^5.6.0",
32
32
  "@ethersproject/units": "^5.6.0",
33
- "@huma-finance/sdk": "^0.0.38-beta.27+d33faeb",
34
- "@huma-finance/shared": "^0.0.38-beta.27+d33faeb",
33
+ "@huma-finance/sdk": "^0.0.38-beta.40+26ed627",
34
+ "@huma-finance/shared": "^0.0.38-beta.40+26ed627",
35
35
  "@mui/icons-material": "^5.3.0",
36
36
  "@mui/material": "^5.0.6",
37
37
  "@mui/styles": "^5.0.2",
@@ -86,7 +86,7 @@
86
86
  "lint": "eslint --max-warnings=0 \"src/**/*.{js,ts,tsx,graphql}\"",
87
87
  "lint-staged": "lint-staged",
88
88
  "e2e": "cypress run --config baseUrl=http://localhost:8000 --headed --browser chrome --e2e",
89
- "generateDocs": "jsdoc2md --files src/**/* --configure ./jsdoc2md.json > API.md",
89
+ "generateDocs": "jsdoc2md --files \"src/**/*.tsx\" --configure ./jsdoc2md.json > API.md",
90
90
  "contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"",
91
91
  "prettier": "prettier --write \"src/**/*.{js,ts,tsx,graphql}\""
92
92
  },
@@ -97,6 +97,7 @@
97
97
  },
98
98
  "lint-staged": {
99
99
  "src/**/*.{js,ts,tsx,css,sass,less,graphql}": [
100
+ "yarn generateDocs",
100
101
  "eslint --fix --max-warnings=0",
101
102
  "prettier --write",
102
103
  "git add ."
@@ -193,5 +194,5 @@
193
194
  "optionalDependencies": {
194
195
  "encoding": "^0.1.13"
195
196
  },
196
- "gitHead": "d33faebe2d549da8f19d400821cb073af700ef96"
197
+ "gitHead": "26ed627966ef677f1e749a1209164d4a13fee78a"
197
198
  }