@authme/identity-verification 2.8.57 → 2.8.60
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/README.md +34 -0
- package/assets/locale/zh_Hant_TW.json +1 -1
- package/assets/styles/_base.scss +759 -0
- package/assets/styles/_liveness.scss +324 -0
- package/assets/styles/_ocr.scss +2422 -0
- package/assets/styles/_theme.scss +144 -0
- package/assets/styles/style.css +20 -1
- package/assets/styles/style.scss +11 -0
- package/index.cjs.js +169 -8
- package/index.esm.js +170 -10
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/support.d.ts +27 -0
- package/src/lib/v2/ui/modal.d.ts +1 -1
- package/src/lib/validate-config.d.ts +11 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--authme-liveness-scanner-pass-border-width: 6px;
|
|
3
|
+
--authme-liveness-scanner-pass-border-opacity: 1;
|
|
4
|
+
--authme-liveness-scanner-error-border-width: 6px;
|
|
5
|
+
--authme-liveness-scanner-error-border-opacity: 1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.liveness-container {
|
|
9
|
+
.video-container {
|
|
10
|
+
video {
|
|
11
|
+
transform: rotateY(180deg);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.title {
|
|
15
|
+
top: calc(26vh - 55px);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.status {
|
|
19
|
+
top: 74vh;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.face-mask {
|
|
24
|
+
position: absolute;
|
|
25
|
+
z-index: var(--authme-layers-0-z-index);
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
top: 0;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
box-shadow: #ffffff 0px 0px 0px 2000px;
|
|
31
|
+
height: 48vh;
|
|
32
|
+
margin: auto;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
transition: transform 2s;
|
|
35
|
+
--b: 0px;
|
|
36
|
+
--c: transparent;
|
|
37
|
+
--w: 27px;
|
|
38
|
+
--r: 50%;
|
|
39
|
+
|
|
40
|
+
&.pass {
|
|
41
|
+
--c: var(--authme-liveness-scanner-pass-color);
|
|
42
|
+
--width: var(--authme-liveness-scanner-pass-border-width);
|
|
43
|
+
--opacity: var(--authme-liveness-scanner-pass-border-opacity);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.error {
|
|
47
|
+
--c: var(--authme-liveness-scanner-error-color);
|
|
48
|
+
--width: var(--authme-liveness-scanner-error-border-width);
|
|
49
|
+
--opacity: var(--authme-liveness-scanner-error-border-opacity);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::before {
|
|
53
|
+
content: '';
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 0;
|
|
56
|
+
left: 0;
|
|
57
|
+
right: 0;
|
|
58
|
+
bottom: 0;
|
|
59
|
+
background: var(--c, red);
|
|
60
|
+
opacity: var(--opacity);
|
|
61
|
+
padding: var(--width);
|
|
62
|
+
border-radius: var(--r);
|
|
63
|
+
mask:
|
|
64
|
+
linear-gradient(#fff 0 0) top / calc(100% - 2 * var(--w)) var(--b),
|
|
65
|
+
linear-gradient(#fff 0 0) bottom/calc(100% - 2 * var(--w)) var(--b),
|
|
66
|
+
linear-gradient(#fff 0 0) left / var(--b) calc(100% - 2 * var(--w)),
|
|
67
|
+
linear-gradient(#fff 0 0) right / var(--b) calc(100% - 2 * var(--w)),
|
|
68
|
+
linear-gradient(#fff 0 0) content-box,
|
|
69
|
+
linear-gradient(#fff 0 0);
|
|
70
|
+
mask-composite: exclude;
|
|
71
|
+
mask-repeat: no-repeat;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@media screen and (max-width: 500px) {
|
|
75
|
+
.face-mask {
|
|
76
|
+
box-shadow: #ffffff 0px 0px 0px 500px; // because box-shadow setting too big will cause iOS 17 beta issue(when iphone 13min, box-shadow more then 1933.015px will disappear), then use media query to fix it.
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.text-panel {
|
|
81
|
+
z-index: var(--authme-layers-3-z-index);
|
|
82
|
+
left: 50%;
|
|
83
|
+
transform: translate(-50%, -50%);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.text-title {
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
font-size: 18px;
|
|
89
|
+
line-height: 20px;
|
|
90
|
+
letter-spacing: 0.05em;
|
|
91
|
+
color: #474a53;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.text-hint {
|
|
95
|
+
padding: 24px 32px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (min-width: 768px) {
|
|
99
|
+
.text-hint {
|
|
100
|
+
padding: 24px 32px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.video-container__close {
|
|
105
|
+
z-index: var(--authme-layers-4-z-index);
|
|
106
|
+
}
|
|
107
|
+
.video-container__close.authme-hide {
|
|
108
|
+
display: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.liveness-guide-panel {
|
|
112
|
+
height: 100%;
|
|
113
|
+
position: fixed;
|
|
114
|
+
top: 60px;
|
|
115
|
+
left: 0px;
|
|
116
|
+
width: 100%;
|
|
117
|
+
inset: 0px;
|
|
118
|
+
padding: 10px 16px;
|
|
119
|
+
background: var(--authme-container-bg-color);
|
|
120
|
+
display: grid;
|
|
121
|
+
z-index: 200;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.liveness-guid-header {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: row;
|
|
127
|
+
align-items: center;
|
|
128
|
+
padding: 0px;
|
|
129
|
+
width: 100%;
|
|
130
|
+
height: 42px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.liveness-guide-header-left {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: row;
|
|
136
|
+
align-items: center;
|
|
137
|
+
padding: 8px 24px;
|
|
138
|
+
gap: 5px;
|
|
139
|
+
width: 30%;
|
|
140
|
+
height: 100%;
|
|
141
|
+
flex: none;
|
|
142
|
+
order: 0;
|
|
143
|
+
align-self: stretch;
|
|
144
|
+
flex-grow: 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.liveness-guide-header-right {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: row;
|
|
150
|
+
justify-content: flex-end;
|
|
151
|
+
align-items: center;
|
|
152
|
+
padding: 8px 24px 8px 8px;
|
|
153
|
+
gap: 10px;
|
|
154
|
+
width: 30%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
flex: none;
|
|
157
|
+
order: 2;
|
|
158
|
+
align-self: stretch;
|
|
159
|
+
flex-grow: 1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.liveness-guide-header-title {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: row;
|
|
165
|
+
align-items: center;
|
|
166
|
+
padding: 0px;
|
|
167
|
+
gap: 10px;
|
|
168
|
+
height: 100%;
|
|
169
|
+
flex: none;
|
|
170
|
+
order: 1;
|
|
171
|
+
flex-grow: 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.liveness-guide-header-title-text {
|
|
175
|
+
height: 100%;
|
|
176
|
+
font-style: normal;
|
|
177
|
+
font-weight: 700;
|
|
178
|
+
font-size: 18px;
|
|
179
|
+
line-height: 28px;
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
text-align: center;
|
|
183
|
+
letter-spacing: 0.05em;
|
|
184
|
+
color: #474a53;
|
|
185
|
+
flex: none;
|
|
186
|
+
order: 0;
|
|
187
|
+
flex-grow: 1;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.liveness-guide-img-container {
|
|
191
|
+
display: flex;
|
|
192
|
+
top: 90px;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
align-items: center;
|
|
195
|
+
width: 100%;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.liveness-hint-group {
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
align-items: center;
|
|
203
|
+
width: 100%;
|
|
204
|
+
margin-top: 20px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.liveness-hint-group > ul {
|
|
208
|
+
padding-left: 0px;
|
|
209
|
+
max-width: 279px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.liveness-hint-group > ul > li {
|
|
213
|
+
font-style: normal;
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
font-size: 14px;
|
|
216
|
+
line-height: 20px;
|
|
217
|
+
margin: 4px 0px;
|
|
218
|
+
color: #474a53;
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.liveness-hint-group > ul > li::before {
|
|
224
|
+
content: '';
|
|
225
|
+
width: 6px;
|
|
226
|
+
height: 6px;
|
|
227
|
+
background-color: rgba(0, 193, 182, 1);
|
|
228
|
+
border-radius: 50%;
|
|
229
|
+
margin-right: 8px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.liveness-guid-continue-btn {
|
|
233
|
+
display: flex;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
align-items: center;
|
|
236
|
+
width: 343px;
|
|
237
|
+
height: 48px;
|
|
238
|
+
background: var(--authme__button_primary);
|
|
239
|
+
box-shadow: 4px 4px 16px rgba(0, 193, 182, 0.25);
|
|
240
|
+
border-radius: 24px;
|
|
241
|
+
color: var(--authme__button_primary---text);
|
|
242
|
+
margin: 30px auto;
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.liveness-guide-close {
|
|
247
|
+
width: 24px;
|
|
248
|
+
height: 24px;
|
|
249
|
+
flex: none;
|
|
250
|
+
order: 0;
|
|
251
|
+
flex-grow: 0;
|
|
252
|
+
background-image: var(--authme-close-icon-image);
|
|
253
|
+
}
|
|
254
|
+
.liveness-guide-close.authme-hide {
|
|
255
|
+
display: none;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.statement {
|
|
259
|
+
position: absolute;
|
|
260
|
+
z-index: var(--authme-layers-3-z-index);
|
|
261
|
+
bottom: 48px;
|
|
262
|
+
width: 100%;
|
|
263
|
+
text-align: center;
|
|
264
|
+
color: #f1f2f3;
|
|
265
|
+
font-size: 14px;
|
|
266
|
+
letter-spacing: 0.8px;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@media screen and (min-width: 840px) {
|
|
271
|
+
.liveness-container {
|
|
272
|
+
.liveness-guide-background {
|
|
273
|
+
width: 100vw;
|
|
274
|
+
height: 100vh;
|
|
275
|
+
position: absolute;
|
|
276
|
+
top: 0;
|
|
277
|
+
left: 0;
|
|
278
|
+
z-index: 999;
|
|
279
|
+
background-color: rgba(0, 0, 0, 0.65);
|
|
280
|
+
.liveness-guide-panel {
|
|
281
|
+
position: absolute;
|
|
282
|
+
width: 800px;
|
|
283
|
+
height: 684px;
|
|
284
|
+
top: 50%;
|
|
285
|
+
left: 50%;
|
|
286
|
+
transform: translateX(-50%) translateY(-50%);
|
|
287
|
+
border-radius: 8px;
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
.liveness-guid-header {
|
|
291
|
+
margin-top: 30px;
|
|
292
|
+
margin-bottom: 10px;
|
|
293
|
+
}
|
|
294
|
+
.liveness-guide-divide {
|
|
295
|
+
width: 70%;
|
|
296
|
+
height: 1px;
|
|
297
|
+
margin: 0 auto;
|
|
298
|
+
background-color: var(--authme-divide);
|
|
299
|
+
}
|
|
300
|
+
.liveness-guide-content {
|
|
301
|
+
display: flex;
|
|
302
|
+
justify-content: center;
|
|
303
|
+
align-items: center;
|
|
304
|
+
margin: auto;
|
|
305
|
+
.liveness-guide-img-container {
|
|
306
|
+
width: initial;
|
|
307
|
+
}
|
|
308
|
+
.liveness-hint-group {
|
|
309
|
+
width: initial;
|
|
310
|
+
padding: 2rem;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@media screen and (min-width: 1024px) {
|
|
319
|
+
.liveness-container {
|
|
320
|
+
.face-mask {
|
|
321
|
+
height: 52vh;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|