@ai-matrx/vault 0.1.16 → 0.1.18
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/CHANGELOG.md +8 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1705,7 +1705,7 @@ function CodeButton({ live, digits, size = "md", label }) {
|
|
|
1705
1705
|
onClick: () => live.code && void copy(live.code),
|
|
1706
1706
|
"aria-label": live.code ? `Copy ${label} code` : `Getting ${label} code`,
|
|
1707
1707
|
title: live.code ? "Copy" : void 0,
|
|
1708
|
-
className: cn6("group -mx-1.5 inline-flex max-w-full items-center gap-
|
|
1708
|
+
className: cn6("group -mx-1.5 inline-flex max-w-full shrink-0 items-center gap-3 rounded-md px-1.5 py-1 text-left transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none", size === "lg" && "gap-4"),
|
|
1709
1709
|
children: [
|
|
1710
1710
|
/* @__PURE__ */ jsx9("span", { className: cn6("whitespace-nowrap font-mono font-medium tabular-nums tracking-[0.08em]", size === "lg" ? "text-2xl" : "text-[1.0625rem]", live.code ? "text-foreground" : "text-disabled-foreground"), children: shown }),
|
|
1711
1711
|
copied ? /* @__PURE__ */ jsx9("span", { className: "inline-flex size-6 items-center justify-center text-success", role: "status", "aria-label": "Copied", children: /* @__PURE__ */ jsx9(CheckGlyph, { className: "size-4" }) }) : /* @__PURE__ */ jsx9(CountdownRing, { remaining: live.remaining, period: live.period, loading: !live.code })
|
|
@@ -1973,7 +1973,7 @@ function OtpSetupRow({ value, onChange, label = "Authenticator", placeholder = "
|
|
|
1973
1973
|
label,
|
|
1974
1974
|
actions: /* @__PURE__ */ jsxs9(Fragment5, { children: [
|
|
1975
1975
|
/* @__PURE__ */ jsx10(Button6, { variant: "quiet", icon: /* @__PURE__ */ jsx10(QrGlyph, {}), "aria-label": "Choose QR image", title: "Choose or drop a QR image", disabled: disabled || reading, onClick: () => file.current?.click() }),
|
|
1976
|
-
canScan ? /* @__PURE__ */ jsx10(Button6, { variant: "quiet", icon: /* @__PURE__ */ jsx10(CameraGlyph, {}), "aria-label": "Scan QR code with camera", title: "Scan the site's QR code with the camera", disabled, onClick: () => setScanning(true)
|
|
1976
|
+
canScan ? /* @__PURE__ */ jsx10(Button6, { variant: "quiet", icon: /* @__PURE__ */ jsx10(CameraGlyph, {}), "aria-label": "Scan QR code with camera", title: "Scan the site's QR code with the camera", disabled, onClick: () => setScanning(true) }) : null
|
|
1977
1977
|
] }),
|
|
1978
1978
|
children: [
|
|
1979
1979
|
/* @__PURE__ */ jsx10(
|
|
@@ -2161,7 +2161,7 @@ function TotpEditRow({ value, onChange, hasExisting, item, port, onEnrolled, onR
|
|
|
2161
2161
|
setStatus(null);
|
|
2162
2162
|
onChange(v);
|
|
2163
2163
|
},
|
|
2164
|
-
placeholder: hasExisting ? "Paste a new key to replace" : "
|
|
2164
|
+
placeholder: hasExisting ? "Paste a new key to replace" : "Paste setup key or otpauth link",
|
|
2165
2165
|
status,
|
|
2166
2166
|
...uploadImage ? { onImage: (f) => void uploadImage(f) } : {},
|
|
2167
2167
|
...onRecognized ? { onRecognized } : {}
|
|
@@ -2403,7 +2403,7 @@ function AuthenticatorView({ port, host, items, definitions, query, onOpen, onCh
|
|
|
2403
2403
|
const familyOf2 = (key) => definitions.find((d) => d.key === key)?.family ?? "generic";
|
|
2404
2404
|
return /* @__PURE__ */ jsxs12("section", { "aria-label": "Authenticator", className: "flex h-full min-h-0 flex-col bg-background", children: [
|
|
2405
2405
|
header ? /* @__PURE__ */ jsx13("div", { className: "mx-auto w-full max-w-3xl px-3 pt-3 sm:px-4", children: header }) : null,
|
|
2406
|
-
/* @__PURE__ */ jsxs12("div", { className: "flex min-h-12 items-center justify-between gap-2 px-4 pb-1 pt-3", children: [
|
|
2406
|
+
/* @__PURE__ */ jsxs12("div", { className: "mx-auto flex min-h-12 w-full max-w-3xl items-center justify-between gap-2 px-4 pb-1 pt-3 sm:px-5", children: [
|
|
2407
2407
|
/* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
2408
2408
|
/* @__PURE__ */ jsx13("h2", { className: "truncate text-sm font-semibold text-foreground", children: "Authenticator" }),
|
|
2409
2409
|
total > 0 ? /* @__PURE__ */ jsx13("span", { className: "text-xs tabular-nums text-muted-foreground", children: total }) : null
|
|
@@ -2493,7 +2493,7 @@ function OtpListRow({ port, item, family, entry, onOpen, onOpenInNewTab, onRenam
|
|
|
2493
2493
|
/* @__PURE__ */ jsx13("span", { className: cn7("max-w-full truncate text-sm font-medium", a.enabled ? "text-foreground" : "text-muted-foreground"), children: item.name }),
|
|
2494
2494
|
sub ? /* @__PURE__ */ jsx13("span", { className: cn7("max-w-full truncate text-xs", a.error ? "text-destructive" : "text-muted-foreground"), title: sub, children: sub }) : null
|
|
2495
2495
|
] }),
|
|
2496
|
-
/* @__PURE__ */ jsx13("div", { className: "flex
|
|
2496
|
+
/* @__PURE__ */ jsx13("div", { className: "flex shrink-0 justify-end", children: !a.enabled ? /* @__PURE__ */ jsxs12("span", { className: "flex items-center gap-1.5", children: [
|
|
2497
2497
|
/* @__PURE__ */ jsx13("span", { className: "text-sm text-disabled-foreground", children: "Off" }),
|
|
2498
2498
|
canManage ? /* @__PURE__ */ jsx13(Button9, { variant: "quiet", disabled: a.busy, onClick: () => void a.setEnabled(true), children: "Turn on" }) : null
|
|
2499
2499
|
] }) : live.error ? /* @__PURE__ */ jsxs12("span", { className: "flex items-center gap-1.5", children: [
|
|
@@ -6167,7 +6167,7 @@ function ItemPane(props) {
|
|
|
6167
6167
|
{
|
|
6168
6168
|
label: f.label,
|
|
6169
6169
|
value,
|
|
6170
|
-
placeholder: hidden ? "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" : f.required ? "Required" : "",
|
|
6170
|
+
placeholder: hidden ? "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" : f.required ? "Required" : isRecoveryCodesField(f) ? "Backup codes, one per line" : "",
|
|
6171
6171
|
secret: secretKind,
|
|
6172
6172
|
multiline: f.kind === "multiline",
|
|
6173
6173
|
inputMode: f.kind === "url" ? "url" : USERNAME_KEYS.test(f.key) ? "email" : "text",
|