@app-studio/web 0.9.16 → 0.9.17
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/components/Alert/Alert/Alert.props.d.ts +3 -2
- package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/components/AuthGuard/AuthGuard.d.ts +35 -0
- package/dist/components/AuthGuard/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar/Avatar.props.d.ts +2 -1
- package/dist/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Tabs/Tabs/Tabs.props.d.ts +51 -3
- package/dist/components/Tabs/Tabs/Tabs.state.d.ts +13 -2
- package/dist/components/Tabs/Tabs/Tabs.view.d.ts +7 -1
- package/dist/components/Tabs/Tabs.d.ts +8 -1
- package/dist/components/Tabs/examples/compound.d.ts +5 -0
- package/dist/components/Tabs/examples/index.d.ts +1 -0
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.props.d.ts +157 -0
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.state.d.ts +24 -0
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.style.d.ts +130 -0
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.view.d.ts +12 -0
- package/dist/components/adk/AgentChat/AgentChat/AgentMessage.d.ts +21 -0
- package/dist/components/adk/AgentChat/AgentChat/AgentTypingIndicator.d.ts +7 -0
- package/dist/components/adk/AgentChat/AgentChat/MessageAttachmentPreview.d.ts +12 -0
- package/dist/components/adk/AgentChat/AgentChat.d.ts +41 -0
- package/dist/components/adk/AgentChat/examples/default.d.ts +25 -0
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.props.d.ts +182 -0
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.state.d.ts +27 -0
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.style.d.ts +144 -0
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.view.d.ts +12 -0
- package/dist/components/adk/AgentEval/AgentEval/EvaluationCreator.d.ts +17 -0
- package/dist/components/adk/AgentEval/AgentEval/EvaluationList.d.ts +23 -0
- package/dist/components/adk/AgentEval/AgentEval/EvaluationMetrics.d.ts +15 -0
- package/dist/components/adk/AgentEval/AgentEval/EvaluationResults.d.ts +19 -0
- package/dist/components/adk/AgentEval/AgentEval.d.ts +41 -0
- package/dist/components/adk/AgentEval/examples/default.d.ts +31 -0
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.props.d.ts +148 -0
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.state.d.ts +32 -0
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.style.d.ts +105 -0
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.view.d.ts +12 -0
- package/dist/components/adk/AgentSession/AgentSession/SessionActions.d.ts +20 -0
- package/dist/components/adk/AgentSession/AgentSession/SessionFilters.d.ts +14 -0
- package/dist/components/adk/AgentSession/AgentSession/SessionListItem.d.ts +26 -0
- package/dist/components/adk/AgentSession/AgentSession.d.ts +42 -0
- package/dist/components/adk/AgentSession/examples/default.d.ts +31 -0
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.props.d.ts +159 -0
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.state.d.ts +27 -0
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.style.d.ts +146 -0
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.view.d.ts +12 -0
- package/dist/components/adk/AgentTrace/AgentTrace/TraceEventList.d.ts +20 -0
- package/dist/components/adk/AgentTrace/AgentTrace/TraceFilters.d.ts +13 -0
- package/dist/components/adk/AgentTrace/AgentTrace/TraceMetrics.d.ts +16 -0
- package/dist/components/adk/AgentTrace/AgentTrace/TraceTimeline.d.ts +19 -0
- package/dist/components/adk/AgentTrace/AgentTrace/TraceVisualization.d.ts +19 -0
- package/dist/components/adk/AgentTrace/AgentTrace.d.ts +44 -0
- package/dist/components/adk/AgentTrace/examples/default.d.ts +31 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/configs/AppConfig.d.ts +4 -0
- package/dist/hooks/useAdk.d.ts +42 -0
- package/dist/pages/adk/CompleteAgentApp.d.ts +30 -0
- package/dist/pages/adk/adkComponents.page.d.ts +8 -0
- package/dist/pages/adk/adkIntegration.page.d.ts +6 -0
- package/dist/pages/adk/agentChat.page.d.ts +8 -0
- package/dist/pages/adk/providers/AdkProvider.d.ts +83 -0
- package/dist/pages/adk/providers/index.d.ts +1 -0
- package/dist/pages/adk/services/AgentService.d.ts +167 -0
- package/dist/pages/adk/services/AgentServiceProvider.d.ts +83 -0
- package/dist/pages/adk/services/AgentServiceUtils.d.ts +176 -0
- package/dist/pages/adk/services/index.d.ts +50 -0
- package/dist/services/api/core/ApiError.d.ts +8 -0
- package/dist/services/api/core/ApiRequestOptions.d.ts +14 -0
- package/dist/services/api/core/ApiResult.d.ts +7 -0
- package/dist/services/api/core/CancelablePromise.d.ts +19 -0
- package/dist/services/api/core/OpenAPI.d.ts +17 -0
- package/dist/services/api/core/request.d.ts +16 -0
- package/dist/services/api/index.d.ts +156 -0
- package/dist/services/api/models/AgentMessage.d.ts +15 -0
- package/dist/services/api/models/AgentMessageResponse.d.ts +26 -0
- package/dist/services/api/models/AgentRunRequest.d.ts +27 -0
- package/dist/services/api/models/AgentRunResponse.d.ts +16 -0
- package/dist/services/api/models/AutoChargeSettingsParams.d.ts +14 -0
- package/dist/services/api/models/Buffer.d.ts +1 -0
- package/dist/services/api/models/CheckRatingParams.d.ts +7 -0
- package/dist/services/api/models/CreateActionParams.d.ts +22 -0
- package/dist/services/api/models/CreateAdminParams.d.ts +5 -0
- package/dist/services/api/models/CreateAnalyticParams.d.ts +22 -0
- package/dist/services/api/models/CreateApplicationParams.d.ts +10 -0
- package/dist/services/api/models/CreateCommentAnswerParams.d.ts +9 -0
- package/dist/services/api/models/CreateCommentParams.d.ts +8 -0
- package/dist/services/api/models/CreateComponentRevisionParams.d.ts +10 -0
- package/dist/services/api/models/CreateContentParams.d.ts +10 -0
- package/dist/services/api/models/CreateEvaluationParams.d.ts +22 -0
- package/dist/services/api/models/CreateExempleParams.d.ts +6 -0
- package/dist/services/api/models/CreateFeedbackParams.d.ts +14 -0
- package/dist/services/api/models/CreateGrantParams.d.ts +10 -0
- package/dist/services/api/models/CreateHighlightParams.d.ts +14 -0
- package/dist/services/api/models/CreateHomeParams.d.ts +10 -0
- package/dist/services/api/models/CreateItemParams.d.ts +22 -0
- package/dist/services/api/models/CreateLikeParams.d.ts +14 -0
- package/dist/services/api/models/CreateNewsParams.d.ts +6 -0
- package/dist/services/api/models/CreateNewsletterParams.d.ts +10 -0
- package/dist/services/api/models/CreateNewsletterSectionParams.d.ts +6 -0
- package/dist/services/api/models/CreatePageParams.d.ts +22 -0
- package/dist/services/api/models/CreatePaymentParams.d.ts +6 -0
- package/dist/services/api/models/CreateProjectParams.d.ts +10 -0
- package/dist/services/api/models/CreateRatingParams.d.ts +14 -0
- package/dist/services/api/models/CreateReportParams.d.ts +15 -0
- package/dist/services/api/models/CreateSessionParams.d.ts +14 -0
- package/dist/services/api/models/CreateSourceParams.d.ts +10 -0
- package/dist/services/api/models/CreateUserParams.d.ts +5 -0
- package/dist/services/api/models/DeployPageParams.d.ts +6 -0
- package/dist/services/api/models/DomainPageParams.d.ts +10 -0
- package/dist/services/api/models/EditComponentsParams.d.ts +14 -0
- package/dist/services/api/models/EditImageParams.d.ts +14 -0
- package/dist/services/api/models/EditTextParams.d.ts +18 -0
- package/dist/services/api/models/EvaluationResponse.d.ts +38 -0
- package/dist/services/api/models/FieldCreateOptionsParams.d.ts +14 -0
- package/dist/services/api/models/FindAdminParams.d.ts +19 -0
- package/dist/services/api/models/FindAnalyticParams.d.ts +19 -0
- package/dist/services/api/models/FindApplicationParams.d.ts +19 -0
- package/dist/services/api/models/FindCommentParams.d.ts +26 -0
- package/dist/services/api/models/FindContentParams.d.ts +19 -0
- package/dist/services/api/models/FindExempleParams.d.ts +19 -0
- package/dist/services/api/models/FindFeedbackParams.d.ts +30 -0
- package/dist/services/api/models/FindLikeParams.d.ts +26 -0
- package/dist/services/api/models/FindNewsParams.d.ts +31 -0
- package/dist/services/api/models/FindNewsletterParams.d.ts +19 -0
- package/dist/services/api/models/FindPageParams.d.ts +22 -0
- package/dist/services/api/models/FindReportParams.d.ts +30 -0
- package/dist/services/api/models/FindUserParams.d.ts +23 -0
- package/dist/services/api/models/FixComponentParams.d.ts +10 -0
- package/dist/services/api/models/FixPageParams.d.ts +10 -0
- package/dist/services/api/models/ForgotPasswordAdminParams.d.ts +6 -0
- package/dist/services/api/models/ForgotPasswordParams.d.ts +6 -0
- package/dist/services/api/models/GenerateAssistantParams.d.ts +15 -0
- package/dist/services/api/models/GenerateJsonAssistantParams.d.ts +14 -0
- package/dist/services/api/models/GenerateProjectParams.d.ts +10 -0
- package/dist/services/api/models/GetAnalyticViewParams.d.ts +10 -0
- package/dist/services/api/models/ImportSessionParams.d.ts +14 -0
- package/dist/services/api/models/ListCommentParams.d.ts +7 -0
- package/dist/services/api/models/ManualChargeParams.d.ts +14 -0
- package/dist/services/api/models/MessagePart.d.ts +14 -0
- package/dist/services/api/models/RequestTask.d.ts +10 -0
- package/dist/services/api/models/ResetPasswordAdminParams.d.ts +10 -0
- package/dist/services/api/models/ResetPasswordParams.d.ts +10 -0
- package/dist/services/api/models/ResetTaskParams.d.ts +10 -0
- package/dist/services/api/models/SaveReceiptParams.d.ts +10 -0
- package/dist/services/api/models/SessionResponse.d.ts +30 -0
- package/dist/services/api/models/SetAnalyticViewParams.d.ts +14 -0
- package/dist/services/api/models/SetPaymentMethodParams.d.ts +6 -0
- package/dist/services/api/models/SignInAdminParams.d.ts +4 -0
- package/dist/services/api/models/SignInParams.d.ts +4 -0
- package/dist/services/api/models/SignUpParams.d.ts +14 -0
- package/dist/services/api/models/SignalCommentParams.d.ts +7 -0
- package/dist/services/api/models/TraceEvent.d.ts +26 -0
- package/dist/services/api/models/TraceMetrics.d.ts +22 -0
- package/dist/services/api/models/UpdateAccountParams.d.ts +4 -0
- package/dist/services/api/models/UpdateActionParams.d.ts +6 -0
- package/dist/services/api/models/UpdateAdminParams.d.ts +4 -0
- package/dist/services/api/models/UpdateApplicationParams.d.ts +6 -0
- package/dist/services/api/models/UpdateCommentParams.d.ts +6 -0
- package/dist/services/api/models/UpdateComponentParams.d.ts +26 -0
- package/dist/services/api/models/UpdateComponentPropsParams.d.ts +10 -0
- package/dist/services/api/models/UpdateContentParams.d.ts +10 -0
- package/dist/services/api/models/UpdateExempleParams.d.ts +6 -0
- package/dist/services/api/models/UpdateFeedbackParams.d.ts +14 -0
- package/dist/services/api/models/UpdateGrantParams.d.ts +6 -0
- package/dist/services/api/models/UpdateHighlightParams.d.ts +10 -0
- package/dist/services/api/models/UpdateHomeParams.d.ts +6 -0
- package/dist/services/api/models/UpdateImagePropsParams.d.ts +10 -0
- package/dist/services/api/models/UpdateItemJsonBody.d.ts +6 -0
- package/dist/services/api/models/UpdateItemParams.d.ts +14 -0
- package/dist/services/api/models/UpdateItemTextBody.d.ts +6 -0
- package/dist/services/api/models/UpdateLikeParams.d.ts +6 -0
- package/dist/services/api/models/UpdateNewsParams.d.ts +46 -0
- package/dist/services/api/models/UpdateNewsletterParams.d.ts +6 -0
- package/dist/services/api/models/UpdateNewsletterSectionParams.d.ts +6 -0
- package/dist/services/api/models/UpdatePageParams.d.ts +14 -0
- package/dist/services/api/models/UpdatePasswordAminParams.d.ts +10 -0
- package/dist/services/api/models/UpdatePasswordParams.d.ts +10 -0
- package/dist/services/api/models/UpdateProfileParams.d.ts +22 -0
- package/dist/services/api/models/UpdateProjectParams.d.ts +10 -0
- package/dist/services/api/models/UpdateReportParams.d.ts +3 -0
- package/dist/services/api/models/UpdateSourceParams.d.ts +6 -0
- package/dist/services/api/models/UpdateTaskStatus.d.ts +18 -0
- package/dist/services/api/models/UpdateUserCountParams.d.ts +6 -0
- package/dist/services/api/models/UpdateUserParams.d.ts +44 -0
- package/dist/services/api/models/createPageComponentParams.d.ts +10 -0
- package/dist/services/api/services/AccountService.d.ts +132 -0
- package/dist/services/api/services/ActionService.d.ts +72 -0
- package/dist/services/api/services/AdkEvaluationService.d.ts +93 -0
- package/dist/services/api/services/AdkService.d.ts +104 -0
- package/dist/services/api/services/AdkTraceService.d.ts +90 -0
- package/dist/services/api/services/AdminService.d.ts +131 -0
- package/dist/services/api/services/AnalyticService.d.ts +72 -0
- package/dist/services/api/services/AppService.d.ts +42 -0
- package/dist/services/api/services/ApplicationService.d.ts +83 -0
- package/dist/services/api/services/AssistantService.d.ts +50 -0
- package/dist/services/api/services/AuthService.d.ts +130 -0
- package/dist/services/api/services/CommentService.d.ts +144 -0
- package/dist/services/api/services/ComponentRevisionService.d.ts +25 -0
- package/dist/services/api/services/ComponentService.d.ts +102 -0
- package/dist/services/api/services/ContentService.d.ts +72 -0
- package/dist/services/api/services/CronService.d.ts +12 -0
- package/dist/services/api/services/ExempleService.d.ts +104 -0
- package/dist/services/api/services/FeedbackService.d.ts +83 -0
- package/dist/services/api/services/FieldService.d.ts +47 -0
- package/dist/services/api/services/FileService.d.ts +30 -0
- package/dist/services/api/services/GrantService.d.ts +100 -0
- package/dist/services/api/services/HighlightService.d.ts +59 -0
- package/dist/services/api/services/HomeService.d.ts +59 -0
- package/dist/services/api/services/IapService.d.ts +36 -0
- package/dist/services/api/services/ItemJsonService.d.ts +58 -0
- package/dist/services/api/services/ItemService.d.ts +53 -0
- package/dist/services/api/services/ItemTextsService.d.ts +101 -0
- package/dist/services/api/services/LikeService.d.ts +86 -0
- package/dist/services/api/services/NewsService.d.ts +87 -0
- package/dist/services/api/services/NewsletterService.d.ts +169 -0
- package/dist/services/api/services/PageService.d.ts +84 -0
- package/dist/services/api/services/PaymentService.d.ts +79 -0
- package/dist/services/api/services/ProfileService.d.ts +50 -0
- package/dist/services/api/services/ProjectService.d.ts +59 -0
- package/dist/services/api/services/PromptService.d.ts +18 -0
- package/dist/services/api/services/RatingService.d.ts +34 -0
- package/dist/services/api/services/ReportService.d.ts +48 -0
- package/dist/services/api/services/SectionService.d.ts +50 -0
- package/dist/services/api/services/SeedService.d.ts +24 -0
- package/dist/services/api/services/UserService.d.ts +148 -0
- package/dist/services/api/services/WorkflowService.d.ts +203 -0
- package/dist/stores/AuthStore.d.ts +2 -0
- package/dist/utils/env.d.ts +15 -0
- package/dist/utils/localstorage.d.ts +5 -0
- package/dist/utils/request.d.ts +38 -0
- package/dist/utils/store.d.ts +7 -0
- package/dist/web.cjs.development.js +6084 -50
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +6082 -52
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +6081 -54
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +6 -3
- package/dist/hooks/useRect.d.ts +0 -7
- package/dist/pages/positioning-test.page.d.ts +0 -3
- package/dist/pages/responsive-title-demo.page.d.ts +0 -6
|
@@ -3,8 +3,9 @@ import { ViewProps } from 'app-studio';
|
|
|
3
3
|
import { AlertStyles, Variant } from './Alert.type';
|
|
4
4
|
export interface AlertProps extends ViewProps {
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
|
-
title
|
|
7
|
-
description
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string | React.ReactNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
8
9
|
variant?: Variant;
|
|
9
10
|
views?: AlertStyles;
|
|
10
11
|
/**
|
|
@@ -8,4 +8,4 @@ import { AlertProps } from './Alert.props';
|
|
|
8
8
|
/**
|
|
9
9
|
* Alert component that displays important messages to users
|
|
10
10
|
*/
|
|
11
|
-
export declare const AlertView: ({ icon, title, views, description, variant, themeMode: elementMode, ...props }: AlertProps) => React.JSX.Element;
|
|
11
|
+
export declare const AlertView: ({ icon, title, views, description, variant, themeMode: elementMode, children, ...props }: AlertProps) => React.JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Authentication guard props
|
|
4
|
+
*/
|
|
5
|
+
interface AuthGuardProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
fallback?: ReactNode;
|
|
8
|
+
requireAuth?: boolean;
|
|
9
|
+
autoLogin?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Authentication guard component
|
|
13
|
+
*
|
|
14
|
+
* Protects routes by checking authentication status and auto-logging in for ADK pages
|
|
15
|
+
*/
|
|
16
|
+
export declare const AuthGuard: React.FC<AuthGuardProps>;
|
|
17
|
+
/**
|
|
18
|
+
* HOC for protecting components with authentication
|
|
19
|
+
*/
|
|
20
|
+
export declare const withAuthGuard: <P extends object>(Component: React.ComponentType<P>, options?: {
|
|
21
|
+
requireAuth?: boolean | undefined;
|
|
22
|
+
fallback?: ReactNode;
|
|
23
|
+
} | undefined) => React.FC<P>;
|
|
24
|
+
/**
|
|
25
|
+
* Route-based authentication guard
|
|
26
|
+
* Automatically determines if auth is required based on the current path
|
|
27
|
+
*/
|
|
28
|
+
export declare const RouteAuthGuard: React.FC<{
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Authentication status indicator component
|
|
33
|
+
*/
|
|
34
|
+
export declare const AuthStatus: React.FC;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AuthGuard, withAuthGuard, RouteAuthGuard, AuthStatus } from './AuthGuard';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AvatarStyles, Size } from './Avatar.type';
|
|
3
3
|
export interface AvatarProps {
|
|
4
|
-
src
|
|
4
|
+
src?: string;
|
|
5
5
|
size?: Size;
|
|
6
6
|
fallback?: string;
|
|
7
7
|
views?: AvatarStyles;
|
|
8
8
|
onClick?: Function;
|
|
9
|
+
children?: React.ReactNode;
|
|
9
10
|
}
|
|
10
11
|
export interface AvatarViewProps extends AvatarProps {
|
|
11
12
|
imageError: boolean;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { AvatarViewProps } from './Avatar.props';
|
|
9
|
-
export declare const AvatarView: ({ src, size, fallback, views, imageError, setImageError, onClick, }: AvatarViewProps) => React.JSX.Element;
|
|
9
|
+
export declare const AvatarView: ({ src, size, fallback, views, imageError, setImageError, onClick, children, }: AvatarViewProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AvatarProps } from './Avatar/Avatar.props';
|
|
3
|
-
export declare const Avatar: ({ src, size, views, fallback, onClick, }: AvatarProps) => React.JSX.Element;
|
|
3
|
+
export declare const Avatar: ({ src, size, views, fallback, onClick, children, }: AvatarProps) => React.JSX.Element;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TabsStyles, Tab } from './Tabs.type';
|
|
3
|
+
import { ViewProps } from 'app-studio';
|
|
3
4
|
/**
|
|
4
5
|
* Props for the main Tabs component (External API).
|
|
6
|
+
* Supports both data-driven approach (with tabs prop) and compound component pattern.
|
|
5
7
|
*/
|
|
6
8
|
export interface TabsProps {
|
|
7
|
-
/** Array of tab objects to be displayed. Each tab needs a unique `value`. */
|
|
8
|
-
tabs
|
|
9
|
+
/** Array of tab objects to be displayed. Each tab needs a unique `value`. (Data-driven approach) */
|
|
10
|
+
tabs?: Tab[];
|
|
9
11
|
/** Optional value of the tab to be active initially. Defaults to the first tab if not provided or not found. */
|
|
10
|
-
|
|
12
|
+
defaultValue?: string | number;
|
|
11
13
|
/** Optional callback function triggered when the active tab changes. Receives the newly active tab object. */
|
|
12
14
|
onTabChange?: (activeTab: Tab) => void;
|
|
13
15
|
/** Optional styles object to customize the appearance of the tabs container, headers, text, and content area. */
|
|
@@ -25,6 +27,12 @@ export interface TabsProps {
|
|
|
25
27
|
* If not provided, the `content` property from the active tab object will be rendered.
|
|
26
28
|
*/
|
|
27
29
|
renderContent?: (activeTab: Tab) => React.ReactNode;
|
|
30
|
+
/** Current value for controlled compound component pattern */
|
|
31
|
+
value?: string;
|
|
32
|
+
/** Callback when tab value changes in compound component pattern */
|
|
33
|
+
onValueChange?: (value: any) => void;
|
|
34
|
+
/** Children for compound component pattern */
|
|
35
|
+
children?: React.ReactNode;
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
38
|
* Props specifically for the TabsView component (Internal).
|
|
@@ -45,3 +53,43 @@ export interface TabsViewProps {
|
|
|
45
53
|
/** Optional custom renderer for the content area. */
|
|
46
54
|
renderContent?: (activeTab: Tab) => React.ReactNode;
|
|
47
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Props for TabsList compound component
|
|
58
|
+
*/
|
|
59
|
+
export interface TabsListProps {
|
|
60
|
+
/** Children (TabsTrigger components) */
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
/** Custom styles for the list container */
|
|
63
|
+
views?: {
|
|
64
|
+
container?: ViewProps;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Props for TabsTrigger compound component
|
|
69
|
+
*/
|
|
70
|
+
export interface TabsTriggerProps {
|
|
71
|
+
/** Unique value for this tab */
|
|
72
|
+
value: string;
|
|
73
|
+
/** Children content for the trigger */
|
|
74
|
+
children: React.ReactNode;
|
|
75
|
+
/** Whether this trigger is disabled */
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
/** Custom styles for the trigger */
|
|
78
|
+
views?: {
|
|
79
|
+
trigger?: ViewProps;
|
|
80
|
+
activeState?: ViewProps;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Props for TabsContent compound component
|
|
85
|
+
*/
|
|
86
|
+
export interface TabsContentProps {
|
|
87
|
+
/** Value that this content corresponds to */
|
|
88
|
+
value: string;
|
|
89
|
+
/** Children content to display when this tab is active */
|
|
90
|
+
children: React.ReactNode;
|
|
91
|
+
/** Custom styles for the content */
|
|
92
|
+
views?: {
|
|
93
|
+
content?: ViewProps;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -3,10 +3,21 @@ import { Tab } from './Tabs.type';
|
|
|
3
3
|
/**
|
|
4
4
|
* Custom hook to manage the state of the active tab.
|
|
5
5
|
* @param propTabs - The array of tab objects provided as props.
|
|
6
|
-
* @param
|
|
6
|
+
* @param defaultValue - The optional title of the tab to be initially active.
|
|
7
7
|
* @returns An object containing the current activeTab and a function to update it.
|
|
8
8
|
*/
|
|
9
|
-
export declare const useTabsState: (propTabs: Tab[],
|
|
9
|
+
export declare const useTabsState: (propTabs: Tab[], defaultValue?: string | number | undefined) => {
|
|
10
10
|
activeTab: Tab | undefined;
|
|
11
11
|
setActiveTab: import("react").Dispatch<import("react").SetStateAction<Tab | undefined>>;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Custom hook to manage the state for compound component pattern.
|
|
15
|
+
* @param defaultValue - The default value for the active tab (uncontrolled)
|
|
16
|
+
* @param value - The current value for the active tab (controlled)
|
|
17
|
+
* @param onValueChange - Callback when the active value changes
|
|
18
|
+
* @returns An object containing the current activeValue and a function to update it.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useTabsCompoundState: (defaultValue?: string | number | undefined, value?: string | number | undefined, onValueChange?: ((value: string | number) => void) | undefined) => {
|
|
21
|
+
activeValue: string | number | null;
|
|
22
|
+
setActiveValue: (newValue: string | number) => void;
|
|
23
|
+
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TabsViewProps } from './Tabs.props';
|
|
2
|
+
import { TabsViewProps, TabsListProps, TabsTriggerProps, TabsContentProps } from './Tabs.props';
|
|
3
|
+
import { TabsContextType } from './Tabs.type';
|
|
3
4
|
/**
|
|
4
5
|
* The presentation component for Tabs. Renders the UI based on props.
|
|
5
6
|
*/
|
|
6
7
|
export declare const TabsView: React.FC<TabsViewProps>;
|
|
8
|
+
export declare const TabsContext: React.Context<TabsContextType | null>;
|
|
9
|
+
export declare const useTabsContext: () => TabsContextType;
|
|
10
|
+
export declare const TabsList: React.FC<TabsListProps>;
|
|
11
|
+
export declare const TabsTrigger: React.FC<TabsTriggerProps>;
|
|
12
|
+
export declare const TabsContent: React.FC<TabsContentProps>;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TabsProps } from './Tabs/Tabs.props';
|
|
3
|
-
|
|
3
|
+
import { TabsList, TabsTrigger, TabsContent } from './Tabs/Tabs.view';
|
|
4
|
+
interface TabsType extends React.FC<TabsProps> {
|
|
5
|
+
List: typeof TabsList;
|
|
6
|
+
Trigger: typeof TabsTrigger;
|
|
7
|
+
Content: typeof TabsContent;
|
|
8
|
+
}
|
|
9
|
+
export declare const Tabs: TabsType;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
/**
|
|
3
|
+
* Core ADK Agent Types
|
|
4
|
+
*/
|
|
5
|
+
export interface AgentRunRequest {
|
|
6
|
+
appName: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
newMessage: {
|
|
10
|
+
role: string;
|
|
11
|
+
parts: MessagePart[];
|
|
12
|
+
};
|
|
13
|
+
functionCallEventId?: string;
|
|
14
|
+
streaming?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface MessagePart {
|
|
17
|
+
text?: string;
|
|
18
|
+
inlineData?: {
|
|
19
|
+
displayName: string;
|
|
20
|
+
data: string | ArrayBuffer;
|
|
21
|
+
mimeType: string;
|
|
22
|
+
};
|
|
23
|
+
functionCall?: {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
args: any;
|
|
27
|
+
};
|
|
28
|
+
functionResponse?: {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
response: any;
|
|
32
|
+
};
|
|
33
|
+
executableCode?: {
|
|
34
|
+
language: string;
|
|
35
|
+
code: string;
|
|
36
|
+
};
|
|
37
|
+
codeExecutionResult?: {
|
|
38
|
+
outcome: string;
|
|
39
|
+
output?: string;
|
|
40
|
+
};
|
|
41
|
+
thought?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface AgentMessage {
|
|
44
|
+
id: string;
|
|
45
|
+
role: 'user' | 'bot';
|
|
46
|
+
text?: string;
|
|
47
|
+
parts?: MessagePart[];
|
|
48
|
+
timestamp: number;
|
|
49
|
+
isLoading?: boolean;
|
|
50
|
+
thought?: boolean;
|
|
51
|
+
eventId?: string;
|
|
52
|
+
attachments?: MessageAttachment[];
|
|
53
|
+
inlineData?: {
|
|
54
|
+
displayName?: string;
|
|
55
|
+
data: string;
|
|
56
|
+
mimeType: string;
|
|
57
|
+
mediaType?: 'image' | 'video' | 'audio' | 'document';
|
|
58
|
+
};
|
|
59
|
+
functionCall?: any;
|
|
60
|
+
functionResponse?: any;
|
|
61
|
+
executableCode?: any;
|
|
62
|
+
codeExecutionResult?: any;
|
|
63
|
+
renderedContent?: string;
|
|
64
|
+
evalStatus?: string;
|
|
65
|
+
failedMetric?: string;
|
|
66
|
+
evalScore?: number;
|
|
67
|
+
evalThreshold?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface MessageAttachment {
|
|
70
|
+
file: File;
|
|
71
|
+
url: string;
|
|
72
|
+
type: 'image' | 'video' | 'audio' | 'document';
|
|
73
|
+
}
|
|
74
|
+
export interface AgentSession {
|
|
75
|
+
id: string;
|
|
76
|
+
userId: string;
|
|
77
|
+
appName: string;
|
|
78
|
+
state: any;
|
|
79
|
+
events: any[];
|
|
80
|
+
createdAt: number;
|
|
81
|
+
updatedAt: number;
|
|
82
|
+
}
|
|
83
|
+
export interface AgentEvent {
|
|
84
|
+
id: string;
|
|
85
|
+
sessionId: string;
|
|
86
|
+
type: string;
|
|
87
|
+
data: any;
|
|
88
|
+
timestamp: number;
|
|
89
|
+
title?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Component View Customization
|
|
93
|
+
*/
|
|
94
|
+
export interface AgentChatViews {
|
|
95
|
+
container?: ViewProps;
|
|
96
|
+
header?: ViewProps;
|
|
97
|
+
messageList?: ViewProps;
|
|
98
|
+
message?: ViewProps;
|
|
99
|
+
userMessage?: ViewProps;
|
|
100
|
+
botMessage?: ViewProps;
|
|
101
|
+
inputArea?: ViewProps;
|
|
102
|
+
inputField?: ViewProps;
|
|
103
|
+
sendButton?: ViewProps;
|
|
104
|
+
attachmentArea?: ViewProps;
|
|
105
|
+
loadingIndicator?: ViewProps;
|
|
106
|
+
errorMessage?: ViewProps;
|
|
107
|
+
typingIndicator?: ViewProps;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Event Handlers
|
|
111
|
+
*/
|
|
112
|
+
export interface AgentChatEventHandlers {
|
|
113
|
+
onSessionCreate?: (session: AgentSession) => void;
|
|
114
|
+
onSessionUpdate?: (session: AgentSession) => void;
|
|
115
|
+
onMessageSent?: (message: AgentMessage) => void;
|
|
116
|
+
onMessageReceived?: (message: AgentMessage) => void;
|
|
117
|
+
onError?: (error: Error) => void;
|
|
118
|
+
onFileUpload?: (files: File[]) => void;
|
|
119
|
+
onTypingStart?: () => void;
|
|
120
|
+
onTypingStop?: () => void;
|
|
121
|
+
onAudioRecordingStart?: () => void;
|
|
122
|
+
onAudioRecordingStop?: (audioData: Blob) => void;
|
|
123
|
+
onVideoRecordingStart?: () => void;
|
|
124
|
+
onVideoRecordingStop?: (videoData: Blob) => void;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Main AgentChat Props Interface
|
|
128
|
+
*/
|
|
129
|
+
export interface AgentChatProps extends ViewProps, AgentChatEventHandlers {
|
|
130
|
+
appName: string;
|
|
131
|
+
userId: string;
|
|
132
|
+
sessionId?: string;
|
|
133
|
+
apiBaseUrl?: string;
|
|
134
|
+
wsBaseUrl?: string;
|
|
135
|
+
enableFileUpload?: boolean;
|
|
136
|
+
enableAudioRecording?: boolean;
|
|
137
|
+
enableVideoRecording?: boolean;
|
|
138
|
+
enableStreaming?: boolean;
|
|
139
|
+
enableThoughts?: boolean;
|
|
140
|
+
maxFileSize?: number;
|
|
141
|
+
maxFiles?: number;
|
|
142
|
+
allowedFileTypes?: string[];
|
|
143
|
+
maxMessageLength?: number;
|
|
144
|
+
placeholder?: string;
|
|
145
|
+
showTimestamps?: boolean;
|
|
146
|
+
showAvatars?: boolean;
|
|
147
|
+
showTypingIndicator?: boolean;
|
|
148
|
+
autoScroll?: boolean;
|
|
149
|
+
views?: AgentChatViews;
|
|
150
|
+
initialMessages?: AgentMessage[];
|
|
151
|
+
initialSession?: AgentSession;
|
|
152
|
+
enableFunctionCalls?: boolean;
|
|
153
|
+
enableCodeExecution?: boolean;
|
|
154
|
+
enableEvaluation?: boolean;
|
|
155
|
+
ariaLabel?: string;
|
|
156
|
+
ariaDescribedBy?: string;
|
|
157
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AgentChatProps, AgentMessage, AgentSession, MessageAttachment } from './AgentChat.props';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for managing AgentChat state and interactions
|
|
5
|
+
*/
|
|
6
|
+
export declare const useAgentChat: (props: AgentChatProps) => {
|
|
7
|
+
messages: AgentMessage[];
|
|
8
|
+
currentSession: AgentSession | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
isTyping: boolean;
|
|
11
|
+
error: string | null;
|
|
12
|
+
inputValue: string;
|
|
13
|
+
selectedFiles: MessageAttachment[];
|
|
14
|
+
isConnected: boolean;
|
|
15
|
+
sessionId: string;
|
|
16
|
+
sendMessage: (text: string, attachments?: MessageAttachment[]) => Promise<void>;
|
|
17
|
+
setInputValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
+
handleFileSelect: (files: FileList | File[]) => void;
|
|
19
|
+
removeFile: (index: number) => void;
|
|
20
|
+
createSession: () => Promise<AgentSession>;
|
|
21
|
+
messagesEndRef: import("react").RefObject<HTMLDivElement>;
|
|
22
|
+
setError: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
23
|
+
setSelectedFiles: import("react").Dispatch<import("react").SetStateAction<MessageAttachment[]>>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
/**
|
|
3
|
+
* Default styles for AgentChat component
|
|
4
|
+
* Following the app-studio design system with 4px grid, Inter/Geist fonts, and neutral palette
|
|
5
|
+
*/
|
|
6
|
+
export declare const DefaultAgentChatStyles: {
|
|
7
|
+
container: ViewProps;
|
|
8
|
+
header: ViewProps;
|
|
9
|
+
messageList: ViewProps;
|
|
10
|
+
emptyState: ViewProps;
|
|
11
|
+
inputArea: ViewProps;
|
|
12
|
+
attachmentArea: ViewProps;
|
|
13
|
+
message: ViewProps;
|
|
14
|
+
userMessage: ViewProps;
|
|
15
|
+
botMessage: ViewProps;
|
|
16
|
+
thoughtMessage: ViewProps;
|
|
17
|
+
loadingMessage: ViewProps;
|
|
18
|
+
messageHeader: ViewProps;
|
|
19
|
+
messageContent: ViewProps;
|
|
20
|
+
messageFooter: ViewProps;
|
|
21
|
+
timestamp: ViewProps;
|
|
22
|
+
avatar: ViewProps;
|
|
23
|
+
userAvatar: ViewProps;
|
|
24
|
+
botAvatar: ViewProps;
|
|
25
|
+
attachmentPreview: ViewProps;
|
|
26
|
+
attachmentRemove: ViewProps;
|
|
27
|
+
typingIndicator: ViewProps;
|
|
28
|
+
typingDot: ViewProps;
|
|
29
|
+
functionCall: ViewProps;
|
|
30
|
+
functionResponse: ViewProps;
|
|
31
|
+
codeBlock: ViewProps;
|
|
32
|
+
inlineData: ViewProps;
|
|
33
|
+
errorMessage: ViewProps;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Animation styles for typing indicator
|
|
37
|
+
*/
|
|
38
|
+
export declare const TypingAnimationStyles: {
|
|
39
|
+
dot1: {
|
|
40
|
+
animationDelay: string;
|
|
41
|
+
};
|
|
42
|
+
dot2: {
|
|
43
|
+
animationDelay: string;
|
|
44
|
+
};
|
|
45
|
+
dot3: {
|
|
46
|
+
animationDelay: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Responsive breakpoints for AgentChat
|
|
51
|
+
*/
|
|
52
|
+
export declare const AgentChatBreakpoints: {
|
|
53
|
+
mobile: string;
|
|
54
|
+
tablet: string;
|
|
55
|
+
desktop: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Size variants for AgentChat
|
|
59
|
+
*/
|
|
60
|
+
export declare const AgentChatSizes: {
|
|
61
|
+
sm: {
|
|
62
|
+
container: {
|
|
63
|
+
height: string;
|
|
64
|
+
};
|
|
65
|
+
messageList: {
|
|
66
|
+
minHeight: string;
|
|
67
|
+
maxHeight: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
md: {
|
|
71
|
+
container: {
|
|
72
|
+
height: string;
|
|
73
|
+
};
|
|
74
|
+
messageList: {
|
|
75
|
+
minHeight: string;
|
|
76
|
+
maxHeight: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
lg: {
|
|
80
|
+
container: {
|
|
81
|
+
height: string;
|
|
82
|
+
};
|
|
83
|
+
messageList: {
|
|
84
|
+
minHeight: string;
|
|
85
|
+
maxHeight: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
xl: {
|
|
89
|
+
container: {
|
|
90
|
+
height: string;
|
|
91
|
+
};
|
|
92
|
+
messageList: {
|
|
93
|
+
minHeight: string;
|
|
94
|
+
maxHeight: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Theme variants for AgentChat
|
|
100
|
+
*/
|
|
101
|
+
export declare const AgentChatThemes: {
|
|
102
|
+
light: {
|
|
103
|
+
container: {
|
|
104
|
+
backgroundColor: string;
|
|
105
|
+
};
|
|
106
|
+
header: {
|
|
107
|
+
backgroundColor: string;
|
|
108
|
+
};
|
|
109
|
+
messageList: {
|
|
110
|
+
backgroundColor: string;
|
|
111
|
+
};
|
|
112
|
+
inputArea: {
|
|
113
|
+
backgroundColor: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
dark: {
|
|
117
|
+
container: {
|
|
118
|
+
backgroundColor: string;
|
|
119
|
+
};
|
|
120
|
+
header: {
|
|
121
|
+
backgroundColor: string;
|
|
122
|
+
};
|
|
123
|
+
messageList: {
|
|
124
|
+
backgroundColor: string;
|
|
125
|
+
};
|
|
126
|
+
inputArea: {
|
|
127
|
+
backgroundColor: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AgentChatProps } from './AgentChat.props';
|
|
3
|
+
import { useAgentChat } from './AgentChat.state';
|
|
4
|
+
export interface AgentChatViewProps extends Omit<AgentChatProps, 'sessionId'>, ReturnType<typeof useAgentChat> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* AgentChat View Component
|
|
8
|
+
*
|
|
9
|
+
* Renders the complete chat interface with message list, input area, and controls
|
|
10
|
+
*/
|
|
11
|
+
declare const AgentChatView: React.FC<AgentChatViewProps>;
|
|
12
|
+
export default AgentChatView;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AgentMessage as AgentMessageType } from './AgentChat.props';
|
|
3
|
+
export interface AgentMessageProps {
|
|
4
|
+
message: AgentMessageType;
|
|
5
|
+
showTimestamp?: boolean;
|
|
6
|
+
showAvatar?: boolean;
|
|
7
|
+
isLast?: boolean;
|
|
8
|
+
views?: {
|
|
9
|
+
container?: any;
|
|
10
|
+
content?: any;
|
|
11
|
+
timestamp?: any;
|
|
12
|
+
avatar?: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* AgentMessage Component
|
|
17
|
+
*
|
|
18
|
+
* Renders individual messages in the chat with support for different message types,
|
|
19
|
+
* attachments, function calls, code execution, and more.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AgentMessage: React.FC<AgentMessageProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MessageAttachment } from './AgentChat.props';
|
|
3
|
+
export interface MessageAttachmentPreviewProps {
|
|
4
|
+
attachment: MessageAttachment;
|
|
5
|
+
onRemove: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* MessageAttachmentPreview Component
|
|
9
|
+
*
|
|
10
|
+
* Shows a preview of attached files with the ability to remove them
|
|
11
|
+
*/
|
|
12
|
+
export declare const MessageAttachmentPreview: React.FC<MessageAttachmentPreviewProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AgentChatProps } from './AgentChat/AgentChat.props';
|
|
3
|
+
/**
|
|
4
|
+
* AgentChat Component
|
|
5
|
+
*
|
|
6
|
+
* A comprehensive chat interface for interacting with ADK agents.
|
|
7
|
+
* Supports real-time messaging, file uploads, agent responses, and session management.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <AgentChat
|
|
12
|
+
* appName="my-agent"
|
|
13
|
+
* userId="user123"
|
|
14
|
+
* onSessionCreate={(session) => console.log('Session created:', session)}
|
|
15
|
+
* onMessageSent={(message) => console.log('Message sent:', message)}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* // With custom styling and configuration
|
|
22
|
+
* <AgentChat
|
|
23
|
+
* appName="my-agent"
|
|
24
|
+
* userId="user123"
|
|
25
|
+
* enableFileUpload={true}
|
|
26
|
+
* enableAudioRecording={true}
|
|
27
|
+
* enableVideoRecording={true}
|
|
28
|
+
* maxFileSize={10 * 1024 * 1024} // 10MB
|
|
29
|
+
* apiBaseUrl="http://localhost:3000/adk"
|
|
30
|
+
* views={{
|
|
31
|
+
* container: { backgroundColor: 'color.gray.50' },
|
|
32
|
+
* messageList: { maxHeight: '400px' },
|
|
33
|
+
* inputArea: { borderRadius: '12px' }
|
|
34
|
+
* }}
|
|
35
|
+
* />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare const AgentChat: React.FC<AgentChatProps>;
|
|
39
|
+
export default AgentChat;
|
|
40
|
+
export { AgentChat };
|
|
41
|
+
export type { AgentChatProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Default AgentChat Example
|
|
4
|
+
*
|
|
5
|
+
* Demonstrates basic usage of the AgentChat component with ADK agents
|
|
6
|
+
*/
|
|
7
|
+
export declare const DefaultDemo: () => React.JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Minimal AgentChat Example
|
|
10
|
+
*
|
|
11
|
+
* Shows the simplest possible usage
|
|
12
|
+
*/
|
|
13
|
+
export declare const MinimalDemo: () => React.JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Customized AgentChat Example
|
|
16
|
+
*
|
|
17
|
+
* Shows advanced customization options
|
|
18
|
+
*/
|
|
19
|
+
export declare const CustomizedDemo: () => React.JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* Agent with Function Calls Example
|
|
22
|
+
*
|
|
23
|
+
* Demonstrates function call capabilities
|
|
24
|
+
*/
|
|
25
|
+
export declare const FunctionCallsDemo: () => React.JSX.Element;
|