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