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