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.
Files changed (173) hide show
  1. package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +2 -0
  2. package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
  3. package/lib/commonjs/Authenticator/Components/LoginForm.js +4 -3
  4. package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
  5. package/lib/commonjs/Authenticator/Components/StrategyForm.js +2 -0
  6. package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
  7. package/lib/commonjs/Authenticator/index.js +3 -0
  8. package/lib/commonjs/Authenticator/index.js.map +1 -1
  9. package/lib/commonjs/Components/Themed.js +25 -1
  10. package/lib/commonjs/Components/Themed.js.map +1 -1
  11. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +7 -3
  12. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  13. package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +3 -1
  14. package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
  15. package/lib/commonjs/ProfileManager/Components/DOBManager.js +2 -0
  16. package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
  17. package/lib/commonjs/ProfileManager/Components/EmailManager.js +3 -0
  18. package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
  19. package/lib/commonjs/ProfileManager/Components/PasswordManager.js +4 -0
  20. package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
  21. package/lib/commonjs/ProfileManager/Components/PhoneManager.js +3 -0
  22. package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
  23. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +10 -0
  24. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
  25. package/lib/commonjs/ProfileManager/Components/SettingsManager.js +2 -0
  26. package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
  27. package/lib/commonjs/ProfileManager/Components/VouchCard.js +38 -191
  28. package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
  29. package/lib/commonjs/ProfileManager/index.js +2 -0
  30. package/lib/commonjs/ProfileManager/index.js.map +1 -1
  31. package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +2 -0
  32. package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
  33. package/lib/module/Authenticator/Components/LoginForm.js +4 -3
  34. package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
  35. package/lib/module/Authenticator/Components/StrategyForm.js +2 -0
  36. package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
  37. package/lib/module/Authenticator/index.js +3 -0
  38. package/lib/module/Authenticator/index.js.map +1 -1
  39. package/lib/module/Components/Themed.js +26 -2
  40. package/lib/module/Components/Themed.js.map +1 -1
  41. package/lib/module/ProfileManager/Components/BasicInfoManager.js +6 -2
  42. package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  43. package/lib/module/ProfileManager/Components/CodeRedeem.js +3 -1
  44. package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
  45. package/lib/module/ProfileManager/Components/DOBManager.js +2 -0
  46. package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
  47. package/lib/module/ProfileManager/Components/EmailManager.js +3 -0
  48. package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
  49. package/lib/module/ProfileManager/Components/PasswordManager.js +4 -0
  50. package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
  51. package/lib/module/ProfileManager/Components/PhoneManager.js +3 -0
  52. package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
  53. package/lib/module/ProfileManager/Components/ProfileWizard.js +10 -0
  54. package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
  55. package/lib/module/ProfileManager/Components/SettingsManager.js +2 -0
  56. package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
  57. package/lib/module/ProfileManager/Components/VouchCard.js +37 -191
  58. package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
  59. package/lib/module/ProfileManager/index.js +2 -0
  60. package/lib/module/ProfileManager/index.js.map +1 -1
  61. package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts +2 -1
  62. package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  63. package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -1
  64. package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
  65. package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -1
  66. package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  67. package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -1
  68. package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
  69. package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -1
  70. package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts +2 -1
  71. package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  72. package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts +2 -1
  73. package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  74. package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts +2 -1
  75. package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  76. package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts +2 -1
  77. package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  78. package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts +2 -1
  79. package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  80. package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts +2 -1
  81. package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  82. package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts +2 -1
  83. package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  84. package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts +2 -1
  85. package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  86. package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  87. package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +2 -1
  88. package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
  89. package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts +2 -1
  90. package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  91. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +2 -1
  92. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
  93. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +2 -1
  94. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  95. package/lib/typescript/lib/module/Authenticator/index.d.ts +2 -1
  96. package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
  97. package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -1
  98. package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +2 -1
  99. package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  100. package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +2 -1
  101. package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  102. package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +2 -1
  103. package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  104. package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +2 -1
  105. package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  106. package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +2 -1
  107. package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  108. package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +2 -1
  109. package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  110. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +2 -1
  111. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  112. package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +2 -1
  113. package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  114. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  115. package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -1
  116. package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
  117. package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts +3 -1
  118. package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  119. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +3 -1
  120. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
  121. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +3 -2
  122. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  123. package/lib/typescript/src/Authenticator/index.d.ts +3 -1
  124. package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
  125. package/lib/typescript/src/Components/Themed.d.ts +6 -0
  126. package/lib/typescript/src/Components/Themed.d.ts.map +1 -1
  127. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +3 -2
  128. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  129. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +3 -2
  130. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  131. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +3 -2
  132. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  133. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +3 -2
  134. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  135. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +3 -2
  136. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  137. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +3 -2
  138. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  139. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +3 -2
  140. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  141. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +3 -2
  142. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  143. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  144. package/lib/typescript/src/ProfileManager/index.d.ts +3 -2
  145. package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
  146. package/package.json +2 -1
  147. package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +4 -1
  148. package/src/Authenticator/Components/LoginForm.tsx +6 -4
  149. package/src/Authenticator/Components/StrategyForm.tsx +4 -2
  150. package/src/Authenticator/index.tsx +5 -2
  151. package/src/Components/Themed.tsx +26 -4
  152. package/src/ProfileManager/Components/BasicInfoManager.tsx +8 -4
  153. package/src/ProfileManager/Components/CodeRedeem.tsx +4 -2
  154. package/src/ProfileManager/Components/DOBManager.tsx +4 -2
  155. package/src/ProfileManager/Components/EmailManager.tsx +5 -2
  156. package/src/ProfileManager/Components/PasswordManager.tsx +6 -2
  157. package/src/ProfileManager/Components/PhoneManager.tsx +5 -2
  158. package/src/ProfileManager/Components/ProfileWizard.tsx +12 -2
  159. package/src/ProfileManager/Components/SettingsManager.tsx +4 -2
  160. package/src/ProfileManager/Components/VouchCard.tsx +20 -132
  161. package/src/ProfileManager/index.tsx +4 -2
  162. package/src/types.d.ts +7 -0
  163. package/lib/commonjs/ProfileManager/Components/Vouchhtml.js +0 -101
  164. package/lib/commonjs/ProfileManager/Components/Vouchhtml.js.map +0 -1
  165. package/lib/module/ProfileManager/Components/Vouchhtml.js +0 -95
  166. package/lib/module/ProfileManager/Components/Vouchhtml.js.map +0 -1
  167. package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts +0 -9
  168. package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
  169. package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts +0 -8
  170. package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
  171. package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts +0 -10
  172. package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
  173. 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;