@ai-matrx/vault 0.1.42 → 0.1.43
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 +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.43
|
|
4
4
|
|
|
5
5
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
6
6
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/vault/src`.
|
package/dist/index.cjs
CHANGED
|
@@ -1928,6 +1928,7 @@ function useCanScan() {
|
|
|
1928
1928
|
}, []);
|
|
1929
1929
|
return ok;
|
|
1930
1930
|
}
|
|
1931
|
+
var SETUP_KEY_PLACEHOLDER = "Setup key or otpauth link";
|
|
1931
1932
|
var CAMERA_NOTES = {
|
|
1932
1933
|
blocked: "Camera blocked. Paste the key or choose a QR image.",
|
|
1933
1934
|
missing: "No camera. Paste the key or choose a QR image.",
|
|
@@ -1988,7 +1989,7 @@ function QrScanInline({ onResult, onClose }) {
|
|
|
1988
1989
|
if (error) {
|
|
1989
1990
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { className: "flex items-center gap-2 px-1 pt-1 text-xs text-muted-foreground", role: "status", "data-camera-note": "", children: [
|
|
1990
1991
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CameraGlyph, { className: "size-3.5 shrink-0", "aria-hidden": true }),
|
|
1991
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "min-w-0 flex-1
|
|
1992
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "min-w-0 flex-1 break-words", children: error }),
|
|
1992
1993
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_controls6.Button, { variant: "quiet", onClick: onClose, children: "Dismiss" })
|
|
1993
1994
|
] });
|
|
1994
1995
|
}
|
|
@@ -2003,7 +2004,7 @@ function QrScanInline({ onResult, onClose }) {
|
|
|
2003
2004
|
] })
|
|
2004
2005
|
] });
|
|
2005
2006
|
}
|
|
2006
|
-
function OtpSetupRow({ value, onChange, label = "Authenticator", placeholder =
|
|
2007
|
+
function OtpSetupRow({ value, onChange, label = "Authenticator", placeholder = SETUP_KEY_PLACEHOLDER, disabled = false, autoFocus = false, onImage, onRecognized, status, autoStartCamera = false }) {
|
|
2007
2008
|
const file = (0, import_react10.useRef)(null);
|
|
2008
2009
|
const canScan = useCanScan();
|
|
2009
2010
|
const [scanning, setScanning] = (0, import_react10.useState)(false);
|
|
@@ -2263,7 +2264,7 @@ function TotpEditRow({ value, onChange, hasExisting, item, port, onEnrolled, onR
|
|
|
2263
2264
|
setStatus(null);
|
|
2264
2265
|
onChange(v);
|
|
2265
2266
|
},
|
|
2266
|
-
placeholder: hasExisting ? "Paste a new key to replace" :
|
|
2267
|
+
placeholder: hasExisting ? "Paste a new key to replace" : SETUP_KEY_PLACEHOLDER,
|
|
2267
2268
|
status,
|
|
2268
2269
|
...uploadImage ? { onImage: (f) => void uploadImage(f) } : {},
|
|
2269
2270
|
...onRecognized ? { onRecognized } : {}
|