@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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('core-js/modules/es.string.trim-end.js'), require('core-js/modules/es.array-buffer.constructor.js'), require('core-js/modules/es.array-buffer.slice.js'), require('core-js/modules/es.typed-array.uint8-array.js'), require('core-js/modules/es.typed-array.fill.js'), require('core-js/modules/es.typed-array.set.js'), require('core-js/modules/es.typed-array.sort.js'), require('core-js/modules/es.typed-array.to-locale-string.js'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('core-js/modules/es.parse-int.js'), require('react-router-dom'), require('core-js/modules/es.string.ends-with.js'), require('contrast'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.string.trim.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/es.string.replace.js'), require('zustand'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.array.sort.js')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'core-js/modules/es.string.trim-end.js', 'core-js/modules/es.array-buffer.constructor.js', 'core-js/modules/es.array-buffer.slice.js', 'core-js/modules/es.typed-array.uint8-array.js', 'core-js/modules/es.typed-array.fill.js', 'core-js/modules/es.typed-array.set.js', 'core-js/modules/es.typed-array.sort.js', 'core-js/modules/es.typed-array.to-locale-string.js', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'core-js/modules/es.parse-int.js', 'react-router-dom', 'core-js/modules/es.string.ends-with.js', 'contrast', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.string.trim.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/es.string.replace.js', 'zustand', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.array.sort.js'], factory) :
4
- (global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, null, null, null, null, null, null, null, null, null, null, null, null, global.reactRouterDom, null, global.contrast, null, null, null, null, global.format, null, null, null, global.formik, null, global.zustand));
5
- }(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, es_string_trimEnd_js, es_arrayBuffer_constructor_js, es_arrayBuffer_slice_js, es_typedArray_uint8Array_js, es_typedArray_fill_js, es_typedArray_set_js, es_typedArray_sort_js, es_typedArray_toLocaleString_js, web_url_js, web_url_toJson_js, web_urlSearchParams_js, es_parseInt_js, reactRouterDom, es_string_endsWith_js, contrast, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_string_trim_js, es_regexp_constructor_js, es_regexp_exec_js, formik, es_string_replace_js, zustand) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('core-js/modules/es.string.trim-end.js'), require('core-js/modules/es.parse-int.js'), require('core-js/modules/es.regexp.exec.js'), require('core-js/modules/es.string.pad-start.js'), require('core-js/modules/es.string.replace.js'), require('core-js/modules/es.array-buffer.constructor.js'), require('core-js/modules/es.array-buffer.slice.js'), require('core-js/modules/es.typed-array.uint8-array.js'), require('core-js/modules/es.typed-array.fill.js'), require('core-js/modules/es.typed-array.set.js'), require('core-js/modules/es.typed-array.sort.js'), require('core-js/modules/es.typed-array.to-locale-string.js'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('react-router-dom'), require('core-js/modules/es.string.ends-with.js'), require('contrast'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.string.trim.js'), require('core-js/modules/es.regexp.constructor.js'), require('formik'), require('zustand'), require('core-js/modules/es.promise.finally.js'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js'), require('core-js/modules/es.array.sort.js')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'core-js/modules/es.string.trim-end.js', 'core-js/modules/es.parse-int.js', 'core-js/modules/es.regexp.exec.js', 'core-js/modules/es.string.pad-start.js', 'core-js/modules/es.string.replace.js', 'core-js/modules/es.array-buffer.constructor.js', 'core-js/modules/es.array-buffer.slice.js', 'core-js/modules/es.typed-array.uint8-array.js', 'core-js/modules/es.typed-array.fill.js', 'core-js/modules/es.typed-array.set.js', 'core-js/modules/es.typed-array.sort.js', 'core-js/modules/es.typed-array.to-locale-string.js', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'react-router-dom', 'core-js/modules/es.string.ends-with.js', 'contrast', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.string.trim.js', 'core-js/modules/es.regexp.constructor.js', 'formik', 'zustand', 'core-js/modules/es.promise.finally.js', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js', 'core-js/modules/es.array.sort.js'], factory) :
4
+ (global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, global.reactRouterDom, null, global.contrast, null, null, null, null, global.format, null, null, global.formik, global.zustand));
5
+ }(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, es_string_trimEnd_js, es_parseInt_js, es_regexp_exec_js, es_string_padStart_js, es_string_replace_js, es_arrayBuffer_constructor_js, es_arrayBuffer_slice_js, es_typedArray_uint8Array_js, es_typedArray_fill_js, es_typedArray_set_js, es_typedArray_sort_js, es_typedArray_toLocaleString_js, web_url_js, web_url_toJson_js, web_urlSearchParams_js, reactRouterDom, es_string_endsWith_js, contrast, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_string_trim_js, es_regexp_constructor_js, formik, zustand) { 'use strict';
6
6
 
7
7
  var React__default = 'default' in React ? React['default'] : React;
8
8
  contrast = contrast && Object.prototype.hasOwnProperty.call(contrast, 'default') ? contrast['default'] : contrast;
@@ -495,8 +495,31 @@
495
495
  black: '900'
496
496
  };
