@bytexbyte/berifyme-react-sdk 1.0.0 → 1.0.1

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 (35) hide show
  1. package/dist/BerifymeModal/index.js +54 -38
  2. package/dist/api/api.js +40 -4
  3. package/dist/components/AllSet/index.js +36 -21
  4. package/dist/components/Login/sumsub/index.js +212 -0
  5. package/dist/components/Login/veriff/Login.js +168 -0
  6. package/dist/components/Login/veriff/index.js +14 -0
  7. package/dist/components/Login/yoti/Login.js +235 -0
  8. package/dist/components/Login/yoti/index.js +14 -0
  9. package/dist/components/OnBoarding/authId/index.js +47 -13
  10. package/dist/components/OnBoarding/sumsub/index.js +183 -0
  11. package/dist/components/OnBoarding/vender/grid/index.js +9 -9
  12. package/dist/components/OnBoarding/veriff/index.js +152 -0
  13. package/dist/components/OnBoarding/yoti/OnBoarding.js +228 -0
  14. package/dist/components/OnBoarding/yoti/index.js +14 -0
  15. package/dist/components/SendSns/index.js +18 -13
  16. package/dist/components/TryAgain.js +4 -5
  17. package/dist/components/VerifyWithPhoneNumber/NewUser/index.js +8 -8
  18. package/dist/components/VerifyWithPhoneNumber/User/index.js +17 -12
  19. package/dist/enum/index.js +6 -0
  20. package/dist/types/BerifymeModal/index.d.ts +1 -1
  21. package/dist/types/api/api.d.ts +19 -2
  22. package/dist/types/components/Login/sumsub/index.d.ts +10 -0
  23. package/dist/types/components/Login/veriff/Login.d.ts +12 -0
  24. package/dist/types/components/Login/veriff/index.d.ts +11 -0
  25. package/dist/types/components/Login/yoti/Login.d.ts +11 -0
  26. package/dist/types/components/Login/yoti/index.d.ts +10 -0
  27. package/dist/types/components/OnBoarding/authId/index.d.ts +3 -1
  28. package/dist/types/components/OnBoarding/sumsub/index.d.ts +10 -0
  29. package/dist/types/components/OnBoarding/veriff/index.d.ts +11 -0
  30. package/dist/types/components/OnBoarding/yoti/OnBoarding.d.ts +12 -0
  31. package/dist/types/components/OnBoarding/yoti/index.d.ts +11 -0
  32. package/dist/types/components/SendSns/index.d.ts +1 -1
  33. package/dist/types/components/VerifyWithPhoneNumber/User/index.d.ts +1 -1
  34. package/dist/types/enum/index.d.ts +6 -0
  35. package/package.json +1 -1
@@ -34,20 +34,20 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import React from 'react';
38
- import { environmentDomains } from '../../lib/environmentDomains';
39
37
  import { Box, Button, CircularProgress, Stack, Typography } from '@mui/material';
40
38
  import { isValidPhoneNumber } from 'libphonenumber-js';
41
- import { useState } from 'react';
39
+ import React, { useState } from 'react';
42
40
  import PhoneInput from 'react-phone-input-2';
43
- import './style.css';
44
41
  import berifymeApi, { ActionType } from '../../api/api';
45
- import theme from "../theme";
42
+ import { PageStatus } from '../../enum';
43
+ import { environmentDomains } from '../../lib/environmentDomains';
44
+ import webauthn from '../../lib/webauthb';
46
45
  import { createAuthenticationLog } from '../AuthenticationLogs';
47
46
  import { createDeveloperLog } from '../createDeveloperLog';
48
47
  import Footer from '../Footer';
49
48
  import { processPhoneNumber } from '../phoneNumberProcesser';
