@aws-amplify/ui-react-liveness 3.0.6 → 3.0.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.
@@ -27,7 +27,7 @@ const selectIsFaceFarEnoughBeforeRecording = createLivenessSelector((state) => s
27
27
  const selectFaceMatchStateBeforeStart = createLivenessSelector((state) => state.context.faceMatchStateBeforeStart);
28
28
  const defaultToast = (text, isInitial = false) => {
29
29
  return (React.createElement(Toast, { size: "large", variation: "primary", isInitial: isInitial },
30
- React.createElement(View, { "aria-live": "polite", "aria-label": text }, text)));
30
+ React.createElement(View, { "aria-live": "assertive", "aria-label": text }, text)));
31
31
  };
32
32
  const Hint = ({ hintDisplayText }) => {
33
33
  const [state] = useLivenessActor();
@@ -104,7 +104,7 @@ const Hint = ({ hintDisplayText }) => {
104
104
  resultHintString = FaceMatchStateStringMap[faceMatchState];
105
105
  }
106
106
  return (React.createElement(Toast, { size: "large", variation: faceMatchState === FaceMatchState.TOO_CLOSE ? 'error' : 'primary' },
107
- React.createElement(View, { "aria-live": "polite", "aria-label": resultHintString }, resultHintString)));
107
+ React.createElement(View, { "aria-live": "assertive", "aria-label": resultHintString }, resultHintString)));
108
108
  }
109
109
  return null;
110
110
  };
@@ -1,3 +1,3 @@
1
- const VERSION = '3.0.6';
1
+ const VERSION = '3.0.8';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -771,7 +771,7 @@ class VideoRecorder {
771
771
  }
772
772
  }
773
773
 
774
- const VERSION = '3.0.6';
774
+ const VERSION = '3.0.8';
775
775
 
776
776
  const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
777
777
  const getLivenessUserAgent = () => {
@@ -2544,7 +2544,7 @@ const selectIsFaceFarEnoughBeforeRecording = createLivenessSelector((state) => s
2544
2544
  const selectFaceMatchStateBeforeStart = createLivenessSelector((state) => state.context.faceMatchStateBeforeStart);
2545
2545
  const defaultToast = (text, isInitial = false) => {
2546
2546
  return (React__namespace.createElement(Toast, { size: "large", variation: "primary", isInitial: isInitial },
2547
- React__namespace.createElement(uiReact.View, { "aria-live": "polite", "aria-label": text }, text)));
2547
+ React__namespace.createElement(uiReact.View, { "aria-live": "assertive", "aria-label": text }, text)));
2548
2548
  };
2549
2549
  const Hint = ({ hintDisplayText }) => {
2550
2550
  const [state] = useLivenessActor();
@@ -2621,7 +2621,7 @@ const Hint = ({ hintDisplayText }) => {
2621
2621
  resultHintString = FaceMatchStateStringMap[faceMatchState];
2622
2622
  }
2623
2623
  return (React__namespace.createElement(Toast, { size: "large", variation: faceMatchState === FaceMatchState.TOO_CLOSE ? 'error' : 'primary' },
2624
- React__namespace.createElement(uiReact.View, { "aria-live": "polite", "aria-label": resultHintString }, resultHintString)));
2624
+ React__namespace.createElement(uiReact.View, { "aria-live": "assertive", "aria-label": resultHintString }, resultHintString)));
2625
2625
  }
2626
2626
  return null;
2627
2627
  };
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.6";
1
+ export declare const VERSION = "3.0.8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-liveness",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -47,8 +47,8 @@
47
47
  "react-dom": "^16.14.0 || ^17.0 || ^18.0"
48
48
  },
49
49
  "dependencies": {
50
- "@aws-amplify/ui": "6.0.5",
51
- "@aws-amplify/ui-react": "6.0.6",
50
+ "@aws-amplify/ui": "6.0.6",
51
+ "@aws-amplify/ui-react": "6.1.0",
52
52
  "@aws-sdk/client-rekognitionstreaming": "3.398.0",
53
53
  "@aws-sdk/util-format-url": "^3.410.0",
54
54
  "@smithy/eventstream-serde-browser": "^2.0.4",