@huma-finance/widgets 0.0.76-beta.997 → 0.0.76-beta.999

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.js CHANGED
@@ -180820,7 +180820,7 @@ function PointsEarned({
180820
180820
  /* @__PURE__ */ jsx(RibbonIcon, {}),
180821
180821
  /* @__PURE__ */ jsxs(Box, { css: gr.ribbonContent, children: [
180822
180822
  /* @__PURE__ */ jsx(HumaPointsIcon, {}),
180823
- /* @__PURE__ */ jsx(Box, { children: dr ? `${formatNumber$1(lr)} Points` : "Points earned" })
180823
+ /* @__PURE__ */ jsx(Box, { children: dr ? `${formatNumber$1(lr)} Feathers` : "Feathers earned" })
180824
180824
  ] })
180825
180825
  ] }),
180826
180826
  /* @__PURE__ */ jsx(Box, { css: gr.entirePoints, children: dr ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
@@ -180828,11 +180828,11 @@ function PointsEarned({
180828
180828
  /* @__PURE__ */ jsxs(Box, { children: [
180829
180829
  "you've earned ",
180830
180830
  lr,
180831
- " points"
180831
+ " Feathers"
180832
180832
  ] })
180833
180833
  ] }) : /* @__PURE__ */ jsx(Box, { children: "Congratulations on joining the Huma Protocol!" }) }),
180834
180834
  /* @__PURE__ */ jsxs(Box, { css: gr.entirePointsDetails, children: [
180835
- "You'll earn points ",
180835
+ "You'll earn Feathers ",
180836
180836
  /* @__PURE__ */ jsx("span", { css: gr.everyday, children: "everyday" }),
180837
180837
  " for",
180838
180838
  " ",
@@ -182145,7 +182145,7 @@ function PersonaEvaluation({
182145
182145
  }
182146
182146
  ) : /* @__PURE__ */ jsxs(WrapperModal, { title: Br.title, children: [
182147
182147
  /* @__PURE__ */ jsx(Box, { css: Fr.iconWrapper, children: /* @__PURE__ */ jsx("img", { src: ApproveLenderImg, alt: "approve-lender" }) }),
182148
- or && Br === Ir.verifyIdentity ? /* @__PURE__ */ jsx(Box, { css: Fr.description, children: /* @__PURE__ */ jsx("span", { children: "You'll be rewarded with Huma points after completing KYC/KYB and your first investment." }) }) : /* @__PURE__ */ jsx(Box, { css: Fr.description, children: Br.description }),
182148
+ or && Br === Ir.verifyIdentity ? /* @__PURE__ */ jsx(Box, { css: Fr.description, children: /* @__PURE__ */ jsx("span", { children: "You'll be rewarded with Huma Feathers after completing KYC/KYB and your first investment." }) }) : /* @__PURE__ */ jsx(Box, { css: Fr.description, children: Br.description }),
182149
182149
  !!Br.buttonText && /* @__PURE__ */ jsx(BottomButton, { variant: "contained", onClick: Nr, children: Br.buttonText })
182150
182150
  ] });
182151
182151
  }
@@ -182493,7 +182493,7 @@ function Transfer$a({
182493
182493
  );
182494
182494
  lr(setPointsAccumulated(Vr.pointsAccumulated));
182495
182495
  } catch (Vr) {
182496
- console.error("Failed to update wallet points", Vr);
182496
+ console.error("Failed to update wallet Feathers", Vr);
182497
182497
  }
182498
182498
  lr(setStep(WIDGET_STEP.Done));
182499
182499
  },
@@ -182625,7 +182625,7 @@ function Success$8({
182625
182625
  subContent: gr(),
182626
182626
  chainId: ar.chainId,
182627
182627
  solanaSignature: pr,
182628
- buttonText: ur && !cr ? "VIEW POINTS" : "DONE"
182628
+ buttonText: ur && !cr ? "VIEW FEATHERS" : "DONE"
182629
182629
  }
182630
182630
  );
182631
182631
  }
