@realeyes/verifeye-sdk 1.2.0 → 1.3.0
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/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import m from "@mui/material/DialogContent";
|
|
3
3
|
import h from "@mui/material/IconButton";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as x, R as v, C as d, D as T } from "./index-CokarRpN.js";
|
|
5
5
|
import { useMemo as f } from "react";
|
|
6
6
|
import { Box as g, Stack as u } from "@mui/material";
|
|
7
7
|
import { FaceLivenessDetector as p } from "@aws-amplify/ui-react-liveness";
|
|
@@ -82,8 +82,8 @@ const L = ({
|
|
|
82
82
|
onLivenessError: a,
|
|
83
83
|
onClose: _
|
|
84
84
|
}) => {
|
|
85
|
-
const i =
|
|
86
|
-
return n ? /* @__PURE__ */ t(
|
|
85
|
+
const i = x(), l = f(() => C(i), [i]);
|
|
86
|
+
return n ? /* @__PURE__ */ t(v, { open: n, children: /* @__PURE__ */ c(
|
|
87
87
|
m,
|
|
88
88
|
{
|
|
89
89
|
sx: {
|
|
@@ -99,6 +99,19 @@ const L = ({
|
|
|
99
99
|
position: "absolute",
|
|
100
100
|
right: 10,
|
|
101
101
|
top: 10,
|
|
102
|
+
// Above the liveness widget's instruction overlay, which is positioned over
|
|
103
|
+
// the whole dialog while it asks the user to move closer and carries
|
|
104
|
+
// `z-index: 2` (.amplify-liveness-instruction-overlay in the package's
|
|
105
|
+
// stylesheet — the general .amplify-liveness-overlay rule has none, which
|
|
106
|
+
// is why a first attempt at 1 was not enough).
|
|
107
|
+
//
|
|
108
|
+
// Measured, not assumed: the end-to-end suite's click on this button is
|
|
109
|
+
// rejected with "amplify-liveness-instruction-overlay ... intercepts
|
|
110
|
+
// pointer events", three retries in a row, while the button itself reports
|
|
111
|
+
// visible, enabled and stable. Clicking it by hand does work, so this is
|
|
112
|
+
// about removing the ambiguity rather than a claim that the control was
|
|
113
|
+
// unusable.
|
|
114
|
+
zIndex: 3,
|
|
102
115
|
color: "#b0b0b0",
|
|
103
116
|
"&:hover": {
|
|
104
117
|
color: "#263235"
|