@burdenoff/microfe-integrations 2026.1107.1 → 2026.1109.1
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.
- package/dist/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +210 -190
- package/dist/generated/wspace-operations.d.ts +1195 -670
- package/dist/generated/wspace-operations.js +265 -149
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +8728 -376
- package/dist/generated/wspace-types.js +6 -3
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/integrations/ConnectSourceDialog.d.ts +0 -2
- package/dist/integrations/ConnectSourceDialog.js +13 -14
- package/dist/integrations/ConnectSourceDialog.js.map +1 -1
- package/dist/integrations/ConnectionsPanel.d.ts +0 -2
- package/dist/integrations/ConnectionsPanel.js +5 -6
- package/dist/integrations/ConnectionsPanel.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsAdminRoot.js +14 -11
- package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
- package/dist/integrations/IntegrationsRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsRoot.js +9 -6
- package/dist/integrations/IntegrationsRoot.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsUserRoutes.js +7 -8
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts +1 -3
- package/dist/integrations/components/AddConnectionDialog.js +12 -15
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts +0 -2
- package/dist/integrations/components/AuthMethodsEditor.js +1 -2
- package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
- package/dist/integrations/components/ConfirmDialog.d.ts +1 -3
- package/dist/integrations/components/ConfirmDialog.js +1 -2
- package/dist/integrations/components/ConfirmDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.d.ts +0 -2
- package/dist/integrations/components/ConnectionCard.js +9 -10
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts +0 -2
- package/dist/integrations/components/ConnectionModalFrame.js +2 -3
- package/dist/integrations/components/ConnectionModalFrame.js.map +1 -1
- package/dist/integrations/components/ConnectionSharing.d.ts +0 -2
- package/dist/integrations/components/ConnectionSharing.js +7 -8
- package/dist/integrations/components/ConnectionSharing.js.map +1 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts +0 -2
- package/dist/integrations/components/ConnectionStatusBadge.js +1 -2
- package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts +2 -4
- package/dist/integrations/components/ConnectorSubmissionCard.js +8 -9
- package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -1
- package/dist/integrations/components/MailMessageBody.d.ts +5 -0
- package/dist/integrations/components/MailMessageBody.js +174 -0
- package/dist/integrations/components/MailMessageBody.js.map +1 -0
- package/dist/integrations/components/ProviderCard.d.ts +0 -2
- package/dist/integrations/components/ProviderCard.js +8 -9
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/constants/featureFlags.d.ts +0 -1
- package/dist/integrations/constants/featureFlags.js +1 -2
- package/dist/integrations/constants/featureFlags.js.map +1 -1
- package/dist/integrations/constants/permissions.d.ts +0 -1
- package/dist/integrations/constants/permissions.js +1 -2
- package/dist/integrations/constants/permissions.js.map +1 -1
- package/dist/integrations/events/integrations-events.d.ts +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts +0 -2
- package/dist/integrations/events/useIntegrationsEventBus.js +1 -2
- package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -1
- package/dist/integrations/hooks/useConnections.d.ts +3 -14
- package/dist/integrations/hooks/useConnections.js +74 -75
- package/dist/integrations/hooks/useConnections.js.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts +2 -10
- package/dist/integrations/hooks/useConnectorSubmissions.js +23 -24
- package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
- package/dist/integrations/hooks/useFormatDate.d.ts +0 -1
- package/dist/integrations/hooks/useFormatDate.js +1 -2
- package/dist/integrations/hooks/useFormatDate.js.map +1 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.js +1 -2
- package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -1
- package/dist/integrations/hooks/useLabel.d.ts +0 -2
- package/dist/integrations/hooks/useLabel.js +1 -2
- package/dist/integrations/hooks/useLabel.js.map +1 -1
- package/dist/integrations/hooks/useLogs.d.ts +1 -6
- package/dist/integrations/hooks/useLogs.js +6 -7
- package/dist/integrations/hooks/useLogs.js.map +1 -1
- package/dist/integrations/hooks/useMailbox.d.ts +77 -40
- package/dist/integrations/hooks/useMailbox.js +113 -35
- package/dist/integrations/hooks/useMailbox.js.map +1 -1
- package/dist/integrations/hooks/useProviders.d.ts +3 -14
- package/dist/integrations/hooks/useProviders.js +42 -43
- package/dist/integrations/hooks/useProviders.js.map +1 -1
- package/dist/integrations/hooks/useTr.d.ts +0 -1
- package/dist/integrations/hooks/useTr.js +1 -2
- package/dist/integrations/hooks/useTr.js.map +1 -1
- package/dist/integrations/index.d.ts +0 -1
- package/dist/integrations/index.js +9 -8
- package/dist/integrations/pages/AddConnectionWizard.d.ts +1 -2
- package/dist/integrations/pages/AddConnectionWizard.js +291 -306
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts +1 -2
- package/dist/integrations/pages/ConnectionDetail.js +241 -246
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts +1 -2
- package/dist/integrations/pages/ConnectionLogs.js +154 -155
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.d.ts +1 -2
- package/dist/integrations/pages/ConnectionsList.js +40 -41
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorReviewQueuePage.js +9 -10
- package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorSubmissionsPage.js +138 -139
- package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsOverview.js +35 -36
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsSettings.js +7 -8
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
- package/dist/integrations/pages/MailboxInbox.d.ts +1 -2
- package/dist/integrations/pages/MailboxInbox.js +442 -280
- package/dist/integrations/pages/MailboxInbox.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts +1 -2
- package/dist/integrations/pages/ProviderCatalog.js +107 -108
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.d.ts +1 -2
- package/dist/integrations/pages/ProviderDetail.js +21 -22
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts +1 -2
- package/dist/integrations/pages/ProviderEditorPage.js +261 -264
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts +0 -2
- package/dist/integrations/providers/IntegrationsProvider.js +109 -96
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
- package/dist/integrations/store/integrationsStore.d.ts +0 -2
- package/dist/integrations/store/integrationsStore.js +1 -2
- package/dist/integrations/store/integrationsStore.js.map +1 -1
- package/dist/integrations/store/mailboxStore.d.ts +3 -2
- package/dist/integrations/store/mailboxStore.js +8 -2
- package/dist/integrations/store/mailboxStore.js.map +1 -1
- package/dist/integrations/translations/en.d.ts +0 -1
- package/dist/integrations/types/index.d.ts +0 -1
- package/dist/integrations/utils/appearance.d.ts +0 -1
- package/dist/integrations/utils/appearance.js +1 -2
- package/dist/integrations/utils/appearance.js.map +1 -1
- package/dist/integrations/utils/cn.d.ts +0 -2
- package/dist/integrations/utils/cn.js +2 -3
- package/dist/integrations/utils/cn.js.map +1 -1
- package/dist/integrations/utils/constants.d.ts +0 -1
- package/dist/integrations/utils/constants.js +1 -2
- package/dist/integrations/utils/constants.js.map +1 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts +0 -2
- package/dist/integrations/utils/integrationsHelpers.js +1 -2
- package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
- package/dist/integrations/utils/mailHtml.d.ts +31 -0
- package/dist/integrations/utils/mailHtml.js +126 -0
- package/dist/integrations/utils/mailHtml.js.map +1 -0
- package/dist/integrations/utils/mappers.d.ts +0 -2
- package/dist/integrations/utils/mappers.js +2 -3
- package/dist/integrations/utils/mappers.js.map +1 -1
- package/dist/integrations/utils/navigation.d.ts +0 -1
- package/dist/integrations/utils/navigation.js +2 -8
- package/dist/integrations/utils/navigation.js.map +1 -1
- package/dist/integrations/utils/paths.d.ts +0 -1
- package/dist/integrations/utils/paths.js +1 -2
- package/dist/integrations/utils/paths.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +878 -0
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +67 -50
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integrations/ConnectSourceDialog.d.ts.map +0 -1
- package/dist/integrations/ConnectionsPanel.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +0 -1
- package/dist/integrations/IntegrationsRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +0 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +0 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts.map +0 -1
- package/dist/integrations/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionSharing.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +0 -1
- package/dist/integrations/components/ProviderCard.d.ts.map +0 -1
- package/dist/integrations/constants/featureFlags.d.ts.map +0 -1
- package/dist/integrations/constants/permissions.d.ts.map +0 -1
- package/dist/integrations/events/integrations-events.d.ts.map +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnections.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatDate.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +0 -1
- package/dist/integrations/hooks/useLabel.d.ts.map +0 -1
- package/dist/integrations/hooks/useLogs.d.ts.map +0 -1
- package/dist/integrations/hooks/useMailbox.d.ts.map +0 -1
- package/dist/integrations/hooks/useProviders.d.ts.map +0 -1
- package/dist/integrations/hooks/useTr.d.ts.map +0 -1
- package/dist/integrations/index.d.ts.map +0 -1
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionsList.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +0 -1
- package/dist/integrations/pages/MailboxInbox.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts.map +0 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +0 -1
- package/dist/integrations/store/integrationsStore.d.ts.map +0 -1
- package/dist/integrations/store/mailboxStore.d.ts.map +0 -1
- package/dist/integrations/translations/en.d.ts.map +0 -1
- package/dist/integrations/types/index.d.ts.map +0 -1
- package/dist/integrations/utils/appearance.d.ts.map +0 -1
- package/dist/integrations/utils/cn.d.ts.map +0 -1
- package/dist/integrations/utils/constants.d.ts.map +0 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts.map +0 -1
- package/dist/integrations/utils/mappers.d.ts.map +0 -1
- package/dist/integrations/utils/navigation.d.ts.map +0 -1
- package/dist/integrations/utils/paths.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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(() =>
|
|
29
|
+
}), setTimeout(() => H(null), 5e3);
|
|
30
30
|
};
|
|
31
|
-
if (
|
|
31
|
+
if (Re || We) return /* @__PURE__ */ _("div", {
|
|
32
32
|
className: "flex flex-col items-center justify-center py-20",
|
|
33
|
-
children: [/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ g(u, {
|
|
34
34
|
size: 48,
|
|
35
35
|
className: "animate-spin text-primary"
|
|
36
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ g("span", {
|
|
37
37
|
className: "mt-6 text-sm font-medium text-text-secondary",
|
|
38
|
-
children:
|
|
38
|
+
children: D("integrations.connectionDetail.loading", "Loading connection details...")
|
|
39
39
|
})]
|
|
40
40
|
});
|
|
41
|
-
if (
|
|
41
|
+
if (A || !k) return /* @__PURE__ */ g("div", {
|
|
42
42
|
className: "p-6 max-w-4xl mx-auto",
|
|
43
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
45
|
+
children: [/* @__PURE__ */ g(ge, {
|
|
46
46
|
size: 24,
|
|
47
47
|
className: "text-status-error-text flex-shrink-0"
|
|
48
|
-
}), /* @__PURE__ */
|
|
48
|
+
}), /* @__PURE__ */ _("div", {
|
|
49
49
|
className: "flex-1",
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ g("h3", {
|
|
52
52
|
className: "font-semibold text-status-error-text mb-1",
|
|
53
|
-
children:
|
|
53
|
+
children: D("integrations.connectionDetail.error.title", "Connection not found")
|
|
54
54
|
}),
|
|
55
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ g("p", {
|
|
56
56
|
className: "text-sm text-status-error-text mb-3",
|
|
57
|
-
children:
|
|
57
|
+
children: A?.message || D("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
|
|
58
58
|
}),
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ _("div", {
|
|
60
60
|
className: "flex gap-2",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ _("button", {
|
|
62
62
|
type: "button",
|
|
63
|
-
onClick: () =>
|
|
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__ */
|
|
66
|
+
/* @__PURE__ */ g(ye, { size: 14 }),
|
|
67
67
|
" ",
|
|
68
|
-
|
|
68
|
+
D("integrations.connectionDetail.error.retry", "Try Again")
|
|
69
69
|
]
|
|
70
|
-
}), /* @__PURE__ */
|
|
70
|
+
}), /* @__PURE__ */ _("button", {
|
|
71
71
|
type: "button",
|
|
72
|
-
onClick: () =>
|
|
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__ */
|
|
75
|
+
/* @__PURE__ */ g(s, { size: 14 }),
|
|
76
76
|
" ",
|
|
77
|
-
|
|
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
|
|
87
|
-
e && (
|
|
86
|
+
let e = await ze(k.id);
|
|
87
|
+
e && (qe(e), q(e.success ? "success" : "error", e.message));
|
|
88
88
|
}, Y = async () => {
|
|
89
|
-
await
|
|
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
|
|
93
|
+
await He(k.id), q("success", D("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), K(!1), j();
|
|
94
94
|
}, Qe = async () => {
|
|
95
|
-
|
|
96
|
-
let e = await
|
|
97
|
-
title:
|
|
98
|
-
message:
|
|
99
|
-
okButtonTitle:
|
|
100
|
-
cancelButtonTitle:
|
|
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
|
-
|
|
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
|
|
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"),
|
|
107
|
+
q("error", e instanceof Error ? e.message : "Failed to delete connection"), i("error");
|
|
112
108
|
}
|
|
113
|
-
}, Z =
|
|
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:
|
|
117
|
-
description:
|
|
118
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
118
|
+
done: k.status === "active" && !!B?.success
|
|
123
119
|
},
|
|
124
|
-
...
|
|
120
|
+
...L && k.provider.authType === "oauth2" && F ? [{
|
|
125
121
|
id: "refresh",
|
|
126
|
-
label:
|
|
127
|
-
description:
|
|
128
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
136
|
-
description:
|
|
137
|
-
icon: /* @__PURE__ */
|
|
138
|
-
onClick: () =>
|
|
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__ */
|
|
137
|
+
return /* @__PURE__ */ _("div", {
|
|
142
138
|
className: "space-y-6 p-6 max-w-5xl mx-auto",
|
|
143
139
|
children: [
|
|
144
|
-
|
|
145
|
-
className:
|
|
146
|
-
children: [
|
|
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:
|
|
144
|
+
children: V.message
|
|
149
145
|
})]
|
|
150
146
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
open:
|
|
147
|
+
/* @__PURE__ */ g(De, {
|
|
148
|
+
open: Je,
|
|
153
149
|
onOpenChange: (e) => {
|
|
154
|
-
e || (
|
|
150
|
+
e || (U(!1), G(!1));
|
|
155
151
|
},
|
|
156
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ _(Ae, {
|
|
157
153
|
className: "max-w-md",
|
|
158
154
|
children: [
|
|
159
|
-
/* @__PURE__ */ v
|
|
160
|
-
$ && /* @__PURE__ */
|
|
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__ */
|
|
158
|
+
children: [/* @__PURE__ */ g("input", {
|
|
163
159
|
type: "checkbox",
|
|
164
|
-
checked:
|
|
165
|
-
onChange: (e) =>
|
|
160
|
+
checked: W,
|
|
161
|
+
onChange: (e) => G(e.target.checked),
|
|
166
162
|
className: "mt-0.5",
|
|
167
|
-
"aria-label":
|
|
168
|
-
}), /* @__PURE__ */
|
|
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:
|
|
171
|
-
}), /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
172
|
+
/* @__PURE__ */ _(Me, { children: [/* @__PURE__ */ g(ke, {
|
|
177
173
|
onClick: () => {
|
|
178
|
-
|
|
174
|
+
U(!1), G(!1);
|
|
179
175
|
},
|
|
180
|
-
children:
|
|
181
|
-
}), /* @__PURE__ */
|
|
182
|
-
disabled:
|
|
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: [
|
|
183
|
+
children: [P ? /* @__PURE__ */ g(u, {
|
|
188
184
|
size: 14,
|
|
189
185
|
className: "animate-spin"
|
|
190
|
-
}) : /* @__PURE__ */
|
|
186
|
+
}) : /* @__PURE__ */ g(p, { size: 14 }), D("integrations.connectionDetail.deleteDialog.deleteConnection", "Delete connection")]
|
|
191
187
|
})] })
|
|
192
188
|
]
|
|
193
189
|
})
|
|
194
190
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
open:
|
|
197
|
-
title:
|
|
198
|
-
description:
|
|
199
|
-
confirmLabel:
|
|
200
|
-
cancelLabel:
|
|
201
|
-
loading:
|
|
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__ */
|
|
199
|
+
icon: /* @__PURE__ */ g(f, { size: 20 }),
|
|
204
200
|
onConfirm: Ze,
|
|
205
201
|
onCancel: () => K(!1)
|
|
206
202
|
}),
|
|
207
|
-
Q && /* @__PURE__ */
|
|
208
|
-
connection:
|
|
209
|
-
open:
|
|
210
|
-
onClose: () =>
|
|
203
|
+
Q && /* @__PURE__ */ g(de, {
|
|
204
|
+
connection: k,
|
|
205
|
+
open: Ke,
|
|
206
|
+
onClose: () => z(!1),
|
|
211
207
|
onShared: () => {
|
|
212
|
-
q("success",
|
|
208
|
+
q("success", D("integrations.connectionDetail.notifications.shareSuccess", "Sharing updated")), j();
|
|
213
209
|
}
|
|
214
210
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ g("div", {
|
|
216
212
|
className: "rounded-xl border border-border-seam bg-accent-wash p-6",
|
|
217
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ _("div", {
|
|
218
214
|
className: "flex items-center gap-4",
|
|
219
215
|
children: [
|
|
220
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ g(b, {
|
|
221
217
|
variant: "ghost",
|
|
222
218
|
size: "icon",
|
|
223
|
-
onClick: () =>
|
|
224
|
-
"aria-label":
|
|
225
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
228
|
-
provider:
|
|
223
|
+
/* @__PURE__ */ g(Te, {
|
|
224
|
+
provider: k.provider,
|
|
229
225
|
size: 56
|
|
230
226
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ _("div", {
|
|
232
228
|
className: "flex-1",
|
|
233
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ _("div", {
|
|
234
230
|
className: "flex items-center gap-3",
|
|
235
231
|
children: [
|
|
236
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ g("h1", {
|
|
237
233
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
238
|
-
children:
|
|
234
|
+
children: k.name
|
|
239
235
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
status:
|
|
236
|
+
/* @__PURE__ */ g(ue, {
|
|
237
|
+
status: k.status,
|
|
242
238
|
size: "md"
|
|
243
239
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ g(fe, { connection: k })
|
|
245
241
|
]
|
|
246
|
-
}), /* @__PURE__ */
|
|
242
|
+
}), /* @__PURE__ */ _("p", {
|
|
247
243
|
className: "text-sm text-text-secondary mt-0.5",
|
|
248
244
|
children: [
|
|
249
|
-
|
|
245
|
+
k.provider.name,
|
|
250
246
|
" · ",
|
|
251
|
-
|
|
247
|
+
Ie(k.provider.authType)
|
|
252
248
|
]
|
|
253
249
|
})]
|
|
254
250
|
})
|
|
255
251
|
]
|
|
256
252
|
})
|
|
257
253
|
}),
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
icon: /* @__PURE__ */
|
|
260
|
-
children:
|
|
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
|
-
(
|
|
258
|
+
(L || R) && /* @__PURE__ */ g(Pe, {
|
|
263
259
|
storageKey: "integrations-connection-detail",
|
|
264
260
|
steps: $e
|
|
265
261
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ _("div", {
|
|
267
263
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ _(Ne, {
|
|
269
265
|
className: "p-5 space-y-4",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
271
267
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ g(o, {
|
|
273
269
|
size: 18,
|
|
274
270
|
className: "text-primary"
|
|
275
|
-
}),
|
|
276
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), D("integrations.connectionDetail.sections.info", "Connection Info")]
|
|
272
|
+
}), /* @__PURE__ */ _("div", {
|
|
277
273
|
className: "space-y-3",
|
|
278
274
|
children: [
|
|
279
|
-
|
|
275
|
+
k.description && /* @__PURE__ */ _("div", {
|
|
280
276
|
className: "py-2 border-b border-border-seam",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ g("span", {
|
|
282
278
|
className: "text-xs text-text-secondary uppercase tracking-wide",
|
|
283
|
-
children:
|
|
284
|
-
}), /* @__PURE__ */
|
|
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:
|
|
282
|
+
children: k.description
|
|
287
283
|
})]
|
|
288
284
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ _("div", {
|
|
290
286
|
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
291
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ g("span", {
|
|
292
288
|
className: "text-sm text-text-secondary",
|
|
293
|
-
children:
|
|
294
|
-
}), /* @__PURE__ */
|
|
289
|
+
children: D("integrations.connectionDetail.fields.provider", "Provider")
|
|
290
|
+
}), /* @__PURE__ */ g("span", {
|
|
295
291
|
className: "text-sm font-medium text-text-primary",
|
|
296
|
-
children:
|
|
292
|
+
children: k.provider.name
|
|
297
293
|
})]
|
|
298
294
|
}),
|
|
299
|
-
|
|
295
|
+
k.externalAccountEmail && /* @__PURE__ */ _("div", {
|
|
300
296
|
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ _("span", {
|
|
302
298
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
303
299
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ g(ve, { size: 14 }),
|
|
305
301
|
" ",
|
|
306
|
-
|
|
302
|
+
D("integrations.connectionDetail.fields.account", "Account")
|
|
307
303
|
]
|
|
308
|
-
}), /* @__PURE__ */
|
|
304
|
+
}), /* @__PURE__ */ g("span", {
|
|
309
305
|
className: "text-sm font-medium text-text-primary",
|
|
310
|
-
children:
|
|
306
|
+
children: k.externalAccountEmail
|
|
311
307
|
})]
|
|
312
308
|
}),
|
|
313
|
-
|
|
309
|
+
k.externalAccountName && /* @__PURE__ */ _("div", {
|
|
314
310
|
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
311
|
+
children: [/* @__PURE__ */ _("span", {
|
|
316
312
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
317
313
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ g(xe, { size: 14 }),
|
|
319
315
|
" ",
|
|
320
|
-
|
|
316
|
+
D("integrations.connectionDetail.fields.name", "Name")
|
|
321
317
|
]
|
|
322
|
-
}), /* @__PURE__ */
|
|
318
|
+
}), /* @__PURE__ */ g("span", {
|
|
323
319
|
className: "text-sm font-medium text-text-primary",
|
|
324
|
-
children:
|
|
320
|
+
children: k.externalAccountName
|
|
325
321
|
})]
|
|
326
322
|
}),
|
|
327
|
-
|
|
323
|
+
k.errorMessage && /* @__PURE__ */ _("div", {
|
|
328
324
|
className: "py-2 border-b border-border-seam",
|
|
329
|
-
children: [/* @__PURE__ */
|
|
325
|
+
children: [/* @__PURE__ */ g("span", {
|
|
330
326
|
className: "text-xs text-status-error-text uppercase tracking-wide",
|
|
331
|
-
children:
|
|
332
|
-
}), /* @__PURE__ */
|
|
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:
|
|
330
|
+
children: k.errorMessage
|
|
335
331
|
})]
|
|
336
332
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ _("div", {
|
|
338
334
|
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
339
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ _("span", {
|
|
340
336
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
341
337
|
children: [
|
|
342
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ g(_e, { size: 14 }),
|
|
343
339
|
" ",
|
|
344
|
-
|
|
340
|
+
D("integrations.connectionDetail.fields.lastUsed", "Last Used")
|
|
345
341
|
]
|
|
346
|
-
}), /* @__PURE__ */
|
|
342
|
+
}), /* @__PURE__ */ g("span", {
|
|
347
343
|
className: "text-sm text-text-primary",
|
|
348
|
-
children:
|
|
344
|
+
children: Le(k.lastUsedAt)
|
|
349
345
|
})]
|
|
350
346
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ _("div", {
|
|
352
348
|
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
353
|
-
children: [/* @__PURE__ */
|
|
349
|
+
children: [/* @__PURE__ */ g("span", {
|
|
354
350
|
className: "text-sm text-text-secondary",
|
|
355
|
-
children:
|
|
356
|
-
}), /* @__PURE__ */
|
|
351
|
+
children: D("integrations.connectionDetail.fields.healthCheck", "Health Check")
|
|
352
|
+
}), /* @__PURE__ */ g("span", {
|
|
357
353
|
className: "text-sm text-text-primary",
|
|
358
|
-
children:
|
|
354
|
+
children: O(k.lastHealthCheck)
|
|
359
355
|
})]
|
|
360
356
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ _("div", {
|
|
362
358
|
className: "flex items-center justify-between py-2",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ g("span", {
|
|
364
360
|
className: "text-sm text-text-secondary",
|
|
365
|
-
children:
|
|
366
|
-
}), /* @__PURE__ */
|
|
361
|
+
children: D("integrations.connectionDetail.fields.created", "Created")
|
|
362
|
+
}), /* @__PURE__ */ g("span", {
|
|
367
363
|
className: "text-sm text-text-primary",
|
|
368
|
-
children:
|
|
364
|
+
children: O(k.createdAt)
|
|
369
365
|
})]
|
|
370
366
|
})
|
|
371
367
|
]
|
|
372
368
|
})]
|
|
373
|
-
}), /* @__PURE__ */
|
|
369
|
+
}), /* @__PURE__ */ _("div", {
|
|
374
370
|
className: "space-y-4",
|
|
375
371
|
children: [
|
|
376
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ _(S, {
|
|
377
373
|
className: "border-border-seam p-5",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
379
375
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
380
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ g(f, {
|
|
381
377
|
size: 18,
|
|
382
378
|
className: "text-primary"
|
|
383
|
-
}),
|
|
384
|
-
}),
|
|
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__ */
|
|
383
|
+
children: /* @__PURE__ */ g("div", {
|
|
388
384
|
className: "flex flex-wrap gap-2",
|
|
389
|
-
children:
|
|
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__ */
|
|
390
|
+
}) : /* @__PURE__ */ g("p", {
|
|
395
391
|
className: "text-sm text-text-secondary",
|
|
396
|
-
children:
|
|
392
|
+
children: D("integrations.connectionDetail.scopes.empty", "No scopes granted.")
|
|
397
393
|
})]
|
|
398
394
|
}),
|
|
399
|
-
|
|
400
|
-
className:
|
|
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__ */
|
|
403
|
-
className:
|
|
404
|
-
children: [
|
|
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__ */
|
|
407
|
-
className:
|
|
408
|
-
children:
|
|
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__ */
|
|
406
|
+
/* @__PURE__ */ g("p", {
|
|
411
407
|
className: "text-xs text-text-secondary mt-1",
|
|
412
|
-
children:
|
|
408
|
+
children: D("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: B.latencyMs })
|
|
413
409
|
})
|
|
414
410
|
]
|
|
415
411
|
}),
|
|
416
|
-
$ && /* @__PURE__ */
|
|
412
|
+
$ && /* @__PURE__ */ _(S, {
|
|
417
413
|
className: "border-border-seam p-5",
|
|
418
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
419
415
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
420
|
-
children: [/* @__PURE__ */
|
|
416
|
+
children: [/* @__PURE__ */ g(l, {
|
|
421
417
|
size: 18,
|
|
422
418
|
className: "text-primary"
|
|
423
|
-
}),
|
|
424
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), D("integrations.connectionDetail.sections.credentialStorage", "Credential Storage")]
|
|
420
|
+
}), /* @__PURE__ */ _("div", {
|
|
425
421
|
className: "space-y-2 text-sm",
|
|
426
422
|
children: [
|
|
427
|
-
|
|
423
|
+
k.vaultId && /* @__PURE__ */ _("div", {
|
|
428
424
|
className: "flex items-center justify-between gap-3",
|
|
429
|
-
children: [/* @__PURE__ */
|
|
425
|
+
children: [/* @__PURE__ */ g("span", {
|
|
430
426
|
className: "text-text-secondary",
|
|
431
|
-
children:
|
|
432
|
-
}), /* @__PURE__ */
|
|
427
|
+
children: D("integrations.connectionDetail.fields.vault", "Vault")
|
|
428
|
+
}), /* @__PURE__ */ g("span", {
|
|
433
429
|
className: "font-medium text-text-primary break-all",
|
|
434
|
-
children:
|
|
430
|
+
children: k.vaultId
|
|
435
431
|
})]
|
|
436
432
|
}),
|
|
437
|
-
|
|
433
|
+
k.credentialSecretName && /* @__PURE__ */ _("div", {
|
|
438
434
|
className: "flex items-center justify-between gap-3",
|
|
439
|
-
children: [/* @__PURE__ */
|
|
435
|
+
children: [/* @__PURE__ */ g("span", {
|
|
440
436
|
className: "text-text-secondary",
|
|
441
|
-
children:
|
|
442
|
-
}), /* @__PURE__ */
|
|
437
|
+
children: D("integrations.connectionDetail.fields.secret", "Secret")
|
|
438
|
+
}), /* @__PURE__ */ g("span", {
|
|
443
439
|
className: "font-medium text-text-primary break-all",
|
|
444
|
-
children:
|
|
440
|
+
children: k.credentialSecretName
|
|
445
441
|
})]
|
|
446
442
|
}),
|
|
447
|
-
|
|
443
|
+
k.credentialSecretId && /* @__PURE__ */ _("div", {
|
|
448
444
|
className: "flex items-center justify-between gap-3",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ g("span", {
|
|
450
446
|
className: "text-text-secondary",
|
|
451
|
-
children:
|
|
452
|
-
}), /* @__PURE__ */
|
|
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:
|
|
450
|
+
children: k.credentialSecretId
|
|
455
451
|
})]
|
|
456
452
|
})
|
|
457
453
|
]
|
|
458
454
|
})]
|
|
459
455
|
}),
|
|
460
|
-
(
|
|
456
|
+
(L || R || Q) && /* @__PURE__ */ _(S, {
|
|
461
457
|
className: "border-border-seam p-5",
|
|
462
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
463
459
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
464
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ g(l, {
|
|
465
461
|
size: 18,
|
|
466
462
|
className: "text-primary"
|
|
467
|
-
}),
|
|
468
|
-
}), /* @__PURE__ */
|
|
463
|
+
}), D("integrations.connectionDetail.sections.actions", "Actions")]
|
|
464
|
+
}), /* @__PURE__ */ g(x, {
|
|
469
465
|
align: "start",
|
|
470
466
|
primary: {
|
|
471
|
-
label:
|
|
467
|
+
label: D("integrations.connectionDetail.actions.test", "Test Connection"),
|
|
472
468
|
onSelect: () => {
|
|
473
469
|
J();
|
|
474
470
|
},
|
|
475
471
|
disabled: Z,
|
|
476
|
-
icon:
|
|
472
|
+
icon: M ? /* @__PURE__ */ g(u, {
|
|
477
473
|
size: 14,
|
|
478
474
|
className: "animate-spin"
|
|
479
|
-
}) : /* @__PURE__ */
|
|
475
|
+
}) : /* @__PURE__ */ g(h, { size: 14 })
|
|
480
476
|
},
|
|
481
477
|
actions: [
|
|
482
478
|
...Q ? [{
|
|
483
|
-
label:
|
|
484
|
-
onSelect: () =>
|
|
479
|
+
label: D("integrations.connectionDetail.actions.share", "Share"),
|
|
480
|
+
onSelect: () => z(!0),
|
|
485
481
|
disabled: Z,
|
|
486
|
-
icon: /* @__PURE__ */
|
|
482
|
+
icon: /* @__PURE__ */ g(be, { size: 14 })
|
|
487
483
|
}] : [],
|
|
488
|
-
...
|
|
489
|
-
label:
|
|
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__ */
|
|
490
|
+
icon: /* @__PURE__ */ g(d, { size: 14 })
|
|
495
491
|
}] : [],
|
|
496
|
-
...
|
|
497
|
-
label:
|
|
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__ */
|
|
498
|
+
icon: /* @__PURE__ */ g(f, { size: 14 })
|
|
503
499
|
}, {
|
|
504
|
-
label:
|
|
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__ */
|
|
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
|
-
|
|
522
|
-
export { C as ConnectionDetail };
|
|
517
|
+
export { w as ConnectionDetail };
|
|
523
518
|
|
|
524
519
|
//# sourceMappingURL=ConnectionDetail.js.map
|