@stokr/components-library 3.0.50 → 3.0.52
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/components/Footer/FooterLayout.js +3 -1
- package/dist/components/StepsProgress/StepsProgress.js +2 -2
- package/dist/components/icons/LinkIcon.js +2 -2
- package/dist/context/AuthContext.js +15 -16
- package/dist/runtime-config.js +1 -1
- package/dist/static/country-list.json +251 -251
- package/dist/static/fonts/Ionicons/ionicons.min.css +2810 -2810
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +1 -1
- package/dist/static/fonts/icomoon/selection.json +910 -910
- package/dist/static/fonts/icomoon/style.css +139 -139
- package/dist/static/images/copy_icon.svg +4 -4
- package/dist/static/images/download_icon.svg +3 -3
- package/dist/static/images/face-scan-icon.svg +7 -7
- package/dist/static/images/numbers/number_eight.svg +3 -3
- package/dist/static/images/numbers/number_five.svg +4 -4
- package/dist/static/images/numbers/number_four.svg +3 -3
- package/dist/static/images/numbers/number_nine.svg +4 -4
- package/dist/static/images/numbers/number_one.svg +4 -4
- package/dist/static/images/numbers/number_seven.svg +4 -4
- package/dist/static/images/numbers/number_six.svg +4 -4
- package/dist/static/images/numbers/number_three.svg +3 -3
- package/dist/static/images/numbers/number_two.svg +4 -4
- package/dist/static/images/numbers/number_zero.svg +3 -3
- package/dist/static/images/plus-icon.svg +4 -4
- package/dist/static/images/search-icon.svg +3 -3
- package/dist/static/images/transfer-icon.svg +10 -10
- package/dist/static/images/warning-filled.svg +3 -3
- package/dist/utils/checklistGenerator.js +20 -21
- package/package.json +1 -1
|
@@ -69,7 +69,9 @@ function getFooterGroups() {
|
|
|
69
69
|
{
|
|
70
70
|
name: "Cookie policy",
|
|
71
71
|
url: `${platformURL}/cookie-policy`
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
|
+
{ name: "Complaints", url: `${platformURL}/complaints` },
|
|
74
|
+
{ name: "Conflicts of Interest", url: `${platformURL}/conflicts-of-interest` }
|
|
73
75
|
]
|
|
74
76
|
},
|
|
75
77
|
{
|
|
@@ -6,7 +6,7 @@ import { walletTypes } from "../../constants/globalVariables.js";
|
|
|
6
6
|
const StepsProgressSignup = (props) => {
|
|
7
7
|
let navigate = useNavigate();
|
|
8
8
|
const { user = {} } = props;
|
|
9
|
-
const { country, kyc_status,
|
|
9
|
+
const { country, kyc_status, self_declaration, wallets = [] } = user;
|
|
10
10
|
const KYCNotDone = !kyc_status || kyc_status === "Reaply" || kyc_status === "Cancelled" || kyc_status === "Draft";
|
|
11
11
|
const hasLiquidWallet = wallets?.filter((wallet) => wallet.type === walletTypes.LIQUID).length > 0;
|
|
12
12
|
const isActiveStep = (path) => typeof window !== "undefined" ? window.location.pathname.includes(path) : false;
|
|
@@ -26,7 +26,7 @@ const StepsProgressSignup = (props) => {
|
|
|
26
26
|
{
|
|
27
27
|
id: "self-certification",
|
|
28
28
|
handleClick: () => navigate("/self-certification"),
|
|
29
|
-
isDone: !!
|
|
29
|
+
isDone: !!self_declaration,
|
|
30
30
|
isActive: isActiveStep("/self-certification")
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -17,13 +17,13 @@ const LinkIcon = () => /* @__PURE__ */ jsxs(
|
|
|
17
17
|
/* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx(
|
|
18
18
|
"path",
|
|
19
19
|
{
|
|
20
|
-
d: "M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859\
|
|
20
|
+
d: "M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859\n c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318\n c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6\n c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581\n c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0\n c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0\n c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z"
|
|
21
21
|
}
|
|
22
22
|
) }) }),
|
|
23
23
|
/* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx(
|
|
24
24
|
"path",
|
|
25
25
|
{
|
|
26
|
-
d: "M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387\
|
|
26
|
+
d: "M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387\n c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877\n l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768\n l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0\n c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893\n c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365\n c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597\n c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403\n l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z"
|
|
27
27
|
}
|
|
28
28
|
) }) }),
|
|
29
29
|
/* @__PURE__ */ jsx("g", {}),
|
|
@@ -79,12 +79,12 @@ class AuthProviderClass extends Component {
|
|
|
79
79
|
INACTIVITY_EVENTS.forEach((event) => window.addEventListener(event, this.resetInactivityTimer));
|
|
80
80
|
}
|
|
81
81
|
componentDidUpdate(prevProps, prevState) {
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
if (!
|
|
82
|
+
const hadSession = hasLoggedInSession(prevState.user);
|
|
83
|
+
const hasSession = hasLoggedInSession(this.state.user);
|
|
84
|
+
if (!hadSession && hasSession) {
|
|
85
85
|
this.resetInactivityTimer();
|
|
86
86
|
this.scheduleCookieExpiryLogout();
|
|
87
|
-
} else if (
|
|
87
|
+
} else if (hadSession && !hasSession) {
|
|
88
88
|
this.clearInactivityTimer();
|
|
89
89
|
this.clearCookieExpiryTimer();
|
|
90
90
|
}
|
|
@@ -118,8 +118,8 @@ class AuthProviderClass extends Component {
|
|
|
118
118
|
clearTimeout(this.cookieExpiryTimerRef);
|
|
119
119
|
this.cookieExpiryTimerRef = null;
|
|
120
120
|
}
|
|
121
|
-
const { user
|
|
122
|
-
if (!user
|
|
121
|
+
const { user } = this.state;
|
|
122
|
+
if (!hasLoggedInSession(user)) return;
|
|
123
123
|
const expiresAt = Auth.getAccessTokenExpiresAt();
|
|
124
124
|
if (!expiresAt) return;
|
|
125
125
|
const delay = expiresAt - Date.now();
|
|
@@ -173,15 +173,14 @@ class AuthProviderClass extends Component {
|
|
|
173
173
|
if (now - this._lastActivityAt < 1e3) return;
|
|
174
174
|
this._lastActivityAt = now;
|
|
175
175
|
this.clearInactivityTimer();
|
|
176
|
-
const { user
|
|
177
|
-
if (user
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
176
|
+
const { user } = this.state;
|
|
177
|
+
if (!hasLoggedInSession(user)) return;
|
|
178
|
+
const delay = this.getInactivityTimeMs();
|
|
179
|
+
this.inactivityTimerRef = setTimeout(() => {
|
|
180
|
+
this.inactivityTimerRef = null;
|
|
181
|
+
Auth.logout();
|
|
182
|
+
this.setState({ sessionExpiryPendingReason: "inactivity" });
|
|
183
|
+
}, delay);
|
|
185
184
|
};
|
|
186
185
|
loginUser = async (email, password, customToken) => {
|
|
187
186
|
try {
|
|
@@ -853,7 +852,7 @@ class AuthProviderClass extends Component {
|
|
|
853
852
|
},
|
|
854
853
|
children: [
|
|
855
854
|
children,
|
|
856
|
-
(this.state.loggedOutDueToInactivity || this.state.loggedOutDueToCookieExpiry || this.state.sessionExpiryPendingReason) && !this.props.hideInactivityModal && /* @__PURE__ */ jsx(
|
|
855
|
+
(this.state.loggedOutDueToInactivity || this.state.loggedOutDueToCookieExpiry || this.state.sessionExpiryPendingReason && hasLoggedInSession(this.state.user)) && !this.props.hideInactivityModal && /* @__PURE__ */ jsx(
|
|
857
856
|
SuccessModalComponent,
|
|
858
857
|
{
|
|
859
858
|
isOpen: true,
|
package/dist/runtime-config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
|
|
1
|
+
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_ADMIN_URL": "https://admin.stokr.info", "VITE_API_URL": "https://platform-api.stokr.info/api/v1", "VITE_BASE_URL_PUBLIC": "https://platform-api-no-auth.stokr.info/api/v1", "VITE_COOKIE_DOMAIN": "localhost", "VITE_DASHBOARD_URL": "https://dashboard.stokr.info", "VITE_FIREBASE_API_KEY": "AIzaSyBBp_3Romnfv--YpUuV0mJgDymvSp3oq0c", "VITE_FIREBASE_APP_ID": "1:568229412804:web:2391857e3e2a0b02346e91", "VITE_FIREBASE_AUTH_DOMAIN": "stokr-development-env.firebaseapp.com", "VITE_FIREBASE_MEASUREMENT_ID": "G-CP53SZVSMN", "VITE_FIREBASE_MESSAGING_SENDER_ID": "568229412804", "VITE_FIREBASE_PROJECT_ID": "stokr-development-env", "VITE_FIREBASE_STORAGE_BUCKET": "stokr-development-env.appspot.com", "VITE_MIXPANEL_TOKEN": "a7bb1e881f9b2600762fded84d8ce0ea", "VITE_ONBOARDING_URL": "https://signup.stokr.info", "VITE_PHOTO_API_URL": "https://platform-api.stokr.info/api/v1", "VITE_REGISTER_URL": "https://stokr.info/signup", "VITE_WEBSITE_DOMAIN": "stokr.info" };
|
|
2
2
|
const _overrides = {};
|
|
3
3
|
const ENV_KEY_BY_CONFIG = {
|
|
4
4
|
apiUrl: "VITE_API_URL",
|