@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,31 +1,33 @@
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 { getAuthTypeLabel as r, getCategoryLabel as i, legacyFlowForAuthType as ee } from "../utils/integrationsHelpers.js";
5
- import { useGetConnectionLazyQuery as te } from "../../generated/wspace-operations.js";
6
- import { useProvider as ne, useProviders as re } from "../hooks/useProviders.js";
7
- import { useAuthenticateConnection as ie, useAuthenticateWithServiceAccount as ae, useCreateConnection as oe, useInitiateOAuth as se } from "../hooks/useConnections.js";
8
- import { waitForOAuthPopupCompletion as ce } from "../utils/oauthPopup.js";
9
- import { CredentialStorageSelector as le } from "./CredentialStorageSelector.js";
10
- import { AuthMethodNotice as ue, AuthMethodSelector as de } from "./AuthMethodSelector.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 { legacyFlowForAuthType as i } from "../utils/integrationsHelpers.js";
6
+ import { useAuthTypeLabel as ee, useCategoryLabel as te } from "../hooks/useLabel.js";
7
+ import { useGetConnectionLazyQuery as ne } from "../../generated/wspace-operations.js";
8
+ import { useProvider as re, useProviders as ie } from "../hooks/useProviders.js";
9
+ import { useAuthenticateConnection as ae, useAuthenticateWithServiceAccount as oe, useCreateConnection as se, useInitiateOAuth as ce } from "../hooks/useConnections.js";
10
+ import { waitForOAuthPopupCompletion as le } from "../utils/oauthPopup.js";
11
+ import { CredentialStorageSelector as ue } from "./CredentialStorageSelector.js";
12
+ import { AuthMethodNotice as de, AuthMethodSelector as fe } from "./AuthMethodSelector.js";
11
13
  import { ProviderIcon as a } from "./ProviderIcon.js";
12
- import { SchemaForm as fe, initialValuesFromSchema as pe, isSchemaComplete as me, parseFormSchema as he, visibleValues as ge } from "./SchemaForm.js";
13
- import { useCallback as _e, useEffect as o, useId as ve, useMemo as s, useRef as c, useState as l } from "react";
14
- import { AlertCircle as u, Check as ye, CheckCircle2 as be, ExternalLink as xe, Info as Se, Link2 as Ce, Loader2 as d, Search as we, Shield as f, X as Te } from "lucide-react";
15
- import { usePermissions as Ee } from "@burdenoff/fe-libs/shared/providers/shell";
14
+ import { SchemaForm as pe, initialValuesFromSchema as me, isSchemaComplete as he, parseFormSchema as ge, visibleValues as _e } from "./SchemaForm.js";
15
+ import { useCallback as ve, useEffect as o, useId as ye, useMemo as s, useRef as c, useState as l } from "react";
16
+ import { AlertCircle as u, Check as be, CheckCircle2 as xe, ExternalLink as Se, Info as Ce, Link2 as we, Loader2 as d, Search as Te, Shield as f, X as Ee } from "lucide-react";
17
+ import { usePermissions as De } from "@burdenoff/fe-libs/shared/providers/shell";
16
18
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
17
- import { IllustratedEmptyState as De } from "@burdenoff/fe-libs/ui";
19
+ import { IllustratedEmptyState as Oe } from "@burdenoff/fe-libs/ui";
18
20
  //#region src/integrations/components/AddConnectionDialog.tsx
