@burdenoff/microfe-integrations 2026.1107.2 → 2026.1109.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 (247) hide show
  1. package/dist/dev/main.d.ts +0 -2
  2. package/dist/generated/global-operations.d.ts +4 -2
  3. package/dist/generated/global-types.d.ts +2 -22
  4. package/dist/generated/wspace-operations.d.ts +995 -705
  5. package/dist/generated/wspace-operations.js +180 -167
  6. package/dist/generated/wspace-operations.js.map +1 -1
  7. package/dist/generated/wspace-types.d.ts +4 -24
  8. package/dist/generated/wspace-types.js +1 -2
  9. package/dist/generated/wspace-types.js.map +1 -1
  10. package/dist/index.d.ts +0 -1
  11. package/dist/integrations/ConnectSourceDialog.d.ts +0 -2
  12. package/dist/integrations/ConnectSourceDialog.js +13 -14
  13. package/dist/integrations/ConnectSourceDialog.js.map +1 -1
  14. package/dist/integrations/ConnectionsPanel.d.ts +0 -2
  15. package/dist/integrations/ConnectionsPanel.js +5 -6
  16. package/dist/integrations/ConnectionsPanel.js.map +1 -1
  17. package/dist/integrations/IntegrationsAdminRoot.d.ts +0 -2
  18. package/dist/integrations/IntegrationsAdminRoot.js +14 -11
  19. package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
  20. package/dist/integrations/IntegrationsAdminRoutes.d.ts +1 -2
  21. package/dist/integrations/IntegrationsAdminRoutes.js +1 -2
  22. package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
  23. package/dist/integrations/IntegrationsRoot.d.ts +0 -2
  24. package/dist/integrations/IntegrationsRoot.js +9 -6
  25. package/dist/integrations/IntegrationsRoot.js.map +1 -1
  26. package/dist/integrations/IntegrationsUserRoutes.d.ts +1 -2
  27. package/dist/integrations/IntegrationsUserRoutes.js +7 -8
  28. package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
  29. package/dist/integrations/components/AddConnectionDialog.d.ts +1 -3
  30. package/dist/integrations/components/AddConnectionDialog.js +12 -15
  31. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  32. package/dist/integrations/components/AuthMethodsEditor.d.ts +0 -2
  33. package/dist/integrations/components/AuthMethodsEditor.js +1 -2
  34. package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
  35. package/dist/integrations/components/ConfirmDialog.d.ts +1 -3
  36. package/dist/integrations/components/ConfirmDialog.js +1 -2
  37. package/dist/integrations/components/ConfirmDialog.js.map +1 -1
  38. package/dist/integrations/components/ConnectionCard.d.ts +0 -2
  39. package/dist/integrations/components/ConnectionCard.js +9 -10
  40. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  41. package/dist/integrations/components/ConnectionModalFrame.d.ts +0 -2
  42. package/dist/integrations/components/ConnectionModalFrame.js +2 -3
  43. package/dist/integrations/components/ConnectionModalFrame.js.map +1 -1
  44. package/dist/integrations/components/ConnectionSharing.d.ts +0 -2
  45. package/dist/integrations/components/ConnectionSharing.js +7 -8
  46. package/dist/integrations/components/ConnectionSharing.js.map +1 -1
  47. package/dist/integrations/components/ConnectionStatusBadge.d.ts +0 -2
  48. package/dist/integrations/components/ConnectionStatusBadge.js +1 -2
  49. package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
  50. package/dist/integrations/components/ConnectorSubmissionCard.d.ts +2 -4
  51. package/dist/integrations/components/ConnectorSubmissionCard.js +8 -9
  52. package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
  53. package/dist/integrations/components/ConnectorSubmissionPager.d.ts +1 -2
  54. package/dist/integrations/components/ConnectorSubmissionPager.js +1 -2
  55. package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -1
  56. package/dist/integrations/components/MailMessageBody.d.ts +1 -3
  57. package/dist/integrations/components/MailMessageBody.js +4 -5
  58. package/dist/integrations/components/MailMessageBody.js.map +1 -1
  59. package/dist/integrations/components/ProviderCard.d.ts +0 -2
  60. package/dist/integrations/components/ProviderCard.js +8 -9
  61. package/dist/integrations/components/ProviderCard.js.map +1 -1
  62. package/dist/integrations/constants/featureFlags.d.ts +0 -1
  63. package/dist/integrations/constants/featureFlags.js +1 -2
  64. package/dist/integrations/constants/featureFlags.js.map +1 -1
  65. package/dist/integrations/constants/permissions.d.ts +0 -1
  66. package/dist/integrations/constants/permissions.js +1 -2
  67. package/dist/integrations/constants/permissions.js.map +1 -1
  68. package/dist/integrations/events/integrations-events.d.ts +0 -1
  69. package/dist/integrations/events/useIntegrationsEventBus.d.ts +0 -2
  70. package/dist/integrations/events/useIntegrationsEventBus.js +1 -2
  71. package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -1
  72. package/dist/integrations/hooks/useConnections.d.ts +3 -14
  73. package/dist/integrations/hooks/useConnections.js +74 -75
  74. package/dist/integrations/hooks/useConnections.js.map +1 -1
  75. package/dist/integrations/hooks/useConnectorSubmissions.d.ts +2 -10
  76. package/dist/integrations/hooks/useConnectorSubmissions.js +23 -24
  77. package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
  78. package/dist/integrations/hooks/useFormatDate.d.ts +0 -1
  79. package/dist/integrations/hooks/useFormatDate.js +1 -2
  80. package/dist/integrations/hooks/useFormatDate.js.map +1 -1
  81. package/dist/integrations/hooks/useFormatLastUsed.d.ts +0 -1
  82. package/dist/integrations/hooks/useFormatLastUsed.js +1 -2
  83. package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -1
  84. package/dist/integrations/hooks/useLabel.d.ts +0 -2
  85. package/dist/integrations/hooks/useLabel.js +1 -2
  86. package/dist/integrations/hooks/useLabel.js.map +1 -1
  87. package/dist/integrations/hooks/useLogs.d.ts +1 -6
  88. package/dist/integrations/hooks/useLogs.js +6 -7
  89. package/dist/integrations/hooks/useLogs.js.map +1 -1
  90. package/dist/integrations/hooks/useMailbox.d.ts +19 -43
  91. package/dist/integrations/hooks/useMailbox.js +46 -47
  92. package/dist/integrations/hooks/useMailbox.js.map +1 -1
  93. package/dist/integrations/hooks/useProviders.d.ts +3 -14
  94. package/dist/integrations/hooks/useProviders.js +42 -43
  95. package/dist/integrations/hooks/useProviders.js.map +1 -1
  96. package/dist/integrations/hooks/useTr.d.ts +0 -1
  97. package/dist/integrations/hooks/useTr.js +1 -2
  98. package/dist/integrations/hooks/useTr.js.map +1 -1
  99. package/dist/integrations/index.d.ts +0 -1
  100. package/dist/integrations/index.js +9 -8
  101. package/dist/integrations/pages/AddConnectionWizard.d.ts +1 -2
  102. package/dist/integrations/pages/AddConnectionWizard.js +291 -306
  103. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  104. package/dist/integrations/pages/ConnectionDetail.d.ts +1 -2
  105. package/dist/integrations/pages/ConnectionDetail.js +241 -246
  106. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  107. package/dist/integrations/pages/ConnectionLogs.d.ts +1 -2
  108. package/dist/integrations/pages/ConnectionLogs.js +154 -155
  109. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  110. package/dist/integrations/pages/ConnectionsList.d.ts +1 -2
  111. package/dist/integrations/pages/ConnectionsList.js +40 -41
  112. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  113. package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +1 -2
  114. package/dist/integrations/pages/ConnectorReviewQueuePage.js +9 -10
  115. package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -1
  116. package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +1 -2
  117. package/dist/integrations/pages/ConnectorSubmissionsPage.js +138 -139
  118. package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
  119. package/dist/integrations/pages/IntegrationsOverview.d.ts +1 -2
  120. package/dist/integrations/pages/IntegrationsOverview.js +35 -36
  121. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  122. package/dist/integrations/pages/IntegrationsSettings.d.ts +1 -2
  123. package/dist/integrations/pages/IntegrationsSettings.js +7 -8
  124. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  125. package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +1 -2
  126. package/dist/integrations/pages/IntegrationsUserLandingPage.js +1 -2
  127. package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
  128. package/dist/integrations/pages/MailboxInbox.d.ts +1 -2
  129. package/dist/integrations/pages/MailboxInbox.js +135 -140
  130. package/dist/integrations/pages/MailboxInbox.js.map +1 -1
  131. package/dist/integrations/pages/ProviderCatalog.d.ts +1 -2
  132. package/dist/integrations/pages/ProviderCatalog.js +107 -108
  133. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  134. package/dist/integrations/pages/ProviderDetail.d.ts +1 -2
  135. package/dist/integrations/pages/ProviderDetail.js +21 -22
  136. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  137. package/dist/integrations/pages/ProviderEditorPage.d.ts +1 -2
  138. package/dist/integrations/pages/ProviderEditorPage.js +261 -264
  139. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  140. package/dist/integrations/providers/IntegrationsProvider.d.ts +0 -2
  141. package/dist/integrations/providers/IntegrationsProvider.js +109 -96
  142. package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
  143. package/dist/integrations/store/integrationsStore.d.ts +0 -2
  144. package/dist/integrations/store/integrationsStore.js +1 -2
  145. package/dist/integrations/store/integrationsStore.js.map +1 -1
  146. package/dist/integrations/store/mailboxStore.d.ts +0 -2
  147. package/dist/integrations/store/mailboxStore.js +1 -2
  148. package/dist/integrations/store/mailboxStore.js.map +1 -1
  149. package/dist/integrations/translations/en.d.ts +0 -1
  150. package/dist/integrations/types/index.d.ts +0 -1
  151. package/dist/integrations/utils/appearance.d.ts +0 -1
  152. package/dist/integrations/utils/appearance.js +1 -2
  153. package/dist/integrations/utils/appearance.js.map +1 -1
  154. package/dist/integrations/utils/cn.d.ts +0 -2
  155. package/dist/integrations/utils/cn.js +2 -3
  156. package/dist/integrations/utils/cn.js.map +1 -1
  157. package/dist/integrations/utils/constants.d.ts +0 -1
  158. package/dist/integrations/utils/constants.js +1 -2
  159. package/dist/integrations/utils/constants.js.map +1 -1
  160. package/dist/integrations/utils/integrationsHelpers.d.ts +0 -2
  161. package/dist/integrations/utils/integrationsHelpers.js +1 -2
  162. package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
  163. package/dist/integrations/utils/mailHtml.d.ts +0 -2
  164. package/dist/integrations/utils/mailHtml.js +3 -4
  165. package/dist/integrations/utils/mailHtml.js.map +1 -1
  166. package/dist/integrations/utils/mappers.d.ts +0 -2
  167. package/dist/integrations/utils/mappers.js +2 -3
  168. package/dist/integrations/utils/mappers.js.map +1 -1
  169. package/dist/integrations/utils/navigation.d.ts +0 -1
  170. package/dist/integrations/utils/navigation.js +2 -8
  171. package/dist/integrations/utils/navigation.js.map +1 -1
  172. package/dist/integrations/utils/paths.d.ts +0 -1
  173. package/dist/integrations/utils/paths.js +1 -2
  174. package/dist/integrations/utils/paths.js.map +1 -1
  175. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  176. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  177. package/dist/node_modules/dompurify/dist/purify.es.js +20 -36
  178. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  179. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  180. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  181. package/dist/utils/nativeBridge.d.ts +0 -1
  182. package/dist/utils/nativeBridge.js +1 -2
  183. package/package.json +63 -49
  184. package/dist/dev/main.d.ts.map +0 -1
  185. package/dist/generated/global-operations.d.ts.map +0 -1
  186. package/dist/generated/global-types.d.ts.map +0 -1
  187. package/dist/generated/wspace-operations.d.ts.map +0 -1
  188. package/dist/generated/wspace-types.d.ts.map +0 -1
  189. package/dist/index.d.ts.map +0 -1
  190. package/dist/integrations/ConnectSourceDialog.d.ts.map +0 -1
  191. package/dist/integrations/ConnectionsPanel.d.ts.map +0 -1
  192. package/dist/integrations/IntegrationsAdminRoot.d.ts.map +0 -1
  193. package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +0 -1
  194. package/dist/integrations/IntegrationsRoot.d.ts.map +0 -1
  195. package/dist/integrations/IntegrationsUserRoutes.d.ts.map +0 -1
  196. package/dist/integrations/components/AddConnectionDialog.d.ts.map +0 -1
  197. package/dist/integrations/components/AuthMethodsEditor.d.ts.map +0 -1
  198. package/dist/integrations/components/ConfirmDialog.d.ts.map +0 -1
  199. package/dist/integrations/components/ConnectionCard.d.ts.map +0 -1
  200. package/dist/integrations/components/ConnectionModalFrame.d.ts.map +0 -1
  201. package/dist/integrations/components/ConnectionSharing.d.ts.map +0 -1
  202. package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +0 -1
  203. package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +0 -1
  204. package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +0 -1
  205. package/dist/integrations/components/MailMessageBody.d.ts.map +0 -1
  206. package/dist/integrations/components/ProviderCard.d.ts.map +0 -1
  207. package/dist/integrations/constants/featureFlags.d.ts.map +0 -1
  208. package/dist/integrations/constants/permissions.d.ts.map +0 -1
  209. package/dist/integrations/events/integrations-events.d.ts.map +0 -1
  210. package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +0 -1
  211. package/dist/integrations/hooks/useConnections.d.ts.map +0 -1
  212. package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +0 -1
  213. package/dist/integrations/hooks/useFormatDate.d.ts.map +0 -1
  214. package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +0 -1
  215. package/dist/integrations/hooks/useLabel.d.ts.map +0 -1
  216. package/dist/integrations/hooks/useLogs.d.ts.map +0 -1
  217. package/dist/integrations/hooks/useMailbox.d.ts.map +0 -1
  218. package/dist/integrations/hooks/useProviders.d.ts.map +0 -1
  219. package/dist/integrations/hooks/useTr.d.ts.map +0 -1
  220. package/dist/integrations/index.d.ts.map +0 -1
  221. package/dist/integrations/pages/AddConnectionWizard.d.ts.map +0 -1
  222. package/dist/integrations/pages/ConnectionDetail.d.ts.map +0 -1
  223. package/dist/integrations/pages/ConnectionLogs.d.ts.map +0 -1
  224. package/dist/integrations/pages/ConnectionsList.d.ts.map +0 -1
  225. package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +0 -1
  226. package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +0 -1
  227. package/dist/integrations/pages/IntegrationsOverview.d.ts.map +0 -1
  228. package/dist/integrations/pages/IntegrationsSettings.d.ts.map +0 -1
  229. package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +0 -1
  230. package/dist/integrations/pages/MailboxInbox.d.ts.map +0 -1
  231. package/dist/integrations/pages/ProviderCatalog.d.ts.map +0 -1
  232. package/dist/integrations/pages/ProviderDetail.d.ts.map +0 -1
  233. package/dist/integrations/pages/ProviderEditorPage.d.ts.map +0 -1
  234. package/dist/integrations/providers/IntegrationsProvider.d.ts.map +0 -1
  235. package/dist/integrations/store/integrationsStore.d.ts.map +0 -1
  236. package/dist/integrations/store/mailboxStore.d.ts.map +0 -1
  237. package/dist/integrations/translations/en.d.ts.map +0 -1
  238. package/dist/integrations/types/index.d.ts.map +0 -1
  239. package/dist/integrations/utils/appearance.d.ts.map +0 -1
  240. package/dist/integrations/utils/cn.d.ts.map +0 -1
  241. package/dist/integrations/utils/constants.d.ts.map +0 -1
  242. package/dist/integrations/utils/integrationsHelpers.d.ts.map +0 -1
  243. package/dist/integrations/utils/mailHtml.d.ts.map +0 -1
  244. package/dist/integrations/utils/mappers.d.ts.map +0 -1
  245. package/dist/integrations/utils/navigation.d.ts.map +0 -1
  246. package/dist/integrations/utils/paths.d.ts.map +0 -1
  247. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,80 +1,80 @@
