@burdenoff/microfe-integrations 2026.830.1 → 2026.830.3
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/IntegrationsAdminRoot.d.ts.map +1 -1
- package/dist/integrations/IntegrationsAdminRoot.js +35 -26
- package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
- package/dist/integrations/IntegrationsRoot.d.ts.map +1 -1
- package/dist/integrations/IntegrationsRoot.js +47 -38
- package/dist/integrations/IntegrationsRoot.js.map +1 -1
- 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 +745 -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,47 +1,47 @@
|
|
|
1
1
|
import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { useTr as t } from "../hooks/useTr.js";
|
|
3
|
+
import { cn as n } from "../utils/cn.js";
|
|
4
|
+
import { INTEGRATION_PERMISSIONS as r } from "../constants/permissions.js";
|
|
5
|
+
import { joinPath as i } from "../utils/navigation.js";
|
|
6
|
+
import { useFormatLastUsed as a } from "../hooks/useFormatLastUsed.js";
|
|
7
|
+
import { useAuthTypeLabel as ee } from "../hooks/useLabel.js";
|
|
8
|
+
import { useConnection as te, useDeleteConnection as ne, useRefreshToken as re, useRevokeConnection as ie, useTestConnection as ae } from "../hooks/useConnections.js";
|
|
7
9
|
import { ProviderIcon as oe } from "../components/ProviderIcon.js";
|
|
8
10
|
import { ConnectionStatusBadge as se } from "../components/ConnectionStatusBadge.js";
|
|
9
11
|
import { INTEGRATION_FEATURE_FLAGS as ce } from "../constants/featureFlags.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
+
import { useFormatDate as le } from "../hooks/useFormatDate.js";
|
|
13
|
+
import { ConfirmDialog as ue } from "../components/ConfirmDialog.js";
|
|
14
|
+
import { nativeConfirm as de, nativeImpact as fe, nativeNotify as o } from "../../utils/nativeBridge.js";
|
|
12
15
|
import { useState as s } from "react";
|
|
13
|
-
import { Activity as c, AlertCircle as
|
|
14
|
-
import { useParams as
|
|
15
|
-
import {
|
|
16
|
+
import { Activity as c, AlertCircle as pe, ArrowLeft as l, CheckCircle2 as u, Clock as me, Key as d, Loader2 as f, Mail as he, RefreshCw as ge, RotateCcw as p, Shield as m, Trash2 as h, User as _e, XCircle as g, Zap as _ } from "lucide-react";
|
|
17
|
+
import { useParams as ve } from "react-router";
|
|
18
|
+
import { usePermissions as ye } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
16
19
|
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
17
20
|
import { useFeatureFlag as be } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
18
|
-
import { AlertDialog as xe, AlertDialogAction as Se, AlertDialogCancel as Ce, AlertDialogContent as we, AlertDialogDescription as Te, AlertDialogFooter as Ee, AlertDialogHeader as De, AlertDialogTitle as Oe, Button as
|
|
21
|
+
import { AlertDialog as xe, AlertDialogAction as Se, AlertDialogCancel as Ce, AlertDialogContent as we, AlertDialogDescription as Te, AlertDialogFooter as Ee, AlertDialogHeader as De, AlertDialogTitle as Oe, Button as ke, CTAOverflowMenu as b, EmphasisPanel as x, GlassCard as S, NextSteps as C, PagePurpose as w, ShowMore as Ae } from "@burdenoff/fe-libs/ui";
|
|
19
22
|
//#region src/integrations/pages/ConnectionDetail.tsx
|
|
20
|
-
function
|
|
21
|
-
let { connectionId:
|
|
22
|
-
|
|
23
|
-
return r === e ? n ? Object.entries(n).reduce((e, [t, n]) => e.replace(`{{${t}}}`, String(n)).replace(`{${t}}`, String(n)), t) : t : r;
|
|
24
|
-
}, { connection: A, loading: je, error: j, refetch: M } = ne(E ?? ""), { testConnection: Me, loading: N } = a(), { refreshToken: Ne, loading: Pe } = ie(), { revokeConnection: Fe, loading: P } = ae(), { deleteConnection: F, loading: I } = re(), L = be(ce.OAUTH_REFRESH, !0), { hasPermission: R, isLoading: Ie } = ye(), z = R(n.CONNECTION_UPDATE), B = R(n.CONNECTION_DELETE), [V, Le] = s(null), [H, U] = s(null), [Re, W] = s(!1), [G, K] = s(!1), [ze, q] = s(!1), J = (e, t) => {
|
|
25
|
-
U({
|
|
23
|
+
function T() {
|
|
24
|
+
let { connectionId: T } = ve(), { basePath: E = "/", navigate: D } = e(), O = t(), je = ee(), Me = a(), k = le(), { connection: A, loading: Ne, error: j, refetch: M } = te(T ?? ""), { testConnection: Pe, loading: N } = ae(), { refreshToken: Fe, loading: Ie } = re(), { revokeConnection: Le, loading: P } = ie(), { deleteConnection: Re, loading: F } = ne(), I = be(ce.OAUTH_REFRESH, !0), { hasPermission: L, isLoading: ze } = ye(), R = L(r.CONNECTION_UPDATE), z = L(r.CONNECTION_DELETE), [B, Be] = s(null), [V, H] = s(null), [Ve, U] = s(!1), [W, G] = s(!1), [K, q] = s(!1), J = (e, t) => {
|
|
25
|
+
H({
|
|
26
26
|
type: e,
|
|
27
27
|
message: t
|
|
28
|
-
}), setTimeout(() =>
|
|
28
|
+
}), setTimeout(() => H(null), 5e3);
|
|
29
29
|
};
|
|
30
|
-
if (
|
|
30
|
+
if (Ne || ze) return /* @__PURE__ */ y("div", {
|
|
31
31
|
className: "flex flex-col items-center justify-center py-20",
|
|
32
32
|
children: [/* @__PURE__ */ v(f, {
|
|
33
33
|
size: 48,
|
|
34
34
|
className: "animate-spin text-primary"
|
|
35
35
|
}), /* @__PURE__ */ v("span", {
|
|
36
36
|
className: "mt-6 text-sm font-medium text-text-secondary",
|
|
37
|
-
children:
|
|
37
|
+
children: O("integrations.connectionDetail.loading", "Loading connection details...")
|
|
38
38
|
})]
|
|
39
39
|
});
|
|
40
40
|
if (j || !A) return /* @__PURE__ */ v("div", {
|
|
41
41
|
className: "p-6 max-w-4xl mx-auto",
|
|
42
42
|
children: /* @__PURE__ */ y("div", {
|
|
43
43
|
className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4",
|
|
44
|
-
children: [/* @__PURE__ */ v(
|
|
44
|
+
children: [/* @__PURE__ */ v(pe, {
|
|
45
45
|
size: 24,
|
|
46
46
|
className: "text-status-error-text flex-shrink-0"
|
|
47
47
|
}), /* @__PURE__ */ y("div", {
|
|
@@ -49,11 +49,11 @@ function E() {
|
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ v("h3", {
|
|
51
51
|
className: "font-semibold text-status-error-text mb-1",
|
|
52
|
-
children:
|
|
52
|
+
children: O("integrations.connectionDetail.error.title", "Connection not found")
|
|
53
53
|
}),
|
|
54
54
|
/* @__PURE__ */ v("p", {
|
|
55
55
|
className: "text-sm text-status-error-text mb-3",
|
|
56
|
-
children: j?.message ||
|
|
56
|
+
children: j?.message || O("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
|
|
57
57
|
}),
|
|
58
58
|
/* @__PURE__ */ y("div", {
|
|
59
59
|
className: "flex gap-2",
|
|
@@ -62,18 +62,18 @@ function E() {
|
|
|
62
62
|
onClick: () => M(),
|
|
63
63
|
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",
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */ v(
|
|
65
|
+
/* @__PURE__ */ v(ge, { size: 14 }),
|
|
66
66
|
" ",
|
|
67
|
-
|
|
67
|
+
O("integrations.connectionDetail.error.retry", "Try Again")
|
|
68
68
|
]
|
|
69
69
|
}), /* @__PURE__ */ y("button", {
|
|
70
70
|
type: "button",
|
|
71
|
-
onClick: () =>
|
|
71
|
+
onClick: () => D?.(i(E, "connections")),
|
|
72
72
|
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",
|
|
73
73
|
children: [
|
|
74
74
|
/* @__PURE__ */ v(l, { size: 14 }),
|
|
75
75
|
" ",
|
|
76
|
-
|
|
76
|
+
O("integrations.connectionDetail.error.back", "Back to Connections")
|
|
77
77
|
]
|
|
78
78
|
})]
|
|
79
79
|
})
|
|
@@ -82,48 +82,48 @@ function E() {
|
|
|
82
82
|
})
|
|
83
83
|
});
|
|
84
84
|
let Y = async () => {
|
|
85
|
-
let e = await
|
|
86
|
-
e && (
|
|
85
|
+
let e = await Pe(A.id);
|
|
86
|
+
e && (Be(e), J(e.success ? "success" : "error", e.message));
|
|
87
87
|
}, X = async () => {
|
|
88
|
-
await
|
|
89
|
-
}, Be = async () => {
|
|
90
|
-
q(!0);
|
|
91
|
-
}, Ve = async () => {
|
|
92
|
-
await Fe(A.id), J("success", k("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), q(!1), M();
|
|
88
|
+
await Fe(A.id), J("success", O("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), M();
|
|
93
89
|
}, He = async () => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
q(!0);
|
|
91
|
+
}, Ue = async () => {
|
|
92
|
+
await Le(A.id), J("success", O("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), q(!1), M();
|
|
93
|
+
}, We = async () => {
|
|
94
|
+
fe("medium");
|
|
95
|
+
let e = await de({
|
|
96
|
+
title: O("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
|
|
97
|
+
message: O("integrations.connectionDetail.deleteDialog.message", "Delete this connection? This cannot be undone."),
|
|
98
|
+
okButtonTitle: O("integrations.connectionDetail.deleteDialog.confirm", "Delete"),
|
|
99
|
+
cancelButtonTitle: O("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
|
|
100
100
|
});
|
|
101
101
|
if (e === null) {
|
|
102
|
-
|
|
102
|
+
U(!0);
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
e && await Z();
|
|
106
106
|
}, Z = async () => {
|
|
107
107
|
try {
|
|
108
|
-
await
|
|
108
|
+
await Re(A.id, W), J("success", O("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), o("success"), U(!1), G(!1), D?.(i(E, "connections"));
|
|
109
109
|
} catch (e) {
|
|
110
110
|
J("error", e instanceof Error ? e.message : "Failed to delete connection"), o("error");
|
|
111
111
|
}
|
|
112
|
-
}, Q = N ||
|
|
112
|
+
}, Q = N || Ie || P || F, $ = !!(A.vaultId || A.credentialSecretId), Ge = [
|
|
113
113
|
{
|
|
114
114
|
id: "test",
|
|
115
|
-
label:
|
|
116
|
-
description:
|
|
115
|
+
label: O("integrations.connectionDetail.nextSteps.test.label", "Test the connection"),
|
|
116
|
+
description: O("integrations.connectionDetail.nextSteps.test.description", "Run a live check to confirm credentials still work before relying on it."),
|
|
117
117
|
icon: /* @__PURE__ */ v(_, { size: 16 }),
|
|
118
118
|
onClick: () => {
|
|
119
119
|
Y();
|
|
120
120
|
},
|
|
121
|
-
done: A.status === "active" && !!
|
|
121
|
+
done: A.status === "active" && !!B?.success
|
|
122
122
|
},
|
|
123
|
-
...
|
|
123
|
+
...R && A.provider.authType === "oauth2" && I ? [{
|
|
124
124
|
id: "refresh",
|
|
125
|
-
label:
|
|
126
|
-
description:
|
|
125
|
+
label: O("integrations.connectionDetail.nextSteps.refresh.label", "Refresh the access token"),
|
|
126
|
+
description: O("integrations.connectionDetail.nextSteps.refresh.description", "Renew OAuth credentials if requests start failing with an auth error."),
|
|
127
127
|
icon: /* @__PURE__ */ v(p, { size: 16 }),
|
|
128
128
|
onClick: () => {
|
|
129
129
|
X();
|
|
@@ -131,76 +131,76 @@ function E() {
|
|
|
131
131
|
}] : [],
|
|
132
132
|
{
|
|
133
133
|
id: "logs",
|
|
134
|
-
label:
|
|
135
|
-
description:
|
|
134
|
+
label: O("integrations.connectionDetail.nextSteps.logs.label", "Review activity logs"),
|
|
135
|
+
description: O("integrations.connectionDetail.nextSteps.logs.description", "See recent requests and errors for this connection to debug issues."),
|
|
136
136
|
icon: /* @__PURE__ */ v(c, { size: 16 }),
|
|
137
|
-
onClick: () =>
|
|
137
|
+
onClick: () => D?.(i(E, "logs"))
|
|
138
138
|
}
|
|
139
139
|
];
|
|
140
140
|
return /* @__PURE__ */ y("div", {
|
|
141
141
|
className: "space-y-6 p-6 max-w-5xl mx-auto",
|
|
142
142
|
children: [
|
|
143
|
-
|
|
144
|
-
className:
|
|
145
|
-
children: [
|
|
143
|
+
V && /* @__PURE__ */ y("div", {
|
|
144
|
+
className: n("fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200", V.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-default" : "bg-status-error-bg-subtle text-status-error-text border-border-default"),
|
|
145
|
+
children: [V.type === "success" ? /* @__PURE__ */ v(u, { size: 20 }) : /* @__PURE__ */ v(g, { size: 20 }), /* @__PURE__ */ v("span", {
|
|
146
146
|
className: "font-medium",
|
|
147
|
-
children:
|
|
147
|
+
children: V.message
|
|
148
148
|
})]
|
|
149
149
|
}),
|
|
150
150
|
/* @__PURE__ */ v(xe, {
|
|
151
|
-
open:
|
|
151
|
+
open: Ve,
|
|
152
152
|
onOpenChange: (e) => {
|
|
153
|
-
e || (
|
|
153
|
+
e || (U(!1), G(!1));
|
|
154
154
|
},
|
|
155
155
|
children: /* @__PURE__ */ y(we, {
|
|
156
156
|
className: "max-w-md",
|
|
157
157
|
children: [
|
|
158
|
-
/* @__PURE__ */ y(De, { children: [/* @__PURE__ */ v(Oe, { children: "Delete
|
|
158
|
+
/* @__PURE__ */ y(De, { children: [/* @__PURE__ */ v(Oe, { children: O("integrations.connectionDetail.deleteDialog.title", "Delete Connection") }), /* @__PURE__ */ v(Te, { children: O("integrations.connectionDetail.deleteDialog.message", "This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it.") })] }),
|
|
159
159
|
$ && /* @__PURE__ */ y("label", {
|
|
160
160
|
className: "flex items-start gap-3 rounded-lg border border-border-subtle/60 bg-bg-surface px-4 py-3 cursor-pointer",
|
|
161
161
|
children: [/* @__PURE__ */ v("input", {
|
|
162
162
|
type: "checkbox",
|
|
163
|
-
checked:
|
|
164
|
-
onChange: (e) =>
|
|
163
|
+
checked: W,
|
|
164
|
+
onChange: (e) => G(e.target.checked),
|
|
165
165
|
className: "mt-0.5",
|
|
166
|
-
"aria-label": "Also remove mapped vault secret"
|
|
166
|
+
"aria-label": O("integrations.connectionDetail.deleteDialog.removeVaultSecret", "Also remove mapped vault secret")
|
|
167
167
|
}), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
168
168
|
className: "text-sm font-medium text-text-primary",
|
|
169
|
-
children: "Also remove mapped vault secret"
|
|
169
|
+
children: O("integrations.connectionDetail.deleteDialog.removeVaultSecret", "Also remove mapped vault secret")
|
|
170
170
|
}), /* @__PURE__ */ v("p", {
|
|
171
171
|
className: "text-xs text-text-secondary mt-1",
|
|
172
|
-
children: "Use this only if no other connections rely on the same secret."
|
|
172
|
+
children: O("integrations.connectionDetail.deleteDialog.removeVaultSecretHint", "Use this only if no other connections rely on the same secret.")
|
|
173
173
|
})] })]
|
|
174
174
|
}),
|
|
175
175
|
/* @__PURE__ */ y(Ee, { children: [/* @__PURE__ */ v(Ce, {
|
|
176
176
|
onClick: () => {
|
|
177
|
-
|
|
177
|
+
U(!1), G(!1);
|
|
178
178
|
},
|
|
179
|
-
children: "Cancel"
|
|
179
|
+
children: O("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
|
|
180
180
|
}), /* @__PURE__ */ y(Se, {
|
|
181
|
-
disabled:
|
|
181
|
+
disabled: F,
|
|
182
182
|
onClick: (e) => {
|
|
183
183
|
e.preventDefault(), Z();
|
|
184
184
|
},
|
|
185
185
|
className: "inline-flex items-center gap-2 bg-status-error-bg text-action-primary-text disabled:opacity-50",
|
|
186
|
-
children: [
|
|
186
|
+
children: [F ? /* @__PURE__ */ v(f, {
|
|
187
187
|
size: 14,
|
|
188
188
|
className: "animate-spin"
|
|
189
|
-
}) : /* @__PURE__ */ v(h, { size: 14 }), "Delete connection"]
|
|
189
|
+
}) : /* @__PURE__ */ v(h, { size: 14 }), O("integrations.connectionDetail.deleteDialog.deleteConnection", "Delete connection")]
|
|
190
190
|
})] })
|
|
191
191
|
]
|
|
192
192
|
})
|
|
193
193
|
}),
|
|
194
|
-
/* @__PURE__ */ v(
|
|
195
|
-
open:
|
|
196
|
-
title:
|
|
197
|
-
description:
|
|
198
|
-
confirmLabel:
|
|
199
|
-
cancelLabel:
|
|
194
|
+
/* @__PURE__ */ v(ue, {
|
|
195
|
+
open: K,
|
|
196
|
+
title: O("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
|
|
197
|
+
description: O("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
|
|
198
|
+
confirmLabel: O("integrations.connectionDetail.actions.revoke", "Revoke"),
|
|
199
|
+
cancelLabel: O("integrations.connectionDetail.actions.cancel", "Cancel"),
|
|
200
200
|
loading: P,
|
|
201
201
|
destructive: !0,
|
|
202
202
|
icon: /* @__PURE__ */ v(m, { size: 20 }),
|
|
203
|
-
onConfirm:
|
|
203
|
+
onConfirm: Ue,
|
|
204
204
|
onCancel: () => q(!1)
|
|
205
205
|
}),
|
|
206
206
|
/* @__PURE__ */ v("div", {
|
|
@@ -208,11 +208,11 @@ function E() {
|
|
|
208
208
|
children: /* @__PURE__ */ y("div", {
|
|
209
209
|
className: "flex items-center gap-4",
|
|
210
210
|
children: [
|
|
211
|
-
/* @__PURE__ */ v(
|
|
211
|
+
/* @__PURE__ */ v(ke, {
|
|
212
212
|
variant: "ghost",
|
|
213
213
|
size: "icon",
|
|
214
|
-
onClick: () =>
|
|
215
|
-
"aria-label":
|
|
214
|
+
onClick: () => D?.(i(E, "connections")),
|
|
215
|
+
"aria-label": O("integrations.connectionDetail.actions.backAriaLabel", "Back"),
|
|
216
216
|
children: /* @__PURE__ */ v(l, { size: 20 })
|
|
217
217
|
}),
|
|
218
218
|
/* @__PURE__ */ v(oe, {
|
|
@@ -235,31 +235,31 @@ function E() {
|
|
|
235
235
|
children: [
|
|
236
236
|
A.provider.name,
|
|
237
237
|
" · ",
|
|
238
|
-
|
|
238
|
+
je(A.provider.authType)
|
|
239
239
|
]
|
|
240
240
|
})]
|
|
241
241
|
})
|
|
242
242
|
]
|
|
243
243
|
})
|
|
244
244
|
}),
|
|
245
|
-
/* @__PURE__ */ v(
|
|
245
|
+
/* @__PURE__ */ v(w, {
|
|
246
246
|
icon: /* @__PURE__ */ v(c, { size: 16 }),
|
|
247
|
-
children:
|
|
247
|
+
children: O("integrations.connectionDetail.purpose", "This is a single live link to {provider}. From here you can confirm it is healthy, see which account and scopes were granted, test it on demand, refresh or revoke its access, and review where its credentials are stored.", { provider: A.provider.name })
|
|
248
248
|
}),
|
|
249
|
-
(
|
|
249
|
+
(R || z) && /* @__PURE__ */ v(C, {
|
|
250
250
|
storageKey: "integrations-connection-detail",
|
|
251
|
-
steps:
|
|
251
|
+
steps: Ge
|
|
252
252
|
}),
|
|
253
253
|
/* @__PURE__ */ y("div", {
|
|
254
254
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
255
|
-
children: [/* @__PURE__ */ y(
|
|
255
|
+
children: [/* @__PURE__ */ y(x, {
|
|
256
256
|
className: "p-5 space-y-4",
|
|
257
257
|
children: [/* @__PURE__ */ y("h2", {
|
|
258
258
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
259
259
|
children: [/* @__PURE__ */ v(c, {
|
|
260
260
|
size: 18,
|
|
261
261
|
className: "text-primary"
|
|
262
|
-
}),
|
|
262
|
+
}), O("integrations.connectionDetail.sections.info", "Connection Info")]
|
|
263
263
|
}), /* @__PURE__ */ y("div", {
|
|
264
264
|
className: "space-y-3",
|
|
265
265
|
children: [
|
|
@@ -267,7 +267,7 @@ function E() {
|
|
|
267
267
|
className: "py-2 border-b border-border-seam",
|
|
268
268
|
children: [/* @__PURE__ */ v("span", {
|
|
269
269
|
className: "text-xs text-text-secondary uppercase tracking-wide",
|
|
270
|
-
children:
|
|
270
|
+
children: O("integrations.connectionDetail.fields.description", "Description")
|
|
271
271
|
}), /* @__PURE__ */ v("p", {
|
|
272
272
|
className: "text-sm text-text-primary mt-0.5",
|
|
273
273
|
children: A.description
|
|
@@ -277,7 +277,7 @@ function E() {
|
|
|
277
277
|
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
278
278
|
children: [/* @__PURE__ */ v("span", {
|
|
279
279
|
className: "text-sm text-text-secondary",
|
|
280
|
-
children:
|
|
280
|
+
children: O("integrations.connectionDetail.fields.provider", "Provider")
|
|
281
281
|
}), /* @__PURE__ */ v("span", {
|
|
282
282
|
className: "text-sm font-medium text-text-primary",
|
|
283
283
|
children: A.provider.name
|
|
@@ -288,9 +288,9 @@ function E() {
|
|
|
288
288
|
children: [/* @__PURE__ */ y("span", {
|
|
289
289
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */ v(
|
|
291
|
+
/* @__PURE__ */ v(he, { size: 14 }),
|
|
292
292
|
" ",
|
|
293
|
-
|
|
293
|
+
O("integrations.connectionDetail.fields.account", "Account")
|
|
294
294
|
]
|
|
295
295
|
}), /* @__PURE__ */ v("span", {
|
|
296
296
|
className: "text-sm font-medium text-text-primary",
|
|
@@ -302,9 +302,9 @@ function E() {
|
|
|
302
302
|
children: [/* @__PURE__ */ y("span", {
|
|
303
303
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
304
304
|
children: [
|
|
305
|
-
/* @__PURE__ */ v(
|
|
305
|
+
/* @__PURE__ */ v(_e, { size: 14 }),
|
|
306
306
|
" ",
|
|
307
|
-
|
|
307
|
+
O("integrations.connectionDetail.fields.name", "Name")
|
|
308
308
|
]
|
|
309
309
|
}), /* @__PURE__ */ v("span", {
|
|
310
310
|
className: "text-sm font-medium text-text-primary",
|
|
@@ -315,7 +315,7 @@ function E() {
|
|
|
315
315
|
className: "py-2 border-b border-border-seam",
|
|
316
316
|
children: [/* @__PURE__ */ v("span", {
|
|
317
317
|
className: "text-xs text-status-error-text uppercase tracking-wide",
|
|
318
|
-
children:
|
|
318
|
+
children: O("integrations.connectionDetail.fields.error", "Error")
|
|
319
319
|
}), /* @__PURE__ */ v("p", {
|
|
320
320
|
className: "text-sm text-status-error-text mt-0.5 bg-status-error-bg-subtle rounded-lg p-2",
|
|
321
321
|
children: A.errorMessage
|
|
@@ -326,33 +326,33 @@ function E() {
|
|
|
326
326
|
children: [/* @__PURE__ */ y("span", {
|
|
327
327
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
328
328
|
children: [
|
|
329
|
-
/* @__PURE__ */ v(
|
|
329
|
+
/* @__PURE__ */ v(me, { size: 14 }),
|
|
330
330
|
" ",
|
|
331
|
-
|
|
331
|
+
O("integrations.connectionDetail.fields.lastUsed", "Last Used")
|
|
332
332
|
]
|
|
333
333
|
}), /* @__PURE__ */ v("span", {
|
|
334
334
|
className: "text-sm text-text-primary",
|
|
335
|
-
children:
|
|
335
|
+
children: Me(A.lastUsedAt)
|
|
336
336
|
})]
|
|
337
337
|
}),
|
|
338
338
|
/* @__PURE__ */ y("div", {
|
|
339
339
|
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
340
340
|
children: [/* @__PURE__ */ v("span", {
|
|
341
341
|
className: "text-sm text-text-secondary",
|
|
342
|
-
children:
|
|
342
|
+
children: O("integrations.connectionDetail.fields.healthCheck", "Health Check")
|
|
343
343
|
}), /* @__PURE__ */ v("span", {
|
|
344
344
|
className: "text-sm text-text-primary",
|
|
345
|
-
children:
|
|
345
|
+
children: k(A.lastHealthCheck)
|
|
346
346
|
})]
|
|
347
347
|
}),
|
|
348
348
|
/* @__PURE__ */ y("div", {
|
|
349
349
|
className: "flex items-center justify-between py-2",
|
|
350
350
|
children: [/* @__PURE__ */ v("span", {
|
|
351
351
|
className: "text-sm text-text-secondary",
|
|
352
|
-
children:
|
|
352
|
+
children: O("integrations.connectionDetail.fields.created", "Created")
|
|
353
353
|
}), /* @__PURE__ */ v("span", {
|
|
354
354
|
className: "text-sm text-text-primary",
|
|
355
|
-
children:
|
|
355
|
+
children: k(A.createdAt)
|
|
356
356
|
})]
|
|
357
357
|
})
|
|
358
358
|
]
|
|
@@ -360,15 +360,15 @@ function E() {
|
|
|
360
360
|
}), /* @__PURE__ */ y("div", {
|
|
361
361
|
className: "space-y-4",
|
|
362
362
|
children: [
|
|
363
|
-
/* @__PURE__ */ y(
|
|
363
|
+
/* @__PURE__ */ y(S, {
|
|
364
364
|
className: "border-border-seam p-5",
|
|
365
365
|
children: [/* @__PURE__ */ y("h2", {
|
|
366
366
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
367
367
|
children: [/* @__PURE__ */ v(m, {
|
|
368
368
|
size: 18,
|
|
369
369
|
className: "text-primary"
|
|
370
|
-
}),
|
|
371
|
-
}), A.grantedScopes.length > 0 ? /* @__PURE__ */ v(
|
|
370
|
+
}), O("integrations.connectionDetail.sections.scopes", "Granted Scopes")]
|
|
371
|
+
}), A.grantedScopes.length > 0 ? /* @__PURE__ */ v(Ae, {
|
|
372
372
|
collapsedHeight: 88,
|
|
373
373
|
label: "Show all scopes",
|
|
374
374
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -380,34 +380,34 @@ function E() {
|
|
|
380
380
|
})
|
|
381
381
|
}) : /* @__PURE__ */ v("p", {
|
|
382
382
|
className: "text-sm text-text-secondary",
|
|
383
|
-
children:
|
|
383
|
+
children: O("integrations.connectionDetail.scopes.empty", "No scopes granted.")
|
|
384
384
|
})]
|
|
385
385
|
}),
|
|
386
|
-
|
|
387
|
-
className:
|
|
386
|
+
B && /* @__PURE__ */ y("div", {
|
|
387
|
+
className: n("rounded-xl border p-5", B.success ? "border-border-default bg-status-success-bg-subtle" : "border-border-default bg-status-error-bg-subtle"),
|
|
388
388
|
children: [
|
|
389
389
|
/* @__PURE__ */ y("h2", {
|
|
390
|
-
className:
|
|
391
|
-
children: [
|
|
390
|
+
className: n("font-semibold flex items-center gap-2 mb-2", B.success ? "text-status-success-text" : "text-status-error-text"),
|
|
391
|
+
children: [B.success ? /* @__PURE__ */ v(u, { size: 18 }) : /* @__PURE__ */ v(g, { size: 18 }), B.success ? O("integrations.connectionDetail.testResult.passed", "Connection Test Passed") : O("integrations.connectionDetail.testResult.failed", "Connection Test Failed")]
|
|
392
392
|
}),
|
|
393
393
|
/* @__PURE__ */ v("p", {
|
|
394
|
-
className:
|
|
395
|
-
children:
|
|
394
|
+
className: n("text-sm", B.success ? "text-status-success-text" : "text-status-error-text"),
|
|
395
|
+
children: B.message
|
|
396
396
|
}),
|
|
397
397
|
/* @__PURE__ */ v("p", {
|
|
398
398
|
className: "text-xs text-text-secondary mt-1",
|
|
399
|
-
children:
|
|
399
|
+
children: O("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: B.latencyMs })
|
|
400
400
|
})
|
|
401
401
|
]
|
|
402
402
|
}),
|
|
403
|
-
$ && /* @__PURE__ */ y(
|
|
403
|
+
$ && /* @__PURE__ */ y(S, {
|
|
404
404
|
className: "border-border-seam p-5",
|
|
405
405
|
children: [/* @__PURE__ */ y("h2", {
|
|
406
406
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
407
407
|
children: [/* @__PURE__ */ v(d, {
|
|
408
408
|
size: 18,
|
|
409
409
|
className: "text-primary"
|
|
410
|
-
}), "Credential Storage"]
|
|
410
|
+
}), O("integrations.connectionDetail.sections.credentialStorage", "Credential Storage")]
|
|
411
411
|
}), /* @__PURE__ */ y("div", {
|
|
412
412
|
className: "space-y-2 text-sm",
|
|
413
413
|
children: [
|
|
@@ -415,7 +415,7 @@ function E() {
|
|
|
415
415
|
className: "flex items-center justify-between gap-3",
|
|
416
416
|
children: [/* @__PURE__ */ v("span", {
|
|
417
417
|
className: "text-text-secondary",
|
|
418
|
-
children: "Vault"
|
|
418
|
+
children: O("integrations.connectionDetail.fields.vault", "Vault")
|
|
419
419
|
}), /* @__PURE__ */ v("span", {
|
|
420
420
|
className: "font-medium text-text-primary break-all",
|
|
421
421
|
children: A.vaultId
|
|
@@ -425,7 +425,7 @@ function E() {
|
|
|
425
425
|
className: "flex items-center justify-between gap-3",
|
|
426
426
|
children: [/* @__PURE__ */ v("span", {
|
|
427
427
|
className: "text-text-secondary",
|
|
428
|
-
children: "Secret"
|
|
428
|
+
children: O("integrations.connectionDetail.fields.secret", "Secret")
|
|
429
429
|
}), /* @__PURE__ */ v("span", {
|
|
430
430
|
className: "font-medium text-text-primary break-all",
|
|
431
431
|
children: A.credentialSecretName
|
|
@@ -435,7 +435,7 @@ function E() {
|
|
|
435
435
|
className: "flex items-center justify-between gap-3",
|
|
436
436
|
children: [/* @__PURE__ */ v("span", {
|
|
437
437
|
className: "text-text-secondary",
|
|
438
|
-
children: "Secret ID"
|
|
438
|
+
children: O("integrations.connectionDetail.fields.secretId", "Secret ID")
|
|
439
439
|
}), /* @__PURE__ */ v("span", {
|
|
440
440
|
className: "font-mono text-xs text-text-primary break-all",
|
|
441
441
|
children: A.credentialSecretId
|
|
@@ -444,18 +444,18 @@ function E() {
|
|
|
444
444
|
]
|
|
445
445
|
})]
|
|
446
446
|
}),
|
|
447
|
-
(
|
|
447
|
+
(R || z) && /* @__PURE__ */ y(S, {
|
|
448
448
|
className: "border-border-seam p-5",
|
|
449
449
|
children: [/* @__PURE__ */ y("h2", {
|
|
450
450
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
451
451
|
children: [/* @__PURE__ */ v(d, {
|
|
452
452
|
size: 18,
|
|
453
453
|
className: "text-primary"
|
|
454
|
-
}),
|
|
455
|
-
}), /* @__PURE__ */ v(
|
|
454
|
+
}), O("integrations.connectionDetail.sections.actions", "Actions")]
|
|
455
|
+
}), /* @__PURE__ */ v(b, {
|
|
456
456
|
align: "start",
|
|
457
457
|
primary: {
|
|
458
|
-
label:
|
|
458
|
+
label: O("integrations.connectionDetail.actions.test", "Test Connection"),
|
|
459
459
|
onSelect: () => {
|
|
460
460
|
Y();
|
|
461
461
|
},
|
|
@@ -465,24 +465,24 @@ function E() {
|
|
|
465
465
|
className: "animate-spin"
|
|
466
466
|
}) : /* @__PURE__ */ v(_, { size: 14 })
|
|
467
467
|
},
|
|
468
|
-
actions: [...
|
|
469
|
-
label:
|
|
468
|
+
actions: [...R && A.provider.authType === "oauth2" && I ? [{
|
|
469
|
+
label: O("integrations.connectionDetail.actions.refreshToken", "Refresh Token"),
|
|
470
470
|
onSelect: () => {
|
|
471
471
|
X();
|
|
472
472
|
},
|
|
473
473
|
disabled: Q,
|
|
474
474
|
icon: /* @__PURE__ */ v(p, { size: 14 })
|
|
475
|
-
}] : [], ...
|
|
476
|
-
label:
|
|
475
|
+
}] : [], ...z ? [{
|
|
476
|
+
label: O("integrations.connectionDetail.actions.revoke", "Revoke"),
|
|
477
477
|
onSelect: () => {
|
|
478
|
-
|
|
478
|
+
He();
|
|
479
479
|
},
|
|
480
480
|
disabled: Q,
|
|
481
481
|
icon: /* @__PURE__ */ v(m, { size: 14 })
|
|
482
482
|
}, {
|
|
483
|
-
label:
|
|
483
|
+
label: O("integrations.connectionDetail.actions.delete", "Delete"),
|
|
484
484
|
onSelect: () => {
|
|
485
|
-
|
|
485
|
+
We();
|
|
486
486
|
},
|
|
487
487
|
intent: "destructive",
|
|
488
488
|
disabled: Q,
|
|
@@ -497,6 +497,6 @@ function E() {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
//#endregion
|
|
500
|
-
export {
|
|
500
|
+
export { T as ConnectionDetail };
|
|
501
501
|
|
|
502
502
|
//# sourceMappingURL=ConnectionDetail.js.map
|