497
497
 
498
+ var getTextColorHex = backgroundColor => {
499
+ // Simple luminance calculation to determine text color contrast
500
+ var color = backgroundColor.replace('#', '');
501
+ var r = parseInt(color.substring(0, 2), 16);
502
+ var g = parseInt(color.substring(2, 4), 16);
503
+ var b = parseInt(color.substring(4, 6), 16);
504
+ var luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
505
+ return luminance > 0.4 ? 'black' : 'white';
506
+ };
507
+ var getTextColor = backgroundColor => {
508
+ // Use complementary color for better contrast and return as hex
509
+ var color = backgroundColor.replace('#', '');
510
+ var r = parseInt(color.substring(0, 2), 16);
511
+ var g = parseInt(color.substring(2, 4), 16);
512
+ var b = parseInt(color.substring(4, 6), 16);
513
+ // Calculate the complementary color
514
+ var complementR = (255 - r).toString(16).padStart(2, '0');
515
+ var complementG = (255 - g).toString(16).padStart(2, '0');
516
+ var complementB = (255 - b).toString(16).padStart(2, '0');
517
+ // Return the color in hex format
518
+ return getTextColorHex("#" + complementR + complementG + complementB);
519
+ };
520
+
498
521
  var _excluded$2 = ["text", "maxLines", "views"],
499
- _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "views"];
522
+ _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "backgroundColor", "color", "views"];
500
523
  /**
501
524
  * Renders text content with support for subscript and superscript
502
525
  */
@@ -611,6 +634,8 @@
611
634
  isStriked = false,
612
635
  weight = 'normal',
613
636
  size = 'md',
637
+ backgroundColor,
638
+ color,
614
639
  views
615
640
  } = _ref3,
616
641
  props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
@@ -624,6 +649,7 @@
624
649
  var fontSize = FontSizes[size];
625
650
  var lineHeight = LineHeights[size];
626
651
  var fontWeight = FontWeights[weight];
