@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.
Files changed (75) hide show
  1. package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
  2. package/dist/integrations/components/AddConnectionDialog.js +151 -152
  3. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  4. package/dist/integrations/components/AuthMethodSelector.d.ts.map +1 -1
  5. package/dist/integrations/components/AuthMethodSelector.js +48 -40
  6. package/dist/integrations/components/AuthMethodSelector.js.map +1 -1
  7. package/dist/integrations/components/AuthMethodsEditor.d.ts.map +1 -1
  8. package/dist/integrations/components/AuthMethodsEditor.js +207 -190
  9. package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
  10. package/dist/integrations/components/ConnectionCard.d.ts.map +1 -1
  11. package/dist/integrations/components/ConnectionCard.js +102 -98
  12. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  13. package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +1 -1
  14. package/dist/integrations/components/ConnectionStatusBadge.js +9 -5
  15. package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
  16. package/dist/integrations/components/CredentialStorageSelector.d.ts.map +1 -1
  17. package/dist/integrations/components/CredentialStorageSelector.js +124 -121
  18. package/dist/integrations/components/CredentialStorageSelector.js.map +1 -1
  19. package/dist/integrations/components/ProviderCard.d.ts.map +1 -1
  20. package/dist/integrations/components/ProviderCard.js +25 -65
  21. package/dist/integrations/components/ProviderCard.js.map +1 -1
  22. package/dist/integrations/components/SchemaForm.d.ts.map +1 -1
  23. package/dist/integrations/components/SchemaForm.js +116 -111
  24. package/dist/integrations/components/SchemaForm.js.map +1 -1
  25. package/dist/integrations/hooks/useFormatDate.d.ts +7 -0
  26. package/dist/integrations/hooks/useFormatDate.d.ts.map +1 -0
  27. package/dist/integrations/hooks/useFormatDate.js +17 -0
  28. package/dist/integrations/hooks/useFormatDate.js.map +1 -0
  29. package/dist/integrations/hooks/useFormatLastUsed.d.ts +9 -0
  30. package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +1 -0
  31. package/dist/integrations/hooks/useFormatLastUsed.js +15 -0
  32. package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -0
  33. package/dist/integrations/hooks/useLabel.d.ts +13 -0
  34. package/dist/integrations/hooks/useLabel.d.ts.map +1 -0
  35. package/dist/integrations/hooks/useLabel.js +20 -0
  36. package/dist/integrations/hooks/useLabel.js.map +1 -0
  37. package/dist/integrations/hooks/useTr.d.ts +17 -0
  38. package/dist/integrations/hooks/useTr.d.ts.map +1 -0
  39. package/dist/integrations/hooks/useTr.js +14 -0
  40. package/dist/integrations/hooks/useTr.js.map +1 -0
  41. package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -1
  42. package/dist/integrations/pages/AddConnectionWizard.js +396 -387
  43. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  44. package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -1
  45. package/dist/integrations/pages/ConnectionDetail.js +128 -128
  46. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  47. package/dist/integrations/pages/ConnectionLogs.d.ts.map +1 -1
  48. package/dist/integrations/pages/ConnectionLogs.js +210 -181
  49. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  50. package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -1
  51. package/dist/integrations/pages/ConnectionsList.js +136 -115
  52. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  53. package/dist/integrations/pages/IntegrationsOverview.d.ts.map +1 -1
  54. package/dist/integrations/pages/IntegrationsOverview.js +76 -77
  55. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  56. package/dist/integrations/pages/IntegrationsSettings.d.ts.map +1 -1
  57. package/dist/integrations/pages/IntegrationsSettings.js +59 -61
  58. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  59. package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +1 -1
  60. package/dist/integrations/pages/IntegrationsUserLandingPage.js +29 -28
  61. package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
  62. package/dist/integrations/pages/ProviderCatalog.d.ts.map +1 -1
  63. package/dist/integrations/pages/ProviderCatalog.js +99 -141
  64. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  65. package/dist/integrations/pages/ProviderDetail.d.ts.map +1 -1
  66. package/dist/integrations/pages/ProviderDetail.js +208 -220
  67. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  68. package/dist/integrations/pages/ProviderEditorPage.d.ts.map +1 -1
  69. package/dist/integrations/pages/ProviderEditorPage.js +262 -261
  70. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  71. package/dist/integrations/translations/en.d.ts +731 -0
  72. package/dist/integrations/translations/en.d.ts.map +1 -0
  73. package/dist/integrations/utils/integrationsHelpers.js +2 -16
  74. package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
  75. package/package.json +1 -1
