@axiom-lattice/react-sdk 2.1.32 → 2.1.34
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 +87 -4
- package/dist/index.d.ts +87 -4
- package/dist/index.js +13872 -8584
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12065 -6727
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -76,6 +76,16 @@ interface ChatState {
|
|
|
76
76
|
content: string;
|
|
77
77
|
status: "pending" | "in_progress" | "completed";
|
|
78
78
|
}>;
|
|
79
|
+
tasks?: Array<{
|
|
80
|
+
id: string;
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
status: "pending" | "in_progress" | "completed" | "failed";
|
|
84
|
+
assignee?: string;
|
|
85
|
+
dependencies: string[];
|
|
86
|
+
result?: string;
|
|
87
|
+
error?: string;
|
|
88
|
+
}>;
|
|
79
89
|
/**
|
|
80
90
|
* Array of messages in the chat
|
|
81
91
|
*/
|
|
@@ -736,7 +746,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
736
746
|
maxLength?: number;
|
|
737
747
|
pattern?: string;
|
|
738
748
|
format?: string;
|
|
739
|
-
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect";
|
|
749
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect";
|
|
740
750
|
items?: {
|
|
741
751
|
type: string;
|
|
742
752
|
};
|
|
@@ -775,6 +785,40 @@ interface MiddlewareConfigDefinition {
|
|
|
775
785
|
config: Record<string, any>;
|
|
776
786
|
tools?: MiddlewareToolDefinition[];
|
|
777
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* Sidebar menu item type
|
|
790
|
+
*/
|
|
791
|
+
type SideMenuItemType = "drawer" | "route";
|
|
792
|
+
interface ResourceFolderConfig {
|
|
793
|
+
name: string;
|
|
794
|
+
displayName?: string;
|
|
795
|
+
allowUpload: boolean;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Sidebar menu item configuration
|
|
799
|
+
*/
|
|
800
|
+
interface SideMenuItemConfig {
|
|
801
|
+
/** Unique identifier for the menu item */
|
|
802
|
+
id: string;
|
|
803
|
+
/** Type of the menu item - drawer or route (SideApp) */
|
|
804
|
+
type: SideMenuItemType;
|
|
805
|
+
/** Display name of the menu item */
|
|
806
|
+
name: string;
|
|
807
|
+
/** Icon component for the menu item */
|
|
808
|
+
icon?: ReactNode;
|
|
809
|
+
/** Order for sorting menu items (lower values first) */
|
|
810
|
+
order?: number;
|
|
811
|
+
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database) */
|
|
812
|
+
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database";
|
|
813
|
+
/** Content to display inside the drawer (for drawer type) */
|
|
814
|
+
content?: ReactNode;
|
|
815
|
+
/** Drawer title (for drawer type) */
|
|
816
|
+
title?: string;
|
|
817
|
+
/** Drawer width in pixels or percentage (for drawer type) */
|
|
818
|
+
width?: string | number;
|
|
819
|
+
/** Component to render in SideApp (for route type) */
|
|
820
|
+
sideAppComponent?: ReactNode;
|
|
821
|
+
}
|
|
778
822
|
/**
|
|
779
823
|
* Lattice Chat Shell configuration interface
|
|
780
824
|
*/
|
|
@@ -828,10 +872,39 @@ interface LatticeChatShellConfig {
|
|
|
828
872
|
*/
|
|
829
873
|
enableAssistantCreation?: boolean;
|
|
830
874
|
/**
|
|
831
|
-
|
|
875
|
+
* Whether users can edit existing assistants
|
|
876
|
+
* Defaults to true
|
|
877
|
+
*/
|
|
878
|
+
enableAssistantEditing?: boolean;
|
|
879
|
+
/**
|
|
880
|
+
* Whether to enable workspace and project management
|
|
881
|
+
* When enabled, shows workspace selector in header and file browser
|
|
882
|
+
* Defaults to false
|
|
883
|
+
*/
|
|
884
|
+
enableWorkspace?: boolean;
|
|
885
|
+
/**
|
|
886
|
+
* Resource folders configuration for workspace
|
|
887
|
+
* Each folder represents a section in the workspace assets panel
|
|
888
|
+
* If not provided, defaults to a single root folder with upload enabled
|
|
889
|
+
*/
|
|
890
|
+
resourceFolders?: ResourceFolderConfig[];
|
|
891
|
+
/**
|
|
892
|
+
* Custom sidebar menu items that can be registered
|
|
893
|
+
* These will be displayed alongside the default menu items
|
|
894
|
+
*/
|
|
895
|
+
sideMenuItems?: SideMenuItemConfig[];
|
|
896
|
+
/**
|
|
897
|
+
* Whether to enable the database picker slot in the chat sender
|
|
898
|
+
* When enabled, shows a database selection button in the sender footer
|
|
832
899
|
* Defaults to true
|
|
833
900
|
*/
|
|
834
|
-
|
|
901
|
+
enableDatabaseSlot?: boolean;
|
|
902
|
+
/**
|
|
903
|
+
* Whether to enable the skill picker slot in the chat sender
|
|
904
|
+
* When enabled, shows a skill selection button in the sender footer
|
|
905
|
+
* Defaults to true
|
|
906
|
+
*/
|
|
907
|
+
enableSkillSlot?: boolean;
|
|
835
908
|
}
|
|
836
909
|
/**
|
|
837
910
|
* Lattice Chat Shell context value interface
|
|
@@ -964,6 +1037,10 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
964
1037
|
* Whether users can edit existing assistants (default: true)
|
|
965
1038
|
*/
|
|
966
1039
|
enableAssistantEditing?: boolean;
|
|
1040
|
+
/**
|
|
1041
|
+
* Whether to enable workspace and project management (default: false)
|
|
1042
|
+
*/
|
|
1043
|
+
enableWorkspace?: boolean;
|
|
967
1044
|
};
|
|
968
1045
|
/**
|
|
969
1046
|
* Lattice Chat Shell component
|
|
@@ -1068,4 +1145,10 @@ interface CreateAssistantModalProps {
|
|
|
1068
1145
|
}
|
|
1069
1146
|
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1070
1147
|
|
|
1071
|
-
|
|
1148
|
+
interface SkillCategoryPromptsProps {
|
|
1149
|
+
senderRef: React__default.RefObject<any>;
|
|
1150
|
+
visible?: boolean;
|
|
1151
|
+
}
|
|
1152
|
+
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
1153
|
+
|
|
1154
|
+
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, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, 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
|
@@ -76,6 +76,16 @@ interface ChatState {
|
|
|
76
76
|
content: string;
|
|
77
77
|
status: "pending" | "in_progress" | "completed";
|
|
78
78
|
}>;
|
|
79
|
+
tasks?: Array<{
|
|
80
|
+
id: string;
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
status: "pending" | "in_progress" | "completed" | "failed";
|
|
84
|
+
assignee?: string;
|
|
85
|
+
dependencies: string[];
|
|
86
|
+
result?: string;
|
|
87
|
+
error?: string;
|
|
88
|
+
}>;
|
|
79
89
|
/**
|
|
80
90
|
* Array of messages in the chat
|
|
81
91
|
*/
|
|
@@ -736,7 +746,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
736
746
|
maxLength?: number;
|
|
737
747
|
pattern?: string;
|
|
738
748
|
format?: string;
|
|
739
|
-
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect";
|
|
749
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect";
|
|
740
750
|
items?: {
|
|
741
751
|
type: string;
|
|
742
752
|
};
|
|
@@ -775,6 +785,40 @@ interface MiddlewareConfigDefinition {
|
|
|
775
785
|
config: Record<string, any>;
|
|
776
786
|
tools?: MiddlewareToolDefinition[];
|
|
777
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* Sidebar menu item type
|
|
790
|
+
*/
|
|
791
|
+
type SideMenuItemType = "drawer" | "route";
|
|
792
|
+
interface ResourceFolderConfig {
|
|
793
|
+
name: string;
|
|
794
|
+
displayName?: string;
|
|
795
|
+
allowUpload: boolean;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Sidebar menu item configuration
|
|
799
|
+
*/
|
|
800
|
+
interface SideMenuItemConfig {
|
|
801
|
+
/** Unique identifier for the menu item */
|
|
802
|
+
id: string;
|
|
803
|
+
/** Type of the menu item - drawer or route (SideApp) */
|
|
804
|
+
type: SideMenuItemType;
|
|
805
|
+
/** Display name of the menu item */
|
|
806
|
+
name: string;
|
|
807
|
+
/** Icon component for the menu item */
|
|
808
|
+
icon?: ReactNode;
|
|
809
|
+
/** Order for sorting menu items (lower values first) */
|
|
810
|
+
order?: number;
|
|
811
|
+
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database) */
|
|
812
|
+
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database";
|
|
813
|
+
/** Content to display inside the drawer (for drawer type) */
|
|
814
|
+
content?: ReactNode;
|
|
815
|
+
/** Drawer title (for drawer type) */
|
|
816
|
+
title?: string;
|
|
817
|
+
/** Drawer width in pixels or percentage (for drawer type) */
|
|
818
|
+
width?: string | number;
|
|
819
|
+
/** Component to render in SideApp (for route type) */
|
|
820
|
+
sideAppComponent?: ReactNode;
|
|
821
|
+
}
|
|
778
822
|
/**
|
|
779
823
|
* Lattice Chat Shell configuration interface
|
|
780
824
|
*/
|
|
@@ -828,10 +872,39 @@ interface LatticeChatShellConfig {
|
|
|
828
872
|
*/
|
|
829
873
|
enableAssistantCreation?: boolean;
|
|
830
874
|
/**
|
|
831
|
-
|
|
875
|
+
* Whether users can edit existing assistants
|
|
876
|
+
* Defaults to true
|
|
877
|
+
*/
|
|
878
|
+
enableAssistantEditing?: boolean;
|
|
879
|
+
/**
|
|
880
|
+
* Whether to enable workspace and project management
|
|
881
|
+
* When enabled, shows workspace selector in header and file browser
|
|
882
|
+
* Defaults to false
|
|
883
|
+
*/
|
|
884
|
+
enableWorkspace?: boolean;
|
|
885
|
+
/**
|
|
886
|
+
* Resource folders configuration for workspace
|
|
887
|
+
* Each folder represents a section in the workspace assets panel
|
|
888
|
+
* If not provided, defaults to a single root folder with upload enabled
|
|
889
|
+
*/
|
|
890
|
+
resourceFolders?: ResourceFolderConfig[];
|
|
891
|
+
/**
|
|
892
|
+
* Custom sidebar menu items that can be registered
|
|
893
|
+
* These will be displayed alongside the default menu items
|
|
894
|
+
*/
|
|
895
|
+
sideMenuItems?: SideMenuItemConfig[];
|
|
896
|
+
/**
|
|
897
|
+
* Whether to enable the database picker slot in the chat sender
|
|
898
|
+
* When enabled, shows a database selection button in the sender footer
|
|
832
899
|
* Defaults to true
|
|
833
900
|
*/
|
|
834
|
-
|
|
901
|
+
enableDatabaseSlot?: boolean;
|
|
902
|
+
/**
|
|
903
|
+
* Whether to enable the skill picker slot in the chat sender
|
|
904
|
+
* When enabled, shows a skill selection button in the sender footer
|
|
905
|
+
* Defaults to true
|
|
906
|
+
*/
|
|
907
|
+
enableSkillSlot?: boolean;
|
|
835
908
|
}
|
|
836
909
|
/**
|
|
837
910
|
* Lattice Chat Shell context value interface
|
|
@@ -964,6 +1037,10 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
964
1037
|
* Whether users can edit existing assistants (default: true)
|
|
965
1038
|
*/
|
|
966
1039
|
enableAssistantEditing?: boolean;
|
|
1040
|
+
/**
|
|
1041
|
+
* Whether to enable workspace and project management (default: false)
|
|
1042
|
+
*/
|
|
1043
|
+
enableWorkspace?: boolean;
|
|
967
1044
|
};
|
|
968
1045
|
/**
|
|
969
1046
|
* Lattice Chat Shell component
|
|
@@ -1068,4 +1145,10 @@ interface CreateAssistantModalProps {
|
|
|
1068
1145
|
}
|
|
1069
1146
|
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1070
1147
|
|
|
1071
|
-
|
|
1148
|
+
interface SkillCategoryPromptsProps {
|
|
1149
|
+
senderRef: React__default.RefObject<any>;
|
|
1150
|
+
visible?: boolean;
|
|
1151
|
+
}
|
|
1152
|
+
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
1153
|
+
|
|
1154
|
+
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, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, 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 };
|