shogun-button-react 6.7.1 → 6.7.2

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.
@@ -649,8 +649,6 @@ export const ShogunButton = (() => {
649
649
  const [showZkTrapdoorCopySuccess, setShowZkTrapdoorCopySuccess] = useState(false);
650
650
  const [webauthnSeedPhrase, setWebauthnSeedPhrase] = useState("");
651
651
  const [webauthnRecoverySeed, setWebauthnRecoverySeed] = useState("");
652
- const [formPin, setFormPin] = useState(""); // Optional PIN for gun-authd
653
- const [showAdvanced, setShowAdvanced] = useState(false); // Toggle for advanced options
654
652
  const dropdownRef = useRef(null);
655
653
  // Handle click outside to close dropdown
656
654
  useEffect(() => {
@@ -992,8 +990,6 @@ export const ShogunButton = (() => {
992
990
  setFormPasswordConfirm("");
993
991
  setFormHint("");
994
992
  setFormSecurityAnswer("");
995
- setFormPin(""); // Reset PIN
996
- setShowAdvanced(false); // Reset advanced options toggle
997
993
  setError("");
998
994
  setLoading(false);
999
995
  setAuthView("options");
@@ -1097,14 +1093,6 @@ export const ShogunButton = (() => {
1097
1093
  React.createElement(UserIcon, null),
1098
1094
  React.createElement("span", null, "Security Answer")),
1099
1095
  React.createElement("input", { type: "text", id: "securityAnswer", value: formSecurityAnswer, onChange: (e) => setFormSecurityAnswer(e.target.value), disabled: loading, required: true, placeholder: "Enter your security answer" })))),
1100
- React.createElement("div", { className: "shogun-advanced-toggle" },
1101
- React.createElement("button", { type: "button", className: "shogun-toggle-advanced", onClick: () => setShowAdvanced(!showAdvanced) }, showAdvanced ? "▼ Hide Advanced Options" : "▶ Advanced Options")),
1102
- showAdvanced && (React.createElement("div", { className: "shogun-form-group shogun-advanced-options" },
1103
- React.createElement("label", { htmlFor: "pin" },
1104
- React.createElement(KeyIcon, null),
1105
- React.createElement("span", null, "PIN (Optional)")),
1106
- React.createElement("input", { type: "password", id: "pin", value: formPin, onChange: (e) => setFormPin(e.target.value), disabled: loading, placeholder: "4-8 digit PIN for extra security", pattern: "[0-9]*", inputMode: "numeric", maxLength: 8, minLength: 4 }),
1107
- React.createElement("small", { className: "shogun-field-hint" }, "Optional: Add a PIN for three-factor authentication (gun-authd)"))),
1108
1096
  React.createElement("button", { type: "submit", className: "shogun-submit-button", disabled: loading }, loading
1109
1097
  ? "Processing..."
1110
1098
  : formMode === "login"