@burdenoff/microfe-botmanor 2026.1127.1 → 2026.1127.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.
- package/dist/botlit/BotmanorRootInner.js +45 -44
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/AgentA2APanel.js +63 -62
- package/dist/botlit/components/AgentA2APanel.js.map +1 -1
- package/dist/botlit/components/AgentBindingsPanel.js +125 -124
- package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
- package/dist/botlit/components/AgentFallbackModelsPicker.js +56 -55
- package/dist/botlit/components/AgentFallbackModelsPicker.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
- package/dist/botlit/components/AssistantChannelPanel.js +40 -39
- package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js +36 -35
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
- package/dist/botlit/components/BotAgentsPanel.js +104 -103
- package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
- package/dist/botlit/components/BotFormFields.js +118 -117
- package/dist/botlit/components/BotFormFields.js.map +1 -1
- package/dist/botlit/components/BucketDialogs.js +110 -110
- package/dist/botlit/components/BucketDialogs.js.map +1 -1
- package/dist/botlit/components/ChannelRoutesPanel.js +29 -28
- package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
- package/dist/botlit/components/CreateChannelRouteDialog.js +105 -105
- package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
- package/dist/botlit/components/DescribeBotDialog.js +86 -86
- package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
- package/dist/botlit/components/EmptyState.d.ts +8 -0
- package/dist/botlit/components/EmptyState.js +43 -30
- package/dist/botlit/components/EmptyState.js.map +1 -1
- package/dist/botlit/components/HandoffConfigPanel.js +125 -124
- package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
- package/dist/botlit/components/HandoffTargetPickers.js +42 -41
- package/dist/botlit/components/HandoffTargetPickers.js.map +1 -1
- package/dist/botlit/components/KnowledgeBackendMigrationPanel.js +106 -105
- package/dist/botlit/components/KnowledgeBackendMigrationPanel.js.map +1 -1
- package/dist/botlit/components/KnowledgeRetrievalTestPanel.js +76 -75
- package/dist/botlit/components/KnowledgeRetrievalTestPanel.js.map +1 -1
- package/dist/botlit/components/KnowledgeSourceImportPanel.js +76 -75
- package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
- package/dist/botlit/components/ModelRegistrationPanel.js +70 -69
- package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
- package/dist/botlit/components/StorePackageDraftCard.js +87 -86
- package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
- package/dist/botlit/components/SuggestionsPanel.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +263 -262
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +47 -46
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +426 -425
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +1 -0
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +248 -247
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +324 -310
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +1 -0
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +126 -121
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +1 -0
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketDetailPage.js +1 -0
- package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +1 -0
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +267 -266
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +187 -186
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/ChatPage.js +69 -68
- package/dist/botlit/pages/ChatPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +1 -0
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +191 -191
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/HandoffsPage.js +65 -64
- package/dist/botlit/pages/HandoffsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +146 -145
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +235 -234
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +152 -151
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +180 -179
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +145 -145
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +293 -292
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +229 -229
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.js +280 -279
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.js +31 -30
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +204 -203
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +153 -153
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +305 -304
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +1 -0
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +173 -173
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/utils/confirmAction.d.ts +13 -11
- package/dist/botlit/utils/confirmAction.js +26 -4
- package/dist/botlit/utils/confirmAction.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,33 +5,33 @@ import { BOTMANOR_PERMISSIONS as r } from "../permissions/botmanorPermissions.js
|
|
|
5
5
|
import { BotmanorPermissionGate as i } from "../permissions/useBotmanorPermissions.js";
|
|
6
6
|
import { Card as ee, CardContent as te, CardDescription as a, CardHeader as o, CardTitle as s } from "../components/Card.js";
|
|
7
7
|
import { Button as c } from "../components/Button.js";
|
|
8
|
-
import { Input as
|
|
9
|
-
import { Badge as
|
|
10
|
-
import { EmptyState as
|
|
11
|
-
import { ErrorState as
|
|
12
|
-
import { useAllChannelRoutes as
|
|
13
|
-
import { LoadMore as
|
|
14
|
-
import { ChannelRoutesPanel as
|
|
8
|
+
import { Input as ne } from "../components/Input.js";
|
|
9
|
+
import { Badge as l, StatusBadge as re } from "../components/Badge.js";
|
|
10
|
+
import { EmptyState as u } from "../components/EmptyState.js";
|
|
11
|
+
import { ErrorState as ie } from "../components/ErrorState.js";
|
|
12
|
+
import { useAllChannelRoutes as ae, useChannelConnectors as oe, useChannelOverview as se } from "../hooks/useChannels.js";
|
|
13
|
+
import { LoadMore as ce } from "../components/LoadMore.js";
|
|
14
|
+
import { ChannelRoutesPanel as le } from "../components/ChannelRoutesPanel.js";
|
|
15
15
|
import "../hooks/index.js";
|
|
16
|
-
import { formatRelativeTime as
|
|
17
|
-
import { channelTypeLabel as
|
|
16
|
+
import { formatRelativeTime as d } from "../utils/formatters.js";
|
|
17
|
+
import { channelTypeLabel as f } from "../utils/channelConnectors.js";
|
|
18
18
|
import "../permissions/index.js";
|
|
19
|
-
import { useMemo as
|
|
20
|
-
import { GlassCard as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import { Link as
|
|
23
|
-
import { Filter as
|
|
19
|
+
import { useMemo as p, useRef as m, useState as h } from "react";
|
|
20
|
+
import { GlassCard as g, PagePurpose as _, ThemedSelect as v } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
22
|
+
import { Link as x, useSearchParams as ue } from "react-router";
|
|
23
|
+
import { Filter as de, Globe as S, Hash as C, MessageSquare as w, Plus as fe, Search as pe, Slack as T, Webhook as E } from "lucide-react";
|
|
24
24
|
// src/botlit/pages/ChannelsPage.tsx
|
|
25
|
-
var
|
|
25
|
+
var D = ({ type: e, className: t }) => {
|
|
26
26
|
switch (e) {
|
|
27
|
-
case "SLACK": return /* @__PURE__ */
|
|
28
|
-
case "DISCORD": return /* @__PURE__ */
|
|
29
|
-
case "TEAMS": return /* @__PURE__ */
|
|
30
|
-
case "WEB_WIDGET": return /* @__PURE__ */
|
|
31
|
-
case "WEBHOOK": return /* @__PURE__ */
|
|
32
|
-
default: return /* @__PURE__ */
|
|
27
|
+
case "SLACK": return /* @__PURE__ */ y(T, { className: t });
|
|
28
|
+
case "DISCORD": return /* @__PURE__ */ y(C, { className: t });
|
|
29
|
+
case "TEAMS": return /* @__PURE__ */ y(w, { className: t });
|
|
30
|
+
case "WEB_WIDGET": return /* @__PURE__ */ y(S, { className: t });
|
|
31
|
+
case "WEBHOOK": return /* @__PURE__ */ y(E, { className: t });
|
|
32
|
+
default: return /* @__PURE__ */ y(w, { className: t });
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, O = ["connectors", "routes"], k = [
|
|
35
35
|
"WEB_WIDGET",
|
|
36
36
|
"SLACK",
|
|
37
37
|
"TEAMS",
|
|
@@ -39,87 +39,87 @@ var O = ({ type: e, className: t }) => {
|
|
|
39
39
|
"WHATSAPP",
|
|
40
40
|
"WEBHOOK",
|
|
41
41
|
"CUSTOM"
|
|
42
|
-
],
|
|
42
|
+
], A = [
|
|
43
43
|
"ACTIVE",
|
|
44
44
|
"DRAFT",
|
|
45
45
|
"DEPRECATED",
|
|
46
46
|
"ARCHIVED"
|
|
47
|
-
],
|
|
48
|
-
let
|
|
47
|
+
], j = "h-10 rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm", M = () => {
|
|
48
|
+
let S = t(), { getPath: C, navigateTo: T } = e(), [E, M] = ue(), N = E.get("tab") === "routes" ? "routes" : "connectors", P = m({
|
|
49
49
|
connectors: null,
|
|
50
50
|
routes: null
|
|
51
|
-
}), [
|
|
52
|
-
search:
|
|
53
|
-
type:
|
|
54
|
-
status:
|
|
51
|
+
}), [F, I] = h(""), [L, R] = h(!1), [z, B] = h(""), [V, H] = h(""), me = p(() => ({
|
|
52
|
+
search: F,
|
|
53
|
+
type: z ? [z] : void 0,
|
|
54
|
+
status: V ? [V] : void 0
|
|
55
55
|
}), [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
]), { data:
|
|
56
|
+
F,
|
|
57
|
+
z,
|
|
58
|
+
V
|
|
59
|
+
]), { data: U, loading: W, error: G, refetch: he, hasMore: ge, loadingMore: _e, loadMore: ve } = oe(me), { data: K, error: ye, refetch: q } = se(), { data: J, loading: be, error: Y, refetch: xe } = ae(), X = !be && !Y, Se = p(() => {
|
|
60
60
|
let e = /* @__PURE__ */ new Map();
|
|
61
|
-
for (let t of
|
|
61
|
+
for (let t of J) t.isActive && e.set(t.connectorId, (e.get(t.connectorId) ?? 0) + 1);
|
|
62
62
|
return e;
|
|
63
|
-
}, [
|
|
64
|
-
let t = new URLSearchParams(
|
|
65
|
-
e === "connectors" ? t.delete("tab") : t.set("tab", e),
|
|
66
|
-
},
|
|
63
|
+
}, [J]), Ce = !!(F.trim() || z || V), we = K?.connectorCount === 0, Z = (e) => {
|
|
64
|
+
let t = new URLSearchParams(E);
|
|
65
|
+
e === "connectors" ? t.delete("tab") : t.set("tab", e), M(t, { replace: !0 });
|
|
66
|
+
}, Q = (e, t) => {
|
|
67
67
|
let n = null;
|
|
68
|
-
if (e.key === "ArrowRight" ? n = (t + 1) %
|
|
68
|
+
if (e.key === "ArrowRight" ? n = (t + 1) % O.length : e.key === "ArrowLeft" ? n = (t - 1 + O.length) % O.length : e.key === "Home" ? n = 0 : e.key === "End" && (n = O.length - 1), n === null) return;
|
|
69
69
|
e.preventDefault();
|
|
70
|
-
let r =
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
active:
|
|
74
|
-
count:
|
|
75
|
-
}) :
|
|
70
|
+
let r = O[n];
|
|
71
|
+
Z(r), P.current[r]?.focus();
|
|
72
|
+
}, Te = (e) => e === "connectors" ? K ? S("botlit.channels.tabs.connectorsCount", "Connectors ({{count}})", { count: K.connectorCount }) : S("botlit.channels.tabs.connectors", "Connectors") : K ? S("botlit.channels.tabs.routesCount", "Routes ({{active}} on of {{count}})", {
|
|
73
|
+
active: K.activeRouteCount,
|
|
74
|
+
count: K.routeCount
|
|
75
|
+
}) : S("botlit.channels.tabs.routes", "Routes"), $ = /* @__PURE__ */ y(i, {
|
|
76
76
|
permission: r.CHANNEL_CREATE,
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
leftIcon: /* @__PURE__ */
|
|
79
|
-
onClick: () =>
|
|
80
|
-
children:
|
|
77
|
+
children: /* @__PURE__ */ y(c, {
|
|
78
|
+
leftIcon: /* @__PURE__ */ y(fe, { size: 16 }),
|
|
79
|
+
onClick: () => T("channels/new"),
|
|
80
|
+
children: S("botlit.channels.actions.addChannel", "Add Channel")
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
title:
|
|
85
|
-
description:
|
|
86
|
-
actions: /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ y(n, {
|
|
84
|
+
title: S("botlit.channels.title", "Channels"),
|
|
85
|
+
description: S("botlit.channels.description", "Connect agents to messaging platforms and configure routing"),
|
|
86
|
+
actions: /* @__PURE__ */ b("div", {
|
|
87
87
|
className: "flex gap-2",
|
|
88
|
-
children: [/* @__PURE__ */
|
|
88
|
+
children: [/* @__PURE__ */ y(c, {
|
|
89
89
|
variant: "outline",
|
|
90
|
-
onClick: () =>
|
|
91
|
-
children:
|
|
92
|
-
}), !(
|
|
90
|
+
onClick: () => T("channels/routes"),
|
|
91
|
+
children: S("botlit.channels.actions.viewRoutes", "View Routes")
|
|
92
|
+
}), !(N === "connectors" && we) && $]
|
|
93
93
|
}),
|
|
94
|
-
children: /* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ b("div", {
|
|
95
95
|
className: "space-y-6",
|
|
96
96
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
icon: /* @__PURE__ */
|
|
99
|
-
children:
|
|
97
|
+
/* @__PURE__ */ y(_, {
|
|
98
|
+
icon: /* @__PURE__ */ y(w, { size: 18 }),
|
|
99
|
+
children: S("botlit.channels.purpose", "Channels are where your bots actually talk to people. Connect a messaging platform — a website chat widget, Slack, Microsoft Teams, Discord, WhatsApp or a custom webhook — then add a route that points an incoming location at the bot that should answer. Use this page to manage those connectors and routing rules in one place.")
|
|
100
100
|
}),
|
|
101
|
-
|
|
101
|
+
ye && /* @__PURE__ */ b("div", {
|
|
102
102
|
role: "alert",
|
|
103
103
|
className: "flex flex-wrap items-center justify-between gap-3 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle px-4 py-3 text-sm",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ y("span", {
|
|
105
105
|
className: "text-text-primary",
|
|
106
|
-
children:
|
|
107
|
-
}), /* @__PURE__ */
|
|
106
|
+
children: S("botlit.channels.errors.overview", "Channel totals could not be loaded.")
|
|
107
|
+
}), /* @__PURE__ */ y(c, {
|
|
108
108
|
variant: "outline",
|
|
109
109
|
size: "sm",
|
|
110
|
-
onClick: () => void
|
|
111
|
-
children:
|
|
110
|
+
onClick: () => void q(),
|
|
111
|
+
children: S("botlit.common.retry", "Retry")
|
|
112
112
|
})]
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ y("div", {
|
|
115
115
|
role: "tablist",
|
|
116
|
-
"aria-label":
|
|
116
|
+
"aria-label": S("botlit.channels.tabs.label", "Channels sections"),
|
|
117
117
|
className: "flex gap-1 border-b border-border-subtle",
|
|
118
|
-
children:
|
|
119
|
-
let n =
|
|
120
|
-
return /* @__PURE__ */
|
|
118
|
+
children: O.map((e, t) => {
|
|
119
|
+
let n = N === e;
|
|
120
|
+
return /* @__PURE__ */ y("button", {
|
|
121
121
|
ref: (t) => {
|
|
122
|
-
|
|
122
|
+
P.current[e] = t;
|
|
123
123
|
},
|
|
124
124
|
type: "button",
|
|
125
125
|
role: "tab",
|
|
@@ -127,253 +127,254 @@ var O = ({ type: e, className: t }) => {
|
|
|
127
127
|
"aria-selected": n,
|
|
128
128
|
"aria-controls": `channels-panel-${e}`,
|
|
129
129
|
tabIndex: n ? 0 : -1,
|
|
130
|
-
onClick: () =>
|
|
131
|
-
onKeyDown: (e) =>
|
|
130
|
+
onClick: () => Z(e),
|
|
131
|
+
onKeyDown: (e) => Q(e, t),
|
|
132
132
|
className: `px-4 py-2 text-sm font-medium border-b-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ${n ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
|
|
133
|
-
children:
|
|
133
|
+
children: Te(e)
|
|
134
134
|
}, e);
|
|
135
135
|
})
|
|
136
136
|
}),
|
|
137
|
-
|
|
137
|
+
N === "connectors" && /* @__PURE__ */ b("div", {
|
|
138
138
|
role: "tabpanel",
|
|
139
139
|
id: "channels-panel-connectors",
|
|
140
140
|
"aria-labelledby": "channels-tab-connectors",
|
|
141
141
|
className: "space-y-6",
|
|
142
142
|
children: [
|
|
143
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ b("div", {
|
|
144
144
|
className: "flex flex-wrap items-center gap-4",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ b("div", {
|
|
146
146
|
className: "relative flex-1 max-w-md",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ y(pe, {
|
|
148
148
|
"aria-hidden": "true",
|
|
149
149
|
className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary"
|
|
150
|
-
}), /* @__PURE__ */
|
|
151
|
-
"aria-label":
|
|
152
|
-
placeholder:
|
|
153
|
-
value:
|
|
154
|
-
onChange: (e) =>
|
|
150
|
+
}), /* @__PURE__ */ y(ne, {
|
|
151
|
+
"aria-label": S("botlit.channels.searchConnectors", "Search connectors"),
|
|
152
|
+
placeholder: S("botlit.channels.searchConnectorsPlaceholder", "Search connectors..."),
|
|
153
|
+
value: F,
|
|
154
|
+
onChange: (e) => I(e.target.value),
|
|
155
155
|
className: "pl-9"
|
|
156
156
|
})]
|
|
157
|
-
}), /* @__PURE__ */
|
|
157
|
+
}), /* @__PURE__ */ y(c, {
|
|
158
158
|
variant: "outline",
|
|
159
|
-
leftIcon: /* @__PURE__ */
|
|
160
|
-
"aria-expanded":
|
|
159
|
+
leftIcon: /* @__PURE__ */ y(de, { size: 16 }),
|
|
160
|
+
"aria-expanded": L,
|
|
161
161
|
"aria-controls": "channels-connector-filters",
|
|
162
|
-
onClick: () =>
|
|
163
|
-
children:
|
|
162
|
+
onClick: () => R((e) => !e),
|
|
163
|
+
children: S("botlit.channels.filters.filters", "Filters")
|
|
164
164
|
})]
|
|
165
165
|
}),
|
|
166
|
-
|
|
166
|
+
L && /* @__PURE__ */ b("div", {
|
|
167
167
|
id: "channels-connector-filters",
|
|
168
168
|
className: "flex flex-wrap items-end gap-4",
|
|
169
169
|
children: [
|
|
170
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ b("label", {
|
|
171
171
|
className: "grid gap-1 text-xs text-text-secondary",
|
|
172
|
-
children: [
|
|
173
|
-
className:
|
|
174
|
-
value:
|
|
175
|
-
onChange: (e) =>
|
|
176
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [S("botlit.channels.filters.type", "Type"), /* @__PURE__ */ b(v, {
|
|
173
|
+
className: j,
|
|
174
|
+
value: z,
|
|
175
|
+
onChange: (e) => B(e.target.value),
|
|
176
|
+
children: [/* @__PURE__ */ y("option", {
|
|
177
177
|
value: "",
|
|
178
|
-
children:
|
|
179
|
-
}),
|
|
178
|
+
children: S("botlit.channels.filters.allTypes", "All types")
|
|
179
|
+
}), k.map((e) => /* @__PURE__ */ y("option", {
|
|
180
180
|
value: e,
|
|
181
|
-
children:
|
|
181
|
+
children: f(e, S)
|
|
182
182
|
}, e))]
|
|
183
183
|
})]
|
|
184
184
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ b("label", {
|
|
186
186
|
className: "grid gap-1 text-xs text-text-secondary",
|
|
187
|
-
children: [
|
|
188
|
-
className:
|
|
189
|
-
value:
|
|
190
|
-
onChange: (e) =>
|
|
191
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [S("botlit.channels.filters.status", "Status"), /* @__PURE__ */ b(v, {
|
|
188
|
+
className: j,
|
|
189
|
+
value: V,
|
|
190
|
+
onChange: (e) => H(e.target.value),
|
|
191
|
+
children: [/* @__PURE__ */ y("option", {
|
|
192
192
|
value: "",
|
|
193
|
-
children:
|
|
194
|
-
}),
|
|
193
|
+
children: S("botlit.channels.filters.allStatuses", "All statuses")
|
|
194
|
+
}), A.map((e) => /* @__PURE__ */ y("option", {
|
|
195
195
|
value: e,
|
|
196
|
-
children:
|
|
196
|
+
children: S(`botlit.status.${e.toLowerCase()}`, e.charAt(0) + e.slice(1).toLowerCase())
|
|
197
197
|
}, e))]
|
|
198
198
|
})]
|
|
199
199
|
}),
|
|
200
|
-
(
|
|
200
|
+
(z || V) && /* @__PURE__ */ y(c, {
|
|
201
201
|
variant: "ghost",
|
|
202
202
|
size: "sm",
|
|
203
203
|
onClick: () => {
|
|
204
|
-
|
|
204
|
+
B(""), H("");
|
|
205
205
|
},
|
|
206
|
-
children:
|
|
206
|
+
children: S("botlit.channels.filters.clear", "Clear filters")
|
|
207
207
|
})
|
|
208
208
|
]
|
|
209
209
|
}),
|
|
210
|
-
|
|
210
|
+
W ? /* @__PURE__ */ y("div", {
|
|
211
211
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
212
212
|
children: [
|
|
213
213
|
1,
|
|
214
214
|
2,
|
|
215
215
|
3
|
|
216
|
-
].map((e) => /* @__PURE__ */
|
|
217
|
-
}) :
|
|
218
|
-
resource:
|
|
219
|
-
error:
|
|
220
|
-
onRetry: () => void
|
|
221
|
-
}) :
|
|
216
|
+
].map((e) => /* @__PURE__ */ y("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
|
|
217
|
+
}) : G ? /* @__PURE__ */ y(ie, {
|
|
218
|
+
resource: S("botlit.channels.resource", "channel connectors"),
|
|
219
|
+
error: G,
|
|
220
|
+
onRetry: () => void he()
|
|
221
|
+
}) : U.length > 0 ? /* @__PURE__ */ y("div", {
|
|
222
222
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
223
|
-
children:
|
|
224
|
-
to:
|
|
223
|
+
children: U.map((e) => /* @__PURE__ */ y(x, {
|
|
224
|
+
to: C(`channels/${e.id}`),
|
|
225
225
|
className: "rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
|
226
|
-
children: /* @__PURE__ */
|
|
226
|
+
children: /* @__PURE__ */ b(ee, {
|
|
227
227
|
className: "h-full hover:border-primary/50 transition-colors cursor-pointer",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ y(o, { children: /* @__PURE__ */ b("div", {
|
|
229
229
|
className: "flex items-start justify-between",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
230
|
+
children: [/* @__PURE__ */ b("div", {
|
|
231
231
|
className: "flex items-center gap-3",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ y("div", {
|
|
233
233
|
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
234
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ y(D, {
|
|
235
235
|
type: e.type,
|
|
236
236
|
className: "h-5 w-5 text-primary"
|
|
237
237
|
})
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y(s, {
|
|
239
239
|
className: "text-base",
|
|
240
240
|
children: e.name
|
|
241
|
-
}), /* @__PURE__ */
|
|
241
|
+
}), /* @__PURE__ */ y(a, {
|
|
242
242
|
className: "text-xs",
|
|
243
243
|
children: e.description
|
|
244
244
|
})] })]
|
|
245
|
-
}), /* @__PURE__ */
|
|
246
|
-
}) }), /* @__PURE__ */
|
|
245
|
+
}), /* @__PURE__ */ y(re, { status: e.status })]
|
|
246
|
+
}) }), /* @__PURE__ */ y(te, { children: /* @__PURE__ */ b("div", {
|
|
247
247
|
className: "space-y-3",
|
|
248
248
|
children: [
|
|
249
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ b("div", {
|
|
250
250
|
className: "flex items-center justify-between",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ y("span", {
|
|
252
252
|
className: "text-sm text-text-secondary",
|
|
253
|
-
children:
|
|
254
|
-
}), /* @__PURE__ */
|
|
253
|
+
children: S("botlit.channels.list.type", "Type")
|
|
254
|
+
}), /* @__PURE__ */ y(l, {
|
|
255
255
|
variant: "outline",
|
|
256
|
-
children:
|
|
256
|
+
children: f(e.type, S)
|
|
257
257
|
})]
|
|
258
258
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ b("div", {
|
|
260
260
|
className: "flex items-center justify-between",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ y("span", {
|
|
262
262
|
className: "text-sm text-text-secondary",
|
|
263
|
-
children:
|
|
264
|
-
}), /* @__PURE__ */
|
|
263
|
+
children: S("botlit.channels.list.activeRoutes", "Active Routes")
|
|
264
|
+
}), /* @__PURE__ */ y(l, {
|
|
265
265
|
variant: "secondary",
|
|
266
|
-
title:
|
|
267
|
-
children:
|
|
266
|
+
title: X ? void 0 : Y ? S("botlit.channels.list.routeCountUnavailable", "Routes could not be loaded") : S("botlit.common.loading", "Loading..."),
|
|
267
|
+
children: X ? Se.get(e.id) ?? 0 : "—"
|
|
268
268
|
})]
|
|
269
269
|
}),
|
|
270
|
-
e.unroutedMessageCount > 0 && /* @__PURE__ */
|
|
270
|
+
e.unroutedMessageCount > 0 && /* @__PURE__ */ b("div", {
|
|
271
271
|
className: "flex items-center justify-between",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ y("span", {
|
|
273
273
|
className: "text-sm text-text-secondary",
|
|
274
|
-
children:
|
|
275
|
-
}), /* @__PURE__ */
|
|
274
|
+
children: S("botlit.channels.list.unrouted", "Unanswered messages")
|
|
275
|
+
}), /* @__PURE__ */ y(l, {
|
|
276
276
|
variant: "warning",
|
|
277
277
|
children: e.unroutedMessageCount
|
|
278
278
|
})]
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ y("div", {
|
|
281
281
|
className: "pt-3 border-t border-border-subtle text-xs text-text-secondary",
|
|
282
|
-
children:
|
|
282
|
+
children: S("botlit.channels.list.created", "Created {{when}}", { when: d(e.createdAt) })
|
|
283
283
|
})
|
|
284
284
|
]
|
|
285
285
|
}) })]
|
|
286
286
|
})
|
|
287
287
|
}, e.id))
|
|
288
|
-
}) :
|
|
288
|
+
}) : Ce ? /* @__PURE__ */ y(u, {
|
|
289
|
+
kind: "filtered",
|
|
289
290
|
illustration: "empty-search",
|
|
290
|
-
title:
|
|
291
|
-
description:
|
|
292
|
-
}) : /* @__PURE__ */
|
|
291
|
+
title: S("botlit.channels.empty.filtered.title", "No connectors match"),
|
|
292
|
+
description: S("botlit.channels.empty.filtered.description", "No connector matches the search and filters. Change or clear them.")
|
|
293
|
+
}) : /* @__PURE__ */ y(u, {
|
|
293
294
|
illustration: "empty-notifications",
|
|
294
|
-
title:
|
|
295
|
-
description:
|
|
295
|
+
title: S("botlit.channels.empty.connectors.title", "No channel connectors"),
|
|
296
|
+
description: S("botlit.channels.empty.connectors.description", "Connect messaging platforms to deploy agents across multiple channels."),
|
|
296
297
|
action: $
|
|
297
298
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
hasMore:
|
|
300
|
-
loadingMore:
|
|
301
|
-
onLoadMore: () => void
|
|
302
|
-
loadedCount:
|
|
299
|
+
/* @__PURE__ */ y(ce, {
|
|
300
|
+
hasMore: ge && !W,
|
|
301
|
+
loadingMore: _e,
|
|
302
|
+
onLoadMore: () => void ve(),
|
|
303
|
+
loadedCount: U.length
|
|
303
304
|
})
|
|
304
305
|
]
|
|
305
306
|
}),
|
|
306
|
-
|
|
307
|
+
N === "routes" && /* @__PURE__ */ y("div", {
|
|
307
308
|
role: "tabpanel",
|
|
308
309
|
id: "channels-panel-routes",
|
|
309
310
|
"aria-labelledby": "channels-tab-routes",
|
|
310
|
-
children: /* @__PURE__ */
|
|
311
|
+
children: /* @__PURE__ */ y(le, {
|
|
311
312
|
showSummary: !1,
|
|
312
313
|
onRoutesChanged: () => {
|
|
313
|
-
|
|
314
|
+
q(), xe();
|
|
314
315
|
}
|
|
315
316
|
})
|
|
316
317
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ b(g, {
|
|
318
319
|
treatment: "glass",
|
|
319
320
|
glow: !0,
|
|
320
321
|
className: "p-6",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
322
|
+
children: [/* @__PURE__ */ b("div", {
|
|
322
323
|
className: "mb-4",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ y("h2", {
|
|
324
325
|
className: "text-lg font-semibold tracking-tight text-text-primary",
|
|
325
|
-
children:
|
|
326
|
-
}), /* @__PURE__ */
|
|
326
|
+
children: S("botlit.channels.integrations.title", "Available Integrations")
|
|
327
|
+
}), /* @__PURE__ */ y("p", {
|
|
327
328
|
className: "text-sm text-text-secondary",
|
|
328
|
-
children:
|
|
329
|
+
children: S("botlit.channels.integrations.description", "Connect to popular messaging platforms")
|
|
329
330
|
})]
|
|
330
|
-
}), /* @__PURE__ */
|
|
331
|
+
}), /* @__PURE__ */ y("div", {
|
|
331
332
|
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",
|
|
332
333
|
children: [
|
|
333
334
|
{
|
|
334
335
|
type: "WEB_WIDGET",
|
|
335
|
-
name:
|
|
336
|
-
desc:
|
|
336
|
+
name: S("botlit.channels.integrations.webWidget", "Website chat"),
|
|
337
|
+
desc: S("botlit.channels.integrations.webWidgetDesc", "Set up from an agent's Website panel"),
|
|
337
338
|
path: "agents"
|
|
338
339
|
},
|
|
339
340
|
{
|
|
340
341
|
type: "SLACK",
|
|
341
|
-
name:
|
|
342
|
-
desc:
|
|
342
|
+
name: S("botlit.channels.integrations.slack", "Slack"),
|
|
343
|
+
desc: S("botlit.channels.integrations.slackDesc", "Workspace integration")
|
|
343
344
|
},
|
|
344
345
|
{
|
|
345
346
|
type: "TEAMS",
|
|
346
|
-
name:
|
|
347
|
-
desc:
|
|
347
|
+
name: S("botlit.channels.integrations.teams", "MS Teams"),
|
|
348
|
+
desc: S("botlit.channels.integrations.teamsDesc", "Teams app")
|
|
348
349
|
},
|
|
349
350
|
{
|
|
350
351
|
type: "DISCORD",
|
|
351
|
-
name:
|
|
352
|
-
desc:
|
|
352
|
+
name: S("botlit.channels.integrations.discord", "Discord"),
|
|
353
|
+
desc: S("botlit.channels.integrations.discordDesc", "Bot integration")
|
|
353
354
|
},
|
|
354
355
|
{
|
|
355
356
|
type: "WHATSAPP",
|
|
356
|
-
name:
|
|
357
|
-
desc:
|
|
357
|
+
name: S("botlit.channels.integrations.whatsapp", "WhatsApp"),
|
|
358
|
+
desc: S("botlit.channels.integrations.whatsappDesc", "Business API")
|
|
358
359
|
},
|
|
359
360
|
{
|
|
360
361
|
type: "WEBHOOK",
|
|
361
|
-
name:
|
|
362
|
-
desc:
|
|
362
|
+
name: S("botlit.channels.integrations.webhook", "Webhook"),
|
|
363
|
+
desc: S("botlit.channels.integrations.webhookDesc", "Custom integration")
|
|
363
364
|
}
|
|
364
|
-
].map((e) => /* @__PURE__ */ x
|
|
365
|
-
to:
|
|
365
|
+
].map((e) => /* @__PURE__ */ b(x, {
|
|
366
|
+
to: C(e.path ?? `channels/new?type=${e.type}`),
|
|
366
367
|
className: "p-4 text-center border border-border-subtle rounded-lg hover:bg-accent transition-colors",
|
|
367
368
|
children: [
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ y(D, {
|
|
369
370
|
type: e.type,
|
|
370
371
|
className: "h-8 w-8 mx-auto text-text-secondary"
|
|
371
372
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ y("p", {
|
|
373
374
|
className: "mt-2 font-medium text-sm",
|
|
374
375
|
children: e.name
|
|
375
376
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ y("p", {
|
|
377
378
|
className: "text-xs text-text-secondary",
|
|
378
379
|
children: e.desc
|
|
379
380
|
})
|
|
@@ -385,6 +386,6 @@ var O = ({ type: e, className: t }) => {
|
|
|
385
386
|
})
|
|
386
387
|
});
|
|
387
388
|
};
|
|
388
|
-
export {
|
|
389
|
+
export { M as ChannelsPage };
|
|
389
390
|
|
|
390
391
|
//# sourceMappingURL=ChannelsPage.js.map
|