1
- import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
1
+ import { cn as e } from "../utils/cn.js";
2
2
  import { useTr as t } from "../hooks/useTr.js";
3
+ import { useAuthTypeLabel as ee } from "../hooks/useLabel.js";
4
+ import { useFormatLastUsed as te } from "../hooks/useFormatLastUsed.js";
5
+ import { useFormatDate as ne } from "../hooks/useFormatDate.js";
6
+ import { useIntegrations as re } from "../providers/IntegrationsProvider.js";
3
7
  import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
8
+ import { INTEGRATION_FEATURE_FLAGS as ie } from "../constants/featureFlags.js";
4
9
  import { joinPath as r } from "../utils/navigation.js";
5
- import { cn as i } from "../utils/cn.js";
6
- import { useFormatLastUsed as ee } from "../hooks/useFormatLastUsed.js";
7
- import { useConnection as te, useDeleteConnection as ne, useRefreshToken as re, useRevokeConnection as ie, useTestConnection as ae } from "../hooks/useConnections.js";
8
- import { useAuthTypeLabel as oe } from "../hooks/useLabel.js";
9
- import { ConnectionStatusBadge as se } from "../components/ConnectionStatusBadge.js";
10
- import { INTEGRATION_FEATURE_FLAGS as ce } from "../constants/featureFlags.js";
11
- import { useFormatDate as le } from "../hooks/useFormatDate.js";
12
- import { ConnectionShareDialog as ue, PrivateConnectionBadge as de } from "../components/ConnectionSharing.js";
13
- import { ConfirmDialog as fe } from "../components/ConfirmDialog.js";
14
- import { nativeConfirm as pe, nativeImpact as me, nativeNotify as a } from "../../utils/nativeBridge.js";
15
- import { useState as o } from "react";
16
- import { Activity as s, AlertCircle as he, ArrowLeft as c, CheckCircle2 as l, Clock as ge, Key as u, Loader2 as d, Mail as _e, RefreshCw as ve, RotateCcw as f, Share2 as ye, Shield as p, Trash2 as m, User as be, XCircle as h, Zap as g } from "lucide-react";
17
- import { useParams as xe } from "react-router";
18
- import { usePermissions as Se } from "@burdenoff/fe-libs/shared/providers/shell";
19
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
20
- import { useFeatureFlag as Ce } from "@burdenoff/fe-libs/shared/feature-flags";
21
- import { ProviderIcon as we, canManageSharing as Te } from "@burdenoff/fe-libs/connections";
22
- import { AlertDialog as Ee, AlertDialogAction as De, AlertDialogCancel as Oe, AlertDialogContent as ke, AlertDialogDescription as Ae, AlertDialogFooter as je, AlertDialogHeader as Me, AlertDialogTitle as y, Button as b, CTAOverflowMenu as x, EmphasisPanel as Ne, GlassCard as S, NextSteps as Pe, PagePurpose as Fe, ShowMore as Ie } from "@burdenoff/fe-libs/ui";
23
- //#region src/integrations/pages/ConnectionDetail.tsx
24
- function C() {
25
- let { connectionId: C } = xe(), { basePath: w = "/", navigate: T } = e(), E = t(), Le = oe(), Re = ee(), D = le(), { connection: O, loading: ze, error: k, refetch: A } = te(C ?? ""), { testConnection: Be, loading: j } = ae(), { refreshToken: Ve, loading: He } = re(), { revokeConnection: Ue, loading: M } = ie(), { deleteConnection: We, loading: N } = ne(), P = Ce(ce.OAUTH_REFRESH, !0), { hasPermission: F, isLoading: Ge } = Se(), I = F(n.CONNECTION_UPDATE), L = F(n.CONNECTION_DELETE), Ke = F(n.CONNECTION_SHARE), [qe, R] = o(!1), [z, Je] = o(null), [B, V] = o(null), [Ye, H] = o(!1), [U, W] = o(!1), [G, K] = o(!1), q = (e, t) => {
26
- V({
10
+ import { useConnection as ae, useDeleteConnection as oe, useRefreshToken as se, useRevokeConnection as ce, useTestConnection as le } from "../hooks/useConnections.js";
11
+ import { ConnectionStatusBadge as ue } from "../components/ConnectionStatusBadge.js";
12
+ import { ConnectionShareDialog as de, PrivateConnectionBadge as fe } from "../components/ConnectionSharing.js";
13
+ import { ConfirmDialog as pe } from "../components/ConfirmDialog.js";
14
+ import { nativeConfirm as me, nativeImpact as he, nativeNotify as i } from "../../utils/nativeBridge.js";
15
+ import { useState as a } from "react";
16
+ import { Activity as o, AlertCircle as ge, ArrowLeft as s, CheckCircle2 as c, Clock as _e, Key as l, Loader2 as u, Mail as ve, RefreshCw as ye, RotateCcw as d, Share2 as be, Shield as f, Trash2 as p, User as xe, XCircle as m, Zap as h } from "lucide-react";
17
+ import { useParams as Se } from "react-router";
18
+ import { usePermissions as Ce } from "@burdenoff/fe-libs/shared/providers/shell";
19
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
20
+ import { useFeatureFlag as we } from "@burdenoff/fe-libs/shared/feature-flags";
21
+ import { ProviderIcon as Te, canManageSharing as Ee } from "@burdenoff/fe-libs/connections";
22
+ import { AlertDialog as De, AlertDialogAction as Oe, AlertDialogCancel as ke, AlertDialogContent as Ae, AlertDialogDescription as je, AlertDialogFooter as Me, AlertDialogHeader as v, AlertDialogTitle as y, Button as b, CTAOverflowMenu as x, EmphasisPanel as Ne, GlassCard as S, NextSteps as Pe, PagePurpose as Fe, ShowMore as C } from "@burdenoff/fe-libs/ui";
23
+ // src/integrations/pages/ConnectionDetail.tsx
24
+ function w() {
25
+ let { connectionId: w } = Se(), { basePath: T = "/", navigate: E } = re(), D = t(), Ie = ee(), Le = te(), O = ne(), { connection: k, loading: Re, error: A, refetch: j } = ae(w ?? ""), { testConnection: ze, loading: M } = le(), { refreshToken: Be, loading: Ve } = se(), { revokeConnection: He, loading: N } = ce(), { deleteConnection: Ue, loading: P } = oe(), F = we(ie.OAUTH_REFRESH, !0), { hasPermission: I, isLoading: We } = Ce(), L = I(n.CONNECTION_UPDATE), R = I(n.CONNECTION_DELETE), Ge = I(n.CONNECTION_SHARE), [Ke, z] = a(!1), [B, qe] = a(null), [V, H] = a(null), [Je, U] = a(!1), [W, G] = a(!1), [Ye, K] = a(!1), q = (e, t) => {
26
+ H({
27
27
  type: e,
28
28
  message: t
29
- }), setTimeout(() => V(null), 5e3);
29
+ }), setTimeout(() => H(null), 5e3);
30
30
  };
31
- if (ze || Ge) return /* @__PURE__ */ v("div", {
31
+ if (Re || We) return /* @__PURE__ */ _("div", {
32
32
  className: "flex flex-col items-center justify-center py-20",
33
- children: [/* @__PURE__ */ _(d, {
33
+ children: [/* @__PURE__ */ g(u, {
34
34
  size: 48,
35
35
  className: "animate-spin text-primary"
36
- }), /* @__PURE__ */ _("span", {
36
+ }), /* @__PURE__ */ g("span", {
37
37
  className: "mt-6 text-sm font-medium text-text-secondary",
38
- children: E("integrations.connectionDetail.loading", "Loading connection details...")
38
+ children: D("integrations.connectionDetail.loading", "Loading connection details...")
39
39
  })]
40
40
  });
41
- if (k || !O) return /* @__PURE__ */ _("div", {
41
+ if (A || !k) return /* @__PURE__ */ g("div", {
42
42
  className: "p-6 max-w-4xl mx-auto",
43
- children: /* @__PURE__ */ v("div", {
43
+ children: /* @__PURE__ */ _("div", {
44
44
  className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4",
45
- children: [/* @__PURE__ */ _(he, {
45
+ children: [/* @__PURE__ */ g(ge, {
46
46
  size: 24,
47
47
  className: "text-status-error-text flex-shrink-0"
48
- }), /* @__PURE__ */ v("div", {
48
+ }), /* @__PURE__ */ _("div", {
49
49
  className: "flex-1",
50
50
  children: [
51
- /* @__PURE__ */ _("h3", {
51
+ /* @__PURE__ */ g("h3", {
52
52
  className: "font-semibold text-status-error-text mb-1",
53
- children: E("integrations.connectionDetail.error.title", "Connection not found")
53
+ children: D("integrations.connectionDetail.error.title", "Connection not found")
54
54
  }),
55
- /* @__PURE__ */ _("p", {
55
+ /* @__PURE__ */ g("p", {
56
56
  className: "text-sm text-status-error-text mb-3",
57
- children: k?.message || E("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
57
+ children: A?.message || D("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
58
58
  }),
59
- /* @__PURE__ */ v("div", {
59
+ /* @__PURE__ */ _("div", {
60
60
  className: "flex gap-2",
61
- children: [/* @__PURE__ */ v("button", {
61
+ children: [/* @__PURE__ */ _("button", {
62
62
  type: "button",
63
- onClick: () => A(),
63
+ onClick: () => j(),
64
64
  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",
65
65
  children: [
66
- /* @__PURE__ */ _(ve, { size: 14 }),
66
+ /* @__PURE__ */ g(ye, { size: 14 }),
67
67
  " ",
68
- E("integrations.connectionDetail.error.retry", "Try Again")
68
+ D("integrations.connectionDetail.error.retry", "Try Again")
69
69
  ]
70
- }), /* @__PURE__ */ v("button", {
70
+ }), /* @__PURE__ */ _("button", {
71
71
  type: "button",
72
- onClick: () => T?.(r(w, "connections")),
72
+ onClick: () => E?.(r(T, "connections")),
73
73
  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",
74
74
  children: [
75
- /* @__PURE__ */ _(c, { size: 14 }),
75
+ /* @__PURE__ */ g(s, { size: 14 }),
76
76
  " ",
77
- E("integrations.connectionDetail.error.back", "Back to Connections")
77
+ D("integrations.connectionDetail.error.back", "Back to Connections")
78
78
  ]
79
79
  })]
80
80
  })
@@ -83,431 +83,427 @@ function C() {
83
83
  })
84
84
  });
85
85
  let J = async () => {
86
- let e = await Be(O.id);
87
- e && (Je(e), q(e.success ? "success" : "error", e.message));
86
+ let e = await ze(k.id);
87
+ e && (qe(e), q(e.success ? "success" : "error", e.message));
88
88
  }, Y = async () => {
89
- await Ve(O.id), q("success", E("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), A();
89
+ await Be(k.id), q("success", D("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), j();
90
90
  }, Xe = async () => {
91
91
  K(!0);
92
92
  }, Ze = async () => {
93
- await Ue(O.id), q("success", E("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), K(!1), A();
93
+ await He(k.id), q("success", D("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), K(!1), j();
94
94
  }, Qe = async () => {
95
- me("medium");
96
- let e = await pe({
97
- title: E("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
98
- message: E("integrations.connectionDetail.deleteDialog.message", "Delete this connection? This cannot be undone."),
99
- okButtonTitle: E("integrations.connectionDetail.deleteDialog.confirm", "Delete"),
100
- cancelButtonTitle: E("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
95
+ he("medium");
96
+ let e = await me({
97
+ title: D("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
98
+ message: D("integrations.connectionDetail.deleteDialog.message", "Delete this connection? This cannot be undone."),
99
+ okButtonTitle: D("integrations.connectionDetail.deleteDialog.confirm", "Delete"),
100
+ cancelButtonTitle: D("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
101
101
  });
102
- if (e === null) {
103
- H(!0);
104
- return;
105
- }
106
- e && await X();
102
+ e === null ? U(!0) : e && await X();
107
103
  }, X = async () => {
108
104
  try {
109
- await We(O.id, U), q("success", E("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), a("success"), H(!1), W(!1), T?.(r(w, "connections"));
105
+ await Ue(k.id, W), q("success", D("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), i("success"), U(!1), G(!1), E?.(r(T, "connections"));
110
106
  } catch (e) {
111
- q("error", e instanceof Error ? e.message : "Failed to delete connection"), a("error");
107
+ q("error", e instanceof Error ? e.message : "Failed to delete connection"), i("error");
112
108
  }
113
- }, Z = j || He || M || N, Q = Ke && Te(O.myAccess ?? null), $ = !!(O.vaultId || O.credentialSecretId), $e = [
109
+ }, Z = M || Ve || N || P, Q = Ge && Ee(k.myAccess ?? null), $ = !!(k.vaultId || k.credentialSecretId), $e = [
114
110
  {
115
111
  id: "test",
116
- label: E("integrations.connectionDetail.nextSteps.test.label", "Test the connection"),
117
- description: E("integrations.connectionDetail.nextSteps.test.description", "Run a live check to confirm credentials still work before relying on it."),
118
- icon: /* @__PURE__ */ _(g, { size: 16 }),
112
+ label: D("integrations.connectionDetail.nextSteps.test.label", "Test the connection"),
113
+ description: D("integrations.connectionDetail.nextSteps.test.description", "Run a live check to confirm credentials still work before relying on it."),
114
+ icon: /* @__PURE__ */ g(h, { size: 16 }),
119
115
  onClick: () => {
120
116
  J();
121
117
  },
122
- done: O.status === "active" && !!z?.success
118
+ done: k.status === "active" && !!B?.success
123
119
  },
124
- ...I && O.provider.authType === "oauth2" && P ? [{
120
+ ...L && k.provider.authType === "oauth2" && F ? [{
125
121
  id: "refresh",
126
- label: E("integrations.connectionDetail.nextSteps.refresh.label", "Refresh the access token"),
127
- description: E("integrations.connectionDetail.nextSteps.refresh.description", "Renew OAuth credentials if requests start failing with an auth error."),
128
- icon: /* @__PURE__ */ _(f, { size: 16 }),
122
+ label: D("integrations.connectionDetail.nextSteps.refresh.label", "Refresh the access token"),
123
+ description: D("integrations.connectionDetail.nextSteps.refresh.description", "Renew OAuth credentials if requests start failing with an auth error."),
124
+ icon: /* @__PURE__ */ g(d, { size: 16 }),
129
125
  onClick: () => {
130
126
  Y();
131
127
  }
132
128
  }] : [],
133
129
  {
134
130
  id: "logs",
135
- label: E("integrations.connectionDetail.nextSteps.logs.label", "Review activity logs"),
136
- description: E("integrations.connectionDetail.nextSteps.logs.description", "See recent requests and errors for this connection to debug issues."),
137
- icon: /* @__PURE__ */ _(s, { size: 16 }),
138
- onClick: () => T?.(r(w, "logs"))
131
+ label: D("integrations.connectionDetail.nextSteps.logs.label", "Review activity logs"),
132
+ description: D("integrations.connectionDetail.nextSteps.logs.description", "See recent requests and errors for this connection to debug issues."),
133
+ icon: /* @__PURE__ */ g(o, { size: 16 }),
134
+ onClick: () => E?.(r(T, "logs"))
139
135
  }
140
136
  ];
141
- return /* @__PURE__ */ v("div", {
137
+ return /* @__PURE__ */ _("div", {
142
138
  className: "space-y-6 p-6 max-w-5xl mx-auto",
143
139
  children: [
144
- B && /* @__PURE__ */ v("div", {
145
- className: i("fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200", B.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-default" : "bg-status-error-bg-subtle text-status-error-text border-border-default"),
146
- children: [B.type === "success" ? /* @__PURE__ */ _(l, { size: 20 }) : /* @__PURE__ */ _(h, { size: 20 }), /* @__PURE__ */ _("span", {
140
+ V && /* @__PURE__ */ _("div", {
141
+ className: e("fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200", V.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-default" : "bg-status-error-bg-subtle text-status-error-text border-border-default"),
142
+ children: [V.type === "success" ? /* @__PURE__ */ g(c, { size: 20 }) : /* @__PURE__ */ g(m, { size: 20 }), /* @__PURE__ */ g("span", {
147
143
  className: "font-medium",
148
- children: B.message
144
+ children: V.message
149
145
  })]
150
146
  }),
151
- /* @__PURE__ */ _(Ee, {
152
- open: Ye,
147
+ /* @__PURE__ */ g(De, {
148
+ open: Je,
153
149
  onOpenChange: (e) => {
154
- e || (H(!1), W(!1));
150
+ e || (U(!1), G(!1));
155
151
  },
156
- children: /* @__PURE__ */ v(ke, {
152
+ children: /* @__PURE__ */ _(Ae, {
157
153
  className: "max-w-md",
158
154
  children: [
159
- /* @__PURE__ */ v(Me, { children: [/* @__PURE__ */ _(y, { children: E("integrations.connectionDetail.deleteDialog.title", "Delete Connection") }), /* @__PURE__ */ _(Ae, { children: E("integrations.connectionDetail.deleteDialog.message", "This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it.") })] }),
160
- $ && /* @__PURE__ */ v("label", {
155
+ /* @__PURE__ */ _(v, { children: [/* @__PURE__ */ g(y, { children: D("integrations.connectionDetail.deleteDialog.title", "Delete Connection") }), /* @__PURE__ */ g(je, { children: D("integrations.connectionDetail.deleteDialog.message", "This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it.") })] }),
156
+ $ && /* @__PURE__ */ _("label", {
161
157
  className: "flex items-start gap-3 rounded-lg border border-border-subtle/60 bg-bg-surface px-4 py-3 cursor-pointer",
162
- children: [/* @__PURE__ */ _("input", {
158
+ children: [/* @__PURE__ */ g("input", {
163
159
  type: "checkbox",
164
- checked: U,
165
- onChange: (e) => W(e.target.checked),
160
+ checked: W,
161
+ onChange: (e) => G(e.target.checked),
166
162
  className: "mt-0.5",
167
- "aria-label": E("integrations.connectionDetail.deleteDialog.removeVaultSecret", "Also remove mapped vault secret")
168
- }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
163
+ "aria-label": D("integrations.connectionDetail.deleteDialog.removeVaultSecret", "Also remove mapped vault secret")
164
+ }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
169
165
  className: "text-sm font-medium text-text-primary",
170
- children: E("integrations.connectionDetail.deleteDialog.removeVaultSecret", "Also remove mapped vault secret")
171
- }), /* @__PURE__ */ _("p", {
166
+ children: D("integrations.connectionDetail.deleteDialog.removeVaultSecret", "Also remove mapped vault secret")
167
+ }), /* @__PURE__ */ g("p", {
172
168
  className: "text-xs text-text-secondary mt-1",
173
- children: E("integrations.connectionDetail.deleteDialog.removeVaultSecretHint", "Use this only if no other connections rely on the same secret.")
169
+ children: D("integrations.connectionDetail.deleteDialog.removeVaultSecretHint", "Use this only if no other connections rely on the same secret.")
174
170
  })] })]
175
171
  }),
176
- /* @__PURE__ */ v(je, { children: [/* @__PURE__ */ _(Oe, {
172
+ /* @__PURE__ */ _(Me, { children: [/* @__PURE__ */ g(ke, {
177
173
  onClick: () => {
178
- H(!1), W(!1);
174
+ U(!1), G(!1);
179
175
  },
180
- children: E("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
181
- }), /* @__PURE__ */ v(De, {
182
- disabled: N,
176
+ children: D("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
177
+ }), /* @__PURE__ */ _(Oe, {
178
+ disabled: P,
183
179
  onClick: (e) => {
184
180
  e.preventDefault(), X();
185
181
  },
186
182
  className: "inline-flex items-center gap-2 bg-status-error-bg text-action-primary-text disabled:opacity-50",
187
- children: [N ? /* @__PURE__ */ _(d, {
183
+ children: [P ? /* @__PURE__ */ g(u, {
188
184
  size: 14,
189
185
  className: "animate-spin"
190
- }) : /* @__PURE__ */ _(m, { size: 14 }), E("integrations.connectionDetail.deleteDialog.deleteConnection", "Delete connection")]
186
+ }) : /* @__PURE__ */ g(p, { size: 14 }), D("integrations.connectionDetail.deleteDialog.deleteConnection", "Delete connection")]
191
187
  })] })
192
188
  ]
193
189
  })
194
190
  }),
195
- /* @__PURE__ */ _(fe, {
196
- open: G,
197
- title: E("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
198
- description: E("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
199
- confirmLabel: E("integrations.connectionDetail.actions.revoke", "Revoke"),
200
- cancelLabel: E("integrations.connectionDetail.actions.cancel", "Cancel"),
201
- loading: M,
191
+ /* @__PURE__ */ g(pe, {
192
+ open: Ye,
193
+ title: D("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
194
+ description: D("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
195
+ confirmLabel: D("integrations.connectionDetail.actions.revoke", "Revoke"),
196
+ cancelLabel: D("integrations.connectionDetail.actions.cancel", "Cancel"),
197
+ loading: N,
202
198
  destructive: !0,
203
- icon: /* @__PURE__ */ _(p, { size: 20 }),
199
+ icon: /* @__PURE__ */ g(f, { size: 20 }),
204
200
  onConfirm: Ze,
205
201
  onCancel: () => K(!1)
206
202
  }),
207
- Q && /* @__PURE__ */ _(ue, {
208
- connection: O,
209
- open: qe,
210
- onClose: () => R(!1),
203
+ Q && /* @__PURE__ */ g(de, {
204
+ connection: k,
205
+ open: Ke,
206
+ onClose: () => z(!1),
211
207
  onShared: () => {
212
- q("success", E("integrations.connectionDetail.notifications.shareSuccess", "Sharing updated")), A();
208
+ q("success", D("integrations.connectionDetail.notifications.shareSuccess", "Sharing updated")), j();
213
209
  }
214
210
  }),
215
- /* @__PURE__ */ _("div", {
211
+ /* @__PURE__ */ g("div", {
216
212
  className: "rounded-xl border border-border-seam bg-accent-wash p-6",
217
- children: /* @__PURE__ */ v("div", {
213
+ children: /* @__PURE__ */ _("div", {
218
214
  className: "flex items-center gap-4",
219
215
  children: [
220
- /* @__PURE__ */ _(b, {
216
+ /* @__PURE__ */ g(b, {
221
217
  variant: "ghost",
222
218
  size: "icon",
223
- onClick: () => T?.(r(w, "connections")),
224
- "aria-label": E("integrations.connectionDetail.actions.backAriaLabel", "Back"),
225
- children: /* @__PURE__ */ _(c, { size: 20 })
219
+ onClick: () => E?.(r(T, "connections")),
220
+ "aria-label": D("integrations.connectionDetail.actions.backAriaLabel", "Back"),
221
+ children: /* @__PURE__ */ g(s, { size: 20 })
226
222
  }),
227
- /* @__PURE__ */ _(we, {
228
- provider: O.provider,
223
+ /* @__PURE__ */ g(Te, {
224
+ provider: k.provider,
229
225
  size: 56
230
226
  }),
231
- /* @__PURE__ */ v("div", {
227
+ /* @__PURE__ */ _("div", {
232
228
  className: "flex-1",
233
- children: [/* @__PURE__ */ v("div", {
229
+ children: [/* @__PURE__ */ _("div", {
234
230
  className: "flex items-center gap-3",
235
231
  children: [
236
- /* @__PURE__ */ _("h1", {
232
+ /* @__PURE__ */ g("h1", {
237
233
  className: "text-2xl sm:text-3xl font-bold text-text-primary",
238
- children: O.name
234
+ children: k.name
239
235
  }),
240
- /* @__PURE__ */ _(se, {
241
- status: O.status,
236
+ /* @__PURE__ */ g(ue, {
237
+ status: k.status,
242
238
  size: "md"
243
239
  }),
244
- /* @__PURE__ */ _(de, { connection: O })
240
+ /* @__PURE__ */ g(fe, { connection: k })
245
241
  ]
246
- }), /* @__PURE__ */ v("p", {
242
+ }), /* @__PURE__ */ _("p", {
247
243
  className: "text-sm text-text-secondary mt-0.5",
248
244
  children: [
249
- O.provider.name,
245
+ k.provider.name,
250
246
  " · ",
251
- Le(O.provider.authType)
247
+ Ie(k.provider.authType)
252
248
  ]
253
249
  })]
254
250
  })
255
251
  ]
256
252
  })
257
253
  }),
258
- /* @__PURE__ */ _(Fe, {
259
- icon: /* @__PURE__ */ _(s, { size: 16 }),
260
- children: E("integrations.connectionDetail.purpose", "This is a single live link to {provider}. From here you can confirm it is healthy, see which account and scopes were granted, test it on demand, refresh or revoke its access, and review where its credentials are stored.", { provider: O.provider.name })
254
+ /* @__PURE__ */ g(Fe, {
255
+ icon: /* @__PURE__ */ g(o, { size: 16 }),
256
+ children: D("integrations.connectionDetail.purpose", "This is a single live link to {provider}. From here you can confirm it is healthy, see which account and scopes were granted, test it on demand, refresh or revoke its access, and review where its credentials are stored.", { provider: k.provider.name })
261
257
  }),
262
- (I || L) && /* @__PURE__ */ _(Pe, {
258
+ (L || R) && /* @__PURE__ */ g(Pe, {
263
259
  storageKey: "integrations-connection-detail",
264
260
  steps: $e
265
261
  }),
266
- /* @__PURE__ */ v("div", {
262
+ /* @__PURE__ */ _("div", {
267
263
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
268
- children: [/* @__PURE__ */ v(Ne, {
264
+ children: [/* @__PURE__ */ _(Ne, {
269
265
  className: "p-5 space-y-4",
270
- children: [/* @__PURE__ */ v("h2", {
266
+ children: [/* @__PURE__ */ _("h2", {
271
267
  className: "font-semibold text-text-primary flex items-center gap-2",
272
- children: [/* @__PURE__ */ _(s, {
268
+ children: [/* @__PURE__ */ g(o, {
273
269
  size: 18,
274
270
  className: "text-primary"
275
- }), E("integrations.connectionDetail.sections.info", "Connection Info")]
276
- }), /* @__PURE__ */ v("div", {
271
+ }), D("integrations.connectionDetail.sections.info", "Connection Info")]
272
+ }), /* @__PURE__ */ _("div", {
277
273
  className: "space-y-3",
278
274
  children: [
279
- O.description && /* @__PURE__ */ v("div", {
275
+ k.description && /* @__PURE__ */ _("div", {
280
276
  className: "py-2 border-b border-border-seam",
281
- children: [/* @__PURE__ */ _("span", {
277
+ children: [/* @__PURE__ */ g("span", {
282
278
  className: "text-xs text-text-secondary uppercase tracking-wide",
283
- children: E("integrations.connectionDetail.fields.description", "Description")
284
- }), /* @__PURE__ */ _("p", {
279
+ children: D("integrations.connectionDetail.fields.description", "Description")
280
+ }), /* @__PURE__ */ g("p", {
285
281
  className: "text-sm text-text-primary mt-0.5",
286
- children: O.description
282
+ children: k.description
287
283
  })]
288
284
  }),
289
- /* @__PURE__ */ v("div", {
285
+ /* @__PURE__ */ _("div", {
290
286
  className: "flex items-center justify-between py-2 border-b border-border-seam",
291
- children: [/* @__PURE__ */ _("span", {
287
+ children: [/* @__PURE__ */ g("span", {
292
288
  className: "text-sm text-text-secondary",
293
- children: E("integrations.connectionDetail.fields.provider", "Provider")
294
- }), /* @__PURE__ */ _("span", {
289
+ children: D("integrations.connectionDetail.fields.provider", "Provider")
290
+ }), /* @__PURE__ */ g("span", {
295
291
  className: "text-sm font-medium text-text-primary",
296
- children: O.provider.name
292
+ children: k.provider.name
297
293
  })]
298
294
  }),
299
- O.externalAccountEmail && /* @__PURE__ */ v("div", {
295
+ k.externalAccountEmail && /* @__PURE__ */ _("div", {
300
296
  className: "flex items-center justify-between py-2 border-b border-border-seam",
301
- children: [/* @__PURE__ */ v("span", {
297
+ children: [/* @__PURE__ */ _("span", {
302
298
  className: "text-sm text-text-secondary flex items-center gap-1",
303
299
  children: [
304
- /* @__PURE__ */ _(_e, { size: 14 }),
300
+ /* @__PURE__ */ g(ve, { size: 14 }),
305
301
  " ",
306
- E("integrations.connectionDetail.fields.account", "Account")
302
+ D("integrations.connectionDetail.fields.account", "Account")
307
303
  ]
308
- }), /* @__PURE__ */ _("span", {
304
+ }), /* @__PURE__ */ g("span", {
309
305
  className: "text-sm font-medium text-text-primary",
310
- children: O.externalAccountEmail
306
+ children: k.externalAccountEmail
311
307
  })]
312
308
  }),
313
- O.externalAccountName && /* @__PURE__ */ v("div", {
309
+ k.externalAccountName && /* @__PURE__ */ _("div", {
314
310
  className: "flex items-center justify-between py-2 border-b border-border-seam",
315
- children: [/* @__PURE__ */ v("span", {
311
+ children: [/* @__PURE__ */ _("span", {
316
312
  className: "text-sm text-text-secondary flex items-center gap-1",
317
313
  children: [
318
- /* @__PURE__ */ _(be, { size: 14 }),
314
+ /* @__PURE__ */ g(xe, { size: 14 }),
319
315
  " ",
320
- E("integrations.connectionDetail.fields.name", "Name")
316
+ D("integrations.connectionDetail.fields.name", "Name")
321
317
  ]
322
- }), /* @__PURE__ */ _("span", {
318
+ }), /* @__PURE__ */ g("span", {
323
319
  className: "text-sm font-medium text-text-primary",
324
- children: O.externalAccountName
320
+ children: k.externalAccountName
325
321
  })]
326
322
  }),
327
- O.errorMessage && /* @__PURE__ */ v("div", {
323
+ k.errorMessage && /* @__PURE__ */ _("div", {
328
324
  className: "py-2 border-b border-border-seam",
329
- children: [/* @__PURE__ */ _("span", {
325
+ children: [/* @__PURE__ */ g("span", {
330
326
  className: "text-xs text-status-error-text uppercase tracking-wide",
331
- children: E("integrations.connectionDetail.fields.error", "Error")
332
- }), /* @__PURE__ */ _("p", {
327
+ children: D("integrations.connectionDetail.fields.error", "Error")
328
+ }), /* @__PURE__ */ g("p", {
333
329
  className: "text-sm text-status-error-text mt-0.5 bg-status-error-bg-subtle rounded-lg p-2",
334
- children: O.errorMessage
330
+ children: k.errorMessage
335
331
  })]
336
332
  }),
337
- /* @__PURE__ */ v("div", {
333
+ /* @__PURE__ */ _("div", {
338
334
  className: "flex items-center justify-between py-2 border-b border-border-seam",
339
- children: [/* @__PURE__ */ v("span", {
335
+ children: [/* @__PURE__ */ _("span", {
340
336
  className: "text-sm text-text-secondary flex items-center gap-1",
341
337
  children: [
342
- /* @__PURE__ */ _(ge, { size: 14 }),
338
+ /* @__PURE__ */ g(_e, { size: 14 }),
343
339
  " ",
344
- E("integrations.connectionDetail.fields.lastUsed", "Last Used")
340
+ D("integrations.connectionDetail.fields.lastUsed", "Last Used")
345
341
  ]
346
- }), /* @__PURE__ */ _("span", {
342
+ }), /* @__PURE__ */ g("span", {
347
343
  className: "text-sm text-text-primary",
348
- children: Re(O.lastUsedAt)
344
+ children: Le(k.lastUsedAt)
349
345
  })]
350
346
  }),
351
- /* @__PURE__ */ v("div", {
347
+ /* @__PURE__ */ _("div", {
352
348
  className: "flex items-center justify-between py-2 border-b border-border-seam",
353
- children: [/* @__PURE__ */ _("span", {
349
+ children: [/* @__PURE__ */ g("span", {
354
350
  className: "text-sm text-text-secondary",
355
- children: E("integrations.connectionDetail.fields.healthCheck", "Health Check")
356
- }), /* @__PURE__ */ _("span", {
351
+ children: D("integrations.connectionDetail.fields.healthCheck", "Health Check")
352
+ }), /* @__PURE__ */ g("span", {
357
353
  className: "text-sm text-text-primary",
358
- children: D(O.lastHealthCheck)
354
+ children: O(k.lastHealthCheck)
359
355
  })]
360
356
  }),
361
- /* @__PURE__ */ v("div", {
357
+ /* @__PURE__ */ _("div", {
362
358
  className: "flex items-center justify-between py-2",
363
- children: [/* @__PURE__ */ _("span", {
359
+ children: [/* @__PURE__ */ g("span", {
364
360
  className: "text-sm text-text-secondary",
365
- children: E("integrations.connectionDetail.fields.created", "Created")
366
- }), /* @__PURE__ */ _("span", {
361
+ children: D("integrations.connectionDetail.fields.created", "Created")
362
+ }), /* @__PURE__ */ g("span", {
367
363
  className: "text-sm text-text-primary",
368
- children: D(O.createdAt)
364
+ children: O(k.createdAt)
369
365
  })]
370
366
  })
371
367
  ]
372
368
  })]
373
- }), /* @__PURE__ */ v("div", {
369
+ }), /* @__PURE__ */ _("div", {
374
370
  className: "space-y-4",
375
371
  children: [
376
- /* @__PURE__ */ v(S, {
372
+ /* @__PURE__ */ _(S, {
377
373
  className: "border-border-seam p-5",
378
- children: [/* @__PURE__ */ v("h2", {
374
+ children: [/* @__PURE__ */ _("h2", {
379
375
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
380
- children: [/* @__PURE__ */ _(p, {
376
+ children: [/* @__PURE__ */ g(f, {
381
377
  size: 18,
382
378
  className: "text-primary"
383
- }), E("integrations.connectionDetail.sections.scopes", "Granted Scopes")]
384
- }), O.grantedScopes.length > 0 ? /* @__PURE__ */ _(Ie, {
379
+ }), D("integrations.connectionDetail.sections.scopes", "Granted Scopes")]
380
+ }), k.grantedScopes.length > 0 ? /* @__PURE__ */ g(C, {
385
381
  collapsedHeight: 88,
386
382
  label: "Show all scopes",
387
- children: /* @__PURE__ */ _("div", {
383
+ children: /* @__PURE__ */ g("div", {
388
384
  className: "flex flex-wrap gap-2",
389
- children: O.grantedScopes.map((e) => /* @__PURE__ */ _("span", {
385
+ children: k.grantedScopes.map((e) => /* @__PURE__ */ g("span", {
390
386
  className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary font-mono",
391
387
  children: e
392
388
  }, e))
393
389
  })
394
- }) : /* @__PURE__ */ _("p", {
390
+ }) : /* @__PURE__ */ g("p", {
395
391
  className: "text-sm text-text-secondary",
396
- children: E("integrations.connectionDetail.scopes.empty", "No scopes granted.")
392
+ children: D("integrations.connectionDetail.scopes.empty", "No scopes granted.")
397
393
  })]
398
394
  }),
399
- z && /* @__PURE__ */ v("div", {
400
- className: i("rounded-xl border p-5", z.success ? "border-border-default bg-status-success-bg-subtle" : "border-border-default bg-status-error-bg-subtle"),
395
+ B && /* @__PURE__ */ _("div", {
396
+ className: e("rounded-xl border p-5", B.success ? "border-border-default bg-status-success-bg-subtle" : "border-border-default bg-status-error-bg-subtle"),
401
397
  children: [
402
- /* @__PURE__ */ v("h2", {
403
- className: i("font-semibold flex items-center gap-2 mb-2", z.success ? "text-status-success-text" : "text-status-error-text"),
404
- children: [z.success ? /* @__PURE__ */ _(l, { size: 18 }) : /* @__PURE__ */ _(h, { size: 18 }), z.success ? E("integrations.connectionDetail.testResult.passed", "Connection Test Passed") : E("integrations.connectionDetail.testResult.failed", "Connection Test Failed")]
398
+ /* @__PURE__ */ _("h2", {
399
+ className: e("font-semibold flex items-center gap-2 mb-2", B.success ? "text-status-success-text" : "text-status-error-text"),
400
+ children: [B.success ? /* @__PURE__ */ g(c, { size: 18 }) : /* @__PURE__ */ g(m, { size: 18 }), B.success ? D("integrations.connectionDetail.testResult.passed", "Connection Test Passed") : D("integrations.connectionDetail.testResult.failed", "Connection Test Failed")]
405
401
  }),
406
- /* @__PURE__ */ _("p", {
407
- className: i("text-sm", z.success ? "text-status-success-text" : "text-status-error-text"),
408
- children: z.message
402
+ /* @__PURE__ */ g("p", {
403
+ className: e("text-sm", B.success ? "text-status-success-text" : "text-status-error-text"),
404
+ children: B.message
409
405
  }),
410
- /* @__PURE__ */ _("p", {
406
+ /* @__PURE__ */ g("p", {
411
407
  className: "text-xs text-text-secondary mt-1",
412
- children: E("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: z.latencyMs })
408
+ children: D("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: B.latencyMs })
413
409
  })
414
410
  ]
415
411
  }),
416
- $ && /* @__PURE__ */ v(S, {
412
+ $ && /* @__PURE__ */ _(S, {
417
413
  className: "border-border-seam p-5",
418
- children: [/* @__PURE__ */ v("h2", {
414
+ children: [/* @__PURE__ */ _("h2", {
419
415
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
420
- children: [/* @__PURE__ */ _(u, {
416
+ children: [/* @__PURE__ */ g(l, {
421
417
  size: 18,
422
418
  className: "text-primary"
423
- }), E("integrations.connectionDetail.sections.credentialStorage", "Credential Storage")]
424
- }), /* @__PURE__ */ v("div", {
419
+ }), D("integrations.connectionDetail.sections.credentialStorage", "Credential Storage")]
420
+ }), /* @__PURE__ */ _("div", {
425
421
  className: "space-y-2 text-sm",
426
422
  children: [
427
- O.vaultId && /* @__PURE__ */ v("div", {
423
+ k.vaultId && /* @__PURE__ */ _("div", {
428
424
  className: "flex items-center justify-between gap-3",
429
- children: [/* @__PURE__ */ _("span", {
425
+ children: [/* @__PURE__ */ g("span", {
430
426
  className: "text-text-secondary",
431
- children: E("integrations.connectionDetail.fields.vault", "Vault")
432
- }), /* @__PURE__ */ _("span", {
427
+ children: D("integrations.connectionDetail.fields.vault", "Vault")
428
+ }), /* @__PURE__ */ g("span", {
433
429
  className: "font-medium text-text-primary break-all",
434
- children: O.vaultId
430
+ children: k.vaultId
435
431
  })]
436
432
  }),
437
- O.credentialSecretName && /* @__PURE__ */ v("div", {
433
+ k.credentialSecretName && /* @__PURE__ */ _("div", {
438
434
  className: "flex items-center justify-between gap-3",
439
- children: [/* @__PURE__ */ _("span", {
435
+ children: [/* @__PURE__ */ g("span", {
440
436
  className: "text-text-secondary",
441
- children: E("integrations.connectionDetail.fields.secret", "Secret")
442
- }), /* @__PURE__ */ _("span", {
437
+ children: D("integrations.connectionDetail.fields.secret", "Secret")
438
+ }), /* @__PURE__ */ g("span", {
443
439
  className: "font-medium text-text-primary break-all",
444
- children: O.credentialSecretName
440
+ children: k.credentialSecretName
445
441
  })]
446
442
  }),
447
- O.credentialSecretId && /* @__PURE__ */ v("div", {
443
+ k.credentialSecretId && /* @__PURE__ */ _("div", {
448
444
  className: "flex items-center justify-between gap-3",
449
- children: [/* @__PURE__ */ _("span", {
445
+ children: [/* @__PURE__ */ g("span", {
450
446
  className: "text-text-secondary",
451
- children: E("integrations.connectionDetail.fields.secretId", "Secret ID")
452
- }), /* @__PURE__ */ _("span", {
447
+ children: D("integrations.connectionDetail.fields.secretId", "Secret ID")
448
+ }), /* @__PURE__ */ g("span", {
453
449
  className: "font-mono text-xs text-text-primary break-all",
454
- children: O.credentialSecretId
450
+ children: k.credentialSecretId
455
451
  })]
456
452
  })
457
453
  ]
458
454
  })]
459
455
  }),
460
- (I || L || Q) && /* @__PURE__ */ v(S, {
456
+ (L || R || Q) && /* @__PURE__ */ _(S, {
461
457
  className: "border-border-seam p-5",
462
- children: [/* @__PURE__ */ v("h2", {
458
+ children: [/* @__PURE__ */ _("h2", {
463
459
  className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
464
- children: [/* @__PURE__ */ _(u, {
460
+ children: [/* @__PURE__ */ g(l, {
465
461
  size: 18,
466
462
  className: "text-primary"
467
- }), E("integrations.connectionDetail.sections.actions", "Actions")]
468
- }), /* @__PURE__ */ _(x, {
463
+ }), D("integrations.connectionDetail.sections.actions", "Actions")]
464
+ }), /* @__PURE__ */ g(x, {
469
465
  align: "start",
470
466
  primary: {
471
- label: E("integrations.connectionDetail.actions.test", "Test Connection"),
467
+ label: D("integrations.connectionDetail.actions.test", "Test Connection"),
472
468
  onSelect: () => {
473
469
  J();
474
470
  },
475
471
  disabled: Z,
476
- icon: j ? /* @__PURE__ */ _(d, {
472
+ icon: M ? /* @__PURE__ */ g(u, {
477
473
  size: 14,
478
474
  className: "animate-spin"
479
- }) : /* @__PURE__ */ _(g, { size: 14 })
475
+ }) : /* @__PURE__ */ g(h, { size: 14 })
480
476
  },
481
477
  actions: [
482
478
  ...Q ? [{
483
- label: E("integrations.connectionDetail.actions.share", "Share"),
484
- onSelect: () => R(!0),
479
+ label: D("integrations.connectionDetail.actions.share", "Share"),
480
+ onSelect: () => z(!0),
485
481
  disabled: Z,
486
- icon: /* @__PURE__ */ _(ye, { size: 14 })
482
+ icon: /* @__PURE__ */ g(be, { size: 14 })
487
483
  }] : [],
488
- ...I && O.provider.authType === "oauth2" && P ? [{
489
- label: E("integrations.connectionDetail.actions.refreshToken", "Refresh Token"),
484
+ ...L && k.provider.authType === "oauth2" && F ? [{
485
+ label: D("integrations.connectionDetail.actions.refreshToken", "Refresh Token"),
490
486
  onSelect: () => {
491
487
  Y();
492
488
  },
493
489
  disabled: Z,
494
- icon: /* @__PURE__ */ _(f, { size: 14 })
490
+ icon: /* @__PURE__ */ g(d, { size: 14 })
495
491
  }] : [],
496
- ...L ? [{
497
- label: E("integrations.connectionDetail.actions.revoke", "Revoke"),
492
+ ...R ? [{
493
+ label: D("integrations.connectionDetail.actions.revoke", "Revoke"),
498
494
  onSelect: () => {
499
495
  Xe();
500
496
  },
501
497
  disabled: Z,
502
- icon: /* @__PURE__ */ _(p, { size: 14 })
498
+ icon: /* @__PURE__ */ g(f, { size: 14 })
503
499
  }, {
504
- label: E("integrations.connectionDetail.actions.delete", "Delete"),
500
+ label: D("integrations.connectionDetail.actions.delete", "Delete"),
505
501
  onSelect: () => {
506
502
  Qe();
507
503
  },
508
504
  intent: "destructive",
509
505
  disabled: Z,
510
- icon: /* @__PURE__ */ _(m, { size: 14 })
506
+ icon: /* @__PURE__ */ g(p, { size: 14 })
511
507
  }] : []
512
508
  ]
513
509
  })]
@@ -518,7 +514,6 @@ function C() {
518
514
  ]
519
515
  });
520
516
  }
521
- //#endregion
522
- export { C as ConnectionDetail };
517
+ export { w as ConnectionDetail };
523
518
 
524
519
  //# sourceMappingURL=ConnectionDetail.js.map