@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/web.esm.js CHANGED
@@ -28413,7 +28413,7 @@ var MessageAttachmentPreview = _ref => {
28413
28413
  }, formatFileSize(file.size)))));
28414
28414
  };
28415
28415
 
28416
- 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"];
28417
28417
  /**
28418
28418
  * AgentChat View Component
28419
28419
  *
@@ -28431,6 +28431,10 @@ var AgentChatView = _ref => {
28431
28431
  enableAudioRecording = false,
28432
28432
  enableVideoRecording = false,
28433
28433
  views,
28434
+ containerProps,
28435
+ colorScheme = 'blue',
28436
+ compact = false,
28437
+ rounded = true,
28434
28438
  ariaLabel = 'Agent Chat',
28435
28439
  ariaDescribedBy,
28436
28440
  // State from hook
@@ -28464,7 +28468,7 @@ var AgentChatView = _ref => {
28464
28468
  * Handle message send from ChatInput
28465
28469
  */
28466
28470
  var handleSubmit = /*#__PURE__*/function () {
28467
- var _ref2 = _asyncToGenerator(function* (message, options) {
28471
+ var _ref2 = _asyncToGenerator(function* (message, _options) {
28468
28472
  if (message.trim() || selectedFiles.length > 0) {
28469
28473
  yield sendMessage(message, selectedFiles);
28470
28474
  }
@@ -28486,7 +28490,37 @@ var AgentChatView = _ref => {
28486
28490
  selectedFiles.forEach(file => URL.revokeObjectURL(file.url));
28487
28491
  setSelectedFiles([]);
28488
28492
  };
28489
- 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, {
28490
28524
  "aria-label": ariaLabel,
28491
28525
  "aria-describedby": ariaDescribedBy
28492
28526
  }), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentChatStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React.createElement(Horizontal, {
@@ -29472,7 +29506,7 @@ var SessionFilters = _ref => {
29472
29506
  }, "Clear all filters")))));
29473
29507
  };
29474
29508
 
29475
- 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"];
29476
29510
  /**
29477
29511
  * AgentSession View Component
29478
29512
  *
@@ -29492,6 +29526,10 @@ var AgentSessionView = _ref => {
29492
29526
  showRefreshButton = true,
29493
29527
  compactMode = false,
29494
29528
  views,
29529
+ containerProps,
29530
+ colorScheme = 'blue',
29531
+ layout = 'list',
29532
+ showPreviews = true,
29495
29533
  ariaLabel = 'Agent Session Manager',
29496
29534
  ariaDescribedBy,
29497
29535
  // State from hook
@@ -29575,7 +29613,45 @@ var AgentSessionView = _ref => {
29575
29613
  minute: '2-digit'
29576
29614
  });
29577
29615
  };
29578
- 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, {
29579
29655
  "aria-label": ariaLabel,
29580
29656
  "aria-describedby": ariaDescribedBy
29581
29657
  }), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.header, views == null ? void 0 : views.header), /*#__PURE__*/React.createElement(Horizontal, {