@coffre/ui 0.4.4 → 0.4.6

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 (85) hide show
  1. package/dist/chunks/{audit-sentence-BhHmvQX_.js → audit-sentence-DIztXvbU.js} +11 -2
  2. package/dist/chunks/audit-sentence-DIztXvbU.js.map +1 -0
  3. package/dist/chunks/{connected-apps-D8Df97-F.js → connected-apps-AZsX9Zvv.js} +2 -2
  4. package/dist/chunks/{connected-apps-D8Df97-F.js.map → connected-apps-AZsX9Zvv.js.map} +1 -1
  5. package/dist/chunks/{delete-place-LYN7z7xb.js → delete-place-D6LIZkg9.js} +4 -4
  6. package/dist/chunks/delete-place-D6LIZkg9.js.map +1 -0
  7. package/dist/chunks/{directory-v87HGjEn.js → directory-B6FuiCir.js} +5 -5
  8. package/dist/chunks/directory-B6FuiCir.js.map +1 -0
  9. package/dist/chunks/{folders-CbGU0xOz.js → folders-DvSqBhuu.js} +3 -3
  10. package/dist/chunks/folders-DvSqBhuu.js.map +1 -0
  11. package/dist/chunks/{offboarding-DdnmRV1f.js → offboarding-CLJaNTcD.js} +6 -6
  12. package/dist/chunks/offboarding-CLJaNTcD.js.map +1 -0
  13. package/dist/chunks/{principal-page-BubEO6-b.js → principal-page-1yMztIcc.js} +8 -8
  14. package/dist/chunks/principal-page-1yMztIcc.js.map +1 -0
  15. package/dist/chunks/{references-DPSYdWOk.js → references-DWDnXNoW.js} +3 -3
  16. package/dist/chunks/references-DWDnXNoW.js.map +1 -0
  17. package/dist/index.d.ts +5 -0
  18. package/dist/index.js +2 -2
  19. package/dist/index.js.map +1 -1
  20. package/dist/pages/account.js +8 -8
  21. package/dist/pages/account.js.map +1 -1
  22. package/dist/pages/approval.js +55 -23
  23. package/dist/pages/approval.js.map +1 -1
  24. package/dist/pages/audit.js +4 -4
  25. package/dist/pages/audit.js.map +1 -1
  26. package/dist/pages/device-login.js +5 -4
  27. package/dist/pages/device-login.js.map +1 -1
  28. package/dist/pages/environment.js +9 -13
  29. package/dist/pages/environment.js.map +1 -1
  30. package/dist/pages/login.js +3 -3
  31. package/dist/pages/login.js.map +1 -1
  32. package/dist/pages/oauth-authorize.js +9 -14
  33. package/dist/pages/oauth-authorize.js.map +1 -1
  34. package/dist/pages/project-access.js +2 -2
  35. package/dist/pages/project-environments.js +7 -7
  36. package/dist/pages/project-environments.js.map +1 -1
  37. package/dist/pages/project-settings.js +6 -6
  38. package/dist/pages/project-settings.js.map +1 -1
  39. package/dist/pages/project.js +1 -1
  40. package/dist/pages/project.js.map +1 -1
  41. package/dist/pages/projects.js +4 -4
  42. package/dist/pages/projects.js.map +1 -1
  43. package/dist/pages/service-account.js +5 -5
  44. package/dist/pages/service-account.js.map +1 -1
  45. package/dist/pages/service-accounts.js +2 -2
  46. package/dist/pages/settings.js +4 -4
  47. package/dist/pages/settings.js.map +1 -1
  48. package/dist/pages/unregistered.js +3 -3
  49. package/dist/pages/unregistered.js.map +1 -1
  50. package/dist/pages/user.js +1 -1
  51. package/dist/pages/users.js +2 -2
  52. package/package.json +3 -3
  53. package/src/components/connected-apps.tsx +1 -1
  54. package/src/components/delete-place.tsx +4 -5
  55. package/src/components/directory.tsx +5 -6
  56. package/src/components/folders.tsx +2 -2
  57. package/src/components/offboarding.tsx +5 -5
  58. package/src/components/principal-page.tsx +3 -3
  59. package/src/components/references.tsx +2 -2
  60. package/src/components/route-states.tsx +4 -5
  61. package/src/components/service-tokens.tsx +1 -1
  62. package/src/components/trusted-workloads.tsx +3 -3
  63. package/src/lib/approval.ts +23 -0
  64. package/src/lib/audit-sentences.ts +5 -0
  65. package/src/pages/account.tsx +7 -7
  66. package/src/pages/approval.tsx +21 -20
  67. package/src/pages/audit.tsx +3 -3
  68. package/src/pages/device-login.tsx +3 -5
  69. package/src/pages/environment.tsx +8 -15
  70. package/src/pages/login.tsx +5 -10
  71. package/src/pages/oauth-authorize.tsx +7 -11
  72. package/src/pages/project-environments.tsx +6 -6
  73. package/src/pages/project-settings.tsx +5 -7
  74. package/src/pages/project.tsx +2 -2
  75. package/src/pages/projects.tsx +3 -3
  76. package/src/pages/settings.tsx +4 -4
  77. package/src/pages/unregistered.tsx +3 -5
  78. package/src/styles/globals.css +12 -7
  79. package/dist/chunks/audit-sentence-BhHmvQX_.js.map +0 -1
  80. package/dist/chunks/delete-place-LYN7z7xb.js.map +0 -1
  81. package/dist/chunks/directory-v87HGjEn.js.map +0 -1
  82. package/dist/chunks/folders-CbGU0xOz.js.map +0 -1
  83. package/dist/chunks/offboarding-DdnmRV1f.js.map +0 -1
  84. package/dist/chunks/principal-page-BubEO6-b.js.map +0 -1
  85. package/dist/chunks/references-DPSYdWOk.js.map +0 -1
