@axiom-lattice/react-sdk 2.0.4 → 2.1.1

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
@@ -348,13 +348,20 @@ type ElementProps<T = any> = {
348
348
  interactive?: boolean;
349
349
  default_open_in_side_app?: boolean;
350
350
  };
351
-
352
351
  interface ElementMeta {
353
352
  card_view: React.FC<ElementProps>;
354
353
  side_app_view?: React.FC<ElementProps>;
355
354
  action?: (data: any) => void;
356
355
  }
357
- declare const elements: Record<string, ElementMeta>;
356
+ interface ToolCallData {
357
+ id: string;
358
+ name: string;
359
+ args: Record<string, any>;
360
+ type: "tool_call";
361
+ response?: string;
362
+ status?: "success" | "pending" | "error";
363
+ }
364
+
358
365
  declare const getElement: (language: string | undefined) => ElementMeta | null;
359
366
  declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => ElementMeta;
360
367
 
@@ -387,7 +394,7 @@ interface ChatingProps {
387
394
  extraMeta?: Array<{
388
395
  id: string;
389
396
  }>;
390
- files?: any[];
397
+ files?: any;
391
398
  todos?: TodoItem[];
392
399
  }
393
400
  declare const Chating: React__default.FC<ChatingProps>;
@@ -437,15 +444,17 @@ declare const chatContext: React$1.Context<{
437
444
 
438
445
  interface ExplorerFile {
439
446
  name: string;
440
- content: string;
447
+ content: string[];
441
448
  language?: string;
449
+ created_at?: string;
450
+ modified_at?: string;
442
451
  }
443
452
  interface FileExplorerProps {
444
- files?: ExplorerFile[] | Record<string, string>;
453
+ files?: Record<string, ExplorerFile>;
445
454
  className?: string;
446
455
  style?: React__default.CSSProperties;
447
456
  title?: string;
448
457
  }
449
- declare const FileExplorer: React__default.FC<FileExplorerProps>;
458
+ declare const FileExplorer: React__default.FC<ElementProps>;
450
459
 
451
- export { type AgentState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, Chating, type ClientConfig, type ElementEventHandler, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, ThinkingChain, ThinkingChainGroup, type Thread, type ThreadState, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseChatOptions, chatContext, elements, getElement, regsiterElement, useAgentGraph, useAgentState, useAxiomLattice, useChat, useThread };
460
+ export { type AgentState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, Chating, type ClientConfig, type ElementEventHandler, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, ThinkingChain, ThinkingChainGroup, type Thread, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseChatOptions, chatContext, getElement, regsiterElement, useAgentGraph, useAgentState, useAxiomLattice, useChat, useThread };
package/dist/index.d.ts CHANGED
@@ -348,13 +348,20 @@ type ElementProps<T = any> = {
348
348
  interactive?: boolean;
349
349
  default_open_in_side_app?: boolean;
350
350
  };
351
-
352
351
  interface ElementMeta {
353
352
  card_view: React.FC<ElementProps>;
354
353
  side_app_view?: React.FC<ElementProps>;
355
354
  action?: (data: any) => void;
356
355
  }
357
- declare const elements: Record<string, ElementMeta>;
356
+ interface ToolCallData {
357
+ id: string;
358
+ name: string;
359
+ args: Record<string, any>;
360
+ type: "tool_call";
361
+ response?: string;
362
+ status?: "success" | "pending" | "error";
363
+ }
364
+
358
365
  declare const getElement: (language: string | undefined) => ElementMeta | null;
359
366
  declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => ElementMeta;
360
367
 
@@ -387,7 +394,7 @@ interface ChatingProps {
387
394
  extraMeta?: Array<{
388
395
  id: string;
389
396
  }>;
390
- files?: any[];
397
+ files?: any;
391
398
  todos?: TodoItem[];
392
399
  }
393
400
  declare const Chating: React__default.FC<ChatingProps>;
@@ -437,15 +444,17 @@ declare const chatContext: React$1.Context<{
437
444
 
438
445
  interface ExplorerFile {
439
446
  name: string;
440
- content: string;
447
+ content: string[];
441
448
  language?: string;
449
+ created_at?: string;
450
+ modified_at?: string;
442
451
  }
443
452
  interface FileExplorerProps {
444
- files?: ExplorerFile[] | Record<string, string>;
453
+ files?: Record<string, ExplorerFile>;
445
454
  className?: string;
446
455
  style?: React__default.CSSProperties;
447
456
  title?: string;
448
457
  }
449
- declare const FileExplorer: React__default.FC<FileExplorerProps>;
458
+ declare const FileExplorer: React__default.FC<ElementProps>;
450
459
 
451
- export { type AgentState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, Chating, type ClientConfig, type ElementEventHandler, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, ThinkingChain, ThinkingChainGroup, type Thread, type ThreadState, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseChatOptions, chatContext, elements, getElement, regsiterElement, useAgentGraph, useAgentState, useAxiomLattice, useChat, useThread };
460
+ export { type AgentState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, Chating, type ClientConfig, type ElementEventHandler, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, MDMermaid, MDResponse, MDViewFormItem, SideAppViewBrowser, type StreamEventHandlerOptions, ThinkingChain, ThinkingChainGroup, type Thread, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseChatOptions, chatContext, getElement, regsiterElement, useAgentGraph, useAgentState, useAxiomLattice, useChat, useThread };