@ai-matrx/vault 0.1.50 → 0.1.51

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 CHANGED
@@ -1,9 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.51
4
+
5
+ - Recorded two-factor methods now show Not recorded for unsupported or duplicate metadata, in both draft and saved-item views. Existing `sms` and `push_or_other` values keep their meaning. Consumer action: none; no new stored value or choice is introduced.
6
+
3
7
  ## 0.1.50
4
8
 
5
- UNVERIFIED: this release has no Unreleased entry and the package-input comparison could not be made (the caller supplied no source comparison). Whether package inputs changed is unknown; consumer action is unknown.
6
- Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/vault`.
9
+ - Confirmation dialogs now isolate dismissed/identity-disposed attempts from reopened prompts. `VaultIdentity.cancel()` optionally invalidates unfinished host work; it must preserve completed reusable grants. Consumer action: implement this synchronous, idempotent hook for hosts with isolated confirmation attempts. Existing hosts without it keep their existing methods.
7
10
 
8
11
  ## 0.1.49
9
12
 
package/dist/index.cjs CHANGED
@@ -2202,8 +2202,10 @@ var import_icons5 = require("@ai-matrx/design-system/icons");
2202
2202
  // src/authenticator/port.ts
2203
2203
  var OTP_SEED_KEY = "totp_seed";
2204
2204
  function mfaMethodOf(item) {
2205
- const v = item.custom.find((c) => c.key === MFA_METHOD_KEY)?.value;
2206
- return v === "sms" ? "sms" : v ? "push_or_other" : null;
2205
+ const declarations = item.custom.filter((c) => c.key === MFA_METHOD_KEY);
2206
+ if (declarations.length !== 1) return null;
2207
+ const value = declarations[0]?.value;
2208
+ return value === "sms" || value === "push_or_other" ? value : null;
2207
2209
  }
2208
2210
 
2209
2211
  // src/authenticator/TotpRows.tsx
@@ -5557,7 +5559,7 @@ function withMfaMethod(custom, v) {
5557
5559
  return v === "sms" || v === "push_or_other" ? [...rest, { key: MFA_METHOD_KEY, label: "Two-factor method", value: v }] : rest;
5558
5560
  }
5559
5561
  function DraftTwoFactorRow({ custom, onCustom }) {
5560
- const value = custom.find((c) => c.key === MFA_METHOD_KEY)?.value || "none";
5562
+ const value = mfaMethodOf({ custom }) ?? "none";
5561
5563
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(VaultRow, { label: "Two-factor", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5562
5564
  import_controls18.Select,
5563
5565
  {