@volr/react-ui 0.1.131 → 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.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: {
@@ -211,29 +212,6 @@ declare const en: {
211
212
  readonly inProgress: "Setting up...";
212
213
  readonly success: "Passkey set up successfully!";
213
214
  readonly error: "Failed to set up passkey. Please try again.";
214
- readonly successTitle: "Migration Complete!";
215
- readonly successMessage: "Your passkey has been set up for this site.";
216
- readonly waitingHint: "Please complete the setup in the popup window.";
217
- readonly source: {
218
- readonly title: "Authenticate with existing passkey";
219
- readonly description: "Verify your identity to migrate wallet to {{targetDomain}}";
220
- readonly ready: "Ready to authenticate";
221
- readonly authenticating: "Authenticating...";
222
- readonly decrypting: "Decrypting wallet data...";
223
- readonly waiting: "Waiting for registration on new site...";
224
- readonly done: "Authentication complete!";
225
- readonly waitingHint: "Please complete passkey registration in the new window.";
226
- };
227
- readonly target: {
228
- readonly title: "Register passkey for this site";
229
- readonly description: "Set up secure login for {{currentDomain}}";
230
- readonly ready: "Ready to register";
231
- readonly connecting: "Connecting to source site...";
232
- readonly registering: "Registering new passkey...";
233
- readonly completing: "Completing setup...";
234
- readonly success: "Passkey registered!";
235
- readonly closing: "Closing window...";
236
- };
237
215
  };
238
216
  };
239
217
  readonly success: {
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: {
@@ -211,29 +212,6 @@ declare const en: {
211
212
  readonly inProgress: "Setting up...";
212
213
  readonly success: "Passkey set up successfully!";
213
214
  readonly error: "Failed to set up passkey. Please try again.";
214
- readonly successTitle: "Migration Complete!";
215
- readonly successMessage: "Your passkey has been set up for this site.";
216
- readonly waitingHint: "Please complete the setup in the popup window.";
217
- readonly source: {
218
- readonly title: "Authenticate with existing passkey";
219
- readonly description: "Verify your identity to migrate wallet to {{targetDomain}}";
220
- readonly ready: "Ready to authenticate";
221
- readonly authenticating: "Authenticating...";
222
- readonly decrypting: "Decrypting wallet data...";
223
- readonly waiting: "Waiting for registration on new site...";
224
- readonly done: "Authentication complete!";
225
- readonly waitingHint: "Please complete passkey registration in the new window.";
226
- };
227
- readonly target: {
228
- readonly title: "Register passkey for this site";
229
- readonly description: "Set up secure login for {{currentDomain}}";
230
- readonly ready: "Ready to register";
231
- readonly connecting: "Connecting to source site...";
232
- readonly registering: "Registering new passkey...";
233
- readonly completing: "Completing setup...";
234
- readonly success: "Passkey registered!";
235
- readonly closing: "Closing window...";
236
- };
237
215
  };
238
216
  };
239
217
  readonly success: {
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: {
@@ -586,32 +587,7 @@ var en = {
586
587
  later: "Do it later",
587
588
  inProgress: "Setting up...",
588
589
  success: "Passkey set up successfully!",
589
- error: "Failed to set up passkey. Please try again.",
590
- successTitle: "Migration Complete!",
591
- successMessage: "Your passkey has been set up for this site.",
592
- waitingHint: "Please complete the setup in the popup window.",
593
- // Source popup (domain-a.com)
594
- source: {
595
- title: "Authenticate with existing passkey",
596
- description: "Verify your identity to migrate wallet to {{targetDomain}}",
597
- ready: "Ready to authenticate",
598
- authenticating: "Authenticating...",
599
- decrypting: "Decrypting wallet data...",
600
- waiting: "Waiting for registration on new site...",
601
- done: "Authentication complete!",
602
- waitingHint: "Please complete passkey registration in the new window."
603
- },
604
- // Target popup (domain-b.com)
605
- target: {
606
- title: "Register passkey for this site",
607
- description: "Set up secure login for {{currentDomain}}",
608
- ready: "Ready to register",
609
- connecting: "Connecting to source site...",
610
- registering: "Registering new passkey...",
611
- completing: "Completing setup...",
612
- success: "Passkey registered!",
613
- closing: "Closing window..."
614
- }
590
+ error: "Failed to set up passkey. Please try again."
615
591
  }
616
592
  },
617
593
  success: {
@@ -818,6 +794,7 @@ var ko = {
818
794
  alreadyExists: "\uC774\uBBF8 \uC0DD\uCCB4 \uB85C\uADF8\uC778\uC774 \uC124\uC815\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",
819
795
  notSupported: "\uC774 \uAE30\uAE30\uB294 \uC0DD\uCCB4 \uB85C\uADF8\uC778\uC744 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
820
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.',
821
798
  generic: "\uC124\uC815\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694."
822
799
  },
823
800
  compatibility: {
@@ -1563,7 +1540,10 @@ function getUserFriendlyError(error, t) {
1563
1540
  return t("passkey.errors.alreadyExists");
1564
1541
  }
1565
1542
  if (msg.includes("prf extension not supported") || msg.includes("prf output missing") || msg.includes("prf not supported")) {
1566
- return t("passkey.errors.prfNotSupported");
1543
+ const isWindows = typeof navigator !== "undefined" && /Win/.test(navigator.platform || "");
1544
+ return t(
1545
+ isWindows ? "passkey.errors.prfNotSupportedWindows" : "passkey.errors.prfNotSupported"
1546
+ );
1567
1547
  }
1568
1548
  if (msg.includes("not supported")) {
1569
1549
  return t("passkey.errors.notSupported");