biometry-react-components 1.3.2 → 1.3.3
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 +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7289,6 +7289,7 @@ if (typeof window !== 'undefined' && typeof console !== 'undefined') {
|
|
|
7289
7289
|
const RECORD_SECONDS$1 = VIDEO_LENGTH_MS / 1000;
|
|
7290
7290
|
const PREP_SECONDS$1 = 3;
|
|
7291
7291
|
const DIGITS_NUMBER$1 = 7;
|
|
7292
|
+
const VIDEO_DISPLAY_HEIGHT = 536; // fixed height for consistent zoom regardless of container size
|
|
7292
7293
|
function generateRandomDigits$1(count) {
|
|
7293
7294
|
const digits = Array.from({ length: 10 }, (_, i) => i);
|
|
7294
7295
|
for (let i = digits.length - 1; i > 0; i--) {
|
|
@@ -7696,13 +7697,12 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 470, onConfirmRecording, o
|
|
|
7696
7697
|
if (!permission) {
|
|
7697
7698
|
return (jsx("div", { className: className, style: wrapperStyle, children: jsxs("div", { style: { textAlign: 'center', padding: '20px' }, children: [jsx("h3", { children: "Camera Permission Required" }), jsx("p", { children: "Please allow camera and microphone access to use this component." }), jsx("button", { type: "button", style: actionButton, onClick: requestPermissions, children: "Grant Permissions" })] }) }));
|
|
7698
7699
|
}
|
|
7699
|
-
return (jsxs("div", { className: className, style: wrapperStyle, children: [state !== 'result' && state !== 'processing' && !isConfirming && (jsxs(Fragment, { children: [jsx("div", { className: "facerecorder-number-row", style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsx("div", { style: numberBox, children: num }, i))) }), jsxs("div", { className: "facerecorder-camera-area", style: cameraArea, children: [jsx("video", { ref: videoRef, width: rectWidth - 40, height:
|
|
7700
|
+
return (jsxs("div", { className: className, style: wrapperStyle, children: [state !== 'result' && state !== 'processing' && !isConfirming && (jsxs(Fragment, { children: [jsx("div", { className: "facerecorder-number-row", style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsx("div", { style: numberBox, children: num }, i))) }), jsxs("div", { className: "facerecorder-camera-area", style: cameraArea, children: [jsx("video", { ref: videoRef, width: rectWidth - 40, height: VIDEO_DISPLAY_HEIGHT, className: "facerecorder-video", style: {
|
|
7700
7701
|
width: rectWidth - 40,
|
|
7701
|
-
height:
|
|
7702
|
+
height: VIDEO_DISPLAY_HEIGHT,
|
|
7702
7703
|
objectFit: 'cover',
|
|
7703
|
-
borderRadius: noShadow ? 0 : 8,
|
|
7704
7704
|
zIndex: 0,
|
|
7705
|
-
transform: 'scaleX(-1)'
|
|
7705
|
+
transform: 'scaleX(-1)',
|
|
7706
7706
|
}, playsInline: true, muted: true, autoPlay: true }), jsx("div", { className: "facerecorder-dark-overlay", style: {
|
|
7707
7707
|
position: 'absolute',
|
|
7708
7708
|
top: 0,
|
package/dist/index.js
CHANGED
|
@@ -7289,6 +7289,7 @@ if (typeof window !== 'undefined' && typeof console !== 'undefined') {
|
|
|
7289
7289
|
const RECORD_SECONDS$1 = VIDEO_LENGTH_MS / 1000;
|
|
7290
7290
|
const PREP_SECONDS$1 = 3;
|
|
7291
7291
|
const DIGITS_NUMBER$1 = 7;
|
|
7292
|
+
const VIDEO_DISPLAY_HEIGHT = 536; // fixed height for consistent zoom regardless of container size
|
|
7292
7293
|
function generateRandomDigits$1(count) {
|
|
7293
7294
|
const digits = Array.from({ length: 10 }, (_, i) => i);
|
|
7294
7295
|
for (let i = digits.length - 1; i > 0; i--) {
|
|
@@ -7696,13 +7697,12 @@ const FaceRecorder = ({ rectWidth = 360, rectHeight = 470, onConfirmRecording, o
|
|
|
7696
7697
|
if (!permission) {
|
|
7697
7698
|
return (jsxRuntime.jsx("div", { className: className, style: wrapperStyle, children: jsxRuntime.jsxs("div", { style: { textAlign: 'center', padding: '20px' }, children: [jsxRuntime.jsx("h3", { children: "Camera Permission Required" }), jsxRuntime.jsx("p", { children: "Please allow camera and microphone access to use this component." }), jsxRuntime.jsx("button", { type: "button", style: actionButton, onClick: requestPermissions, children: "Grant Permissions" })] }) }));
|
|
7698
7699
|
}
|
|
7699
|
-
return (jsxRuntime.jsxs("div", { className: className, style: wrapperStyle, children: [state !== 'result' && state !== 'processing' && !isConfirming && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "facerecorder-number-row", style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsxRuntime.jsx("div", { style: numberBox, children: num }, i))) }), jsxRuntime.jsxs("div", { className: "facerecorder-camera-area", style: cameraArea, children: [jsxRuntime.jsx("video", { ref: videoRef, width: rectWidth - 40, height:
|
|
7700
|
+
return (jsxRuntime.jsxs("div", { className: className, style: wrapperStyle, children: [state !== 'result' && state !== 'processing' && !isConfirming && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "facerecorder-number-row", style: numberRow, children: (state === 'recording' ? digits : Array(DIGITS_NUMBER$1).fill('*')).map((num, i) => (jsxRuntime.jsx("div", { style: numberBox, children: num }, i))) }), jsxRuntime.jsxs("div", { className: "facerecorder-camera-area", style: cameraArea, children: [jsxRuntime.jsx("video", { ref: videoRef, width: rectWidth - 40, height: VIDEO_DISPLAY_HEIGHT, className: "facerecorder-video", style: {
|
|
7700
7701
|
width: rectWidth - 40,
|
|
7701
|
-
height:
|
|
7702
|
+
height: VIDEO_DISPLAY_HEIGHT,
|
|
7702
7703
|
objectFit: 'cover',
|
|
7703
|
-
borderRadius: noShadow ? 0 : 8,
|
|
7704
7704
|
zIndex: 0,
|
|
7705
|
-
transform: 'scaleX(-1)'
|
|
7705
|
+
transform: 'scaleX(-1)',
|
|
7706
7706
|
}, playsInline: true, muted: true, autoPlay: true }), jsxRuntime.jsx("div", { className: "facerecorder-dark-overlay", style: {
|
|
7707
7707
|
position: 'absolute',
|
|
7708
7708
|
top: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biometry-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
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",
|