@app-studio/web 0.9.25 → 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
  }
@@ -18863,13 +18899,7 @@ var DropdownMenuContent = _ref3 => {
18863
18899
  item: item,
18864
18900
  views: views
18865
18901
  });
18866
- }), (/*#__PURE__*/React__default.createElement("div", {
18867
- style: {
18868
- fontSize: '10px',
18869
- opacity: 0.7,
18870
- padding: '4px'
18871
- }
18872
- }, "Placement: ", optimalPosition.placement, relation && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("br", null), "Space: ", relation.space.vertical, "-", relation.space.horizontal)))));
18902
+ }));
18873
18903
  };
18874
18904
  // DropdownMenu Item component
18875
18905
  var DropdownMenuItem = _ref4 => {
@@ -22892,6 +22922,147 @@ var SeparatorComponent = props => {
22892
22922
  var Separator = SeparatorComponent;
22893
22923
  var Divider = SeparatorComponent;
22894
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
+
22895
23066
  var getThemes$2 = themeMode => {
22896
23067
  return {
22897
23068
  default: {
@@ -22937,7 +23108,7 @@ var getThemes$2 = themeMode => {
22937
23108
  };
22938
23109
  };
22939
23110
 
22940
- var _excluded$18 = ["label", "status", "views", "themeMode"];
23111
+ var _excluded$1a = ["label", "status", "views", "themeMode"];
22941
23112
  var StatusIndicatorView = _ref => {
22942
23113
  var {
22943
23114
  label,
@@ -22945,7 +23116,7 @@ var StatusIndicatorView = _ref => {
22945
23116
  views,
22946
23117
  themeMode: elementMode
22947
23118
  } = _ref,
22948
- props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
23119
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
22949
23120
  var {
22950
23121
  themeMode
22951
23122
  } = appStudio.useTheme();
@@ -23138,7 +23309,7 @@ var SidebarTransitions = {
23138
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)'
23139
23310
  };
23140
23311
 
23141
- var _excluded$19 = ["children", "showToggleButton", "views"],
23312
+ var _excluded$1b = ["children", "showToggleButton", "views"],
23142
23313
  _excluded2$g = ["children", "views"],
23143
23314
  _excluded3$a = ["children", "views"],
23144
23315
  _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
@@ -23171,7 +23342,7 @@ var SidebarHeader = _ref2 => {
23171
23342
  showToggleButton = true,
23172
23343
  views
23173
23344
  } = _ref2,
23174
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$19);
23345
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
23175
23346
  var {
23176
23347
  isExpanded,
23177
23348
  toggleExpanded,
@@ -23326,7 +23497,7 @@ var SidebarView = _ref5 => {
23326
23497
  }))));
23327
23498
  };
23328
23499
 
23329
- 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"];
23330
23501
  /**
23331
23502
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
23332
23503
  */
@@ -23348,7 +23519,7 @@ var SidebarComponent = _ref => {
23348
23519
  breakpointBehavior = 'overlay',
23349
23520
  views
23350
23521
  } = _ref,
23351
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
23522
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
23352
23523
  var {
23353
23524
  isExpanded,
23354
23525
  toggleExpanded,
@@ -23813,7 +23984,7 @@ var HandleIconStyles = {
23813
23984
  }
23814
23985
  };
23815
23986
 
23816
- 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"],
23817
23988
  _excluded2$h = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
23818
23989
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
23819
23990
  // Create context for the Resizable component
@@ -23858,7 +24029,7 @@ var ResizablePanel = _ref2 => {
23858
24029
  onCollapseChange,
23859
24030
  views
23860
24031
  } = _ref2,
