@aws-amplify/ui-react-liveness 3.3.6 → 3.3.8

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.
@@ -20,8 +20,8 @@ import { LivenessClassNames } from '../types/classNames.mjs';
20
20
  import { selectErrorState, Hint } from '../shared/Hint.mjs';
21
21
  import { MatchIndicator } from '../shared/MatchIndicator.mjs';
22
22
  import { Overlay } from '../shared/Overlay.mjs';
23
- import { renderErrorModal, FaceLivenessErrorModal } from '../shared/FaceLivenessErrorModal.mjs';
24
- import { DefaultRecordingIcon, DefaultCancelButton, DefaultPhotosensitiveWarning } from '../shared/DefaultStartScreenComponents.mjs';
23
+ import { FaceLivenessErrorModal, renderErrorModal } from '../shared/FaceLivenessErrorModal.mjs';
24
+ import { DefaultPhotosensitiveWarning, DefaultRecordingIcon, DefaultCancelButton } from '../shared/DefaultStartScreenComponents.mjs';
25
25
 
26
26
  const selectVideoConstraints = createLivenessSelector((state) => state.context.videoAssociatedParams?.videoConstraints);
27
27
  const selectVideoStream = createLivenessSelector((state) => state.context.videoAssociatedParams?.videoMediaStream);
@@ -1,6 +1,6 @@
1
1
  import { nanoid } from 'nanoid';
2
- import { createMachine, assign, spawn, actions } from 'xstate';
3
- import { drawStaticOval, getBoundingBox, getColorsSequencesFromSessionInformation, isCameraDeviceVirtual, getFaceMatchState, isFaceDistanceBelowThreshold, estimateIllumination, getOvalDetailsFromSessionInformation, generateBboxFromLandmarks, drawLivenessOvalInCanvas, getOvalBoundingBox, getIntersectionOverUnion, getStaticLivenessOvalDetails } from '../utils/liveness.mjs';
2
+ import { createMachine, assign, actions, spawn } from 'xstate';
3
+ import { getBoundingBox, generateBboxFromLandmarks, getOvalBoundingBox, getIntersectionOverUnion, estimateIllumination, getOvalDetailsFromSessionInformation, drawLivenessOvalInCanvas, isFaceDistanceBelowThreshold, getFaceMatchState, isCameraDeviceVirtual, getColorsSequencesFromSessionInformation, drawStaticOval, getStaticLivenessOvalDetails } from '../utils/liveness.mjs';
4
4
  import { FaceMatchState } from '../types/liveness.mjs';
5
5
  import { LivenessErrorState } from '../types/error.mjs';
6
6
  import { BlazeFaceFaceDetection } from '../utils/blazefaceFaceDetection.mjs';
@@ -5,7 +5,6 @@ const LivenessErrorState = {
5
5
  CONNECTION_TIMEOUT: 'CONNECTION_TIMEOUT',
6
6
  TIMEOUT: 'TIMEOUT',
7
7
  RUNTIME_ERROR: 'RUNTIME_ERROR',
8
- FRESHNESS_TIMEOUT: 'FRESHNESS_TIMEOUT',
9
8
  SERVER_ERROR: 'SERVER_ERROR',
10
9
  CAMERA_FRAMERATE_ERROR: 'CAMERA_FRAMERATE_ERROR',
11
10
  CAMERA_ACCESS_ERROR: 'CAMERA_ACCESS_ERROR',
@@ -1,6 +1,6 @@
1
1
  import { ready, setBackend } from '@tensorflow/tfjs-core';
2
2
  import { createDetector, SupportedModels } from '@tensorflow-models/face-detection';
3
- import { setWasmPaths, version_wasm } from '@tensorflow/tfjs-backend-wasm';
3
+ import { version_wasm, setWasmPaths } from '@tensorflow/tfjs-backend-wasm';
4
4
  import '@tensorflow/tfjs-backend-cpu';
5
5
  import { jitteredExponentialRetry } from '@aws-amplify/core/internals/utils';
6
6
  import { isWebAssemblySupported } from './support.mjs';
@@ -1,5 +1,5 @@
1
1
  import { formatUrl } from '@aws-sdk/util-format-url';
2
- import { readableStreamtoIterable, iterableToReadableStream } from '@smithy/eventstream-serde-browser';
2
+ import { iterableToReadableStream, readableStreamtoIterable } from '@smithy/eventstream-serde-browser';
3
3
  import { FetchHttpHandler } from '@smithy/fetch-http-handler';
4
4
  import { HttpResponse } from '@smithy/protocol-http';
5
5
  import { WS_CLOSURE_CODE } from '../constants.mjs';
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { ComponentClassName } from '@aws-amplify/ui';
3
- import { View, Flex } from '@aws-amplify/ui-react';
3
+ import { Flex, View } from '@aws-amplify/ui-react';
4
4
  import { CancelButton } from './CancelButton.mjs';
5
5
  import '../service/machine/machine.mjs';
6
6
  import '../service/types/liveness.mjs';
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { Flex, Text, Button } from '@aws-amplify/ui-react';
2
+ import { Flex, Button, Text } from '@aws-amplify/ui-react';
3
3
  import { AlertIcon } from '@aws-amplify/ui-react/internal';
4
4
  import '../service/machine/machine.mjs';
5
5
  import '../service/types/liveness.mjs';
@@ -1,3 +1,3 @@
1
- const VERSION = '3.3.6';
1
+ const VERSION = '3.3.8';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -85,7 +85,6 @@ const LivenessErrorState = {
85
85
  CONNECTION_TIMEOUT: 'CONNECTION_TIMEOUT',
86
86
  TIMEOUT: 'TIMEOUT',
87
87
  RUNTIME_ERROR: 'RUNTIME_ERROR',
88
- FRESHNESS_TIMEOUT: 'FRESHNESS_TIMEOUT',
89
88
  SERVER_ERROR: 'SERVER_ERROR',
90
89
  CAMERA_FRAMERATE_ERROR: 'CAMERA_FRAMERATE_ERROR',
91
90
  CAMERA_ACCESS_ERROR: 'CAMERA_ACCESS_ERROR',
@@ -832,7 +831,7 @@ function getFaceMatchStateInLivenessOval({ face, ovalDetails, initialFaceInterse
832
831
  return { faceMatchState, faceMatchPercentage };
833
832
  }
834
833
 
835
- const VERSION = '3.3.6';
834
+ const VERSION = '3.3.8';
836
835
 
837
836
  const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
838
837
  const getLivenessUserAgent = () => {
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.6";
1
+ export declare const VERSION = "3.3.8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-liveness",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -43,13 +43,13 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@aws-amplify/core": "*",
46
- "aws-amplify": "^6.9.0",
46
+ "aws-amplify": "^6.14.3",
47
47
  "react": "^16.14 || ^17 || ^18 || ^19",
48
48
  "react-dom": "^16.14 || ^17 || ^18 || ^19"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-amplify/ui": "6.10.0",
52
- "@aws-amplify/ui-react": "6.10.0",
51
+ "@aws-amplify/ui": "6.10.2",
52
+ "@aws-amplify/ui-react": "6.11.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",