@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.
package/dist/web.esm.js CHANGED
@@ -9,6 +9,10 @@ import { View, Horizontal, Vertical, Element, Text as Text$1, Center, useTheme,
9
9
  import 'core-js/modules/es.symbol.description.js';
10
10
  import 'core-js/modules/es.parse-float.js';
11
11
  import 'core-js/modules/es.string.trim-end.js';
12
+ import 'core-js/modules/es.parse-int.js';
13
+ import 'core-js/modules/es.regexp.exec.js';
14
+ import 'core-js/modules/es.string.pad-start.js';
15
+ import 'core-js/modules/es.string.replace.js';
12
16
  import 'core-js/modules/es.array-buffer.constructor.js';
13
17
  import 'core-js/modules/es.array-buffer.slice.js';
14
18
  import 'core-js/modules/es.typed-array.uint8-array.js';
@@ -19,7 +23,6 @@ import 'core-js/modules/es.typed-array.to-locale-string.js';
19
23
  import 'core-js/modules/web.url.js';
20
24
  import 'core-js/modules/web.url.to-json.js';
21
25
  import 'core-js/modules/web.url-search-params.js';
22
- import 'core-js/modules/es.parse-int.js';
23
26
  import { Link as Link$1 } from 'react-router-dom';
24
27
  import 'core-js/modules/es.string.ends-with.js';
25
28
  import contrast from 'contrast';
@@ -30,10 +33,9 @@ import 'core-js/modules/es.string.starts-with.js';
30
33
  import format from 'date-fns/format';
31
34
  import 'core-js/modules/es.string.trim.js';
32
35
  import 'core-js/modules/es.regexp.constructor.js';
33
- import 'core-js/modules/es.regexp.exec.js';
34
36
  import { useFormikContext, getIn } from 'formik';
35
- import 'core-js/modules/es.string.replace.js';
36
37
  import { create } from 'zustand';
38
+ import 'core-js/modules/es.promise.finally.js';
37
39
  import 'core-js/modules/es.string.match.js';
38
40
  import 'core-js/modules/es.string.search.js';
39
41
  import 'core-js/modules/es.array.flat-map.js';
@@ -527,8 +529,31 @@ var FontWeights = {
527
529
  black: '900'
528
530
  };
529
531
 
532
+ var getTextColorHex = backgroundColor => {
533
+ // Simple luminance calculation to determine text color contrast
534
+ var color = backgroundColor.replace('#', '');
535
+ var r = parseInt(color.substring(0, 2), 16);
536
+ var g = parseInt(color.substring(2, 4), 16);
537
+ var b = parseInt(color.substring(4, 6), 16);
538
+ var luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
539
+ return luminance > 0.4 ? 'black' : 'white';
540
+ };
541
+ var getTextColor = backgroundColor => {
542
+ // Use complementary color for better contrast and return as hex
543
+ var color = backgroundColor.replace('#', '');
544
+ var r = parseInt(color.substring(0, 2), 16);
545
+ var g = parseInt(color.substring(2, 4), 16);
546
+ var b = parseInt(color.substring(4, 6), 16);
547
+ // Calculate the complementary color
548
+ var complementR = (255 - r).toString(16).padStart(2, '0');
549
+ var complementG = (255 - g).toString(16).padStart(2, '0');
550
+ var complementB = (255 - b).toString(16).padStart(2, '0');
551
+ // Return the color in hex format
552
+ return getTextColorHex("#" + complementR + complementG + complementB);
553
+ };
554
+
530
555
  var _excluded$2 = ["text", "maxLines", "views"],
531
- _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "views"];
556
+ _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "backgroundColor", "color", "views"];
532
557
  /**
533
558
  * Renders text content with support for subscript and superscript
534
559
  */
@@ -643,6 +668,8 @@ var TextView = _ref3 => {
643
668
  isStriked = false,
644
669
  weight = 'normal',
645
670
  size = 'md',
671
+ backgroundColor,
672
+ color,
646
673
  views
647
674
  } = _ref3,
