@axiom-lattice/react-sdk 2.1.35 → 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 +72 -3
- package/dist/index.d.ts +72 -3
- package/dist/index.js +3716 -2774
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3115 -2179
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -455,38 +455,62 @@ interface AuthProviderProps {
|
|
|
455
455
|
}
|
|
456
456
|
declare const AuthProvider: React__default.FC<AuthProviderProps>;
|
|
457
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Login Form Components
|
|
460
|
+
* iOS 26 Liquid Glass Design
|
|
461
|
+
*/
|
|
462
|
+
|
|
458
463
|
interface LoginFormProps {
|
|
459
464
|
onSuccess?: () => void;
|
|
460
465
|
onCancel?: () => void;
|
|
461
466
|
logo?: React__default.ReactNode;
|
|
462
467
|
title?: string;
|
|
468
|
+
subtitle?: string;
|
|
463
469
|
footer?: React__default.ReactNode;
|
|
464
470
|
className?: string;
|
|
465
471
|
}
|
|
472
|
+
/**
|
|
473
|
+
* iOS 26 Liquid Glass Login Form
|
|
474
|
+
*/
|
|
466
475
|
declare const LoginForm: React__default.FC<LoginFormProps>;
|
|
467
476
|
interface LoginPageProps extends LoginFormProps {
|
|
468
477
|
background?: string;
|
|
469
478
|
containerStyle?: React__default.CSSProperties;
|
|
470
479
|
}
|
|
480
|
+
/**
|
|
481
|
+
* iOS 26 Login Page with centered layout
|
|
482
|
+
*/
|
|
471
483
|
declare const LoginPage: React__default.FC<LoginPageProps>;
|
|
472
484
|
interface RegisterFormProps {
|
|
473
485
|
onSuccess?: () => void;
|
|
474
486
|
onCancel?: () => void;
|
|
475
487
|
logo?: React__default.ReactNode;
|
|
476
488
|
title?: string;
|
|
489
|
+
subtitle?: string;
|
|
477
490
|
footer?: React__default.ReactNode;
|
|
478
491
|
className?: string;
|
|
479
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* iOS 26 Liquid Glass Registration Form
|
|
495
|
+
*/
|
|
480
496
|
declare const RegisterForm: React__default.FC<RegisterFormProps>;
|
|
481
497
|
|
|
498
|
+
/**
|
|
499
|
+
* User Profile Components
|
|
500
|
+
* iOS 26 Liquid Glass Design
|
|
501
|
+
*/
|
|
502
|
+
|
|
482
503
|
interface UserProfileProps {
|
|
483
504
|
/** Called when user clicks logout */
|
|
484
505
|
onLogout?: () => void;
|
|
485
|
-
/** Show tenant
|
|
506
|
+
/** Show tenant information */
|
|
486
507
|
showTenantSwitcher?: boolean;
|
|
487
508
|
/** Custom class name */
|
|
488
509
|
className?: string;
|
|
489
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* iOS 26 Liquid Glass User Profile
|
|
513
|
+
*/
|
|
490
514
|
declare const UserProfile: React__default.FC<UserProfileProps>;
|
|
491
515
|
interface ProtectedRouteProps {
|
|
492
516
|
children: React__default.ReactNode;
|
|
@@ -495,19 +519,30 @@ interface ProtectedRouteProps {
|
|
|
495
519
|
/** Redirect URL (if using react-router) */
|
|
496
520
|
redirectTo?: string;
|
|
497
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
* Protected Route Component
|
|
524
|
+
* Shows loading state, redirects, or fallback when not authenticated
|
|
525
|
+
*/
|
|
498
526
|
declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
|
|
499
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Tenant Selector Components
|
|
530
|
+
* iOS 26 Liquid Glass Design
|
|
531
|
+
*/
|
|
532
|
+
|
|
500
533
|
interface TenantSelectorProps {
|
|
501
534
|
tenants: Tenant[];
|
|
502
535
|
currentTenantId?: string | null;
|
|
503
536
|
onSelect: (tenant: Tenant) => void;
|
|
537
|
+
onLogout?: () => void;
|
|
504
538
|
isLoading?: boolean;
|
|
505
539
|
className?: string;
|
|
506
540
|
title?: string;
|
|
507
541
|
description?: string;
|
|
508
|
-
background?: string;
|
|
509
|
-
hideBackground?: boolean;
|
|
510
542
|
}
|
|
543
|
+
/**
|
|
544
|
+
* iOS 26 Liquid Glass Tenant Selector
|
|
545
|
+
*/
|
|
511
546
|
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
512
547
|
interface TenantSwitcherProps {
|
|
513
548
|
tenants: Tenant[];
|
|
@@ -516,6 +551,9 @@ interface TenantSwitcherProps {
|
|
|
516
551
|
isLoading?: boolean;
|
|
517
552
|
className?: string;
|
|
518
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* iOS 26 Liquid Glass Tenant Switcher
|
|
556
|
+
*/
|
|
519
557
|
declare const TenantSwitcher: React__default.FC<TenantSwitcherProps>;
|
|
520
558
|
interface TenantGuardProps {
|
|
521
559
|
children: React__default.ReactNode;
|
|
@@ -524,6 +562,10 @@ interface TenantGuardProps {
|
|
|
524
562
|
currentTenant: Tenant | null;
|
|
525
563
|
loginRedirect?: React__default.ReactNode;
|
|
526
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* Tenant Guard Component
|
|
567
|
+
* Ensures tenant is selected before rendering children
|
|
568
|
+
*/
|
|
527
569
|
declare const TenantGuard: React__default.FC<TenantGuardProps>;
|
|
528
570
|
|
|
529
571
|
interface UseTenantsOptions {
|
|
@@ -1048,6 +1090,33 @@ interface LatticeChatShellConfig {
|
|
|
1048
1090
|
* Defaults to true
|
|
1049
1091
|
*/
|
|
1050
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;
|
|
1051
1120
|
}
|
|
1052
1121
|
/**
|
|
1053
1122
|
* Lattice Chat Shell context value interface
|
package/dist/index.d.ts
CHANGED
|
@@ -455,38 +455,62 @@ interface AuthProviderProps {
|
|
|
455
455
|
}
|
|
456
456
|
declare const AuthProvider: React__default.FC<AuthProviderProps>;
|
|
457
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Login Form Components
|
|
460
|
+
* iOS 26 Liquid Glass Design
|
|
461
|
+
*/
|
|
462
|
+
|
|
458
463
|
interface LoginFormProps {
|
|
459
464
|
onSuccess?: () => void;
|
|
460
465
|
onCancel?: () => void;
|
|
461
466
|
logo?: React__default.ReactNode;
|
|
462
467
|
title?: string;
|
|
468
|
+
subtitle?: string;
|
|
463
469
|
footer?: React__default.ReactNode;
|
|
464
470
|
className?: string;
|
|
465
471
|
}
|
|
472
|
+
/**
|
|
473
|
+
* iOS 26 Liquid Glass Login Form
|
|
474
|
+
*/
|
|
466
475
|
declare const LoginForm: React__default.FC<LoginFormProps>;
|
|
467
476
|
interface LoginPageProps extends LoginFormProps {
|
|
468
477
|
background?: string;
|
|
469
478
|
containerStyle?: React__default.CSSProperties;
|
|
470
479
|
}
|
|
480
|
+
/**
|
|
481
|
+
* iOS 26 Login Page with centered layout
|
|
482
|
+
*/
|
|
471
483
|
declare const LoginPage: React__default.FC<LoginPageProps>;
|
|
472
484
|
interface RegisterFormProps {
|
|
473
485
|
onSuccess?: () => void;
|
|
474
486
|
onCancel?: () => void;
|
|
475
487
|
logo?: React__default.ReactNode;
|
|
476
488
|
title?: string;
|
|
489
|
+
subtitle?: string;
|
|
477
490
|
footer?: React__default.ReactNode;
|
|
478
491
|
className?: string;
|
|
479
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* iOS 26 Liquid Glass Registration Form
|
|
495
|
+
*/
|
|
480
496
|
declare const RegisterForm: React__default.FC<RegisterFormProps>;
|
|
481
497
|
|
|
498
|
+
/**
|
|
499
|
+
* User Profile Components
|
|
500
|
+
* iOS 26 Liquid Glass Design
|
|
501
|
+
*/
|
|
502
|
+
|
|
482
503
|
interface UserProfileProps {
|
|
483
504
|
/** Called when user clicks logout */
|
|
484
505
|
onLogout?: () => void;
|
|
485
|
-
/** Show tenant
|
|
506
|
+
/** Show tenant information */
|
|
486
507
|
showTenantSwitcher?: boolean;
|
|
487
508
|
/** Custom class name */
|
|
488
509
|
className?: string;
|
|
489
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* iOS 26 Liquid Glass User Profile
|
|
513
|
+
*/
|
|
490
514
|
declare const UserProfile: React__default.FC<UserProfileProps>;
|
|
491
515
|
interface ProtectedRouteProps {
|
|
492
516
|
children: React__default.ReactNode;
|
|
@@ -495,19 +519,30 @@ interface ProtectedRouteProps {
|
|
|
495
519
|
/** Redirect URL (if using react-router) */
|
|
496
520
|
redirectTo?: string;
|
|
497
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
* Protected Route Component
|
|
524
|
+
* Shows loading state, redirects, or fallback when not authenticated
|
|
525
|
+
*/
|
|
498
526
|
declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
|
|
499
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Tenant Selector Components
|
|
530
|
+
* iOS 26 Liquid Glass Design
|
|
531
|
+
*/
|
|
532
|
+
|
|
500
533
|
interface TenantSelectorProps {
|
|
501
534
|
tenants: Tenant[];
|
|
502
535
|
currentTenantId?: string | null;
|
|
503
536
|
onSelect: (tenant: Tenant) => void;
|
|
537
|
+
onLogout?: () => void;
|
|
504
538
|
isLoading?: boolean;
|
|
505
539
|
className?: string;
|
|
506
540
|
title?: string;
|
|
507
541
|
description?: string;
|
|
508
|
-
background?: string;
|
|
509
|
-
hideBackground?: boolean;
|
|
510
542
|
}
|
|
543
|
+
/**
|
|
544
|
+
* iOS 26 Liquid Glass Tenant Selector
|
|
545
|
+
*/
|
|
511
546
|
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
512
547
|
interface TenantSwitcherProps {
|
|
513
548
|
tenants: Tenant[];
|
|
@@ -516,6 +551,9 @@ interface TenantSwitcherProps {
|
|
|
516
551
|
isLoading?: boolean;
|
|
517
552
|
className?: string;
|
|
518
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* iOS 26 Liquid Glass Tenant Switcher
|
|
556
|
+
*/
|
|
519
557
|
declare const TenantSwitcher: React__default.FC<TenantSwitcherProps>;
|
|
520
558
|
interface TenantGuardProps {
|
|
521
559
|
children: React__default.ReactNode;
|
|
@@ -524,6 +562,10 @@ interface TenantGuardProps {
|
|
|
524
562
|
currentTenant: Tenant | null;
|
|
525
563
|
loginRedirect?: React__default.ReactNode;
|
|
526
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* Tenant Guard Component
|
|
567
|
+
* Ensures tenant is selected before rendering children
|
|
568
|
+
*/
|
|
527
569
|
declare const TenantGuard: React__default.FC<TenantGuardProps>;
|
|
528
570
|
|
|
529
571
|
interface UseTenantsOptions {
|
|
@@ -1048,6 +1090,33 @@ interface LatticeChatShellConfig {
|
|
|
1048
1090
|
* Defaults to true
|
|
1049
1091
|
*/
|
|
1050
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;
|
|
1051
1120
|
}
|
|
1052
1121
|
/**
|
|
1053
1122
|
* Lattice Chat Shell context value interface
|