50
- import webauthn from '../../lib/webauthb';
49
+ import theme from "../theme";
50
+ import './style.css';
51
51
  var SendSns = function (_a) {
52
52
  var token = _a.token, inputValue = _a.inputValue, setInputValue = _a.setInputValue, setError = _a.setError, setPageStatus = _a.setPageStatus, setProcessedPhoneNumber = _a.setProcessedPhoneNumber, setModalHeight = _a.setModalHeight, setUser = _a.setUser, environment = _a.environment;
53
53
  var _b = useState(true), isValid = _b[0], setIsValid = _b[1];
@@ -159,7 +159,7 @@ var SendSns = function (_a) {
159
159
  });
160
160
  setUser(deviceUser.user);
161
161
  setModalHeight('60vh');
162
- setPageStatus(10);
162
+ setPageStatus(PageStatus.AllSet);
163
163
  setIsLoading(false);
164
164
  createDeveloperLog({
165
165
  userId: webauthnLogin.user.id,
@@ -195,32 +195,37 @@ var SendSns = function (_a) {
195
195
  // });
196
196
  // setUser(checkResult.user);
197
197
  // setModalHeight('60vh');
198
- // setPageStatus(10);
198
+ // setPageStatus(PageStatus.AllSet);
199
199
  // return;
200
200
  // }
201
201
  // }
202
202
  if (getVender.vender === 'authid') {
203
- setLogin(3);
203
+ setLogin(PageStatus.AuthidLogin);
204
204
  setModalHeight('50vh');
205
205
  setFullName(getVender.fullName);
206
206
  }
207
207
  else if (getVender.vender === 'clear') {
208
- setLogin(4);
208
+ setLogin(PageStatus.ClearLogin);
209
209
  setModalHeight('50vh');
210
210
  setFullName(getVender.fullName);
211
211
  }
212
212
  else if (getVender.vender === 'incode') {
213
- setLogin(5);
213
+ setLogin(PageStatus.IncodeLogin);
214
214
  setModalHeight('50vh');
215
215
  setFullName(getVender.fullName);
216
216
  }
217
217
  else if (getVender.vender === 'sumsub') {
218
- setLogin(8);
218
+ setLogin(PageStatus.SumsubLogin);
219
219
  setModalHeight('50vh');
220
220
  setFullName(getVender.fullName);
221
221
  }
222
222
  else if (getVender.vender === 'veriff') {
223
- setLogin(9);
223
+ setLogin(PageStatus.VeriffLogin);
224
+ setModalHeight('50vh');
225
+ setFullName(getVender.fullName);
226
+ }
227
+ else if (getVender.vender === 'yoti') {
228
+ setLogin(PageStatus.YotiLogin);
224
229
  setModalHeight('50vh');
225
230
  setFullName(getVender.fullName);
226
231
  }
@@ -1,4 +1,4 @@
1
- import { Button, Container, Stack, Typography } from '@mui/material';
1
+ import { Button, Stack, Typography } from '@mui/material';
2
2
  import React from 'react';
3
3
  var TryAgain = function (_a) {
4
4
  var message = _a.message, pressButton = _a.pressButton;
@@ -8,9 +8,8 @@ var TryAgain = function (_a) {
8
8
  else
9
9
  window.location.reload();
10
10
  };
11
- return (React.createElement(Container, { maxWidth: 'sm', sx: { px: 3 } },
12
- React.createElement(Stack, { height: '100vh', width: 1, maxHeight: 900, justifyContent: 'center', alignItems: 'center', spacing: 4 },
13
- React.createElement(Typography, { variant: "h3", fontWeight: 700, textAlign: "center" }, message ? message : 'Authentication Failed, Please Try Again.'),
14
- React.createElement(Button, { variant: "contained", color: "primary", onClick: handleContinue }, "Continue"))));
11
+ return (React.createElement(Stack, { height: 1, width: 1, justifyContent: 'center', alignItems: 'center', spacing: 4 },
12
+ React.createElement(Typography, { variant: "h3", fontWeight: 700, textAlign: "center" }, message ? message : 'Authentication Failed, Please Try Again.'),
13
+ React.createElement(Button, { variant: "contained", color: "primary", onClick: handleContinue }, "Continue")));
15
14
  };
16
15
  export default TryAgain;
@@ -34,18 +34,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import React from "react";
38
- import { Box, CircularProgress, IconButton, Input, Stack, Typography } from "@mui/material";
39
- import theme from "../../theme";
40
- import { useEffect, useState } from "react";
41
- import berifymeApi from "../../../api/api";
42
37
  import ArrowBackRoundedIcon from '@mui/icons-material/ArrowBackRounded';
43
38
  import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
44
- import Footer from "../../Footer";
45
- import webauthn from "../../../lib/webauthb";
39
+ import { Box, CircularProgress, IconButton, Input, Stack, Typography } from "@mui/material";
40
+ import React, { useEffect, useState } from "react";
41
+ import berifymeApi from "../../../api/api";
42
+ import { PageStatus } from "../../../enum";
46
43
  import { environmentDomains } from "../../../lib/environmentDomains";
44
+ import webauthn from "../../../lib/webauthb";
47
45
  import { createDeveloperLog } from "../../createDeveloperLog";
46
+ import Footer from "../../Footer";
48
47
  import { processPhoneNumber } from "../../phoneNumberProcesser";
48
+ import theme from "../../theme";
49
49
  var VerifyNewUser = function (_a) {
50
50
  var token = _a.token, inputValue = _a.inputValue, setPageStatus = _a.setPageStatus, setUser = _a.setUser, environment = _a.environment;
51
51
  var _b = useState(60), countdown = _b[0], setCountdown = _b[1]; // 倒數計時器,秒數為0表示可重新發送
@@ -152,7 +152,7 @@ var VerifyNewUser = function (_a) {
152
152
  React.createElement(Stack, { height: 1, spacing: 2, pt: 1 },
153
153
  React.createElement(Stack, { direction: 'row' },
154
154
  React.createElement(IconButton, { color: 'primary', onClick: function () {
155
- setPageStatus(0);
155
+ setPageStatus(PageStatus.SendSns);
156
156
  } },
157
157
  React.createElement(ArrowBackRoundedIcon, null))),
158
158
  React.createElement(Stack, { spacing: 2 },
@@ -34,18 +34,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import React from "react";
38
- import { environmentDomains } from "../../../lib/environmentDomains";
39
37
  import ArrowBackRoundedIcon from '@mui/icons-material/ArrowBackRounded';
40
38
  import { Box, Button, CircularProgress, IconButton, Input, Stack, Typography } from "@mui/material";
41
- import { useEffect, useState } from "react";
39
+ import React, { useEffect, useState } from "react";
42
40
  import berifymeApi, { ActionType } from "../../../api/api";
43
- import theme from "../../theme";
41
+ import { PageStatus } from "../../../enum";
42
+ import { environmentDomains } from "../../../lib/environmentDomains";
43
+ import webauthn from "../../../lib/webauthb";
44
44
  import { createAuthenticationLog } from "../../AuthenticationLogs";
45
45
  import { createDeveloperLog } from "../../createDeveloperLog";
46
46
  import Footer from "../../Footer";
47
- import webauthn from "../../../lib/webauthb";
48
47
  import { processPhoneNumber } from "../../phoneNumberProcesser";
48
+ import theme from "../../theme";
49
49
  var VerifyUser = function (_a) {
50
50
  var token = _a.token, inputValue = _a.inputValue, setError = _a.setError, setPageStatus = _a.setPageStatus, setUser = _a.setUser, setModalHeight = _a.setModalHeight, environment = _a.environment;
51
51
  var _b = useState(60), countdown = _b[0], setCountdown = _b[1]; // 倒數計時器,秒數為0表示可重新發送
@@ -166,7 +166,7 @@ var VerifyUser = function (_a) {
166
166
  });
167
167
  setUser(deviceUser.user);
168
168
  setModalHeight('60vh');
169
- setPageStatus(10);
169
+ setPageStatus(PageStatus.AllSet);
170
170
  createDeveloperLog({
171
171
  source: 'FRONTEND',
172
172
  action: 'handle phone number submit stop loading',
@@ -218,27 +218,32 @@ var VerifyUser = function (_a) {
218
218
  });
219
219
  }
220
220
  if (getVender.vender === 'authid') {
221
- setLogin(3);
221
+ setLogin(PageStatus.AuthidLogin);
222
222
  setModalHeight('50vh');
223
223
  setFullName(getVender.fullName);
224
224
  }
225
225
  else if (getVender.vender === 'clear') {
226
- setLogin(4);
226
+ setLogin(PageStatus.ClearLogin);
227
227
  setModalHeight('50vh');
228
228
  setFullName(getVender.fullName);
229
229
  }
230
230
  else if (getVender.vender === 'incode') {
231
- setLogin(5);
231
+ setLogin(PageStatus.IncodeLogin);
232
232
  setModalHeight('50vh');
233
233
  setFullName(getVender.fullName);
234
234
  }
235
235
  else if (getVender.vender === 'sumsub') {
236
- setLogin(8);
236
+ setLogin(PageStatus.SumsubLogin);
237
237
  setModalHeight('50vh');
238
238
  setFullName(getVender.fullName);
239
239
  }
240
240
  else if (getVender.vender === 'veriff') {
241
- setLogin(9);
241
+ setLogin(PageStatus.VeriffLogin);
242
+ setModalHeight('50vh');
243
+ setFullName(getVender.fullName);
244
+ }
245
+ else if (getVender.vender === 'yoti') {
246
+ setLogin(PageStatus.YotiLogin);
242
247
  setModalHeight('50vh');
243
248
  setFullName(getVender.fullName);
244
249
  }
@@ -291,7 +296,7 @@ var VerifyUser = function (_a) {
291
296
  React.createElement(Stack, { height: 1, spacing: 2, pt: 1 },
292
297
  React.createElement(Stack, { direction: 'row' },
293
298
  React.createElement(IconButton, { color: 'primary', onClick: function () {
294
- setPageStatus(0);
299
+ setPageStatus(PageStatus.SendSns);
295
300
  } },
296
301
  React.createElement(ArrowBackRoundedIcon, null))),
297
302
  React.createElement(Stack, { spacing: 2 },
@@ -15,10 +15,16 @@ export var PageStatus;
15
15
  PageStatus[PageStatus["AuthIdOnboarding"] = 2] = "AuthIdOnboarding";
16
16
  PageStatus[PageStatus["ClearOnboarding"] = 2.1] = "ClearOnboarding";
17
17
  PageStatus[PageStatus["IncodeOnBoarding"] = 2.2] = "IncodeOnBoarding";
18
+ PageStatus[PageStatus["SumsubOnBoarding"] = 2.3] = "SumsubOnBoarding";
19
+ PageStatus[PageStatus["VeriffOnBoarding"] = 2.4] = "VeriffOnBoarding";
20
+ PageStatus[PageStatus["YotiOnBoarding"] = 2.5] = "YotiOnBoarding";
18
21
  PageStatus[PageStatus["AuthidLogin"] = 3] = "AuthidLogin";
19
22
  PageStatus[PageStatus["ClearLogin"] = 4] = "ClearLogin";
20
23
  PageStatus[PageStatus["IncodeLogin"] = 5] = "IncodeLogin";
21
24
  PageStatus[PageStatus["ClearLoginAllSet"] = 6] = "ClearLoginAllSet";
22
25
  PageStatus[PageStatus["ClearOnboardingAllSet"] = 7] = "ClearOnboardingAllSet";
26
+ PageStatus[PageStatus["SumsubLogin"] = 8] = "SumsubLogin";
27
+ PageStatus[PageStatus["VeriffLogin"] = 9] = "VeriffLogin";
28
+ PageStatus[PageStatus["YotiLogin"] = 11] = "YotiLogin";
23
29
  PageStatus[PageStatus["AllSet"] = 10] = "AllSet";
24
30
  })(PageStatus || (PageStatus = {}));
@@ -1,6 +1,6 @@
1
- import { Environment } from '../enum';
2
1
  import React from 'react';
3
2
  import '../../index.css';
3
+ import { Environment } from '../enum';
4
4
  declare const HomeModal: React.FC<{
5
5
  apiKeyId: string;
6
6
  secretKey: string;
@@ -484,7 +484,7 @@ declare function getOrderByCountry({ countryCode }: {
484
484
  order?: [];
485
485
  error?: string;
486
486
  }>;
487
- declare function createYotiSession({ phoneNumber }: {
487
+ declare function createYotiIDVSession({ phoneNumber }: {
488
488
  phoneNumber: string;
489
489
  }): Promise<{
490
490
  sessionId: string;
@@ -492,6 +492,14 @@ declare function createYotiSession({ phoneNumber }: {
492
492
  } | {
493
493
  error: string;
494
494
  }>;
495
+ declare function createYotiFaceLoginSession({ sessionId }: {
496
+ sessionId: string;
497
+ }): Promise<{
498
+ sessionId: string;
499
+ clientSessionToken: string;
500
+ } | {
501
+ error: string;
502
+ }>;
495
503
  declare function approveYotiUser({ sessionId }: {
496
504
  sessionId: string;
497
505
  }): Promise<{
@@ -499,6 +507,13 @@ declare function approveYotiUser({ sessionId }: {
499
507
  } | {
500
508
  error: string;
501
509
  }>;
510
+ declare function getYotiFaceLoginResult({ sessionId }: {
511
+ sessionId: string;
512
+ }): Promise<{
513
+ isVerified: boolean;
514
+ } | {
515
+ error: string;
516
+ }>;
502
517
  declare function getUserByYotiId({ yotiId }: {
503
518
  yotiId: string;
504
519
  }): Promise<{
@@ -598,8 +613,10 @@ declare const berifymeApi: {
598
613
  getVeriffFaceLoginResult: typeof getVeriffFaceLoginResult;
599
614
  };
600
615
  yoti: {
601
- createYotiSession: typeof createYotiSession;
616
+ createYotiIDVSession: typeof createYotiIDVSession;
617
+ createYotiFaceLoginSession: typeof createYotiFaceLoginSession;
602
618
  approveYotiUser: typeof approveYotiUser;
619
+ getYotiFaceLoginResult: typeof getYotiFaceLoginResult;
603
620
  };
604
621
  getOrderByCountry: typeof getOrderByCountry;
605
622
  };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ goToAllSet: () => void;
7
+ token?: string;
8
+ }
9
+ declare const SumsubLogin: ({ user, setUser, goToAllSet, token }: Props) => React.JSX.Element;
10
+ export default SumsubLogin;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ onSuccess: () => void;
7
+ onGoBack: () => void;
8
+ onError: (error: string) => void;
9
+ token?: string;
10
+ }
11
+ export default function LoginComponent({ user, setUser, onSuccess, onGoBack, onError, token }: Props): React.JSX.Element;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ onSuccess: () => void;
7
+ onGoBack: () => void;
8
+ token?: string;
9
+ }
10
+ declare const VeriffLogin: ({ user, setUser, onSuccess, onGoBack, token }: Props) => React.JSX.Element;
11
+ export default VeriffLogin;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ onSuccess: () => void;
7
+ onError: (error: string) => void;
8
+ token?: string;
9
+ }
10
+ declare const Login: ({ user, setUser, onSuccess, onError, token }: Props) => React.JSX.Element;
11
+ export default Login;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ onSuccess: () => void;
7
+ token?: string;
8
+ }
9
+ declare const YotiLogin: ({ user, setUser, onSuccess, token }: Props) => React.JSX.Element;
10
+ export default YotiLogin;
@@ -1,11 +1,13 @@
1
1
  import React from "react";
2
2
  import { UserWithAgeAndFullName } from "../../../api/api";
3
- declare const AuthID: ({ goToAllSet, setError, userId, setUser, selectedIdType, token }: {
3
+ declare const AuthID: ({ goToAllSet, setError, userId, setUser, selectedIdType, setSelectedIdType, token, setPageStatus }: {
4
4
  goToAllSet: () => void;
5
5
  setError: React.Dispatch<React.SetStateAction<string | undefined>>;
6
6
  userId: string;
7
7
  setUser?: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
8
8
  selectedIdType: string;
9
+ setSelectedIdType: React.Dispatch<React.SetStateAction<string>>;
9
10
  token?: string;
11
+ setPageStatus?: React.Dispatch<React.SetStateAction<number>>;
10
12
  }) => React.JSX.Element;
11
13
  export default AuthID;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ goToAllSet: () => void;
7
+ token?: string;
8
+ }
9
+ declare const SumsubOnBoarding: ({ user, setUser, goToAllSet, token }: Props) => React.JSX.Element;
10
+ export default SumsubOnBoarding;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ goBack: () => void;
7
+ goToAllSet: () => void;
8
+ token?: string;
9
+ }
10
+ declare const VeriffOnBoarding: ({ user, setUser, goBack, goToAllSet, token }: Props) => React.JSX.Element;
11
+ export default VeriffOnBoarding;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ onSuccess: () => void;
7
+ onError: (error: string) => void;
8
+ onGoBack: () => void;
9
+ token?: string;
10
+ }
11
+ declare const OnBoarding: ({ user, setUser, onSuccess, onError, onGoBack, token }: Props) => React.JSX.Element;
12
+ export default OnBoarding;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { UserWithAgeAndFullName } from '../../../api/api';
3
+ interface Props {
4
+ user: UserWithAgeAndFullName;
5
+ setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
6
+ onSuccess: () => void;
7
+ onGoBack: () => void;
8
+ token?: string;
9
+ }
10
+ declare const YotiOnBoarding: ({ user, setUser, onSuccess, onGoBack, token }: Props) => React.JSX.Element;
11
+ export default YotiOnBoarding;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
+ import { User } from '../../api/api';
2
3
  import { Environment } from '../../enum';
3
4
  import './style.css';
4
- import { User } from '../../api/api';
5
5
  declare const SendSns: ({ token, inputValue, setInputValue, setError, setPageStatus, setProcessedPhoneNumber, setModalHeight, setUser, environment, }: {
6
6
  token: string | undefined;
7
7
  inputValue: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { Environment } from "../../../enum";
3
2
  import { UserWithAgeAndFullName } from "../../../api/api";
3
+ import { Environment } from "../../../enum";
4
4
  declare const VerifyUser: ({ token, inputValue, setError, setPageStatus, setUser, setModalHeight, environment, }: {
5
5
  token: string | undefined;
6
6
  inputValue: string;
@@ -13,10 +13,16 @@ export declare enum PageStatus {
13
13
  AuthIdOnboarding = 2,
14
14
  ClearOnboarding = 2.1,
15
15
  IncodeOnBoarding = 2.2,
16
+ SumsubOnBoarding = 2.3,
17
+ VeriffOnBoarding = 2.4,
18
+ YotiOnBoarding = 2.5,
16
19
  AuthidLogin = 3,
17
20
  ClearLogin = 4,
18
21
  IncodeLogin = 5,
19
22
  ClearLoginAllSet = 6,
20
23
  ClearOnboardingAllSet = 7,
24
+ SumsubLogin = 8,
25
+ VeriffLogin = 9,
26
+ YotiLogin = 11,
21
27
  AllSet = 10
22
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/berifyme-react-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",