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