19
- var Oe = 1100, ke = 1101;
21
+ var ke = 1100, Ae = 1101;
20
22
  function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated: y }) {
21
- let { apiGatewayUrl: b } = e(), { providers: x, loading: S } = re(), Ae = s(() => v ? (x ?? []).find((e) => e.id === v) ?? null : null, [x, v]), { provider: je, loading: Me } = ne(!S && v && !Ae ? v : ""), C = Ae ?? je, w = !!v && !C && (S || Me), { hasPermission: Ne, isLoading: Pe } = Ee(), Fe = !Pe && Ne(n.CONNECTION_CREATE), { createConnection: T, loading: Ie } = oe(), { initiateOAuth: Le, loading: Re } = se(), { authenticateConnection: ze, loading: Be } = ie(), { authenticateWithServiceAccount: Ve, loading: He } = ae(), [Ue] = te({ fetchPolicy: "network-only" }), [E, D] = l(null), [O, k] = l(!v), [A, We] = l("connection"), [j, Ge] = l(""), [M, N] = l(""), [P, F] = l(""), [I, Ke] = l(null), [L, R] = l({}), [z, qe] = l({
23
+ let b = t(), je = te(), x = ee(), { apiGatewayUrl: S } = e(), { providers: C, loading: w } = ie(), Me = s(() => v ? (C ?? []).find((e) => e.id === v) ?? null : null, [C, v]), { provider: Ne, loading: Pe } = re(!w && v && !Me ? v : ""), T = Me ?? Ne, Fe = !!v && !T && (w || Pe), { hasPermission: Ie, isLoading: Le } = De(), Re = !Le && Ie(r.CONNECTION_CREATE), { createConnection: ze, loading: Be } = se(), { initiateOAuth: Ve, loading: He } = ce(), { authenticateConnection: Ue, loading: We } = ae(), { authenticateWithServiceAccount: Ge, loading: Ke } = oe(), [qe] = ne({ fetchPolicy: "network-only" }), [E, D] = l(null), [O, k] = l(!v), [A, Je] = l("connection"), [j, M] = l(""), [N, P] = l(""), [F, Ye] = l(""), [I, Xe] = l(null), [L, R] = l({}), [z, Ze] = l({
22
24
  mode: "managed",
23
25
  vaultId: "",
24
26
  secretId: "",
25
27
  managedSecretName: ""
26
- }), [Je, B] = l(""), [V, H] = l(!1), [Ye, U] = l(!1), [, Xe] = l(null), W = c(null), G = c(null), Ze = c(null), Qe = ve(), K = (e) => `${Qe}-${e}`, q = s(() => (E?.authMethods ?? []).filter((e) => e.isEnabled), [E]), J = s(() => q.find((e) => e.key === I) ?? q[0] ?? null, [q, I]), Y = J?.flow ?? ee(E?.authType), $e = J?.authType ?? E?.authType, X = s(() => J?.defaultScopes?.length ? J.defaultScopes : E?.defaultScopes ?? [], [J, E]), Z = s(() => he(J?.configSchema ?? E?.configSchema), [J, E]);
28
+ }), [Qe, B] = l(""), [V, H] = l(!1), [$e, U] = l(!1), [, et] = l(null), W = c(null), G = c(null), tt = c(null), nt = ye(), K = (e) => `${nt}-${e}`, q = s(() => (E?.authMethods ?? []).filter((e) => e.isEnabled), [E]), J = s(() => q.find((e) => e.key === I) ?? q[0] ?? null, [q, I]), Y = J?.flow ?? i(E?.authType), rt = J?.authType ?? E?.authType, X = s(() => J?.defaultScopes?.length ? J.defaultScopes : E?.defaultScopes ?? [], [J, E]), Z = s(() => ge(J?.configSchema ?? E?.configSchema), [J, E]);
27
29
  o(() => {
28
- R(pe(Z)), B("");
30
+ R(me(Z)), B("");
29
31
  }, [I, E?.id]), o(() => {
30
32
  if (!g) return;
31
33
  let e = (e) => {
@@ -35,67 +37,67 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
35
37
  }, [g, _]), o(() => () => {
36
38
  G.current?.(), W.current && !W.current.closed && W.current.close();
37
39
  }, []), o(() => {
38
- g && (We("connection"), Ge(""), N(""), F(""), Ke(null), R({}), qe({
40
+ g && (Je("connection"), M(""), P(""), Ye(""), Xe(null), R({}), Ze({
39
41
  mode: "managed",
40
42
  vaultId: "",
41
43
  secretId: "",
42
44
  managedSecretName: ""
43
- }), B(""), H(!1), U(!1), Xe(null), v ? (k(!1), D(null)) : (k(!0), D(null)));
45
+ }), B(""), H(!1), U(!1), et(null), v ? (k(!1), D(null)) : (k(!0), D(null)));
44
46
  }, [g, v]), o(() => {
45
- g && v && C && !E && (D(C), N(`${C.name} Connection`), k(!1));
47
+ g && v && T && !E && (D(T), P(`${T.name} Connection`), k(!1));
46
48
  }, [
47
49
  g,
48
50
  v,
49
- C,
51
+ T,
50
52
  E
51
53
  ]), o(() => {
52
54
  if (g && O) {
53
- let e = setTimeout(() => Ze.current?.focus(), 100);
55
+ let e = setTimeout(() => tt.current?.focus(), 100);
54
56
  return () => clearTimeout(e);
55
57
  }
56
58
  }, [g, O]);
57
59
  let Q = s(() => {
58
- let e = (x ?? []).filter((e) => e.pluginStatus === "installed" && e.isEnabled);
60
+ let e = (C ?? []).filter((e) => e.pluginStatus === "installed" && e.isEnabled);
59
61
  if (!j.trim()) return e;
60
62
  let t = j.toLowerCase();
61
63
  return e.filter((e) => e.name.toLowerCase().includes(t) || (e.description ?? "").toLowerCase().includes(t) || e.key.toLowerCase().includes(t));
62
- }, [x, j]), et = s(() => {
64
+ }, [C, j]), it = s(() => {
63
65
  let e = {};
64
66
  return Q.forEach((t) => {
65
67
  let n = t.category;
66
68
  e[n] || (e[n] = []), e[n].push(t);
67
69
  }), e;
68
- }, [Q]), tt = _e((e) => {
69
- D(e), N(`${e.name} Connection`), k(!1), B("");
70
- }, []), $ = Ie || Re || Ye || Be || He, nt = _e(async () => {
71
- if (!E || !M.trim()) return;
70
+ }, [Q]), at = ve((e) => {
71
+ D(e), P(`${e.name} Connection`), k(!1), B("");
72
+ }, []), $ = Be || He || $e || We || Ke, ot = ve(async () => {
73
+ if (!E || !N.trim()) return;
72
74
  let e = Y === "minted";
73
75
  if (!e) {
74
76
  if (!z.vaultId) {
75
- B("Please select a vault for this connection");
77
+ B(b("integrations.addConnection.errors.vaultRequired", "Please select a vault for storing or referencing credentials"));
76
78
  return;
77
79
  }
78
80
  if (z.mode === "existing" && !z.secretId) {
79
- B("Please select an existing vault secret");
81
+ B(b("integrations.addConnection.errors.secretRequired", "Please select an existing vault secret to reuse"));
80
82
  return;
81
83
  }
82
84
  }
83
- if (Y === "oauth2" && Z && !me(Z, L)) {
84
- B("Please fill in all required fields");
85
+ if (Y === "oauth2" && Z && !he(Z, L)) {
86
+ B(b("integrations.addConnection.errors.fieldsRequired", "Please fill in all required fields"));
85
87
  return;
86
88
  }
87
89
  if (J && !J.isConfigured) {
88
- B("This authentication method is not configured in this environment. Ask an administrator to add its credentials, or pick another method.");
90
+ B(b("integrations.addConnection.authentication.methodNotConfigured", "This authentication method is not configured in this environment. Ask an administrator to add its credentials, or pick another method."));
89
91
  return;
90
92
  }
91
93
  try {
92
94
  B("");
93
- let t = await T({
94
- name: M.trim(),
95
- description: P.trim() || void 0,
95
+ let t = await ze({
96
+ name: N.trim(),
97
+ description: F.trim() || void 0,
96
98
  providerId: E.id,
97
99
  authMethodKey: I ?? void 0,
98
- ...Y === "oauth2" && Z ? { config: ge(Z, L) } : {},
100
+ ...Y === "oauth2" && Z ? { config: _e(Z, L) } : {},
99
101
  ...e ? {} : {
100
102
  vaultId: z.vaultId,
101
103
  credentialSecretId: z.mode === "existing" ? z.secretId : void 0,
@@ -103,23 +105,23 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
103
105
  }
104
106
  });
105
107
  if (!t) {
106
- B("Failed to create connection");
108
+ B(b("integrations.addConnection.errors.createFailed", "Failed to create connection"));
107
109
  return;
108
110
  }
109
- switch (Xe(t), Y) {
111
+ switch (et(t), Y) {
110
112
  case "oauth2": {
111
- let e = await Le(t, b ? `${b}/integrations/oauth/callback` : "/integrations/oauth/callback", E.key);
113
+ let e = await Ve(t, S ? `${S}/integrations/oauth/callback` : "/integrations/oauth/callback", E.key);
112
114
  if (e?.redirectUrl) {
113
115
  let n = window.screenX + (window.innerWidth - 600) / 2, r = window.screenY + (window.innerHeight - 700) / 2, i = window.open(e.redirectUrl, "oauth_popup", `width=600,height=700,left=${n},top=${r},toolbar=no,menubar=no,scrollbars=yes,resizable=yes`);
114
116
  if (!i) {
115
- B("Popup was blocked. Please allow popups for this site and try again.");
117
+ B(b("integrations.addConnection.authentication.popupBlocked", "Popup was blocked. Please allow popups for this site and try again."));
116
118
  return;
117
119
  }
118
- W.current = i, U(!0), G.current?.(), G.current = ce({
120
+ W.current = i, U(!0), G.current?.(), G.current = le({
119
121
  connectionId: t,
120
122
  popup: i,
121
123
  fetchConnectionStatus: async () => {
122
- let { data: e } = await Ue({ variables: { id: t } });
124
+ let { data: e } = await qe({ variables: { id: t } });
123
125
  return e?.getConnection ?? null;
124
126
  },
125
127
  onSuccess: () => {
@@ -136,61 +138,62 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
136
138
  break;
137
139
  }
138
140
  case "minted":
139
- $e === "service_account" && await Ve(t, X.length > 0 ? X : void 0), H(!0), y?.(t);
141
+ rt === "service_account" && await Ge(t, X.length > 0 ? X : void 0), H(!0), y?.(t);
140
142
  break;
141
143
  default: {
142
- if (Z && !me(Z, L)) {
143
- B("Please fill in all required fields");
144
+ if (Z && !he(Z, L)) {
145
+ B(b("integrations.addConnection.errors.fieldsRequired", "Please fill in all required fields"));
144
146
  return;
145
147
  }
146
148
  let e = {};
147
- for (let [t, n] of Object.entries(ge(Z, L))) if (typeof n == "string") {
149
+ for (let [t, n] of Object.entries(_e(Z, L))) if (typeof n == "string") {
148
150
  let r = n.trim();
149
151
  r && (e[t] = r);
150
152
  } else n != null && (e[t] = n);
151
- await ze(t, I ?? void 0, e), H(!0), y?.(t);
153
+ await Ue(t, I ?? void 0, e), H(!0), y?.(t);
152
154
  }
153
155
  }
154
156
  } catch (e) {
155
- B(e instanceof Error ? e.message : "Connection failed");
157
+ B(e instanceof Error ? e.message : b("integrations.addConnection.errors.authFailed", "Authentication failed"));
156
158
  }
157
159
  }, [
158
160
  E,
159
- M,
160
- P,
161
+ N,
162
+ F,
161
163
  I,
162
164
  Y,
163
- $e,
165
+ rt,
164
166
  X,
165
167
  Z,
166
168
  L,
167
169
  J,
168
- T,
169
- Le,
170
- Ue,
171
170
  ze,
172
171
  Ve,
173
- b,
172
+ qe,
173
+ Ue,
174
+ Ge,
175
+ S,
174
176
  y,
175
- z
176
- ]), rt = [{
177
+ z,
178
+ b
179
+ ]), st = [{
177
180
  key: "connection",
178
- label: "Connection",
179
- icon: Ce
181
+ label: b("integrations.addConnection.tabs.connection", "Connection"),
182
+ icon: we
180
183
  }, {
181
184
  key: "details",
182
- label: "Details",
183
- icon: Se
185
+ label: b("integrations.addConnection.tabs.details", "Details"),
186
+ icon: Ce
184
187
  }];
185
- return g ? !Fe && !Pe ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
186
- style: { zIndex: Oe },
188
+ return g ? !Re && !Le ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
189
+ style: { zIndex: ke },
187
190
  className: "fixed inset-0 bg-bg-overlay animate-in fade-in-0 duration-200",
188
191
  onClick: _
189
192
  }), /* @__PURE__ */ h("div", {
190
193
  role: "dialog",
191
194
  "aria-modal": "true",
192
195
  "aria-labelledby": "add-connection-denied-title",
193
- style: { zIndex: ke },
196
+ style: { zIndex: Ae },
194
197
  className: "fixed inset-x-4 top-1/2 mx-auto flex max-w-md -translate-y-1/2 flex-col items-center gap-4 rounded-xl border border-border-subtle bg-bg-surface p-8 shadow-2xl text-center",
195
198
  children: [
196
199
  /* @__PURE__ */ m(f, {
@@ -200,28 +203,28 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
200
203
  /* @__PURE__ */ m("h2", {
201
204
  id: "add-connection-denied-title",
202
205
  className: "text-lg font-semibold text-text-primary",
203
- children: "Access Denied"
206
+ children: b("integrations.addConnection.denied.title", "Access Denied")
204
207
  }),
205
208
  /* @__PURE__ */ m("p", {
206
209
  className: "text-sm text-text-secondary",
207
- children: "You don't have permission to create connections."
210
+ children: b("integrations.addConnection.denied.description", "You don't have permission to create connections.")
208
211
  }),
209
212
  /* @__PURE__ */ m("button", {
210
213
  type: "button",
211
214
  onClick: _,
212
215
  className: "px-4 py-2 text-sm font-medium rounded-md border border-border-subtle hover:bg-accent transition-colors",
213
- children: "Close"
216
+ children: b("integrations.common.close", "Close")
214
217
  })
215
218
  ]
216
219
  })] }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
217
- style: { zIndex: Oe },
220
+ style: { zIndex: ke },
218
221
  className: "fixed inset-0 bg-bg-overlay animate-in fade-in-0 duration-200",
219
222
  onClick: _
220
223
  }), /* @__PURE__ */ h("div", {
221
224
  role: "dialog",
222
225
  "aria-modal": "true",
223
226
  "aria-labelledby": "add-connection-dialog-title",
224
- style: { zIndex: ke },
227
+ style: { zIndex: Ae },
225
228
  className: "fixed inset-x-4 top-4 bottom-4 mx-auto flex w-auto max-w-3xl flex-col overflow-hidden rounded-xl border border-border-subtle bg-bg-surface shadow-2xl animate-in fade-in-0 zoom-in-95 duration-200 sm:inset-x-6 sm:top-1/2 sm:bottom-auto sm:max-h-[min(90vh,56rem)] sm:w-full sm:-translate-y-1/2",
226
229
  children: [/* @__PURE__ */ h("div", {
227
230
  className: "flex items-center justify-between px-5 py-4 border-b border-border-subtle flex-shrink-0",
@@ -230,38 +233,38 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
230
233
  children: E && !O ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(a, {
231
234
  provider: E,
232
235
  size: 32
233
- }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("h2", {
236
+ }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h2", {
234
237
  id: "add-connection-dialog-title",
235
238
  className: "text-base font-semibold text-text-primary",
236
- children: [E.name, " account"]
239
+ children: b("integrations.addConnection.dialog.accountTitle", "{{provider}} account", { provider: E.name })
237
240
  }), /* @__PURE__ */ m("p", {
238
241
  className: "text-xs text-text-secondary",
239
- children: r(E.authType)
242
+ children: x(E.authType)
240
243
  })] })] }) : /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h2", {
241
244
  id: "add-connection-dialog-title",
242
245
  className: "text-base font-semibold text-text-primary",
243
- children: "Add new credential"
246
+ children: b("integrations.addConnection.dialog.title", "Add new credential")
244
247
  }), /* @__PURE__ */ m("p", {
245
248
  className: "text-xs text-text-secondary",
246
- children: "Select an app or service to connect to"
249
+ children: b("integrations.addConnection.dialog.subtitle", "Select an app or service to connect to")
247
250
  })] })
248
251
  }), /* @__PURE__ */ h("div", {
249
252
  className: "flex items-center gap-2",
250
253
  children: [E && !O && !V && /* @__PURE__ */ h("button", {
251
254
  type: "button",
252
- onClick: nt,
253
- disabled: $ || !M.trim(),
255
+ onClick: ot,
256
+ disabled: $ || !N.trim(),
254
257
  className: "inline-flex items-center gap-1.5 px-4 py-1.5 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50",
255
258
  children: [$ ? /* @__PURE__ */ m(d, {
256
259
  size: 14,
257
260
  className: "animate-spin"
258
- }) : /* @__PURE__ */ m(ye, { size: 14 }), Ye ? "Waiting..." : "Save"]
261
+ }) : /* @__PURE__ */ m(be, { size: 14 }), $e ? b("integrations.addConnection.actions.waiting", "Waiting...") : b("integrations.common.save", "Save")]
259
262
  }), /* @__PURE__ */ m("button", {
260
263
  type: "button",
261
264
  onClick: _,
262
265
  className: "p-1.5 rounded-md hover:bg-accent transition-colors text-text-secondary hover:text-text-primary",
263
- "aria-label": "Close",
264
- children: /* @__PURE__ */ m(Te, { size: 20 })
266
+ "aria-label": b("integrations.addConnection.actions.close", "Close dialog"),
267
+ children: /* @__PURE__ */ m(Ee, { size: 20 })
265
268
  })]
266
269
  })]
