@axiom-lattice/react-sdk 2.1.53 → 2.1.55
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 +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +1240 -1129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +851 -741
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -694,6 +694,12 @@ interface ChatingProps {
|
|
|
694
694
|
showSender?: boolean;
|
|
695
695
|
showHITL?: boolean;
|
|
696
696
|
showRefreshButton?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* Whether to show the model selector in the sender footer
|
|
699
|
+
* When provided, overrides the shell config's enableModelSelector
|
|
700
|
+
*/
|
|
701
|
+
showModelSelector?: boolean;
|
|
702
|
+
showEmptyState?: boolean;
|
|
697
703
|
emptyStateGreeting?: React__default.ReactNode;
|
|
698
704
|
emptyStateQuestion?: string;
|
|
699
705
|
welcomePrefix?: string;
|
|
@@ -708,6 +714,28 @@ type AgentChatProps = {
|
|
|
708
714
|
} & ChatingProps;
|
|
709
715
|
declare const LatticeChat: React__default.FC<AgentChatProps>;
|
|
710
716
|
|
|
717
|
+
interface ModelConfig {
|
|
718
|
+
modelKey: string;
|
|
719
|
+
temperature?: number;
|
|
720
|
+
maxTokens?: number;
|
|
721
|
+
topP?: number;
|
|
722
|
+
frequencyPenalty?: number;
|
|
723
|
+
presencePenalty?: number;
|
|
724
|
+
}
|
|
725
|
+
interface ModelInfo {
|
|
726
|
+
key: string;
|
|
727
|
+
provider: string;
|
|
728
|
+
model: string;
|
|
729
|
+
displayName?: string;
|
|
730
|
+
}
|
|
731
|
+
interface ModelSelectorProps {
|
|
732
|
+
value?: ModelConfig | null;
|
|
733
|
+
onChange?: (config: ModelConfig | null) => void;
|
|
734
|
+
defaultModelKey?: string;
|
|
735
|
+
style?: React__default.CSSProperties;
|
|
736
|
+
}
|
|
737
|
+
declare const ModelSelector: React__default.FC<ModelSelectorProps>;
|
|
738
|
+
|
|
711
739
|
declare const MDResponse: React__default.MemoExoticComponent<({ content, context, embeddedLink, interactive, userData, noGenUI, }: {
|
|
712
740
|
context?: any;
|
|
713
741
|
content: string;
|
|
@@ -1329,6 +1357,12 @@ interface LatticeChatShellConfig {
|
|
|
1329
1357
|
* Defaults to true
|
|
1330
1358
|
*/
|
|
1331
1359
|
enableMetricsDataSourceSlot?: boolean;
|
|
1360
|
+
/**
|
|
1361
|
+
* Whether to enable the model selector in the chat sender
|
|
1362
|
+
* When enabled, shows a model selection dropdown in the sender footer
|
|
1363
|
+
* Defaults to false
|
|
1364
|
+
*/
|
|
1365
|
+
enableModelSelector?: boolean;
|
|
1332
1366
|
/**
|
|
1333
1367
|
* Sidebar display mode
|
|
1334
1368
|
* - "icon": Show only icons (default)
|
|
@@ -1514,6 +1548,10 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
1514
1548
|
* Whether to enable workspace and project management (default: false)
|
|
1515
1549
|
*/
|
|
1516
1550
|
enableWorkspace?: boolean;
|
|
1551
|
+
/**
|
|
1552
|
+
* Whether to enable the model selector in the chat sender (default: false)
|
|
1553
|
+
*/
|
|
1554
|
+
enableModelSelector?: boolean;
|
|
1517
1555
|
};
|
|
1518
1556
|
/**
|
|
1519
1557
|
* Lattice Chat Shell component
|
|
@@ -2128,4 +2166,4 @@ type IframeMessage = {
|
|
|
2128
2166
|
};
|
|
2129
2167
|
declare function generateIframeSrcdoc(): string;
|
|
2130
2168
|
|
|
2131
|
-
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, 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 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 };
|
|
2169
|
+
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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -694,6 +694,12 @@ interface ChatingProps {
|
|
|
694
694
|
showSender?: boolean;
|
|
695
695
|
showHITL?: boolean;
|
|
696
696
|
showRefreshButton?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* Whether to show the model selector in the sender footer
|
|
699
|
+
* When provided, overrides the shell config's enableModelSelector
|
|
700
|
+
*/
|
|
701
|
+
showModelSelector?: boolean;
|
|
702
|
+
showEmptyState?: boolean;
|
|
697
703
|
emptyStateGreeting?: React__default.ReactNode;
|
|
698
704
|
emptyStateQuestion?: string;
|
|
699
705
|
welcomePrefix?: string;
|
|
@@ -708,6 +714,28 @@ type AgentChatProps = {
|
|
|
708
714
|
} & ChatingProps;
|
|
709
715
|
declare const LatticeChat: React__default.FC<AgentChatProps>;
|
|
710
716
|
|
|
717
|
+
interface ModelConfig {
|
|
718
|
+
modelKey: string;
|
|
719
|
+
temperature?: number;
|
|
720
|
+
maxTokens?: number;
|
|
721
|
+
topP?: number;
|
|
722
|
+
frequencyPenalty?: number;
|
|
723
|
+
presencePenalty?: number;
|
|
724
|
+
}
|
|
725
|
+
interface ModelInfo {
|
|
726
|
+
key: string;
|
|
727
|
+
provider: string;
|
|
728
|
+
model: string;
|
|
729
|
+
displayName?: string;
|
|
730
|
+
}
|
|
731
|
+
interface ModelSelectorProps {
|
|
732
|
+
value?: ModelConfig | null;
|
|
733
|
+
onChange?: (config: ModelConfig | null) => void;
|
|
734
|
+
defaultModelKey?: string;
|
|
735
|
+
style?: React__default.CSSProperties;
|
|
736
|
+
}
|
|
737
|
+
declare const ModelSelector: React__default.FC<ModelSelectorProps>;
|
|
738
|
+
|
|
711
739
|
declare const MDResponse: React__default.MemoExoticComponent<({ content, context, embeddedLink, interactive, userData, noGenUI, }: {
|
|
712
740
|
context?: any;
|
|
713
741
|
content: string;
|
|
@@ -1329,6 +1357,12 @@ interface LatticeChatShellConfig {
|
|
|
1329
1357
|
* Defaults to true
|
|
1330
1358
|
*/
|
|
1331
1359
|
enableMetricsDataSourceSlot?: boolean;
|
|
1360
|
+
/**
|
|
1361
|
+
* Whether to enable the model selector in the chat sender
|
|
1362
|
+
* When enabled, shows a model selection dropdown in the sender footer
|
|
1363
|
+
* Defaults to false
|
|
1364
|
+
*/
|
|
1365
|
+
enableModelSelector?: boolean;
|
|
1332
1366
|
/**
|
|
1333
1367
|
* Sidebar display mode
|
|
1334
1368
|
* - "icon": Show only icons (default)
|
|
@@ -1514,6 +1548,10 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
1514
1548
|
* Whether to enable workspace and project management (default: false)
|
|
1515
1549
|
*/
|
|
1516
1550
|
enableWorkspace?: boolean;
|
|
1551
|
+
/**
|
|
1552
|
+
* Whether to enable the model selector in the chat sender (default: false)
|
|
1553
|
+
*/
|
|
1554
|
+
enableModelSelector?: boolean;
|
|
1517
1555
|
};
|
|
1518
1556
|
/**
|
|
1519
1557
|
* Lattice Chat Shell component
|
|
@@ -2128,4 +2166,4 @@ type IframeMessage = {
|
|
|
2128
2166
|
};
|
|
2129
2167
|
declare function generateIframeSrcdoc(): string;
|
|
2130
2168
|
|
|
2131
|
-
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, 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 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 };
|
|
2169
|
+
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, 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 };
|