@aws-amplify/ui-react-liveness 3.2.0 → 3.2.1

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.
@@ -1,3 +1,3 @@
1
- const VERSION = '3.2.0';
1
+ const VERSION = '3.2.1';
2
2
 
3
3
  export { VERSION };
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.2.0';
833
+ const VERSION = '3.2.1';
834
834
 
835
835
  const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
836
836
  const getLivenessUserAgent = () => {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="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): React.JSX.Element;
9
+ export default function FaceLivenessDetector(props: FaceLivenessDetectorProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="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): React.JSX.Element;
9
+ export default function FaceLivenessDetectorCore(props: FaceLivenessDetectorCoreProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="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) => React.JSX.Element;
22
+ export declare const LivenessCameraModule: (props: LivenessCameraModuleProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface UseMediaStreamInVideo {
2
3
  videoRef: React.MutableRefObject<HTMLVideoElement | null>;
3
4
  videoHeight: number | undefined;
@@ -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): React.JSX.Element;
10
+ export declare function FaceLivenessDetectorProvider({ children, ...props }: FaceLivenessDetectorProviderProps): 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) => React.JSX.Element;
13
+ export declare const DefaultPhotosensitiveWarning: ({ bodyText, headingText, infoText, labelText, }: DefaultPhotosensitiveWarningProps) => JSX.Element;
14
14
  interface DefaultRecordingIconProps {
15
15
  recordingIndicatorText: string;
16
16
  }
17
- export declare const DefaultRecordingIcon: ({ recordingIndicatorText, }: DefaultRecordingIconProps) => React.JSX.Element;
17
+ export declare const DefaultRecordingIcon: ({ recordingIndicatorText, }: DefaultRecordingIconProps) => JSX.Element;
18
18
  interface CancelButtonProps {
19
19
  cancelLivenessCheckText: string;
20
20
  }
21
- export declare const DefaultCancelButton: ({ cancelLivenessCheckText, }: CancelButtonProps) => React.JSX.Element;
21
+ export declare const DefaultCancelButton: ({ cancelLivenessCheckText, }: CancelButtonProps) => 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
- }) => React.JSX.Element | null;
33
+ }) => JSX.Element | null;
34
34
  export declare const FaceLivenessErrorModal: React.FC<FaceLivenessErrorModalProps>;
@@ -1 +1 @@
1
- export declare const VERSION = "3.2.0";
1
+ export declare const VERSION = "3.2.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-liveness",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
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 || ^17 || ^18 || ^19",
48
- "react-dom": "^16.14 || ^17 || ^18 || ^19"
47
+ "react": "^16.14.0 || ^17.0 || ^18.0",
48
+ "react-dom": "^16.14.0 || ^17.0 || ^18.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@aws-amplify/ui": "6.7.2",
52
- "@aws-amplify/ui-react": "6.8.0",
52
+ "@aws-amplify/ui-react": "6.8.1",
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",