@burdenoff/microfe-botmanor 2026.1108.1 → 2026.1109.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/botlit/BotlitRoutes.d.ts +2 -0
  2. package/dist/botlit/BotlitRoutes.js +40 -52
  3. package/dist/botlit/BotlitRoutes.js.map +1 -1
  4. package/dist/botlit/BotmanorRoot.d.ts +3 -0
  5. package/dist/botlit/BotmanorRoot.js +1 -2
  6. package/dist/botlit/BotmanorRoot.js.map +1 -1
  7. package/dist/botlit/BotmanorRootInner.d.ts +3 -0
  8. package/dist/botlit/BotmanorRootInner.js +9 -10
  9. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  10. package/dist/botlit/components/AgentApprovalPanel.d.ts +20 -0
  11. package/dist/botlit/components/AgentApprovalPanel.js +49 -50
  12. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  13. package/dist/botlit/components/AiOperationsPanel.d.ts +14 -0
  14. package/dist/botlit/components/AiOperationsPanel.js +54 -55
  15. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  16. package/dist/botlit/components/AssistantChannelPanel.d.ts +3 -0
  17. package/dist/botlit/components/AssistantChannelPanel.js +12 -13
  18. package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
  19. package/dist/botlit/components/AssistantRuntimeSetupPanel.d.ts +4 -0
  20. package/dist/botlit/components/AssistantRuntimeSetupPanel.js +14 -14
  21. package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
  22. package/dist/botlit/components/AssistantWebsitePanel.d.ts +5 -0
  23. package/dist/botlit/components/AssistantWebsitePanel.js +15 -16
  24. package/dist/botlit/components/AssistantWebsitePanel.js.map +1 -1
  25. package/dist/botlit/components/Badge.d.ts +9 -0
  26. package/dist/botlit/components/Badge.js +1 -2
  27. package/dist/botlit/components/Badge.js.map +1 -1
  28. package/dist/botlit/components/Button.d.ts +10 -0
  29. package/dist/botlit/components/Button.js +1 -2
  30. package/dist/botlit/components/Button.js.map +1 -1
  31. package/dist/botlit/components/Card.d.ts +16 -0
  32. package/dist/botlit/components/Card.js +1 -2
  33. package/dist/botlit/components/Card.js.map +1 -1
  34. package/dist/botlit/components/ChannelSelectorSheet.d.ts +23 -0
  35. package/dist/botlit/components/ChannelSelectorSheet.js +1 -2
  36. package/dist/botlit/components/ChannelSelectorSheet.js.map +1 -1
  37. package/dist/botlit/components/EmptyState.d.ts +12 -0
  38. package/dist/botlit/components/EmptyState.js +1 -2
  39. package/dist/botlit/components/EmptyState.js.map +1 -1
  40. package/dist/botlit/components/ErrorState.d.ts +10 -0
  41. package/dist/botlit/components/ErrorState.js +5 -6
  42. package/dist/botlit/components/ErrorState.js.map +1 -1
  43. package/dist/botlit/components/Input.d.ts +27 -0
  44. package/dist/botlit/components/Input.js +1 -2
  45. package/dist/botlit/components/Input.js.map +1 -1
  46. package/dist/botlit/components/KnowledgeSourceImportPanel.d.ts +3 -0
  47. package/dist/botlit/components/KnowledgeSourceImportPanel.js +12 -13
  48. package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
  49. package/dist/botlit/components/ModelRegistrationPanel.d.ts +5 -0
  50. package/dist/botlit/components/ModelRegistrationPanel.js +1 -2
  51. package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
  52. package/dist/botlit/components/PageLayout.d.ts +12 -0
  53. package/dist/botlit/components/PageLayout.js +1 -2
  54. package/dist/botlit/components/PageLayout.js.map +1 -1
  55. package/dist/botlit/components/QuotaExhaustedDialog.d.ts +9 -0
  56. package/dist/botlit/components/QuotaExhaustedDialog.js +1 -2
  57. package/dist/botlit/components/QuotaExhaustedDialog.js.map +1 -1
  58. package/dist/botlit/components/RetentionStatusPanel.d.ts +2 -0
  59. package/dist/botlit/components/RetentionStatusPanel.js +18 -19
  60. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  61. package/dist/botlit/components/RouteLoader.d.ts +23 -0
  62. package/dist/botlit/components/RouteLoader.js +1 -2
  63. package/dist/botlit/components/RouteLoader.js.map +1 -1
  64. package/dist/botlit/components/VersionHistoryPanel.d.ts +12 -0
  65. package/dist/botlit/components/VersionHistoryPanel.js +23 -24
  66. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  67. package/dist/botlit/components/WorkspaceRequired.d.ts +18 -0
  68. package/dist/botlit/components/WorkspaceRequired.js +1 -2
  69. package/dist/botlit/components/WorkspaceRequired.js.map +1 -1
  70. package/dist/botlit/components/index.d.ts +14 -0
  71. package/dist/botlit/hooks/index.d.ts +35 -0
  72. package/dist/botlit/hooks/index.js +16 -16
  73. package/dist/botlit/hooks/internal/mutationInput.d.ts +56 -0
  74. package/dist/botlit/hooks/internal/mutationInput.js +1 -2
  75. package/dist/botlit/hooks/internal/mutationInput.js.map +1 -1
  76. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +54 -0
  77. package/dist/botlit/hooks/internal/workspaceGateway.js +17 -19
  78. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  79. package/dist/botlit/hooks/useA2A.d.ts +104 -0
  80. package/dist/botlit/hooks/useA2A.js +45 -45
  81. package/dist/botlit/hooks/useA2A.js.map +1 -1
  82. package/dist/botlit/hooks/useAgentApprovals.d.ts +62 -0
  83. package/dist/botlit/hooks/useAgentApprovals.js +38 -39
  84. package/dist/botlit/hooks/useAgentApprovals.js.map +1 -1
  85. package/dist/botlit/hooks/useAgents.d.ts +105 -0
  86. package/dist/botlit/hooks/useAgents.js +53 -54
  87. package/dist/botlit/hooks/useAgents.js.map +1 -1
  88. package/dist/botlit/hooks/useAiOperations.d.ts +95 -0
  89. package/dist/botlit/hooks/useAiOperations.js +20 -19
  90. package/dist/botlit/hooks/useAiOperations.js.map +1 -1
  91. package/dist/botlit/hooks/useAssistantChannels.d.ts +16 -0
  92. package/dist/botlit/hooks/useAssistantChannels.js +1 -2
  93. package/dist/botlit/hooks/useAssistantChannels.js.map +1 -1
  94. package/dist/botlit/hooks/useAssistantRuntimeSetup.d.ts +17 -0
  95. package/dist/botlit/hooks/useAssistantRuntimeSetup.js +1 -2
  96. package/dist/botlit/hooks/useAssistantRuntimeSetup.js.map +1 -1
  97. package/dist/botlit/hooks/useAssistantWebsites.d.ts +18 -0
  98. package/dist/botlit/hooks/useAssistantWebsites.js +1 -2
  99. package/dist/botlit/hooks/useAssistantWebsites.js.map +1 -1
  100. package/dist/botlit/hooks/useBotWorkflow.d.ts +22 -0
  101. package/dist/botlit/hooks/useBotWorkflow.js +1 -2
  102. package/dist/botlit/hooks/useBotWorkflow.js.map +1 -1
  103. package/dist/botlit/hooks/useBots.d.ts +68 -0
  104. package/dist/botlit/hooks/useBots.js +32 -33
  105. package/dist/botlit/hooks/useBots.js.map +1 -1
  106. package/dist/botlit/hooks/useBuckets.d.ts +62 -0
  107. package/dist/botlit/hooks/useBuckets.js +91 -58
  108. package/dist/botlit/hooks/useBuckets.js.map +1 -1
  109. package/dist/botlit/hooks/useChannels.d.ts +87 -0
  110. package/dist/botlit/hooks/useChannels.js +73 -73
  111. package/dist/botlit/hooks/useChannels.js.map +1 -1
  112. package/dist/botlit/hooks/useExecutions.d.ts +87 -0
  113. package/dist/botlit/hooks/useExecutions.js +37 -37
  114. package/dist/botlit/hooks/useExecutions.js.map +1 -1
  115. package/dist/botlit/hooks/useKnowledgeBases.d.ts +79 -0
  116. package/dist/botlit/hooks/useKnowledgeBases.js +40 -39
  117. package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
  118. package/dist/botlit/hooks/useKnowledgeSourceImports.d.ts +21 -0
  119. package/dist/botlit/hooks/useKnowledgeSourceImports.js +1 -2
  120. package/dist/botlit/hooks/useKnowledgeSourceImports.js.map +1 -1
  121. package/dist/botlit/hooks/useLLMProviders.d.ts +66 -0
  122. package/dist/botlit/hooks/useLLMProviders.js +25 -26
  123. package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
  124. package/dist/botlit/hooks/useMCPServers.d.ts +71 -0
  125. package/dist/botlit/hooks/useMCPServers.js +40 -38
  126. package/dist/botlit/hooks/useMCPServers.js.map +1 -1
  127. package/dist/botlit/hooks/usePolicies.d.ts +60 -0
  128. package/dist/botlit/hooks/usePolicies.js +49 -49
  129. package/dist/botlit/hooks/usePolicies.js.map +1 -1
  130. package/dist/botlit/hooks/usePromptTemplates.d.ts +88 -0
  131. package/dist/botlit/hooks/usePromptTemplates.js +57 -57
  132. package/dist/botlit/hooks/usePromptTemplates.js.map +1 -1
  133. package/dist/botlit/hooks/useRetention.d.ts +26 -0
  134. package/dist/botlit/hooks/useRetention.js +3 -3
  135. package/dist/botlit/hooks/useRetention.js.map +1 -1
  136. package/dist/botlit/hooks/useRetrievalProfiles.d.ts +75 -0
  137. package/dist/botlit/hooks/useRetrievalProfiles.js +47 -47
  138. package/dist/botlit/hooks/useRetrievalProfiles.js.map +1 -1
  139. package/dist/botlit/hooks/useSkills.d.ts +64 -0
  140. package/dist/botlit/hooks/useSkills.js +53 -53
  141. package/dist/botlit/hooks/useSkills.js.map +1 -1
  142. package/dist/botlit/hooks/useStore.d.ts +112 -0
  143. package/dist/botlit/hooks/useStore.js +55 -55
  144. package/dist/botlit/hooks/useStore.js.map +1 -1
  145. package/dist/botlit/hooks/useUserPlatformConnection.d.ts +80 -0
  146. package/dist/botlit/hooks/useUserPlatformConnection.js +19 -19
  147. package/dist/botlit/hooks/useUserPlatformConnection.js.map +1 -1
  148. package/dist/botlit/index.d.ts +15 -0
  149. package/dist/botlit/index.js +11 -11
  150. package/dist/botlit/pages/A2AAgentDetailPage.d.ts +6 -0
  151. package/dist/botlit/pages/A2AAgentDetailPage.js +171 -178
  152. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  153. package/dist/botlit/pages/A2ARegistryPage.d.ts +2 -0
  154. package/dist/botlit/pages/A2ARegistryPage.js +25 -26
  155. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  156. package/dist/botlit/pages/AgentApprovalsPage.d.ts +2 -0
  157. package/dist/botlit/pages/AgentApprovalsPage.js +32 -33
  158. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  159. package/dist/botlit/pages/AgentBuilderPage.d.ts +2 -0
  160. package/dist/botlit/pages/AgentBuilderPage.js +59 -60
  161. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  162. package/dist/botlit/pages/AgentDetailPage.d.ts +2 -0
  163. package/dist/botlit/pages/AgentDetailPage.js +83 -84
  164. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  165. package/dist/botlit/pages/AgentsListPage.d.ts +2 -0
  166. package/dist/botlit/pages/AgentsListPage.js +71 -72
  167. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  168. package/dist/botlit/pages/AiOperationsPage.d.ts +2 -0
  169. package/dist/botlit/pages/AiOperationsPage.js +52 -53
  170. package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
  171. package/dist/botlit/pages/BotChannelsTab.d.ts +7 -0
  172. package/dist/botlit/pages/BotChannelsTab.js +120 -122
  173. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  174. package/dist/botlit/pages/BotDetailPage.d.ts +7 -0
  175. package/dist/botlit/pages/BotDetailPage.js +353 -358
  176. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  177. package/dist/botlit/pages/BotWorkflowTab.d.ts +11 -0
  178. package/dist/botlit/pages/BotWorkflowTab.js +20 -21
  179. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  180. package/dist/botlit/pages/BotsListPage.d.ts +2 -0
  181. package/dist/botlit/pages/BotsListPage.js +52 -53
  182. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  183. package/dist/botlit/pages/BucketDetailPage.d.ts +2 -0
  184. package/dist/botlit/pages/BucketDetailPage.js +251 -0
  185. package/dist/botlit/pages/BucketDetailPage.js.map +1 -0
  186. package/dist/botlit/pages/BucketsPage.d.ts +2 -0
  187. package/dist/botlit/pages/BucketsPage.js +260 -261
  188. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  189. package/dist/botlit/pages/ChannelDetailPage.d.ts +6 -0
  190. package/dist/botlit/pages/ChannelDetailPage.js +97 -96
  191. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  192. package/dist/botlit/pages/ChannelRoutesPage.d.ts +2 -0
  193. package/dist/botlit/pages/ChannelRoutesPage.js +23 -24
  194. package/dist/botlit/pages/ChannelRoutesPage.js.map +1 -1
  195. package/dist/botlit/pages/ChannelsPage.d.ts +2 -0
  196. package/dist/botlit/pages/ChannelsPage.js +44 -45
  197. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  198. package/dist/botlit/pages/ChatPage.d.ts +1 -0
  199. package/dist/botlit/pages/ChatPage.js +10 -11
  200. package/dist/botlit/pages/ChatPage.js.map +1 -1
  201. package/dist/botlit/pages/DashboardPage.d.ts +2 -0
  202. package/dist/botlit/pages/DashboardPage.js +37 -38
  203. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  204. package/dist/botlit/pages/ExecutionDetailPage.d.ts +2 -0
  205. package/dist/botlit/pages/ExecutionDetailPage.js +47 -48
  206. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  207. package/dist/botlit/pages/ExecutionsPage.d.ts +2 -0
  208. package/dist/botlit/pages/ExecutionsPage.js +72 -70
  209. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  210. package/dist/botlit/pages/InstalledPackagesPage.d.ts +2 -0
  211. package/dist/botlit/pages/InstalledPackagesPage.js +77 -78
  212. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  213. package/dist/botlit/pages/KnowledgeBaseDetailPage.d.ts +6 -0
  214. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +171 -181
  215. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  216. package/dist/botlit/pages/KnowledgeBasesPage.d.ts +2 -0
  217. package/dist/botlit/pages/KnowledgeBasesPage.js +30 -31
  218. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  219. package/dist/botlit/pages/MCPServerDetailPage.d.ts +6 -0
  220. package/dist/botlit/pages/MCPServerDetailPage.js +82 -83
  221. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  222. package/dist/botlit/pages/MCPServersPage.d.ts +2 -0
  223. package/dist/botlit/pages/MCPServersPage.js +54 -55
  224. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  225. package/dist/botlit/pages/PoliciesPage.d.ts +2 -0
  226. package/dist/botlit/pages/PoliciesPage.js +25 -26
  227. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  228. package/dist/botlit/pages/PolicyDetailPage.d.ts +6 -0
  229. package/dist/botlit/pages/PolicyDetailPage.js +257 -259
  230. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  231. package/dist/botlit/pages/PromptStudioPage.d.ts +2 -0
  232. package/dist/botlit/pages/PromptStudioPage.js +35 -35
  233. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  234. package/dist/botlit/pages/PromptTemplateDetailPage.d.ts +6 -0
  235. package/dist/botlit/pages/PromptTemplateDetailPage.js +363 -362
  236. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  237. package/dist/botlit/pages/PromptTemplatesPage.d.ts +2 -0
  238. package/dist/botlit/pages/PromptTemplatesPage.js +26 -27
  239. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  240. package/dist/botlit/pages/RetrievalProfileDetailPage.d.ts +6 -0
  241. package/dist/botlit/pages/RetrievalProfileDetailPage.js +150 -158
  242. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  243. package/dist/botlit/pages/RetrievalProfilesPage.d.ts +2 -0
  244. package/dist/botlit/pages/RetrievalProfilesPage.js +24 -25
  245. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  246. package/dist/botlit/pages/SettingsPage.d.ts +2 -0
  247. package/dist/botlit/pages/SettingsPage.js +124 -125
  248. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  249. package/dist/botlit/pages/SkillDetailPage.d.ts +6 -0
  250. package/dist/botlit/pages/SkillDetailPage.js +216 -217
  251. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  252. package/dist/botlit/pages/SkillsPage.d.ts +2 -0
  253. package/dist/botlit/pages/SkillsPage.js +24 -25
  254. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  255. package/dist/botlit/pages/StorePackageDetailPage.d.ts +2 -0
  256. package/dist/botlit/pages/StorePackageDetailPage.js +38 -39
  257. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  258. package/dist/botlit/pages/StorePage.d.ts +2 -0
  259. package/dist/botlit/pages/StorePage.js +135 -136
  260. package/dist/botlit/pages/StorePage.js.map +1 -1
  261. package/dist/botlit/pages/index.d.ts +38 -0
  262. package/dist/botlit/permissions/PermissionRequired.d.ts +20 -0
  263. package/dist/botlit/permissions/PermissionRequired.js +10 -11
  264. package/dist/botlit/permissions/PermissionRequired.js.map +1 -1
  265. package/dist/botlit/permissions/botmanorPermissions.d.ts +82 -0
  266. package/dist/botlit/permissions/botmanorPermissions.js +1 -2
  267. package/dist/botlit/permissions/botmanorPermissions.js.map +1 -1
  268. package/dist/botlit/permissions/index.d.ts +7 -0
  269. package/dist/botlit/permissions/index.js +4 -3
  270. package/dist/botlit/permissions/useBotmanorPermissions.d.ts +41 -0
  271. package/dist/botlit/permissions/useBotmanorPermissions.js +1 -2
  272. package/dist/botlit/permissions/useBotmanorPermissions.js.map +1 -1
  273. package/dist/botlit/providers/BotlitProvider.d.ts +14 -0
  274. package/dist/botlit/providers/BotlitProvider.js +3 -3
  275. package/dist/botlit/providers/BotlitProvider.js.map +1 -1
  276. package/dist/botlit/store/botlitStore.d.ts +85 -0
  277. package/dist/botlit/store/botlitStore.js +1 -2
  278. package/dist/botlit/store/botlitStore.js.map +1 -1
  279. package/dist/botlit/store/renamedKeyStorage.d.ts +13 -0
  280. package/dist/botlit/store/renamedKeyStorage.js +1 -2
  281. package/dist/botlit/store/renamedKeyStorage.js.map +1 -1
  282. package/dist/botlit/types/index.d.ts +1008 -0
  283. package/dist/botlit/utils/cn.d.ts +2 -0
  284. package/dist/botlit/utils/cn.js +1 -2
  285. package/dist/botlit/utils/cn.js.map +1 -1
  286. package/dist/botlit/utils/embedding-models.d.ts +9 -0
  287. package/dist/botlit/utils/embedding-models.js +1 -2
  288. package/dist/botlit/utils/embedding-models.js.map +1 -1
  289. package/dist/botlit/utils/errors.d.ts +19 -0
  290. package/dist/botlit/utils/errors.js +1 -2
  291. package/dist/botlit/utils/errors.js.map +1 -1
  292. package/dist/botlit/utils/formatters.d.ts +38 -0
  293. package/dist/botlit/utils/formatters.js +0 -1
  294. package/dist/botlit/utils/formatters.js.map +1 -1
  295. package/dist/botlit/utils/navigation.d.ts +19 -0
  296. package/dist/botlit/utils/navigation.js +1 -2
  297. package/dist/botlit/utils/navigation.js.map +1 -1
  298. package/dist/botlit/utils/policyConfig.d.ts +68 -0
  299. package/dist/botlit/utils/policyConfig.js +2 -3
  300. package/dist/botlit/utils/policyConfig.js.map +1 -1
  301. package/dist/botlit/utils/unions.d.ts +25 -0
  302. package/dist/botlit/utils/unions.js +1 -2
  303. package/dist/botlit/utils/unions.js.map +1 -1
  304. package/dist/dev/App.d.ts +2 -0
  305. package/dist/dev/main.d.ts +0 -0
  306. package/dist/generated/global-operations.d.ts +197 -0
  307. package/dist/generated/global-operations.js +1 -2
  308. package/dist/generated/global-operations.js.map +1 -1
  309. package/dist/generated/global-types.d.ts +27678 -0
  310. package/dist/generated/global-types.js +1 -2
  311. package/dist/generated/global-types.js.map +1 -1
  312. package/dist/generated/wspace-operations.d.ts +5489 -0
  313. package/dist/generated/wspace-operations.js +88 -84
  314. package/dist/generated/wspace-operations.js.map +1 -1
  315. package/dist/generated/wspace-types.d.ts +152017 -0
  316. package/dist/generated/wspace-types.js +1 -2
  317. package/dist/generated/wspace-types.js.map +1 -1
  318. package/dist/index.d.ts +5 -0
  319. package/dist/index.js +5 -6
  320. package/dist/shared/hooks/useTr.d.ts +16 -0
  321. package/dist/shared/hooks/useTr.js +1 -2
  322. package/dist/shared/hooks/useTr.js.map +1 -1
  323. package/dist/stories/Badge.stories.d.ts +11 -0
  324. package/dist/stories/Button.stories.d.ts +13 -0
  325. package/dist/stories/EmptyState.stories.d.ts +8 -0
  326. package/dist/stories/StatusBadge.stories.d.ts +9 -0
  327. package/dist/test/fixtures.d.ts +39 -0
  328. package/dist/test/happydom.d.ts +1 -0
  329. package/dist/test/renderPage.d.ts +18 -0
  330. package/dist/test/setup.d.ts +9 -0
  331. package/dist/utils/nativeBridge.d.ts +2 -0
  332. package/dist/utils/nativeBridge.js +1 -2
  333. package/package.json +87 -60
  334. package/dist/botlit/hooks/useConversations.js +0 -64
  335. package/dist/botlit/hooks/useConversations.js.map +0 -1