652
+ var computedColor = color != null ? color : backgroundColor ? getTextColor(backgroundColor) : undefined;
627
653
  return /*#__PURE__*/React__default.createElement(appStudio.Element
628
654
  // Apply typography styles according to design guidelines
629
655
  , Object.assign({
@@ -633,7 +659,8 @@
633
659
  fontStyle: isItalic ? 'italic' : 'normal',
634
660
  fontWeight: fontWeight,
635
661
  letterSpacing: "-0.01em",
636
- textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
662
+ textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none',
663
+ color: computedColor
637
664
  }, noLineBreak, headingStyles, props, views == null ? void 0 : views.container), maxLines && typeof children === 'string' ? (/*#__PURE__*/React__default.createElement(TruncateText, {
638
665
  text: children,
639
666
  maxLines: maxLines
@@ -4595,11 +4622,15 @@
4595
4622
  return 50;
4596
4623
  })();
4597
4624
  var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
4625
+ // Determine background color from props or use mainTone
4626
+ var containerBg = mainTone;
4627
+ // Calculate text color with proper contrast
4628
+ var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
4598
4629
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
4599
4630
  width: numericWidth,
4600
4631
  height: numericHeight,
4601
4632
  position: "relative",
4602
- backgroundColor: "black",
4633
+ backgroundColor: containerBg,
4603
4634
  overflow: "hidden",
4604
4635
  borderRadius: ButtonShapes[shape],
4605
4636
  cursor: isDisabled ? 'default' : 'pointer',
@@ -4610,7 +4641,8 @@
4610
4641
  style: {
4611
4642
  position: 'absolute',
4612
4643
  top: 0,
4613
- left: 0
4644
+ left: 0,
4645
+ zIndex: 1
4614
4646
  }
4615
4647
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
4616
4648
  id: "circleGradient",
@@ -4644,21 +4676,23 @@
4644
4676
  path: path
4645
4677
  }))), /*#__PURE__*/React__default.createElement(appStudio.View, {
4646
4678
  position: "absolute",
4647
- backgroundColor: "black",
4679
+ backgroundColor: containerBg,
4648
4680
  borderRadius: Math.max(0, numericBorderRadius - 1),
4649
4681
  top: borderWidth,
4650
4682
  bottom: borderWidth,
4651
4683
  left: borderWidth,
4652
- right: borderWidth
4684
+ right: borderWidth,
4685
+ zIndex: 2
4653
4686
  }), /*#__PURE__*/React__default.createElement(appStudio.View, {
4687
+ position: "relative",
4654
4688
  width: "100%",
4655
4689
  height: "100%",
4656
- backgroundColor: "rgba(15, 23, 42, 0.2)",
4657
4690
  display: "flex",
4658
4691
  alignItems: "center",
4659
4692
  justifyContent: "center",
4660
- color: "white",
4693
+ color: borderMovingTextColor,
4661
4694
  fontSize: 14,
4695
+ zIndex: 3,
4662
4696
  style: {
4663
4697
  cursor: 'pointer'
4664
4698
  }
@@ -22847,6 +22881,147 @@
22847
22881
  var Separator = SeparatorComponent;
22848
22882
  var Divider = SeparatorComponent;
22849
22883
 
22884
+ var _excluded$18 = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
22885
+ var ICON_SIZE_MAP = {
22886
+ xs: 12,
22887
+ sm: 14,
22888
+ md: 16,
22889
+ lg: 18,
22890
+ xl: 20
22891
+ };
22892
+ var ShareButtonView = _ref => {
22893
+ var _ref2;
22894
+ var {
22895
+ isSupported,
22896
+ isSharing,
22897
+ onShare,
22898
+ label,
22899
+ children,
22900
+ icon,
22901
+ size,
22902
+ isDisabled,
22903
+ isLoading,
22904
+ iconPosition,
22905
+ disableWhenUnsupported = true
22906
+ } = _ref,
22907
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$18);
22908
+ var resolvedSize = size != null ? size : 'md';
22909
+ var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React__default.createElement(ShareIcon, {
22910
+ widthHeight: ICON_SIZE_MAP[resolvedSize],
22911
+ strokeWidth: 1.5,
22912
+ filled: false
22913
+ }));
22914
+ var shouldDisable = Boolean(isDisabled) || !isSupported && disableWhenUnsupported;
22915
+ var shouldShowLoader = Boolean(isLoading) || isSharing;
22916
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({}, rest, {
22917
+ size: resolvedSize,
22918
+ icon: resolvedIcon,
22919
+ iconPosition: iconPosition != null ? iconPosition : 'left',
22920
+ isDisabled: shouldDisable,
22921
+ isLoading: shouldShowLoader,
22922
+ onClick: onShare
22923
+ }), (_ref2 = children != null ? children : label) != null ? _ref2 : 'Share');
22924
+ };
22925
+
22926
+ var getNavigator = () => typeof navigator === 'undefined' ? undefined : navigator;
22927
+ var canShareData = (nav, data) => {
22928
+ if (!nav || typeof nav.share !== 'function') {
22929
+ return false;
22930
+ }
22931
+ if (typeof nav.canShare === 'function') {
22932
+ try {
22933
+ return nav.canShare(data);
22934
+ } catch (_unused) {
22935
+ return false;
22936
+ }
22937
+ }
22938
+ return true;
22939
+ };
22940
+ var getErrorName = error => {
22941
+ if (typeof error === 'object' && error !== null && 'name' in error) {
22942
+ return String(error.name);
22943
+ }
22944
+ return undefined;
22945
+ };
22946
+ var useShareButton = props => {
22947
+ var {
22948
+ shareData,
22949
+ onClick,
22950
+ onUnsupported,
22951
+ onShareStart,
22952
+ onShareSuccess,
22953
+ onShareCancel,
22954
+ onShareError
22955
+ } = props;
22956
+ var [isSharing, setIsSharing] = React__default.useState(false);
22957
+ var isSupported = React__default.useMemo(() => canShareData(getNavigator(), shareData), [shareData]);
22958
+ var handleShare = React__default.useCallback(function () {
22959
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
22960
+ args[_key] = arguments[_key];
22961
+ }
22962
+ onClick == null || onClick(...args);
22963
+ var nav = getNavigator();
22964
+ if (!nav || typeof nav.share !== 'function') {
22965
+ onUnsupported == null || onUnsupported();
22966
+ return;
22967
+ }
22968
+ if (isSharing) {
22969
+ return;
22970
+ }
22971
+ if (typeof nav.canShare === 'function') {
22972
+ try {
22973
+ if (!nav.canShare(shareData)) {
22974
+ onUnsupported == null || onUnsupported();
22975
+ return;
22976
+ }
22977
+ } catch (error) {
22978
+ onShareError == null || onShareError(error);
22979
+ return;
22980
+ }
22981
+ }
22982
+ setIsSharing(true);
22983
+ onShareStart == null || onShareStart();
22984
+ try {
22985
+ void nav.share(shareData).then(() => {
22986
+ onShareSuccess == null || onShareSuccess();
22987
+ }).catch(error => {
22988
+ var errorName = getErrorName(error);
22989
+ if (errorName === 'AbortError') {
22990
+ onShareCancel == null || onShareCancel();
22991
+ return;
22992
+ }
22993
+ onShareError == null || onShareError(error);
22994
+ }).finally(() => {
22995
+ setIsSharing(false);
22996
+ });
22997
+ } catch (error) {
22998
+ setIsSharing(false);
22999
+ onShareError == null || onShareError(error);
23000
+ }
23001
+ }, [isSharing, onClick, onShareCancel, onShareError, onShareStart, onShareSuccess, onUnsupported, shareData]);
23002
+ return {
23003
+ isSupported,
23004
+ isSharing,
23005
+ handleShare
23006
+ };
23007
+ };
23008
+
23009
+ var _excluded$19 = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
23010
+ var ShareButtonComponent = props => {
23011
+ var {
23012
+ isSupported,
23013
+ isSharing,
23014
+ handleShare
23015
+ } = useShareButton(props);
23016
+ var viewProps = _objectWithoutPropertiesLoose(props, _excluded$19);
23017
+ return /*#__PURE__*/React__default.createElement(ShareButtonView, Object.assign({}, viewProps, {
23018
+ isSupported: isSupported,
23019
+ isSharing: isSharing,
23020
+ onShare: handleShare
23021
+ }));
23022
+ };
23023
+ var ShareButton = ShareButtonComponent;
23024
+
22850
23025
  var getThemes$2 = themeMode => {
22851
23026
  return {
22852
23027
  default: {
@@ -22892,7 +23067,7 @@
22892
23067
  };
22893
23068
  };
22894
23069
 
22895
- var _excluded$18 = ["label", "status", "views", "themeMode"];
23070
+ var _excluded$1a = ["label", "status", "views", "themeMode"];
22896
23071
  var StatusIndicatorView = _ref => {
22897
23072
  var {
22898
23073
  label,
@@ -22900,7 +23075,7 @@
22900
23075
  views,
22901
23076
  themeMode: elementMode
22902
23077
  } = _ref,
22903
- props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
23078
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
22904
23079
  var {
22905
23080
  themeMode
22906
23081
  } = appStudio.useTheme();
@@ -23093,7 +23268,7 @@
23093
23268
  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)'
23094
23269
  };
