@aws-amplify/ui-react-liveness 3.0.4 → 3.0.5
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.
|
@@ -18,7 +18,7 @@ const MatchIndicator = ({ percentage, initialPercentage = 25, testId, }) => {
|
|
|
18
18
|
'--percentage': `${matchPercentage}%`,
|
|
19
19
|
};
|
|
20
20
|
return (React__default.createElement("div", { className: LivenessClassNames.MatchIndicator, "data-testid": testId },
|
|
21
|
-
React__default.createElement("div", { className: `${LivenessClassNames.MatchIndicator}__bar`, style: percentageStyles })));
|
|
21
|
+
React__default.createElement("div", { className: `${LivenessClassNames.MatchIndicator}__bar`, style: percentageStyles, role: "progressbar", "aria-label": "MatchIndicator", "aria-valuenow": percentage, "aria-valuetext": `${percentage}% face fit` })));
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export { MatchIndicator };
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -771,7 +771,7 @@ class VideoRecorder {
|
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
-
const VERSION = '3.0.
|
|
774
|
+
const VERSION = '3.0.5';
|
|
775
775
|
|
|
776
776
|
const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
|
|
777
777
|
const getLivenessUserAgent = () => {
|
|
@@ -2640,7 +2640,7 @@ const MatchIndicator = ({ percentage, initialPercentage = 25, testId, }) => {
|
|
|
2640
2640
|
'--percentage': `${matchPercentage}%`,
|
|
2641
2641
|
};
|
|
2642
2642
|
return (React__default["default"].createElement("div", { className: LivenessClassNames.MatchIndicator, "data-testid": testId },
|
|
2643
|
-
React__default["default"].createElement("div", { className: `${LivenessClassNames.MatchIndicator}__bar`, style: percentageStyles })));
|
|
2643
|
+
React__default["default"].createElement("div", { className: `${LivenessClassNames.MatchIndicator}__bar`, style: percentageStyles, role: "progressbar", "aria-label": "MatchIndicator", "aria-valuenow": percentage, "aria-valuetext": `${percentage}% face fit` })));
|
|
2644
2644
|
};
|
|
2645
2645
|
|
|
2646
2646
|
const Overlay = ({ children, horizontal = 'center', vertical = 'center', className, ...rest }) => {
|
package/dist/styles.css
CHANGED
|
@@ -4112,7 +4112,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4112
4112
|
content: "";
|
|
4113
4113
|
width: 100%;
|
|
4114
4114
|
height: 100%;
|
|
4115
|
-
background: var(--amplify-colors-primary-
|
|
4115
|
+
background: var(--amplify-colors-primary-80);
|
|
4116
4116
|
left: -100%;
|
|
4117
4117
|
transform: translate(var(--percentage), 0);
|
|
4118
4118
|
transition: var(--amplify-liveness-match-indicator-transition);
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.
|
|
1
|
+
export declare const VERSION = "3.0.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-liveness",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
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.
|
|
51
|
-
"@aws-amplify/ui-react": "6.0.
|
|
50
|
+
"@aws-amplify/ui": "6.0.4",
|
|
51
|
+
"@aws-amplify/ui-react": "6.0.5",
|
|
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",
|