@app-studio/web 0.9.20 → 0.9.21

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.
@@ -95,16 +95,35 @@ export interface AgentChatViews {
95
95
  container?: ViewProps;
96
96
  header?: ViewProps;
97
97
  messageList?: ViewProps;
98
+ inputArea?: ViewProps;
99
+ attachmentArea?: ViewProps;
98
100
  message?: ViewProps;
99
101
  userMessage?: ViewProps;
100
102
  botMessage?: ViewProps;
101
- inputArea?: ViewProps;
103
+ systemMessage?: ViewProps;
104
+ messageContent?: ViewProps;
105
+ messageTimestamp?: ViewProps;
106
+ messageAvatar?: ViewProps;
107
+ messageActions?: ViewProps;
102
108
  inputField?: ViewProps;
103
109
  sendButton?: ViewProps;
104
- attachmentArea?: ViewProps;
110
+ attachButton?: ViewProps;
111
+ recordButton?: ViewProps;
112
+ inputToolbar?: ViewProps;
105
113
  loadingIndicator?: ViewProps;
106
- errorMessage?: ViewProps;
107
114
  typingIndicator?: ViewProps;
115
+ errorMessage?: ViewProps;
116
+ emptyState?: ViewProps;
117
+ functionCall?: ViewProps;
118
+ functionResponse?: ViewProps;
119
+ functionArgs?: ViewProps;
120
+ codeBlock?: ViewProps;
121
+ codeOutput?: ViewProps;
122
+ attachmentPreview?: ViewProps;
123
+ attachmentItem?: ViewProps;
124
+ attachmentRemoveButton?: ViewProps;
125
+ thoughtBubble?: ViewProps;
126
+ thoughtContent?: ViewProps;
108
127
  }
109
128
  /**
110
129
  * Event Handlers
@@ -147,11 +166,15 @@ export interface AgentChatProps extends ViewProps, AgentChatEventHandlers {
147
166
  showTypingIndicator?: boolean;
148
167
  autoScroll?: boolean;
149
168
  views?: AgentChatViews;
169
+ containerProps?: ViewProps;
150
170
  initialMessages?: AgentMessage[];
151
171
  initialSession?: AgentSession;
152
172
  enableFunctionCalls?: boolean;
153
173
  enableCodeExecution?: boolean;
154
174
  enableEvaluation?: boolean;
175
+ colorScheme?: 'blue' | 'purple' | 'green' | 'orange' | 'red' | 'gray';
176
+ compact?: boolean;
177
+ rounded?: boolean;
155
178
  ariaLabel?: string;
156
179
  ariaDescribedBy?: string;
157
180
  }
@@ -14,7 +14,7 @@ export declare const MinimalDemo: () => React.JSX.Element;
14
14
  /**
15
15
  * Customized AgentChat Example
16
16
  *
17
- * Shows advanced customization options
17
+ * Shows advanced customization options with enhanced views prop
18
18
  */
19
19
  export declare const CustomizedDemo: () => React.JSX.Element;
