@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/web.esm.js CHANGED
@@ -32,7 +32,6 @@ import 'core-js/modules/es.string.search.js';
32
32
  import 'core-js/modules/es.array.flat-map.js';
33
33
  import 'core-js/modules/es.array.unscopables.flat-map.js';
34
34
  import 'core-js/modules/es.array.sort.js';
35
- import { Select as Select$1 } from 'src/components';
36
35
 
37
36
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
38
37
  try {
@@ -28414,7 +28413,7 @@ var MessageAttachmentPreview = _ref => {
28414
28413
  }, formatFileSize(file.size)))));
28415
28414
  };
28416
28415
 
28417
- 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"];
28416
+ 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"];
28418
28417
  /**
28419
28418
  * AgentChat View Component
28420
28419
  *
@@ -28432,6 +28431,10 @@ var AgentChatView = _ref => {
28432
28431
  enableAudioRecording = false,
28433
28432
  enableVideoRecording = false,
28434
28433
  views,
28434
+ containerProps,
28435
+ colorScheme = 'blue',
28436
+ compact = false,
28437
+ rounded = true,
28435
28438
  ariaLabel = 'Agent Chat',
28436
28439
  ariaDescribedBy,
28437
28440
  // State from hook
@@ -28465,7 +28468,7 @@ var AgentChatView = _ref => {
28465
28468
  * Handle message send from ChatInput
28466
28469
  */
28467
28470
  var handleSubmit = /*#__PURE__*/function () {
28468
- var _ref2 = _asyncToGenerator(function* (message, options) {
28471
+ var _ref2 = _asyncToGenerator(function* (message, _options) {
28469
28472
  if (message.trim() || selectedFiles.length > 0) {
28470
28473
  yield sendMessage(message, selectedFiles);
28471
28474
  }
@@ -28487,7 +28490,37 @@ var AgentChatView = _ref => {
28487
28490
  selectedFiles.forEach(file => URL.revokeObjectURL(file.url));
28488
28491
  setSelectedFiles([]);
28489
28492
  };
28490
- return /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentChatStyles.container, views == null ? void 0 : views.container, props, {
28493
+ /**
28494
+ * Get dynamic styles based on theme props
28495
+ */
28496
+ var getThemeStyles = () => {
28497
+ var baseStyles = {
28498
+ borderRadius: rounded ? '12px' : '4px',
28499
+ padding: compact ? '8px' : '16px'
28500
+ };
28501
+ var colorStyles = {
28502
+ blue: {
28503
+ borderColor: 'color.blue.200'
28504
+ },
28505
+ purple: {
28506
+ borderColor: 'color.purple.200'
28507
+ },
28508
+ green: {
28509
+ borderColor: 'color.green.200'
28510
+ },
28511
+ orange: {
28512
+ borderColor: 'color.orange.200'
28513
+ },
28514
+ red: {
28515
+ borderColor: 'color.red.200'
28516
+ },
28517
+ gray: {
28518
+ borderColor: 'color.gray.200'
28519
+ }
28520
+ };
28521
+ return Object.assign({}, baseStyles, colorStyles[colorScheme]);
28522
+ };
28523
+ return /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentChatStyles.container, getThemeStyles(), containerProps, views == null ? void 0 : views.container, props, {
28491
28524
  "aria-label": ariaLabel,
28492
28525
  "aria-describedby": ariaDescribedBy
28493
28526
  }), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentChatStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React.createElement(Horizontal, {
@@ -29473,7 +29506,7 @@ var SessionFilters = _ref => {
29473
29506
  }, "Clear all filters")))));
29474
29507
  };
29475
29508
 
29476
- 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"];
29509
+ 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"];
29477
29510
  /**
29478
29511
  * AgentSession View Component
29479
29512
  *
@@ -29493,6 +29526,10 @@ var AgentSessionView = _ref => {
29493
29526
  showRefreshButton = true,
29494
29527
  compactMode = false,
29495
29528
  views,
29529
+ containerProps,
29530
+ colorScheme = 'blue',
29531
+ layout = 'list',
29532
+ showPreviews = true,
29496
29533
  ariaLabel = 'Agent Session Manager',
29497
29534
  ariaDescribedBy,
29498
29535
  // State from hook
@@ -29576,7 +29613,45 @@ var AgentSessionView = _ref => {
29576
29613
  minute: '2-digit'
29577
29614
  });
29578
29615
  };
29579
- return /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.container, views == null ? void 0 : views.container, props, {
29616
+ /**
29617
+ * Get dynamic styles based on theme props
29618
+ */
29619
+ var getThemeStyles = () => {
29620
+ var colorStyles = {
29621
+ blue: {
29622
+ borderColor: 'color.blue.200'
29623
+ },
29624
+ purple: {
29625
+ borderColor: 'color.purple.200'
29626
+ },
29627
+ green: {
29628
+ borderColor: 'color.green.200'
29629
+ },
29630
+ orange: {
29631
+ borderColor: 'color.orange.200'
29632
+ },
29633
+ red: {
29634
+ borderColor: 'color.red.200'
29635
+ },
29636
+ gray: {
29637
+ borderColor: 'color.gray.200'
29638
+ }
29639
+ };
29640
+ var layoutStyles = {
29641
+ list: {
29642
+ flexDirection: 'column'
29643
+ },
29644
+ grid: {
29645
+ flexDirection: 'row',
29646
+ flexWrap: 'wrap'
29647
+ },
29648
+ compact: {
29649
+ padding: '8px'
29650
+ }
29651
+ };
29652
+ return Object.assign({}, colorStyles[colorScheme], layoutStyles[layout]);
29653
+ };
29654
+ return /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.container, getThemeStyles(), containerProps, views == null ? void 0 : views.container, props, {
29580
29655
  "aria-label": ariaLabel,
29581
29656
  "aria-describedby": ariaDescribedBy
29582
29657
  }), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React.createElement(Horizontal, {
@@ -31296,7 +31371,7 @@ var TraceVisualization = _ref => {
31296
31371
  fontSize: "sm",
31297
31372
  fontWeight: "600",
31298
31373
  color: "color.gray.700"
31299
- }, "Visualization Type"), /*#__PURE__*/React.createElement(Select$1, {
31374
+ }, "Visualization Type"), /*#__PURE__*/React.createElement(Select, {
31300
31375
  value: visualizationType,
31301
31376
  onChange: onVisualizationChange,
31302
31377
  options: [{