be-components 3.6.9 → 3.7.0
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/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +2 -0
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +4 -3
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +2 -0
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +3 -0
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +25 -1
- package/lib/commonjs/Components/Themed.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +7 -3
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +2 -0
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +3 -0
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +4 -0
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +3 -0
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +10 -0
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +2 -0
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +38 -191
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +2 -0
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +2 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +4 -3
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +2 -0
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +3 -0
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Components/Themed.js +26 -2
- package/lib/module/Components/Themed.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +6 -2
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +2 -0
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +3 -0
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +4 -0
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +3 -0
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +10 -0
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +2 -0
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +37 -191
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +2 -0
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts +3 -1
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +3 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +3 -2
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +3 -1
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +6 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +4 -1
- package/src/Authenticator/Components/LoginForm.tsx +6 -4
- package/src/Authenticator/Components/StrategyForm.tsx +4 -2
- package/src/Authenticator/index.tsx +5 -2
- package/src/Components/Themed.tsx +26 -4
- package/src/ProfileManager/Components/BasicInfoManager.tsx +8 -4
- package/src/ProfileManager/Components/CodeRedeem.tsx +4 -2
- package/src/ProfileManager/Components/DOBManager.tsx +4 -2
- package/src/ProfileManager/Components/EmailManager.tsx +5 -2
- package/src/ProfileManager/Components/PasswordManager.tsx +6 -2
- package/src/ProfileManager/Components/PhoneManager.tsx +5 -2
- package/src/ProfileManager/Components/ProfileWizard.tsx +12 -2
- package/src/ProfileManager/Components/SettingsManager.tsx +4 -2
- package/src/ProfileManager/Components/VouchCard.tsx +20 -132
- package/src/ProfileManager/index.tsx +4 -2
- package/src/types.d.ts +7 -0
- package/lib/commonjs/ProfileManager/Components/Vouchhtml.js +0 -101
- package/lib/commonjs/ProfileManager/Components/Vouchhtml.js.map +0 -1
- package/lib/module/ProfileManager/Components/Vouchhtml.js +0 -95
- package/lib/module/ProfileManager/Components/Vouchhtml.js.map +0 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts +0 -9
- package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
- package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts +0 -8
- package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
- package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts +0 -10
- package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
- package/src/ProfileManager/Components/Vouchhtml.ts +0 -102
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type { MyPlayerProps } from "../../types";
|
|
2
|
-
|
|
3
|
-
type VouchHtmlProps = {
|
|
4
|
-
VOUCH_ID:string,
|
|
5
|
-
VOUCHED_CALLBACK_URL:string,
|
|
6
|
-
VOUCHED_SANDBOX:boolean,
|
|
7
|
-
player:MyPlayerProps
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
const VouchHtml = ({ VOUCH_ID, VOUCHED_CALLBACK_URL, VOUCHED_SANDBOX, player }:VouchHtmlProps) => {
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
`
|
|
14
|
-
<!DOCTYPE html>
|
|
15
|
-
<html>
|
|
16
|
-
<head>
|
|
17
|
-
<!-- utf-8 is required for JS Plugin default fonts -->
|
|
18
|
-
<!-- VOUCHED BALANCED SECURITY SETTINGS -->
|
|
19
|
-
<meta charset="utf-8" />
|
|
20
|
-
<meta name=“viewport” content=“width=device-width, initial-scale=1.0">
|
|
21
|
-
<script>
|
|
22
|
-
// Check for camera availability and communicate with React Native
|
|
23
|
-
window.onload = function() {
|
|
24
|
-
const checkCamera = async () => {
|
|
25
|
-
try {
|
|
26
|
-
const stream = await navigator.mediaDevices.getUserMedia({ video: true });
|
|
27
|
-
window.ReactNativeWebView.postMessage('Camera access granted');
|
|
28
|
-
stream.getTracks().forEach(track => track.stop()); // Stop the camera
|
|
29
|
-
} catch (err) {
|
|
30
|
-
window.ReactNativeWebView.postMessage('Camera access denied: ' + err.message);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
checkCamera();
|
|
34
|
-
};
|
|
35
|
-
</script>
|
|
36
|
-
<script src="https://static.vouched.id/plugin/releases/latest/index.js"></script>
|
|
37
|
-
<script type='text/javascript'>
|
|
38
|
-
(function() {
|
|
39
|
-
var vouched = Vouched({
|
|
40
|
-
// Optional verification properties.
|
|
41
|
-
verification: {
|
|
42
|
-
// verify the user's information
|
|
43
|
-
firstName: '${player.first_name}',
|
|
44
|
-
lastName: '${player.last_name}',
|
|
45
|
-
// used for the crosscheck feature
|
|
46
|
-
email: '${player.email}',
|
|
47
|
-
phone: '${player.phone}',
|
|
48
|
-
enableIPAddress: ${true}
|
|
49
|
-
},
|
|
50
|
-
liveness: 'mouth',
|
|
51
|
-
id: 'camera',
|
|
52
|
-
includeBarcode: 'true',
|
|
53
|
-
manualCaptureTimeout: 20000,
|
|
54
|
-
cameraScreenLabelBackId: 'Please turn ID over to capture back',
|
|
55
|
-
showTermsAndPrivacy: true,
|
|
56
|
-
appId:'${VOUCH_ID}',
|
|
57
|
-
// your webhook for POST verification processing
|
|
58
|
-
callbackURL: '${VOUCHED_CALLBACK_URL}',
|
|
59
|
-
sandbox: ${VOUCHED_SANDBOX},
|
|
60
|
-
// mobile handoff
|
|
61
|
-
crossDevice: true,
|
|
62
|
-
crossDeviceQRCode: true,
|
|
63
|
-
crossDeviceSMS: true,
|
|
64
|
-
|
|
65
|
-
// called when the verification is completed.
|
|
66
|
-
onDone: (job) => {
|
|
67
|
-
// token used to query jobs
|
|
68
|
-
console.log("Scanning complete", { token: job.token });
|
|
69
|
-
|
|
70
|
-
// An alternative way to update your system based on the
|
|
71
|
-
// results of the job. Your backend could perform the following:
|
|
72
|
-
// 1. query jobs with the token
|
|
73
|
-
// 2. store relevant job information such as the id and
|
|
74
|
-
// success property into the user's profile
|
|
75
|
-
fetch();
|
|
76
|
-
|
|
77
|
-
// Redirect to the next page based on the job success
|
|
78
|
-
if( job.result.success){
|
|
79
|
-
window.location.replace("");
|
|
80
|
-
}else{
|
|
81
|
-
window.location.replace("");
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
// theme
|
|
86
|
-
theme: {
|
|
87
|
-
name: 'verbose',
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
vouched.mount("#vouched-element");
|
|
91
|
-
})();
|
|
92
|
-
</script>
|
|
93
|
-
</head>
|
|
94
|
-
<body>
|
|
95
|
-
<div id='vouched-element' style="height: 100%"/>
|
|
96
|
-
</body>
|
|
97
|
-
</html>
|
|
98
|
-
`
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export default VouchHtml;
|