everest-npm-features 0.0.9 → 0.0.11

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 (38) hide show
  1. package/dist/components/History/index.js +1 -1
  2. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +2 -2
  3. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.d.ts +1 -1
  4. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +2 -2
  5. package/dist/components/RocketRamp/Player/Buy/form.js +2 -2
  6. package/dist/components/RocketRamp/Player/Buy/index.js +2 -2
  7. package/dist/components/RocketRamp/Player/Buy/types.d.ts +2 -0
  8. package/dist/components/RocketRamp/Player/Dashboard/index.js +1 -1
  9. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.d.ts +2 -2
  10. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +2 -2
  11. package/dist/components/RocketRamp/Player/Sell/form.d.ts +1 -1
  12. package/dist/components/RocketRamp/Player/Sell/form.js +2 -2
  13. package/dist/components/RocketRamp/Player/Sell/index.js +2 -2
  14. package/dist/components/RocketRamp/Player/Sell/types.d.ts +3 -1
  15. package/dist/components/RocketRamp/Player/SignUp/index.js +66 -67
  16. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +80 -75
  17. package/dist/components/RocketRamp/Player/SignUp/summary.js +12 -5
  18. package/dist/components/RocketRamp/Player/SignUp/types.d.ts +1 -1
  19. package/dist/components/RocketRamp/Player/SignUp/validateEmail.d.ts +1 -1
  20. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +16 -16
  21. package/dist/components/RocketRamp/Shared/Input/index.d.ts +6 -0
  22. package/dist/components/RocketRamp/Shared/Input/index.js +65 -22
  23. package/dist/components/RocketRamp/Store/SignUp/index.js +29 -28
  24. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +60 -59
  25. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +54 -46
  26. package/dist/components/RocketRamp/Store/SignUp/summary.js +19 -12
  27. package/dist/components/RocketRamp/Transactions/index.js +1 -1
  28. package/dist/{index-Dxl09QM3.js → index-ChbzuA59.js} +323 -299
  29. package/dist/{index-BMhrzXlc.js → index-Cq0Ok_nc.js} +314 -306
  30. package/dist/main.js +2 -2
  31. package/dist/{order-BJOkWhkX.js → order-CdEAd-yA.js} +4 -4
  32. package/dist/store.d.ts +2 -2
  33. package/dist/util/constants.d.ts +2 -0
  34. package/dist/util/constants.js +27 -25
  35. package/dist/util/functions.js +1 -1
  36. package/dist/util/regex.d.ts +3 -0
  37. package/dist/util/regex.js +5 -2
  38. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { useState as ot, useEffect as st } from "react";
4
4
  import nt from "../../hoc/withThemeProvider.js";
5
5
  import { u as rt, a as it } from "../../react-redux-B4BZippc.js";
6
6
  import "../../constants-74hrsFxy.js";
7
- import { o as lt } from "../../order-BJOkWhkX.js";
7
+ import { o as lt } from "../../order-CdEAd-yA.js";
8
8
  import pt from "../Shared/HistoryItem/index.js";
9
9
  import { B } from "../../Box-Bt8cGqC7.js";
10
10
  import { g as K, a as z, P as a, f as R } from "../../createTheme-BYjetuXd.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { C as b } from "../../../../index-BMhrzXlc.js";
3
+ import { C as b } from "../../../../index-Cq0Ok_nc.js";
4
4
  import "../../../../index-ceeCtFuh.js";
5
5
  import "../../Shared/backBtn.js";
6
6
  import "../../../../util/functions.js";
@@ -8,7 +8,7 @@ import "../../../../util/constants.js";
8
8
  import "../../Shared/Input/index.js";
9
9
  import "../../Shared/Button/index.js";
10
10
  import "../../../../constants-74hrsFxy.js";
11
- import "../../../../order-BJOkWhkX.js";
11
+ import "../../../../order-CdEAd-yA.js";
12
12
  import "../../../../Typography-Du8mj1kr.js";
13
13
  import "../../../../Box-Bt8cGqC7.js";
14
14
  import "../../../../CircularProgress-B06C3TSm.js";
@@ -1,3 +1,3 @@
1
1
  import { BuyConfirmTransactionProps } from './types';