23095
23270
 
23096
- var _excluded$19 = ["children", "showToggleButton", "views"],
23271
+ var _excluded$1b = ["children", "showToggleButton", "views"],
23097
23272
  _excluded2$g = ["children", "views"],
23098
23273
  _excluded3$a = ["children", "views"],
23099
23274
  _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
@@ -23126,7 +23301,7 @@
23126
23301
  showToggleButton = true,
23127
23302
  views
23128
23303
  } = _ref2,
23129
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$19);
23304
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
23130
23305
  var {
23131
23306
  isExpanded,
23132
23307
  toggleExpanded,
@@ -23281,7 +23456,7 @@
23281
23456
  }))));
23282
23457
  };
23283
23458
 
23284
- var _excluded$1a = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23459
+ var _excluded$1c = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23285
23460
  /**
23286
23461
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
23287
23462
  */
@@ -23303,7 +23478,7 @@
23303
23478
  breakpointBehavior = 'overlay',
23304
23479
  views
23305
23480
  } = _ref,
23306
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
23481
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
23307
23482
  var {
23308
23483
  isExpanded,
23309
23484
  toggleExpanded,
@@ -23768,7 +23943,7 @@
23768
23943
  }
23769
23944
  };
23770
23945
 
23771
- var _excluded$1b = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23946
+ var _excluded$1d = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23772
23947
  _excluded2$h = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
