@axiom-lattice/react-sdk 2.1.118 → 2.1.120
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 +16 -11
- package/dist/index.d.ts +16 -11
- package/dist/index.js +5467 -5004
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5238 -4770
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import * as React$1 from 'react';
|
|
|
5
5
|
import React__default, { ReactNode, Component } from 'react';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { SlotConfigType } from '@ant-design/x/es/sender/interface';
|
|
8
|
-
import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } from '@axiom-lattice/client-sdk';
|
|
8
|
+
import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions, LocalA2AProviderState } from '@axiom-lattice/client-sdk';
|
|
9
9
|
import { Prompts } from '@ant-design/x';
|
|
10
10
|
import { GetProp, ThemeConfig } from 'antd';
|
|
11
11
|
export { ThemeConfig } from 'antd';
|
|
@@ -1818,9 +1818,9 @@ declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => E
|
|
|
1818
1818
|
*
|
|
1819
1819
|
* @param region - Which panel region this browser is attached to.
|
|
1820
1820
|
* `"side"` for the right detail panel (default), `"content"` for the main content area.
|
|
1821
|
-
* @param compact - When `true`, collapses the tab bar into a small
|
|
1822
|
-
*
|
|
1823
|
-
* Default `true` (compact
|
|
1821
|
+
* @param compact - When `true`, collapses the tab bar into a small pill showing
|
|
1822
|
+
* the active tab name. The full tab strip appears on hover as a floating,
|
|
1823
|
+
* edge-to-edge overlay. Default `true` (compact pill).
|
|
1824
1824
|
* @param showCloseButton - When `false`, hides the "close all" button that dismisses the
|
|
1825
1825
|
* entire panel. Default `true`.
|
|
1826
1826
|
* @returns The tabbed side-app viewer, or an empty state if no tabs are open.
|
|
@@ -2518,6 +2518,8 @@ interface ChatSidebarProps {
|
|
|
2518
2518
|
onSettingsClick?: () => void;
|
|
2519
2519
|
/** Whether the sidebar starts collapsed. */
|
|
2520
2520
|
defaultCollapsed?: boolean;
|
|
2521
|
+
/** Whether the sidebar is embedded inside another shell navigation. */
|
|
2522
|
+
embedded?: boolean;
|
|
2521
2523
|
/** @deprecated Use `sideMenuItems` on `LatticeChatShellConfig` instead. */
|
|
2522
2524
|
customMenuItems?: SideMenuItemConfig[];
|
|
2523
2525
|
}
|
|
@@ -2541,7 +2543,7 @@ declare const DEFAULT_MENU_ITEMS: SideMenuItemConfig[];
|
|
|
2541
2543
|
* Renders a vertical {@link Menu} with configurable sidebar menu items
|
|
2542
2544
|
* (defaults to {@link DEFAULT_MENU_ITEMS}) and a user avatar popover with
|
|
2543
2545
|
* change-password and logout actions. Supports inline drawers for items like
|
|
2544
|
-
* thread history
|
|
2546
|
+
* thread history and popup drawers through the shared {@link Menu} component.
|
|
2545
2547
|
*
|
|
2546
2548
|
* @param props - See {@link ChatSidebarProps}.
|
|
2547
2549
|
* @returns The sidebar element containing the menu and user-footer area.
|
|
@@ -2559,8 +2561,7 @@ declare const DEFAULT_MENU_ITEMS: SideMenuItemConfig[];
|
|
|
2559
2561
|
* - Sidebar mode (expanded/icon), toggle visibility, and new-analysis button
|
|
2560
2562
|
* visibility are controlled by {@link LatticeChatShellContext} config fields:
|
|
2561
2563
|
* `sidebarMode`, `sidebarShowToggle`, `sidebarShowNewAnalysis`.
|
|
2562
|
-
* - Inline
|
|
2563
|
-
* component; non-inline drawers render as separate `Drawer` elements.
|
|
2564
|
+
* - Inline and popup drawer state is owned and rendered by {@link Menu}.
|
|
2564
2565
|
* - User authentication comes from {@link useAuth}.
|
|
2565
2566
|
*/
|
|
2566
2567
|
declare const ChatSidebar: React__default.FC<ChatSidebarProps>;
|
|
@@ -2631,6 +2632,14 @@ interface AssistantNodeData extends Record<string, unknown> {
|
|
|
2631
2632
|
* Click handler for chat button
|
|
2632
2633
|
*/
|
|
2633
2634
|
onChat?: (assistant: Assistant) => void;
|
|
2635
|
+
/**
|
|
2636
|
+
* Local A2A provider state if this assistant is a local wrapper.
|
|
2637
|
+
*/
|
|
2638
|
+
localA2A?: LocalA2AProviderState;
|
|
2639
|
+
/**
|
|
2640
|
+
* Local A2A action handler.
|
|
2641
|
+
*/
|
|
2642
|
+
onLocalA2AAction?: (runtimeId: string, action: "start" | "stop" | "restart") => void | Promise<void>;
|
|
2634
2643
|
}
|
|
2635
2644
|
/**
|
|
2636
2645
|
* Custom node component for displaying assistants in the flow
|
|
@@ -2670,10 +2679,6 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
2670
2679
|
*/
|
|
2671
2680
|
onDelete?: () => void | Promise<void>;
|
|
2672
2681
|
}
|
|
2673
|
-
/**
|
|
2674
|
-
* Custom node component for displaying skills in the flow
|
|
2675
|
-
* Designed to show skill information with hierarchical relationships
|
|
2676
|
-
*/
|
|
2677
2682
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
2678
2683
|
|
|
2679
2684
|
interface DSLNode {
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as React$1 from 'react';
|
|
|
5
5
|
import React__default, { ReactNode, Component } from 'react';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { SlotConfigType } from '@ant-design/x/es/sender/interface';
|
|
8
|
-
import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions } from '@axiom-lattice/client-sdk';
|
|
8
|
+
import { Client, Assistant, CreateAssistantOptions, UpdateAssistantOptions, LocalA2AProviderState } from '@axiom-lattice/client-sdk';
|
|
9
9
|
import { Prompts } from '@ant-design/x';
|
|
10
10
|
import { GetProp, ThemeConfig } from 'antd';
|
|
11
11
|
export { ThemeConfig } from 'antd';
|
|
@@ -1818,9 +1818,9 @@ declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => E
|
|
|
1818
1818
|
*
|
|
1819
1819
|
* @param region - Which panel region this browser is attached to.
|
|
1820
1820
|
* `"side"` for the right detail panel (default), `"content"` for the main content area.
|
|
1821
|
-
* @param compact - When `true`, collapses the tab bar into a small
|
|
1822
|
-
*
|
|
1823
|
-
* Default `true` (compact
|
|
1821
|
+
* @param compact - When `true`, collapses the tab bar into a small pill showing
|
|
1822
|
+
* the active tab name. The full tab strip appears on hover as a floating,
|
|
1823
|
+
* edge-to-edge overlay. Default `true` (compact pill).
|
|
1824
1824
|
* @param showCloseButton - When `false`, hides the "close all" button that dismisses the
|
|
1825
1825
|
* entire panel. Default `true`.
|
|
1826
1826
|
* @returns The tabbed side-app viewer, or an empty state if no tabs are open.
|
|
@@ -2518,6 +2518,8 @@ interface ChatSidebarProps {
|
|
|
2518
2518
|
onSettingsClick?: () => void;
|
|
2519
2519
|
/** Whether the sidebar starts collapsed. */
|
|
2520
2520
|
defaultCollapsed?: boolean;
|
|
2521
|
+
/** Whether the sidebar is embedded inside another shell navigation. */
|
|
2522
|
+
embedded?: boolean;
|
|
2521
2523
|
/** @deprecated Use `sideMenuItems` on `LatticeChatShellConfig` instead. */
|
|
2522
2524
|
customMenuItems?: SideMenuItemConfig[];
|
|
2523
2525
|
}
|
|
@@ -2541,7 +2543,7 @@ declare const DEFAULT_MENU_ITEMS: SideMenuItemConfig[];
|
|
|
2541
2543
|
* Renders a vertical {@link Menu} with configurable sidebar menu items
|
|
2542
2544
|
* (defaults to {@link DEFAULT_MENU_ITEMS}) and a user avatar popover with
|
|
2543
2545
|
* change-password and logout actions. Supports inline drawers for items like
|
|
2544
|
-
* thread history
|
|
2546
|
+
* thread history and popup drawers through the shared {@link Menu} component.
|
|
2545
2547
|
*
|
|
2546
2548
|
* @param props - See {@link ChatSidebarProps}.
|
|
2547
2549
|
* @returns The sidebar element containing the menu and user-footer area.
|
|
@@ -2559,8 +2561,7 @@ declare const DEFAULT_MENU_ITEMS: SideMenuItemConfig[];
|
|
|
2559
2561
|
* - Sidebar mode (expanded/icon), toggle visibility, and new-analysis button
|
|
2560
2562
|
* visibility are controlled by {@link LatticeChatShellContext} config fields:
|
|
2561
2563
|
* `sidebarMode`, `sidebarShowToggle`, `sidebarShowNewAnalysis`.
|
|
2562
|
-
* - Inline
|
|
2563
|
-
* component; non-inline drawers render as separate `Drawer` elements.
|
|
2564
|
+
* - Inline and popup drawer state is owned and rendered by {@link Menu}.
|
|
2564
2565
|
* - User authentication comes from {@link useAuth}.
|
|
2565
2566
|
*/
|
|
2566
2567
|
declare const ChatSidebar: React__default.FC<ChatSidebarProps>;
|
|
@@ -2631,6 +2632,14 @@ interface AssistantNodeData extends Record<string, unknown> {
|
|
|
2631
2632
|
* Click handler for chat button
|
|
2632
2633
|
*/
|
|
2633
2634
|
onChat?: (assistant: Assistant) => void;
|
|
2635
|
+
/**
|
|
2636
|
+
* Local A2A provider state if this assistant is a local wrapper.
|
|
2637
|
+
*/
|
|
2638
|
+
localA2A?: LocalA2AProviderState;
|
|
2639
|
+
/**
|
|
2640
|
+
* Local A2A action handler.
|
|
2641
|
+
*/
|
|
2642
|
+
onLocalA2AAction?: (runtimeId: string, action: "start" | "stop" | "restart") => void | Promise<void>;
|
|
2634
2643
|
}
|
|
2635
2644
|
/**
|
|
2636
2645
|
* Custom node component for displaying assistants in the flow
|
|
@@ -2670,10 +2679,6 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
2670
2679
|
*/
|
|
2671
2680
|
onDelete?: () => void | Promise<void>;
|
|
2672
2681
|
}
|
|
2673
|
-
/**
|
|
2674
|
-
* Custom node component for displaying skills in the flow
|
|
2675
|
-
* Designed to show skill information with hierarchical relationships
|
|
2676
|
-
*/
|
|
2677
2682
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
2678
2683
|
|
|
2679
2684
|
interface DSLNode {
|