20
20
  /**
@@ -75,23 +75,50 @@ export interface EvaluationConfig {
75
75
  export interface AgentEvalViews {
76
76
  container?: ViewProps;
77
77
  header?: ViewProps;
78
+ toolbar?: ViewProps;
78
79
  evaluationList?: ViewProps;
79
- evaluationItem?: ViewProps;
80
- activeEvaluationItem?: ViewProps;
81
80
  createPanel?: ViewProps;
82
81
  resultsPanel?: ViewProps;
83
82
  metricsPanel?: ViewProps;
83
+ configPanel?: ViewProps;
84
+ evaluationItem?: ViewProps;
85
+ activeEvaluationItem?: ViewProps;
86
+ evaluationTitle?: ViewProps;
87
+ evaluationDescription?: ViewProps;
88
+ evaluationStatus?: ViewProps;
89
+ evaluationProgress?: ViewProps;
90
+ evaluationMetrics?: ViewProps;
91
+ evaluationTimestamp?: ViewProps;
84
92
  testCaseList?: ViewProps;
85
93
  testCaseItem?: ViewProps;
94
+ testCaseInput?: ViewProps;
95
+ testCaseOutput?: ViewProps;
96
+ testCaseExpected?: ViewProps;
97
+ testCaseResult?: ViewProps;
98
+ testCaseMetrics?: ViewProps;
86
99
  progressBar?: ViewProps;
87
100
  statusIndicator?: ViewProps;
101
+ statusBadge?: ViewProps;
102
+ scoreDisplay?: ViewProps;
103
+ durationDisplay?: ViewProps;
88
104
  actionButtons?: ViewProps;
105
+ runButton?: ViewProps;
106
+ stopButton?: ViewProps;
89
107
  exportButton?: ViewProps;
90
108
  refreshButton?: ViewProps;
109
+ deleteButton?: ViewProps;
110
+ duplicateButton?: ViewProps;
91
111
  searchInput?: ViewProps;
112
+ filterDropdown?: ViewProps;
113
+ sortDropdown?: ViewProps;
114
+ statusFilter?: ViewProps;
92
115
  emptyState?: ViewProps;
93
116
  loadingState?: ViewProps;
94
117
  errorState?: ViewProps;
118
+ chartContainer?: ViewProps;
119
+ metricsChart?: ViewProps;
120
+ resultsTable?: ViewProps;
121
+ summaryCard?: ViewProps;
95
122
  }
96
123
  /**
97
124
  * Event Handlers
@@ -151,12 +178,16 @@ export interface AgentEvalProps extends ViewProps, AgentEvalEventHandlers {
151
178
  showProgressIndicators?: boolean;
152
179
  compactMode?: boolean;
153
180
  views?: AgentEvalViews;
181
+ containerProps?: ViewProps;
154
182
  initialEvaluations?: EvaluationRun[];
155
183
  selectedEvaluationId?: string;
156
184
  availableTemplates?: EvaluationTemplate[];
157
185
  enableRealTimeUpdates?: boolean;
158
186
  enableResultCaching?: boolean;
159
187
  enableCustomMetrics?: boolean;
188
+ colorScheme?: 'blue' | 'purple' | 'green' | 'orange' | 'red' | 'gray';
189
+ layout?: 'list' | 'grid' | 'dashboard';
190
+ showCharts?: boolean;
160
191
  ariaLabel?: string;
161
192
  ariaDescribedBy?: string;
162
193
  }
@@ -45,20 +45,38 @@ export interface SessionSummary {
45
45
  export interface AgentSessionViews {
46
46
  container?: ViewProps;
47
47
  header?: ViewProps;
48
+ toolbar?: ViewProps;
48
49
  sessionList?: ViewProps;
50
+ sessionActions?: ViewProps;
51
+ filtersPanel?: ViewProps;
49
52
  sessionItem?: ViewProps;
50
53
  activeSessionItem?: ViewProps;
51
54
  sessionInfo?: ViewProps;
52
- sessionActions?: ViewProps;
55
+ sessionTitle?: ViewProps;
56
+ sessionDescription?: ViewProps;
57
+ sessionMetadata?: ViewProps;
58
+ sessionTimestamp?: ViewProps;
59
+ sessionTags?: ViewProps;
60
+ sessionStats?: ViewProps;
53
61
  createButton?: ViewProps;
54
62
  deleteButton?: ViewProps;
55
63
  exportButton?: ViewProps;
56
64
  importButton?: ViewProps;
57
65
  refreshButton?: ViewProps;
66
+ selectButton?: ViewProps;
67
+ duplicateButton?: ViewProps;
58
68
  searchInput?: ViewProps;
69
+ filterDropdown?: ViewProps;
70
+ sortDropdown?: ViewProps;
71
+ dateRangePicker?: ViewProps;
72
+ tagFilter?: ViewProps;
59
73
  emptyState?: ViewProps;
60
74
  loadingState?: ViewProps;
61
75
  errorState?: ViewProps;
76
+ bulkActions?: ViewProps;
77
+ selectAllCheckbox?: ViewProps;
78
+ bulkDeleteButton?: ViewProps;
79
+ bulkExportButton?: ViewProps;
62
80
  }
63
81
  /**
64
82
  * Event Handlers
@@ -114,6 +132,7 @@ export interface AgentSessionProps extends ViewProps, AgentSessionEventHandlers
114
132
  showRefreshButton?: boolean;
115
133
  compactMode?: boolean;
116
134
  views?: AgentSessionViews;
135
+ containerProps?: ViewProps;
117
136
  initialSessions?: AgentSession[];
118
137
  selectedSessionId?: string;
119
138
  defaultFilters?: SessionFilters;
@@ -121,6 +140,9 @@ export interface AgentSessionProps extends ViewProps, AgentSessionEventHandlers
121
140
  enableSessionTags?: boolean;
122
141
  enableSessionMetadata?: boolean;
123
142
  enableBulkOperations?: boolean;
143
+ colorScheme?: 'blue' | 'purple' | 'green' | 'orange' | 'red' | 'gray';
144
+ layout?: 'list' | 'grid' | 'compact';
145
+ showPreviews?: boolean;
124
146
  ariaLabel?: string;
125
147
  ariaDescribedBy?: string;
126
148
  }
@@ -17,6 +17,12 @@ export declare const CompactDemo: () => React.JSX.Element;
17
17
  * Shows advanced customization options
18
18
  */