@@ -8,8 +8,8 @@ import { t as useShell } from "../chunks/use-shell-Dkv89nW1.js";
8
8
  import { D as hasSecretEditConflict, O as secretChangeFor, S as restoreSecret, T as saveSecrets, _ as moveSecret, a as archiveSecret, n as useChangeStatus, r as UnsavedEdits, t as useChange } from "../chunks/use-change-C4bGRhHY.js";
9
9
  import { t as pageRoute } from "../chunks/page-route-Drfw7lmn.js";
10
10
  import { a as useAction, r as secretKeyProblem } from "../chunks/validation-DvPinn8V.js";
11
- import { n as FolderRow, r as MoveToFolder, t as FolderMenu } from "../chunks/folders-CbGU0xOz.js";
12
- import { i as ReferenceValue, n as LentReferences, o as archiveBlockers, r as MakeReference, t as ArchiveBlocked } from "../chunks/references-DPSYdWOk.js";
11
+ import { n as FolderRow, r as MoveToFolder, t as FolderMenu } from "../chunks/folders-DvSqBhuu.js";
12
+ import { i as ReferenceValue, n as LentReferences, o as archiveBlockers, r as MakeReference, t as ArchiveBlocked } from "../chunks/references-DWDnXNoW.js";
13
13
  import { useEffect, useRef, useState } from "react";
14
14
  import { Link } from "@tanstack/react-router";
15
15
  import { toast } from "sonner";
@@ -503,7 +503,7 @@ function EnvironmentLedger({ project, environment, permissions, keys: keys$1 })
503
503
  "aria-label": "Secrets",
504
504
  children: active.length === 0 && drafts.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
505
505
  title: "No secrets yet",
