@app-studio/web 0.9.36 → 0.9.38

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.
Files changed (125) hide show
  1. package/dist/components/ChatInput/ChatInput/ChatInput.style.d.ts +31 -0
  2. package/dist/components/Drawer/Drawer/Drawer.props.d.ts +61 -0
  3. package/dist/components/Drawer/Drawer/Drawer.style.d.ts +4 -0
  4. package/dist/components/Drawer/Drawer/Drawer.view.d.ts +7 -0
  5. package/dist/components/Drawer/Drawer.d.ts +2 -0
  6. package/dist/components/index.d.ts +2 -22
  7. package/dist/pages/drawer.page.d.ts +3 -0
  8. package/dist/utils/apiConfig.d.ts +2 -2
  9. package/dist/utils/typography.d.ts +3 -4
  10. package/dist/web.cjs.development.js +2321 -12073
  11. package/dist/web.cjs.development.js.map +1 -1
  12. package/dist/web.cjs.production.min.js +1 -1
  13. package/dist/web.cjs.production.min.js.map +1 -1
  14. package/dist/web.esm.js +2114 -11857
  15. package/dist/web.esm.js.map +1 -1
  16. package/dist/web.umd.development.js +3019 -12768
  17. package/dist/web.umd.development.js.map +1 -1
  18. package/dist/web.umd.production.min.js +1 -1
  19. package/dist/web.umd.production.min.js.map +1 -1
  20. package/docs/components/Accordion.mdx +4 -4
  21. package/docs/components/Alert.mdx +1 -1
  22. package/docs/components/Background.mdx +5 -5
  23. package/docs/components/Badge.mdx +1 -1
  24. package/docs/components/Calendar.mdx +3 -0
  25. package/docs/components/Card.mdx +8 -8
  26. package/docs/components/Carousel.mdx +6 -6
  27. package/docs/components/ColorInput.mdx +1 -1
  28. package/docs/components/Drawer.mdx +164 -0
  29. package/docs/components/Gradient.mdx +6 -6
  30. package/docs/components/HoverCard.mdx +5 -5
  31. package/docs/components/KanbanBoard.mdx +132 -2
  32. package/docs/components/Link.mdx +2 -2
  33. package/docs/components/Menubar.mdx +1 -1
  34. package/docs/components/Message.mdx +4 -4
  35. package/docs/components/Modal.mdx +4 -4
  36. package/docs/components/OKR.mdx +40 -63
  37. package/docs/components/Tabs.mdx +1 -1
  38. package/docs/components/ToggleGroup.mdx +4 -4
  39. package/docs/components/Tooltip.mdx +2 -2
  40. package/docs/conventions.md +1 -1
  41. package/package.json +2 -2
  42. package/dist/components/Calendar/Calendar/Calendar.props.d.ts +0 -74
  43. package/dist/components/Calendar/Calendar/Calendar.style.d.ts +0 -107
  44. package/dist/components/Calendar/Calendar/Calendar.utils.d.ts +0 -91
  45. package/dist/components/Calendar/Calendar/Calendar.view.d.ts +0 -3
  46. package/dist/components/Calendar/Calendar.d.ts +0 -1
  47. package/dist/components/Flow/Flow/Flow.props.d.ts +0 -144
  48. package/dist/components/Flow/Flow/Flow.state.d.ts +0 -95
  49. package/dist/components/Flow/Flow/Flow.style.d.ts +0 -40
  50. package/dist/components/Flow/Flow/Flow.type.d.ts +0 -181
  51. package/dist/components/Flow/Flow/Flow.view.d.ts +0 -28
  52. package/dist/components/Flow/Flow.d.ts +0 -2
  53. package/dist/components/Flow/index.d.ts +0 -2
  54. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.props.d.ts +0 -47
  55. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.state.d.ts +0 -13
  56. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.view.d.ts +0 -3
  57. package/dist/components/KanbanBoard/KanbanBoard.d.ts +0 -3
  58. package/dist/components/OKR/OKR/OKR.props.d.ts +0 -72
  59. package/dist/components/OKR/OKR/OKR.style.d.ts +0 -19
  60. package/dist/components/OKR/OKR/OKR.view.d.ts +0 -4
  61. package/dist/components/OKR/OKR.d.ts +0 -4
  62. package/dist/components/Text/Text/Text.props.d.ts +0 -29
  63. package/dist/components/Text/Text/Text.style.d.ts +0 -27
  64. package/dist/components/Text/Text/Text.utils.d.ts +0 -2
  65. package/dist/components/Text/Text/Text.view.d.ts +0 -19
  66. package/dist/components/Text/Text.d.ts +0 -5
  67. package/dist/components/Tree/Tree/Tree.props.d.ts +0 -106
  68. package/dist/components/Tree/Tree/Tree.state.d.ts +0 -38
  69. package/dist/components/Tree/Tree/Tree.style.d.ts +0 -41
  70. package/dist/components/Tree/Tree/Tree.type.d.ts +0 -133
  71. package/dist/components/Tree/Tree/Tree.view.d.ts +0 -36
  72. package/dist/components/Tree/Tree.d.ts +0 -2
  73. package/dist/components/adk/AgentChat/AgentChat/AgentChat.props.d.ts +0 -180
  74. package/dist/components/adk/AgentChat/AgentChat/AgentChat.state.d.ts +0 -24
  75. package/dist/components/adk/AgentChat/AgentChat/AgentChat.style.d.ts +0 -132
  76. package/dist/components/adk/AgentChat/AgentChat/AgentChat.view.d.ts +0 -12
  77. package/dist/components/adk/AgentChat/AgentChat/AgentMessage.d.ts +0 -21
  78. package/dist/components/adk/AgentChat/AgentChat/AgentRunProgress.d.ts +0 -11
  79. package/dist/components/adk/AgentChat/AgentChat/AgentTypingIndicator.d.ts +0 -7
  80. package/dist/components/adk/AgentChat/AgentChat/MessageAttachmentPreview.d.ts +0 -12
  81. package/dist/components/adk/AgentChat/AgentChat.d.ts +0 -41
  82. package/dist/components/adk/AgentEval/AgentEval/AgentEval.props.d.ts +0 -213
  83. package/dist/components/adk/AgentEval/AgentEval/AgentEval.state.d.ts +0 -27
  84. package/dist/components/adk/AgentEval/AgentEval/AgentEval.style.d.ts +0 -144
  85. package/dist/components/adk/AgentEval/AgentEval/AgentEval.view.d.ts +0 -12
  86. package/dist/components/adk/AgentEval/AgentEval/EvaluationCreator.d.ts +0 -17
  87. package/dist/components/adk/AgentEval/AgentEval/EvaluationList.d.ts +0 -23
  88. package/dist/components/adk/AgentEval/AgentEval/EvaluationMetrics.d.ts +0 -15
  89. package/dist/components/adk/AgentEval/AgentEval/EvaluationResults.d.ts +0 -19
  90. package/dist/components/adk/AgentEval/AgentEval.d.ts +0 -41
  91. package/dist/components/adk/AgentSession/AgentSession/AgentSession.props.d.ts +0 -170
  92. package/dist/components/adk/AgentSession/AgentSession/AgentSession.state.d.ts +0 -32
  93. package/dist/components/adk/AgentSession/AgentSession/AgentSession.style.d.ts +0 -105
  94. package/dist/components/adk/AgentSession/AgentSession/AgentSession.view.d.ts +0 -12
  95. package/dist/components/adk/AgentSession/AgentSession/SessionActions.d.ts +0 -20
  96. package/dist/components/adk/AgentSession/AgentSession/SessionFilters.d.ts +0 -14
  97. package/dist/components/adk/AgentSession/AgentSession/SessionListItem.d.ts +0 -26
  98. package/dist/components/adk/AgentSession/AgentSession.d.ts +0 -42
  99. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.props.d.ts +0 -194
  100. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.state.d.ts +0 -27
  101. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.style.d.ts +0 -146
  102. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.view.d.ts +0 -12
  103. package/dist/components/adk/AgentTrace/AgentTrace/TraceEventList.d.ts +0 -20
  104. package/dist/components/adk/AgentTrace/AgentTrace/TraceFilters.d.ts +0 -13
  105. package/dist/components/adk/AgentTrace/AgentTrace/TraceMetrics.d.ts +0 -16
  106. package/dist/components/adk/AgentTrace/AgentTrace/TraceTimeline.d.ts +0 -19
  107. package/dist/components/adk/AgentTrace/AgentTrace/TraceVisualization.d.ts +0 -19
  108. package/dist/components/adk/AgentTrace/AgentTrace.d.ts +0 -44
  109. package/dist/components/adk/useAdk.d.ts +0 -42
  110. package/dist/pages/adk/CompleteAgentApp.d.ts +0 -30
  111. package/dist/pages/adk/adkComponents.page.d.ts +0 -8
  112. package/dist/pages/adk/adkIntegration.page.d.ts +0 -6
  113. package/dist/pages/adk/agentChat.page.d.ts +0 -8
  114. package/dist/pages/adk/providers/AdkProvider.d.ts +0 -83
  115. package/dist/pages/adk/providers/index.d.ts +0 -1
  116. package/dist/pages/adk/services/AgentService.d.ts +0 -167
  117. package/dist/pages/adk/services/AgentServiceProvider.d.ts +0 -83
  118. package/dist/pages/adk/services/AgentServiceUtils.d.ts +0 -176
  119. package/dist/pages/adk/services/index.d.ts +0 -50
  120. package/dist/pages/calendar.page.d.ts +0 -3
  121. package/dist/pages/flow.page.d.ts +0 -3
  122. package/dist/pages/kanbanBoard.page.d.ts +0 -3
  123. package/dist/pages/okr.page.d.ts +0 -3
  124. package/dist/pages/text.page.d.ts +0 -3
  125. package/dist/pages/tree.page.d.ts +0 -3
