@app-studio/web 0.9.19 → 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/components/index.d.ts +0 -1
- package/dist/web.cjs.development.js +82 -7
- 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 +82 -7
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +86 -10
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('core-js/modules/es.string.trim-end.js'), require('core-js/modules/es.parse-int.js'), require('react-router-dom'), require('core-js/modules/es.string.ends-with.js'), require('contrast'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.string.trim.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/es.string.replace.js'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.array.sort.js')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'core-js/modules/es.string.trim-end.js', 'core-js/modules/es.parse-int.js', 'react-router-dom', 'core-js/modules/es.string.ends-with.js', 'contrast', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.string.trim.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/es.string.replace.js', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.array.sort.js'
|
|
4
|
-
(global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, null, null, global.reactRouterDom, null, global.contrast, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, null, global.zustand
|
|
5
|
-
}(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, es_string_trimEnd_js, es_parseInt_js, reactRouterDom, es_string_endsWith_js, contrast, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_string_trim_js, es_regexp_constructor_js, es_regexp_exec_js, formik, es_string_replace_js, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('core-js/modules/es.string.trim-end.js'), require('core-js/modules/es.parse-int.js'), require('react-router-dom'), require('core-js/modules/es.string.ends-with.js'), require('contrast'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.string.trim.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/es.string.replace.js'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.array.sort.js')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'core-js/modules/es.string.trim-end.js', 'core-js/modules/es.parse-int.js', 'react-router-dom', 'core-js/modules/es.string.ends-with.js', 'contrast', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.string.trim.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/es.string.replace.js', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.array.sort.js'], factory) :
|
|
4
|
+
(global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, null, null, global.reactRouterDom, null, global.contrast, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, null, global.zustand));
|
|
5
|
+
}(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, es_string_trimEnd_js, es_parseInt_js, reactRouterDom, es_string_endsWith_js, contrast, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_string_trim_js, es_regexp_constructor_js, es_regexp_exec_js, formik, es_string_replace_js, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var React__default = 'default' in React ? React['default'] : React;
|
|
8
8
|
contrast = contrast && Object.prototype.hasOwnProperty.call(contrast, 'default') ? contrast['default'] : contrast;
|
|
@@ -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, {
|
|
@@ -31270,7 +31346,7 @@
|
|
|
31270
31346
|
fontSize: "sm",
|
|
31271
31347
|
fontWeight: "600",
|
|
31272
31348
|
color: "color.gray.700"
|
|
31273
|
-
}, "Visualization Type"), /*#__PURE__*/React__default.createElement(
|
|
31349
|
+
}, "Visualization Type"), /*#__PURE__*/React__default.createElement(Select, {
|
|
31274
31350
|
value: visualizationType,
|
|
31275
31351
|
onChange: onVisualizationChange,
|
|
31276
31352
|
options: [{
|