@hexar/biometric-identity-sdk-react-native 1.5.0 → 1.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoRecorder.d.ts","sourceRoot":"","sources":["../../src/components/VideoRecorder.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAmD,MAAM,OAAO,CAAC;AAaxE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,iBAAiB,EAAmC,MAAM,oCAAoC,CAAC;AAE1I,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC,0CAA0C;IAC1C,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wCAAwC;IACxC,UAAU,EAAE,CAAC,SAAS,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACtD,iCAAiC;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;CACtD;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,C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,MAAM,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2CD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAm6BtD,CAAC;AA6OF,eAAe,aAAa,CAAC"}
|
|
@@ -47,13 +47,13 @@ const getDefaultChallenges = (strings) => [
|
|
|
47
47
|
{
|
|
48
48
|
action: 'look_left',
|
|
49
49
|
instruction: strings.liveness.instructions.lookLeft || 'Slowly turn your head to the LEFT',
|
|
50
|
-
duration_ms:
|
|
50
|
+
duration_ms: 2000,
|
|
51
51
|
order: 1,
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
action: 'look_right',
|
|
55
55
|
instruction: strings.liveness.instructions.lookRight || 'Slowly turn your head to the RIGHT',
|
|
56
|
-
duration_ms:
|
|
56
|
+
duration_ms: 2000,
|
|
57
57
|
order: 2,
|
|
58
58
|
},
|
|
59
59
|
{
|
|
@@ -62,12 +62,6 @@ const getDefaultChallenges = (strings) => [
|
|
|
62
62
|
duration_ms: 2000,
|
|
63
63
|
order: 3,
|
|
64
64
|
},
|
|
65
|
-
{
|
|
66
|
-
action: 'smile',
|
|
67
|
-
instruction: strings.liveness.instructions.smile || 'Smile',
|
|
68
|
-
duration_ms: 2000,
|
|
69
|
-
order: 4,
|
|
70
|
-
},
|
|
71
65
|
];
|
|
72
66
|
const getInstructionMap = (strings) => {
|
|
73
67
|
if (!strings || !strings.liveness || !strings.liveness.instructions) {
|
|
@@ -419,7 +413,7 @@ const VideoRecorder = ({ theme, language, duration, instructions, challenges: pr
|
|
|
419
413
|
// Schedule next capture only after this one completes (serial chain).
|
|
420
414
|
// Small delay lets the camera hardware reset between captures.
|
|
421
415
|
if (isRecordingRef.current && framesRef.current.length < MAX_FRAMES) {
|
|
422
|
-
frameCaptureInterval.current = setTimeout(captureNextFrame,
|
|
416
|
+
frameCaptureInterval.current = setTimeout(captureNextFrame, 66);
|
|
423
417
|
}
|
|
424
418
|
};
|
|
425
419
|
captureNextFrame();
|
package/package.json
CHANGED
|
@@ -60,13 +60,13 @@ const getDefaultChallenges = (strings: any): ChallengeAction[] => [
|
|
|
60
60
|
{
|
|
61
61
|
action: 'look_left',
|
|
62
62
|
instruction: strings.liveness.instructions.lookLeft || 'Slowly turn your head to the LEFT',
|
|
63
|
-
duration_ms:
|
|
63
|
+
duration_ms: 2000,
|
|
64
64
|
order: 1,
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
action: 'look_right',
|
|
68
68
|
instruction: strings.liveness.instructions.lookRight || 'Slowly turn your head to the RIGHT',
|
|
69
|
-
duration_ms:
|
|
69
|
+
duration_ms: 2000,
|
|
70
70
|
order: 2,
|
|
71
71
|
},
|
|
72
72
|
{
|
|
@@ -75,12 +75,6 @@ const getDefaultChallenges = (strings: any): ChallengeAction[] => [
|
|
|
75
75
|
duration_ms: 2000,
|
|
76
76
|
order: 3,
|
|
77
77
|
},
|
|
78
|
-
{
|
|
79
|
-
action: 'smile',
|
|
80
|
-
instruction: strings.liveness.instructions.smile || 'Smile',
|
|
81
|
-
duration_ms: 2000,
|
|
82
|
-
order: 4,
|
|
83
|
-
},
|
|
84
78
|
];
|
|
85
79
|
|
|
86
80
|
const getInstructionMap = (strings: any): Record<string, { text: string; icon?: string }> => {
|
|
@@ -489,7 +483,7 @@ export const VideoRecorder: React.FC<VideoRecorderProps> = ({
|
|
|
489
483
|
// Schedule next capture only after this one completes (serial chain).
|
|
490
484
|
// Small delay lets the camera hardware reset between captures.
|
|
491
485
|
if (isRecordingRef.current && framesRef.current.length < MAX_FRAMES) {
|
|
492
|
-
frameCaptureInterval.current = setTimeout(captureNextFrame,
|
|
486
|
+
frameCaptureInterval.current = setTimeout(captureNextFrame, 66);
|
|
493
487
|
}
|
|
494
488
|
};
|
|
495
489
|
|