@peasant-labs/fairtrade 0.0.7 → 0.0.9
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/lib/InUseShell-ClWg74-v.js +3388 -0
- package/dist/lib/commons.js +54 -54
- package/dist/lib/components.css +1 -1
- package/dist/lib/graph.js +572 -376
- package/dist/lib/tokens.css +4 -0
- package/dist/lib/tokens.json +16 -0
- package/dist/lib/types/CommitGraph.d.ts +39 -1
- package/dist/lib/types/graph/GhostCommitNode.d.ts +20 -0
- package/dist/lib/types/graph/GhostGroup.d.ts +21 -0
- package/dist/lib/types/graph/HighlightEdge.d.ts +16 -0
- package/dist/lib/types/graph/InsightPanel.d.ts +25 -0
- package/dist/lib/types/graph/RankModeControl.d.ts +13 -0
- package/dist/lib/types/graph/RankedRow.d.ts +15 -0
- package/dist/lib/types/graph/ScentTag.d.ts +15 -0
- package/dist/lib/types/graph/SessionLane.d.ts +29 -0
- package/dist/lib/types/graph/SessionOverflowDisclosure.d.ts +23 -0
- package/dist/lib/types/graph/TouchedFileCluster.d.ts +17 -0
- package/dist/lib/types/graph/codeMapState.d.ts +105 -1
- package/dist/lib/types/graph/graphContractPolicy.d.ts +24 -0
- package/dist/lib/types/graph/index.d.ts +22 -2
- package/dist/lib/types/graph/ranking.d.ts +222 -0
- package/dist/lib/{ui-CKqVB4x2.js → ui-FKKOy92_.js} +1387 -1541
- package/dist/lib/ui.js +3 -3
- package/package.json +18 -3
- package/dist/lib/InUseShell-VRWaysXY.js +0 -2488
package/dist/lib/commons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { An as e, At as t, Dt as n, Et as r, Fn as i, In as a, Ln as o, Nn as s, Q as c, Tt as l, _n as u, et as d, it as f, jt as p, kt as m, nt as h, pn as g, tt as _ } from "./ui-FKKOy92_.js";
|
|
2
|
+
import { gt as v, it as y, ot as b } from "./InUseShell-ClWg74-v.js";
|
|
3
3
|
import { useEffect as x, useId as S, useMemo as C, useRef as w, useState as T } from "react";
|
|
4
4
|
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
5
5
|
import { AlertTriangle as k, ArrowRight as A, Check as j, ChevronDown as M, ChevronRight as N, CircleDot as P, Compass as F, Copy as I, ExternalLink as L, Eye as R, EyeOff as z, FileText as B, FolderGit2 as V, GitBranch as H, Hash as U, LayoutGrid as ee, List as te, Lock as W, LogOut as G, Plus as ne, SearchX as re, Settings as K, ShieldAlert as q, ShieldCheck as ie, Upload as J, User as ae, UserPlus as Y, Users as X, X as Z } from "lucide-react";
|
|
@@ -212,14 +212,14 @@ function ye({ transcript: e, href: t, onOpen: n }) {
|
|
|
212
212
|
className: "card-head",
|
|
213
213
|
children: [/* @__PURE__ */ O("span", {
|
|
214
214
|
className: "metaitem cex-model",
|
|
215
|
-
children: [/* @__PURE__ */ D(
|
|
215
|
+
children: [/* @__PURE__ */ D(b, {
|
|
216
216
|
harness: e.modelProvider,
|
|
217
217
|
accent: !0
|
|
218
218
|
}), /* @__PURE__ */ D("span", {
|
|
219
219
|
className: "mono",
|
|
220
220
|
children: e.modelName || e.modelProvider
|
|
221
221
|
})]
|
|
222
|
-
}), /* @__PURE__ */ D(
|
|
222
|
+
}), /* @__PURE__ */ D(c, { visibility: e.visibility })]
|
|
223
223
|
}),
|
|
224
224
|
/* @__PURE__ */ D("h3", {
|
|
225
225
|
className: "cex-title",
|
|
@@ -267,7 +267,7 @@ function be({ transcript: e, href: t, onOpen: n }) {
|
|
|
267
267
|
let r = /* @__PURE__ */ O(E, { children: [
|
|
268
268
|
/* @__PURE__ */ O("span", {
|
|
269
269
|
className: "cex-trow-model",
|
|
270
|
-
children: [/* @__PURE__ */ D(
|
|
270
|
+
children: [/* @__PURE__ */ D(b, { harness: e.modelProvider }), /* @__PURE__ */ D("b", { children: e.modelName || e.modelProvider })]
|
|
271
271
|
}),
|
|
272
272
|
/* @__PURE__ */ D("span", {
|
|
273
273
|
className: "cex-trow-title",
|
|
@@ -285,7 +285,7 @@ function be({ transcript: e, href: t, onOpen: n }) {
|
|
|
285
285
|
className: "cex-trow-date mono tnum",
|
|
286
286
|
children: fe(e.sessionStart || e.sessionEnd || "")
|
|
287
287
|
}),
|
|
288
|
-
/* @__PURE__ */ D(
|
|
288
|
+
/* @__PURE__ */ D(c, { visibility: e.visibility })
|
|
289
289
|
] });
|
|
290
290
|
return t ? /* @__PURE__ */ D("a", {
|
|
291
291
|
href: t,
|
|
@@ -335,8 +335,8 @@ function xe({ collective: e, href: t, onOpen: n }) {
|
|
|
335
335
|
children: r
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript: r, onOpenProfile:
|
|
339
|
-
let d = ve(e), p = d.transcripts.transcripts, [m, g] = T(""), [_, v] = T(""), [
|
|
338
|
+
function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript: r, onOpenProfile: i, onOpenCollective: a, transcriptHref: o, profileHref: s, collectiveHref: l }) {
|
|
339
|
+
let d = ve(e), p = d.transcripts.transcripts, [m, g] = T(""), [_, v] = T(""), [y, S] = T("recent"), [E, k] = T("all"), [A, j] = T(() => /* @__PURE__ */ new Set()), [M, N] = T("grid"), [P, I] = T(1), [L, R] = T(null), [z, V] = T("browse"), H = w(!0);
|
|
340
340
|
x(() => {
|
|
341
341
|
if (H.current) {
|
|
342
342
|
H.current = !1, v(m);
|
|
@@ -348,7 +348,7 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
348
348
|
I(1);
|
|
349
349
|
}, [
|
|
350
350
|
_,
|
|
351
|
-
|
|
351
|
+
y,
|
|
352
352
|
E,
|
|
353
353
|
A
|
|
354
354
|
]), x(() => {
|
|
@@ -356,11 +356,11 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
356
356
|
query: _,
|
|
357
357
|
provider: E,
|
|
358
358
|
topics: [...A],
|
|
359
|
-
order:
|
|
359
|
+
order: y,
|
|
360
360
|
page: P
|
|
361
361
|
});
|
|
362
362
|
}, [
|
|
363
|
-
|
|
363
|
+
y,
|
|
364
364
|
n,
|
|
365
365
|
P,
|
|
366
366
|
E,
|
|
@@ -397,8 +397,8 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
397
397
|
}
|
|
398
398
|
R(e.id), V("detail");
|
|
399
399
|
}, oe = () => {
|
|
400
|
-
if (
|
|
401
|
-
|
|
400
|
+
if (i && W) {
|
|
401
|
+
i(W);
|
|
402
402
|
return;
|
|
403
403
|
}
|
|
404
404
|
U ? (R(U.id), V("profile")) : p[0] && (R(p[0].id), V("profile"));
|
|
@@ -469,7 +469,7 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
469
469
|
children: [/* @__PURE__ */ D("h2", {
|
|
470
470
|
className: "win-title cex-vtitle",
|
|
471
471
|
children: he(U.title || "untitled transcript")
|
|
472
|
-
}), /* @__PURE__ */ D(
|
|
472
|
+
}), /* @__PURE__ */ D(c, { visibility: U.visibility })]
|
|
473
473
|
}),
|
|
474
474
|
/* @__PURE__ */ O("p", {
|
|
475
475
|
className: "cex-vdesc",
|
|
@@ -484,7 +484,7 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
484
484
|
children: [
|
|
485
485
|
/* @__PURE__ */ O("span", {
|
|
486
486
|
className: "metaitem",
|
|
487
|
-
children: [/* @__PURE__ */ D(
|
|
487
|
+
children: [/* @__PURE__ */ D(b, {
|
|
488
488
|
harness: U.modelProvider,
|
|
489
489
|
accent: !0
|
|
490
490
|
}), /* @__PURE__ */ D("span", { children: U.modelName || U.modelProvider })]
|
|
@@ -715,7 +715,7 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
715
715
|
className: "cex-lib-rows",
|
|
716
716
|
children: t.map((e) => /* @__PURE__ */ D(be, {
|
|
717
717
|
transcript: e,
|
|
718
|
-
href:
|
|
718
|
+
href: o?.(e),
|
|
719
719
|
onOpen: Z
|
|
720
720
|
}, e.id))
|
|
721
721
|
})]
|
|
@@ -760,7 +760,7 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
760
760
|
}), /* @__PURE__ */ O("div", {
|
|
761
761
|
className: "cex-explore-body",
|
|
762
762
|
children: [/* @__PURE__ */ D(f, {
|
|
763
|
-
order:
|
|
763
|
+
order: y,
|
|
764
764
|
onOrder: (e) => S(e),
|
|
765
765
|
providers: ne,
|
|
766
766
|
activeProviders: E === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([E]),
|
|
@@ -800,8 +800,8 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
800
800
|
className: "cex-coll-grid",
|
|
801
801
|
children: K.map((e) => /* @__PURE__ */ D(xe, {
|
|
802
802
|
collective: e,
|
|
803
|
-
href:
|
|
804
|
-
onOpen:
|
|
803
|
+
href: l?.(e),
|
|
804
|
+
onOpen: a
|
|
805
805
|
}, e.id))
|
|
806
806
|
})]
|
|
807
807
|
}),
|
|
@@ -884,18 +884,18 @@ function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
884
884
|
className: "cex-grid",
|
|
885
885
|
children: q.map((e) => /* @__PURE__ */ D(ye, {
|
|
886
886
|
transcript: e,
|
|
887
|
-
href:
|
|
887
|
+
href: o?.(e),
|
|
888
888
|
onOpen: Z
|
|
889
889
|
}, e.id))
|
|
890
890
|
}) : /* @__PURE__ */ D("div", {
|
|
891
891
|
className: "cex-list",
|
|
892
892
|
children: q.map((e) => /* @__PURE__ */ D(be, {
|
|
893
893
|
transcript: e,
|
|
894
|
-
href:
|
|
894
|
+
href: o?.(e),
|
|
895
895
|
onOpen: Z
|
|
896
896
|
}, e.id))
|
|
897
897
|
}),
|
|
898
|
-
J > X && /* @__PURE__ */ D(
|
|
898
|
+
J > X && /* @__PURE__ */ D(u, {
|
|
899
899
|
page: Y,
|
|
900
900
|
totalItems: J,
|
|
901
901
|
pageSize: X,
|
|
@@ -1358,8 +1358,8 @@ function Pe({ mode: e }) {
|
|
|
1358
1358
|
children: t ? t.short.toLowerCase() : e
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
|
-
function Fe({ data:
|
|
1362
|
-
let { collectives: r = Ne, linkedOrgs: i = Me, title: a = "collectives", deck: o = "groups that govern shared data together.", crumb: s = "collectives", createLabel: c = "new collective", createBusy: l = !1 } =
|
|
1361
|
+
function Fe({ data: e = {}, actions: n = {} } = {}) {
|
|
1362
|
+
let { collectives: r = Ne, linkedOrgs: i = Me, title: a = "collectives", deck: o = "groups that govern shared data together.", crumb: s = "collectives", createLabel: c = "new collective", createBusy: l = !1 } = e, { onCreateCollective: u, onOpenCollective: d } = n, [f, p] = T(!1), [m, h] = T(""), [g, _] = T(""), [v, y] = T("open"), [b, x] = T("members_only"), [C, w] = T(""), k = S();
|
|
1363
1363
|
return /* @__PURE__ */ D("div", {
|
|
1364
1364
|
className: "cmg-root",
|
|
1365
1365
|
children: /* @__PURE__ */ O("div", {
|
|
@@ -1439,7 +1439,7 @@ function Fe({ data: t = {}, actions: n = {} } = {}) {
|
|
|
1439
1439
|
}),
|
|
1440
1440
|
/* @__PURE__ */ D("div", {
|
|
1441
1441
|
className: "cmg-field",
|
|
1442
|
-
children: /* @__PURE__ */ D(
|
|
1442
|
+
children: /* @__PURE__ */ D(t, {
|
|
1443
1443
|
variant: "select",
|
|
1444
1444
|
label: "acceptance mode",
|
|
1445
1445
|
name: "acceptance-mode",
|
|
@@ -1450,7 +1450,7 @@ function Fe({ data: t = {}, actions: n = {} } = {}) {
|
|
|
1450
1450
|
}),
|
|
1451
1451
|
/* @__PURE__ */ D("div", {
|
|
1452
1452
|
className: "cmg-field",
|
|
1453
|
-
children: /* @__PURE__ */ D(
|
|
1453
|
+
children: /* @__PURE__ */ D(t, {
|
|
1454
1454
|
variant: "select",
|
|
1455
1455
|
label: "data access policy",
|
|
1456
1456
|
name: "data-access",
|
|
@@ -1834,7 +1834,7 @@ function Ve({ item: e }) {
|
|
|
1834
1834
|
]
|
|
1835
1835
|
});
|
|
1836
1836
|
}
|
|
1837
|
-
function He({ data: e = {}, actions:
|
|
1837
|
+
function He({ data: e = {}, actions: t = {} } = {}) {
|
|
1838
1838
|
let { collective: r = {
|
|
1839
1839
|
name: "AI Research Team",
|
|
1840
1840
|
description: "Sharing transcripts related to AI research",
|
|
@@ -1867,15 +1867,15 @@ function He({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1867
1867
|
tokens: "121K",
|
|
1868
1868
|
date: "Jun 12"
|
|
1869
1869
|
}
|
|
1870
|
-
], roleOptions: l = Ie, initialRole: u = "owner", initialShowRedaction: f = !0, initialBrowseGated: p = !1, targetCollective:
|
|
1870
|
+
], roleOptions: l = Ie, initialRole: u = "owner", initialShowRedaction: f = !0, initialBrowseGated: p = !1, targetCollective: g = Ge, stats: v = {
|
|
1871
1871
|
transcripts: "248",
|
|
1872
1872
|
projects: "31 projects",
|
|
1873
1873
|
tokens: "4.2M",
|
|
1874
1874
|
turns: "18.4K turns",
|
|
1875
1875
|
contributors: "12",
|
|
1876
1876
|
hours: "63h total"
|
|
1877
|
-
} } = e, { onRoleChange:
|
|
1878
|
-
j(e),
|
|
1877
|
+
} } = e, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: C, onToggleBrowse: w, onContribute: k } = t, [A, j] = T(u), [F, I] = T(f), [L, z] = T(p), B = A === "owner", H = A === "guest", U = (e) => {
|
|
1878
|
+
j(e), b?.(e);
|
|
1879
1879
|
};
|
|
1880
1880
|
return /* @__PURE__ */ D("div", {
|
|
1881
1881
|
className: "cmg-root",
|
|
@@ -2031,7 +2031,7 @@ function He({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2031
2031
|
id: "cmg-share-h",
|
|
2032
2032
|
className: "cmg-sub",
|
|
2033
2033
|
children: "provider share"
|
|
2034
|
-
}), /* @__PURE__ */ D(
|
|
2034
|
+
}), /* @__PURE__ */ D(_, {
|
|
2035
2035
|
label: "provider share",
|
|
2036
2036
|
total: 100,
|
|
2037
2037
|
data: i.map((e) => ({
|
|
@@ -2170,7 +2170,7 @@ function He({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2170
2170
|
children: e.contributor
|
|
2171
2171
|
}),
|
|
2172
2172
|
/* @__PURE__ */ O("td", { children: [
|
|
2173
|
-
/* @__PURE__ */ D(
|
|
2173
|
+
/* @__PURE__ */ D(y, { harness: e.providerId }),
|
|
2174
2174
|
" ",
|
|
2175
2175
|
we(e.providerId)
|
|
2176
2176
|
] }),
|
|
@@ -2214,7 +2214,7 @@ function He({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2214
2214
|
overflow: "auto",
|
|
2215
2215
|
maxWidth: "100%"
|
|
2216
2216
|
},
|
|
2217
|
-
children: /* @__PURE__ */ D(
|
|
2217
|
+
children: /* @__PURE__ */ D(n, {
|
|
2218
2218
|
title: "members",
|
|
2219
2219
|
roles: ["member", "contributor"],
|
|
2220
2220
|
members: o.map((e) => ({
|
|
@@ -2253,7 +2253,7 @@ function He({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2253
2253
|
});
|
|
2254
2254
|
}
|
|
2255
2255
|
function Ue() {
|
|
2256
|
-
let [
|
|
2256
|
+
let [t, c] = T("AI Research Team"), [u, d] = T("Sharing transcripts related to AI research"), [f, p] = T("curated"), [m, h] = T("members_only"), [_, v] = T(!0), [y, b] = T("user_choice"), [x, S] = T(!1);
|
|
2257
2257
|
return /* @__PURE__ */ D("div", {
|
|
2258
2258
|
className: "cmg-root cmg-settings",
|
|
2259
2259
|
children: /* @__PURE__ */ O("div", {
|
|
@@ -2288,7 +2288,7 @@ function Ue() {
|
|
|
2288
2288
|
}), /* @__PURE__ */ D("p", {
|
|
2289
2289
|
className: "cmg-deck",
|
|
2290
2290
|
children: "edit how this collective accepts contributions and shares data."
|
|
2291
|
-
})] }), /* @__PURE__ */ D(
|
|
2291
|
+
})] }), /* @__PURE__ */ D(g, { children: "settings" })]
|
|
2292
2292
|
})
|
|
2293
2293
|
}),
|
|
2294
2294
|
/* @__PURE__ */ O("div", {
|
|
@@ -2312,21 +2312,21 @@ function Ue() {
|
|
|
2312
2312
|
}), /* @__PURE__ */ O("div", {
|
|
2313
2313
|
className: "cmg-settings-stack",
|
|
2314
2314
|
children: [
|
|
2315
|
-
/* @__PURE__ */ D(
|
|
2315
|
+
/* @__PURE__ */ D(i, {
|
|
2316
2316
|
label: "Name",
|
|
2317
2317
|
id: "cmg-name",
|
|
2318
|
-
value:
|
|
2319
|
-
onChange: (e) =>
|
|
2318
|
+
value: t,
|
|
2319
|
+
onChange: (e) => c(e.target.value),
|
|
2320
2320
|
required: !0
|
|
2321
2321
|
}),
|
|
2322
|
-
/* @__PURE__ */ D(
|
|
2322
|
+
/* @__PURE__ */ D(o, {
|
|
2323
2323
|
label: "Description",
|
|
2324
2324
|
id: "cmg-description",
|
|
2325
|
-
value:
|
|
2325
|
+
value: u,
|
|
2326
2326
|
onChange: (e) => d(e.target.value),
|
|
2327
2327
|
rows: 2
|
|
2328
2328
|
}),
|
|
2329
|
-
/* @__PURE__ */ D(
|
|
2329
|
+
/* @__PURE__ */ D(a, {
|
|
2330
2330
|
label: "Acceptance mode",
|
|
2331
2331
|
id: "cmg-acceptance",
|
|
2332
2332
|
value: f,
|
|
@@ -2346,7 +2346,7 @@ function Ue() {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
]
|
|
2348
2348
|
}),
|
|
2349
|
-
/* @__PURE__ */ D(
|
|
2349
|
+
/* @__PURE__ */ D(a, {
|
|
2350
2350
|
label: "Data access",
|
|
2351
2351
|
id: "cmg-access",
|
|
2352
2352
|
value: m,
|
|
@@ -2380,15 +2380,15 @@ function Ue() {
|
|
|
2380
2380
|
}),
|
|
2381
2381
|
/* @__PURE__ */ D("div", {
|
|
2382
2382
|
className: "sw-toggle-row",
|
|
2383
|
-
children: /* @__PURE__ */ D(
|
|
2383
|
+
children: /* @__PURE__ */ D(e, {
|
|
2384
2384
|
id: "cmg-display-members",
|
|
2385
|
-
checked:
|
|
2385
|
+
checked: _,
|
|
2386
2386
|
onChange: (e) => v(e)
|
|
2387
2387
|
})
|
|
2388
2388
|
})
|
|
2389
2389
|
]
|
|
2390
2390
|
}),
|
|
2391
|
-
/* @__PURE__ */ D(
|
|
2391
|
+
/* @__PURE__ */ D(s, {
|
|
2392
2392
|
name: "cmg-deletion-policy",
|
|
2393
2393
|
ariaLabel: "Transcript retention on leave",
|
|
2394
2394
|
value: y,
|
|
@@ -2425,19 +2425,19 @@ function Ue() {
|
|
|
2425
2425
|
type: "submit",
|
|
2426
2426
|
className: "btn btn-sm btn-primary",
|
|
2427
2427
|
children: "save changes"
|
|
2428
|
-
}), /* @__PURE__ */ D(
|
|
2428
|
+
}), /* @__PURE__ */ D(l, {
|
|
2429
2429
|
label: "reset form",
|
|
2430
2430
|
onConfirm: () => S(!1)
|
|
2431
2431
|
})]
|
|
2432
2432
|
})
|
|
2433
2433
|
]
|
|
2434
2434
|
})]
|
|
2435
|
-
}), /* @__PURE__ */ O(
|
|
2435
|
+
}), /* @__PURE__ */ O(r, {
|
|
2436
2436
|
title: "danger zone",
|
|
2437
2437
|
children: [/* @__PURE__ */ D("p", {
|
|
2438
2438
|
className: "mono",
|
|
2439
2439
|
children: "deleting this collective removes the governance settings and member roster."
|
|
2440
|
-
}), /* @__PURE__ */ D(
|
|
2440
|
+
}), /* @__PURE__ */ D(l, {
|
|
2441
2441
|
label: "delete collective",
|
|
2442
2442
|
confirmLabel: "delete",
|
|
2443
2443
|
onConfirm: () => S(!1)
|
|
@@ -2451,7 +2451,7 @@ function Ue() {
|
|
|
2451
2451
|
overflow: "auto",
|
|
2452
2452
|
maxWidth: "100%"
|
|
2453
2453
|
},
|
|
2454
|
-
children: /* @__PURE__ */ D(
|
|
2454
|
+
children: /* @__PURE__ */ D(n, {
|
|
2455
2455
|
title: "members",
|
|
2456
2456
|
roles: ["member", "contributor"],
|
|
2457
2457
|
members: [
|
|
@@ -2847,8 +2847,8 @@ function Ze(e) {
|
|
|
2847
2847
|
day: "numeric"
|
|
2848
2848
|
}).format(t);
|
|
2849
2849
|
}
|
|
2850
|
-
function Qe({ data: e = Ye, actions:
|
|
2851
|
-
let { collective: i = qe, providerShare: a = [], pendingReview: o = [], members: s = [], redactions: c = [], browseRows: l = [], roleOptions: u = [], initialRole: f = "", initialShowRedaction: p = !1, initialBrowseGated: v = !1, stats: y = Je } = e || Ye, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: w, onContribute: E, onToggleBrowse: k } =
|
|
2850
|
+
function Qe({ data: e = Ye, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
2851
|
+
let { collective: i = qe, providerShare: a = [], pendingReview: o = [], members: s = [], redactions: c = [], browseRows: l = [], roleOptions: u = [], initialRole: f = "", initialShowRedaction: p = !1, initialBrowseGated: v = !1, stats: y = Je } = e || Ye, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: w, onContribute: E, onToggleBrowse: k } = t || {}, [A, j] = T(f || i.role || ""), [M, P] = T(!!p), [F, I] = T(!!v), L = A || i.role || "guest", B = L === "owner", H = L === "guest", U = r && u.length > 0, ee = C(() => U ? u : [], [U, u]), te = (e) => {
|
|
2852
2852
|
j(e), b?.(e);
|
|
2853
2853
|
};
|
|
2854
2854
|
return /* @__PURE__ */ D("div", {
|
|
@@ -3016,7 +3016,7 @@ function Qe({ data: e = Ye, actions: n = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3016
3016
|
id: "cmg-share-h",
|
|
3017
3017
|
className: "cmg-sub",
|
|
3018
3018
|
children: "provider share"
|
|
3019
|
-
}), /* @__PURE__ */ D(
|
|
3019
|
+
}), /* @__PURE__ */ D(_, {
|
|
3020
3020
|
label: "provider share",
|
|
3021
3021
|
total: 100,
|
|
3022
3022
|
data: a.map((e) => ({
|
|
@@ -3072,7 +3072,7 @@ function Qe({ data: e = Ye, actions: n = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3072
3072
|
className: "cmg-redact-head",
|
|
3073
3073
|
children: [/* @__PURE__ */ D("span", {
|
|
3074
3074
|
className: "cmg-redact-badges",
|
|
3075
|
-
children: /* @__PURE__ */ D(
|
|
3075
|
+
children: /* @__PURE__ */ D(g, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
|
|
3076
3076
|
}), /* @__PURE__ */ D("span", {
|
|
3077
3077
|
className: "cmg-redact-file mono",
|
|
3078
3078
|
children: e.file || "unknown"
|
|
@@ -3219,7 +3219,7 @@ function Qe({ data: e = Ye, actions: n = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3219
3219
|
overflow: "auto",
|
|
3220
3220
|
maxWidth: "100%"
|
|
3221
3221
|
},
|
|
3222
|
-
children: /* @__PURE__ */ D(
|
|
3222
|
+
children: /* @__PURE__ */ D(n, {
|
|
3223
3223
|
title: "members",
|
|
3224
3224
|
roles: ["member", "contributor"],
|
|
3225
3225
|
members: s.map((e) => ({
|