everest-npm-features 0.0.4 → 0.0.5

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 i, jsx as o } from "react/jsx-runtime";
2
- import { useState as F, useEffect as u } from "react";
3
- import { useSnackBar as _ } from "../../../hooks/useSnackBar.js";
4
- import { u as b, a as C } from "../../../react-redux-B4BZippc.js";
5
- import T from "../../../hoc/withThemeProvider.js";
6
- import { L as q } from "../../../rr-primary-logo-CqI24c8v.js";
7
- import D from "./email.js";
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 j, u as A, r as V, v as O, l as z } from "../../../auth-NmISGQ2S.js";
13
- import { C as J } from "../../../Container-BOehNoF1.js";
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 v } from "../../../Stack-CkCveRRR.js";
16
- import { T as h } from "../../../Typography-Dx54MRM5.js";
17
- const M = ({ onRegister: w, navigate: g, navigatePath: x }) => {
18
- const t = b(), r = C((n) => n.session), m = window.location.hostname.split("."), l = m.length > 2 ? m.slice(0, m.length - 2).join(".") : "Jupiter_test_store001", a = r.loader, R = r.validationError, S = r.screen, B = r.otpLoader, c = r.uuid, p = r.token, d = r.error, N = 4, { showAlertMessage: s, snackBar: k } = _(), [e, y] = F({
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
- u(() => () => {
26
- t(j());
27
- }, []), u(() => {
28
- c && p && (w(c, p), g(x || "/dashboard"));
29
- }, [c, p]), u(() => {
30
- d && s({ message: d });
31
- }, [d]);
32
- const f = (n) => {
33
- t(A(n));
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__ */ i(
36
- J,
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
- k,
50
- /* @__PURE__ */ o(E, { sx: { marginTop: "0.5rem", marginBottom: "2.25rem" }, children: /* @__PURE__ */ o("img", { alt: "RocketRamp logo", src: q }) }),
51
- /* @__PURE__ */ i(
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__ */ i(v, { direction: "column", spacing: 1.5, children: [
68
- /* @__PURE__ */ o(h, { variant: "2xl", fontWeight: 600, children: "Create New Account" }),
69
- /* @__PURE__ */ i(v, { direction: "row", gap: "0.25rem", children: [
70
- /* @__PURE__ */ i(h, { variant: "md", fontWeight: 500, children: [
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
- S
72
+ R
73
73
  ] }),
74
- /* @__PURE__ */ i(h, { variant: "md", fontWeight: 200, children: [
74
+ /* @__PURE__ */ a(u, { variant: "md", fontWeight: 200, children: [
75
75
  "of ",
76
- N
76
+ k
77
77
  ] })
78
78
  ] })
79
79
  ] }),
80
80
  {
81
- 1: /* @__PURE__ */ o(
82
- D,
81
+ 1: /* @__PURE__ */ i(
82
+ q,
83
83
  {
84
84
  showAlertMessage: s,
85
- loader: a,
85
+ loader: n,
86
86
  registerInfo: e,
87
- setRegisterInfo: y,
88
- navigate: g,
89
- dispatch: t,
90
- validationError: R,
91
- setCurrentStep: f
87
+ setRegisterInfo: S,
88
+ navigate: h,
89
+ dispatch: r,
90
+ validationError: x,
91
+ setCurrentStep: d
92
92
  }
93
93
  ),
94
- 2: /* @__PURE__ */ o(
94
+ 2: /* @__PURE__ */ i(
95
95
  I,
96
96
  {
97
97
  showAlertMessage: s,
98
- loader: a,
98
+ loader: n,
99
99
  registerInfo: e,
100
- dispatch: t,
101
- setRegisterInfo: y,
102
- setCurrentStep: f,
103
- validationError: R
100
+ dispatch: r,
101
+ setRegisterInfo: S,
102
+ setCurrentStep: d,
103
+ validationError: x
104
104
  }
105
105
  ),
106
- 3: /* @__PURE__ */ o(
106
+ 3: /* @__PURE__ */ i(
107
107
  L,
108
108
  {
109
109
  showAlertMessage: s,
110
- loader: a,
110
+ loader: n,
111
111
  registerInfo: e,
112
- storeName: l,
113
- setCurrentStep: f,
112
+ storeName: m,
113
+ setCurrentStep: d,
114
114
  initRegister: () => {
115
- t(
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: l
122
+ storename: m
123
123
  })
124
124
  );
125
125
  }
126
126
  }
127
127
  ),
128
- 4: /* @__PURE__ */ o(
128
+ 4: /* @__PURE__ */ i(
129
129
  W,
130
130
  {
131
131
  showAlertMessage: s,
132
- loader: a,
132
+ loader: n,
133
133
  otpLoader: B,
134
134
  registerInfo: e,
135
- initVerifyRegister: (n) => {
136
- t(
137
- O({
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: l,
144
- otp: n
143
+ storename: m,
144
+ otp: o
145
145
  })
146
146
  );
147
147
  },
148
148
  initReSendOtp: () => {
149
- t(z(e.email));
149
+ r(O(e.email));
150
150
  }
151
151
  }
152
152
  )
153
- }[S]
153
+ }[R]
154
154
  ]
155
155
  }
156
156
  )
157
157
  ]
158
158
  }
159
159
  );
160
- }, ce = T(M);
160
+ }, pe = C(M);
161
161
  export {
162
- ce as default
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -14,6 +14,7 @@
14
14
  "scripts": {
15
15
  "dev": "vite",
16
16
  "build": "tsc -b && vite build",
17
+ "prepublishOnly": "npm run build",
17
18
  "lint": "eslint .",
18
19
  "preview": "vite preview"
19
20
  },