@bytexbyte/berifyme-react-sdk 1.0.15 → 1.0.17
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/BerifymeModal/index.js +18 -10
- package/dist/api/api.js +31 -6
- package/dist/components/AllSet/index.js +33 -37
- package/dist/components/Login/authid/authid.js +26 -17
- package/dist/components/Login/authid/index.js +1 -6
- package/dist/components/Login/clearAllSet.js +2 -6
- package/dist/components/Login/incode/Login.js +3 -3
- package/dist/components/Login/sumsub/index.js +5 -5
- package/dist/components/Login/veriff/Login.js +2 -2
- package/dist/components/Login/veriff/index.js +2 -2
- package/dist/components/Login/yoti/Login.js +6 -6
- package/dist/components/Login/yoti/index.js +2 -2
- package/dist/components/OnBoarding/authId/index.js +29 -15
- package/dist/components/OnBoarding/clear/clearAllSet.js +2 -6
- package/dist/components/OnBoarding/incode/index.js +35 -26
- package/dist/components/OnBoarding/incode/processGlobalWatchlist.js +79 -0
- package/dist/components/OnBoarding/sumsub/index.js +4 -4
- package/dist/components/OnBoarding/vender/grid/authIdGrid.js +1 -1
- package/dist/components/OnBoarding/vender/grid/clearGrid.js +1 -1
- package/dist/components/OnBoarding/vender/grid/incodeGrid.js +1 -1
- package/dist/components/OnBoarding/vender/grid/sumsubGrid.js +1 -1
- package/dist/components/OnBoarding/vender/grid/veriffGrid.js +1 -1
- package/dist/components/OnBoarding/vender/grid/yotiGrid.js +1 -1
- package/dist/components/OnBoarding/yoti/OnBoarding.js +6 -6
- package/dist/components/OnBoarding/yoti/index.js +2 -2
- package/dist/components/QrcodeExpired.js +1 -1
- package/dist/components/SendSns/index.js +22 -19
- package/dist/components/SessionInterrupted.js +1 -1
- package/dist/components/SomethingWrong.js +41 -0
- package/dist/components/VerifyWithPhoneNumber/NewUser/index.js +4 -4
- package/dist/components/VerifyWithPhoneNumber/User/index.js +1 -1
- package/dist/types/api/api.d.ts +13 -1
- package/dist/types/components/AllSet/index.d.ts +2 -1
- package/dist/types/components/Login/authid/authid.d.ts +1 -1
- package/dist/types/components/Login/authid/index.d.ts +1 -0
- package/dist/types/components/Login/clearAllSet.d.ts +1 -0
- package/dist/types/components/OnBoarding/clear/clearAllSet.d.ts +1 -0
- package/dist/types/components/OnBoarding/incode/index.d.ts +1 -0
- package/dist/types/components/OnBoarding/incode/processGlobalWatchlist.d.ts +12 -0
- package/dist/types/components/SomethingWrong.d.ts +7 -0
- package/dist/types/vender/incode/incode.d.ts +1 -0
- package/package.json +1 -1
|
@@ -35,12 +35,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import React from "react";
|
|
38
|
+
import ArrowBackRoundedIcon from '@mui/icons-material/ArrowBackRounded';
|
|
39
|
+
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
|
|
38
40
|
import { Box, CircularProgress, IconButton, Input, Stack, Typography } from "@mui/material";
|
|
39
|
-
import theme from "../../theme";
|
|
40
41
|
import { useEffect, useState } from "react";
|
|
41
42
|
import berifymeApi from "../../../api/api";
|
|
42
|
-
import
|
|
43
|
-
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
|
|
43
|
+
import theme from "../../theme";
|
|
44
44
|
import Footer from "../../Footer";
|
|
45
45
|
import webauthn from "../../../lib/webauthb";
|
|
46
46
|
import { environmentDomains } from "../../../lib/environmentDomains";
|
|
@@ -118,7 +118,7 @@ var VerifyNewUser = function (_a) {
|
|
|
118
118
|
}
|
|
119
119
|
if (!res.user) {
|
|
120
120
|
setLoading(false);
|
|
121
|
-
setErrorMessage('
|
|
121
|
+
setErrorMessage('Something went wrong, but we’re working on it. Please try again later or contact support for assistance.');
|
|
122
122
|
return [2 /*return*/];
|
|
123
123
|
}
|
|
124
124
|
setErrorMessage('');
|
|
@@ -190,7 +190,7 @@ var VerifyUser = function (_a) {
|
|
|
190
190
|
case 5:
|
|
191
191
|
getVender = _m.sent();
|
|
192
192
|
if (getVender.error) {
|
|
193
|
-
setError((_e = getVender.error) !== null && _e !== void 0 ? _e : '
|
|
193
|
+
setError((_e = getVender.error) !== null && _e !== void 0 ? _e : 'Something went wrong, but we’re working on it. Please try again later or contact support for assistance.');
|
|
194
194
|
setLoading(false);
|
|
195
195
|
createDeveloperLog({
|
|
196
196
|
userId: (_f = res.user) === null || _f === void 0 ? void 0 : _f.id,
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -208,7 +208,10 @@ declare function updateAccount(token: string, data: {
|
|
|
208
208
|
}): Promise<{
|
|
209
209
|
success: "ok";
|
|
210
210
|
}>;
|
|
211
|
-
declare function getIncodeStart(uniqueId
|
|
211
|
+
declare function getIncodeStart({ uniqueId, sessionToken }: {
|
|
212
|
+
uniqueId?: string;
|
|
213
|
+
sessionToken?: string;
|
|
214
|
+
}): Promise<{
|
|
212
215
|
token: string;
|
|
213
216
|
uniqueId: string;
|
|
214
217
|
}>;
|
|
@@ -226,6 +229,14 @@ declare function getIncodeApprove({ id, token, sessionToken, }: {
|
|
|
226
229
|
user?: UserWithAgeAndFullName;
|
|
227
230
|
error?: string;
|
|
228
231
|
}>;
|
|
232
|
+
declare function incodeWatchListResult({ incodeSessionToken, berifymeSessionToken, incodeSessionId }: {
|
|
233
|
+
incodeSessionToken: string;
|
|
234
|
+
berifymeSessionToken: string;
|
|
235
|
+
incodeSessionId?: string;
|
|
236
|
+
}): Promise<{
|
|
237
|
+
message?: string;
|
|
238
|
+
error?: string;
|
|
239
|
+
}>;
|
|
229
240
|
declare function createVerificationSession({ redirectUrl, token }: {
|
|
230
241
|
redirectUrl: string;
|
|
231
242
|
token?: string;
|
|
@@ -502,6 +513,7 @@ declare const berifymeApi: {
|
|
|
502
513
|
getIncodeStart: typeof getIncodeStart;
|
|
503
514
|
getIncodeFinish: typeof getIncodeFinish;
|
|
504
515
|
getIncodeApprove: typeof getIncodeApprove;
|
|
516
|
+
incodeWatchListResult: typeof incodeWatchListResult;
|
|
505
517
|
};
|
|
506
518
|
clear: {
|
|
507
519
|
createVerificationSession: typeof createVerificationSession;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { User } from "../../api/api";
|
|
3
|
-
declare const AllSet: ({ user, token, desktopRedirectUrlId, setPageStatus }: {
|
|
3
|
+
declare const AllSet: ({ user, token, desktopRedirectUrlId, setPageStatus, setError, }: {
|
|
4
4
|
user: User | undefined;
|
|
5
5
|
token: string | undefined;
|
|
6
6
|
desktopRedirectUrlId?: string;
|
|
7
7
|
setPageStatus: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
+
setError: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
8
9
|
}) => React.JSX.Element;
|
|
9
10
|
export default AllSet;
|
|
@@ -6,6 +6,6 @@ declare const AuthID: ({ phone, setError, goRedirect, goToTryAgain, setUser, tok
|
|
|
6
6
|
goRedirect: () => void;
|
|
7
7
|
goToTryAgain: () => void;
|
|
8
8
|
setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
|
|
9
|
-
token
|
|
9
|
+
token?: string;
|
|
10
10
|
}) => React.JSX.Element;
|
|
11
11
|
export default AuthID;
|
|
@@ -3,5 +3,6 @@ declare const ClearOnboardingAllSet: React.FC<{
|
|
|
3
3
|
token?: string;
|
|
4
4
|
desktopRedirectUrlId?: string;
|
|
5
5
|
setPageStatus: React.Dispatch<React.SetStateAction<number>>;
|
|
6
|
+
setError: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
6
7
|
}>;
|
|
7
8
|
export { ClearOnboardingAllSet };
|
|
@@ -5,5 +5,6 @@ declare const IncodeOnBoarding: React.FC<{
|
|
|
5
5
|
setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
|
|
6
6
|
goToAllSet: () => void;
|
|
7
7
|
token?: string;
|
|
8
|
+
setError: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
8
9
|
}>;
|
|
9
10
|
export { IncodeOnBoarding };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SessionType } from "../../../vender/incode/incode";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare function ProcessGlobalWatchlist({ session, onSuccess, onError, token, }: ProccessIdPropTypes): React.JSX.Element;
|
|
4
|
+
type ProccessIdPropTypes = {
|
|
5
|
+
session: SessionType;
|
|
6
|
+
onSuccess: () => void;
|
|
7
|
+
onError: (e: {
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
token?: string;
|
|
11
|
+
};
|
|
12
|
+
export { ProcessGlobalWatchlist };
|