@app-studio/web 0.9.26 → 0.9.27

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.
@@ -16,6 +16,10 @@ var appStudio = require('app-studio');
16
16
  require('core-js/modules/es.symbol.description.js');
17
17
  require('core-js/modules/es.parse-float.js');
18
18
  require('core-js/modules/es.string.trim-end.js');
19
+ require('core-js/modules/es.parse-int.js');
20
+ require('core-js/modules/es.regexp.exec.js');
21
+ require('core-js/modules/es.string.pad-start.js');
22
+ require('core-js/modules/es.string.replace.js');
19
23
  require('core-js/modules/es.array-buffer.constructor.js');
20
24
  require('core-js/modules/es.array-buffer.slice.js');
21
25
  require('core-js/modules/es.typed-array.uint8-array.js');
@@ -26,7 +30,6 @@ require('core-js/modules/es.typed-array.to-locale-string.js');
26
30
  require('core-js/modules/web.url.js');
27
31
  require('core-js/modules/web.url.to-json.js');
28
32
  require('core-js/modules/web.url-search-params.js');
29
- require('core-js/modules/es.parse-int.js');
30
33
  var reactRouterDom = require('react-router-dom');
31
34
  require('core-js/modules/es.string.ends-with.js');
32
35
  var contrast = _interopDefault(require('contrast'));
@@ -37,10 +40,9 @@ require('core-js/modules/es.string.starts-with.js');
37
40
  var format = _interopDefault(require('date-fns/format'));
38
41
  require('core-js/modules/es.string.trim.js');
39
42
  require('core-js/modules/es.regexp.constructor.js');
40
- require('core-js/modules/es.regexp.exec.js');
41
43
  var formik = require('formik');
42
- require('core-js/modules/es.string.replace.js');
43
44
  var zustand = require('zustand');
45
+ require('core-js/modules/es.promise.finally.js');
44
46
  require('core-js/modules/es.string.match.js');
45
47
  require('core-js/modules/es.string.search.js');
46
48
  require('core-js/modules/es.array.flat-map.js');
@@ -534,8 +536,31 @@ var FontWeights = {
534
536
  black: '900'
535
537
  };
536
538
 
539
+ var getTextColorHex = backgroundColor => {
540
+ // Simple luminance calculation to determine text color contrast
541
+ var color = backgroundColor.replace('#', '');
542
+ var r = parseInt(color.substring(0, 2), 16);
543
+ var g = parseInt(color.substring(2, 4), 16);
544
+ var b = parseInt(color.substring(4, 6), 16);
545
+ var luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
546
+ return luminance > 0.4 ? 'black' : 'white';
547
+ };
548
+ var getTextColor = backgroundColor => {
549
+ // Use complementary color for better contrast and return as hex
550
+ var color = backgroundColor.replace('#', '');
551
+ var r = parseInt(color.substring(0, 2), 16);
552
+ var g = parseInt(color.substring(2, 4), 16);
553
+ var b = parseInt(color.substring(4, 6), 16);
554
+ // Calculate the complementary color
555
+ var complementR = (255 - r).toString(16).padStart(2, '0');
556
+ var complementG = (255 - g).toString(16).padStart(2, '0');
557
+ var complementB = (255 - b).toString(16).padStart(2, '0');
558
+ // Return the color in hex format
559
+ return getTextColorHex("#" + complementR + complementG + complementB);
560
+ };
561
+
537
562
  var _excluded$2 = ["text", "maxLines", "views"],
538
- _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "views"];
563
+ _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "backgroundColor", "color", "views"];
539
564
  /**
540
565
  * Renders text content with support for subscript and superscript
541
566
  */
@@ -650,6 +675,8 @@ var TextView = _ref3 => {
650
675
  isStriked = false,
651
676
  weight = 'normal',
652
677
  size = 'md',
678
+ backgroundColor,
679
+ color,
653
680
  views
654
681
  } = _ref3,
655
682
  props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
