everest-npm-features 0.0.47 → 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.
- package/dist/{PlayArrow-Cm8tJN8W.js → PlayArrow-C3uVNo4F.js} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/assets/styles3.css +1 -1
- package/dist/assets/styles4.css +1 -0
- package/dist/{auth-D0r8wtCH.js → auth-ClBgT--j.js} +1 -1
- package/dist/{bank-BmV_keEr.js → bank-Dz5km1qK.js} +3 -3
- package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
- package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
- package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
- package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +14 -13
- package/dist/components/Shared/FullKyc/edd.js +41 -41
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/MinimalKyc/index.js +31 -30
- package/dist/components/Wallet/Account/createIban.d.ts +2 -0
- package/dist/components/Wallet/Account/createIban.js +70 -62
- package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
- package/dist/components/Wallet/Account/eWallet.js +96 -0
- package/dist/components/Wallet/Account/iban.d.ts +2 -0
- package/dist/components/Wallet/Account/iban.js +38 -32
- package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
- package/dist/components/Wallet/Account/ibanItem.js +233 -76
- package/dist/components/Wallet/Account/index.d.ts +2 -0
- package/dist/components/Wallet/Account/index.js +164 -143
- package/dist/components/Wallet/Account/sendIban.js +3 -3
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
- package/dist/components/Wallet/Buy/form.js +6 -6
- package/dist/components/Wallet/Buy/index.js +14 -13
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
- package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +25 -24
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
- package/dist/components/Wallet/Portfolio/index.js +34 -33
- package/dist/components/Wallet/Profile/documents.js +527 -28
- package/dist/components/Wallet/Profile/index.js +179 -149
- package/dist/components/Wallet/Profile/storage.d.ts +11 -0
- package/dist/components/Wallet/Profile/storage.js +267 -0
- package/dist/components/Wallet/Receive/index.js +22 -21
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Sell/form.js +6 -6
- package/dist/components/Wallet/Sell/index.js +13 -12
- package/dist/components/Wallet/Send/index.js +44 -43
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
- package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
- package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
- package/dist/components/Wallet/Shared/addBank.js +39 -38
- package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
- package/dist/components/Wallet/Shared/manualSend.js +7 -6
- package/dist/components/Wallet/Shared/pin.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +24 -23
- package/dist/components/Wallet/SignUp/index.js +22 -21
- package/dist/components/Wallet/Stake/gems/index.js +1 -1
- package/dist/components/Wallet/Stake/id/index.js +1 -1
- package/dist/components/Wallet/Stake/index.js +31 -30
- package/dist/components/Wallet/Swap/form.js +9 -8
- package/dist/components/Wallet/Swap/index.js +11 -10
- package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Withdraw/form.js +5 -5
- package/dist/components/Wallet/Withdraw/index.js +12 -11
- package/dist/{constants-BJhUp96H.js → constants-t7n9qCW3.js} +559 -553
- package/dist/{cryptoAssets-Q_UWeuzR.js → cryptoAssets-shEFU26O.js} +1 -1
- package/dist/hooks/useDialog/index.js +1 -1
- package/dist/hooks/useEverestDispatch.d.ts +6 -0
- package/dist/hooks/useEverestDispatch.js +5 -0
- package/dist/{index-Dkjl8hIv.js → index-B6MSTmAM.js} +112 -111
- package/dist/{index-MUaN67Ei.js → index-C2EjFXaz.js} +88 -87
- package/dist/{index-pCrOsXNC.js → index-Cs7bSfT3.js} +29 -28
- package/dist/{index-DegQ9bTI.js → index-DFRU-R-5.js} +39 -38
- package/dist/{index-BRnTzw1Z.js → index-Da0r8FX2.js} +11 -10
- package/dist/{index-Dq5wTY4S.js → index-RDV0mQbt.js} +36 -35
- package/dist/{index-B2wXmFh5.js → index-j0zehpzg.js} +41 -40
- package/dist/{kyc-DLaLS7sp.js → kyc-D9xahfH9.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-fWKVFTau.js → order-jqH948WM.js} +29 -25
- package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
- package/dist/{stake-CQLutF0z.js → stake-Dcq6QpaA.js} +3 -3
- package/dist/{styles.module-O5VVND5e.js → styles.module-C1sNeKjL.js} +1 -1
- package/dist/styles.module-CHPRGltL.js +28 -0
- package/dist/{styles.module-CHEBh2ID.js → styles.module-DMd29SPQ.js} +1 -1
- package/dist/{styles.module-CUA1zLEJ.js → styles.module-verVx4pE.js} +1 -1
- package/dist/util/constants.d.ts +5 -0
- package/dist/util/constants.js +86 -81
- package/dist/util/functions.js +36 -36
- package/dist/{wallet-CuQDBP6a.js → wallet-DpkUmmq0.js} +1 -1
- package/package.json +3 -2
- package/dist/assets/documents.css +0 -1
- package/dist/documents-RjwlADn2.js +0 -552
|
@@ -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
|
+
};
|
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { I as
|
|
4
|
-
import { DIALOG_SUCCESS_ICON as
|
|
5
|
-
import "../../../constants-
|
|
6
|
-
import { b } from "../../../order-
|
|
7
|
-
import { M as
|
|
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
|
|
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
|
|
15
|
-
import { I as
|
|
16
|
-
import { C as
|
|
17
|
-
const
|
|
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:
|
|
21
|
+
checkoutSdkKey: d,
|
|
22
22
|
appKey: u,
|
|
23
|
+
appKeyEur: y,
|
|
24
|
+
paymentWidgetSrcUrl: h,
|
|
23
25
|
iban: r,
|
|
24
|
-
navigate:
|
|
25
|
-
AccountItem:
|
|
26
|
+
navigate: I,
|
|
27
|
+
AccountItem: x
|
|
26
28
|
}) => {
|
|
27
|
-
const p = r.data,
|
|
28
|
-
return
|
|
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:
|
|
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(
|
|
41
|
+
/* @__PURE__ */ e(E, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
|
|
40
42
|
/* @__PURE__ */ e(
|
|
41
|
-
|
|
43
|
+
_,
|
|
42
44
|
{
|
|
43
|
-
title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of
|
|
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(
|
|
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:
|
|
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:
|
|
66
|
+
currency: S
|
|
65
67
|
};
|
|
66
|
-
c(
|
|
68
|
+
c(T(n));
|
|
67
69
|
},
|
|
68
70
|
iban: r,
|
|
69
|
-
navigate:
|
|
70
|
-
currency:
|
|
71
|
-
setIbanCurrency:
|
|
71
|
+
navigate: I,
|
|
72
|
+
currency: A,
|
|
73
|
+
setIbanCurrency: g,
|
|
74
|
+
from: f
|
|
72
75
|
}
|
|
73
76
|
) }) })
|
|
74
77
|
] }),
|
|
75
|
-
|
|
76
|
-
|
|
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:
|
|
82
|
+
AccountItem: x,
|
|
80
83
|
dispatch: c,
|
|
81
84
|
appKey: u,
|
|
82
|
-
|
|
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
|
-
|
|
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;
|