23861
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
24032
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
23862
24033
  var {
23863
24034
  orientation,
23864
24035
  registerPanel,
@@ -24073,7 +24244,7 @@ var ResizableView = _ref4 => {
24073
24244
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
24074
24245
  };
24075
24246
 
24076
- 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"];
24077
24248
  /**
24078
24249
  * Resizable component for creating resizable panel groups and layouts.
24079
24250
  */
@@ -24093,7 +24264,7 @@ var ResizableComponent = _ref => {
24093
24264
  keyboardResizeBy = 10,
24094
24265
  views
24095
24266
  } = _ref,
24096
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
24267
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
24097
24268
  var {
24098
24269
  isResizing,
24099
24270
  setIsResizing,
@@ -24861,7 +25032,7 @@ var CommandFooterStyles = {
24861
25032
  color: 'color.gray.500'
24862
25033
  };
24863
25034
 
24864
- var _excluded$1d = ["value", "onValueChange", "placeholder", "views"],
25035
+ var _excluded$1f = ["value", "onValueChange", "placeholder", "views"],
24865
25036
  _excluded2$i = ["children", "views"],
24866
25037
  _excluded3$c = ["heading", "children", "views"],
24867
25038
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -24893,7 +25064,7 @@ var CommandInput = _ref2 => {
24893
25064
  placeholder = 'Type a command or search...',
24894
25065
  views
24895
25066
  } = _ref2,
24896
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
25067
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
24897
25068
  var inputRef = React.useRef(null);
24898
25069
  // Focus input when component mounts
24899
25070
  React__default.useEffect(() => {
@@ -25076,7 +25247,7 @@ var CommandView = _ref7 => {
25076
25247
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
25077
25248
  };
25078
25249
 
25079
- 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"];
25080
25251
  /**
25081
25252
  * Command component for displaying a command palette with search functionality.
25082
25253
  */
@@ -25094,7 +25265,7 @@ var CommandComponent = _ref => {
25094
25265
  footer,
25095
25266
  views
25096
25267
  } = _ref,
25097
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
25268
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25098
25269
  var {
25099
25270
  search,
25100
25271
  setSearch,
@@ -25322,7 +25493,7 @@ var getArrowStyles = position => {
25322
25493
  }
25323
25494
  };
25324
25495
 
25325
- var _excluded$1f = ["children", "views", "asChild"],
25496
+ var _excluded$1h = ["children", "views", "asChild"],
25326
25497
  _excluded2$j = ["children", "views"],
25327
25498
  _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
25328
25499
  // Create context for the Tooltip
@@ -25358,7 +25529,7 @@ var TooltipTrigger = _ref2 => {
25358
25529
  views,
25359
25530
  asChild = false
25360
25531
  } = _ref2,
25361
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
25532
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
25362
25533
  var {
25363
25534
  openTooltip,
25364
25535
  closeTooltip,
@@ -25539,16 +25710,10 @@ var TooltipView = _ref4 => {
25539
25710
  borderRadius: 4,
25540
25711
  boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
25541
25712
  style: positionStyles
25542
- }, 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)), (/*#__PURE__*/React__default.createElement("div", {
25543
- style: {
25544
- fontSize: '8px',
25545
- opacity: 0.7,
25546
- marginTop: '2px'
25547
- }
25548
- }, "Placement: ", optimalPosition.placement, relation && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("br", null), "Space: ", relation.space.vertical, "-", relation.space.horizontal)))))));
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)))));
25549
25714
  };
25550
25715
 
25551
- 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"];
25552
25717
  /**
25553
25718
  * Tooltip component for displaying additional information when hovering over an element.
25554
25719
  * Supports configurable positions, delays, and styling.
@@ -25568,7 +25733,7 @@ var TooltipComponent = _ref => {
25568
25733
  isDisabled = false,
25569
25734
  views
25570
25735
  } = _ref,
25571
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25736
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
25572
25737
  var tooltipState = useTooltipState({
25573
25738
  defaultOpen,
25574
25739
  openDelay,
@@ -26041,7 +26206,7 @@ var TreeItemStates = {
26041
26206
  }
26042
26207
  };
26043
26208
 
26044
- var _excluded$1h = ["children", "views", "baseId"],
26209
+ var _excluded$1j = ["children", "views", "baseId"],
26045
26210
  _excluded2$k = ["value", "disabled", "icon", "children", "views", "style", "draggable"],
26046
26211
  _excluded3$e = ["children", "onClick", "onToggleExpand", "hasChildren", "expanded", "icon", "disabled", "isSelected", "isDragging", "size", "variant", "views"],
26047
26212
  _excluded4$b = ["children", "views"];
@@ -26077,7 +26242,7 @@ var TreeView = _ref2 => {
26077
26242
  baseId
26078
26243
  // themeMode, // If 'app-studio' ViewProps supports themeMode
26079
26244
  } = _ref2,
26080
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
26245
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
26081
26246
  var {
26082
26247
  allowDragAndDrop,
26083
26248
  handleDrop,
@@ -26357,7 +26522,7 @@ var DataDrivenTreeView = _ref7 => {
26357
26522
  }))));
26358
26523
  };
26359
26524
 
26360
- 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"];
26361
26526
  /**
26362
26527
  * Tree component for displaying hierarchical data.
26363
26528
  * Supports both compound component pattern (using Tree.Item, Tree.ItemLabel, Tree.ItemContent)
@@ -26426,7 +26591,7 @@ var TreeComponent = _ref => {
26426
26591
  views // Global views configuration
26427
26592
  // Remaining ViewProps for the root TreeView container
26428
26593
  } = _ref,
26429
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
26594
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
26430
26595
  var treeState = useTreeState({
26431
26596
  defaultExpandedItems,
26432
26597
  expandedItems,
@@ -26999,7 +27164,7 @@ var FlowNodeStates = {
26999
27164
  }
27000
27165
  };
27001
27166
 
27002
- 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"],
27003
27168
  _excluded2$l = ["onZoomIn", "onZoomOut", "onReset", "views"],
27004
27169
  _excluded3$f = ["onClick", "views"],
27005
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"];
@@ -27015,7 +27180,7 @@ var FlowNodeView = _ref => {
27015
27180
  variant = 'default',
27016
27181
  views
27017
27182
  } = _ref,
27018
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
27183
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
27019
27184
  var handleClick = () => {
27020
27185
  if (onSelect) {
27021
27186
  onSelect(node.id);
@@ -27662,7 +27827,7 @@ var FlowView = _ref5 => {
27662
27827
  }, "Zoom: ", Math.round(viewport.zoom * 100), "%")));
27663
27828
  };
27664
27829
 
27665
- 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"];
27666
27831
  /**
27667
27832
  * Flow component for creating workflow diagrams.
27668
27833
  *
@@ -27719,7 +27884,7 @@ var FlowComponent = _ref => {
27719
27884
  onViewportChange,
27720
27885
  views
27721
27886
  } = _ref,
27722
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
27887
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
27723
27888
  var flowState = useFlowState({
27724
27889
  initialNodes: controlledNodes,
27725
27890
  initialEdges: controlledEdges,
@@ -28088,7 +28253,7 @@ var DefaultGradientStyles = {
28088
28253
  }
28089
28254
  };
28090
28255
 
28091
- 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"];
28092
28257
  var GradientView = _ref => {
28093
28258
  var {
28094
28259
  type = 'linear',
@@ -28104,7 +28269,7 @@ var GradientView = _ref => {
28104
28269
  views,
28105
28270
  themeMode: elementMode
28106
28271
  } = _ref,
28107
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
28272
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
28108
28273
  var {
28109
28274
  getColor,
28110
28275
  themeMode
@@ -28180,7 +28345,7 @@ var Gradient = props => {
28180
28345
  return /*#__PURE__*/React__default.createElement(GradientView, Object.assign({}, props));