@@ -663,6 +690,7 @@ var TextView = _ref3 => {
663
690
  var fontSize = FontSizes[size];
664
691
  var lineHeight = LineHeights[size];
665
692
  var fontWeight = FontWeights[weight];
693
+ var computedColor = color != null ? color : backgroundColor ? getTextColor(backgroundColor) : undefined;
666
694
  return /*#__PURE__*/React__default.createElement(appStudio.Element
667
695
  // Apply typography styles according to design guidelines
668
696
  , Object.assign({
@@ -672,7 +700,8 @@ var TextView = _ref3 => {
672
700
  fontStyle: isItalic ? 'italic' : 'normal',
673
701
  fontWeight: fontWeight,
674
702
  letterSpacing: "-0.01em",
675
- textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
703
+ textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none',
704
+ color: computedColor
676
705
  }, noLineBreak, headingStyles, props, views == null ? void 0 : views.container), maxLines && typeof children === 'string' ? (/*#__PURE__*/React__default.createElement(TruncateText, {
677
706
  text: children,
678
707
  maxLines: maxLines
@@ -4634,11 +4663,15 @@ var ButtonView = _ref => {
4634
4663
  return 50;
4635
4664
  })();
4636
4665
  var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
4666
+ // Determine background color from props or use mainTone
4667
+ var containerBg = mainTone;
4668
+ // Calculate text color with proper contrast
4669
+ var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
4637
4670
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
4638
4671
  width: numericWidth,
4639
4672
  height: numericHeight,
4640
4673
  position: "relative",
4641
- backgroundColor: "black",
4674
+ backgroundColor: containerBg,
4642
4675
  overflow: "hidden",
4643
4676
  borderRadius: ButtonShapes[shape],
4644
4677
  cursor: isDisabled ? 'default' : 'pointer',
@@ -4649,7 +4682,8 @@ var ButtonView = _ref => {
4649
4682
  style: {
4650
4683
  position: 'absolute',
4651
4684
  top: 0,
4652
- left: 0
4685
+ left: 0,
4686
+ zIndex: 1
4653
4687
  }
4654
4688
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
4655
4689
  id: "circleGradient",
@@ -4683,21 +4717,23 @@ var ButtonView = _ref => {
4683
4717
  path: path
4684
4718
  }))), /*#__PURE__*/React__default.createElement(appStudio.View, {
4685
4719
  position: "absolute",
4686
- backgroundColor: "black",
4720
+ backgroundColor: containerBg,
4687
4721
  borderRadius: Math.max(0, numericBorderRadius - 1),
4688
4722
  top: borderWidth,
4689
4723
  bottom: borderWidth,
4690
4724
  left: borderWidth,
4691
- right: borderWidth
4725
+ right: borderWidth,
4726
+ zIndex: 2
4692
4727
  }), /*#__PURE__*/React__default.createElement(appStudio.View, {
4728
+ position: "relative",
4693
4729
  width: "100%",
4694
4730
  height: "100%",
4695
- backgroundColor: "rgba(15, 23, 42, 0.2)",
4696
4731
  display: "flex",
4697
4732
  alignItems: "center",
4698
4733
  justifyContent: "center",
4699
- color: "white",
4734
+ color: borderMovingTextColor,
4700
4735
  fontSize: 14,
4736
+ zIndex: 3,
4701
4737
  style: {
4702
4738
  cursor: 'pointer'
4703
4739
  }
@@ -22886,6 +22922,147 @@ var SeparatorComponent = props => {
22886
22922
  var Separator = SeparatorComponent;
22887
22923
  var Divider = SeparatorComponent;
22888
22924
 
22925
+ var _excluded$18 = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
22926
+ var ICON_SIZE_MAP = {
22927
+ xs: 12,
22928
+ sm: 14,
22929
+ md: 16,
22930
+ lg: 18,
22931
+ xl: 20
22932
+ };
22933
+ var ShareButtonView = _ref => {
22934
+ var _ref2;
22935
+ var {
22936
+ isSupported,
22937
+ isSharing,
22938
+ onShare,
22939
+ label,
22940
+ children,
22941
+ icon,
22942
+ size,
22943
+ isDisabled,
22944
+ isLoading,
22945
+ iconPosition,
22946
+ disableWhenUnsupported = true
22947
+ } = _ref,
22948
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$18);
22949
+ var resolvedSize = size != null ? size : 'md';
22950
+ var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React__default.createElement(ShareIcon, {
22951
+ widthHeight: ICON_SIZE_MAP[resolvedSize],
22952
+ strokeWidth: 1.5,
22953
+ filled: false
22954
+ }));
22955
+ var shouldDisable = Boolean(isDisabled) || !isSupported && disableWhenUnsupported;
22956
+ var shouldShowLoader = Boolean(isLoading) || isSharing;
22957
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({}, rest, {
22958
+ size: resolvedSize,
22959
+ icon: resolvedIcon,
22960
+ iconPosition: iconPosition != null ? iconPosition : 'left',
22961
+ isDisabled: shouldDisable,
22962
+ isLoading: shouldShowLoader,
22963
+ onClick: onShare
22964
+ }), (_ref2 = children != null ? children : label) != null ? _ref2 : 'Share');
22965
+ };
22966
+
22967
+ var getNavigator = () => typeof navigator === 'undefined' ? undefined : navigator;
22968
+ var canShareData = (nav, data) => {
22969
+ if (!nav || typeof nav.share !== 'function') {
22970
+ return false;
22971
+ }
22972
+ if (typeof nav.canShare === 'function') {
22973
+ try {
22974
+ return nav.canShare(data);
22975
+ } catch (_unused) {
22976
+ return false;
22977
+ }
22978
+ }
22979
+ return true;
22980
+ };
22981
+ var getErrorName = error => {
22982
+ if (typeof error === 'object' && error !== null && 'name' in error) {
22983
+ return String(error.name);
22984
+ }
22985
+ return undefined;
22986
+ };
22987
+ var useShareButton = props => {
22988
+ var {
22989
+ shareData,
22990
+ onClick,
22991
+ onUnsupported,
22992
+ onShareStart,
22993
+ onShareSuccess,
22994
+ onShareCancel,
22995
+ onShareError
22996
+ } = props;
22997
+ var [isSharing, setIsSharing] = React__default.useState(false);
22998
+ var isSupported = React__default.useMemo(() => canShareData(getNavigator(), shareData), [shareData]);
22999
+ var handleShare = React__default.useCallback(function () {
23000
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
23001
+ args[_key] = arguments[_key];
23002
+ }
23003
+ onClick == null || onClick(...args);
23004
+ var nav = getNavigator();
23005
+ if (!nav || typeof nav.share !== 'function') {
23006
+ onUnsupported == null || onUnsupported();
23007
+ return;
23008
+ }
23009
+ if (isSharing) {
23010
+ return;
23011
+ }
23012
+ if (typeof nav.canShare === 'function') {
23013
+ try {
23014
+ if (!nav.canShare(shareData)) {
23015
+ onUnsupported == null || onUnsupported();
23016
+ return;
23017
+ }
23018
+ } catch (error) {
23019
+ onShareError == null || onShareError(error);
23020
+ return;
23021
+ }
23022
+ }
23023
+ setIsSharing(true);
23024
+ onShareStart == null || onShareStart();
23025
+ try {
23026
+ void nav.share(shareData).then(() => {
23027
+ onShareSuccess == null || onShareSuccess();
23028
+ }).catch(error => {
23029
+ var errorName = getErrorName(error);
23030
+ if (errorName === 'AbortError') {
23031
+ onShareCancel == null || onShareCancel();
23032
+ return;
23033
+ }
23034
+ onShareError == null || onShareError(error);
23035
+ }).finally(() => {
23036
+ setIsSharing(false);
23037
+ });
23038
+ } catch (error) {
23039
+ setIsSharing(false);
23040
+ onShareError == null || onShareError(error);
23041
+ }
23042
+ }, [isSharing, onClick, onShareCancel, onShareError, onShareStart, onShareSuccess, onUnsupported, shareData]);
23043
+ return {
23044
+ isSupported,
23045
+ isSharing,
23046
+ handleShare
23047
+ };
23048
+ };
23049
+
23050
+ var _excluded$19 = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
23051
+ var ShareButtonComponent = props => {
23052
+ var {
23053
+ isSupported,
23054
+ isSharing,
23055
+ handleShare
23056
+ } = useShareButton(props);
23057
+ var viewProps = _objectWithoutPropertiesLoose(props, _excluded$19);
23058
+ return /*#__PURE__*/React__default.createElement(ShareButtonView, Object.assign({}, viewProps, {
23059
+ isSupported: isSupported,
23060
+ isSharing: isSharing,
23061
+ onShare: handleShare
23062
+ }));
23063
+ };
23064
+ var ShareButton = ShareButtonComponent;
23065
+
22889
23066
  var getThemes$2 = themeMode => {
22890
23067
  return {
22891
23068
  default: {
@@ -22931,7 +23108,7 @@ var getThemes$2 = themeMode => {
22931
23108
  };
22932
23109
  };
22933
23110
 
22934
- var _excluded$18 = ["label", "status", "views", "themeMode"];
23111
+ var _excluded$1a = ["label", "status", "views", "themeMode"];
22935
23112
  var StatusIndicatorView = _ref => {
22936
23113
  var {
22937
23114
  label,
@@ -22939,7 +23116,7 @@ var StatusIndicatorView = _ref => {
22939
23116
  views,
22940
23117
  themeMode: elementMode
22941
23118
  } = _ref,
22942
- props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
23119
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
22943
23120
  var {
22944
23121
  themeMode
22945
23122
  } = appStudio.useTheme();
@@ -23132,7 +23309,7 @@ var SidebarTransitions = {
23132
23309
  bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
23133
23310
  };
23134
23311
 
23135
- var _excluded$19 = ["children", "showToggleButton", "views"],
23312
+ var _excluded$1b = ["children", "showToggleButton", "views"],
23136
23313
  _excluded2$g = ["children", "views"],
23137
23314
  _excluded3$a = ["children", "views"],
23138
23315
  _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
@@ -23165,7 +23342,7 @@ var SidebarHeader = _ref2 => {
23165
23342
  showToggleButton = true,
23166
23343
  views
23167
23344
  } = _ref2,
23168
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$19);
23345
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
23169
23346
  var {
23170
23347
  isExpanded,
23171
23348
  toggleExpanded,
@@ -23320,7 +23497,7 @@ var SidebarView = _ref5 => {
23320
23497
  }))));
23321
23498
  };
23322
23499
 
23323
- var _excluded$1a = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23500
+ var _excluded$1c = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23324
23501
  /**
23325
23502
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
23326
23503
  */
@@ -23342,7 +23519,7 @@ var SidebarComponent = _ref => {
23342
23519
  breakpointBehavior = 'overlay',
23343
23520
  views
23344
23521
  } = _ref,
23345
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
23522
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
23346
23523
  var {
23347
23524
  isExpanded,
23348
23525
  toggleExpanded,
@@ -23807,7 +23984,7 @@ var HandleIconStyles = {
23807
23984
  }
23808
23985
  };
23809
23986
 
23810
- var _excluded$1b = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23987
+ var _excluded$1d = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23811
23988
  _excluded2$h = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
23812
23989
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
23813
23990
  // Create context for the Resizable component
@@ -23852,7 +24029,7 @@ var ResizablePanel = _ref2 => {
23852
24029
  onCollapseChange,
23853
24030
  views
23854
24031
  } = _ref2,
23855
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
24032
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
23856
24033
  var {
23857
24034
  orientation,
23858
24035
  registerPanel,
@@ -24067,7 +24244,7 @@ var ResizableView = _ref4 => {
24067
24244
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
24068
24245
  };
24069
24246
 
24070
- var _excluded$1c = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24247
+ var _excluded$1e = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24071
24248
  /**
24072
24249
  * Resizable component for creating resizable panel groups and layouts.
24073
24250
  */
@@ -24087,7 +24264,7 @@ var ResizableComponent = _ref => {
24087
24264
  keyboardResizeBy = 10,
24088
24265
  views
24089
24266
  } = _ref,
24090
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
24267
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
24091
24268
  var {
24092
24269
  isResizing,
24093
24270
  setIsResizing,
@@ -24855,7 +25032,7 @@ var CommandFooterStyles = {
24855
25032
  color: 'color.gray.500'
24856
25033
  };
24857
25034
 
24858
- var _excluded$1d = ["value", "onValueChange", "placeholder", "views"],
25035
+ var _excluded$1f = ["value", "onValueChange", "placeholder", "views"],
24859
25036
  _excluded2$i = ["children", "views"],
24860
25037
  _excluded3$c = ["heading", "children", "views"],
24861
25038
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -24887,7 +25064,7 @@ var CommandInput = _ref2 => {
24887
25064
  placeholder = 'Type a command or search...',
24888
25065
  views
24889
25066
  } = _ref2,
24890
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
25067
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
24891
25068
  var inputRef = React.useRef(null);
24892
25069
  // Focus input when component mounts
24893
25070
  React__default.useEffect(() => {
@@ -25070,7 +25247,7 @@ var CommandView = _ref7 => {
25070
25247
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
25071
25248
  };
25072
25249
 
25073
- var _excluded$1e = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25250
+ var _excluded$1g = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25074
25251
  /**
25075
25252
  * Command component for displaying a command palette with search functionality.
25076
25253
  */
@@ -25088,7 +25265,7 @@ var CommandComponent = _ref => {
25088
25265
  footer,
25089
25266
  views
25090
25267
  } = _ref,
25091
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
25268
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25092
25269
  var {
25093
25270
  search,
25094
25271
  setSearch,
@@ -25316,7 +25493,7 @@ var getArrowStyles = position => {
25316
25493
  }
25317
25494
  };
25318
25495
 
25319
- var _excluded$1f = ["children", "views", "asChild"],
25496
+ var _excluded$1h = ["children", "views", "asChild"],
25320
25497
  _excluded2$j = ["children", "views"],
25321
25498
  _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
25322
25499
  // Create context for the Tooltip
@@ -25352,7 +25529,7 @@ var TooltipTrigger = _ref2 => {
25352
25529
  views,
25353
25530
  asChild = false
25354
25531
  } = _ref2,
25355
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
25532
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
25356
25533
  var {
25357
25534
  openTooltip,
25358
25535
  closeTooltip,
@@ -25536,7 +25713,7 @@ var TooltipView = _ref4 => {
25536
25713
  }, TooltipSizes[size], TooltipVariants[variant], views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
25537
25714
  };
25538
25715
 
25539
- var _excluded$1g = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25716
+ var _excluded$1i = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25540
25717
  /**
25541
25718
  * Tooltip component for displaying additional information when hovering over an element.
25542
25719
  * Supports configurable positions, delays, and styling.
@@ -25556,7 +25733,7 @@ var TooltipComponent = _ref => {
25556
25733
  isDisabled = false,
25557
25734
  views
25558
25735
  } = _ref,
25559
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25736
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
25560
25737
  var tooltipState = useTooltipState({
25561
25738
  defaultOpen,
25562
25739
  openDelay,
@@ -26029,7 +26206,7 @@ var TreeItemStates = {
26029
26206
  }
26030
26207
  };
26031
26208
 
26032
- var _excluded$1h = ["children", "views", "baseId"],
26209
+ var _excluded$1j = ["children", "views", "baseId"],
26033
26210
  _excluded2$k = ["value", "disabled", "icon", "children", "views", "style", "draggable"],
26034
26211
  _excluded3$e = ["children", "onClick", "onToggleExpand", "hasChildren", "expanded", "icon", "disabled", "isSelected", "isDragging", "size", "variant", "views"],
26035
26212
  _excluded4$b = ["children", "views"];
@@ -26065,7 +26242,7 @@ var TreeView = _ref2 => {
26065
26242
  baseId
26066
26243
  // themeMode, // If 'app-studio' ViewProps supports themeMode
26067
26244
  } = _ref2,
26068
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
26245
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
26069
26246
  var {
26070
26247
  allowDragAndDrop,
26071
26248
  handleDrop,
@@ -26345,7 +26522,7 @@ var DataDrivenTreeView = _ref7 => {
26345
26522
  }))));
26346
26523
  };
26347
26524
 
26348
- var _excluded$1i = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26525
+ var _excluded$1k = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26349
26526
  /**
26350
26527
  * Tree component for displaying hierarchical data.
26351
26528
  * Supports both compound component pattern (using Tree.Item, Tree.ItemLabel, Tree.ItemContent)
@@ -26414,7 +26591,7 @@ var TreeComponent = _ref => {
26414
26591
  views // Global views configuration
26415
26592
  // Remaining ViewProps for the root TreeView container
26416
26593
  } = _ref,
26417
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
26594
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
26418
26595
  var treeState = useTreeState({
26419
26596
  defaultExpandedItems,
26420
26597
  expandedItems,
@@ -26987,7 +27164,7 @@ var FlowNodeStates = {
26987
27164
  }
26988
27165
  };
26989
27166
 
26990
- var _excluded$1j = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
27167
+ var _excluded$1l = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
26991
27168
  _excluded2$l = ["onZoomIn", "onZoomOut", "onReset", "views"],
26992
27169
  _excluded3$f = ["onClick", "views"],
26993
27170
  _excluded4$c = ["nodes", "edges", "selectedNodeId", "draggedNodeId", "onNodeSelect", "onAddNode", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "views", "baseId", "viewport", "onZoomIn", "onZoomOut", "onReset", "onViewportChange"];
@@ -27003,7 +27180,7 @@ var FlowNodeView = _ref => {
27003
27180
  variant = 'default',
27004
27181
  views
27005
27182
  } = _ref,
27006
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
27183
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
27007
27184
  var handleClick = () => {
27008
27185
  if (onSelect) {
27009
27186
  onSelect(node.id);
@@ -27650,7 +27827,7 @@ var FlowView = _ref5 => {
27650
27827
  }, "Zoom: ", Math.round(viewport.zoom * 100), "%")));
27651
27828
  };
27652
27829
 
27653
- var _excluded$1k = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27830
+ var _excluded$1m = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27654
27831
  /**
27655
27832
  * Flow component for creating workflow diagrams.
27656
27833
  *
@@ -27707,7 +27884,7 @@ var FlowComponent = _ref => {
27707
27884
  onViewportChange,
27708
27885
  views
27709
27886
  } = _ref,
27710
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
27887
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
27711
27888
  var flowState = useFlowState({
27712
27889
  initialNodes: controlledNodes,
27713
27890
  initialEdges: controlledEdges,
@@ -28076,7 +28253,7 @@ var DefaultGradientStyles = {
28076
28253
  }
28077
28254
  };
28078
28255
 
28079
- var _excluded$1l = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28256
+ var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28080
28257
  var GradientView = _ref => {
28081
28258
  var {
28082
28259
  type = 'linear',
@@ -28092,7 +28269,7 @@ var GradientView = _ref => {
28092
28269
  views,
28093
28270
  themeMode: elementMode
28094
28271
  } = _ref,
28095
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
28272
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
28096
28273
  var {
28097
28274
  getColor,
28098
28275
  themeMode
@@ -28168,7 +28345,7 @@ var Gradient = props => {
28168
28345
  return /*#__PURE__*/React__default.createElement(GradientView, Object.assign({}, props));
28169
28346
  };
28170
28347
 
28171
- var _excluded$1m = ["children", "showRadialGradient", "views", "themeMode"],
28348
+ var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
28172
28349
  _excluded2$m = ["number", "children"],
28173
28350
  _excluded3$g = ["rows", "cols", "squareSize"],
28174
28351
  _excluded4$d = ["count", "colors", "speed", "shapes"],
@@ -28189,7 +28366,7 @@ var AuroraBackground = _ref => {
28189
28366
  showRadialGradient = true,
28190
28367
  views
28191
28368
  } = _ref,
28192
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
28369
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
28193
28370
  var gradientColors = {
28194
28371
  white: 'rgba(255,255,255,1)',
28195
28372
  transparent: 'rgba(255,255,255,0)'
@@ -29089,7 +29266,7 @@ var AgentRunProgress = _ref => {
29089
29266
  }, step.label))))));
