@burdenoff/microfe-botmanor 2026.1203.3 → 2026.1203.5
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/botlit/BotlitRoutes.js +0 -1
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/BotmanorRootInner.js +38 -41
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
- package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
- package/dist/botlit/components/AgentA2APanel.js +20 -21
- package/dist/botlit/components/AgentA2APanel.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.js +22 -23
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
- package/dist/botlit/components/AgentBindingsPanel.js +66 -68
- package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.js +34 -35
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
- package/dist/botlit/components/BotAgentsPanel.js +59 -60
- package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
- package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
- package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
- package/dist/botlit/components/BucketDialogs.js +0 -1
- package/dist/botlit/components/BucketDialogs.js.map +1 -1
- package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
- package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
- package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
- package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
- package/dist/botlit/components/DescribeBotDialog.js +0 -1
- package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
- package/dist/botlit/components/GettingStartedChecklist.js +9 -10
- package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
- package/dist/botlit/components/HandoffConfigPanel.js +0 -1
- package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
- package/dist/botlit/components/RetentionStatusPanel.js +10 -12
- package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
- package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
- package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
- package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
- package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
- package/dist/botlit/components/StorePackageDraftCard.js +38 -39
- package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
- package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
- package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
- package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
- package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
- package/dist/botlit/components/VersionHistoryPanel.js +18 -19
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
- package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
- package/dist/botlit/hooks/useToolApprovals.js +68 -73
- package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +39 -41
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +470 -471
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +68 -69
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +277 -278
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/AiOperationsPage.js +44 -46
- package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +354 -356
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +138 -139
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +23 -24
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +32 -33
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketDetailPage.js +110 -112
- package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +115 -117
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +105 -107
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +38 -40
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/DashboardPage.js +26 -27
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +219 -220
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/HandoffsPage.js +208 -210
- package/dist/botlit/pages/HandoffsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +42 -43
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js +77 -78
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +517 -519
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +81 -83
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +30 -31
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +205 -207
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js +68 -69
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +169 -171
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
- package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
- package/dist/botlit/providers/WorkspaceFlagScope.d.ts +7 -0
- package/dist/botlit/providers/WorkspaceFlagScope.js +17 -0
- package/dist/botlit/providers/WorkspaceFlagScope.js.map +1 -0
- package/dist/botlit/providers/workspaceFlagKeys.d.ts +18 -0
- package/dist/botlit/providers/workspaceFlagKeys.js +8 -0
- package/dist/botlit/providers/workspaceFlagKeys.js.map +1 -0
- package/dist/index.js +0 -1
- package/package.json +4 -1
- package/dist/botlit/hooks/index.js +0 -21
- package/dist/botlit/index.js +0 -12
- package/dist/botlit/permissions/index.js +0 -4
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import { useBotlit as e } from "../providers/BotlitProvider.js";
|
|
2
2
|
import { isNative as t, nativeImpact as n, nativeNotify as r } from "../../utils/nativeBridge.js";
|
|
3
3
|
import { useTr as i } from "../../shared/hooks/useTr.js";
|
|
4
|
-
import { useAllBots as ee } from "../hooks/useBots.js";
|
|
5
4
|
import { PageLayout as a } from "../components/PageLayout.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { routeMetadataString as
|
|
15
|
-
import {
|
|
16
|
-
import "../hooks/
|
|
17
|
-
import { ChannelCredentialFields as
|
|
18
|
-
import { ChannelType as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { toUnion as g } from "../utils/unions.js";
|
|
22
|
-
import { useGlobalChannels as Te, useInitiateSlackConnect as Ee, useLinkIntegrationConnection as De, useMyUserPlatformConnection as Oe, useRevokeSlackConnection as ke, useToggleSlackNotifications as Ae } from "../hooks/useUserPlatformConnection.js";
|
|
5
|
+
import { Card as o, CardContent as s, CardDescription as c, CardHeader as l, CardTitle as u } from "../components/Card.js";
|
|
6
|
+
import { Button as d } from "../components/Button.js";
|
|
7
|
+
import { FormField as f, Input as ee, Textarea as te } from "../components/Input.js";
|
|
8
|
+
import { Badge as ne, StatusBadge as re } from "../components/Badge.js";
|
|
9
|
+
import { EmptyState as ie } from "../components/EmptyState.js";
|
|
10
|
+
import { ErrorState as ae } from "../components/ErrorState.js";
|
|
11
|
+
import { CreateChannelRouteDialog as oe } from "../components/CreateChannelRouteDialog.js";
|
|
12
|
+
import { useAllBots as se } from "../hooks/useBots.js";
|
|
13
|
+
import { routeMetadataString as p, useAllChannelRoutes as ce, useChannelConnector as le, useCreateChannelConnector as ue, useDeleteChannelConnector as de, useFindChannelConnector as fe, useUpdateChannelConnector as pe, useUpdateChannelRoute as me } from "../hooks/useChannels.js";
|
|
14
|
+
import { useGlobalChannels as he, useInitiateSlackConnect as ge, useLinkIntegrationConnection as _e, useMyUserPlatformConnection as ve, useRevokeSlackConnection as ye, useToggleSlackNotifications as be } from "../hooks/useUserPlatformConnection.js";
|
|
15
|
+
import { PLATFORM_CREDENTIALS as xe, connectorPlatform as Se, useActiveOrganizationId as Ce, useInboundChannel as we, useProvisionChannel as Te, validateCredentials as Ee } from "../hooks/useChannelSetup.js";
|
|
16
|
+
import { ChannelCredentialFields as De, InboundWebhookCard as Oe } from "../components/ChannelSetupPanels.js";
|
|
17
|
+
import { ChannelType as ke } from "../../generated/global-types.js";
|
|
18
|
+
import { formatRelativeTime as Ae } from "../utils/formatters.js";
|
|
19
|
+
import { toUnion as m } from "../utils/unions.js";
|
|
23
20
|
import { confirmAction as je } from "../utils/confirmAction.js";
|
|
24
|
-
import { graphqlErrorMessage as
|
|
21
|
+
import { graphqlErrorMessage as h, isNotFoundError as Me } from "../utils/errors.js";
|
|
25
22
|
import { PROVISIONED_CHANNEL_KEY as Ne, channelTypeLabel as Pe, provisionedChannelOf as Fe } from "../utils/channelConnectors.js";
|
|
26
|
-
import "../permissions/
|
|
23
|
+
import { BOTMANOR_PERMISSIONS as g } from "../permissions/botmanorPermissions.js";
|
|
24
|
+
import { BotmanorPermissionGate as _ } from "../permissions/useBotmanorPermissions.js";
|
|
27
25
|
import { useEffect as Ie, useMemo as Le, useRef as Re, useState as v } from "react";
|
|
28
26
|
import { GlassCard as ze, NextSteps as Be, PagePurpose as Ve, ThemedSelect as y } from "@burdenoff/fe-libs/ui";
|
|
29
27
|
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
@@ -51,10 +49,10 @@ var D = [
|
|
|
51
49
|
default: return /* @__PURE__ */ x(tt, { size: 18 });
|
|
52
50
|
}
|
|
53
51
|
}, k = ({ isNew: C }) => {
|
|
54
|
-
let w = i(), { connectorId: k } = He(), { navigateTo: A, workspaceId: mt } = e(), [j, ht] = Ue(), { data: M, loading: gt, error: _t, refetch: vt } =
|
|
55
|
-
channelType:
|
|
52
|
+
let w = i(), { connectorId: k } = He(), { navigateTo: A, workspaceId: mt } = e(), [j, ht] = Ue(), { data: M, loading: gt, error: _t, refetch: vt } = le(C ? void 0 : k), { data: N, loading: yt, error: P, refetch: bt } = ce(C ? void 0 : k), F = !yt && !P, { data: xt } = se(), [St, Ct] = ue(), [wt, Tt] = pe(), [Et, Dt] = de(), [Ot] = me(), I = Ce(), kt = fe(), { provision: At, discard: jt, loading: Mt } = Te(), Nt = Le(() => ({
|
|
53
|
+
channelType: ke.Communication,
|
|
56
54
|
organizationId: I ?? void 0
|
|
57
|
-
}), [I]), { data: Pt } =
|
|
55
|
+
}), [I]), { data: Pt } = he(Nt), Ft = M && Se(M.type) ? M.credentialsRefId : void 0, { data: It, loading: Lt, error: Rt, refetch: zt } = we(Ft), Bt = M?.type === "SLACK" && M?.credentialsRefId ? M.credentialsRefId : void 0, { data: L, loading: Vt, refetch: R } = ve(Bt), { initiate: Ht } = ge(), { link: Ut, loading: Wt } = _e(), { toggle: Gt, loading: Kt } = be(), { revoke: qt, loading: Jt } = ye(), [Yt, Xt] = v(null), Zt = Re(!1);
|
|
58
56
|
Ie(() => {
|
|
59
57
|
if (Zt.current) return;
|
|
60
58
|
let e = j.get("integrationConnectionId"), t = j.get("channelId");
|
|
@@ -82,10 +80,10 @@ var D = [
|
|
|
82
80
|
}, [z, tn] = v(!1), [nn, B] = v(!1), [rn, an] = v(null), on = {
|
|
83
81
|
name: "",
|
|
84
82
|
description: "",
|
|
85
|
-
type:
|
|
83
|
+
type: m(j.get("type") ?? "WEB_WIDGET", D, "WEB_WIDGET"),
|
|
86
84
|
visibility: "PRIVATE",
|
|
87
85
|
credentialsRefId: ""
|
|
88
|
-
}, [V, H] = v(on), [sn, U] = v(on), [cn, W] = v(!1), [ln, G] = v(null), [un, dn] = v(!0), [fn, pn] = v("new"), [K, q] = v({}), J =
|
|
86
|
+
}, [V, H] = v(on), [sn, U] = v(on), [cn, W] = v(!1), [ln, G] = v(null), [un, dn] = v(!0), [fn, pn] = v("new"), [K, q] = v({}), J = Se(V.type), Y = xe[V.type], X = Y ? fn : "existing", mn = J && I ? Pt.filter((e) => e.organizationId === I && e.platform === J && e.status === "ACTIVE") : [], hn = mn.some((e) => e.id === V.credentialsRefId), gn = JSON.stringify(V) !== JSON.stringify(sn) || Object.values(K).some((e) => e.trim() !== "") || !!C && (!un || fn !== "new"), Z = {};
|
|
89
87
|
V.name.trim() || (Z.name = w("botlit.channelDetail.form.errors.nameRequired", "Enter a name for the connector.")), C && J && X === "existing" && !hn && (Z.channel = w("botlit.channelDetail.form.errors.channelRequired", "Select the channel this connector routes."));
|
|
90
88
|
let Q = (e) => cn ? Z[e] : void 0;
|
|
91
89
|
Ie(() => {
|
|
@@ -114,7 +112,7 @@ var D = [
|
|
|
114
112
|
if (e.preventDefault(), W(!0), G(null), Z.name || Z.channel) return;
|
|
115
113
|
let t = un ? "ACTIVE" : "DRAFT", n = V.name.trim(), r;
|
|
116
114
|
if (J && X === "new" && Y) {
|
|
117
|
-
let e =
|
|
115
|
+
let e = Ee(Y, K);
|
|
118
116
|
if (e) {
|
|
119
117
|
G(e);
|
|
120
118
|
return;
|
|
@@ -132,7 +130,7 @@ var D = [
|
|
|
132
130
|
credentials: K
|
|
133
131
|
});
|
|
134
132
|
} catch (e) {
|
|
135
|
-
G(
|
|
133
|
+
G(h(e, w("botlit.channelDetail.form.errors.provisionFailed", "Failed to create the channel.")));
|
|
136
134
|
return;
|
|
137
135
|
}
|
|
138
136
|
}
|
|
@@ -152,7 +150,7 @@ var D = [
|
|
|
152
150
|
let e = r;
|
|
153
151
|
await kt(e).catch(() => void 0) === null && await jt(e).catch(() => void 0);
|
|
154
152
|
}
|
|
155
|
-
G(
|
|
153
|
+
G(h(e, w("botlit.channelDetail.create.error", "Failed to create channel connector.")));
|
|
156
154
|
}
|
|
157
155
|
}, Sn = async () => {
|
|
158
156
|
if (!k || !M) return;
|
|
@@ -163,7 +161,7 @@ var D = [
|
|
|
163
161
|
input: { status: e ? "ACTIVE" : "DRAFT" }
|
|
164
162
|
}), E.success(e ? w("botlit.channelDetail.status.activated", "Connector activated") : w("botlit.channelDetail.status.deactivated", "Connector deactivated")), vt(), zt();
|
|
165
163
|
} catch (e) {
|
|
166
|
-
E.error(
|
|
164
|
+
E.error(h(e, w("botlit.channelDetail.status.failed", "Failed to change the connector status.")));
|
|
167
165
|
}
|
|
168
166
|
}, Cn = async (e) => {
|
|
169
167
|
if (e.preventDefault(), W(!0), G(null), k && !Z.name) try {
|
|
@@ -177,7 +175,7 @@ var D = [
|
|
|
177
175
|
}
|
|
178
176
|
}), U(V), E.success(w("botlit.channelDetail.update.success", "Channel updated")), tn(!1), W(!1), vt();
|
|
179
177
|
} catch (e) {
|
|
180
|
-
G(
|
|
178
|
+
G(h(e, w("botlit.channelDetail.update.error", "Failed to update channel connector.")));
|
|
181
179
|
}
|
|
182
180
|
}, wn = async () => {
|
|
183
181
|
if (!k || !M || !F) return;
|
|
@@ -195,26 +193,26 @@ var D = [
|
|
|
195
193
|
try {
|
|
196
194
|
await Et(k);
|
|
197
195
|
} catch (e) {
|
|
198
|
-
t() && r("error"), E.error(
|
|
196
|
+
t() && r("error"), E.error(h(e, w("botlit.channelDetail.delete.error", "The connector could not be deleted.")));
|
|
199
197
|
return;
|
|
200
198
|
}
|
|
201
199
|
if (t() && r("success"), E.success(w("botlit.channelDetail.delete.success", "Connector \"{{name}}\" deleted", { name: M.name })), i) try {
|
|
202
200
|
await kt(i) === null && await jt(i);
|
|
203
201
|
} catch (e) {
|
|
204
|
-
E.warning(
|
|
202
|
+
E.warning(h(e, w("botlit.channelDetail.delete.channelLeft", "The connector was deleted, but its channel could not be removed. Delete it from Channels in Settings.")));
|
|
205
203
|
}
|
|
206
204
|
A("channels");
|
|
207
205
|
}
|
|
208
206
|
}, Tn = async (e) => {
|
|
209
207
|
an(e.id);
|
|
210
|
-
let t =
|
|
208
|
+
let t = p(e, "locationName") ?? e.locationId;
|
|
211
209
|
try {
|
|
212
210
|
await Ot({
|
|
213
211
|
routeId: e.id,
|
|
214
212
|
input: { isActive: !e.isActive }
|
|
215
213
|
}), E.success(e.isActive ? w("botlit.channelRoutes.toggle.off", "Route turned off: {{location}}", { location: t }) : w("botlit.channelRoutes.toggle.on", "Route turned on: {{location}}", { location: t })), bt();
|
|
216
214
|
} catch (e) {
|
|
217
|
-
E.error(
|
|
215
|
+
E.error(h(e, w("botlit.channelRoutes.toggle.failed", "The route could not be changed.")));
|
|
218
216
|
} finally {
|
|
219
217
|
an(null);
|
|
220
218
|
}
|
|
@@ -223,8 +221,8 @@ var D = [
|
|
|
223
221
|
let e = {
|
|
224
222
|
name: M.name,
|
|
225
223
|
description: M.description || "",
|
|
226
|
-
type:
|
|
227
|
-
visibility:
|
|
224
|
+
type: m(M.type, D, "CUSTOM"),
|
|
225
|
+
visibility: m(M.visibility, ct, "PRIVATE"),
|
|
228
226
|
credentialsRefId: M.credentialsRefId || ""
|
|
229
227
|
};
|
|
230
228
|
H(e), U(e), W(!1), G(null), tn(!0);
|
|
@@ -251,12 +249,12 @@ var D = [
|
|
|
251
249
|
description: w("botlit.channelDetail.create.description", "Set up a new channel for your AI agents"),
|
|
252
250
|
actions: /* @__PURE__ */ S("div", {
|
|
253
251
|
className: "flex gap-2",
|
|
254
|
-
children: [/* @__PURE__ */ x(
|
|
252
|
+
children: [/* @__PURE__ */ x(d, {
|
|
255
253
|
type: "button",
|
|
256
254
|
variant: "outline",
|
|
257
255
|
onClick: () => void vn(),
|
|
258
256
|
children: w("botlit.common.cancel", "Cancel")
|
|
259
|
-
}), /* @__PURE__ */ x(
|
|
257
|
+
}), /* @__PURE__ */ x(d, {
|
|
260
258
|
type: "submit",
|
|
261
259
|
form: dt,
|
|
262
260
|
leftIcon: /* @__PURE__ */ x(nt, { size: 16 }),
|
|
@@ -276,15 +274,15 @@ var D = [
|
|
|
276
274
|
className: "text-sm text-status-error-text",
|
|
277
275
|
children: w("botlit.channelDetail.form.errors.summary", "Fix the highlighted fields to create the connector.")
|
|
278
276
|
}),
|
|
279
|
-
/* @__PURE__ */ S(
|
|
277
|
+
/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(l, { children: /* @__PURE__ */ x(u, { children: w("botlit.channelDetail.form.basics", "Basic Information") }) }), /* @__PURE__ */ S(s, {
|
|
280
278
|
className: "space-y-4",
|
|
281
279
|
children: [
|
|
282
|
-
/* @__PURE__ */ x(
|
|
280
|
+
/* @__PURE__ */ x(f, {
|
|
283
281
|
label: w("botlit.channelDetail.form.name", "Connector Name"),
|
|
284
282
|
htmlFor: "channel-connector-name",
|
|
285
283
|
required: !0,
|
|
286
284
|
error: Q("name"),
|
|
287
|
-
children: /* @__PURE__ */ x(
|
|
285
|
+
children: /* @__PURE__ */ x(ee, {
|
|
288
286
|
id: "channel-connector-name",
|
|
289
287
|
placeholder: w("botlit.channelDetail.form.namePlaceholder", "e.g., Production Slack"),
|
|
290
288
|
value: V.name,
|
|
@@ -296,10 +294,10 @@ var D = [
|
|
|
296
294
|
})
|
|
297
295
|
})
|
|
298
296
|
}),
|
|
299
|
-
/* @__PURE__ */ x(
|
|
297
|
+
/* @__PURE__ */ x(f, {
|
|
300
298
|
label: w("botlit.channelDetail.form.description", "Description"),
|
|
301
299
|
htmlFor: "channel-connector-description",
|
|
302
|
-
children: /* @__PURE__ */ x(
|
|
300
|
+
children: /* @__PURE__ */ x(te, {
|
|
303
301
|
id: "channel-connector-description",
|
|
304
302
|
placeholder: w("botlit.channelDetail.form.descriptionPlaceholder", "What is this channel connector for?"),
|
|
305
303
|
value: V.description,
|
|
@@ -313,7 +311,7 @@ var D = [
|
|
|
313
311
|
}),
|
|
314
312
|
/* @__PURE__ */ S("div", {
|
|
315
313
|
className: "grid grid-cols-2 gap-4",
|
|
316
|
-
children: [/* @__PURE__ */ x(
|
|
314
|
+
children: [/* @__PURE__ */ x(f, {
|
|
317
315
|
label: w("botlit.channelDetail.form.type", "Channel Type"),
|
|
318
316
|
htmlFor: "channel-connector-type",
|
|
319
317
|
required: !0,
|
|
@@ -331,7 +329,7 @@ var D = [
|
|
|
331
329
|
children: Pe(e, w)
|
|
332
330
|
}, e))
|
|
333
331
|
})
|
|
334
|
-
}), /* @__PURE__ */ x(
|
|
332
|
+
}), /* @__PURE__ */ x(f, {
|
|
335
333
|
label: w("botlit.channelDetail.form.visibility", "Visibility"),
|
|
336
334
|
htmlFor: "channel-connector-visibility",
|
|
337
335
|
children: /* @__PURE__ */ x(y, {
|
|
@@ -363,10 +361,10 @@ var D = [
|
|
|
363
361
|
})
|
|
364
362
|
]
|
|
365
363
|
})] }),
|
|
366
|
-
J && /* @__PURE__ */ S(
|
|
364
|
+
J && /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ S(l, { children: [/* @__PURE__ */ S(u, {
|
|
367
365
|
className: "flex items-center gap-2",
|
|
368
366
|
children: [/* @__PURE__ */ x(tt, { size: 18 }), w("botlit.channelDetail.platform.title", "Platform Connection")]
|
|
369
|
-
}), /* @__PURE__ */ x(
|
|
367
|
+
}), /* @__PURE__ */ x(c, { children: Y ? w("botlit.channelDetail.platform.descriptionCredentials", "Enter the credentials of your platform app, or link a channel that is already set up.") : w("botlit.channelDetail.platform.descriptionExisting", "Link a channel that is already set up for this platform.") })] }), /* @__PURE__ */ S(s, {
|
|
370
368
|
className: "space-y-4",
|
|
371
369
|
children: [Y && /* @__PURE__ */ S("div", {
|
|
372
370
|
className: "flex gap-4 text-sm",
|
|
@@ -389,11 +387,11 @@ var D = [
|
|
|
389
387
|
onChange: () => pn("existing")
|
|
390
388
|
}), w("botlit.channelDetail.platform.modeExisting", "Use an existing channel")]
|
|
391
389
|
})]
|
|
392
|
-
}), X === "new" && Y ? /* @__PURE__ */ x(
|
|
390
|
+
}), X === "new" && Y ? /* @__PURE__ */ x(De, {
|
|
393
391
|
definition: Y,
|
|
394
392
|
values: K,
|
|
395
393
|
onChange: q
|
|
396
|
-
}) : /* @__PURE__ */ x(
|
|
394
|
+
}) : /* @__PURE__ */ x(f, {
|
|
397
395
|
label: w("botlit.channelDetail.platform.channel", "Channel"),
|
|
398
396
|
htmlFor: "channel-connector-channel",
|
|
399
397
|
description: w("botlit.channelDetail.platform.channelHint", "Channels of this platform in your organization"),
|
|
@@ -438,7 +436,7 @@ var D = [
|
|
|
438
436
|
});
|
|
439
437
|
if (_t && !Me(_t)) return /* @__PURE__ */ x(a, {
|
|
440
438
|
title: w("botlit.channelDetail.loadError.title", "Connector unavailable"),
|
|
441
|
-
children: /* @__PURE__ */ x(
|
|
439
|
+
children: /* @__PURE__ */ x(ae, {
|
|
442
440
|
resource: w("botlit.channelDetail.resource", "this channel connector"),
|
|
443
441
|
error: _t,
|
|
444
442
|
onRetry: () => void vt()
|
|
@@ -446,23 +444,23 @@ var D = [
|
|
|
446
444
|
});
|
|
447
445
|
if (!M) return /* @__PURE__ */ x(a, {
|
|
448
446
|
title: w("botlit.channelDetail.notFound.title", "Connector Not Found"),
|
|
449
|
-
children: /* @__PURE__ */ x(
|
|
447
|
+
children: /* @__PURE__ */ x(ie, {
|
|
450
448
|
kind: "not-found",
|
|
451
449
|
illustration: "empty-notifications",
|
|
452
450
|
title: w("botlit.channelDetail.notFound.title", "Connector Not Found"),
|
|
453
451
|
description: w("botlit.channelDetail.notFound.description", "This channel connector doesn't exist in this workspace."),
|
|
454
|
-
action: /* @__PURE__ */ x(
|
|
452
|
+
action: /* @__PURE__ */ x(d, {
|
|
455
453
|
onClick: () => A("channels"),
|
|
456
454
|
children: w("botlit.channelDetail.backToChannels", "Back to Channels")
|
|
457
455
|
})
|
|
458
456
|
})
|
|
459
457
|
});
|
|
460
|
-
let $ =
|
|
458
|
+
let $ = m(M.type, D, "CUSTOM"), kn = N.filter((e) => e.isActive).length, An = (e) => xt.find((t) => t.id === e.appId)?.name ?? p(e, "appName") ?? w("botlit.channelRoutes.unknownBot", "Unknown bot");
|
|
461
459
|
return /* @__PURE__ */ x(a, {
|
|
462
460
|
title: /* @__PURE__ */ S("div", {
|
|
463
461
|
className: "flex items-center gap-3",
|
|
464
462
|
children: [
|
|
465
|
-
/* @__PURE__ */ x(
|
|
463
|
+
/* @__PURE__ */ x(d, {
|
|
466
464
|
variant: "ghost",
|
|
467
465
|
size: "icon",
|
|
468
466
|
"aria-label": w("botlit.channelDetail.backToChannels", "Back to Channels"),
|
|
@@ -475,7 +473,7 @@ var D = [
|
|
|
475
473
|
}),
|
|
476
474
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("div", {
|
|
477
475
|
className: "flex items-center gap-2",
|
|
478
|
-
children: [/* @__PURE__ */ x("span", { children: M.name }), /* @__PURE__ */ x(
|
|
476
|
+
children: [/* @__PURE__ */ x("span", { children: M.name }), /* @__PURE__ */ x(re, { status: M.status })]
|
|
479
477
|
}), /* @__PURE__ */ x("p", {
|
|
480
478
|
className: "text-sm font-normal text-text-secondary",
|
|
481
479
|
children: M.description
|
|
@@ -484,29 +482,29 @@ var D = [
|
|
|
484
482
|
}),
|
|
485
483
|
actions: /* @__PURE__ */ S("div", {
|
|
486
484
|
className: "flex gap-2",
|
|
487
|
-
children: [/* @__PURE__ */ x(
|
|
488
|
-
permission:
|
|
489
|
-
children: /* @__PURE__ */ x(
|
|
485
|
+
children: [/* @__PURE__ */ x(_, {
|
|
486
|
+
permission: g.CHANNEL_CREATE,
|
|
487
|
+
children: /* @__PURE__ */ x(d, {
|
|
490
488
|
variant: "outline",
|
|
491
489
|
leftIcon: /* @__PURE__ */ x(Qe, { size: 16 }),
|
|
492
490
|
onClick: () => B(!0),
|
|
493
491
|
children: w("botlit.channelDetail.routes.add", "Add Route")
|
|
494
492
|
})
|
|
495
|
-
}), z ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(
|
|
493
|
+
}), z ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(d, {
|
|
496
494
|
type: "button",
|
|
497
495
|
variant: "outline",
|
|
498
496
|
onClick: () => void yn(),
|
|
499
497
|
children: w("botlit.common.cancel", "Cancel")
|
|
500
|
-
}), /* @__PURE__ */ x(
|
|
498
|
+
}), /* @__PURE__ */ x(d, {
|
|
501
499
|
type: "submit",
|
|
502
500
|
form: ft,
|
|
503
501
|
leftIcon: /* @__PURE__ */ x(nt, { size: 16 }),
|
|
504
502
|
isLoading: Tt.loading,
|
|
505
503
|
children: w("botlit.common.save", "Save")
|
|
506
504
|
})] }) : /* @__PURE__ */ S(b, { children: [
|
|
507
|
-
/* @__PURE__ */ x(
|
|
508
|
-
permission:
|
|
509
|
-
children: /* @__PURE__ */ x(
|
|
505
|
+
/* @__PURE__ */ x(_, {
|
|
506
|
+
permission: g.CHANNEL_UPDATE,
|
|
507
|
+
children: /* @__PURE__ */ x(d, {
|
|
510
508
|
variant: M.status === "ACTIVE" ? "outline" : "primary",
|
|
511
509
|
leftIcon: M.status === "ACTIVE" ? /* @__PURE__ */ x(et, { size: 16 }) : /* @__PURE__ */ x($e, { size: 16 }),
|
|
512
510
|
onClick: () => void Sn(),
|
|
@@ -514,18 +512,18 @@ var D = [
|
|
|
514
512
|
children: M.status === "ACTIVE" ? w("botlit.channelDetail.actions.deactivate", "Deactivate") : w("botlit.channelDetail.actions.activate", "Activate")
|
|
515
513
|
})
|
|
516
514
|
}),
|
|
517
|
-
/* @__PURE__ */ x(
|
|
518
|
-
permission:
|
|
519
|
-
children: /* @__PURE__ */ x(
|
|
515
|
+
/* @__PURE__ */ x(_, {
|
|
516
|
+
permission: g.CHANNEL_UPDATE,
|
|
517
|
+
children: /* @__PURE__ */ x(d, {
|
|
520
518
|
variant: "outline",
|
|
521
519
|
leftIcon: /* @__PURE__ */ x(Je, { size: 16 }),
|
|
522
520
|
onClick: En,
|
|
523
521
|
children: w("botlit.common.edit", "Edit")
|
|
524
522
|
})
|
|
525
523
|
}),
|
|
526
|
-
/* @__PURE__ */ x(
|
|
527
|
-
permission:
|
|
528
|
-
children: /* @__PURE__ */ x(
|
|
524
|
+
/* @__PURE__ */ x(_, {
|
|
525
|
+
permission: g.CHANNEL_DELETE,
|
|
526
|
+
children: /* @__PURE__ */ x(d, {
|
|
529
527
|
variant: "destructive",
|
|
530
528
|
leftIcon: /* @__PURE__ */ x(at, { size: 16 }),
|
|
531
529
|
isLoading: Dt.loading,
|
|
@@ -571,19 +569,19 @@ var D = [
|
|
|
571
569
|
}
|
|
572
570
|
]
|
|
573
571
|
}),
|
|
574
|
-
z && /* @__PURE__ */ S(
|
|
572
|
+
z && /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(l, { children: /* @__PURE__ */ x(u, { children: w("botlit.channelDetail.edit.title", "Edit Channel") }) }), /* @__PURE__ */ x(s, { children: /* @__PURE__ */ S("form", {
|
|
575
573
|
id: ft,
|
|
576
574
|
noValidate: !0,
|
|
577
575
|
className: "space-y-4",
|
|
578
576
|
onSubmit: (e) => void Cn(e),
|
|
579
577
|
children: [
|
|
580
578
|
On,
|
|
581
|
-
/* @__PURE__ */ x(
|
|
579
|
+
/* @__PURE__ */ x(f, {
|
|
582
580
|
label: w("botlit.channelDetail.form.name", "Connector Name"),
|
|
583
581
|
htmlFor: "channel-connector-edit-name",
|
|
584
582
|
required: !0,
|
|
585
583
|
error: Q("name"),
|
|
586
|
-
children: /* @__PURE__ */ x(
|
|
584
|
+
children: /* @__PURE__ */ x(ee, {
|
|
587
585
|
id: "channel-connector-edit-name",
|
|
588
586
|
value: V.name,
|
|
589
587
|
maxLength: lt,
|
|
@@ -594,10 +592,10 @@ var D = [
|
|
|
594
592
|
})
|
|
595
593
|
})
|
|
596
594
|
}),
|
|
597
|
-
/* @__PURE__ */ x(
|
|
595
|
+
/* @__PURE__ */ x(f, {
|
|
598
596
|
label: w("botlit.channelDetail.form.description", "Description"),
|
|
599
597
|
htmlFor: "channel-connector-edit-description",
|
|
600
|
-
children: /* @__PURE__ */ x(
|
|
598
|
+
children: /* @__PURE__ */ x(te, {
|
|
601
599
|
id: "channel-connector-edit-description",
|
|
602
600
|
value: V.description,
|
|
603
601
|
maxLength: ut,
|
|
@@ -608,7 +606,7 @@ var D = [
|
|
|
608
606
|
rows: 2
|
|
609
607
|
})
|
|
610
608
|
}),
|
|
611
|
-
/* @__PURE__ */ x(
|
|
609
|
+
/* @__PURE__ */ x(f, {
|
|
612
610
|
label: w("botlit.channelDetail.form.visibility", "Visibility"),
|
|
613
611
|
htmlFor: "channel-connector-edit-visibility",
|
|
614
612
|
children: /* @__PURE__ */ x(y, {
|
|
@@ -627,7 +625,7 @@ var D = [
|
|
|
627
625
|
/* @__PURE__ */ S("div", {
|
|
628
626
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
629
627
|
children: [
|
|
630
|
-
/* @__PURE__ */ x(
|
|
628
|
+
/* @__PURE__ */ x(o, { children: /* @__PURE__ */ S(s, {
|
|
631
629
|
className: "pt-6 text-center",
|
|
632
630
|
children: [
|
|
633
631
|
/* @__PURE__ */ x("div", {
|
|
@@ -656,7 +654,7 @@ var D = [
|
|
|
656
654
|
children: F ? w("botlit.channelDetail.overview.activeRoutes", "Active routes of {{count}}", { count: N.length }) : P ? w("botlit.channelDetail.overview.routesUnavailable", "Routes could not be loaded") : w("botlit.channelDetail.overview.routesLoading", "Counting routes...")
|
|
657
655
|
})]
|
|
658
656
|
}),
|
|
659
|
-
/* @__PURE__ */ x(
|
|
657
|
+
/* @__PURE__ */ x(o, { children: /* @__PURE__ */ S(s, {
|
|
660
658
|
className: "pt-6 text-center",
|
|
661
659
|
children: [
|
|
662
660
|
/* @__PURE__ */ x("p", {
|
|
@@ -669,11 +667,11 @@ var D = [
|
|
|
669
667
|
}),
|
|
670
668
|
M.lastUnroutedAt && /* @__PURE__ */ x("p", {
|
|
671
669
|
className: "mt-1 text-xs text-text-secondary",
|
|
672
|
-
children: w("botlit.channelDetail.overview.lastUnrouted", "Last {{when}}", { when:
|
|
670
|
+
children: w("botlit.channelDetail.overview.lastUnrouted", "Last {{when}}", { when: Ae(M.lastUnroutedAt) })
|
|
673
671
|
})
|
|
674
672
|
]
|
|
675
673
|
}) }),
|
|
676
|
-
/* @__PURE__ */ x(
|
|
674
|
+
/* @__PURE__ */ x(o, { children: /* @__PURE__ */ S(s, {
|
|
677
675
|
className: "pt-6 text-center",
|
|
678
676
|
children: [/* @__PURE__ */ x("p", {
|
|
679
677
|
className: "text-3xl font-bold text-text-primary",
|
|
@@ -708,20 +706,20 @@ var D = [
|
|
|
708
706
|
children: w("botlit.channelDetail.webWidget.note", "To put an assistant on your website, publish it from the agent: open the agent and use its Website panel, which sets the allowed sites and gives you the embed code.")
|
|
709
707
|
})]
|
|
710
708
|
}),
|
|
711
|
-
Ft && /* @__PURE__ */ x(
|
|
709
|
+
Ft && /* @__PURE__ */ x(Oe, {
|
|
712
710
|
channel: It,
|
|
713
711
|
loading: Lt,
|
|
714
712
|
error: Rt,
|
|
715
713
|
connectorActive: M.status === "ACTIVE",
|
|
716
714
|
workspaceId: mt,
|
|
717
|
-
hint:
|
|
718
|
-
usesInboundUrl:
|
|
715
|
+
hint: xe[M.type]?.inboundHint,
|
|
716
|
+
usesInboundUrl: xe[M.type]?.usesInboundUrl ?? !0,
|
|
719
717
|
onRefresh: () => void zt()
|
|
720
718
|
}),
|
|
721
|
-
/* @__PURE__ */ S(
|
|
719
|
+
/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(l, {
|
|
722
720
|
className: "flex flex-row items-center justify-between",
|
|
723
|
-
children: /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x(
|
|
724
|
-
}), /* @__PURE__ */ x(
|
|
721
|
+
children: /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x(u, { children: w("botlit.channelDetail.routes.title", "Routes") }), /* @__PURE__ */ x(c, { children: w("botlit.channelDetail.routes.description", "Routes connect this channel to your bots. A route that is off is ignored.") })] })
|
|
722
|
+
}), /* @__PURE__ */ x(s, { children: P ? /* @__PURE__ */ x(ae, {
|
|
725
723
|
resource: w("botlit.channelRoutes.resource", "channel routes"),
|
|
726
724
|
error: P,
|
|
727
725
|
onRetry: () => void bt()
|
|
@@ -739,7 +737,7 @@ var D = [
|
|
|
739
737
|
})
|
|
740
738
|
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("p", {
|
|
741
739
|
className: "flex items-center gap-2 font-medium",
|
|
742
|
-
children: [
|
|
740
|
+
children: [p(e, "locationName") ?? e.locationId, /* @__PURE__ */ x(ne, {
|
|
743
741
|
variant: e.isActive ? "success" : "outline",
|
|
744
742
|
children: e.isActive ? w("botlit.channelRoutes.status.on", "On") : w("botlit.channelRoutes.status.off", "Off")
|
|
745
743
|
})]
|
|
@@ -747,9 +745,9 @@ var D = [
|
|
|
747
745
|
className: "text-sm text-text-secondary",
|
|
748
746
|
children: w("botlit.channelDetail.routes.connectedTo", "Connected to: {{bot}}", { bot: An(e) })
|
|
749
747
|
})] })]
|
|
750
|
-
}), /* @__PURE__ */ x(
|
|
751
|
-
permission:
|
|
752
|
-
children: /* @__PURE__ */ x(
|
|
748
|
+
}), /* @__PURE__ */ x(_, {
|
|
749
|
+
permission: g.CHANNEL_UPDATE,
|
|
750
|
+
children: /* @__PURE__ */ x(d, {
|
|
753
751
|
variant: "outline",
|
|
754
752
|
size: "sm",
|
|
755
753
|
leftIcon: e.isActive ? /* @__PURE__ */ x(et, { size: 14 }) : /* @__PURE__ */ x($e, { size: 14 }),
|
|
@@ -759,29 +757,29 @@ var D = [
|
|
|
759
757
|
})
|
|
760
758
|
})]
|
|
761
759
|
}, e.id))
|
|
762
|
-
}) : /* @__PURE__ */ x(
|
|
760
|
+
}) : /* @__PURE__ */ x(ie, {
|
|
763
761
|
illustration: "empty-data",
|
|
764
762
|
title: w("botlit.channels.empty.routes.title", "No routes configured"),
|
|
765
763
|
description: w("botlit.channelDetail.routes.emptyDescription", "Add a route to connect this channel to a bot."),
|
|
766
|
-
action: /* @__PURE__ */ x(
|
|
767
|
-
permission:
|
|
768
|
-
children: /* @__PURE__ */ x(
|
|
764
|
+
action: /* @__PURE__ */ x(_, {
|
|
765
|
+
permission: g.CHANNEL_CREATE,
|
|
766
|
+
children: /* @__PURE__ */ x(d, {
|
|
769
767
|
leftIcon: /* @__PURE__ */ x(Qe, { size: 16 }),
|
|
770
768
|
onClick: () => B(!0),
|
|
771
769
|
children: w("botlit.channelDetail.routes.add", "Add Route")
|
|
772
770
|
})
|
|
773
771
|
})
|
|
774
772
|
}) })] }),
|
|
775
|
-
/* @__PURE__ */ x(
|
|
773
|
+
/* @__PURE__ */ x(oe, {
|
|
776
774
|
open: nn,
|
|
777
775
|
onOpenChange: B,
|
|
778
776
|
connectorId: M.id,
|
|
779
777
|
onCreated: () => void bt()
|
|
780
778
|
}),
|
|
781
|
-
M.type === "SLACK" && M.credentialsRefId && /* @__PURE__ */ S(
|
|
779
|
+
M.type === "SLACK" && M.credentialsRefId && /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ S(l, { children: [/* @__PURE__ */ S(u, {
|
|
782
780
|
className: "flex items-center gap-2",
|
|
783
781
|
children: [/* @__PURE__ */ x(T, { size: 18 }), w("botlit.channelDetail.slack.title", "Your Slack Account")]
|
|
784
|
-
}), /* @__PURE__ */ x(
|
|
782
|
+
}), /* @__PURE__ */ x(c, { children: w("botlit.channelDetail.slack.description", "Connect your personal Slack account to receive direct messages from this bot") })] }), /* @__PURE__ */ S(s, { children: [Yt && /* @__PURE__ */ S("div", {
|
|
785
783
|
role: "alert",
|
|
786
784
|
className: "mb-4 flex items-start gap-2 rounded-lg border border-status-error-border/40 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
787
785
|
children: [/* @__PURE__ */ x("span", { children: Yt }), /* @__PURE__ */ x("button", {
|
|
@@ -838,7 +836,7 @@ var D = [
|
|
|
838
836
|
}),
|
|
839
837
|
/* @__PURE__ */ x("div", {
|
|
840
838
|
className: "flex items-center gap-1",
|
|
841
|
-
children: L.isTokenExpired && /* @__PURE__ */ x(
|
|
839
|
+
children: L.isTokenExpired && /* @__PURE__ */ x(ne, {
|
|
842
840
|
variant: "outline",
|
|
843
841
|
className: "text-xs text-status-warning-text border-status-warning-border",
|
|
844
842
|
children: w("botlit.channelDetail.slack.tokenExpired", "Token expired")
|
|
@@ -863,7 +861,7 @@ var D = [
|
|
|
863
861
|
className: "text-xs text-text-secondary",
|
|
864
862
|
children: L.notificationsEnabled ? w("botlit.channelDetail.slack.notificationsOn", "You will receive bot DMs") : w("botlit.channelDetail.slack.notificationsOff", "DM notifications are paused")
|
|
865
863
|
})] })]
|
|
866
|
-
}), /* @__PURE__ */ x(
|
|
864
|
+
}), /* @__PURE__ */ x(d, {
|
|
867
865
|
variant: "outline",
|
|
868
866
|
size: "sm",
|
|
869
867
|
onClick: () => void $t(),
|
|
@@ -873,13 +871,13 @@ var D = [
|
|
|
873
871
|
}),
|
|
874
872
|
/* @__PURE__ */ S("div", {
|
|
875
873
|
className: "flex gap-2 justify-end pt-2",
|
|
876
|
-
children: [L.isTokenExpired && /* @__PURE__ */ x(
|
|
874
|
+
children: [L.isTokenExpired && /* @__PURE__ */ x(d, {
|
|
877
875
|
variant: "outline",
|
|
878
876
|
size: "sm",
|
|
879
877
|
leftIcon: /* @__PURE__ */ x(T, { size: 14 }),
|
|
880
878
|
onClick: Qt,
|
|
881
879
|
children: w("botlit.channelDetail.slack.reconnect", "Reconnect")
|
|
882
|
-
}), /* @__PURE__ */ x(
|
|
880
|
+
}), /* @__PURE__ */ x(d, {
|
|
883
881
|
variant: "destructive",
|
|
884
882
|
size: "sm",
|
|
885
883
|
leftIcon: /* @__PURE__ */ x(ot, { size: 14 }),
|
|
@@ -906,17 +904,17 @@ var D = [
|
|
|
906
904
|
className: "text-sm text-text-secondary mt-1",
|
|
907
905
|
children: w("botlit.channelDetail.slack.notConnectedHint", "Connect your Slack account so the bot can send you direct messages")
|
|
908
906
|
})] }),
|
|
909
|
-
/* @__PURE__ */ x(
|
|
907
|
+
/* @__PURE__ */ x(d, {
|
|
910
908
|
leftIcon: /* @__PURE__ */ x(T, { size: 16 }),
|
|
911
909
|
onClick: Qt,
|
|
912
910
|
children: w("botlit.channelDetail.slack.connect", "Connect with Slack")
|
|
913
911
|
})
|
|
914
912
|
]
|
|
915
913
|
})] })] }),
|
|
916
|
-
M.defaultPolicyBindings && /* @__PURE__ */ S(
|
|
914
|
+
M.defaultPolicyBindings && /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ S(l, { children: [/* @__PURE__ */ S(u, {
|
|
917
915
|
className: "flex items-center gap-2",
|
|
918
916
|
children: [/* @__PURE__ */ x(it, { size: 18 }), w("botlit.channelDetail.policies.title", "Default Policy Bindings")]
|
|
919
|
-
}), /* @__PURE__ */ x(
|
|
917
|
+
}), /* @__PURE__ */ x(c, { children: w("botlit.channelDetail.policies.description", "Default policies applied to all routes on this connector") })] }), /* @__PURE__ */ x(s, { children: /* @__PURE__ */ x("div", {
|
|
920
918
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
921
919
|
children: Object.entries(M.defaultPolicyBindings).map(([e, t]) => t ? /* @__PURE__ */ S("div", {
|
|
922
920
|
className: "p-3 bg-bg-sunken rounded-lg",
|
|
@@ -929,10 +927,10 @@ var D = [
|
|
|
929
927
|
})]
|
|
930
928
|
}, e) : null)
|
|
931
929
|
}) })] }),
|
|
932
|
-
/* @__PURE__ */ S(
|
|
930
|
+
/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(l, { children: /* @__PURE__ */ S(u, {
|
|
933
931
|
className: "flex items-center gap-2",
|
|
934
932
|
children: [/* @__PURE__ */ x(rt, { size: 18 }), w("botlit.channelDetail.metadata.title", "Details")]
|
|
935
|
-
}) }), /* @__PURE__ */ x(
|
|
933
|
+
}) }), /* @__PURE__ */ x(s, { children: /* @__PURE__ */ S("dl", {
|
|
936
934
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
|
|
937
935
|
children: [
|
|
938
936
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
|
|
@@ -940,14 +938,14 @@ var D = [
|
|
|
940
938
|
children: w("botlit.channelDetail.metadata.created", "Created")
|
|
941
939
|
}), /* @__PURE__ */ x("dd", {
|
|
942
940
|
className: "font-medium",
|
|
943
|
-
children:
|
|
941
|
+
children: Ae(M.createdAt)
|
|
944
942
|
})] }),
|
|
945
943
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
|
|
946
944
|
className: "text-text-secondary",
|
|
947
945
|
children: w("botlit.channelDetail.metadata.updated", "Updated")
|
|
948
946
|
}), /* @__PURE__ */ x("dd", {
|
|
949
947
|
className: "font-medium",
|
|
950
|
-
children:
|
|
948
|
+
children: Ae(M.updatedAt)
|
|
951
949
|
})] }),
|
|
952
950
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
|
|
953
951
|
className: "text-text-secondary",
|