19
19
  export declare const CustomizedDemo: () => React.JSX.Element;
20
+ /**
21
+ * Enhanced Customization Example
22
+ *
23
+ * Shows comprehensive customization using enhanced views prop and container props
24
+ */
25
+ export declare const EnhancedCustomizationDemo: () => React.JSX.Element;
20
26
  /**
21
27
  * Session with Mock Data Example
22
28
  *
@@ -65,16 +65,47 @@ export interface TraceFilter {
65
65
  export interface AgentTraceViews {
66
66
  container?: ViewProps;
67
67
  header?: ViewProps;
68
+ toolbar?: ViewProps;
68
69
  timeline?: ViewProps;
69
70
  eventList?: ViewProps;
71
+ detailsPanel?: ViewProps;
72
+ metricsPanel?: ViewProps;
73
+ filtersPanel?: ViewProps;
70
74
  eventItem?: ViewProps;
71
75
  selectedEventItem?: ViewProps;
72
- metrics?: ViewProps;
73
- filters?: ViewProps;
76
+ eventHeader?: ViewProps;
77
+ eventContent?: ViewProps;
78
+ eventMetadata?: ViewProps;
79
+ eventTimestamp?: ViewProps;
80
+ eventDuration?: ViewProps;
81
+ eventType?: ViewProps;
82
+ eventLevel?: ViewProps;
83
+ eventTags?: ViewProps;
84
+ timelineContainer?: ViewProps;
85
+ timelineAxis?: ViewProps;
86
+ timelineEvent?: ViewProps;
87
+ timelineSpan?: ViewProps;
88
+ timelineMarker?: ViewProps;
89
+ metricsCard?: ViewProps;
90
+ performanceChart?: ViewProps;
91
+ errorRateChart?: ViewProps;
92
+ latencyChart?: ViewProps;
93
+ throughputChart?: ViewProps;
74
94
  visualization?: ViewProps;
95
+ flowDiagram?: ViewProps;
96
+ dependencyGraph?: ViewProps;
97
+ heatmap?: ViewProps;
98
+ searchInput?: ViewProps;
99
+ typeFilter?: ViewProps;
100
+ levelFilter?: ViewProps;
101
+ timeRangeFilter?: ViewProps;
102
+ tagFilter?: ViewProps;
103
+ durationFilter?: ViewProps;
75
104
  exportButton?: ViewProps;
76
105
  refreshButton?: ViewProps;
77
- searchInput?: ViewProps;
106
+ clearButton?: ViewProps;
107
+ expandAllButton?: ViewProps;
108
+ collapseAllButton?: ViewProps;
78
109
  emptyState?: ViewProps;
79
110
  loadingState?: ViewProps;
80
111
  errorState?: ViewProps;
@@ -127,12 +158,16 @@ export interface AgentTraceProps extends ViewProps, AgentTraceEventHandlers {
127
158
  showPerformanceMetrics?: boolean;
128
159
  compactMode?: boolean;
129
160
  views?: AgentTraceViews;
161
+ containerProps?: ViewProps;
130
162
  initialEvents?: TraceEvent[];
131
163
  initialFilter?: TraceFilter;
132
164
  selectedEventId?: string;
133
165
  enableRealTimeUpdates?: boolean;
134
166
  enableEventGrouping?: boolean;
135
167
  enableSpanVisualization?: boolean;
168
+ colorScheme?: 'blue' | 'purple' | 'green' | 'orange' | 'red' | 'gray';
169
+ layout?: 'timeline' | 'tree' | 'table' | 'graph';
170
+ showMinimap?: boolean;
136
171
  ariaLabel?: string;
137
172
  ariaDescribedBy?: string;
138
173
  }
@@ -28420,7 +28420,7 @@ var MessageAttachmentPreview = _ref => {
28420
28420
  }, formatFileSize(file.size)))));
28421
28421
  };
28422
28422
 
28423
- var _excluded$1i = ["placeholder", "showTimestamps", "showAvatars", "showTypingIndicator", "autoScroll", "enableFileUpload", "enableAudioRecording", "enableVideoRecording", "views", "ariaLabel", "ariaDescribedBy", "messages", "currentSession", "isLoading", "isTyping", "error", "inputValue", "selectedFiles", "sessionId", "sendMessage", "setInputValue", "handleFileSelect", "removeFile", "messagesEndRef", "setError", "setSelectedFiles"];
28423
+ var _excluded$1i = ["placeholder", "showTimestamps", "showAvatars", "showTypingIndicator", "autoScroll", "enableFileUpload", "enableAudioRecording", "enableVideoRecording", "views", "containerProps", "colorScheme", "compact", "rounded", "ariaLabel", "ariaDescribedBy", "messages", "currentSession", "isLoading", "isTyping", "error", "inputValue", "selectedFiles", "sessionId", "sendMessage", "setInputValue", "handleFileSelect", "removeFile", "messagesEndRef", "setError", "setSelectedFiles"];
28424
28424
  /**
28425
28425
  * AgentChat View Component
28426
28426
  *
@@ -28438,6 +28438,10 @@ var AgentChatView = _ref => {
28438
28438
  enableAudioRecording = false,
28439
28439
  enableVideoRecording = false,
28440
28440
  views,
28441
+ containerProps,
28442
+ colorScheme = 'blue',
28443
+ compact = false,
28444
+ rounded = true,
28441
28445
  ariaLabel = 'Agent Chat',
28442
28446
  ariaDescribedBy,
28443
28447
  // State from hook
@@ -28471,7 +28475,7 @@ var AgentChatView = _ref => {
28471
28475
  * Handle message send from ChatInput
28472
28476
  */
