@ai-matrx/vault 0.1.47 → 0.1.48
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 +4 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.48
|
|
4
|
+
|
|
5
|
+
- Authenticator camera availability now reads the canonical browser-audio device list. The existing camera-capability gate and false-on-unavailable behavior are preserved; the dependency is declared explicitly. Consumer action: none.
|
|
6
|
+
|
|
3
7
|
## 0.1.47
|
|
4
8
|
|
|
5
9
|
- **A same-name organization hint is at most 8 id characters.** It is the id's start when that tells the group apart, else its end ("…" first), so five orgs whose ids share 32 characters no longer push the name out of the switcher and pickers. The authenticator code row's label column is 5.25rem, so "Authenticator" no longer wraps in a narrow pane. Guard: `src/organization-hints-distinct.test.ts`. Consumer action: none.
|
package/dist/index.cjs
CHANGED
|
@@ -1877,6 +1877,7 @@ var import_react10 = require("react");
|
|
|
1877
1877
|
var import_controls6 = require("@ai-matrx/design-system/controls");
|
|
1878
1878
|
|
|
1879
1879
|
// src/authenticator/qr.ts
|
|
1880
|
+
var import_core = require("@ai-matrx/browser-audio/core");
|
|
1880
1881
|
var import_qr = require("@ai-matrx/capture/qr");
|
|
1881
1882
|
function canDecodeQrLocally() {
|
|
1882
1883
|
if (typeof document === "undefined") return Promise.resolve(false);
|
|
@@ -1890,9 +1891,9 @@ function hasCamera() {
|
|
|
1890
1891
|
return typeof navigator !== "undefined" && typeof navigator.mediaDevices?.getUserMedia === "function";
|
|
1891
1892
|
}
|
|
1892
1893
|
async function hasCameraDevice() {
|
|
1893
|
-
if (!hasCamera()
|
|
1894
|
+
if (!hasCamera()) return false;
|
|
1894
1895
|
try {
|
|
1895
|
-
return (await
|
|
1896
|
+
return (await (0, import_core.listMediaDevices)()).videoInputs.length > 0;
|
|
1896
1897
|
} catch {
|
|
1897
1898
|
return false;
|
|
1898
1899
|
}
|