23773
23948
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
23774
23949
  // Create context for the Resizable component
@@ -23813,7 +23988,7 @@
23813
23988
  onCollapseChange,
23814
23989
  views
23815
23990
  } = _ref2,
23816
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
23991
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
23817
23992
  var {
23818
23993
  orientation,
23819
23994
  registerPanel,
@@ -24028,7 +24203,7 @@
24028
24203
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
24029
24204
  };
24030
24205
 
24031
- var _excluded$1c = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24206
+ var _excluded$1e = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24032
24207
  /**
24033
24208
  * Resizable component for creating resizable panel groups and layouts.
24034
24209
  */
@@ -24048,7 +24223,7 @@
24048
24223
  keyboardResizeBy = 10,
24049
24224
  views
24050
24225
  } = _ref,
24051
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
24226
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
24052
24227
  var {
24053
24228
  isResizing,
24054
24229
  setIsResizing,
@@ -24816,7 +24991,7 @@
24816
24991
  color: 'color.gray.500'
24817
24992
  };
24818
24993
 
24819
- var _excluded$1d = ["value", "onValueChange", "placeholder", "views"],
24994
+ var _excluded$1f = ["value", "onValueChange", "placeholder", "views"],
24820
24995
  _excluded2$i = ["children", "views"],
24821
24996
  _excluded3$c = ["heading", "children", "views"],
24822
24997
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -24848,7 +25023,7 @@
24848
25023
  placeholder = 'Type a command or search...',
24849
25024
  views
24850
25025
  } = _ref2,
24851
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
25026
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
24852
25027
  var inputRef = React.useRef(null);
24853
25028
  // Focus input when component mounts
24854
25029
  React__default.useEffect(() => {
@@ -25031,7 +25206,7 @@
25031
25206
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
25032
25207
  };
25033
25208
 
25034
- var _excluded$1e = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25209
+ var _excluded$1g = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25035
25210
  /**
25036
25211
  * Command component for displaying a command palette with search functionality.
25037
25212
  */
@@ -25049,7 +25224,7 @@
25049
25224
  footer,
25050
25225
  views
25051
25226
  } = _ref,
25052
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
25227
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25053
25228
  var {
25054
25229
  search,
25055
25230
  setSearch,
@@ -25277,7 +25452,7 @@
25277
25452
  }
25278
25453
  };
25279
25454
 
25280
- var _excluded$1f = ["children", "views", "asChild"],
25455
+ var _excluded$1h = ["children", "views", "asChild"],
25281
25456
  _excluded2$j = ["children", "views"],
25282
25457
  _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
25283
25458
  // Create context for the Tooltip
@@ -25313,7 +25488,7 @@
25313
25488
  views,
25314
25489
  asChild = false
