@axiom-lattice/react-sdk 2.1.22 → 2.1.24

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { Message, InterruptMessage, Thread } from '@axiom-lattice/protocols';
1
+ import { Message, InterruptMessage, Thread, Skill } from '@axiom-lattice/protocols';
2
2
  export * from '@axiom-lattice/protocols';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode } from 'react';
@@ -6,6 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } from '@axiom-lattice/client-sdk';
7
7
  import { Prompts } from '@ant-design/x';
8
8
  import { GetProp } from 'antd';
9
+ import { NodeProps, Node } from '@xyflow/react';
9
10
 
10
11
  /**
11
12
  * Types for the Axiom Lattice React SDK
@@ -868,4 +869,84 @@ interface ScheduleButtonProps {
868
869
  */
869
870
  declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
870
871
 
871
- export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, 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, 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 };
872
+ /**
873
+ * Props for AssistantFlow component
874
+ */
875
+ interface AssistantFlowProps {
876
+ /**
877
+ * List of assistants to display
878
+ */
879
+ assistants: Assistant[];
880
+ /**
881
+ * Callback when an assistant node is clicked
882
+ */
883
+ onNodeClick?: (assistant: Assistant) => void;
884
+ }
885
+ /**
886
+ * AssistantFlow component - Canvas for visualizing assistants
887
+ * Wraps the inner component with ReactFlowProvider
888
+ */
889
+ declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
890
+
891
+ /**
892
+ * Props for AssistantNode component
893
+ */
894
+ interface AssistantNodeData extends Record<string, unknown> {
895
+ /**
896
+ * Assistant data
897
+ */
898
+ assistant: Assistant;
899
+ /**
900
+ * Click handler for the node
901
+ */
902
+ onClick?: (assistant: Assistant) => void;
903
+ }
904
+ /**
905
+ * Custom node component for displaying assistants in the flow
906
+ * Designed to look like a digital ID badge
907
+ */
908
+ declare const AssistantNode: React__default.FC<NodeProps<Node<AssistantNodeData>>>;
909
+
910
+ /**
911
+ * Props for SkillFlow component
912
+ */
913
+ interface SkillFlowProps {
914
+ /**
915
+ * List of skills to display
916
+ */
917
+ skills: Skill[];
918
+ /**
919
+ * Callback when a skill node is clicked
920
+ */
921
+ onNodeClick?: (skill: Skill) => void;
922
+ /**
923
+ * Callback to refresh skills list after creating a new skill
924
+ */
925
+ onRefresh?: () => void | Promise<void>;
926
+ }
927
+ /**
928
+ * SkillFlow component - Canvas for visualizing skills
929
+ * Wraps the inner component with ReactFlowProvider
930
+ */
931
+ declare const SkillFlow: React__default.FC<SkillFlowProps>;
932
+
933
+ /**
934
+ * Props for SkillNode component
935
+ */
936
+ interface SkillNodeData extends Record<string, unknown> {
937
+ /**
938
+ * Skill data
939
+ */
940
+ skill: Skill;
941
+ /**
942
+ * Click handler for the node
943
+ */
944
+ onClick?: (skill: Skill) => void;
945
+ }
946
+ /**
947
+ * Custom node component for displaying skills in the flow
948
+ * Designed to show skill information with hierarchical relationships
949
+ */
950
+ declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
951
+
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 };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Message, InterruptMessage, Thread } from '@axiom-lattice/protocols';
1
+ import { Message, InterruptMessage, Thread, Skill } from '@axiom-lattice/protocols';
2
2
  export * from '@axiom-lattice/protocols';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode } from 'react';
@@ -6,6 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } from '@axiom-lattice/client-sdk';
7
7
  import { Prompts } from '@ant-design/x';
8
8
  import { GetProp } from 'antd';
9
+ import { NodeProps, Node } from '@xyflow/react';
9
10
 
10
11
  /**
11
12
  * Types for the Axiom Lattice React SDK
@@ -868,4 +869,84 @@ interface ScheduleButtonProps {
868
869
  */
869
870
  declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
870
871
 
871
- export { type AgentChatProps, AgentConversations, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, 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, 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 };
872
+ /**
873
+ * Props for AssistantFlow component
874
+ */
875
+ interface AssistantFlowProps {
876
+ /**
877
+ * List of assistants to display
878
+ */
879
+ assistants: Assistant[];
880
+ /**
881
+ * Callback when an assistant node is clicked
882
+ */
883
+ onNodeClick?: (assistant: Assistant) => void;
884
+ }
885
+ /**
886
+ * AssistantFlow component - Canvas for visualizing assistants
887
+ * Wraps the inner component with ReactFlowProvider
888
+ */
889
+ declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
890
+
891
+ /**
892
+ * Props for AssistantNode component
893
+ */
894
+ interface AssistantNodeData extends Record<string, unknown> {
895
+ /**
896
+ * Assistant data
897
+ */
898
+ assistant: Assistant;
899
+ /**
900
+ * Click handler for the node
901
+ */
902
+ onClick?: (assistant: Assistant) => void;
903
+ }
904
+ /**
905
+ * Custom node component for displaying assistants in the flow
906
+ * Designed to look like a digital ID badge
907
+ */
908
+ declare const AssistantNode: React__default.FC<NodeProps<Node<AssistantNodeData>>>;
909
+
910
+ /**
911
+ * Props for SkillFlow component
912
+ */
913
+ interface SkillFlowProps {
914
+ /**
915
+ * List of skills to display
916
+ */
917
+ skills: Skill[];
918
+ /**
919
+ * Callback when a skill node is clicked
920
+ */
921
+ onNodeClick?: (skill: Skill) => void;
922
+ /**
923
+ * Callback to refresh skills list after creating a new skill
924
+ */
925
+ onRefresh?: () => void | Promise<void>;
926
+ }
927
+ /**
928
+ * SkillFlow component - Canvas for visualizing skills
929
+ * Wraps the inner component with ReactFlowProvider
930
+ */
931
+ declare const SkillFlow: React__default.FC<SkillFlowProps>;
932
+
933
+ /**
934
+ * Props for SkillNode component
935
+ */
936
+ interface SkillNodeData extends Record<string, unknown> {
937
+ /**
938
+ * Skill data
939
+ */
940
+ skill: Skill;
941
+ /**
942
+ * Click handler for the node
943
+ */
944
+ onClick?: (skill: Skill) => void;
945
+ }
946
+ /**
947
+ * Custom node component for displaying skills in the flow
948
+ * Designed to show skill information with hierarchical relationships
949
+ */
950
+ declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
951
+
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 };