@burdenoff/microfe-security 2026.625.1 → 2026.626.1

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.
Files changed (35) hide show
  1. package/dist/security/components/PageLayout.js +35 -18
  2. package/dist/security/components/PageLayout.js.map +1 -1
  3. package/dist/security/components/SecurityScoreCard.js +11 -10
  4. package/dist/security/components/SecurityScoreCard.js.map +1 -1
  5. package/dist/security/components/VaultCard.js +8 -1
  6. package/dist/security/components/VaultCard.js.map +1 -1
  7. package/dist/security/components/ui.js +7 -15
  8. package/dist/security/components/ui.js.map +1 -1
  9. package/dist/security/pages/AccessReviewPage.js +129 -98
  10. package/dist/security/pages/AccessReviewPage.js.map +1 -1
  11. package/dist/security/pages/AuditLogPage.js +69 -62
  12. package/dist/security/pages/AuditLogPage.js.map +1 -1
  13. package/dist/security/pages/ImportExportPage.js +23 -17
  14. package/dist/security/pages/ImportExportPage.js.map +1 -1
  15. package/dist/security/pages/ProviderDetailPage.js +193 -173
  16. package/dist/security/pages/ProviderDetailPage.js.map +1 -1
  17. package/dist/security/pages/ProvidersPage.js +59 -56
  18. package/dist/security/pages/ProvidersPage.js.map +1 -1
  19. package/dist/security/pages/SecretCreatePage.js +76 -70
  20. package/dist/security/pages/SecretCreatePage.js.map +1 -1
  21. package/dist/security/pages/SecretDetailPage.js +325 -290
  22. package/dist/security/pages/SecretDetailPage.js.map +1 -1
  23. package/dist/security/pages/SecurityDashboardPage.js +107 -68
  24. package/dist/security/pages/SecurityDashboardPage.js.map +1 -1
  25. package/dist/security/pages/SharedWithMePage.js +48 -44
  26. package/dist/security/pages/SharedWithMePage.js.map +1 -1
  27. package/dist/security/pages/VaultCreatePage.js +65 -58
  28. package/dist/security/pages/VaultCreatePage.js.map +1 -1
  29. package/dist/security/pages/VaultDetailPage.js +225 -196
  30. package/dist/security/pages/VaultDetailPage.js.map +1 -1
  31. package/dist/security/pages/VaultSettingsPage.js +224 -205
  32. package/dist/security/pages/VaultSettingsPage.js.map +1 -1
  33. package/dist/security/pages/VaultsDashboardPage.js +100 -93
  34. package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
  35. package/package.json +2 -2
@@ -1,265 +1,294 @@
1
1
  import { useSecurity as e } from "../providers/SecurityProvider.js";
2
2
  import { SECURITY_FEATURE_FLAGS as t } from "../constants/featureFlags.js";
3
3
  import { PageLayout as n } from "../components/PageLayout.js";