@@ -1,27 +1,27 @@
1
1
  import { useBotlit as e } from "../providers/BotlitProvider.js";
2
2
  import { useBots as t } from "../hooks/useBots.js";
3
- import { formatRelativeTime as n } from "../utils/formatters.js";
3
+ import { isNative as n, nativeImpact as ee, nativeNotify as te } from "../../utils/nativeBridge.js";
4
4
  import { BOTMANOR_PERMISSIONS as r } from "../permissions/botmanorPermissions.js";
5
5
  import { BotmanorPermissionGate as i } from "../permissions/useBotmanorPermissions.js";
6
6
  import { PageLayout as a } from "../components/PageLayout.js";
7
- import { Button as o } from "../components/Button.js";
8
- import "../permissions/index.js";
9
- import { Card as s, CardContent as c, CardDescription as l, CardHeader as u, CardTitle as d } from "../components/Card.js";
10
- import { Badge as f, StatusBadge as ee } from "../components/Badge.js";
11
- import { isNative as te, nativeImpact as ne, nativeNotify as re } from "../../utils/nativeBridge.js";
12
- import { EmptyState as ie } from "../components/EmptyState.js";
13
- import { FormField as p, Input as m, Textarea as h } from "../components/Input.js";
14
- import { WIDGET_METADATA_KEY as ae, readWidgetConfig as g, routeMetadataString as _, useChannelConnector as oe, useChannelRoutes as se, useCreateChannelConnector as ce, useCreateChannelRoute as le, useDeleteChannelConnector as ue, useUpdateChannelConnector as de } from "../hooks/useChannels.js";
7
+ import { Card as o, CardContent as s, CardDescription as c, CardHeader as l, CardTitle as u } from "../components/Card.js";
8
+ import { Button as d } from "../components/Button.js";
9
+ import { FormField as f, Input as p, Textarea as m } from "../components/Input.js";
10
+ import { Badge as h, StatusBadge as ne } from "../components/Badge.js";
11
+ import { EmptyState as re } from "../components/EmptyState.js";
12
+ import "../hooks/index.js";
13
+ import { WIDGET_METADATA_KEY as ie, readWidgetConfig as g, routeMetadataString as _, useChannelConnector as ae, useChannelRoutes as oe, useCreateChannelConnector as se, useCreateChannelRoute as ce, useDeleteChannelConnector as le, useUpdateChannelConnector as ue } from "../hooks/useChannels.js";
14
+ import { formatRelativeTime as de } from "../utils/formatters.js";
15
15
  import { toUnion as v } from "../utils/unions.js";
