everest-npm-features 0.0.4 → 0.0.6
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.
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useSnackBar as
|
|
4
|
-
import { u as b, a as
|
|
5
|
-
import
|
|
6
|
-
import { L as
|
|
7
|
-
import
|
|
1
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useEffect as f } from "react";
|
|
3
|
+
import { useSnackBar as F } from "../../../hooks/useSnackBar.js";
|
|
4
|
+
import { u as b, a as y } from "../../../react-redux-B4BZippc.js";
|
|
5
|
+
import C from "../../../hoc/withThemeProvider.js";
|
|
6
|
+
import { L as T } from "../../../rr-primary-logo-CqI24c8v.js";
|
|
7
|
+
import q from "./email.js";
|
|
8
8
|
import I from "./personalInfo.js";
|
|
9
9
|
import L from "./summary.js";
|
|
10
10
|
import W from "./validateEmail.js";
|
|
11
11
|
import "../../../constants-Bg2zYFVK.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { C as
|
|
12
|
+
import { a as _, u as A, r as V, v as j, l as O } from "../../../auth-NmISGQ2S.js";
|
|
13
|
+
import { C as z } from "../../../Container-BOehNoF1.js";
|
|
14
14
|
import { B as E } from "../../../Box-BOgpENcC.js";
|
|
15
|
-
import { S as
|
|
16
|
-
import { T as
|
|
17
|
-
const M = ({ onRegister:
|
|
18
|
-
const
|
|
15
|
+
import { S as N } from "../../../Stack-CkCveRRR.js";
|
|
16
|
+
import { T as u } from "../../../Typography-Dx54MRM5.js";
|
|
17
|
+
const M = ({ onRegister: v, navigate: h, navigatePath: g }) => {
|
|
18
|
+
const r = b(), t = y((o) => o.session), m = y((o) => o.app).storeName, n = t.loader, x = t.validationError, R = t.screen, B = t.otpLoader, p = t.uuid, c = t.token, l = t.error, k = 4, { showAlertMessage: s, snackBar: w } = F(), [e, S] = D({
|
|
19
19
|
email: "",
|
|
20
20
|
username: "",
|
|
21
21
|
firstName: "",
|
|
22
22
|
lastName: "",
|
|
23
23
|
phone: ""
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, []),
|
|
28
|
-
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
}, [
|
|
32
|
-
const
|
|
33
|
-
|
|
25
|
+
f(() => () => {
|
|
26
|
+
r(_());
|
|
27
|
+
}, []), f(() => {
|
|
28
|
+
p && c && (v(p, c), h(g || "/dashboard"));
|
|
29
|
+
}, [p, c]), f(() => {
|
|
30
|
+
l && s({ message: l });
|
|
31
|
+
}, [l]);
|
|
32
|
+
const d = (o) => {
|
|
33
|
+
r(A(o));
|
|
34
34
|
};
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
return /* @__PURE__ */ a(
|
|
36
|
+
z,
|
|
37
37
|
{
|
|
38
38
|
maxWidth: "sm",
|
|
39
39
|
component: "div",
|
|
@@ -46,9 +46,9 @@ const M = ({ onRegister: w, navigate: g, navigatePath: x }) => {
|
|
|
46
46
|
// alignItems: "center",
|
|
47
47
|
},
|
|
48
48
|
children: [
|
|
49
|
-
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
49
|
+
w,
|
|
50
|
+
/* @__PURE__ */ i(E, { sx: { marginTop: "0.5rem", marginBottom: "2.25rem" }, children: /* @__PURE__ */ i("img", { alt: "RocketRamp logo", src: T }) }),
|
|
51
|
+
/* @__PURE__ */ a(
|
|
52
52
|
E,
|
|
53
53
|
{
|
|
54
54
|
sx: {
|
|
@@ -64,100 +64,100 @@ const M = ({ onRegister: w, navigate: g, navigatePath: x }) => {
|
|
|
64
64
|
display: "flex"
|
|
65
65
|
},
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ a(N, { direction: "column", spacing: 1.5, children: [
|
|
68
|
+
/* @__PURE__ */ i(u, { variant: "2xl", fontWeight: 600, children: "Create New Account" }),
|
|
69
|
+
/* @__PURE__ */ a(N, { direction: "row", gap: "0.25rem", children: [
|
|
70
|
+
/* @__PURE__ */ a(u, { variant: "md", fontWeight: 500, children: [
|
|
71
71
|
"Step ",
|
|
72
|
-
|
|
72
|
+
R
|
|
73
73
|
] }),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ a(u, { variant: "md", fontWeight: 200, children: [
|
|
75
75
|
"of ",
|
|
76
|
-
|
|
76
|
+
k
|
|
77
77
|
] })
|
|
78
78
|
] })
|
|
79
79
|
] }),
|
|
80
80
|
{
|
|
81
|
-
1: /* @__PURE__ */
|
|
82
|
-
|
|
81
|
+
1: /* @__PURE__ */ i(
|
|
82
|
+
q,
|
|
83
83
|
{
|
|
84
84
|
showAlertMessage: s,
|
|
85
|
-
loader:
|
|
85
|
+
loader: n,
|
|
86
86
|
registerInfo: e,
|
|
87
|
-
setRegisterInfo:
|
|
88
|
-
navigate:
|
|
89
|
-
dispatch:
|
|
90
|
-
validationError:
|
|
91
|
-
setCurrentStep:
|
|
87
|
+
setRegisterInfo: S,
|
|
88
|
+
navigate: h,
|
|
89
|
+
dispatch: r,
|
|
90
|
+
validationError: x,
|
|
91
|
+
setCurrentStep: d
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
2: /* @__PURE__ */
|
|
94
|
+
2: /* @__PURE__ */ i(
|
|
95
95
|
I,
|
|
96
96
|
{
|
|
97
97
|
showAlertMessage: s,
|
|
98
|
-
loader:
|
|
98
|
+
loader: n,
|
|
99
99
|
registerInfo: e,
|
|
100
|
-
dispatch:
|
|
101
|
-
setRegisterInfo:
|
|
102
|
-
setCurrentStep:
|
|
103
|
-
validationError:
|
|
100
|
+
dispatch: r,
|
|
101
|
+
setRegisterInfo: S,
|
|
102
|
+
setCurrentStep: d,
|
|
103
|
+
validationError: x
|
|
104
104
|
}
|
|
105
105
|
),
|
|
106
|
-
3: /* @__PURE__ */
|
|
106
|
+
3: /* @__PURE__ */ i(
|
|
107
107
|
L,
|
|
108
108
|
{
|
|
109
109
|
showAlertMessage: s,
|
|
110
|
-
loader:
|
|
110
|
+
loader: n,
|
|
111
111
|
registerInfo: e,
|
|
112
|
-
storeName:
|
|
113
|
-
setCurrentStep:
|
|
112
|
+
storeName: m,
|
|
113
|
+
setCurrentStep: d,
|
|
114
114
|
initRegister: () => {
|
|
115
|
-
|
|
115
|
+
r(
|
|
116
116
|
V({
|
|
117
117
|
first_name: e.firstName,
|
|
118
118
|
last_name: e.lastName,
|
|
119
119
|
email: e.email,
|
|
120
120
|
username: e.username,
|
|
121
121
|
phone: "+1" + e.phone,
|
|
122
|
-
storename:
|
|
122
|
+
storename: m
|
|
123
123
|
})
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
4: /* @__PURE__ */
|
|
128
|
+
4: /* @__PURE__ */ i(
|
|
129
129
|
W,
|
|
130
130
|
{
|
|
131
131
|
showAlertMessage: s,
|
|
132
|
-
loader:
|
|
132
|
+
loader: n,
|
|
133
133
|
otpLoader: B,
|
|
134
134
|
registerInfo: e,
|
|
135
|
-
initVerifyRegister: (
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
initVerifyRegister: (o) => {
|
|
136
|
+
r(
|
|
137
|
+
j({
|
|
138
138
|
first_name: e.firstName,
|
|
139
139
|
last_name: e.lastName,
|
|
140
140
|
email: e.email,
|
|
141
141
|
username: e.username,
|
|
142
142
|
phone: "+1" + e.phone,
|
|
143
|
-
storename:
|
|
144
|
-
otp:
|
|
143
|
+
storename: m,
|
|
144
|
+
otp: o
|
|
145
145
|
})
|
|
146
146
|
);
|
|
147
147
|
},
|
|
148
148
|
initReSendOtp: () => {
|
|
149
|
-
|
|
149
|
+
r(O(e.email));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
)
|
|
153
|
-
}[
|
|
153
|
+
}[R]
|
|
154
154
|
]
|
|
155
155
|
}
|
|
156
156
|
)
|
|
157
157
|
]
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
|
-
},
|
|
160
|
+
}, pe = C(M);
|
|
161
161
|
export {
|
|
162
|
-
|
|
162
|
+
pe as default
|
|
163
163
|
};
|
package/dist/store.d.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { CheckoutPaymentData, CryptoAssetPair, CryptoAssetToken, FiatAsset, Order, OrderCreateData, OrderEstimateData, OrderTypeData, Token } from 'everest-npm-api';
|
|
2
2
|
export interface RocketRampAppState {
|
|
3
|
+
app: {
|
|
4
|
+
error: string;
|
|
5
|
+
availableTokenLoader: boolean;
|
|
6
|
+
apiBaseUrl: string;
|
|
7
|
+
storeName: string;
|
|
8
|
+
firebaseConfig: string;
|
|
9
|
+
features: {
|
|
10
|
+
buy: boolean;
|
|
11
|
+
receive: boolean;
|
|
12
|
+
remit: boolean;
|
|
13
|
+
sell: boolean;
|
|
14
|
+
send: boolean;
|
|
15
|
+
stake: boolean;
|
|
16
|
+
swap: boolean;
|
|
17
|
+
trade: boolean;
|
|
18
|
+
withdraw: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
3
21
|
session: {
|
|
4
22
|
uuid: string | null;
|
|
5
23
|
token: string | null;
|