267
270
  }), /* @__PURE__ */ h("div", {
@@ -272,41 +275,41 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
272
275
  children: [
273
276
  /* @__PURE__ */ m("p", {
274
277
  className: "text-sm text-text-secondary mb-3",
275
- children: "Select an app or service to connect to"
278
+ children: b("integrations.addConnection.dialog.subtitle", "Select an app or service to connect to")
276
279
  }),
277
280
  /* @__PURE__ */ h("div", {
278
281
  className: "relative mb-4",
279
- children: [/* @__PURE__ */ m(we, {
282
+ children: [/* @__PURE__ */ m(Te, {
280
283
  size: 16,
281
284
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
282
285
  }), /* @__PURE__ */ m("input", {
283
- ref: Ze,
286
+ ref: tt,
284
287
  type: "text",
285
288
  value: j,
286
- onChange: (e) => Ge(e.target.value),
287
- placeholder: "Search providers...",
288
- "aria-label": "Search providers",
289
+ onChange: (e) => M(e.target.value),
290
+ placeholder: b("integrations.addConnection.search.placeholder", "Search installed providers..."),
291
+ "aria-label": b("integrations.addConnection.search.ariaLabel", "Search installed providers"),
289
292
  className: "w-full pl-9 pr-3 py-2.5 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
290
293
  })]
291
294
  }),
292
- S ? /* @__PURE__ */ m("div", {
295
+ w ? /* @__PURE__ */ m("div", {
293
296
  className: "flex items-center justify-center py-8",
294
297
  children: /* @__PURE__ */ m(d, {
295
298
  size: 24,
296
299
  className: "animate-spin text-text-secondary"
297
300
  })
298
- }) : Q.length === 0 ? /* @__PURE__ */ m(De, {
301
+ }) : Q.length === 0 ? /* @__PURE__ */ m(Oe, {
299
302
  illustration: j ? "empty-search" : "empty-data",
300
- title: j ? "No matching providers" : "No providers available",
301
- description: j ? `No installed provider matches “${j}”. Try a different term.` : "Install and enable a provider from the catalog to create a connection."
303
+ title: j ? b("integrations.addConnection.empty.noMatchingProviders", "No matching providers") : b("integrations.addConnection.empty.noInstalledProviders", "No installed providers yet"),
304
+ description: j ? b("integrations.addConnection.empty.matchingDescription", "No installed provider matches your search. Try a different term or install one from the catalog.", { query: j }) : b("integrations.addConnection.empty.installedDescription", "You need at least one installed, enabled provider before you can create a connection. Install one from the catalog to get started.")
302
305
  }) : /* @__PURE__ */ m("div", {
303
306
  className: "max-h-[400px] overflow-y-auto space-y-1",
304
- children: Object.entries(et).map(([e, t]) => /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
307
+ children: Object.entries(it).map(([e, t]) => /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
305
308
  className: "px-2 py-1.5 text-xs font-semibold text-text-secondary uppercase tracking-wider",
306
- children: i(e)
309
+ children: je(e)
307
310
  }), t.map((e) => /* @__PURE__ */ h("button", {
308
311
  type: "button",
309
- onClick: () => tt(e),
312
+ onClick: () => at(e),
310
313
  className: "w-full flex items-center gap-3 px-3 py-2.5 rounded-md hover:bg-accent/50 transition-colors text-left",
311
314
  children: [/* @__PURE__ */ m(a, {
312
315
  provider: e,
@@ -318,28 +321,28 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
318
321
  children: e.name
319
322
  }), /* @__PURE__ */ m("div", {
320
323
  className: "text-xs text-text-secondary",
321
- children: r(e.authType)
324
+ children: x(e.authType)
322
325
  })]
323
326
  })]
324
327
  }, e.id))] }, e))
325
328
  })
326
329
  ]