@@ -227046,7 +227046,7 @@ function Transfer$6({
227046
227046
  );
227047
227047
  lr(setPointsAccumulated(Cr.pointsAccumulated));
227048
227048
  } catch (Cr) {
227049
- console.error("Failed to update wallet points", Cr);
227049
+ console.error("Failed to update wallet Feathers", Cr);
227050
227050
  }
227051
227051
  lr(setStep(WIDGET_STEP.Done));
227052
227052
  },
@@ -227094,7 +227094,7 @@ function Success$5({
227094
227094
  qr.unix()
227095
227095
  )}.`
227096
227096
  ];
227097
- }, Ur = () => Cr ? "WHAT'S NEXT" : ur ? "VIEW POINTS" : void 0;
227097
+ }, Ur = () => Cr ? "WHAT'S NEXT" : ur ? "VIEW FEATHERS" : void 0;
227098
227098
  return /* @__PURE__ */ jsx(
227099
227099
  TxDoneModal,
227100
227100
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.76-beta.997+f216ff7",
3
+ "version": "0.0.76-beta.999+326e78a",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,9 +22,9 @@
22
22
  "@ethersproject/contracts": "^5.7.0",
23
23
  "@ethersproject/experimental": "^5.7.0",
24
24
  "@ethersproject/units": "^5.6.0",
25
- "@huma-finance/sdk": "^0.0.76-beta.997+f216ff7",
26
- "@huma-finance/shared": "^0.0.76-beta.997+f216ff7",
27
- "@huma-finance/web-shared": "^0.0.76-beta.997+f216ff7",
25
+ "@huma-finance/sdk": "^0.0.76-beta.999+326e78a",
26
+ "@huma-finance/shared": "^0.0.76-beta.999+326e78a",
27
+ "@huma-finance/web-shared": "^0.0.76-beta.999+326e78a",
28
28
  "@mui/x-date-pickers": "^5.0.7",
29
29
  "@notifi-network/notifi-frontend-client": "^1.1.2",
30
30
  "@notifi-network/notifi-react": "^1.1.2",
@@ -190,5 +190,5 @@
190
190
  "optionalDependencies": {
191
191
  "encoding": "^0.1.13"
192
192
  },
193
- "gitHead": "f216ff72ba64f9c0fe457a9ee323fde5bd4ac0dd"
193
+ "gitHead": "326e78a9039744a01616bf400eebe40cbe0083f2"
194
194
  }
@@ -10,8 +10,8 @@ import {
10
10
  } from '@huma-finance/shared'
11
11
  import {
12
12
  AUTH_ERROR_TYPE,
13
- useAuthErrorHandling,
14
13
  checkIsDev,
14
+ useAuthErrorHandling,
15
15
  } from '@huma-finance/web-shared'
16
16
  import { Box, css, useTheme } from '@mui/material'
17
17
  import Persona, { Client } from 'persona'
@@ -345,7 +345,7 @@ export function PersonaEvaluation({
345
345
  {campaign && kycCopy === KYCCopies.verifyIdentity ? (
346
346
  <Box css={styles.description}>
347
347
  <span>
348
- You'll be rewarded with Huma points after completing KYC/KYB and
348
+ You'll be rewarded with Huma Feathers after completing KYC/KYB and
349
349
  your first investment.
350
350
  </span>
351
351
  </Box>
@@ -8,11 +8,11 @@ import {
8
8
  TrancheType,
9
9
  } from '@huma-finance/shared'
10
10
  import {
11
+ checkIsDev,
11
12
  SolanaPoolState,
12
13
  useHumaProgram,
13
14
  useLenderAccounts,
14
15
  useTrancheTokenAccounts,
15
- checkIsDev,
16
16
  } from '@huma-finance/web-shared'
17
17
  import {
18
18
  createApproveCheckedInstruction,
@@ -22,13 +22,13 @@ import {
22
22
  import { useWallet } from '@solana/wallet-adapter-react'
23
23
  import { ComputeBudgetProgram, PublicKey, Transaction } from '@solana/web3.js'
24
24
  import React, { useCallback, useEffect, useState } from 'react'
25
+ import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
25
26
  import { useAppDispatch, useAppSelector } from '../../../hooks/useRedux'
26
27
  import { setPointsAccumulated, setStep } from '../../../store/widgets.reducers'
27
28
  import { selectWidgetState } from '../../../store/widgets.selectors'
28
29
  import { WIDGET_STEP } from '../../../store/widgets.store'
29
30
  import { LoadingModal } from '../../LoadingModal'
30
31
  import { SolanaTxSendModal } from '../../SolanaTxSendModal'
31
- import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
32
32
 
33
33
  type Props = {
34
34
  poolInfo: SolanaPoolInfo
@@ -83,7 +83,7 @@ export function Transfer({
83
83
  )
84
84
  dispatch(setPointsAccumulated(result.pointsAccumulated))
85
85
  } catch (error) {
86
- console.error('Failed to update wallet points', error)
86
+ console.error('Failed to update wallet Feathers', error)
87
87
  }
88
88
  }
89
89
  dispatch(setStep(WIDGET_STEP.Done))
@@ -9,12 +9,12 @@ import dayjs from 'dayjs'
9
9
  import React, { useCallback } from 'react'
10
10
  import { useDispatch } from 'react-redux'
11
11
  import { Campaign } from '.'
12
+ import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
12
13
  import { useAppSelector } from '../../../hooks/useRedux'
13
14
  import { setStep } from '../../../store/widgets.reducers'
14
15
  import { selectWidgetState } from '../../../store/widgets.selectors'
15
16
  import { WIDGET_STEP } from '../../../store/widgets.store'
16
17
  import { SolanaTxDoneModal } from '../../SolanaTxDoneModal'
17
- import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
18
18
 
19
19
  type Props = {
20
20
  poolInfo: SolanaPoolInfo
@@ -69,7 +69,7 @@ export function Success({
69
69
  subContent={getSubContent()}
70
70
  chainId={poolInfo.chainId}
71
71
  solanaSignature={solanaSignature}
72
- buttonText={campaign && !isExistingUser ? 'VIEW POINTS' : 'DONE'}
72
+ buttonText={campaign && !isExistingUser ? 'VIEW FEATHERS' : 'DONE'}
73
73
  />
74
74
  )
75
75
  }
@@ -7,22 +7,22 @@ import {
7
7
  NETWORK_TYPE,
8
8
  } from '@huma-finance/shared'
9
9
  import {
10
+ checkIsDev,
10
11
  SolanaPoolState,
11
12
  txAtom,
12
13
  useChainInfo,
13
- checkIsDev,
14
14
  } from '@huma-finance/web-shared'
15
15
  import { Box, css, useTheme } from '@mui/material'
16
16
  import { useResetAtom } from 'jotai/utils'
17
17
  import React, { useCallback, useEffect, useState } from 'react'
18
18
  import { useDispatch } from 'react-redux'
19
19
 
20
+ import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
20
21
  import { resetState } from '../../../store/widgets.reducers'
21
22
  import { BottomButton } from '../../BottomButton'
22
23
  import { CongratulationsIcon, HumaPointsIcon, RibbonIcon } from '../../icons'
23
24
  import { LoadingModal } from '../../LoadingModal'
24
25
  import { SignIn } from '../../SignIn'
25
- import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
26
26
 
27
27
  enum STATE {
28
28
  Loading = 'Loading',
@@ -74,7 +74,7 @@ export function PointsEarned({
74
74
  setPointsAccumulated(result.pointsAccumulated)
75
75
  setState(STATE.Congrats)
76
76
  } catch (error) {
77
- console.error('Failed to update wallet points', error)
77
+ console.error('Failed to update wallet Feathers', error)
78
78
  }
79
79
  }
80
80
  updateWalletPoints()
@@ -138,7 +138,7 @@ export function PointsEarned({
138
138
 
139
139
  if (state === STATE.SignIn) {
140
140
  return (
141
- <SignIn description='Please sign in to check the points that you earned.' />
141
+ <SignIn description='Please sign in to check the Feathers that you earned.' />
142
142
  )
143
143
  }
144
144
 
@@ -154,8 +154,8 @@ export function PointsEarned({
154
154
  <HumaPointsIcon />
155
155
  <Box>
156
156
  {hasPointsAccumulated
157
- ? `${formatNumber(pointsAccumulated)} Points`
158
- : 'Points earned'}
157
+ ? `${formatNumber(pointsAccumulated)} Feathers`
158
+ : 'Feathers earned'}
159
159
  </Box>
160
160
  </Box>
161
161
  </Box>
@@ -163,14 +163,14 @@ export function PointsEarned({
163
163
  {hasPointsAccumulated ? (
164
164
  <>
165
165
  <Box>Congratulations,</Box>
166
- <Box>you've earned {pointsAccumulated} points</Box>
166
+ <Box>you've earned {pointsAccumulated} Feathers</Box>
167
167
  </>
168
168
  ) : (
169
169
  <Box>Congratulations on joining the Huma Protocol!</Box>
170
170
  )}
171
171
  </Box>
172
172
  <Box css={styles.entirePointsDetails}>
173
- You'll earn points <span css={styles.everyday}>everyday</span> for{' '}
173
+ You'll earn Feathers <span css={styles.everyday}>everyday</span> for{' '}
174
174
  {monthText} straight.
175
175
  </Box>
176
176
  <BottomButton variant='contained' onClick={handleCloseModal}>
@@ -4,7 +4,7 @@ import {
4
4
  PoolInfoV2,
5
5
  TrancheType,
6
6
  } from '@huma-finance/shared'
7
- import { useTrancheVaultContractV2, checkIsDev } from '@huma-finance/web-shared'
7
+ import { checkIsDev, useTrancheVaultContractV2 } from '@huma-finance/web-shared'
8
8
  import { useWeb3React } from '@web3-react/core'
9
9
  import { ethers } from 'ethers'
10
10
  import React, { useCallback } from 'react'
@@ -58,7 +58,7 @@ export function Transfer({
58
58
  )
59
59
  dispatch(setPointsAccumulated(result.pointsAccumulated))
60
60
  } catch (error) {
61
- console.error('Failed to update wallet points', error)
61
+ console.error('Failed to update wallet Feathers', error)
62
62
  }
63
63
  }
64
64
  dispatch(setStep(WIDGET_STEP.Done))
@@ -99,7 +99,7 @@ export function Success({
99
99
  if (hasNextStep) {
100
100
  return "WHAT'S NEXT"
101
101
  }
102
- return campaign ? 'VIEW POINTS' : undefined
102
+ return campaign ? 'VIEW FEATHERS' : undefined
103
103
  }
104
104
 
105
105
  return (
@@ -99,8 +99,8 @@ export function PointsEarned({
99
99
  <HumaPointsIcon />
100
100
  <Box>
101
101
  {hasPointsAccumulated
102
- ? `${formatNumber(pointsAccumulated)} Points`
103
- : 'Points earned'}
102
+ ? `${formatNumber(pointsAccumulated)} Feathers`
103
+ : 'Feathers earned'}
104
104
  </Box>
105
105
  </Box>
106
106
  </Box>
@@ -108,14 +108,14 @@ export function PointsEarned({
108
108
  {hasPointsAccumulated ? (
109
109
  <>
110
110
  <Box>Congratulations,</Box>
111
- <Box>you've earned {pointsAccumulated} points</Box>
111
+ <Box>you've earned {pointsAccumulated} Feathers</Box>
112
112
  </>
113
113
  ) : (
114
114
  <Box>Congratulations on joining the Huma Protocol!</Box>
115
115
  )}
116
116
  </Box>
117
117
  <Box css={styles.entirePointsDetails}>
118
- You'll earn points <span css={styles.everyday}>everyday</span> for{' '}
118
+ You'll earn Feathers <span css={styles.everyday}>everyday</span> for{' '}
119
119
  {monthText} straight.
120
120
  </Box>
121
121
  <BottomButton variant='contained' onClick={handleCloseModal}>