2
- declare const BuyConfirmTransaction: ({ setScreen, partnerKey, orderData, dispatch, walletAddress, }: BuyConfirmTransactionProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BuyConfirmTransaction: ({ setScreen, partnerKey, orderData, dispatch, walletAddress, store, }: BuyConfirmTransactionProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BuyConfirmTransaction;
@@ -3,10 +3,10 @@ import "react";
3
3
  import "../../Shared/backBtn.js";
4
4
  import "../../../../util/functions.js";
5
5
  import "../../../../util/constants.js";
6
- import { a as b } from "../../../../index-BMhrzXlc.js";
6
+ import { a as b } from "../../../../index-Cq0Ok_nc.js";
7
7
  import "../../Shared/Button/index.js";
8
8
  import "../../../../constants-74hrsFxy.js";
9
- import "../../../../order-BJOkWhkX.js";
9
+ import "../../../../order-CdEAd-yA.js";
10
10
  import "../../../../Typography-Du8mj1kr.js";
11
11
  import "../../../../Box-Bt8cGqC7.js";
12
12
  import "../../../../Grid2-IYppkw5f.js";
@@ -6,11 +6,11 @@ import "../../../../generic-token-B_ptO5yb.js";
6
6
  import "../../Shared/Input/index.js";
7
7
  import "../../../../util/constants.js";
8
8
  import "../../../../constants-74hrsFxy.js";
9
- import "../../../../order-BJOkWhkX.js";
9
+ import "../../../../order-CdEAd-yA.js";
10
10
  import "../../../Shared/tooltip.js";
11
11
  import "../../../../util/functions.js";
12
12
  import "../../Shared/Button/index.js";
13
- import { B as w } from "../../../../index-BMhrzXlc.js";
13
+ import { B as w } from "../../../../index-Cq0Ok_nc.js";
14
14
  import "../../../../Grid2-IYppkw5f.js";
15
15
  import "../../../../Box-Bt8cGqC7.js";
16
16
  import "../../../../Typography-Du8mj1kr.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../../hoc/withThemeProvider.js";
4
- import { b as L, F as T, M as c, P as g, i as h } from "../../../../index-BMhrzXlc.js";
4
+ import { b as L, F as T, M as c, P as g, i as h } from "../../../../index-Cq0Ok_nc.js";
5
5
  import "../../../../util/constants.js";
6
6
  import "@incodetech/welcome";
7
7
  import "../../../../axios-BEX6n2A7.js";
@@ -10,7 +10,7 @@ import "../../../SignUp/pin.js";
10
10
  import "../../../../constants-74hrsFxy.js";
11
11
  import "../../../../fiatAssets-BySmKCPn.js";
12
12
  import "../../../../PlayArrow-BWNpsDIu.js";
13
- import "../../../../order-BJOkWhkX.js";
13
+ import "../../../../order-CdEAd-yA.js";
14
14
  import "../../../../react-redux-B4BZippc.js";
15
15
  import '../../../../assets/main.css';/* empty css */
16
16
  import "../../../../util/conversions.js";
@@ -5,6 +5,7 @@ import { OrderActionTypes } from 'everest-npm-api';
5
5
  export interface RocketRampBuyProps {
6
6
  partnerKey: string;
7
7
  rrBaseUrl: string;
8
+ checkoutSdkKey: string;
8
9
  }
9
10
  interface BaseBuySubComponentProps {
10
11
  dispatch: Dispatch<OrderActionTypes>;
@@ -23,6 +24,7 @@ export interface BuyFormProps extends BaseBuySubComponentProps {
23
24
  export interface BuyConfirmTransactionProps extends BaseBuySubComponentProps {
24
25
  partnerKey: string;
25
26
  walletAddress: string;
27
+ store: RocketRampAppState["app"]["store"];
26
28
  }
27
29
  export interface CardPaymentProps extends BaseBuySubComponentProps {
28
30
  checkoutKey: string;
@@ -4,7 +4,7 @@ import C from "./balance.js";
4
4
  import w from "./transaction.js";
5
5
  import { u as x, a as c } from "../../../../react-redux-B4BZippc.js";
6
6
  import "../../../../constants-74hrsFxy.js";
7
- import { o as b } from "../../../../order-BJOkWhkX.js";
7
+ import { o as b } from "../../../../order-CdEAd-yA.js";
8
8
  import { useState as B, useEffect as r } from "react";
9
9
  import { getOrionBalance as D } from "../../../../util/functions.js";
10
10
  import { useRrDialog as L } from "../../../../hooks/useRrDialog/index.js";
@@ -1,3 +1,3 @@
1
- import { BuyConfirmTransactionProps } from './types';
2
- declare const BuyConfirmTransaction: ({ setScreen, partnerKey, orderData, dispatch, walletAddress, navigate, }: BuyConfirmTransactionProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { SellConfirmTransactionProps } from './types';
2
+ declare const BuyConfirmTransaction: ({ setScreen, partnerKey, orderData, dispatch, walletAddress, navigate, store, }: SellConfirmTransactionProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BuyConfirmTransaction;
@@ -3,10 +3,10 @@ import "react";
3
3
  import "../../Shared/backBtn.js";
4
4
  import "../../../../util/functions.js";
5
5
  import "../../../../util/constants.js";
6
- import { B as h } from "../../../../index-Dxl09QM3.js";
6
+ import { B as h } from "../../../../index-ChbzuA59.js";
7
7
  import "../../Shared/Button/index.js";
8
8
  import "../../../../constants-74hrsFxy.js";
9
- import "../../../../order-BJOkWhkX.js";
9
+ import "../../../../order-CdEAd-yA.js";
10
10
  import "../../../Shared/transition.js";
11
11
  import "../../../../Close-BMBeNE5d.js";
12
12
  import "../../../../Typography-Du8mj1kr.js";
@@ -1,3 +1,3 @@
1
1
  import { SellFormProps } from './types';
2
- declare const SellForm: ({ setScreen, orderData, dispatch, fiatAssets, cryptoAssets, getCryptoAssets, showAlertMessage, partnerKey, balance, }: SellFormProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SellForm: ({ setScreen, orderData, dispatch, fiatAssets, cryptoAssets, getCryptoAssets, showAlertMessage, partnerKey, balance, store, }: SellFormProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default SellForm;
@@ -6,11 +6,11 @@ import "../../../../generic-token-B_ptO5yb.js";
6
6
  import "../../Shared/Input/index.js";
7
7
  import "../../../../util/constants.js";
8
8
  import "../../../../constants-74hrsFxy.js";
9
- import "../../../../order-BJOkWhkX.js";
9
+ import "../../../../order-CdEAd-yA.js";
10
10
  import "../../../Shared/tooltip.js";
11
11
  import "../../../../util/functions.js";
12
12
  import "../../Shared/Button/index.js";
13
- import { S as w } from "../../../../index-Dxl09QM3.js";
13
+ import { S as w } from "../../../../index-ChbzuA59.js";
14
14
  import "../../../../Grid2-IYppkw5f.js";
15
15
  import "../../../../Box-Bt8cGqC7.js";
16
16
  import "../../../../Typography-Du8mj1kr.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../../hoc/withThemeProvider.js";
4
- import { C as b, F as c, M as g, P as h, i as j } from "../../../../index-Dxl09QM3.js";
4
+ import { C as b, F as c, M as g, P as h, i as j } from "../../../../index-ChbzuA59.js";
5
5
  import "../../../../util/constants.js";
6
6
  import "@incodetech/welcome";
7
7
  import "../../../../axios-BEX6n2A7.js";
@@ -10,7 +10,7 @@ import "../../../SignUp/pin.js";
10
10
  import "../../../../constants-74hrsFxy.js";
11
11
  import "../../../../fiatAssets-BySmKCPn.js";
12
12
  import "../../../../PlayArrow-BWNpsDIu.js";
13
- import "../../../../order-BJOkWhkX.js";
13
+ import "../../../../order-CdEAd-yA.js";
14
14
  import "../../../../react-redux-B4BZippc.js";
15
15
  import '../../../../assets/main.css';/* empty css */
16
16
  import "../../../../util/conversions.js";
@@ -18,11 +18,13 @@ export interface SellFormProps extends BaseSellSubComponentProps {
18
18
  getCryptoAssets: (id: number) => void;
19
19
  partnerKey: string;
20
20
  balance: number;
21
+ store: RocketRampAppState["app"]["store"];
21
22
  }
22
- export interface BuyConfirmTransactionProps extends BaseSellSubComponentProps {
23
+ export interface SellConfirmTransactionProps extends BaseSellSubComponentProps {
23
24
  partnerKey: string;
24
25
  walletAddress: string;
25
26
  navigate: any;
27
+ store: RocketRampAppState["app"]["store"];
26
28
  }
27
29
  export interface CardPaymentProps extends BaseSellSubComponentProps {
28
30
  checkoutKey: string;
@@ -1,21 +1,22 @@
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
- import I from "./personalInfo.js";
9
- import L from "./summary.js";
10
- import W from "./validateEmail.js";
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { useState as b, useEffect as f } from "react";
3
+ import { useSnackBar as C } from "../../../../hooks/useSnackBar.js";
4
+ import { u as I, a as E } from "../../../../react-redux-B4BZippc.js";
5
+ import T from "../../../../hoc/withThemeProvider.js";
6
+ import { L as _ } from "../../../../rr-primary-logo-CqI24c8v.js";
7
+ import A from "./email.js";
8
+ import L from "./personalInfo.js";
9
+ import W from "./summary.js";
10
+ import q from "./validateEmail.js";
11
11
  import "../../../../constants-74hrsFxy.js";
12
- import { a as _, u as A, r as V, v as j, l as O } from "../../../../auth-CD4Ih2jU.js";
12
+ import { a as U, u as V, r as j, v as M } from "../../../../auth-CD4Ih2jU.js";
13
+ import { USERNAME_SUFFIX as N } from "../../../../util/constants.js";
13
14
  import { C as z } from "../../../../Container-Htc6vdB5.js";
14
- import { B as E } from "../../../../Box-Bt8cGqC7.js";
15
- import { S as v } from "../../../../Stack-Ce-OQAtj.js";
15
+ import { B as v } from "../../../../Box-Bt8cGqC7.js";
16
+ import { S as F } from "../../../../Stack-Ce-OQAtj.js";
16
17
  import { T as u } from "../../../../Typography-Du8mj1kr.js";
17
- const M = ({ onRegister: B, navigate: h, navigatePath: g }) => {
18
- const r = b(), t = y((o) => o.session), s = y((o) => o.app).store.name, m = t.loader, x = t.validationError, R = t.screen, N = t.otpLoader, p = t.uuid, c = t.token, l = t.error, k = 4, { showAlertMessage: n, snackBar: w } = F(), [e, S] = D({
18
+ const P = ({ onRegister: k, navigate: h, navigatePath: g }) => {
19
+ const a = I(), r = E((o) => o.session), i = E((o) => o.app).store.name, m = r.loader, x = r.validationError, S = r.screen, B = r.otpLoader, p = r.uuid, c = r.token, l = r.error, w = 4, { showAlertMessage: n, snackBar: D } = C(), [e, R] = b({
19
20
  email: "",
20
21
  username: "",
21
22
  firstName: "",
@@ -23,16 +24,27 @@ const M = ({ onRegister: B, navigate: h, navigatePath: g }) => {
23
24
  phone: ""
24
25
  });
25
26
  f(() => () => {
26
- r(_());
27
+ a(U());
27
28
  }, []), f(() => {
28
- p && c && (B(p, c), h(g || "/dashboard"));
29
+ p && c && (k(p, c), h(g || "/dashboard"));
29
30
  }, [p, c]), f(() => {
30
31
  l && n({ message: l });
31
32
  }, [l]);
32
33
  const d = (o) => {
33
- r(A(o));
34
+ a(V(o));
35
+ }, y = () => {
36
+ a(
37
+ j({
38
+ first_name: e.firstName,
39
+ last_name: e.lastName,
40
+ email: e.email,
41
+ username: e.username + N,
42
+ phone: "+1" + e.phone,
43
+ storename: i
44
+ })
45
+ );
34
46
  };
35
- return /* @__PURE__ */ a(
47
+ return /* @__PURE__ */ s(
36
48
  z,
37
49
  {
38
50
  maxWidth: "sm",
@@ -46,10 +58,10 @@ const M = ({ onRegister: B, navigate: h, navigatePath: g }) => {
46
58
  // alignItems: "center",
47
59
  },
48
60
  children: [
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
- E,
61
+ D,
62
+ /* @__PURE__ */ t(v, { sx: { marginTop: "0.5rem", marginBottom: "2.25rem" }, children: /* @__PURE__ */ t("img", { alt: "RocketRamp logo", src: _ }) }),
63
+ /* @__PURE__ */ s(
64
+ v,
53
65
  {
54
66
  sx: {
55
67
  flex: 1,
@@ -64,102 +76,89 @@ const M = ({ onRegister: B, navigate: h, navigatePath: g }) => {
64
76
  display: "flex"
65
77
  },
66
78
  children: [
67
- /* @__PURE__ */ a(v, { direction: "column", spacing: 1.5, children: [
68
- /* @__PURE__ */ i(u, { variant: "2xl", fontWeight: 600, children: "Create New Account" }),
69
- /* @__PURE__ */ a(v, { direction: "row", gap: "0.25rem", children: [
70
- /* @__PURE__ */ a(u, { variant: "md", fontWeight: 500, children: [
79
+ /* @__PURE__ */ s(F, { direction: "column", spacing: 1.5, children: [
80
+ /* @__PURE__ */ t(u, { variant: "2xl", fontWeight: 600, children: "Create New Account" }),
81
+ /* @__PURE__ */ s(F, { direction: "row", gap: "0.25rem", children: [
82
+ /* @__PURE__ */ s(u, { variant: "md", fontWeight: 500, children: [
71
83
  "Step ",
72
- R
84
+ S
73
85
  ] }),
74
- /* @__PURE__ */ a(u, { variant: "md", fontWeight: 200, children: [
86
+ /* @__PURE__ */ s(u, { variant: "md", fontWeight: 200, children: [
75
87
  "of ",
76
- k
88
+ w
77
89
  ] })
78
90
  ] })
79
91
  ] }),
80
92
  {
81
- 1: /* @__PURE__ */ i(
82
- q,
93
+ 1: /* @__PURE__ */ t(
94
+ A,
83
95
  {
84
96
  showAlertMessage: n,
85
97
  loader: m,
86
98
  registerInfo: e,
87
- setRegisterInfo: S,
99
+ setRegisterInfo: R,
88
100
  navigate: h,
89
- dispatch: r,
90
- storeName: s,
101
+ dispatch: a,
102
+ storeName: i,
91
103
  validationError: x,
92
104
  setCurrentStep: d
93
105
  }
94
106
  ),
95
- 2: /* @__PURE__ */ i(
96
- I,
107
+ 2: /* @__PURE__ */ t(
108
+ L,
97
109
  {
98
110
  showAlertMessage: n,
99
111
  loader: m,
100
112
  registerInfo: e,
101
- dispatch: r,
102
- setRegisterInfo: S,
113
+ dispatch: a,
114
+ setRegisterInfo: R,
103
115
  setCurrentStep: d,
104
116
  validationError: x,
105
- storeName: s
117
+ storeName: i
106
118
  }
107
119
  ),
108
- 3: /* @__PURE__ */ i(
109
- L,
120
+ 3: /* @__PURE__ */ t(
121
+ W,
110
122
  {
111
123
  showAlertMessage: n,
112
124
  loader: m,
113
125
  registerInfo: e,
114
- storeName: s,
126
+ storeName: i,
115
127
  setCurrentStep: d,
116
- initRegister: () => {
117
- r(
118
- V({
119
- first_name: e.firstName,
120
- last_name: e.lastName,
121
- email: e.email,
122
- username: e.username,
123
- phone: "+1" + e.phone,
124
- storename: s
125
- })
126
- );
127
- }
128
+ initRegister: y
128
129
  }
129
130
  ),
130
- 4: /* @__PURE__ */ i(
131
- W,
131
+ 4: /* @__PURE__ */ t(
132
+ q,
132
133
  {
133
134
  showAlertMessage: n,
134
135
  loader: m,
135
- otpLoader: N,
136
+ otpLoader: B,
136
137
  registerInfo: e,
137
138
  initVerifyRegister: (o) => {
138
- r(
139
- j({
139
+ a(
140
+ M({
140
141
  first_name: e.firstName,
141
142
  last_name: e.lastName,
142
143
  email: e.email,
143
- username: e.username,
144
+ username: e.username + N,
144
145
  phone: "+1" + e.phone,
145
- storename: s,
146
+ storename: i,
146
147
  otp: o
147
148
  })
148
149
  );
149
150
  },
150
- initReSendOtp: () => {
151
- r(O(e.email));
152
- }
151
+ initRegister: y
153
152
  }
154
153
  )
155
- }[R]
154
+ }[S]
156
155
  ]
157
156
  }
158
157
  )
159
158
  ]
160
159
  }
161
160
  );
162
- }, pe = C(M);
161
+ }, pe = T(P);
163
162
  export {
164
163
  pe as default
165
164
  };