25315
25490
  } = _ref2,
25316
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
25491
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
25317
25492
  var {
25318
25493
  openTooltip,
25319
25494
  closeTooltip,
@@ -25497,7 +25672,7 @@
25497
25672
  }, 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)))));
25498
25673
  };
25499
25674
 
25500
- var _excluded$1g = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25675
+ var _excluded$1i = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25501
25676
  /**
25502
25677
  * Tooltip component for displaying additional information when hovering over an element.
25503
25678
  * Supports configurable positions, delays, and styling.
@@ -25517,7 +25692,7 @@
25517
25692
  isDisabled = false,
25518
25693
  views
25519
25694
  } = _ref,
25520
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25695
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
25521
25696
  var tooltipState = useTooltipState({
25522
25697
  defaultOpen,
25523
25698
  openDelay,
@@ -25990,7 +26165,7 @@
25990
26165
  }
25991
26166
  };
25992
26167
 
25993
- var _excluded$1h = ["children", "views", "baseId"],
26168
+ var _excluded$1j = ["children", "views", "baseId"],
25994
26169
  _excluded2$k = ["value", "disabled", "icon", "children", "views", "style", "draggable"],
25995
26170
  _excluded3$e = ["children", "onClick", "onToggleExpand", "hasChildren", "expanded", "icon", "disabled", "isSelected", "isDragging", "size", "variant", "views"],
25996
26171
  _excluded4$b = ["children", "views"];
@@ -26026,7 +26201,7 @@
26026
26201
  baseId
26027
26202
  // themeMode, // If 'app-studio' ViewProps supports themeMode
26028
26203
  } = _ref2,
26029
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
26204
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
26030
26205
  var {
26031
26206
  allowDragAndDrop,
26032
26207
  handleDrop,
@@ -26306,7 +26481,7 @@
26306
26481
  }))));
26307
26482
  };
26308
26483
 
26309
- var _excluded$1i = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26484
+ var _excluded$1k = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26310
26485
  /**
26311
26486
  * Tree component for displaying hierarchical data.
26312
26487
  * Supports both compound component pattern (using Tree.Item, Tree.ItemLabel, Tree.ItemContent)
@@ -26375,7 +26550,7 @@
26375
26550
  views // Global views configuration
26376
26551
  // Remaining ViewProps for the root TreeView container
26377
26552
  } = _ref,
26378
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
26553
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
26379
26554
  var treeState = useTreeState({
26380
26555
  defaultExpandedItems,
26381
26556
  expandedItems,
@@ -26948,7 +27123,7 @@
26948
27123
  }
26949
27124
  };
26950
27125
 
26951
- var _excluded$1j = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
27126
+ var _excluded$1l = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
26952
27127
  _excluded2$l = ["onZoomIn", "onZoomOut", "onReset", "views"],
26953
27128
  _excluded3$f = ["onClick", "views"],
26954
27129
  _excluded4$c = ["nodes", "edges", "selectedNodeId", "draggedNodeId", "onNodeSelect", "onAddNode", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "views", "baseId", "viewport", "onZoomIn", "onZoomOut", "onReset", "onViewportChange"];
@@ -26964,7 +27139,7 @@
26964
27139
  variant = 'default',
26965
27140
  views
26966
27141
  } = _ref,
26967
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
27142
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
26968
27143
  var handleClick = () => {
26969
27144
  if (onSelect) {
26970
27145
  onSelect(node.id);
@@ -27611,7 +27786,7 @@
27611
27786
  }, "Zoom: ", Math.round(viewport.zoom * 100), "%")));
27612
27787
  };
27613
27788
 
27614
- var _excluded$1k = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27789
+ var _excluded$1m = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27615
27790
  /**
27616
27791
  * Flow component for creating workflow diagrams.
27617
27792
  *
@@ -27668,7 +27843,7 @@
27668
27843
  onViewportChange,
27669
27844
  views
27670
27845
  } = _ref,
27671
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
27846
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
27672
27847
  var flowState = useFlowState({
27673
27848
  initialNodes: controlledNodes,
27674
27849
  initialEdges: controlledEdges,
@@ -28037,7 +28212,7 @@
28037
28212
  }
28038
28213
  };
28039
28214
 
28040
- var _excluded$1l = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28215
+ var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28041
28216
  var GradientView = _ref => {
28042
28217
  var {
28043
28218
  type = 'linear',
@@ -28053,7 +28228,7 @@
28053
28228
  views,
28054
28229
  themeMode: elementMode
28055
28230
  } = _ref,
28056
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
28231
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
28057
28232
  var {
28058
28233
  getColor,
28059
28234
  themeMode
@@ -28129,7 +28304,7 @@
28129
28304
  return /*#__PURE__*/React__default.createElement(GradientView, Object.assign({}, props));
