@burdenoff/microfe-integrations 2026.608.1 → 2026.624.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 (43) hide show
  1. package/dist/integrations/IntegrationsAdminRoutes.js +5 -5
  2. package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
  3. package/dist/integrations/IntegrationsUserRoutes.js +5 -5
  4. package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
  5. package/dist/integrations/components/AddConnectionDialog.js +313 -284
  6. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  7. package/dist/integrations/components/ConfirmDialog.js +5 -5
  8. package/dist/integrations/components/ConfirmDialog.js.map +1 -1
  9. package/dist/integrations/components/ConnectionCard.js +15 -15
  10. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  11. package/dist/integrations/components/CredentialStorageSelector.js +19 -19
  12. package/dist/integrations/components/CredentialStorageSelector.js.map +1 -1
  13. package/dist/integrations/components/ProviderCard.js +16 -15
  14. package/dist/integrations/components/ProviderCard.js.map +1 -1
  15. package/dist/integrations/hooks/useConnections.js +33 -13
  16. package/dist/integrations/hooks/useConnections.js.map +1 -1
  17. package/dist/integrations/pages/AddConnectionWizard.js +143 -113
  18. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  19. package/dist/integrations/pages/ConnectionDetail.js +53 -53
  20. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  21. package/dist/integrations/pages/ConnectionLogs.js +35 -35
  22. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  23. package/dist/integrations/pages/ConnectionsList.js +27 -27
  24. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  25. package/dist/integrations/pages/IntegrationsOverview.js +33 -33
  26. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  27. package/dist/integrations/pages/IntegrationsSettings.js +26 -26
  28. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  29. package/dist/integrations/pages/ProviderCatalog.js +30 -29
  30. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  31. package/dist/integrations/pages/ProviderDetail.js +46 -46
  32. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  33. package/dist/integrations/pages/ProviderEditorPage.js +47 -45
  34. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  35. package/dist/integrations/utils/appearance.js +7 -7
  36. package/dist/integrations/utils/appearance.js.map +1 -1
  37. package/dist/integrations/utils/constants.js +4 -0
  38. package/dist/integrations/utils/constants.js.map +1 -1
  39. package/dist/integrations/utils/integrationsHelpers.js +1 -0
  40. package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
  41. package/dist/integrations/utils/mappers.js +1 -0
  42. package/dist/integrations/utils/mappers.js.map +1 -1
  43. package/package.json +1 -1
@@ -22,12 +22,12 @@ function O() {
22
22
  className: "flex flex-col items-center justify-center py-20",
23
23
  children: [/* @__PURE__ */ D("div", {
24
24
  className: "relative",
25
- children: [/* @__PURE__ */ E("div", { className: "absolute inset-0 bg-primary/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ E(y, {
25
+ children: [/* @__PURE__ */ E("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ E(y, {
26
26
  size: 48,
27
27
  className: "relative animate-spin text-primary"
28
28
  })]
29
29
  }), /* @__PURE__ */ E("span", {
30
- className: "mt-6 text-sm font-medium text-muted-foreground",
30
+ className: "mt-6 text-sm font-medium text-text-secondary",
31
31
  children: "Loading provider details…"
32
32
  })]
33
33
  });
@@ -59,7 +59,7 @@ function O() {
59
59
  }), /* @__PURE__ */ D("button", {
60
60
  type: "button",
61
61
  onClick: () => j?.(i(A, "providers")),
62
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border hover:bg-accent transition-colors",
62
+ 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",
63
63
  children: [/* @__PURE__ */ E(m, { size: 14 }), "Back to Catalog"]
64
64
  })]
65
65
  })
