everest-npm-features 0.0.48 → 0.0.49

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 (96) hide show
  1. package/dist/{PlayArrow-Cnrxi5yr.js → PlayArrow-C3uVNo4F.js} +1 -1
  2. package/dist/{auth-C45E0xvK.js → auth-ClBgT--j.js} +1 -1
  3. package/dist/{bank-DIdz4BaB.js → bank-Dz5km1qK.js} +3 -3
  4. package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
  5. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  6. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  7. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  8. package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
  9. package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
  10. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
  13. package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
  14. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  15. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  16. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
  18. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  19. package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
  20. package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
  21. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  22. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  23. package/dist/components/RocketRamp/Transactions/index.js +14 -13
  24. package/dist/components/Shared/FullKyc/edd.js +41 -41
  25. package/dist/components/Shared/FullKyc/index.js +11 -10
  26. package/dist/components/Shared/FullKyc/pep.js +1 -1
  27. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  28. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  29. package/dist/components/Shared/MinimalKyc/index.js +31 -30
  30. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  31. package/dist/components/Wallet/Account/createIban.js +70 -62
  32. package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
  33. package/dist/components/Wallet/Account/eWallet.js +96 -0
  34. package/dist/components/Wallet/Account/iban.d.ts +2 -0
  35. package/dist/components/Wallet/Account/iban.js +38 -32
  36. package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
  37. package/dist/components/Wallet/Account/ibanItem.js +233 -76
  38. package/dist/components/Wallet/Account/index.d.ts +2 -0
  39. package/dist/components/Wallet/Account/index.js +164 -143
  40. package/dist/components/Wallet/Account/sendIban.js +3 -3
  41. package/dist/components/Wallet/Buy/confirmTransaction.js +5 -5
  42. package/dist/components/Wallet/Buy/form.js +5 -5
  43. package/dist/components/Wallet/Buy/index.js +14 -13
  44. package/dist/components/Wallet/Deposit/index.js +1 -1
  45. package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
  46. package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
  47. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
  48. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  49. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  50. package/dist/components/Wallet/History/index.js +25 -24
  51. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
  52. package/dist/components/Wallet/Portfolio/index.js +21 -20
  53. package/dist/components/Wallet/Profile/documents.js +34 -33
  54. package/dist/components/Wallet/Profile/index.js +20 -19
  55. package/dist/components/Wallet/Profile/storage.js +26 -26
  56. package/dist/components/Wallet/Receive/index.js +22 -21
  57. package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
  58. package/dist/components/Wallet/Sell/form.js +5 -5
  59. package/dist/components/Wallet/Sell/index.js +13 -12
  60. package/dist/components/Wallet/Send/index.js +19 -18
  61. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  62. package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
  63. package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
  64. package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
  65. package/dist/components/Wallet/Shared/addBank.js +39 -38
  66. package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
  67. package/dist/components/Wallet/Shared/manualSend.js +6 -5
  68. package/dist/components/Wallet/SignIn/index.js +24 -23
  69. package/dist/components/Wallet/SignUp/index.js +22 -21
  70. package/dist/components/Wallet/Stake/index.js +30 -29
  71. package/dist/components/Wallet/Swap/form.js +8 -7
  72. package/dist/components/Wallet/Swap/index.js +11 -10
  73. package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
  74. package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
  75. package/dist/components/Wallet/Withdraw/form.js +4 -4
  76. package/dist/components/Wallet/Withdraw/index.js +12 -11
  77. package/dist/{constants-BSdmHYnc.js → constants-t7n9qCW3.js} +245 -244
  78. package/dist/{cryptoAssets-BdNVnpA_.js → cryptoAssets-shEFU26O.js} +1 -1
  79. package/dist/hooks/useEverestDispatch.d.ts +6 -0
  80. package/dist/hooks/useEverestDispatch.js +5 -0
  81. package/dist/{index-Be3ndI6s.js → index-B6MSTmAM.js} +104 -103
  82. package/dist/{index-HZ9RrpTC.js → index-C2EjFXaz.js} +87 -86
  83. package/dist/{index-BXF4OI74.js → index-Cs7bSfT3.js} +17 -16
  84. package/dist/{index-D3OzGVxQ.js → index-DFRU-R-5.js} +38 -37
  85. package/dist/{index-CRyby3Qm.js → index-Da0r8FX2.js} +11 -10
  86. package/dist/{index-BlfzmV5M.js → index-RDV0mQbt.js} +36 -35
  87. package/dist/{index-Cvp4wWrB.js → index-j0zehpzg.js} +40 -39
  88. package/dist/{kyc-BQsiHtP6.js → kyc-D9xahfH9.js} +1 -1
  89. package/dist/main.js +7 -7
  90. package/dist/{order-BKKCskeq.js → order-jqH948WM.js} +29 -25
  91. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  92. package/dist/{stake-WjG22nIX.js → stake-Dcq6QpaA.js} +3 -3
  93. package/dist/util/constants.d.ts +2 -0
  94. package/dist/util/constants.js +21 -19
  95. package/dist/{wallet-BXA-R-Ks.js → wallet-DpkUmmq0.js} +1 -1
  96. package/package.json +3 -2
