@burdenoff/microfe-security 2026.1109.1 → 2026.1113.2

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 (83) hide show
  1. package/dist/security/components/ActivityTimeline.js +42 -41
  2. package/dist/security/components/ActivityTimeline.js.map +1 -1
  3. package/dist/security/components/BulkActionBar.d.ts +2 -0
  4. package/dist/security/components/BulkActionBar.js +93 -81
  5. package/dist/security/components/BulkActionBar.js.map +1 -1
  6. package/dist/security/components/BulkPickerDialogs.d.ts +30 -0
  7. package/dist/security/components/BulkPickerDialogs.js +136 -0
  8. package/dist/security/components/BulkPickerDialogs.js.map +1 -0
  9. package/dist/security/components/ExternalSecretProviders.js +150 -134
  10. package/dist/security/components/ExternalSecretProviders.js.map +1 -1
  11. package/dist/security/components/SavedValuesMoreMenu.d.ts +12 -0
  12. package/dist/security/components/SavedValuesMoreMenu.js +63 -0
  13. package/dist/security/components/SavedValuesMoreMenu.js.map +1 -0
  14. package/dist/security/components/SecretFormFields.js +162 -114
  15. package/dist/security/components/SecretFormFields.js.map +1 -1
  16. package/dist/security/components/SecretRow.d.ts +2 -0
  17. package/dist/security/components/SecretRow.js +41 -40
  18. package/dist/security/components/SecretRow.js.map +1 -1
  19. package/dist/security/components/SecretShareDialog.js +1 -1
  20. package/dist/security/components/SecretShareDialog.js.map +1 -1
  21. package/dist/security/components/VaultFormFields.js +100 -55
  22. package/dist/security/components/VaultFormFields.js.map +1 -1
  23. package/dist/security/components/ui.d.ts +8 -1
  24. package/dist/security/components/ui.js +15 -3
  25. package/dist/security/components/ui.js.map +1 -1
  26. package/dist/security/constants/externalSecretProviders.d.ts +8 -1
  27. package/dist/security/constants/externalSecretProviders.js +48 -0
  28. package/dist/security/constants/externalSecretProviders.js.map +1 -1
  29. package/dist/security/hooks/useActorLabel.d.ts +9 -0
  30. package/dist/security/hooks/useActorLabel.js +18 -0
  31. package/dist/security/hooks/useActorLabel.js.map +1 -0
  32. package/dist/security/hooks/useDebouncedValue.d.ts +2 -0
  33. package/dist/security/hooks/useDebouncedValue.js +12 -0
  34. package/dist/security/hooks/useDebouncedValue.js.map +1 -0
  35. package/dist/security/hooks/useSecurityVariant.d.ts +7 -0
  36. package/dist/security/hooks/useSecurityVariant.js +9 -0
  37. package/dist/security/hooks/useSecurityVariant.js.map +1 -0
  38. package/dist/security/index.d.ts +1 -1
  39. package/dist/security/pages/AccessReviewPage.js +77 -76
  40. package/dist/security/pages/AccessReviewPage.js.map +1 -1
  41. package/dist/security/pages/AuditLogPage.js +58 -44
  42. package/dist/security/pages/AuditLogPage.js.map +1 -1
  43. package/dist/security/pages/ImportExportPage.js +1 -1
  44. package/dist/security/pages/ImportExportPage.js.map +1 -1
  45. package/dist/security/pages/SecretCreatePage.js +85 -85
  46. package/dist/security/pages/SecretCreatePage.js.map +1 -1
  47. package/dist/security/pages/SecretDetailPage.js +339 -273
  48. package/dist/security/pages/SecretDetailPage.js.map +1 -1
  49. package/dist/security/pages/VaultCreatePage.js +59 -56
  50. package/dist/security/pages/VaultCreatePage.js.map +1 -1
  51. package/dist/security/pages/VaultDetailPage.js +218 -162
  52. package/dist/security/pages/VaultDetailPage.js.map +1 -1
  53. package/dist/security/pages/VaultLandingPage.js +48 -35
  54. package/dist/security/pages/VaultLandingPage.js.map +1 -1
  55. package/dist/security/pages/VaultSettingsPage.js +331 -266
  56. package/dist/security/pages/VaultSettingsPage.js.map +1 -1
  57. package/dist/security/pages/VaultsDashboardPage.js +231 -161
  58. package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
  59. package/dist/security/providers/SecurityProvider.js +24 -20
  60. package/dist/security/providers/SecurityProvider.js.map +1 -1
  61. package/dist/security/providers/securityContext.d.ts +3 -0
  62. package/dist/security/providers/securityContext.js +6 -0
  63. package/dist/security/providers/securityContext.js.map +1 -0
  64. package/dist/security/routes/SecurityAdminRoutes.js +3 -3
  65. package/dist/security/routes/SecurityAdminRoutes.js.map +1 -1
  66. package/dist/security/routes/SecurityRoutes.js +3 -3
  67. package/dist/security/routes/SecurityRoutes.js.map +1 -1
  68. package/dist/security/routes/SecurityUserRoutes.js +1 -1
  69. package/dist/security/routes/SecurityUserRoutes.js.map +1 -1
  70. package/dist/security/translations/en.d.ts +65 -0
  71. package/dist/security/translations/en.js +80 -13
  72. package/dist/security/translations/en.js.map +1 -1
  73. package/dist/security/types/index.d.ts +13 -0
  74. package/dist/security/utils/formInputs.d.ts +49 -0
  75. package/dist/security/utils/formInputs.js +27 -0
  76. package/dist/security/utils/formInputs.js.map +1 -0
  77. package/dist/security/utils/landingTabs.d.ts +9 -0
  78. package/dist/security/utils/landingTabs.js +16 -0
  79. package/dist/security/utils/landingTabs.js.map +1 -0
  80. package/dist/security/utils/rotationStatus.d.ts +12 -0
  81. package/dist/security/utils/rotationStatus.js +8 -0
  82. package/dist/security/utils/rotationStatus.js.map +1 -0
  83. package/package.json +2 -2