648
675
  props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
@@ -656,6 +683,7 @@ var TextView = _ref3 => {
656
683
  var fontSize = FontSizes[size];
657
684
  var lineHeight = LineHeights[size];
658
685
  var fontWeight = FontWeights[weight];
686
+ var computedColor = color != null ? color : backgroundColor ? getTextColor(backgroundColor) : undefined;
659
687
  return /*#__PURE__*/React.createElement(Element
660
688
  // Apply typography styles according to design guidelines
661
689
  , Object.assign({
@@ -665,7 +693,8 @@ var TextView = _ref3 => {
665
693
  fontStyle: isItalic ? 'italic' : 'normal',
666
694
  fontWeight: fontWeight,
667
695
  letterSpacing: "-0.01em",
668
- textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
696
+ textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none',
697
+ color: computedColor
669
698
  }, noLineBreak, headingStyles, props, views == null ? void 0 : views.container), maxLines && typeof children === 'string' ? (/*#__PURE__*/React.createElement(TruncateText, {
670
699
  text: children,
671
700
  maxLines: maxLines
@@ -4627,11 +4656,15 @@ var ButtonView = _ref => {
4627
4656
  return 50;
4628
4657
  })();
4629
4658
  var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
4659
+ // Determine background color from props or use mainTone
4660
+ var containerBg = mainTone;
4661
+ // Calculate text color with proper contrast
4662
+ var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
4630
4663
  return /*#__PURE__*/React.createElement(View, Object.assign({
4631
4664
  width: numericWidth,
4632
4665
  height: numericHeight,
4633
4666
  position: "relative",
4634
- backgroundColor: "black",
4667
+ backgroundColor: containerBg,
4635
4668
  overflow: "hidden",
4636
4669
  borderRadius: ButtonShapes[shape],
4637
4670
  cursor: isDisabled ? 'default' : 'pointer',
@@ -4642,7 +4675,8 @@ var ButtonView = _ref => {
4642
4675
  style: {
4643
4676
  position: 'absolute',
4644
4677
  top: 0,
4645
- left: 0
4678
+ left: 0,
4679
+ zIndex: 1
4646
4680
  }
4647
4681
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
4648
4682
  id: "circleGradient",
@@ -4676,21 +4710,23 @@ var ButtonView = _ref => {
4676
4710
  path: path
4677
4711
  }))), /*#__PURE__*/React.createElement(View, {
4678
4712
  position: "absolute",
4679
- backgroundColor: "black",
4713
+ backgroundColor: containerBg,
4680
4714
  borderRadius: Math.max(0, numericBorderRadius - 1),
4681
4715
  top: borderWidth,
4682
4716
  bottom: borderWidth,
4683
4717
  left: borderWidth,
4684
- right: borderWidth
4718
+ right: borderWidth,
4719
+ zIndex: 2
4685
4720
  }), /*#__PURE__*/React.createElement(View, {
4721
+ position: "relative",
4686
4722
  width: "100%",
4687
4723
  height: "100%",
4688
- backgroundColor: "rgba(15, 23, 42, 0.2)",
4689
4724
  display: "flex",
4690
4725
  alignItems: "center",
4691
4726
  justifyContent: "center",
4692
- color: "white",
4727
+ color: borderMovingTextColor,
4693
4728
  fontSize: 14,
4729
+ zIndex: 3,
4694
4730
  style: {
4695
4731
  cursor: 'pointer'
4696
4732
  }
@@ -22879,6 +22915,147 @@ var SeparatorComponent = props => {
22879
22915
  var Separator = SeparatorComponent;
22880
22916
  var Divider = SeparatorComponent;
22881
22917
 
22918
+ var _excluded$18 = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
22919
+ var ICON_SIZE_MAP = {
22920
+ xs: 12,
22921
+ sm: 14,
22922
+ md: 16,
22923
+ lg: 18,
22924
+ xl: 20
22925
+ };
22926
+ var ShareButtonView = _ref => {
22927
+ var _ref2;
22928
+ var {
22929
+ isSupported,
22930
+ isSharing,
22931
+ onShare,
22932
+ label,
22933
+ children,
22934
+ icon,
22935
+ size,
22936
+ isDisabled,
22937
+ isLoading,
22938
+ iconPosition,
22939
+ disableWhenUnsupported = true
22940
+ } = _ref,
22941
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$18);
22942
+ var resolvedSize = size != null ? size : 'md';
22943
+ var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React.createElement(ShareIcon, {
22944
+ widthHeight: ICON_SIZE_MAP[resolvedSize],
22945
+ strokeWidth: 1.5,
22946
+ filled: false
22947
+ }));
22948
+ var shouldDisable = Boolean(isDisabled) || !isSupported && disableWhenUnsupported;
22949
+ var shouldShowLoader = Boolean(isLoading) || isSharing;
22950
+ return /*#__PURE__*/React.createElement(Button, Object.assign({}, rest, {
22951
+ size: resolvedSize,
22952
+ icon: resolvedIcon,
22953
+ iconPosition: iconPosition != null ? iconPosition : 'left',
22954
+ isDisabled: shouldDisable,
22955
+ isLoading: shouldShowLoader,
22956
+ onClick: onShare
22957
+ }), (_ref2 = children != null ? children : label) != null ? _ref2 : 'Share');
22958
+ };
22959
+
22960
+ var getNavigator = () => typeof navigator === 'undefined' ? undefined : navigator;
22961
+ var canShareData = (nav, data) => {
22962
+ if (!nav || typeof nav.share !== 'function') {
22963
+ return false;
22964
+ }
22965
+ if (typeof nav.canShare === 'function') {
22966
+ try {
22967
+ return nav.canShare(data);
22968
+ } catch (_unused) {
22969
+ return false;
22970
+ }
22971
+ }
22972
+ return true;
22973
+ };
22974
+ var getErrorName = error => {
22975
+ if (typeof error === 'object' && error !== null && 'name' in error) {
22976
+ return String(error.name);
22977
+ }
22978
+ return undefined;
22979
+ };
22980
+ var useShareButton = props => {
22981
+ var {
22982
+ shareData,
22983
+ onClick,
22984
+ onUnsupported,
22985
+ onShareStart,
22986
+ onShareSuccess,
22987
+ onShareCancel,
22988
+ onShareError
22989
+ } = props;
22990
+ var [isSharing, setIsSharing] = React.useState(false);
22991
+ var isSupported = React.useMemo(() => canShareData(getNavigator(), shareData), [shareData]);
22992
+ var handleShare = React.useCallback(function () {
22993
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
22994
+ args[_key] = arguments[_key];
22995
+ }
22996
+ onClick == null || onClick(...args);
22997
+ var nav = getNavigator();
22998
+ if (!nav || typeof nav.share !== 'function') {
22999
+ onUnsupported == null || onUnsupported();
23000
+ return;
23001
+ }
23002
+ if (isSharing) {
23003
+ return;
23004
+ }
23005
+ if (typeof nav.canShare === 'function') {
23006
+ try {
23007
+ if (!nav.canShare(shareData)) {
23008
+ onUnsupported == null || onUnsupported();
23009
+ return;
23010
+ }
23011
+ } catch (error) {
23012
+ onShareError == null || onShareError(error);
23013
+ return;
23014
+ }
23015
+ }
23016
+ setIsSharing(true);
23017
+ onShareStart == null || onShareStart();
23018
+ try {
23019
+ void nav.share(shareData).then(() => {
23020
+ onShareSuccess == null || onShareSuccess();
23021
+ }).catch(error => {
23022
+ var errorName = getErrorName(error);
23023
+ if (errorName === 'AbortError') {
23024
+ onShareCancel == null || onShareCancel();
23025
+ return;
23026
+ }
23027
+ onShareError == null || onShareError(error);
23028
+ }).finally(() => {
23029
+ setIsSharing(false);
23030
+ });
23031
+ } catch (error) {
23032
+ setIsSharing(false);
23033
+ onShareError == null || onShareError(error);
23034
+ }
23035
+ }, [isSharing, onClick, onShareCancel, onShareError, onShareStart, onShareSuccess, onUnsupported, shareData]);
23036
+ return {
23037
+ isSupported,
23038
+ isSharing,
23039
+ handleShare
23040
+ };
23041
+ };
23042
+
23043
+ var _excluded$19 = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
23044
+ var ShareButtonComponent = props => {
23045
+ var {
23046
+ isSupported,
23047
+ isSharing,
23048
+ handleShare
23049
+ } = useShareButton(props);
23050
+ var viewProps = _objectWithoutPropertiesLoose(props, _excluded$19);
23051
+ return /*#__PURE__*/React.createElement(ShareButtonView, Object.assign({}, viewProps, {
23052
+ isSupported: isSupported,
23053
+ isSharing: isSharing,
23054
+ onShare: handleShare
23055
+ }));
23056
+ };
23057
+ var ShareButton = ShareButtonComponent;
23058
+
22882
23059
  var getThemes$2 = themeMode => {
22883
23060
  return {
22884
23061
  default: {
@@ -22924,7 +23101,7 @@ var getThemes$2 = themeMode => {
22924
23101
  };
22925
23102
  };
22926
23103
 
22927
- var _excluded$18 = ["label", "status", "views", "themeMode"];
23104
+ var _excluded$1a = ["label", "status", "views", "themeMode"];
22928
23105
  var StatusIndicatorView = _ref => {
22929
23106
  var {
22930
23107
  label,
@@ -22932,7 +23109,7 @@ var StatusIndicatorView = _ref => {
22932
23109
  views,
22933
23110
  themeMode: elementMode
22934
23111
  } = _ref,
22935
- props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
23112
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
22936
23113
  var {
22937
23114
  themeMode
22938
23115
  } = useTheme();
@@ -23125,7 +23302,7 @@ var SidebarTransitions = {
23125
23302
  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)'
23126
23303
  };
23127
23304
 
23128
- var _excluded$19 = ["children", "showToggleButton", "views"],
23305
+ var _excluded$1b = ["children", "showToggleButton", "views"],
23129
23306
  _excluded2$g = ["children", "views"],
23130
23307
  _excluded3$a = ["children", "views"],
23131
23308
  _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
@@ -23158,7 +23335,7 @@ var SidebarHeader = _ref2 => {
23158
23335
  showToggleButton = true,
23159
23336
  views
23160
23337
  } = _ref2,
23161
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$19);
23338
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
23162
23339
  var {
23163
23340
  isExpanded,
23164
23341
  toggleExpanded,
@@ -23313,7 +23490,7 @@ var SidebarView = _ref5 => {
23313
23490
  }))));
23314
23491
  };
23315
23492
 
23316
- var _excluded$1a = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23493
+ var _excluded$1c = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23317
23494
  /**
23318
23495
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
23319
23496
  */
@@ -23335,7 +23512,7 @@ var SidebarComponent = _ref => {
23335
23512
  breakpointBehavior = 'overlay',
23336
23513
  views
23337
23514
  } = _ref,
23338
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
23515
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
23339
23516
  var {
23340
23517
  isExpanded,
23341
23518
  toggleExpanded,
@@ -23800,7 +23977,7 @@ var HandleIconStyles = {
23800
23977
  }
23801
23978
  };
23802
23979
 
23803
- var _excluded$1b = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23980
+ var _excluded$1d = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23804
23981
  _excluded2$h = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
23805
23982
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
23806
23983
  // Create context for the Resizable component
@@ -23845,7 +24022,7 @@ var ResizablePanel = _ref2 => {
23845
24022
  onCollapseChange,
23846
24023
  views
23847
24024
  } = _ref2,
23848
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
24025
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
23849
24026
  var {
23850
24027
  orientation,
23851
24028
  registerPanel,
@@ -24060,7 +24237,7 @@ var ResizableView = _ref4 => {
24060
24237
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
24061
24238
  };
24062
24239
 
24063
- var _excluded$1c = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24240
+ var _excluded$1e = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24064
24241
  /**
24065
24242
  * Resizable component for creating resizable panel groups and layouts.
24066
24243
  */
@@ -24080,7 +24257,7 @@ var ResizableComponent = _ref => {
24080
24257
  keyboardResizeBy = 10,
24081
24258
  views
24082
24259
  } = _ref,
24083
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
24260
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
24084
24261
  var {
24085
24262
  isResizing,
24086
24263
  setIsResizing,
@@ -24848,7 +25025,7 @@ var CommandFooterStyles = {
24848
25025
  color: 'color.gray.500'
24849
25026
  };
24850
25027
 
24851
- var _excluded$1d = ["value", "onValueChange", "placeholder", "views"],
25028
+ var _excluded$1f = ["value", "onValueChange", "placeholder", "views"],
24852
25029
  _excluded2$i = ["children", "views"],
24853
25030
  _excluded3$c = ["heading", "children", "views"],
24854
25031
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -24880,7 +25057,7 @@ var CommandInput = _ref2 => {
24880
25057
  placeholder = 'Type a command or search...',
24881
25058
  views
24882
25059
  } = _ref2,
24883
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
25060
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
24884
25061
  var inputRef = useRef(null);
24885
25062
  // Focus input when component mounts
24886
25063
  React.useEffect(() => {
@@ -25063,7 +25240,7 @@ var CommandView = _ref7 => {
25063
25240
  })))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
25064
25241
  };
25065
25242
 
25066
- var _excluded$1e = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25243
+ var _excluded$1g = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25067
25244
  /**
25068
25245
  * Command component for displaying a command palette with search functionality.
25069
25246
  */
@@ -25081,7 +25258,7 @@ var CommandComponent = _ref => {
25081
25258
  footer,
25082
25259
  views
25083
25260
  } = _ref,
25084
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
25261
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25085
25262
  var {
25086
25263
  search,
25087
25264
  setSearch,
@@ -25309,7 +25486,7 @@ var getArrowStyles = position => {
25309
25486
  }
25310
25487
  };
25311
25488
 
25312
- var _excluded$1f = ["children", "views", "asChild"],
25489
+ var _excluded$1h = ["children", "views", "asChild"],
25313
25490
  _excluded2$j = ["children", "views"],
25314
25491
  _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
25315
25492
  // Create context for the Tooltip
@@ -25345,7 +25522,7 @@ var TooltipTrigger = _ref2 => {
25345
25522
  views,
25346
25523
  asChild = false
25347
25524
  } = _ref2,
25348
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
25525
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
25349
25526
  var {
25350
25527
  openTooltip,
25351
25528
  closeTooltip,
@@ -25529,7 +25706,7 @@ var TooltipView = _ref4 => {
25529
25706
  }, TooltipSizes[size], TooltipVariants[variant], views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React.createElement(Text$1, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React.createElement(View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
25530
25707
  };
25531
25708
 
25532
- var _excluded$1g = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25709
+ var _excluded$1i = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25533
25710
  /**
25534
25711
  * Tooltip component for displaying additional information when hovering over an element.
25535
25712
  * Supports configurable positions, delays, and styling.
@@ -25549,7 +25726,7 @@ var TooltipComponent = _ref => {
25549
25726
  isDisabled = false,
25550
25727
  views
25551
25728
  } = _ref,
25552
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25729
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
25553
25730
  var tooltipState = useTooltipState({
25554
25731
  defaultOpen,
25555
25732
  openDelay,
@@ -26022,7 +26199,7 @@ var TreeItemStates = {
26022
26199
  }
26023
26200
  };
26024
26201
 
26025
- var _excluded$1h = ["children", "views", "baseId"],
26202
+ var _excluded$1j = ["children", "views", "baseId"],
26026
26203
  _excluded2$k = ["value", "disabled", "icon", "children", "views", "style", "draggable"],
26027
26204
  _excluded3$e = ["children", "onClick", "onToggleExpand", "hasChildren", "expanded", "icon", "disabled", "isSelected", "isDragging", "size", "variant", "views"],
26028
26205
  _excluded4$b = ["children", "views"];
@@ -26058,7 +26235,7 @@ var TreeView = _ref2 => {
26058
26235
  baseId
26059
26236
  // themeMode, // If 'app-studio' ViewProps supports themeMode
26060
26237
  } = _ref2,
26061
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
26238
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
26062
26239
  var {
26063
26240
  allowDragAndDrop,
26064
26241
  handleDrop,
@@ -26338,7 +26515,7 @@ var DataDrivenTreeView = _ref7 => {
26338
26515
  }))));
26339
26516
  };
26340
26517
 
26341
- var _excluded$1i = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26518
+ var _excluded$1k = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26342
26519
  /**
26343
26520
  * Tree component for displaying hierarchical data.
26344
26521
  * Supports both compound component pattern (using Tree.Item, Tree.ItemLabel, Tree.ItemContent)
@@ -26407,7 +26584,7 @@ var TreeComponent = _ref => {
26407
26584
  views // Global views configuration
26408
26585
  // Remaining ViewProps for the root TreeView container
26409
26586
  } = _ref,
26410
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
26587
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
26411
26588
  var treeState = useTreeState({
26412
26589
  defaultExpandedItems,
26413
26590
  expandedItems,
@@ -26980,7 +27157,7 @@ var FlowNodeStates = {
26980
27157
  }
26981
27158
  };
26982
27159
 
26983
- var _excluded$1j = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
27160
+ var _excluded$1l = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
26984
27161
  _excluded2$l = ["onZoomIn", "onZoomOut", "onReset", "views"],
26985
27162
  _excluded3$f = ["onClick", "views"],
26986
27163
  _excluded4$c = ["nodes", "edges", "selectedNodeId", "draggedNodeId", "onNodeSelect", "onAddNode", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "views", "baseId", "viewport", "onZoomIn", "onZoomOut", "onReset", "onViewportChange"];
@@ -26996,7 +27173,7 @@ var FlowNodeView = _ref => {
26996
27173
  variant = 'default',
26997
27174
  views
26998
27175
  } = _ref,
26999
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
27176
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
27000
27177
  var handleClick = () => {
27001
27178
  if (onSelect) {
27002
27179
  onSelect(node.id);
@@ -27643,7 +27820,7 @@ var FlowView = _ref5 => {
27643
27820
  }, "Zoom: ", Math.round(viewport.zoom * 100), "%")));
27644
27821
  };
27645
27822
 
27646
- var _excluded$1k = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27823
+ var _excluded$1m = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27647
27824
  /**
27648
27825
  * Flow component for creating workflow diagrams.
27649
27826
  *
@@ -27700,7 +27877,7 @@ var FlowComponent = _ref => {
27700
27877
  onViewportChange,
27701
27878
  views
27702
27879
  } = _ref,
27703
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
27880
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
27704
27881
  var flowState = useFlowState({
27705
27882
  initialNodes: controlledNodes,
27706
27883
  initialEdges: controlledEdges,
@@ -28069,7 +28246,7 @@ var DefaultGradientStyles = {
28069
28246
  }
28070
28247
  };
28071
28248
 
28072
- var _excluded$1l = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28249
+ var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28073
28250
  var GradientView = _ref => {
28074
28251
  var {
28075
28252
  type = 'linear',
@@ -28085,7 +28262,7 @@ var GradientView = _ref => {
28085
28262
  views,
28086
28263
  themeMode: elementMode
28087
28264
  } = _ref,
28088
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
28265
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
28089
28266
  var {
28090
28267
  getColor,
28091
28268
  themeMode
@@ -28161,7 +28338,7 @@ var Gradient = props => {
28161
28338
  return /*#__PURE__*/React.createElement(GradientView, Object.assign({}, props));
28162
28339
  };
28163
28340
 
28164
- var _excluded$1m = ["children", "showRadialGradient", "views", "themeMode"],
28341
+ var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
28165
28342
  _excluded2$m = ["number", "children"],
28166
28343
  _excluded3$g = ["rows", "cols", "squareSize"],
28167
28344
  _excluded4$d = ["count", "colors", "speed", "shapes"],
@@ -28182,7 +28359,7 @@ var AuroraBackground = _ref => {
28182
28359
  showRadialGradient = true,
28183
28360
  views
28184
28361
  } = _ref,
28185
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
28362
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
28186
28363
  var gradientColors = {
28187
28364
  white: 'rgba(255,255,255,1)',
28188
28365
  transparent: 'rgba(255,255,255,0)'
@@ -29082,7 +29259,7 @@ var AgentRunProgress = _ref => {
29082
29259
  }, step.label))))));