28473
28477
  var handleSubmit = /*#__PURE__*/function () {
28474
- var _ref2 = _asyncToGenerator(function* (message, options) {
28478
+ var _ref2 = _asyncToGenerator(function* (message, _options) {
28475
28479
  if (message.trim() || selectedFiles.length > 0) {
28476
28480
  yield sendMessage(message, selectedFiles);
28477
28481
  }
@@ -28493,7 +28497,37 @@ var AgentChatView = _ref => {
28493
28497
  selectedFiles.forEach(file => URL.revokeObjectURL(file.url));
28494
28498
  setSelectedFiles([]);
28495
28499
  };
28496
- return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentChatStyles.container, views == null ? void 0 : views.container, props, {
28500
+ /**
28501
+ * Get dynamic styles based on theme props
28502
+ */
28503
+ var getThemeStyles = () => {
28504
+ var baseStyles = {
28505
+ borderRadius: rounded ? '12px' : '4px',
28506
+ padding: compact ? '8px' : '16px'
28507
+ };
28508
+ var colorStyles = {
28509
+ blue: {
28510
+ borderColor: 'color.blue.200'
28511
+ },
28512
+ purple: {
28513
+ borderColor: 'color.purple.200'
28514
+ },
28515
+ green: {
28516
+ borderColor: 'color.green.200'
28517
+ },
28518
+ orange: {
28519
+ borderColor: 'color.orange.200'
28520
+ },
28521
+ red: {
28522
+ borderColor: 'color.red.200'
28523
+ },
28524
+ gray: {
28525
+ borderColor: 'color.gray.200'
28526
+ }
28527
+ };
28528
+ return Object.assign({}, baseStyles, colorStyles[colorScheme]);
28529
+ };
28530
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentChatStyles.container, getThemeStyles(), containerProps, views == null ? void 0 : views.container, props, {
28497
28531
  "aria-label": ariaLabel,
28498
28532
  "aria-describedby": ariaDescribedBy
28499
28533
  }), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentChatStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
@@ -29479,7 +29513,7 @@ var SessionFilters = _ref => {
29479
29513
  }, "Clear all filters")))));
