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