29090
29267
  };
29091
29268
 
29092
- var _excluded$1n = ["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"];
29269
+ var _excluded$1p = ["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"];
29093
29270
  /**
29094
29271
  * AgentChat View Component
29095
29272
  *
@@ -29129,7 +29306,7 @@ var AgentChatView = _ref => {
29129
29306
  setError,
29130
29307
  setSelectedFiles
29131
29308
  } = _ref,
29132
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
29309
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
29133
29310
  /**
29134
29311
  * Auto-scroll to bottom when new messages arrive
29135
29312
  */
@@ -30270,7 +30447,7 @@ var SessionFilters = _ref => {
30270
30447
  }, "Clear all filters")))));
30271
30448
  };
30272
30449
 
30273
- var _excluded$1o = ["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"];
30450
+ var _excluded$1q = ["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"];
30274
30451
  /**
30275
30452
  * AgentSession View Component
30276
30453
  *
@@ -30318,7 +30495,7 @@ var AgentSessionView = _ref => {
30318
30495
  fileInputRef,
30319
30496
  handleFileSelect
30320
30497
  } = _ref,
30321
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
30498
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
30322
30499
  /**
30323
30500
  * Handle session creation
30324
30501
  */
@@ -32157,7 +32334,7 @@ var TraceVisualization = _ref => {
32157
32334
  }, renderVisualization())));