28181
28346
  };
28182
28347
 
28183
- var _excluded$1m = ["children", "showRadialGradient", "views", "themeMode"],
28348
+ var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
28184
28349
  _excluded2$m = ["number", "children"],
28185
28350
  _excluded3$g = ["rows", "cols", "squareSize"],
28186
28351
  _excluded4$d = ["count", "colors", "speed", "shapes"],
@@ -28201,7 +28366,7 @@ var AuroraBackground = _ref => {
28201
28366
  showRadialGradient = true,
28202
28367
  views
28203
28368
  } = _ref,
28204
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
28369
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
28205
28370
  var gradientColors = {
28206
28371
  white: 'rgba(255,255,255,1)',
28207
28372
  transparent: 'rgba(255,255,255,0)'
@@ -29101,7 +29266,7 @@ var AgentRunProgress = _ref => {
29101
29266
  }, step.label))))));
29102
29267
  };
29103
29268
 
29104
- 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"];
29105
29270
  /**
29106
29271
  * AgentChat View Component
29107
29272
  *
@@ -29141,7 +29306,7 @@ var AgentChatView = _ref => {
29141
29306
  setError,
29142
29307
  setSelectedFiles
29143
29308
  } = _ref,
29144
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
29309
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
29145
29310
  /**
29146
29311
  * Auto-scroll to bottom when new messages arrive
29147
29312
  */
@@ -30282,7 +30447,7 @@ var SessionFilters = _ref => {
30282
30447
  }, "Clear all filters")))));
30283
30448
  };
30284
30449
 
30285
- 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"];
30286
30451
  /**
30287
30452
  * AgentSession View Component
30288
30453
  *
@@ -30330,7 +30495,7 @@ var AgentSessionView = _ref => {
30330
30495
  fileInputRef,
30331
30496
  handleFileSelect
30332
30497
  } = _ref,
30333
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
30498
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
30334
30499
  /**
30335
30500
  * Handle session creation
30336
30501
  */
@@ -32169,7 +32334,7 @@ var TraceVisualization = _ref => {
32169
32334
  }, renderVisualization())));
32170
32335
  };
32171
32336
 
32172
- 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"];
32173
32338
  /**
32174
32339
  * AgentTrace View Component
32175
32340
  *
@@ -32210,7 +32375,7 @@ var AgentTraceView = _ref => {
32210
32375
  setCurrentVisualization,
32211
32376
  setError
32212
32377
  } = _ref,
32213
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
32378
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
32214
32379
  /**
32215
32380
  * Handle event selection
32216
32381
  */
@@ -33899,7 +34064,7 @@ var EvaluationMetrics = _ref => {
33899
34064
  }, "Run some evaluations to see performance metrics")))));
33900
34065
  };
33901
34066
 
33902
- 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"];
33903
34068
  /**
33904
34069
  * AgentEval View Component
33905
34070
  *
@@ -33942,7 +34107,7 @@ var AgentEvalView = _ref => {
33942
34107
  setSearchQuery,
33943
34108
  setError
33944
34109
  } = _ref,
33945
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
34110
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
33946
34111
  var [activeTab, setActiveTab] = React__default.useState('evaluations');
33947
34112
  /**
33948
34113
  * Handle evaluation creation
@@ -34735,6 +34900,7 @@ exports.SendIcon = SendIcon;
34735
34900
  exports.Separator = Separator;
34736
34901
  exports.SettingsIcon = SettingsIcon;
34737
34902
  exports.ShapeIcon = ShapeIcon;
34903
+ exports.ShareButton = ShareButton;
34738
34904
  exports.ShareIcon = ShareIcon;
34739
34905
  exports.ShieldIcon = ShieldIcon;
34740
34906
  exports.Sidebar = Sidebar;