@stokr/components-library 3.0.19 → 3.0.21

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 (36) hide show
  1. package/README.md +261 -261
  2. package/dist/analytics/index.js +4 -1
  3. package/dist/components/2FA/login-with-otp-flow.js +2 -2
  4. package/dist/components/Modal/NewVentureModal/NewVentureModal.js +1 -1
  5. package/dist/components/headerHo/HeaderHo.js +2 -2
  6. package/dist/components/icons/LinkIcon.js +2 -2
  7. package/dist/config.js +1 -1
  8. package/dist/constants/globalVariables.js +1 -1
  9. package/dist/firebase-config.js +8 -8
  10. package/dist/index.js +7 -0
  11. package/dist/model/axios.js +2 -4
  12. package/dist/model/axiosPublic.js +1 -1
  13. package/dist/static/country-list.json +251 -251
  14. package/dist/static/fonts/Ionicons/ionicons.min.css +2810 -2810
  15. package/dist/static/fonts/Ionicons/ionicons.min.css.js +1 -1
  16. package/dist/static/fonts/icomoon/selection.json +910 -910
  17. package/dist/static/fonts/icomoon/style.css +139 -139
  18. package/dist/static/images/copy_icon.svg +4 -4
  19. package/dist/static/images/download_icon.svg +3 -3
  20. package/dist/static/images/numbers/number_eight.svg +3 -3
  21. package/dist/static/images/numbers/number_five.svg +4 -4
  22. package/dist/static/images/numbers/number_four.svg +3 -3
  23. package/dist/static/images/numbers/number_nine.svg +4 -4
  24. package/dist/static/images/numbers/number_one.svg +4 -4
  25. package/dist/static/images/numbers/number_seven.svg +4 -4
  26. package/dist/static/images/numbers/number_six.svg +4 -4
  27. package/dist/static/images/numbers/number_three.svg +3 -3
  28. package/dist/static/images/numbers/number_two.svg +4 -4
  29. package/dist/static/images/numbers/number_zero.svg +3 -3
  30. package/dist/static/images/plus-icon.svg +4 -4
  31. package/dist/static/images/search-icon.svg +3 -3
  32. package/dist/static/images/transfer-icon.svg +10 -10
  33. package/dist/static/images/warning-filled.svg +3 -3
  34. package/dist/styles/rwd.js +3 -1
  35. package/dist/utils/checklistGenerator.js +1 -1
  36. package/package.json +1 -1
