@burdenoff/microfe-cosmicintersection 2026.1107.1 → 2026.1108.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.
- package/dist/cosmicintersection/api/cosmicApi.d.ts +222 -1
- package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.js +332 -133
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/components/AiRunAttribution.d.ts +18 -0
- package/dist/cosmicintersection/components/AiRunAttribution.d.ts.map +1 -0
- package/dist/cosmicintersection/components/AiRunAttribution.js +39 -0
- package/dist/cosmicintersection/components/AiRunAttribution.js.map +1 -0
- package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts +15 -0
- package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts.map +1 -0
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js +193 -0
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js.map +1 -0
- package/dist/cosmicintersection/components/RunTriageCard.d.ts +15 -0
- package/dist/cosmicintersection/components/RunTriageCard.d.ts.map +1 -0
- package/dist/cosmicintersection/components/RunTriageCard.js +282 -0
- package/dist/cosmicintersection/components/RunTriageCard.js.map +1 -0
- package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts +18 -0
- package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts.map +1 -0
- package/dist/cosmicintersection/components/SchemaProposalPanel.js +277 -0
- package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -0
- package/dist/cosmicintersection/components/index.d.ts +4 -0
- package/dist/cosmicintersection/components/index.d.ts.map +1 -1
- package/dist/cosmicintersection/components/index.js +5 -1
- package/dist/cosmicintersection/pages/access/AccessPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/access/AccessPage.js +348 -326
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +732 -543
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +268 -119
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +322 -307
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +276 -241
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +190 -185
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
|
|
2
2
|
import { notify as t } from "../../lib/toast.js";
|
|
3
|
-
import { useCosDatasetsQuery as
|
|
3
|
+
import { useCosDatasetsQuery as n, useCosMintDoiMutation as r, useCosNotebooksQuery as ee, useCosPublishReleaseMutation as te, useCosReleaseQuery as ne, useCosReleasesQuery as re } from "../../api/cosmicApi.js";
|
|
4
4
|
import { useTr as ie } from "../../../shared/hooks/useTr.js";
|
|
5
|
-
import { ActionMenu as
|
|
5
|
+
import { ActionMenu as i } from "../../components/ActionMenu.js";
|
|
6
6
|
import { EmptyState as ae } from "../../components/EmptyState.js";
|
|
7
7
|
import { ErrorState as oe } from "../../components/ErrorState.js";
|
|
8
8
|
import { LoadingState as se } from "../../components/LoadingState.js";
|
|
9
|
-
import { SafeLink as
|
|
9
|
+
import { SafeLink as a } from "../../components/SafeLink.js";
|
|
10
10
|
import { DiscussionPanel as ce } from "../../components/DiscussionPanel.js";
|
|
11
11
|
import { PageLayout as le } from "../../components/PageLayout.js";
|
|
12
12
|
import { Pagination as ue, usePagination as de } from "../../components/Pagination.js";
|
|
13
|
-
import { StatusBadge as
|
|
13
|
+
import { StatusBadge as o, formatEnumLabel as fe } from "../../components/StatusBadge.js";
|
|
14
14
|
import "../../components/index.js";
|
|
15
15
|
import { useSelectedRecord as pe } from "../../lib/useSelectedRecord.js";
|
|
16
16
|
import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as me, ASSISTANT_AWARE_DIALOG_ROOT_PROPS as he } from "../../lib/assistantAwareDialog.js";
|
|
17
17
|
import { useTrackRecentItem as ge } from "../../lib/useTrackRecentItem.js";
|
|
18
|
-
import { useMemo as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { BookOpen as
|
|
21
|
-
import { Button as
|
|
18
|
+
import { useMemo as s, useState as c } from "react";
|
|
19
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
20
|
+
import { BookOpen as f, Database as _e, ExternalLink as p, NotebookPen as ve, Plus as ye, Rocket as m } from "lucide-react";
|
|
21
|
+
import { Button as h, Checkbox as be, Dialog as g, DialogClose as xe, DialogContent as _, DialogDescription as v, DialogFooter as y, DialogHeader as b, DialogTitle as x, Input as Se, Label as Ce, Select as we, SelectContent as Te, SelectItem as S, SelectTrigger as Ee, SelectValue as De, Table as Oe, TableBody as ke, TableCell as C, TableHead as w, TableHeader as Ae, TableRow as T } from "@burdenoff/fe-libs/ui";
|
|
22
22
|
//#region src/cosmicintersection/pages/releases/ReleasesPage.tsx
|
|
23
|
-
var
|
|
23
|
+
var E = "ALL", je = [
|
|
24
24
|
"DRAFT",
|
|
25
25
|
"UNDER_REVIEW",
|
|
26
26
|
"PUBLISHED",
|
|
27
27
|
"RETRACTED"
|
|
28
28
|
];
|
|
29
|
-
function
|
|
29
|
+
function D(e) {
|
|
30
30
|
return e === "DRAFT" || e === "UNDER_REVIEW";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function O(e) {
|
|
33
33
|
if (!e) return "—";
|
|
34
34
|
let t = new Date(e);
|
|
35
35
|
return Number.isNaN(t.getTime()) ? "—" : t.toLocaleDateString(void 0, {
|
|
@@ -38,478 +38,513 @@ function D(e) {
|
|
|
38
38
|
day: "numeric"
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function k(e) {
|
|
42
42
|
let t = e.trim();
|
|
43
43
|
return /^https?:\/\//i.test(t) ? t : `https://doi.org/${t.replace(/^doi:/i, "")}`;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
let { navigate:
|
|
45
|
+
function A() {
|
|
46
|
+
let { navigate: A } = e(), j = ie(), [M, Me] = c(E), N = de({
|
|
47
47
|
pageSize: 20,
|
|
48
|
-
resetKey:
|
|
49
|
-
}), { data:
|
|
50
|
-
status:
|
|
48
|
+
resetKey: M
|
|
49
|
+
}), { data: P, loading: F, error: I, refetch: L } = re({
|
|
50
|
+
status: M === E ? void 0 : M,
|
|
51
51
|
pagination: {
|
|
52
|
-
limit:
|
|
53
|
-
offset:
|
|
52
|
+
limit: N.limit,
|
|
53
|
+
offset: N.offset
|
|
54
54
|
}
|
|
55
|
-
}), [
|
|
55
|
+
}), [Ne, { loading: R }] = te(), [Pe, { loading: Fe }] = r(), z = s(() => P?.cosListReleases.items ?? [], [P]), Ie = P?.cosListReleases.pageInfo, B = n({ pagination: {
|
|
56
56
|
limit: 100,
|
|
57
57
|
offset: 0
|
|
58
|
-
} }),
|
|
58
|
+
} }), V = ee({ pagination: {
|
|
59
59
|
limit: 100,
|
|
60
60
|
offset: 0
|
|
61
|
-
} }),
|
|
61
|
+
} }), Le = s(() => {
|
|
62
62
|
let e = /* @__PURE__ */ new Map();
|
|
63
|
-
for (let t of
|
|
63
|
+
for (let t of B.data?.cosListDatasets.items ?? []) e.set(t.id, t.name);
|
|
64
64
|
return e;
|
|
65
|
-
}, [
|
|
65
|
+
}, [B.data]), H = s(() => {
|
|
66
66
|
let e = /* @__PURE__ */ new Map();
|
|
67
|
-
for (let t of
|
|
67
|
+
for (let t of V.data?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
|
|
68
68
|
return e;
|
|
69
|
-
}, [
|
|
70
|
-
ge(
|
|
69
|
+
}, [V.data]), { selectedId: U, select: Re } = pe(), W = s(() => U ? z.find((e) => e.id === U) ?? null : null, [z, U]), { data: ze } = ne(U, { skip: W !== null || F || !P }), G = ze?.cosRelease ?? null, K = W ?? (G && G.id === U ? G : null), q = (e) => Re(e ? e.id : null);
|
|
70
|
+
ge(K ? {
|
|
71
71
|
type: "release",
|
|
72
|
-
id:
|
|
73
|
-
name:
|
|
74
|
-
path: `releases?id=${encodeURIComponent(
|
|
72
|
+
id: K.id,
|
|
73
|
+
name: K.title,
|
|
74
|
+
path: `releases?id=${encodeURIComponent(K.id)}`
|
|
75
75
|
} : null);
|
|
76
|
-
let
|
|
77
|
-
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
if (!
|
|
82
|
-
let e =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
} })
|
|
87
|
-
|
|
76
|
+
let J = (e) => {
|
|
77
|
+
q(null), A(e);
|
|
78
|
+
}, [Y, X] = c(null), [Z, Q] = c(""), [Be, Ve] = c(!0), $ = (e) => {
|
|
79
|
+
Q(e.doi ?? ""), Ve(!0), X(e);
|
|
80
|
+
}, He = async () => {
|
|
81
|
+
if (!Y) return;
|
|
82
|
+
let e = Z.trim(), n = Be && e.length === 0, r = await Ne({ variables: {
|
|
83
|
+
id: Y.id,
|
|
84
|
+
doi: e || void 0,
|
|
85
|
+
mintDoi: n ? !0 : void 0
|
|
86
|
+
} });
|
|
87
|
+
if (r.data?.cosPublishRelease?.id) {
|
|
88
|
+
let e = r.data.cosPublishRelease.doi;
|
|
89
|
+
t.success(j("cosmicintersection.pages.releases.publishSuccess", "Release published"), j("cosmicintersection.pages.releases.publishSuccessDescription", "“{{name}}” is now public.", { name: Y.title })), n && !e && t.warning(j("cosmicintersection.pages.releases.doiMintFailedTitle", "DOI minting failed"), j("cosmicintersection.pages.releases.doiMintFailedDescription", "The release is published, but the automatic DOI registration did not complete. Retry from the release details.")), X(null), Q(""), await L();
|
|
90
|
+
}
|
|
91
|
+
}, Ue = async (e) => {
|
|
92
|
+
let n = (await Pe({ variables: { releaseId: e.id } })).data?.cosMintDoi;
|
|
93
|
+
n && (n.state === "FINDABLE" && n.doi ? t.success(j("cosmicintersection.pages.releases.doiMintedTitle", "DOI minted"), j("cosmicintersection.pages.releases.doiMintedDescription", "“{{name}}” is now registered as {{doi}}.", {
|
|
94
|
+
name: e.title,
|
|
95
|
+
doi: n.doi
|
|
96
|
+
})) : t.warning(j("cosmicintersection.pages.releases.doiMintFailedTitle", "DOI minting failed"), n.errorMessage ?? j("cosmicintersection.pages.releases.doiMintFailedDescription", "Retry later.")), await L());
|
|
97
|
+
}, We = /* @__PURE__ */ d(h, {
|
|
88
98
|
type: "button",
|
|
89
|
-
onClick: () =>
|
|
90
|
-
children: [/* @__PURE__ */
|
|
99
|
+
onClick: () => A("releases/create"),
|
|
100
|
+
children: [/* @__PURE__ */ u(ye, { className: "size-4" }), j("cosmicintersection.pages.releases.create", "New release")]
|
|
91
101
|
});
|
|
92
|
-
return /* @__PURE__ */
|
|
93
|
-
title:
|
|
94
|
-
description:
|
|
95
|
-
actions:
|
|
102
|
+
return /* @__PURE__ */ d(le, {
|
|
103
|
+
title: j("cosmicintersection.pages.releases.title", "Releases"),
|
|
104
|
+
description: j("cosmicintersection.pages.releases.description", "Citable, versioned publications that bundle datasets and notebooks for the community."),
|
|
105
|
+
actions: We,
|
|
96
106
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ d("div", {
|
|
98
108
|
className: "space-y-4",
|
|
99
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ u("div", {
|
|
100
110
|
className: "flex flex-wrap items-center gap-3",
|
|
101
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ u("div", {
|
|
102
112
|
className: "w-full max-w-[14rem]",
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
-
value:
|
|
105
|
-
onValueChange:
|
|
106
|
-
children: [/* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ d(we, {
|
|
114
|
+
value: M,
|
|
115
|
+
onValueChange: Me,
|
|
116
|
+
children: [/* @__PURE__ */ u(Ee, {
|
|
107
117
|
"aria-label": "Filter by status",
|
|
108
|
-
children: /* @__PURE__ */
|
|
109
|
-
}), /* @__PURE__ */
|
|
110
|
-
value:
|
|
118
|
+
children: /* @__PURE__ */ u(De, { placeholder: "All statuses" })
|
|
119
|
+
}), /* @__PURE__ */ d(Te, { children: [/* @__PURE__ */ u(S, {
|
|
120
|
+
value: E,
|
|
111
121
|
children: "All statuses"
|
|
112
|
-
}),
|
|
122
|
+
}), je.map((e) => /* @__PURE__ */ u(S, {
|
|
113
123
|
value: e,
|
|
114
124
|
children: fe(e)
|
|
115
125
|
}, e))] })]
|
|
116
126
|
})
|
|
117
127
|
})
|
|
118
128
|
}), (() => {
|
|
119
|
-
if (
|
|
129
|
+
if (F) return /* @__PURE__ */ u(se, {
|
|
120
130
|
variant: "rows",
|
|
121
131
|
rows: 6,
|
|
122
|
-
label:
|
|
132
|
+
label: j("cosmicintersection.pages.releases.loading", "Loading releases…")
|
|
123
133
|
});
|
|
124
|
-
if (
|
|
125
|
-
message:
|
|
126
|
-
onRetry: () => void
|
|
134
|
+
if (I) return /* @__PURE__ */ u(oe, {
|
|
135
|
+
message: I.message,
|
|
136
|
+
onRetry: () => void L()
|
|
127
137
|
});
|
|
128
|
-
if (
|
|
129
|
-
let e =
|
|
130
|
-
return /* @__PURE__ */
|
|
131
|
-
icon:
|
|
132
|
-
title: e ?
|
|
133
|
-
description: e ?
|
|
134
|
-
action: e ? void 0 :
|
|
138
|
+
if (z.length === 0) {
|
|
139
|
+
let e = M !== E;
|
|
140
|
+
return /* @__PURE__ */ u(ae, {
|
|
141
|
+
icon: m,
|
|
142
|
+
title: e ? j("cosmicintersection.pages.releases.emptyFilterTitle", "No releases match this filter") : j("cosmicintersection.pages.releases.emptyTitle", "No releases yet"),
|
|
143
|
+
description: e ? j("cosmicintersection.pages.releases.emptyFilterDescription", "Try clearing the status filter to see more releases.") : j("cosmicintersection.pages.releases.emptyDescription", "Package datasets and notebooks into a citable, versioned release for publication."),
|
|
144
|
+
action: e ? void 0 : We
|
|
135
145
|
});
|
|
136
146
|
}
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ d(l, { children: [
|
|
148
|
+
/* @__PURE__ */ u("div", {
|
|
139
149
|
className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
|
|
140
|
-
children: /* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ d(Oe, { children: [/* @__PURE__ */ u(Ae, { children: /* @__PURE__ */ d(T, { children: [
|
|
151
|
+
/* @__PURE__ */ u(w, { children: "Title" }),
|
|
152
|
+
/* @__PURE__ */ u(w, { children: "Version" }),
|
|
153
|
+
/* @__PURE__ */ u(w, { children: "Status" }),
|
|
154
|
+
/* @__PURE__ */ u(w, { children: "DOI" }),
|
|
155
|
+
/* @__PURE__ */ u(w, { children: "Authors" }),
|
|
156
|
+
/* @__PURE__ */ u(w, { children: "Published" }),
|
|
157
|
+
/* @__PURE__ */ u(w, { children: "License" }),
|
|
158
|
+
/* @__PURE__ */ u(w, {
|
|
149
159
|
className: "text-right",
|
|
150
160
|
children: "Actions"
|
|
151
161
|
})
|
|
152
|
-
] }) }), /* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
162
|
+
] }) }), /* @__PURE__ */ u(ke, { children: z.map((e) => /* @__PURE__ */ d(T, { children: [
|
|
163
|
+
/* @__PURE__ */ u(C, { children: /* @__PURE__ */ u("button", {
|
|
154
164
|
type: "button",
|
|
155
|
-
onClick: () =>
|
|
165
|
+
onClick: () => q(e),
|
|
156
166
|
className: "text-left font-medium text-text-primary underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus",
|
|
157
167
|
children: e.title
|
|
158
168
|
}) }),
|
|
159
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ u(C, {
|
|
160
170
|
className: "whitespace-nowrap text-sm text-text-secondary",
|
|
161
171
|
children: e.version || "—"
|
|
162
172
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ u(C, { children: /* @__PURE__ */ u(o, { status: e.status }) }),
|
|
174
|
+
/* @__PURE__ */ u(C, {
|
|
165
175
|
className: "max-w-[14rem]",
|
|
166
|
-
children: e.doi ? /* @__PURE__ */
|
|
167
|
-
href:
|
|
176
|
+
children: e.doi ? /* @__PURE__ */ d(a, {
|
|
177
|
+
href: k(e.doi),
|
|
168
178
|
className: "inline-flex items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
|
|
169
179
|
fallbackClassName: "block truncate text-sm text-text-secondary",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ u("span", {
|
|
171
181
|
className: "truncate",
|
|
172
182
|
children: e.doi
|
|
173
|
-
}), /* @__PURE__ */
|
|
183
|
+
}), /* @__PURE__ */ u(p, {
|
|
174
184
|
className: "size-3.5 shrink-0",
|
|
175
185
|
"aria-hidden": "true"
|
|
176
186
|
})]
|
|
177
|
-
}) : /* @__PURE__ */
|
|
187
|
+
}) : /* @__PURE__ */ u("span", {
|
|
178
188
|
className: "text-sm text-text-secondary",
|
|
179
189
|
children: "—"
|
|
180
190
|
})
|
|
181
191
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ u(C, {
|
|
183
193
|
className: "max-w-[14rem]",
|
|
184
|
-
children: e.authors.length === 0 ? /* @__PURE__ */
|
|
194
|
+
children: e.authors.length === 0 ? /* @__PURE__ */ u("span", {
|
|
185
195
|
className: "text-sm text-text-secondary",
|
|
186
196
|
children: "—"
|
|
187
|
-
}) : /* @__PURE__ */
|
|
197
|
+
}) : /* @__PURE__ */ u("span", {
|
|
188
198
|
className: "line-clamp-1 text-sm text-text-secondary",
|
|
189
199
|
children: e.authors.join(", ")
|
|
190
200
|
})
|
|
191
201
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ u(C, {
|
|
193
203
|
className: "whitespace-nowrap text-sm text-text-secondary",
|
|
194
|
-
children:
|
|
204
|
+
children: O(e.publishedAt)
|
|
195
205
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ u(C, {
|
|
197
207
|
className: "whitespace-nowrap text-sm text-text-secondary",
|
|
198
208
|
children: e.license || "—"
|
|
199
209
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ u(C, {
|
|
201
211
|
className: "text-right",
|
|
202
|
-
children: /* @__PURE__ */
|
|
212
|
+
children: /* @__PURE__ */ u(i, {
|
|
203
213
|
ariaLabel: `Actions for ${e.title}`,
|
|
204
|
-
onView: () =>
|
|
205
|
-
extraItems:
|
|
214
|
+
onView: () => q(e),
|
|
215
|
+
extraItems: D(e.status) ? [{
|
|
206
216
|
key: "publish",
|
|
207
|
-
label:
|
|
208
|
-
icon:
|
|
209
|
-
onSelect: () =>
|
|
217
|
+
label: j("cosmicintersection.pages.releases.publish", "Publish"),
|
|
218
|
+
icon: m,
|
|
219
|
+
onSelect: () => $(e)
|
|
210
220
|
}] : []
|
|
211
221
|
})
|
|
212
222
|
})
|
|
213
223
|
] }, e.id)) })] })
|
|
214
224
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ u("ul", {
|
|
216
226
|
className: "space-y-3 md:hidden",
|
|
217
|
-
children:
|
|
227
|
+
children: z.map((e) => /* @__PURE__ */ u("li", {
|
|
218
228
|
className: "rounded-card border border-border-default bg-bg-elevated",
|
|
219
|
-
children: /* @__PURE__ */
|
|
229
|
+
children: /* @__PURE__ */ d("div", {
|
|
220
230
|
className: "flex items-start justify-between gap-2 p-4",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
231
|
+
children: [/* @__PURE__ */ d("div", {
|
|
222
232
|
className: "min-w-0 flex-1 space-y-2",
|
|
223
233
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ d("div", {
|
|
225
235
|
className: "flex flex-wrap items-center gap-2",
|
|
226
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ u("button", {
|
|
227
237
|
type: "button",
|
|
228
|
-
onClick: () =>
|
|
238
|
+
onClick: () => q(e),
|
|
229
239
|
className: "truncate text-left font-medium text-text-primary underline-offset-2 hover:underline",
|
|
230
240
|
children: e.title
|
|
231
|
-
}), /* @__PURE__ */
|
|
241
|
+
}), /* @__PURE__ */ u(o, { status: e.status })]
|
|
232
242
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ d("div", {
|
|
234
244
|
className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-text-secondary",
|
|
235
245
|
children: [
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
e.license ? /* @__PURE__ */
|
|
238
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ u("span", { children: e.version || "v—" }),
|
|
247
|
+
e.license ? /* @__PURE__ */ u("span", { children: e.license }) : null,
|
|
248
|
+
/* @__PURE__ */ u("span", { children: O(e.publishedAt) })
|
|
239
249
|
]
|
|
240
250
|
}),
|
|
241
|
-
e.authors.length > 0 ? /* @__PURE__ */
|
|
251
|
+
e.authors.length > 0 ? /* @__PURE__ */ u("p", {
|
|
242
252
|
className: "line-clamp-1 text-xs text-text-secondary",
|
|
243
253
|
children: e.authors.join(", ")
|
|
244
254
|
}) : null,
|
|
245
|
-
e.doi ? /* @__PURE__ */
|
|
246
|
-
href:
|
|
255
|
+
e.doi ? /* @__PURE__ */ d(a, {
|
|
256
|
+
href: k(e.doi),
|
|
247
257
|
className: "inline-flex items-center gap-1 text-xs text-text-primary underline-offset-2 hover:underline",
|
|
248
258
|
fallbackClassName: "block truncate text-xs text-text-secondary",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ d("span", {
|
|
250
260
|
className: "truncate",
|
|
251
261
|
children: ["DOI: ", e.doi]
|
|
252
|
-
}), /* @__PURE__ */
|
|
262
|
+
}), /* @__PURE__ */ u(p, {
|
|
253
263
|
className: "size-3 shrink-0",
|
|
254
264
|
"aria-hidden": "true"
|
|
255
265
|
})]
|
|
256
266
|
}) : null
|
|
257
267
|
]
|
|
258
|
-
}), /* @__PURE__ */
|
|
268
|
+
}), /* @__PURE__ */ u(i, {
|
|
259
269
|
ariaLabel: `Actions for ${e.title}`,
|
|
260
|
-
onView: () =>
|
|
261
|
-
extraItems:
|
|
270
|
+
onView: () => q(e),
|
|
271
|
+
extraItems: D(e.status) ? [{
|
|
262
272
|
key: "publish",
|
|
263
|
-
label:
|
|
264
|
-
icon:
|
|
265
|
-
onSelect: () =>
|
|
273
|
+
label: j("cosmicintersection.pages.releases.publish", "Publish"),
|
|
274
|
+
icon: m,
|
|
275
|
+
onSelect: () => $(e)
|
|
266
276
|
}] : []
|
|
267
277
|
})]
|
|
268
278
|
})
|
|
269
279
|
}, e.id))
|
|
270
280
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
offset:
|
|
273
|
-
limit:
|
|
274
|
-
loadedCount:
|
|
275
|
-
hasMore:
|
|
276
|
-
onPrev:
|
|
277
|
-
onNext:
|
|
278
|
-
itemLabel:
|
|
279
|
-
loading:
|
|
281
|
+
/* @__PURE__ */ u(ue, {
|
|
282
|
+
offset: N.offset,
|
|
283
|
+
limit: N.limit,
|
|
284
|
+
loadedCount: z.length,
|
|
285
|
+
hasMore: Ie?.hasMore ?? !1,
|
|
286
|
+
onPrev: N.prevPage,
|
|
287
|
+
onNext: N.nextPage,
|
|
288
|
+
itemLabel: j("cosmicintersection.pages.releases.itemLabel", "releases"),
|
|
289
|
+
loading: F
|
|
280
290
|
})
|
|
281
291
|
] });
|
|
282
292
|
})()]
|
|
283
293
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ u(g, {
|
|
285
295
|
...he,
|
|
286
|
-
open:
|
|
287
|
-
onOpenChange: (e) => e ? void 0 :
|
|
288
|
-
children: /* @__PURE__ */
|
|
296
|
+
open: K !== null,
|
|
297
|
+
onOpenChange: (e) => e ? void 0 : q(null),
|
|
298
|
+
children: /* @__PURE__ */ u(_, {
|
|
289
299
|
...me,
|
|
290
300
|
className: "max-h-[85vh] max-w-lg overflow-y-auto",
|
|
291
|
-
children:
|
|
292
|
-
/* @__PURE__ */
|
|
301
|
+
children: K ? /* @__PURE__ */ d(l, { children: [
|
|
302
|
+
/* @__PURE__ */ d(b, { children: [/* @__PURE__ */ d(x, {
|
|
293
303
|
className: "flex items-center gap-2",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
304
|
+
children: [/* @__PURE__ */ u(f, {
|
|
295
305
|
className: "size-5 text-text-secondary",
|
|
296
306
|
"aria-hidden": "true"
|
|
297
|
-
}),
|
|
298
|
-
}), /* @__PURE__ */
|
|
307
|
+
}), K.title]
|
|
308
|
+
}), /* @__PURE__ */ d(v, { children: [
|
|
299
309
|
"Version ",
|
|
300
|
-
|
|
310
|
+
K.version || "—",
|
|
301
311
|
" · ",
|
|
302
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ u(o, { status: K.status })
|
|
303
313
|
] })] }),
|
|
304
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ d("div", {
|
|
305
315
|
className: "space-y-4 text-sm",
|
|
306
316
|
children: [
|
|
307
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
308
318
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
309
319
|
children: "Abstract"
|
|
310
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ u("p", {
|
|
311
321
|
className: "mt-1 whitespace-pre-wrap text-text-primary",
|
|
312
|
-
children:
|
|
322
|
+
children: K.abstract?.trim() || "No abstract provided."
|
|
313
323
|
})] }),
|
|
314
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ d("div", {
|
|
315
325
|
className: "grid grid-cols-2 gap-4",
|
|
316
326
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
318
328
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
319
329
|
children: "Authors"
|
|
320
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ u("p", {
|
|
321
331
|
className: "mt-1 text-text-primary",
|
|
322
|
-
children:
|
|
332
|
+
children: K.authors.length ? K.authors.join(", ") : "—"
|
|
323
333
|
})] }),
|
|
324
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
325
335
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
326
336
|
children: "License"
|
|
327
|
-
}), /* @__PURE__ */
|
|
337
|
+
}), /* @__PURE__ */ u("p", {
|
|
328
338
|
className: "mt-1 text-text-primary",
|
|
329
|
-
children:
|
|
339
|
+
children: K.license || "—"
|
|
330
340
|
})] }),
|
|
331
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
332
342
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
333
343
|
children: "Published"
|
|
334
|
-
}), /* @__PURE__ */
|
|
344
|
+
}), /* @__PURE__ */ u("p", {
|
|
335
345
|
className: "mt-1 text-text-primary",
|
|
336
|
-
children:
|
|
346
|
+
children: O(K.publishedAt)
|
|
337
347
|
})] }),
|
|
338
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
339
349
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
340
350
|
children: "DOI"
|
|
341
|
-
}), /* @__PURE__ */
|
|
351
|
+
}), /* @__PURE__ */ u("p", {
|
|
342
352
|
className: "mt-1",
|
|
343
|
-
children:
|
|
344
|
-
href:
|
|
353
|
+
children: K.doi ? /* @__PURE__ */ d(a, {
|
|
354
|
+
href: k(K.doi),
|
|
345
355
|
className: "inline-flex items-center gap-1 text-text-primary underline-offset-2 hover:underline",
|
|
346
356
|
fallbackClassName: "text-text-secondary",
|
|
347
|
-
children: [
|
|
357
|
+
children: [K.doi, /* @__PURE__ */ u(p, {
|
|
348
358
|
className: "size-3.5",
|
|
349
359
|
"aria-hidden": "true"
|
|
350
360
|
})]
|
|
351
|
-
}) : /* @__PURE__ */
|
|
361
|
+
}) : /* @__PURE__ */ u("span", {
|
|
352
362
|
className: "text-text-secondary",
|
|
353
363
|
children: "Not assigned"
|
|
354
364
|
})
|
|
355
365
|
})] })
|
|
356
366
|
]
|
|
357
367
|
}),
|
|
358
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("p", {
|
|
359
369
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
360
370
|
children: [
|
|
361
371
|
"Datasets (",
|
|
362
|
-
|
|
372
|
+
K.datasetIds.length,
|
|
363
373
|
")"
|
|
364
374
|
]
|
|
365
|
-
}), /* @__PURE__ */
|
|
375
|
+
}), /* @__PURE__ */ u("div", {
|
|
366
376
|
className: "mt-1 flex flex-wrap gap-1.5",
|
|
367
|
-
children:
|
|
377
|
+
children: K.datasetIds.length === 0 ? /* @__PURE__ */ u("span", {
|
|
368
378
|
className: "text-text-secondary",
|
|
369
379
|
children: "None linked."
|
|
370
|
-
}) :
|
|
371
|
-
let t =
|
|
372
|
-
return /* @__PURE__ */
|
|
380
|
+
}) : K.datasetIds.map((e) => {
|
|
381
|
+
let t = Le.get(e);
|
|
382
|
+
return /* @__PURE__ */ d(h, {
|
|
373
383
|
type: "button",
|
|
374
384
|
variant: "outline",
|
|
375
385
|
size: "sm",
|
|
376
386
|
className: "h-auto gap-1 px-2 py-1",
|
|
377
|
-
onClick: () =>
|
|
378
|
-
children: [/* @__PURE__ */
|
|
387
|
+
onClick: () => J(`datasets/${e}`),
|
|
388
|
+
children: [/* @__PURE__ */ u(_e, {
|
|
379
389
|
className: "size-3.5",
|
|
380
390
|
"aria-hidden": "true"
|
|
381
|
-
}), /* @__PURE__ */
|
|
391
|
+
}), /* @__PURE__ */ u("span", {
|
|
382
392
|
className: t ? "" : "font-mono text-xs",
|
|
383
393
|
children: t ?? e
|
|
384
394
|
})]
|
|
385
395
|
}, e);
|
|
386
396
|
})
|
|
387
397
|
})] }),
|
|
388
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
389
399
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
390
400
|
children: "Notebook"
|
|
391
|
-
}), /* @__PURE__ */
|
|
401
|
+
}), /* @__PURE__ */ u("div", {
|
|
392
402
|
className: "mt-1",
|
|
393
|
-
children:
|
|
403
|
+
children: K.notebookId ? /* @__PURE__ */ d(h, {
|
|
394
404
|
type: "button",
|
|
395
405
|
variant: "outline",
|
|
396
406
|
size: "sm",
|
|
397
407
|
className: "h-auto gap-1 px-2 py-1",
|
|
398
|
-
onClick: () =>
|
|
399
|
-
children: [/* @__PURE__ */
|
|
408
|
+
onClick: () => J(`notebooks/${K.notebookId}`),
|
|
409
|
+
children: [/* @__PURE__ */ u(ve, {
|
|
400
410
|
className: "size-3.5",
|
|
401
411
|
"aria-hidden": "true"
|
|
402
|
-
}), /* @__PURE__ */
|
|
403
|
-
className:
|
|
404
|
-
children:
|
|
412
|
+
}), /* @__PURE__ */ u("span", {
|
|
413
|
+
className: H.get(K.notebookId) ? "" : "font-mono text-xs",
|
|
414
|
+
children: H.get(K.notebookId) ?? K.notebookId
|
|
405
415
|
})]
|
|
406
|
-
}) : /* @__PURE__ */
|
|
416
|
+
}) : /* @__PURE__ */ u("span", {
|
|
407
417
|
className: "text-text-secondary",
|
|
408
418
|
children: "None linked."
|
|
409
419
|
})
|
|
410
420
|
})] }),
|
|
411
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
412
422
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
413
423
|
children: "Discussion"
|
|
414
|
-
}), /* @__PURE__ */
|
|
424
|
+
}), /* @__PURE__ */ u("div", {
|
|
415
425
|
className: "mt-2",
|
|
416
|
-
children: /* @__PURE__ */
|
|
426
|
+
children: /* @__PURE__ */ u(ce, {
|
|
417
427
|
entityType: "cosmicintersection-release",
|
|
418
|
-
entityId:
|
|
419
|
-
title:
|
|
428
|
+
entityId: K.id,
|
|
429
|
+
title: K.title,
|
|
420
430
|
widgetKey: "release-discussion"
|
|
421
431
|
})
|
|
422
432
|
})] })
|
|
423
433
|
]
|
|
424
434
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
+
/* @__PURE__ */ d(y, { children: [
|
|
436
|
+
D(K.status) ? /* @__PURE__ */ d(h, {
|
|
437
|
+
type: "button",
|
|
438
|
+
onClick: () => {
|
|
439
|
+
let e = K;
|
|
440
|
+
q(null), $(e);
|
|
441
|
+
},
|
|
442
|
+
children: [/* @__PURE__ */ u(m, { className: "size-4" }), "Publish"]
|
|
443
|
+
}) : null,
|
|
444
|
+
K.status === "PUBLISHED" && !K.doi ? /* @__PURE__ */ d(h, {
|
|
435
445
|
type: "button",
|
|
436
446
|
variant: "outline",
|
|
437
|
-
|
|
447
|
+
disabled: Fe,
|
|
448
|
+
onClick: () => void Ue(K),
|
|
449
|
+
children: [/* @__PURE__ */ u(f, { className: "size-4" }), Fe ? j("cosmicintersection.pages.releases.mintingDoi", "Minting DOI…") : j("cosmicintersection.pages.releases.mintDoi", "Mint DOI")]
|
|
450
|
+
}) : null,
|
|
451
|
+
/* @__PURE__ */ u(xe, {
|
|
452
|
+
asChild: !0,
|
|
453
|
+
children: /* @__PURE__ */ u(h, {
|
|
454
|
+
type: "button",
|
|
455
|
+
variant: "outline",
|
|
456
|
+
children: "Close"
|
|
457
|
+
})
|
|
438
458
|
})
|
|
439
|
-
|
|
459
|
+
] })
|
|
440
460
|
] }) : null
|
|
441
461
|
})
|
|
442
462
|
}),
|
|
443
|
-
/* @__PURE__ */
|
|
444
|
-
open:
|
|
445
|
-
onOpenChange: (e) => e ||
|
|
446
|
-
children: /* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ u(g, {
|
|
464
|
+
open: Y !== null,
|
|
465
|
+
onOpenChange: (e) => e || R ? void 0 : X(null),
|
|
466
|
+
children: /* @__PURE__ */ d(_, {
|
|
447
467
|
className: "max-w-md",
|
|
448
468
|
children: [
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
-
|
|
469
|
+
/* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(x, { children: j("cosmicintersection.pages.releases.publishRelease", "Publish release") }), /* @__PURE__ */ u(v, { children: Y ? j("cosmicintersection.pages.releases.publishDescription", "Publish “{{name}}” to make it publicly citable. You can attach a DOI now or later.", { name: Y.title }) : "" })] }),
|
|
470
|
+
Y ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("p", {
|
|
471
|
+
className: "rounded-card border border-status-warning-border bg-status-warning-bg-subtle px-3 py-2 text-sm text-status-warning-text",
|
|
472
|
+
children: j("cosmicintersection.pages.releases.publishIrreversible", "Publishing is irreversible: it mints a persistent identifier for this release. An agent can draft a release, but only you can publish it.")
|
|
473
|
+
}), /* @__PURE__ */ d("dl", {
|
|
451
474
|
className: "grid grid-cols-3 gap-x-4 gap-y-3 rounded-card border border-border-default bg-bg-sunken p-3",
|
|
452
475
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ d("div", {
|
|
454
477
|
className: "col-span-2 min-w-0",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
478
|
+
children: [/* @__PURE__ */ u("dt", {
|
|
456
479
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
457
480
|
children: "Authors"
|
|
458
|
-
}), /* @__PURE__ */
|
|
481
|
+
}), /* @__PURE__ */ u("dd", {
|
|
459
482
|
className: "mt-0.5 truncate text-sm text-text-primary",
|
|
460
|
-
title:
|
|
461
|
-
children:
|
|
483
|
+
title: Y.authors.join(", "),
|
|
484
|
+
children: Y.authors.length ? Y.authors.join(", ") : "—"
|
|
462
485
|
})]
|
|
463
486
|
}),
|
|
464
|
-
/* @__PURE__ */
|
|
487
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("dt", {
|
|
465
488
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
466
489
|
children: "Datasets"
|
|
467
|
-
}), /* @__PURE__ */
|
|
490
|
+
}), /* @__PURE__ */ u("dd", {
|
|
468
491
|
className: "mt-0.5 text-sm tabular-nums text-text-primary",
|
|
469
|
-
children:
|
|
492
|
+
children: Y.datasetIds.length
|
|
470
493
|
})] }),
|
|
471
|
-
/* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ d("div", {
|
|
472
495
|
className: "col-span-3 min-w-0",
|
|
473
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ u("dt", {
|
|
474
497
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
475
498
|
children: "License"
|
|
476
|
-
}), /* @__PURE__ */
|
|
499
|
+
}), /* @__PURE__ */ u("dd", {
|
|
477
500
|
className: "mt-0.5 truncate text-sm text-text-primary",
|
|
478
|
-
children:
|
|
501
|
+
children: Y.license || "—"
|
|
479
502
|
})]
|
|
480
503
|
})
|
|
481
504
|
]
|
|
482
|
-
}) : null,
|
|
483
|
-
/* @__PURE__ */
|
|
505
|
+
})] }) : null,
|
|
506
|
+
/* @__PURE__ */ d("div", {
|
|
484
507
|
className: "space-y-2",
|
|
485
508
|
children: [
|
|
486
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ u(Ce, {
|
|
487
510
|
htmlFor: "release-doi",
|
|
488
|
-
children:
|
|
511
|
+
children: j("cosmicintersection.pages.releases.doiOptional", "DOI (optional)")
|
|
489
512
|
}),
|
|
490
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ u(Se, {
|
|
491
514
|
id: "release-doi",
|
|
492
|
-
value:
|
|
493
|
-
onChange: (e) =>
|
|
515
|
+
value: Z,
|
|
516
|
+
onChange: (e) => Q(e.target.value),
|
|
494
517
|
placeholder: "10.1234/cosmic.2026.0001"
|
|
495
518
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ u("p", {
|
|
520
|
+
className: "text-xs text-text-secondary",
|
|
521
|
+
children: j("cosmicintersection.pages.releases.doiHint", "A Digital Object Identifier makes the release permanently referenceable.")
|
|
522
|
+
}),
|
|
523
|
+
/* @__PURE__ */ d("label", {
|
|
524
|
+
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
525
|
+
children: [/* @__PURE__ */ u(be, {
|
|
526
|
+
checked: Be && Z.trim().length === 0,
|
|
527
|
+
disabled: Z.trim().length > 0,
|
|
528
|
+
onCheckedChange: (e) => Ve(e === !0)
|
|
529
|
+
}), j("cosmicintersection.pages.releases.autoMintDoi", "Mint a DOI automatically on publish")]
|
|
530
|
+
}),
|
|
531
|
+
/* @__PURE__ */ u("p", {
|
|
497
532
|
className: "text-xs text-text-secondary",
|
|
498
|
-
children:
|
|
533
|
+
children: j("cosmicintersection.pages.releases.autoMintDoiHint", "Registers the release with a DataCite-minted DOI — no manual identifier needed.")
|
|
499
534
|
})
|
|
500
535
|
]
|
|
501
536
|
}),
|
|
502
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ d(y, { children: [/* @__PURE__ */ u(h, {
|
|
503
538
|
type: "button",
|
|
504
539
|
variant: "outline",
|
|
505
|
-
onClick: () =>
|
|
506
|
-
disabled:
|
|
507
|
-
children:
|
|
508
|
-
}), /* @__PURE__ */
|
|
540
|
+
onClick: () => X(null),
|
|
541
|
+
disabled: R,
|
|
542
|
+
children: j("cosmicintersection.common.cancel", "Cancel")
|
|
543
|
+
}), /* @__PURE__ */ d(h, {
|
|
509
544
|
type: "button",
|
|
510
|
-
onClick: () => void
|
|
511
|
-
disabled:
|
|
512
|
-
children: [/* @__PURE__ */
|
|
545
|
+
onClick: () => void He(),
|
|
546
|
+
disabled: R,
|
|
547
|
+
children: [/* @__PURE__ */ u(m, { className: "size-4" }), R ? j("cosmicintersection.pages.releases.publishing", "Publishing…") : j("cosmicintersection.pages.releases.publishRelease", "Publish release")]
|
|
513
548
|
})] })
|
|
514
549
|
]
|
|
515
550
|
})
|
|
@@ -518,6 +553,6 @@ function k() {
|
|
|
518
553
|
});
|
|
519
554
|
}
|
|
520
555
|
//#endregion
|
|
521
|
-
export {
|
|
556
|
+
export { A as default };
|
|
522
557
|
|
|
523
558
|
//# sourceMappingURL=ReleasesPage.js.map
|