@volr/react-ui 0.1.132 → 0.1.133
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 +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -12
package/dist/index.d.cts
CHANGED
|
@@ -171,6 +171,7 @@ declare const en: {
|
|
|
171
171
|
readonly alreadyExists: "Biometric login is already set up.";
|
|
172
172
|
readonly notSupported: "Your device doesn't support biometric login.";
|
|
173
173
|
readonly prfNotSupported: "Setup failed. Please use your device's biometric (Touch ID, Face ID) directly. Using other devices or apps may not work.";
|
|
174
|
+
readonly prfNotSupportedWindows: "Setup failed. Windows Hello doesn't support PRF. In the passkey picker, choose \"Use a phone or tablet\".";
|
|
174
175
|
readonly generic: "Setup failed. Please try again.";
|
|
175
176
|
};
|
|
176
177
|
readonly compatibility: {
|
package/dist/index.d.ts
CHANGED
|
@@ -171,6 +171,7 @@ declare const en: {
|
|
|
171
171
|
readonly alreadyExists: "Biometric login is already set up.";
|
|
172
172
|
readonly notSupported: "Your device doesn't support biometric login.";
|
|
173
173
|
readonly prfNotSupported: "Setup failed. Please use your device's biometric (Touch ID, Face ID) directly. Using other devices or apps may not work.";
|
|
174
|
+
readonly prfNotSupportedWindows: "Setup failed. Windows Hello doesn't support PRF. In the passkey picker, choose \"Use a phone or tablet\".";
|
|
174
175
|
readonly generic: "Setup failed. Please try again.";
|
|
175
176
|
};
|
|
176
177
|
readonly compatibility: {
|
package/dist/index.js
CHANGED
|
@@ -547,6 +547,7 @@ var en = {
|
|
|
547
547
|
alreadyExists: "Biometric login is already set up.",
|
|
548
548
|
notSupported: "Your device doesn't support biometric login.",
|
|
549
549
|
prfNotSupported: "Setup failed. Please use your device's biometric (Touch ID, Face ID) directly. Using other devices or apps may not work.",
|
|
550
|
+
prfNotSupportedWindows: `Setup failed. Windows Hello doesn't support PRF. In the passkey picker, choose "Use a phone or tablet".`,
|
|
550
551
|
generic: "Setup failed. Please try again."
|
|
551
552
|
},
|
|
552
553
|
compatibility: {
|
|
@@ -793,6 +794,7 @@ var ko = {
|
|
|
793
794
|
alreadyExists: "\uC774\uBBF8 \uC0DD\uCCB4 \uB85C\uADF8\uC778\uC774 \uC124\uC815\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
794
795
|
notSupported: "\uC774 \uAE30\uAE30\uB294 \uC0DD\uCCB4 \uB85C\uADF8\uC778\uC744 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
795
796
|
prfNotSupported: "\uC124\uC815\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC758 \uC0DD\uCCB4 \uC778\uC99D(Touch ID, Face ID)\uC744 \uC9C1\uC811 \uC120\uD0DD\uD574\uC8FC\uC138\uC694. \uB2E4\uB978 \uAE30\uAE30\uB098 \uC571 \uC0AC\uC6A9 \uC2DC \uB3D9\uC791\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
797
|
+
prfNotSupportedWindows: '\uC124\uC815\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. Windows Hello\uB294 PRF\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uD328\uC2A4\uD0A4 \uC120\uD0DD \uD654\uBA74\uC5D0\uC11C "\uD734\uB300\uD3F0/\uD0DC\uBE14\uB9BF \uC0AC\uC6A9"\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694.',
|
|
796
798
|
generic: "\uC124\uC815\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694."
|
|
797
799
|
},
|
|
798
800
|
compatibility: {
|
|
@@ -1538,7 +1540,10 @@ function getUserFriendlyError(error, t) {
|
|
|
1538
1540
|
return t("passkey.errors.alreadyExists");
|
|
1539
1541
|
}
|
|
1540
1542
|
if (msg.includes("prf extension not supported") || msg.includes("prf output missing") || msg.includes("prf not supported")) {
|
|
1541
|
-
|
|
1543
|
+
const isWindows = typeof navigator !== "undefined" && /Win/.test(navigator.platform || "");
|
|
1544
|
+
return t(
|
|
1545
|
+
isWindows ? "passkey.errors.prfNotSupportedWindows" : "passkey.errors.prfNotSupported"
|
|
1546
|
+
);
|
|
1542
1547
|
}
|
|
1543
1548
|
if (msg.includes("not supported")) {
|
|
1544
1549
|
return t("passkey.errors.notSupported");
|