16
16
  import { useInitiateSlackConnect as fe, useLinkIntegrationConnection as pe, useMyUserPlatformConnection as me, useRevokeSlackConnection as he, useToggleSlackNotifications as ge } from "../hooks/useUserPlatformConnection.js";
17
- import "../hooks/index.js";
17
+ import "../permissions/index.js";
18
18
  import { useEffect as _e, useRef as ve, useState as y } from "react";
19
19
  import { GlassCard as ye, NextSteps as be, PagePurpose as xe } from "@burdenoff/fe-libs/ui";
20
20
  import { Fragment as Se, jsx as b, jsxs as x } from "react/jsx-runtime";
21
21
  import { useParams as Ce, useSearchParams as we } from "react-router";
22
22
  import { ArrowLeft as Te, Bell as Ee, BellOff as De, CheckCircle2 as Oe, Edit as ke, ExternalLink as Ae, Globe as S, Hash as C, Loader2 as w, MessageSquare as T, Palette as E, Plus as D, Radio as O, Save as k, Settings as A, Shield as je, Slack as j, Trash2 as Me, Unlink as Ne, X as M } from "lucide-react";
23
23
  import { toast as N } from "sonner";
24
- //#region src/botlit/pages/ChannelDetailPage.tsx
24
+ // src/botlit/pages/ChannelDetailPage.tsx
25
25
  var P = [
26
26
  "WEB_WIDGET",
27
27
  "SLACK",
@@ -46,7 +46,7 @@ var Ie = ({ type: e }) => {
46
46
  default: return /* @__PURE__ */ b(O, { size: 18 });
47
47
  }
48
48
  }, F = ({ isNew: S }) => {
49
- let { connectorId: C } = Ce(), { navigateTo: F } = e(), [I, Le] = we(), { data: L, loading: Re } = oe(S ? void 0 : C), { data: ze, refetch: Be } = se(C), { data: Ve } = t(), [He, Ue] = ce(), [We, Ge] = de(), [Ke, qe] = ue(), [Je, Ye] = le(), R = L?.type === "SLACK" && L?.credentialsRefId ? L.credentialsRefId : void 0, { data: z, loading: Xe, refetch: B } = me(R), { initiate: Ze } = fe(), { link: Qe, loading: $e } = pe(), { toggle: et, loading: tt } = ge(), { revoke: nt, loading: rt } = he(), [it, V] = y(null), at = ve(!1);
49
+ let { connectorId: C } = Ce(), { navigateTo: F } = e(), [I, Le] = we(), { data: L, loading: Re } = ae(S ? void 0 : C), { data: ze, refetch: Be } = oe(C), { data: Ve } = t(), [He, Ue] = se(), [We, Ge] = ue(), [Ke, qe] = le(), [Je, Ye] = ce(), R = L?.type === "SLACK" && L?.credentialsRefId ? L.credentialsRefId : void 0, { data: z, loading: Xe, refetch: B } = me(R), { initiate: Ze } = fe(), { link: Qe, loading: $e } = pe(), { toggle: et, loading: tt } = ge(), { revoke: nt, loading: rt } = he(), [it, V] = y(null), at = ve(!1);
50
50
  _e(() => {
51
51
  if (at.current) return;
52
52
  let e = I.get("integrationConnectionId"), t = I.get("channelId");
@@ -63,7 +63,9 @@ var Ie = ({ type: e }) => {
63
63
  B
64
64
  ]);
65
65
  let ot = () => {
66
- R && Ze(R, `${window.location.origin}${window.location.pathname}`);
66
+ if (!R) return;
67
+ let e = `${window.location.origin}${window.location.pathname}`;
68
+ Ze(R, e);
67
69
  }, st = async () => {
68
70
  z && await et(z.id, !z.notificationsEnabled) && await B();
69
71
  }, ct = async () => {
@@ -84,7 +86,7 @@ var Ie = ({ type: e }) => {
84
86
  fontFamily: "Inter, sans-serif",
85
87
  starterPrompts: ""
86
88
  }), ft = () => {
87
- if (q.type === "WEB_WIDGET") return { [ae]: {
89
+ if (q.type === "WEB_WIDGET") return { [ie]: {
88
90
  allowedOrigins: Fe(Y.allowedOrigins),
89
91
  primaryColor: Y.primaryColor,
90
92
  fontFamily: Y.fontFamily,
@@ -105,7 +107,7 @@ var Ie = ({ type: e }) => {
105
107
  N.error(e instanceof Error ? e.message : "Failed to create channel connector");
106
108
  }
107
109
  }, mt = async () => {
108
- if (!(!C || !q.name)) try {
110
+ if (C && q.name) try {
109
111
  await We({
110
112
  connectorId: C,
111
113
  input: {
@@ -121,9 +123,9 @@ var Ie = ({ type: e }) => {
121
123
  }
122
124
  }, ht = async () => {
123
125
  if (C) try {
124
- await Ke(C), te() && re("success"), F("channels");
126
+ await Ke(C), n() && te("success"), F("channels");
125
127
  } catch (e) {
126
- throw te() && re("error"), e;
128
+ throw n() && te("error"), e;
127
129
  }
128
130
  }, gt = async () => {
129
131
  if (!C || !G.locationId || !G.botId) return;
@@ -169,11 +171,11 @@ var Ie = ({ type: e }) => {
169
171
  description: "Set up a new channel for your AI agents",
170
172
  actions: /* @__PURE__ */ x("div", {
171
173
  className: "flex gap-2",
172
- children: [/* @__PURE__ */ b(o, {
174
+ children: [/* @__PURE__ */ b(d, {
173
175
  variant: "outline",
174
176
  onClick: () => F("channels"),
175
177
  children: "Cancel"
176
- }), /* @__PURE__ */ b(o, {
178
+ }), /* @__PURE__ */ b(d, {
177
179
  leftIcon: /* @__PURE__ */ b(k, { size: 16 }),
178
180
  onClick: pt,
179
181
  isLoading: Ue.loading || Ge.loading,
@@ -183,13 +185,13 @@ var Ie = ({ type: e }) => {
183
185
  }),
184
186
  children: /* @__PURE__ */ x("div", {
185
187
  className: "max-w-2xl space-y-6",
186
- children: [/* @__PURE__ */ x(s, { children: [/* @__PURE__ */ b(u, { children: /* @__PURE__ */ b(d, { children: "Basic Information" }) }), /* @__PURE__ */ x(c, {
188
+ children: [/* @__PURE__ */ x(o, { children: [/* @__PURE__ */ b(l, { children: /* @__PURE__ */ b(u, { children: "Basic Information" }) }), /* @__PURE__ */ x(s, {
187
189
  className: "space-y-4",
188
190
  children: [
189
- /* @__PURE__ */ b(p, {
191
+ /* @__PURE__ */ b(f, {
190
192
  label: "Connector Name",
191
193
  required: !0,
192
- children: /* @__PURE__ */ b(m, {
194
+ children: /* @__PURE__ */ b(p, {
193
195
  placeholder: "e.g., Production Web Widget",
194
196
  value: q.name,
195
197
  onChange: (e) => J({
@@ -198,9 +200,9 @@ var Ie = ({ type: e }) => {
198
200
  })
199
201
  })
200
202
  }),
201
- /* @__PURE__ */ b(p, {
203
+ /* @__PURE__ */ b(f, {
202
204
  label: "Description",
203
- children: /* @__PURE__ */ b(h, {
205
+ children: /* @__PURE__ */ b(m, {
204
206
  placeholder: "What is this channel connector for?",
205
207
  value: q.description,
206
208
  onChange: (e) => J({
@@ -212,7 +214,7 @@ var Ie = ({ type: e }) => {
212
214
  }),
213
215
  /* @__PURE__ */ x("div", {
214
216
  className: "grid grid-cols-2 gap-4",
215
- children: [/* @__PURE__ */ b(p, {
217
+ children: [/* @__PURE__ */ b(f, {
216
218
  label: "Channel Type",
217
219
  required: !0,
218
220
  children: /* @__PURE__ */ x("select", {
@@ -253,7 +255,7 @@ var Ie = ({ type: e }) => {
253
255
  })
254
256
  ]
255
257
  })
256
- }), /* @__PURE__ */ b(p, {
258
+ }), /* @__PURE__ */ b(f, {
257
259
  label: "Visibility",
258
260
  children: /* @__PURE__ */ x("select", {
259
261
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
@@ -279,9 +281,9 @@ var Ie = ({ type: e }) => {
279
281
  })
280
282
  })]
281
283
  }),
282
- q.type !== "WEB_WIDGET" && /* @__PURE__ */ b(p, {
284
+ q.type !== "WEB_WIDGET" && /* @__PURE__ */ b(f, {
283
285
  label: "Credentials Reference",
284
- children: /* @__PURE__ */ b(m, {
286
+ children: /* @__PURE__ */ b(p, {
285
287
  placeholder: "e.g., secret-slack-token",
286
288
  value: q.credentialsRefId,
287
289
  onChange: (e) => J({
@@ -291,16 +293,16 @@ var Ie = ({ type: e }) => {
291
293
  })
292
294
  })
293
295
  ]
294
- })] }), q.type === "WEB_WIDGET" && /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(d, {
296
+ })] }), q.type === "WEB_WIDGET" && /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ b(l, { children: /* @__PURE__ */ x(u, {
295
297
  className: "flex items-center gap-2",
296
298
  children: [/* @__PURE__ */ b(E, { size: 18 }), "Widget Configuration"]
297
- }) }), /* @__PURE__ */ x(c, {
299
+ }) }), /* @__PURE__ */ x(s, {
298
300
  className: "space-y-4",
299
301
  children: [
300
- /* @__PURE__ */ b(p, {
302
+ /* @__PURE__ */ b(f, {
301
303
  label: "Allowed Origins",
302
304
  description: "Comma-separated list of domains",
303
- children: /* @__PURE__ */ b(m, {
305
+ children: /* @__PURE__ */ b(p, {
304
306
  placeholder: "e.g., https://example.com, https://app.example.com",
305
307
  value: Y.allowedOrigins,
306
308
  onChange: (e) => X({
@@ -311,7 +313,7 @@ var Ie = ({ type: e }) => {
311
313
  }),
312
314
  /* @__PURE__ */ x("div", {
313
315
  className: "grid grid-cols-2 gap-4",
314
- children: [/* @__PURE__ */ b(p, {
316
+ children: [/* @__PURE__ */ b(f, {
315
317
  label: "Primary Color",
316
318
  children: /* @__PURE__ */ x("div", {
317
319
  className: "flex gap-2",
@@ -323,7 +325,7 @@ var Ie = ({ type: e }) => {
323
325
  primaryColor: e.target.value
324
326
  }),
325
327
  className: "h-10 w-16 rounded border border-border-default"
326
- }), /* @__PURE__ */ b(m, {
328
+ }), /* @__PURE__ */ b(p, {
327
329
  value: Y.primaryColor,
328
330
  onChange: (e) => X({
329
331
  ...Y,
@@ -331,9 +333,9 @@ var Ie = ({ type: e }) => {
331
333
  })
332
334
  })]
333
335
  })
334
- }), /* @__PURE__ */ b(p, {
336
+ }), /* @__PURE__ */ b(f, {
335
337
  label: "Font Family",
336
- children: /* @__PURE__ */ b(m, {
338
+ children: /* @__PURE__ */ b(p, {
337
339
  value: Y.fontFamily,
338
340
  onChange: (e) => X({
339
341
  ...Y,
@@ -342,10 +344,10 @@ var Ie = ({ type: e }) => {
342
344
  })
343
345
  })]
344
346
  }),
345
- /* @__PURE__ */ b(p, {
347
+ /* @__PURE__ */ b(f, {
346
348
  label: "Starter Prompts",
347
349
  description: "One per line",
348
- children: /* @__PURE__ */ b(h, {
350
+ children: /* @__PURE__ */ b(m, {
349
351
  placeholder: "What can you help me with?",
350
352
  value: Y.starterPrompts,
351
353
  onChange: (e) => X({
@@ -365,11 +367,11 @@ var Ie = ({ type: e }) => {
365
367
  });
366
368
  if (!L) return /* @__PURE__ */ b(a, {
367
369
  title: "Connector Not Found",
368
- children: /* @__PURE__ */ b(ie, {
370
+ children: /* @__PURE__ */ b(re, {
369
371
  illustration: "empty-notifications",
370
372
  title: "Connector Not Found",
371
373
  description: "This channel connector doesn't exist.",
372
- action: /* @__PURE__ */ b(o, {
374
+ action: /* @__PURE__ */ b(d, {
373
375
  onClick: () => F("channels"),
374
376
  children: "Back to Channels"
375
377
  })
@@ -380,7 +382,7 @@ var Ie = ({ type: e }) => {
380
382
  title: /* @__PURE__ */ x("div", {
381
383
  className: "flex items-center gap-3",
382
384
  children: [
383
- /* @__PURE__ */ b(o, {
385
+ /* @__PURE__ */ b(d, {
384
386
  variant: "ghost",
385
387
  size: "icon",
386
388
  onClick: () => F("channels"),
@@ -392,7 +394,7 @@ var Ie = ({ type: e }) => {
392
394
  }),
393
395
  /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
394
396
  className: "flex items-center gap-2",
395
- children: [/* @__PURE__ */ b("span", { children: L.name }), /* @__PURE__ */ b(ee, { status: L.status })]
397
+ children: [/* @__PURE__ */ b("span", { children: L.name }), /* @__PURE__ */ b(ne, { status: L.status })]
396
398
  }), /* @__PURE__ */ b("p", {
397
399
  className: "text-sm font-normal text-text-secondary",
398
400
  children: L.description
@@ -403,24 +405,24 @@ var Ie = ({ type: e }) => {
403
405
  className: "flex gap-2",
404
406
  children: [/* @__PURE__ */ b(i, {
405
407
  permission: r.CHANNEL_CREATE,
406
- children: /* @__PURE__ */ b(o, {
408
+ children: /* @__PURE__ */ b(d, {
407
409
  variant: "outline",
408
410
  leftIcon: /* @__PURE__ */ b(D, { size: 16 }),
409
411
  onClick: () => W(!0),
410
412
  children: "Add Route"
411
413
  })
412
- }), H ? /* @__PURE__ */ x(Se, { children: [/* @__PURE__ */ b(o, {
414
+ }), H ? /* @__PURE__ */ x(Se, { children: [/* @__PURE__ */ b(d, {
413
415
  variant: "outline",
414
416
  onClick: () => U(!1),
415
417
  children: "Cancel"
416
- }), /* @__PURE__ */ b(o, {
418
+ }), /* @__PURE__ */ b(d, {
417
419
  leftIcon: /* @__PURE__ */ b(k, { size: 16 }),
418
420
  onClick: mt,
419
421
  isLoading: Ge.loading,
420
422
  children: "Save"
421
423
  })] }) : /* @__PURE__ */ x(Se, { children: [/* @__PURE__ */ b(i, {
422
424
  permission: r.CHANNEL_UPDATE,
423
- children: /* @__PURE__ */ b(o, {
425
+ children: /* @__PURE__ */ b(d, {
424
426
  variant: "outline",
425
427
  leftIcon: /* @__PURE__ */ b(ke, { size: 16 }),
426
428
  onClick: _t,
@@ -428,23 +430,23 @@ var Ie = ({ type: e }) => {
428
430
  })
429
431
  }), lt ? /* @__PURE__ */ x("div", {
430
432
  className: "flex gap-2",
431
- children: [/* @__PURE__ */ b(o, {
433
+ children: [/* @__PURE__ */ b(d, {
432
434
  variant: "outline",
433
435
  size: "sm",
434
436
  onClick: () => ut(!1),
435
437
  children: "Cancel"
436
- }), /* @__PURE__ */ b(o, {
438
+ }), /* @__PURE__ */ b(d, {
437
439
  variant: "destructive",
438
440
  size: "sm",
439
441
  onClick: () => {
440
- ne("medium"), ht();
442
+ ee("medium"), ht();
441
443
  },
442
444
  isLoading: qe.loading,
443
445
  children: "Confirm"
444
446
  })]
445
447
  }) : /* @__PURE__ */ b(i, {
446
448
  permission: r.CHANNEL_DELETE,
447
- children: /* @__PURE__ */ b(o, {
449
+ children: /* @__PURE__ */ b(d, {
448
450
  variant: "destructive",
449
451
  leftIcon: /* @__PURE__ */ b(Me, { size: 16 }),
450
452
  onClick: () => ut(!0),
@@ -486,23 +488,23 @@ var Ie = ({ type: e }) => {
486
488
  }
487
489
  ]
488
490
  }),
489
- dt && /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ x(u, {
491
+ dt && /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ x(l, {
490
492
  className: "flex flex-row items-center justify-between",
491
- children: [/* @__PURE__ */ b(d, { children: "Add Route" }), /* @__PURE__ */ b(o, {
493
+ children: [/* @__PURE__ */ b(u, { children: "Add Route" }), /* @__PURE__ */ b(d, {
492
494
  variant: "ghost",
493
495
  size: "icon",
494
496
  onClick: () => W(!1),
495
497
  children: /* @__PURE__ */ b(M, { size: 16 })
496
498
  })]
497
- }), /* @__PURE__ */ x(c, {
499
+ }), /* @__PURE__ */ x(s, {
498
500
  className: "space-y-4",
499
501
  children: [
500
502
  /* @__PURE__ */ x("div", {
501
503
  className: "grid grid-cols-2 gap-4",
502
- children: [/* @__PURE__ */ b(p, {
504
+ children: [/* @__PURE__ */ b(f, {
503
505
  label: "Location ID",
504
506
  required: !0,
505
- children: /* @__PURE__ */ b(m, {
507
+ children: /* @__PURE__ */ b(p, {
506
508
  placeholder: "e.g., #general or channel ID",
507
509
  value: G.locationId,
508
510
  onChange: (e) => K({
@@ -510,9 +512,9 @@ var Ie = ({ type: e }) => {
510
512
  locationId: e.target.value
511
513
  })
512
514
  })
513
- }), /* @__PURE__ */ b(p, {
515
+ }), /* @__PURE__ */ b(f, {
514
516
  label: "Location Name",
515
- children: /* @__PURE__ */ b(m, {
517
+ children: /* @__PURE__ */ b(p, {
516
518
  placeholder: "Friendly name (optional)",
517
519
  value: G.locationName,
518
520
  onChange: (e) => K({
@@ -522,7 +524,7 @@ var Ie = ({ type: e }) => {
522
524
  })
523
525
  })]
524
526
  }),
525
- /* @__PURE__ */ b(p, {
527
+ /* @__PURE__ */ b(f, {
526
528
  label: "Connect to Bot",
527
529
  required: !0,
528
530
  children: /* @__PURE__ */ x("select", {
@@ -543,11 +545,11 @@ var Ie = ({ type: e }) => {
543
545
  }),
544
546
  /* @__PURE__ */ x("div", {
545
547
  className: "flex justify-end gap-2",
546
- children: [/* @__PURE__ */ b(o, {
548
+ children: [/* @__PURE__ */ b(d, {
547
549
  variant: "outline",
548
550
  onClick: () => W(!1),
549
551
  children: "Cancel"
550
- }), /* @__PURE__ */ b(o, {
552
+ }), /* @__PURE__ */ b(d, {
551
553
  onClick: gt,
552
554
  isLoading: Ye.loading,
553
555
  disabled: !G.locationId || !G.botId,
@@ -556,13 +558,13 @@ var Ie = ({ type: e }) => {
556
558
  })
557
559
  ]
558
560
  })] }),
559
- H && /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ b(u, { children: /* @__PURE__ */ b(d, { children: "Edit Channel" }) }), /* @__PURE__ */ x(c, {
561
+ H && /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ b(l, { children: /* @__PURE__ */ b(u, { children: "Edit Channel" }) }), /* @__PURE__ */ x(s, {
560
562
  className: "space-y-4",
561
563
  children: [
562
- /* @__PURE__ */ b(p, {
564
+ /* @__PURE__ */ b(f, {
563
565
  label: "Connector Name",
564
566
  required: !0,
565
- children: /* @__PURE__ */ b(m, {
567
+ children: /* @__PURE__ */ b(p, {
566
568
  value: q.name,
567
569
  onChange: (e) => J({
568
570
  ...q,
@@ -570,9 +572,9 @@ var Ie = ({ type: e }) => {
570
572
  })
571
573
  })
572
574
  }),
573
- /* @__PURE__ */ b(p, {
575
+ /* @__PURE__ */ b(f, {
574
576
  label: "Description",
575
- children: /* @__PURE__ */ b(h, {
577
+ children: /* @__PURE__ */ b(m, {
576
578
  value: q.description,
577
579
  onChange: (e) => J({
578
580
  ...q,
@@ -581,7 +583,7 @@ var Ie = ({ type: e }) => {
581
583
  rows: 2
582
584
  })
583
585
  }),
584
- /* @__PURE__ */ b(p, {
586
+ /* @__PURE__ */ b(f, {
585
587
  label: "Visibility",
586
588
  children: /* @__PURE__ */ x("select", {
587
589
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
@@ -611,7 +613,7 @@ var Ie = ({ type: e }) => {
611
613
  /* @__PURE__ */ x("div", {
612
614
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
613
615
  children: [
614
- /* @__PURE__ */ b(s, { children: /* @__PURE__ */ x(c, {
616
+ /* @__PURE__ */ b(o, { children: /* @__PURE__ */ x(s, {
615
617
  className: "pt-6 text-center",
616
618
  children: [
617
619
  /* @__PURE__ */ b("div", {
@@ -640,7 +642,7 @@ var Ie = ({ type: e }) => {
640
642
  children: "Active Routes"
641
643
  })]
642
644
  }),
643
- /* @__PURE__ */ b(s, { children: /* @__PURE__ */ x(c, {
645
+ /* @__PURE__ */ b(o, { children: /* @__PURE__ */ x(s, {
644
646
  className: "pt-6 text-center",
645
647
  children: [/* @__PURE__ */ b("p", {
646
648
  className: "text-3xl font-bold text-text-primary capitalize",
@@ -650,7 +652,7 @@ var Ie = ({ type: e }) => {
650
652
  children: "Visibility"
651
653
  })]
652
654
  }) }),
653
- /* @__PURE__ */ b(s, { children: /* @__PURE__ */ x(c, {
655
+ /* @__PURE__ */ b(o, { children: /* @__PURE__ */ x(s, {
654
656
  className: "pt-6 text-center",
655
657
  children: [/* @__PURE__ */ b("p", {
656
658
  className: "text-3xl font-bold text-text-primary",
@@ -662,10 +664,10 @@ var Ie = ({ type: e }) => {
662
664
  }) })
663
665
  ]
664
666
  }),
665
- $ && /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(d, {
667
+ $ && /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ b(l, { children: /* @__PURE__ */ x(u, {
666
668
  className: "flex items-center gap-2",
667
669
  children: [/* @__PURE__ */ b(E, { size: 18 }), "Widget Configuration"]
668
- }) }), /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ x("div", {
670
+ }) }), /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ x("div", {
669
671
  className: "grid grid-cols-2 md:grid-cols-3 gap-6",
670
672
  children: [
671
673
  /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
@@ -673,7 +675,7 @@ var Ie = ({ type: e }) => {
673
675
  children: "Allowed Origins"
674
676
  }), $.allowedOrigins.length > 0 ? /* @__PURE__ */ b("div", {
675
677
  className: "flex flex-wrap gap-1 mt-1",
676
- children: $.allowedOrigins.map((e) => /* @__PURE__ */ b(f, {
678
+ children: $.allowedOrigins.map((e) => /* @__PURE__ */ b(h, {
677
679
  variant: "outline",
678
680
  className: "font-mono text-xs",
679
681
  children: e
@@ -710,17 +712,17 @@ var Ie = ({ type: e }) => {
710
712
  children: "Starter Prompts"
711
713
  }), /* @__PURE__ */ b("div", {
712
714
  className: "flex flex-wrap gap-2",
713
- children: $.starterPrompts.map((e, t) => /* @__PURE__ */ b(f, {
715
+ children: $.starterPrompts.map((e, t) => /* @__PURE__ */ b(h, {
714
716
  variant: "secondary",
715
717
  children: e
716
718
  }, t))
717
719
  })]
718
720
  })] })] }),
719
- /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ x(u, {
721
+ /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ x(l, {
720
722
  className: "flex flex-row items-center justify-between",
721
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b(d, { children: "Routes" }), /* @__PURE__ */ b(l, { children: "Routes connect this channel to your bots" })] }), /* @__PURE__ */ b(i, {
723
+ children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b(u, { children: "Routes" }), /* @__PURE__ */ b(c, { children: "Routes connect this channel to your bots" })] }), /* @__PURE__ */ b(i, {
722
724
  permission: r.CHANNEL_CREATE,
723
- children: /* @__PURE__ */ b(o, {
725
+ children: /* @__PURE__ */ b(d, {
724
726
  variant: "outline",
725
727
  size: "sm",
726
728
  leftIcon: /* @__PURE__ */ b(D, { size: 14 }),
@@ -728,7 +730,7 @@ var Ie = ({ type: e }) => {
728
730
  children: "Add Route"
729
731
  })
730
732
  })]
731
- }), /* @__PURE__ */ b(c, { children: Z.length > 0 ? /* @__PURE__ */ b("div", {
733
+ }), /* @__PURE__ */ b(s, { children: Z.length > 0 ? /* @__PURE__ */ b("div", {
732
734
  className: "space-y-3",
733
735
  children: Z.map((e) => /* @__PURE__ */ x("div", {
734
736
  className: "flex items-center justify-between p-4 border border-border-subtle rounded-lg",
@@ -749,33 +751,33 @@ var Ie = ({ type: e }) => {
749
751
  })] })]
750
752
  }), /* @__PURE__ */ x("div", {
751
753
  className: "flex items-center gap-2",
752
- children: [/* @__PURE__ */ x(f, {
754
+ children: [/* @__PURE__ */ x(h, {
753
755
  variant: "outline",
754
756
  children: ["Rev ", e.revision]
755
- }), /* @__PURE__ */ b(o, {
757
+ }), /* @__PURE__ */ b(d, {
756
758
  variant: "ghost",
757
759
  size: "sm",
758
760
  children: /* @__PURE__ */ b(Ae, { size: 14 })
759
761
  })]
760
762
  })]
761
763
  }, e.id))
762
- }) : /* @__PURE__ */ b(ie, {
764
+ }) : /* @__PURE__ */ b(re, {
763
765
  illustration: "empty-data",
764
766
  title: "No routes configured",
765
767
  description: "Add a route to connect this channel to a bot.",
766
768
  action: /* @__PURE__ */ b(i, {
767
769
  permission: r.CHANNEL_CREATE,
768
- children: /* @__PURE__ */ b(o, {
770
+ children: /* @__PURE__ */ b(d, {
769
771
  leftIcon: /* @__PURE__ */ b(D, { size: 16 }),
770
772
  onClick: () => W(!0),
771
773
  children: "Add Route"
772
774
  })
773
775
  })
774
776
  }) })] }),
775
- L.type === "SLACK" && L.credentialsRefId && /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ x(u, { children: [/* @__PURE__ */ x(d, {
777
+ L.type === "SLACK" && L.credentialsRefId && /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ x(l, { children: [/* @__PURE__ */ x(u, {
776
778
  className: "flex items-center gap-2",
777
779
  children: [/* @__PURE__ */ b(j, { size: 18 }), "Your Slack Account"]
778
- }), /* @__PURE__ */ b(l, { children: "Connect your personal Slack account to receive direct messages from this bot" })] }), /* @__PURE__ */ x(c, { children: [it && /* @__PURE__ */ x("div", {
780
+ }), /* @__PURE__ */ b(c, { children: "Connect your personal Slack account to receive direct messages from this bot" })] }), /* @__PURE__ */ x(s, { children: [it && /* @__PURE__ */ x("div", {
779
781
  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",
780
782
  children: [/* @__PURE__ */ b("span", { children: it }), /* @__PURE__ */ b("button", {
781
783
  onClick: () => V(null),
@@ -829,7 +831,7 @@ var Ie = ({ type: e }) => {
829
831
  }),
830
832
  /* @__PURE__ */ b("div", {
831
833
  className: "flex items-center gap-1",
832
- children: z.isTokenExpired && /* @__PURE__ */ b(f, {
834
+ children: z.isTokenExpired && /* @__PURE__ */ b(h, {
833
835
  variant: "outline",
834
836
  className: "text-xs text-amber-600 border-amber-400",
835
837
  children: "Token expired"
@@ -854,7 +856,7 @@ var Ie = ({ type: e }) => {
854
856
  className: "text-xs text-text-secondary",
855
857
  children: z.notificationsEnabled ? "You will receive bot DMs" : "DM notifications are paused"
856
858
  })] })]
857
- }), /* @__PURE__ */ b(o, {
859
+ }), /* @__PURE__ */ b(d, {
858
860
  variant: "outline",
859
861
  size: "sm",
860
862
  onClick: st,
@@ -864,13 +866,13 @@ var Ie = ({ type: e }) => {
864
866
  }),
865
867
  /* @__PURE__ */ x("div", {
866
868
  className: "flex gap-2 justify-end pt-2",
867
- children: [z.isTokenExpired && /* @__PURE__ */ b(o, {
869
+ children: [z.isTokenExpired && /* @__PURE__ */ b(d, {
868
870
  variant: "outline",
869
871
  size: "sm",
870
872
  leftIcon: /* @__PURE__ */ b(j, { size: 14 }),
871
873
  onClick: ot,
872
874
  children: "Reconnect"
873
- }), /* @__PURE__ */ b(o, {
875
+ }), /* @__PURE__ */ b(d, {
874
876
  variant: "destructive",
875
877
  size: "sm",
876
878
  leftIcon: /* @__PURE__ */ b(Ne, { size: 14 }),
@@ -897,17 +899,17 @@ var Ie = ({ type: e }) => {
897
899
  className: "text-sm text-text-secondary mt-1",
898
900
  children: "Connect your Slack account so the bot can send you direct messages"
899
901
  })] }),
900
- /* @__PURE__ */ b(o, {
902
+ /* @__PURE__ */ b(d, {
901
903
  leftIcon: /* @__PURE__ */ b(j, { size: 16 }),
902
904
  onClick: ot,
903
905
  children: "Connect with Slack"
904
906
  })
905
907
  ]
906
908
  })] })] }),
907
- L.defaultPolicyBindings && /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ x(u, { children: [/* @__PURE__ */ x(d, {
909
+ L.defaultPolicyBindings && /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ x(l, { children: [/* @__PURE__ */ x(u, {
908
910
  className: "flex items-center gap-2",
909
911
  children: [/* @__PURE__ */ b(je, { size: 18 }), "Default Policy Bindings"]
910
- }), /* @__PURE__ */ b(l, { children: "Default policies applied to all routes on this connector" })] }), /* @__PURE__ */ b(c, { children: /* @__PURE__ */ b("div", {
912
+ }), /* @__PURE__ */ b(c, { children: "Default policies applied to all routes on this connector" })] }), /* @__PURE__ */ b(s, { children: /* @__PURE__ */ b("div", {
911
913
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
912
914
  children: Object.entries(L.defaultPolicyBindings).map(([e, t]) => t ? /* @__PURE__ */ x("div", {
913
915
  className: "p-3 bg-bg-sunken rounded-lg",
@@ -920,10 +922,10 @@ var Ie = ({ type: e }) => {
920
922
  })]
921
923
  }, e) : null)
922
924
  }) })] }),
923
- /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(d, {
925
+ /* @__PURE__ */ x(o, { children: [/* @__PURE__ */ b(l, { children: /* @__PURE__ */ x(u, {
924
926
  className: "flex items-center gap-2",
925
927
  children: [/* @__PURE__ */ b(A, { size: 18 }), "Metadata"]
926
- }) }), /* @__PURE__ */ b(c, { children: /* @__PURE__ */ x("div", {
928
+ }) }), /* @__PURE__ */ b(s, { children: /* @__PURE__ */ x("div", {
927
929
  className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
928
930
  children: [
929
931
  /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
@@ -931,14 +933,14 @@ var Ie = ({ type: e }) => {
931
933
  children: "Created"
932
934
  }), /* @__PURE__ */ b("p", {
933
935
  className: "font-medium",
934
- children: n(L.createdAt)
936
+ children: de(L.createdAt)
935
937
  })] }),
936
938
  /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
937
939
  className: "text-text-secondary",
938
940
  children: "Updated"
939
941
  }), /* @__PURE__ */ b("p", {
940
942
  className: "font-medium",
941
- children: n(L.updatedAt)
943
+ children: de(L.updatedAt)
942
944
  })] }),
943
945
  /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
944
946
  className: "text-text-secondary",
@@ -952,7 +954,7 @@ var Ie = ({ type: e }) => {
952
954
  children: "Tags"
953
955
  }), /* @__PURE__ */ b("div", {
954
956
  className: "flex gap-1",
955
- children: L.tags.length > 0 ? L.tags.map((e) => /* @__PURE__ */ b(f, {
957
+ children: L.tags.length > 0 ? L.tags.map((e) => /* @__PURE__ */ b(h, {
956
958
  variant: "secondary",
957
959
  className: "text-xs",
958
960
  children: e
@@ -967,7 +969,6 @@ var Ie = ({ type: e }) => {
967
969
  })
968
970
  });
969
971
  };
970
- //#endregion
971
972
  export { F as ChannelDetailPage };
972
973
 
973
974
  //# sourceMappingURL=ChannelDetailPage.js.map