@huma-finance/widgets 0.0.59-beta.494 → 0.0.59-beta.511
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 +2 -0
- package/dist/cjs/index.cjs +967 -191
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +968 -193
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
- package/src/components/ChooseAmountModal.tsx +2 -3
- package/src/components/ConfirmTransferModal.tsx +1 -1
- package/src/components/ErrorModal.tsx +1 -1
- package/src/components/InputAmountModal.tsx +2 -2
- package/src/components/Lend/supplyV2/2-Evaluation.tsx +31 -329
- package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +58 -9
- package/src/components/Lend/supplyV2/6-Success.tsx +49 -6
- package/src/components/Lend/supplyV2/7-Notifications.tsx +22 -3
- package/src/components/Lend/supplyV2/8-PointsEarned.tsx +231 -0
- package/src/components/Lend/supplyV2/components/PersonaEvaluation.tsx +442 -0
- package/src/components/Lend/supplyV2/components/SecuritizeEvaluation.tsx +345 -0
- package/src/components/Lend/supplyV2/index.tsx +67 -5
- package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +1 -1
- package/src/components/SignIn.tsx +7 -2
- package/src/components/TxDoneModal.tsx +21 -2
- package/src/components/humaModal/HumaModal.tsx +1 -0
- package/src/components/humaModal/HumaModalHeader.tsx +1 -0
- package/src/components/icons/congratulations.svg +54 -0
- package/src/components/icons/huma-points.svg +15 -0
- package/src/components/icons/index.tsx +15 -0
- package/src/components/icons/ribbon.svg +9 -0
- package/src/store/widgets.reducers.ts +0 -1
- package/src/store/widgets.store.ts +1 -0
- package/src/theme/palette.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -180,15 +180,23 @@ interface LendSupplyProps {
|
|
|
180
180
|
handleSuccess?: (blockNumber?: number) => void;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
interface Campaign {
|
|
184
|
+
id: string;
|
|
185
|
+
campaignGroupId: string;
|
|
186
|
+
}
|
|
183
187
|
/**
|
|
184
188
|
* Lend pool supply props
|
|
185
189
|
* @typedef {Object} LendSupplyPropsV2
|
|
186
190
|
* @property {POOL_NAME} poolName The name of the pool.
|
|
191
|
+
* @property {boolean} pointsTestnetExperience If the user is in the testnet experience.
|
|
192
|
+
* @property {Campaign} campaign The campaign info.
|
|
187
193
|
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
188
194
|
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
189
195
|
*/
|
|
190
196
|
interface LendSupplyPropsV2 {
|
|
191
197
|
poolName: keyof typeof POOL_NAME;
|
|
198
|
+
pointsTestnetExperience: boolean;
|
|
199
|
+
campaign?: Campaign;
|
|
192
200
|
handleClose: () => void;
|
|
193
201
|
handleSuccess?: (blockNumber?: number) => void;
|
|
194
202
|
}
|