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