@@ -1,83 +0,0 @@
1
- import React from 'react';
2
- import { AgentService, AgentServiceConfig } from './AgentService';
3
- /**
4
- * Agent Service Context
5
- *
6
- * Provides the Agent Service instance throughout the React component tree
7
- */
8
- interface AgentServiceContextType {
9
- service: AgentService | null;
10
- isConnected: boolean;
11
- error: string | null;
12
- reconnect: () => void;
13
- }
14
- /**
15
- * Agent Service Provider Props
16
- */
17
- export interface AgentServiceProviderProps {
18
- config: AgentServiceConfig;
19
- children: React.ReactNode;
20
- onConnectionChange?: (isConnected: boolean) => void;
21
- onError?: (error: Error) => void;
22
- }
23
- /**
24
- * Agent Service Provider Component
25
- *
26
- * Provides the Agent Service instance to all child components
27
- * and manages connection state and error handling.
28
- */
29
- export declare const AgentServiceProvider: React.FC<AgentServiceProviderProps>;
30
- /**
31
- * Hook to use the Agent Service
32
- *
33
- * Provides access to the Agent Service instance and connection state
34
- */
35
- export declare const useAgentService: () => AgentServiceContextType;
36
- /**
37
- * Hook for Agent Service Operations
38
- *
39
- * Provides common operations with built-in error handling and loading states
40
- */
41
- export declare const useAgentOperations: () => {
42
- isLoading: boolean;
43
- error: string | null;
44
- setError: React.Dispatch<React.SetStateAction<string | null>>;
45
- executeOperation: <T>(operation: () => Promise<T>, onSuccess?: ((result: T) => void) | undefined, onError?: ((error: Error) => void) | undefined) => Promise<T | null>;
46
- sessions: {
47
- create: (appName: string, userId: string, metadata?: any) => Promise<import("../../../components/adk/AgentChat/AgentChat/AgentChat.props").AgentSession | null>;
48
- get: (sessionId: string) => Promise<import("../../../components/adk/AgentChat/AgentChat/AgentChat.props").AgentSession | null>;
49
- list: (userId: string, appName?: string | undefined, limit?: number | undefined) => Promise<import("../../../components/adk/AgentChat/AgentChat/AgentChat.props").AgentSession[] | null>;
50
- delete: (sessionId: string) => Promise<void | null>;
51
- };
52
- messages: {
53
- send: (request: any) => Promise<any>;
54
- sendStreaming: (request: any, onMessage: (message: any) => void, onComplete?: (() => void) | undefined) => Promise<void | null>;
55
- cancelStreaming: (sessionId: string) => void;
56
- };
57
- trace: {
58
- getEvents: (sessionId: string, filters?: any) => Promise<import("../../../components").TraceEvent[] | null>;
59
- getSpans: (sessionId: string) => Promise<import("../../../components").TraceSpan[] | null>;
60
- getMetrics: (sessionId: string) => Promise<import("../../../components").TraceMetrics | null>;
61
- subscribe: (sessionId: string, onUpdate: (update: any) => void) => void;
62
- };
63
- evaluations: {
64
- create: (name: string, appName: string, userId: string, testCases: any[], metrics: any[], config?: any) => Promise<import("../../../components").EvaluationRun | null>;
65
- start: (evaluationId: string) => Promise<void | null>;
66
- cancel: (evaluationId: string) => Promise<void | null>;
67
- get: (evaluationId: string) => Promise<import("../../../components").EvaluationRun | null>;
68
- list: (appName: string, userId: string, limit?: number | undefined) => Promise<import("../../../components").EvaluationRun[] | null>;
69
- delete: (evaluationId: string) => Promise<void | null>;
70
- subscribe: (userId: string, onUpdate: (update: any) => void) => void;
71
- };
72
- };
73
- /**
74
- * Connection Status Component
75
- *
76
- * Displays the current connection status of the Agent Service
77
- */
78
- export interface ConnectionStatusProps {
79
- showDetails?: boolean;
80
- onReconnect?: () => void;
81
- }
82
- export declare const ConnectionStatus: React.FC<ConnectionStatusProps>;
83
- export {};
@@ -1,176 +0,0 @@
1
- /**
2
- * Agent Service Utilities
3
- *
4
- * Helper functions and utilities for working with the Agent Service
5
- */
6
- import { AgentMessage, MessagePart } from '../../../components/adk/AgentChat/AgentChat/AgentChat.props';
7
- import { TraceEvent, TraceMetrics } from '../../../components/adk/AgentTrace/AgentTrace/AgentTrace.props';
8
- import { EvaluationRun, EvaluationResult } from '../../../components/adk/AgentEval/AgentEval/AgentEval.props';
9
- /**
10
- * Message Utilities
11
- */
12
- export declare class MessageUtils {
13
- /**
14
- * Create a text message part
15
- */
16
- static createTextPart(text: string): MessagePart;
17
- /**
18
- * Create an inline data part from file
19
- */
20
- static createInlineDataPart(file: File): Promise<MessagePart>;
21
- /**
22
- * Create a function call part
23
- */
24
- static createFunctionCallPart(name: string, args: any, id?: string): MessagePart;
25
- /**
26
- * Create a function response part
27
- */
28
- static createFunctionResponsePart(name: string, response: any, id?: string): MessagePart;
29
- /**
30
- * Extract text content from message parts
31
- */
32
- static extractTextContent(parts: MessagePart[]): string;
33
- /**
34
- * Check if message contains attachments
35
- */
36
- static hasAttachments(parts: MessagePart[]): boolean;
37
- /**
38
- * Get attachment count
39
- */
40
- static getAttachmentCount(parts: MessagePart[]): number;
41
- /**
42
- * Format message for display
43
- */
44
- static formatMessageForDisplay(message: AgentMessage): string;
45
- }
46
- /**
47
- * Trace Utilities
48
- */
49
- export declare class TraceUtils {
50
- /**
51
- * Calculate trace metrics from events
52
- */
53
- static calculateMetrics(events: TraceEvent[]): TraceMetrics;
54
- /**
55
- * Filter events by type
56
- */
57
- static filterEventsByType(events: TraceEvent[], types: string[]): TraceEvent[];
58
- /**
59
- * Filter events by time range
60
- */
61
- static filterEventsByTimeRange(events: TraceEvent[], startTime: number, endTime: number): TraceEvent[];
62
- /**
63
- * Group events by type
64
- */
65
- static groupEventsByType(events: TraceEvent[]): Record<string, TraceEvent[]>;
66
- /**
67
- * Find events by parent ID
68
- */
69
- static findChildEvents(events: TraceEvent[], parentId: string): TraceEvent[];
70
- /**
71
- * Build event tree structure
72
- */
73
- static buildEventTree(events: TraceEvent[]): TraceEvent[];
74
- }
75
- /**
76
- * Evaluation Utilities
77
- */
78
- export declare class EvaluationUtils {
79
- /**
80
- * Calculate evaluation summary
81
- */
82
- static calculateSummary(results: EvaluationResult[]): {
83
- totalTests: number;
84
- passedTests: number;
85
- failedTests: number;
86
- errorTests: number;
87
- skippedTests: number;
88
- averageScore: number;
89
- totalDuration: number;
90
- metricsAverages: Record<string, number>;
91
- passRate: number;
92
- };
93
- /**
94
- * Filter results by status
95
- */
96
- static filterResultsByStatus(results: EvaluationResult[], statuses: string[]): EvaluationResult[];
97
- /**
98
- * Get failed test cases
99
- */
100
- static getFailedResults(results: EvaluationResult[]): EvaluationResult[];
101
- /**
102
- * Get passed test cases
103
- */
104
- static getPassedResults(results: EvaluationResult[]): EvaluationResult[];
105
- /**
106
- * Calculate pass rate
107
- */
108
- static calculatePassRate(results: EvaluationResult[]): number;
109
- /**
110
- * Find slowest test cases
111
- */
112
- static getSlowestResults(results: EvaluationResult[], count?: number): EvaluationResult[];
113
- /**
114
- * Find fastest test cases
115
- */
116
- static getFastestResults(results: EvaluationResult[], count?: number): EvaluationResult[];
117
- /**
118
- * Compare two evaluations
119
- */
120
- static compareEvaluations(eval1: EvaluationRun, eval2: EvaluationRun): {
121
- passRateDiff: number;
122
- averageScoreDiff: number;
123
- durationDiff: number;
124
- testCountDiff: number;
125
- } | null;
126
- }
127
- /**
128
- * File Utilities
129
- */
130
- export declare class FileUtils {
131
- /**
132
- * Convert file to base64
133
- */
134
- static fileToBase64(file: File): Promise<string>;
135
- /**
136
- * Get file type category
137
- */
138
- static getFileTypeCategory(mimeType: string): 'image' | 'video' | 'audio' | 'document' | 'other';
139
- /**
140
- * Format file size
141
- */
142
- static formatFileSize(bytes: number): string;
143
- /**
144
- * Validate file type
145
- */
146
- static isValidFileType(file: File, allowedTypes: string[]): boolean;
147
- /**
148
- * Validate file size
149
- */
150
- static isValidFileSize(file: File, maxSize: number): boolean;
151
- }
152
- /**
153
- * Format Utilities
154
- */
155
- export declare class FormatUtils {
156
- /**
157
- * Format duration in milliseconds
158
- */
159
- static formatDuration(ms: number): string;
160
- /**
161
- * Format timestamp
162
- */
163
- static formatTimestamp(timestamp: number, format?: 'short' | 'long' | 'relative'): string;
164
- /**
165
- * Format relative time
166
- */
167
- static formatRelativeTime(timestamp: number): string;
168
- /**
169
- * Format percentage
170
- */
171
- static formatPercentage(value: number, decimals?: number): string;
172
- /**
173
- * Format score
174
- */
175
- static formatScore(score: number, decimals?: number): string;
176
- }
@@ -1,50 +0,0 @@
1
- /**
2
- * Agent Services
3
- *
4
- * Enhanced service layer for backend communication with ADK agents.
5
- * Provides a unified interface for all agent-related operations.
6
- */
7
- export { AgentService, createAgentService, useAgentServiceHook, type, AgentServiceConfig, type, AgentEventListener, } from './AgentService';
8
- export { AgentServiceProvider, useAgentService, useAgentOperations, ConnectionStatus, type, AgentServiceProviderProps, type, ConnectionStatusProps, } from './AgentServiceProvider';
9
- export { MessageUtils, TraceUtils, EvaluationUtils, FileUtils, FormatUtils, } from './AgentServiceUtils';
10
- /**
11
- * Service Configuration Presets
12
- */
13
- export declare const ServicePresets: {
14
- /**
15
- * Development configuration
16
- */
17
- development: {
18
- baseUrl: string;
19
- timeout: number;
20
- retryCount: number;
21
- enableLogging: boolean;
22
- };
23
- /**
24
- * Production configuration
25
- */
26
- production: {
27
- baseUrl: string;
28
- timeout: number;
29
- retryCount: number;
30
- enableLogging: boolean;
31
- };
32
- /**
33
- * Testing configuration
34
- */
35
- testing: {
36
- baseUrl: string;
37
- timeout: number;
38
- retryCount: number;
39
- enableLogging: boolean;
40
- };
41
- };
42
- /**
43
- * Default Service Configuration
44
- */
45
- export declare const defaultServiceConfig: {
46
- baseUrl: string;
47
- timeout: number;
48
- retryCount: number;
49
- enableLogging: boolean;
50
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const CalendarPage: () => React.JSX.Element;
3
- export default CalendarPage;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const FlowPage: () => React.JSX.Element;
3
- export default FlowPage;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const KanbanBoardPage: () => React.JSX.Element;
3
- export default KanbanBoardPage;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const CalendarPage: () => React.JSX.Element;
3
- export default CalendarPage;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const TextPage: () => React.JSX.Element;
3
- export default TextPage;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const TreePage: () => React.JSX.Element;
3
- export default TreePage;