29083
29260
  };
29084
29261
 
29085
- 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"];
29262
+ 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"];
29086
29263
  /**
29087
29264
  * AgentChat View Component
29088
29265
  *
@@ -29122,7 +29299,7 @@ var AgentChatView = _ref => {
29122
29299
  setError,
29123
29300
  setSelectedFiles
29124
29301
  } = _ref,
29125
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
29302
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
29126
29303
  /**
29127
29304
  * Auto-scroll to bottom when new messages arrive
29128
29305
  */
@@ -30263,7 +30440,7 @@ var SessionFilters = _ref => {
30263
30440
  }, "Clear all filters")))));
30264
30441
  };
30265
30442
 
30266
- 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"];
30443
+ 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"];
30267
30444
  /**
30268
30445
  * AgentSession View Component
30269
30446
  *
@@ -30311,7 +30488,7 @@ var AgentSessionView = _ref => {
30311
30488
  fileInputRef,
30312
30489
  handleFileSelect
30313
30490
  } = _ref,
30314
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
30491
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
30315
30492
  /**
30316
30493
  * Handle session creation
30317
30494
  */
@@ -32150,7 +32327,7 @@ var TraceVisualization = _ref => {
32150
32327
  }, renderVisualization())));
32151
32328
  };
32152
32329
 
