@axiom-lattice/react-sdk 2.1.48 → 2.1.50

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
@@ -706,7 +706,9 @@ interface ToolCallData {
706
706
  declare const getElement: (language: string | undefined) => ElementMeta | null;
707
707
  declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => ElementMeta;
708
708
 
709
- declare const SideAppViewBrowser: React__default.FC;
709
+ declare const SideAppViewBrowser: React__default.FC<{
710
+ region?: "side" | "content";
711
+ }>;
710
712
 
711
713
  declare const ChatUIContext: React$1.Context<{
712
714
  sideAppVisible: boolean;
@@ -743,6 +745,36 @@ declare const ChatUIContext: React$1.Context<{
743
745
  closeSideApp: () => void;
744
746
  menuCollapsed: boolean;
745
747
  setMenuCollapsed: (collapsed: boolean) => void;
748
+ openContentApp: (card: {
749
+ component_key: string;
750
+ data: any;
751
+ message?: string;
752
+ context?: {
753
+ thread_id?: string;
754
+ assistant_id?: string;
755
+ };
756
+ }) => void;
757
+ closeContentApp: () => void;
758
+ contentAppVisible: boolean;
759
+ setcontentAppVisible: (visible: boolean) => void;
760
+ contentAppSelectedCard: {
761
+ component_key: string;
762
+ data: any;
763
+ message?: string;
764
+ context?: {
765
+ thread_id?: string;
766
+ assistant_id?: string;
767
+ };
768
+ } | null;
769
+ setContentAppSelectedCard: (card: {
770
+ component_key: string;
771
+ data: any;
772
+ message?: string;
773
+ context?: {
774
+ thread_id?: string;
775
+ assistant_id?: string;
776
+ };
777
+ } | null) => void;
746
778
  }>;
747
779
  declare const ChatUIContextProvider: ({ children, }: {
748
780
  children: React.ReactNode;
@@ -782,6 +814,36 @@ declare const useChatUIContext: () => {
782
814
  closeSideApp: () => void;
783
815
  menuCollapsed: boolean;
784
816
  setMenuCollapsed: (collapsed: boolean) => void;
817
+ openContentApp: (card: {
818
+ component_key: string;
819
+ data: any;
820
+ message?: string;
821
+ context?: {
822
+ thread_id?: string;
823
+ assistant_id?: string;
824
+ };
825
+ }) => void;
826
+ closeContentApp: () => void;
827
+ contentAppVisible: boolean;
828
+ setcontentAppVisible: (visible: boolean) => void;
829
+ contentAppSelectedCard: {
830
+ component_key: string;
831
+ data: any;
832
+ message?: string;
833
+ context?: {
834
+ thread_id?: string;
835
+ assistant_id?: string;
836
+ };
837
+ } | null;
838
+ setContentAppSelectedCard: (card: {
839
+ component_key: string;
840
+ data: any;
841
+ message?: string;
842
+ context?: {
843
+ thread_id?: string;
844
+ assistant_id?: string;
845
+ };
846
+ } | null) => void;
785
847
  };
786
848
 
787
849
  /**
@@ -1090,8 +1152,8 @@ interface SideMenuItemConfig {
1090
1152
  icon?: ReactNode;
1091
1153
  /** Order for sorting menu items (lower values first) */
1092
1154
  order?: number;
1093
- /** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, tools, workspace, settings, database, metrics, mcp, projects, logout) */
1094
- builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "tools" | "workspace" | "settings" | "database" | "metrics" | "mcp" | "projects" | "logout";
1155
+ /** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, skills, tools, workspace, settings, database, metrics, mcp, projects, logout, switch-tenant) */
1156
+ builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "skills" | "tools" | "workspace" | "settings" | "database" | "metrics" | "mcp" | "projects" | "logout" | "switch-tenant";
1095
1157
  /**
1096
1158
  * Menu group for organizing items
1097
1159
  */
@@ -1355,6 +1417,7 @@ interface ColumnLayoutProps {
1355
1417
  left: React__default.ReactNode;
1356
1418
  right: React__default.ReactNode;
1357
1419
  logo?: React__default.ReactNode;
1420
+ header?: React__default.ReactNode;
1358
1421
  }
1359
1422
  declare const ColumnLayout: React__default.FC<ColumnLayoutProps>;
1360
1423
 
@@ -1389,6 +1452,14 @@ declare const AgentConversations: React__default.FC<AgentConversationsProps>;
1389
1452
 
1390
1453
  declare const MetricsConfigDrawerContent: React__default.FC;
1391
1454
 
1455
+ interface WorkspaceResourceManagerProps {
1456
+ workspaceId: string;
1457
+ workspaceName?: string;
1458
+ logo?: React__default.ReactNode;
1459
+ }
1460
+ declare const WorkspaceResourceManager: React__default.FC<WorkspaceResourceManagerProps>;
1461
+ declare const WorkspaceResourceUIContext: React__default.FC<WorkspaceResourceManagerProps>;
1462
+
1392
1463
  type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
1393
1464
  /**
1394
1465
  * Whether users can create new assistants (default: true)
@@ -1928,4 +1999,4 @@ declare const useAxiomTheme: () => {
1928
1999
  };
1929
2000
  };
1930
2001
 
1931
- 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, type AuthContextValue, AuthProvider, 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, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
2002
+ 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, type AuthContextValue, AuthProvider, 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, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
package/dist/index.d.ts CHANGED
@@ -706,7 +706,9 @@ interface ToolCallData {
706
706
  declare const getElement: (language: string | undefined) => ElementMeta | null;
707
707
  declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => ElementMeta;
708
708
 
709
- declare const SideAppViewBrowser: React__default.FC;
709
+ declare const SideAppViewBrowser: React__default.FC<{
710
+ region?: "side" | "content";
711
+ }>;
710
712
 
711
713
  declare const ChatUIContext: React$1.Context<{
712
714
  sideAppVisible: boolean;
@@ -743,6 +745,36 @@ declare const ChatUIContext: React$1.Context<{
743
745
  closeSideApp: () => void;
744
746
  menuCollapsed: boolean;
745
747
  setMenuCollapsed: (collapsed: boolean) => void;
748
+ openContentApp: (card: {
749
+ component_key: string;
750
+ data: any;
751
+ message?: string;
752
+ context?: {
753
+ thread_id?: string;
754
+ assistant_id?: string;
755
+ };
756
+ }) => void;
757
+ closeContentApp: () => void;
758
+ contentAppVisible: boolean;
759
+ setcontentAppVisible: (visible: boolean) => void;
760
+ contentAppSelectedCard: {
761
+ component_key: string;
762
+ data: any;
763
+ message?: string;
764
+ context?: {
765
+ thread_id?: string;
766
+ assistant_id?: string;
767
+ };
768
+ } | null;
769
+ setContentAppSelectedCard: (card: {
770
+ component_key: string;
771
+ data: any;
772
+ message?: string;
773
+ context?: {
774
+ thread_id?: string;
775
+ assistant_id?: string;
776
+ };
777
+ } | null) => void;
746
778
  }>;
747
779
  declare const ChatUIContextProvider: ({ children, }: {
748
780
  children: React.ReactNode;
@@ -782,6 +814,36 @@ declare const useChatUIContext: () => {
782
814
  closeSideApp: () => void;
783
815
  menuCollapsed: boolean;
784
816
  setMenuCollapsed: (collapsed: boolean) => void;
817
+ openContentApp: (card: {
818
+ component_key: string;
819
+ data: any;
820
+ message?: string;
821
+ context?: {
822
+ thread_id?: string;
823
+ assistant_id?: string;
824
+ };
825
+ }) => void;
826
+ closeContentApp: () => void;
827
+ contentAppVisible: boolean;
828
+ setcontentAppVisible: (visible: boolean) => void;
829
+ contentAppSelectedCard: {
830
+ component_key: string;
831
+ data: any;
832
+ message?: string;
833
+ context?: {
834
+ thread_id?: string;
835
+ assistant_id?: string;
836
+ };
837
+ } | null;
838
+ setContentAppSelectedCard: (card: {
839
+ component_key: string;
840
+ data: any;
841
+ message?: string;
842
+ context?: {
843
+ thread_id?: string;
844
+ assistant_id?: string;
845
+ };
846
+ } | null) => void;
785
847
  };
786
848
 
787
849
  /**
@@ -1090,8 +1152,8 @@ interface SideMenuItemConfig {
1090
1152
  icon?: ReactNode;
1091
1153
  /** Order for sorting menu items (lower values first) */
1092
1154
  order?: number;
1093
- /** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, tools, workspace, settings, database, metrics, mcp, projects, logout) */
1094
- builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "tools" | "workspace" | "settings" | "database" | "metrics" | "mcp" | "projects" | "logout";
1155
+ /** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, skills, tools, workspace, settings, database, metrics, mcp, projects, logout, switch-tenant) */
1156
+ builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "skills" | "tools" | "workspace" | "settings" | "database" | "metrics" | "mcp" | "projects" | "logout" | "switch-tenant";
1095
1157
  /**
1096
1158
  * Menu group for organizing items
1097
1159
  */
@@ -1355,6 +1417,7 @@ interface ColumnLayoutProps {
1355
1417
  left: React__default.ReactNode;
1356
1418
  right: React__default.ReactNode;
1357
1419
  logo?: React__default.ReactNode;
1420
+ header?: React__default.ReactNode;
1358
1421
  }
1359
1422
  declare const ColumnLayout: React__default.FC<ColumnLayoutProps>;
1360
1423
 
@@ -1389,6 +1452,14 @@ declare const AgentConversations: React__default.FC<AgentConversationsProps>;
1389
1452
 
1390
1453
  declare const MetricsConfigDrawerContent: React__default.FC;
1391
1454
 
1455
+ interface WorkspaceResourceManagerProps {
1456
+ workspaceId: string;
1457
+ workspaceName?: string;
1458
+ logo?: React__default.ReactNode;
1459
+ }
1460
+ declare const WorkspaceResourceManager: React__default.FC<WorkspaceResourceManagerProps>;
1461
+ declare const WorkspaceResourceUIContext: React__default.FC<WorkspaceResourceManagerProps>;
1462
+
1392
1463
  type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
1393
1464
  /**
1394
1465
  * Whether users can create new assistants (default: true)
@@ -1928,4 +1999,4 @@ declare const useAxiomTheme: () => {
1928
1999
  };
1929
2000
  };
1930
2001
 
1931
- 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, type AuthContextValue, AuthProvider, 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, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
2002
+ 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, type AuthContextValue, AuthProvider, 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, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };