@burdenoff/microfe-integrations 2026.624.3 → 2026.625.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/integrations/components/AddConnectionDialog.js +2 -2
  2. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  3. package/dist/integrations/components/ConnectionCard.js +27 -26
  4. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  5. package/dist/integrations/components/ProviderCard.js +67 -66
  6. package/dist/integrations/components/ProviderCard.js.map +1 -1
  7. package/dist/integrations/pages/AddConnectionWizard.js +268 -283
  8. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  9. package/dist/integrations/pages/ConnectionDetail.js +241 -245
  10. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  11. package/dist/integrations/pages/ConnectionLogs.js +118 -119
  12. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  13. package/dist/integrations/pages/ConnectionsList.js +68 -70
  14. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  15. package/dist/integrations/pages/IntegrationsOverview.js +67 -67
  16. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  17. package/dist/integrations/pages/IntegrationsSettings.js +71 -71
  18. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  19. package/dist/integrations/pages/ProviderCatalog.js +46 -46
  20. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  21. package/dist/integrations/pages/ProviderDetail.js +214 -215
  22. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  23. package/dist/integrations/pages/ProviderEditorPage.js +152 -154
  24. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  25. package/package.json +2 -2
@@ -4,76 +4,76 @@ import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
4
4
  import { joinPath as r } from "../utils/navigation.js";
5
5
  import { formatDate as i, formatLastUsed as ee, getAuthTypeLabel as te } from "../utils/integrationsHelpers.js";
6
6
  import { useConnection as ne, useDeleteConnection as re, useRefreshToken as ie, useRevokeConnection as a, useTestConnection as o } from "../hooks/useConnections.js";
7
- import { ProviderIcon as s } from "../components/ProviderIcon.js";
8
- import { ConnectionStatusBadge as c } from "../components/ConnectionStatusBadge.js";
9
- import { INTEGRATION_FEATURE_FLAGS as ae } from "../constants/featureFlags.js";
10
- import { ConfirmDialog as oe } from "../components/ConfirmDialog.js";
11
- import { nativeConfirm as se, nativeImpact as ce, nativeNotify as l } from "../../utils/nativeBridge.js";
12
- import { useState as u } from "react";
13
- import { Activity as le, AlertCircle as ue, ArrowLeft as d, CheckCircle2 as f, Clock as de, Key as p, Loader2 as m, Mail as fe, RefreshCw as pe, RotateCcw as h, Shield as g, Trash2 as _, User as me, XCircle as v, Zap as he } from "lucide-react";
14
- import { useParams as ge } from "react-router-dom";
15
- import { useI18n as _e, usePermissions as ve } from "@burdenoff/fe-libs/shared/providers/shell";
16
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
17
- import { useFeatureFlag as ye } from "@burdenoff/fe-libs/shared/feature-flags";
18
- import { AlertDialog as be, AlertDialogAction as xe, AlertDialogCancel as x, AlertDialogContent as S, AlertDialogDescription as C, AlertDialogFooter as w, AlertDialogHeader as T, AlertDialogTitle as E } from "@burdenoff/fe-libs/ui";
7
+ import { ProviderIcon as ae } from "../components/ProviderIcon.js";
8
+ import { ConnectionStatusBadge as oe } from "../components/ConnectionStatusBadge.js";
9
+ import { INTEGRATION_FEATURE_FLAGS as se } from "../constants/featureFlags.js";
10
+ import { ConfirmDialog as ce } from "../components/ConfirmDialog.js";
11
+ import { nativeConfirm as le, nativeImpact as ue, nativeNotify as s } from "../../utils/nativeBridge.js";
12
+ import { useState as c } from "react";
13
+ import { Activity as de, AlertCircle as l, ArrowLeft as u, CheckCircle2 as d, Clock as fe, Key as f, Loader2 as p, Mail as pe, RefreshCw as m, RotateCcw as me, Shield as h, Trash2 as g, User as he, XCircle as _, Zap as ge } from "lucide-react";
14
+ import { useParams as _e } from "react-router-dom";
15
+ import { useI18n as ve, usePermissions as ye } from "@burdenoff/fe-libs/shared/providers/shell";
16
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
17
+ import { useFeatureFlag as be } from "@burdenoff/fe-libs/shared/feature-flags";
18
+ import { AlertDialog as xe, AlertDialogAction as Se, AlertDialogCancel as b, AlertDialogContent as x, AlertDialogDescription as S, AlertDialogFooter as C, AlertDialogHeader as w, AlertDialogTitle as T, Button as E, CTAOverflowMenu as D, GlassCard as O, ShowMore as k } from "@burdenoff/fe-libs/ui";
19
19
  //#region src/integrations/pages/ConnectionDetail.tsx
