@greatapps/greatagents-ui 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +31 -5
- package/dist/index.js +483 -259
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/agents/agent-tabs.tsx +14 -13
- package/src/components/conversations/agent-conversations-panel.tsx +44 -0
- package/src/components/conversations/agent-conversations-table.tsx +160 -0
- package/src/components/conversations/conversation-view.tsx +124 -0
- package/src/index.ts +3 -0
- package/src/pages/agent-detail-page.tsx +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -425,9 +425,9 @@ declare function AgentEditForm({ config, agent, idAccount, open, onOpenChange }:
|
|
|
425
425
|
interface AgentTabsProps {
|
|
426
426
|
agent: Agent;
|
|
427
427
|
config: GagentsHookConfig;
|
|
428
|
-
|
|
428
|
+
renderChatLink?: (inboxId: number) => React.ReactNode;
|
|
429
429
|
}
|
|
430
|
-
declare function AgentTabs({ agent, config,
|
|
430
|
+
declare function AgentTabs({ agent, config, renderChatLink }: AgentTabsProps): react_jsx_runtime.JSX.Element;
|
|
431
431
|
|
|
432
432
|
interface AgentPromptEditorProps {
|
|
433
433
|
config: GagentsHookConfig;
|
|
@@ -516,6 +516,32 @@ interface SortableOverlayProps extends Omit<React$1.ComponentProps<typeof DragOv
|
|
|
516
516
|
}
|
|
517
517
|
declare function SortableOverlay(props: SortableOverlayProps): React$1.ReactPortal | null;
|
|
518
518
|
|
|
519
|
+
interface AgentConversationsPanelProps {
|
|
520
|
+
agent: Agent;
|
|
521
|
+
config: GagentsHookConfig;
|
|
522
|
+
renderChatLink?: (inboxId: number) => React.ReactNode;
|
|
523
|
+
}
|
|
524
|
+
declare function AgentConversationsPanel({ agent, config, renderChatLink, }: AgentConversationsPanelProps): react_jsx_runtime.JSX.Element;
|
|
525
|
+
|
|
526
|
+
interface AgentConversationsTableProps {
|
|
527
|
+
conversations: Conversation[];
|
|
528
|
+
isLoading: boolean;
|
|
529
|
+
contactsMap?: Map<number, string>;
|
|
530
|
+
objectivesMap?: Map<number, string>;
|
|
531
|
+
config: GagentsHookConfig;
|
|
532
|
+
renderChatLink?: (inboxId: number) => React.ReactNode;
|
|
533
|
+
}
|
|
534
|
+
declare function AgentConversationsTable({ conversations, isLoading, contactsMap, objectivesMap, config, renderChatLink, }: AgentConversationsTableProps): react_jsx_runtime.JSX.Element;
|
|
535
|
+
|
|
536
|
+
interface ConversationViewProps {
|
|
537
|
+
conversationId: number;
|
|
538
|
+
onClose: () => void;
|
|
539
|
+
contactsMap?: Map<number, string>;
|
|
540
|
+
config: GagentsHookConfig;
|
|
541
|
+
renderChatLink?: (inboxId: number) => React.ReactNode;
|
|
542
|
+
}
|
|
543
|
+
declare function ConversationView({ conversationId, onClose, contactsMap, config, renderChatLink, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
|
|
544
|
+
|
|
519
545
|
interface AgentsPageProps {
|
|
520
546
|
config: GagentsHookConfig;
|
|
521
547
|
onNavigateToAgent?: (agentId: number) => void;
|
|
@@ -528,9 +554,9 @@ interface AgentDetailPageProps {
|
|
|
528
554
|
config: GagentsHookConfig;
|
|
529
555
|
agentId: number;
|
|
530
556
|
onBack?: () => void;
|
|
531
|
-
|
|
557
|
+
renderChatLink?: (inboxId: number) => React.ReactNode;
|
|
532
558
|
}
|
|
533
|
-
declare function AgentDetailPage({ config, agentId, onBack,
|
|
559
|
+
declare function AgentDetailPage({ config, agentId, onBack, renderChatLink, }: AgentDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
534
560
|
|
|
535
561
|
interface ToolsPageProps {
|
|
536
562
|
config: GagentsHookConfig;
|
|
@@ -547,4 +573,4 @@ interface CredentialsPageProps {
|
|
|
547
573
|
}
|
|
548
574
|
declare function CredentialsPage({ config, gagentsApiUrl, title, subtitle, }: CredentialsPageProps): react_jsx_runtime.JSX.Element;
|
|
549
575
|
|
|
550
|
-
export { type Agent, AgentDetailPage, type AgentDetailPageProps, AgentEditForm, AgentFormDialog, AgentObjectivesList, AgentPromptEditor, AgentTabs, type AgentTool, AgentToolsList, AgentsPage, type AgentsPageProps, AgentsTable, type ApiResponse, type AvailabilityConflict, type AvailabilityResult, type CalendarStatus, type ContactUser, type Conversation, CredentialsPage, type CredentialsPageProps, type GagentsClient, type GagentsClientConfig, type GagentsContact, type GagentsHookConfig, type Objective, type PromptVersion, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type Tool, type ToolCredential, ToolCredentialsForm, ToolFormDialog, ToolsPage, type ToolsPageProps, ToolsTable, cn, createGagentsClient, useAddAgentTool, useAgent, useAgentConversations, useAgentTools, useAgents, useContactUsers, useConversation, useConversations, useCreateAgent, useCreateObjective, useCreateTool, useCreateToolCredential, useDeleteAgent, useDeleteObjective, useDeleteTool, useDeleteToolCredential, useGagentsClient, useGagentsContacts, useObjectives, usePromptVersions, useRemoveAgentTool, useTool, useToolCredentials, useTools, useUpdateAgent, useUpdateAgentTool, useUpdateObjective, useUpdateTool, useUpdateToolCredential };
|
|
576
|
+
export { type Agent, AgentConversationsPanel, AgentConversationsTable, AgentDetailPage, type AgentDetailPageProps, AgentEditForm, AgentFormDialog, AgentObjectivesList, AgentPromptEditor, AgentTabs, type AgentTool, AgentToolsList, AgentsPage, type AgentsPageProps, AgentsTable, type ApiResponse, type AvailabilityConflict, type AvailabilityResult, type CalendarStatus, type ContactUser, type Conversation, ConversationView, CredentialsPage, type CredentialsPageProps, type GagentsClient, type GagentsClientConfig, type GagentsContact, type GagentsHookConfig, type Objective, type PromptVersion, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type Tool, type ToolCredential, ToolCredentialsForm, ToolFormDialog, ToolsPage, type ToolsPageProps, ToolsTable, cn, createGagentsClient, useAddAgentTool, useAgent, useAgentConversations, useAgentTools, useAgents, useContactUsers, useConversation, useConversations, useCreateAgent, useCreateObjective, useCreateTool, useCreateToolCredential, useDeleteAgent, useDeleteObjective, useDeleteTool, useDeleteToolCredential, useGagentsClient, useGagentsContacts, useObjectives, usePromptVersions, useRemoveAgentTool, useTool, useToolCredentials, useTools, useUpdateAgent, useUpdateAgentTool, useUpdateObjective, useUpdateTool, useUpdateToolCredential };
|