@swype-org/react-sdk 0.2.311 → 0.2.312
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.cjs +24 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10527,6 +10527,25 @@ var copyIconCircleStyle = (bgRecessed) => ({
|
|
|
10527
10527
|
justifyContent: "center",
|
|
10528
10528
|
width: 48
|
|
10529
10529
|
});
|
|
10530
|
+
|
|
10531
|
+
// src/deviceBiometricUnlockText.ts
|
|
10532
|
+
var FALLBACK = "Biometric verification";
|
|
10533
|
+
function getDeviceBiometricUnlockText() {
|
|
10534
|
+
const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
|
|
10535
|
+
if (/iPhone|iPad|iPod/i.test(ua)) {
|
|
10536
|
+
return "Face ID";
|
|
10537
|
+
}
|
|
10538
|
+
if (/Android/i.test(ua)) {
|
|
10539
|
+
return "Fingerprint or face unlock";
|
|
10540
|
+
}
|
|
10541
|
+
if (/Windows NT/i.test(ua)) {
|
|
10542
|
+
return "Windows Hello";
|
|
10543
|
+
}
|
|
10544
|
+
if (/Macintosh|Mac OS X/i.test(ua)) {
|
|
10545
|
+
return "Touch ID";
|
|
10546
|
+
}
|
|
10547
|
+
return FALLBACK;
|
|
10548
|
+
}
|
|
10530
10549
|
function LoginScreen({
|
|
10531
10550
|
onLoginWithPasskey,
|
|
10532
10551
|
onSignupWithPasskey,
|
|
@@ -10616,8 +10635,11 @@ function PasskeyInfoCard({ tokens }) {
|
|
|
10616
10635
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: infoRowStyle, children: [
|
|
10617
10636
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: tokens.text, flexShrink: 0, paddingTop: 2 }, children: /* @__PURE__ */ jsxRuntime.jsx(FaceIdIcon, { size: 24 }) }),
|
|
10618
10637
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: infoRowTextStyle, children: [
|
|
10619
|
-
/* @__PURE__ */ jsxRuntime.
|
|
10620
|
-
|
|
10638
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: infoRowTitleStyle(tokens.text), children: [
|
|
10639
|
+
"Deposit with ",
|
|
10640
|
+
getDeviceBiometricUnlockText()
|
|
10641
|
+
] }),
|
|
10642
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: infoRowSubtitleStyle(tokens.text), children: "Everywhere Blink is enabled" })
|
|
10621
10643
|
] })
|
|
10622
10644
|
] })
|
|
10623
10645
|
] });
|
|
@@ -10755,25 +10777,6 @@ var avatarStyle = (tokens) => ({
|
|
|
10755
10777
|
color: tokens.textMuted,
|
|
10756
10778
|
background: "transparent"
|
|
10757
10779
|
});
|
|
10758
|
-
|
|
10759
|
-
// src/deviceBiometricUnlockText.ts
|
|
10760
|
-
var FALLBACK = "Biometric verification";
|
|
10761
|
-
function getDeviceBiometricUnlockText() {
|
|
10762
|
-
const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
|
|
10763
|
-
if (/iPhone|iPad|iPod/i.test(ua)) {
|
|
10764
|
-
return "Face ID";
|
|
10765
|
-
}
|
|
10766
|
-
if (/Android/i.test(ua)) {
|
|
10767
|
-
return "Fingerprint or face unlock";
|
|
10768
|
-
}
|
|
10769
|
-
if (/Windows NT/i.test(ua)) {
|
|
10770
|
-
return "Windows Hello";
|
|
10771
|
-
}
|
|
10772
|
-
if (/Macintosh|Mac OS X/i.test(ua)) {
|
|
10773
|
-
return "Touch ID";
|
|
10774
|
-
}
|
|
10775
|
-
return FALLBACK;
|
|
10776
|
-
}
|
|
10777
10780
|
var CLUSTER_LOGOS = [
|
|
10778
10781
|
METAMASK_LOGO,
|
|
10779
10782
|
PHANTOM_LOGO,
|