@axiom-lattice/react-sdk 2.1.7 → 2.1.9
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -565,6 +565,12 @@ interface AttachFile {
|
|
|
565
565
|
id: string;
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
+
interface ColumnLayoutProps {
|
|
569
|
+
left: React__default.ReactNode;
|
|
570
|
+
right: React__default.ReactNode;
|
|
571
|
+
}
|
|
572
|
+
declare const ColumnLayout: React__default.FC<ColumnLayoutProps>;
|
|
573
|
+
|
|
568
574
|
interface ExplorerFile {
|
|
569
575
|
name: string;
|
|
570
576
|
content: string[];
|
|
@@ -580,4 +586,4 @@ interface FileExplorerProps {
|
|
|
580
586
|
}
|
|
581
587
|
declare const FileExplorer: React__default.FC<ElementProps>;
|
|
582
588
|
|
|
583
|
-
export { type AgentChatProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, type Thread, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAxiomLattice, useChat, useChatUIContext, useThread };
|
|
589
|
+
export { type AgentChatProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, type Thread, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAxiomLattice, useChat, useChatUIContext, useThread };
|
package/dist/index.d.ts
CHANGED
|
@@ -565,6 +565,12 @@ interface AttachFile {
|
|
|
565
565
|
id: string;
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
+
interface ColumnLayoutProps {
|
|
569
|
+
left: React__default.ReactNode;
|
|
570
|
+
right: React__default.ReactNode;
|
|
571
|
+
}
|
|
572
|
+
declare const ColumnLayout: React__default.FC<ColumnLayoutProps>;
|
|
573
|
+
|
|
568
574
|
interface ExplorerFile {
|
|
569
575
|
name: string;
|
|
570
576
|
content: string[];
|
|
@@ -580,4 +586,4 @@ interface FileExplorerProps {
|
|
|
580
586
|
}
|
|
581
587
|
declare const FileExplorer: React__default.FC<ElementProps>;
|
|
582
588
|
|
|
583
|
-
export { type AgentChatProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, type Thread, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAxiomLattice, useChat, useChatUIContext, useThread };
|
|
589
|
+
export { type AgentChatProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, type Thread, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAxiomLattice, useChat, useChatUIContext, useThread };
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
ChatUIContext: () => ChatUIContext,
|
|
37
37
|
ChatUIContextProvider: () => ChatUIContextProvider,
|
|
38
38
|
Chating: () => Chating,
|
|
39
|
+
ColumnLayout: () => ColumnLayout,
|
|
39
40
|
FileExplorer: () => FileExplorer,
|
|
40
41
|
LatticeChat: () => LatticeChat,
|
|
41
42
|
MDMermaid: () => MDMermaid,
|
|
@@ -715,7 +716,7 @@ function AgentThreadProvider({
|
|
|
715
716
|
}));
|
|
716
717
|
}, []);
|
|
717
718
|
(0, import_react3.useEffect)(() => {
|
|
718
|
-
if (threadId) {
|
|
719
|
+
if (threadId && clientAssistantId === assistantId) {
|
|
719
720
|
loadMessages();
|
|
720
721
|
} else {
|
|
721
722
|
clearMessages();
|
|
@@ -726,7 +727,7 @@ function AgentThreadProvider({
|
|
|
726
727
|
stopStreamingRef.current = null;
|
|
727
728
|
}
|
|
728
729
|
};
|
|
729
|
-
}, [threadId, loadMessages, clearMessages]);
|
|
730
|
+
}, [threadId, loadMessages, clearMessages, clientAssistantId, assistantId]);
|
|
730
731
|
const value = {
|
|
731
732
|
state,
|
|
732
733
|
sendMessage,
|
|
@@ -4088,7 +4089,6 @@ var TaskDetail = ({ data, component_key, interactive = true }) => {
|
|
|
4088
4089
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { style: { overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4089
4090
|
Chating,
|
|
4090
4091
|
{
|
|
4091
|
-
description,
|
|
4092
4092
|
name: subagent_type,
|
|
4093
4093
|
showHeader: true,
|
|
4094
4094
|
showSender: false,
|
|
@@ -4366,6 +4366,13 @@ var LatticeChat = (props) => {
|
|
|
4366
4366
|
}
|
|
4367
4367
|
);
|
|
4368
4368
|
};
|
|
4369
|
+
|
|
4370
|
+
// src/components/Chat/AgentConversations.tsx
|
|
4371
|
+
var import_icons13 = require("@ant-design/icons");
|
|
4372
|
+
var import_x5 = require("@ant-design/x");
|
|
4373
|
+
var import_antd22 = require("antd");
|
|
4374
|
+
var import_react20 = require("react");
|
|
4375
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4369
4376
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4370
4377
|
0 && (module.exports = {
|
|
4371
4378
|
AgentThreadProvider,
|
|
@@ -4373,6 +4380,7 @@ var LatticeChat = (props) => {
|
|
|
4373
4380
|
ChatUIContext,
|
|
4374
4381
|
ChatUIContextProvider,
|
|
4375
4382
|
Chating,
|
|
4383
|
+
ColumnLayout,
|
|
4376
4384
|
FileExplorer,
|
|
4377
4385
|
LatticeChat,
|
|
4378
4386
|
MDMermaid,
|