@burdenoff/microfe-vibecontrols 2026.1115.2 → 2026.1115.4
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/components/components/ComponentsTable.d.ts +14 -4
- package/dist/components/components/ComponentsTable.js +44 -72
- package/dist/components/components/componentSort.d.ts +38 -0
- package/dist/components/components/componentSort.js +50 -0
- package/dist/components/components/index.d.ts +3 -1
- package/dist/components/components/index.js +3 -1
- package/dist/generated/global-types.d.ts +6887 -969
- package/dist/generated/wspace-types.d.ts +117900 -10799
- package/dist/generated/wspace-types.js +25 -21
- package/dist/pages/ComponentsPage.js +89 -84
- package/dist/translations/en.d.ts +1 -0
- package/dist/translations/en.js +1 -0
- package/package.json +1 -1
|
@@ -6,46 +6,50 @@ var e = /* @__PURE__ */ function(e) {
|
|
|
6
6
|
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
7
|
return e.Editor = "EDITOR", e.Owner = "OWNER", e.Viewer = "VIEWER", e;
|
|
8
8
|
}({}), r = /* @__PURE__ */ function(e) {
|
|
9
|
-
return e.
|
|
9
|
+
return e.Asc = "ASC", e.Desc = "DESC", e;
|
|
10
10
|
}({}), i = /* @__PURE__ */ function(e) {
|
|
11
|
-
return e.
|
|
11
|
+
return e.Health = "HEALTH", e.Lifecycle = "LIFECYCLE", e.Name = "NAME", e.Owner = "OWNER", e.UpdatedAt = "UPDATED_AT", e.Version = "VERSION", e;
|
|
12
12
|
}({}), a = /* @__PURE__ */ function(e) {
|
|
13
|
-
return e.
|
|
13
|
+
return e.Api = "API", e.Custom = "CUSTOM", e.Database = "DATABASE", e.Dependency = "DEPENDENCY", e.Documentation = "DOCUMENTATION", e.Frontend = "FRONTEND", e.Infrastructure = "INFRASTRUCTURE", e.Job = "JOB", e.Library = "LIBRARY", e.Package = "PACKAGE", e.Service = "SERVICE", e.Tool = "TOOL", e.Workflow = "WORKFLOW", e;
|
|
14
14
|
}({}), o = /* @__PURE__ */ function(e) {
|
|
15
|
-
return e.
|
|
15
|
+
return e.Development = "DEVELOPMENT", e.Production = "PRODUCTION", e.Staging = "STAGING", e;
|
|
16
16
|
}({}), s = /* @__PURE__ */ function(e) {
|
|
17
|
-
return e.
|
|
17
|
+
return e.AgentsMd = "AGENTS_MD", e.ClaudeMd = "CLAUDE_MD", e.Custom = "CUSTOM", e.GeminiMd = "GEMINI_MD", e;
|
|
18
18
|
}({}), c = /* @__PURE__ */ function(e) {
|
|
19
|
-
return e.
|
|
19
|
+
return e.Agent = "AGENT", e.Vibe = "VIBE", e;
|
|
20
20
|
}({}), l = /* @__PURE__ */ function(e) {
|
|
21
|
-
return e.
|
|
21
|
+
return e.Logs = "LOGS", e.Shell = "SHELL", e.Terminal = "TERMINAL", e;
|
|
22
22
|
}({}), u = /* @__PURE__ */ function(e) {
|
|
23
|
-
return e.
|
|
23
|
+
return e.Private = "PRIVATE", e.Workspace = "WORKSPACE", e;
|
|
24
24
|
}({}), d = /* @__PURE__ */ function(e) {
|
|
25
|
-
return e.
|
|
25
|
+
return e.Bronze = "BRONZE", e.Gold = "GOLD", e.Silver = "SILVER", e;
|
|
26
26
|
}({}), f = /* @__PURE__ */ function(e) {
|
|
27
|
-
return e.
|
|
27
|
+
return e.Interact = "INTERACT", e.View = "VIEW", e;
|
|
28
28
|
}({}), p = /* @__PURE__ */ function(e) {
|
|
29
|
-
return e.
|
|
29
|
+
return e.Custom = "CUSTOM", e.ManagedSubdomain = "MANAGED_SUBDOMAIN", e;
|
|
30
30
|
}({}), m = /* @__PURE__ */ function(e) {
|
|
31
|
-
return e.
|
|
31
|
+
return e.Expired = "EXPIRED", e.Failed = "FAILED", e.Pending = "PENDING", e.Verified = "VERIFIED", e.Verifying = "VERIFYING", e;
|
|
32
32
|
}({}), h = /* @__PURE__ */ function(e) {
|
|
33
|
-
return e.
|
|
33
|
+
return e.Alpha = "ALPHA", e.Prod = "PROD", e;
|
|
34
34
|
}({}), g = /* @__PURE__ */ function(e) {
|
|
35
|
-
return e.
|
|
35
|
+
return e.Http = "HTTP", e.Https = "HTTPS", e.Tcp = "TCP", e.Udp = "UDP", e;
|
|
36
36
|
}({}), _ = /* @__PURE__ */ function(e) {
|
|
37
|
-
return e.
|
|
37
|
+
return e.Cloudflare = "CLOUDFLARE", e.Vibetunnels = "VIBETUNNELS", e;
|
|
38
38
|
}({}), v = /* @__PURE__ */ function(e) {
|
|
39
|
-
return e.
|
|
39
|
+
return e.Connected = "CONNECTED", e.Disconnected = "DISCONNECTED", e.Expired = "EXPIRED", e.Issued = "ISSUED", e.Revoked = "REVOKED", e;
|
|
40
40
|
}({}), y = /* @__PURE__ */ function(e) {
|
|
41
|
-
return e.
|
|
41
|
+
return e.Active = "ACTIVE", e.Degraded = "DEGRADED", e.Deleting = "DELETING", e.Draft = "DRAFT", e.Error = "ERROR", e.Provisioning = "PROVISIONING", e.Stopped = "STOPPED", e;
|
|
42
42
|
}({}), b = /* @__PURE__ */ function(e) {
|
|
43
|
-
return e.
|
|
43
|
+
return e.Csv = "CSV", e.Json = "JSON", e;
|
|
44
44
|
}({}), x = /* @__PURE__ */ function(e) {
|
|
45
|
-
return e.
|
|
45
|
+
return e.Execute = "EXECUTE", e.View = "VIEW", e;
|
|
46
46
|
}({}), S = /* @__PURE__ */ function(e) {
|
|
47
|
-
return e.
|
|
47
|
+
return e.Action = "ACTION", e.AiContext = "AI_CONTEXT", e.AiPrompt = "AI_PROMPT", e.InstructionFile = "INSTRUCTION_FILE", e.Sandbox = "SANDBOX", e.ScheduledJob = "SCHEDULED_JOB", e.Tunnel = "TUNNEL", e.VibeDeck = "VIBE_DECK", e;
|
|
48
48
|
}({}), C = /* @__PURE__ */ function(e) {
|
|
49
|
+
return e.Custom = "CUSTOM", e.Monorepo = "MONOREPO", e.Package = "PACKAGE", e.Project = "PROJECT", e.Repository = "REPOSITORY", e.Workspace = "WORKSPACE", e;
|
|
50
|
+
}({}), w = /* @__PURE__ */ function(e) {
|
|
51
|
+
return e.Private = "PRIVATE", e.SharedWithVibe = "SHARED_WITH_VIBE", e;
|
|
52
|
+
}({}), T = /* @__PURE__ */ function(e) {
|
|
49
53
|
return e.Custom = "CUSTOM", e.Script = "SCRIPT", e.Ssh = "SSH", e.Terminal = "TERMINAL", e.Tmux = "TMUX", e.Wezterm = "WEZTERM", e.Zellij = "ZELLIJ", e;
|
|
50
54
|
}({});
|
|
51
|
-
export { e as AgentCapabilityScope, t as AnalyticsEntityType, n as CollaboratorRole, r as
|
|
55
|
+
export { e as AgentCapabilityScope, t as AnalyticsEntityType, n as CollaboratorRole, r as ComponentSortDirection, i as ComponentSortField, a as ComponentType, o as DeploymentEnvironment, s as InstructionFilename, c as InstructionScope, l as MeshSessionKind, u as NoteVisibility, d as ScorecardTier, f as SessionSharePermission, p as TunnelDomainType, m as TunnelDomainVerificationStatus, h as TunnelEnvironment, g as TunnelProtocol, _ as TunnelProviderKey, v as TunnelSessionStatus, y as TunnelStatus, b as VibeAuditExportFormat, x as VibeDeckSharePermission, S as VibeEntityType, C as VibeType, w as VibeVisibility, T as VibecontrolsSessionType };
|
|
@@ -9,28 +9,29 @@ import { PageSkeleton as ee } from "../components/shared/PageSkeleton.js";
|
|
|
9
9
|
import { EmptyState as te } from "../components/shared/EmptyState.js";
|
|
10
10
|
import { SearchInput as ne } from "../components/shared/SearchInput.js";
|
|
11
11
|
import { FilterDropdown as a } from "../components/shared/FilterDropdown.js";
|
|
12
|
-
import { GetHelpButton as
|
|
13
|
-
import { useDraftEntityTags as
|
|
12
|
+
import { GetHelpButton as re } from "../components/shared/GetHelpButton.js";
|
|
13
|
+
import { useDraftEntityTags as ie } from "../hooks/useDraftEntityTags.js";
|
|
14
14
|
import "../components/shared/index.js";
|
|
15
|
-
import { isQuotaExhaustedError as
|
|
16
|
-
import { ComponentCard as
|
|
15
|
+
import { isQuotaExhaustedError as o } from "../utils/quotaUtils.js";
|
|
16
|
+
import { ComponentCard as s } from "../components/idp-components/ComponentCard.js";
|
|
17
17
|
import { ComponentForm as ae } from "../components/idp-components/ComponentForm.js";
|
|
18
|
-
import { BILLING_PLANS_ROUTE as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
18
|
+
import { BILLING_PLANS_ROUTE as oe, useVibeNavigate as c } from "../providers/VibeControlsProvider.js";
|
|
19
|
+
import { DEFAULT_COMPONENT_SORT as se, displayedSort as ce, toServerSort as le } from "../components/components/componentSort.js";
|
|
20
|
+
import { ComponentsTable as ue } from "../components/components/ComponentsTable.js";
|
|
21
|
+
import { useCreateComponentMutation as de, useListComponentsQuery as fe } from "../generated/wspace-operations.js";
|
|
22
|
+
import { useCallback as l, useEffect as pe, useMemo as u, useState as d } from "react";
|
|
23
|
+
import { useI18n as me } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
24
|
+
import { ArrowRight as he, Box as f, Grid as ge, List as _e, Network as ve, Plus as p, RefreshCw as ye } from "lucide-react";
|
|
25
|
+
import { usePermissions as be } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
26
|
+
import { AnimatePresence as xe } from "framer-motion";
|
|
26
27
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
27
|
-
import { CTAOverflowMenu as
|
|
28
|
-
import { MotionItem as
|
|
29
|
-
import { useAssistantPageControls as
|
|
30
|
-
import { enumFilter as _, filtersOf as
|
|
28
|
+
import { CTAOverflowMenu as Se, PagePurpose as Ce } from "@burdenoff/fe-libs/ui";
|
|
29
|
+
import { MotionItem as we, MotionList as Te, MotionPage as g } from "@burdenoff/fe-libs/shared/motion";
|
|
30
|
+
import { useAssistantPageControls as Ee } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
31
|
+
import { enumFilter as _, filtersOf as De, searchOf as Oe } from "@burdenoff/fe-libs/shared/assistant/appControls/pageAdapters";
|
|
31
32
|
// src/pages/ComponentsPage.tsx
|
|
32
33
|
function v() {
|
|
33
|
-
let v =
|
|
34
|
+
let v = c(), { t: y } = me(), { hasPermission: b, isLoading: x } = be(), S = b(e.COMPONENT_CREATE), C = b(e.COMPONENT_READ), w = l((e, t, n) => {
|
|
34
35
|
let r = y(e, n), i = r === e ? t : r;
|
|
35
36
|
return n ? Object.entries(n).reduce((e, [t, n]) => e.replace(`{{${t}}}`, String(n)), i) : i;
|
|
36
37
|
}, [y]), T = u(() => [
|
|
@@ -91,9 +92,9 @@ function v() {
|
|
|
91
92
|
value: "END_OF_LIFE",
|
|
92
93
|
label: w("component.lifecycleEndOfLife", "End of Life")
|
|
93
94
|
}
|
|
94
|
-
], [w]), [D, O] = d(""), [k, A] = d("all"), [j, M] = d("all"),
|
|
95
|
+
], [w]), [D, O] = d(""), [k, A] = d("all"), [j, M] = d("all"), [N, ke] = d(se), Ae = u(() => ({
|
|
95
96
|
page: w("vibecontrols.assistant.page.components", "Components"),
|
|
96
|
-
filters:
|
|
97
|
+
filters: De([_({
|
|
97
98
|
id: "type",
|
|
98
99
|
label: w("component.filterType", "Type"),
|
|
99
100
|
options: T,
|
|
@@ -108,7 +109,7 @@ function v() {
|
|
|
108
109
|
value: j,
|
|
109
110
|
set: M
|
|
110
111
|
})]),
|
|
111
|
-
search:
|
|
112
|
+
search: Oe(O)
|
|
112
113
|
}), [
|
|
113
114
|
w,
|
|
114
115
|
T,
|
|
@@ -116,13 +117,14 @@ function v() {
|
|
|
116
117
|
k,
|
|
117
118
|
j
|
|
118
119
|
]);
|
|
119
|
-
|
|
120
|
-
let [
|
|
120
|
+
Ee(Ae);
|
|
121
|
+
let [P, F] = d("table"), [je, I] = d(!1), [Me, L] = d(!1), [R, z] = d(null), [B, Ne] = d([]), [V, H] = d(!1), { data: U, loading: W, error: G, refetch: K, fetchMore: q } = fe({
|
|
121
122
|
variables: {
|
|
122
123
|
filter: {
|
|
123
124
|
type: k === "all" ? void 0 : k,
|
|
124
125
|
lifecycle: j === "all" ? void 0 : j,
|
|
125
|
-
search: D || void 0
|
|
126
|
+
search: D || void 0,
|
|
127
|
+
sort: le(N)
|
|
126
128
|
},
|
|
127
129
|
pagination: {
|
|
128
130
|
limit: 50,
|
|
@@ -132,10 +134,10 @@ function v() {
|
|
|
132
134
|
skip: x || !C,
|
|
133
135
|
fetchPolicy: "cache-and-network",
|
|
134
136
|
notifyOnNetworkStatusChange: !0
|
|
135
|
-
}), [
|
|
137
|
+
}), [Pe] = de({
|
|
136
138
|
refetchQueries: ["ListComponents"],
|
|
137
139
|
awaitRefetchQueries: !0
|
|
138
|
-
}), { setDraftTagIds:
|
|
140
|
+
}), { setDraftTagIds: Fe, flushTags: Ie } = ie("VIBECONTROLS_COMPONENT"), J = l((e) => e.map((e) => ({
|
|
139
141
|
id: e.id,
|
|
140
142
|
name: e.name,
|
|
141
143
|
description: e.description ?? null,
|
|
@@ -151,17 +153,17 @@ function v() {
|
|
|
151
153
|
overallScore: e.scorecard?.overallScore ?? null,
|
|
152
154
|
securityTier: e.scorecard?.securityTier ?? null
|
|
153
155
|
})), []);
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}, [
|
|
157
|
-
let Y =
|
|
158
|
-
if (!
|
|
159
|
-
|
|
156
|
+
pe(() => {
|
|
157
|
+
Ne(J(U?.vibecontrolsComponents?.items ?? []));
|
|
158
|
+
}, [U?.vibecontrolsComponents?.items, J]);
|
|
159
|
+
let Y = U?.vibecontrolsComponents?.total ?? 0, X = B.length < Y, Le = ce(N, X), Z = B, Q = B, Re = l(async () => {
|
|
160
|
+
if (!V && X) {
|
|
161
|
+
H(!0);
|
|
160
162
|
try {
|
|
161
|
-
await
|
|
163
|
+
await q({
|
|
162
164
|
variables: { pagination: {
|
|
163
165
|
limit: 50,
|
|
164
|
-
offset:
|
|
166
|
+
offset: B.length
|
|
165
167
|
} },
|
|
166
168
|
updateQuery: (e, { fetchMoreResult: t }) => {
|
|
167
169
|
if (!t?.vibecontrolsComponents) return e;
|
|
@@ -178,13 +180,13 @@ function v() {
|
|
|
178
180
|
}
|
|
179
181
|
});
|
|
180
182
|
} finally {
|
|
181
|
-
|
|
183
|
+
H(!1);
|
|
182
184
|
}
|
|
183
185
|
}
|
|
184
186
|
}, [
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
q,
|
|
188
|
+
B.length,
|
|
189
|
+
V,
|
|
188
190
|
X
|
|
189
191
|
]);
|
|
190
192
|
if (x) return /* @__PURE__ */ m("div", {
|
|
@@ -210,12 +212,12 @@ function v() {
|
|
|
210
212
|
let $ = (e) => {
|
|
211
213
|
v(`/components/${e.id}`);
|
|
212
214
|
};
|
|
213
|
-
return
|
|
215
|
+
return G && Z.length === 0 ? /* @__PURE__ */ m(g, {
|
|
214
216
|
className: "space-y-6 px-6 lg:px-8 py-6 bg-bg-canvas min-h-screen",
|
|
215
217
|
children: /* @__PURE__ */ m(r, {
|
|
216
218
|
title: w("component.failedLoad", "Failed to load components"),
|
|
217
|
-
message:
|
|
218
|
-
onRetry: () =>
|
|
219
|
+
message: G.message,
|
|
220
|
+
onRetry: () => K()
|
|
219
221
|
})
|
|
220
222
|
}) : /* @__PURE__ */ h(g, {
|
|
221
223
|
className: "space-y-6 px-6 lg:px-8 py-6 bg-bg-canvas min-h-screen",
|
|
@@ -223,21 +225,21 @@ function v() {
|
|
|
223
225
|
/* @__PURE__ */ m(n, {
|
|
224
226
|
title: w("component.title", "Components"),
|
|
225
227
|
description: Y > 0 ? w("component.description", "{{total}} components in your catalog", { total: Z.length }) : w("component.descriptionEmpty", "Track every service, frontend, library, and API in your system — dependencies, owners, and lifecycle in one place"),
|
|
226
|
-
actions: /* @__PURE__ */ m(
|
|
228
|
+
actions: /* @__PURE__ */ m(Se, {
|
|
227
229
|
primary: S ? {
|
|
228
230
|
label: w("component.createComponent", "Create Component"),
|
|
229
|
-
onSelect: () =>
|
|
231
|
+
onSelect: () => I(!0),
|
|
230
232
|
icon: /* @__PURE__ */ m(p, { className: "size-4" })
|
|
231
233
|
} : void 0,
|
|
232
234
|
actions: [{
|
|
233
235
|
label: w("common.refresh", "Refresh"),
|
|
234
|
-
onSelect: () => void
|
|
235
|
-
disabled:
|
|
236
|
-
icon: /* @__PURE__ */ m(
|
|
236
|
+
onSelect: () => void K(),
|
|
237
|
+
disabled: W,
|
|
238
|
+
icon: /* @__PURE__ */ m(ye, { className: `size-4 ${W ? "animate-spin" : ""}` })
|
|
237
239
|
}]
|
|
238
240
|
})
|
|
239
241
|
}),
|
|
240
|
-
/* @__PURE__ */ m(
|
|
242
|
+
/* @__PURE__ */ m(Ce, {
|
|
241
243
|
icon: /* @__PURE__ */ m(f, { className: "size-4" }),
|
|
242
244
|
children: w("component.purpose", "Components are the individual building blocks of your software — each service, frontend, library or API — tracked with its owner, dependencies and lifecycle. Register your components here to build a living map of your system, so anyone can find what something is, who runs it and what it depends on.")
|
|
243
245
|
}),
|
|
@@ -249,7 +251,7 @@ function v() {
|
|
|
249
251
|
children: [
|
|
250
252
|
/* @__PURE__ */ m("span", {
|
|
251
253
|
className: "flex-shrink-0 size-9 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
252
|
-
children: /* @__PURE__ */ m(
|
|
254
|
+
children: /* @__PURE__ */ m(ve, {
|
|
253
255
|
className: "size-4 text-action-primary-bg",
|
|
254
256
|
"aria-hidden": "true"
|
|
255
257
|
})
|
|
@@ -264,7 +266,7 @@ function v() {
|
|
|
264
266
|
children: w("component.envTopologyLinkDescription", "See which version of every component is currently deployed across Development, Staging and Production.")
|
|
265
267
|
})]
|
|
266
268
|
}),
|
|
267
|
-
/* @__PURE__ */ m(
|
|
269
|
+
/* @__PURE__ */ m(he, {
|
|
268
270
|
className: "size-4 flex-shrink-0 text-text-muted",
|
|
269
271
|
"aria-hidden": "true"
|
|
270
272
|
})
|
|
@@ -289,23 +291,23 @@ function v() {
|
|
|
289
291
|
className: "flex flex-shrink-0 items-center gap-1 rounded-button border border-border-subtle bg-bg-sunken p-1",
|
|
290
292
|
children: [/* @__PURE__ */ m("button", {
|
|
291
293
|
type: "button",
|
|
292
|
-
onClick: () =>
|
|
293
|
-
"aria-pressed":
|
|
294
|
+
onClick: () => F("table"),
|
|
295
|
+
"aria-pressed": P === "table",
|
|
294
296
|
"aria-label": w("component.tableViewTitle", "Table view"),
|
|
295
297
|
title: w("component.tableViewTitle", "Table view"),
|
|
296
|
-
className: `flex size-8 max-md:size-9 items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${
|
|
297
|
-
children: /* @__PURE__ */ m(
|
|
298
|
+
className: `flex size-8 max-md:size-9 items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${P === "table" ? "bg-[var(--color-accent-soft)] text-text-primary" : "text-text-secondary hover:bg-bg-surface/60"}`,
|
|
299
|
+
children: /* @__PURE__ */ m(_e, {
|
|
298
300
|
className: "size-4 text-text-secondary",
|
|
299
301
|
"aria-hidden": "true"
|
|
300
302
|
})
|
|
301
303
|
}), /* @__PURE__ */ m("button", {
|
|
302
304
|
type: "button",
|
|
303
|
-
onClick: () =>
|
|
304
|
-
"aria-pressed":
|
|
305
|
+
onClick: () => F("grid"),
|
|
306
|
+
"aria-pressed": P === "grid",
|
|
305
307
|
"aria-label": w("component.gridViewTitle", "Grid view"),
|
|
306
308
|
title: w("component.gridViewTitle", "Grid view"),
|
|
307
|
-
className: `flex size-8 max-md:size-9 items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${
|
|
308
|
-
children: /* @__PURE__ */ m(
|
|
309
|
+
className: `flex size-8 max-md:size-9 items-center justify-center rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${P === "grid" ? "bg-[var(--color-accent-soft)] text-text-primary" : "text-text-secondary hover:bg-bg-surface/60"}`,
|
|
310
|
+
children: /* @__PURE__ */ m(ge, {
|
|
309
311
|
className: "size-4 text-text-secondary",
|
|
310
312
|
"aria-hidden": "true"
|
|
311
313
|
})
|
|
@@ -337,27 +339,30 @@ function v() {
|
|
|
337
339
|
children: [w("component.showingResults", "Showing {{filtered}} of {{total}} components", {
|
|
338
340
|
filtered: Q.length,
|
|
339
341
|
total: Y
|
|
340
|
-
}),
|
|
342
|
+
}), W && /* @__PURE__ */ m("span", {
|
|
341
343
|
className: "ml-2 text-text-muted",
|
|
342
344
|
children: w("common.refreshing", "(refreshing...)")
|
|
343
345
|
})]
|
|
344
346
|
}),
|
|
345
|
-
|
|
346
|
-
variant:
|
|
347
|
+
W && Z.length === 0 ? /* @__PURE__ */ m(ee, {
|
|
348
|
+
variant: P === "table" ? "rows" : "cards",
|
|
347
349
|
count: 6
|
|
348
|
-
}) : Q.length > 0 ?
|
|
350
|
+
}) : Q.length > 0 ? P === "table" ? /* @__PURE__ */ m("div", {
|
|
349
351
|
"data-tour": "vibecontrols-component-grid",
|
|
350
|
-
children: /* @__PURE__ */ m(
|
|
352
|
+
children: /* @__PURE__ */ m(ue, {
|
|
351
353
|
components: Q,
|
|
352
|
-
onOpen:
|
|
354
|
+
onOpen: $,
|
|
355
|
+
sort: Le,
|
|
356
|
+
onSortChange: ke,
|
|
357
|
+
canSortTier: !X
|
|
353
358
|
})
|
|
354
|
-
}) : /* @__PURE__ */ m(
|
|
359
|
+
}) : /* @__PURE__ */ m(xe, {
|
|
355
360
|
mode: "wait",
|
|
356
|
-
children: /* @__PURE__ */ m(
|
|
361
|
+
children: /* @__PURE__ */ m(Te, {
|
|
357
362
|
stagger: .04,
|
|
358
363
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
359
364
|
"data-tour": "vibecontrols-component-grid",
|
|
360
|
-
children: Q.map((e) => /* @__PURE__ */ m(
|
|
365
|
+
children: Q.map((e) => /* @__PURE__ */ m(we, { children: /* @__PURE__ */ m(s, {
|
|
361
366
|
component: e,
|
|
362
367
|
onOpen: $
|
|
363
368
|
}) }, e.id))
|
|
@@ -374,41 +379,41 @@ function v() {
|
|
|
374
379
|
className: "flex items-center gap-2",
|
|
375
380
|
children: [S && /* @__PURE__ */ h("button", {
|
|
376
381
|
type: "button",
|
|
377
|
-
onClick: () =>
|
|
382
|
+
onClick: () => I(!0),
|
|
378
383
|
className: "flex items-center gap-2 px-4 py-2 bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
379
384
|
children: [/* @__PURE__ */ m(p, { className: "size-4" }), w("component.createComponent", "Create Component")]
|
|
380
|
-
}), /* @__PURE__ */ m(
|
|
385
|
+
}), /* @__PURE__ */ m(re, { prompt: "What is a Component in VibeControls and how do I add one?" })]
|
|
381
386
|
}) : void 0
|
|
382
387
|
}),
|
|
383
388
|
X && Q.length > 0 && /* @__PURE__ */ m("div", {
|
|
384
389
|
className: "flex justify-center pt-2",
|
|
385
390
|
children: /* @__PURE__ */ m("button", {
|
|
386
391
|
type: "button",
|
|
387
|
-
onClick:
|
|
388
|
-
disabled:
|
|
392
|
+
onClick: Re,
|
|
393
|
+
disabled: V,
|
|
389
394
|
className: "flex items-center gap-2 px-4 py-2 bg-bg-sunken text-text-primary rounded-button border border-border-subtle hover:bg-bg-surface hover:border-border-strong transition-colors disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
390
|
-
children:
|
|
395
|
+
children: V ? w("common.loading", "Loading...") : w("common.loadMore", "Load more")
|
|
391
396
|
})
|
|
392
397
|
}),
|
|
393
|
-
|
|
398
|
+
R && /* @__PURE__ */ m("div", {
|
|
394
399
|
className: "fixed bottom-4 right-4 z-50 px-4 py-3 bg-status-success-bg-subtle text-status-success-text border border-status-success-border rounded-card shadow-elevation-3 text-sm",
|
|
395
|
-
children:
|
|
400
|
+
children: R
|
|
396
401
|
}),
|
|
397
402
|
/* @__PURE__ */ m(t, {
|
|
398
|
-
isOpen:
|
|
399
|
-
onClose: () =>
|
|
403
|
+
isOpen: Me,
|
|
404
|
+
onClose: () => L(!1),
|
|
400
405
|
onConfirm: () => {
|
|
401
|
-
|
|
406
|
+
L(!1), v(oe);
|
|
402
407
|
},
|
|
403
408
|
title: "Component Quota Reached",
|
|
404
409
|
message: "You've reached the maximum number of components on your current plan. Upgrade your plan or purchase an add-on to register more components."
|
|
405
410
|
}),
|
|
406
411
|
/* @__PURE__ */ m(ae, {
|
|
407
|
-
isOpen:
|
|
408
|
-
onClose: () =>
|
|
412
|
+
isOpen: je,
|
|
413
|
+
onClose: () => I(!1),
|
|
409
414
|
onSubmit: async (e) => {
|
|
410
415
|
try {
|
|
411
|
-
let t = await
|
|
416
|
+
let t = await Pe({ variables: { input: {
|
|
412
417
|
name: e.name,
|
|
413
418
|
description: e.description || void 0,
|
|
414
419
|
type: e.type,
|
|
@@ -423,16 +428,16 @@ function v() {
|
|
|
423
428
|
dependencies: e.dependencies ?? void 0,
|
|
424
429
|
sbomData: e.sbomData ?? void 0
|
|
425
430
|
} } });
|
|
426
|
-
if (t.error &&
|
|
427
|
-
|
|
431
|
+
if (t.error && o(t.error)) {
|
|
432
|
+
I(!1), L(!0);
|
|
428
433
|
return;
|
|
429
434
|
}
|
|
430
435
|
if (!t.data?.createVibecontrolsComponent?.id) throw Error(w("component.failedCreate", "Failed to create component"));
|
|
431
436
|
let n = t.data.createVibecontrolsComponent.id;
|
|
432
|
-
|
|
437
|
+
I(!1), z(w("component.createdSuccess", "Component created successfully")), await Ie(n), await K(), setTimeout(() => z(null), 3e3);
|
|
433
438
|
} catch (e) {
|
|
434
|
-
if (
|
|
435
|
-
|
|
439
|
+
if (o(e)) {
|
|
440
|
+
I(!1), L(!0);
|
|
436
441
|
return;
|
|
437
442
|
}
|
|
438
443
|
throw e;
|
|
@@ -443,7 +448,7 @@ function v() {
|
|
|
443
448
|
children: w("component.tags", "Tags")
|
|
444
449
|
}), /* @__PURE__ */ m(i, {
|
|
445
450
|
entityType: "VIBECONTROLS_COMPONENT",
|
|
446
|
-
onDraftChange:
|
|
451
|
+
onDraftChange: Fe
|
|
447
452
|
})] })
|
|
448
453
|
})
|
|
449
454
|
]
|
|
@@ -702,6 +702,7 @@ export declare const enTranslations: {
|
|
|
702
702
|
readonly columnHealth: "Health";
|
|
703
703
|
readonly typeLabelInline: "Type · {{type}}";
|
|
704
704
|
readonly tableCaption: "Components in your catalog, sortable by column";
|
|
705
|
+
readonly tierSortNeedsAllRows: "Load all rows to sort by tier";
|
|
705
706
|
readonly viewMode: "View mode";
|
|
706
707
|
readonly tableViewTitle: "Table view";
|
|
707
708
|
readonly gridViewTitle: "Grid view";
|
package/dist/translations/en.js
CHANGED
|
@@ -691,6 +691,7 @@ var e = {
|
|
|
691
691
|
columnHealth: "Health",
|
|
692
692
|
typeLabelInline: "Type · {{type}}",
|
|
693
693
|
tableCaption: "Components in your catalog, sortable by column",
|
|
694
|
+
tierSortNeedsAllRows: "Load all rows to sort by tier",
|
|
694
695
|
viewMode: "View mode",
|
|
695
696
|
tableViewTitle: "Table view",
|
|
696
697
|
gridViewTitle: "Grid view",
|