@aws-amplify/ui-react-liveness 3.1.18 → 3.2.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/version.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/FaceLivenessDetector/FaceLivenessDetector.d.ts +2 -2
- package/dist/types/components/FaceLivenessDetector/FaceLivenessDetectorCore.d.ts +2 -2
- package/dist/types/components/FaceLivenessDetector/LivenessCheck/LivenessCameraModule.d.ts +2 -2
- package/dist/types/components/FaceLivenessDetector/hooks/useMediaStreamInVideo.d.ts +0 -1
- package/dist/types/components/FaceLivenessDetector/providers/FaceLivenessDetectorProvider.d.ts +1 -1
- package/dist/types/components/FaceLivenessDetector/shared/DefaultStartScreenComponents.d.ts +3 -3
- package/dist/types/components/FaceLivenessDetector/shared/FaceLivenessErrorModal.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -830,7 +830,7 @@ function getFaceMatchStateInLivenessOval({ face, ovalDetails, initialFaceInterse
|
|
|
830
830
|
return { faceMatchState, faceMatchPercentage };
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
const VERSION = '3.
|
|
833
|
+
const VERSION = '3.2.0';
|
|
834
834
|
|
|
835
835
|
const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
|
|
836
836
|
const getLivenessUserAgent = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { FaceLivenessDetectorProps as FaceLivenessDetectorPropsFromUi } from './service';
|
|
3
3
|
import { LivenessDisplayText } from './displayText';
|
|
4
4
|
import { FaceLivenessDetectorComponents } from './shared/DefaultStartScreenComponents';
|
|
@@ -6,4 +6,4 @@ export interface FaceLivenessDetectorProps extends FaceLivenessDetectorPropsFrom
|
|
|
6
6
|
components?: FaceLivenessDetectorComponents;
|
|
7
7
|
displayText?: LivenessDisplayText;
|
|
8
8
|
}
|
|
9
|
-
export default function FaceLivenessDetector(props: FaceLivenessDetectorProps): JSX.Element;
|
|
9
|
+
export default function FaceLivenessDetector(props: FaceLivenessDetectorProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { FaceLivenessDetectorCoreProps as FaceLivenessDetectorPropsFromUi } from './service';
|
|
3
3
|
import { FaceLivenessDetectorComponents } from './shared/DefaultStartScreenComponents';
|
|
4
4
|
import { LivenessDisplayText } from './displayText';
|
|
@@ -6,4 +6,4 @@ export interface FaceLivenessDetectorCoreProps extends FaceLivenessDetectorProps
|
|
|
6
6
|
components?: FaceLivenessDetectorComponents;
|
|
7
7
|
displayText?: LivenessDisplayText;
|
|
8
8
|
}
|
|
9
|
-
export default function FaceLivenessDetectorCore(props: FaceLivenessDetectorCoreProps): JSX.Element;
|
|
9
|
+
export default function FaceLivenessDetectorCore(props: FaceLivenessDetectorCoreProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FaceMatchState } from '../service';
|
|
3
3
|
import { InstructionDisplayText, ErrorDisplayText, HintDisplayText, StreamDisplayText, CameraDisplayText } from '../displayText';
|
|
4
4
|
import { FaceLivenessDetectorComponents } from '../shared/DefaultStartScreenComponents';
|
|
@@ -19,4 +19,4 @@ export interface LivenessCameraModuleProps {
|
|
|
19
19
|
components?: FaceLivenessDetectorComponents;
|
|
20
20
|
testId?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare const LivenessCameraModule: (props: LivenessCameraModuleProps) => JSX.Element;
|
|
22
|
+
export declare const LivenessCameraModule: (props: LivenessCameraModuleProps) => React.JSX.Element;
|
package/dist/types/components/FaceLivenessDetector/providers/FaceLivenessDetectorProvider.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ interface FaceLivenessDetectorContextType {
|
|
|
7
7
|
export interface FaceLivenessDetectorProviderProps extends FaceLivenessDetectorContextType {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare function FaceLivenessDetectorProvider({ children, ...props }: FaceLivenessDetectorProviderProps): JSX.Element;
|
|
10
|
+
export declare function FaceLivenessDetectorProvider({ children, ...props }: FaceLivenessDetectorProviderProps): React.JSX.Element;
|
|
11
11
|
export declare function useFaceLivenessDetector(): FaceLivenessDetectorContextType;
|
|
12
12
|
export {};
|
|
@@ -10,13 +10,13 @@ interface DefaultPhotosensitiveWarningProps {
|
|
|
10
10
|
infoText: string;
|
|
11
11
|
labelText: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const DefaultPhotosensitiveWarning: ({ bodyText, headingText, infoText, labelText, }: DefaultPhotosensitiveWarningProps) => JSX.Element;
|
|
13
|
+
export declare const DefaultPhotosensitiveWarning: ({ bodyText, headingText, infoText, labelText, }: DefaultPhotosensitiveWarningProps) => React.JSX.Element;
|
|
14
14
|
interface DefaultRecordingIconProps {
|
|
15
15
|
recordingIndicatorText: string;
|
|
16
16
|
}
|
|
17
|
-
export declare const DefaultRecordingIcon: ({ recordingIndicatorText, }: DefaultRecordingIconProps) => JSX.Element;
|
|
17
|
+
export declare const DefaultRecordingIcon: ({ recordingIndicatorText, }: DefaultRecordingIconProps) => React.JSX.Element;
|
|
18
18
|
interface CancelButtonProps {
|
|
19
19
|
cancelLivenessCheckText: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const DefaultCancelButton: ({ cancelLivenessCheckText, }: CancelButtonProps) => JSX.Element;
|
|
21
|
+
export declare const DefaultCancelButton: ({ cancelLivenessCheckText, }: CancelButtonProps) => React.JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -30,5 +30,5 @@ export declare const renderErrorModal: ({ errorState, overrideErrorDisplayText,
|
|
|
30
30
|
portraitMessageText: string;
|
|
31
31
|
tryAgainText: string;
|
|
32
32
|
}> | undefined;
|
|
33
|
-
}) => JSX.Element | null;
|
|
33
|
+
}) => React.JSX.Element | null;
|
|
34
34
|
export declare const FaceLivenessErrorModal: React.FC<FaceLivenessErrorModalProps>;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.2.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.2.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@aws-amplify/core": "*",
|
|
46
46
|
"aws-amplify": "^6.9.0",
|
|
47
|
-
"react": "^16.14
|
|
48
|
-
"react-dom": "^16.14
|
|
47
|
+
"react": "^16.14 || ^17 || ^18 || ^19",
|
|
48
|
+
"react-dom": "^16.14 || ^17 || ^18 || ^19"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-amplify/ui": "6.7.
|
|
52
|
-
"@aws-amplify/ui-react": "6.
|
|
51
|
+
"@aws-amplify/ui": "6.7.2",
|
|
52
|
+
"@aws-amplify/ui-react": "6.8.0",
|
|
53
53
|
"@aws-sdk/client-rekognitionstreaming": "3.621.0",
|
|
54
54
|
"@aws-sdk/util-format-url": "3.609.0",
|
|
55
55
|
"@smithy/eventstream-serde-browser": "^2.0.4",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@tensorflow/tfjs-converter": "4.11.0",
|
|
65
65
|
"@tensorflow/tfjs-core": "4.11.0",
|
|
66
66
|
"@xstate/react": "^3.2.2",
|
|
67
|
-
"nanoid": "3.
|
|
67
|
+
"nanoid": "3.3.8",
|
|
68
68
|
"tslib": "^2.5.2",
|
|
69
69
|
"xstate": "^4.33.6"
|
|
70
70
|
},
|