@burdenoff/microfe-integrations 2026.624.4 → 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.
- package/dist/integrations/components/ConnectionCard.js +27 -26
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ProviderCard.js +67 -66
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/pages/AddConnectionWizard.js +268 -283
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.js +241 -245
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.js +118 -119
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.js +68 -70
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.js +67 -67
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/dist/integrations/pages/IntegrationsSettings.js +71 -71
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.js +46 -46
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.js +214 -215
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/pages/ProviderEditorPage.js +152 -154
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
- 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
|
|
9
|
-
import { ProviderIcon as
|
|
10
|
-
import { AddConnectionDialog as
|
|
11
|
-
import { ConnectionCard as
|
|
12
|
-
import { ConfirmDialog as
|
|
13
|
-
import { useState as
|
|
14
|
-
import { AlertCircle as
|
|
15
|
-
import { useParams as
|
|
16
|
-
import { usePermissions as
|
|
17
|
-
import { jsx as
|
|
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
|
|
20
|
-
let { providerId:
|
|
21
|
-
if (
|
|
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__ */
|
|
24
|
+
children: [/* @__PURE__ */ T("div", {
|
|
24
25
|
className: "relative",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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 (
|
|
35
|
+
if (H || !B) return /* @__PURE__ */ w("div", {
|
|
35
36
|
className: "p-6 max-w-4xl mx-auto",
|
|
36
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
39
|
+
children: [/* @__PURE__ */ w(m, {
|
|
39
40
|
size: 24,
|
|
40
41
|
className: "text-status-error-text flex-shrink-0"
|
|
41
|
-
}), /* @__PURE__ */
|
|
42
|
+
}), /* @__PURE__ */ T("div", {
|
|
42
43
|
className: "flex-1",
|
|
43
44
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
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__ */
|
|
49
|
+
/* @__PURE__ */ w("p", {
|
|
49
50
|
className: "text-sm text-status-error-text mb-3",
|
|
50
|
-
children:
|
|
51
|
+
children: H?.message || "The requested provider could not be loaded."
|
|
51
52
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ T("div", {
|
|
53
54
|
className: "flex gap-2",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
55
|
+
children: [/* @__PURE__ */ T("button", {
|
|
55
56
|
type: "button",
|
|
56
|
-
onClick: () =>
|
|
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__ */
|
|
59
|
-
}), /* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ w(oe, { size: 14 }), "Try Again"]
|
|
60
|
+
}), /* @__PURE__ */ T("button", {
|
|
60
61
|
type: "button",
|
|
61
|
-
onClick: () =>
|
|
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__ */
|
|
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
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
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__ */
|
|
82
|
+
return /* @__PURE__ */ T("div", {
|
|
76
83
|
className: "space-y-6 p-6 max-w-5xl mx-auto",
|
|
77
84
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
className: "
|
|
80
|
-
children:
|
|
81
|
-
className: "
|
|
82
|
-
children:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
className: "flex-
|
|
98
|
-
children: [/* @__PURE__ */
|
|
99
|
-
className: "
|
|
100
|
-
children:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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__ */
|
|
124
|
+
/* @__PURE__ */ T("div", {
|
|
123
125
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
-
className: "
|
|
126
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
130
|
+
children: [/* @__PURE__ */ w(re, {
|
|
129
131
|
size: 18,
|
|
130
132
|
className: "text-primary"
|
|
131
133
|
}), "Provider Details"]
|
|
132
|
-
}), /* @__PURE__ */
|
|
134
|
+
}), /* @__PURE__ */ T("div", {
|
|
133
135
|
className: "space-y-3",
|
|
134
136
|
children: [
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
137
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
142
|
+
}), /* @__PURE__ */ w("span", {
|
|
141
143
|
className: "text-sm font-medium text-text-primary",
|
|
142
|
-
children: o(
|
|
144
|
+
children: o(B.category)
|
|
143
145
|
})]
|
|
144
146
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
147
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
152
|
+
}), /* @__PURE__ */ w("span", {
|
|
151
153
|
className: "text-sm font-medium text-text-primary",
|
|
152
|
-
children: a(
|
|
154
|
+
children: a(B.authType)
|
|
153
155
|
})]
|
|
154
156
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
157
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
162
|
+
}), /* @__PURE__ */ w("span", {
|
|
161
163
|
className: "text-sm font-mono text-text-primary",
|
|
162
|
-
children:
|
|
164
|
+
children: B.pluginVersion
|
|
163
165
|
})]
|
|
164
166
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
167
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
172
|
+
}), /* @__PURE__ */ w("span", {
|
|
171
173
|
className: "text-sm font-medium text-text-primary",
|
|
172
|
-
children:
|
|
174
|
+
children: B.pluginAuthor || "-"
|
|
173
175
|
})]
|
|
174
176
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
177
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
182
|
+
}), /* @__PURE__ */ w("span", {
|
|
181
183
|
className: "text-sm font-medium text-text-primary",
|
|
182
|
-
children:
|
|
184
|
+
children: B.connectionCount
|
|
183
185
|
})]
|
|
184
186
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ T("div", {
|
|
186
188
|
className: "flex items-center justify-between py-2",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ w("span", {
|
|
188
190
|
className: "text-sm text-text-secondary",
|
|
189
191
|
children: "Status"
|
|
190
|
-
}), /* @__PURE__ */
|
|
191
|
-
className: t("text-sm font-medium px-2 py-0.5 rounded-full",
|
|
192
|
-
children:
|
|
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__ */
|
|
199
|
+
}), /* @__PURE__ */ T("div", {
|
|
198
200
|
className: "space-y-4",
|
|
199
201
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
className: "
|
|
202
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
206
|
+
children: [/* @__PURE__ */ w(ce, {
|
|
205
207
|
size: 18,
|
|
206
208
|
className: "text-primary"
|
|
207
209
|
}), "Supported Features"]
|
|
208
|
-
}),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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__ */
|
|
220
|
-
className: "
|
|
221
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
229
|
+
children: [/* @__PURE__ */ w(v, {
|
|
224
230
|
size: 18,
|
|
225
231
|
className: "text-primary"
|
|
226
232
|
}), "Links"]
|
|
227
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ T("div", {
|
|
228
234
|
className: "space-y-2",
|
|
229
|
-
children: [
|
|
230
|
-
href:
|
|
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__ */
|
|
235
|
-
}),
|
|
236
|
-
href:
|
|
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__ */
|
|
246
|
+
children: [/* @__PURE__ */ w(g, { size: 14 }), "Documentation"]
|
|
241
247
|
})]
|
|
242
248
|
})]
|
|
243
249
|
}),
|
|
244
|
-
|
|
245
|
-
className: "
|
|
246
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
254
|
+
children: [/* @__PURE__ */ w(se, {
|
|
249
255
|
size: 18,
|
|
250
256
|
className: "text-primary"
|
|
251
257
|
}), "Plugin Management"]
|
|
252
|
-
}), /* @__PURE__ */ D
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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__ */
|
|
298
|
-
className: "
|
|
301
|
+
/* @__PURE__ */ T(O, {
|
|
302
|
+
className: "overflow-hidden p-0",
|
|
299
303
|
children: [
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
className: "flex items-center justify-between p-5 border-b border-border-
|
|
302
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
308
|
+
children: [/* @__PURE__ */ w(y, {
|
|
305
309
|
size: 18,
|
|
306
310
|
className: "text-primary"
|
|
307
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ T("h2", {
|
|
308
312
|
className: "font-semibold text-text-primary",
|
|
309
313
|
children: [
|
|
310
314
|
"Connections (",
|
|
311
|
-
(
|
|
315
|
+
(W ?? []).length,
|
|
312
316
|
")"
|
|
313
317
|
]
|
|
314
318
|
})]
|
|
315
|
-
}), X &&
|
|
316
|
-
|
|
319
|
+
}), X && B.pluginStatus === "installed" && B.isEnabled && /* @__PURE__ */ T(E, {
|
|
320
|
+
size: "sm",
|
|
317
321
|
onClick: $,
|
|
318
|
-
|
|
319
|
-
children: [/* @__PURE__ */ E(S, { size: 14 }), "Add"]
|
|
322
|
+
children: [/* @__PURE__ */ w(x, { size: 14 }), "Add"]
|
|
320
323
|
})]
|
|
321
324
|
}),
|
|
322
|
-
|
|
325
|
+
G && /* @__PURE__ */ w("div", {
|
|
323
326
|
className: "flex items-center justify-center py-12",
|
|
324
|
-
children: /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ w(b, {
|
|
325
328
|
size: 24,
|
|
326
329
|
className: "animate-spin text-text-secondary"
|
|
327
330
|
})
|
|
328
331
|
}),
|
|
329
|
-
!
|
|
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__ */
|
|
335
|
+
/* @__PURE__ */ w("div", {
|
|
333
336
|
className: "p-4 rounded-full bg-bg-sunken/50 mb-4",
|
|
334
|
-
children: /* @__PURE__ */
|
|
337
|
+
children: /* @__PURE__ */ w(y, {
|
|
335
338
|
size: 32,
|
|
336
339
|
className: "text-text-secondary"
|
|
337
340
|
})
|
|
338
341
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ w("h3", {
|
|
340
343
|
className: "font-semibold text-text-primary mb-1",
|
|
341
344
|
children: "No connections yet"
|
|
342
345
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
350
|
+
B.name,
|
|
348
351
|
" in your workspace."
|
|
349
352
|
]
|
|
350
353
|
}),
|
|
351
|
-
X &&
|
|
352
|
-
type: "button",
|
|
354
|
+
X && B.pluginStatus === "installed" && B.isEnabled && /* @__PURE__ */ T(E, {
|
|
353
355
|
onClick: $,
|
|
354
|
-
|
|
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
|
-
!
|
|
360
|
+
!G && (W ?? []).length > 0 && /* @__PURE__ */ w("div", {
|
|
360
361
|
className: "p-4 space-y-3",
|
|
361
|
-
children: (
|
|
362
|
+
children: (W ?? []).map((e) => /* @__PURE__ */ w(p, {
|
|
362
363
|
connection: e,
|
|
363
364
|
displayMode: "list",
|
|
364
|
-
onClick:
|
|
365
|
+
onClick: ye
|
|
365
366
|
}, e.id))
|
|
366
367
|
})
|
|
367
368
|
]
|
|
368
369
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
open:
|
|
371
|
-
onClose:
|
|
372
|
-
preselectedProviderId:
|
|
370
|
+
/* @__PURE__ */ w(f, {
|
|
371
|
+
open: I,
|
|
372
|
+
onClose: z,
|
|
373
|
+
preselectedProviderId: L,
|
|
373
374
|
onConnectionCreated: () => {
|
|
374
|
-
|
|
375
|
+
U();
|
|
375
376
|
}
|
|
376
377
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
open:
|
|
379
|
-
title: `Uninstall ${
|
|
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__ */
|
|
386
|
-
onConfirm:
|
|
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 {
|
|
394
|
+
export { j as ProviderDetail };
|
|
396
395
|
|
|
397
396
|
//# sourceMappingURL=ProviderDetail.js.map
|