@@ -1,47 +1,47 @@
1
1
  import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
2
- import { cn as t } from "../utils/cn.js";
3
- import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
4
- import { joinPath as r } from "../utils/navigation.js";
5
- import { formatDate as i, formatLastUsed as ee, getAuthTypeLabel as te } from "../utils/integrationsHelpers.js";
6
- import { useConnection as ne, useDeleteConnection as re, useRefreshToken as ie, useRevokeConnection as ae, useTestConnection as a } from "../hooks/useConnections.js";
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 { ConfirmDialog as le } from "../components/ConfirmDialog.js";
11
- import { nativeConfirm as ue, nativeImpact as de, nativeNotify as o } from "../../utils/nativeBridge.js";
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 fe, ArrowLeft as l, CheckCircle2 as u, Clock as pe, Key as d, Loader2 as f, Mail as me, RefreshCw as he, RotateCcw as p, Shield as m, Trash2 as h, User as ge, XCircle as g, Zap as _ } from "lucide-react";
14
- import { useParams as _e } from "react-router";
15
- import { useI18n as ve, usePermissions as ye } from "@burdenoff/fe-libs/shared/providers/shell";
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 b, CTAOverflowMenu as x, EmphasisPanel as S, GlassCard as C, NextSteps as w, PagePurpose as T, ShowMore as ke } from "@burdenoff/fe-libs/ui";
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 E() {
21
- let { connectionId: E } = _e(), { basePath: D = "/", navigate: O } = e(), { t: Ae } = ve(), k = (e, t, n) => {
22
- let r = Ae(e, n);
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(() => U(null), 5e3);
28
+ }), setTimeout(() => H(null), 5e3);
29
29
  };