32158
32335
  };
32159
32336
 
32160
- var _excluded$1p = ["showTimeline", "showMetrics", "showVisualization", "enableFiltering", "enableExport", "enableSearch", "showEventDetails", "showPerformanceMetrics", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "events", "spans", "selectedEvent", "selectedSpan", "metrics", "isLoading", "error", "filter", "searchQuery", "currentVisualization", "fetchTraceEvents", "selectEvent", "selectSpan", "updateFilter", "exportTrace", "setSearchQuery", "setCurrentVisualization", "setError"];
32337
+ var _excluded$1r = ["showTimeline", "showMetrics", "showVisualization", "enableFiltering", "enableExport", "enableSearch", "showEventDetails", "showPerformanceMetrics", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "events", "spans", "selectedEvent", "selectedSpan", "metrics", "isLoading", "error", "filter", "searchQuery", "currentVisualization", "fetchTraceEvents", "selectEvent", "selectSpan", "updateFilter", "exportTrace", "setSearchQuery", "setCurrentVisualization", "setError"];
32161
32338
  /**
32162
32339
  * AgentTrace View Component
32163
32340
  *
@@ -32198,7 +32375,7 @@ var AgentTraceView = _ref => {
32198
32375
  setCurrentVisualization,
32199
32376
  setError
32200
32377
  } = _ref,
32201
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
32378
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
32202
32379
  /**
32203
32380
  * Handle event selection
32204
32381
  */