@@ -76,7 +76,7 @@ function O() {
76
76
  className: "space-y-6 p-6 max-w-5xl mx-auto",
77
77
  children: [
78
78
  /* @__PURE__ */ D("div", {
79
- className: "relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/5 via-primary/3 to-background border border-border/50 p-6 shadow-sm",
79
+ className: "relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/5 via-primary/3 to-background border border-border-subtle/50 p-6 shadow-sm",
80
80
  children: [/* @__PURE__ */ E("div", {
81
81
  className: "relative z-10",
82
82
  children: /* @__PURE__ */ D("div", {
@@ -98,21 +98,21 @@ function O() {
98
98
  children: [/* @__PURE__ */ D("div", {
99
99
  className: "flex items-center gap-3",
100
100
  children: [/* @__PURE__ */ E("h1", {
101
- className: "text-2xl sm:text-3xl font-bold text-foreground",
101
+ className: "text-2xl sm:text-3xl font-bold text-text-primary",
102
102
  children: L.name
103
103
  }), L.isBuiltIn && /* @__PURE__ */ E("span", {
104
104
  className: "text-xs px-2 py-0.5 rounded-full bg-status-info-bg-subtle text-status-info-text border border-border-default",
105
105
  children: "Built-in"
106
106
  })]
107
107
  }), /* @__PURE__ */ E("p", {
108
- className: "text-sm text-muted-foreground mt-1",
108
+ className: "text-sm text-text-secondary mt-1",
109
109
  children: L.description
110
110
  })]
111
111
  }),
112
112
  X && L.pluginStatus === "installed" && L.isEnabled && /* @__PURE__ */ D("button", {
113
113
  type: "button",
114
114
  onClick: $,
115
- className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
115
+ className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
116
116
  children: [/* @__PURE__ */ E(S, { size: 16 }), "Create Connection"]
117
117
  })
118
118
  ]
@@ -122,9 +122,9 @@ function O() {
122
122
  /* @__PURE__ */ D("div", {
123
123
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
124
124
  children: [/* @__PURE__ */ D("div", {
125
- className: "rounded-xl border border-border/50 bg-card p-5 space-y-4",
125
+ className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5 space-y-4",
126
126
  children: [/* @__PURE__ */ D("h2", {
127
- className: "font-semibold text-foreground flex items-center gap-2",
127
+ className: "font-semibold text-text-primary flex items-center gap-2",
128
128
  children: [/* @__PURE__ */ E(b, {
129
129
  size: 18,
130
130
  className: "text-primary"
@@ -133,59 +133,59 @@ function O() {
133
133
  className: "space-y-3",
134
134
  children: [
135
135
  /* @__PURE__ */ D("div", {
136
- className: "flex items-center justify-between py-2 border-b border-border/50",
136
+ className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
137
137
  children: [/* @__PURE__ */ E("span", {
138
- className: "text-sm text-muted-foreground",
138
+ className: "text-sm text-text-secondary",
139
139
  children: "Category"
140
140
  }), /* @__PURE__ */ E("span", {
141
- className: "text-sm font-medium text-foreground",
141
+ className: "text-sm font-medium text-text-primary",
142
142
  children: o(L.category)
143
143
  })]
144
144
  }),
145
145
  /* @__PURE__ */ D("div", {
146
- className: "flex items-center justify-between py-2 border-b border-border/50",
146
+ className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
147
147
  children: [/* @__PURE__ */ E("span", {
148
- className: "text-sm text-muted-foreground",
148
+ className: "text-sm text-text-secondary",
149
149
  children: "Auth Type"
150
150
  }), /* @__PURE__ */ E("span", {
151
- className: "text-sm font-medium text-foreground",
151
+ className: "text-sm font-medium text-text-primary",
152
152
  children: a(L.authType)
153
153
  })]
154
154
  }),
155
155
  /* @__PURE__ */ D("div", {
156
- className: "flex items-center justify-between py-2 border-b border-border/50",
156
+ className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
157
157
  children: [/* @__PURE__ */ E("span", {
158
- className: "text-sm text-muted-foreground",
158
+ className: "text-sm text-text-secondary",
159
159
  children: "Plugin Version"
160
160
  }), /* @__PURE__ */ E("span", {
161
- className: "text-sm font-mono text-foreground",
161
+ className: "text-sm font-mono text-text-primary",
162
162
  children: L.pluginVersion
163
163
  })]
164
164
  }),
165
165
  /* @__PURE__ */ D("div", {
166
- className: "flex items-center justify-between py-2 border-b border-border/50",
166
+ className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
167
167
  children: [/* @__PURE__ */ E("span", {
168
- className: "text-sm text-muted-foreground",
168
+ className: "text-sm text-text-secondary",
169
169
  children: "Author"
170
170
  }), /* @__PURE__ */ E("span", {
171
- className: "text-sm font-medium text-foreground",
171
+ className: "text-sm font-medium text-text-primary",
172
172
  children: L.pluginAuthor || "-"
173
173
  })]
174
174
  }),
175
175
  /* @__PURE__ */ D("div", {
176
- className: "flex items-center justify-between py-2 border-b border-border/50",
176
+ className: "flex items-center justify-between py-2 border-b border-border-subtle/50",
177
177
  children: [/* @__PURE__ */ E("span", {
178
- className: "text-sm text-muted-foreground",
178
+ className: "text-sm text-text-secondary",
179
179
  children: "Connections"
180
180
  }), /* @__PURE__ */ E("span", {
181
- className: "text-sm font-medium text-foreground",
181
+ className: "text-sm font-medium text-text-primary",
182
182
  children: L.connectionCount
183
183
  })]
184
184
  }),
185
185
  /* @__PURE__ */ D("div", {
186
186
  className: "flex items-center justify-between py-2",
187
187
  children: [/* @__PURE__ */ E("span", {
188
- className: "text-sm text-muted-foreground",
188
+ className: "text-sm text-text-secondary",
189
189
  children: "Status"
190
190
  }), /* @__PURE__ */ E("span", {
191
191
  className: t("text-sm font-medium px-2 py-0.5 rounded-full", L.isEnabled ? "text-status-success-text bg-status-success-bg-subtle" : "text-text-secondary bg-bg-sunken"),
@@ -198,9 +198,9 @@ function O() {
198
198
  className: "space-y-4",
199
199
  children: [
200
200
  /* @__PURE__ */ D("div", {
201
- className: "rounded-xl border border-border/50 bg-card p-5",
201
+ className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
202
202
  children: [/* @__PURE__ */ D("h2", {
203
- className: "font-semibold text-foreground flex items-center gap-2 mb-3",
203
+ className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
204
204
  children: [/* @__PURE__ */ E(se, {
205
205
  size: 18,
206
206
  className: "text-primary"
@@ -208,18 +208,18 @@ function O() {
208
208
  }), L.supportedFeatures.length > 0 ? /* @__PURE__ */ E("div", {
209
209
  className: "flex flex-wrap gap-2",
210
210
  children: L.supportedFeatures.map((e) => /* @__PURE__ */ E("span", {
211
- className: "text-xs px-2.5 py-1 rounded-full bg-muted text-muted-foreground",
211
+ className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary",
212
212
  children: e
213
213
  }, e))
214
214
  }) : /* @__PURE__ */ E("p", {
215
- className: "text-sm text-muted-foreground",
215
+ className: "text-sm text-text-secondary",
216
216
  children: "No specific features listed."
217
217
  })]
218
218
  }),
219
219
  /* @__PURE__ */ D("div", {
220
- className: "rounded-xl border border-border/50 bg-card p-5",
220
+ className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
221
221
  children: [/* @__PURE__ */ D("h2", {
222
- className: "font-semibold text-foreground flex items-center gap-2 mb-3",
222
+ className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
223
223
  children: [/* @__PURE__ */ E(_, {
224
224
  size: 18,
225
225
  className: "text-primary"
@@ -242,9 +242,9 @@ function O() {
242
242
  })]
243
243
  }),
244
244
  k && /* @__PURE__ */ D("div", {
245
- className: "rounded-xl border border-border/50 bg-card p-5",
245
+ className: "rounded-xl border border-border-subtle/50 bg-bg-surface p-5",
246
246
  children: [/* @__PURE__ */ D("h2", {
247
- className: "font-semibold text-foreground flex items-center gap-2 mb-3",
247
+ className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
248
248
  children: [/* @__PURE__ */ E(oe, {
249
249
  size: 18,
250
250
  className: "text-primary"
@@ -257,7 +257,7 @@ function O() {
257
257
  onClick: () => {
258
258
  j?.(i(A, `providers/${L.id}/edit`));
259
259
  },
260
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border hover:bg-accent transition-colors",
260
+ 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",
261
261
  children: [/* @__PURE__ */ E(x, { size: 14 }), "Edit"]
262
262
  }),
263
263
  Z && L.pluginStatus === "installed" && /* @__PURE__ */ D("button", {
@@ -266,12 +266,12 @@ function O() {
266
266
  L && (L.isEnabled ? await W(L.id) : await H(L.id), await z());
267
267
  },
268
268
  disabled: Q,
269
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border hover:bg-accent transition-colors disabled:opacity-50",
269
+ className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors disabled:opacity-50",
270
270
  children: [/* @__PURE__ */ E(ie, { size: 14 }), L.isEnabled ? "Disable" : "Enable"]
271
271
  }),
272
272
  de && L.pluginStatus === "available" && /* @__PURE__ */ D("button", {
273
273
  type: "button",
274
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
274
+ className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
275
275
  children: [/* @__PURE__ */ E(g, { size: 14 }), "Install Plugin"]
276
276
  }),
277
277
  fe && L.pluginStatus === "installed" && /* @__PURE__ */ D("button", {
@@ -295,17 +295,17 @@ function O() {
295
295
  })]
296
296
  }),
297
297
  /* @__PURE__ */ D("div", {
298
- className: "rounded-xl border border-border/50 bg-card overflow-hidden",
298
+ className: "rounded-xl border border-border-subtle/50 bg-bg-surface overflow-hidden",
299
299
  children: [
300
300
  /* @__PURE__ */ D("div", {
301
- className: "flex items-center justify-between p-5 border-b border-border/50",
301
+ className: "flex items-center justify-between p-5 border-b border-border-subtle/50",
302
302
  children: [/* @__PURE__ */ D("div", {
303
303
  className: "flex items-center gap-2",
304
304
  children: [/* @__PURE__ */ E(v, {
305
305
  size: 18,
306
306
  className: "text-primary"
307
307
  }), /* @__PURE__ */ D("h2", {
308
- className: "font-semibold text-foreground",
308
+ className: "font-semibold text-text-primary",
309
309
  children: [
310
310
  "Connections (",
311
311
  (B ?? []).length,
@@ -315,7 +315,7 @@ function O() {
315
315
  }), X && L.pluginStatus === "installed" && L.isEnabled && /* @__PURE__ */ D("button", {
316
316
  type: "button",
317
317
  onClick: $,
318
- className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
318
+ className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
319
319
  children: [/* @__PURE__ */ E(S, { size: 14 }), "Add"]
320
320
  })]
321
321
  }),
@@ -323,25 +323,25 @@ function O() {
323
323
  className: "flex items-center justify-center py-12",
324
324
  children: /* @__PURE__ */ E(y, {
325
325
  size: 24,
326
- className: "animate-spin text-muted-foreground"
326
+ className: "animate-spin text-text-secondary"
327
327
  })
328
328
  }),
329
329
  !V && (B ?? []).length === 0 && /* @__PURE__ */ D("div", {
330
330
  className: "flex flex-col items-center justify-center py-12 px-6 text-center",
331
331
  children: [
332
332
  /* @__PURE__ */ E("div", {
333
- className: "p-4 rounded-full bg-muted/50 mb-4",
333
+ className: "p-4 rounded-full bg-bg-sunken/50 mb-4",
334
334
  children: /* @__PURE__ */ E(v, {
335
335
  size: 32,
336
- className: "text-muted-foreground"
336
+ className: "text-text-secondary"
337
337
  })
338
338
  }),
339
339
  /* @__PURE__ */ E("h3", {
340
- className: "font-semibold text-foreground mb-1",
340
+ className: "font-semibold text-text-primary mb-1",
341
341
  children: "No connections yet"
342
342
  }),
343
343
  /* @__PURE__ */ D("p", {
344
- className: "text-sm text-muted-foreground mb-4 max-w-sm",
344
+ className: "text-sm text-text-secondary mb-4 max-w-sm",
345
345
  children: [
346
346
  "Create a connection to start using ",
347
347
  L.name,
@@ -351,7 +351,7 @@ function O() {
351
351
  X && L.pluginStatus === "installed" && L.isEnabled && /* @__PURE__ */ D("button", {
352
352
  type: "button",
353
353
  onClick: $,
354
- className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
354
+ className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
355
355
  children: [/* @__PURE__ */ E(S, { size: 16 }), "Create Connection"]
356
356
  })
357
357
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderDetail.js","names":[],"sources":["../../../src/integrations/pages/ProviderDetail.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport {\n ArrowLeft,\n ExternalLink,\n BookOpen,\n Plus,\n Link2,\n Loader2,\n AlertCircle,\n RefreshCw,\n Shield,\n Package,\n Star,\n Download,\n Trash2,\n Pencil,\n Power,\n} from 'lucide-react';\nimport { cn } from '../utils/cn';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { useIntegrations } from '../providers/IntegrationsProvider';\nimport { INTEGRATION_PERMISSIONS } from '../constants/permissions';\nimport { useIntegrationsStore } from '../store/integrationsStore';\nimport { joinPath } from '../utils/navigation';\nimport { getAuthTypeLabel, getCategoryLabel } from '../utils/integrationsHelpers';\nimport {\n useDisableProvider,\n useEnableProvider,\n useProvider,\n useUninstallPlugin,\n} from '../hooks/useProviders';\nimport { useConnectionsByProvider } from '../hooks/useConnections';\nimport { ProviderIcon } from '../components/ProviderIcon';\nimport { ConnectionCard } from '../components/ConnectionCard';\nimport { AddConnectionDialog } from '../components/AddConnectionDialog';\nimport { ConfirmDialog } from '../components/ConfirmDialog';\nimport type { IntegrationConnection } from '../types';\n\n/**\n * Provider Detail — Single provider view with info, connections, and actions.\n */\nexport function ProviderDetail() {\n const { providerId } = useParams<{ providerId: string }>();\n const { adminMode = false, basePath = '/', navigate, onConnectionSelect } = useIntegrations();\n const {\n addConnectionDialogOpen,\n addConnectionProviderId,\n openAddConnectionDialog,\n closeAddConnectionDialog,\n } = useIntegrationsStore();\n\n const {\n provider,\n loading: providerLoading,\n error: providerError,\n refetch,\n } = useProvider(providerId ?? '');\n const { connections, loading: connectionsLoading } = useConnectionsByProvider(providerId ?? '');\n const { enableProvider, loading: enabling } = useEnableProvider();\n const { disableProvider, loading: disabling } = useDisableProvider();\n const { uninstallPlugin, loading: uninstalling } = useUninstallPlugin();\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const [uninstallDialogOpen, setUninstallDialogOpen] = useState(false);\n const canCreateConnection =\n !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_CREATE);\n const canCreateProvider =\n adminMode && !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.PROVIDER_CREATE);\n const canUpdateProvider =\n adminMode && !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.PROVIDER_UPDATE);\n const canDeleteProvider =\n adminMode && !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.PROVIDER_DELETE);\n\n const loading = providerLoading;\n const providerActionLoading = enabling || disabling || uninstalling;\n\n if (loading) {\n return (\n <div className=\"flex flex-col items-center justify-center py-20\">\n <div className=\"relative\">\n <div className=\"absolute inset-0 bg-primary/20 rounded-full blur-xl animate-pulse\" />\n <Loader2 size={48} className=\"relative animate-spin text-primary\" />\n </div>\n <span className=\"mt-6 text-sm font-medium text-muted-foreground\">\n Loading provider details…\n </span>\n </div>\n );\n }\n\n if (providerError || !provider) {\n return (\n <div className=\"p-6 max-w-4xl mx-auto\">\n <div className=\"rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4\">\n <AlertCircle size={24} className=\"text-status-error-text flex-shrink-0\" />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-status-error-text mb-1\">Provider not found</h3>\n <p className=\"text-sm text-status-error-text mb-3\">\n {providerError?.message || 'The requested provider could not be loaded.'}\n </p>\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n onClick={() => refetch()}\n 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\"\n >\n <RefreshCw size={14} />\n Try Again\n </button>\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, 'providers'))}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border hover:bg-accent transition-colors\"\n >\n <ArrowLeft size={14} />\n Back to Catalog\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n const handleCreateConnection = () => {\n openAddConnectionDialog(provider.id);\n };\n\n const handleConnectionClick = (connection: IntegrationConnection) => {\n onConnectionSelect?.(connection);\n navigate?.(joinPath(basePath, `connections/${connection.id}`));\n };\n\n const handleToggleEnabled = async () => {\n if (!provider) return;\n if (provider.isEnabled) {\n await disableProvider(provider.id);\n } else {\n await enableProvider(provider.id);\n }\n await refetch();\n };\n\n const handleUninstall = async () => {\n if (!provider) return;\n setUninstallDialogOpen(true);\n };\n\n const confirmUninstall = async () => {\n if (!provider) return;\n await uninstallPlugin(provider.id);\n setUninstallDialogOpen(false);\n navigate?.(joinPath(basePath, 'providers'));\n };\n\n const handleEditProvider = () => {\n navigate?.(joinPath(basePath, `providers/${provider.id}/edit`));\n };\n\n return (\n <div className=\"space-y-6 p-6 max-w-5xl mx-auto\">\n {/* Header */}\n <div className=\"relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/5 via-primary/3 to-background border border-border/50 p-6 shadow-sm\">\n <div className=\"relative z-10\">\n <div className=\"flex items-center gap-4 mb-4\">\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, 'providers'))}\n className=\"p-2.5 hover:bg-accent rounded-lg transition-all duration-200\"\n aria-label=\"Back to catalog\"\n >\n <ArrowLeft size={20} />\n </button>\n <ProviderIcon provider={provider} size={56} />\n <div className=\"flex-1\">\n <div className=\"flex items-center gap-3\">\n <h1 className=\"text-2xl sm:text-3xl font-bold text-foreground\">{provider.name}</h1>\n {provider.isBuiltIn && (\n <span className=\"text-xs px-2 py-0.5 rounded-full bg-status-info-bg-subtle text-status-info-text border border-border-default\">\n Built-in\n </span>\n )}\n </div>\n <p className=\"text-sm text-muted-foreground mt-1\">{provider.description}</p>\n </div>\n {canCreateConnection && provider.pluginStatus === 'installed' && provider.isEnabled && (\n <button\n type=\"button\"\n onClick={handleCreateConnection}\n className=\"inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors\"\n >\n <Plus size={16} />\n Create Connection\n </button>\n )}\n </div>\n </div>\n <div className=\"absolute top-0 right-0 size-64 bg-gradient-to-br from-primary/10 to-transparent rounded-full blur-3xl -z-0\" />\n </div>\n\n {/* Info Cards */}\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {/* Provider Details */}\n <div className=\"rounded-xl border border-border/50 bg-card p-5 space-y-4\">\n <h2 className=\"font-semibold text-foreground flex items-center gap-2\">\n <Package size={18} className=\"text-primary\" />\n Provider Details\n </h2>\n <div className=\"space-y-3\">\n <div className=\"flex items-center justify-between py-2 border-b border-border/50\">\n <span className=\"text-sm text-muted-foreground\">Category</span>\n <span className=\"text-sm font-medium text-foreground\">\n {getCategoryLabel(provider.category)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border/50\">\n <span className=\"text-sm text-muted-foreground\">Auth Type</span>\n <span className=\"text-sm font-medium text-foreground\">\n {getAuthTypeLabel(provider.authType)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border/50\">\n <span className=\"text-sm text-muted-foreground\">Plugin Version</span>\n <span className=\"text-sm font-mono text-foreground\">{provider.pluginVersion}</span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border/50\">\n <span className=\"text-sm text-muted-foreground\">Author</span>\n <span className=\"text-sm font-medium text-foreground\">\n {provider.pluginAuthor || '-'}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border/50\">\n <span className=\"text-sm text-muted-foreground\">Connections</span>\n <span className=\"text-sm font-medium text-foreground\">\n {provider.connectionCount}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2\">\n <span className=\"text-sm text-muted-foreground\">Status</span>\n <span\n className={cn(\n 'text-sm font-medium px-2 py-0.5 rounded-full',\n provider.isEnabled\n ? 'text-status-success-text bg-status-success-bg-subtle'\n : 'text-text-secondary bg-bg-sunken'\n )}\n >\n {provider.isEnabled ? 'Enabled' : 'Disabled'}\n </span>\n </div>\n </div>\n </div>\n\n {/* Features & Links */}\n <div className=\"space-y-4\">\n {/* Supported Features */}\n <div className=\"rounded-xl border border-border/50 bg-card p-5\">\n <h2 className=\"font-semibold text-foreground flex items-center gap-2 mb-3\">\n <Star size={18} className=\"text-primary\" />\n Supported Features\n </h2>\n {provider.supportedFeatures.length > 0 ? (\n <div className=\"flex flex-wrap gap-2\">\n {provider.supportedFeatures.map((feature) => (\n <span\n key={feature}\n className=\"text-xs px-2.5 py-1 rounded-full bg-muted text-muted-foreground\"\n >\n {feature}\n </span>\n ))}\n </div>\n ) : (\n <p className=\"text-sm text-muted-foreground\">No specific features listed.</p>\n )}\n </div>\n\n {/* Links */}\n <div className=\"rounded-xl border border-border/50 bg-card p-5\">\n <h2 className=\"font-semibold text-foreground flex items-center gap-2 mb-3\">\n <ExternalLink size={18} className=\"text-primary\" />\n Links\n </h2>\n <div className=\"space-y-2\">\n {provider.website && (\n <a\n href={provider.website}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-2 text-sm text-primary hover:underline\"\n >\n <ExternalLink size={14} />\n Website\n </a>\n )}\n {provider.docsUrl && (\n <a\n href={provider.docsUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-2 text-sm text-primary hover:underline\"\n >\n <BookOpen size={14} />\n Documentation\n </a>\n )}\n </div>\n </div>\n\n {/* Plugin Actions */}\n {adminMode && (\n <div className=\"rounded-xl border border-border/50 bg-card p-5\">\n <h2 className=\"font-semibold text-foreground flex items-center gap-2 mb-3\">\n <Shield size={18} className=\"text-primary\" />\n Plugin Management\n </h2>\n <div className=\"flex flex-wrap gap-2\">\n {canUpdateProvider && (\n <button\n type=\"button\"\n onClick={handleEditProvider}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border hover:bg-accent transition-colors\"\n >\n <Pencil size={14} />\n Edit\n </button>\n )}\n {canUpdateProvider && provider.pluginStatus === 'installed' && (\n <button\n type=\"button\"\n onClick={handleToggleEnabled}\n disabled={providerActionLoading}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border hover:bg-accent transition-colors disabled:opacity-50\"\n >\n <Power size={14} />\n {provider.isEnabled ? 'Disable' : 'Enable'}\n </button>\n )}\n {canCreateProvider && provider.pluginStatus === 'available' && (\n <button\n type=\"button\"\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors\"\n >\n <Download size={14} />\n Install Plugin\n </button>\n )}\n {canDeleteProvider && provider.pluginStatus === 'installed' && (\n <button\n type=\"button\"\n onClick={handleUninstall}\n disabled={providerActionLoading || provider.isBuiltIn}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-default text-status-error-text hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50\"\n >\n <Trash2 size={14} />\n Uninstall\n </button>\n )}\n {canUpdateProvider && provider.pluginStatus === 'update_available' && (\n <button\n type=\"button\"\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-warning-bg-subtle text-status-warning-text border border-border-default hover:bg-status-warning-bg-subtle/80 transition-colors\"\n >\n <Download size={14} />\n Update Available\n </button>\n )}\n </div>\n </div>\n )}\n </div>\n </div>\n\n {/* Connections for this provider */}\n <div className=\"rounded-xl border border-border/50 bg-card overflow-hidden\">\n <div className=\"flex items-center justify-between p-5 border-b border-border/50\">\n <div className=\"flex items-center gap-2\">\n <Link2 size={18} className=\"text-primary\" />\n <h2 className=\"font-semibold text-foreground\">\n Connections ({(connections ?? []).length})\n </h2>\n </div>\n {canCreateConnection && provider.pluginStatus === 'installed' && provider.isEnabled && (\n <button\n type=\"button\"\n onClick={handleCreateConnection}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors\"\n >\n <Plus size={14} />\n Add\n </button>\n )}\n </div>\n\n {connectionsLoading && (\n <div className=\"flex items-center justify-center py-12\">\n <Loader2 size={24} className=\"animate-spin text-muted-foreground\" />\n </div>\n )}\n\n {!connectionsLoading && (connections ?? []).length === 0 && (\n <div className=\"flex flex-col items-center justify-center py-12 px-6 text-center\">\n <div className=\"p-4 rounded-full bg-muted/50 mb-4\">\n <Link2 size={32} className=\"text-muted-foreground\" />\n </div>\n <h3 className=\"font-semibold text-foreground mb-1\">No connections yet</h3>\n <p className=\"text-sm text-muted-foreground mb-4 max-w-sm\">\n Create a connection to start using {provider.name} in your workspace.\n </p>\n {canCreateConnection && provider.pluginStatus === 'installed' && provider.isEnabled && (\n <button\n type=\"button\"\n onClick={handleCreateConnection}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors\"\n >\n <Plus size={16} />\n Create Connection\n </button>\n )}\n </div>\n )}\n\n {!connectionsLoading && (connections ?? []).length > 0 && (\n <div className=\"p-4 space-y-3\">\n {(connections ?? []).map((conn: IntegrationConnection) => (\n <ConnectionCard\n key={conn.id}\n connection={conn}\n displayMode=\"list\"\n onClick={handleConnectionClick}\n />\n ))}\n </div>\n )}\n </div>\n\n {/* Add Connection Dialog */}\n <AddConnectionDialog\n open={addConnectionDialogOpen}\n onClose={closeAddConnectionDialog}\n preselectedProviderId={addConnectionProviderId}\n onConnectionCreated={() => {\n refetch();\n }}\n />\n <ConfirmDialog\n open={uninstallDialogOpen}\n title={`Uninstall ${provider.name}`}\n description=\"Existing active connections must be removed first. This action is only available in admin mode.\"\n confirmLabel=\"Uninstall\"\n cancelLabel=\"Cancel\"\n destructive\n loading={uninstalling}\n icon={<Trash2 size={20} />}\n onConfirm={confirmUninstall}\n onCancel={() => setUninstallDialogOpen(false)}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA0CA,SAAgB,IAAiB;CAC/B,IAAM,EAAE,kBAAe,GAAmC,EACpD,EAAE,eAAY,IAAO,cAAW,KAAK,aAAU,0BAAuB,GAAiB,EACvF,EACJ,4BACA,4BACA,4BACA,gCACE,GAAsB,EAEpB,EACJ,aACA,SAAS,IACT,OAAO,GACP,eACE,EAAY,KAAc,GAAG,EAC3B,EAAE,gBAAa,SAAS,MAAuB,GAAyB,KAAc,GAAG,EACzF,EAAE,mBAAgB,SAAS,MAAa,GAAmB,EAC3D,EAAE,oBAAiB,SAAS,MAAc,GAAoB,EAC9D,EAAE,qBAAiB,SAAS,MAAiB,GAAoB,EACjE,EAAE,kBAAe,WAAW,MAAuB,GAAgB,EACnE,CAAC,IAAqB,KAA0B,GAAS,GAAM,EAC/D,IACJ,CAAC,KAAsB,EAAc,EAAwB,kBAAkB,EAC3E,KACJ,KAAa,CAAC,KAAsB,EAAc,EAAwB,gBAAgB,EACtF,IACJ,KAAa,CAAC,KAAsB,EAAc,EAAwB,gBAAgB,EACtF,KACJ,KAAa,CAAC,KAAsB,EAAc,EAAwB,gBAAgB,EAEtF,KAAU,IACV,IAAwB,KAAY,KAAa;AAEvD,KAAI,GACF,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD,EAAK,WAAU,qEAAsE,CAAA,E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,EAJK,EAAK,GAIV,CACF;MACE,CAAA;KAEJ;;GAGN,kBAAC,IAAD;IACE,MAAM;IACN,SAAS;IACT,uBAAuB;IACvB,2BAA2B;AACzB,QAAS;;IAEX,CAAA;GACF,kBAAC,GAAD;IACE,MAAM;IACN,OAAO,aAAa,EAAS;IAC7B,aAAY;IACZ,cAAa;IACb,aAAY;IACZ,aAAA;IACA,SAAS;IACT,MAAM,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA;IAC1B,WAlTmB,YAAY;AAC9B,WACL,MAAM,GAAgB,EAAS,GAAG,EAClC,EAAuB,GAAM,EAC7B,IAAW,EAAS,GAAU,YAAY,CAAC;;IA+SvC,gBAAgB,EAAuB,GAAM;IAC7C,CAAA;GACE"}
1
+ {"version":3,"file":"ProviderDetail.js","names":[],"sources":["../../../src/integrations/pages/ProviderDetail.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport {\n ArrowLeft,\n ExternalLink,\n BookOpen,\n Plus,\n Link2,\n Loader2,\n AlertCircle,\n RefreshCw,\n Shield,\n Package,\n Star,\n Download,\n Trash2,\n Pencil,\n Power,\n} from 'lucide-react';\nimport { cn } from '../utils/cn';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { useIntegrations } from '../providers/IntegrationsProvider';\nimport { INTEGRATION_PERMISSIONS } from '../constants/permissions';\nimport { useIntegrationsStore } from '../store/integrationsStore';\nimport { joinPath } from '../utils/navigation';\nimport { getAuthTypeLabel, getCategoryLabel } from '../utils/integrationsHelpers';\nimport {\n useDisableProvider,\n useEnableProvider,\n useProvider,\n useUninstallPlugin,\n} from '../hooks/useProviders';\nimport { useConnectionsByProvider } from '../hooks/useConnections';\nimport { ProviderIcon } from '../components/ProviderIcon';\nimport { ConnectionCard } from '../components/ConnectionCard';\nimport { AddConnectionDialog } from '../components/AddConnectionDialog';\nimport { ConfirmDialog } from '../components/ConfirmDialog';\nimport type { IntegrationConnection } from '../types';\n\n/**\n * Provider Detail — Single provider view with info, connections, and actions.\n */\nexport function ProviderDetail() {\n const { providerId } = useParams<{ providerId: string }>();\n const { adminMode = false, basePath = '/', navigate, onConnectionSelect } = useIntegrations();\n const {\n addConnectionDialogOpen,\n addConnectionProviderId,\n openAddConnectionDialog,\n closeAddConnectionDialog,\n } = useIntegrationsStore();\n\n const {\n provider,\n loading: providerLoading,\n error: providerError,\n refetch,\n } = useProvider(providerId ?? '');\n const { connections, loading: connectionsLoading } = useConnectionsByProvider(providerId ?? '');\n const { enableProvider, loading: enabling } = useEnableProvider();\n const { disableProvider, loading: disabling } = useDisableProvider();\n const { uninstallPlugin, loading: uninstalling } = useUninstallPlugin();\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const [uninstallDialogOpen, setUninstallDialogOpen] = useState(false);\n const canCreateConnection =\n !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_CREATE);\n const canCreateProvider =\n adminMode && !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.PROVIDER_CREATE);\n const canUpdateProvider =\n adminMode && !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.PROVIDER_UPDATE);\n const canDeleteProvider =\n adminMode && !permissionsLoading && hasPermission(INTEGRATION_PERMISSIONS.PROVIDER_DELETE);\n\n const loading = providerLoading;\n const providerActionLoading = enabling || disabling || uninstalling;\n\n if (loading) {\n return (\n <div className=\"flex flex-col items-center justify-center py-20\">\n <div className=\"relative\">\n <div className=\"absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse\" />\n <Loader2 size={48} className=\"relative animate-spin text-primary\" />\n </div>\n <span className=\"mt-6 text-sm font-medium text-text-secondary\">\n Loading provider details…\n </span>\n </div>\n );\n }\n\n if (providerError || !provider) {\n return (\n <div className=\"p-6 max-w-4xl mx-auto\">\n <div className=\"rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4\">\n <AlertCircle size={24} className=\"text-status-error-text flex-shrink-0\" />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-status-error-text mb-1\">Provider not found</h3>\n <p className=\"text-sm text-status-error-text mb-3\">\n {providerError?.message || 'The requested provider could not be loaded.'}\n </p>\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n onClick={() => refetch()}\n 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\"\n >\n <RefreshCw size={14} />\n Try Again\n </button>\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, 'providers'))}\n 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\"\n >\n <ArrowLeft size={14} />\n Back to Catalog\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n const handleCreateConnection = () => {\n openAddConnectionDialog(provider.id);\n };\n\n const handleConnectionClick = (connection: IntegrationConnection) => {\n onConnectionSelect?.(connection);\n navigate?.(joinPath(basePath, `connections/${connection.id}`));\n };\n\n const handleToggleEnabled = async () => {\n if (!provider) return;\n if (provider.isEnabled) {\n await disableProvider(provider.id);\n } else {\n await enableProvider(provider.id);\n }\n await refetch();\n };\n\n const handleUninstall = async () => {\n if (!provider) return;\n setUninstallDialogOpen(true);\n };\n\n const confirmUninstall = async () => {\n if (!provider) return;\n await uninstallPlugin(provider.id);\n setUninstallDialogOpen(false);\n navigate?.(joinPath(basePath, 'providers'));\n };\n\n const handleEditProvider = () => {\n navigate?.(joinPath(basePath, `providers/${provider.id}/edit`));\n };\n\n return (\n <div className=\"space-y-6 p-6 max-w-5xl mx-auto\">\n {/* Header */}\n <div className=\"relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/5 via-primary/3 to-background border border-border-subtle/50 p-6 shadow-sm\">\n <div className=\"relative z-10\">\n <div className=\"flex items-center gap-4 mb-4\">\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, 'providers'))}\n className=\"p-2.5 hover:bg-accent rounded-lg transition-all duration-200\"\n aria-label=\"Back to catalog\"\n >\n <ArrowLeft size={20} />\n </button>\n <ProviderIcon provider={provider} size={56} />\n <div className=\"flex-1\">\n <div className=\"flex items-center gap-3\">\n <h1 className=\"text-2xl sm:text-3xl font-bold text-text-primary\">{provider.name}</h1>\n {provider.isBuiltIn && (\n <span className=\"text-xs px-2 py-0.5 rounded-full bg-status-info-bg-subtle text-status-info-text border border-border-default\">\n Built-in\n </span>\n )}\n </div>\n <p className=\"text-sm text-text-secondary mt-1\">{provider.description}</p>\n </div>\n {canCreateConnection && provider.pluginStatus === 'installed' && provider.isEnabled && (\n <button\n type=\"button\"\n onClick={handleCreateConnection}\n className=\"inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <Plus size={16} />\n Create Connection\n </button>\n )}\n </div>\n </div>\n <div className=\"absolute top-0 right-0 size-64 bg-gradient-to-br from-primary/10 to-transparent rounded-full blur-3xl -z-0\" />\n </div>\n\n {/* Info Cards */}\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {/* Provider Details */}\n <div className=\"rounded-xl border border-border-subtle/50 bg-bg-surface p-5 space-y-4\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2\">\n <Package size={18} className=\"text-primary\" />\n Provider Details\n </h2>\n <div className=\"space-y-3\">\n <div className=\"flex items-center justify-between py-2 border-b border-border-subtle/50\">\n <span className=\"text-sm text-text-secondary\">Category</span>\n <span className=\"text-sm font-medium text-text-primary\">\n {getCategoryLabel(provider.category)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border-subtle/50\">\n <span className=\"text-sm text-text-secondary\">Auth Type</span>\n <span className=\"text-sm font-medium text-text-primary\">\n {getAuthTypeLabel(provider.authType)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border-subtle/50\">\n <span className=\"text-sm text-text-secondary\">Plugin Version</span>\n <span className=\"text-sm font-mono text-text-primary\">{provider.pluginVersion}</span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border-subtle/50\">\n <span className=\"text-sm text-text-secondary\">Author</span>\n <span className=\"text-sm font-medium text-text-primary\">\n {provider.pluginAuthor || '-'}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border-subtle/50\">\n <span className=\"text-sm text-text-secondary\">Connections</span>\n <span className=\"text-sm font-medium text-text-primary\">\n {provider.connectionCount}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2\">\n <span className=\"text-sm text-text-secondary\">Status</span>\n <span\n className={cn(\n 'text-sm font-medium px-2 py-0.5 rounded-full',\n provider.isEnabled\n ? 'text-status-success-text bg-status-success-bg-subtle'\n : 'text-text-secondary bg-bg-sunken'\n )}\n >\n {provider.isEnabled ? 'Enabled' : 'Disabled'}\n </span>\n </div>\n </div>\n </div>\n\n {/* Features & Links */}\n <div className=\"space-y-4\">\n {/* Supported Features */}\n <div className=\"rounded-xl border border-border-subtle/50 bg-bg-surface p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Star size={18} className=\"text-primary\" />\n Supported Features\n </h2>\n {provider.supportedFeatures.length > 0 ? (\n <div className=\"flex flex-wrap gap-2\">\n {provider.supportedFeatures.map((feature) => (\n <span\n key={feature}\n className=\"text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary\"\n >\n {feature}\n </span>\n ))}\n </div>\n ) : (\n <p className=\"text-sm text-text-secondary\">No specific features listed.</p>\n )}\n </div>\n\n {/* Links */}\n <div className=\"rounded-xl border border-border-subtle/50 bg-bg-surface p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <ExternalLink size={18} className=\"text-primary\" />\n Links\n </h2>\n <div className=\"space-y-2\">\n {provider.website && (\n <a\n href={provider.website}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-2 text-sm text-primary hover:underline\"\n >\n <ExternalLink size={14} />\n Website\n </a>\n )}\n {provider.docsUrl && (\n <a\n href={provider.docsUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-2 text-sm text-primary hover:underline\"\n >\n <BookOpen size={14} />\n Documentation\n </a>\n )}\n </div>\n </div>\n\n {/* Plugin Actions */}\n {adminMode && (\n <div className=\"rounded-xl border border-border-subtle/50 bg-bg-surface p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Shield size={18} className=\"text-primary\" />\n Plugin Management\n </h2>\n <div className=\"flex flex-wrap gap-2\">\n {canUpdateProvider && (\n <button\n type=\"button\"\n onClick={handleEditProvider}\n 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\"\n >\n <Pencil size={14} />\n Edit\n </button>\n )}\n {canUpdateProvider && provider.pluginStatus === 'installed' && (\n <button\n type=\"button\"\n onClick={handleToggleEnabled}\n disabled={providerActionLoading}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors disabled:opacity-50\"\n >\n <Power size={14} />\n {provider.isEnabled ? 'Disable' : 'Enable'}\n </button>\n )}\n {canCreateProvider && provider.pluginStatus === 'available' && (\n <button\n type=\"button\"\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <Download size={14} />\n Install Plugin\n </button>\n )}\n {canDeleteProvider && provider.pluginStatus === 'installed' && (\n <button\n type=\"button\"\n onClick={handleUninstall}\n disabled={providerActionLoading || provider.isBuiltIn}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-default text-status-error-text hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50\"\n >\n <Trash2 size={14} />\n Uninstall\n </button>\n )}\n {canUpdateProvider && provider.pluginStatus === 'update_available' && (\n <button\n type=\"button\"\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-warning-bg-subtle text-status-warning-text border border-border-default hover:bg-status-warning-bg-subtle/80 transition-colors\"\n >\n <Download size={14} />\n Update Available\n </button>\n )}\n </div>\n </div>\n )}\n </div>\n </div>\n\n {/* Connections for this provider */}\n <div className=\"rounded-xl border border-border-subtle/50 bg-bg-surface overflow-hidden\">\n <div className=\"flex items-center justify-between p-5 border-b border-border-subtle/50\">\n <div className=\"flex items-center gap-2\">\n <Link2 size={18} className=\"text-primary\" />\n <h2 className=\"font-semibold text-text-primary\">\n Connections ({(connections ?? []).length})\n </h2>\n </div>\n {canCreateConnection && provider.pluginStatus === 'installed' && provider.isEnabled && (\n <button\n type=\"button\"\n onClick={handleCreateConnection}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <Plus size={14} />\n Add\n </button>\n )}\n </div>\n\n {connectionsLoading && (\n <div className=\"flex items-center justify-center py-12\">\n <Loader2 size={24} className=\"animate-spin text-text-secondary\" />\n </div>\n )}\n\n {!connectionsLoading && (connections ?? []).length === 0 && (\n <div className=\"flex flex-col items-center justify-center py-12 px-6 text-center\">\n <div className=\"p-4 rounded-full bg-bg-sunken/50 mb-4\">\n <Link2 size={32} className=\"text-text-secondary\" />\n </div>\n <h3 className=\"font-semibold text-text-primary mb-1\">No connections yet</h3>\n <p className=\"text-sm text-text-secondary mb-4 max-w-sm\">\n Create a connection to start using {provider.name} in your workspace.\n </p>\n {canCreateConnection && provider.pluginStatus === 'installed' && provider.isEnabled && (\n <button\n type=\"button\"\n onClick={handleCreateConnection}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <Plus size={16} />\n Create Connection\n </button>\n )}\n </div>\n )}\n\n {!connectionsLoading && (connections ?? []).length > 0 && (\n <div className=\"p-4 space-y-3\">\n {(connections ?? []).map((conn: IntegrationConnection) => (\n <ConnectionCard\n key={conn.id}\n connection={conn}\n displayMode=\"list\"\n onClick={handleConnectionClick}\n />\n ))}\n </div>\n )}\n </div>\n\n {/* Add Connection Dialog */}\n <AddConnectionDialog\n open={addConnectionDialogOpen}\n onClose={closeAddConnectionDialog}\n preselectedProviderId={addConnectionProviderId}\n onConnectionCreated={() => {\n refetch();\n }}\n />\n <ConfirmDialog\n open={uninstallDialogOpen}\n title={`Uninstall ${provider.name}`}\n description=\"Existing active connections must be removed first. This action is only available in admin mode.\"\n confirmLabel=\"Uninstall\"\n cancelLabel=\"Cancel\"\n destructive\n loading={uninstalling}\n icon={<Trash2 size={20} />}\n onConfirm={confirmUninstall}\n onCancel={() => setUninstallDialogOpen(false)}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA0CA,SAAgB,IAAiB;CAC/B,IAAM,EAAE,kBAAe,GAAmC,EACpD,EAAE,eAAY,IAAO,cAAW,KAAK,aAAU,0BAAuB,GAAiB,EACvF,EACJ,4BACA,4BACA,4BACA,gCACE,GAAsB,EAEpB,EACJ,aACA,SAAS,IACT,OAAO,GACP,eACE,EAAY,KAAc,GAAG,EAC3B,EAAE,gBAAa,SAAS,MAAuB,GAAyB,KAAc,GAAG,EACzF,EAAE,mBAAgB,SAAS,MAAa,GAAmB,EAC3D,EAAE,oBAAiB,SAAS,MAAc,GAAoB,EAC9D,EAAE,qBAAiB,SAAS,MAAiB,GAAoB,EACjE,EAAE,kBAAe,WAAW,MAAuB,GAAgB,EACnE,CAAC,IAAqB,KAA0B,GAAS,GAAM,EAC/D,IACJ,CAAC,KAAsB,EAAc,EAAwB,kBAAkB,EAC3E,KACJ,KAAa,CAAC,KAAsB,EAAc,EAAwB,gBAAgB,EACtF,IACJ,KAAa,CAAC,KAAsB,EAAc,EAAwB,gBAAgB,EACtF,KACJ,K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