30
- if (je || Ie) return /* @__PURE__ */ y("div", {
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: k("integrations.connectionDetail.loading", "Loading connection details...")
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(fe, {
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: k("integrations.connectionDetail.error.title", "Connection not found")
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 || k("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
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(he, { size: 14 }),
65
+ /* @__PURE__ */ v(ge, { size: 14 }),
66
66
  " ",
67
- k("integrations.connectionDetail.error.retry", "Try Again")
67
+ O("integrations.connectionDetail.error.retry", "Try Again")
68
68
  ]
69
69
  }), /* @__PURE__ */ y("button", {
70
70
  type: "button",
71
- onClick: () => O?.(r(D, "connections")),
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
- k("integrations.connectionDetail.error.back", "Back to Connections")
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 Me(A.id);
86
- e && (Le(e), J(e.success ? "success" : "error", e.message));
85
+ let e = await Pe(A.id);
86
+ e && (Be(e), J(e.success ? "success" : "error", e.message));
87
87
  }, X = async () => {
88
- await Ne(A.id), J("success", k("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), M();
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
- de("medium");
95
- let e = await ue({
96
- title: k("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
97
- message: k("integrations.connectionDetail.deleteDialog.message", "Delete this connection? This cannot be undone."),
98
- okButtonTitle: k("integrations.connectionDetail.deleteDialog.confirm", "Delete"),
99
- cancelButtonTitle: k("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
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
- W(!0);
102
+ U(!0);
103
103
  return;
104
104
  }
105
105
  e && await Z();
106
106
  }, Z = async () => {
107
107
  try {
108
- await F(A.id, G), J("success", k("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), o("success"), W(!1), K(!1), O?.(r(D, "connections"));
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 || Pe || P || I, $ = !!(A.vaultId || A.credentialSecretId), Ue = [
112
+ }, Q = N || Ie || P || F, $ = !!(A.vaultId || A.credentialSecretId), Ge = [
113
113
  {
114
114
  id: "test",
115
- label: k("integrations.connectionDetail.nextSteps.test.label", "Test the connection"),
116
- description: k("integrations.connectionDetail.nextSteps.test.description", "Run a live check to confirm credentials still work before relying on it."),
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" && !!V?.success
121
+ done: A.status === "active" && !!B?.success
122
122
  },
123
- ...z && A.provider.authType === "oauth2" && L ? [{
123
+ ...R && A.provider.authType === "oauth2" && I ? [{
124
124
  id: "refresh",
125
- label: k("integrations.connectionDetail.nextSteps.refresh.label", "Refresh the access token"),
126
- description: k("integrations.connectionDetail.nextSteps.refresh.description", "Renew OAuth credentials if requests start failing with an auth error."),
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: k("integrations.connectionDetail.nextSteps.logs.label", "Review activity logs"),
135
- description: k("integrations.connectionDetail.nextSteps.logs.description", "See recent requests and errors for this connection to debug issues."),
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: () => O?.(r(D, "logs"))
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
- H && /* @__PURE__ */ y("div", {
144
- 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", H.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: [H.type === "success" ? /* @__PURE__ */ v(u, { size: 20 }) : /* @__PURE__ */ v(g, { size: 20 }), /* @__PURE__ */ v("span", {
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: H.message
147
+ children: V.message
148
148
  })]
149
149
  }),
150
150
  /* @__PURE__ */ v(xe, {
151
- open: Re,
151
+ open: Ve,
152
152
  onOpenChange: (e) => {
153
- e || (W(!1), K(!1));
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 connection" }), /* @__PURE__ */ v(Te, { children: "This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it." })] }),
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: G,
164
- onChange: (e) => K(e.target.checked),
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
- W(!1), K(!1);
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: I,
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: [I ? /* @__PURE__ */ v(f, {
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(le, {
195
- open: ze,
196
- title: k("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
197
- description: k("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
198
- confirmLabel: k("integrations.connectionDetail.actions.revoke", "Revoke"),
199
- cancelLabel: k("integrations.connectionDetail.actions.cancel", "Cancel"),
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: Ve,
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(b, {
211
+ /* @__PURE__ */ v(ke, {
212
212
  variant: "ghost",
213
213
  size: "icon",
214
- onClick: () => O?.(r(D, "connections")),
215
- "aria-label": k("integrations.connectionDetail.actions.backAriaLabel", "Back"),
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
- te(A.provider.authType)
238
+ je(A.provider.authType)
239
239
  ]
240
240
  })]
241
241
  })
242
242
  ]
243
243
  })
244
244
  }),
245
- /* @__PURE__ */ v(T, {
245
+ /* @__PURE__ */ v(w, {
246
246
  icon: /* @__PURE__ */ v(c, { size: 16 }),
247
- children: k("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 })
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
- (z || B) && /* @__PURE__ */ v(w, {
249
+ (R || z) && /* @__PURE__ */ v(C, {
250
250
  storageKey: "integrations-connection-detail",
251
- steps: Ue
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(S, {
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
- }), k("integrations.connectionDetail.sections.info", "Connection Info")]
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: k("integrations.connectionDetail.fields.description", "Description")
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: k("integrations.connectionDetail.fields.provider", "Provider")
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(me, { size: 14 }),
291
+ /* @__PURE__ */ v(he, { size: 14 }),
292
292
  " ",
293
- k("integrations.connectionDetail.fields.account", "Account")
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(ge, { size: 14 }),
305
+ /* @__PURE__ */ v(_e, { size: 14 }),
306
306
  " ",
307
- k("integrations.connectionDetail.fields.name", "Name")
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: k("integrations.connectionDetail.fields.error", "Error")
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(pe, { size: 14 }),
329
+ /* @__PURE__ */ v(me, { size: 14 }),
330
330
  " ",
331
- k("integrations.connectionDetail.fields.lastUsed", "Last Used")
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: ee(A.lastUsedAt)
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: k("integrations.connectionDetail.fields.healthCheck", "Health Check")
342
+ children: O("integrations.connectionDetail.fields.healthCheck", "Health Check")
343
343
  }), /* @__PURE__ */ v("span", {
344
344
  className: "text-sm text-text-primary",
345
- children: i(A.lastHealthCheck)
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: k("integrations.connectionDetail.fields.created", "Created")
352
+ children: O("integrations.connectionDetail.fields.created", "Created")
353
353
  }), /* @__PURE__ */ v("span", {
354
354
  className: "text-sm text-text-primary",
355
- children: i(A.createdAt)
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(C, {
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
- }), k("integrations.connectionDetail.sections.scopes", "Granted Scopes")]
371
- }), A.grantedScopes.length > 0 ? /* @__PURE__ */ v(ke, {
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: k("integrations.connectionDetail.scopes.empty", "No scopes granted.")
383
+ children: O("integrations.connectionDetail.scopes.empty", "No scopes granted.")
384
384
  })]
385
385
  }),
386
- V && /* @__PURE__ */ y("div", {
387
- className: t("rounded-xl border p-5", V.success ? "border-border-default bg-status-success-bg-subtle" : "border-border-default bg-status-error-bg-subtle"),
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: t("font-semibold flex items-center gap-2 mb-2", V.success ? "text-status-success-text" : "text-status-error-text"),
391
- children: [V.success ? /* @__PURE__ */ v(u, { size: 18 }) : /* @__PURE__ */ v(g, { size: 18 }), V.success ? k("integrations.connectionDetail.testResult.passed", "Connection Test Passed") : k("integrations.connectionDetail.testResult.failed", "Connection Test Failed")]
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: t("text-sm", V.success ? "text-status-success-text" : "text-status-error-text"),
395
- children: V.message
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: k("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: V.latencyMs })
399
+ children: O("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: B.latencyMs })
400
400
  })
401
401
  ]
402
402
  }),
403
- $ && /* @__PURE__ */ y(C, {
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
- (z || B) && /* @__PURE__ */ y(C, {
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
- }), k("integrations.connectionDetail.sections.actions", "Actions")]
455
- }), /* @__PURE__ */ v(x, {
454
+ }), O("integrations.connectionDetail.sections.actions", "Actions")]
455
+ }), /* @__PURE__ */ v(b, {
456
456
  align: "start",
457
457
  primary: {
458
- label: k("integrations.connectionDetail.actions.test", "Test Connection"),
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: [...z && A.provider.authType === "oauth2" && L ? [{
469
- label: k("integrations.connectionDetail.actions.refreshToken", "Refresh Token"),
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
- }] : [], ...B ? [{
476
- label: k("integrations.connectionDetail.actions.revoke", "Revoke"),
475
+ }] : [], ...z ? [{
476
+ label: O("integrations.connectionDetail.actions.revoke", "Revoke"),
477
477
  onSelect: () => {
478
- Be();
478
+ He();
479
479
  },
480
480
  disabled: Q,
481
481
  icon: /* @__PURE__ */ v(m, { size: 14 })
482
482
  }, {
483
- label: k("integrations.connectionDetail.actions.delete", "Delete"),
483
+ label: O("integrations.connectionDetail.actions.delete", "Delete"),
484
484
  onSelect: () => {
485
- He();
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 { E as ConnectionDetail };
500
+ export { T as ConnectionDetail };
501
501
 
502
502
  //# sourceMappingURL=ConnectionDetail.js.map