@burdenoff/microfe-integrations 2026.624.3 → 2026.625.1

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.
Files changed (25) hide show
  1. package/dist/integrations/components/AddConnectionDialog.js +2 -2
  2. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  3. package/dist/integrations/components/ConnectionCard.js +27 -26
  4. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  5. package/dist/integrations/components/ProviderCard.js +67 -66
  6. package/dist/integrations/components/ProviderCard.js.map +1 -1
  7. package/dist/integrations/pages/AddConnectionWizard.js +268 -283
  8. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  9. package/dist/integrations/pages/ConnectionDetail.js +241 -245
  10. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  11. package/dist/integrations/pages/ConnectionLogs.js +118 -119
  12. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  13. package/dist/integrations/pages/ConnectionsList.js +68 -70
  14. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  15. package/dist/integrations/pages/IntegrationsOverview.js +67 -67
  16. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  17. package/dist/integrations/pages/IntegrationsSettings.js +71 -71
  18. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  19. package/dist/integrations/pages/ProviderCatalog.js +46 -46
  20. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  21. package/dist/integrations/pages/ProviderDetail.js +214 -215
  22. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  23. package/dist/integrations/pages/ProviderEditorPage.js +152 -154
  24. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  25. package/package.json +2 -2
@@ -5,62 +5,63 @@ import { useIntegrationsStore as r } from "../store/integrationsStore.js";
5
5
  import { joinPath as i } from "../utils/navigation.js";
6
6
  import { getAuthTypeLabel as a, getCategoryLabel as o } from "../utils/integrationsHelpers.js";
7
7
  import { useDisableProvider as s, useEnableProvider as c, useProvider as l, useUninstallPlugin as u } from "../hooks/useProviders.js";
8
- import { useConnectionsByProvider as ee } from "../hooks/useConnections.js";
9
- import { ProviderIcon as te } from "../components/ProviderIcon.js";
10
- import { AddConnectionDialog as ne } from "../components/AddConnectionDialog.js";
11
- import { ConnectionCard as d } from "../components/ConnectionCard.js";
12
- import { ConfirmDialog as f } from "../components/ConfirmDialog.js";
13
- import { useState as re } from "react";
14
- import { AlertCircle as p, ArrowLeft as m, BookOpen as h, Download as g, ExternalLink as _, Link2 as v, Loader2 as y, Package as b, Pencil as x, Plus as S, Power as ie, RefreshCw as ae, Shield as oe, Star as se, Trash2 as C } from "lucide-react";
15
- import { useParams as w } from "react-router-dom";
16
- import { usePermissions as T } from "@burdenoff/fe-libs/shared/providers/shell";
17
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
8
+ import { useConnectionsByProvider as d } from "../hooks/useConnections.js";
9
+ import { ProviderIcon as ee } from "../components/ProviderIcon.js";
10
+ import { AddConnectionDialog as f } from "../components/AddConnectionDialog.js";
11
+ import { ConnectionCard as p } from "../components/ConnectionCard.js";
12
+ import { ConfirmDialog as te } from "../components/ConfirmDialog.js";
13
+ import { useState as ne } from "react";
14
+ import { AlertCircle as m, ArrowLeft as h, BookOpen as g, Download as _, ExternalLink as v, Link2 as y, Loader2 as b, Package as re, Pencil as ie, Plus as x, Power as ae, RefreshCw as oe, Shield as se, Star as ce, Trash2 as S } from "lucide-react";
15
+ import { useParams as le } from "react-router-dom";
16
+ import { usePermissions as C } from "@burdenoff/fe-libs/shared/providers/shell";
17
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
18
+ import { Button as E, CTAOverflowMenu as D, EmphasisPanel as O, GlassCard as k, ShowMore as A } from "@burdenoff/fe-libs/ui";
18
19
  //#region src/integrations/pages/ProviderDetail.tsx
