biometry-react-components 1.2.7 → 1.2.8

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 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.1, cropLeft = 0.1, cropWidth = 0.8, cropHeight = 0.8;
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) {
@@ -7450,8 +7450,8 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onCapture, className,
7450
7450
  top: '18%',
7451
7451
  left: '50%',
7452
7452
  transform: 'translateX(-50%)',
7453
- width: '72%',
7454
- height: '68%',
7453
+ width: '80%',
7454
+ height: '74%',
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(10).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: {
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.1, cropLeft = 0.1, cropWidth = 0.8, cropHeight = 0.8;
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) {
@@ -7450,8 +7450,8 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 576, onCapture, className,
7450
7450
  top: '18%',
7451
7451
  left: '50%',
7452
7452
  transform: 'translateX(-50%)',
7453
- width: '72%',
7454
- height: '68%',
7453
+ width: '80%',
7454
+ height: '74%',
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(10).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: {
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.7",
3
+ "version": "1.2.8",
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",