@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.
- package/dist/components/ShareButton/ShareButton/ShareButton.props.d.ts +38 -0
- package/dist/components/ShareButton/ShareButton/ShareButton.state.d.ts +6 -0
- package/dist/components/ShareButton/ShareButton/ShareButton.view.d.ts +4 -0
- package/dist/components/ShareButton/ShareButton.d.ts +3 -0
- package/dist/components/Text/Text/Text.props.d.ts +1 -0
- package/dist/components/Text/Text/Text.utils.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/web.cjs.development.js +229 -63
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +229 -64
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +228 -64
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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('
|
|
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', '
|
|
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,
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
4693
|
+
color: borderMovingTextColor,
|
|
4661
4694
|
fontSize: 14,
|
|
4695
|
+
zIndex: 3,
|
|
4662
4696
|
style: {
|
|
4663
4697
|
cursor: 'pointer'
|
|
4664
4698
|
}
|
|
@@ -18824,13 +18858,7 @@
|
|
|
18824
18858
|
item: item,
|
|
18825
18859
|
views: views
|
|
18826
18860
|
});
|
|
18827
|
-
})
|
|
18828
|
-
style: {
|
|
18829
|
-
fontSize: '10px',
|
|
18830
|
-
opacity: 0.7,
|
|
18831
|
-
padding: '4px'
|
|
18832
|
-
}
|
|
18833
|
-
}, "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)))));
|
|
18861
|
+
}));
|
|
18834
18862
|
};
|
|
18835
18863
|
// DropdownMenu Item component
|
|
18836
18864
|
var DropdownMenuItem = _ref4 => {
|
|
@@ -22853,6 +22881,147 @@
|
|
|
22853
22881
|
var Separator = SeparatorComponent;
|
|
22854
22882
|
var Divider = SeparatorComponent;
|
|
22855
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
|
+
|
|
22856
23025
|
var getThemes$2 = themeMode => {
|
|
22857
23026
|
return {
|
|
22858
23027
|
default: {
|
|
@@ -22898,7 +23067,7 @@
|
|
|
22898
23067
|
};
|
|
22899
23068
|
};
|
|
22900
23069
|
|
|
22901
|
-
var _excluded$
|
|
23070
|
+
var _excluded$1a = ["label", "status", "views", "themeMode"];
|
|
22902
23071
|
var StatusIndicatorView = _ref => {
|
|
22903
23072
|
var {
|
|
22904
23073
|
label,
|
|
@@ -22906,7 +23075,7 @@
|
|
|
22906
23075
|
views,
|
|
22907
23076
|
themeMode: elementMode
|
|
22908
23077
|
} = _ref,
|
|
22909
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23078
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
|
|
22910
23079
|
var {
|
|
22911
23080
|
themeMode
|
|
22912
23081
|
} = appStudio.useTheme();
|
|
@@ -23099,7 +23268,7 @@
|
|
|
23099
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)'
|
|
23100
23269
|
};
|
|
23101
23270
|
|
|
23102
|
-
var _excluded$
|
|
23271
|
+
var _excluded$1b = ["children", "showToggleButton", "views"],
|
|
23103
23272
|
_excluded2$g = ["children", "views"],
|
|
23104
23273
|
_excluded3$a = ["children", "views"],
|
|
23105
23274
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
@@ -23132,7 +23301,7 @@
|
|
|
23132
23301
|
showToggleButton = true,
|
|
23133
23302
|
views
|
|
23134
23303
|
} = _ref2,
|
|
23135
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23304
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
|
|
23136
23305
|
var {
|
|
23137
23306
|
isExpanded,
|
|
23138
23307
|
toggleExpanded,
|
|
@@ -23287,7 +23456,7 @@
|
|
|
23287
23456
|
}))));
|
|
23288
23457
|
};
|
|
23289
23458
|
|
|
23290
|
-
var _excluded$
|
|
23459
|
+
var _excluded$1c = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
23291
23460
|
/**
|
|
23292
23461
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
23293
23462
|
*/
|
|
@@ -23309,7 +23478,7 @@
|
|
|
23309
23478
|
breakpointBehavior = 'overlay',
|
|
23310
23479
|
views
|
|
23311
23480
|
} = _ref,
|
|
23312
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23481
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
|
|
23313
23482
|
var {
|
|
23314
23483
|
isExpanded,
|
|
23315
23484
|
toggleExpanded,
|
|
@@ -23774,7 +23943,7 @@
|
|
|
23774
23943
|
}
|
|
23775
23944
|
};
|
|
23776
23945
|
|
|
23777
|
-
var _excluded$
|
|
23946
|
+
var _excluded$1d = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
23778
23947
|
_excluded2$h = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
23779
23948
|
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
23780
23949
|
// Create context for the Resizable component
|
|
@@ -23819,7 +23988,7 @@
|
|
|
23819
23988
|
onCollapseChange,
|
|
23820
23989
|
views
|
|
23821
23990
|
} = _ref2,
|
|
23822
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23991
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
|
|
23823
23992
|
var {
|
|
23824
23993
|
orientation,
|
|
23825
23994
|
registerPanel,
|
|
@@ -24034,7 +24203,7 @@
|
|
|
24034
24203
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
24035
24204
|
};
|
|
24036
24205
|
|
|
24037
|
-
var _excluded$
|
|
24206
|
+
var _excluded$1e = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
24038
24207
|
/**
|
|
24039
24208
|
* Resizable component for creating resizable panel groups and layouts.
|
|
24040
24209
|
*/
|
|
@@ -24054,7 +24223,7 @@
|
|
|
24054
24223
|
keyboardResizeBy = 10,
|
|
24055
24224
|
views
|
|
24056
24225
|
} = _ref,
|
|
24057
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24226
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
|
|
24058
24227
|
var {
|
|
24059
24228
|
isResizing,
|
|
24060
24229
|
setIsResizing,
|
|
@@ -24822,7 +24991,7 @@
|
|
|
24822
24991
|
color: 'color.gray.500'
|
|
24823
24992
|
};
|
|
24824
24993
|
|
|
24825
|
-
var _excluded$
|
|
24994
|
+
var _excluded$1f = ["value", "onValueChange", "placeholder", "views"],
|
|
24826
24995
|
_excluded2$i = ["children", "views"],
|
|
24827
24996
|
_excluded3$c = ["heading", "children", "views"],
|
|
24828
24997
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
@@ -24854,7 +25023,7 @@
|
|
|
24854
25023
|
placeholder = 'Type a command or search...',
|
|
24855
25024
|
views
|
|
24856
25025
|
} = _ref2,
|
|
24857
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
25026
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
|
|
24858
25027
|
var inputRef = React.useRef(null);
|
|
24859
25028
|
// Focus input when component mounts
|
|
24860
25029
|
React__default.useEffect(() => {
|
|
@@ -25037,7 +25206,7 @@
|
|
|
25037
25206
|
})))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
25038
25207
|
};
|
|
25039
25208
|
|
|
25040
|
-
var _excluded$
|
|
25209
|
+
var _excluded$1g = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
25041
25210
|
/**
|
|
25042
25211
|
* Command component for displaying a command palette with search functionality.
|
|
25043
25212
|
*/
|
|
@@ -25055,7 +25224,7 @@
|
|
|
25055
25224
|
footer,
|
|
25056
25225
|
views
|
|
25057
25226
|
} = _ref,
|
|
25058
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25227
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
|
|
25059
25228
|
var {
|
|
25060
25229
|
search,
|
|
25061
25230
|
setSearch,
|
|
@@ -25283,7 +25452,7 @@
|
|
|
25283
25452
|
}
|
|
25284
25453
|
};
|
|
25285
25454
|
|
|
25286
|
-
var _excluded$
|
|
25455
|
+
var _excluded$1h = ["children", "views", "asChild"],
|
|
25287
25456
|
_excluded2$j = ["children", "views"],
|
|
25288
25457
|
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
25289
25458
|
// Create context for the Tooltip
|
|
@@ -25319,7 +25488,7 @@
|
|
|
25319
25488
|
views,
|
|
25320
25489
|
asChild = false
|
|
25321
25490
|
} = _ref2,
|
|
25322
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
25491
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
|
|
25323
25492
|
var {
|
|
25324
25493
|
openTooltip,
|
|
25325
25494
|
closeTooltip,
|
|
@@ -25500,16 +25669,10 @@
|
|
|
25500
25669
|
borderRadius: 4,
|
|
25501
25670
|
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
25502
25671
|
style: positionStyles
|
|
25503
|
-
}, 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))
|
|
25504
|
-
style: {
|
|
25505
|
-
fontSize: '8px',
|
|
25506
|
-
opacity: 0.7,
|
|
25507
|
-
marginTop: '2px'
|
|
25508
|
-
}
|
|
25509
|
-
}, "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)))))));
|
|
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)))));
|
|
25510
25673
|
};
|
|
25511
25674
|
|
|
25512
|
-
var _excluded$
|
|
25675
|
+
var _excluded$1i = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
25513
25676
|
/**
|
|
25514
25677
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
25515
25678
|
* Supports configurable positions, delays, and styling.
|
|
@@ -25529,7 +25692,7 @@
|
|
|
25529
25692
|
isDisabled = false,
|
|
25530
25693
|
views
|
|
25531
25694
|
} = _ref,
|
|
25532
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25695
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
|
|
25533
25696
|
var tooltipState = useTooltipState({
|
|
25534
25697
|
defaultOpen,
|
|
25535
25698
|
openDelay,
|
|
@@ -26002,7 +26165,7 @@
|
|
|
26002
26165
|
}
|
|
26003
26166
|
};
|
|
26004
26167
|
|
|
26005
|
-
var _excluded$
|
|
26168
|
+
var _excluded$1j = ["children", "views", "baseId"],
|
|
26006
26169
|
_excluded2$k = ["value", "disabled", "icon", "children", "views", "style", "draggable"],
|
|
26007
26170
|
_excluded3$e = ["children", "onClick", "onToggleExpand", "hasChildren", "expanded", "icon", "disabled", "isSelected", "isDragging", "size", "variant", "views"],
|
|
26008
26171
|
_excluded4$b = ["children", "views"];
|
|
@@ -26038,7 +26201,7 @@
|
|
|
26038
26201
|
baseId
|
|
26039
26202
|
// themeMode, // If 'app-studio' ViewProps supports themeMode
|
|
26040
26203
|
} = _ref2,
|
|
26041
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
26204
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
|
|
26042
26205
|
var {
|
|
26043
26206
|
allowDragAndDrop,
|
|
26044
26207
|
handleDrop,
|
|
@@ -26318,7 +26481,7 @@
|
|
|
26318
26481
|
}))));
|
|
26319
26482
|
};
|
|
26320
26483
|
|
|
26321
|
-
var _excluded$
|
|
26484
|
+
var _excluded$1k = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
|
|
26322
26485
|
/**
|
|
26323
26486
|
* Tree component for displaying hierarchical data.
|
|
26324
26487
|
* Supports both compound component pattern (using Tree.Item, Tree.ItemLabel, Tree.ItemContent)
|
|
@@ -26387,7 +26550,7 @@
|
|
|
26387
26550
|
views // Global views configuration
|
|
26388
26551
|
// Remaining ViewProps for the root TreeView container
|
|
26389
26552
|
} = _ref,
|
|
26390
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26553
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
|
|
26391
26554
|
var treeState = useTreeState({
|
|
26392
26555
|
defaultExpandedItems,
|
|
26393
26556
|
expandedItems,
|
|
@@ -26960,7 +27123,7 @@
|
|
|
26960
27123
|
}
|
|
26961
27124
|
};
|
|
26962
27125
|
|
|
26963
|
-
var _excluded$
|
|
27126
|
+
var _excluded$1l = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
|
|
26964
27127
|
_excluded2$l = ["onZoomIn", "onZoomOut", "onReset", "views"],
|
|
26965
27128
|
_excluded3$f = ["onClick", "views"],
|
|
26966
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"];
|
|
@@ -26976,7 +27139,7 @@
|
|
|
26976
27139
|
variant = 'default',
|
|
26977
27140
|
views
|
|
26978
27141
|
} = _ref,
|
|
26979
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27142
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
|
|
26980
27143
|
var handleClick = () => {
|
|
26981
27144
|
if (onSelect) {
|
|
26982
27145
|
onSelect(node.id);
|
|
@@ -27623,7 +27786,7 @@
|
|
|
27623
27786
|
}, "Zoom: ", Math.round(viewport.zoom * 100), "%")));
|
|
27624
27787
|
};
|
|
27625
27788
|
|
|
27626
|
-
var _excluded$
|
|
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"];
|
|
27627
27790
|
/**
|
|
27628
27791
|
* Flow component for creating workflow diagrams.
|
|
27629
27792
|
*
|
|
@@ -27680,7 +27843,7 @@
|
|
|
27680
27843
|
onViewportChange,
|
|
27681
27844
|
views
|
|
27682
27845
|
} = _ref,
|
|
27683
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27846
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
|
|
27684
27847
|
var flowState = useFlowState({
|
|
27685
27848
|
initialNodes: controlledNodes,
|
|
27686
27849
|
initialEdges: controlledEdges,
|
|
@@ -28049,7 +28212,7 @@
|
|
|
28049
28212
|
}
|
|
28050
28213
|
};
|
|
28051
28214
|
|
|
28052
|
-
var _excluded$
|
|
28215
|
+
var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
|
|
28053
28216
|
var GradientView = _ref => {
|
|
28054
28217
|
var {
|
|
28055
28218
|
type = 'linear',
|
|
@@ -28065,7 +28228,7 @@
|
|
|
28065
28228
|
views,
|
|
28066
28229
|
themeMode: elementMode
|
|
28067
28230
|
} = _ref,
|
|
28068
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
28231
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
|
|
28069
28232
|
var {
|
|
28070
28233
|
getColor,
|
|
28071
28234
|
themeMode
|
|
@@ -28141,7 +28304,7 @@
|
|
|
28141
28304
|
return /*#__PURE__*/React__default.createElement(GradientView, Object.assign({}, props));
|
|
28142
28305
|
};
|
|
28143
28306
|
|
|
28144
|
-
var _excluded$
|
|
28307
|
+
var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
|
|
28145
28308
|
_excluded2$m = ["number", "children"],
|
|
28146
28309
|
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
28147
28310
|
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
@@ -28162,7 +28325,7 @@
|
|
|
28162
28325
|
showRadialGradient = true,
|
|
28163
28326
|
views
|
|
28164
28327
|
} = _ref,
|
|
28165
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
28328
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
|
|
28166
28329
|
var gradientColors = {
|
|
28167
28330
|
white: 'rgba(255,255,255,1)',
|
|
28168
28331
|
transparent: 'rgba(255,255,255,0)'
|
|
@@ -29062,7 +29225,7 @@
|
|
|
29062
29225
|
}, step.label))))));
|
|
29063
29226
|
};
|
|
29064
29227
|
|
|
29065
|
-
var _excluded$
|
|
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"];
|
|
29066
29229
|
/**
|
|
29067
29230
|
* AgentChat View Component
|
|
29068
29231
|
*
|
|
@@ -29102,7 +29265,7 @@
|
|
|
29102
29265
|
setError,
|
|
29103
29266
|
setSelectedFiles
|
|
29104
29267
|
} = _ref,
|
|
29105
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
29268
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
|
|
29106
29269
|
/**
|
|
29107
29270
|
* Auto-scroll to bottom when new messages arrive
|
|
29108
29271
|
*/
|
|
@@ -30243,7 +30406,7 @@
|
|
|
30243
30406
|
}, "Clear all filters")))));
|
|
30244
30407
|
};
|
|
30245
30408
|
|
|
30246
|
-
var _excluded$
|
|
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"];
|
|
30247
30410
|
/**
|
|
30248
30411
|
* AgentSession View Component
|
|
30249
30412
|
*
|
|
@@ -30291,7 +30454,7 @@
|
|
|
30291
30454
|
fileInputRef,
|
|
30292
30455
|
handleFileSelect
|
|
30293
30456
|
} = _ref,
|
|
30294
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
30457
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
|
|
30295
30458
|
/**
|
|
30296
30459
|
* Handle session creation
|
|
30297
30460
|
*/
|
|
@@ -32130,7 +32293,7 @@
|
|
|
32130
32293
|
}, renderVisualization())));
|
|
32131
32294
|
};
|
|
32132
32295
|
|
|
32133
|
-
var _excluded$
|
|
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"];
|
|
32134
32297
|
/**
|
|
32135
32298
|
* AgentTrace View Component
|
|
32136
32299
|
*
|
|
@@ -32171,7 +32334,7 @@
|
|
|
32171
32334
|
setCurrentVisualization,
|
|
32172
32335
|
setError
|
|
32173
32336
|
} = _ref,
|
|
32174
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
32337
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
|
|
32175
32338
|
/**
|
|
32176
32339
|
* Handle event selection
|
|
32177
32340
|
*/
|
|
@@ -33860,7 +34023,7 @@
|
|
|
33860
34023
|
}, "Run some evaluations to see performance metrics")))));
|
|
33861
34024
|
};
|
|
33862
34025
|
|
|
33863
|
-
var _excluded$
|
|
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"];
|
|
33864
34027
|
/**
|
|
33865
34028
|
* AgentEval View Component
|
|
33866
34029
|
*
|
|
@@ -33903,7 +34066,7 @@
|
|
|
33903
34066
|
setSearchQuery,
|
|
33904
34067
|
setError
|
|
33905
34068
|
} = _ref,
|
|
33906
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
34069
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
|
|
33907
34070
|
var [activeTab, setActiveTab] = React__default.useState('evaluations');
|
|
33908
34071
|
/**
|
|
33909
34072
|
* Handle evaluation creation
|
|
@@ -34696,6 +34859,7 @@
|
|
|
34696
34859
|
exports.Separator = Separator;
|
|
34697
34860
|
exports.SettingsIcon = SettingsIcon;
|
|
34698
34861
|
exports.ShapeIcon = ShapeIcon;
|
|
34862
|
+
exports.ShareButton = ShareButton;
|
|
34699
34863
|
exports.ShareIcon = ShareIcon;
|
|
34700
34864
|
exports.ShieldIcon = ShieldIcon;
|
|
34701
34865
|
exports.Sidebar = Sidebar;
|