@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.
- package/dist/esm/components/FaceLivenessDetector/LivenessCheck/LivenessCameraModule.mjs +2 -2
- package/dist/esm/components/FaceLivenessDetector/service/machine/machine.mjs +2 -2
- package/dist/esm/components/FaceLivenessDetector/service/types/error.mjs +0 -1
- package/dist/esm/components/FaceLivenessDetector/service/utils/blazefaceFaceDetection.mjs +1 -1
- package/dist/esm/components/FaceLivenessDetector/service/utils/createStreamingClient/CustomWebSocketFetchHandler.mjs +1 -1
- package/dist/esm/components/FaceLivenessDetector/shared/DefaultStartScreenComponents.mjs +1 -1
- package/dist/esm/components/FaceLivenessDetector/shared/FaceLivenessErrorModal.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +1 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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 {
|
|
24
|
-
import { DefaultRecordingIcon, DefaultCancelButton
|
|
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,
|
|
3
|
-
import {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,
|
|
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';
|
package/dist/esm/version.mjs
CHANGED
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.
|
|
834
|
+
const VERSION = '3.3.8';
|
|
836
835
|
|
|
837
836
|
const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
|
|
838
837
|
const getLivenessUserAgent = () => {
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.3.
|
|
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.
|
|
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.
|
|
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.
|
|
52
|
-
"@aws-amplify/ui-react": "6.
|
|
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",
|