29480
29514
  };
29481
29515
 
29482
- var _excluded$1j = ["showSessionHistory", "enableSessionImport", "enableSessionExport", "enableSessionDelete", "enableSessionSearch", "showSessionInfo", "showSessionActions", "showCreateButton", "showRefreshButton", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "sessions", "selectedSession", "isLoading", "isCreating", "error", "searchQuery", "filters", "sortOptions", "fetchSessions", "createSession", "selectSession", "deleteSession", "exportSession", "handleFileImport", "setSearchQuery", "setFilters", "setSortOptions", "setError", "fileInputRef", "handleFileSelect"];
29516
+ var _excluded$1j = ["showSessionHistory", "enableSessionImport", "enableSessionExport", "enableSessionDelete", "enableSessionSearch", "showSessionInfo", "showSessionActions", "showCreateButton", "showRefreshButton", "compactMode", "views", "containerProps", "colorScheme", "layout", "showPreviews", "ariaLabel", "ariaDescribedBy", "sessions", "selectedSession", "isLoading", "isCreating", "error", "searchQuery", "filters", "sortOptions", "fetchSessions", "createSession", "selectSession", "deleteSession", "exportSession", "handleFileImport", "setSearchQuery", "setFilters", "setSortOptions", "setError", "fileInputRef", "handleFileSelect"];
29483
29517
  /**
29484
29518
  * AgentSession View Component
29485
29519
  *
@@ -29499,6 +29533,10 @@ var AgentSessionView = _ref => {
29499
29533
  showRefreshButton = true,
29500
29534
  compactMode = false,
29501
29535
  views,
29536
+ containerProps,
29537
+ colorScheme = 'blue',
29538
+ layout = 'list',
29539
+ showPreviews = true,
29502
29540
  ariaLabel = 'Agent Session Manager',
29503
29541
  ariaDescribedBy,
29504
29542
  // State from hook
@@ -29582,7 +29620,45 @@ var AgentSessionView = _ref => {
29582
29620
  minute: '2-digit'
29583
29621
  });
29584
29622
  };
29585
- return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentSessionStyles.container, views == null ? void 0 : views.container, props, {
29623
+ /**
29624
+ * Get dynamic styles based on theme props
29625
+ */
29626
+ var getThemeStyles = () => {
29627
+ var colorStyles = {
29628
+ blue: {
29629
+ borderColor: 'color.blue.200'
29630
+ },
29631
+ purple: {
29632
+ borderColor: 'color.purple.200'
29633
+ },
29634
+ green: {
29635
+ borderColor: 'color.green.200'
29636
+ },
29637
+ orange: {
29638
+ borderColor: 'color.orange.200'
29639
+ },
29640
+ red: {
29641
+ borderColor: 'color.red.200'
29642
+ },
29643
+ gray: {
29644
+ borderColor: 'color.gray.200'
29645
+ }
29646
+ };
29647
+ var layoutStyles = {
29648
+ list: {
29649
+ flexDirection: 'column'
29650
+ },
29651
+ grid: {
29652
+ flexDirection: 'row',
29653
+ flexWrap: 'wrap'
29654
+ },
29655
+ compact: {
29656
+ padding: '8px'
29657
+ }
29658
+ };
29659
+ return Object.assign({}, colorStyles[colorScheme], layoutStyles[layout]);
29660
+ };
29661
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentSessionStyles.container, getThemeStyles(), containerProps, views == null ? void 0 : views.container, props, {
29586
29662
  "aria-label": ariaLabel,
29587
29663
  "aria-describedby": ariaDescribedBy
29588
29664
  }), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentSessionStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {