@cere/cere-design-system 0.0.17 → 0.0.19
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/index.d.mts +163 -1
- package/dist/index.d.ts +163 -1
- package/dist/index.js +1043 -354
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +972 -281
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,6 +37,20 @@ import { Monaco } from '@monaco-editor/react';
|
|
|
37
37
|
import { editor } from 'monaco-editor';
|
|
38
38
|
export { default as RadioGroup } from '@mui/material/RadioGroup';
|
|
39
39
|
|
|
40
|
+
declare module '@mui/material/styles' {
|
|
41
|
+
interface Palette {
|
|
42
|
+
deployment: {
|
|
43
|
+
entity: typeof deploymentEntityColors;
|
|
44
|
+
status: typeof deploymentStatusColors;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
interface PaletteOptions {
|
|
48
|
+
deployment?: {
|
|
49
|
+
entity?: Record<string, string>;
|
|
50
|
+
status?: Record<string, string>;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
40
54
|
declare const colors: {
|
|
41
55
|
primary: {
|
|
42
56
|
main: string;
|
|
@@ -97,6 +111,20 @@ declare const colors: {
|
|
|
97
111
|
selected: string;
|
|
98
112
|
};
|
|
99
113
|
};
|
|
114
|
+
declare const deploymentEntityColors: {
|
|
115
|
+
workspace: string;
|
|
116
|
+
stream: string;
|
|
117
|
+
deployment: string;
|
|
118
|
+
engagement: string;
|
|
119
|
+
agent: string;
|
|
120
|
+
};
|
|
121
|
+
declare const deploymentStatusColors: {
|
|
122
|
+
normal: string;
|
|
123
|
+
warning: string;
|
|
124
|
+
error: string;
|
|
125
|
+
disabled: string;
|
|
126
|
+
disabledDim: string;
|
|
127
|
+
};
|
|
100
128
|
declare const theme: Theme;
|
|
101
129
|
|
|
102
130
|
declare const CheckMarkAnimation: () => react_jsx_runtime.JSX.Element;
|
|
@@ -124,9 +152,24 @@ declare const useIsMobile: () => boolean;
|
|
|
124
152
|
|
|
125
153
|
type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
126
154
|
interface ButtonProps extends Omit<ButtonProps$1, 'variant' | 'color'> {
|
|
155
|
+
/**
|
|
156
|
+
* The visual style variant of the button
|
|
157
|
+
* - primary: Filled button with primary color background
|
|
158
|
+
* - secondary: Outlined button with transparent background and border
|
|
159
|
+
* - tertiary: Text button with no background or border
|
|
160
|
+
*/
|
|
127
161
|
variant?: ButtonVariant;
|
|
162
|
+
/**
|
|
163
|
+
* The size of the button
|
|
164
|
+
*/
|
|
128
165
|
size?: 'small' | 'medium' | 'large';
|
|
166
|
+
/**
|
|
167
|
+
* Icon element to display before the button text
|
|
168
|
+
*/
|
|
129
169
|
startIcon?: React__default.ReactNode;
|
|
170
|
+
/**
|
|
171
|
+
* Icon element to display after the button text
|
|
172
|
+
*/
|
|
130
173
|
endIcon?: React__default.ReactNode;
|
|
131
174
|
}
|
|
132
175
|
declare const Button: React__default.FC<ButtonProps>;
|
|
@@ -1095,6 +1138,125 @@ interface ListItemProps extends ListItemProps$1 {
|
|
|
1095
1138
|
}
|
|
1096
1139
|
declare const ListItem: React__default.FC<ListItemProps>;
|
|
1097
1140
|
|
|
1141
|
+
type DeploymentEntityType = 'workspace' | 'stream' | 'deployment' | 'engagement' | 'agent';
|
|
1142
|
+
type DeploymentStatusIndicator = 'normal' | 'warning' | 'error' | 'disabled' | null;
|
|
1143
|
+
interface DeploymentCardAction {
|
|
1144
|
+
id: string;
|
|
1145
|
+
label: string;
|
|
1146
|
+
icon?: React__default.ReactNode;
|
|
1147
|
+
onClick?: () => void;
|
|
1148
|
+
highlight?: boolean;
|
|
1149
|
+
outlined?: boolean;
|
|
1150
|
+
}
|
|
1151
|
+
interface DeploymentDashboardCardProps {
|
|
1152
|
+
/** Entity type: drives chip color and icon (Figma 15-1725, 15-1276) */
|
|
1153
|
+
entityType: DeploymentEntityType;
|
|
1154
|
+
/** Primary title */
|
|
1155
|
+
title: string;
|
|
1156
|
+
/** Display id; when present shows "ID: {id}" with copy action */
|
|
1157
|
+
id?: string;
|
|
1158
|
+
/** Shown as "Created: …" */
|
|
1159
|
+
createdAt?: string;
|
|
1160
|
+
/** Shown as "Last Updated: …" */
|
|
1161
|
+
updatedAt?: string;
|
|
1162
|
+
/** Only for entityType === 'deployment'; shows Capacity label, progress bar, "X%" */
|
|
1163
|
+
capacity?: number;
|
|
1164
|
+
/** Action buttons/chips rendered inline on the right */
|
|
1165
|
+
actions?: DeploymentCardAction[];
|
|
1166
|
+
/** Status dot: green (normal), amber (warning), red (error), white/dim (disabled) */
|
|
1167
|
+
statusIndicator?: DeploymentStatusIndicator;
|
|
1168
|
+
/** Whether to show expand/collapse chevron on the left */
|
|
1169
|
+
expandable?: boolean;
|
|
1170
|
+
/** Controlled expanded state */
|
|
1171
|
+
expanded?: boolean;
|
|
1172
|
+
/** Called when chevron is clicked */
|
|
1173
|
+
onExpandToggle?: () => void;
|
|
1174
|
+
/** When copy ID is clicked */
|
|
1175
|
+
onCopyId?: () => void;
|
|
1176
|
+
/** Optional className */
|
|
1177
|
+
className?: string;
|
|
1178
|
+
/** Child content rendered inside the card border (used by tree to nest children) */
|
|
1179
|
+
children?: React__default.ReactNode;
|
|
1180
|
+
}
|
|
1181
|
+
declare const DeploymentDashboardCard: React__default.FC<DeploymentDashboardCardProps>;
|
|
1182
|
+
|
|
1183
|
+
interface ContextMenuItem {
|
|
1184
|
+
id: string;
|
|
1185
|
+
label: string;
|
|
1186
|
+
icon?: React__default.ReactNode;
|
|
1187
|
+
onClick?: () => void;
|
|
1188
|
+
type?: 'action' | 'toggle';
|
|
1189
|
+
}
|
|
1190
|
+
/** Pre-built item factories for common deployment entity actions (Figma 11-1102) */
|
|
1191
|
+
declare const contextMenuItems: {
|
|
1192
|
+
readonly addEngagement: (onClick: () => void) => ContextMenuItem;
|
|
1193
|
+
readonly addAgent: (onClick: () => void) => ContextMenuItem;
|
|
1194
|
+
readonly addStream: (onClick: () => void) => ContextMenuItem;
|
|
1195
|
+
readonly edit: (onClick: () => void) => ContextMenuItem;
|
|
1196
|
+
readonly copyId: (onClick: () => void) => ContextMenuItem;
|
|
1197
|
+
readonly agentFlowVisualization: (onClick: () => void) => ContextMenuItem;
|
|
1198
|
+
readonly viewLogs: (onClick: () => void) => ContextMenuItem;
|
|
1199
|
+
readonly settings: (onClick: () => void) => ContextMenuItem;
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
interface DeploymentEntityContextMenuProps {
|
|
1203
|
+
/** Controlled open state */
|
|
1204
|
+
open: boolean;
|
|
1205
|
+
/** Anchor for menu position */
|
|
1206
|
+
anchorEl: HTMLElement | null;
|
|
1207
|
+
/** When menu closes */
|
|
1208
|
+
onClose: () => void;
|
|
1209
|
+
/** Menu items to render (use contextMenuItems helpers to build) */
|
|
1210
|
+
items: ContextMenuItem[];
|
|
1211
|
+
/** Whether to show "Enable" row with toggle */
|
|
1212
|
+
enableToggle?: boolean;
|
|
1213
|
+
/** Toggle checked state */
|
|
1214
|
+
enableChecked?: boolean;
|
|
1215
|
+
/** Toggle callback */
|
|
1216
|
+
onEnableChange?: (checked: boolean) => void;
|
|
1217
|
+
}
|
|
1218
|
+
declare const DeploymentEntityContextMenu: React__default.FC<DeploymentEntityContextMenuProps>;
|
|
1219
|
+
|
|
1220
|
+
interface DeploymentTreeNode {
|
|
1221
|
+
id: string;
|
|
1222
|
+
entityType: DeploymentEntityType;
|
|
1223
|
+
title: string;
|
|
1224
|
+
idDisplay?: string;
|
|
1225
|
+
createdAt?: string;
|
|
1226
|
+
updatedAt?: string;
|
|
1227
|
+
capacity?: number;
|
|
1228
|
+
actions?: DeploymentCardAction[];
|
|
1229
|
+
statusIndicator?: DeploymentStatusIndicator;
|
|
1230
|
+
children?: DeploymentTreeNode[];
|
|
1231
|
+
expanded?: boolean;
|
|
1232
|
+
}
|
|
1233
|
+
interface DeploymentDashboardTreeProps {
|
|
1234
|
+
/** Tree of entities */
|
|
1235
|
+
nodes: DeploymentTreeNode[];
|
|
1236
|
+
/** When a row's expand is toggled */
|
|
1237
|
+
onExpandToggle?: (nodeId: string) => void;
|
|
1238
|
+
/** When a card's copy-ID button is clicked */
|
|
1239
|
+
onCopyId?: (nodeId: string) => void;
|
|
1240
|
+
/** Override row content; default: render DeploymentDashboardCard from node data */
|
|
1241
|
+
renderCard?: (node: DeploymentTreeNode) => React__default.ReactNode;
|
|
1242
|
+
}
|
|
1243
|
+
declare const DeploymentDashboardTree: React__default.FC<DeploymentDashboardTreeProps>;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Backdrop/background panel for the deployment list (Figma 15-1325).
|
|
1247
|
+
* Wraps the deployment tree or list in a rounded, light surface with a subtle border
|
|
1248
|
+
* so the list has a clear visual container.
|
|
1249
|
+
*/
|
|
1250
|
+
interface DeploymentDashboardPanelProps {
|
|
1251
|
+
/** Content (e.g. DeploymentDashboardTree or a list of DeploymentDashboardCards) */
|
|
1252
|
+
children: React__default.ReactNode;
|
|
1253
|
+
/** Optional className */
|
|
1254
|
+
className?: string;
|
|
1255
|
+
/** Optional padding override; default uses theme spacing */
|
|
1256
|
+
padding?: number | string;
|
|
1257
|
+
}
|
|
1258
|
+
declare const DeploymentDashboardPanel: React__default.FC<DeploymentDashboardPanelProps>;
|
|
1259
|
+
|
|
1098
1260
|
interface AvatarProps extends AvatarProps$1 {
|
|
1099
1261
|
size?: 'small' | 'medium' | 'large' | number;
|
|
1100
1262
|
}
|
|
@@ -1558,4 +1720,4 @@ interface CodeEditorProps {
|
|
|
1558
1720
|
*/
|
|
1559
1721
|
declare const CodeEditor: React__default.FC<CodeEditorProps>;
|
|
1560
1722
|
|
|
1561
|
-
export { Accordion, type AccordionProps, AccountSection, type AccountSectionProps, ActivityAppIcon, Alert, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, AppLoading, type AppLoadingProps, Avatar, AvatarIcon, type AvatarProps, Badge, type BadgeProps, BarTrackingIcon, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, BytesSize, type BytesSizeProps, Card, CardActions, CardContent, CardHeader, type CardProps, CereIcon, ChartWidget, type ChartWidgetProps, CheckMarkAnimation, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, ClockIcon, CloudFlashIcon, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, DecentralizedServerIcon, Dialog, type DialogProps, DiscordIcon, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, Dropdown, DropdownAnchor, type DropdownAnchorProps, type DropdownProps, EmptyState, type EmptyStateProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, GithubLogoIcon, IconButton, type IconButtonProps, LeftArrowIcon, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Loading, LoadingAnimation, type LoadingAnimationProps, LoadingButton, type LoadingButtonProps, type LoadingProps, Logo, type LogoProps, Markdown, type MarkdownProps, Menu, MenuItem, type MenuItemProps, type MenuProps, type MessageOptions, MessagesProvider, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, SearchField, type SearchFieldProps, Selector, type SelectorOption, type SelectorProps, type Service, ServiceSelectorButton, type ServiceSelectorButtonProps, ShareIcon, SideNav, SideNavHeader, type SideNavHeaderProps, type SideNavProps, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Snackbar, type SnackbarProps, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, StorageAppIcon, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UserInfo, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, theme, useIsDesktop, useIsMobile, useIsTablet, useMessages, useOnboarding };
|
|
1723
|
+
export { Accordion, type AccordionProps, AccountSection, type AccountSectionProps, ActivityAppIcon, Alert, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, AppLoading, type AppLoadingProps, Avatar, AvatarIcon, type AvatarProps, Badge, type BadgeProps, BarTrackingIcon, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, BytesSize, type BytesSizeProps, Card, CardActions, CardContent, CardHeader, type CardProps, CereIcon, ChartWidget, type ChartWidgetProps, CheckMarkAnimation, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, ClockIcon, CloudFlashIcon, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, type ContextMenuItem, DecentralizedServerIcon, type DeploymentCardAction, DeploymentDashboardCard, type DeploymentDashboardCardProps, DeploymentDashboardPanel, type DeploymentDashboardPanelProps, DeploymentDashboardTree, type DeploymentDashboardTreeProps, DeploymentEntityContextMenu, type DeploymentEntityContextMenuProps, type DeploymentEntityType, type DeploymentStatusIndicator, type DeploymentTreeNode, Dialog, type DialogProps, DiscordIcon, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, Dropdown, DropdownAnchor, type DropdownAnchorProps, type DropdownProps, EmptyState, type EmptyStateProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, GithubLogoIcon, IconButton, type IconButtonProps, LeftArrowIcon, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Loading, LoadingAnimation, type LoadingAnimationProps, LoadingButton, type LoadingButtonProps, type LoadingProps, Logo, type LogoProps, Markdown, type MarkdownProps, Menu, MenuItem, type MenuItemProps, type MenuProps, type MessageOptions, MessagesProvider, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, SearchField, type SearchFieldProps, Selector, type SelectorOption, type SelectorProps, type Service, ServiceSelectorButton, type ServiceSelectorButtonProps, ShareIcon, SideNav, SideNavHeader, type SideNavHeaderProps, type SideNavProps, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Snackbar, type SnackbarProps, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, StorageAppIcon, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UserInfo, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, contextMenuItems, theme, useIsDesktop, useIsMobile, useIsTablet, useMessages, useOnboarding };
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,20 @@ import { Monaco } from '@monaco-editor/react';
|
|
|
37
37
|
import { editor } from 'monaco-editor';
|
|
38
38
|
export { default as RadioGroup } from '@mui/material/RadioGroup';
|
|
39
39
|
|
|
40
|
+
declare module '@mui/material/styles' {
|
|
41
|
+
interface Palette {
|
|
42
|
+
deployment: {
|
|
43
|
+
entity: typeof deploymentEntityColors;
|
|
44
|
+
status: typeof deploymentStatusColors;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
interface PaletteOptions {
|
|
48
|
+
deployment?: {
|
|
49
|
+
entity?: Record<string, string>;
|
|
50
|
+
status?: Record<string, string>;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
40
54
|
declare const colors: {
|
|
41
55
|
primary: {
|
|
42
56
|
main: string;
|
|
@@ -97,6 +111,20 @@ declare const colors: {
|
|
|
97
111
|
selected: string;
|
|
98
112
|
};
|
|
99
113
|
};
|
|
114
|
+
declare const deploymentEntityColors: {
|
|
115
|
+
workspace: string;
|
|
116
|
+
stream: string;
|
|
117
|
+
deployment: string;
|
|
118
|
+
engagement: string;
|
|
119
|
+
agent: string;
|
|
120
|
+
};
|
|
121
|
+
declare const deploymentStatusColors: {
|
|
122
|
+
normal: string;
|
|
123
|
+
warning: string;
|
|
124
|
+
error: string;
|
|
125
|
+
disabled: string;
|
|
126
|
+
disabledDim: string;
|
|
127
|
+
};
|
|
100
128
|
declare const theme: Theme;
|
|
101
129
|
|
|
102
130
|
declare const CheckMarkAnimation: () => react_jsx_runtime.JSX.Element;
|
|
@@ -124,9 +152,24 @@ declare const useIsMobile: () => boolean;
|
|
|
124
152
|
|
|
125
153
|
type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
126
154
|
interface ButtonProps extends Omit<ButtonProps$1, 'variant' | 'color'> {
|
|
155
|
+
/**
|
|
156
|
+
* The visual style variant of the button
|
|
157
|
+
* - primary: Filled button with primary color background
|
|
158
|
+
* - secondary: Outlined button with transparent background and border
|
|
159
|
+
* - tertiary: Text button with no background or border
|
|
160
|
+
*/
|
|
127
161
|
variant?: ButtonVariant;
|
|
162
|
+
/**
|
|
163
|
+
* The size of the button
|
|
164
|
+
*/
|
|
128
165
|
size?: 'small' | 'medium' | 'large';
|
|
166
|
+
/**
|
|
167
|
+
* Icon element to display before the button text
|
|
168
|
+
*/
|
|
129
169
|
startIcon?: React__default.ReactNode;
|
|
170
|
+
/**
|
|
171
|
+
* Icon element to display after the button text
|
|
172
|
+
*/
|
|
130
173
|
endIcon?: React__default.ReactNode;
|
|
131
174
|
}
|
|
132
175
|
declare const Button: React__default.FC<ButtonProps>;
|
|
@@ -1095,6 +1138,125 @@ interface ListItemProps extends ListItemProps$1 {
|
|
|
1095
1138
|
}
|
|
1096
1139
|
declare const ListItem: React__default.FC<ListItemProps>;
|
|
1097
1140
|
|
|
1141
|
+
type DeploymentEntityType = 'workspace' | 'stream' | 'deployment' | 'engagement' | 'agent';
|
|
1142
|
+
type DeploymentStatusIndicator = 'normal' | 'warning' | 'error' | 'disabled' | null;
|
|
1143
|
+
interface DeploymentCardAction {
|
|
1144
|
+
id: string;
|
|
1145
|
+
label: string;
|
|
1146
|
+
icon?: React__default.ReactNode;
|
|
1147
|
+
onClick?: () => void;
|
|
1148
|
+
highlight?: boolean;
|
|
1149
|
+
outlined?: boolean;
|
|
1150
|
+
}
|
|
1151
|
+
interface DeploymentDashboardCardProps {
|
|
1152
|
+
/** Entity type: drives chip color and icon (Figma 15-1725, 15-1276) */
|
|
1153
|
+
entityType: DeploymentEntityType;
|
|
1154
|
+
/** Primary title */
|
|
1155
|
+
title: string;
|
|
1156
|
+
/** Display id; when present shows "ID: {id}" with copy action */
|
|
1157
|
+
id?: string;
|
|
1158
|
+
/** Shown as "Created: …" */
|
|
1159
|
+
createdAt?: string;
|
|
1160
|
+
/** Shown as "Last Updated: …" */
|
|
1161
|
+
updatedAt?: string;
|
|
1162
|
+
/** Only for entityType === 'deployment'; shows Capacity label, progress bar, "X%" */
|
|
1163
|
+
capacity?: number;
|
|
1164
|
+
/** Action buttons/chips rendered inline on the right */
|
|
1165
|
+
actions?: DeploymentCardAction[];
|
|
1166
|
+
/** Status dot: green (normal), amber (warning), red (error), white/dim (disabled) */
|
|
1167
|
+
statusIndicator?: DeploymentStatusIndicator;
|
|
1168
|
+
/** Whether to show expand/collapse chevron on the left */
|
|
1169
|
+
expandable?: boolean;
|
|
1170
|
+
/** Controlled expanded state */
|
|
1171
|
+
expanded?: boolean;
|
|
1172
|
+
/** Called when chevron is clicked */
|
|
1173
|
+
onExpandToggle?: () => void;
|
|
1174
|
+
/** When copy ID is clicked */
|
|
1175
|
+
onCopyId?: () => void;
|
|
1176
|
+
/** Optional className */
|
|
1177
|
+
className?: string;
|
|
1178
|
+
/** Child content rendered inside the card border (used by tree to nest children) */
|
|
1179
|
+
children?: React__default.ReactNode;
|
|
1180
|
+
}
|
|
1181
|
+
declare const DeploymentDashboardCard: React__default.FC<DeploymentDashboardCardProps>;
|
|
1182
|
+
|
|
1183
|
+
interface ContextMenuItem {
|
|
1184
|
+
id: string;
|
|
1185
|
+
label: string;
|
|
1186
|
+
icon?: React__default.ReactNode;
|
|
1187
|
+
onClick?: () => void;
|
|
1188
|
+
type?: 'action' | 'toggle';
|
|
1189
|
+
}
|
|
1190
|
+
/** Pre-built item factories for common deployment entity actions (Figma 11-1102) */
|
|
1191
|
+
declare const contextMenuItems: {
|
|
1192
|
+
readonly addEngagement: (onClick: () => void) => ContextMenuItem;
|
|
1193
|
+
readonly addAgent: (onClick: () => void) => ContextMenuItem;
|
|
1194
|
+
readonly addStream: (onClick: () => void) => ContextMenuItem;
|
|
1195
|
+
readonly edit: (onClick: () => void) => ContextMenuItem;
|
|
1196
|
+
readonly copyId: (onClick: () => void) => ContextMenuItem;
|
|
1197
|
+
readonly agentFlowVisualization: (onClick: () => void) => ContextMenuItem;
|
|
1198
|
+
readonly viewLogs: (onClick: () => void) => ContextMenuItem;
|
|
1199
|
+
readonly settings: (onClick: () => void) => ContextMenuItem;
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
interface DeploymentEntityContextMenuProps {
|
|
1203
|
+
/** Controlled open state */
|
|
1204
|
+
open: boolean;
|
|
1205
|
+
/** Anchor for menu position */
|
|
1206
|
+
anchorEl: HTMLElement | null;
|
|
1207
|
+
/** When menu closes */
|
|
1208
|
+
onClose: () => void;
|
|
1209
|
+
/** Menu items to render (use contextMenuItems helpers to build) */
|
|
1210
|
+
items: ContextMenuItem[];
|
|
1211
|
+
/** Whether to show "Enable" row with toggle */
|
|
1212
|
+
enableToggle?: boolean;
|
|
1213
|
+
/** Toggle checked state */
|
|
1214
|
+
enableChecked?: boolean;
|
|
1215
|
+
/** Toggle callback */
|
|
1216
|
+
onEnableChange?: (checked: boolean) => void;
|
|
1217
|
+
}
|
|
1218
|
+
declare const DeploymentEntityContextMenu: React__default.FC<DeploymentEntityContextMenuProps>;
|
|
1219
|
+
|
|
1220
|
+
interface DeploymentTreeNode {
|
|
1221
|
+
id: string;
|
|
1222
|
+
entityType: DeploymentEntityType;
|
|
1223
|
+
title: string;
|
|
1224
|
+
idDisplay?: string;
|
|
1225
|
+
createdAt?: string;
|
|
1226
|
+
updatedAt?: string;
|
|
1227
|
+
capacity?: number;
|
|
1228
|
+
actions?: DeploymentCardAction[];
|
|
1229
|
+
statusIndicator?: DeploymentStatusIndicator;
|
|
1230
|
+
children?: DeploymentTreeNode[];
|
|
1231
|
+
expanded?: boolean;
|
|
1232
|
+
}
|
|
1233
|
+
interface DeploymentDashboardTreeProps {
|
|
1234
|
+
/** Tree of entities */
|
|
1235
|
+
nodes: DeploymentTreeNode[];
|
|
1236
|
+
/** When a row's expand is toggled */
|
|
1237
|
+
onExpandToggle?: (nodeId: string) => void;
|
|
1238
|
+
/** When a card's copy-ID button is clicked */
|
|
1239
|
+
onCopyId?: (nodeId: string) => void;
|
|
1240
|
+
/** Override row content; default: render DeploymentDashboardCard from node data */
|
|
1241
|
+
renderCard?: (node: DeploymentTreeNode) => React__default.ReactNode;
|
|
1242
|
+
}
|
|
1243
|
+
declare const DeploymentDashboardTree: React__default.FC<DeploymentDashboardTreeProps>;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Backdrop/background panel for the deployment list (Figma 15-1325).
|
|
1247
|
+
* Wraps the deployment tree or list in a rounded, light surface with a subtle border
|
|
1248
|
+
* so the list has a clear visual container.
|
|
1249
|
+
*/
|
|
1250
|
+
interface DeploymentDashboardPanelProps {
|
|
1251
|
+
/** Content (e.g. DeploymentDashboardTree or a list of DeploymentDashboardCards) */
|
|
1252
|
+
children: React__default.ReactNode;
|
|
1253
|
+
/** Optional className */
|
|
1254
|
+
className?: string;
|
|
1255
|
+
/** Optional padding override; default uses theme spacing */
|
|
1256
|
+
padding?: number | string;
|
|
1257
|
+
}
|
|
1258
|
+
declare const DeploymentDashboardPanel: React__default.FC<DeploymentDashboardPanelProps>;
|
|
1259
|
+
|
|
1098
1260
|
interface AvatarProps extends AvatarProps$1 {
|
|
1099
1261
|
size?: 'small' | 'medium' | 'large' | number;
|
|
1100
1262
|
}
|
|
@@ -1558,4 +1720,4 @@ interface CodeEditorProps {
|
|
|
1558
1720
|
*/
|
|
1559
1721
|
declare const CodeEditor: React__default.FC<CodeEditorProps>;
|
|
1560
1722
|
|
|
1561
|
-
export { Accordion, type AccordionProps, AccountSection, type AccountSectionProps, ActivityAppIcon, Alert, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, AppLoading, type AppLoadingProps, Avatar, AvatarIcon, type AvatarProps, Badge, type BadgeProps, BarTrackingIcon, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, BytesSize, type BytesSizeProps, Card, CardActions, CardContent, CardHeader, type CardProps, CereIcon, ChartWidget, type ChartWidgetProps, CheckMarkAnimation, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, ClockIcon, CloudFlashIcon, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, DecentralizedServerIcon, Dialog, type DialogProps, DiscordIcon, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, Dropdown, DropdownAnchor, type DropdownAnchorProps, type DropdownProps, EmptyState, type EmptyStateProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, GithubLogoIcon, IconButton, type IconButtonProps, LeftArrowIcon, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Loading, LoadingAnimation, type LoadingAnimationProps, LoadingButton, type LoadingButtonProps, type LoadingProps, Logo, type LogoProps, Markdown, type MarkdownProps, Menu, MenuItem, type MenuItemProps, type MenuProps, type MessageOptions, MessagesProvider, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, SearchField, type SearchFieldProps, Selector, type SelectorOption, type SelectorProps, type Service, ServiceSelectorButton, type ServiceSelectorButtonProps, ShareIcon, SideNav, SideNavHeader, type SideNavHeaderProps, type SideNavProps, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Snackbar, type SnackbarProps, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, StorageAppIcon, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UserInfo, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, theme, useIsDesktop, useIsMobile, useIsTablet, useMessages, useOnboarding };
|
|
1723
|
+
export { Accordion, type AccordionProps, AccountSection, type AccountSectionProps, ActivityAppIcon, Alert, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, AppLoading, type AppLoadingProps, Avatar, AvatarIcon, type AvatarProps, Badge, type BadgeProps, BarTrackingIcon, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, BytesSize, type BytesSizeProps, Card, CardActions, CardContent, CardHeader, type CardProps, CereIcon, ChartWidget, type ChartWidgetProps, CheckMarkAnimation, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, ClockIcon, CloudFlashIcon, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, type ContextMenuItem, DecentralizedServerIcon, type DeploymentCardAction, DeploymentDashboardCard, type DeploymentDashboardCardProps, DeploymentDashboardPanel, type DeploymentDashboardPanelProps, DeploymentDashboardTree, type DeploymentDashboardTreeProps, DeploymentEntityContextMenu, type DeploymentEntityContextMenuProps, type DeploymentEntityType, type DeploymentStatusIndicator, type DeploymentTreeNode, Dialog, type DialogProps, DiscordIcon, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, Dropdown, DropdownAnchor, type DropdownAnchorProps, type DropdownProps, EmptyState, type EmptyStateProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, GithubLogoIcon, IconButton, type IconButtonProps, LeftArrowIcon, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Loading, LoadingAnimation, type LoadingAnimationProps, LoadingButton, type LoadingButtonProps, type LoadingProps, Logo, type LogoProps, Markdown, type MarkdownProps, Menu, MenuItem, type MenuItemProps, type MenuProps, type MessageOptions, MessagesProvider, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, SearchField, type SearchFieldProps, Selector, type SelectorOption, type SelectorProps, type Service, ServiceSelectorButton, type ServiceSelectorButtonProps, ShareIcon, SideNav, SideNavHeader, type SideNavHeaderProps, type SideNavProps, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Snackbar, type SnackbarProps, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, StorageAppIcon, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UserInfo, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, contextMenuItems, theme, useIsDesktop, useIsMobile, useIsTablet, useMessages, useOnboarding };
|