be-components 3.6.8 → 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 (174) 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 -159
  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 -159
  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 +1 -3
  115. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  116. package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -1
  117. package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
  118. package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts +3 -1
  119. package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  120. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +3 -1
  121. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
  122. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +3 -2
  123. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  124. package/lib/typescript/src/Authenticator/index.d.ts +3 -1
  125. package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
  126. package/lib/typescript/src/Components/Themed.d.ts +6 -0
  127. package/lib/typescript/src/Components/Themed.d.ts.map +1 -1
  128. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +3 -2
  129. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  130. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +3 -2
  131. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  132. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +3 -2
  133. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  134. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +3 -2
  135. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  136. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +3 -2
  137. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  138. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +3 -2
  139. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  140. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +3 -2
  141. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  142. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +3 -2
  143. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  144. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  145. package/lib/typescript/src/ProfileManager/index.d.ts +3 -2
  146. package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
  147. package/package.json +2 -1
  148. package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +4 -1
  149. package/src/Authenticator/Components/LoginForm.tsx +6 -4
  150. package/src/Authenticator/Components/StrategyForm.tsx +4 -2
  151. package/src/Authenticator/index.tsx +5 -2
  152. package/src/Components/Themed.tsx +26 -4
  153. package/src/ProfileManager/Components/BasicInfoManager.tsx +8 -4
  154. package/src/ProfileManager/Components/CodeRedeem.tsx +4 -2
  155. package/src/ProfileManager/Components/DOBManager.tsx +4 -2
  156. package/src/ProfileManager/Components/EmailManager.tsx +5 -2
  157. package/src/ProfileManager/Components/PasswordManager.tsx +6 -2
  158. package/src/ProfileManager/Components/PhoneManager.tsx +5 -2
  159. package/src/ProfileManager/Components/ProfileWizard.tsx +12 -2
  160. package/src/ProfileManager/Components/SettingsManager.tsx +4 -2
  161. package/src/ProfileManager/Components/VouchCard.tsx +20 -102
  162. package/src/ProfileManager/index.tsx +4 -2
  163. package/src/types.d.ts +7 -0
  164. package/lib/commonjs/ProfileManager/Components/Vouchhtml.js +0 -86
  165. package/lib/commonjs/ProfileManager/Components/Vouchhtml.js.map +0 -1
  166. package/lib/module/ProfileManager/Components/Vouchhtml.js +0 -80
  167. package/lib/module/ProfileManager/Components/Vouchhtml.js.map +0 -1
  168. package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts +0 -9
  169. package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
  170. package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts +0 -8
  171. package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
  172. package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts +0 -10
  173. package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
  174. package/src/ProfileManager/Components/Vouchhtml.ts +0 -87
@@ -1,87 +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 src="https://static.vouched.id/plugin/releases/latest/index.js"></script>
22
- <script type='text/javascript'>
23
- (function() {
24
- var vouched = Vouched({
25
- // Optional verification properties.
26
- verification: {
27
- // verify the user's information
28
- firstName: '${player.first_name}',
29
- lastName: '${player.last_name}',
30
- // used for the crosscheck feature
31
- email: '${player.email}',
32
- phone: '${player.phone}',
33
- enableIPAddress: ${true}
34
- },
35
- liveness: 'mouth',
36
- id: 'camera',
37
- includeBarcode: 'true',
38
- manualCaptureTimeout: 20000,
39
- cameraScreenLabelBackId: 'Please turn ID over to capture back',
40
- showTermsAndPrivacy: true,
41
- appId:'${VOUCH_ID}',
42
- // your webhook for POST verification processing
43
- callbackURL: '${VOUCHED_CALLBACK_URL}',
44
- sandbox: ${VOUCHED_SANDBOX},
45
- // mobile handoff
46
- crossDevice: true,
47
- crossDeviceQRCode: true,
48
- crossDeviceSMS: true,
49
-
50
- // called when the verification is completed.
51
- onDone: (job) => {
52
- // token used to query jobs
53
- console.log("Scanning complete", { token: job.token });
54
-
55
- // An alternative way to update your system based on the
56
- // results of the job. Your backend could perform the following:
57
- // 1. query jobs with the token
58
- // 2. store relevant job information such as the id and
59
- // success property into the user's profile
60
- fetch();
61
-
62
- // Redirect to the next page based on the job success
63
- if( job.result.success){
64
- window.location.replace("");
65
- }else{
66
- window.location.replace("");
67
- }
68
- },
69
-
70
- // theme
71
- theme: {
72
- name: 'verbose',
73
- },
74
- });
75
- vouched.mount("#vouched-element");
76
- })();
77
- </script>
78
- </head>
79
- <body>
80
- <div id='vouched-element' style="height: 100%"/>
81
- </body>
82
- </html>
83
- `
84
- )
85
- }
86
-
87
- export default VouchHtml;