idmission-web-sdk 1.0.381 → 1.0.382
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/components/camera/CameraProvider.d.ts +19 -6
- package/dist/components/common/debug.d.ts +3 -6
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -2
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -2
- package/dist/components/customer_flows/IdValidation.d.ts +0 -2
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +3 -1
- package/dist/components/fallback_flows/SelfieCapture.d.ts +3 -8
- package/dist/components/id_capture/CapturedDocuments.d.ts +3 -5
- package/dist/components/id_capture/HighPerformanceObjectDetectionModelsProvider.d.ts +36 -0
- package/dist/components/id_capture/IdCapture.d.ts +6 -6
- package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts +0 -275
- package/dist/components/id_capture/IdCaptureModelsProvider.d.ts +34 -20
- package/dist/components/id_capture/IdCaptureStateProvider.d.ts +3 -7
- package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -1
- package/dist/components/selfie_capture/HighPerformanceSelfieGuidanceModelsProvider.d.ts +42 -0
- package/dist/components/selfie_capture/SelfieCapture.d.ts +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +0 -5
- package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts +3 -21
- package/dist/components/submission/SubmissionProvider.d.ts +0 -2
- package/dist/components/video_id/IdVideoCapture.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureSuccess.d.ts +1 -2
- package/dist/contexts/SelfieGuidanceModelsContext.d.ts +15 -0
- package/dist/contexts/SubmissionContext.d.ts +2 -4
- package/dist/lib/barcode/Parse.d.ts +50 -2
- package/dist/lib/barcode/Scan.d.ts +1 -2
- package/dist/lib/camera/Camera.d.ts +18 -27
- package/dist/lib/camera/useVideoRecorder.d.ts +4 -8
- package/dist/lib/locales/es/translation.d.ts +2 -2
- package/dist/lib/locales/index.d.ts +2 -2
- package/dist/lib/models/DocumentDetection.d.ts +25 -26
- package/dist/lib/models/FaceDetection.d.ts +5 -20
- package/dist/lib/models/Focus.d.ts +9 -19
- package/dist/lib/models/preloadModels.d.ts +2 -9
- package/dist/lib/utils/cropping.d.ts +2 -3
- package/dist/sdk2.cjs.development.js +13349 -7482
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +13349 -7483
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +15589 -9720
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/stories/Components/HighPerformanceFaceDetection/Original.stories.d.ts +8 -0
- package/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +0 -4
- package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +0 -5
- package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +2 -12
- package/dist/stories/CustomerFlows/SignatureKYC.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +0 -4
- package/dist/stories/Experiments/BarcodeReader.stories.d.ts +7 -0
- package/dist/stories/Experiments/VideoCapture.stories.d.ts +1 -1
- package/dist/stories/{Experiments/SpeedTest.stories.d.ts → models/DocumentDetection.stories.d.ts} +2 -2
- package/dist/stories/models/FocusModel.stories.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- package/dist/components/camera/MicrophoneAccessDeniedOverlay.d.ts +0 -30
- package/dist/components/id_capture/DocumentDetectionModelProvider.d.ts +0 -49
- package/dist/components/id_capture/FocusModelProvider.d.ts +0 -23
- package/dist/lib/models/CapabilityProbing.d.ts +0 -14
- package/dist/lib/models/VisionRuntime.d.ts +0 -2
- package/dist/lib/utils/isMobile.d.ts +0 -1
- package/dist/lib/utils/logger.d.ts +0 -16
- package/dist/lib/utils/resizeFile.d.ts +0 -14
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
1
|
+
import React, { MutableRefObject, ReactElement } from 'react';
|
|
2
|
+
import { Camera } from '../../lib/camera/Camera';
|
|
3
|
+
export type CameraState = {
|
|
4
|
+
videoRef: MutableRefObject<HTMLVideoElement | null>;
|
|
5
|
+
videoLoaded: boolean;
|
|
6
|
+
setVideoLoaded: (value: boolean) => void;
|
|
7
|
+
cameraRef: MutableRefObject<Camera | null>;
|
|
8
|
+
cameraReady: boolean;
|
|
9
|
+
cameraAccessDenied: boolean;
|
|
10
|
+
retryCameraAccess: () => void;
|
|
11
|
+
releaseCameraAccess: () => void;
|
|
12
|
+
iphoneContinuityCameraAvailable: boolean;
|
|
13
|
+
iphoneContinuityCameraAllowed: boolean;
|
|
14
|
+
setIphoneContinuityCameraAllowed: (value: boolean) => void;
|
|
15
|
+
takePhoto: () => Promise<Blob | null>;
|
|
16
|
+
};
|
|
17
|
+
export declare const CameraStateContext: React.Context<CameraState>;
|
|
4
18
|
export type CameraProviderProps = {
|
|
5
19
|
children: ReactElement;
|
|
6
|
-
requestAccessAutomatically?: boolean;
|
|
7
20
|
preferFrontFacingCamera?: boolean;
|
|
8
21
|
preferContinuityCamera?: boolean;
|
|
9
|
-
|
|
22
|
+
requestMicrophoneAccess?: boolean;
|
|
10
23
|
maxVideoWidth?: number;
|
|
11
24
|
maxFps?: number;
|
|
12
25
|
debugMode?: boolean;
|
|
13
26
|
};
|
|
14
|
-
export declare const CameraProvider: ({ children,
|
|
27
|
+
export declare const CameraProvider: ({ children, preferFrontFacingCamera, preferContinuityCamera, requestMicrophoneAccess, maxVideoWidth, maxFps, debugMode, }: CameraProviderProps) => ReactElement;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { DetectedObject } from '../../lib/models/DocumentDetection';
|
|
3
|
-
import { Face, FaceKeypoint } from '
|
|
4
|
-
export declare
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
export declare const DebugStatsPaneDiv: import("styled-components").IStyledComponent<"web", {
|
|
3
|
+
import { Face, FaceKeypoint } from '../selfie_capture/HighPerformanceSelfieGuidanceModelsProvider';
|
|
4
|
+
export declare const DebugStatsPane: import("styled-components").IStyledComponent<"web", {
|
|
8
5
|
ref?: React.LegacyRef<HTMLSpanElement> | undefined;
|
|
9
6
|
key?: React.Key | null | undefined;
|
|
10
7
|
defaultChecked?: boolean | undefined;
|
|
@@ -316,7 +313,7 @@ export type DetectedObjectDebugBoxProps = {
|
|
|
316
313
|
flipX?: boolean;
|
|
317
314
|
color?: string;
|
|
318
315
|
};
|
|
319
|
-
export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, color,
|
|
316
|
+
export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, color, }: DetectedObjectDebugBoxProps): ReactElement;
|
|
320
317
|
export type SelfieCaptureFaceDebugBoxProps = {
|
|
321
318
|
face: Face;
|
|
322
319
|
scaling: DebugScalingDetails;
|
|
@@ -88,10 +88,10 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
88
88
|
idAutoCaptureEnabled?: boolean;
|
|
89
89
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8. */
|
|
90
90
|
idCardAutoCaptureScoreThreshold?: number;
|
|
91
|
-
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75. */
|
|
92
|
-
passportAutoCaptureScoreThreshold?: number;
|
|
93
91
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for Machine Readable Zones. Defaults to 0.5. */
|
|
94
92
|
mrzDetectionScoreThreshold?: number;
|
|
93
|
+
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75. */
|
|
94
|
+
passportAutoCaptureScoreThreshold?: number;
|
|
95
95
|
/** Number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards. */
|
|
96
96
|
idCardFocusScoreThreshold?: number;
|
|
97
97
|
/** Number between 0 and 1 at which focus guidance score condition is considered to be met for passports. */
|
|
@@ -85,10 +85,10 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
85
85
|
idAutoCaptureEnabled?: boolean;
|
|
86
86
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8. */
|
|
87
87
|
idCardAutoCaptureScoreThreshold?: number;
|
|
88
|
-
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75. */
|
|
89
|
-
passportAutoCaptureScoreThreshold?: number;
|
|
90
88
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for Machine Readable Zones. Defaults to 0.5. */
|
|
91
89
|
mrzDetectionScoreThreshold?: number;
|
|
90
|
+
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75. */
|
|
91
|
+
passportAutoCaptureScoreThreshold?: number;
|
|
92
92
|
/** Number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards. */
|
|
93
93
|
idCardFocusScoreThreshold?: number;
|
|
94
94
|
/** Number between 0 and 1 at which focus guidance score condition is considered to be met for passports. */
|
|
@@ -72,8 +72,6 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
72
72
|
idCardAutoCaptureScoreThreshold?: number;
|
|
73
73
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75. */
|
|
74
74
|
passportAutoCaptureScoreThreshold?: number;
|
|
75
|
-
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for Machine Readable Zones. Defaults to 0.5. */
|
|
76
|
-
mrzDetectionScoreThreshold?: number;
|
|
77
75
|
/** Number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards. */
|
|
78
76
|
idCardFocusScoreThreshold?: number;
|
|
79
77
|
/** Number between 0 and 1 at which focus guidance score condition is considered to be met for passports. */
|
|
@@ -2,6 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { SelfieCaptureClassNames, SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
3
|
import { SelfieProgressPreviewClassNames } from '../common/SelfieProgressPreview';
|
|
4
4
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
5
|
+
import { SelfieCaptureLoadingOverlayProps } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
5
6
|
export type FaceLivenessCaptureClassNames = SelfieCaptureClassNames & {
|
|
6
7
|
imagePreview?: SelfieProgressPreviewClassNames;
|
|
7
8
|
};
|
|
@@ -23,5 +24,6 @@ export type FaceLivenessCaptureProps = {
|
|
|
23
24
|
colors?: FaceLivenessCaptureColors;
|
|
24
25
|
verbiage?: FaceLivenessCaptureVerbiage;
|
|
25
26
|
debugMode?: boolean;
|
|
27
|
+
selfieCaptureLoadingOverlayProps?: SelfieCaptureLoadingOverlayProps;
|
|
26
28
|
};
|
|
27
|
-
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, silentFallback, classNames, colors, verbiage: rawVerbiage, debugMode, }: FaceLivenessCaptureProps) => ReactElement;
|
|
29
|
+
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, silentFallback, classNames, colors, verbiage: rawVerbiage, debugMode, selfieCaptureLoadingOverlayProps, }: FaceLivenessCaptureProps) => ReactElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
3
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
4
|
+
import { SelfieCaptureLoadingOverlayProps } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
4
5
|
export type SelfieCaptureFallbackClassNames = {
|
|
5
6
|
container?: string;
|
|
6
7
|
inner?: string;
|
|
@@ -11,7 +12,6 @@ export type SelfieCaptureFallbackClassNames = {
|
|
|
11
12
|
buttonsRow?: string;
|
|
12
13
|
captureBtn?: string;
|
|
13
14
|
doneBtn?: string;
|
|
14
|
-
retryCaptureBtn?: string;
|
|
15
15
|
};
|
|
16
16
|
export type SelfieCaptureFallbackColors = {
|
|
17
17
|
captureBtn?: LoaderButtonColors;
|
|
@@ -23,10 +23,6 @@ export type SelfieCaptureFallbackVerbiage = {
|
|
|
23
23
|
captureBtnText?: CustomerSuppliedVerbiage;
|
|
24
24
|
doneBtnText?: CustomerSuppliedVerbiage;
|
|
25
25
|
doneBtnLoadingText?: CustomerSuppliedVerbiage;
|
|
26
|
-
livenessFailedText?: CustomerSuppliedVerbiage;
|
|
27
|
-
livenessFailedReasonText?: CustomerSuppliedVerbiage;
|
|
28
|
-
retryButtonText?: CustomerSuppliedVerbiage;
|
|
29
|
-
retryCaptureButtonText?: CustomerSuppliedVerbiage;
|
|
30
26
|
};
|
|
31
27
|
export type SelfieCaptureFallbackProps = {
|
|
32
28
|
onFinished?: (imageData: string) => void;
|
|
@@ -35,7 +31,6 @@ export type SelfieCaptureFallbackProps = {
|
|
|
35
31
|
colors?: SelfieCaptureFallbackColors;
|
|
36
32
|
verbiage?: SelfieCaptureFallbackVerbiage;
|
|
37
33
|
silentFallback?: boolean;
|
|
38
|
-
|
|
39
|
-
guidanceMessage?: string;
|
|
34
|
+
selfieCaptureLoadingOverlayProps?: SelfieCaptureLoadingOverlayProps;
|
|
40
35
|
};
|
|
41
|
-
export declare const SelfieCaptureFallback: ({ onFinished, onCapture, classNames, colors, verbiage: rawVerbiage, silentFallback,
|
|
36
|
+
export declare const SelfieCaptureFallback: ({ onFinished, onCapture, classNames, colors, verbiage: rawVerbiage, silentFallback, selfieCaptureLoadingOverlayProps: overlayProps, }: SelfieCaptureFallbackProps) => ReactElement;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { DetectedObjectBox } from '../../lib/models/DocumentDetection';
|
|
2
|
-
export declare const CapturedDocumentTypeValues: readonly ["idCardFront", "idCardBack", "passport", "selfie"];
|
|
3
|
-
export type CapturedDocumentType = (typeof CapturedDocumentTypeValues)[number];
|
|
4
1
|
export type CapturedDocument = {
|
|
5
2
|
imageData: string;
|
|
6
3
|
width: number;
|
|
7
4
|
height: number;
|
|
8
|
-
boundingBox?:
|
|
9
|
-
documentType: CapturedDocumentType;
|
|
5
|
+
boundingBox?: number[];
|
|
10
6
|
};
|
|
7
|
+
export declare const CapturedDocumentTypeValues: readonly ["idCardFront", "idCardBack", "passport", "selfie"];
|
|
8
|
+
export type CapturedDocumentType = (typeof CapturedDocumentTypeValues)[number];
|
|
11
9
|
export type CapturedDocuments = {
|
|
12
10
|
[k in CapturedDocumentType]?: CapturedDocument;
|
|
13
11
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { ObjectDetector } from '@mediapipe/tasks-vision';
|
|
4
|
+
export declare const visionTasksBasePath = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm";
|
|
5
|
+
export declare const objectDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/mpobjtest/model_fp16.tflite";
|
|
6
|
+
export type DetectedObject = {
|
|
7
|
+
box: {
|
|
8
|
+
xMin: number;
|
|
9
|
+
xMax: number;
|
|
10
|
+
yMin: number;
|
|
11
|
+
yMax: number;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare function loadHighPerformanceObjectDetector(modelAssetPath: string, delegate?: 'CPU' | 'GPU', scoreThreshold?: number): Promise<ObjectDetector>;
|
|
17
|
+
type PredictionHandler = (prediction: DetectedObject[]) => void;
|
|
18
|
+
type HighPerformanceSelfieGuidanceModelsState = {
|
|
19
|
+
start: () => void;
|
|
20
|
+
stop: () => void;
|
|
21
|
+
onPredictionMade: (handler: PredictionHandler) => void;
|
|
22
|
+
canvasRef: MutableRefObject<HTMLCanvasElement | null>;
|
|
23
|
+
ready: boolean;
|
|
24
|
+
error: Error | null;
|
|
25
|
+
modelDownloadProgress: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const HighPerformanceObjectDetectionModelsContext: React.Context<HighPerformanceSelfieGuidanceModelsState>;
|
|
28
|
+
export declare const HighPerformanceObjectDetectionModelsProvider: ({ autoStart, children, throttleMs, modelAssetPath, delegate, scoreThreshold, }: {
|
|
29
|
+
autoStart?: boolean | undefined;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
throttleMs?: number | undefined;
|
|
32
|
+
modelAssetPath?: string | undefined;
|
|
33
|
+
delegate?: "CPU" | "GPU" | undefined;
|
|
34
|
+
scoreThreshold?: number | undefined;
|
|
35
|
+
}) => ReactElement;
|
|
36
|
+
export {};
|
|
@@ -40,24 +40,24 @@ export type IdCaptureVerbiage = {
|
|
|
40
40
|
export type IdCaptureProps = {
|
|
41
41
|
requiredDocumentType?: CapturedDocumentType;
|
|
42
42
|
autoCaptureEnabled?: boolean;
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
autoCaptureScoreThreshold?: number;
|
|
44
|
+
autoCaptureGoodFramesRequired?: number;
|
|
45
45
|
autoCaptureBarcodeRequired?: boolean | 'mobile';
|
|
46
46
|
mrzDetectionScoreThreshold?: number;
|
|
47
|
+
passportPageDetectionThreshold?: number;
|
|
47
48
|
pdf417DetectionThreshold?: number;
|
|
48
49
|
barcodeScanningEnabled?: boolean;
|
|
49
50
|
maxBarcodeScanAttempts?: number;
|
|
50
|
-
|
|
51
|
-
passportFocusScoreThreshold?: number;
|
|
51
|
+
focusScoreThreshold?: number;
|
|
52
52
|
guidanceMessage?: string;
|
|
53
53
|
guidanceSatisfied?: boolean;
|
|
54
54
|
onPrediction?: (prediction: IdCapturePrediction) => void;
|
|
55
55
|
onBarcodeScanned?: (result: PDF417DetectionResult) => void;
|
|
56
|
-
onCapture?: (frame: string, width: number, height: number,
|
|
56
|
+
onCapture?: (frame: string, width: number, height: number, metadata: CaptureAttemptMetadata) => void;
|
|
57
57
|
assets?: IdCaptureAssets;
|
|
58
58
|
classNames?: IdCaptureClassNames;
|
|
59
59
|
colors?: IdCaptureColors;
|
|
60
60
|
verbiage?: IdCaptureVerbiage;
|
|
61
61
|
debugMode?: boolean;
|
|
62
62
|
};
|
|
63
|
-
export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled,
|
|
63
|
+
export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled, autoCaptureScoreThreshold, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, mrzDetectionScoreThreshold, passportPageDetectionThreshold, pdf417DetectionThreshold, focusScoreThreshold, barcodeScanningEnabled, maxBarcodeScanAttempts, guidanceMessage, guidanceSatisfied, onPrediction, onBarcodeScanned, onCapture, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdCaptureProps) => React.ReactElement;
|
|
@@ -548,281 +548,6 @@ export declare const GuideRegion: import("styled-components").IStyledComponent<"
|
|
|
548
548
|
$minHeight?: number | undefined;
|
|
549
549
|
$maskColor?: string | undefined;
|
|
550
550
|
}>>;
|
|
551
|
-
export declare const Spacer: import("styled-components").IStyledComponent<"web", {
|
|
552
|
-
key?: React.Key | null | undefined;
|
|
553
|
-
defaultChecked?: boolean | undefined;
|
|
554
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
555
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
556
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
557
|
-
accessKey?: string | undefined;
|
|
558
|
-
autoFocus?: boolean | undefined;
|
|
559
|
-
className?: string | undefined;
|
|
560
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
561
|
-
contextMenu?: string | undefined;
|
|
562
|
-
dir?: string | undefined;
|
|
563
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
564
|
-
hidden?: boolean | undefined;
|
|
565
|
-
id?: string | undefined;
|
|
566
|
-
lang?: string | undefined;
|
|
567
|
-
nonce?: string | undefined;
|
|
568
|
-
placeholder?: string | undefined;
|
|
569
|
-
slot?: string | undefined;
|
|
570
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
571
|
-
style?: React.CSSProperties | undefined;
|
|
572
|
-
tabIndex?: number | undefined;
|
|
573
|
-
title?: string | undefined;
|
|
574
|
-
translate?: "yes" | "no" | undefined;
|
|
575
|
-
radioGroup?: string | undefined;
|
|
576
|
-
role?: React.AriaRole | undefined;
|
|
577
|
-
about?: string | undefined;
|
|
578
|
-
content?: string | undefined;
|
|
579
|
-
datatype?: string | undefined;
|
|
580
|
-
inlist?: any;
|
|
581
|
-
prefix?: string | undefined;
|
|
582
|
-
property?: string | undefined;
|
|
583
|
-
rel?: string | undefined;
|
|
584
|
-
resource?: string | undefined;
|
|
585
|
-
rev?: string | undefined;
|
|
586
|
-
typeof?: string | undefined;
|
|
587
|
-
vocab?: string | undefined;
|
|
588
|
-
autoCapitalize?: string | undefined;
|
|
589
|
-
autoCorrect?: string | undefined;
|
|
590
|
-
autoSave?: string | undefined;
|
|
591
|
-
color?: string | undefined;
|
|
592
|
-
itemProp?: string | undefined;
|
|
593
|
-
itemScope?: boolean | undefined;
|
|
594
|
-
itemType?: string | undefined;
|
|
595
|
-
itemID?: string | undefined;
|
|
596
|
-
itemRef?: string | undefined;
|
|
597
|
-
results?: number | undefined;
|
|
598
|
-
security?: string | undefined;
|
|
599
|
-
unselectable?: "on" | "off" | undefined;
|
|
600
|
-
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
601
|
-
is?: string | undefined;
|
|
602
|
-
children?: React.ReactNode | Iterable<React.ReactNode>;
|
|
603
|
-
"aria-activedescendant"?: string | undefined;
|
|
604
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
605
|
-
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
606
|
-
"aria-braillelabel"?: string | undefined;
|
|
607
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
608
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
609
|
-
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
610
|
-
"aria-colcount"?: number | undefined;
|
|
611
|
-
"aria-colindex"?: number | undefined;
|
|
612
|
-
"aria-colindextext"?: string | undefined;
|
|
613
|
-
"aria-colspan"?: number | undefined;
|
|
614
|
-
"aria-controls"?: string | undefined;
|
|
615
|
-
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
616
|
-
"aria-describedby"?: string | undefined;
|
|
617
|
-
"aria-description"?: string | undefined;
|
|
618
|
-
"aria-details"?: string | undefined;
|
|
619
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
620
|
-
"aria-dropeffect"?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
|
|
621
|
-
"aria-errormessage"?: string | undefined;
|
|
622
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
623
|
-
"aria-flowto"?: string | undefined;
|
|
624
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
625
|
-
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
626
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
627
|
-
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
628
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
629
|
-
"aria-label"?: string | undefined;
|
|
630
|
-
"aria-labelledby"?: string | undefined;
|
|
631
|
-
"aria-level"?: number | undefined;
|
|
632
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
633
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
634
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
635
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
636
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
637
|
-
"aria-owns"?: string | undefined;
|
|
638
|
-
"aria-placeholder"?: string | undefined;
|
|
639
|
-
"aria-posinset"?: number | undefined;
|
|
640
|
-
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
641
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
642
|
-
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
643
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
644
|
-
"aria-roledescription"?: string | undefined;
|
|
645
|
-
"aria-rowcount"?: number | undefined;
|
|
646
|
-
"aria-rowindex"?: number | undefined;
|
|
647
|
-
"aria-rowindextext"?: string | undefined;
|
|
648
|
-
"aria-rowspan"?: number | undefined;
|
|
649
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
650
|
-
"aria-setsize"?: number | undefined;
|
|
651
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
652
|
-
"aria-valuemax"?: number | undefined;
|
|
653
|
-
"aria-valuemin"?: number | undefined;
|
|
654
|
-
"aria-valuenow"?: number | undefined;
|
|
655
|
-
"aria-valuetext"?: string | undefined;
|
|
656
|
-
dangerouslySetInnerHTML?: {
|
|
657
|
-
__html: string | TrustedHTML;
|
|
658
|
-
} | undefined;
|
|
659
|
-
onCopy?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
660
|
-
onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
661
|
-
onCut?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
662
|
-
onCutCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
663
|
-
onPaste?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
664
|
-
onPasteCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
665
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
666
|
-
onCompositionEndCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
667
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
668
|
-
onCompositionStartCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
669
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
670
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
671
|
-
onFocus?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
672
|
-
onFocusCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
673
|
-
onBlur?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
674
|
-
onBlurCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
675
|
-
onChange?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
676
|
-
onChangeCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
677
|
-
onBeforeInput?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
678
|
-
onBeforeInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
679
|
-
onInput?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
680
|
-
onInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
681
|
-
onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
682
|
-
onResetCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
683
|
-
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
684
|
-
onSubmitCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
685
|
-
onInvalid?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
686
|
-
onInvalidCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
687
|
-
onLoad?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
688
|
-
onLoadCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
689
|
-
onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
690
|
-
onErrorCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
691
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
692
|
-
onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
693
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
694
|
-
onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
695
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
696
|
-
onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
697
|
-
onAbort?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
698
|
-
onAbortCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
699
|
-
onCanPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
700
|
-
onCanPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
701
|
-
onCanPlayThrough?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
702
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
703
|
-
onDurationChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
704
|
-
onDurationChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
705
|
-
onEmptied?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
706
|
-
onEmptiedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
707
|
-
onEncrypted?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
708
|
-
onEncryptedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
709
|
-
onEnded?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
710
|
-
onEndedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
711
|
-
onLoadedData?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
712
|
-
onLoadedDataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
713
|
-
onLoadedMetadata?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
714
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
715
|
-
onLoadStart?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
716
|
-
onLoadStartCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
717
|
-
onPause?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
718
|
-
onPauseCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
719
|
-
onPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
720
|
-
onPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
721
|
-
onPlaying?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
722
|
-
onPlayingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
723
|
-
onProgress?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
724
|
-
onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
725
|
-
onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
726
|
-
onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
727
|
-
onResize?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
728
|
-
onResizeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
729
|
-
onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
730
|
-
onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
731
|
-
onSeeking?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
732
|
-
onSeekingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
733
|
-
onStalled?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
734
|
-
onStalledCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
735
|
-
onSuspend?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
736
|
-
onSuspendCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
737
|
-
onTimeUpdate?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
738
|
-
onTimeUpdateCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
739
|
-
onVolumeChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
740
|
-
onVolumeChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
741
|
-
onWaiting?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
742
|
-
onWaitingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
743
|
-
onAuxClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
744
|
-
onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
745
|
-
onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
746
|
-
onClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
747
|
-
onContextMenu?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
748
|
-
onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
749
|
-
onDoubleClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
750
|
-
onDoubleClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
751
|
-
onDrag?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
752
|
-
onDragCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
753
|
-
onDragEnd?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
754
|
-
onDragEndCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
755
|
-
onDragEnter?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
756
|
-
onDragEnterCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
757
|
-
onDragExit?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
758
|
-
onDragExitCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
759
|
-
onDragLeave?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
760
|
-
onDragLeaveCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
761
|
-
onDragOver?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
762
|
-
onDragOverCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
763
|
-
onDragStart?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
764
|
-
onDragStartCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
765
|
-
onDrop?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
766
|
-
onDropCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
767
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
768
|
-
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
769
|
-
onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
770
|
-
onMouseLeave?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
771
|
-
onMouseMove?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
772
|
-
onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
773
|
-
onMouseOut?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
774
|
-
onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
775
|
-
onMouseOver?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
776
|
-
onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
777
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
778
|
-
onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
779
|
-
onSelect?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
780
|
-
onSelectCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
781
|
-
onTouchCancel?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
782
|
-
onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
783
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
784
|
-
onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
785
|
-
onTouchMove?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
786
|
-
onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
787
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
788
|
-
onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
789
|
-
onPointerDown?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
790
|
-
onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
791
|
-
onPointerMove?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
792
|
-
onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
793
|
-
onPointerUp?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
794
|
-
onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
795
|
-
onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
796
|
-
onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
797
|
-
onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
798
|
-
onPointerEnterCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
799
|
-
onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
800
|
-
onPointerLeaveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
801
|
-
onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
802
|
-
onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
803
|
-
onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
804
|
-
onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
805
|
-
onGotPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
806
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
807
|
-
onLostPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
808
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
809
|
-
onScroll?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
810
|
-
onScrollCapture?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
811
|
-
onWheel?: React.WheelEventHandler<HTMLDivElement> | undefined;
|
|
812
|
-
onWheelCapture?: React.WheelEventHandler<HTMLDivElement> | undefined;
|
|
813
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
814
|
-
onAnimationStartCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
815
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
816
|
-
onAnimationEndCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
817
|
-
onAnimationIteration?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
818
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
819
|
-
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
820
|
-
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
821
|
-
$minWidth?: number | undefined;
|
|
822
|
-
$minHeight?: number | undefined;
|
|
823
|
-
$maskColor?: string | undefined;
|
|
824
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
825
|
-
}>;
|
|
826
551
|
export declare const GuideCenterRegion: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
827
552
|
$minWidth?: number | undefined;
|
|
828
553
|
$isMirrored?: boolean | undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { DetectedObject,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { FocusThresholds } from '../../lib/models/Focus';
|
|
1
|
+
import React, { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { DetectedObject, DocumentType } from '../../lib/models/DocumentDetection';
|
|
3
|
+
import { FocusPrediction } from '../../lib/models/Focus';
|
|
4
|
+
import { Frame } from '../../lib/utils/getFrameDimensions';
|
|
6
5
|
export type IdCapturePrediction = {
|
|
7
6
|
detectedObjects: DetectedObject[];
|
|
8
7
|
detectionTime: number;
|
|
@@ -15,7 +14,7 @@ export type IdCapturePrediction = {
|
|
|
15
14
|
mrzDetectionThresholdMet: boolean;
|
|
16
15
|
pdf417DetectionScore: number;
|
|
17
16
|
pdf417DetectionThresholdMet: boolean;
|
|
18
|
-
|
|
17
|
+
bestDocumentOrPassport: DetectedObject | undefined;
|
|
19
18
|
bestMrz: DetectedObject | undefined;
|
|
20
19
|
bestPdf417: DetectedObject | undefined;
|
|
21
20
|
documentInBounds: boolean;
|
|
@@ -27,40 +26,55 @@ export type IdCapturePrediction = {
|
|
|
27
26
|
frameHeight: number;
|
|
28
27
|
allZero: boolean;
|
|
29
28
|
};
|
|
30
|
-
export type IdCaptureThresholds =
|
|
31
|
-
|
|
29
|
+
export type IdCaptureThresholds = {
|
|
30
|
+
document?: number;
|
|
31
|
+
passport?: number;
|
|
32
|
+
mrz?: number;
|
|
33
|
+
pdf417?: number;
|
|
34
|
+
focus?: {
|
|
35
|
+
desktop?: number;
|
|
36
|
+
mobile?: number;
|
|
37
|
+
};
|
|
32
38
|
};
|
|
33
|
-
export type
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
export type BestFrame = {
|
|
40
|
+
canvas: HTMLCanvasElement;
|
|
41
|
+
boundingBox?: number[];
|
|
36
42
|
detectionScore: number;
|
|
37
43
|
focusScore: number;
|
|
38
44
|
};
|
|
39
|
-
export type BestFrame = BestFrameDetails & {
|
|
40
|
-
canvas: HTMLCanvasElement;
|
|
41
|
-
};
|
|
42
45
|
export type IdCaptureModelsState = {
|
|
43
46
|
ready: boolean;
|
|
44
|
-
start: () => void;
|
|
45
|
-
stop: () => void;
|
|
46
47
|
modelDownloadProgress: number;
|
|
48
|
+
working: MutableRefObject<boolean>;
|
|
47
49
|
idModelError: Error | null;
|
|
48
50
|
thresholds: IdCaptureThresholds;
|
|
49
51
|
setThresholds: (value: IdCaptureThresholds) => void;
|
|
52
|
+
makePrediction: (frame: Frame) => void;
|
|
50
53
|
onPredictionMade: (handler: (prediction: IdCapturePrediction) => void) => void;
|
|
51
54
|
detectionTime: number;
|
|
52
55
|
focusPredictionTime: number;
|
|
53
|
-
|
|
54
|
-
getBestFrame: () => BestFrame | null;
|
|
56
|
+
getBestFrame: () => Promise<BestFrame | null>;
|
|
55
57
|
resetBestFrame: () => void;
|
|
58
|
+
bestFrameDetectionScore: number;
|
|
59
|
+
bestFrameFocusScore: number;
|
|
56
60
|
};
|
|
57
61
|
export declare const IdCaptureModelsContext: React.Context<IdCaptureModelsState>;
|
|
58
62
|
export type IdCaptureModelsProviderProps = {
|
|
59
63
|
children: ReactNode;
|
|
60
64
|
documentDetectionModelUrl?: string | undefined;
|
|
61
65
|
focusModelUrl?: string | undefined;
|
|
66
|
+
logPredictions?: boolean;
|
|
62
67
|
onModelError?: (error: Error) => void;
|
|
63
68
|
modelLoadTimeoutMs?: number;
|
|
64
69
|
};
|
|
65
|
-
export declare
|
|
66
|
-
export declare
|
|
70
|
+
export declare const defaultDocumentDetectionModelUrl: string;
|
|
71
|
+
export declare const defaultFocusModelUrl: string;
|
|
72
|
+
export declare const defaultIdCaptureModelLoadTimeoutMs = 45000;
|
|
73
|
+
export declare const IdCaptureModelsProvider: ({ children, documentDetectionModelUrl, focusModelUrl, logPredictions, onModelError, modelLoadTimeoutMs, }: IdCaptureModelsProviderProps) => ReactElement;
|
|
74
|
+
type Canvases = {
|
|
75
|
+
lastPredictionCanvas: HTMLCanvasElement;
|
|
76
|
+
cropCanvas: HTMLCanvasElement;
|
|
77
|
+
rotateCanvas: HTMLCanvasElement;
|
|
78
|
+
};
|
|
79
|
+
export declare function makeFocusPrediction(imageData: Frame, canvases: Canvases, bbox?: number[], logPredictions?: boolean): Promise<[FocusPrediction, number]>;
|
|
80
|
+
export {};
|