package/README.md CHANGED
@@ -1,261 +1,261 @@
1
- # @stokr/components-library
2
-
3
- React component library for STOKR applications. Includes modals, forms, buttons, tables, and shared styles.
4
-
5
- ## Table of contents
6
-
7
- - [Installation](#installation)
8
- - [How to start](#how-to-start)
9
- - [Configuration](#configuration)
10
- - [Runtime config (npm consumers)](#runtime-config)
11
- - [Ionicons](#ionicons)
12
- - [React Router](#react-router)
13
- - [Troubleshooting](#troubleshooting)
14
- - [Development & publishing](#development--publishing)
15
-
16
- ---
17
-
18
- ## Installation
19
-
20
- ```bash
21
- npm install @stokr/components-library
22
- ```
23
-
24
- **Peer dependencies** (install in your app if not already present):
25
-
26
- ```bash
27
- npm install react react-dom styled-components react-router-dom
28
- ```
29
-
30
- - **React** 18 or 19
31
- - **styled-components** 6.x
32
- - **react-router-dom** 6.x (required if you use routing-dependent components)
33
-
34
- ---
35
-
36
- ## How to start
37
-
38
- ### 1. Install the package and peers
39
-
40
- ```bash
41
- npm install @stokr/components-library react react-dom styled-components react-router-dom
42
- ```
43
-
44
- ### 2. Wrap your app with a Router (if you use routing)
45
-
46
- Components that use navigation (e.g. `MainMenu`, `LearnMore`, `HeaderHo`) must live inside a React Router:
47
-
48
- ```jsx
49
- // main.jsx or App.jsx
50
- import { BrowserRouter } from 'react-router-dom'
51
- import App from './App'
52
-
53
- root.render(
54
- <BrowserRouter>
55
- <App />
56
- </BrowserRouter>,
57
- )
58
- ```
59
-
60
- ### 3. (Optional) Add Ionicons for icons
61
-
62
- If you use **Modal**, **ConfirmModal**, **BackButton**, **Select**, **InfoIcon**, etc., add the icon styles once at the root:
63
-
64
- ```jsx
65
- import { IoniconsStyles } from '@stokr/components-library'
66
-
67
- function App() {
68
- return (
69
- <>
70
- <IoniconsStyles />
71
- {/* your app */}
72
- </>
73
- )
74
- }
75
- ```
76
-
77
- You can skip this; the library will inject icon styles when you first use a component that needs them.
78
-
79
- ### 4. Import and use components
80
-
81
- ```jsx
82
- import { ConfirmModal, Button } from '@stokr/components-library'
83
-
84
- function MyPage() {
85
- const [open, setOpen] = useState(false)
86
- return (
87
- <>
88
- <Button onClick={() => setOpen(true)}>Open</Button>
89
- <ConfirmModal isOpen={open} onClose={() => setOpen(false)} onConfirm={() => {}} title="Confirm?" />
90
- </>
91
- )
92
- }
93
- ```
94
-
95
- ---
96
-
97
- ## Configuration
98
-
99
- ### Runtime config (required when consuming as npm package) {#runtime-config}
100
-
101
- Since v3.0.16, the library uses a **runtime config** system. When this package is consumed by an external Vite app, `import.meta.env` values are baked at **library build time** and do not reflect the consuming app's `.env` file. Pass a `config` prop to `<AuthProvider>` so API URLs, Firebase credentials, and cookie domain are resolved from **your** environment:
102
-
103
- ```jsx
104
- import { AuthProvider } from '@stokr/components-library'
105
-
106
- function App() {
107
- return (
108
- <AuthProvider
109
- config={{
110
- apiUrl: import.meta.env.VITE_API_URL,
111
- baseUrlPublic: import.meta.env.VITE_BASE_URL_PUBLIC,
112
- cookieDomain: import.meta.env.VITE_COOKIE_DOMAIN,
113
- websiteDomain: import.meta.env.VITE_WEBSITE_DOMAIN,
114
- photoApiUrl: import.meta.env.VITE_PHOTO_API_URL,
115
- firebase: {
116
- apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
117
- authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
118
- projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
119
- storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
120
- messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
121
- appId: import.meta.env.VITE_FIREBASE_APP_ID,
122
- measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID,
123
- },
124
- }}>
125
- {/* your app */}
126
- </AuthProvider>
127
- )
128
- }
129
- ```
130
-
131
- | Prop key | Env variable it replaces | Purpose |
132
- | --------------- | ------------------------ | ---------------------------------- |
133
- | `apiUrl` | `VITE_API_URL` | Backend API base URL |
134
- | `baseUrlPublic` | `VITE_BASE_URL_PUBLIC` | Public (no-auth) API base URL |
135
- | `cookieDomain` | `VITE_COOKIE_DOMAIN` | Domain attribute for auth cookies |
136
- | `websiteDomain` | `VITE_WEBSITE_DOMAIN` | Platform domain (redirects, links) |
137
- | `photoApiUrl` | `VITE_PHOTO_API_URL` | Photo upload / avatar API URL |
138
- | `firebase` | `VITE_FIREBASE_*` | Full Firebase config object |
139
-
140
- > **Why is this needed?** With the old CRA / `react-scripts` build, Webpack re-processed library code through the consuming app's build pipeline, so the app's `.env` values were injected automatically. Vite treats npm packages as pre-built — `import.meta.env` values in the compiled library are frozen at library build time. The `config` prop passes them at runtime instead.
141
-
142
- If you also need config values **before** `<AuthProvider>` mounts (e.g. for analytics init), you can call `configure()` directly:
143
-
144
- ```js
145
- import { configure } from '@stokr/components-library'
146
-
147
- configure({
148
- apiUrl: import.meta.env.VITE_API_URL,
149
- cookieDomain: import.meta.env.VITE_COOKIE_DOMAIN,
150
- // ...
151
- })
152
- ```
153
-
154
- ### Ionicons
155
-
156
- Components such as **Modal**, **ConfirmModal**, **BackButton**, **InfoIcon**, **Select**, **MainMenu**, and **RegisterLiquidSteps** use [Ionicons](http://ionicons.com/). You can enable them in three ways:
157
-
158
- | Approach | When to use |
159
- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
160
- | **Global injection** | Render `<IoniconsStyles />` once at app root. Full icon set, singleton. |
161
- | **No setup** | Don’t render anything; styles inject on first use of an icon component. |
162
- | **CSS import** | Prefer loading via CSS: `import '@stokr/components-library/styles.css'` or `import '@stokr/components-library/ionicons.css'`. |
163
-
164
- **Global injection example:**
165
-
166
- ```jsx
167
- import { IoniconsStyles } from '@stokr/components-library'
168
-
169
- function App() {
170
- return (
171
- <>
172
- <IoniconsStyles />
173
- {/* your routes, layout, etc. */}
174
- </>
175
- )
176
- }
177
- ```
178
-
179
- If you use **Layout**, **GlobalStyle**, or need **Open Sans**, import the full styles once:
180
-
181
- ```js
182
- import '@stokr/components-library/styles.css'
183
- ```
184
-
185
- ### React Router
186
-
187
- Any component that uses `useNavigate()` or routing must be rendered inside a `Router` from `react-router-dom` (e.g. `BrowserRouter`). See [How to start – step 2](#2-wrap-your-app-with-a-router-if-you-use-routing).
188
-
189
- ---
190
-
191
- ## Troubleshooting
192
-
193
- ### "useNavigate() may be used only in the context of a \<Router\> component"
194
-
195
- Wrap your app with a Router:
196
-
197
- ```jsx
198
- import { BrowserRouter } from 'react-router-dom'
199
-
200
- root.render(
201
- <BrowserRouter>
202
- <App />
203
- </BrowserRouter>,
204
- )
205
- ```
206
-
207
- Install the peer dependency: `npm install react-router-dom`
208
-
209
- ### "Invalid hook call" / "Cannot read properties of null (reading 'use')"
210
-
211
- Your app and the library must use the **same** React instance.
212
-
213
- 1. Install peer dependencies:
214
- `npm install react react-dom styled-components`
215
-
216
- 2. **Vite apps** – add dedupe in `vite.config.js` or `vite.config.ts`:
217
-
218
- ```js
219
- export default defineConfig({
220
- resolve: {
221
- dedupe: ['react', 'react-dom', 'styled-components'],
222
- },
223
- // ...rest of config
224
- })
225
- ```
226
-
227
- 3. Reinstall or refresh the library after updating (e.g. `npm install` or clear cache and reinstall).
228
-
229
- ---
230
-
231
- ## Development & publishing
232
-
233
- ### Run Storybook
234
-
235
- ```bash
236
- npm run storybook
237
- ```
238
-
239
- Use **Story Source** for consumption examples and **Viewport** for different screen sizes.
240
-
241
- ### Build for distribution
242
-
243
- ```bash
244
- npm run build:dist
245
- ```
246
-
247
- This runs `vite build` and copies static assets to `dist/`.
248
-
249
- ### Publish a new version
250
-
251
- 1. Commit your changes.
252
- 2. Update [CHANGELOG.md](CHANGELOG.md) – add a new `# vX.Y.Z` section at the top with the list of changes.
253
- 3. Bump the version: `npm version <version>` (e.g. `npm version 3.0.7`).
254
- 4. (ensure you are authenticated) Run `npm login` to log first on NPM package (only needed one time a day)
255
- 5. Run `npm run pub` (will first run `npm run build:dist`).
256
-
257
- Consumers can see what changed in each release in [CHANGELOG.md](CHANGELOG.md).
258
-
259
- ### Reference
260
-
261
- - [How to publish a React component library](https://medium.com/better-programming/how-to-publish-a-react-component-library-c89a07566770)
1
+ # @stokr/components-library
2
+
3
+ React component library for STOKR applications. Includes modals, forms, buttons, tables, and shared styles.
4
+
5
+ ## Table of contents
6
+
7
+ - [Installation](#installation)
8
+ - [How to start](#how-to-start)
9
+ - [Configuration](#configuration)
10
+ - [Runtime config (npm consumers)](#runtime-config)
11
+ - [Ionicons](#ionicons)
12
+ - [React Router](#react-router)
13
+ - [Troubleshooting](#troubleshooting)
14
+ - [Development & publishing](#development--publishing)
15
+
16
+ ---
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ npm install @stokr/components-library
22
+ ```
23
+
24
+ **Peer dependencies** (install in your app if not already present):
25
+
26
+ ```bash
27
+ npm install react react-dom styled-components react-router-dom
28
+ ```
29
+
30
+ - **React** 18 or 19
31
+ - **styled-components** 6.x
32
+ - **react-router-dom** 6.x (required if you use routing-dependent components)
33
+
34
+ ---
35
+
36
+ ## How to start
37
+
38
+ ### 1. Install the package and peers
39
+
40
+ ```bash
41
+ npm install @stokr/components-library react react-dom styled-components react-router-dom
42
+ ```
43
+
44
+ ### 2. Wrap your app with a Router (if you use routing)
45
+
46
+ Components that use navigation (e.g. `MainMenu`, `LearnMore`, `HeaderHo`) must live inside a React Router:
47
+
48
+ ```jsx
49
+ // main.jsx or App.jsx
50
+ import { BrowserRouter } from 'react-router-dom'
51
+ import App from './App'
52
+
53
+ root.render(
54
+ <BrowserRouter>
55
+ <App />
56
+ </BrowserRouter>,
57
+ )
58
+ ```
59
+
60
+ ### 3. (Optional) Add Ionicons for icons
61
+
62
+ If you use **Modal**, **ConfirmModal**, **BackButton**, **Select**, **InfoIcon**, etc., add the icon styles once at the root:
63
+
64
+ ```jsx
65
+ import { IoniconsStyles } from '@stokr/components-library'
66
+
67
+ function App() {
68
+ return (
69
+ <>
70
+ <IoniconsStyles />
71
+ {/* your app */}
72
+ </>
73
+ )
74
+ }
75
+ ```
76
+
77
+ You can skip this; the library will inject icon styles when you first use a component that needs them.
78
+
79
+ ### 4. Import and use components
80
+
81
+ ```jsx
82
+ import { ConfirmModal, Button } from '@stokr/components-library'
83
+
84
+ function MyPage() {
85
+ const [open, setOpen] = useState(false)
86
+ return (
87
+ <>
88
+ <Button onClick={() => setOpen(true)}>Open</Button>
89
+ <ConfirmModal isOpen={open} onClose={() => setOpen(false)} onConfirm={() => {}} title="Confirm?" />
90
+ </>
91
+ )
92
+ }
93
+ ```
94
+
95
+ ---
96
+
97
+ ## Configuration
98
+
99
+ ### Runtime config (required when consuming as npm package) {#runtime-config}
100
+
101
+ Since v3.0.16, the library uses a **runtime config** system. When this package is consumed by an external Vite app, `import.meta.env` values are baked at **library build time** and do not reflect the consuming app's `.env` file. Pass a `config` prop to `<AuthProvider>` so API URLs, Firebase credentials, and cookie domain are resolved from **your** environment:
102
+
103
+ ```jsx
104
+ import { AuthProvider } from '@stokr/components-library'
105
+
106
+ function App() {
107
+ return (
108
+ <AuthProvider
109
+ config={{
110
+ apiUrl: import.meta.env.VITE_API_URL,
111
+ baseUrlPublic: import.meta.env.VITE_BASE_URL_PUBLIC,
112
+ cookieDomain: import.meta.env.VITE_COOKIE_DOMAIN,
113
+ websiteDomain: import.meta.env.VITE_WEBSITE_DOMAIN,
114
+ photoApiUrl: import.meta.env.VITE_PHOTO_API_URL,
115
+ firebase: {
116
+ apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
117
+ authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
118
+ projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
119
+ storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
120
+ messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
121
+ appId: import.meta.env.VITE_FIREBASE_APP_ID,
122
+ measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID,
123
+ },
124
+ }}>
125
+ {/* your app */}
126
+ </AuthProvider>
127
+ )
128
+ }
129
+ ```
130
+
131
+ | Prop key | Env variable it replaces | Purpose |
132
+ | --------------- | ------------------------ | ---------------------------------- |
133
+ | `apiUrl` | `VITE_API_URL` | Backend API base URL |
134
+ | `baseUrlPublic` | `VITE_BASE_URL_PUBLIC` | Public (no-auth) API base URL |
135
+ | `cookieDomain` | `VITE_COOKIE_DOMAIN` | Domain attribute for auth cookies |
136
+ | `websiteDomain` | `VITE_WEBSITE_DOMAIN` | Platform domain (redirects, links) |
137
+ | `photoApiUrl` | `VITE_PHOTO_API_URL` | Photo upload / avatar API URL |
138
+ | `firebase` | `VITE_FIREBASE_*` | Full Firebase config object |
139
+
140
+ > **Why is this needed?** With the old CRA / `react-scripts` build, Webpack re-processed library code through the consuming app's build pipeline, so the app's `.env` values were injected automatically. Vite treats npm packages as pre-built — `import.meta.env` values in the compiled library are frozen at library build time. The `config` prop passes them at runtime instead.
141
+
142
+ If you also need config values **before** `<AuthProvider>` mounts (e.g. for analytics init), you can call `configure()` directly:
143
+
144
+ ```js
145
+ import { configure } from '@stokr/components-library'
146
+
147
+ configure({
148
+ apiUrl: import.meta.env.VITE_API_URL,
149
+ cookieDomain: import.meta.env.VITE_COOKIE_DOMAIN,
150
+ // ...
151
+ })
152
+ ```
153
+
154
+ ### Ionicons
155
+
156
+ Components such as **Modal**, **ConfirmModal**, **BackButton**, **InfoIcon**, **Select**, **MainMenu**, and **RegisterLiquidSteps** use [Ionicons](http://ionicons.com/). You can enable them in three ways:
157
+
158
+ | Approach | When to use |
159
+ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
160
+ | **Global injection** | Render `<IoniconsStyles />` once at app root. Full icon set, singleton. |
161
+ | **No setup** | Don’t render anything; styles inject on first use of an icon component. |
162
+ | **CSS import** | Prefer loading via CSS: `import '@stokr/components-library/styles.css'` or `import '@stokr/components-library/ionicons.css'`. |
163
+
164
+ **Global injection example:**
165
+
166
+ ```jsx
167
+ import { IoniconsStyles } from '@stokr/components-library'
168
+
169
+ function App() {
170
+ return (
171
+ <>
172
+ <IoniconsStyles />
173
+ {/* your routes, layout, etc. */}
174
+ </>
175
+ )
176
+ }
177
+ ```
178
+
179
+ If you use **Layout**, **GlobalStyle**, or need **Open Sans**, import the full styles once:
180
+
181
+ ```js
182
+ import '@stokr/components-library/styles.css'
183
+ ```
184
+
185
+ ### React Router
186
+
187
+ Any component that uses `useNavigate()` or routing must be rendered inside a `Router` from `react-router-dom` (e.g. `BrowserRouter`). See [How to start – step 2](#2-wrap-your-app-with-a-router-if-you-use-routing).
188
+
189
+ ---
190
+
191
+ ## Troubleshooting
192
+
193
+ ### "useNavigate() may be used only in the context of a \<Router\> component"
194
+
195
+ Wrap your app with a Router:
196
+
197
+ ```jsx
198
+ import { BrowserRouter } from 'react-router-dom'
199
+
200
+ root.render(
201
+ <BrowserRouter>
202
+ <App />
203
+ </BrowserRouter>,
204
+ )
205
+ ```
206
+
207
+ Install the peer dependency: `npm install react-router-dom`
208
+
209
+ ### "Invalid hook call" / "Cannot read properties of null (reading 'use')"
210
+
211
+ Your app and the library must use the **same** React instance.
212
+
213
+ 1. Install peer dependencies:
214
+ `npm install react react-dom styled-components`
215
+
216
+ 2. **Vite apps** – add dedupe in `vite.config.js` or `vite.config.ts`:
217
+
218
+ ```js
219
+ export default defineConfig({
220
+ resolve: {
221
+ dedupe: ['react', 'react-dom', 'styled-components'],
222
+ },
223
+ // ...rest of config
224
+ })
225
+ ```
226
+
227
+ 3. Reinstall or refresh the library after updating (e.g. `npm install` or clear cache and reinstall).
228
+
229
+ ---
230
+
231
+ ## Development & publishing
232
+
233
+ ### Run Storybook
234
+
235
+ ```bash
236
+ npm run storybook
237
+ ```
238
+
239
+ Use **Story Source** for consumption examples and **Viewport** for different screen sizes.
240
+
241
+ ### Build for distribution
242
+
243
+ ```bash
244
+ npm run build:dist
245
+ ```
246
+
247
+ This runs `vite build` and copies static assets to `dist/`.
248
+
249
+ ### Publish a new version
250
+
251
+ 1. Commit your changes.
252
+ 2. Update [CHANGELOG.md](CHANGELOG.md) – add a new `# vX.Y.Z` section at the top with the list of changes.
253
+ 3. Bump the version: `npm version <version>` (e.g. `npm version 3.0.7`).
254
+ 4. (ensure you are authenticated) Run `npm login` to log first on NPM package (only needed one time a day)
255
+ 5. Run `npm run pub` (will first run `npm run build:dist`).
256
+
257
+ Consumers can see what changed in each release in [CHANGELOG.md](CHANGELOG.md).
258
+
259
+ ### Reference
260
+
261
+ - [How to publish a React component library](https://medium.com/better-programming/how-to-publish-a-react-component-library-c89a07566770)
@@ -75,10 +75,13 @@ function initAnalytics({
75
75
  app,
76
76
  requireConsent = false,
77
77
  scroll = true,
78
- apiHost = `https://analytics.${"stokr.info"}`
78
+ apiHost = "https://api-eu.mixpanel.com"
79
79
  } = {}) {
80
80
  if (initialized) return;
81
81
  if (!token) return;
82
+ if (typeof navigator !== "undefined" && /Ghost Inspector/i.test(navigator.userAgent)) {
83
+ return;
84
+ }
82
85
  mixpanel.init(token, {
83
86
  api_host: apiHost,
84
87
  autocapture: {
@@ -65,10 +65,10 @@ const LoginWithOTP = ({ withBackground }) => {
65
65
  background: withBackground && backgroundProp,
66
66
  isModalOpen: isModalOpen.login,
67
67
  onModalClose: () => {
68
- window.location.href = `https://${"stokr.info"}`;
68
+ window.location.href = `https://${void 0}`;
69
69
  },
70
70
  onModalSwitch: () => {
71
- window.location.href = `https://${"stokr.info"}/signup`;
71
+ window.location.href = `https://${void 0}/signup`;
72
72
  },
73
73
  onForgotPassword: () => {
74
74
  switchOpenModal("login", "forgot");
@@ -95,7 +95,7 @@ const NewVentureModal = (props) => {
95
95
  onSuccessMessageBtnClick();
96
96
  } else {
97
97
  if (user?._id) {
98
- window.location.href = `https://dashboard.${"stokr.info"}/checklist`;
98
+ window.location.href = `https://dashboard.${void 0}/checklist`;
99
99
  } else {
100
100
  window.location.href = `/signup?email=${email}`;
101
101
  }
@@ -651,7 +651,7 @@ const _HeaderHoClass = class _HeaderHoClass extends Component {
651
651
  const query = new URLSearchParams(location?.search);
652
652
  let userType = query.get("user_type");
653
653
  if (userType && userType === "sa") {
654
- window.open(`https://backoffice.${"stokr.info"}`);
654
+ window.open(`https://backoffice.${void 0}`);
655
655
  } else {
656
656
  this.switchOpenModal("confirmReset", "login");
657
657
  }
@@ -666,7 +666,7 @@ const _HeaderHoClass = class _HeaderHoClass extends Component {
666
666
  popupError: this.state.popupError,
667
667
  popupSuccess: this.state.popupSuccess,
668
668
  isModalOpen: isModalOpen.verifyEmail,
669
- continueUrl: `https://signup.${"stokr.info"}/welcome`,
669
+ continueUrl: `https://signup.${void 0}/welcome`,
670
670
  error: verifyEmailError,
671
671
  isSuccess: !verifyEmailError,
672
672
  onModalSwitch: () => {
@@ -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\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"
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\r\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\r\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\r\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\r\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\r\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\r\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\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"
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\r\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\r\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\r\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\r\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\r\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\r\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\r\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\r\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", {}),
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { initFirebase } from "./firebase-config.js";
2
2
  import axiosInstance from "./model/axios.js";
3
3
  import axiosInstance$1 from "./model/axiosPublic.js";
4
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "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": "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_PHOTO_API_URL": "https://platform-api.stokr.info/api/v1", "VITE_WEBSITE_DOMAIN": "stokr.info" };
4
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
5
5
  const _overrides = {};
6
6
  let _lastFirebaseConfig = null;
7
7
  function configure(config = {}) {
@@ -1,4 +1,4 @@
1
- const platformDomain = "stokr.info";
1
+ const platformDomain = void 0;
2
2
  const platformURL = "https://" + platformDomain;
3
3
  const walletTypes = {
4
4
  LIQUID: "liquid"
@@ -1,18 +1,18 @@
1
1
  import { getApps, getApp, initializeApp } from "firebase/app";
2
2
  import { initializeAuth, inMemoryPersistence, getAuth } from "firebase/auth";
3
- const __vite_import_meta_env__ = {};
3
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
4
4
  let app = null;
5
5
  let auth = null;
6
6
  function getEnvFirebaseConfig() {
7
7
  try {
8
8
  return {
9
- apiKey: "AIzaSyBBp_3Romnfv--YpUuV0mJgDymvSp3oq0c",
10
- authDomain: "stokr-development-env.firebaseapp.com",
11
- projectId: "stokr-development-env",
12
- storageBucket: "stokr-development-env.appspot.com",
13
- messagingSenderId: "568229412804",
14
- appId: "1:568229412804:web:2391857e3e2a0b02346e91",
15
- measurementId: "G-CP53SZVSMN"
9
+ apiKey: __vite_import_meta_env__?.VITE_FIREBASE_API_KEY,
10
+ authDomain: __vite_import_meta_env__?.VITE_FIREBASE_AUTH_DOMAIN,
11
+ projectId: __vite_import_meta_env__?.VITE_FIREBASE_PROJECT_ID,
12
+ storageBucket: __vite_import_meta_env__?.VITE_FIREBASE_STORAGE_BUCKET,
13
+ messagingSenderId: __vite_import_meta_env__?.VITE_FIREBASE_MESSAGING_SENDER_ID,
14
+ appId: __vite_import_meta_env__?.VITE_FIREBASE_APP_ID,
15
+ measurementId: __vite_import_meta_env__?.VITE_FIREBASE_MEASUREMENT_ID
16
16
  };
17
17
  } catch {
18
18
  return {};