@burdenoff/microfe-botmanor 2026.1120.16 → 2026.1120.18
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/botlit/BotlitRoutes.js +1 -1
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/components/ActionMenu.js +58 -32
- package/dist/botlit/components/ActionMenu.js.map +1 -1
- package/dist/botlit/components/actionMenuPlacement.d.ts +18 -0
- package/dist/botlit/components/actionMenuPlacement.js +10 -0
- package/dist/botlit/components/actionMenuPlacement.js.map +1 -0
- package/dist/botlit/pages/HandoffsPage.d.ts +5 -0
- package/dist/botlit/pages/HandoffsPage.js +168 -132
- package/dist/botlit/pages/HandoffsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +155 -194
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/storePackageManifest.d.ts +39 -0
- package/dist/botlit/pages/storePackageManifest.js +55 -0
- package/dist/botlit/pages/storePackageManifest.js.map +1 -0
- package/package.json +1 -1
|
@@ -12,16 +12,17 @@ import { useTr as m } from "../../shared/hooks/useTr.js";
|
|
|
12
12
|
import { useInstallPackage as h, useStorePackage as g } from "../hooks/useStore.js";
|
|
13
13
|
import { formatRelativeTime as _ } from "../utils/formatters.js";
|
|
14
14
|
import "../permissions/index.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
15
|
+
import { packageSlugFromParams as v, readManifest as y } from "./storePackageManifest.js";
|
|
16
|
+
import { useMemo as b, useState as x } from "react";
|
|
17
|
+
import { PagePurpose as S } from "@burdenoff/fe-libs/ui";
|
|
18
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
19
|
+
import { useParams as T } from "react-router";
|
|
20
|
+
import { ArrowLeft as E, CheckCircle as D, Download as O, ExternalLink as k, FileText as A, GitBranch as j, Globe as M, Package as N, Shield as P, Tag as F } from "lucide-react";
|
|
21
|
+
import { toast as I } from "sonner";
|
|
21
22
|
// src/botlit/pages/StorePackageDetailPage.tsx
|
|
22
|
-
var
|
|
23
|
+
var L = ({ risk: e }) => {
|
|
23
24
|
let t = m();
|
|
24
|
-
return e ? /* @__PURE__ */
|
|
25
|
+
return e ? /* @__PURE__ */ C(d, {
|
|
25
26
|
variant: {
|
|
26
27
|
low: "success",
|
|
27
28
|
medium: "warning",
|
|
@@ -29,243 +30,203 @@ var F = ({ risk: e }) => {
|
|
|
29
30
|
}[e] ?? "secondary",
|
|
30
31
|
className: "capitalize",
|
|
31
32
|
children: t("botlit.store.detail.risk", "{{risk}} risk", { risk: e })
|
|
32
|
-
}) : /* @__PURE__ */
|
|
33
|
+
}) : /* @__PURE__ */ C(d, {
|
|
33
34
|
variant: "secondary",
|
|
34
35
|
children: t("botlit.store.detail.riskUnknown", "Risk unknown")
|
|
35
36
|
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
39
|
-
}
|
|
40
|
-
function L(e) {
|
|
41
|
-
return typeof e == "string" && e !== "" ? e : void 0;
|
|
42
|
-
}
|
|
43
|
-
function R(e) {
|
|
44
|
-
let t = I(e.package), n = I(t.author), r = I(e.security), i = I(e.integrity), a = I(e.compatibility), o = {};
|
|
45
|
-
for (let [e, t] of Object.entries(a)) {
|
|
46
|
-
let n = L(t);
|
|
47
|
-
n && (o[e] = n);
|
|
48
|
-
}
|
|
49
|
-
let s = Array.isArray(e.dependencies) ? e.dependencies.flatMap((e) => {
|
|
50
|
-
let t = I(e), n = L(t.slug);
|
|
51
|
-
return n ? [{
|
|
52
|
-
slug: n,
|
|
53
|
-
version: L(t.version) ?? "*"
|
|
54
|
-
}] : [];
|
|
55
|
-
}) : [];
|
|
56
|
-
return {
|
|
57
|
-
name: L(t.name),
|
|
58
|
-
slug: L(t.slug),
|
|
59
|
-
description: L(t.description),
|
|
60
|
-
icon: L(t.icon),
|
|
61
|
-
license: L(t.license),
|
|
62
|
-
homepage: L(t.homepage),
|
|
63
|
-
repository: L(t.repository),
|
|
64
|
-
authorName: L(n.name),
|
|
65
|
-
authorUrl: L(n.url),
|
|
66
|
-
tags: Array.isArray(t.tags) ? t.tags.filter((e) => typeof e == "string") : [],
|
|
67
|
-
dependencies: s,
|
|
68
|
-
compatibility: o,
|
|
69
|
-
risk: L(r.risk),
|
|
70
|
-
requiresSecrets: r.requiresSecrets === !0,
|
|
71
|
-
networkEgress: L(I(r.network).egress),
|
|
72
|
-
checksum: L(i.checksum),
|
|
73
|
-
signature: L(i.signature)
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
var z = () => {
|
|
77
|
-
let I = m(), L = p(I), { slug: z } = C(), { navigateTo: B } = e(), { data: V, loading: H } = g(z ? decodeURIComponent(z) : void 0), { install: U, loading: W } = h(), [G, K] = y(!1), q = v(() => R(V?.manifest ?? {}), [V?.manifest]), J = async (e, t) => {
|
|
37
|
+
}, R = () => {
|
|
38
|
+
let R = m(), z = p(R), B = T(), { navigateTo: V } = e(), { data: H, loading: U } = g(v(B)), { install: W, loading: G } = h(), [K, q] = x(!1), J = b(() => y(H?.manifest ?? {}), [H?.manifest]), Y = async (e, t) => {
|
|
78
39
|
try {
|
|
79
|
-
await
|
|
40
|
+
await W({
|
|
80
41
|
packageId: e.id,
|
|
81
42
|
mode: t
|
|
82
43
|
});
|
|
83
44
|
} catch (e) {
|
|
84
|
-
|
|
45
|
+
I.error(e instanceof Error ? e.message : R("botlit.store.install.error", "Could not install the package."));
|
|
85
46
|
return;
|
|
86
47
|
}
|
|
87
|
-
|
|
48
|
+
I.success(R("botlit.store.install.success", "Installed \"{{name}}\"", { name: J.name ?? e.slug })), q(!1), V("store/installed");
|
|
88
49
|
};
|
|
89
|
-
return
|
|
90
|
-
title:
|
|
91
|
-
children: /* @__PURE__ */
|
|
92
|
-
}) :
|
|
93
|
-
title: /* @__PURE__ */
|
|
50
|
+
return U ? /* @__PURE__ */ C(t, {
|
|
51
|
+
title: R("botlit.store.detail.loading", "Loading…"),
|
|
52
|
+
children: /* @__PURE__ */ C("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
53
|
+
}) : H ? /* @__PURE__ */ w(t, {
|
|
54
|
+
title: /* @__PURE__ */ w("div", {
|
|
94
55
|
className: "flex items-center gap-3",
|
|
95
56
|
children: [
|
|
96
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ C(u, {
|
|
97
58
|
variant: "ghost",
|
|
98
59
|
size: "icon",
|
|
99
|
-
onClick: () =>
|
|
100
|
-
children: /* @__PURE__ */
|
|
60
|
+
onClick: () => V("store"),
|
|
61
|
+
children: /* @__PURE__ */ C(E, { size: 20 })
|
|
101
62
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ C("div", {
|
|
103
64
|
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
104
|
-
children:
|
|
65
|
+
children: J.icon ? /* @__PURE__ */ C("span", {
|
|
105
66
|
className: "text-2xl",
|
|
106
|
-
children:
|
|
107
|
-
}) : /* @__PURE__ */
|
|
67
|
+
children: J.icon
|
|
68
|
+
}) : /* @__PURE__ */ C(N, { className: "h-6 w-6 text-primary" })
|
|
108
69
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
110
71
|
className: "flex items-center gap-2",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ C("span", { children: J.name ?? H.slug }), /* @__PURE__ */ w(d, {
|
|
112
73
|
variant: "outline",
|
|
113
|
-
children: ["v",
|
|
74
|
+
children: ["v", H.version]
|
|
114
75
|
})]
|
|
115
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ C("p", {
|
|
116
77
|
className: "text-sm font-normal text-text-secondary",
|
|
117
|
-
children:
|
|
78
|
+
children: H.slug
|
|
118
79
|
})] })
|
|
119
80
|
]
|
|
120
81
|
}),
|
|
121
|
-
actions: /* @__PURE__ */
|
|
82
|
+
actions: /* @__PURE__ */ w("div", {
|
|
122
83
|
className: "flex gap-2",
|
|
123
|
-
children: [
|
|
124
|
-
href:
|
|
84
|
+
children: [J.homepage && /* @__PURE__ */ C("a", {
|
|
85
|
+
href: J.homepage,
|
|
125
86
|
target: "_blank",
|
|
126
87
|
rel: "noopener noreferrer",
|
|
127
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ C(u, {
|
|
128
89
|
variant: "outline",
|
|
129
|
-
leftIcon: /* @__PURE__ */
|
|
130
|
-
children:
|
|
90
|
+
leftIcon: /* @__PURE__ */ C(k, { size: 16 }),
|
|
91
|
+
children: R("botlit.store.detail.homepage", "Homepage")
|
|
131
92
|
})
|
|
132
|
-
}), /* @__PURE__ */
|
|
93
|
+
}), /* @__PURE__ */ C(i, {
|
|
133
94
|
permission: r.STORE_CREATE,
|
|
134
|
-
children: /* @__PURE__ */
|
|
135
|
-
leftIcon: /* @__PURE__ */
|
|
136
|
-
onClick: () =>
|
|
137
|
-
children:
|
|
95
|
+
children: /* @__PURE__ */ C(u, {
|
|
96
|
+
leftIcon: /* @__PURE__ */ C(O, { size: 16 }),
|
|
97
|
+
onClick: () => q(!0),
|
|
98
|
+
children: R("botlit.store.detail.install", "Install")
|
|
138
99
|
})
|
|
139
100
|
})]
|
|
140
101
|
}),
|
|
141
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ w("div", {
|
|
142
103
|
className: "space-y-6",
|
|
143
104
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
icon: /* @__PURE__ */
|
|
146
|
-
children:
|
|
105
|
+
/* @__PURE__ */ C(S, {
|
|
106
|
+
icon: /* @__PURE__ */ C(N, { size: 18 }),
|
|
107
|
+
children: R("botlit.store.detail.purpose", "This is a store package: a ready-made bot, agent, skill, tool pack or template you can install into your workspace. Review what it does, its security posture and version, then install it, linked to the store listing or as your own forked copy.")
|
|
147
108
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ w("div", {
|
|
149
110
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
150
111
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ C(a, {
|
|
152
113
|
treatment: "glass",
|
|
153
114
|
glow: !0,
|
|
154
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ w(o, {
|
|
155
116
|
className: "pt-6 text-center",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ C(d, {
|
|
157
118
|
variant: "outline",
|
|
158
119
|
className: "text-xs",
|
|
159
|
-
children:
|
|
160
|
-
}), /* @__PURE__ */
|
|
120
|
+
children: z[H.kind] ?? H.kind
|
|
121
|
+
}), /* @__PURE__ */ C("p", {
|
|
161
122
|
className: "text-sm text-text-secondary mt-1",
|
|
162
|
-
children:
|
|
123
|
+
children: R("botlit.store.detail.type", "Type")
|
|
163
124
|
})]
|
|
164
125
|
})
|
|
165
126
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ C(a, { children: /* @__PURE__ */ w(o, {
|
|
167
128
|
className: "pt-6 text-center",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ w("p", {
|
|
169
130
|
className: "text-lg font-bold",
|
|
170
|
-
children: ["v",
|
|
171
|
-
}), /* @__PURE__ */
|
|
131
|
+
children: ["v", H.version]
|
|
132
|
+
}), /* @__PURE__ */ C("p", {
|
|
172
133
|
className: "text-sm text-text-secondary",
|
|
173
|
-
children:
|
|
134
|
+
children: R("botlit.store.detail.version", "Version")
|
|
174
135
|
})]
|
|
175
136
|
}) }),
|
|
176
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ C(a, { children: /* @__PURE__ */ w(o, {
|
|
177
138
|
className: "pt-6 text-center",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ C(L, { risk: J.risk }), /* @__PURE__ */ C("p", {
|
|
179
140
|
className: "text-sm text-text-secondary mt-1",
|
|
180
|
-
children:
|
|
141
|
+
children: R("botlit.store.detail.security", "Security")
|
|
181
142
|
})]
|
|
182
143
|
}) }),
|
|
183
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ C(a, { children: /* @__PURE__ */ w(o, {
|
|
184
145
|
className: "pt-6 text-center",
|
|
185
|
-
children: [/* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ C("p", {
|
|
186
147
|
className: "text-lg font-bold",
|
|
187
|
-
children:
|
|
188
|
-
}), /* @__PURE__ */
|
|
148
|
+
children: J.license ?? "—"
|
|
149
|
+
}), /* @__PURE__ */ C("p", {
|
|
189
150
|
className: "text-sm text-text-secondary",
|
|
190
|
-
children:
|
|
151
|
+
children: R("botlit.store.detail.license", "License")
|
|
191
152
|
})]
|
|
192
153
|
}) })
|
|
193
154
|
]
|
|
194
155
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ C(l, { children: R("botlit.store.detail.description", "Description") }) }), /* @__PURE__ */ w(o, { children: [/* @__PURE__ */ C("p", {
|
|
196
157
|
className: "text-text-primary",
|
|
197
|
-
children:
|
|
198
|
-
}),
|
|
158
|
+
children: J.description ?? "—"
|
|
159
|
+
}), J.tags.length > 0 && /* @__PURE__ */ w("div", {
|
|
199
160
|
className: "flex items-center gap-2 mt-4",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ C(F, {
|
|
201
162
|
size: 14,
|
|
202
163
|
className: "text-text-secondary"
|
|
203
|
-
}),
|
|
164
|
+
}), J.tags.map((e) => /* @__PURE__ */ C(d, {
|
|
204
165
|
variant: "secondary",
|
|
205
166
|
children: e
|
|
206
167
|
}, e))]
|
|
207
168
|
})] })] }),
|
|
208
|
-
|
|
169
|
+
H.readme && /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ w(l, {
|
|
209
170
|
className: "flex items-center gap-2",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
211
|
-
}) }), /* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ C(A, { size: 18 }), R("botlit.store.detail.readme", "README")]
|
|
172
|
+
}) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C("div", {
|
|
212
173
|
className: "prose prose-sm max-w-none dark:prose-invert",
|
|
213
|
-
children: /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ C("pre", {
|
|
214
175
|
className: "whitespace-pre-wrap text-sm",
|
|
215
|
-
children:
|
|
176
|
+
children: H.readme
|
|
216
177
|
})
|
|
217
178
|
}) })] }),
|
|
218
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ C(l, { children: R("botlit.store.detail.authorLinks", "Author & links") }) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ w("div", {
|
|
219
180
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6",
|
|
220
181
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
222
183
|
className: "text-sm text-text-secondary",
|
|
223
|
-
children:
|
|
224
|
-
}), /* @__PURE__ */
|
|
184
|
+
children: R("botlit.store.detail.author", "Author")
|
|
185
|
+
}), /* @__PURE__ */ w("div", {
|
|
225
186
|
className: "flex items-center gap-2 mt-1",
|
|
226
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ C("span", {
|
|
227
188
|
className: "font-medium",
|
|
228
|
-
children:
|
|
229
|
-
}),
|
|
230
|
-
href:
|
|
189
|
+
children: J.authorName ?? "—"
|
|
190
|
+
}), J.authorUrl && /* @__PURE__ */ C("a", {
|
|
191
|
+
href: J.authorUrl,
|
|
231
192
|
target: "_blank",
|
|
232
193
|
rel: "noopener noreferrer",
|
|
233
194
|
className: "text-primary hover:underline",
|
|
234
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ C(k, { size: 12 })
|
|
235
196
|
})]
|
|
236
197
|
})] }),
|
|
237
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
238
199
|
className: "text-sm text-text-secondary",
|
|
239
|
-
children:
|
|
240
|
-
}), /* @__PURE__ */
|
|
200
|
+
children: R("botlit.store.detail.published", "Published")
|
|
201
|
+
}), /* @__PURE__ */ C("p", {
|
|
241
202
|
className: "font-medium mt-1",
|
|
242
|
-
children: _(
|
|
203
|
+
children: _(H.publishedAt)
|
|
243
204
|
})] }),
|
|
244
|
-
|
|
205
|
+
J.repository && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
245
206
|
className: "text-sm text-text-secondary",
|
|
246
|
-
children:
|
|
247
|
-
}), /* @__PURE__ */
|
|
248
|
-
href:
|
|
207
|
+
children: R("botlit.store.detail.repository", "Repository")
|
|
208
|
+
}), /* @__PURE__ */ w("a", {
|
|
209
|
+
href: J.repository,
|
|
249
210
|
target: "_blank",
|
|
250
211
|
rel: "noopener noreferrer",
|
|
251
212
|
className: "flex items-center gap-1 mt-1 text-primary hover:underline",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ C(j, { size: 14 }), R("botlit.store.detail.viewSource", "View source")]
|
|
253
214
|
})] }),
|
|
254
|
-
|
|
215
|
+
J.homepage && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
255
216
|
className: "text-sm text-text-secondary",
|
|
256
|
-
children:
|
|
257
|
-
}), /* @__PURE__ */
|
|
258
|
-
href:
|
|
217
|
+
children: R("botlit.store.detail.homepage", "Homepage")
|
|
218
|
+
}), /* @__PURE__ */ w("a", {
|
|
219
|
+
href: J.homepage,
|
|
259
220
|
target: "_blank",
|
|
260
221
|
rel: "noopener noreferrer",
|
|
261
222
|
className: "flex items-center gap-1 mt-1 text-primary hover:underline",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ C(M, { size: 14 }), R("botlit.store.detail.visitSite", "Visit site")]
|
|
263
224
|
})] })
|
|
264
225
|
]
|
|
265
226
|
}) })] }),
|
|
266
|
-
|
|
227
|
+
J.dependencies.length > 0 && /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ w(c, { children: [/* @__PURE__ */ C(l, { children: R("botlit.store.detail.dependencies", "Dependencies") }), /* @__PURE__ */ C(s, { children: R("botlit.store.detail.dependsOn", "This package depends on {{count}} other package(s)", { count: J.dependencies.length }) })] }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C("div", {
|
|
267
228
|
className: "flex flex-wrap gap-2",
|
|
268
|
-
children:
|
|
229
|
+
children: J.dependencies.map((e) => /* @__PURE__ */ w(d, {
|
|
269
230
|
variant: "outline",
|
|
270
231
|
className: "font-mono",
|
|
271
232
|
children: [
|
|
@@ -275,101 +236,101 @@ var z = () => {
|
|
|
275
236
|
]
|
|
276
237
|
}, e.slug))
|
|
277
238
|
}) })] }),
|
|
278
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ w("div", {
|
|
279
240
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ w(l, {
|
|
281
242
|
className: "flex items-center gap-2",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
283
|
-
}) }), /* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ C(D, { size: 18 }), R("botlit.store.detail.compatibility", "Compatibility")]
|
|
244
|
+
}) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C("div", {
|
|
284
245
|
className: "space-y-2",
|
|
285
|
-
children: Object.keys(
|
|
246
|
+
children: Object.keys(J.compatibility).length === 0 ? /* @__PURE__ */ C("p", {
|
|
286
247
|
className: "text-sm text-text-secondary",
|
|
287
|
-
children:
|
|
288
|
-
}) : Object.entries(
|
|
248
|
+
children: R("botlit.store.detail.noCompatibility", "This package does not declare compatibility ranges.")
|
|
249
|
+
}) : Object.entries(J.compatibility).map(([e, t]) => /* @__PURE__ */ w("div", {
|
|
289
250
|
className: "flex justify-between",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ C("span", {
|
|
291
252
|
className: "text-text-secondary capitalize",
|
|
292
253
|
children: e
|
|
293
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ C(d, {
|
|
294
255
|
variant: "outline",
|
|
295
256
|
children: t
|
|
296
257
|
})]
|
|
297
258
|
}, e))
|
|
298
|
-
}) })] }), /* @__PURE__ */
|
|
259
|
+
}) })] }), /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ w(l, {
|
|
299
260
|
className: "flex items-center gap-2",
|
|
300
|
-
children: [/* @__PURE__ */
|
|
301
|
-
}) }), /* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ C(P, { size: 18 }), R("botlit.store.detail.security", "Security")]
|
|
262
|
+
}) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ w("div", {
|
|
302
263
|
className: "space-y-3",
|
|
303
264
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ w("div", {
|
|
305
266
|
className: "flex items-center justify-between",
|
|
306
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ C("span", {
|
|
307
268
|
className: "text-text-secondary",
|
|
308
|
-
children:
|
|
309
|
-
}), /* @__PURE__ */
|
|
269
|
+
children: R("botlit.store.detail.riskLevel", "Risk level")
|
|
270
|
+
}), /* @__PURE__ */ C(L, { risk: J.risk })]
|
|
310
271
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ w("div", {
|
|
312
273
|
className: "flex items-center justify-between",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ C("span", {
|
|
314
275
|
className: "text-text-secondary",
|
|
315
|
-
children:
|
|
316
|
-
}), /* @__PURE__ */
|
|
317
|
-
variant:
|
|
318
|
-
children:
|
|
276
|
+
children: R("botlit.store.detail.requiresSecrets", "Requires secrets")
|
|
277
|
+
}), /* @__PURE__ */ C(d, {
|
|
278
|
+
variant: J.requiresSecrets ? "warning" : "secondary",
|
|
279
|
+
children: J.requiresSecrets ? R("botlit.store.detail.yes", "Yes") : R("botlit.store.detail.no", "No")
|
|
319
280
|
})]
|
|
320
281
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ w("div", {
|
|
322
283
|
className: "flex items-center justify-between",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ C("span", {
|
|
324
285
|
className: "text-text-secondary",
|
|
325
|
-
children:
|
|
326
|
-
}), /* @__PURE__ */
|
|
327
|
-
variant:
|
|
286
|
+
children: R("botlit.store.detail.networkEgress", "Network egress")
|
|
287
|
+
}), /* @__PURE__ */ C(d, {
|
|
288
|
+
variant: J.networkEgress === "any" ? "warning" : J.networkEgress === "restricted" ? "secondary" : "success",
|
|
328
289
|
className: "capitalize",
|
|
329
|
-
children:
|
|
290
|
+
children: J.networkEgress ?? R("botlit.store.detail.unknown", "unknown")
|
|
330
291
|
})]
|
|
331
292
|
})
|
|
332
293
|
]
|
|
333
294
|
}) })] })]
|
|
334
295
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ C(l, { children: R("botlit.store.detail.integrity", "Integrity") }) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ w("div", {
|
|
336
297
|
className: "space-y-2",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
338
299
|
className: "text-sm text-text-secondary",
|
|
339
|
-
children:
|
|
340
|
-
}), /* @__PURE__ */
|
|
300
|
+
children: R("botlit.store.detail.checksum", "Checksum")
|
|
301
|
+
}), /* @__PURE__ */ C("p", {
|
|
341
302
|
className: "font-mono text-sm break-all",
|
|
342
|
-
children:
|
|
343
|
-
})] }),
|
|
303
|
+
children: J.checksum ?? "—"
|
|
304
|
+
})] }), J.signature && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
344
305
|
className: "text-sm text-text-secondary",
|
|
345
|
-
children:
|
|
346
|
-
}), /* @__PURE__ */
|
|
306
|
+
children: R("botlit.store.detail.signature", "Signature")
|
|
307
|
+
}), /* @__PURE__ */ C("p", {
|
|
347
308
|
className: "font-mono text-sm break-all",
|
|
348
|
-
children:
|
|
309
|
+
children: J.signature
|
|
349
310
|
})] })]
|
|
350
311
|
}) })] })
|
|
351
312
|
]
|
|
352
|
-
}), /* @__PURE__ */
|
|
353
|
-
pkg:
|
|
354
|
-
name:
|
|
355
|
-
requiresSecrets:
|
|
356
|
-
installing:
|
|
357
|
-
onConfirm: (e, t) => void
|
|
358
|
-
onClose: () =>
|
|
313
|
+
}), /* @__PURE__ */ C(f, {
|
|
314
|
+
pkg: K ? H : null,
|
|
315
|
+
name: J.name ?? H.slug,
|
|
316
|
+
requiresSecrets: J.requiresSecrets,
|
|
317
|
+
installing: G,
|
|
318
|
+
onConfirm: (e, t) => void Y(e, t),
|
|
319
|
+
onClose: () => q(!1)
|
|
359
320
|
})]
|
|
360
|
-
}) : /* @__PURE__ */
|
|
361
|
-
title:
|
|
362
|
-
children: /* @__PURE__ */
|
|
321
|
+
}) : /* @__PURE__ */ C(t, {
|
|
322
|
+
title: R("botlit.store.detail.notFound", "Package not found"),
|
|
323
|
+
children: /* @__PURE__ */ C(n, {
|
|
363
324
|
illustration: "empty-search",
|
|
364
|
-
title:
|
|
365
|
-
description:
|
|
366
|
-
action: /* @__PURE__ */
|
|
367
|
-
onClick: () =>
|
|
368
|
-
children:
|
|
325
|
+
title: R("botlit.store.detail.notFound", "Package not found"),
|
|
326
|
+
description: R("botlit.store.detail.notFoundBody", "This package does not exist or is no longer published."),
|
|
327
|
+
action: /* @__PURE__ */ C(u, {
|
|
328
|
+
onClick: () => V("store"),
|
|
329
|
+
children: R("botlit.store.detail.backToStore", "Back to Store")
|
|
369
330
|
})
|
|
370
331
|
})
|
|
371
332
|
});
|
|
372
333
|
};
|
|
373
|
-
export {
|
|
334
|
+
export { R as StorePackageDetailPage };
|
|
374
335
|
|
|
375
336
|
//# sourceMappingURL=StorePackageDetailPage.js.map
|