327
330
  }),
328
- !O && !E && w && /* @__PURE__ */ m("div", {
331
+ !O && !E && Fe && /* @__PURE__ */ m("div", {
329
332
  className: "flex-1 flex items-center justify-center",
330
333
  children: /* @__PURE__ */ m(d, {
331
334
  size: 32,
332
335
  className: "animate-spin text-text-secondary"
333
336
  })
334
337
  }),
335
- !O && !E && !w && v && /* @__PURE__ */ h("div", {
338
+ !O && !E && !Fe && v && /* @__PURE__ */ h("div", {
336
339
  className: "flex-1 flex flex-col items-center justify-center p-8 text-center",
337
340
  children: [/* @__PURE__ */ m(u, {
338
341
  size: 32,
339
342
  className: "text-text-secondary mb-3"
340
343
  }), /* @__PURE__ */ m("p", {
341
344
  className: "text-sm text-text-secondary",
342
- children: "This provider isn't available."
345
+ children: b("integrations.addConnection.providerUnavailable", "This provider isn't available.")
343
346
  })]
344
347
  }),
345
348
  V && E && /* @__PURE__ */ h("div", {
@@ -347,40 +350,36 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
347
350
  children: [
348
351
  /* @__PURE__ */ m("div", {
349
352
  className: "p-3 rounded-full bg-status-success-bg-subtle mb-4",
350
- children: /* @__PURE__ */ m(be, {
353
+ children: /* @__PURE__ */ m(xe, {
351
354
  size: 48,
352
355
  className: "text-status-success-text"
353
356
  })
354
357
  }),
355
358
  /* @__PURE__ */ m("h3", {
356
359
  className: "text-lg font-semibold text-text-primary mb-1",
357
- children: "Connection Created!"
360
+ children: b("integrations.addConnection.success.title", "Connection Created!")
358
361
  }),
359
- /* @__PURE__ */ h("p", {
362
+ /* @__PURE__ */ m("p", {
360
363
  className: "text-sm text-text-secondary mb-6",
361
- children: [
362
- "Your ",
363
- E.name,
364
- " connection has been set up successfully."
365
- ]
364
+ children: b("integrations.addConnection.success.description", "Your {{provider}} connection has been set up successfully.", { provider: E.name })
366
365
  }),
367
366
  /* @__PURE__ */ m("button", {
368
367
  type: "button",
369
368
  onClick: _,
370
369
  className: "px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
371
- children: "Close dialog"
370
+ children: b("integrations.addConnection.actions.close", "Close dialog")
372
371
  })
373
372
  ]
374
373
  }),
375
374
  E && !O && !V && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
376
375
  className: "w-full border-b border-border-subtle sm:w-40 sm:border-b-0 sm:border-r flex-shrink-0 py-3 overflow-x-auto",
377
- children: rt.map((e) => {
378
- let n = e.icon;
376
+ children: st.map((e) => {
377
+ let t = e.icon;
379
378
  return /* @__PURE__ */ h("button", {
380
379
  type: "button",
381
- onClick: () => We(e.key),
382
- className: t("flex min-w-max items-center gap-2 px-4 py-2 text-sm font-medium transition-colors sm:w-full", A === e.key ? "text-text-primary bg-accent/50 border-b-2 border-primary sm:border-b-0 sm:border-l-2" : "text-text-secondary hover:text-text-primary hover:bg-accent/30 border-b-2 border-transparent sm:border-b-0 sm:border-l-2"),
383
- children: [/* @__PURE__ */ m(n, { size: 16 }), e.label]
380
+ onClick: () => Je(e.key),
381
+ className: n("flex min-w-max items-center gap-2 px-4 py-2 text-sm font-medium transition-colors sm:w-full", A === e.key ? "text-text-primary bg-accent/50 border-b-2 border-primary sm:border-b-0 sm:border-l-2" : "text-text-secondary hover:text-text-primary hover:bg-accent/30 border-b-2 border-transparent sm:border-b-0 sm:border-l-2"),
382
+ children: [/* @__PURE__ */ m(t, { size: 16 }), e.label]
384
383
  }, e.key);
385
384
  })
386
385
  }), /* @__PURE__ */ h("div", {
@@ -388,50 +387,54 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
388
387
  children: [A === "connection" && /* @__PURE__ */ h("div", {
389
388
  className: "space-y-5",
390
389
  children: [
391
- Je && /* @__PURE__ */ h("div", {
390
+ Qe && /* @__PURE__ */ h("div", {
392
391
  className: "flex items-center gap-2 px-3 py-2 rounded-md bg-status-error-bg/10 border border-status-error-border/20",
393
392
  children: [/* @__PURE__ */ m(u, {
394
393
  size: 16,
395
394
  className: "text-status-error-text flex-shrink-0"
396
395
  }), /* @__PURE__ */ m("span", {
397
396
  className: "text-sm text-status-error-text",
398
- children: Je
397
+ children: Qe
399
398
  })]
400
399
  }),
401
400
  /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
402
401
  htmlFor: K("conn-name"),
403
402
  className: "block text-sm font-medium text-text-primary mb-1.5",
404
- children: ["Connection Name ", /* @__PURE__ */ m("span", {
405
- className: "text-status-error-text",
406
- children: "*"
407
- })]
403
+ children: [
404
+ b("integrations.addConnection.fields.connectionName", "Connection Name"),
405
+ " ",
406
+ /* @__PURE__ */ m("span", {
407
+ className: "text-status-error-text",
408
+ children: "*"
409
+ })
410
+ ]
408
411
  }), /* @__PURE__ */ m("input", {
409
412
  id: K("conn-name"),
410
- "aria-label": "Connection Name",
413
+ "aria-label": b("integrations.addConnection.fields.connectionName", "Connection Name"),
411
414
  type: "text",
412
- value: M,
413
- onChange: (e) => N(e.target.value),
414
- placeholder: `My ${E.name} Connection`,
415
+ value: N,
416
+ onChange: (e) => P(e.target.value),
417
+ placeholder: b("integrations.addConnection.fields.connectionNamePlaceholder", "e.g., My {{provider}} Connection", { provider: E.name }),
415
418
  disabled: $,
416
419
  className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
417
420
  })] }),
418
421
  /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
419
422
  htmlFor: K("conn-desc"),
420
423
  className: "block text-sm font-medium text-text-primary mb-1.5",
421
- children: "Description"
424
+ children: b("integrations.addConnection.fields.description", "Description")
422
425
  }), /* @__PURE__ */ m("input", {
423
426
  id: K("conn-desc"),
424
- "aria-label": "Description",
427
+ "aria-label": b("integrations.addConnection.fields.description", "Description"),
425
428
  type: "text",
426
- value: P,
427
- onChange: (e) => F(e.target.value),
428
- placeholder: "Optional description",
429
+ value: F,
430
+ onChange: (e) => Ye(e.target.value),
431
+ placeholder: b("integrations.addConnection.fields.descriptionPlaceholder", "Optional description..."),
429
432
  disabled: $,
430
433
  className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
431
434
  })] }),
432
- E.authType !== "service_account" && /* @__PURE__ */ m(le, {
435
+ E.authType !== "service_account" && /* @__PURE__ */ m(ue, {
433
436
  value: z,
434
- onChange: qe,
437
+ onChange: Ze,
435
438
  providerAuthType: E.authType
436
439
  }),
437
440
  /* @__PURE__ */ h("div", {
@@ -446,20 +449,20 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
446
449
  size: 16,
447
450
  className: "text-primary"
448
451
  }),
449
- "Authentication",
452
+ b("integrations.addConnection.authentication.title", "Authentication"),
450
453
  q.length <= 1 && /* @__PURE__ */ h("span", {
451
454
  className: "text-text-secondary font-normal",
452
455
  children: [
453
456
  "·",
454
457
  " ",
455
- J?.displayName ?? r(E.authType)
458
+ J?.displayName ?? x(E.authType)
456
459
  ]
457
460
  })
458
461
  ]
459
- }), /* @__PURE__ */ m(de, {
462
+ }), /* @__PURE__ */ m(fe, {
460
463
  methods: q,
461
464
  selectedKey: I,
462
- onSelect: Ke,
465
+ onSelect: Xe,
463
466
  disabled: $,
464
467
  idPrefix: K("auth-method"),
465
468
  compact: !0
@@ -467,9 +470,9 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
467
470
  }),
468
471
  /* @__PURE__ */ m("div", {
469
472
  className: "space-y-2",
470
- children: /* @__PURE__ */ m(ue, { method: J })
473
+ children: /* @__PURE__ */ m(de, { method: J })
471
474
  }),
472
- Y === "oauth2" && /* @__PURE__ */ h(p, { children: [Z && /* @__PURE__ */ m(fe, {
475
+ Y === "oauth2" && /* @__PURE__ */ h(p, { children: [Z && /* @__PURE__ */ m(pe, {
473
476
  schema: Z,
474
477
  values: L,
475
478
  onChange: R,
@@ -477,16 +480,12 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
477
480
  idPrefix: K("oauth-cfg")
478
481
  }), /* @__PURE__ */ h("div", {
479
482
  className: "flex items-center gap-2 px-3 py-2 rounded-md bg-status-info-bg-subtle border border-border-default",
480
- children: [/* @__PURE__ */ m(xe, {
483
+ children: [/* @__PURE__ */ m(Se, {
481
484
  size: 14,
482
485
  className: "text-status-info-text flex-shrink-0"
483
- }), /* @__PURE__ */ h("span", {
486
+ }), /* @__PURE__ */ m("span", {
484
487
  className: "text-xs text-status-info-text",
485
- children: [
486
- "A popup window will open for ",
487
- E.name,
488
- " sign-in"
489
- ]
488
+ children: b("integrations.addConnection.authentication.oauthPopupInfo", "A popup window will open for {{provider}} sign-in", { provider: E.name })
490
489
  })]
491
490
  })] }),
492
491
  Y === "minted" && /* @__PURE__ */ h("div", {
@@ -496,13 +495,13 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
496
495
  className: "text-status-info-text flex-shrink-0"
497
496
  }), /* @__PURE__ */ m("span", {
498
497
  className: "text-xs text-status-info-text",
499
- children: "No credentials to enter — access is granted on your behalf and tokens are issued per use."
498
+ children: b("integrations.addConnection.authentication.serviceAccount.description", "No credentials to enter — access is granted on your behalf and tokens are issued per use.", { provider: E.name })
500
499
  })]
501
500
  }),
502
501
  Y === "fields" && (Z ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("p", {
503
502
  className: "text-xs text-text-secondary",
504
- children: "Secret values are stored encrypted and never shown again."
505
- }), /* @__PURE__ */ m(fe, {
503
+ children: b("integrations.addConnection.authentication.secretsEncrypted", "Secret values are stored encrypted and never shown again.")
504
+ }), /* @__PURE__ */ m(pe, {
506
505
  schema: Z,
507
506
  values: L,
508
507
  onChange: R,
@@ -515,7 +514,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
515
514
  className: "text-status-error-text flex-shrink-0"
516
515
  }), /* @__PURE__ */ m("span", {
517
516
  className: "text-sm text-status-error-text",
518
- children: "This authentication method does not declare a configuration form."
517
+ children: b("integrations.addConnection.authentication.noForm", "This authentication method does not declare a configuration form.")
519
518
  })]
520
519
  }))
521
520
  ]
@@ -525,7 +524,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
525
524
  className: "space-y-4",
526
525
  children: [/* @__PURE__ */ m("h3", {
527
526
  className: "text-sm font-semibold text-text-primary",
528
- children: "Details"
527
+ children: b("integrations.addConnection.tabs.details", "Details")
529
528
  }), /* @__PURE__ */ h("div", {
530
529
  className: "space-y-3",
531
530
  children: [
@@ -540,23 +539,23 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
540
539
  }), /* @__PURE__ */ h("p", {
541
540
  className: "text-xs text-text-secondary",
542
541
  children: [
543
- r(E.authType),
542
+ x(E.authType),
544
543
  " ·",
545
544
  " ",
546
- i(E.category)
545
+ je(E.category)
547
546
  ]
548
547
  })] })]
549
548
  }),
550
549
  E.description && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
551
550
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
552
- children: "Description"
551
+ children: b("integrations.addConnection.fields.description", "Description")
553
552
  }), /* @__PURE__ */ m("p", {
554
553
  className: "text-sm text-text-primary mt-1",
555
554
  children: E.description
556
555
  })] }),
557
556
  E.website && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
558
557
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
559
- children: "Website"
558
+ children: b("integrations.providerDetail.sections.website", "Website")
560
559
  }), /* @__PURE__ */ m("a", {
561
560
  href: E.website,
562
561
  target: "_blank",
@@ -566,7 +565,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
566
565
  })] }),
567
566
  E.docsUrl && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
568
567
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
569
- children: "Documentation"
568
+ children: b("integrations.providerDetail.sections.documentation", "Documentation")
570
569
  }), /* @__PURE__ */ m("a", {
571
570
  href: E.docsUrl,
572
571
  target: "_blank",