@ai-matrx/vault 0.1.10 → 0.1.11
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 +24 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,14 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
+
- Hidden items: an item tagged `HIDDEN_ITEM_TAG` (`"matrx:hidden"`, `isHiddenItem`) is a host's own and is never listed, not even in Trash (the desktop app keeps its Touch ID key there). Consumer action: none.
|
|
6
|
+
|
|
5
7
|
- **Confirm in place.** `VaultIdentity.withProvider` may resolve `"confirmed"` when the host confirms without leaving the page (the desktop's Touch ID); "Confirm it's you" then closes and runs the refused call again — one confirmation, the value appears. Before, the dialog stayed open and the person had to cancel and press reveal again. Labels for `touch_id` ("Touch ID") and `browser`. Guard: `src/auth/identity-gate.test.tsx` (fails on the old gate). **Consumer action:** Matrx Desktop: return `"confirmed"` from `withProvider` once the confirmation succeeded in place. Web app and extension: none.
|
|
6
8
|
- **`VaultApp look="web"|"desktop"`.** The same screens and features, two skins: `"web"` (default) is the website's and the extension's look, unchanged; `"desktop"` draws the workspace in the desktop standard through `@ai-matrx/design-system`'s `LookScope` — the system font and Apple text styles, AppKit-size controls, System Settings/Passwords grouped boxes (no border, hairlines between rows, bold section titles), the source list's open row in the accent, and every panel as a modal macOS sheet, light and dark. The playground's Desktop host uses it. Guard: `src/look.test.tsx`. **Consumer action:** Matrx Desktop: pass `look="desktop"` to `<VaultApp>` (Account › Vault). Web app and extension: none.
|
|
7
9
|
|
|
8
|
-
## 0.1.
|
|
10
|
+
## 0.1.11
|
|
9
11
|
|
|
10
12
|
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.
|
|
11
13
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/vault/src`.
|
|
12
14
|
|
|
15
|
+
## 0.1.10
|
|
16
|
+
|
|
17
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
18
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
19
|
+
Diff: `git diff 95a286343b 92167249a3 -- apps/shared/vault/src`
|
|
20
|
+
|
|
21
|
+
Changed shipped source files (35):
|
|
22
|
+
- `apps/shared/vault/src/FieldRows.tsx`
|
|
23
|
+
- `apps/shared/vault/src/ItemPane.tsx`
|
|
24
|
+
- `apps/shared/vault/src/NewItemFlow.tsx`
|
|
25
|
+
- `apps/shared/vault/src/Sidebar.tsx`
|
|
26
|
+
- `apps/shared/vault/src/VaultApp.tsx`
|
|
27
|
+
- `apps/shared/vault/src/activity/ActivityPanel.tsx`
|
|
28
|
+
- `apps/shared/vault/src/activity/FilesSection.tsx`
|
|
29
|
+
- `apps/shared/vault/src/activity/HistoryPanel.tsx`
|
|
30
|
+
- `apps/shared/vault/src/auth/IdentityGate.tsx`
|
|
31
|
+
- `apps/shared/vault/src/auth/identity.ts`
|
|
32
|
+
- `apps/shared/vault/src/authenticator/AddOtpPanel.tsx`
|
|
33
|
+
- `apps/shared/vault/src/authenticator/AuthenticatorView.tsx`
|
|
34
|
+
- ...and 23 more
|
|
35
|
+
|
|
13
36
|
## 0.1.9
|
|
14
37
|
|
|
15
38
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
package/dist/index.cjs
CHANGED
|
@@ -138,6 +138,7 @@ __export(src_exports, {
|
|
|
138
138
|
CATEGORIES: () => CATEGORIES,
|
|
139
139
|
DEFAULT_LOCATION: () => DEFAULT_LOCATION,
|
|
140
140
|
GenerateButton: () => GenerateButton,
|
|
141
|
+
HIDDEN_ITEM_TAG: () => HIDDEN_ITEM_TAG,
|
|
141
142
|
LOCKED_MESSAGE: () => LOCKED_MESSAGE,
|
|
142
143
|
VaultApp: () => VaultApp,
|
|
143
144
|
VaultLockedError: () => VaultLockedError,
|
|
@@ -148,6 +149,7 @@ __export(src_exports, {
|
|
|
148
149
|
createVaultKnobs: () => createVaultKnobs,
|
|
149
150
|
guardPort: () => guardPort,
|
|
150
151
|
inferFromUrl: () => inferFromUrl,
|
|
152
|
+
isHiddenItem: () => isHiddenItem,
|
|
151
153
|
locationFromParams: () => locationFromParams,
|
|
152
154
|
locationToParams: () => locationToParams,
|
|
153
155
|
loginSiteOf: () => loginSiteOf,
|
|
@@ -856,6 +858,8 @@ function matchesQuery(item, query) {
|
|
|
856
858
|
if (!q) return true;
|
|
857
859
|
return [item.name, item.definitionLabel, ...item.tags, ...item.loginUrls, ...item.custom.map((c) => `${c.label} ${c.value}`)].some((h) => h.toLowerCase().includes(q));
|
|
858
860
|
}
|
|
861
|
+
var HIDDEN_ITEM_TAG = "matrx:hidden";
|
|
862
|
+
var isHiddenItem = (item) => (item.tags ?? []).includes(HIDDEN_ITEM_TAG);
|
|
859
863
|
var isAuthenticatorStorage = (key) => key === "totp_seed" || key.startsWith("totp_") || key === "authenticator_last_time_step";
|
|
860
864
|
function loginSiteOf(item) {
|
|
861
865
|
const raw = item.loginUrls[0];
|
|
@@ -8846,7 +8850,7 @@ function createApiVaultPort(api, options = {}) {
|
|
|
8846
8850
|
lists.forEach((l, i) => {
|
|
8847
8851
|
const sharedList = i === lists.length - 1;
|
|
8848
8852
|
for (const w of l.items) {
|
|
8849
|
-
if (seen.has(w.id) || deleted.has(w.id)) continue;
|
|
8853
|
+
if (seen.has(w.id) || deleted.has(w.id) || isHiddenItem(w)) continue;
|
|
8850
8854
|
const owner = sharedList ? orgOf(w.organization_id, null, false) : orgOf(w.organization_id, w.user_id, i === 0);
|
|
8851
8855
|
const item = itemOf(w, sharedList && !w.organization_id ? { kind: "shared", label: "Shared with me", organizationId: null } : owner, defs, auth);
|
|
8852
8856
|
(isDeleted(w) ? deleted : seen).set(w.id, item);
|