@@ -0,0 +1,20 @@
1
+ import { default as React, Dispatch } from 'react';
2
+ import { Bank, BankActionTypes, BankState, OrderActionTypes, Wallet } from 'everest-npm-api';
3
+ import { DialogOptions } from '../../../hooks/useDialog/types';
4
+ interface EWalletProps {
5
+ dispatch: Dispatch<BankActionTypes | OrderActionTypes>;
6
+ openDialog: (options: DialogOptions) => void;
7
+ baseUrl: string;
8
+ checkoutSdkKey: string;
9
+ appKey: string;
10
+ appKeyEur: string;
11
+ paymentWidgetSrcUrl: string;
12
+ iban: BankState["iban"];
13
+ navigate: (path: string) => void;
14
+ AccountItem: ({ data, type, }: {
15
+ data: Wallet | Bank;
16
+ type: string;
17
+ }) => JSX.Element;
18
+ }
19
+ declare const EWalletComp: React.FC<EWalletProps>;
20
+ export default EWalletComp;
@@ -0,0 +1,96 @@
1
+ import { jsx as e, jsxs as o, Fragment as u } from "react/jsx-runtime";
2
+ import { useRef as D, useState as T, useEffect as b } from "react";
3
+ import { I as q } from "../../../Info-BVeUSPyk.js";
4
+ import { DIALOG_SUCCESS_ICON as w, FEATURE_EWALLET as f } from "../../../util/constants.js";
5
+ import "../../../constants-t7n9qCW3.js";
6
+ import { b as A } from "../../../order-jqH948WM.js";
7
+ import { M as P } from "../../../tooltip-3UvETWtS.js";
8
+ import R from "../Shared/noData.js";
9
+ import W from "./createIban.js";
10
+ import { AuthInnerContainer as _ } from "../Shared/Container/index.js";
11
+ import B from "./ibanItem.js";
12
+ import { B as n } from "../../../Box-B0YSYLco.js";
13
+ import { G as s } from "../../../Grid-CFe3amXO.js";
14
+ import { T as L } from "../../../Typography-pAaje37G.js";
15
+ import { I as N } from "../../../IconButton-DHm-hucF.js";
16
+ import { C as v } from "../../../CircularProgress-xZA3lvba.js";
17
+ const ee = ({
18
+ dispatch: m,
19
+ openDialog: c,
20
+ baseUrl: i,
21
+ checkoutSdkKey: d,
22
+ appKey: l,
23
+ appKeyEur: h,
24
+ paymentWidgetSrcUrl: y,
25
+ iban: r,
26
+ navigate: I,
27
+ AccountItem: x
28
+ }) => {
29
+ const p = r.data, C = r.loader, S = D(""), [g, E] = T("");
30
+ return b(() => {
31
+ new URLSearchParams(window.location.search).get("paymentStatus") === "success" && c({
32
+ title: "Payment Success",
33
+ message: "We have received your payment and will generate your Virtual IBAN after the payment has processed",
34
+ icon: w,
35
+ width: "575px",
36
+ confirmButtonText: "Continue"
37
+ });
38
+ }, []), /* @__PURE__ */ e(_, { children: /* @__PURE__ */ o(n, { p: 3, children: [
39
+ /* @__PURE__ */ o(s, { spacing: 2, container: !0, alignItems: "center", children: [
40
+ /* @__PURE__ */ o(s, { size: 8, children: [
41
+ /* @__PURE__ */ e(L, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "E-Wallet" }) }),
42
+ /* @__PURE__ */ e(
43
+ P,
44
+ {
45
+ title: /* @__PURE__ */ e(n, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC and an annual payment" }),
46
+ placement: "bottom",
47
+ children: /* @__PURE__ */ e(N, { className: "info-fee-icon", children: /* @__PURE__ */ e(q, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
48
+ }
49
+ )
50
+ ] }),
51
+ /* @__PURE__ */ e(s, { size: 4, children: /* @__PURE__ */ e(n, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
52
+ W,
53
+ {
54
+ openDialog: c,
55
+ checkoutSdkKey: d,
56
+ paymentRequest: (t) => {
57
+ const a = {
58
+ payment: {
59
+ token: t,
60
+ amount: 2,
61
+ currency: "USD",
62
+ app_key: l,
63
+ success_url: `${i}/accounts?payment=success`,
64
+ fail_url: `${i}/dashboard?payment=failed`
65
+ },
66
+ currency: g
67
+ };
68
+ m(A(a));
69
+ },
70
+ iban: r,
71
+ navigate: I,
72
+ currency: S,
73
+ setIbanCurrency: E,
74
+ from: f
75
+ }
76
+ ) }) })
77
+ ] }),
78
+ C ? /* @__PURE__ */ e(n, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(v, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(u, { children: p.length > 0 ? /* @__PURE__ */ e(u, { children: p.map((t, a) => /* @__PURE__ */ e(
79
+ B,
80
+ {
81
+ data: t,
82
+ AccountItem: x,
83
+ dispatch: m,
84
+ appKey: l,
85
+ appKeyEur: h,
86
+ paymentWidgetSrcUrl: y,
87
+ iban: r,
88
+ from: f
89
+ },
90
+ a
91
+ )) }) : /* @__PURE__ */ e(R, { text: "You currently have no E-Wallets" }) })
92
+ ] }) });
93
+ };
94
+ export {
95
+ ee as default
96
+ };
@@ -7,6 +7,8 @@ interface IbanProps {
7
7
  baseUrl: string;
8
8
  checkoutSdkKey: string;
9
9
  appKey: string;
10
+ appKeyEur: string;
11
+ paymentWidgetSrcUrl: string;
10
12
  iban: BankState["iban"];
11
13
  navigate: (path: string) => void;
12
14
  AccountItem: ({ data, type, }: {
@@ -1,48 +1,50 @@
1
1
  import { jsx as e, jsxs as o, Fragment as l } from "react/jsx-runtime";
2
- import { useRef as S, useState as g, useEffect as A } from "react";
3
- import { I as B } from "../../../Info-BVeUSPyk.js";
4
- import { DIALOG_SUCCESS_ICON as N } from "../../../util/constants.js";
5
- import "../../../constants-BSdmHYnc.js";
6
- import { b } from "../../../order-BKKCskeq.js";
7
- import { M as D } from "../../../tooltip-3UvETWtS.js";
2
+ import { useRef as B, useState as N, useEffect as b } from "react";
3
+ import { I as D } from "../../../Info-BVeUSPyk.js";
4
+ import { DIALOG_SUCCESS_ICON as R, FEATURE_VIRTUAL_IBAN as f } from "../../../util/constants.js";
5
+ import "../../../constants-t7n9qCW3.js";
6
+ import { b as T } from "../../../order-jqH948WM.js";
7
+ import { M as _ } from "../../../tooltip-3UvETWtS.js";
8
8
  import q from "../Shared/noData.js";
9
9
  import w from "./createIban.js";
10
10
  import { AuthInnerContainer as P } from "../Shared/Container/index.js";
11
- import R from "./ibanItem.js";
11
+ import v from "./ibanItem.js";
12
12
  import { B as a } from "../../../Box-B0YSYLco.js";
13
13
  import { G as s } from "../../../Grid-CFe3amXO.js";
14
- import { T as v } from "../../../Typography-pAaje37G.js";
15
- import { I as T } from "../../../IconButton-DHm-hucF.js";
16
- import { C as _ } from "../../../CircularProgress-xZA3lvba.js";
17
- const Q = ({
14
+ import { T as E } from "../../../Typography-pAaje37G.js";
15
+ import { I as z } from "../../../IconButton-DHm-hucF.js";
16
+ import { C as L } from "../../../CircularProgress-xZA3lvba.js";
17
+ const ee = ({
18
18
  dispatch: c,
19
19
  openDialog: i,
20
20
  baseUrl: m,
21
- checkoutSdkKey: f,
21
+ checkoutSdkKey: d,
22
22
  appKey: u,
23
+ appKeyEur: y,
24
+ paymentWidgetSrcUrl: h,
23
25
  iban: r,
24
- navigate: d,
25
- AccountItem: y
26
+ navigate: I,
27
+ AccountItem: x
26
28
  }) => {
27
- const p = r.data, h = r.loader, I = S(""), [x, C] = g("");
28
- return A(() => {
29
+ const p = r.data, C = r.loader, A = B(""), [S, g] = N("");
30
+ return b(() => {
29
31
  new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
30
32
  title: "Payment Success",
31
33
  message: "We have received your payment and will generate your Virtual IBAN after the payment has processed",
32
- icon: N,
34
+ icon: R,
33
35
  width: "575px",
34
36
  confirmButtonText: "Continue"
35
37
  });
36
38
  }, []), /* @__PURE__ */ e(P, { children: /* @__PURE__ */ o(a, { p: 3, children: [
37
39
  /* @__PURE__ */ o(s, { spacing: 2, container: !0, alignItems: "center", children: [
38
40
  /* @__PURE__ */ o(s, { size: 8, children: [
39
- /* @__PURE__ */ e(v, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
41
+ /* @__PURE__ */ e(E, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
40
42
  /* @__PURE__ */ e(
41
- D,
43
+ _,
42
44
  {
43
- title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of EUR currency. This requires KYC and an annual payment" }),
45
+ title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC and an annual payment" }),
44
46
  placement: "bottom",
45
- children: /* @__PURE__ */ e(T, { className: "info-fee-icon", children: /* @__PURE__ */ e(B, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
47
+ children: /* @__PURE__ */ e(z, { className: "info-fee-icon", children: /* @__PURE__ */ e(D, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
46
48
  }
47
49
  )
48
50
  ] }),
@@ -50,7 +52,7 @@ const Q = ({
50
52
  w,
51
53
  {
52
54
  openDialog: i,
53
- checkoutSdkKey: f,
55
+ checkoutSdkKey: d,
54
56
  paymentRequest: (t) => {
55
57
  const n = {
56
58
  payment: {
@@ -61,30 +63,34 @@ const Q = ({
61
63
  success_url: `${m}/accounts?payment=success`,
62
64
  fail_url: `${m}/dashboard?payment=failed`
63
65
  },
64
- currency: x
66
+ currency: S
65
67
  };
66
- c(b(n));
68
+ c(T(n));
67
69
  },
68
70
  iban: r,
69
- navigate: d,
70
- currency: I,
71
- setIbanCurrency: C
71
+ navigate: I,
72
+ currency: A,
73
+ setIbanCurrency: g,
74
+ from: f
72
75
  }
73
76
  ) }) })
74
77
  ] }),
75
- h ? /* @__PURE__ */ e(a, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(_, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(l, { children: p.length > 0 ? /* @__PURE__ */ e(l, { children: p.map((t, n) => /* @__PURE__ */ e(
76
- R,
78
+ C ? /* @__PURE__ */ e(a, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(L, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(l, { children: p.length > 0 ? /* @__PURE__ */ e(l, { children: p.map((t, n) => /* @__PURE__ */ e(
79
+ v,
77
80
  {
78
81
  data: t,
79
- AccountItem: y,
82
+ AccountItem: x,
80
83
  dispatch: c,
81
84
  appKey: u,
82
- iban: r
85
+ appKeyEur: y,
86
+ paymentWidgetSrcUrl: h,
87
+ iban: r,
88
+ from: f
83
89
  },
84
90
  n
85
91
  )) }) : /* @__PURE__ */ e(q, { text: "You currently have no IBAN Accounts" }) })
86
92
  ] }) });
87
93
  };
88
94
  export {
89
- Q as default
95
+ ee as default
90
96
  };
@@ -1,15 +1,18 @@
1
1
  import { Dispatch } from 'react';
2
- import { Bank, BankActionTypes, BankState, Iban, Wallet } from 'everest-npm-api';
2
+ import { Bank, BankActionTypes, BankState, Iban, Wallet, OrderActionTypes } from 'everest-npm-api';
3
3
  interface IbanItemProps {
4
4
  iban: BankState["iban"];
5
5
  data: Iban;
6
- dispatch: Dispatch<BankActionTypes>;
6
+ dispatch: Dispatch<BankActionTypes | OrderActionTypes>;
7
7
  appKey: string;
8
+ appKeyEur: string;
9
+ paymentWidgetSrcUrl: string;
8
10
  AccountItem: ({ data, type, children, }: {
9
11
  data: Wallet | Bank;
10
12
  type: string;
11
13
  children?: React.ReactNode;
12
14
  }) => JSX.Element;
15
+ from?: string;
13
16
  }
14
17
  declare const IbanItem: React.FC<IbanItemProps>;
15
18
  export default IbanItem;