@aws-amplify/ui-react-liveness 3.6.8 → 3.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.
- package/dist/esm/components/FaceLivenessDetector/FaceLivenessDetectorCore.mjs +18 -1
- package/dist/esm/components/FaceLivenessDetector/LivenessCheck/LivenessCameraModule.mjs +96 -6
- package/dist/esm/components/FaceLivenessDetector/LivenessCheck/LivenessCheck.mjs +2 -2
- package/dist/esm/components/FaceLivenessDetector/service/machine/machine.mjs +45 -22
- package/dist/esm/components/FaceLivenessDetector/service/utils/closeLivenessStream.mjs +28 -0
- package/dist/esm/components/FaceLivenessDetector/service/utils/liveness.mjs +90 -17
- package/dist/esm/components/FaceLivenessDetector/shared/CancelButton.mjs +4 -1
- package/dist/esm/components/FaceLivenessDetector/shared/DefaultStartScreenComponents.mjs +2 -2
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +278 -47
- package/dist/styles.css +22 -0
- package/dist/types/components/FaceLivenessDetector/LivenessCheck/LivenessCameraModule.d.ts +1 -0
- package/dist/types/components/FaceLivenessDetector/service/types/machine.d.ts +1 -1
- package/dist/types/components/FaceLivenessDetector/service/utils/closeLivenessStream.d.ts +9 -0
- package/dist/types/components/FaceLivenessDetector/service/utils/index.d.ts +1 -0
- package/dist/types/components/FaceLivenessDetector/service/utils/liveness.d.ts +30 -0
- package/dist/types/components/FaceLivenessDetector/shared/CancelButton.d.ts +15 -0
- package/dist/types/components/FaceLivenessDetector/shared/DefaultStartScreenComponents.d.ts +11 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { FaceLivenessCancelButtonProps } from './CancelButton';
|
|
2
3
|
import type { CheckScreenComponents } from './FaceLivenessErrorModal';
|
|
3
|
-
export type FaceLivenessDetectorComponents = StartScreenComponents & CheckScreenComponents;
|
|
4
|
+
export type FaceLivenessDetectorComponents = StartScreenComponents & CheckScreenComponents & CancelButtonComponents;
|
|
5
|
+
export interface CancelButtonComponents {
|
|
6
|
+
/**
|
|
7
|
+
* Replaces the cancel ("X") button. Pass `null` to hide it, for example
|
|
8
|
+
* when the host (such as a modal) already provides its own close button.
|
|
9
|
+
*/
|
|
10
|
+
CancelButton?: React.ComponentType<FaceLivenessCancelButtonProps> | null;
|
|
11
|
+
}
|
|
4
12
|
export interface StartScreenComponents {
|
|
5
13
|
PhotosensitiveWarning?: React.ComponentType;
|
|
6
14
|
}
|
|
@@ -17,6 +25,7 @@ interface DefaultRecordingIconProps {
|
|
|
17
25
|
export declare const DefaultRecordingIcon: ({ recordingIndicatorText, }: DefaultRecordingIconProps) => React.JSX.Element;
|
|
18
26
|
interface CancelButtonProps {
|
|
19
27
|
cancelLivenessCheckText: string;
|
|
28
|
+
CancelButton?: React.ComponentType<FaceLivenessCancelButtonProps>;
|
|
20
29
|
}
|
|
21
|
-
export declare const DefaultCancelButton: ({ cancelLivenessCheckText, }: CancelButtonProps) => React.JSX.Element;
|
|
30
|
+
export declare const DefaultCancelButton: ({ cancelLivenessCheckText, CancelButton, }: CancelButtonProps) => React.JSX.Element;
|
|
22
31
|
export {};
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.7.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-liveness",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"react-dom": "^16.14 || ^17 || ^18 || ^19"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@aws-amplify/ui": "6.15.
|
|
55
|
-
"@aws-amplify/ui-react": "6.15.
|
|
54
|
+
"@aws-amplify/ui": "6.15.7",
|
|
55
|
+
"@aws-amplify/ui-react": "6.15.7",
|
|
56
56
|
"@aws-sdk/client-rekognitionstreaming": "^3.974.0",
|
|
57
57
|
"@aws-sdk/util-format-url": "^3.972.37",
|
|
58
58
|
"@smithy/eventstream-serde-browser": "^4.0.4",
|