19
- function O() {
20
- let { providerId: O } = w(), { adminMode: k = !1, basePath: A = "/", navigate: j, onConnectionSelect: M } = e(), { addConnectionDialogOpen: N, addConnectionProviderId: P, openAddConnectionDialog: F, closeAddConnectionDialog: I } = r(), { provider: L, loading: ce, error: R, refetch: z } = l(O ?? ""), { connections: B, loading: V } = ee(O ?? ""), { enableProvider: H, loading: U } = c(), { disableProvider: W, loading: G } = s(), { uninstallPlugin: le, loading: K } = u(), { hasPermission: q, isLoading: J } = T(), [ue, Y] = re(!1), X = !J && q(n.CONNECTION_CREATE), de = k && !J && q(n.PROVIDER_CREATE), Z = k && !J && q(n.PROVIDER_UPDATE), fe = k && !J && q(n.PROVIDER_DELETE), pe = ce, Q = U || G || K;
21
- if (pe) return /* @__PURE__ */ D("div", {
20
+ function j() {
21
+ let { providerId: j } = le(), { adminMode: M = !1, basePath: N = "/", navigate: P, onConnectionSelect: F } = e(), { addConnectionDialogOpen: I, addConnectionProviderId: L, openAddConnectionDialog: R, closeAddConnectionDialog: z } = r(), { provider: B, loading: V, error: H, refetch: U } = l(j ?? ""), { connections: W, loading: G } = d(j ?? ""), { enableProvider: ue, loading: de } = c(), { disableProvider: fe, loading: pe } = s(), { uninstallPlugin: me, loading: K } = u(), { hasPermission: q, isLoading: J } = C(), [he, Y] = ne(!1), X = !J && q(n.CONNECTION_CREATE), ge = M && !J && q(n.PROVIDER_CREATE), Z = M && !J && q(n.PROVIDER_UPDATE), _e = M && !J && q(n.PROVIDER_DELETE), ve = V, Q = de || pe || K;
22
+ if (ve) return /* @__PURE__ */ T("div", {
22
23
  className: "flex flex-col items-center justify-center py-20",
23
- children: [/* @__PURE__ */ D("div", {
24
+ children: [/* @__PURE__ */ T("div", {
24
25
  className: "relative",
25
- children: [/* @__PURE__ */ E("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ E(y, {
26
+ children: [/* @__PURE__ */ w("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ w(b, {
26
27
  size: 48,
27
28
  className: "relative animate-spin text-primary"
28
29
  })]
29
- }), /* @__PURE__ */ E("span", {
30
+ }), /* @__PURE__ */ w("span", {
30
31
  className: "mt-6 text-sm font-medium text-text-secondary",
31
32
  children: "Loading provider details…"
32
33
  })]
33
34
  });
34
- if (R || !L) return /* @__PURE__ */ E("div", {
35
+ if (H || !B) return /* @__PURE__ */ w("div", {
35
36
  className: "p-6 max-w-4xl mx-auto",
36
- children: /* @__PURE__ */ D("div", {
37
+ children: /* @__PURE__ */ T("div", {
37
38
  className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4",
38
- children: [/* @__PURE__ */ E(p, {
39
+ children: [/* @__PURE__ */ w(m, {
39
40
  size: 24,
40
41
  className: "text-status-error-text flex-shrink-0"
41
- }), /* @__PURE__ */ D("div", {
42
+ }), /* @__PURE__ */ T("div", {
42
43
  className: "flex-1",
43
44
  children: [
44
- /* @__PURE__ */ E("h3", {
45
+ /* @__PURE__ */ w("h3", {
45
46
  className: "font-semibold text-status-error-text mb-1",
46
47
  children: "Provider not found"
47
48
  }),
48
- /* @__PURE__ */ E("p", {
49
+ /* @__PURE__ */ w("p", {
49
50
  className: "text-sm text-status-error-text mb-3",
50
- children: R?.message || "The requested provider could not be loaded."
51
+ children: H?.message || "The requested provider could not be loaded."
51
52
  }),
52
- /* @__PURE__ */ D("div", {
53
+ /* @__PURE__ */ T("div", {
53
54
  className: "flex gap-2",
54
- children: [/* @__PURE__ */ D("button", {
55
+ children: [/* @__PURE__ */ T("button", {
55
56
  type: "button",
56
- onClick: () => z(),
57
+ onClick: () => U(),
57
58
  className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-error-bg-subtle text-status-error-text hover:bg-status-error-bg-subtle/80 transition-colors",
58
- children: [/* @__PURE__ */ E(ae, { size: 14 }), "Try Again"]
59
- }), /* @__PURE__ */ D("button", {
59
+ children: [/* @__PURE__ */ w(oe, { size: 14 }), "Try Again"]
60
+ }), /* @__PURE__ */ T("button", {
60
61
  type: "button",
61
- onClick: () => j?.(i(A, "providers")),
62
+ onClick: () => P?.(i(N, "providers")),
62
63
  className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors",
63
- children: [/* @__PURE__ */ E(m, { size: 14 }), "Back to Catalog"]
64
+ children: [/* @__PURE__ */ w(h, { size: 14 }), "Back to Catalog"]
64
65
  })]
65
66
  })
66
67
  ]
@@ -68,330 +69,328 @@ function O() {
68
69
  })
69
70
  });
70
71
  let $ = () => {
71
- F(L.id);
72
- }, me = (e) => {
73
- M?.(e), j?.(i(A, `connections/${e.id}`));
72
+ R(B.id);
73
+ }, ye = (e) => {
74
+ F?.(e), P?.(i(N, `connections/${e.id}`));
75
+ }, be = async () => {
76
+ B && (B.isEnabled ? await fe(B.id) : await ue(B.id), await U());
77
+ }, xe = async () => {
78
+ B && Y(!0);
79
+ }, Se = async () => {
80
+ B && (await me(B.id), Y(!1), P?.(i(N, "providers")));
74
81
  };
75
- return /* @__PURE__ */ D("div", {
82
+ return /* @__PURE__ */ T("div", {
76
83
  className: "space-y-6 p-6 max-w-5xl mx-auto",
77
84
  children: [
78
- /* @__PURE__ */ D("div", {
79
- className: "relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/5 via-primary/3 to-background border border-border-subtle/50 p-6 shadow-sm",
80
- children: [/* @__PURE__ */ E("div", {
81
- className: "relative z-10",
82
- children: /* @__PURE__ */ D("div", {
83
- className: "flex items-center gap-4 mb-4",
84
- children: [
85
- /* @__PURE__ */ E("button", {
86
- type: "button",
87
- onClick: () => j?.(i(A, "providers")),
88
- className: "p-2.5 hover:bg-accent rounded-lg transition-all duration-200",
89
- "aria-label": "Back to catalog",
90
- children: /* @__PURE__ */ E(m, { size: 20 })
91
- }),
92
- /* @__PURE__ */ E(te, {
93
- provider: L,
94
- size: 56
95
- }),
96
- /* @__PURE__ */ D("div", {
97
- className: "flex-1",
98
- children: [/* @__PURE__ */ D("div", {
99
- className: "flex items-center gap-3",
100
- children: [/* @__PURE__ */ E("h1", {
101
- className: "text-2xl sm:text-3xl font-bold text-text-primary",
102
- children: L.name
103
- }), L.isBuiltIn && /* @__PURE__ */ E("span", {
104
- className: "text-xs px-2 py-0.5 rounded-full bg-status-info-bg-subtle text-status-info-text border border-border-default",
105
- children: "Built-in"
106
- })]
107
- }), /* @__PURE__ */ E("p", {
108
- className: "text-sm text-text-secondary mt-1",
109
- children: L.description
85
+ /* @__PURE__ */ w("div", {
86
+ className: "rounded-xl border border-border-seam bg-accent-wash p-6",
87
+ children: /* @__PURE__ */ T("div", {
88
+ className: "flex items-center gap-4",
89
+ children: [
90
+ /* @__PURE__ */ w(E, {
91
+ variant: "ghost",
92
+ size: "icon",
93
+ onClick: () => P?.(i(N, "providers")),
94
+ "aria-label": "Back to catalog",
95
+ children: /* @__PURE__ */ w(h, { size: 20 })
96
+ }),
97
+ /* @__PURE__ */ w(ee, {
98
+ provider: B,
99
+ size: 56
100
+ }),
101
+ /* @__PURE__ */ T("div", {
102
+ className: "flex-1",
103
+ children: [/* @__PURE__ */ T("div", {
104
+ className: "flex items-center gap-3",
105
+ children: [/* @__PURE__ */ w("h1", {
106
+ className: "text-2xl sm:text-3xl font-bold text-text-primary",
107
+ children: B.name
108
+ }), B.isBuiltIn && /* @__PURE__ */ w("span", {
109
+ className: "text-xs px-2 py-0.5 rounded-full bg-status-info-bg-subtle text-status-info-text border border-border-default",
110
+ children: "Built-in"
110
111
  })]
111
- }),
112
- X && L.pluginStatus === "installed" && L.isEnabled && /* @__PURE__ */ D("button", {
113
- type: "button",
114
- onClick: $,
115
- className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
116
- children: [/* @__PURE__ */ E(S, { size: 16 }), "Create Connection"]
117
- })
118
- ]
119
- })
120
- }), /* @__PURE__ */ E("div", { className: "absolute top-0 right-0 size-64 bg-gradient-to-br from-primary/10 to-transparent rounded-full blur-3xl -z-0" })]
112
+ }), /* @__PURE__ */ w("p", {
113
+ className: "text-sm text-text-secondary mt-1",
114
+ children: B.description
115
+ })]
116
+ }),
117
+ X && B.pluginStatus === "installed" && B.isEnabled && /* @__PURE__ */ T(E, {
118
+ onClick: $,
119
+ children: [/* @__PURE__ */ w(x, { size: 16 }), "Create Connection"]
120
+ })
121
+ ]
122
+ })
121
123
  }),
122
- /* @__PURE__ */ D("div", {
124
+ /* @__PURE__ */ T("div", {
123
125
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
124
- children: [/* @__PURE__ */ D("div", {
125
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5 space-y-4",
126
- children: [/* @__PURE__ */ D("h2", {
126
+ children: [/* @__PURE__ */ T(k, {
127
+ className: "border-border-seam p-5 space-y-4",
128
+ children: [/* @__PURE__ */ T("h2", {
127
129
  className: "font-semibold text-text-primary flex items-center gap-2",
128
- children: [/* @__PURE__ */ E(b, {
130
+ children: [/* @__PURE__ */ w(re, {
129
131
  size: 18,
130
132
  className: "text-primary"
131
133
  }), "Provider Details"]
132
- }), /* @__PURE__ */ D("div", {
134
+ }), /* @__PURE__ */ T("div", {
133
135
  className: "space-y-3",
134
136
  children: [
135
- /* @__PURE__ */ D("div", {
136
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
137
- children: [/* @__PURE__ */ E("span", {
137
+ /* @__PURE__ */ T("div", {
138
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
139
+ children: [/* @__PURE__ */ w("span", {
138
140
  className: "text-sm text-text-secondary",
139
141
  children: "Category"
140
- }), /* @__PURE__ */ E("span", {
142
+ }), /* @__PURE__ */ w("span", {
141
143
  className: "text-sm font-medium text-text-primary",
142
- children: o(L.category)
144
+ children: o(B.category)
143
145
  })]
144
146
  }),
145
- /* @__PURE__ */ D("div", {
146
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
147
- children: [/* @__PURE__ */ E("span", {
147
+ /* @__PURE__ */ T("div", {
148
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
149
+ children: [/* @__PURE__ */ w("span", {
148
150
  className: "text-sm text-text-secondary",
149
151
  children: "Auth Type"
150
- }), /* @__PURE__ */ E("span", {
152
+ }), /* @__PURE__ */ w("span", {
151
153
  className: "text-sm font-medium text-text-primary",
152
- children: a(L.authType)
154
+ children: a(B.authType)
153
155
  })]
154
156
  }),
155
- /* @__PURE__ */ D("div", {
156
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
157
- children: [/* @__PURE__ */ E("span", {
157
+ /* @__PURE__ */ T("div", {
158
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
159
+ children: [/* @__PURE__ */ w("span", {
158
160
  className: "text-sm text-text-secondary",
159
161
  children: "Plugin Version"
160
- }), /* @__PURE__ */ E("span", {
162
+ }), /* @__PURE__ */ w("span", {
161
163
  className: "text-sm font-mono text-text-primary",
162
- children: L.pluginVersion
164
+ children: B.pluginVersion
163
165
  })]
164
166
  }),
165
- /* @__PURE__ */ D("div", {
166
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
167
- children: [/* @__PURE__ */ E("span", {
167
+ /* @__PURE__ */ T("div", {
168
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
169
+ children: [/* @__PURE__ */ w("span", {
168
170
  className: "text-sm text-text-secondary",
169
171
  children: "Author"
170
- }), /* @__PURE__ */ E("span", {
172
+ }), /* @__PURE__ */ w("span", {
171
173
  className: "text-sm font-medium text-text-primary",
172
- children: L.pluginAuthor || "-"
174
+ children: B.pluginAuthor || "-"
173
175
  })]
174
176
  }),
175
- /* @__PURE__ */ D("div", {
176
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
177
- children: [/* @__PURE__ */ E("span", {
177
+ /* @__PURE__ */ T("div", {
178
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
179
+ children: [/* @__PURE__ */ w("span", {
178
180
  className: "text-sm text-text-secondary",
179
181
  children: "Connections"
180
- }), /* @__PURE__ */ E("span", {
182
+ }), /* @__PURE__ */ w("span", {
181
183
  className: "text-sm font-medium text-text-primary",
182
- children: L.connectionCount
184
+ children: B.connectionCount
183
185
  })]
184
186
  }),
185
- /* @__PURE__ */ D("div", {
187
+ /* @__PURE__ */ T("div", {
186
188
  className: "flex items-center justify-between py-2",
187
- children: [/* @__PURE__ */ E("span", {
189
+ children: [/* @__PURE__ */ w("span", {
188
190
  className: "text-sm text-text-secondary",
189
191
  children: "Status"
190
- }), /* @__PURE__ */ E("span", {
191
- className: t("text-sm font-medium px-2 py-0.5 rounded-full", L.isEnabled ? "text-status-success-text bg-status-success-bg-subtle" : "text-text-secondary bg-bg-sunken"),
192
- children: L.isEnabled ? "Enabled" : "Disabled"
192
+ }), /* @__PURE__ */ w("span", {
193
+ className: t("text-sm font-medium px-2 py-0.5 rounded-full", B.isEnabled ? "text-status-success-text bg-status-success-bg-subtle" : "text-text-secondary bg-bg-sunken"),
194
+ children: B.isEnabled ? "Enabled" : "Disabled"
193
195
  })]
194
196
  })
195
197
  ]
196
198
  })]
197
- }), /* @__PURE__ */ D("div", {
199
+ }), /* @__PURE__ */ T("div", {
198
200
  className: "space-y-4",
199
201
  children: [
200
- /* @__PURE__ */ D("div", {
201
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
202
- children: [/* @__PURE__ */ D("h2", {
202
+ /* @__PURE__ */ T(k, {
203
+ className: "border-border-seam p-5",
204
+ children: [/* @__PURE__ */ T("h2", {
203
205
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
204
- children: [/* @__PURE__ */ E(se, {
206
+ children: [/* @__PURE__ */ w(ce, {
205
207
  size: 18,
206
208
  className: "text-primary"
207
209
  }), "Supported Features"]
208
- }), L.supportedFeatures.length > 0 ? /* @__PURE__ */ E("div", {
209
- className: "flex flex-wrap gap-2",
210
- children: L.supportedFeatures.map((e) => /* @__PURE__ */ E("span", {
211
- className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary",
212
- children: e
213
- }, e))
214
- }) : /* @__PURE__ */ E("p", {
210
+ }), B.supportedFeatures.length > 0 ? /* @__PURE__ */ w(A, {
211
+ collapsedHeight: 88,
212
+ label: "Show all features",
213
+ children: /* @__PURE__ */ w("div", {
214
+ className: "flex flex-wrap gap-2",
215
+ children: B.supportedFeatures.map((e) => /* @__PURE__ */ w("span", {
216
+ className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary",
217
+ children: e
218
+ }, e))
219
+ })
220
+ }) : /* @__PURE__ */ w("p", {
215
221
  className: "text-sm text-text-secondary",
216
222
  children: "No specific features listed."
217
223
  })]
218
224
  }),
219
- /* @__PURE__ */ D("div", {
220
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
221
- children: [/* @__PURE__ */ D("h2", {
225
+ /* @__PURE__ */ T(k, {
226
+ className: "border-border-seam p-5",
227
+ children: [/* @__PURE__ */ T("h2", {
222
228
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
223
- children: [/* @__PURE__ */ E(_, {
229
+ children: [/* @__PURE__ */ w(v, {
224
230
  size: 18,
225
231
  className: "text-primary"
226
232
  }), "Links"]
227
- }), /* @__PURE__ */ D("div", {
233
+ }), /* @__PURE__ */ T("div", {
228
234
  className: "space-y-2",
229
- children: [L.website && /* @__PURE__ */ D("a", {
230
- href: L.website,
235
+ children: [B.website && /* @__PURE__ */ T("a", {
236
+ href: B.website,
231
237
  target: "_blank",
232
238
  rel: "noopener noreferrer",
233
239
  className: "flex items-center gap-2 text-sm text-primary hover:underline",
234
- children: [/* @__PURE__ */ E(_, { size: 14 }), "Website"]
235
- }), L.docsUrl && /* @__PURE__ */ D("a", {
236
- href: L.docsUrl,
240
+ children: [/* @__PURE__ */ w(v, { size: 14 }), "Website"]
241
+ }), B.docsUrl && /* @__PURE__ */ T("a", {
242
+ href: B.docsUrl,
237
243
  target: "_blank",
238
244
  rel: "noopener noreferrer",
239
245
  className: "flex items-center gap-2 text-sm text-primary hover:underline",
240
- children: [/* @__PURE__ */ E(h, { size: 14 }), "Documentation"]
246
+ children: [/* @__PURE__ */ w(g, { size: 14 }), "Documentation"]
241
247
  })]
242
248
  })]
243
249
  }),
244
- k && /* @__PURE__ */ D("div", {
245
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
246
- children: [/* @__PURE__ */ D("h2", {
250
+ M && /* @__PURE__ */ T(k, {
251
+ className: "border-border-seam p-5",
252
+ children: [/* @__PURE__ */ T("h2", {
247
253
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
248
- children: [/* @__PURE__ */ E(oe, {
254
+ children: [/* @__PURE__ */ w(se, {
249
255
  size: 18,
250
256
  className: "text-primary"
251
257
  }), "Plugin Management"]
252
- }), /* @__PURE__ */ D("div", {
253
- className: "flex flex-wrap gap-2",
254
- children: [
255
- Z && /* @__PURE__ */ D("button", {
256
- type: "button",
257
- onClick: () => {
258
- j?.(i(A, `providers/${L.id}/edit`));
259
- },
260
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors",
261
- children: [/* @__PURE__ */ E(x, { size: 14 }), "Edit"]
262
- }),
263
- Z && L.pluginStatus === "installed" && /* @__PURE__ */ D("button", {
264
- type: "button",
265
- onClick: async () => {
266
- L && (L.isEnabled ? await W(L.id) : await H(L.id), await z());
258
+ }), /* @__PURE__ */ w(D, {
259
+ align: "start",
260
+ primary: Z ? {
261
+ label: "Edit",
262
+ onSelect: () => {
263
+ P?.(i(N, `providers/${B.id}/edit`));
264
+ },
265
+ icon: /* @__PURE__ */ w(ie, { size: 14 })
266
+ } : void 0,
267
+ actions: [
268
+ ...Z && B.pluginStatus === "installed" ? [{
269
+ label: B.isEnabled ? "Disable" : "Enable",
270
+ onSelect: () => {
271
+ be();
267
272
  },
268
273
  disabled: Q,
269
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors disabled:opacity-50",
270
- children: [/* @__PURE__ */ E(ie, { size: 14 }), L.isEnabled ? "Disable" : "Enable"]
271
- }),
272
- de && L.pluginStatus === "available" && /* @__PURE__ */ D("button", {
273
- type: "button",
274
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
275
- children: [/* @__PURE__ */ E(g, { size: 14 }), "Install Plugin"]
276
- }),
277
- fe && L.pluginStatus === "installed" && /* @__PURE__ */ D("button", {
278
- type: "button",
279
- onClick: async () => {
280
- L && Y(!0);
274
+ icon: /* @__PURE__ */ w(ae, { size: 14 })
275
+ }] : [],
276
+ ...ge && B.pluginStatus === "available" ? [{
277
+ label: "Install Plugin",
278
+ onSelect: () => {},
279
+ icon: /* @__PURE__ */ w(_, { size: 14 })
280
+ }] : [],
281
+ ...Z && B.pluginStatus === "update_available" ? [{
282
+ label: "Update Available",
283
+ onSelect: () => {},
284
+ icon: /* @__PURE__ */ w(_, { size: 14 })
285
+ }] : [],
286
+ ..._e && B.pluginStatus === "installed" ? [{
287
+ label: "Uninstall",
288
+ onSelect: () => {
289
+ xe();
281
290
  },
282
- disabled: Q || L.isBuiltIn,
283
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-default text-status-error-text hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50",
284
- children: [/* @__PURE__ */ E(C, { size: 14 }), "Uninstall"]
285
- }),
286
- Z && L.pluginStatus === "update_available" && /* @__PURE__ */ D("button", {
287
- type: "button",
288
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-warning-bg-subtle text-status-warning-text border border-border-default hover:bg-status-warning-bg-subtle/80 transition-colors",
289
- children: [/* @__PURE__ */ E(g, { size: 14 }), "Update Available"]
290
- })
291
+ intent: "destructive",
292
+ disabled: Q || B.isBuiltIn,
293
+ icon: /* @__PURE__ */ w(S, { size: 14 })
294
+ }] : []
291
295
  ]
292
296
  })]
293
297
  })
294
298
  ]
295
299
  })]
296
300
  }),
297
- /* @__PURE__ */ D("div", {
298
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface overflow-hidden",
301
+ /* @__PURE__ */ T(O, {
302
+ className: "overflow-hidden p-0",
299
303
  children: [
300
- /* @__PURE__ */ D("div", {
301
- className: "flex items-center justify-between p-5 border-b border-border-subtle/50",
302
- children: [/* @__PURE__ */ D("div", {
304
+ /* @__PURE__ */ T("div", {
305
+ className: "flex items-center justify-between p-5 border-b border-border-seam",
306
+ children: [/* @__PURE__ */ T("div", {
303
307
  className: "flex items-center gap-2",
304
- children: [/* @__PURE__ */ E(v, {
308
+ children: [/* @__PURE__ */ w(y, {
305
309
  size: 18,
306
310
  className: "text-primary"
307
- }), /* @__PURE__ */ D("h2", {
311
+ }), /* @__PURE__ */ T("h2", {
308
312
  className: "font-semibold text-text-primary",
309
313
  children: [
310
314
  "Connections (",
311
- (B ?? []).length,
315
+ (W ?? []).length,
312
316
  ")"
313
317
  ]
314
318
  })]
315
- }), X && L.pluginStatus === "installed" && L.isEnabled && /* @__PURE__ */ D("button", {
316
- type: "button",
319
+ }), X && B.pluginStatus === "installed" && B.isEnabled && /* @__PURE__ */ T(E, {
320
+ size: "sm",
317
321
  onClick: $,
318
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
319
- children: [/* @__PURE__ */ E(S, { size: 14 }), "Add"]
322
+ children: [/* @__PURE__ */ w(x, { size: 14 }), "Add"]
320
323
  })]
321
324
  }),
322
- V && /* @__PURE__ */ E("div", {
325
+ G && /* @__PURE__ */ w("div", {
323
326
  className: "flex items-center justify-center py-12",
324
- children: /* @__PURE__ */ E(y, {
327
+ children: /* @__PURE__ */ w(b, {
325
328
  size: 24,
326
329
  className: "animate-spin text-text-secondary"
327
330
  })
328
331
  }),
329
- !V && (B ?? []).length === 0 && /* @__PURE__ */ D("div", {
332
+ !G && (W ?? []).length === 0 && /* @__PURE__ */ T("div", {
330
333
  className: "flex flex-col items-center justify-center py-12 px-6 text-center",
331
334
  children: [
332
- /* @__PURE__ */ E("div", {
335
+ /* @__PURE__ */ w("div", {
333
336
  className: "p-4 rounded-full bg-bg-sunken/50 mb-4",
334
- children: /* @__PURE__ */ E(v, {
337
+ children: /* @__PURE__ */ w(y, {
335
338
  size: 32,
336
339
  className: "text-text-secondary"
337
340
  })
338
341
  }),
339
- /* @__PURE__ */ E("h3", {
342
+ /* @__PURE__ */ w("h3", {
340
343
  className: "font-semibold text-text-primary mb-1",
341
344
  children: "No connections yet"
342
345
  }),
343
- /* @__PURE__ */ D("p", {
346
+ /* @__PURE__ */ T("p", {
344
347
  className: "text-sm text-text-secondary mb-4 max-w-sm",
345
348
  children: [
346
349
  "Create a connection to start using ",
347
- L.name,
350
+ B.name,
348
351
  " in your workspace."
349
352
  ]
350
353
  }),
351
- X && L.pluginStatus === "installed" && L.isEnabled && /* @__PURE__ */ D("button", {
352
- type: "button",
354
+ X && B.pluginStatus === "installed" && B.isEnabled && /* @__PURE__ */ T(E, {
353
355
  onClick: $,
354
- className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
355
- children: [/* @__PURE__ */ E(S, { size: 16 }), "Create Connection"]
356
+ children: [/* @__PURE__ */ w(x, { size: 16 }), "Create Connection"]
356
357
  })
357
358
  ]
358
359
  }),
359
- !V && (B ?? []).length > 0 && /* @__PURE__ */ E("div", {
360
+ !G && (W ?? []).length > 0 && /* @__PURE__ */ w("div", {
360
361
  className: "p-4 space-y-3",
361
- children: (B ?? []).map((e) => /* @__PURE__ */ E(d, {
362
+ children: (W ?? []).map((e) => /* @__PURE__ */ w(p, {
362
363
  connection: e,
363
364
  displayMode: "list",
364
- onClick: me
365
+ onClick: ye
365
366
  }, e.id))
366
367
  })
367
368
  ]
368
369
  }),
369
- /* @__PURE__ */ E(ne, {
370
- open: N,
371
- onClose: I,
372
- preselectedProviderId: P,
370
+ /* @__PURE__ */ w(f, {
371
+ open: I,
372
+ onClose: z,
373
+ preselectedProviderId: L,
373
374
  onConnectionCreated: () => {
374
- z();
375
+ U();
375
376
  }
376
377
  }),
377
- /* @__PURE__ */ E(f, {
378
- open: ue,
379
- title: `Uninstall ${L.name}`,
378
+ /* @__PURE__ */ w(te, {
379
+ open: he,
380
+ title: `Uninstall ${B.name}`,
380
381
  description: "Existing active connections must be removed first. This action is only available in admin mode.",
381
382
  confirmLabel: "Uninstall",
382
383
  cancelLabel: "Cancel",
383
384
  destructive: !0,
384
385
  loading: K,
385
- icon: /* @__PURE__ */ E(C, { size: 20 }),
386
- onConfirm: async () => {
387
- L && (await le(L.id), Y(!1), j?.(i(A, "providers")));
388
- },
386
+ icon: /* @__PURE__ */ w(S, { size: 20 }),
387
+ onConfirm: Se,
389
388
  onCancel: () => Y(!1)
390
389
  })
391
390
  ]
392
391
  });
393
392
  }
394
393
  //#endregion
395
- export { O as ProviderDetail };
394
+ export { j as ProviderDetail };
396
395
 
397
396
  //# sourceMappingURL=ProviderDetail.js.map