32153
- 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"];
32330
+ 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"];
32154
32331
  /**
32155
32332
  * AgentTrace View Component
32156
32333
  *
@@ -32191,7 +32368,7 @@ var AgentTraceView = _ref => {
32191
32368
  setCurrentVisualization,
32192
32369
  setError
32193
32370
  } = _ref,
32194
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
32371
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
32195
32372
  /**
32196
32373
  * Handle event selection
32197
32374
  */
@@ -33880,7 +34057,7 @@ var EvaluationMetrics = _ref => {
33880
34057
  }, "Run some evaluations to see performance metrics")))));
33881
34058
  };
33882
34059
 
33883
- 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"];
34060
+ 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"];
33884
34061
  /**
33885
34062
  * AgentEval View Component
33886
34063
  *
@@ -33923,7 +34100,7 @@ var AgentEvalView = _ref => {
33923
34100
  setSearchQuery,
33924
34101
  setError
33925
34102
  } = _ref,
33926
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
34103
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
33927
34104
  var [activeTab, setActiveTab] = React.useState('evaluations');
33928
34105
  /**
33929
34106
  * Handle evaluation creation
@@ -34585,5 +34762,5 @@ var AgentEval = props => {
34585
34762
  return /*#__PURE__*/React.createElement(AgentEvalView, Object.assign({}, props, evalState));
34586
34763
  };
34587
34764
 
34588
- export { Accordion, AgentChat, AgentEval, AgentSession, AgentTrace, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AudioIcon, AudioInput, AudioWaveform, Avatar, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, Flow, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, Tree, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
34765
+ export { Accordion, AgentChat, AgentEval, AgentSession, AgentTrace, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AudioIcon, AudioInput, AudioWaveform, Avatar, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, Flow, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, Tree, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
34589
34766
  //# sourceMappingURL=web.esm.js.map