@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.js
CHANGED
|
@@ -10503,6 +10503,25 @@ var copyIconCircleStyle = (bgRecessed) => ({
|
|
|
10503
10503
|
justifyContent: "center",
|
|
10504
10504
|
width: 48
|
|
10505
10505
|
});
|
|
10506
|
+
|
|
10507
|
+
// src/deviceBiometricUnlockText.ts
|
|
10508
|
+
var FALLBACK = "Biometric verification";
|
|
10509
|
+
function getDeviceBiometricUnlockText() {
|
|
10510
|
+
const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
|
|
10511
|
+
if (/iPhone|iPad|iPod/i.test(ua)) {
|
|
10512
|
+
return "Face ID";
|
|
10513
|
+
}
|
|
10514
|
+
if (/Android/i.test(ua)) {
|
|
10515
|
+
return "Fingerprint or face unlock";
|
|
10516
|
+
}
|
|
10517
|
+
if (/Windows NT/i.test(ua)) {
|
|
10518
|
+
return "Windows Hello";
|
|
10519
|
+
}
|
|
10520
|
+
if (/Macintosh|Mac OS X/i.test(ua)) {
|
|
10521
|
+
return "Touch ID";
|
|
10522
|
+
}
|
|
10523
|
+
return FALLBACK;
|
|
10524
|
+
}
|
|
10506
10525
|
function LoginScreen({
|
|
10507
10526
|
onLoginWithPasskey,
|
|
10508
10527
|
onSignupWithPasskey,
|
|
@@ -10592,8 +10611,11 @@ function PasskeyInfoCard({ tokens }) {
|
|
|
10592
10611
|
/* @__PURE__ */ jsxs("div", { style: infoRowStyle, children: [
|
|
10593
10612
|
/* @__PURE__ */ jsx("div", { style: { color: tokens.text, flexShrink: 0, paddingTop: 2 }, children: /* @__PURE__ */ jsx(FaceIdIcon, { size: 24 }) }),
|
|
10594
10613
|
/* @__PURE__ */ jsxs("div", { style: infoRowTextStyle, children: [
|
|
10595
|
-
/* @__PURE__ */
|
|
10596
|
-
|
|
10614
|
+
/* @__PURE__ */ jsxs("div", { style: infoRowTitleStyle(tokens.text), children: [
|
|
10615
|
+
"Deposit with ",
|
|
10616
|
+
getDeviceBiometricUnlockText()
|
|
10617
|
+
] }),
|
|
10618
|
+
/* @__PURE__ */ jsx("div", { style: infoRowSubtitleStyle(tokens.text), children: "Everywhere Blink is enabled" })
|
|
10597
10619
|
] })
|
|
10598
10620
|
] })
|
|
10599
10621
|
] });
|
|
@@ -10731,25 +10753,6 @@ var avatarStyle = (tokens) => ({
|
|
|
10731
10753
|
color: tokens.textMuted,
|
|
10732
10754
|
background: "transparent"
|
|
10733
10755
|
});
|
|
10734
|
-
|
|
10735
|
-
// src/deviceBiometricUnlockText.ts
|
|
10736
|
-
var FALLBACK = "Biometric verification";
|
|
10737
|
-
function getDeviceBiometricUnlockText() {
|
|
10738
|
-
const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
|
|
10739
|
-
if (/iPhone|iPad|iPod/i.test(ua)) {
|
|
10740
|
-
return "Face ID";
|
|
10741
|
-
}
|
|
10742
|
-
if (/Android/i.test(ua)) {
|
|
10743
|
-
return "Fingerprint or face unlock";
|
|
10744
|
-
}
|
|
10745
|
-
if (/Windows NT/i.test(ua)) {
|
|
10746
|
-
return "Windows Hello";
|
|
10747
|
-
}
|
|
10748
|
-
if (/Macintosh|Mac OS X/i.test(ua)) {
|
|
10749
|
-
return "Touch ID";
|
|
10750
|
-
}
|
|
10751
|
-
return FALLBACK;
|
|
10752
|
-
}
|
|
10753
10756
|
var CLUSTER_LOGOS = [
|
|
10754
10757
|
METAMASK_LOGO,
|
|
10755
10758
|
PHANTOM_LOGO,
|