@axiom-lattice/react-sdk 2.1.114 → 2.1.117
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 +142 -7
- package/dist/index.d.ts +142 -7
- package/dist/index.js +14725 -12481
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30108 -27860
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
package/dist/index.d.mts
CHANGED
|
@@ -657,6 +657,8 @@ interface SideMenuItemConfig {
|
|
|
657
657
|
inlineDefaultExpanded?: boolean;
|
|
658
658
|
/** Component to render in SideApp (for route type) */
|
|
659
659
|
sideAppComponent?: ReactNode;
|
|
660
|
+
/** Badge indicator for the menu item (true = dot, number = count) */
|
|
661
|
+
badge?: boolean | number;
|
|
660
662
|
}
|
|
661
663
|
/**
|
|
662
664
|
* Lattice Chat Shell configuration interface
|
|
@@ -786,14 +788,14 @@ interface LatticeChatShellConfig {
|
|
|
786
788
|
* Whether to enable the model selector in the chat sender
|
|
787
789
|
* When enabled, shows a model selection dropdown in the sender footer
|
|
788
790
|
* Defaults to false
|
|
789
|
-
|
|
791
|
+
*/
|
|
790
792
|
enableModelSelector?: boolean;
|
|
791
793
|
/**
|
|
792
794
|
* Sidebar display mode
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
* - "icon": Show only icons (default)
|
|
796
|
+
* - "expanded": Show icons with labels and groups
|
|
797
|
+
* Defaults to "icon"
|
|
798
|
+
*/
|
|
797
799
|
sidebarMode?: "icon" | "expanded";
|
|
798
800
|
/**
|
|
799
801
|
* Whether sidebar is expanded by default (only applies when sidebarMode is "expanded")
|
|
@@ -1420,6 +1422,63 @@ interface UseUsersReturn {
|
|
|
1420
1422
|
*/
|
|
1421
1423
|
declare function useUsers(options: UseUsersOptions): UseUsersReturn;
|
|
1422
1424
|
|
|
1425
|
+
interface TenantLogoProps {
|
|
1426
|
+
/** Tenant logo URL (or null if not configured) */
|
|
1427
|
+
logoUrl: string | null;
|
|
1428
|
+
/** Logo size in pixels (default 28, matches Menu's default Cpu size) */
|
|
1429
|
+
size?: number;
|
|
1430
|
+
/** Fallback icon color (default #1677ff to match Menu's Cpu icon) */
|
|
1431
|
+
fallbackColor?: string;
|
|
1432
|
+
/** Tenant name for accessible alt text */
|
|
1433
|
+
tenantName?: string;
|
|
1434
|
+
/** Additional CSS class */
|
|
1435
|
+
className?: string;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Renders a tenant's logo image with fallback to the Building2 icon.
|
|
1439
|
+
*
|
|
1440
|
+
* On image load error, switches to Building2 icon.
|
|
1441
|
+
* When logoUrl changes, resets error state so the new URL is attempted.
|
|
1442
|
+
* When no logoUrl is provided, renders Building2 immediately.
|
|
1443
|
+
*/
|
|
1444
|
+
declare const TenantLogo: React__default.FC<TenantLogoProps>;
|
|
1445
|
+
|
|
1446
|
+
interface TenantBrandingProps {
|
|
1447
|
+
/** Logo + text size preset */
|
|
1448
|
+
size?: "small" | "medium";
|
|
1449
|
+
/** Whether to show the tenant name next to the logo (default true) */
|
|
1450
|
+
showName?: boolean;
|
|
1451
|
+
/** Additional CSS class */
|
|
1452
|
+
className?: string;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Brand bar combining tenant logo and tenant name.
|
|
1456
|
+
*
|
|
1457
|
+
* Uses `useTenantBranding()` internally to read the current tenant's
|
|
1458
|
+
* logo URL. Renders nothing visible when there is no current tenant.
|
|
1459
|
+
*/
|
|
1460
|
+
declare const TenantBranding: React__default.FC<TenantBrandingProps>;
|
|
1461
|
+
|
|
1462
|
+
interface TenantSettingsModalProps {
|
|
1463
|
+
open: boolean;
|
|
1464
|
+
onClose: () => void;
|
|
1465
|
+
}
|
|
1466
|
+
declare const TenantSettingsModal: React__default.FC<TenantSettingsModalProps>;
|
|
1467
|
+
|
|
1468
|
+
interface TenantBrandingData {
|
|
1469
|
+
/** Raw logo URL from tenant metadata, or null if not configured */
|
|
1470
|
+
logoUrl: string | null;
|
|
1471
|
+
/** Current tenant name, or empty string if no tenant selected */
|
|
1472
|
+
tenantName: string;
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Reads the current tenant's branding information from AuthContext.
|
|
1476
|
+
* Extracts `metadata.logoUrl` and tenant name for use in UI components.
|
|
1477
|
+
*
|
|
1478
|
+
* @returns Tenant branding data — logo URL and name.
|
|
1479
|
+
*/
|
|
1480
|
+
declare function useTenantBranding(): TenantBrandingData;
|
|
1481
|
+
|
|
1423
1482
|
interface ChatErrorBoundaryProps {
|
|
1424
1483
|
/** Display name for this boundary (shown in error messages) */
|
|
1425
1484
|
name?: string;
|
|
@@ -1759,6 +1818,11 @@ declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => E
|
|
|
1759
1818
|
*
|
|
1760
1819
|
* @param region - Which panel region this browser is attached to.
|
|
1761
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 floating indicator
|
|
1822
|
+
* at the top center. The full tab strip only appears on hover as a floating overlay.
|
|
1823
|
+
* Default `true` (compact floating indicator).
|
|
1824
|
+
* @param showCloseButton - When `false`, hides the "close all" button that dismisses the
|
|
1825
|
+
* entire panel. Default `true`.
|
|
1762
1826
|
* @returns The tabbed side-app viewer, or an empty state if no tabs are open.
|
|
1763
1827
|
*
|
|
1764
1828
|
* @example
|
|
@@ -1776,6 +1840,8 @@ declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => E
|
|
|
1776
1840
|
*/
|
|
1777
1841
|
declare const SideAppViewBrowser: React__default.FC<{
|
|
1778
1842
|
region?: "side" | "content";
|
|
1843
|
+
compact?: boolean;
|
|
1844
|
+
showCloseButton?: boolean;
|
|
1779
1845
|
}>;
|
|
1780
1846
|
|
|
1781
1847
|
type PanelCardData = Record<string, unknown> & {
|
|
@@ -2256,6 +2322,8 @@ interface ColumnLayoutProps {
|
|
|
2256
2322
|
logo?: React__default.ReactNode;
|
|
2257
2323
|
/** Header bar rendered above the main content area on desktop and mobile. */
|
|
2258
2324
|
header?: React__default.ReactNode;
|
|
2325
|
+
/** Additional inline style applied to the main content container. */
|
|
2326
|
+
mainStyle?: React__default.CSSProperties;
|
|
2259
2327
|
}
|
|
2260
2328
|
/**
|
|
2261
2329
|
* Responsive three-column (plus tools) layout for the chat interface.
|
|
@@ -2863,6 +2931,59 @@ interface SkillCategoryPromptsProps {
|
|
|
2863
2931
|
}
|
|
2864
2932
|
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
2865
2933
|
|
|
2934
|
+
type RecorderMode = "manual" | "auto";
|
|
2935
|
+
type RecorderStatus = "idle" | "requesting" | "recording" | "uploading";
|
|
2936
|
+
type RecorderError = "permission_denied" | "not_supported" | "recorder_error" | "upload_failed" | "timeout";
|
|
2937
|
+
interface VoiceRecorderState {
|
|
2938
|
+
status: RecorderStatus;
|
|
2939
|
+
duration: number;
|
|
2940
|
+
/** Real-time volume level 0-1, drives ring animation */
|
|
2941
|
+
voiceLevel: number;
|
|
2942
|
+
/** Frequency band levels for wave visualization */
|
|
2943
|
+
frequencyBands: number[];
|
|
2944
|
+
mode: RecorderMode;
|
|
2945
|
+
/** Accumulated partial transcription texts in auto mode */
|
|
2946
|
+
partialTexts: string[];
|
|
2947
|
+
error?: {
|
|
2948
|
+
type: RecorderError;
|
|
2949
|
+
message: string;
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2952
|
+
interface UseVoiceRecorderOptions {
|
|
2953
|
+
/** Recording mode, defaults to "auto" */
|
|
2954
|
+
mode?: RecorderMode;
|
|
2955
|
+
/** Auto-mode parameters */
|
|
2956
|
+
autoMode?: {
|
|
2957
|
+
/** Volume threshold below which is considered silence, default 0.05 */
|
|
2958
|
+
silenceThreshold?: number;
|
|
2959
|
+
/** Continuous silence duration in ms before triggering upload, default 2000 */
|
|
2960
|
+
silenceDuration?: number;
|
|
2961
|
+
/** MediaRecorder timeslice interval in ms, default 1000 */
|
|
2962
|
+
timeslice?: number;
|
|
2963
|
+
};
|
|
2964
|
+
/** Callback invoked with transcribed text (incremental in auto mode) */
|
|
2965
|
+
onTranscription: (text: string) => void;
|
|
2966
|
+
/** Recording time limit in seconds, default 120 */
|
|
2967
|
+
maxDuration?: number;
|
|
2968
|
+
}
|
|
2969
|
+
declare function useVoiceRecorder(options: UseVoiceRecorderOptions): {
|
|
2970
|
+
startRecording: () => Promise<void>;
|
|
2971
|
+
stopRecording: () => void;
|
|
2972
|
+
cancelRecording: () => void;
|
|
2973
|
+
retryTranscription: () => Promise<void>;
|
|
2974
|
+
setMode: (newMode: RecorderMode) => void;
|
|
2975
|
+
state: VoiceRecorderState;
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
interface VoiceInputButtonProps {
|
|
2979
|
+
mode?: RecorderMode;
|
|
2980
|
+
onTranscription: (text: string) => void;
|
|
2981
|
+
disabled?: boolean;
|
|
2982
|
+
maxDuration?: number;
|
|
2983
|
+
autoMode?: UseVoiceRecorderOptions["autoMode"];
|
|
2984
|
+
}
|
|
2985
|
+
declare const VoiceInputButton: React__default.FC<VoiceInputButtonProps>;
|
|
2986
|
+
|
|
2866
2987
|
interface ViewToggleOption {
|
|
2867
2988
|
mode: string;
|
|
2868
2989
|
icon: React__default.ComponentType<{
|
|
@@ -2874,6 +2995,7 @@ interface ViewToggleProps {
|
|
|
2874
2995
|
value: string;
|
|
2875
2996
|
onChange: (mode: string) => void;
|
|
2876
2997
|
options?: ViewToggleOption[];
|
|
2998
|
+
extraOptions?: ViewToggleOption[];
|
|
2877
2999
|
}
|
|
2878
3000
|
declare const ViewToggle: React__default.FC<ViewToggleProps>;
|
|
2879
3001
|
|
|
@@ -2888,6 +3010,14 @@ interface EntityAction<T> {
|
|
|
2888
3010
|
}
|
|
2889
3011
|
type ViewMode = "grid" | "list";
|
|
2890
3012
|
type ActionsStyle = "icon" | "button";
|
|
3013
|
+
interface ViewModeExtension {
|
|
3014
|
+
mode: string;
|
|
3015
|
+
icon: React__default.ComponentType<{
|
|
3016
|
+
size?: number | string;
|
|
3017
|
+
}>;
|
|
3018
|
+
label?: string;
|
|
3019
|
+
render: () => React__default.ReactNode;
|
|
3020
|
+
}
|
|
2891
3021
|
|
|
2892
3022
|
interface EntityCardProps<T> {
|
|
2893
3023
|
item: T;
|
|
@@ -2998,6 +3128,11 @@ interface EntityListViewProps<T> {
|
|
|
2998
3128
|
renderEmpty?: () => React__default.ReactNode;
|
|
2999
3129
|
renderGridItem?: (item: T) => React__default.ReactNode;
|
|
3000
3130
|
renderListItem?: (item: T) => React__default.ReactNode;
|
|
3131
|
+
/**
|
|
3132
|
+
* Extensions that appear as extra toggle buttons in the ViewToggle.
|
|
3133
|
+
* Each defines a mode key, icon, and what to render when selected.
|
|
3134
|
+
*/
|
|
3135
|
+
viewModeExtensions?: ViewModeExtension[];
|
|
3001
3136
|
className?: string;
|
|
3002
3137
|
/**
|
|
3003
3138
|
* Optional tab filter rendered in the header (below title).
|
|
@@ -3010,7 +3145,7 @@ interface EntityListViewProps<T> {
|
|
|
3010
3145
|
activeTab?: string;
|
|
3011
3146
|
onTabChange?: (key: string) => void;
|
|
3012
3147
|
}
|
|
3013
|
-
declare const EntityListView: <T>({ items, loading, keyExtractor, title, itemName, titleBefore, titleAfter, renderIcon, renderPrimary, renderSecondary, renderFooter, renderHeaderActions, renderDetails, onItemClick, itemActions, actionsPosition, actionsStyle, createLabel, onCreateClick, headerLeft, headerRight, defaultViewMode, showViewToggle, emptyIcon, emptyTitle, emptyDescription, renderEmpty, renderGridItem, renderListItem, className, tabs, activeTab, onTabChange, }: EntityListViewProps<T>) => React__default.ReactElement;
|
|
3148
|
+
declare const EntityListView: <T>({ items, loading, keyExtractor, title, itemName, titleBefore, titleAfter, renderIcon, renderPrimary, renderSecondary, renderFooter, renderHeaderActions, renderDetails, onItemClick, itemActions, actionsPosition, actionsStyle, createLabel, onCreateClick, headerLeft, headerRight, defaultViewMode, showViewToggle, emptyIcon, emptyTitle, emptyDescription, renderEmpty, renderGridItem, renderListItem, viewModeExtensions, className, tabs, activeTab, onTabChange, }: EntityListViewProps<T>) => React__default.ReactElement;
|
|
3014
3149
|
|
|
3015
3150
|
interface ConflictResolverProps {
|
|
3016
3151
|
conflicts: Array<{
|
|
@@ -3553,4 +3688,4 @@ type IframeMessage = {
|
|
|
3553
3688
|
};
|
|
3554
3689
|
declare function generateIframeSrcdoc(): string;
|
|
3555
3690
|
|
|
3556
|
-
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, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, type IframeMessage, ImportStep, LatticeAgentWorkspace, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, 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, type ViewMode, ViewToggle, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, 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, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useSideAppBrowser, useSideAppOpener, useTenants, useUsers };
|
|
3691
|
+
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, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, type IframeMessage, ImportStep, LatticeAgentWorkspace, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, 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, type UseVoiceRecorderOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, 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, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder };
|
package/dist/index.d.ts
CHANGED
|
@@ -657,6 +657,8 @@ interface SideMenuItemConfig {
|
|
|
657
657
|
inlineDefaultExpanded?: boolean;
|
|
658
658
|
/** Component to render in SideApp (for route type) */
|
|
659
659
|
sideAppComponent?: ReactNode;
|
|
660
|
+
/** Badge indicator for the menu item (true = dot, number = count) */
|
|
661
|
+
badge?: boolean | number;
|
|
660
662
|
}
|
|
661
663
|
/**
|
|
662
664
|
* Lattice Chat Shell configuration interface
|
|
@@ -786,14 +788,14 @@ interface LatticeChatShellConfig {
|
|
|
786
788
|
* Whether to enable the model selector in the chat sender
|
|
787
789
|
* When enabled, shows a model selection dropdown in the sender footer
|
|
788
790
|
* Defaults to false
|
|
789
|
-
|
|
791
|
+
*/
|
|
790
792
|
enableModelSelector?: boolean;
|
|
791
793
|
/**
|
|
792
794
|
* Sidebar display mode
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
* - "icon": Show only icons (default)
|
|
796
|
+
* - "expanded": Show icons with labels and groups
|
|
797
|
+
* Defaults to "icon"
|
|
798
|
+
*/
|
|
797
799
|
sidebarMode?: "icon" | "expanded";
|
|
798
800
|
/**
|
|
799
801
|
* Whether sidebar is expanded by default (only applies when sidebarMode is "expanded")
|
|
@@ -1420,6 +1422,63 @@ interface UseUsersReturn {
|
|
|
1420
1422
|
*/
|
|
1421
1423
|
declare function useUsers(options: UseUsersOptions): UseUsersReturn;
|
|
1422
1424
|
|
|
1425
|
+
interface TenantLogoProps {
|
|
1426
|
+
/** Tenant logo URL (or null if not configured) */
|
|
1427
|
+
logoUrl: string | null;
|
|
1428
|
+
/** Logo size in pixels (default 28, matches Menu's default Cpu size) */
|
|
1429
|
+
size?: number;
|
|
1430
|
+
/** Fallback icon color (default #1677ff to match Menu's Cpu icon) */
|
|
1431
|
+
fallbackColor?: string;
|
|
1432
|
+
/** Tenant name for accessible alt text */
|
|
1433
|
+
tenantName?: string;
|
|
1434
|
+
/** Additional CSS class */
|
|
1435
|
+
className?: string;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Renders a tenant's logo image with fallback to the Building2 icon.
|
|
1439
|
+
*
|
|
1440
|
+
* On image load error, switches to Building2 icon.
|
|
1441
|
+
* When logoUrl changes, resets error state so the new URL is attempted.
|
|
1442
|
+
* When no logoUrl is provided, renders Building2 immediately.
|
|
1443
|
+
*/
|
|
1444
|
+
declare const TenantLogo: React__default.FC<TenantLogoProps>;
|
|
1445
|
+
|
|
1446
|
+
interface TenantBrandingProps {
|
|
1447
|
+
/** Logo + text size preset */
|
|
1448
|
+
size?: "small" | "medium";
|
|
1449
|
+
/** Whether to show the tenant name next to the logo (default true) */
|
|
1450
|
+
showName?: boolean;
|
|
1451
|
+
/** Additional CSS class */
|
|
1452
|
+
className?: string;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Brand bar combining tenant logo and tenant name.
|
|
1456
|
+
*
|
|
1457
|
+
* Uses `useTenantBranding()` internally to read the current tenant's
|
|
1458
|
+
* logo URL. Renders nothing visible when there is no current tenant.
|
|
1459
|
+
*/
|
|
1460
|
+
declare const TenantBranding: React__default.FC<TenantBrandingProps>;
|
|
1461
|
+
|
|
1462
|
+
interface TenantSettingsModalProps {
|
|
1463
|
+
open: boolean;
|
|
1464
|
+
onClose: () => void;
|
|
1465
|
+
}
|
|
1466
|
+
declare const TenantSettingsModal: React__default.FC<TenantSettingsModalProps>;
|
|
1467
|
+
|
|
1468
|
+
interface TenantBrandingData {
|
|
1469
|
+
/** Raw logo URL from tenant metadata, or null if not configured */
|
|
1470
|
+
logoUrl: string | null;
|
|
1471
|
+
/** Current tenant name, or empty string if no tenant selected */
|
|
1472
|
+
tenantName: string;
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Reads the current tenant's branding information from AuthContext.
|
|
1476
|
+
* Extracts `metadata.logoUrl` and tenant name for use in UI components.
|
|
1477
|
+
*
|
|
1478
|
+
* @returns Tenant branding data — logo URL and name.
|
|
1479
|
+
*/
|
|
1480
|
+
declare function useTenantBranding(): TenantBrandingData;
|
|
1481
|
+
|
|
1423
1482
|
interface ChatErrorBoundaryProps {
|
|
1424
1483
|
/** Display name for this boundary (shown in error messages) */
|
|
1425
1484
|
name?: string;
|
|
@@ -1759,6 +1818,11 @@ declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => E
|
|
|
1759
1818
|
*
|
|
1760
1819
|
* @param region - Which panel region this browser is attached to.
|
|
1761
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 floating indicator
|
|
1822
|
+
* at the top center. The full tab strip only appears on hover as a floating overlay.
|
|
1823
|
+
* Default `true` (compact floating indicator).
|
|
1824
|
+
* @param showCloseButton - When `false`, hides the "close all" button that dismisses the
|
|
1825
|
+
* entire panel. Default `true`.
|
|
1762
1826
|
* @returns The tabbed side-app viewer, or an empty state if no tabs are open.
|
|
1763
1827
|
*
|
|
1764
1828
|
* @example
|
|
@@ -1776,6 +1840,8 @@ declare const regsiterElement: (language: string, ElementMeta: ElementMeta) => E
|
|
|
1776
1840
|
*/
|
|
1777
1841
|
declare const SideAppViewBrowser: React__default.FC<{
|
|
1778
1842
|
region?: "side" | "content";
|
|
1843
|
+
compact?: boolean;
|
|
1844
|
+
showCloseButton?: boolean;
|
|
1779
1845
|
}>;
|
|
1780
1846
|
|
|
1781
1847
|
type PanelCardData = Record<string, unknown> & {
|
|
@@ -2256,6 +2322,8 @@ interface ColumnLayoutProps {
|
|
|
2256
2322
|
logo?: React__default.ReactNode;
|
|
2257
2323
|
/** Header bar rendered above the main content area on desktop and mobile. */
|
|
2258
2324
|
header?: React__default.ReactNode;
|
|
2325
|
+
/** Additional inline style applied to the main content container. */
|
|
2326
|
+
mainStyle?: React__default.CSSProperties;
|
|
2259
2327
|
}
|
|
2260
2328
|
/**
|
|
2261
2329
|
* Responsive three-column (plus tools) layout for the chat interface.
|
|
@@ -2863,6 +2931,59 @@ interface SkillCategoryPromptsProps {
|
|
|
2863
2931
|
}
|
|
2864
2932
|
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
2865
2933
|
|
|
2934
|
+
type RecorderMode = "manual" | "auto";
|
|
2935
|
+
type RecorderStatus = "idle" | "requesting" | "recording" | "uploading";
|
|
2936
|
+
type RecorderError = "permission_denied" | "not_supported" | "recorder_error" | "upload_failed" | "timeout";
|
|
2937
|
+
interface VoiceRecorderState {
|
|
2938
|
+
status: RecorderStatus;
|
|
2939
|
+
duration: number;
|
|
2940
|
+
/** Real-time volume level 0-1, drives ring animation */
|
|
2941
|
+
voiceLevel: number;
|
|
2942
|
+
/** Frequency band levels for wave visualization */
|
|
2943
|
+
frequencyBands: number[];
|
|
2944
|
+
mode: RecorderMode;
|
|
2945
|
+
/** Accumulated partial transcription texts in auto mode */
|
|
2946
|
+
partialTexts: string[];
|
|
2947
|
+
error?: {
|
|
2948
|
+
type: RecorderError;
|
|
2949
|
+
message: string;
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2952
|
+
interface UseVoiceRecorderOptions {
|
|
2953
|
+
/** Recording mode, defaults to "auto" */
|
|
2954
|
+
mode?: RecorderMode;
|
|
2955
|
+
/** Auto-mode parameters */
|
|
2956
|
+
autoMode?: {
|
|
2957
|
+
/** Volume threshold below which is considered silence, default 0.05 */
|
|
2958
|
+
silenceThreshold?: number;
|
|
2959
|
+
/** Continuous silence duration in ms before triggering upload, default 2000 */
|
|
2960
|
+
silenceDuration?: number;
|
|
2961
|
+
/** MediaRecorder timeslice interval in ms, default 1000 */
|
|
2962
|
+
timeslice?: number;
|
|
2963
|
+
};
|
|
2964
|
+
/** Callback invoked with transcribed text (incremental in auto mode) */
|
|
2965
|
+
onTranscription: (text: string) => void;
|
|
2966
|
+
/** Recording time limit in seconds, default 120 */
|
|
2967
|
+
maxDuration?: number;
|
|
2968
|
+
}
|
|
2969
|
+
declare function useVoiceRecorder(options: UseVoiceRecorderOptions): {
|
|
2970
|
+
startRecording: () => Promise<void>;
|
|
2971
|
+
stopRecording: () => void;
|
|
2972
|
+
cancelRecording: () => void;
|
|
2973
|
+
retryTranscription: () => Promise<void>;
|
|
2974
|
+
setMode: (newMode: RecorderMode) => void;
|
|
2975
|
+
state: VoiceRecorderState;
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
interface VoiceInputButtonProps {
|
|
2979
|
+
mode?: RecorderMode;
|
|
2980
|
+
onTranscription: (text: string) => void;
|
|
2981
|
+
disabled?: boolean;
|
|
2982
|
+
maxDuration?: number;
|
|
2983
|
+
autoMode?: UseVoiceRecorderOptions["autoMode"];
|
|
2984
|
+
}
|
|
2985
|
+
declare const VoiceInputButton: React__default.FC<VoiceInputButtonProps>;
|
|
2986
|
+
|
|
2866
2987
|
interface ViewToggleOption {
|
|
2867
2988
|
mode: string;
|
|
2868
2989
|
icon: React__default.ComponentType<{
|
|
@@ -2874,6 +2995,7 @@ interface ViewToggleProps {
|
|
|
2874
2995
|
value: string;
|
|
2875
2996
|
onChange: (mode: string) => void;
|
|
2876
2997
|
options?: ViewToggleOption[];
|
|
2998
|
+
extraOptions?: ViewToggleOption[];
|
|
2877
2999
|
}
|
|
2878
3000
|
declare const ViewToggle: React__default.FC<ViewToggleProps>;
|
|
2879
3001
|
|
|
@@ -2888,6 +3010,14 @@ interface EntityAction<T> {
|
|
|
2888
3010
|
}
|
|
2889
3011
|
type ViewMode = "grid" | "list";
|
|
2890
3012
|
type ActionsStyle = "icon" | "button";
|
|
3013
|
+
interface ViewModeExtension {
|
|
3014
|
+
mode: string;
|
|
3015
|
+
icon: React__default.ComponentType<{
|
|
3016
|
+
size?: number | string;
|
|
3017
|
+
}>;
|
|
3018
|
+
label?: string;
|
|
3019
|
+
render: () => React__default.ReactNode;
|
|
3020
|
+
}
|
|
2891
3021
|
|
|
2892
3022
|
interface EntityCardProps<T> {
|
|
2893
3023
|
item: T;
|
|
@@ -2998,6 +3128,11 @@ interface EntityListViewProps<T> {
|
|
|
2998
3128
|
renderEmpty?: () => React__default.ReactNode;
|
|
2999
3129
|
renderGridItem?: (item: T) => React__default.ReactNode;
|
|
3000
3130
|
renderListItem?: (item: T) => React__default.ReactNode;
|
|
3131
|
+
/**
|
|
3132
|
+
* Extensions that appear as extra toggle buttons in the ViewToggle.
|
|
3133
|
+
* Each defines a mode key, icon, and what to render when selected.
|
|
3134
|
+
*/
|
|
3135
|
+
viewModeExtensions?: ViewModeExtension[];
|
|
3001
3136
|
className?: string;
|
|
3002
3137
|
/**
|
|
3003
3138
|
* Optional tab filter rendered in the header (below title).
|
|
@@ -3010,7 +3145,7 @@ interface EntityListViewProps<T> {
|
|
|
3010
3145
|
activeTab?: string;
|
|
3011
3146
|
onTabChange?: (key: string) => void;
|
|
3012
3147
|
}
|
|
3013
|
-
declare const EntityListView: <T>({ items, loading, keyExtractor, title, itemName, titleBefore, titleAfter, renderIcon, renderPrimary, renderSecondary, renderFooter, renderHeaderActions, renderDetails, onItemClick, itemActions, actionsPosition, actionsStyle, createLabel, onCreateClick, headerLeft, headerRight, defaultViewMode, showViewToggle, emptyIcon, emptyTitle, emptyDescription, renderEmpty, renderGridItem, renderListItem, className, tabs, activeTab, onTabChange, }: EntityListViewProps<T>) => React__default.ReactElement;
|
|
3148
|
+
declare const EntityListView: <T>({ items, loading, keyExtractor, title, itemName, titleBefore, titleAfter, renderIcon, renderPrimary, renderSecondary, renderFooter, renderHeaderActions, renderDetails, onItemClick, itemActions, actionsPosition, actionsStyle, createLabel, onCreateClick, headerLeft, headerRight, defaultViewMode, showViewToggle, emptyIcon, emptyTitle, emptyDescription, renderEmpty, renderGridItem, renderListItem, viewModeExtensions, className, tabs, activeTab, onTabChange, }: EntityListViewProps<T>) => React__default.ReactElement;
|
|
3014
3149
|
|
|
3015
3150
|
interface ConflictResolverProps {
|
|
3016
3151
|
conflicts: Array<{
|
|
@@ -3553,4 +3688,4 @@ type IframeMessage = {
|
|
|
3553
3688
|
};
|
|
3554
3689
|
declare function generateIframeSrcdoc(): string;
|
|
3555
3690
|
|
|
3556
|
-
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, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, type IframeMessage, ImportStep, LatticeAgentWorkspace, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, 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, type ViewMode, ViewToggle, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, 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, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useSideAppBrowser, useSideAppOpener, useTenants, useUsers };
|
|
3691
|
+
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, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, type IframeMessage, ImportStep, LatticeAgentWorkspace, 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, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, 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, type UseVoiceRecorderOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, 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, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder };
|