506
- children: canWrite ? "Add them one by one, or import an existing .env file. Nothing is written until you save, or until you have seen the import plan." : "Nothing has been written to this environment, and adding the first secret needs secret.write."
506
+ children: canWrite ? "Add them one by one, or import a .env file." : "Adding secrets here needs secret.write."
507
507
  }) : /* @__PURE__ */ jsx("div", {
508
508
  className: "dt-wrap",
509
509
  children: /* @__PURE__ */ jsxs("table", {
@@ -1332,7 +1332,7 @@ function DraftRow({ draft, existingVersion, disabled, onChange, onRemove, onSave
1332
1332
  }
1333
1333
  }), (keyProblem !== null || isNewVersion) && /* @__PURE__ */ jsx("span", {
1334
1334
  className: `edit-note${keyProblem !== null ? " edit-note-error" : ""}`,
1335
- children: keyProblem ?? "This name already exists here. Saving appends a new version to it rather than creating a second secret."
1335
+ children: keyProblem ?? "This name exists here already. Saving adds a new version to it."
1336
1336
  })]
1337
1337
  })
1338
1338
  }),
@@ -1596,9 +1596,9 @@ function VersionHistory({ project, environment, secretKey, currentVersion, canWr
1596
1596
  "?"
1597
1597
  ] }),
1598
1598
  body: /* @__PURE__ */ jsxs(Fragment$1, { children: [
1599
- "The current pointer moves to v",
1599
+ "v",
1600
1600
  version.version,
1601
- ". Nothing is copied or deleted, every version stays readable, and the next write continues the numbering forward. Anything reading",
1601
+ " becomes current, and anything reading",
1602
1602
  " ",
1603
1603
  /* @__PURE__ */ jsxs("span", {
1604
1604
  className: "mono",
@@ -1609,7 +1609,7 @@ function VersionHistory({ project, environment, secretKey, currentVersion, canWr
1609
1609
  ]
1610
1610
  }),
1611
1611
  " ",
1612
- "picks up the change immediately."
1612
+ "gets it at once. Every version stays."
1613
1613
  ] }),
1614
1614
  confirmLabel: `Roll back to v${version.version}`,
1615
1615
  destructive: false,
@@ -1631,10 +1631,6 @@ function VersionHistory({ project, environment, secretKey, currentVersion, canWr
1631
1631
  error !== null && /* @__PURE__ */ jsx("div", {
1632
1632
  className: "history-body",
1633
1633
  children: /* @__PURE__ */ jsx(ErrorLine, { error })
1634
- }),
1635
- /* @__PURE__ */ jsx("p", {
1636
- className: "history-note",
1637
- children: "Metadata only. Listing versions decrypts nothing."
1638
1634
  })
1639
1635
  ]
1640
1636
  });
@@ -1728,7 +1724,7 @@ function ImportEnv({ project, environment }) {
1728
1724
  })
1729
1725
  ] }),
1730
1726
  wide: true,
1731
- description: /* @__PURE__ */ jsx(Fragment$1, { children: "Paste a .env file. It is read by the CLI’s own parser, so this page and the CLI cannot disagree about what it means, and malformed lines are reported rather than guessed at. coffre compares it with the current values without sending any to this page." }),
1727
+ description: /* @__PURE__ */ jsx(Fragment$1, { children: "Paste a .env file. coffre parses it as the CLI does and compares it with the current values, without sending them to this page." }),
1732
1728
  children: /* @__PURE__ */ jsxs("div", {
1733
1729
  className: "form",
1734
1730
  style: { marginTop: "1.25rem" },
@@ -1786,7 +1782,7 @@ function ImportEnv({ project, environment }) {
1786
1782
  }),
1787
1783
  plan !== null && plan.entries.length > 0 && changes.length === 0 && /* @__PURE__ */ jsx(Notice, {
1788
1784
  tone: "good",
1789
- children: "Every key already has this value. There is nothing to write."
1785
+ children: "Every key already has this value."
1790
1786
  }),
1791
1787
  problems.length > 0 && /* @__PURE__ */ jsxs(Notice, {
1792
1788
  tone: "bad",