@@ -33887,7 +34064,7 @@ var EvaluationMetrics = _ref => {
33887
34064
  }, "Run some evaluations to see performance metrics")))));
33888
34065
  };
33889
34066
 
33890
- var _excluded$1q = ["enableBatchEvaluation", "enableMetricsComparison", "enableResultExport", "enableTemplates", "showEvaluationHistory", "showMetricsPanel", "showTestCaseDetails", "showProgressIndicators", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "evaluations", "selectedEvaluation", "selectedResult", "isLoading", "isCreating", "error", "searchQuery", "templates", "runningEvaluationsCount", "canStartNewEvaluation", "fetchEvaluations", "createEvaluation", "startEvaluation", "cancelEvaluation", "deleteEvaluation", "selectEvaluation", "selectResult", "exportEvaluations", "setSearchQuery", "setError"];
34067
+ var _excluded$1s = ["enableBatchEvaluation", "enableMetricsComparison", "enableResultExport", "enableTemplates", "showEvaluationHistory", "showMetricsPanel", "showTestCaseDetails", "showProgressIndicators", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "evaluations", "selectedEvaluation", "selectedResult", "isLoading", "isCreating", "error", "searchQuery", "templates", "runningEvaluationsCount", "canStartNewEvaluation", "fetchEvaluations", "createEvaluation", "startEvaluation", "cancelEvaluation", "deleteEvaluation", "selectEvaluation", "selectResult", "exportEvaluations", "setSearchQuery", "setError"];
33891
34068
  /**
33892
34069
  * AgentEval View Component
33893
34070
  *
@@ -33930,7 +34107,7 @@ var AgentEvalView = _ref => {
33930
34107
  setSearchQuery,
33931
34108
  setError
33932
34109
  } = _ref,
33933
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
34110
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
33934
34111
  var [activeTab, setActiveTab] = React__default.useState('evaluations');
33935
34112
  /**
33936
34113
  * Handle evaluation creation
@@ -34723,6 +34900,7 @@ exports.SendIcon = SendIcon;
34723
34900
  exports.Separator = Separator;
34724
34901
  exports.SettingsIcon = SettingsIcon;
34725
34902
  exports.ShapeIcon = ShapeIcon;
34903
+ exports.ShareButton = ShareButton;
34726
34904
  exports.ShareIcon = ShareIcon;
34727
34905
  exports.ShieldIcon = ShieldIcon;
34728
34906
  exports.Sidebar = Sidebar;