biometry-react-components 1.2.7 → 1.2.9
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/dist/index.esm.js +8 -8
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useState,useRef,useEff
|
|
|
6
6
|
const streamRef = useRef(null);
|
|
7
7
|
const QUALITY_MULTIPLIER = 3;
|
|
8
8
|
// Crop area (dashed area) as percentages
|
|
9
|
-
const cropTop = 0.
|
|
9
|
+
const cropTop = 0.075, cropLeft = 0.075, cropWidth = 0.85, cropHeight = 0.85;
|
|
10
10
|
useEffect(() => {
|
|
11
11
|
let isMounted = true;
|
|
12
12
|
if (!isConfirming) {
|
|
@@ -279,11 +279,11 @@ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useState,useRef,useEff
|
|
|
279
279
|
};
|
|
280
280
|
const ovalArea = {
|
|
281
281
|
position: 'absolute',
|
|
282
|
-
top: '
|
|
282
|
+
top: '15%',
|
|
283
283
|
left: '50%',
|
|
284
284
|
transform: 'translateX(-50%)',
|
|
285
|
-
width: '
|
|
286
|
-
height: '
|
|
285
|
+
width: '75%',
|
|
286
|
+
height: '70%',
|
|
287
287
|
zIndex: 2,
|
|
288
288
|
display: 'flex',
|
|
289
289
|
flexDirection: 'column',
|
|
@@ -7447,11 +7447,11 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onCapture, className,
|
|
|
7447
7447
|
};
|
|
7448
7448
|
const ovalArea = {
|
|
7449
7449
|
position: 'absolute',
|
|
7450
|
-
top: '
|
|
7450
|
+
top: '15%',
|
|
7451
7451
|
left: '50%',
|
|
7452
7452
|
transform: 'translateX(-50%)',
|
|
7453
|
-
width: '
|
|
7454
|
-
height: '
|
|
7453
|
+
width: '75%',
|
|
7454
|
+
height: '70%',
|
|
7455
7455
|
zIndex: 2,
|
|
7456
7456
|
display: 'flex',
|
|
7457
7457
|
flexDirection: 'column',
|
|
@@ -7603,7 +7603,7 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onCapture, className,
|
|
|
7603
7603
|
background: 'rgba(0,0,0,0.4)',
|
|
7604
7604
|
zIndex: 1,
|
|
7605
7605
|
borderRadius: noShadow ? 0 : 8,
|
|
7606
|
-
} }), jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsx("div", { style: timerStyle, children: recordTimer }))] }), jsx("div", { style: numberRow, children: (state === 'recording' ? digits : Array(
|
|
7606
|
+
} }), jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsx("div", { style: timerStyle, children: recordTimer }))] }), jsx("div", { style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsx("div", { style: numberBox, children: num }, i))) }), state === 'preparation' && (jsx("button", { type: "button", style: actionButton, onClick: startRecording, children: "Start recording" })), state === 'recording' && (jsx("button", { type: "button", style: { ...actionButton, background: '#d32f2f' }, onClick: handleCancel, children: "Cancel" }))] })), state === 'processing' && (jsx(Fragment, { children: jsx("div", { className: "facerecorder-processing", style: preview, children: jsxs("div", { style: {
|
|
7607
7607
|
display: 'flex',
|
|
7608
7608
|
flexDirection: 'column',
|
|
7609
7609
|
alignItems: 'center',
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const streamRef = react.useRef(null);
|
|
7
7
|
const QUALITY_MULTIPLIER = 3;
|
|
8
8
|
// Crop area (dashed area) as percentages
|
|
9
|
-
const cropTop = 0.
|
|
9
|
+
const cropTop = 0.075, cropLeft = 0.075, cropWidth = 0.85, cropHeight = 0.85;
|
|
10
10
|
react.useEffect(() => {
|
|
11
11
|
let isMounted = true;
|
|
12
12
|
if (!isConfirming) {
|
|
@@ -279,11 +279,11 @@
|
|
|
279
279
|
};
|
|
280
280
|
const ovalArea = {
|
|
281
281
|
position: 'absolute',
|
|
282
|
-
top: '
|
|
282
|
+
top: '15%',
|
|
283
283
|
left: '50%',
|
|
284
284
|
transform: 'translateX(-50%)',
|
|
285
|
-
width: '
|
|
286
|
-
height: '
|
|
285
|
+
width: '75%',
|
|
286
|
+
height: '70%',
|
|
287
287
|
zIndex: 2,
|
|
288
288
|
display: 'flex',
|
|
289
289
|
flexDirection: 'column',
|
|
@@ -7447,11 +7447,11 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onCapture, className,
|
|
|
7447
7447
|
};
|
|
7448
7448
|
const ovalArea = {
|
|
7449
7449
|
position: 'absolute',
|
|
7450
|
-
top: '
|
|
7450
|
+
top: '15%',
|
|
7451
7451
|
left: '50%',
|
|
7452
7452
|
transform: 'translateX(-50%)',
|
|
7453
|
-
width: '
|
|
7454
|
-
height: '
|
|
7453
|
+
width: '75%',
|
|
7454
|
+
height: '70%',
|
|
7455
7455
|
zIndex: 2,
|
|
7456
7456
|
display: 'flex',
|
|
7457
7457
|
flexDirection: 'column',
|
|
@@ -7603,7 +7603,7 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onCapture, className,
|
|
|
7603
7603
|
background: 'rgba(0,0,0,0.4)',
|
|
7604
7604
|
zIndex: 1,
|
|
7605
7605
|
borderRadius: noShadow ? 0 : 8,
|
|
7606
|
-
} }), jsxRuntime.jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsxRuntime.jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsxRuntime.jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsxRuntime.jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsxRuntime.jsx("div", { style: timerStyle, children: recordTimer }))] }), jsxRuntime.jsx("div", { style: numberRow, children: (state === 'recording' ? digits : Array(
|
|
7606
|
+
} }), jsxRuntime.jsxs("div", { className: "facerecorder-oval-area", style: ovalArea, children: [jsxRuntime.jsx("span", { className: "facerecorder-guidance-text", style: guidanceText, children: "Place your face in the oval" }), jsxRuntime.jsx("div", { className: "facerecorder-oval-dashed", style: ovalDashed })] }), state === 'countdown' && (jsxRuntime.jsx("div", { style: prepTimerStyle, children: prepTimer })), state === 'recording' && (jsxRuntime.jsx("div", { style: timerStyle, children: recordTimer }))] }), jsxRuntime.jsx("div", { style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsxRuntime.jsx("div", { style: numberBox, children: num }, i))) }), state === 'preparation' && (jsxRuntime.jsx("button", { type: "button", style: actionButton, onClick: startRecording, children: "Start recording" })), state === 'recording' && (jsxRuntime.jsx("button", { type: "button", style: { ...actionButton, background: '#d32f2f' }, onClick: handleCancel, children: "Cancel" }))] })), state === 'processing' && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("div", { className: "facerecorder-processing", style: preview, children: jsxRuntime.jsxs("div", { style: {
|
|
7607
7607
|
display: 'flex',
|
|
7608
7608
|
flexDirection: 'column',
|
|
7609
7609
|
alignItems: 'center',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biometry-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React UI component library for capturing high-quality biometric data (voice, face, documents, video) to facilitate integration with Biometry services",
|
|
6
6
|
"main": "dist/index.js",
|