@burdenoff/microfe-integrations 2026.1113.1 → 2026.1113.3

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