@axiom-lattice/react-sdk 2.1.34 → 2.1.36
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 +222 -5
- package/dist/index.d.ts +222 -5
- package/dist/index.js +6266 -3123
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6085 -2950
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
2
|
+
import { Message, InterruptMessage, Thread, User, Tenant, Skill } from '@axiom-lattice/protocols';
|
|
2
3
|
export * from '@axiom-lattice/protocols';
|
|
3
4
|
import * as React$1 from 'react';
|
|
4
5
|
import React__default, { ReactNode } from 'react';
|
|
@@ -418,6 +419,181 @@ declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assis
|
|
|
418
419
|
*/
|
|
419
420
|
declare function useAgentThreadContext<T extends UseChatOptions>(): AgentThreadContextValue<T>;
|
|
420
421
|
|
|
422
|
+
interface UserTenantInfo {
|
|
423
|
+
tenantId: string;
|
|
424
|
+
role: string;
|
|
425
|
+
tenant?: Tenant;
|
|
426
|
+
}
|
|
427
|
+
interface AuthContextValue {
|
|
428
|
+
user: User | null;
|
|
429
|
+
tenants: UserTenantInfo[];
|
|
430
|
+
currentTenant: Tenant | null;
|
|
431
|
+
isAuthenticated: boolean;
|
|
432
|
+
isLoading: boolean;
|
|
433
|
+
error: string | null;
|
|
434
|
+
login: (email: string, password: string) => Promise<{
|
|
435
|
+
requiresTenantSelection: boolean;
|
|
436
|
+
hasTenants: boolean;
|
|
437
|
+
}>;
|
|
438
|
+
register: (email: string, password: string, name: string) => Promise<{
|
|
439
|
+
message: string;
|
|
440
|
+
token?: string;
|
|
441
|
+
}>;
|
|
442
|
+
logout: () => void;
|
|
443
|
+
selectTenant: (tenantId: string) => Promise<void>;
|
|
444
|
+
fetchUserTenants: () => Promise<void>;
|
|
445
|
+
refreshUser: () => Promise<void>;
|
|
446
|
+
clearError: () => void;
|
|
447
|
+
}
|
|
448
|
+
declare const useAuth: () => AuthContextValue;
|
|
449
|
+
interface AuthProviderProps {
|
|
450
|
+
children: ReactNode;
|
|
451
|
+
baseURL: string;
|
|
452
|
+
onLoginSuccess?: (user: User, tenants: UserTenantInfo[]) => void;
|
|
453
|
+
onTenantSelected?: (tenant: Tenant) => void;
|
|
454
|
+
onLogout?: () => void;
|
|
455
|
+
}
|
|
456
|
+
declare const AuthProvider: React__default.FC<AuthProviderProps>;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Login Form Components
|
|
460
|
+
* iOS 26 Liquid Glass Design
|
|
461
|
+
*/
|
|
462
|
+
|
|
463
|
+
interface LoginFormProps {
|
|
464
|
+
onSuccess?: () => void;
|
|
465
|
+
onCancel?: () => void;
|
|
466
|
+
logo?: React__default.ReactNode;
|
|
467
|
+
title?: string;
|
|
468
|
+
subtitle?: string;
|
|
469
|
+
footer?: React__default.ReactNode;
|
|
470
|
+
className?: string;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* iOS 26 Liquid Glass Login Form
|
|
474
|
+
*/
|
|
475
|
+
declare const LoginForm: React__default.FC<LoginFormProps>;
|
|
476
|
+
interface LoginPageProps extends LoginFormProps {
|
|
477
|
+
background?: string;
|
|
478
|
+
containerStyle?: React__default.CSSProperties;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* iOS 26 Login Page with centered layout
|
|
482
|
+
*/
|
|
483
|
+
declare const LoginPage: React__default.FC<LoginPageProps>;
|
|
484
|
+
interface RegisterFormProps {
|
|
485
|
+
onSuccess?: () => void;
|
|
486
|
+
onCancel?: () => void;
|
|
487
|
+
logo?: React__default.ReactNode;
|
|
488
|
+
title?: string;
|
|
489
|
+
subtitle?: string;
|
|
490
|
+
footer?: React__default.ReactNode;
|
|
491
|
+
className?: string;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* iOS 26 Liquid Glass Registration Form
|
|
495
|
+
*/
|
|
496
|
+
declare const RegisterForm: React__default.FC<RegisterFormProps>;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* User Profile Components
|
|
500
|
+
* iOS 26 Liquid Glass Design
|
|
501
|
+
*/
|
|
502
|
+
|
|
503
|
+
interface UserProfileProps {
|
|
504
|
+
/** Called when user clicks logout */
|
|
505
|
+
onLogout?: () => void;
|
|
506
|
+
/** Show tenant information */
|
|
507
|
+
showTenantSwitcher?: boolean;
|
|
508
|
+
/** Custom class name */
|
|
509
|
+
className?: string;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* iOS 26 Liquid Glass User Profile
|
|
513
|
+
*/
|
|
514
|
+
declare const UserProfile: React__default.FC<UserProfileProps>;
|
|
515
|
+
interface ProtectedRouteProps {
|
|
516
|
+
children: React__default.ReactNode;
|
|
517
|
+
/** Component to show when not authenticated */
|
|
518
|
+
fallback?: React__default.ReactNode;
|
|
519
|
+
/** Redirect URL (if using react-router) */
|
|
520
|
+
redirectTo?: string;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Protected Route Component
|
|
524
|
+
* Shows loading state, redirects, or fallback when not authenticated
|
|
525
|
+
*/
|
|
526
|
+
declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Tenant Selector Components
|
|
530
|
+
* iOS 26 Liquid Glass Design
|
|
531
|
+
*/
|
|
532
|
+
|
|
533
|
+
interface TenantSelectorProps {
|
|
534
|
+
tenants: Tenant[];
|
|
535
|
+
currentTenantId?: string | null;
|
|
536
|
+
onSelect: (tenant: Tenant) => void;
|
|
537
|
+
onLogout?: () => void;
|
|
538
|
+
isLoading?: boolean;
|
|
539
|
+
className?: string;
|
|
540
|
+
title?: string;
|
|
541
|
+
description?: string;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* iOS 26 Liquid Glass Tenant Selector
|
|
545
|
+
*/
|
|
546
|
+
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
547
|
+
interface TenantSwitcherProps {
|
|
548
|
+
tenants: Tenant[];
|
|
549
|
+
currentTenant: Tenant | null;
|
|
550
|
+
onSwitch: (tenant: Tenant) => void;
|
|
551
|
+
isLoading?: boolean;
|
|
552
|
+
className?: string;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* iOS 26 Liquid Glass Tenant Switcher
|
|
556
|
+
*/
|
|
557
|
+
declare const TenantSwitcher: React__default.FC<TenantSwitcherProps>;
|
|
558
|
+
interface TenantGuardProps {
|
|
559
|
+
children: React__default.ReactNode;
|
|
560
|
+
tenantSelector: React__default.ReactNode;
|
|
561
|
+
isAuthenticated: boolean;
|
|
562
|
+
currentTenant: Tenant | null;
|
|
563
|
+
loginRedirect?: React__default.ReactNode;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Tenant Guard Component
|
|
567
|
+
* Ensures tenant is selected before rendering children
|
|
568
|
+
*/
|
|
569
|
+
declare const TenantGuard: React__default.FC<TenantGuardProps>;
|
|
570
|
+
|
|
571
|
+
interface UseTenantsOptions {
|
|
572
|
+
baseURL: string;
|
|
573
|
+
token?: string;
|
|
574
|
+
}
|
|
575
|
+
interface UseTenantsReturn {
|
|
576
|
+
tenants: Tenant[];
|
|
577
|
+
isLoading: boolean;
|
|
578
|
+
error: string | null;
|
|
579
|
+
refresh: () => Promise<void>;
|
|
580
|
+
getTenantById: (id: string) => Tenant | undefined;
|
|
581
|
+
}
|
|
582
|
+
declare function useTenants(options: UseTenantsOptions): UseTenantsReturn;
|
|
583
|
+
interface UseUsersOptions {
|
|
584
|
+
baseURL: string;
|
|
585
|
+
tenantId: string;
|
|
586
|
+
token?: string;
|
|
587
|
+
}
|
|
588
|
+
interface UseUsersReturn {
|
|
589
|
+
users: _axiom_lattice_protocols.User[];
|
|
590
|
+
isLoading: boolean;
|
|
591
|
+
error: string | null;
|
|
592
|
+
refresh: () => Promise<void>;
|
|
593
|
+
searchByEmail: (email: string) => Promise<_axiom_lattice_protocols.User | null>;
|
|
594
|
+
}
|
|
595
|
+
declare function useUsers(options: UseUsersOptions): UseUsersReturn;
|
|
596
|
+
|
|
421
597
|
interface ChatingProps {
|
|
422
598
|
name?: string;
|
|
423
599
|
description?: string;
|
|
@@ -746,7 +922,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
746
922
|
maxLength?: number;
|
|
747
923
|
pattern?: string;
|
|
748
924
|
format?: string;
|
|
749
|
-
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect";
|
|
925
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect" | "metricsSelect";
|
|
750
926
|
items?: {
|
|
751
927
|
type: string;
|
|
752
928
|
};
|
|
@@ -808,8 +984,17 @@ interface SideMenuItemConfig {
|
|
|
808
984
|
icon?: ReactNode;
|
|
809
985
|
/** Order for sorting menu items (lower values first) */
|
|
810
986
|
order?: number;
|
|
811
|
-
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database) */
|
|
812
|
-
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database";
|
|
987
|
+
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database, metrics) */
|
|
988
|
+
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database" | "metrics";
|
|
989
|
+
/**
|
|
990
|
+
* Menu group for organizing items
|
|
991
|
+
*/
|
|
992
|
+
group?: string;
|
|
993
|
+
/**
|
|
994
|
+
* Whether the menu item is enabled (can be toggled)
|
|
995
|
+
* Defaults to true
|
|
996
|
+
*/
|
|
997
|
+
enabled?: boolean;
|
|
813
998
|
/** Content to display inside the drawer (for drawer type) */
|
|
814
999
|
content?: ReactNode;
|
|
815
1000
|
/** Drawer title (for drawer type) */
|
|
@@ -905,6 +1090,33 @@ interface LatticeChatShellConfig {
|
|
|
905
1090
|
* Defaults to true
|
|
906
1091
|
*/
|
|
907
1092
|
enableSkillSlot?: boolean;
|
|
1093
|
+
/**
|
|
1094
|
+
* Sidebar display mode
|
|
1095
|
+
* - "icon": Show only icons (default)
|
|
1096
|
+
* - "expanded": Show icons with labels and groups
|
|
1097
|
+
* Defaults to "icon"
|
|
1098
|
+
*/
|
|
1099
|
+
sidebarMode?: "icon" | "expanded";
|
|
1100
|
+
/**
|
|
1101
|
+
* Whether sidebar is expanded by default (only applies when sidebarMode is "expanded")
|
|
1102
|
+
* Defaults to true
|
|
1103
|
+
*/
|
|
1104
|
+
sidebarDefaultExpanded?: boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* Whether to show the expand/collapse toggle button
|
|
1107
|
+
* Defaults to true
|
|
1108
|
+
*/
|
|
1109
|
+
sidebarShowToggle?: boolean;
|
|
1110
|
+
/**
|
|
1111
|
+
* Whether to show the "New Analysis" button in expanded sidebar
|
|
1112
|
+
* Defaults to true
|
|
1113
|
+
*/
|
|
1114
|
+
sidebarShowNewAnalysis?: boolean;
|
|
1115
|
+
/**
|
|
1116
|
+
* Logo text displayed in expanded sidebar
|
|
1117
|
+
* Defaults to "Lattice"
|
|
1118
|
+
*/
|
|
1119
|
+
sidebarLogoText?: string;
|
|
908
1120
|
}
|
|
909
1121
|
/**
|
|
910
1122
|
* Lattice Chat Shell context value interface
|
|
@@ -1028,6 +1240,11 @@ interface AgentConversationsProps {
|
|
|
1028
1240
|
}
|
|
1029
1241
|
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
1030
1242
|
|
|
1243
|
+
interface MetricsConfigDrawerContentProps {
|
|
1244
|
+
tenantId?: string;
|
|
1245
|
+
}
|
|
1246
|
+
declare const MetricsConfigDrawerContent: React__default.FC<MetricsConfigDrawerContentProps>;
|
|
1247
|
+
|
|
1031
1248
|
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
|
|
1032
1249
|
/**
|
|
1033
1250
|
* Whether users can create new assistants (default: true)
|
|
@@ -1151,4 +1368,4 @@ interface SkillCategoryPromptsProps {
|
|
|
1151
1368
|
}
|
|
1152
1369
|
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
1153
1370
|
|
|
1154
|
-
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, 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, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
|
1371
|
+
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, type LoginPageProps, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantGuard, type TenantGuardProps, TenantSelector, type TenantSelectorProps, TenantSwitcher, type TenantSwitcherProps, 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, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAuth, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
2
|
+
import { Message, InterruptMessage, Thread, User, Tenant, Skill } from '@axiom-lattice/protocols';
|
|
2
3
|
export * from '@axiom-lattice/protocols';
|
|
3
4
|
import * as React$1 from 'react';
|
|
4
5
|
import React__default, { ReactNode } from 'react';
|
|
@@ -418,6 +419,181 @@ declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assis
|
|
|
418
419
|
*/
|
|
419
420
|
declare function useAgentThreadContext<T extends UseChatOptions>(): AgentThreadContextValue<T>;
|
|
420
421
|
|
|
422
|
+
interface UserTenantInfo {
|
|
423
|
+
tenantId: string;
|
|
424
|
+
role: string;
|
|
425
|
+
tenant?: Tenant;
|
|
426
|
+
}
|
|
427
|
+
interface AuthContextValue {
|
|
428
|
+
user: User | null;
|
|
429
|
+
tenants: UserTenantInfo[];
|
|
430
|
+
currentTenant: Tenant | null;
|
|
431
|
+
isAuthenticated: boolean;
|
|
432
|
+
isLoading: boolean;
|
|
433
|
+
error: string | null;
|
|
434
|
+
login: (email: string, password: string) => Promise<{
|
|
435
|
+
requiresTenantSelection: boolean;
|
|
436
|
+
hasTenants: boolean;
|
|
437
|
+
}>;
|
|
438
|
+
register: (email: string, password: string, name: string) => Promise<{
|
|
439
|
+
message: string;
|
|
440
|
+
token?: string;
|
|
441
|
+
}>;
|
|
442
|
+
logout: () => void;
|
|
443
|
+
selectTenant: (tenantId: string) => Promise<void>;
|
|
444
|
+
fetchUserTenants: () => Promise<void>;
|
|
445
|
+
refreshUser: () => Promise<void>;
|
|
446
|
+
clearError: () => void;
|
|
447
|
+
}
|
|
448
|
+
declare const useAuth: () => AuthContextValue;
|
|
449
|
+
interface AuthProviderProps {
|
|
450
|
+
children: ReactNode;
|
|
451
|
+
baseURL: string;
|
|
452
|
+
onLoginSuccess?: (user: User, tenants: UserTenantInfo[]) => void;
|
|
453
|
+
onTenantSelected?: (tenant: Tenant) => void;
|
|
454
|
+
onLogout?: () => void;
|
|
455
|
+
}
|
|
456
|
+
declare const AuthProvider: React__default.FC<AuthProviderProps>;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Login Form Components
|
|
460
|
+
* iOS 26 Liquid Glass Design
|
|
461
|
+
*/
|
|
462
|
+
|
|
463
|
+
interface LoginFormProps {
|
|
464
|
+
onSuccess?: () => void;
|
|
465
|
+
onCancel?: () => void;
|
|
466
|
+
logo?: React__default.ReactNode;
|
|
467
|
+
title?: string;
|
|
468
|
+
subtitle?: string;
|
|
469
|
+
footer?: React__default.ReactNode;
|
|
470
|
+
className?: string;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* iOS 26 Liquid Glass Login Form
|
|
474
|
+
*/
|
|
475
|
+
declare const LoginForm: React__default.FC<LoginFormProps>;
|
|
476
|
+
interface LoginPageProps extends LoginFormProps {
|
|
477
|
+
background?: string;
|
|
478
|
+
containerStyle?: React__default.CSSProperties;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* iOS 26 Login Page with centered layout
|
|
482
|
+
*/
|
|
483
|
+
declare const LoginPage: React__default.FC<LoginPageProps>;
|
|
484
|
+
interface RegisterFormProps {
|
|
485
|
+
onSuccess?: () => void;
|
|
486
|
+
onCancel?: () => void;
|
|
487
|
+
logo?: React__default.ReactNode;
|
|
488
|
+
title?: string;
|
|
489
|
+
subtitle?: string;
|
|
490
|
+
footer?: React__default.ReactNode;
|
|
491
|
+
className?: string;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* iOS 26 Liquid Glass Registration Form
|
|
495
|
+
*/
|
|
496
|
+
declare const RegisterForm: React__default.FC<RegisterFormProps>;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* User Profile Components
|
|
500
|
+
* iOS 26 Liquid Glass Design
|
|
501
|
+
*/
|
|
502
|
+
|
|
503
|
+
interface UserProfileProps {
|
|
504
|
+
/** Called when user clicks logout */
|
|
505
|
+
onLogout?: () => void;
|
|
506
|
+
/** Show tenant information */
|
|
507
|
+
showTenantSwitcher?: boolean;
|
|
508
|
+
/** Custom class name */
|
|
509
|
+
className?: string;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* iOS 26 Liquid Glass User Profile
|
|
513
|
+
*/
|
|
514
|
+
declare const UserProfile: React__default.FC<UserProfileProps>;
|
|
515
|
+
interface ProtectedRouteProps {
|
|
516
|
+
children: React__default.ReactNode;
|
|
517
|
+
/** Component to show when not authenticated */
|
|
518
|
+
fallback?: React__default.ReactNode;
|
|
519
|
+
/** Redirect URL (if using react-router) */
|
|
520
|
+
redirectTo?: string;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Protected Route Component
|
|
524
|
+
* Shows loading state, redirects, or fallback when not authenticated
|
|
525
|
+
*/
|
|
526
|
+
declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Tenant Selector Components
|
|
530
|
+
* iOS 26 Liquid Glass Design
|
|
531
|
+
*/
|
|
532
|
+
|
|
533
|
+
interface TenantSelectorProps {
|
|
534
|
+
tenants: Tenant[];
|
|
535
|
+
currentTenantId?: string | null;
|
|
536
|
+
onSelect: (tenant: Tenant) => void;
|
|
537
|
+
onLogout?: () => void;
|
|
538
|
+
isLoading?: boolean;
|
|
539
|
+
className?: string;
|
|
540
|
+
title?: string;
|
|
541
|
+
description?: string;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* iOS 26 Liquid Glass Tenant Selector
|
|
545
|
+
*/
|
|
546
|
+
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
547
|
+
interface TenantSwitcherProps {
|
|
548
|
+
tenants: Tenant[];
|
|
549
|
+
currentTenant: Tenant | null;
|
|
550
|
+
onSwitch: (tenant: Tenant) => void;
|
|
551
|
+
isLoading?: boolean;
|
|
552
|
+
className?: string;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* iOS 26 Liquid Glass Tenant Switcher
|
|
556
|
+
*/
|
|
557
|
+
declare const TenantSwitcher: React__default.FC<TenantSwitcherProps>;
|
|
558
|
+
interface TenantGuardProps {
|
|
559
|
+
children: React__default.ReactNode;
|
|
560
|
+
tenantSelector: React__default.ReactNode;
|
|
561
|
+
isAuthenticated: boolean;
|
|
562
|
+
currentTenant: Tenant | null;
|
|
563
|
+
loginRedirect?: React__default.ReactNode;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Tenant Guard Component
|
|
567
|
+
* Ensures tenant is selected before rendering children
|
|
568
|
+
*/
|
|
569
|
+
declare const TenantGuard: React__default.FC<TenantGuardProps>;
|
|
570
|
+
|
|
571
|
+
interface UseTenantsOptions {
|
|
572
|
+
baseURL: string;
|
|
573
|
+
token?: string;
|
|
574
|
+
}
|
|
575
|
+
interface UseTenantsReturn {
|
|
576
|
+
tenants: Tenant[];
|
|
577
|
+
isLoading: boolean;
|
|
578
|
+
error: string | null;
|
|
579
|
+
refresh: () => Promise<void>;
|
|
580
|
+
getTenantById: (id: string) => Tenant | undefined;
|
|
581
|
+
}
|
|
582
|
+
declare function useTenants(options: UseTenantsOptions): UseTenantsReturn;
|
|
583
|
+
interface UseUsersOptions {
|
|
584
|
+
baseURL: string;
|
|
585
|
+
tenantId: string;
|
|
586
|
+
token?: string;
|
|
587
|
+
}
|
|
588
|
+
interface UseUsersReturn {
|
|
589
|
+
users: _axiom_lattice_protocols.User[];
|
|
590
|
+
isLoading: boolean;
|
|
591
|
+
error: string | null;
|
|
592
|
+
refresh: () => Promise<void>;
|
|
593
|
+
searchByEmail: (email: string) => Promise<_axiom_lattice_protocols.User | null>;
|
|
594
|
+
}
|
|
595
|
+
declare function useUsers(options: UseUsersOptions): UseUsersReturn;
|
|
596
|
+
|
|
421
597
|
interface ChatingProps {
|
|
422
598
|
name?: string;
|
|
423
599
|
description?: string;
|
|
@@ -746,7 +922,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
746
922
|
maxLength?: number;
|
|
747
923
|
pattern?: string;
|
|
748
924
|
format?: string;
|
|
749
|
-
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect";
|
|
925
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect" | "metricsSelect";
|
|
750
926
|
items?: {
|
|
751
927
|
type: string;
|
|
752
928
|
};
|
|
@@ -808,8 +984,17 @@ interface SideMenuItemConfig {
|
|
|
808
984
|
icon?: ReactNode;
|
|
809
985
|
/** Order for sorting menu items (lower values first) */
|
|
810
986
|
order?: number;
|
|
811
|
-
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database) */
|
|
812
|
-
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database";
|
|
987
|
+
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database, metrics) */
|
|
988
|
+
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database" | "metrics";
|
|
989
|
+
/**
|
|
990
|
+
* Menu group for organizing items
|
|
991
|
+
*/
|
|
992
|
+
group?: string;
|
|
993
|
+
/**
|
|
994
|
+
* Whether the menu item is enabled (can be toggled)
|
|
995
|
+
* Defaults to true
|
|
996
|
+
*/
|
|
997
|
+
enabled?: boolean;
|
|
813
998
|
/** Content to display inside the drawer (for drawer type) */
|
|
814
999
|
content?: ReactNode;
|
|
815
1000
|
/** Drawer title (for drawer type) */
|
|
@@ -905,6 +1090,33 @@ interface LatticeChatShellConfig {
|
|
|
905
1090
|
* Defaults to true
|
|
906
1091
|
*/
|
|
907
1092
|
enableSkillSlot?: boolean;
|
|
1093
|
+
/**
|
|
1094
|
+
* Sidebar display mode
|
|
1095
|
+
* - "icon": Show only icons (default)
|
|
1096
|
+
* - "expanded": Show icons with labels and groups
|
|
1097
|
+
* Defaults to "icon"
|
|
1098
|
+
*/
|
|
1099
|
+
sidebarMode?: "icon" | "expanded";
|
|
1100
|
+
/**
|
|
1101
|
+
* Whether sidebar is expanded by default (only applies when sidebarMode is "expanded")
|
|
1102
|
+
* Defaults to true
|
|
1103
|
+
*/
|
|
1104
|
+
sidebarDefaultExpanded?: boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* Whether to show the expand/collapse toggle button
|
|
1107
|
+
* Defaults to true
|
|
1108
|
+
*/
|
|
1109
|
+
sidebarShowToggle?: boolean;
|
|
1110
|
+
/**
|
|
1111
|
+
* Whether to show the "New Analysis" button in expanded sidebar
|
|
1112
|
+
* Defaults to true
|
|
1113
|
+
*/
|
|
1114
|
+
sidebarShowNewAnalysis?: boolean;
|
|
1115
|
+
/**
|
|
1116
|
+
* Logo text displayed in expanded sidebar
|
|
1117
|
+
* Defaults to "Lattice"
|
|
1118
|
+
*/
|
|
1119
|
+
sidebarLogoText?: string;
|
|
908
1120
|
}
|
|
909
1121
|
/**
|
|
910
1122
|
* Lattice Chat Shell context value interface
|
|
@@ -1028,6 +1240,11 @@ interface AgentConversationsProps {
|
|
|
1028
1240
|
}
|
|
1029
1241
|
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
1030
1242
|
|
|
1243
|
+
interface MetricsConfigDrawerContentProps {
|
|
1244
|
+
tenantId?: string;
|
|
1245
|
+
}
|
|
1246
|
+
declare const MetricsConfigDrawerContent: React__default.FC<MetricsConfigDrawerContentProps>;
|
|
1247
|
+
|
|
1031
1248
|
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
|
|
1032
1249
|
/**
|
|
1033
1250
|
* Whether users can create new assistants (default: true)
|
|
@@ -1151,4 +1368,4 @@ interface SkillCategoryPromptsProps {
|
|
|
1151
1368
|
}
|
|
1152
1369
|
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
1153
1370
|
|
|
1154
|
-
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, 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, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
|
1371
|
+
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, type LoginPageProps, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantGuard, type TenantGuardProps, TenantSelector, type TenantSelectorProps, TenantSwitcher, type TenantSwitcherProps, 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, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAuth, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|