@coffre/ui 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/_coffre/assets/account-CyJDFhek.js +2 -0
- package/dist/client/_coffre/assets/account-DHSs5h2f.js +1 -0
- package/dist/client/_coffre/assets/affordances-BQD5B421.js +1 -0
- package/dist/client/_coffre/assets/audit-Bcyp_dU1.js +2 -0
- package/dist/client/_coffre/assets/audit-rMy9mU9Q.js +1 -0
- package/dist/client/_coffre/assets/auth.device-DuvaComb.js +1 -0
- package/dist/client/_coffre/assets/{auth.device-CWHNQn9W.js → auth.device-yBt_sLZW.js} +2 -2
- package/dist/client/_coffre/assets/directory-C4BMGC7-.js +1 -0
- package/dist/client/_coffre/assets/dist-BNkBTkxj.js +1 -0
- package/dist/client/_coffre/assets/{globals-CKBoTlyH.css → globals-BJkzu6T5.css} +1 -1
- package/dist/client/_coffre/assets/{grants-CjoOnxzz.js → grants-CyDW25eX.js} +1 -1
- package/dist/client/_coffre/assets/icons-BRl8DlXW.js +1 -0
- package/dist/client/_coffre/assets/{index-CUGytaO3.js → index-CA1mtrIx.js} +5 -5
- package/dist/client/_coffre/assets/link-CqlAJWBd.js +1 -0
- package/dist/client/_coffre/assets/login-B73b6bsJ.js +1 -0
- package/dist/client/_coffre/assets/login-BO1KAGPU.js +2 -0
- package/dist/client/_coffre/assets/offboarding--5vSKNHv.js +1 -0
- package/dist/client/_coffre/assets/page-Dngv8FMr.js +1 -0
- package/dist/client/_coffre/assets/preload-helper-DBha3tys.js +1 -0
- package/dist/client/_coffre/assets/principal-page-C4qDD-d8.js +1 -0
- package/dist/client/_coffre/assets/projects._project._environment-eBKxOZ0_.js +2 -0
- package/dist/client/_coffre/assets/projects._project._environment-or_AX6o5.js +3 -0
- package/dist/client/_coffre/assets/projects._project.index-DHdXfEh-.js +2 -0
- package/dist/client/_coffre/assets/projects._project.index-iynQgenH.js +1 -0
- package/dist/client/_coffre/assets/projects.index-CGW8mRil.js +1 -0
- package/dist/client/_coffre/assets/row-state-BlarvG7E.js +1 -0
- package/dist/client/_coffre/assets/{settings-D2zp1Ssu.js → settings-D-7RJIDf.js} +1 -1
- package/dist/client/_coffre/assets/suspense-q_eJaZ18.js +1 -0
- package/dist/client/_coffre/assets/tokens._token-0u7midqA.js +2 -0
- package/dist/client/_coffre/assets/tokens._token-C53NqScg.js +1 -0
- package/dist/client/_coffre/assets/{tokens.index-CSi5Wxwf.js → tokens.index-DBZTLnbi.js} +1 -1
- package/dist/client/_coffre/assets/{ui-BdipqGpP.js → ui-BPWFJNz7.js} +3 -3
- package/dist/client/_coffre/assets/{unregistered-CA7B4C1m.js → unregistered-CLhgtwUt.js} +1 -1
- package/dist/client/_coffre/assets/use-action-LULgF26O.js +1 -0
- package/dist/client/_coffre/assets/{use-change-BRRMJocl.js → use-change-Bd6NZJj9.js} +1 -1
- package/dist/client/_coffre/assets/use-shell-Dx92Huhb.js +1 -0
- package/dist/client/_coffre/assets/useQuery-BIIZz1CB.js +1 -0
- package/dist/client/_coffre/assets/useSuspenseQuery-tP9HFZ8w.js +1 -0
- package/dist/client/_coffre/assets/users._user-BXtaL8Ee.js +2 -0
- package/dist/client/_coffre/assets/users._user-CNYVkXaY.js +1 -0
- package/dist/client/_coffre/assets/{users.index-CKnQ1G76.js → users.index-Cs9tibIv.js} +1 -1
- package/dist/server/.vite/manifest.json +205 -206
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-T9tMsCwo.js +162 -0
- package/dist/server/_coffre/assets/{account-BocTPU1J.js → account-BUhhOS5-.js} +8 -8
- package/dist/server/_coffre/assets/{account-CL8hOGhO.js → account-B_h55GCs.js} +4 -4
- package/dist/server/_coffre/assets/{audit-Bcka4vA6.js → audit-B8Ck358-.js} +6 -6
- package/dist/server/_coffre/assets/{audit-CSRQYIhu.js → audit-DFsXfeAQ.js} +2 -2
- package/dist/server/_coffre/assets/{auth.device-DqO0T-rU.js → auth.device-BXf_JjT7.js} +2 -2
- package/dist/server/_coffre/assets/{auth.device-CMcUISZY.js → auth.device-cqjWACvB.js} +4 -4
- package/dist/server/_coffre/assets/{directory-CyYx6Jx1.js → directory-C9SfNgpM.js} +5 -5
- package/dist/server/_coffre/assets/{globals-CKBoTlyH.css → globals-BJkzu6T5.css} +1 -1
- package/dist/server/_coffre/assets/{grants-CRijabX0.js → grants--315KmXu.js} +5 -5
- package/dist/server/_coffre/assets/{icons-Dy-5ccDF.js → icons-CWsTEfpn.js} +123 -241
- package/dist/server/_coffre/assets/{login-BI9tzJEy.js → login-CQSkYW_D.js} +5 -5
- package/dist/server/_coffre/assets/{login-C-v88YwP.js → login-LBpXXfsQ.js} +1 -1
- package/dist/server/_coffre/assets/{offboarding-1H0LavTd.js → offboarding-CykelNis.js} +9 -79
- package/dist/server/_coffre/assets/{page-D_mO0-sn.js → page-BGeDoQO5.js} +3 -64
- package/dist/server/_coffre/assets/{principal-page-DQDoXute.js → principal-page-CRdoAQOq.js} +11 -11
- package/dist/server/_coffre/assets/{projects._project._environment-D_5R40of.js → projects._project._environment-BXU1Mee5.js} +3 -3
- package/dist/server/_coffre/assets/{projects._project._environment-C-yVwC92.js → projects._project._environment-BrDqn8kW.js} +11 -550
- package/dist/server/_coffre/assets/{projects._project.index-A2BImFIT.js → projects._project.index-CAxBU4tY.js} +12 -12
- package/dist/server/_coffre/assets/{projects._project.index-BPPKxKrt.js → projects._project.index-CYyUVTCl.js} +2 -2
- package/dist/server/_coffre/assets/{projects.index-543IsPzY.js → projects.index-D6ZoDE_0.js} +7 -7
- package/dist/server/_coffre/assets/{router-CM3vK8QO.js → router-Bu2qtyqw.js} +20 -20
- package/dist/server/_coffre/assets/{row-state-XBtDoIA4.js → row-state-CAItu3n_.js} +2 -2
- package/dist/server/_coffre/assets/{settings-BLVU74ym.js → settings-ByeF6hBa.js} +3 -3
- package/dist/server/_coffre/assets/{suspense-CzYTwxOj.js → suspense-beD01bb8.js} +1 -1
- package/dist/server/_coffre/assets/{tokens._token-B-hBgwBW.js → tokens._token-CM01QPCq.js} +2 -2
- package/dist/server/_coffre/assets/{tokens._token-aubAUonP.js → tokens._token-D2E4P3Qc.js} +10 -10
- package/dist/server/_coffre/assets/{tokens.index-4D3jwp5v.js → tokens.index-Cmrgn3mU.js} +6 -6
- package/dist/server/_coffre/assets/{ui-BI3Bf72q.js → ui-DvlGkmaH.js} +1 -1
- package/dist/server/_coffre/assets/{unregistered-CagDxMyw.js → unregistered-DSArejP9.js} +3 -3
- package/dist/server/_coffre/assets/{use-action-tzBZvjjQ.js → use-action-C2wz34kq.js} +2 -2
- package/dist/server/_coffre/assets/{use-change-Dggqxy5y.js → use-change-CJpGSNIq.js} +3 -3
- package/dist/server/_coffre/assets/{use-shell-CwStDfzX.js → use-shell-C3iYcyP1.js} +2 -2
- package/dist/server/_coffre/assets/{useQuery-C6_dBjem.js → useQuery-ChxaQ4Cb.js} +2 -2
- package/dist/server/_coffre/assets/{useSuspenseQuery-BuapQt_P.js → useSuspenseQuery-BjAmlGZl.js} +2 -2
- package/dist/server/_coffre/assets/{users._user-C252Iilj.js → users._user-BVeR9fZP.js} +2 -2
- package/dist/server/_coffre/assets/{users._user-137WNyxn.js → users._user-Cih2Etf4.js} +2 -2
- package/dist/server/_coffre/assets/{users.index-DQHsfnal.js → users.index-Bo2_a95G.js} +6 -6
- package/dist/server/index.js +2 -2
- package/package.json +3 -3
- package/src/components/icons.tsx +0 -34
- package/src/components/offboarding.tsx +1 -52
- package/src/lib/coffre.ts +1 -1
- package/src/lib/queries.ts +2 -10
- package/src/routes/projects.$project.$environment.tsx +1 -11
- package/src/shared/models.ts +1 -5
- package/src/styles/globals.css +2 -49
- package/dist/client/_coffre/assets/account-BJAdDvZf.js +0 -2
- package/dist/client/_coffre/assets/account-D0jLpk5c.js +0 -1
- package/dist/client/_coffre/assets/affordances-Bq2-oUB5.js +0 -1
- package/dist/client/_coffre/assets/audit-C-pcBgKe.js +0 -2
- package/dist/client/_coffre/assets/audit-CHGlDeBB.js +0 -1
- package/dist/client/_coffre/assets/auth.device-BndOUjse.js +0 -1
- package/dist/client/_coffre/assets/directory-nDExpkAz.js +0 -1
- package/dist/client/_coffre/assets/dist-QVHMLatb.js +0 -1
- package/dist/client/_coffre/assets/icons-BQ27Ds9u.js +0 -1
- package/dist/client/_coffre/assets/link-DP8SVWon.js +0 -1
- package/dist/client/_coffre/assets/login-CeaxDMcr.js +0 -2
- package/dist/client/_coffre/assets/login-DrMgvqZn.js +0 -1
- package/dist/client/_coffre/assets/offboarding-CNr_1tnl.js +0 -1
- package/dist/client/_coffre/assets/page-CGmvjSy4.js +0 -1
- package/dist/client/_coffre/assets/preload-helper-ClBkJ19f.js +0 -1
- package/dist/client/_coffre/assets/principal-page-DNLb_q_e.js +0 -1
- package/dist/client/_coffre/assets/projects._project._environment-CHzbboGp.js +0 -3
- package/dist/client/_coffre/assets/projects._project._environment-DDxu_HHD.js +0 -2
- package/dist/client/_coffre/assets/projects._project.index-CIAsjvg6.js +0 -2
- package/dist/client/_coffre/assets/projects._project.index-DZ9l6d-1.js +0 -1
- package/dist/client/_coffre/assets/projects.index-4eUXreE_.js +0 -1
- package/dist/client/_coffre/assets/row-state-ByET1OKX.js +0 -1
- package/dist/client/_coffre/assets/suspense-C7KwSnTG.js +0 -1
- package/dist/client/_coffre/assets/tokens._token-DWmbqzNk.js +0 -2
- package/dist/client/_coffre/assets/tokens._token-Dui_4KfS.js +0 -1
- package/dist/client/_coffre/assets/use-action-DRm9yVhV.js +0 -1
- package/dist/client/_coffre/assets/use-shell-BMGlJ25Q.js +0 -1
- package/dist/client/_coffre/assets/useQuery-D__2KBOs.js +0 -1
- package/dist/client/_coffre/assets/useSuspenseQuery-CSXyDALB.js +0 -1
- package/dist/client/_coffre/assets/users._user-BkNrX7Qf.js +0 -1
- package/dist/client/_coffre/assets/users._user-jbSvtdOg.js +0 -2
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-Dx-c3XVk.js +0 -162
- package/src/components/syncs.tsx +0 -597
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as require_react, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { n as ClosedDoor } from "./page-
|
|
3
|
-
import { t as useShell } from "./use-shell-
|
|
4
|
-
import { a as ErrorLine, c as Spinner } from "./ui-
|
|
5
|
-
import {
|
|
6
|
-
import { t as Route } from "./login-
|
|
2
|
+
import { n as ClosedDoor } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
4
|
+
import { a as ErrorLine, c as Spinner } from "./ui-DvlGkmaH.js";
|
|
5
|
+
import { F as ShieldCheck, S as Lock, j as ProviderMark } from "./icons-CWsTEfpn.js";
|
|
6
|
+
import { t as Route } from "./login-LBpXXfsQ.js";
|
|
7
7
|
import { t as signinErrorMessage } from "./signin-errors-BEFlVDbQ.js";
|
|
8
8
|
//#region src/routes/login.tsx?tsr-split=component
|
|
9
9
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createFileRoute, t as lazyRouteComponent } from "./lazyRouteComponent-CqBNCGuZ.js";
|
|
2
2
|
//#region src/routes/login.tsx
|
|
3
|
-
var $$splitComponentImporter = () => import("./login-
|
|
3
|
+
var $$splitComponentImporter = () => import("./login-CQSkYW_D.js");
|
|
4
4
|
var Route = createFileRoute("/login")({
|
|
5
5
|
validateSearch: (search) => {
|
|
6
6
|
const out = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
2
|
import { t as Link } from "./link-42ZWdjzZ.js";
|
|
3
|
-
import { t as Card } from "./page-
|
|
4
|
-
import { i as EmptyState, l as Timestamp, s as Notice } from "./ui-
|
|
5
|
-
import {
|
|
6
|
-
import { s as PrincipalLink } from "./directory-
|
|
3
|
+
import { t as Card } from "./page-BGeDoQO5.js";
|
|
4
|
+
import { i as EmptyState, l as Timestamp, s as Notice } from "./ui-DvlGkmaH.js";
|
|
5
|
+
import { V as User, s as ChevronRight, v as Key } from "./icons-CWsTEfpn.js";
|
|
6
|
+
import { s as PrincipalLink } from "./directory-C9SfNgpM.js";
|
|
7
7
|
//#region src/components/offboarding.tsx
|
|
8
8
|
var import_jsx_runtime = require_jsx_runtime();
|
|
9
9
|
/**
|
|
@@ -12,20 +12,11 @@ var import_jsx_runtime = require_jsx_runtime();
|
|
|
12
12
|
* everything that let them in is gone by then, but what they saw is not.
|
|
13
13
|
*/
|
|
14
14
|
function PrincipalReportCards({ report }) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
removed,
|
|
21
|
-
person
|
|
22
|
-
}),
|
|
23
|
-
report.syncs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CreatedSyncs, {
|
|
24
|
-
report,
|
|
25
|
-
person
|
|
26
|
-
}),
|
|
27
|
-
report.issuedTokens.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IssuedTokens, { report })
|
|
28
|
-
] });
|
|
15
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SeenValues, {
|
|
16
|
+
report,
|
|
17
|
+
removed: report.status === "removed",
|
|
18
|
+
person: report.principalType === "user"
|
|
19
|
+
}), report.issuedTokens.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IssuedTokens, { report })] });
|
|
29
20
|
}
|
|
30
21
|
function RemovedNotice({ report }) {
|
|
31
22
|
const person = report.principalType === "user";
|
|
@@ -209,67 +200,6 @@ function SeenValues({ report, removed, person }) {
|
|
|
209
200
|
})
|
|
210
201
|
});
|
|
211
202
|
}
|
|
212
|
-
function CreatedSyncs({ report, person }) {
|
|
213
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
214
|
-
labelledBy: "created-syncs",
|
|
215
|
-
title: person ? "Syncs they set up" : "Syncs it set up",
|
|
216
|
-
description: "A sync keeps pushing every change to the destination it names, whoever set it up. Check each one still points somewhere you control.",
|
|
217
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
218
|
-
className: "dt-wrap",
|
|
219
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("table", {
|
|
220
|
-
className: "dt syncs",
|
|
221
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", { children: [
|
|
222
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { children: "Destination" }),
|
|
223
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", {
|
|
224
|
-
className: "col-shrink",
|
|
225
|
-
children: "From"
|
|
226
|
-
}),
|
|
227
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", {
|
|
228
|
-
className: "col-shrink col-hide-narrow",
|
|
229
|
-
children: "Token"
|
|
230
|
-
})
|
|
231
|
-
] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { children: report.syncs.map((sync) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", { children: [
|
|
232
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
233
|
-
className: "cell-account",
|
|
234
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SyncMark, {
|
|
235
|
-
brand: sync.brand,
|
|
236
|
-
size: 15
|
|
237
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
238
|
-
className: "cell-stack",
|
|
239
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [sync.providerLabel, sync.paused && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
240
|
-
className: "tag",
|
|
241
|
-
children: "Paused"
|
|
242
|
-
})] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("small", {
|
|
243
|
-
className: "mono",
|
|
244
|
-
children: sync.destination
|
|
245
|
-
})]
|
|
246
|
-
})]
|
|
247
|
-
}) }),
|
|
248
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
249
|
-
className: "col-shrink",
|
|
250
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
|
|
251
|
-
className: "cell-link mono",
|
|
252
|
-
to: "/projects/$project/$environment",
|
|
253
|
-
params: {
|
|
254
|
-
project: sync.project,
|
|
255
|
-
environment: sync.environment
|
|
256
|
-
},
|
|
257
|
-
children: [
|
|
258
|
-
sync.project,
|
|
259
|
-
"/",
|
|
260
|
-
sync.environment
|
|
261
|
-
]
|
|
262
|
-
})
|
|
263
|
-
}),
|
|
264
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
265
|
-
className: "col-shrink col-hide-narrow cell-mono cell-muted",
|
|
266
|
-
children: sync.credential
|
|
267
|
-
})
|
|
268
|
-
] }, sync.id)) })]
|
|
269
|
-
})
|
|
270
|
-
})
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
203
|
function IssuedTokens({ report }) {
|
|
274
204
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
275
205
|
labelledBy: "issued-tokens",
|
|
@@ -1,43 +1,5 @@
|
|
|
1
1
|
import { r as require_jsx_runtime, t as useRouter } from "./useRouter-CaUSUNsw.js";
|
|
2
2
|
//#region ../client/dist/index.js
|
|
3
|
-
function initialValues(provider) {
|
|
4
|
-
return Object.fromEntries(provider.fields.map((field) => [field.name, field.type === "text" ? "" : field.initial]));
|
|
5
|
-
}
|
|
6
|
-
/** Whether the rest of the form makes the field meaningful. */
|
|
7
|
-
function isAsked(field, values) {
|
|
8
|
-
if (field.type === "options" || field.when === void 0) return true;
|
|
9
|
-
const picked = values[field.when.field];
|
|
10
|
-
const list = Array.isArray(picked) ? picked : [];
|
|
11
|
-
return list.length === field.when.is.length && field.when.is.every((value) => list.includes(value));
|
|
12
|
-
}
|
|
13
|
-
/** The label of the first required field left empty, or null when the form can be sent. */
|
|
14
|
-
function firstMissing(provider, values) {
|
|
15
|
-
for (const field of provider.fields) {
|
|
16
|
-
if (!isAsked(field, values)) continue;
|
|
17
|
-
const value = values[field.name];
|
|
18
|
-
if ((typeof value === "string" ? value.trim() === "" : (value ?? []).length === 0) && (field.type === "options" || field.optional !== true)) return field.label;
|
|
19
|
-
}
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The provider's config. Text is trimmed, and an optional field left empty
|
|
24
|
-
* is left out rather than sent as "", which the server rightly refuses.
|
|
25
|
-
*/
|
|
26
|
-
function configFromForm(provider, values) {
|
|
27
|
-
const config = {};
|
|
28
|
-
for (const field of provider.fields) {
|
|
29
|
-
if (!isAsked(field, values)) continue;
|
|
30
|
-
const value = values[field.name];
|
|
31
|
-
if (field.type === "options") {
|
|
32
|
-
const picked = Array.isArray(value) ? value : [];
|
|
33
|
-
config[field.name] = field.multiple ? picked : picked[0];
|
|
34
|
-
} else {
|
|
35
|
-
const text = typeof value === "string" ? value.trim() : "";
|
|
36
|
-
if (text !== "") config[field.name] = text;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return config;
|
|
40
|
-
}
|
|
41
3
|
/** The API's error shape, `{ error, message }`, with the HTTP status. */
|
|
42
4
|
var COFFRE_ERROR = Symbol.for("@coffre/client:CoffreError");
|
|
43
5
|
var CoffreError = class extends Error {
|
|
@@ -180,15 +142,6 @@ set: (member, access) => call("PATCH /access/:member", { member }, access) },
|
|
|
180
142
|
get: (code) => call("GET /device-logins/:code", { code }),
|
|
181
143
|
decide: (code, approve) => call("POST /device-logins/:code", { code }, { approve })
|
|
182
144
|
},
|
|
183
|
-
syncs: {
|
|
184
|
-
/** Where a sync can push on this instance, and what each asks for. */
|
|
185
|
-
providers: () => call("GET /syncs/providers", {}),
|
|
186
|
-
list: (path) => call("GET /syncs/:project/:environment", place(path)),
|
|
187
|
-
add: (path, input) => call("POST /syncs/:project/:environment", place(path), input),
|
|
188
|
-
update: (id, patch) => call("PATCH /syncs/by-id/:id", { id }, patch),
|
|
189
|
-
remove: (id) => call("DELETE /syncs/by-id/:id", { id }),
|
|
190
|
-
run: (id) => call("POST /syncs/by-id/:id/runs", { id })
|
|
191
|
-
},
|
|
192
145
|
audit: {
|
|
193
146
|
list: (query = {}) => call("GET /audit", {}, query),
|
|
194
147
|
verify: () => call("GET /audit/verification", {}),
|
|
@@ -3141,11 +3094,6 @@ var keys = {
|
|
|
3141
3094
|
project,
|
|
3142
3095
|
environment
|
|
3143
3096
|
],
|
|
3144
|
-
syncs: ({ project, environment }) => [
|
|
3145
|
-
"syncs",
|
|
3146
|
-
project,
|
|
3147
|
-
environment
|
|
3148
|
-
],
|
|
3149
3097
|
directory: ["directory"],
|
|
3150
3098
|
report: (member) => ["report", member],
|
|
3151
3099
|
credentials: (member) => ["credentials", member],
|
|
@@ -3215,10 +3163,6 @@ var queries = {
|
|
|
3215
3163
|
queryKey: keys.secrets(place),
|
|
3216
3164
|
queryFn: () => uiResult(() => client.secrets.list(`${place.project}/${place.environment}`))
|
|
3217
3165
|
}),
|
|
3218
|
-
syncs: (client, place) => queryOptions({
|
|
3219
|
-
queryKey: keys.syncs(place),
|
|
3220
|
-
queryFn: () => uiResult(() => client.syncs.list(`${place.project}/${place.environment}`))
|
|
3221
|
-
}),
|
|
3222
3166
|
/**
|
|
3223
3167
|
* Everyone in the directory, and who was removed. The API shows grant
|
|
3224
3168
|
* managers the members of their projects; the directory pages stay the
|
|
@@ -3406,13 +3350,8 @@ function managedProjects(projects) {
|
|
|
3406
3350
|
var affects = {
|
|
3407
3351
|
/** A project or environment made, renamed or archived: the tree, and where you hold access. */
|
|
3408
3352
|
places: () => [keys.projects, keys.me],
|
|
3409
|
-
/** Secrets written, renamed, restored or archived: the environment
|
|
3410
|
-
secrets: (place) => [
|
|
3411
|
-
keys.secrets(place),
|
|
3412
|
-
keys.syncs(place),
|
|
3413
|
-
keys.projects
|
|
3414
|
-
],
|
|
3415
|
-
syncs: (place) => [keys.syncs(place)],
|
|
3353
|
+
/** Secrets written, renamed, restored or archived: the environment and the counts. */
|
|
3354
|
+
secrets: (place) => [keys.secrets(place), keys.projects],
|
|
3416
3355
|
/**
|
|
3417
3356
|
* Someone's access in a project changed: its grants, their report, and, as
|
|
3418
3357
|
* it may be your own, what you can see.
|
|
@@ -3589,4 +3528,4 @@ function ClosedDoor({ icon, label, title, children, actions }) {
|
|
|
3589
3528
|
});
|
|
3590
3529
|
}
|
|
3591
3530
|
//#endregion
|
|
3592
|
-
export { isServer as A, timeoutManager as B, useCoffre as C, notifyManager as D, fetchState as E, replaceEqualDeep as F,
|
|
3531
|
+
export { isServer as A, timeoutManager as B, useCoffre as C, notifyManager as D, fetchState as E, replaceEqualDeep as F, createClient as H, resolveQueryValue as I, shallowEqualObjects as L, isValidTimeout as M, noop as N, focusManager as O, replaceData as P, shouldThrowError as R, uiResult as S, getDefaultState as T, planImport as U, CoffreError as V, shellOf as _, Tile as a, memberRef as b, keys as c, loadProject as d, loadShell as f, refresh as g, queries as h, PageHeader as i, hashKey as j, Subscribable as k, loadDirectory as l, projectOf as m, ClosedDoor as n, affects as o, managedProjects as p, Fact as r, createQueryClient as s, Card as t, loadPrincipal as u, Refusal as v, canRevealSecrets as w, statusOf as x, failureMessage as y, timeUntilStale as z };
|
package/dist/server/_coffre/assets/{principal-page-DQDoXute.js → principal-page-CRdoAQOq.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { i as require_react, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
2
|
import { t as Link } from "./link-42ZWdjzZ.js";
|
|
3
|
-
import { C as useCoffre, a as Tile, b as memberRef, h as queries, i as PageHeader, n as ClosedDoor, o as affects, p as managedProjects } from "./page-
|
|
4
|
-
import { E as projectAccessLabel, l as directoryList, n as useChangeStatus } from "./use-change-
|
|
5
|
-
import { n as useSuspenseQueries, t as useShell } from "./use-shell-
|
|
6
|
-
import { t as useSuspenseQuery } from "./useSuspenseQuery-
|
|
3
|
+
import { C as useCoffre, a as Tile, b as memberRef, h as queries, i as PageHeader, n as ClosedDoor, o as affects, p as managedProjects } from "./page-BGeDoQO5.js";
|
|
4
|
+
import { E as projectAccessLabel, l as directoryList, n as useChangeStatus } from "./use-change-CJpGSNIq.js";
|
|
5
|
+
import { n as useSuspenseQueries, t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
6
|
+
import { t as useSuspenseQuery } from "./useSuspenseQuery-BjAmlGZl.js";
|
|
7
7
|
import { n as toast } from "./dist-CnnV3t2g.js";
|
|
8
|
-
import { a as ErrorLine, c as Spinner, i as EmptyState, o as Modal, s as Notice } from "./ui-
|
|
9
|
-
import {
|
|
10
|
-
import { t as ItemFailure } from "./row-state-
|
|
11
|
-
import { a as PrincipalActions, i as KIND, o as PrincipalAvatar, r as InstanceRole } from "./directory-
|
|
12
|
-
import { t as useAction } from "./use-action-
|
|
13
|
-
import { n as GrantsTable, t as GrantRowView } from "./grants
|
|
14
|
-
import { r as RemovedNotice, t as PrincipalReportCards } from "./offboarding-
|
|
8
|
+
import { a as ErrorLine, c as Spinner, i as EmptyState, o as Modal, s as Notice } from "./ui-DvlGkmaH.js";
|
|
9
|
+
import { U as Users, W as X, k as Pencil, l as Clock, p as Folder, v as Key } from "./icons-CWsTEfpn.js";
|
|
10
|
+
import { t as ItemFailure } from "./row-state-CAItu3n_.js";
|
|
11
|
+
import { a as PrincipalActions, i as KIND, o as PrincipalAvatar, r as InstanceRole } from "./directory-C9SfNgpM.js";
|
|
12
|
+
import { t as useAction } from "./use-action-C2wz34kq.js";
|
|
13
|
+
import { n as GrantsTable, t as GrantRowView } from "./grants--315KmXu.js";
|
|
14
|
+
import { r as RemovedNotice, t as PrincipalReportCards } from "./offboarding-CykelNis.js";
|
|
15
15
|
//#region src/lib/access-plan.ts
|
|
16
16
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
17
17
|
/** An environment's access in a plan; slugs like `constructor` are not inherited. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as createFileRoute, t as lazyRouteComponent } from "./lazyRouteComponent-CqBNCGuZ.js";
|
|
2
|
-
import { h as queries } from "./page-
|
|
2
|
+
import { h as queries } from "./page-BGeDoQO5.js";
|
|
3
3
|
//#region src/routes/projects.$project.$environment.tsx
|
|
4
|
-
var $$splitComponentImporter = () => import("./projects._project._environment-
|
|
4
|
+
var $$splitComponentImporter = () => import("./projects._project._environment-BrDqn8kW.js");
|
|
5
5
|
/**
|
|
6
6
|
* How long a revealed value stays on screen.
|
|
7
7
|
*
|
|
@@ -11,7 +11,7 @@ var $$splitComponentImporter = () => import("./projects._project._environment-C-
|
|
|
11
11
|
*/
|
|
12
12
|
var Route = createFileRoute("/projects/$project/$environment")({
|
|
13
13
|
validateSearch: (search) => ({ filter: typeof search.filter === "string" && search.filter !== "" ? search.filter : void 0 }),
|
|
14
|
-
loader: ({ context: { client, queryClient }, params }) =>
|
|
14
|
+
loader: ({ context: { client, queryClient }, params }) => queryClient.fetchQuery(queries.secrets(client, params)),
|
|
15
15
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
16
16
|
});
|
|
17
17
|
/** The display name sits beside the slug; it comes from the shell's project tree. */
|