20
- function D() {
21
- let { connectionId: D } = ge(), { basePath: O = "/", navigate: k } = e(), { t: A } = _e(), j = (e, t, n) => {
22
- let r = A(e, n);
20
+ function A() {
21
+ let { connectionId: A } = _e(), { basePath: j = "/", navigate: M } = e(), { t: Ce } = ve(), N = (e, t, n) => {
22
+ let r = Ce(e, n);
23
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: M, loading: Se, error: N, refetch: P } = ne(D ?? ""), { testConnection: Ce, loading: F } = o(), { refreshToken: we, loading: I } = ie(), { revokeConnection: Te, loading: L } = a(), { deleteConnection: R, loading: z } = re(), Ee = ye(ae.OAUTH_REFRESH, !0), { hasPermission: B, isLoading: De } = ve(), V = B(n.CONNECTION_UPDATE), H = B(n.CONNECTION_DELETE), [U, Oe] = u(null), [W, G] = u(null), [ke, K] = u(!1), [q, J] = u(!1), [Ae, Y] = u(!1), X = (e, t) => {
24
+ }, { connection: P, loading: we, error: F, refetch: I } = ne(A ?? ""), { testConnection: Te, loading: L } = o(), { refreshToken: Ee, loading: De } = ie(), { revokeConnection: Oe, loading: R } = a(), { deleteConnection: ke, loading: z } = re(), Ae = be(se.OAUTH_REFRESH, !0), { hasPermission: B, isLoading: je } = ye(), V = B(n.CONNECTION_UPDATE), H = B(n.CONNECTION_DELETE), [U, Me] = c(null), [W, G] = c(null), [Ne, K] = c(!1), [q, J] = c(!1), [Pe, Y] = c(!1), X = (e, t) => {
25
25
  G({
26
26
  type: e,
27
27
  message: t
28
28
  }), setTimeout(() => G(null), 5e3);
29
29
  };
30
- if (Se || De) return /* @__PURE__ */ b("div", {
30
+ if (we || je) return /* @__PURE__ */ y("div", {
31
31
  className: "flex flex-col items-center justify-center py-20",
32
- children: [/* @__PURE__ */ y(m, {
32
+ children: [/* @__PURE__ */ v(p, {
33
33
  size: 48,
34
34
  className: "animate-spin text-primary"
35
- }), /* @__PURE__ */ y("span", {
35
+ }), /* @__PURE__ */ v("span", {
36
36
  className: "mt-6 text-sm font-medium text-text-secondary",
37
- children: j("integrations.connectionDetail.loading", "Loading connection details...")
37
+ children: N("integrations.connectionDetail.loading", "Loading connection details...")
38
38
  })]
39
39
  });
40
- if (N || !M) return /* @__PURE__ */ y("div", {
40
+ if (F || !P) return /* @__PURE__ */ v("div", {
41
41
  className: "p-6 max-w-4xl mx-auto",
42
- children: /* @__PURE__ */ b("div", {
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__ */ y(ue, {
44
+ children: [/* @__PURE__ */ v(l, {
45
45
  size: 24,
46
46
  className: "text-status-error-text flex-shrink-0"
47
- }), /* @__PURE__ */ b("div", {
47
+ }), /* @__PURE__ */ y("div", {
48
48
  className: "flex-1",
49
49
  children: [
50
- /* @__PURE__ */ y("h3", {
50
+ /* @__PURE__ */ v("h3", {
51
51
  className: "font-semibold text-status-error-text mb-1",
52
- children: j("integrations.connectionDetail.error.title", "Connection not found")
52
+ children: N("integrations.connectionDetail.error.title", "Connection not found")
53
53
  }),
54
- /* @__PURE__ */ y("p", {
54
+ /* @__PURE__ */ v("p", {
55
55
  className: "text-sm text-status-error-text mb-3",
56
- children: N?.message || j("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
56
+ children: F?.message || N("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
57
57
  }),
58
- /* @__PURE__ */ b("div", {
58
+ /* @__PURE__ */ y("div", {
59
59
  className: "flex gap-2",
60
- children: [/* @__PURE__ */ b("button", {
60
+ children: [/* @__PURE__ */ y("button", {
61
61
  type: "button",
62
- onClick: () => P(),
62
+ onClick: () => I(),
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__ */ y(pe, { size: 14 }),
65
+ /* @__PURE__ */ v(m, { size: 14 }),
66
66
  " ",
67
- j("integrations.connectionDetail.error.retry", "Try Again")
67
+ N("integrations.connectionDetail.error.retry", "Try Again")
68
68
  ]
69
- }), /* @__PURE__ */ b("button", {
69
+ }), /* @__PURE__ */ y("button", {
70
70
  type: "button",
71
- onClick: () => k?.(r(O, "connections")),
71
+ onClick: () => M?.(r(j, "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
- /* @__PURE__ */ y(d, { size: 14 }),
74
+ /* @__PURE__ */ v(u, { size: 14 }),
75
75
  " ",
76
- j("integrations.connectionDetail.error.back", "Back to Connections")
76
+ N("integrations.connectionDetail.error.back", "Back to Connections")
77
77
  ]
78
78
  })]
79
79
  })
@@ -81,22 +81,22 @@ function D() {
81
81
  })]
82
82
  })
83
83
  });
84
- let je = async () => {
85
- let e = await Ce(M.id);
86
- e && (Oe(e), X(e.success ? "success" : "error", e.message));
87
- }, Me = async () => {
88
- await we(M.id), X("success", j("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), P();
89
- }, Ne = async () => {
84
+ let Fe = async () => {
85
+ let e = await Te(P.id);
86
+ e && (Me(e), X(e.success ? "success" : "error", e.message));
87
+ }, Ie = async () => {
88
+ await Ee(P.id), X("success", N("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), I();
89
+ }, Le = async () => {
90
90
  Y(!0);
91
- }, Pe = async () => {
92
- await Te(M.id), X("success", j("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), Y(!1), P();
93
- }, Fe = async () => {
94
- ce("medium");
95
- let e = await se({
96
- title: j("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
97
- message: j("integrations.connectionDetail.deleteDialog.message", "Delete this connection? This cannot be undone."),
98
- okButtonTitle: j("integrations.connectionDetail.deleteDialog.confirm", "Delete"),
99
- cancelButtonTitle: j("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
91
+ }, Re = async () => {
92
+ await Oe(P.id), X("success", N("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), Y(!1), I();
93
+ }, ze = async () => {
94
+ ue("medium");
95
+ let e = await le({
96
+ title: N("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
97
+ message: N("integrations.connectionDetail.deleteDialog.message", "Delete this connection? This cannot be undone."),
98
+ okButtonTitle: N("integrations.connectionDetail.deleteDialog.confirm", "Delete"),
99
+ cancelButtonTitle: N("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
100
100
  });
101
101
  if (e === null) {
102
102
  K(!0);
@@ -105,358 +105,354 @@ function D() {
105
105
  e && await Z();
106
106
  }, Z = async () => {
107
107
  try {
108
- await R(M.id, q), X("success", j("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), l("success"), K(!1), J(!1), k?.(r(O, "connections"));
108
+ await ke(P.id, q), X("success", N("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), s("success"), K(!1), J(!1), M?.(r(j, "connections"));
109
109
  } catch (e) {
110
- X("error", e instanceof Error ? e.message : "Failed to delete connection"), l("error");
110
+ X("error", e instanceof Error ? e.message : "Failed to delete connection"), s("error");
111
111
  }
112
- }, Q = F || I || L || z, $ = !!(M.vaultId || M.credentialSecretId);
113
- return /* @__PURE__ */ b("div", {
112
+ }, Q = L || De || R || z, $ = !!(P.vaultId || P.credentialSecretId);
113
+ return /* @__PURE__ */ y("div", {
114
114
  className: "space-y-6 p-6 max-w-5xl mx-auto",
115
115
  children: [
116
- W && /* @__PURE__ */ b("div", {
116
+ W && /* @__PURE__ */ y("div", {
117
117
  className: t("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", W.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"),
118
- children: [W.type === "success" ? /* @__PURE__ */ y(f, { size: 20 }) : /* @__PURE__ */ y(v, { size: 20 }), /* @__PURE__ */ y("span", {
118
+ children: [W.type === "success" ? /* @__PURE__ */ v(d, { size: 20 }) : /* @__PURE__ */ v(_, { size: 20 }), /* @__PURE__ */ v("span", {
119
119
  className: "font-medium",
120
120
  children: W.message
121
121
  })]
122
122
  }),
123
- /* @__PURE__ */ y(be, {
124
- open: ke,
123
+ /* @__PURE__ */ v(xe, {
124
+ open: Ne,
125
125
  onOpenChange: (e) => {
126
126
  e || (K(!1), J(!1));
127
127
  },
128
- children: /* @__PURE__ */ b(S, {
128
+ children: /* @__PURE__ */ y(x, {
129
129
  className: "max-w-md",
130
130
  children: [
131
- /* @__PURE__ */ b(T, { children: [/* @__PURE__ */ y(E, { children: "Delete connection" }), /* @__PURE__ */ y(C, { children: "This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it." })] }),
132
- $ && /* @__PURE__ */ b("label", {
131
+ /* @__PURE__ */ y(w, { children: [/* @__PURE__ */ v(T, { children: "Delete connection" }), /* @__PURE__ */ v(S, { children: "This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it." })] }),
132
+ $ && /* @__PURE__ */ y("label", {
133
133
  className: "flex items-start gap-3 rounded-lg border border-border-subtle/60 bg-bg-surface px-4 py-3 cursor-pointer",
134
- children: [/* @__PURE__ */ y("input", {
134
+ children: [/* @__PURE__ */ v("input", {
135
135
  type: "checkbox",
136
136
  checked: q,
137
137
  onChange: (e) => J(e.target.checked),
138
138
  className: "mt-0.5",
139
139
  "aria-label": "Also remove mapped vault secret"
140
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
140
+ }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
141
141
  className: "text-sm font-medium text-text-primary",
142
142
  children: "Also remove mapped vault secret"
143
- }), /* @__PURE__ */ y("p", {
143
+ }), /* @__PURE__ */ v("p", {
144
144
  className: "text-xs text-text-secondary mt-1",
145
145
  children: "Use this only if no other connections rely on the same secret."
146
146
  })] })]
147
147
  }),
148
- /* @__PURE__ */ b(w, { children: [/* @__PURE__ */ y(x, {
148
+ /* @__PURE__ */ y(C, { children: [/* @__PURE__ */ v(b, {
149
149
  onClick: () => {
150
150
  K(!1), J(!1);
151
151
  },
152
152
  children: "Cancel"
153
- }), /* @__PURE__ */ b(xe, {
153
+ }), /* @__PURE__ */ y(Se, {
154
154
  disabled: z,
155
155
  onClick: (e) => {
156
156
  e.preventDefault(), Z();
157
157
  },
158
158
  className: "inline-flex items-center gap-2 bg-status-error-bg text-action-primary-text disabled:opacity-50",
159
- children: [z ? /* @__PURE__ */ y(m, {
159
+ children: [z ? /* @__PURE__ */ v(p, {
160
160
  size: 14,
161
161
  className: "animate-spin"
162
- }) : /* @__PURE__ */ y(_, { size: 14 }), "Delete connection"]
162
+ }) : /* @__PURE__ */ v(g, { size: 14 }), "Delete connection"]
163
163
  })] })
164
164
  ]
165
165
  })
166
166
  }),
167
- /* @__PURE__ */ y(oe, {
168
- open: Ae,
169
- title: j("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
170
- description: j("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
171
- confirmLabel: j("integrations.connectionDetail.actions.revoke", "Revoke"),
172
- cancelLabel: j("integrations.connectionDetail.actions.cancel", "Cancel"),
173
- loading: L,
167
+ /* @__PURE__ */ v(ce, {
168
+ open: Pe,
169
+ title: N("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
170
+ description: N("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
171
+ confirmLabel: N("integrations.connectionDetail.actions.revoke", "Revoke"),
172
+ cancelLabel: N("integrations.connectionDetail.actions.cancel", "Cancel"),
173
+ loading: R,
174
174
  destructive: !0,
175
- icon: /* @__PURE__ */ y(g, { size: 20 }),
176
- onConfirm: Pe,
175
+ icon: /* @__PURE__ */ v(h, { size: 20 }),
176
+ onConfirm: Re,
177
177
  onCancel: () => Y(!1)
178
178
  }),
179
- /* @__PURE__ */ b("div", {
180
- className: "relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/5 via-primary/3 to-background border border-border-subtle/50 p-6 shadow-sm",
181
- children: [/* @__PURE__ */ b("div", {
182
- className: "relative z-10 flex items-center gap-4",
179
+ /* @__PURE__ */ v("div", {
180
+ className: "rounded-xl border border-border-seam bg-accent-wash p-6",
181
+ children: /* @__PURE__ */ y("div", {
182
+ className: "flex items-center gap-4",
183
183
  children: [
184
- /* @__PURE__ */ y("button", {
185
- type: "button",
186
- onClick: () => k?.(r(O, "connections")),
187
- className: "p-2.5 hover:bg-accent rounded-lg transition-all",
188
- "aria-label": j("integrations.connectionDetail.actions.backAriaLabel", "Back"),
189
- children: /* @__PURE__ */ y(d, { size: 20 })
184
+ /* @__PURE__ */ v(E, {
185
+ variant: "ghost",
186
+ size: "icon",
187
+ onClick: () => M?.(r(j, "connections")),
188
+ "aria-label": N("integrations.connectionDetail.actions.backAriaLabel", "Back"),
189
+ children: /* @__PURE__ */ v(u, { size: 20 })
190
190
  }),
191
- /* @__PURE__ */ y(s, {
192
- provider: M.provider,
191
+ /* @__PURE__ */ v(ae, {
192
+ provider: P.provider,
193
193
  size: 56
194
194
  }),
195
- /* @__PURE__ */ b("div", {
195
+ /* @__PURE__ */ y("div", {
196
196
  className: "flex-1",
197
- children: [/* @__PURE__ */ b("div", {
197
+ children: [/* @__PURE__ */ y("div", {
198
198
  className: "flex items-center gap-3",
199
- children: [/* @__PURE__ */ y("h1", {
199
+ children: [/* @__PURE__ */ v("h1", {
200
200
  className: "text-2xl sm:text-3xl font-bold text-text-primary",
201
- children: M.name
202
- }), /* @__PURE__ */ y(c, {
203
- status: M.status,
201
+ children: P.name
202
+ }), /* @__PURE__ */ v(oe, {
203
+ status: P.status,
204
204
  size: "md"
205
205
  })]
206
- }), /* @__PURE__ */ b("p", {
206
+ }), /* @__PURE__ */ y("p", {
207
207
  className: "text-sm text-text-secondary mt-0.5",
208
208
  children: [
209
- M.provider.name,
209
+ P.provider.name,
210
210
  " · ",
211
- te(M.provider.authType)
211
+ te(P.provider.authType)
212
212
  ]
213
213
  })]
214
214
  })
215
215
  ]
216
- }), /* @__PURE__ */ y("div", { className: "absolute top-0 right-0 size-64 bg-gradient-to-br from-primary/10 to-transparent rounded-full blur-3xl -z-0" })]
216
+ })
217
217
  }),
218
- /* @__PURE__ */ b("div", {
218
+ /* @__PURE__ */ y("div", {
219
219
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
220
- children: [/* @__PURE__ */ b("div", {
221
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5 space-y-4",
222
- children: [/* @__PURE__ */ b("h2", {
220
+ children: [/* @__PURE__ */ y(O, {
221
+ className: "border-border-seam p-5 space-y-4",
222
+ children: [/* @__PURE__ */ y("h2", {
223
223
  className: "font-semibold text-text-primary flex items-center gap-2",
224
- children: [/* @__PURE__ */ y(le, {
224
+ children: [/* @__PURE__ */ v(de, {
225
225
  size: 18,
226
226
  className: "text-primary"
227
- }), j("integrations.connectionDetail.sections.info", "Connection Info")]
228
- }), /* @__PURE__ */ b("div", {
227
+ }), N("integrations.connectionDetail.sections.info", "Connection Info")]
228
+ }), /* @__PURE__ */ y("div", {
229
229
  className: "space-y-3",
230
230
  children: [
231
- M.description && /* @__PURE__ */ b("div", {
232
- className: "py-2 border-b border-border-subtle/50",
233
- children: [/* @__PURE__ */ y("span", {
231
+ P.description && /* @__PURE__ */ y("div", {
232
+ className: "py-2 border-b border-border-seam",
233
+ children: [/* @__PURE__ */ v("span", {
234
234
  className: "text-xs text-text-secondary uppercase tracking-wide",
235
- children: j("integrations.connectionDetail.fields.description", "Description")
236
- }), /* @__PURE__ */ y("p", {
235
+ children: N("integrations.connectionDetail.fields.description", "Description")
236
+ }), /* @__PURE__ */ v("p", {
237
237
  className: "text-sm text-text-primary mt-0.5",
238
- children: M.description
238
+ children: P.description
239
239
  })]
240
240
  }),
241
- /* @__PURE__ */ b("div", {
242
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
243
- children: [/* @__PURE__ */ y("span", {
241
+ /* @__PURE__ */ y("div", {
242
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
243
+ children: [/* @__PURE__ */ v("span", {
244
244
  className: "text-sm text-text-secondary",
245
- children: j("integrations.connectionDetail.fields.provider", "Provider")
246
- }), /* @__PURE__ */ y("span", {
245
+ children: N("integrations.connectionDetail.fields.provider", "Provider")
246
+ }), /* @__PURE__ */ v("span", {
247
247
  className: "text-sm font-medium text-text-primary",
248
- children: M.provider.name
248
+ children: P.provider.name
249
249
  })]
250
250
  }),
251
- M.externalAccountEmail && /* @__PURE__ */ b("div", {
252
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
253
- children: [/* @__PURE__ */ b("span", {
251
+ P.externalAccountEmail && /* @__PURE__ */ y("div", {
252
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
253
+ children: [/* @__PURE__ */ y("span", {
254
254
  className: "text-sm text-text-secondary flex items-center gap-1",
255
255
  children: [
256
- /* @__PURE__ */ y(fe, { size: 14 }),
256
+ /* @__PURE__ */ v(pe, { size: 14 }),
257
257
  " ",
258
- j("integrations.connectionDetail.fields.account", "Account")
258
+ N("integrations.connectionDetail.fields.account", "Account")
259
259
  ]
260
- }), /* @__PURE__ */ y("span", {
260
+ }), /* @__PURE__ */ v("span", {
261
261
  className: "text-sm font-medium text-text-primary",
262
- children: M.externalAccountEmail
262
+ children: P.externalAccountEmail
263
263
  })]
264
264
  }),
265
- M.externalAccountName && /* @__PURE__ */ b("div", {
266
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
267
- children: [/* @__PURE__ */ b("span", {
265
+ P.externalAccountName && /* @__PURE__ */ y("div", {
266
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
267
+ children: [/* @__PURE__ */ y("span", {
268
268
  className: "text-sm text-text-secondary flex items-center gap-1",
269
269
  children: [
270
- /* @__PURE__ */ y(me, { size: 14 }),
270
+ /* @__PURE__ */ v(he, { size: 14 }),
271
271
  " ",
272
- j("integrations.connectionDetail.fields.name", "Name")
272
+ N("integrations.connectionDetail.fields.name", "Name")
273
273
  ]
274
- }), /* @__PURE__ */ y("span", {
274
+ }), /* @__PURE__ */ v("span", {
275
275
  className: "text-sm font-medium text-text-primary",
276
- children: M.externalAccountName
276
+ children: P.externalAccountName
277
277
  })]
278
278
  }),
279
- M.errorMessage && /* @__PURE__ */ b("div", {
280
- className: "py-2 border-b border-border-subtle/50",
281
- children: [/* @__PURE__ */ y("span", {
279
+ P.errorMessage && /* @__PURE__ */ y("div", {
280
+ className: "py-2 border-b border-border-seam",
281
+ children: [/* @__PURE__ */ v("span", {
282
282
  className: "text-xs text-status-error-text uppercase tracking-wide",
283
- children: j("integrations.connectionDetail.fields.error", "Error")
284
- }), /* @__PURE__ */ y("p", {
283
+ children: N("integrations.connectionDetail.fields.error", "Error")
284
+ }), /* @__PURE__ */ v("p", {
285
285
  className: "text-sm text-status-error-text mt-0.5 bg-status-error-bg-subtle rounded-lg p-2",
286
- children: M.errorMessage
286
+ children: P.errorMessage
287
287
  })]
288
288
  }),
289
- /* @__PURE__ */ b("div", {
290
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
291
- children: [/* @__PURE__ */ b("span", {
289
+ /* @__PURE__ */ y("div", {
290
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
291
+ children: [/* @__PURE__ */ y("span", {
292
292
  className: "text-sm text-text-secondary flex items-center gap-1",
293
293
  children: [
294
- /* @__PURE__ */ y(de, { size: 14 }),
294
+ /* @__PURE__ */ v(fe, { size: 14 }),
295
295
  " ",
296
- j("integrations.connectionDetail.fields.lastUsed", "Last Used")
296
+ N("integrations.connectionDetail.fields.lastUsed", "Last Used")
297
297
  ]
298
- }), /* @__PURE__ */ y("span", {
298
+ }), /* @__PURE__ */ v("span", {
299
299
  className: "text-sm text-text-primary",
300
- children: ee(M.lastUsedAt)
300
+ children: ee(P.lastUsedAt)
301
301
  })]
302
302
  }),
303
- /* @__PURE__ */ b("div", {
304
- className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
305
- children: [/* @__PURE__ */ y("span", {
303
+ /* @__PURE__ */ y("div", {
304
+ className: "flex items-center justify-between py-2 border-b border-border-seam",
305
+ children: [/* @__PURE__ */ v("span", {
306
306
  className: "text-sm text-text-secondary",
307
- children: j("integrations.connectionDetail.fields.healthCheck", "Health Check")
308
- }), /* @__PURE__ */ y("span", {
307
+ children: N("integrations.connectionDetail.fields.healthCheck", "Health Check")
308
+ }), /* @__PURE__ */ v("span", {
309
309
  className: "text-sm text-text-primary",
310
- children: i(M.lastHealthCheck)
310
+ children: i(P.lastHealthCheck)
311
311
  })]
312
312
  }),
313
- /* @__PURE__ */ b("div", {
313
+ /* @__PURE__ */ y("div", {
314
314
  className: "flex items-center justify-between py-2",
315
- children: [/* @__PURE__ */ y("span", {
315
+ children: [/* @__PURE__ */ v("span", {
316
316
  className: "text-sm text-text-secondary",
317
- children: j("integrations.connectionDetail.fields.created", "Created")
318
- }), /* @__PURE__ */ y("span", {
317
+ children: N("integrations.connectionDetail.fields.created", "Created")
318
+ }), /* @__PURE__ */ v("span", {
319
319
  className: "text-sm text-text-primary",
320
- children: i(M.createdAt)
320
+ children: i(P.createdAt)
321
321
  })]
322
322
  })
323
323
  ]
324
324
  })]
325
- }), /* @__PURE__ */ b("div", {
325
+ }), /* @__PURE__ */ y("div", {
326
326
  className: "space-y-4",
327
327
  children: [
328
- /* @__PURE__ */ b("div", {
329
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
330
- children: [/* @__PURE__ */ b("h2", {
328
+ /* @__PURE__ */ y(O, {
329
+ className: "border-border-seam p-5",
330
+ children: [/* @__PURE__ */ y("h2", {
331
331
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
332
- children: [/* @__PURE__ */ y(g, {
332
+ children: [/* @__PURE__ */ v(h, {
333
333
  size: 18,
334
334
  className: "text-primary"
335
- }), j("integrations.connectionDetail.sections.scopes", "Granted Scopes")]
336
- }), M.grantedScopes.length > 0 ? /* @__PURE__ */ y("div", {
337
- className: "flex flex-wrap gap-2",
338
- children: M.grantedScopes.map((e) => /* @__PURE__ */ y("span", {
339
- className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary font-mono",
340
- children: e
341
- }, e))
342
- }) : /* @__PURE__ */ y("p", {
335
+ }), N("integrations.connectionDetail.sections.scopes", "Granted Scopes")]
336
+ }), P.grantedScopes.length > 0 ? /* @__PURE__ */ v(k, {
337
+ collapsedHeight: 88,
338
+ label: "Show all scopes",
339
+ children: /* @__PURE__ */ v("div", {
340
+ className: "flex flex-wrap gap-2",
341
+ children: P.grantedScopes.map((e) => /* @__PURE__ */ v("span", {
342
+ className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary font-mono",
343
+ children: e
344
+ }, e))
345
+ })
346
+ }) : /* @__PURE__ */ v("p", {
343
347
  className: "text-sm text-text-secondary",
344
- children: j("integrations.connectionDetail.scopes.empty", "No scopes granted.")
348
+ children: N("integrations.connectionDetail.scopes.empty", "No scopes granted.")
345
349
  })]
346
350
  }),
347
- U && /* @__PURE__ */ b("div", {
351
+ U && /* @__PURE__ */ y("div", {
348
352
  className: t("rounded-xl border p-5", U.success ? "border-border-default bg-status-success-bg-subtle" : "border-border-default bg-status-error-bg-subtle"),
349
353
  children: [
350
- /* @__PURE__ */ b("h2", {
354
+ /* @__PURE__ */ y("h2", {
351
355
  className: t("font-semibold flex items-center gap-2 mb-2", U.success ? "text-status-success-text" : "text-status-error-text"),
352
- children: [U.success ? /* @__PURE__ */ y(f, { size: 18 }) : /* @__PURE__ */ y(v, { size: 18 }), U.success ? j("integrations.connectionDetail.testResult.passed", "Connection Test Passed") : j("integrations.connectionDetail.testResult.failed", "Connection Test Failed")]
356
+ children: [U.success ? /* @__PURE__ */ v(d, { size: 18 }) : /* @__PURE__ */ v(_, { size: 18 }), U.success ? N("integrations.connectionDetail.testResult.passed", "Connection Test Passed") : N("integrations.connectionDetail.testResult.failed", "Connection Test Failed")]
353
357
  }),
354
- /* @__PURE__ */ y("p", {
358
+ /* @__PURE__ */ v("p", {
355
359
  className: t("text-sm", U.success ? "text-status-success-text" : "text-status-error-text"),
356
360
  children: U.message
357
361
  }),
358
- /* @__PURE__ */ y("p", {
362
+ /* @__PURE__ */ v("p", {
359
363
  className: "text-xs text-text-secondary mt-1",
360
- children: j("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: U.latencyMs })
364
+ children: N("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: U.latencyMs })
361
365
  })
362
366
  ]
363
367
  }),
364
- $ && /* @__PURE__ */ b("div", {
365
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
366
- children: [/* @__PURE__ */ b("h2", {
368
+ $ && /* @__PURE__ */ y(O, {
369
+ className: "border-border-seam p-5",
370
+ children: [/* @__PURE__ */ y("h2", {
367
371
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
368
- children: [/* @__PURE__ */ y(p, {
372
+ children: [/* @__PURE__ */ v(f, {
369
373
  size: 18,
370
374
  className: "text-primary"
371
375
  }), "Credential Storage"]
372
- }), /* @__PURE__ */ b("div", {
376
+ }), /* @__PURE__ */ y("div", {
373
377
  className: "space-y-2 text-sm",
374
378
  children: [
375
- M.vaultId && /* @__PURE__ */ b("div", {
379
+ P.vaultId && /* @__PURE__ */ y("div", {
376
380
  className: "flex items-center justify-between gap-3",
377
- children: [/* @__PURE__ */ y("span", {
381
+ children: [/* @__PURE__ */ v("span", {
378
382
  className: "text-text-secondary",
379
383
  children: "Vault"
380
- }), /* @__PURE__ */ y("span", {
384
+ }), /* @__PURE__ */ v("span", {
381
385
  className: "font-medium text-text-primary break-all",
382
- children: M.vaultId
386
+ children: P.vaultId
383
387
  })]
384
388
  }),
385
- M.credentialSecretName && /* @__PURE__ */ b("div", {
389
+ P.credentialSecretName && /* @__PURE__ */ y("div", {
386
390
  className: "flex items-center justify-between gap-3",
387
- children: [/* @__PURE__ */ y("span", {
391
+ children: [/* @__PURE__ */ v("span", {
388
392
  className: "text-text-secondary",
389
393
  children: "Secret"
390
- }), /* @__PURE__ */ y("span", {
394
+ }), /* @__PURE__ */ v("span", {
391
395
  className: "font-medium text-text-primary break-all",
392
- children: M.credentialSecretName
396
+ children: P.credentialSecretName
393
397
  })]
394
398
  }),
395
- M.credentialSecretId && /* @__PURE__ */ b("div", {
399
+ P.credentialSecretId && /* @__PURE__ */ y("div", {
396
400
  className: "flex items-center justify-between gap-3",
397
- children: [/* @__PURE__ */ y("span", {
401
+ children: [/* @__PURE__ */ v("span", {
398
402
  className: "text-text-secondary",
399
403
  children: "Secret ID"
400
- }), /* @__PURE__ */ y("span", {
404
+ }), /* @__PURE__ */ v("span", {
401
405
  className: "font-mono text-xs text-text-primary break-all",
402
- children: M.credentialSecretId
406
+ children: P.credentialSecretId
403
407
  })]
404
408
  })
405
409
  ]
406
410
  })]
407
411
  }),
408
- (V || H) && /* @__PURE__ */ b("div", {
409
- className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
410
- children: [/* @__PURE__ */ b("h2", {
412
+ (V || H) && /* @__PURE__ */ y(O, {
413
+ className: "border-border-seam p-5",
414
+ children: [/* @__PURE__ */ y("h2", {
411
415
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
412
- children: [/* @__PURE__ */ y(p, {
416
+ children: [/* @__PURE__ */ v(f, {
413
417
  size: 18,
414
418
  className: "text-primary"
415
- }), j("integrations.connectionDetail.sections.actions", "Actions")]
416
- }), /* @__PURE__ */ b("div", {
417
- className: "flex flex-wrap gap-2",
418
- children: [
419
- /* @__PURE__ */ b("button", {
420
- type: "button",
421
- onClick: je,
422
- disabled: Q,
423
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50",
424
- children: [F ? /* @__PURE__ */ y(m, {
425
- size: 14,
426
- className: "animate-spin"
427
- }) : /* @__PURE__ */ y(he, { size: 14 }), j("integrations.connectionDetail.actions.test", "Test Connection")]
428
- }),
429
- V && M.provider.authType === "oauth2" && Ee && /* @__PURE__ */ b("button", {
430
- type: "button",
431
- onClick: Me,
432
- disabled: Q,
433
- 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 disabled:opacity-50",
434
- children: [I ? /* @__PURE__ */ y(m, {
435
- size: 14,
436
- className: "animate-spin"
437
- }) : /* @__PURE__ */ y(h, { size: 14 }), j("integrations.connectionDetail.actions.refreshToken", "Refresh Token")]
438
- }),
439
- H && /* @__PURE__ */ b("button", {
440
- type: "button",
441
- onClick: Ne,
442
- disabled: Q,
443
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-default text-status-warning-text hover:bg-status-warning-bg-subtle transition-colors disabled:opacity-50",
444
- children: [L ? /* @__PURE__ */ y(m, {
445
- size: 14,
446
- className: "animate-spin"
447
- }) : /* @__PURE__ */ y(g, { size: 14 }), j("integrations.connectionDetail.actions.revoke", "Revoke")]
448
- }),
449
- H && /* @__PURE__ */ b("button", {
450
- type: "button",
451
- onClick: Fe,
452
- disabled: Q,
453
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-default text-status-error-text hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50",
454
- children: [z ? /* @__PURE__ */ y(m, {
455
- size: 14,
456
- className: "animate-spin"
457
- }) : /* @__PURE__ */ y(_, { size: 14 }), j("integrations.connectionDetail.actions.delete", "Delete")]
458
- })
459
- ]
419
+ }), N("integrations.connectionDetail.sections.actions", "Actions")]
420
+ }), /* @__PURE__ */ v(D, {
421
+ align: "start",
422
+ primary: {
423
+ label: N("integrations.connectionDetail.actions.test", "Test Connection"),
424
+ onSelect: () => {
425
+ Fe();
426
+ },
427
+ disabled: Q,
428
+ icon: L ? /* @__PURE__ */ v(p, {
429
+ size: 14,
430
+ className: "animate-spin"
431
+ }) : /* @__PURE__ */ v(ge, { size: 14 })
432
+ },
433
+ actions: [...V && P.provider.authType === "oauth2" && Ae ? [{
434
+ label: N("integrations.connectionDetail.actions.refreshToken", "Refresh Token"),
435
+ onSelect: () => {
436
+ Ie();
437
+ },
438
+ disabled: Q,
439
+ icon: /* @__PURE__ */ v(me, { size: 14 })
440
+ }] : [], ...H ? [{
441
+ label: N("integrations.connectionDetail.actions.revoke", "Revoke"),
442
+ onSelect: () => {
443
+ Le();
444
+ },
445
+ disabled: Q,
446
+ icon: /* @__PURE__ */ v(h, { size: 14 })
447
+ }, {
448
+ label: N("integrations.connectionDetail.actions.delete", "Delete"),
449
+ onSelect: () => {
450
+ ze();
451
+ },
452
+ intent: "destructive",
453
+ disabled: Q,
454
+ icon: /* @__PURE__ */ v(g, { size: 14 })
455
+ }] : []]
460
456
  })]
461
457
  })
462
458
  ]
@@ -466,6 +462,6 @@ function D() {
466
462
  });
467
463
  }
468
464
  //#endregion
469
- export { D as ConnectionDetail };
465
+ export { A as ConnectionDetail };
470
466
 
471
467
  //# sourceMappingURL=ConnectionDetail.js.map