@axiom-lattice/react-sdk 2.1.24 → 2.1.26
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.mts +28 -14
- package/dist/index.d.ts +28 -14
- package/dist/index.js +2779 -2371
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2701 -2293
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -737,6 +737,16 @@ interface LatticeChatShellConfig {
|
|
|
737
737
|
* Additional headers to include in requests (optional)
|
|
738
738
|
*/
|
|
739
739
|
headers?: Record<string, string>;
|
|
740
|
+
/**
|
|
741
|
+
* Whether users can create new threads from the UI
|
|
742
|
+
* Defaults to true
|
|
743
|
+
*/
|
|
744
|
+
enableThreadCreation?: boolean;
|
|
745
|
+
/**
|
|
746
|
+
* Whether users can view the thread list in the sidebar
|
|
747
|
+
* Defaults to true
|
|
748
|
+
*/
|
|
749
|
+
enableThreadList?: boolean;
|
|
740
750
|
}
|
|
741
751
|
/**
|
|
742
752
|
* Lattice Chat Shell context value interface
|
|
@@ -846,7 +856,19 @@ interface FileExplorerProps {
|
|
|
846
856
|
}
|
|
847
857
|
declare const FileExplorer: React__default.FC<ElementProps>;
|
|
848
858
|
|
|
849
|
-
|
|
859
|
+
interface AgentConversationsProps {
|
|
860
|
+
/**
|
|
861
|
+
* Whether users can create new threads from the UI
|
|
862
|
+
* Defaults to true
|
|
863
|
+
*/
|
|
864
|
+
enableThreadCreation?: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* Whether the thread list should be rendered
|
|
867
|
+
* Defaults to true
|
|
868
|
+
*/
|
|
869
|
+
enableThreadList?: boolean;
|
|
870
|
+
}
|
|
871
|
+
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
850
872
|
|
|
851
873
|
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children">;
|
|
852
874
|
/**
|
|
@@ -873,10 +895,6 @@ declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
|
|
|
873
895
|
* Props for AssistantFlow component
|
|
874
896
|
*/
|
|
875
897
|
interface AssistantFlowProps {
|
|
876
|
-
/**
|
|
877
|
-
* List of assistants to display
|
|
878
|
-
*/
|
|
879
|
-
assistants: Assistant[];
|
|
880
898
|
/**
|
|
881
899
|
* Callback when an assistant node is clicked
|
|
882
900
|
*/
|
|
@@ -911,18 +929,10 @@ declare const AssistantNode: React__default.FC<NodeProps<Node<AssistantNodeData>
|
|
|
911
929
|
* Props for SkillFlow component
|
|
912
930
|
*/
|
|
913
931
|
interface SkillFlowProps {
|
|
914
|
-
/**
|
|
915
|
-
* List of skills to display
|
|
916
|
-
*/
|
|
917
|
-
skills: Skill[];
|
|
918
932
|
/**
|
|
919
933
|
* Callback when a skill node is clicked
|
|
920
934
|
*/
|
|
921
935
|
onNodeClick?: (skill: Skill) => void;
|
|
922
|
-
/**
|
|
923
|
-
* Callback to refresh skills list after creating a new skill
|
|
924
|
-
*/
|
|
925
|
-
onRefresh?: () => void | Promise<void>;
|
|
926
936
|
}
|
|
927
937
|
/**
|
|
928
938
|
* SkillFlow component - Canvas for visualizing skills
|
|
@@ -942,6 +952,10 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
942
952
|
* Click handler for the node
|
|
943
953
|
*/
|
|
944
954
|
onClick?: (skill: Skill) => void;
|
|
955
|
+
/**
|
|
956
|
+
* Callback when a skill is deleted
|
|
957
|
+
*/
|
|
958
|
+
onDelete?: () => void | Promise<void>;
|
|
945
959
|
}
|
|
946
960
|
/**
|
|
947
961
|
* Custom node component for displaying skills in the flow
|
|
@@ -949,4 +963,4 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
949
963
|
*/
|
|
950
964
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
951
965
|
|
|
952
|
-
export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
|
966
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -737,6 +737,16 @@ interface LatticeChatShellConfig {
|
|
|
737
737
|
* Additional headers to include in requests (optional)
|
|
738
738
|
*/
|
|
739
739
|
headers?: Record<string, string>;
|
|
740
|
+
/**
|
|
741
|
+
* Whether users can create new threads from the UI
|
|
742
|
+
* Defaults to true
|
|
743
|
+
*/
|
|
744
|
+
enableThreadCreation?: boolean;
|
|
745
|
+
/**
|
|
746
|
+
* Whether users can view the thread list in the sidebar
|
|
747
|
+
* Defaults to true
|
|
748
|
+
*/
|
|
749
|
+
enableThreadList?: boolean;
|
|
740
750
|
}
|
|
741
751
|
/**
|
|
742
752
|
* Lattice Chat Shell context value interface
|
|
@@ -846,7 +856,19 @@ interface FileExplorerProps {
|
|
|
846
856
|
}
|
|
847
857
|
declare const FileExplorer: React__default.FC<ElementProps>;
|
|
848
858
|
|
|
849
|
-
|
|
859
|
+
interface AgentConversationsProps {
|
|
860
|
+
/**
|
|
861
|
+
* Whether users can create new threads from the UI
|
|
862
|
+
* Defaults to true
|
|
863
|
+
*/
|
|
864
|
+
enableThreadCreation?: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* Whether the thread list should be rendered
|
|
867
|
+
* Defaults to true
|
|
868
|
+
*/
|
|
869
|
+
enableThreadList?: boolean;
|
|
870
|
+
}
|
|
871
|
+
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
850
872
|
|
|
851
873
|
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children">;
|
|
852
874
|
/**
|
|
@@ -873,10 +895,6 @@ declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
|
|
|
873
895
|
* Props for AssistantFlow component
|
|
874
896
|
*/
|
|
875
897
|
interface AssistantFlowProps {
|
|
876
|
-
/**
|
|
877
|
-
* List of assistants to display
|
|
878
|
-
*/
|
|
879
|
-
assistants: Assistant[];
|
|
880
898
|
/**
|
|
881
899
|
* Callback when an assistant node is clicked
|
|
882
900
|
*/
|
|
@@ -911,18 +929,10 @@ declare const AssistantNode: React__default.FC<NodeProps<Node<AssistantNodeData>
|
|
|
911
929
|
* Props for SkillFlow component
|
|
912
930
|
*/
|
|
913
931
|
interface SkillFlowProps {
|
|
914
|
-
/**
|
|
915
|
-
* List of skills to display
|
|
916
|
-
*/
|
|
917
|
-
skills: Skill[];
|
|
918
932
|
/**
|
|
919
933
|
* Callback when a skill node is clicked
|
|
920
934
|
*/
|
|
921
935
|
onNodeClick?: (skill: Skill) => void;
|
|
922
|
-
/**
|
|
923
|
-
* Callback to refresh skills list after creating a new skill
|
|
924
|
-
*/
|
|
925
|
-
onRefresh?: () => void | Promise<void>;
|
|
926
936
|
}
|
|
927
937
|
/**
|
|
928
938
|
* SkillFlow component - Canvas for visualizing skills
|
|
@@ -942,6 +952,10 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
942
952
|
* Click handler for the node
|
|
943
953
|
*/
|
|
944
954
|
onClick?: (skill: Skill) => void;
|
|
955
|
+
/**
|
|
956
|
+
* Callback when a skill is deleted
|
|
957
|
+
*/
|
|
958
|
+
onDelete?: () => void | Promise<void>;
|
|
945
959
|
}
|
|
946
960
|
/**
|
|
947
961
|
* Custom node component for displaying skills in the flow
|
|
@@ -949,4 +963,4 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
949
963
|
*/
|
|
950
964
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
951
965
|
|
|
952
|
-
export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
|
966
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|