@axiom-lattice/react-sdk 2.1.61 → 2.1.62
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 +69 -115
- package/dist/index.d.ts +69 -115
- package/dist/index.js +1300 -943
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1299 -934
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -793,140 +793,87 @@ declare const SideAppViewBrowser: React__default.FC<{
|
|
|
793
793
|
region?: "side" | "content";
|
|
794
794
|
}>;
|
|
795
795
|
|
|
796
|
-
|
|
796
|
+
type PanelCardData = Record<string, unknown> & {
|
|
797
|
+
component?: ReactNode;
|
|
798
|
+
message?: string;
|
|
799
|
+
};
|
|
800
|
+
type PanelCard = {
|
|
801
|
+
component_key: string;
|
|
802
|
+
data: PanelCardData;
|
|
803
|
+
message?: string;
|
|
804
|
+
context?: {
|
|
805
|
+
thread_id?: string;
|
|
806
|
+
assistant_id?: string;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
declare const ChatUIContext: React__default.Context<{
|
|
810
|
+
detailVisible: boolean;
|
|
811
|
+
setDetailVisible: (visible: boolean) => void;
|
|
812
|
+
detailSize: "small" | "middle" | "large" | "full";
|
|
813
|
+
setDetailSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
814
|
+
detailSelectedCard: PanelCard | null;
|
|
815
|
+
setDetailSelectedCard: (card: PanelCard | null) => void;
|
|
816
|
+
openDetail: (card: PanelCard) => void;
|
|
817
|
+
closeDetail: () => void;
|
|
818
|
+
toolsVisible: boolean;
|
|
819
|
+
setToolsVisible: (visible: boolean) => void;
|
|
820
|
+
toggleTools: () => void;
|
|
821
|
+
toolSelectedCard: PanelCard | null;
|
|
822
|
+
setToolSelectedCard: (card: PanelCard | null) => void;
|
|
823
|
+
openTools: (card: PanelCard) => void;
|
|
824
|
+
closeTools: () => void;
|
|
797
825
|
sideAppVisible: boolean;
|
|
798
826
|
setSideAppVisible: (visible: boolean) => void;
|
|
799
827
|
sideAppSize: "small" | "middle" | "large" | "full";
|
|
800
828
|
setSideAppSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
801
|
-
sideAppSelectedCard:
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
message?: string;
|
|
805
|
-
context?: {
|
|
806
|
-
thread_id?: string;
|
|
807
|
-
assistant_id?: string;
|
|
808
|
-
};
|
|
809
|
-
} | null;
|
|
810
|
-
setSideAppSelectedCard: (card: {
|
|
811
|
-
component_key: string;
|
|
812
|
-
data: any;
|
|
813
|
-
message?: string;
|
|
814
|
-
context?: {
|
|
815
|
-
thread_id?: string;
|
|
816
|
-
assistant_id?: string;
|
|
817
|
-
};
|
|
818
|
-
} | null) => void;
|
|
819
|
-
openSideApp: (card: {
|
|
820
|
-
component_key: string;
|
|
821
|
-
data: any;
|
|
822
|
-
message?: string;
|
|
823
|
-
context?: {
|
|
824
|
-
thread_id?: string;
|
|
825
|
-
assistant_id?: string;
|
|
826
|
-
};
|
|
827
|
-
}) => void;
|
|
829
|
+
sideAppSelectedCard: PanelCard | null;
|
|
830
|
+
setSideAppSelectedCard: (card: PanelCard | null) => void;
|
|
831
|
+
openSideApp: (card: PanelCard) => void;
|
|
828
832
|
closeSideApp: () => void;
|
|
829
833
|
menuCollapsed: boolean;
|
|
830
834
|
setMenuCollapsed: (collapsed: boolean) => void;
|
|
831
|
-
openContentApp: (card:
|
|
832
|
-
component_key: string;
|
|
833
|
-
data: any;
|
|
834
|
-
message?: string;
|
|
835
|
-
context?: {
|
|
836
|
-
thread_id?: string;
|
|
837
|
-
assistant_id?: string;
|
|
838
|
-
};
|
|
839
|
-
}) => void;
|
|
835
|
+
openContentApp: (card: PanelCard) => void;
|
|
840
836
|
closeContentApp: () => void;
|
|
841
837
|
contentAppVisible: boolean;
|
|
842
838
|
setcontentAppVisible: (visible: boolean) => void;
|
|
843
|
-
contentAppSelectedCard:
|
|
844
|
-
|
|
845
|
-
data: any;
|
|
846
|
-
message?: string;
|
|
847
|
-
context?: {
|
|
848
|
-
thread_id?: string;
|
|
849
|
-
assistant_id?: string;
|
|
850
|
-
};
|
|
851
|
-
} | null;
|
|
852
|
-
setContentAppSelectedCard: (card: {
|
|
853
|
-
component_key: string;
|
|
854
|
-
data: any;
|
|
855
|
-
message?: string;
|
|
856
|
-
context?: {
|
|
857
|
-
thread_id?: string;
|
|
858
|
-
assistant_id?: string;
|
|
859
|
-
};
|
|
860
|
-
} | null) => void;
|
|
839
|
+
contentAppSelectedCard: PanelCard | null;
|
|
840
|
+
setContentAppSelectedCard: (card: PanelCard | null) => void;
|
|
861
841
|
}>;
|
|
862
842
|
declare const ChatUIContextProvider: ({ children, }: {
|
|
863
|
-
children:
|
|
843
|
+
children: React__default.ReactNode;
|
|
864
844
|
}) => react_jsx_runtime.JSX.Element;
|
|
865
845
|
declare const useChatUIContext: () => {
|
|
846
|
+
detailVisible: boolean;
|
|
847
|
+
setDetailVisible: (visible: boolean) => void;
|
|
848
|
+
detailSize: "small" | "middle" | "large" | "full";
|
|
849
|
+
setDetailSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
850
|
+
detailSelectedCard: PanelCard | null;
|
|
851
|
+
setDetailSelectedCard: (card: PanelCard | null) => void;
|
|
852
|
+
openDetail: (card: PanelCard) => void;
|
|
853
|
+
closeDetail: () => void;
|
|
854
|
+
toolsVisible: boolean;
|
|
855
|
+
setToolsVisible: (visible: boolean) => void;
|
|
856
|
+
toggleTools: () => void;
|
|
857
|
+
toolSelectedCard: PanelCard | null;
|
|
858
|
+
setToolSelectedCard: (card: PanelCard | null) => void;
|
|
859
|
+
openTools: (card: PanelCard) => void;
|
|
860
|
+
closeTools: () => void;
|
|
866
861
|
sideAppVisible: boolean;
|
|
867
862
|
setSideAppVisible: (visible: boolean) => void;
|
|
868
863
|
sideAppSize: "small" | "middle" | "large" | "full";
|
|
869
864
|
setSideAppSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
870
|
-
sideAppSelectedCard:
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
message?: string;
|
|
874
|
-
context?: {
|
|
875
|
-
thread_id?: string;
|
|
876
|
-
assistant_id?: string;
|
|
877
|
-
};
|
|
878
|
-
} | null;
|
|
879
|
-
setSideAppSelectedCard: (card: {
|
|
880
|
-
component_key: string;
|
|
881
|
-
data: any;
|
|
882
|
-
message?: string;
|
|
883
|
-
context?: {
|
|
884
|
-
thread_id?: string;
|
|
885
|
-
assistant_id?: string;
|
|
886
|
-
};
|
|
887
|
-
} | null) => void;
|
|
888
|
-
openSideApp: (card: {
|
|
889
|
-
component_key: string;
|
|
890
|
-
data: any;
|
|
891
|
-
message?: string;
|
|
892
|
-
context?: {
|
|
893
|
-
thread_id?: string;
|
|
894
|
-
assistant_id?: string;
|
|
895
|
-
};
|
|
896
|
-
}) => void;
|
|
865
|
+
sideAppSelectedCard: PanelCard | null;
|
|
866
|
+
setSideAppSelectedCard: (card: PanelCard | null) => void;
|
|
867
|
+
openSideApp: (card: PanelCard) => void;
|
|
897
868
|
closeSideApp: () => void;
|
|
898
869
|
menuCollapsed: boolean;
|
|
899
870
|
setMenuCollapsed: (collapsed: boolean) => void;
|
|
900
|
-
openContentApp: (card:
|
|
901
|
-
component_key: string;
|
|
902
|
-
data: any;
|
|
903
|
-
message?: string;
|
|
904
|
-
context?: {
|
|
905
|
-
thread_id?: string;
|
|
906
|
-
assistant_id?: string;
|
|
907
|
-
};
|
|
908
|
-
}) => void;
|
|
871
|
+
openContentApp: (card: PanelCard) => void;
|
|
909
872
|
closeContentApp: () => void;
|
|
910
873
|
contentAppVisible: boolean;
|
|
911
874
|
setcontentAppVisible: (visible: boolean) => void;
|
|
912
|
-
contentAppSelectedCard:
|
|
913
|
-
|
|
914
|
-
data: any;
|
|
915
|
-
message?: string;
|
|
916
|
-
context?: {
|
|
917
|
-
thread_id?: string;
|
|
918
|
-
assistant_id?: string;
|
|
919
|
-
};
|
|
920
|
-
} | null;
|
|
921
|
-
setContentAppSelectedCard: (card: {
|
|
922
|
-
component_key: string;
|
|
923
|
-
data: any;
|
|
924
|
-
message?: string;
|
|
925
|
-
context?: {
|
|
926
|
-
thread_id?: string;
|
|
927
|
-
assistant_id?: string;
|
|
928
|
-
};
|
|
929
|
-
} | null) => void;
|
|
875
|
+
contentAppSelectedCard: PanelCard | null;
|
|
876
|
+
setContentAppSelectedCard: (card: PanelCard | null) => void;
|
|
930
877
|
};
|
|
931
878
|
|
|
932
879
|
/**
|
|
@@ -1409,7 +1356,7 @@ interface LatticeChatShellConfig {
|
|
|
1409
1356
|
* Custom logo icon component
|
|
1410
1357
|
* If not provided, defaults to Cpu icon
|
|
1411
1358
|
*/
|
|
1412
|
-
sidebarLogoIcon?:
|
|
1359
|
+
sidebarLogoIcon?: React__default.ReactNode;
|
|
1413
1360
|
/**
|
|
1414
1361
|
* Custom quick prompts data for quick prompt components
|
|
1415
1362
|
* Allows registering custom prompt categories and items via shell config
|
|
@@ -1446,10 +1393,14 @@ interface LatticeChatShellContextValue {
|
|
|
1446
1393
|
*/
|
|
1447
1394
|
setSettingsModalOpen: (open: boolean) => void;
|
|
1448
1395
|
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Default middleware type definitions with JSON Schema for configuration
|
|
1398
|
+
*/
|
|
1399
|
+
declare const DEFAULT_MIDDLEWARE_TYPES: MiddlewareTypeDefinition[];
|
|
1449
1400
|
/**
|
|
1450
1401
|
* Lattice Chat Shell context
|
|
1451
1402
|
*/
|
|
1452
|
-
declare const LatticeChatShellContext:
|
|
1403
|
+
declare const LatticeChatShellContext: React__default.Context<LatticeChatShellContextValue>;
|
|
1453
1404
|
/**
|
|
1454
1405
|
* Props for LatticeChatShellContextProvider
|
|
1455
1406
|
*/
|
|
@@ -1504,8 +1455,9 @@ interface AttachFile {
|
|
|
1504
1455
|
|
|
1505
1456
|
interface ColumnLayoutProps {
|
|
1506
1457
|
menu?: React__default.ReactNode;
|
|
1507
|
-
|
|
1508
|
-
|
|
1458
|
+
main: React__default.ReactNode;
|
|
1459
|
+
detail?: React__default.ReactNode;
|
|
1460
|
+
tools?: React__default.ReactNode;
|
|
1509
1461
|
logo?: React__default.ReactNode;
|
|
1510
1462
|
header?: React__default.ReactNode;
|
|
1511
1463
|
}
|
|
@@ -1575,6 +1527,8 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
1575
1527
|
*/
|
|
1576
1528
|
declare const LatticeChatShell: React__default.FC<LatticeChatShellProps>;
|
|
1577
1529
|
|
|
1530
|
+
declare const ChannelInstallationsDrawerContent: React__default.FC;
|
|
1531
|
+
|
|
1578
1532
|
interface ScheduleButtonProps {
|
|
1579
1533
|
/**
|
|
1580
1534
|
* Custom tooltip text
|
|
@@ -2181,4 +2135,4 @@ type IframeMessage = {
|
|
|
2181
2135
|
};
|
|
2182
2136
|
declare function generateIframeSrcdoc(): string;
|
|
2183
2137
|
|
|
2184
|
-
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 BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, 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, type IframeMessage, 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, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, 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, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
|
2138
|
+
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 BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, 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, DEFAULT_MIDDLEWARE_TYPES, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, 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, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, 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, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -793,140 +793,87 @@ declare const SideAppViewBrowser: React__default.FC<{
|
|
|
793
793
|
region?: "side" | "content";
|
|
794
794
|
}>;
|
|
795
795
|
|
|
796
|
-
|
|
796
|
+
type PanelCardData = Record<string, unknown> & {
|
|
797
|
+
component?: ReactNode;
|
|
798
|
+
message?: string;
|
|
799
|
+
};
|
|
800
|
+
type PanelCard = {
|
|
801
|
+
component_key: string;
|
|
802
|
+
data: PanelCardData;
|
|
803
|
+
message?: string;
|
|
804
|
+
context?: {
|
|
805
|
+
thread_id?: string;
|
|
806
|
+
assistant_id?: string;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
declare const ChatUIContext: React__default.Context<{
|
|
810
|
+
detailVisible: boolean;
|
|
811
|
+
setDetailVisible: (visible: boolean) => void;
|
|
812
|
+
detailSize: "small" | "middle" | "large" | "full";
|
|
813
|
+
setDetailSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
814
|
+
detailSelectedCard: PanelCard | null;
|
|
815
|
+
setDetailSelectedCard: (card: PanelCard | null) => void;
|
|
816
|
+
openDetail: (card: PanelCard) => void;
|
|
817
|
+
closeDetail: () => void;
|
|
818
|
+
toolsVisible: boolean;
|
|
819
|
+
setToolsVisible: (visible: boolean) => void;
|
|
820
|
+
toggleTools: () => void;
|
|
821
|
+
toolSelectedCard: PanelCard | null;
|
|
822
|
+
setToolSelectedCard: (card: PanelCard | null) => void;
|
|
823
|
+
openTools: (card: PanelCard) => void;
|
|
824
|
+
closeTools: () => void;
|
|
797
825
|
sideAppVisible: boolean;
|
|
798
826
|
setSideAppVisible: (visible: boolean) => void;
|
|
799
827
|
sideAppSize: "small" | "middle" | "large" | "full";
|
|
800
828
|
setSideAppSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
801
|
-
sideAppSelectedCard:
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
message?: string;
|
|
805
|
-
context?: {
|
|
806
|
-
thread_id?: string;
|
|
807
|
-
assistant_id?: string;
|
|
808
|
-
};
|
|
809
|
-
} | null;
|
|
810
|
-
setSideAppSelectedCard: (card: {
|
|
811
|
-
component_key: string;
|
|
812
|
-
data: any;
|
|
813
|
-
message?: string;
|
|
814
|
-
context?: {
|
|
815
|
-
thread_id?: string;
|
|
816
|
-
assistant_id?: string;
|
|
817
|
-
};
|
|
818
|
-
} | null) => void;
|
|
819
|
-
openSideApp: (card: {
|
|
820
|
-
component_key: string;
|
|
821
|
-
data: any;
|
|
822
|
-
message?: string;
|
|
823
|
-
context?: {
|
|
824
|
-
thread_id?: string;
|
|
825
|
-
assistant_id?: string;
|
|
826
|
-
};
|
|
827
|
-
}) => void;
|
|
829
|
+
sideAppSelectedCard: PanelCard | null;
|
|
830
|
+
setSideAppSelectedCard: (card: PanelCard | null) => void;
|
|
831
|
+
openSideApp: (card: PanelCard) => void;
|
|
828
832
|
closeSideApp: () => void;
|
|
829
833
|
menuCollapsed: boolean;
|
|
830
834
|
setMenuCollapsed: (collapsed: boolean) => void;
|
|
831
|
-
openContentApp: (card:
|
|
832
|
-
component_key: string;
|
|
833
|
-
data: any;
|
|
834
|
-
message?: string;
|
|
835
|
-
context?: {
|
|
836
|
-
thread_id?: string;
|
|
837
|
-
assistant_id?: string;
|
|
838
|
-
};
|
|
839
|
-
}) => void;
|
|
835
|
+
openContentApp: (card: PanelCard) => void;
|
|
840
836
|
closeContentApp: () => void;
|
|
841
837
|
contentAppVisible: boolean;
|
|
842
838
|
setcontentAppVisible: (visible: boolean) => void;
|
|
843
|
-
contentAppSelectedCard:
|
|
844
|
-
|
|
845
|
-
data: any;
|
|
846
|
-
message?: string;
|
|
847
|
-
context?: {
|
|
848
|
-
thread_id?: string;
|
|
849
|
-
assistant_id?: string;
|
|
850
|
-
};
|
|
851
|
-
} | null;
|
|
852
|
-
setContentAppSelectedCard: (card: {
|
|
853
|
-
component_key: string;
|
|
854
|
-
data: any;
|
|
855
|
-
message?: string;
|
|
856
|
-
context?: {
|
|
857
|
-
thread_id?: string;
|
|
858
|
-
assistant_id?: string;
|
|
859
|
-
};
|
|
860
|
-
} | null) => void;
|
|
839
|
+
contentAppSelectedCard: PanelCard | null;
|
|
840
|
+
setContentAppSelectedCard: (card: PanelCard | null) => void;
|
|
861
841
|
}>;
|
|
862
842
|
declare const ChatUIContextProvider: ({ children, }: {
|
|
863
|
-
children:
|
|
843
|
+
children: React__default.ReactNode;
|
|
864
844
|
}) => react_jsx_runtime.JSX.Element;
|
|
865
845
|
declare const useChatUIContext: () => {
|
|
846
|
+
detailVisible: boolean;
|
|
847
|
+
setDetailVisible: (visible: boolean) => void;
|
|
848
|
+
detailSize: "small" | "middle" | "large" | "full";
|
|
849
|
+
setDetailSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
850
|
+
detailSelectedCard: PanelCard | null;
|
|
851
|
+
setDetailSelectedCard: (card: PanelCard | null) => void;
|
|
852
|
+
openDetail: (card: PanelCard) => void;
|
|
853
|
+
closeDetail: () => void;
|
|
854
|
+
toolsVisible: boolean;
|
|
855
|
+
setToolsVisible: (visible: boolean) => void;
|
|
856
|
+
toggleTools: () => void;
|
|
857
|
+
toolSelectedCard: PanelCard | null;
|
|
858
|
+
setToolSelectedCard: (card: PanelCard | null) => void;
|
|
859
|
+
openTools: (card: PanelCard) => void;
|
|
860
|
+
closeTools: () => void;
|
|
866
861
|
sideAppVisible: boolean;
|
|
867
862
|
setSideAppVisible: (visible: boolean) => void;
|
|
868
863
|
sideAppSize: "small" | "middle" | "large" | "full";
|
|
869
864
|
setSideAppSize: (size: "small" | "middle" | "large" | "full") => void;
|
|
870
|
-
sideAppSelectedCard:
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
message?: string;
|
|
874
|
-
context?: {
|
|
875
|
-
thread_id?: string;
|
|
876
|
-
assistant_id?: string;
|
|
877
|
-
};
|
|
878
|
-
} | null;
|
|
879
|
-
setSideAppSelectedCard: (card: {
|
|
880
|
-
component_key: string;
|
|
881
|
-
data: any;
|
|
882
|
-
message?: string;
|
|
883
|
-
context?: {
|
|
884
|
-
thread_id?: string;
|
|
885
|
-
assistant_id?: string;
|
|
886
|
-
};
|
|
887
|
-
} | null) => void;
|
|
888
|
-
openSideApp: (card: {
|
|
889
|
-
component_key: string;
|
|
890
|
-
data: any;
|
|
891
|
-
message?: string;
|
|
892
|
-
context?: {
|
|
893
|
-
thread_id?: string;
|
|
894
|
-
assistant_id?: string;
|
|
895
|
-
};
|
|
896
|
-
}) => void;
|
|
865
|
+
sideAppSelectedCard: PanelCard | null;
|
|
866
|
+
setSideAppSelectedCard: (card: PanelCard | null) => void;
|
|
867
|
+
openSideApp: (card: PanelCard) => void;
|
|
897
868
|
closeSideApp: () => void;
|
|
898
869
|
menuCollapsed: boolean;
|
|
899
870
|
setMenuCollapsed: (collapsed: boolean) => void;
|
|
900
|
-
openContentApp: (card:
|
|
901
|
-
component_key: string;
|
|
902
|
-
data: any;
|
|
903
|
-
message?: string;
|
|
904
|
-
context?: {
|
|
905
|
-
thread_id?: string;
|
|
906
|
-
assistant_id?: string;
|
|
907
|
-
};
|
|
908
|
-
}) => void;
|
|
871
|
+
openContentApp: (card: PanelCard) => void;
|
|
909
872
|
closeContentApp: () => void;
|
|
910
873
|
contentAppVisible: boolean;
|
|
911
874
|
setcontentAppVisible: (visible: boolean) => void;
|
|
912
|
-
contentAppSelectedCard:
|
|
913
|
-
|
|
914
|
-
data: any;
|
|
915
|
-
message?: string;
|
|
916
|
-
context?: {
|
|
917
|
-
thread_id?: string;
|
|
918
|
-
assistant_id?: string;
|
|
919
|
-
};
|
|
920
|
-
} | null;
|
|
921
|
-
setContentAppSelectedCard: (card: {
|
|
922
|
-
component_key: string;
|
|
923
|
-
data: any;
|
|
924
|
-
message?: string;
|
|
925
|
-
context?: {
|
|
926
|
-
thread_id?: string;
|
|
927
|
-
assistant_id?: string;
|
|
928
|
-
};
|
|
929
|
-
} | null) => void;
|
|
875
|
+
contentAppSelectedCard: PanelCard | null;
|
|
876
|
+
setContentAppSelectedCard: (card: PanelCard | null) => void;
|
|
930
877
|
};
|
|
931
878
|
|
|
932
879
|
/**
|
|
@@ -1409,7 +1356,7 @@ interface LatticeChatShellConfig {
|
|
|
1409
1356
|
* Custom logo icon component
|
|
1410
1357
|
* If not provided, defaults to Cpu icon
|
|
1411
1358
|
*/
|
|
1412
|
-
sidebarLogoIcon?:
|
|
1359
|
+
sidebarLogoIcon?: React__default.ReactNode;
|
|
1413
1360
|
/**
|
|
1414
1361
|
* Custom quick prompts data for quick prompt components
|
|
1415
1362
|
* Allows registering custom prompt categories and items via shell config
|
|
@@ -1446,10 +1393,14 @@ interface LatticeChatShellContextValue {
|
|
|
1446
1393
|
*/
|
|
1447
1394
|
setSettingsModalOpen: (open: boolean) => void;
|
|
1448
1395
|
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Default middleware type definitions with JSON Schema for configuration
|
|
1398
|
+
*/
|
|
1399
|
+
declare const DEFAULT_MIDDLEWARE_TYPES: MiddlewareTypeDefinition[];
|
|
1449
1400
|
/**
|
|
1450
1401
|
* Lattice Chat Shell context
|
|
1451
1402
|
*/
|
|
1452
|
-
declare const LatticeChatShellContext:
|
|
1403
|
+
declare const LatticeChatShellContext: React__default.Context<LatticeChatShellContextValue>;
|
|
1453
1404
|
/**
|
|
1454
1405
|
* Props for LatticeChatShellContextProvider
|
|
1455
1406
|
*/
|
|
@@ -1504,8 +1455,9 @@ interface AttachFile {
|
|
|
1504
1455
|
|
|
1505
1456
|
interface ColumnLayoutProps {
|
|
1506
1457
|
menu?: React__default.ReactNode;
|
|
1507
|
-
|
|
1508
|
-
|
|
1458
|
+
main: React__default.ReactNode;
|
|
1459
|
+
detail?: React__default.ReactNode;
|
|
1460
|
+
tools?: React__default.ReactNode;
|
|
1509
1461
|
logo?: React__default.ReactNode;
|
|
1510
1462
|
header?: React__default.ReactNode;
|
|
1511
1463
|
}
|
|
@@ -1575,6 +1527,8 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
1575
1527
|
*/
|
|
1576
1528
|
declare const LatticeChatShell: React__default.FC<LatticeChatShellProps>;
|
|
1577
1529
|
|
|
1530
|
+
declare const ChannelInstallationsDrawerContent: React__default.FC;
|
|
1531
|
+
|
|
1578
1532
|
interface ScheduleButtonProps {
|
|
1579
1533
|
/**
|
|
1580
1534
|
* Custom tooltip text
|
|
@@ -2181,4 +2135,4 @@ type IframeMessage = {
|
|
|
2181
2135
|
};
|
|
2182
2136
|
declare function generateIframeSrcdoc(): string;
|
|
2183
2137
|
|
|
2184
|
-
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 BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, 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, type IframeMessage, 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, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, 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, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
|
2138
|
+
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 BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, 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, DEFAULT_MIDDLEWARE_TYPES, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, 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, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, 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, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|