@axiom-lattice/react-sdk 2.1.39 → 2.1.41
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 +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.js +12137 -8190
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10062 -6064
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,7 @@ import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } fro
|
|
|
8
8
|
import { Prompts } from '@ant-design/x';
|
|
9
9
|
import { GetProp, ThemeConfig } from 'antd';
|
|
10
10
|
export { ThemeConfig } from 'antd';
|
|
11
|
+
import { SlotConfigType } from '@ant-design/x/es/sender/interface';
|
|
11
12
|
import { NodeProps, Node } from '@xyflow/react';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -885,24 +886,24 @@ declare const AssistantContextProvider: ({ children, autoLoad, initialAssistantI
|
|
|
885
886
|
declare const useAssistantContext: () => AssistantContextValue;
|
|
886
887
|
|
|
887
888
|
/**
|
|
888
|
-
*
|
|
889
|
+
* Quick prompt item for quick prompt components
|
|
889
890
|
*/
|
|
890
|
-
interface
|
|
891
|
+
interface QuickPromptItem {
|
|
891
892
|
key: string;
|
|
892
893
|
icon?: ReactNode;
|
|
893
894
|
label: string;
|
|
894
895
|
description?: string;
|
|
895
|
-
content:
|
|
896
|
+
content: SlotConfigType[];
|
|
896
897
|
}
|
|
897
898
|
/**
|
|
898
|
-
*
|
|
899
|
+
* Quick prompt category for organizing prompt items
|
|
899
900
|
*/
|
|
900
|
-
interface
|
|
901
|
+
interface QuickPromptCategory {
|
|
901
902
|
key: string;
|
|
902
903
|
title: string;
|
|
903
904
|
icon?: ReactNode;
|
|
904
905
|
color?: string;
|
|
905
|
-
items:
|
|
906
|
+
items: QuickPromptItem[];
|
|
906
907
|
}
|
|
907
908
|
/**
|
|
908
909
|
* Middleware tool definition
|
|
@@ -989,8 +990,8 @@ interface SideMenuItemConfig {
|
|
|
989
990
|
icon?: ReactNode;
|
|
990
991
|
/** Order for sorting menu items (lower values first) */
|
|
991
992
|
order?: number;
|
|
992
|
-
/** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, tools, workspace, settings, database, metrics, projects, logout) */
|
|
993
|
-
builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "tools" | "workspace" | "settings" | "database" | "metrics" | "projects" | "logout";
|
|
993
|
+
/** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, tools, workspace, settings, database, metrics, mcp, projects, logout) */
|
|
994
|
+
builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "tools" | "workspace" | "settings" | "database" | "metrics" | "mcp" | "projects" | "logout";
|
|
994
995
|
/**
|
|
995
996
|
* Menu group for organizing items
|
|
996
997
|
*/
|
|
@@ -1158,11 +1159,11 @@ interface LatticeChatShellConfig {
|
|
|
1158
1159
|
*/
|
|
1159
1160
|
sidebarLogoIcon?: React.ReactNode;
|
|
1160
1161
|
/**
|
|
1161
|
-
* Custom
|
|
1162
|
-
* Allows registering custom
|
|
1163
|
-
* If not provided, default
|
|
1162
|
+
* Custom quick prompts data for quick prompt components
|
|
1163
|
+
* Allows registering custom prompt categories and items via shell config
|
|
1164
|
+
* If not provided, default prompt data will be used
|
|
1164
1165
|
*/
|
|
1165
|
-
|
|
1166
|
+
quickPromptsData?: QuickPromptCategory[];
|
|
1166
1167
|
}
|
|
1167
1168
|
/**
|
|
1168
1169
|
* Lattice Chat Shell context value interface
|
|
@@ -1830,4 +1831,4 @@ declare const useAxiomTheme: () => {
|
|
|
1830
1831
|
};
|
|
1831
1832
|
};
|
|
1832
1833
|
|
|
1833
|
-
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps,
|
|
1834
|
+
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 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, useAssistantContext, useAuth, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } fro
|
|
|
8
8
|
import { Prompts } from '@ant-design/x';
|
|
9
9
|
import { GetProp, ThemeConfig } from 'antd';
|
|
10
10
|
export { ThemeConfig } from 'antd';
|
|
11
|
+
import { SlotConfigType } from '@ant-design/x/es/sender/interface';
|
|
11
12
|
import { NodeProps, Node } from '@xyflow/react';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -885,24 +886,24 @@ declare const AssistantContextProvider: ({ children, autoLoad, initialAssistantI
|
|
|
885
886
|
declare const useAssistantContext: () => AssistantContextValue;
|
|
886
887
|
|
|
887
888
|
/**
|
|
888
|
-
*
|
|
889
|
+
* Quick prompt item for quick prompt components
|
|
889
890
|
*/
|
|
890
|
-
interface
|
|
891
|
+
interface QuickPromptItem {
|
|
891
892
|
key: string;
|
|
892
893
|
icon?: ReactNode;
|
|
893
894
|
label: string;
|
|
894
895
|
description?: string;
|
|
895
|
-
content:
|
|
896
|
+
content: SlotConfigType[];
|
|
896
897
|
}
|
|
897
898
|
/**
|
|
898
|
-
*
|
|
899
|
+
* Quick prompt category for organizing prompt items
|
|
899
900
|
*/
|
|
900
|
-
interface
|
|
901
|
+
interface QuickPromptCategory {
|
|
901
902
|
key: string;
|
|
902
903
|
title: string;
|
|
903
904
|
icon?: ReactNode;
|
|
904
905
|
color?: string;
|
|
905
|
-
items:
|
|
906
|
+
items: QuickPromptItem[];
|
|
906
907
|
}
|
|
907
908
|
/**
|
|
908
909
|
* Middleware tool definition
|
|
@@ -989,8 +990,8 @@ interface SideMenuItemConfig {
|
|
|
989
990
|
icon?: ReactNode;
|
|
990
991
|
/** Order for sorting menu items (lower values first) */
|
|
991
992
|
order?: number;
|
|
992
|
-
/** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, tools, workspace, settings, database, metrics, projects, logout) */
|
|
993
|
-
builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "tools" | "workspace" | "settings" | "database" | "metrics" | "projects" | "logout";
|
|
993
|
+
/** Whether this is a builtin menu item (new-analysis, thread-history, assistants, skill, tools, workspace, settings, database, metrics, mcp, projects, logout) */
|
|
994
|
+
builtin?: "new-analysis" | "thread-history" | "assistants" | "skill" | "tools" | "workspace" | "settings" | "database" | "metrics" | "mcp" | "projects" | "logout";
|
|
994
995
|
/**
|
|
995
996
|
* Menu group for organizing items
|
|
996
997
|
*/
|
|
@@ -1158,11 +1159,11 @@ interface LatticeChatShellConfig {
|
|
|
1158
1159
|
*/
|
|
1159
1160
|
sidebarLogoIcon?: React.ReactNode;
|
|
1160
1161
|
/**
|
|
1161
|
-
* Custom
|
|
1162
|
-
* Allows registering custom
|
|
1163
|
-
* If not provided, default
|
|
1162
|
+
* Custom quick prompts data for quick prompt components
|
|
1163
|
+
* Allows registering custom prompt categories and items via shell config
|
|
1164
|
+
* If not provided, default prompt data will be used
|
|
1164
1165
|
*/
|
|
1165
|
-
|
|
1166
|
+
quickPromptsData?: QuickPromptCategory[];
|
|
1166
1167
|
}
|
|
1167
1168
|
/**
|
|
1168
1169
|
* Lattice Chat Shell context value interface
|
|
@@ -1830,4 +1831,4 @@ declare const useAxiomTheme: () => {
|
|
|
1830
1831
|
};
|
|
1831
1832
|
};
|
|
1832
1833
|
|
|
1833
|
-
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps,
|
|
1834
|
+
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 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, useAssistantContext, useAuth, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|