4
- import { Badge as r, Button as i, Card as a, EmptyState as o } from "../components/ui.js";
5
- import { translateWithFallback as s } from "../utils/i18n.js";
6
- import { ConfirmDialog as c } from "../components/ConfirmDialog.js";
7
- import { useDeleteVault as l, useGetVaultWithSecrets as u, useLockVault as ee, useUnlockVault as te } from "../hooks/useVaultQueries.js";
8
- import { useSecurityEventEmitter as ne } from "../hooks/useSecurityEventEmitter.js";
9
- import { useSecurityStore as d } from "../store/securityStore.js";
10
- import { nativeConfirm as re, nativeImpact as ie, nativeNotify as f } from "../../utils/nativeBridge.js";
11
- import { SecretShareDialog as ae } from "../components/SecretShareDialog.js";
12
- import { SecretRow as oe } from "../components/SecretRow.js";
13
- import { BulkActionBar as se } from "../components/BulkActionBar.js";
14
- import { useEffect as p, useMemo as ce, useState as m } from "react";
15
- import { useFeatureFlag as h, usePermission as g } from "@burdenoff/fe-libs/shared/providers/shell";
16
- import { useNavigate as _, useParams as v } from "react-router-dom";
17
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
18
- import { AlertTriangle as le, ChevronLeft as ue, Loader2 as S, Lock as C, Plus as w, RefreshCw as de, Search as fe, Settings as pe, Share2 as me, Trash2 as he, Unlock as T } from "lucide-react";
19
- import { CTAOverflowMenu as E } from "@burdenoff/fe-libs/ui";
20
- import { useI18n as D } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
+ import { Badge as r, Button as i, Card as a } from "../components/ui.js";
5
+ import { translateWithFallback as ee } from "../utils/i18n.js";
6
+ import { ConfirmDialog as te } from "../components/ConfirmDialog.js";
7
+ import { useDeleteVault as o, useGetVaultWithSecrets as s, useLockVault as c, useUnlockVault as ne } from "../hooks/useVaultQueries.js";
8
+ import { useSecurityEventEmitter as re } from "../hooks/useSecurityEventEmitter.js";
9
+ import { useSecurityStore as l } from "../store/securityStore.js";
10
+ import { nativeConfirm as ie, nativeImpact as ae, nativeNotify as u } from "../../utils/nativeBridge.js";
11
+ import { SecretShareDialog as oe } from "../components/SecretShareDialog.js";
12
+ import { SecretRow as se } from "../components/SecretRow.js";
13
+ import { BulkActionBar as ce } from "../components/BulkActionBar.js";
14
+ import { useEffect as le, useMemo as d, useState as f } from "react";
15
+ import { useFeatureFlag as p, usePermission as m } from "@burdenoff/fe-libs/shared/providers/shell";
16
+ import { useNavigate as ue, useParams as de } from "react-router-dom";
17
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
18
+ import { AlertTriangle as fe, ChevronLeft as pe, Loader2 as v, Lock as y, Plus as b, RefreshCw as me, Settings as x, Share2 as S, Trash2 as he, Unlock as C } from "lucide-react";
19
+ import { CTAOverflowMenu as ge, EmphasisPanel as _e, IllustratedEmptyState as ve, NextSteps as ye, PagePurpose as be } from "@burdenoff/fe-libs/ui";
20
+ import { useI18n as xe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
21
21
  //#region src/security/pages/VaultDetailPage.tsx
22
- var O = 100;
23
- function k() {
24
- let { vaultId: k } = v(), { basePath: A = "/", navigate: j } = e(), { t: M } = D(), N = _(), P = d((e) => e.selectedSecretIds), F = d((e) => e.toggleSecretSelection);
25
- d((e) => e.secretFilter), d((e) => e.updateSecretFilter);
26
- let [I, L] = m(O), R = ce(() => ({}), []);
27
- p(() => {
28
- L(O);
29
- }, [k, R]);
30
- let { data: z, loading: B, error: V, refetch: H } = u(k ?? null, R, { limit: I }), U = z?.getVault, W = z?.getSecrets?.items ?? [], G = z?.getSecrets?.total ?? 0, ge = z?.getSecrets?.hasMore ?? !1, [_e, { loading: ve }] = ee(), [ye, { loading: be }] = te(), [xe, { loading: Se }] = l(), { emit: K } = ne(), Ce = g("vault:lock"), we = g("vault:delete"), Te = g("secret:create"), Ee = g("vault:update"), De = h(t.VAULT_DELETE, !1), Oe = h(t.VAULT_LOCK, !0), [ke, q] = m(!1), [Ae, J] = m(!1), Y = (e, t, n) => s(M, e, t, n), X = (e) => {
31
- j ? j(e) : N(e);
32
- }, je = () => {
33
- X(A);
34
- }, Me = async () => {
35
- if (k) try {
36
- U?.status === "LOCKED" ? (await ye({ variables: { id: k } }), K("vault.unlocked", { vaultId: k })) : (await _e({ variables: { id: k } }), K("vault.locked", { vaultId: k })), H();
22
+ var w = 100;
23
+ function T() {
24
+ let { vaultId: T } = de(), { basePath: E = "/", navigate: D } = e(), { t: O } = xe(), k = ue(), A = l((e) => e.selectedSecretIds), j = l((e) => e.toggleSecretSelection);
25
+ l((e) => e.secretFilter), l((e) => e.updateSecretFilter);
26
+ let [M, N] = f(w), P = d(() => ({}), []);
27
+ le(() => {
28
+ N(w);
29
+ }, [T, P]);
30
+ let { data: F, loading: I, error: L, refetch: R } = s(T ?? null, P, { limit: M }), z = F?.getVault, B = F?.getSecrets?.items ?? [], V = F?.getSecrets?.total ?? 0, Se = F?.getSecrets?.hasMore ?? !1, [Ce, { loading: we }] = c(), [Te, { loading: Ee }] = ne(), [De, { loading: Oe }] = o(), { emit: H } = re(), ke = m("vault:lock"), Ae = m("vault:delete"), U = m("secret:create"), W = m("vault:update"), je = p(t.VAULT_DELETE, !1), Me = p(t.VAULT_LOCK, !0), [Ne, G] = f(!1), [Pe, K] = f(!1), q = (e, t, n) => ee(O, e, t, n), J = (e) => {
31
+ D ? D(e) : k(e);
32
+ }, Y = () => {
33
+ J(E);
34
+ }, Fe = async () => {
35
+ if (T) try {
36
+ z?.status === "LOCKED" ? (await Te({ variables: { id: T } }), H("vault.unlocked", { vaultId: T })) : (await Ce({ variables: { id: T } }), H("vault.locked", { vaultId: T })), R();
37
37
  } catch (e) {
38
38
  console.error("Failed to toggle lock:", e);
39
39
  }
40
+ }, X = () => {
41
+ J(`${E}/vaults/${T}/secrets/new`);
42
+ }, Ie = (e) => {
43
+ J(`${E}/vaults/${T}/secrets/${e}`);
40
44
  }, Z = () => {
41
- X(`${A}/vaults/${k}/secrets/new`);
42
- }, Ne = (e) => {
43
- X(`${A}/vaults/${k}/secrets/${e}`);
44
- }, Pe = () => {
45
- X(`${A}/vaults/${k}/settings`);
45
+ J(`${E}/vaults/${T}/settings`);
46
46
  }, Q = async () => {
47
- if (k) try {
48
- await xe({ variables: { id: k } }), K("vault.deleted", { vaultId: k }), q(!1), f("success"), X(A);
47
+ if (T) try {
48
+ await De({ variables: { id: T } }), H("vault.deleted", { vaultId: T }), G(!1), u("success"), J(E);
49
49
  } catch (e) {
50
- console.error("Failed to delete vault:", e), f("error");
50
+ console.error("Failed to delete vault:", e), u("error");
51
51
  }
52
- }, Fe = async () => {
53
- ie("medium");
54
- let e = await re({
52
+ }, Le = async () => {
53
+ ae("medium");
54
+ let e = await ie({
55
55
  title: "Delete Vault",
56
56
  message: "Delete this vault? This cannot be undone.",
57
57
  okButtonTitle: "Delete",
58
58
  cancelButtonTitle: "Cancel"
59
59
  });
60
60
  if (e === null) {
61
- q(!0);
61
+ G(!0);
62
62
  return;
63
63
  }
64
64
  e && await Q();
65
65
  };
66
- if (B && !z) return /* @__PURE__ */ b(n, {
67
- title: Y("security.vaultDetail.loading.title", "Loading Vault..."),
66
+ if (I && !F) return /* @__PURE__ */ g(n, {
67
+ title: q("security.vaultDetail.loading.title", "Loading Vault..."),
68
68
  breadcrumbs: [{
69
- label: Y("security.common.breadcrumbs.security", "Security"),
70
- path: A
71
- }, { label: Y("security.common.breadcrumbs.vault", "Vault") }],
72
- children: /* @__PURE__ */ b("div", {
69
+ label: q("security.common.breadcrumbs.security", "Security"),
70
+ path: E
71
+ }, { label: q("security.common.breadcrumbs.vault", "Vault") }],
72
+ children: /* @__PURE__ */ g("div", {
73
73
  className: "flex items-center justify-center py-20",
74
- children: /* @__PURE__ */ b(S, { className: "size-10 animate-spin text-primary/60" })
74
+ children: /* @__PURE__ */ g(v, { className: "size-10 animate-spin text-primary/60" })
75
75
  })
76
76
  });
77
- if (V && !z) return /* @__PURE__ */ b(n, {
78
- title: Y("security.common.errorPage.title", "Error"),
77
+ if (L && !F) return /* @__PURE__ */ g(n, {
78
+ title: q("security.common.errorPage.title", "Error"),
79
79
  breadcrumbs: [{
80
- label: Y("security.common.breadcrumbs.security", "Security"),
81
- path: A
82
- }, { label: Y("security.common.breadcrumbs.vault", "Vault") }],
83
- children: /* @__PURE__ */ b(a, {
80
+ label: q("security.common.breadcrumbs.security", "Security"),
81
+ path: E
82
+ }, { label: q("security.common.breadcrumbs.vault", "Vault") }],
83
+ children: /* @__PURE__ */ g(a, {
84
84
  className: "p-8 text-center max-w-lg mx-auto mt-10",
85
- children: /* @__PURE__ */ x("div", {
85
+ children: /* @__PURE__ */ _("div", {
86
86
  className: "flex flex-col items-center gap-4",
87
87
  children: [
88
- /* @__PURE__ */ b("div", {
88
+ /* @__PURE__ */ g("div", {
89
89
  className: "p-3 rounded-full bg-status-error-bg/10",
90
- children: /* @__PURE__ */ b(le, { className: "size-8 text-status-error-text" })
90
+ children: /* @__PURE__ */ g(fe, { className: "size-8 text-status-error-text" })
91
91
  }),
92
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h3", {
92
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h3", {
93
93
  className: "text-lg font-bold text-text-primary",
94
- children: Y("security.vaultDetail.error.title", "Failed to load vault")
95
- }), /* @__PURE__ */ b("p", {
94
+ children: q("security.vaultDetail.error.title", "Failed to load vault")
95
+ }), /* @__PURE__ */ g("p", {
96
96
  className: "text-sm text-text-secondary mt-2",
97
- children: V.message
97
+ children: L.message
98
98
  })] }),
99
- /* @__PURE__ */ x("div", {
99
+ /* @__PURE__ */ _("div", {
100
100
  className: "flex gap-3 mt-4",
101
- children: [/* @__PURE__ */ x(i, {
101
+ children: [/* @__PURE__ */ _(i, {
102
102
  variant: "outline",
103
- onClick: je,
104
- children: [/* @__PURE__ */ b(ue, { className: "size-4" }), Y("security.common.actions.goBack", "Go Back")]
105
- }), /* @__PURE__ */ x(i, {
106
- onClick: () => H(),
107
- children: [/* @__PURE__ */ b(de, { className: "size-4" }), Y("security.common.actions.tryAgain", "Try Again")]
103
+ onClick: Y,
104
+ children: [/* @__PURE__ */ g(pe, { className: "size-4" }), q("security.common.actions.goBack", "Go Back")]
105
+ }), /* @__PURE__ */ _(i, {
106
+ onClick: () => R(),
107
+ children: [/* @__PURE__ */ g(me, { className: "size-4" }), q("security.common.actions.tryAgain", "Try Again")]
108
108
  })]
109
109
  })
110
110
  ]
111
111
  })
112
112
  })
113
113
  });
114
- let $ = U?.status === "LOCKED";
115
- return /* @__PURE__ */ x(n, {
116
- title: U?.name ?? Y("security.common.breadcrumbs.vault", "Vault"),
117
- description: U?.description ?? Y("security.vaultDetail.description", "Manage credentials in this vault."),
114
+ let $ = z?.status === "LOCKED";
115
+ return /* @__PURE__ */ _(n, {
116
+ title: z?.name ?? q("security.common.breadcrumbs.vault", "Vault"),
117
+ description: z?.description ?? q("security.vaultDetail.description", "Manage credentials in this vault."),
118
118
  breadcrumbs: [{
119
- label: Y("security.common.breadcrumbs.security", "Security"),
120
- path: A
121
- }, { label: U?.name ?? Y("security.common.breadcrumbs.vault", "Vault") }],
119
+ label: q("security.common.breadcrumbs.security", "Security"),
120
+ path: E
121
+ }, { label: z?.name ?? q("security.common.breadcrumbs.vault", "Vault") }],
122
122
  actions: (() => {
123
123
  let e = [];
124
- return Ce && Oe && e.push({
125
- label: $ ? Y("security.vaultDetail.actions.unlockVault", "Unlock Vault") : Y("security.vaultDetail.actions.lockVault", "Lock Vault"),
126
- icon: b($ ? T : C, { className: "size-4" }),
127
- disabled: ve || be,
128
- onSelect: () => void Me()
129
- }), Ee && (e.push({
130
- label: Y("security.common.actions.share", "Share"),
131
- icon: /* @__PURE__ */ b(me, { className: "size-4" }),
132
- onSelect: () => J(!0)
124
+ return ke && Me && e.push({
125
+ label: $ ? q("security.vaultDetail.actions.unlockVault", "Unlock Vault") : q("security.vaultDetail.actions.lockVault", "Lock Vault"),
126
+ icon: g($ ? C : y, { className: "size-4" }),
127
+ disabled: we || Ee,
128
+ onSelect: () => void Fe()
129
+ }), W && (e.push({
130
+ label: q("security.common.actions.share", "Share"),
131
+ icon: /* @__PURE__ */ g(S, { className: "size-4" }),
132
+ onSelect: () => K(!0)
133
133
  }), e.push({
134
- label: Y("security.common.actions.settings", "Settings"),
135
- icon: /* @__PURE__ */ b(pe, { className: "size-4" }),
136
- onSelect: Pe
137
- })), we && De && e.push({
138
- label: Y("security.common.actions.delete", "Delete"),
139
- icon: /* @__PURE__ */ b(he, { className: "size-4" }),
134
+ label: q("security.common.actions.settings", "Settings"),
135
+ icon: /* @__PURE__ */ g(x, { className: "size-4" }),
136
+ onSelect: Z
137
+ })), Ae && je && e.push({
138
+ label: q("security.common.actions.delete", "Delete"),
139
+ icon: /* @__PURE__ */ g(he, { className: "size-4" }),
140
140
  intent: "destructive",
141
- disabled: Se,
142
- onSelect: () => void Fe()
143
- }), /* @__PURE__ */ b(E, {
144
- primary: Te ? {
145
- label: Y("security.vaultDetail.actions.addSecret", "Add Secret"),
146
- icon: /* @__PURE__ */ b(w, { className: "size-4" }),
141
+ disabled: Oe,
142
+ onSelect: () => void Le()
143
+ }), /* @__PURE__ */ g(ge, {
144
+ primary: U ? {
145
+ label: q("security.vaultDetail.actions.addSecret", "Add Secret"),
146
+ icon: /* @__PURE__ */ g(b, { className: "size-4" }),
147
147
  disabled: $,
148
- onSelect: Z
148
+ onSelect: X
149
149
  } : void 0,
150
150
  actions: e
151
151
  });
152
152
  })(),
153
153
  children: [
154
- /* @__PURE__ */ x("div", {
154
+ /* @__PURE__ */ _("div", {
155
155
  className: "space-y-6",
156
- children: [/* @__PURE__ */ x("div", {
157
- className: "flex flex-wrap items-center gap-3",
158
- children: [
159
- /* @__PURE__ */ b(r, {
160
- variant: $ ? "warning" : "success",
161
- className: "px-3 py-1 text-sm font-semibold",
162
- children: $ ? /* @__PURE__ */ x(y, { children: [
163
- /* @__PURE__ */ b(C, { className: "size-3.5 mr-1.5" }),
164
- " ",
165
- Y("security.common.status.locked", "Locked")
166
- ] }) : /* @__PURE__ */ x(y, { children: [
167
- /* @__PURE__ */ b(T, { className: "size-3.5 mr-1.5" }),
168
- " ",
169
- Y("security.common.status.active", "Active")
170
- ] })
171
- }),
172
- /* @__PURE__ */ b(r, {
173
- variant: "outline",
174
- className: "px-3 py-1 text-sm bg-bg-surface/50",
175
- children: Y("security.vaultDetail.stats.secrets", "{count} secret{suffix}", {
176
- count: G,
177
- suffix: G === 1 ? "" : "s"
156
+ children: [
157
+ /* @__PURE__ */ g(be, {
158
+ icon: /* @__PURE__ */ g(C, { className: "size-4" }),
159
+ children: q("security.vaultDetail.purpose", "This is one vault — a secure home for a related set of secrets. From here you can add new credentials, reveal and copy values on demand, share the vault with teammates, and lock it to instantly cut off access. Locking a vault hides every secret inside until it is unlocked again.")
160
+ }),
161
+ /* @__PURE__ */ g(_e, { children: /* @__PURE__ */ _("div", {
162
+ className: "flex flex-wrap items-center gap-3",
163
+ children: [
164
+ /* @__PURE__ */ g(r, {
165
+ variant: $ ? "warning" : "success",
166
+ className: "px-3 py-1 text-sm font-semibold",
167
+ children: $ ? /* @__PURE__ */ _(h, { children: [
168
+ /* @__PURE__ */ g(y, { className: "size-3.5 mr-1.5" }),
169
+ " ",
170
+ q("security.common.status.locked", "Locked")
171
+ ] }) : /* @__PURE__ */ _(h, { children: [
172
+ /* @__PURE__ */ g(C, { className: "size-3.5 mr-1.5" }),
173
+ " ",
174
+ q("security.common.status.active", "Active")
175
+ ] })
176
+ }),
177
+ /* @__PURE__ */ g(r, {
178
+ variant: "outline",
179
+ className: "px-3 py-1 text-sm bg-bg-surface/50",
180
+ children: q("security.vaultDetail.stats.secrets", "{count} secret{suffix}", {
181
+ count: V,
182
+ suffix: V === 1 ? "" : "s"
183
+ })
184
+ }),
185
+ z?.lastRotatedAt && /* @__PURE__ */ g(r, {
186
+ variant: "outline",
187
+ className: "px-3 py-1 text-sm bg-bg-surface/50 text-text-secondary",
188
+ children: q("security.vaultDetail.stats.lastRotated", "Last rotated: {date}", { date: new Date(z.lastRotatedAt).toLocaleDateString() })
178
189
  })
179
- }),
180
- U?.lastRotatedAt && /* @__PURE__ */ b(r, {
181
- variant: "outline",
182
- className: "px-3 py-1 text-sm bg-bg-surface/50 text-text-secondary",
183
- children: Y("security.vaultDetail.stats.lastRotated", "Last rotated: {date}", { date: new Date(U.lastRotatedAt).toLocaleDateString() })
184
- })
185
- ]
186
- }), /* @__PURE__ */ x("div", {
187
- className: "space-y-4",
188
- children: [P.length > 0 && /* @__PURE__ */ b("div", {
189
- className: "animate-in fade-in slide-in-from-top-2 duration-200",
190
- children: /* @__PURE__ */ b(se, { vaultId: k ?? "" })
191
- }), W.length > 0 ? /* @__PURE__ */ x("div", {
190
+ ]
191
+ }) }),
192
+ (U || W) && /* @__PURE__ */ g(ye, {
193
+ storageKey: "security-vault-detail",
194
+ steps: [...U ? [{
195
+ id: "add-secret",
196
+ label: q("security.vaultDetail.next.addSecret", "Add a secret"),
197
+ description: q("security.vaultDetail.next.addSecretDesc", "Store an API key, password or token in this vault."),
198
+ icon: /* @__PURE__ */ g(b, { className: "size-4" }),
199
+ onClick: $ ? void 0 : X,
200
+ done: V > 0
201
+ }] : [], ...W ? [{
202
+ id: "share-vault",
203
+ label: q("security.vaultDetail.next.share", "Share this vault"),
204
+ description: q("security.vaultDetail.next.shareDesc", "Give teammates access at the right role."),
205
+ icon: /* @__PURE__ */ g(S, { className: "size-4" }),
206
+ onClick: () => K(!0)
207
+ }, {
208
+ id: "settings",
209
+ label: q("security.vaultDetail.next.settings", "Configure settings"),
210
+ description: q("security.vaultDetail.next.settingsDesc", "Set the auto-lock timeout and manage members."),
211
+ icon: /* @__PURE__ */ g(x, { className: "size-4" }),
212
+ onClick: Z
213
+ }] : []]
214
+ }),
215
+ /* @__PURE__ */ _("div", {
192
216
  className: "space-y-4",
193
- children: [/* @__PURE__ */ b(a, {
194
- className: "overflow-hidden border-border-subtle/60",
195
- children: /* @__PURE__ */ b("div", {
196
- className: "divide-y divide-border/40",
197
- children: W.map((e) => /* @__PURE__ */ b(oe, {
198
- secret: {
199
- id: e.id,
200
- vaultId: e.vaultId,
201
- name: e.name,
202
- key: e.key,
203
- description: e.description || void 0,
204
- type: e.type ?? "TEXT",
205
- tags: e.tags ?? [],
206
- labels: e.labels ?? [],
207
- metadata: e.metadata ?? {},
208
- version: e.version ?? 1,
209
- versionCount: e.versionCount ?? 1,
210
- status: e.status ?? "ACTIVE",
211
- createdBy: e.createdBy ?? "",
212
- createdAt: e.createdAt ?? "",
213
- updatedAt: e.updatedAt ?? ""
214
- },
215
- isSelected: P.includes(e.id),
216
- onSelect: F,
217
- onClick: () => Ne(e.id)
218
- }, e.id))
219
- })
220
- }), ge && W.length < G && /* @__PURE__ */ b("div", {
221
- className: "flex justify-center",
222
- children: /* @__PURE__ */ x(i, {
223
- variant: "outline",
224
- onClick: () => L((e) => e + O),
225
- disabled: B,
226
- children: [B && /* @__PURE__ */ b(S, { className: "size-4 animate-spin" }), Y("security.vaultDetail.actions.loadMoreSecrets", "Load more secrets")]
217
+ children: [A.length > 0 && /* @__PURE__ */ g("div", {
218
+ className: "animate-in fade-in slide-in-from-top-2 duration-200",
219
+ children: /* @__PURE__ */ g(ce, { vaultId: T ?? "" })
220
+ }), B.length > 0 ? /* @__PURE__ */ _("div", {
221
+ className: "space-y-4",
222
+ children: [/* @__PURE__ */ g(a, {
223
+ className: "overflow-hidden border-border-subtle/60",
224
+ children: /* @__PURE__ */ g("div", {
225
+ className: "divide-y divide-border/40",
226
+ children: B.map((e) => /* @__PURE__ */ g(se, {
227
+ secret: {
228
+ id: e.id,
229
+ vaultId: e.vaultId,
230
+ name: e.name,
231
+ key: e.key,
232
+ description: e.description || void 0,
233
+ type: e.type ?? "TEXT",
234
+ tags: e.tags ?? [],
235
+ labels: e.labels ?? [],
236
+ metadata: e.metadata ?? {},
237
+ version: e.version ?? 1,
238
+ versionCount: e.versionCount ?? 1,
239
+ status: e.status ?? "ACTIVE",
240
+ createdBy: e.createdBy ?? "",
241
+ createdAt: e.createdAt ?? "",
242
+ updatedAt: e.updatedAt ?? ""
243
+ },
244
+ isSelected: A.includes(e.id),
245
+ onSelect: j,
246
+ onClick: () => Ie(e.id)
247
+ }, e.id))
248
+ })
249
+ }), Se && B.length < V && /* @__PURE__ */ g("div", {
250
+ className: "flex justify-center",
251
+ children: /* @__PURE__ */ _(i, {
252
+ variant: "outline",
253
+ onClick: () => N((e) => e + w),
254
+ disabled: I,
255
+ children: [I && /* @__PURE__ */ g(v, { className: "size-4 animate-spin" }), q("security.vaultDetail.actions.loadMoreSecrets", "Load more secrets")]
256
+ })
257
+ })]
258
+ }) : /* @__PURE__ */ g(ve, {
259
+ illustration: "empty-files",
260
+ title: q("security.vaultDetail.empty.title", "This vault is empty"),
261
+ description: q("security.vaultDetail.empty.description", "Get started by adding your first secret to keep it secure."),
262
+ action: /* @__PURE__ */ _(i, {
263
+ onClick: X,
264
+ disabled: $,
265
+ size: "lg",
266
+ className: "mt-2",
267
+ children: [/* @__PURE__ */ g(b, { className: "size-4" }), q("security.vaultDetail.empty.action", "Add First Secret")]
227
268
  })
228
269
  })]
229
- }) : /* @__PURE__ */ b(o, {
230
- icon: /* @__PURE__ */ b(fe, { className: "size-16 text-text-secondary/30" }),
231
- title: Y("security.vaultDetail.empty.title", "This vault is empty"),
232
- description: Y("security.vaultDetail.empty.description", "Get started by adding your first secret to keep it secure."),
233
- action: /* @__PURE__ */ x(i, {
234
- onClick: Z,
235
- disabled: $,
236
- size: "lg",
237
- className: "mt-2",
238
- children: [/* @__PURE__ */ b(w, { className: "size-4" }), Y("security.vaultDetail.empty.action", "Add First Secret")]
239
- }),
240
- className: "py-20"
241
- })]
242
- })]
270
+ })
271
+ ]
243
272
  }),
244
- /* @__PURE__ */ b(c, {
245
- isOpen: ke,
246
- onClose: () => q(!1),
273
+ /* @__PURE__ */ g(te, {
274
+ isOpen: Ne,
275
+ onClose: () => G(!1),
247
276
  onConfirm: Q,
248
- title: Y("security.vaultDetail.delete.title", "Delete Vault"),
249
- description: Y("security.vaultDetail.delete.description", "Are you sure you want to delete \"{name}\"? All secrets within this vault will also be deleted. This action cannot be undone.", { name: U?.name ?? Y("security.vaultDetail.delete.thisVault", "this vault") }),
250
- confirmLabel: Y("security.vaultDetail.delete.confirm", "Delete Vault"),
277
+ title: q("security.vaultDetail.delete.title", "Delete Vault"),
278
+ description: q("security.vaultDetail.delete.description", "Are you sure you want to delete \"{name}\"? All secrets within this vault will also be deleted. This action cannot be undone.", { name: z?.name ?? q("security.vaultDetail.delete.thisVault", "this vault") }),
279
+ confirmLabel: q("security.vaultDetail.delete.confirm", "Delete Vault"),
251
280
  variant: "destructive"
252
281
  }),
253
- k && /* @__PURE__ */ b(ae, {
254
- isOpen: Ae,
255
- onClose: () => J(!1),
256
- vaultId: k,
257
- name: U?.name ?? Y("security.common.breadcrumbs.vault", "Vault")
282
+ T && /* @__PURE__ */ g(oe, {
283
+ isOpen: Pe,
284
+ onClose: () => K(!1),
285
+ vaultId: T,
286
+ name: z?.name ?? q("security.common.breadcrumbs.vault", "Vault")
258
287
  })
259
288
  ]
260
289
  });
261
290
  }
262
291
  //#endregion
263
- export { k as VaultDetailPage };
292
+ export { T as VaultDetailPage };
264
293
 
265
294
  //# sourceMappingURL=VaultDetailPage.js.map