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