@clerk/elements 0.22.15-snapshot.v20250123153008 → 0.22.15
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/{chunk-S2WRYGWJ.mjs → chunk-E56JHIPR.mjs} +4 -48
- package/dist/chunk-E56JHIPR.mjs.map +1 -0
- package/dist/{chunk-QCMKJQL4.mjs → chunk-GI6BQJHO.mjs} +3 -5
- package/dist/chunk-GI6BQJHO.mjs.map +1 -0
- package/dist/react/common/index.js +2 -46
- package/dist/react/common/index.js.map +1 -1
- package/dist/react/common/index.mjs +1 -1
- package/dist/react/sign-in/index.js +2 -4
- package/dist/react/sign-in/index.js.map +1 -1
- package/dist/react/sign-in/index.mjs +2 -2
- package/dist/react/sign-up/index.js +2 -4
- package/dist/react/sign-up/index.js.map +1 -1
- package/dist/react/sign-up/index.mjs +2 -2
- package/dist/react/sign-up/index.mjs.map +1 -1
- package/package.json +5 -6
- package/dist/chunk-QCMKJQL4.mjs.map +0 -1
- package/dist/chunk-S2WRYGWJ.mjs.map +0 -1
|
@@ -286,7 +286,7 @@ var FormMachine = setup({
|
|
|
286
286
|
function safeAccess(fn, fallback) {
|
|
287
287
|
try {
|
|
288
288
|
return fn();
|
|
289
|
-
} catch
|
|
289
|
+
} catch {
|
|
290
290
|
return fallback;
|
|
291
291
|
}
|
|
292
292
|
}
|
|
@@ -507,12 +507,12 @@ var usePassword = (callbacks) => {
|
|
|
507
507
|
}
|
|
508
508
|
if (((_b = res == null ? void 0 : res.strength) == null ? void 0 : _b.state) === "fail") {
|
|
509
509
|
const keys = res.strength.keys;
|
|
510
|
-
const error =
|
|
510
|
+
const error = JSON.stringify(keys);
|
|
511
511
|
return onValidationError(error, keys);
|
|
512
512
|
}
|
|
513
513
|
if (((_c = res == null ? void 0 : res.strength) == null ? void 0 : _c.state) === "pass") {
|
|
514
514
|
const keys = res.strength.keys;
|
|
515
|
-
const error =
|
|
515
|
+
const error = JSON.stringify(keys);
|
|
516
516
|
return onValidationWarning(error, keys);
|
|
517
517
|
}
|
|
518
518
|
return onValidationSuccess();
|
|
@@ -531,50 +531,6 @@ var usePassword = (callbacks) => {
|
|
|
531
531
|
validatePassword
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
|
-
var get = (t, path) => path.split(".").reduce((r, k) => r == null ? void 0 : r[k], t);
|
|
535
|
-
var zxcvbnKeys = {
|
|
536
|
-
unstable__errors: {
|
|
537
|
-
zxcvbn: {
|
|
538
|
-
couldBeStronger: "Your password works, but could be stronger. Try adding more characters.",
|
|
539
|
-
goodPassword: "Your password meets all the necessary requirements.",
|
|
540
|
-
notEnough: "Your password is not strong enough.",
|
|
541
|
-
suggestions: {
|
|
542
|
-
allUppercase: "Capitalize some, but not all letters.",
|
|
543
|
-
anotherWord: "Add more words that are less common.",
|
|
544
|
-
associatedYears: "Avoid years that are associated with you.",
|
|
545
|
-
capitalization: "Capitalize more than the first letter.",
|
|
546
|
-
dates: "Avoid dates and years that are associated with you.",
|
|
547
|
-
l33t: "Avoid predictable letter substitutions like '@' for 'a'.",
|
|
548
|
-
longerKeyboardPattern: "Use longer keyboard patterns and change typing direction multiple times.",
|
|
549
|
-
noNeed: "You can create strong passwords without using symbols, numbers, or uppercase letters.",
|
|
550
|
-
pwned: "If you use this password elsewhere, you should change it.",
|
|
551
|
-
recentYears: "Avoid recent years.",
|
|
552
|
-
repeated: "Avoid repeated words and characters.",
|
|
553
|
-
reverseWords: "Avoid reversed spellings of common words.",
|
|
554
|
-
sequences: "Avoid common character sequences.",
|
|
555
|
-
useWords: "Use multiple words, but avoid common phrases."
|
|
556
|
-
},
|
|
557
|
-
warnings: {
|
|
558
|
-
common: "This is a commonly used password.",
|
|
559
|
-
commonNames: "Common names and surnames are easy to guess.",
|
|
560
|
-
dates: "Dates are easy to guess.",
|
|
561
|
-
extendedRepeat: 'Repeated character patterns like "abcabcabc" are easy to guess.',
|
|
562
|
-
keyPattern: "Short keyboard patterns are easy to guess.",
|
|
563
|
-
namesByThemselves: "Single names or surnames are easy to guess.",
|
|
564
|
-
pwned: "Your password was exposed by a data breach on the Internet.",
|
|
565
|
-
recentYears: "Recent years are easy to guess.",
|
|
566
|
-
sequences: 'Common character sequences like "abc" are easy to guess.',
|
|
567
|
-
similarToCommon: "This is similar to a commonly used password.",
|
|
568
|
-
simpleRepeat: 'Repeated characters like "aaa" are easy to guess.',
|
|
569
|
-
straightRow: "Straight rows of keys on your keyboard are easy to guess.",
|
|
570
|
-
topHundred: "This is a frequently used password.",
|
|
571
|
-
topTen: "This is a heavily used password.",
|
|
572
|
-
userInputs: "There should not be any personal or page related data.",
|
|
573
|
-
wordByItself: "Single words are easy to guess."
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
534
|
|
|
579
535
|
// src/react/common/form/otp.tsx
|
|
580
536
|
import { Control as RadixControl } from "@radix-ui/react-form";
|
|
@@ -4133,4 +4089,4 @@ export {
|
|
|
4133
4089
|
Loading,
|
|
4134
4090
|
Link
|
|
4135
4091
|
};
|
|
4136
|
-
//# sourceMappingURL=chunk-
|
|
4092
|
+
//# sourceMappingURL=chunk-E56JHIPR.mjs.map
|