@@ -38,7 +38,18 @@ var r = ({ children: n, variant: r = "default", className: i }) => /* @__PURE__
38
38
  className: e("flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm", "placeholder:text-text-secondary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", "disabled:cursor-not-allowed disabled:opacity-50", i),
39
39
  ...o
40
40
  })]
41
- }), o = ({ children: n, className: r, onClick: i, ...a }) => i ? /* @__PURE__ */ t("button", {
41
+ }), o = ({ label: r, className: i, id: a, ...o }) => /* @__PURE__ */ n("div", {
42
+ className: "space-y-1.5",
43
+ children: [r && /* @__PURE__ */ t("label", {
44
+ htmlFor: a,
45
+ className: "text-sm font-medium text-text-primary",
46
+ children: r
47
+ }), /* @__PURE__ */ t("textarea", {
48
+ id: a,
49
+ className: e("flex w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 font-mono text-sm", "placeholder:text-text-secondary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", "disabled:cursor-not-allowed disabled:opacity-50 resize-y", i),
50
+ ...o
51
+ })]
52
+ }), s = ({ children: n, className: r, onClick: i, ...a }) => i ? /* @__PURE__ */ t("button", {
42
53
  type: "button",
43
54
  className: e("block w-full text-left rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-[var(--shadow-pop)]", "cursor-pointer transition-[box-shadow,border-color] duration-200 hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong", r),
44
55
  onClick: i,
@@ -48,7 +59,7 @@ var r = ({ children: n, variant: r = "default", className: i }) => /* @__PURE__
48
59
  className: e("rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-elevation-1", r),
49
60
  ...a,
50
61
  children: n
51
- }), s = ({ label: r, value: i, onChange: a, options: o, className: s, disabled: c, id: l }) => /* @__PURE__ */ n("div", {
62
+ }), c = ({ label: r, value: i, onChange: a, options: o, className: s, disabled: c, id: l, "aria-label": u }) => /* @__PURE__ */ n("div", {
52
63
  className: "space-y-1.5",
53
64
  children: [r && /* @__PURE__ */ t("label", {
54
65
  htmlFor: l,
@@ -56,6 +67,7 @@ var r = ({ children: n, variant: r = "default", className: i }) => /* @__PURE__
56
67
  children: r
57
68
  }), /* @__PURE__ */ t("select", {
58
69
  id: l,
70
+ "aria-label": u,
59
71
  value: i,
60
72
  onChange: (e) => a(e.target.value),
61
73
  disabled: c,
@@ -66,6 +78,6 @@ var r = ({ children: n, variant: r = "default", className: i }) => /* @__PURE__
66
78
  }, e.value))
67
79
  })]
68
80
  });
69
- export { r as Badge, i as Button, o as Card, a as Input, s as Select };
81
+ export { r as Badge, i as Button, s as Card, a as Input, c as Select, o as Textarea };
70
82
 
71
83
  //# sourceMappingURL=ui.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","names":["Badge","cn","variant","className","Button","props","size","Input","label","id","Card","onClick","Select","onChange","options","opt"],"sources":["../../../src/security/components/ui.tsx"],"sourcesContent":["import type {\n FC,\n ReactNode,\n ButtonHTMLAttributes,\n InputHTMLAttributes,\n HTMLAttributes,\n} from 'react';\nimport { EmptyState as CanonicalEmptyState } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\n/**\n * Badge component\n */\nexport const Badge: FC<{\n children: ReactNode;\n variant?: 'default' | 'success' | 'warning' | 'destructive' | 'outline';\n className?: string;\n}> = ({ children, variant = 'default', className }) => {\n const variants = {\n default: 'bg-action-primary-bg/10 text-primary',\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n outline: 'border border-border-subtle text-text-secondary',\n };\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variants[variant],\n className\n )}\n >\n {children}\n </span>\n );\n};\n\n/**\n * Button component\n */\nexport const Button: FC<\n ButtonHTMLAttributes<HTMLButtonElement> & {\n variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';\n size?: 'sm' | 'md' | 'lg';\n }\n> = ({ children, variant = 'primary', size = 'md', className, ...props }) => {\n const variants = {\n primary: 'bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n outline: 'border border-border-subtle bg-transparent hover:bg-accent hover:text-text-primary',\n ghost: 'hover:bg-accent hover:text-text-primary',\n destructive: 'bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90',\n link: 'text-primary underline-offset-4 hover:underline h-auto p-0',\n };\n\n const sizes = {\n sm: 'h-8 px-3 text-xs',\n md: 'h-9 px-4 text-sm',\n lg: 'h-10 px-6 text-sm',\n };\n\n return (\n <button\n type=\"button\"\n className={cn(\n 'inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:pointer-events-none disabled:opacity-50',\n variants[variant],\n variant !== 'link' && sizes[size],\n className\n )}\n {...props}\n >\n {children}\n </button>\n );\n};\n\n/**\n * Input component\n */\nexport const Input: FC<InputHTMLAttributes<HTMLInputElement> & { label?: string }> = ({\n label,\n className,\n id,\n ...props\n}) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <input\n id={id}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'placeholder:text-text-secondary',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n );\n};\n\n/**\n * Card component\n */\nexport const Card: FC<HTMLAttributes<HTMLDivElement> & { onClick?: () => void }> = ({\n children,\n className,\n onClick,\n ...props\n}) => {\n if (onClick) {\n return (\n <button\n type=\"button\"\n className={cn(\n 'block w-full text-left rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-[var(--shadow-pop)]',\n // No-movement policy (Boff UI 2.0): hover only intensifies shadow/border\n // (a calm highlight). Never translate or scale the card.\n 'cursor-pointer transition-[box-shadow,border-color] duration-200 hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong',\n className\n )}\n onClick={onClick}\n {...(props as HTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </button>\n );\n }\n\n return (\n <div\n className={cn(\n 'rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-elevation-1',\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n};\n\n/**\n * Empty state component\n */\nexport const EmptyState: FC<{\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}> = ({ icon, title, description, action, className }) => {\n return (\n <div className={className}>\n <CanonicalEmptyState icon={icon} title={title} description={description} action={action} />\n </div>\n );\n};\n\n/**\n * Select component\n */\nexport const Select: FC<{\n label?: string;\n value: string;\n onChange: (value: string) => void;\n options: Array<{ value: string; label: string }>;\n className?: string;\n disabled?: boolean;\n id?: string;\n}> = ({ label, value, onChange, options, className, disabled, id }) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <select\n id={id}\n value={value}\n onChange={(e) => onChange(e.target.value)}\n disabled={disabled}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary',\n className\n )}\n >\n {options.map((opt) => (\n <option key={opt.value} value={opt.value}>\n {opt.label}\n </option>\n ))}\n </select>\n </div>\n );\n};\n"],"mappings":";;;;AAaA,IAAaA,KAIP,EAAE,aAAU,aAAU,WAAW,mBAUnC,kBAAC,QAAD;CACE,WAAWC,EACT,iFACA;EAXJ,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,SAAS;CAOL,EAASC,IACTC,CACF;CAEC;AACG,CAAA,GAOGC,KAKR,EAAE,aAAU,aAAU,WAAW,UAAO,MAAM,cAAW,GAAGC,QAiB7D,kBAAC,UAAD;CACE,MAAK;CACL,WAAWJ,EACT,0FACA,gGACA,oDACA;EArBJ,SAAS;EACT,WAAW;EACX,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;CAgBF,EAASC,IACTA,MAAY,UAAU;EAb1B,IAAI;EACJ,IAAI;EACJ,IAAI;CAWsB,EAAMI,IAC5BH,CACF;CACA,GAAIE;CAEH;AACK,CAAA,GAOCE,KAAyE,EACpF,UACA,cACA,OACA,GAAGF,QAGD,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACGG,KACC,kBAAC,SAAD;EAAO,SAASC;EAAI,WAAU;EAC3B,UAAAD;CACI,CAAA,GAET,kBAAC,SAAD;EACM;EACJ,WAAWP,EACT,0FACA,mCACA,gGACA,mDACAE,CACF;EACA,GAAIE;CACL,CAAA,CACE;A,IAOIK,KAAuE,EAClF,aACA,cACA,YACA,GAAGL,QAECM,IAEA,kBAAC,UAAD;CACE,MAAK;CACL,WAAWV,EACT,4HAGA,sIACAE,CACF;CACS;CACT,GAAKE;CAEJ;AACK,CAAA,IAKV,kBAAC,OAAD;CACE,WAAWJ,EACT,6FACAE,CACF;CACA,GAAIE;CAEH;AACE,CAAA,GAwBIO,KAQP,EAAE,UAAO,UAAO,aAAU,YAAS,cAAW,aAAU,YAE1D,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACGJ,KACC,kBAAC,SAAD;EAAO,SAASC;EAAI,WAAU;EAC3B,UAAAD;CACI,CAAA,GAET,kBAAC,UAAD;EACM;EACG;EACP,WAAW,MAAMK,EAAS,EAAE,OAAO,KAAK;EAC9B;EACV,WAAWZ,EACT,0FACA,gGACA,mDACA,wFACAE,CACF;EAEC,UAAAW,EAAQ,KAAK,MACZ,kBAAC,UAAD;GAAwB,OAAOC,EAAI;GAChC,UAAAA,EAAI;EACC,GAFKA,EAAI,KAET,CACT;CACK,CAAA,CACL"}
1
+ {"version":3,"file":"ui.js","names":["Badge","cn","variant","className","Button","props","size","Input","label","id","Textarea","Card","onClick","Select","ariaLabel","onChange","options","opt"],"sources":["../../../src/security/components/ui.tsx"],"sourcesContent":["import type {\n FC,\n ReactNode,\n ButtonHTMLAttributes,\n InputHTMLAttributes,\n HTMLAttributes,\n TextareaHTMLAttributes,\n} from 'react';\nimport { EmptyState as CanonicalEmptyState } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\n/**\n * Badge component\n */\nexport const Badge: FC<{\n children: ReactNode;\n variant?: 'default' | 'success' | 'warning' | 'destructive' | 'outline';\n className?: string;\n}> = ({ children, variant = 'default', className }) => {\n const variants = {\n default: 'bg-action-primary-bg/10 text-primary',\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n outline: 'border border-border-subtle text-text-secondary',\n };\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variants[variant],\n className\n )}\n >\n {children}\n </span>\n );\n};\n\n/**\n * Button component\n */\nexport const Button: FC<\n ButtonHTMLAttributes<HTMLButtonElement> & {\n variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';\n size?: 'sm' | 'md' | 'lg';\n }\n> = ({ children, variant = 'primary', size = 'md', className, ...props }) => {\n const variants = {\n primary: 'bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n outline: 'border border-border-subtle bg-transparent hover:bg-accent hover:text-text-primary',\n ghost: 'hover:bg-accent hover:text-text-primary',\n destructive: 'bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90',\n link: 'text-primary underline-offset-4 hover:underline h-auto p-0',\n };\n\n const sizes = {\n sm: 'h-8 px-3 text-xs',\n md: 'h-9 px-4 text-sm',\n lg: 'h-10 px-6 text-sm',\n };\n\n return (\n <button\n type=\"button\"\n className={cn(\n 'inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:pointer-events-none disabled:opacity-50',\n variants[variant],\n variant !== 'link' && sizes[size],\n className\n )}\n {...props}\n >\n {children}\n </button>\n );\n};\n\n/**\n * Input component\n */\nexport const Input: FC<InputHTMLAttributes<HTMLInputElement> & { label?: string }> = ({\n label,\n className,\n id,\n ...props\n}) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <input\n id={id}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'placeholder:text-text-secondary',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n );\n};\n\n/**\n * Multi-line text input with the same look as {@link Input}.\n */\nexport const Textarea: FC<TextareaHTMLAttributes<HTMLTextAreaElement> & { label?: string }> = ({\n label,\n className,\n id,\n ...props\n}) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <textarea\n id={id}\n className={cn(\n 'flex w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 font-mono text-sm',\n 'placeholder:text-text-secondary',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50 resize-y',\n className\n )}\n {...props}\n />\n </div>\n );\n};\n\n/**\n * Card component\n */\nexport const Card: FC<HTMLAttributes<HTMLDivElement> & { onClick?: () => void }> = ({\n children,\n className,\n onClick,\n ...props\n}) => {\n if (onClick) {\n return (\n <button\n type=\"button\"\n className={cn(\n 'block w-full text-left rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-[var(--shadow-pop)]',\n // No-movement policy (Boff UI 2.0): hover only intensifies shadow/border\n // (a calm highlight). Never translate or scale the card.\n 'cursor-pointer transition-[box-shadow,border-color] duration-200 hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong',\n className\n )}\n onClick={onClick}\n {...(props as HTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </button>\n );\n }\n\n return (\n <div\n className={cn(\n 'rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-elevation-1',\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n};\n\n/**\n * Empty state component\n */\nexport const EmptyState: FC<{\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}> = ({ icon, title, description, action, className }) => {\n return (\n <div className={className}>\n <CanonicalEmptyState icon={icon} title={title} description={description} action={action} />\n </div>\n );\n};\n\n/**\n * Select component\n */\nexport const Select: FC<{\n label?: string;\n value: string;\n onChange: (value: string) => void;\n options: Array<{ value: string; label: string }>;\n className?: string;\n disabled?: boolean;\n id?: string;\n 'aria-label'?: string;\n}> = ({ label, value, onChange, options, className, disabled, id, 'aria-label': ariaLabel }) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <select\n id={id}\n aria-label={ariaLabel}\n value={value}\n onChange={(e) => onChange(e.target.value)}\n disabled={disabled}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary',\n className\n )}\n >\n {options.map((opt) => (\n <option key={opt.value} value={opt.value}>\n {opt.label}\n </option>\n ))}\n </select>\n </div>\n );\n};\n"],"mappings":";;;;AAcA,IAAaA,KAIP,EAAE,aAAU,aAAU,WAAW,mBAUnC,kBAAC,QAAD;CACE,WAAWC,EACT,iFACA;EAXJ,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,SAAS;CAOL,EAASC,IACTC,CACF;CAEC;AACG,CAAA,GAOGC,KAKR,EAAE,aAAU,aAAU,WAAW,UAAO,MAAM,cAAW,GAAGC,QAiB7D,kBAAC,UAAD;CACE,MAAK;CACL,WAAWJ,EACT,0FACA,gGACA,oDACA;EArBJ,SAAS;EACT,WAAW;EACX,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;CAgBF,EAASC,IACTA,MAAY,UAAU;EAb1B,IAAI;EACJ,IAAI;EACJ,IAAI;CAWsB,EAAMI,IAC5BH,CACF;CACA,GAAIE;CAEH;AACK,CAAA,GAOCE,KAAyE,EACpF,UACA,cACA,OACA,GAAGF,QAGD,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACGG,KACC,kBAAC,SAAD;EAAO,SAASC;EAAI,WAAU;EAC3B,UAAAD;CACI,CAAA,GAET,kBAAC,SAAD;EACM;EACJ,WAAWP,EACT,0FACA,mCACA,gGACA,mDACAE,CACF;EACA,GAAIE;CACL,CAAA,CACE;A,IAOIK,KAAkF,EAC7F,UACA,cACA,OACA,GAAGL,QAGD,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACGG,KACC,kBAAC,SAAD;EAAO,SAASC;EAAI,WAAU;EAC3B,UAAAD;CACI,CAAA,GAET,kBAAC,YAAD;EACM;EACJ,WAAWP,EACT,gGACA,mCACA,gGACA,4DACAE,CACF;EACA,GAAIE;CACL,CAAA,CACE;A,IAOIM,KAAuE,EAClF,aACA,cACA,YACA,GAAGN,QAECO,IAEA,kBAAC,UAAD;CACE,MAAK;CACL,WAAWX,EACT,4HAGA,sIACAE,CACF;CACS;CACT,GAAKE;CAEJ;AACK,CAAA,IAKV,kBAAC,OAAD;CACE,WAAWJ,EACT,6FACAE,CACF;CACA,GAAIE;CAEH;AACE,CAAA,GAwBIQ,KASP,EAAE,UAAO,UAAO,aAAU,YAAS,cAAW,aAAU,OAAI,cAAcC,QAE5E,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACGN,KACC,kBAAC,SAAD;EAAO,SAASC;EAAI,WAAU;EAC3B,UAAAD;CACI,CAAA,GAET,kBAAC,UAAD;EACM;EACJ,cAAYM;EACL;EACP,WAAW,MAAMC,EAAS,EAAE,OAAO,KAAK;EAC9B;EACV,WAAWd,EACT,0FACA,gGACA,mDACA,wFACAE,CACF;EAEC,UAAAa,EAAQ,KAAK,MACZ,kBAAC,UAAD;GAAwB,OAAOC,EAAI;GAChC,UAAAA,EAAI;EACC,GAFKA,EAAI,KAET,CACT;CACK,CAAA,CACL"}
@@ -3,12 +3,19 @@
3
3
  * provider settings: `config` fields are stored as the provider's configuration, `secret` fields
4
4
  * are its write-only credentials.
5
5
  */
6
- export type ExternalProviderTypeKey = 'AWS_SECRETS_MANAGER' | 'HASHICORP_VAULT' | 'ONEPASSWORD_CONNECT' | 'INFISICAL';
6
+ export type ExternalProviderTypeKey = 'AWS_SECRETS_MANAGER' | 'HASHICORP_VAULT' | 'ONEPASSWORD_CONNECT' | 'INFISICAL' | 'AZURE_KEY_VAULT' | 'GCP_SECRET_MANAGER';
7
7
  export interface ExternalProviderField {
8
8
  name: string;
9
9
  label: string;
10
+ /**
11
+ * The label's translation key under `security.externalSecrets.fields`, when it differs from
12
+ * `name` (two providers can store a field of the same name that needs a different label).
13
+ */
14
+ labelKey?: string;
10
15
  /** Stored as a write-only credential rather than as configuration. */
11
16
  secret?: boolean;
17
+ /** A multi-line value, such as a pasted JSON key file. */
18
+ multiline?: boolean;
12
19
  placeholder?: string;
13
20
  options?: Array<{
14
21
  value: string;
@@ -137,6 +137,54 @@ var e = [
137
137
  secret: !0
138
138
  }
139
139
  ]
140
+ },
141
+ {
142
+ value: "AZURE_KEY_VAULT",
143
+ label: "Azure Key Vault",
144
+ translationKey: "azureKeyVault",
145
+ exampleName: "stripe-api-key",
146
+ fields: [
147
+ {
148
+ name: "vaultName",
149
+ label: "Vault name",
150
+ placeholder: "my-vault"
151
+ },
152
+ {
153
+ name: "tenantId",
154
+ label: "Directory (tenant) ID",
155
+ secret: !0
156
+ },
157
+ {
158
+ name: "clientId",
159
+ labelKey: "azureClientId",
160
+ label: "Application (client) ID",
161
+ secret: !0
162
+ },
163
+ {
164
+ name: "clientSecret",
165
+ labelKey: "azureClientSecret",
166
+ label: "Client secret",
167
+ secret: !0
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ value: "GCP_SECRET_MANAGER",
173
+ label: "Google Cloud Secret Manager",
174
+ translationKey: "gcpSecretManager",
175
+ exampleName: "stripe-api-key",
176
+ fields: [{
177
+ name: "projectId",
178
+ labelKey: "gcpProjectId",
179
+ label: "Project ID (optional)",
180
+ placeholder: "Defaults to the key file project"
181
+ }, {
182
+ name: "serviceAccountKey",
183
+ label: "Service account key (JSON)",
184
+ secret: !0,
185
+ multiline: !0,
186
+ placeholder: "{ \"type\": \"service_account\", ... }"
187
+ }]
140
188
  }
141
189
  ];
142
190
  function t(t) {
@@ -1 +1 @@
1
- {"version":3,"file":"externalSecretProviders.js","names":["EXTERNAL_PROVIDER_TYPES","externalProviderType","entry","value","splitProviderValues","config","credentials","field","definition","visible","values"],"sources":["../../../src/security/constants/externalSecretProviders.ts"],"sourcesContent":["/**\n * What each external secret provider needs (BOFF-9741). Mirrors wspace-security-svc's\n * provider settings: `config` fields are stored as the provider's configuration, `secret` fields\n * are its write-only credentials.\n */\n\nexport type ExternalProviderTypeKey =\n 'AWS_SECRETS_MANAGER' | 'HASHICORP_VAULT' | 'ONEPASSWORD_CONNECT' | 'INFISICAL';\n\nexport interface ExternalProviderField {\n name: string;\n label: string;\n /** Stored as a write-only credential rather than as configuration. */\n secret?: boolean;\n placeholder?: string;\n options?: Array<{ value: string; label: string }>;\n /** Shown only when another field has this value (`default` when it is unset). */\n showIf?: { field: string; equals: string; default: string };\n}\n\nexport interface ExternalProviderTypeDefinition {\n value: ExternalProviderTypeKey;\n label: string;\n translationKey: string;\n /** A name to show in the reference example. */\n exampleName: string;\n fields: ExternalProviderField[];\n}\n\nexport const EXTERNAL_PROVIDER_TYPES: ExternalProviderTypeDefinition[] = [\n {\n value: 'AWS_SECRETS_MANAGER',\n label: 'AWS Secrets Manager',\n translationKey: 'awsSecretsManager',\n exampleName: 'prod/stripe.api_key',\n fields: [\n { name: 'region', label: 'Region', placeholder: 'us-east-1' },\n { name: 'accessKeyId', label: 'Access key ID', secret: true },\n { name: 'secretAccessKey', label: 'Secret access key', secret: true },\n ],\n },\n {\n value: 'HASHICORP_VAULT',\n label: 'HashiCorp Vault',\n translationKey: 'hashicorpVault',\n exampleName: 'apps/stripe.api_key',\n fields: [\n { name: 'address', label: 'Address', placeholder: 'https://vault.example.com' },\n { name: 'mount', label: 'KV v2 mount', placeholder: 'secret' },\n { name: 'namespace', label: 'Namespace (optional)' },\n {\n name: 'authMethod',\n label: 'Sign-in method',\n options: [\n { value: 'token', label: 'Token' },\n { value: 'approle', label: 'AppRole' },\n ],\n },\n {\n name: 'token',\n label: 'Token',\n secret: true,\n showIf: { field: 'authMethod', equals: 'token', default: 'token' },\n },\n {\n name: 'roleId',\n label: 'Role ID',\n secret: true,\n showIf: { field: 'authMethod', equals: 'approle', default: 'token' },\n },\n {\n name: 'secretId',\n label: 'Secret ID',\n secret: true,\n showIf: { field: 'authMethod', equals: 'approle', default: 'token' },\n },\n ],\n },\n {\n value: 'ONEPASSWORD_CONNECT',\n label: '1Password Connect',\n translationKey: 'onePasswordConnect',\n exampleName: 'Production/Stripe.password',\n fields: [\n { name: 'host', label: 'Connect server URL', placeholder: 'https://connect.example.com' },\n { name: 'token', label: 'Access token', secret: true },\n ],\n },\n {\n value: 'INFISICAL',\n label: 'Infisical',\n translationKey: 'infisical',\n exampleName: 'STRIPE_API_KEY',\n fields: [\n { name: 'siteUrl', label: 'Site URL (optional)', placeholder: 'https://app.infisical.com' },\n { name: 'projectId', label: 'Project ID' },\n { name: 'environment', label: 'Environment', placeholder: 'prod' },\n { name: 'secretPath', label: 'Folder (optional)', placeholder: '/' },\n { name: 'clientId', label: 'Machine identity client ID', secret: true },\n { name: 'clientSecret', label: 'Machine identity client secret', secret: true },\n ],\n },\n];\n\nexport function externalProviderType(value: string): ExternalProviderTypeDefinition {\n return (\n EXTERNAL_PROVIDER_TYPES.find((entry) => entry.value === value) ??\n (EXTERNAL_PROVIDER_TYPES[0] as ExternalProviderTypeDefinition)\n );\n}\n\n/**\n * The form's values as provider configuration and credentials. Hidden and blank fields are left\n * out, so an empty credential field on edit keeps the stored one.\n */\nexport function splitProviderValues(\n definition: ExternalProviderTypeDefinition,\n values: Record<string, string>,\n visible: (field: ExternalProviderField) => boolean\n): { config: Record<string, string>; credentials: Record<string, string> } {\n const config: Record<string, string> = {};\n const credentials: Record<string, string> = {};\n for (const field of definition.fields) {\n if (!visible(field)) continue;\n const value = (values[field.name] ?? field.options?.[0]?.value ?? '').trim();\n if (!value) continue;\n if (field.secret) credentials[field.name] = value;\n else config[field.name] = value;\n }\n return { config, credentials };\n}\n"],"mappings":";AA6BA,IAAaA,IAA4D;CACvE;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ;GACN;IAAE,MAAM;IAAU,OAAO;IAAU,aAAa;GAAY;GAC5D;IAAE,MAAM;IAAe,OAAO;IAAiB,QAAQ;GAAK;GAC5D;IAAE,MAAM;IAAmB,OAAO;IAAqB,QAAQ;GAAK;EACtE;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ;GACN;IAAE,MAAM;IAAW,OAAO;IAAW,aAAa;GAA4B;GAC9E;IAAE,MAAM;IAAS,OAAO;IAAe,aAAa;GAAS;GAC7D;IAAE,MAAM;IAAa,OAAO;GAAuB;GACnD;IACE,MAAM;IACN,OAAO;IACP,SAAS,CACP;KAAE,OAAO;KAAS,OAAO;IAAQ,GACjC;KAAE,OAAO;KAAW,OAAO;IAAU,CACvC;GACF;GACA;IACE,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;KAAE,OAAO;KAAc,QAAQ;KAAS,SAAS;IAAQ;GACnE;GACA;IACE,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;KAAE,OAAO;KAAc,QAAQ;KAAW,SAAS;IAAQ;GACrE;GACA;IACE,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;KAAE,OAAO;KAAc,QAAQ;KAAW,SAAS;IAAQ;GACrE;EACF;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ,CACN;GAAE,MAAM;GAAQ,OAAO;GAAsB,aAAa;EAA8B,GACxF;GAAE,MAAM;GAAS,OAAO;GAAgB,QAAQ;EAAK,CACvD;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ;GACN;IAAE,MAAM;IAAW,OAAO;IAAuB,aAAa;GAA4B;GAC1F;IAAE,MAAM;IAAa,OAAO;GAAa;GACzC;IAAE,MAAM;IAAe,OAAO;IAAe,aAAa;GAAO;GACjE;IAAE,MAAM;IAAc,OAAO;IAAqB,aAAa;GAAI;GACnE;IAAE,MAAM;IAAY,OAAO;IAA8B,QAAQ;GAAK;GACtE;IAAE,MAAM;IAAgB,OAAO;IAAkC,QAAQ;GAAK;EAChF;CACF;AACF;AAEA,SAAgBC,EAAqB,GAA+C;CAClF,OACED,EAAwB,MAAM,MAAUE,EAAM,UAAUC,CAAK,KAC5DH,EAAwB;AAE7B;AAMA,SAAgBI,EACd,GACA,GACA,GACyE;CACzE,IAAMC,IAAiC,CAAC,GAClCC,IAAsC,CAAC;CAC7C,KAAK,IAAMC,KAASC,EAAW,QAAQ;EACrC,IAAI,CAACC,EAAQF,CAAK,GAAG;EACrB,IAAMJ,KAASO,EAAOH,EAAM,SAASA,EAAM,UAAU,EAAE,EAAE,SAAS,GAAA,CAAI,KAAK;EAC3E,AAAKJ,MACDI,EAAM,SAAQ,EAAYA,EAAM,QAAQJ,IACvC,EAAOI,EAAM,QAAQJ;CAC5B;CACA,OAAO;EAAE;EAAQ;CAAY;AAC/B"}
1
+ {"version":3,"file":"externalSecretProviders.js","names":["EXTERNAL_PROVIDER_TYPES","externalProviderType","entry","value","splitProviderValues","config","credentials","field","definition","visible","values"],"sources":["../../../src/security/constants/externalSecretProviders.ts"],"sourcesContent":["/**\n * What each external secret provider needs (BOFF-9741). Mirrors wspace-security-svc's\n * provider settings: `config` fields are stored as the provider's configuration, `secret` fields\n * are its write-only credentials.\n */\n\nexport type ExternalProviderTypeKey =\n | 'AWS_SECRETS_MANAGER'\n | 'HASHICORP_VAULT'\n | 'ONEPASSWORD_CONNECT'\n | 'INFISICAL'\n | 'AZURE_KEY_VAULT'\n | 'GCP_SECRET_MANAGER';\n\nexport interface ExternalProviderField {\n name: string;\n label: string;\n /**\n * The label's translation key under `security.externalSecrets.fields`, when it differs from\n * `name` (two providers can store a field of the same name that needs a different label).\n */\n labelKey?: string;\n /** Stored as a write-only credential rather than as configuration. */\n secret?: boolean;\n /** A multi-line value, such as a pasted JSON key file. */\n multiline?: boolean;\n placeholder?: string;\n options?: Array<{ value: string; label: string }>;\n /** Shown only when another field has this value (`default` when it is unset). */\n showIf?: { field: string; equals: string; default: string };\n}\n\nexport interface ExternalProviderTypeDefinition {\n value: ExternalProviderTypeKey;\n label: string;\n translationKey: string;\n /** A name to show in the reference example. */\n exampleName: string;\n fields: ExternalProviderField[];\n}\n\nexport const EXTERNAL_PROVIDER_TYPES: ExternalProviderTypeDefinition[] = [\n {\n value: 'AWS_SECRETS_MANAGER',\n label: 'AWS Secrets Manager',\n translationKey: 'awsSecretsManager',\n exampleName: 'prod/stripe.api_key',\n fields: [\n { name: 'region', label: 'Region', placeholder: 'us-east-1' },\n { name: 'accessKeyId', label: 'Access key ID', secret: true },\n { name: 'secretAccessKey', label: 'Secret access key', secret: true },\n ],\n },\n {\n value: 'HASHICORP_VAULT',\n label: 'HashiCorp Vault',\n translationKey: 'hashicorpVault',\n exampleName: 'apps/stripe.api_key',\n fields: [\n { name: 'address', label: 'Address', placeholder: 'https://vault.example.com' },\n { name: 'mount', label: 'KV v2 mount', placeholder: 'secret' },\n { name: 'namespace', label: 'Namespace (optional)' },\n {\n name: 'authMethod',\n label: 'Sign-in method',\n options: [\n { value: 'token', label: 'Token' },\n { value: 'approle', label: 'AppRole' },\n ],\n },\n {\n name: 'token',\n label: 'Token',\n secret: true,\n showIf: { field: 'authMethod', equals: 'token', default: 'token' },\n },\n {\n name: 'roleId',\n label: 'Role ID',\n secret: true,\n showIf: { field: 'authMethod', equals: 'approle', default: 'token' },\n },\n {\n name: 'secretId',\n label: 'Secret ID',\n secret: true,\n showIf: { field: 'authMethod', equals: 'approle', default: 'token' },\n },\n ],\n },\n {\n value: 'ONEPASSWORD_CONNECT',\n label: '1Password Connect',\n translationKey: 'onePasswordConnect',\n exampleName: 'Production/Stripe.password',\n fields: [\n { name: 'host', label: 'Connect server URL', placeholder: 'https://connect.example.com' },\n { name: 'token', label: 'Access token', secret: true },\n ],\n },\n {\n value: 'INFISICAL',\n label: 'Infisical',\n translationKey: 'infisical',\n exampleName: 'STRIPE_API_KEY',\n fields: [\n { name: 'siteUrl', label: 'Site URL (optional)', placeholder: 'https://app.infisical.com' },\n { name: 'projectId', label: 'Project ID' },\n { name: 'environment', label: 'Environment', placeholder: 'prod' },\n { name: 'secretPath', label: 'Folder (optional)', placeholder: '/' },\n { name: 'clientId', label: 'Machine identity client ID', secret: true },\n { name: 'clientSecret', label: 'Machine identity client secret', secret: true },\n ],\n },\n {\n value: 'AZURE_KEY_VAULT',\n label: 'Azure Key Vault',\n translationKey: 'azureKeyVault',\n exampleName: 'stripe-api-key',\n fields: [\n { name: 'vaultName', label: 'Vault name', placeholder: 'my-vault' },\n { name: 'tenantId', label: 'Directory (tenant) ID', secret: true },\n {\n name: 'clientId',\n labelKey: 'azureClientId',\n label: 'Application (client) ID',\n secret: true,\n },\n {\n name: 'clientSecret',\n labelKey: 'azureClientSecret',\n label: 'Client secret',\n secret: true,\n },\n ],\n },\n {\n value: 'GCP_SECRET_MANAGER',\n label: 'Google Cloud Secret Manager',\n translationKey: 'gcpSecretManager',\n exampleName: 'stripe-api-key',\n fields: [\n {\n name: 'projectId',\n labelKey: 'gcpProjectId',\n label: 'Project ID (optional)',\n placeholder: 'Defaults to the key file project',\n },\n {\n name: 'serviceAccountKey',\n label: 'Service account key (JSON)',\n secret: true,\n multiline: true,\n placeholder: '{ \"type\": \"service_account\", ... }',\n },\n ],\n },\n];\n\nexport function externalProviderType(value: string): ExternalProviderTypeDefinition {\n return (\n EXTERNAL_PROVIDER_TYPES.find((entry) => entry.value === value) ??\n (EXTERNAL_PROVIDER_TYPES[0] as ExternalProviderTypeDefinition)\n );\n}\n\n/**\n * The form's values as provider configuration and credentials. Hidden and blank fields are left\n * out, so an empty credential field on edit keeps the stored one.\n */\nexport function splitProviderValues(\n definition: ExternalProviderTypeDefinition,\n values: Record<string, string>,\n visible: (field: ExternalProviderField) => boolean\n): { config: Record<string, string>; credentials: Record<string, string> } {\n const config: Record<string, string> = {};\n const credentials: Record<string, string> = {};\n for (const field of definition.fields) {\n if (!visible(field)) continue;\n const value = (values[field.name] ?? field.options?.[0]?.value ?? '').trim();\n if (!value) continue;\n if (field.secret) credentials[field.name] = value;\n else config[field.name] = value;\n }\n return { config, credentials };\n}\n"],"mappings":";AAyCA,IAAaA,IAA4D;CACvE;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ;GACN;IAAE,MAAM;IAAU,OAAO;IAAU,aAAa;GAAY;GAC5D;IAAE,MAAM;IAAe,OAAO;IAAiB,QAAQ;GAAK;GAC5D;IAAE,MAAM;IAAmB,OAAO;IAAqB,QAAQ;GAAK;EACtE;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ;GACN;IAAE,MAAM;IAAW,OAAO;IAAW,aAAa;GAA4B;GAC9E;IAAE,MAAM;IAAS,OAAO;IAAe,aAAa;GAAS;GAC7D;IAAE,MAAM;IAAa,OAAO;GAAuB;GACnD;IACE,MAAM;IACN,OAAO;IACP,SAAS,CACP;KAAE,OAAO;KAAS,OAAO;IAAQ,GACjC;KAAE,OAAO;KAAW,OAAO;IAAU,CACvC;GACF;GACA;IACE,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;KAAE,OAAO;KAAc,QAAQ;KAAS,SAAS;IAAQ;GACnE;GACA;IACE,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;KAAE,OAAO;KAAc,QAAQ;KAAW,SAAS;IAAQ;GACrE;GACA;IACE,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;KAAE,OAAO;KAAc,QAAQ;KAAW,SAAS;IAAQ;GACrE;EACF;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ,CACN;GAAE,MAAM;GAAQ,OAAO;GAAsB,aAAa;EAA8B,GACxF;GAAE,MAAM;GAAS,OAAO;GAAgB,QAAQ;EAAK,CACvD;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ;GACN;IAAE,MAAM;IAAW,OAAO;IAAuB,aAAa;GAA4B;GAC1F;IAAE,MAAM;IAAa,OAAO;GAAa;GACzC;IAAE,MAAM;IAAe,OAAO;IAAe,aAAa;GAAO;GACjE;IAAE,MAAM;IAAc,OAAO;IAAqB,aAAa;GAAI;GACnE;IAAE,MAAM;IAAY,OAAO;IAA8B,QAAQ;GAAK;GACtE;IAAE,MAAM;IAAgB,OAAO;IAAkC,QAAQ;GAAK;EAChF;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ;GACN;IAAE,MAAM;IAAa,OAAO;IAAc,aAAa;GAAW;GAClE;IAAE,MAAM;IAAY,OAAO;IAAyB,QAAQ;GAAK;GACjE;IACE,MAAM;IACN,UAAU;IACV,OAAO;IACP,QAAQ;GACV;GACA;IACE,MAAM;IACN,UAAU;IACV,OAAO;IACP,QAAQ;GACV;EACF;CACF;CACA;EACE,OAAO;EACP,OAAO;EACP,gBAAgB;EAChB,aAAa;EACb,QAAQ,CACN;GACE,MAAM;GACN,UAAU;GACV,OAAO;GACP,aAAa;EACf,GACA;GACE,MAAM;GACN,OAAO;GACP,QAAQ;GACR,WAAW;GACX,aAAa;EACf,CACF;CACF;AACF;AAEA,SAAgBC,EAAqB,GAA+C;CAClF,OACED,EAAwB,MAAM,MAAUE,EAAM,UAAUC,CAAK,KAC5DH,EAAwB;AAE7B;AAMA,SAAgBI,EACd,GACA,GACA,GACyE;CACzE,IAAMC,IAAiC,CAAC,GAClCC,IAAsC,CAAC;CAC7C,KAAK,IAAMC,KAASC,EAAW,QAAQ;EACrC,IAAI,CAACC,EAAQF,CAAK,GAAG;EACrB,IAAMJ,KAASO,EAAOH,EAAM,SAASA,EAAM,UAAU,EAAE,EAAE,SAAS,GAAA,CAAI,KAAK;EAC3E,AAAKJ,MACDI,EAAM,SAAQ,EAAYA,EAAM,QAAQJ,IACvC,EAAOI,EAAM,QAAQJ;CAC5B;CACA,OAAO;EAAE;EAAQ;CAAY;AAC/B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * How an actor id reads on screen. With the FluidGrids layout the signed-in
3
+ * person shows as "You (email)" instead of a raw id (BOFF-11871). Other
4
+ * people still show their stored id: the security service returns ids only,
5
+ * and a member may only look up their own profile, so names for everyone
6
+ * else need the service to return them (backend follow-up).
7
+ * Without the FluidGrids layout the id is returned unchanged.
8
+ */
9
+ export declare function useActorLabel(): (actorId: string | null | undefined) => string;
@@ -0,0 +1,18 @@
1
+ import { SecurityContext as e } from "../providers/securityContext.js";
2
+ import { useTr as t } from "./useTr.js";
3
+ import { use as n, useCallback as r } from "react";
4
+ // src/security/hooks/useActorLabel.ts
5
+ function i() {
6
+ let i = n(e), a = t(), o = i?.variant === "fluidgrids", s = i?.currentUser;
7
+ return r((e) => {
8
+ let t = e ?? "";
9
+ return o && s?.id && t === s.id ? a("security.common.actor.you", "You ({{email}})", { email: s.email }) : t;
10
+ }, [
11
+ o,
12
+ s,
13
+ a
14
+ ]);
15
+ }
16
+ export { i as useActorLabel };
17
+
18
+ //# sourceMappingURL=useActorLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActorLabel.js","names":["useActorLabel","context","use","SecurityContext","tr","useTr","isFluidgrids","currentUser","useCallback","id","actorId"],"sources":["../../../src/security/hooks/useActorLabel.ts"],"sourcesContent":["import { useCallback, use } from 'react';\nimport { SecurityContext } from '../providers/securityContext';\nimport { useTr } from './useTr';\n\n/**\n * How an actor id reads on screen. With the FluidGrids layout the signed-in\n * person shows as \"You (email)\" instead of a raw id (BOFF-11871). Other\n * people still show their stored id: the security service returns ids only,\n * and a member may only look up their own profile, so names for everyone\n * else need the service to return them (backend follow-up).\n * Without the FluidGrids layout the id is returned unchanged.\n */\nexport function useActorLabel(): (actorId: string | null | undefined) => string {\n const context = use(SecurityContext);\n const tr = useTr();\n const isFluidgrids = context?.variant === 'fluidgrids';\n const currentUser = context?.currentUser;\n return useCallback(\n (actorId) => {\n const id = actorId ?? '';\n if (isFluidgrids && currentUser?.id && id === currentUser.id) {\n return tr('security.common.actor.you', 'You ({{email}})', { email: currentUser.email });\n }\n return id;\n },\n [isFluidgrids, currentUser, tr]\n );\n}\n"],"mappings":";;;;AAYA,SAAgBA,IAAgE;CAC9E,IAAMC,IAAUC,EAAIC,CAAe,GAC7BC,IAAKC,EAAM,GACXC,IAAeL,GAAS,YAAY,cACpCM,IAAcN,GAAS;CAC7B,OAAOO,GACJ,MAAY;EACX,IAAMC,IAAKC,KAAW;EAItB,OAHIJ,KAAgBC,GAAa,MAAME,MAAOF,EAAY,KACjDH,EAAG,6BAA6B,mBAAmB,EAAE,OAAOG,EAAY,MAAM,CAAC,IAEjFE;CACT,GACA;EAACH;EAAcC;EAAaH;CAAE,CAChC;AACF"}
@@ -0,0 +1,2 @@
1
+ /** `value`, updated only after it has stopped changing for `delayMs` (search boxes). */
2
+ export declare function useDebouncedValue<T>(value: T, delayMs?: number): T;
@@ -0,0 +1,12 @@
1
+ import { useEffect as e, useState as t } from "react";
2
+ // src/security/hooks/useDebouncedValue.ts
3
+ function n(n, r = 300) {
4
+ let [i, a] = t(n);
5
+ return e(() => {
6
+ let e = setTimeout(() => a(n), r);
7
+ return () => clearTimeout(e);
8
+ }, [n, r]), i;
9
+ }
10
+ export { n as useDebouncedValue };
11
+
12
+ //# sourceMappingURL=useDebouncedValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebouncedValue.js","names":["useDebouncedValue","debounced","setDebounced","useState","value","useEffect","id","delayMs"],"sources":["../../../src/security/hooks/useDebouncedValue.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\n/** `value`, updated only after it has stopped changing for `delayMs` (search boxes). */\nexport function useDebouncedValue<T>(value: T, delayMs = 300): T {\n const [debounced, setDebounced] = useState(value);\n useEffect(() => {\n const id = setTimeout(() => setDebounced(value), delayMs);\n return () => clearTimeout(id);\n }, [value, delayMs]);\n return debounced;\n}\n"],"mappings":";;AAGA,SAAgBA,EAAqB,GAAU,IAAU,KAAQ;CAC/D,IAAM,CAACC,GAAWC,KAAgBC,EAASC,CAAK;CAKhD,OAJAC,QAAgB;EACd,IAAMC,IAAK,iBAAiBJ,EAAaE,CAAK,GAAGG,CAAO;EACxD,aAAa,aAAaD,CAAE;CAC9B,GAAG,CAACF,GAAOG,CAAO,CAAC,GACZN;AACT"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * True when the host opted in to FluidGrids' Navigation v2 layout
3
+ * (`variant="fluidgrids"` on the module root, BOFF-11871). Every layout
4
+ * change in this module is gated on it, so other apps render exactly as
5
+ * before. Outside a SecurityProvider (the public share viewer) it is false.
6
+ */
7
+ export declare function useIsFluidgridsVariant(): boolean;
@@ -0,0 +1,9 @@
1
+ import { SecurityContext as e } from "../providers/securityContext.js";
2
+ import { use as t } from "react";
3
+ // src/security/hooks/useSecurityVariant.ts
4
+ function n() {
5
+ return t(e)?.variant === "fluidgrids";
6
+ }
7
+ export { n as useIsFluidgridsVariant };
8
+
9
+ //# sourceMappingURL=useSecurityVariant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSecurityVariant.js","names":["useIsFluidgridsVariant","use","SecurityContext"],"sources":["../../../src/security/hooks/useSecurityVariant.ts"],"sourcesContent":["import { use } from 'react';\nimport { SecurityContext } from '../providers/securityContext';\n\n/**\n * True when the host opted in to FluidGrids' Navigation v2 layout\n * (`variant=\"fluidgrids\"` on the module root, BOFF-11871). Every layout\n * change in this module is gated on it, so other apps render exactly as\n * before. Outside a SecurityProvider (the public share viewer) it is false.\n */\nexport function useIsFluidgridsVariant(): boolean {\n const context = use(SecurityContext);\n return context?.variant === 'fluidgrids';\n}\n"],"mappings":";;;AASA,SAAgBA,IAAkC;CAEhD,OADgBC,EAAIC,CACb,CAAA,EAAS,YAAY;AAC9B"}
@@ -26,7 +26,7 @@ export { SecurityRoot } from './SecurityRoot';
26
26
  export { SecurityUserRoot } from './SecurityUserRoot';
27
27
  export { SecurityAdminRoot } from './SecurityAdminRoot';
28
28
  export { VaultShareViewer } from './pages/VaultShareViewer';
29
- export type { SecurityRootProps, SecurityUserRootProps, SecurityAdminRootProps, SecurityMode, Vault, Secret, SecretValue, SecretVersion, VaultMember, AuditLogEntry, ProviderConnection, SecurityDashboard, VaultFilter, SecretFilter, AuditFilter, } from './types';
29
+ export type { SecurityRootProps, SecurityUserRootProps, SecurityAdminRootProps, SecurityMode, SecurityVariant, Vault, Secret, SecretValue, SecretVersion, VaultMember, AuditLogEntry, ProviderConnection, SecurityDashboard, VaultFilter, SecretFilter, AuditFilter, } from './types';
30
30
  export { useSecurity } from './providers/SecurityProvider';
31
31
  export { useSecurityStore } from './store/securityStore';
32
32
  export { securityEnTranslations } from './translations';
@@ -4,144 +4,145 @@ import { useGetVaults as i } from "../hooks/useVaultQueries.js";
4
4
  import { useSecurity as a } from "../providers/SecurityProvider.js";
5
5
  import { getVaultRoleInfo as o } from "../constants/permissions.js";
6
6
  import { useTr as s } from "../hooks/useTr.js";
7
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
- import { AlertTriangle as u, Loader2 as d, Lock as f, Shield as p } from "lucide-react";
9
- import { EmphasisPanel as m, IllustratedEmptyState as h, PagePurpose as g, ResponsiveTable as _ } from "@burdenoff/fe-libs/ui";
7
+ import { useActorLabel as c } from "../hooks/useActorLabel.js";
8
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { AlertTriangle as d, Loader2 as f, Lock as p, Shield as m } from "lucide-react";
10
+ import { EmphasisPanel as h, IllustratedEmptyState as g, PagePurpose as _, ResponsiveTable as v } from "@burdenoff/fe-libs/ui";
10
11
  // src/security/pages/AccessReviewPage.tsx
11
- function v() {
12
- let { basePath: v = "/" } = a(), y = s(), { data: b, loading: x, error: S, refetch: C } = i(void 0, { limit: 100 }), w = b?.getVaults?.items ?? [];
13
- return x ? /* @__PURE__ */ c(e, {
14
- title: y("security.accessReview.title", "Access Review"),
12
+ function y() {
13
+ let y = c(), { basePath: b = "/" } = a(), x = s(), { data: S, loading: C, error: w, refetch: T } = i(void 0, { limit: 100 }), E = S?.getVaults?.items ?? [];
14
+ return C ? /* @__PURE__ */ l(e, {
15
+ title: x("security.accessReview.title", "Access Review"),
15
16
  breadcrumbs: [{
16
- label: y("security.common.breadcrumbs.security", "Security"),
17
- path: v
18
- }, { label: y("security.accessReview.title", "Access Review") }],
19
- children: /* @__PURE__ */ c("div", {
17
+ label: x("security.common.breadcrumbs.security", "Security"),
18
+ path: b
19
+ }, { label: x("security.accessReview.title", "Access Review") }],
20
+ children: /* @__PURE__ */ l("div", {
20
21
  className: "flex items-center justify-center py-16",
21
- children: /* @__PURE__ */ c(d, { className: "size-8 animate-spin text-primary" })
22
+ children: /* @__PURE__ */ l(f, { className: "size-8 animate-spin text-primary" })
22
23
  })
23
- }) : S ? /* @__PURE__ */ c(e, {
24
- title: y("security.accessReview.title", "Access Review"),
24
+ }) : w ? /* @__PURE__ */ l(e, {
25
+ title: x("security.accessReview.title", "Access Review"),
25
26
  breadcrumbs: [{
26
- label: y("security.common.breadcrumbs.security", "Security"),
27
- path: v
28
- }, { label: y("security.accessReview.title", "Access Review") }],
29
- children: /* @__PURE__ */ c(r, {
27
+ label: x("security.common.breadcrumbs.security", "Security"),
28
+ path: b
29
+ }, { label: x("security.accessReview.title", "Access Review") }],
30
+ children: /* @__PURE__ */ l(r, {
30
31
  className: "p-6",
31
- children: /* @__PURE__ */ l("div", {
32
+ children: /* @__PURE__ */ u("div", {
32
33
  className: "flex items-start gap-4",
33
- children: [/* @__PURE__ */ c(u, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ l("div", { children: [
34
- /* @__PURE__ */ c("h3", {
34
+ children: [/* @__PURE__ */ l(d, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ u("div", { children: [
35
+ /* @__PURE__ */ l("h3", {
35
36
  className: "font-semibold text-status-error-text",
36
- children: y("security.accessReview.error", "Failed to load access data")
37
+ children: x("security.accessReview.error", "Failed to load access data")
37
38
  }),
38
- /* @__PURE__ */ c("p", {
39
+ /* @__PURE__ */ l("p", {
39
40
  className: "text-sm text-text-secondary mt-1",
40
- children: S.message
41
+ children: w.message
41
42
  }),
42
- /* @__PURE__ */ c(n, {
43
+ /* @__PURE__ */ l(n, {
43
44
  variant: "outline",
44
45
  size: "sm",
45
46
  className: "mt-3",
46
- onClick: () => C(),
47
- children: y("security.accessReview.retry", "Retry")
47
+ onClick: () => T(),
48
+ children: x("security.accessReview.retry", "Retry")
48
49
  })
49
50
  ] })]
50
51
  })
51
52
  })
52
- }) : /* @__PURE__ */ c(e, {
53
- title: y("security.accessReview.title", "Access Review"),
54
- description: y("security.accessReview.description", "Review who has access to each vault and their permission levels."),
53
+ }) : /* @__PURE__ */ l(e, {
54
+ title: x("security.accessReview.title", "Access Review"),
55
+ description: x("security.accessReview.description", "Review who has access to each vault and their permission levels."),
55
56
  breadcrumbs: [{
56
- label: y("security.common.breadcrumbs.security", "Security"),
57
- path: v
58
- }, { label: y("security.accessReview.title", "Access Review") }],
59
- children: w.length === 0 ? /* @__PURE__ */ l("div", {
57
+ label: x("security.common.breadcrumbs.security", "Security"),
58
+ path: b
59
+ }, { label: x("security.accessReview.title", "Access Review") }],
60
+ children: E.length === 0 ? /* @__PURE__ */ u("div", {
60
61
  className: "space-y-6",
61
- children: [/* @__PURE__ */ c(g, {
62
- icon: /* @__PURE__ */ c(p, { className: "size-4" }),
63
- children: y("security.accessReview.purpose", "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit.")
64
- }), /* @__PURE__ */ c(h, {
62
+ children: [/* @__PURE__ */ l(_, {
63
+ icon: /* @__PURE__ */ l(m, { className: "size-4" }),
64
+ children: x("security.accessReview.purpose", "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit.")
65
+ }), /* @__PURE__ */ l(g, {
65
66
  illustration: "empty-people",
66
- title: y("security.accessReview.noVaults", "No vaults to review"),
67
- description: y("security.accessReview.noVaultsDescription", "Create vaults and share them with team members to see access details here.")
67
+ title: x("security.accessReview.noVaults", "No vaults to review"),
68
+ description: x("security.accessReview.noVaultsDescription", "Create vaults and share them with team members to see access details here.")
68
69
  })]
69
- }) : /* @__PURE__ */ l("div", {
70
+ }) : /* @__PURE__ */ u("div", {
70
71
  className: "space-y-6",
71
72
  children: [
72
- /* @__PURE__ */ c(g, {
73
- icon: /* @__PURE__ */ c(p, { className: "size-4" }),
74
- children: y("security.accessReview.purpose", "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit.")
73
+ /* @__PURE__ */ l(_, {
74
+ icon: /* @__PURE__ */ l(m, { className: "size-4" }),
75
+ children: x("security.accessReview.purpose", "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit.")
75
76
  }),
76
- /* @__PURE__ */ c(m, { children: /* @__PURE__ */ l("div", {
77
+ /* @__PURE__ */ l(h, { children: /* @__PURE__ */ u("div", {
77
78
  className: "flex flex-wrap items-center gap-x-8 gap-y-3",
78
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
79
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
79
80
  className: "text-xs uppercase tracking-wider font-semibold text-text-secondary",
80
- children: y("security.accessReview.vaultsUnderReview", "Vaults under review")
81
- }), /* @__PURE__ */ c("p", {
81
+ children: x("security.accessReview.vaultsUnderReview", "Vaults under review")
82
+ }), /* @__PURE__ */ l("p", {
82
83
  className: "text-2xl font-bold text-text-primary tabular-nums",
83
- children: w.length
84
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
84
+ children: E.length
85
+ })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
85
86
  className: "text-xs uppercase tracking-wider font-semibold text-text-secondary",
86
- children: y("security.accessReview.totalAccessGrants", "Total access grants")
87
- }), /* @__PURE__ */ c("p", {
87
+ children: x("security.accessReview.totalAccessGrants", "Total access grants")
88
+ }), /* @__PURE__ */ l("p", {
88
89
  className: "text-2xl font-bold text-text-primary tabular-nums",
89
- children: w.reduce((e, t) => e + (t.members?.length ?? 0), 0)
90
+ children: E.reduce((e, t) => e + (t.members?.length ?? 0), 0)
90
91
  })] })]
91
92
  }) }),
92
- /* @__PURE__ */ c("div", {
93
+ /* @__PURE__ */ l("div", {
93
94
  className: "space-y-4",
94
- children: w.map((e) => {
95
+ children: E.map((e) => {
95
96
  let n = e.members ?? [], i = e.status === "LOCKED";
96
- return /* @__PURE__ */ l(r, {
97
+ return /* @__PURE__ */ u(r, {
97
98
  className: "p-5",
98
- children: [/* @__PURE__ */ l("div", {
99
+ children: [/* @__PURE__ */ u("div", {
99
100
  className: "flex items-center justify-between mb-4",
100
- children: [/* @__PURE__ */ l("div", {
101
+ children: [/* @__PURE__ */ u("div", {
101
102
  className: "flex items-center gap-3",
102
- children: [i ? /* @__PURE__ */ c(f, { className: "size-5 text-status-warning-text" }) : /* @__PURE__ */ c(p, { className: "size-5 text-primary" }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h3", {
103
+ children: [i ? /* @__PURE__ */ l(p, { className: "size-5 text-status-warning-text" }) : /* @__PURE__ */ l(m, { className: "size-5 text-primary" }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("h3", {
103
104
  className: "font-semibold text-text-primary",
104
105
  children: e.name
105
- }), /* @__PURE__ */ l("p", {
106
+ }), /* @__PURE__ */ u("p", {
106
107
  className: "text-xs text-text-secondary",
107
108
  children: [
108
109
  n.length,
109
110
  " ",
110
- n.length === 1 ? y("security.accessReview.member", "member") : y("security.accessReview.members", "members")
111
+ n.length === 1 ? x("security.accessReview.member", "member") : x("security.accessReview.members", "members")
111
112
  ]
112
113
  })] })]
113
- }), /* @__PURE__ */ c(t, {
114
+ }), /* @__PURE__ */ l(t, {
114
115
  variant: i ? "warning" : "success",
115
- children: i ? y("security.common.status.locked", "Locked") : y("security.common.status.active", "Active")
116
+ children: i ? x("security.common.status.locked", "Locked") : x("security.common.status.active", "Active")
116
117
  })]
117
- }), n.length > 0 ? /* @__PURE__ */ c(_, {
118
+ }), n.length > 0 ? /* @__PURE__ */ l(v, {
118
119
  className: "border border-border-subtle/60 rounded-lg",
119
120
  data: n,
120
121
  rowKey: (e) => e.id,
121
122
  columns: [
122
123
  {
123
124
  key: "actor",
124
- header: y("security.accessReview.actor", "Actor"),
125
+ header: x("security.accessReview.actor", "Actor"),
125
126
  priority: "primary",
126
- cell: (e) => /* @__PURE__ */ c("span", {
127
+ cell: (e) => /* @__PURE__ */ l("span", {
127
128
  className: "font-medium text-text-primary",
128
- children: e.actorId
129
+ children: y(e.actorId)
129
130
  })
130
131
  },
131
132
  {
132
133
  key: "type",
133
- header: y("security.accessReview.type", "Type"),
134
- cell: (e) => /* @__PURE__ */ c("span", {
134
+ header: x("security.accessReview.type", "Type"),
135
+ cell: (e) => /* @__PURE__ */ l("span", {
135
136
  className: "text-text-secondary capitalize",
136
137
  children: e.actorType
137
138
  })
138
139
  },
139
140
  {
140
141
  key: "role",
141
- header: y("security.accessReview.role", "Role"),
142
+ header: x("security.accessReview.role", "Role"),
142
143
  cell: (e) => {
143
144
  let n = o(e.role.toLowerCase());
144
- return /* @__PURE__ */ c(t, {
145
+ return /* @__PURE__ */ l(t, {
145
146
  variant: "outline",
146
147
  className: "text-[10px] uppercase font-bold tracking-tighter",
147
148
  children: n.label
@@ -150,16 +151,16 @@ function v() {
150
151
  },
151
152
  {
152
153
  key: "since",
153
- header: y("security.accessReview.since", "Since"),
154
- cell: (e) => /* @__PURE__ */ c("span", {
154
+ header: x("security.accessReview.since", "Since"),
155
+ cell: (e) => /* @__PURE__ */ l("span", {
155
156
  className: "text-text-secondary",
156
157
  children: new Date(e.createdAt).toLocaleDateString()
157
158
  })
158
159
  }
159
160
  ]
160
- }) : /* @__PURE__ */ c("p", {
161
+ }) : /* @__PURE__ */ l("p", {
161
162
  className: "text-sm text-text-secondary text-center py-3 bg-bg-sunken/10 rounded-lg border border-dashed border-border-subtle",
162
- children: y("security.accessReview.noAdditionalMembers", "No additional members. Only the vault creator has access.")
163
+ children: x("security.accessReview.noAdditionalMembers", "No additional members. Only the vault creator has access.")
163
164
  })]
164
165
  }, e.id);
165
166
  })
@@ -168,6 +169,6 @@ function v() {
168
169
  })
169
170
  });
170
171
  }
171
- export { v as AccessReviewPage };
172
+ export { y as AccessReviewPage };
172
173
 
173
174
  //# sourceMappingURL=AccessReviewPage.js.map