@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.
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.props.d.ts +26 -3
- package/dist/components/adk/AgentChat/examples/default.d.ts +1 -1
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.props.d.ts +33 -2
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.props.d.ts +23 -1
- package/dist/components/adk/AgentSession/examples/default.d.ts +6 -0
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.props.d.ts +38 -3
- package/dist/web.cjs.development.js +81 -5
- 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 +81 -5
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +81 -5
- 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/docs/adk-customization-guide.md +204 -0
- package/docs/adk-customization-summary.md +157 -0
- package/package.json +1 -1
|
@@ -28388,7 +28388,7 @@
|
|
|
28388
28388
|
}, formatFileSize(file.size)))));
|
|
28389
28389
|
};
|
|
28390
28390
|
|
|
28391
|
-
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"];
|
|
28391
|
+
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"];
|
|
28392
28392
|
/**
|
|
28393
28393
|
* AgentChat View Component
|
|
28394
28394
|
*
|
|
@@ -28406,6 +28406,10 @@
|
|
|
28406
28406
|
enableAudioRecording = false,
|
|
28407
28407
|
enableVideoRecording = false,
|
|
28408
28408
|
views,
|
|
28409
|
+
containerProps,
|
|
28410
|
+
colorScheme = 'blue',
|
|
28411
|
+
compact = false,
|
|
28412
|
+
rounded = true,
|
|
28409
28413
|
ariaLabel = 'Agent Chat',
|
|
28410
28414
|
ariaDescribedBy,
|
|
28411
28415
|
// State from hook
|
|
@@ -28439,7 +28443,7 @@
|
|
|
28439
28443
|
* Handle message send from ChatInput
|
|
28440
28444
|
*/
|
|
28441
28445
|
var handleSubmit = /*#__PURE__*/function () {
|
|
28442
|
-
var _ref2 = _asyncToGenerator(function* (message,
|
|
28446
|
+
var _ref2 = _asyncToGenerator(function* (message, _options) {
|
|
28443
28447
|
if (message.trim() || selectedFiles.length > 0) {
|
|
28444
28448
|
yield sendMessage(message, selectedFiles);
|
|
28445
28449
|
}
|
|
@@ -28461,7 +28465,37 @@
|
|
|
28461
28465
|
selectedFiles.forEach(file => URL.revokeObjectURL(file.url));
|
|
28462
28466
|
setSelectedFiles([]);
|
|
28463
28467
|
};
|
|
28464
|
-
|
|
28468
|
+
/**
|
|
28469
|
+
* Get dynamic styles based on theme props
|
|
28470
|
+
*/
|
|
28471
|
+
var getThemeStyles = () => {
|
|
28472
|
+
var baseStyles = {
|
|
28473
|
+
borderRadius: rounded ? '12px' : '4px',
|
|
28474
|
+
padding: compact ? '8px' : '16px'
|
|
28475
|
+
};
|
|
28476
|
+
var colorStyles = {
|
|
28477
|
+
blue: {
|
|
28478
|
+
borderColor: 'color.blue.200'
|
|
28479
|
+
},
|
|
28480
|
+
purple: {
|
|
28481
|
+
borderColor: 'color.purple.200'
|
|
28482
|
+
},
|
|
28483
|
+
green: {
|
|
28484
|
+
borderColor: 'color.green.200'
|
|
28485
|
+
},
|
|
28486
|
+
orange: {
|
|
28487
|
+
borderColor: 'color.orange.200'
|
|
28488
|
+
},
|
|
28489
|
+
red: {
|
|
28490
|
+
borderColor: 'color.red.200'
|
|
28491
|
+
},
|
|
28492
|
+
gray: {
|
|
28493
|
+
borderColor: 'color.gray.200'
|
|
28494
|
+
}
|
|
28495
|
+
};
|
|
28496
|
+
return Object.assign({}, baseStyles, colorStyles[colorScheme]);
|
|
28497
|
+
};
|
|
28498
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentChatStyles.container, getThemeStyles(), containerProps, views == null ? void 0 : views.container, props, {
|
|
28465
28499
|
"aria-label": ariaLabel,
|
|
28466
28500
|
"aria-describedby": ariaDescribedBy
|
|
28467
28501
|
}), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentChatStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
|
|
@@ -29447,7 +29481,7 @@
|
|
|
29447
29481
|
}, "Clear all filters")))));
|
|
29448
29482
|
};
|
|
29449
29483
|
|
|
29450
|
-
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"];
|
|
29484
|
+
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"];
|
|
29451
29485
|
/**
|
|
29452
29486
|
* AgentSession View Component
|
|
29453
29487
|
*
|
|
@@ -29467,6 +29501,10 @@
|
|
|
29467
29501
|
showRefreshButton = true,
|
|
29468
29502
|
compactMode = false,
|
|
29469
29503
|
views,
|
|
29504
|
+
containerProps,
|
|
29505
|
+
colorScheme = 'blue',
|
|
29506
|
+
layout = 'list',
|
|
29507
|
+
showPreviews = true,
|
|
29470
29508
|
ariaLabel = 'Agent Session Manager',
|
|
29471
29509
|
ariaDescribedBy,
|
|
29472
29510
|
// State from hook
|
|
@@ -29550,7 +29588,45 @@
|
|
|
29550
29588
|
minute: '2-digit'
|
|
29551
29589
|
});
|
|
29552
29590
|
};
|
|
29553
|
-
|
|
29591
|
+
/**
|
|
29592
|
+
* Get dynamic styles based on theme props
|
|
29593
|
+
*/
|
|
29594
|
+
var getThemeStyles = () => {
|
|
29595
|
+
var colorStyles = {
|
|
29596
|
+
blue: {
|
|
29597
|
+
borderColor: 'color.blue.200'
|
|
29598
|
+
},
|
|
29599
|
+
purple: {
|
|
29600
|
+
borderColor: 'color.purple.200'
|
|
29601
|
+
},
|
|
29602
|
+
green: {
|
|
29603
|
+
borderColor: 'color.green.200'
|
|
29604
|
+
},
|
|
29605
|
+
orange: {
|
|
29606
|
+
borderColor: 'color.orange.200'
|
|
29607
|
+
},
|
|
29608
|
+
red: {
|
|
29609
|
+
borderColor: 'color.red.200'
|
|
29610
|
+
},
|
|
29611
|
+
gray: {
|
|
29612
|
+
borderColor: 'color.gray.200'
|
|
29613
|
+
}
|
|
29614
|
+
};
|
|
29615
|
+
var layoutStyles = {
|
|
29616
|
+
list: {
|
|
29617
|
+
flexDirection: 'column'
|
|
29618
|
+
},
|
|
29619
|
+
grid: {
|
|
29620
|
+
flexDirection: 'row',
|
|
29621
|
+
flexWrap: 'wrap'
|
|
29622
|
+
},
|
|
29623
|
+
compact: {
|
|
29624
|
+
padding: '8px'
|
|
29625
|
+
}
|
|
29626
|
+
};
|
|
29627
|
+
return Object.assign({}, colorStyles[colorScheme], layoutStyles[layout]);
|
|
29628
|
+
};
|
|
29629
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentSessionStyles.container, getThemeStyles(), containerProps, views == null ? void 0 : views.container, props, {
|
|
29554
29630
|
"aria-label": ariaLabel,
|
|
29555
29631
|
"aria-describedby": ariaDescribedBy
|
|
29556
29632
|
}), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultAgentSessionStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
|