@app-studio/web 0.9.24 → 0.9.25
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/Background/Background/Background.props.d.ts +49 -0
- package/dist/components/Background/Background/Background.style.d.ts +9 -0
- package/dist/components/Background/Background/Background.type.d.ts +1 -1
- package/dist/components/Background/Background/Background.view.d.ts +2 -1
- package/dist/components/Background/Background.d.ts +1 -0
- package/dist/components/Background/index.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar/ProgressBar.props.d.ts +35 -0
- package/dist/components/ProgressBar/ProgressBar/ProgressBar.view.d.ts +4 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/StatusIndicator/StatusIndicator/StatusIndicator.props.d.ts +12 -0
- package/dist/components/StatusIndicator/StatusIndicator/StatusIndicator.style.d.ts +10 -0
- package/dist/components/StatusIndicator/StatusIndicator/StatusIndicator.type.d.ts +7 -0
- package/dist/components/StatusIndicator/StatusIndicator/StatusIndicator.view.d.ts +3 -0
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +3 -0
- package/dist/{hooks → components/adk}/useAdk.d.ts +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/pages/progressBar.page.d.ts +3 -0
- package/dist/pages/statusIndicator.page.d.ts +3 -0
- package/dist/web.cjs.development.js +253 -46
- 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 +252 -47
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +253 -46
- 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/docs/adk-components.md +40 -37
- package/docs/adk-quick-start.md +11 -37
- package/package.json +1 -1
- package/docs/adk-customization-guide.md +0 -204
- package/docs/adk-customization-summary.md +0 -157
- /package/dist/{hooks → components/AudioInput}/useAudioRecording.d.ts +0 -0
|
@@ -22678,6 +22678,55 @@
|
|
|
22678
22678
|
};
|
|
22679
22679
|
var Pagination = PaginationComponent;
|
|
22680
22680
|
|
|
22681
|
+
var _excluded$16 = ["value", "max", "color", "backgroundColor", "height", "radius", "views", "themeMode"];
|
|
22682
|
+
var ProgressBarView = _ref => {
|
|
22683
|
+
var {
|
|
22684
|
+
value = 0,
|
|
22685
|
+
max = 100,
|
|
22686
|
+
color = 'theme.primary',
|
|
22687
|
+
backgroundColor = 'color.gray.200',
|
|
22688
|
+
height = 8,
|
|
22689
|
+
radius = 4,
|
|
22690
|
+
views,
|
|
22691
|
+
themeMode: elementMode
|
|
22692
|
+
} = _ref,
|
|
22693
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$16);
|
|
22694
|
+
var {
|
|
22695
|
+
getColor,
|
|
22696
|
+
themeMode
|
|
22697
|
+
} = appStudio.useTheme();
|
|
22698
|
+
var currentMode = elementMode ? elementMode : themeMode;
|
|
22699
|
+
var percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
22700
|
+
var trackColor = getColor(backgroundColor, {
|
|
22701
|
+
themeMode: currentMode
|
|
22702
|
+
});
|
|
22703
|
+
var barColor = getColor(color, {
|
|
22704
|
+
themeMode: currentMode
|
|
22705
|
+
});
|
|
22706
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
22707
|
+
role: "progressbar",
|
|
22708
|
+
"aria-valuenow": value,
|
|
22709
|
+
"aria-valuemin": 0,
|
|
22710
|
+
"aria-valuemax": max,
|
|
22711
|
+
width: "100%",
|
|
22712
|
+
height: height,
|
|
22713
|
+
backgroundColor: trackColor,
|
|
22714
|
+
borderRadius: radius,
|
|
22715
|
+
overflow: "hidden"
|
|
22716
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
22717
|
+
width: percentage + "%",
|
|
22718
|
+
height: "100%",
|
|
22719
|
+
backgroundColor: barColor,
|
|
22720
|
+
borderRadius: radius
|
|
22721
|
+
}, views == null ? void 0 : views.bar)));
|
|
22722
|
+
};
|
|
22723
|
+
|
|
22724
|
+
/**
|
|
22725
|
+
* ProgressBar component displays completion status of a task or process.
|
|
22726
|
+
*/
|
|
22727
|
+
var ProgressBarComponent = props => (/*#__PURE__*/React__default.createElement(ProgressBarView, Object.assign({}, props)));
|
|
22728
|
+
var ProgressBar = ProgressBarComponent;
|
|
22729
|
+
|
|
22681
22730
|
/**
|
|
22682
22731
|
* Separator Styles
|
|
22683
22732
|
*
|
|
@@ -22724,7 +22773,7 @@
|
|
|
22724
22773
|
}
|
|
22725
22774
|
};
|
|
22726
22775
|
|
|
22727
|
-
var _excluded$
|
|
22776
|
+
var _excluded$17 = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
22728
22777
|
var SeparatorView = _ref => {
|
|
22729
22778
|
var {
|
|
22730
22779
|
orientation = 'horizontal',
|
|
@@ -22736,7 +22785,7 @@
|
|
|
22736
22785
|
decorative = false,
|
|
22737
22786
|
views
|
|
22738
22787
|
} = _ref,
|
|
22739
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
22788
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
|
|
22740
22789
|
// Access theme if needed for future enhancements
|
|
22741
22790
|
var {
|
|
22742
22791
|
themeMode
|
|
@@ -22804,6 +22853,82 @@
|
|
|
22804
22853
|
var Separator = SeparatorComponent;
|
|
22805
22854
|
var Divider = SeparatorComponent;
|
|
22806
22855
|
|
|
22856
|
+
var getThemes$2 = themeMode => {
|
|
22857
|
+
return {
|
|
22858
|
+
default: {
|
|
22859
|
+
indicator: {
|
|
22860
|
+
backgroundColor: 'color.gray.400'
|
|
22861
|
+
},
|
|
22862
|
+
label: {
|
|
22863
|
+
color: 'color.gray.700'
|
|
22864
|
+
}
|
|
22865
|
+
},
|
|
22866
|
+
info: {
|
|
22867
|
+
indicator: {
|
|
22868
|
+
backgroundColor: 'color.blue.500'
|
|
22869
|
+
},
|
|
22870
|
+
label: {
|
|
22871
|
+
color: 'color.blue.700'
|
|
22872
|
+
}
|
|
22873
|
+
},
|
|
22874
|
+
success: {
|
|
22875
|
+
indicator: {
|
|
22876
|
+
backgroundColor: 'color.green.500'
|
|
22877
|
+
},
|
|
22878
|
+
label: {
|
|
22879
|
+
color: 'color.green.700'
|
|
22880
|
+
}
|
|
22881
|
+
},
|
|
22882
|
+
warning: {
|
|
22883
|
+
indicator: {
|
|
22884
|
+
backgroundColor: 'color.orange.500'
|
|
22885
|
+
},
|
|
22886
|
+
label: {
|
|
22887
|
+
color: 'color.orange.700'
|
|
22888
|
+
}
|
|
22889
|
+
},
|
|
22890
|
+
error: {
|
|
22891
|
+
indicator: {
|
|
22892
|
+
backgroundColor: 'color.red.500'
|
|
22893
|
+
},
|
|
22894
|
+
label: {
|
|
22895
|
+
color: 'color.red.700'
|
|
22896
|
+
}
|
|
22897
|
+
}
|
|
22898
|
+
};
|
|
22899
|
+
};
|
|
22900
|
+
|
|
22901
|
+
var _excluded$18 = ["label", "status", "views", "themeMode"];
|
|
22902
|
+
var StatusIndicatorView = _ref => {
|
|
22903
|
+
var {
|
|
22904
|
+
label,
|
|
22905
|
+
status = 'default',
|
|
22906
|
+
views,
|
|
22907
|
+
themeMode: elementMode
|
|
22908
|
+
} = _ref,
|
|
22909
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
|
|
22910
|
+
var {
|
|
22911
|
+
themeMode
|
|
22912
|
+
} = appStudio.useTheme();
|
|
22913
|
+
var themes = getThemes$2();
|
|
22914
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
22915
|
+
alignItems: "center",
|
|
22916
|
+
gap: 8,
|
|
22917
|
+
role: "status-indicator"
|
|
22918
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
22919
|
+
role: "status-dot",
|
|
22920
|
+
width: "8px",
|
|
22921
|
+
height: "8px",
|
|
22922
|
+
borderRadius: "50%"
|
|
22923
|
+
}, themes[status].indicator, views == null ? void 0 : views.indicator)), label && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
22924
|
+
role: "status-label",
|
|
22925
|
+
fontSize: "14px",
|
|
22926
|
+
lineHeight: "20px"
|
|
22927
|
+
}, themes[status].label, views == null ? void 0 : views.label), label)));
|
|
22928
|
+
};
|
|
22929
|
+
|
|
22930
|
+
var StatusIndicator = props => (/*#__PURE__*/React__default.createElement(StatusIndicatorView, Object.assign({}, props)));
|
|
22931
|
+
|
|
22807
22932
|
var useSidebarState = function useSidebarState(defaultExpanded, expanded, onExpandedChange, breakpoint) {
|
|
22808
22933
|
if (defaultExpanded === void 0) {
|
|
22809
22934
|
defaultExpanded = true;
|
|
@@ -22974,7 +23099,7 @@
|
|
|
22974
23099
|
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)'
|
|
22975
23100
|
};
|
|
22976
23101
|
|
|
22977
|
-
var _excluded$
|
|
23102
|
+
var _excluded$19 = ["children", "showToggleButton", "views"],
|
|
22978
23103
|
_excluded2$g = ["children", "views"],
|
|
22979
23104
|
_excluded3$a = ["children", "views"],
|
|
22980
23105
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
@@ -23007,7 +23132,7 @@
|
|
|
23007
23132
|
showToggleButton = true,
|
|
23008
23133
|
views
|
|
23009
23134
|
} = _ref2,
|
|
23010
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23135
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$19);
|
|
23011
23136
|
var {
|
|
23012
23137
|
isExpanded,
|
|
23013
23138
|
toggleExpanded,
|
|
@@ -23162,7 +23287,7 @@
|
|
|
23162
23287
|
}))));
|
|
23163
23288
|
};
|
|
23164
23289
|
|
|
23165
|
-
var _excluded$
|
|
23290
|
+
var _excluded$1a = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
23166
23291
|
/**
|
|
23167
23292
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
23168
23293
|
*/
|
|
@@ -23184,7 +23309,7 @@
|
|
|
23184
23309
|
breakpointBehavior = 'overlay',
|
|
23185
23310
|
views
|
|
23186
23311
|
} = _ref,
|
|
23187
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23312
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
|
|
23188
23313
|
var {
|
|
23189
23314
|
isExpanded,
|
|
23190
23315
|
toggleExpanded,
|
|
@@ -23649,7 +23774,7 @@
|
|
|
23649
23774
|
}
|
|
23650
23775
|
};
|
|
23651
23776
|
|
|
23652
|
-
var _excluded$
|
|
23777
|
+
var _excluded$1b = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
23653
23778
|
_excluded2$h = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
23654
23779
|
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
23655
23780
|
// Create context for the Resizable component
|
|
@@ -23694,7 +23819,7 @@
|
|
|
23694
23819
|
onCollapseChange,
|
|
23695
23820
|
views
|
|
23696
23821
|
} = _ref2,
|
|
23697
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23822
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
|
|
23698
23823
|
var {
|
|
23699
23824
|
orientation,
|
|
23700
23825
|
registerPanel,
|
|
@@ -23909,7 +24034,7 @@
|
|
|
23909
24034
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
23910
24035
|
};
|
|
23911
24036
|
|
|
23912
|
-
var _excluded$
|
|
24037
|
+
var _excluded$1c = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
23913
24038
|
/**
|
|
23914
24039
|
* Resizable component for creating resizable panel groups and layouts.
|
|
23915
24040
|
*/
|
|
@@ -23929,7 +24054,7 @@
|
|
|
23929
24054
|
keyboardResizeBy = 10,
|
|
23930
24055
|
views
|
|
23931
24056
|
} = _ref,
|
|
23932
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24057
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
|
|
23933
24058
|
var {
|
|
23934
24059
|
isResizing,
|
|
23935
24060
|
setIsResizing,
|
|
@@ -24697,7 +24822,7 @@
|
|
|
24697
24822
|
color: 'color.gray.500'
|
|
24698
24823
|
};
|
|
24699
24824
|
|
|
24700
|
-
var _excluded$
|
|
24825
|
+
var _excluded$1d = ["value", "onValueChange", "placeholder", "views"],
|
|
24701
24826
|
_excluded2$i = ["children", "views"],
|
|
24702
24827
|
_excluded3$c = ["heading", "children", "views"],
|
|
24703
24828
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
@@ -24729,7 +24854,7 @@
|
|
|
24729
24854
|
placeholder = 'Type a command or search...',
|
|
24730
24855
|
views
|
|
24731
24856
|
} = _ref2,
|
|
24732
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
24857
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
|
|
24733
24858
|
var inputRef = React.useRef(null);
|
|
24734
24859
|
// Focus input when component mounts
|
|
24735
24860
|
React__default.useEffect(() => {
|
|
@@ -24912,7 +25037,7 @@
|
|
|
24912
25037
|
})))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
24913
25038
|
};
|
|
24914
25039
|
|
|
24915
|
-
var _excluded$
|
|
25040
|
+
var _excluded$1e = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
24916
25041
|
/**
|
|
24917
25042
|
* Command component for displaying a command palette with search functionality.
|
|
24918
25043
|
*/
|
|
@@ -24930,7 +25055,7 @@
|
|
|
24930
25055
|
footer,
|
|
24931
25056
|
views
|
|
24932
25057
|
} = _ref,
|
|
24933
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25058
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
|
|
24934
25059
|
var {
|
|
24935
25060
|
search,
|
|
24936
25061
|
setSearch,
|
|
@@ -25158,7 +25283,7 @@
|
|
|
25158
25283
|
}
|
|
25159
25284
|
};
|
|
25160
25285
|
|
|
25161
|
-
var _excluded$
|
|
25286
|
+
var _excluded$1f = ["children", "views", "asChild"],
|
|
25162
25287
|
_excluded2$j = ["children", "views"],
|
|
25163
25288
|
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
25164
25289
|
// Create context for the Tooltip
|
|
@@ -25194,7 +25319,7 @@
|
|
|
25194
25319
|
views,
|
|
25195
25320
|
asChild = false
|
|
25196
25321
|
} = _ref2,
|
|
25197
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
25322
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
|
|
25198
25323
|
var {
|
|
25199
25324
|
openTooltip,
|
|
25200
25325
|
closeTooltip,
|
|
@@ -25384,7 +25509,7 @@
|
|
|
25384
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)))))));
|
|
25385
25510
|
};
|
|
25386
25511
|
|
|
25387
|
-
var _excluded$
|
|
25512
|
+
var _excluded$1g = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
25388
25513
|
/**
|
|
25389
25514
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
25390
25515
|
* Supports configurable positions, delays, and styling.
|
|
@@ -25404,7 +25529,7 @@
|
|
|
25404
25529
|
isDisabled = false,
|
|
25405
25530
|
views
|
|
25406
25531
|
} = _ref,
|
|
25407
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25532
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
|
|
25408
25533
|
var tooltipState = useTooltipState({
|
|
25409
25534
|
defaultOpen,
|
|
25410
25535
|
openDelay,
|
|
@@ -25877,7 +26002,7 @@
|
|
|
25877
26002
|
}
|
|
25878
26003
|
};
|
|
25879
26004
|
|
|
25880
|
-
var _excluded$
|
|
26005
|
+
var _excluded$1h = ["children", "views", "baseId"],
|
|
25881
26006
|
_excluded2$k = ["value", "disabled", "icon", "children", "views", "style", "draggable"],
|
|
25882
26007
|
_excluded3$e = ["children", "onClick", "onToggleExpand", "hasChildren", "expanded", "icon", "disabled", "isSelected", "isDragging", "size", "variant", "views"],
|
|
25883
26008
|
_excluded4$b = ["children", "views"];
|
|
@@ -25913,7 +26038,7 @@
|
|
|
25913
26038
|
baseId
|
|
25914
26039
|
// themeMode, // If 'app-studio' ViewProps supports themeMode
|
|
25915
26040
|
} = _ref2,
|
|
25916
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
26041
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
|
|
25917
26042
|
var {
|
|
25918
26043
|
allowDragAndDrop,
|
|
25919
26044
|
handleDrop,
|
|
@@ -26193,7 +26318,7 @@
|
|
|
26193
26318
|
}))));
|
|
26194
26319
|
};
|
|
26195
26320
|
|
|
26196
|
-
var _excluded$
|
|
26321
|
+
var _excluded$1i = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
|
|
26197
26322
|
/**
|
|
26198
26323
|
* Tree component for displaying hierarchical data.
|
|
26199
26324
|
* Supports both compound component pattern (using Tree.Item, Tree.ItemLabel, Tree.ItemContent)
|
|
@@ -26262,7 +26387,7 @@
|
|
|
26262
26387
|
views // Global views configuration
|
|
26263
26388
|
// Remaining ViewProps for the root TreeView container
|
|
26264
26389
|
} = _ref,
|
|
26265
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26390
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
|
|
26266
26391
|
var treeState = useTreeState({
|
|
26267
26392
|
defaultExpandedItems,
|
|
26268
26393
|
expandedItems,
|
|
@@ -26835,7 +26960,7 @@
|
|
|
26835
26960
|
}
|
|
26836
26961
|
};
|
|
26837
26962
|
|
|
26838
|
-
var _excluded$
|
|
26963
|
+
var _excluded$1j = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
|
|
26839
26964
|
_excluded2$l = ["onZoomIn", "onZoomOut", "onReset", "views"],
|
|
26840
26965
|
_excluded3$f = ["onClick", "views"],
|
|
26841
26966
|
_excluded4$c = ["nodes", "edges", "selectedNodeId", "draggedNodeId", "onNodeSelect", "onAddNode", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "views", "baseId", "viewport", "onZoomIn", "onZoomOut", "onReset", "onViewportChange"];
|
|
@@ -26851,7 +26976,7 @@
|
|
|
26851
26976
|
variant = 'default',
|
|
26852
26977
|
views
|
|
26853
26978
|
} = _ref,
|
|
26854
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26979
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
|
|
26855
26980
|
var handleClick = () => {
|
|
26856
26981
|
if (onSelect) {
|
|
26857
26982
|
onSelect(node.id);
|
|
@@ -27498,7 +27623,7 @@
|
|
|
27498
27623
|
}, "Zoom: ", Math.round(viewport.zoom * 100), "%")));
|
|
27499
27624
|
};
|
|
27500
27625
|
|
|
27501
|
-
var _excluded$
|
|
27626
|
+
var _excluded$1k = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
|
|
27502
27627
|
/**
|
|
27503
27628
|
* Flow component for creating workflow diagrams.
|
|
27504
27629
|
*
|
|
@@ -27555,7 +27680,7 @@
|
|
|
27555
27680
|
onViewportChange,
|
|
27556
27681
|
views
|
|
27557
27682
|
} = _ref,
|
|
27558
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27683
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
|
|
27559
27684
|
var flowState = useFlowState({
|
|
27560
27685
|
initialNodes: controlledNodes,
|
|
27561
27686
|
initialEdges: controlledEdges,
|
|
@@ -27729,6 +27854,39 @@
|
|
|
27729
27854
|
zIndex: 2
|
|
27730
27855
|
}
|
|
27731
27856
|
};
|
|
27857
|
+
/**
|
|
27858
|
+
* Background Video styles
|
|
27859
|
+
*/
|
|
27860
|
+
var BackgroundVideoStyles = {
|
|
27861
|
+
container: {
|
|
27862
|
+
position: 'relative',
|
|
27863
|
+
display: 'flex',
|
|
27864
|
+
flexDirection: 'column',
|
|
27865
|
+
alignItems: 'center',
|
|
27866
|
+
justifyContent: 'center',
|
|
27867
|
+
overflow: 'hidden'
|
|
27868
|
+
},
|
|
27869
|
+
video: {
|
|
27870
|
+
position: 'absolute',
|
|
27871
|
+
top: 0,
|
|
27872
|
+
left: 0,
|
|
27873
|
+
width: '100%',
|
|
27874
|
+
height: '100%',
|
|
27875
|
+
objectFit: 'cover'
|
|
27876
|
+
},
|
|
27877
|
+
overlay: {
|
|
27878
|
+
position: 'absolute',
|
|
27879
|
+
top: 0,
|
|
27880
|
+
left: 0,
|
|
27881
|
+
width: '100%',
|
|
27882
|
+
height: '100%',
|
|
27883
|
+
pointerEvents: 'none'
|
|
27884
|
+
},
|
|
27885
|
+
content: {
|
|
27886
|
+
position: 'relative',
|
|
27887
|
+
zIndex: 2
|
|
27888
|
+
}
|
|
27889
|
+
};
|
|
27732
27890
|
|
|
27733
27891
|
/**
|
|
27734
27892
|
* Gradient Styles
|
|
@@ -27891,7 +28049,7 @@
|
|
|
27891
28049
|
}
|
|
27892
28050
|
};
|
|
27893
28051
|
|
|
27894
|
-
var _excluded$
|
|
28052
|
+
var _excluded$1l = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
|
|
27895
28053
|
var GradientView = _ref => {
|
|
27896
28054
|
var {
|
|
27897
28055
|
type = 'linear',
|
|
@@ -27907,7 +28065,7 @@
|
|
|
27907
28065
|
views,
|
|
27908
28066
|
themeMode: elementMode
|
|
27909
28067
|
} = _ref,
|
|
27910
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
28068
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
|
|
27911
28069
|
var {
|
|
27912
28070
|
getColor,
|
|
27913
28071
|
themeMode
|
|
@@ -27983,15 +28141,16 @@
|
|
|
27983
28141
|
return /*#__PURE__*/React__default.createElement(GradientView, Object.assign({}, props));
|
|
27984
28142
|
};
|
|
27985
28143
|
|
|
27986
|
-
var _excluded$
|
|
28144
|
+
var _excluded$1m = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27987
28145
|
_excluded2$m = ["number", "children"],
|
|
27988
28146
|
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27989
28147
|
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
27990
28148
|
_excluded5$6 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
27991
28149
|
_excluded6$4 = ["rippleCount", "colors", "maxSize", "frequency"],
|
|
27992
28150
|
_excluded7$1 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
27993
|
-
_excluded8$1 = ["children"],
|
|
27994
|
-
_excluded9$1 = ["children",
|
|
28151
|
+
_excluded8$1 = ["children", "src", "autoPlay", "loop", "muted", "playsInline", "overlay", "blendMode", "views", "themeMode"],
|
|
28152
|
+
_excluded9$1 = ["children"],
|
|
28153
|
+
_excluded10$1 = ["children", "views"];
|
|
27995
28154
|
// Background Context
|
|
27996
28155
|
var BackgroundContext = /*#__PURE__*/React.createContext({});
|
|
27997
28156
|
/**
|
|
@@ -28003,7 +28162,7 @@
|
|
|
28003
28162
|
showRadialGradient = true,
|
|
28004
28163
|
views
|
|
28005
28164
|
} = _ref,
|
|
28006
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
28165
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
|
|
28007
28166
|
var gradientColors = {
|
|
28008
28167
|
white: 'rgba(255,255,255,1)',
|
|
28009
28168
|
transparent: 'rgba(255,255,255,0)'
|
|
@@ -28414,23 +28573,61 @@
|
|
|
28414
28573
|
style: overlayStyle
|
|
28415
28574
|
}), children && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, BackgroundImageStyles.content, views == null ? void 0 : views.content), children)));
|
|
28416
28575
|
};
|
|
28576
|
+
/**
|
|
28577
|
+
* Background Video Component
|
|
28578
|
+
*/
|
|
28579
|
+
var BackgroundVideo = _ref8 => {
|
|
28580
|
+
var {
|
|
28581
|
+
children,
|
|
28582
|
+
src,
|
|
28583
|
+
autoPlay = true,
|
|
28584
|
+
loop = true,
|
|
28585
|
+
muted = true,
|
|
28586
|
+
playsInline = true,
|
|
28587
|
+
overlay,
|
|
28588
|
+
blendMode = 'normal',
|
|
28589
|
+
views,
|
|
28590
|
+
themeMode: elementMode
|
|
28591
|
+
} = _ref8,
|
|
28592
|
+
props = _objectWithoutPropertiesLoose(_ref8, _excluded8$1);
|
|
28593
|
+
var {
|
|
28594
|
+
getColor
|
|
28595
|
+
} = appStudio.useTheme();
|
|
28596
|
+
var overlayStyle = overlay ? Object.assign({}, BackgroundVideoStyles.overlay, {
|
|
28597
|
+
backgroundColor: getColor(overlay, elementMode ? {
|
|
28598
|
+
themeMode: elementMode
|
|
28599
|
+
} : undefined),
|
|
28600
|
+
mixBlendMode: blendMode
|
|
28601
|
+
}) : {};
|
|
28602
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, BackgroundVideoStyles.container, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
28603
|
+
as: "video",
|
|
28604
|
+
src: src,
|
|
28605
|
+
autoPlay: autoPlay,
|
|
28606
|
+
loop: loop,
|
|
28607
|
+
muted: muted,
|
|
28608
|
+
playsInline: playsInline,
|
|
28609
|
+
style: BackgroundVideoStyles.video
|
|
28610
|
+
}, views == null ? void 0 : views.video)), overlay && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
28611
|
+
style: overlayStyle
|
|
28612
|
+
}, views == null ? void 0 : views.overlay)), children && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, BackgroundVideoStyles.content, views == null ? void 0 : views.content), children)));
|
|
28613
|
+
};
|
|
28417
28614
|
/**
|
|
28418
28615
|
* Background Gradient Component
|
|
28419
28616
|
* Uses the existing Gradient component as a background
|
|
28420
28617
|
*/
|
|
28421
|
-
var BackgroundGradient =
|
|
28618
|
+
var BackgroundGradient = _ref9 => {
|
|
28422
28619
|
var {
|
|
28423
28620
|
children
|
|
28424
|
-
} =
|
|
28425
|
-
gradientProps = _objectWithoutPropertiesLoose(
|
|
28621
|
+
} = _ref9,
|
|
28622
|
+
gradientProps = _objectWithoutPropertiesLoose(_ref9, _excluded9$1);
|
|
28426
28623
|
return /*#__PURE__*/React__default.createElement(Gradient, Object.assign({}, gradientProps), children);
|
|
28427
28624
|
};
|
|
28428
|
-
var BackgroundViewBase =
|
|
28625
|
+
var BackgroundViewBase = _ref10 => {
|
|
28429
28626
|
var {
|
|
28430
28627
|
children,
|
|
28431
28628
|
views
|
|
28432
|
-
} =
|
|
28433
|
-
props = _objectWithoutPropertiesLoose(
|
|
28629
|
+
} = _ref10,
|
|
28630
|
+
props = _objectWithoutPropertiesLoose(_ref10, _excluded10$1);
|
|
28434
28631
|
return /*#__PURE__*/React__default.createElement(BackgroundContext.Provider, {
|
|
28435
28632
|
value: {}
|
|
28436
28633
|
}, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultBackgroundStyles.container, views == null ? void 0 : views.container, props), children));
|
|
@@ -28445,6 +28642,7 @@
|
|
|
28445
28642
|
BackgroundView.Grid = Grid;
|
|
28446
28643
|
BackgroundView.Ripples = Ripples;
|
|
28447
28644
|
BackgroundView.Image = BackgroundImage;
|
|
28645
|
+
BackgroundView.Video = BackgroundVideo;
|
|
28448
28646
|
BackgroundView.Gradient = BackgroundGradient;
|
|
28449
28647
|
|
|
28450
28648
|
/**
|
|
@@ -28483,6 +28681,12 @@
|
|
|
28483
28681
|
* </Background.Image>
|
|
28484
28682
|
*
|
|
28485
28683
|
* @example
|
|
28684
|
+
* // Background Video
|
|
28685
|
+
* <Background.Video src="/path/to/video.mp4" overlay="rgba(0,0,0,0.5)">
|
|
28686
|
+
* <Text color="white">Content over video</Text>
|
|
28687
|
+
* </Background.Video>
|
|
28688
|
+
*
|
|
28689
|
+
* @example
|
|
28486
28690
|
* // Background Gradient
|
|
28487
28691
|
* <Background.Gradient from="blue.500" to="purple.500" animate={true}>
|
|
28488
28692
|
* <Text color="white">Content over gradient</Text>
|
|
@@ -28500,6 +28704,7 @@
|
|
|
28500
28704
|
Grid: BackgroundView.Grid,
|
|
28501
28705
|
Ripples: BackgroundView.Ripples,
|
|
28502
28706
|
Image: BackgroundView.Image,
|
|
28707
|
+
Video: BackgroundView.Video,
|
|
28503
28708
|
Gradient: BackgroundView.Gradient
|
|
28504
28709
|
});
|
|
28505
28710
|
Background.displayName = 'Background';
|
|
@@ -28857,7 +29062,7 @@
|
|
|
28857
29062
|
}, step.label))))));
|
|
28858
29063
|
};
|
|
28859
29064
|
|
|
28860
|
-
var _excluded$
|
|
29065
|
+
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"];
|
|
28861
29066
|
/**
|
|
28862
29067
|
* AgentChat View Component
|
|
28863
29068
|
*
|
|
@@ -28897,7 +29102,7 @@
|
|
|
28897
29102
|
setError,
|
|
28898
29103
|
setSelectedFiles
|
|
28899
29104
|
} = _ref,
|
|
28900
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
29105
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
|
|
28901
29106
|
/**
|
|
28902
29107
|
* Auto-scroll to bottom when new messages arrive
|
|
28903
29108
|
*/
|
|
@@ -30038,7 +30243,7 @@
|
|
|
30038
30243
|
}, "Clear all filters")))));
|
|
30039
30244
|
};
|
|
30040
30245
|
|
|
30041
|
-
var _excluded$
|
|
30246
|
+
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"];
|
|
30042
30247
|
/**
|
|
30043
30248
|
* AgentSession View Component
|
|
30044
30249
|
*
|
|
@@ -30086,7 +30291,7 @@
|
|
|
30086
30291
|
fileInputRef,
|
|
30087
30292
|
handleFileSelect
|
|
30088
30293
|
} = _ref,
|
|
30089
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
30294
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
|
|
30090
30295
|
/**
|
|
30091
30296
|
* Handle session creation
|
|
30092
30297
|
*/
|
|
@@ -31925,7 +32130,7 @@
|
|
|
31925
32130
|
}, renderVisualization())));
|
|
31926
32131
|
};
|
|
31927
32132
|
|
|
31928
|
-
var _excluded$
|
|
32133
|
+
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"];
|
|
31929
32134
|
/**
|
|
31930
32135
|
* AgentTrace View Component
|
|
31931
32136
|
*
|
|
@@ -31966,7 +32171,7 @@
|
|
|
31966
32171
|
setCurrentVisualization,
|
|
31967
32172
|
setError
|
|
31968
32173
|
} = _ref,
|
|
31969
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
32174
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
|
|
31970
32175
|
/**
|
|
31971
32176
|
* Handle event selection
|
|
31972
32177
|
*/
|
|
@@ -33655,7 +33860,7 @@
|
|
|
33655
33860
|
}, "Run some evaluations to see performance metrics")))));
|
|
33656
33861
|
};
|
|
33657
33862
|
|
|
33658
|
-
var _excluded$
|
|
33863
|
+
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"];
|
|
33659
33864
|
/**
|
|
33660
33865
|
* AgentEval View Component
|
|
33661
33866
|
*
|
|
@@ -33698,7 +33903,7 @@
|
|
|
33698
33903
|
setSearchQuery,
|
|
33699
33904
|
setError
|
|
33700
33905
|
} = _ref,
|
|
33701
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
33906
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
|
|
33702
33907
|
var [activeTab, setActiveTab] = React__default.useState('evaluations');
|
|
33703
33908
|
/**
|
|
33704
33909
|
* Handle evaluation creation
|
|
@@ -34480,6 +34685,7 @@
|
|
|
34480
34685
|
exports.PowerOffIcon = PowerOffIcon;
|
|
34481
34686
|
exports.PrintIcon = PrintIcon;
|
|
34482
34687
|
exports.ProfileIcon = ProfileIcon;
|
|
34688
|
+
exports.ProgressBar = ProgressBar;
|
|
34483
34689
|
exports.RefreshIcon = RefreshIcon;
|
|
34484
34690
|
exports.Resizable = Resizable;
|
|
34485
34691
|
exports.RotateIcon = RotateIcon;
|
|
@@ -34497,6 +34703,7 @@
|
|
|
34497
34703
|
exports.SliderIcon = SliderIcon;
|
|
34498
34704
|
exports.SpinnerIcon = SpinnerIcon;
|
|
34499
34705
|
exports.StarIcon = StarIcon;
|
|
34706
|
+
exports.StatusIndicator = StatusIndicator;
|
|
34500
34707
|
exports.StopIcon = StopIcon;
|
|
34501
34708
|
exports.SuccessIcon = SuccessIcon;
|
|
34502
34709
|
exports.Switch = Switch;
|