28130
28305
  };
28131
28306
 
28132
- var _excluded$1m = ["children", "showRadialGradient", "views", "themeMode"],
28307
+ var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
28133
28308
  _excluded2$m = ["number", "children"],
28134
28309
  _excluded3$g = ["rows", "cols", "squareSize"],
28135
28310
  _excluded4$d = ["count", "colors", "speed", "shapes"],
@@ -28150,7 +28325,7 @@
28150
28325
  showRadialGradient = true,
28151
28326
  views
28152
28327
  } = _ref,
28153
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
28328
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
28154
28329
  var gradientColors = {
28155
28330
  white: 'rgba(255,255,255,1)',
28156
28331
  transparent: 'rgba(255,255,255,0)'
@@ -29050,7 +29225,7 @@
29050
29225
  }, step.label))))));
29051
29226
  };
29052
29227
 
29053
- 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"];
29228
+ 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"];
29054
29229
  /**
29055
29230
  * AgentChat View Component
29056
29231
  *
@@ -29090,7 +29265,7 @@
29090
29265
  setError,
29091
29266
  setSelectedFiles
29092
29267
  } = _ref,
29093
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
29268
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
29094
29269
  /**
29095
29270
  * Auto-scroll to bottom when new messages arrive
29096
29271
  */
@@ -30231,7 +30406,7 @@
30231
30406
  }, "Clear all filters")))));
30232
30407
  };
30233
30408
 
30234
- 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"];
30409
+ 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"];
30235
30410
  /**
30236
30411
  * AgentSession View Component
30237
30412
  *
@@ -30279,7 +30454,7 @@
30279
30454
  fileInputRef,
30280
30455
  handleFileSelect
30281
30456
  } = _ref,
30282
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
30457
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
30283
30458
  /**
30284
30459
  * Handle session creation
30285
30460
  */
@@ -32118,7 +32293,7 @@
32118
32293
  }, renderVisualization())));
32119
32294
  };
32120
32295
 
32121
- 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"];
32296
+ 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"];
32122
32297
  /**
32123
32298
  * AgentTrace View Component
32124
32299
  *
@@ -32159,7 +32334,7 @@
32159
32334
  setCurrentVisualization,
32160
32335
  setError
32161
32336
  } = _ref,
32162
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
32337
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
32163
32338
  /**
32164
32339
  * Handle event selection
32165
32340
  */
@@ -33848,7 +34023,7 @@
33848
34023
  }, "Run some evaluations to see performance metrics")))));
33849
34024
  };
33850
34025
 
33851
- 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"];
34026
+ 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"];
33852
34027
  /**
33853
34028
  * AgentEval View Component
33854
34029
  *
@@ -33891,7 +34066,7 @@
33891
34066
  setSearchQuery,
33892
34067
  setError
33893
34068
  } = _ref,
33894
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
34069
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
33895
34070
  var [activeTab, setActiveTab] = React__default.useState('evaluations');
33896
34071
  /**
33897
34072
  * Handle evaluation creation
@@ -34684,6 +34859,7 @@
34684
34859
  exports.Separator = Separator;
34685
34860
  exports.SettingsIcon = SettingsIcon;
34686
34861
  exports.ShapeIcon = ShapeIcon;
34862
+ exports.ShareButton = ShareButton;
34687
34863
  exports.ShareIcon = ShareIcon;
34688
34864
  exports.ShieldIcon = ShieldIcon;
34689
34865
  exports.Sidebar = Sidebar;