@cere/cere-design-system 0.0.32 → 0.0.34
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/.specify/memory/components-reference.md +38 -0
- package/dist/index.d.mts +44 -1
- package/dist/index.d.ts +44 -1
- package/dist/index.js +78 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -513,6 +513,44 @@ const items: BreadcrumbItem[] = [
|
|
|
513
513
|
|
|
514
514
|
## LAYOUT
|
|
515
515
|
|
|
516
|
+
### EntityHeader
|
|
517
|
+
Composite header for entities (workspaces, accounts, etc.) with title, metadata, and action slots.
|
|
518
|
+
|
|
519
|
+
```typescript
|
|
520
|
+
import { EntityHeader } from '@cere/cere-design-system';
|
|
521
|
+
import type { EntityHeaderProps, PrimaryAction } from '@cere/cere-design-system';
|
|
522
|
+
|
|
523
|
+
<EntityHeader
|
|
524
|
+
title="Game Co. WF 1769936170928"
|
|
525
|
+
subtitle="Gaming Demo Account"
|
|
526
|
+
role="Manager"
|
|
527
|
+
id="W1234567890"
|
|
528
|
+
startActions={<Button variant="secondary">Export</Button>}
|
|
529
|
+
primaryAction={{
|
|
530
|
+
label: 'Members',
|
|
531
|
+
count: 5,
|
|
532
|
+
icon: <AddCircleIcon />,
|
|
533
|
+
onClick: () => console.log('Open members')
|
|
534
|
+
}}
|
|
535
|
+
endActions={<Button variant="tertiary">Settings</Button>}
|
|
536
|
+
onCopyId={() => console.log('ID copied')}
|
|
537
|
+
onMoreOptions={(e) => setAnchorEl(e.currentTarget)}
|
|
538
|
+
/>
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
**Props:**
|
|
542
|
+
- `title: string` - Primary title text (required)
|
|
543
|
+
- `subtitle?: string` - Secondary descriptive text
|
|
544
|
+
- `role?: string` - Role/status label displayed as RoleBadge pill
|
|
545
|
+
- `id?: string` - Entity identifier displayed as IDBlock with copy action
|
|
546
|
+
- `primaryAction?: PrimaryAction` - Main action button config (`{ label, count?, icon?, onClick? }`)
|
|
547
|
+
- `startActions?: ReactNode` - Custom content rendered before the primary action button
|
|
548
|
+
- `endActions?: ReactNode` - Custom content rendered after the primary action button (before more-options)
|
|
549
|
+
- `onCopyId?: () => void` - Callback when ID is copied
|
|
550
|
+
- `onMoreOptions?: (event) => void` - Callback when more options button clicked
|
|
551
|
+
- `headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'` - HTML heading level (default: 'h2')
|
|
552
|
+
- `divider?: boolean` - Show bottom divider line (default: true)
|
|
553
|
+
|
|
516
554
|
### Card
|
|
517
555
|
Container card with header, content, and actions.
|
|
518
556
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1230,6 +1230,17 @@ interface EntityHeaderProps {
|
|
|
1230
1230
|
* Main action button configuration
|
|
1231
1231
|
*/
|
|
1232
1232
|
primaryAction?: PrimaryAction;
|
|
1233
|
+
/**
|
|
1234
|
+
* Additional content rendered before the primary action button.
|
|
1235
|
+
* Accepts any ReactNode (buttons, dropdowns, etc.).
|
|
1236
|
+
*/
|
|
1237
|
+
startActions?: React__default.ReactNode;
|
|
1238
|
+
/**
|
|
1239
|
+
* Additional content rendered after the primary action button
|
|
1240
|
+
* but before the more-options icon button.
|
|
1241
|
+
* Accepts any ReactNode (buttons, dropdowns, etc.).
|
|
1242
|
+
*/
|
|
1243
|
+
endActions?: React__default.ReactNode;
|
|
1233
1244
|
/**
|
|
1234
1245
|
* Callback when ID is copied (internal copy + this callback)
|
|
1235
1246
|
*/
|
|
@@ -2710,6 +2721,32 @@ interface CodeEditorStatusBarProps {
|
|
|
2710
2721
|
*/
|
|
2711
2722
|
declare const CodeEditorStatusBar: React__default.FC<CodeEditorStatusBarProps>;
|
|
2712
2723
|
|
|
2724
|
+
interface CodeEditorWelcomeScreenProps {
|
|
2725
|
+
/** Custom logo or icon displayed in the center. Defaults to the Cere logo. */
|
|
2726
|
+
logo?: React__default.ReactNode;
|
|
2727
|
+
/**
|
|
2728
|
+
* Content rendered below the logo. Accepts any ReactNode —
|
|
2729
|
+
* shortcut hints, action buttons, descriptive text, etc.
|
|
2730
|
+
*/
|
|
2731
|
+
children?: React__default.ReactNode;
|
|
2732
|
+
/** Props forwarded to the outer container `Box`. */
|
|
2733
|
+
containerProps?: BoxProps;
|
|
2734
|
+
}
|
|
2735
|
+
/**
|
|
2736
|
+
* Default empty-state screen shown inside `CodeEditorWorkspace` when no file
|
|
2737
|
+
* is open. Renders a centered logo with an optional content slot underneath.
|
|
2738
|
+
*
|
|
2739
|
+
* @example
|
|
2740
|
+
* ```tsx
|
|
2741
|
+
* <CodeEditorWelcomeScreen>
|
|
2742
|
+
* <Typography variant="body2" color="text.secondary">
|
|
2743
|
+
* Open a file from the tree to start editing
|
|
2744
|
+
* </Typography>
|
|
2745
|
+
* </CodeEditorWelcomeScreen>
|
|
2746
|
+
* ```
|
|
2747
|
+
*/
|
|
2748
|
+
declare const CodeEditorWelcomeScreen: React__default.FC<CodeEditorWelcomeScreenProps>;
|
|
2749
|
+
|
|
2713
2750
|
interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, 'files' | 'initialOpenPaths' | 'onFileChange' | 'onValidationChange'> {
|
|
2714
2751
|
/** File tree data. When omitted the file tree panel is hidden. */
|
|
2715
2752
|
fileTree?: FileTreeNode[];
|
|
@@ -2741,6 +2778,12 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
|
|
|
2741
2778
|
renderStatusBar?: (props: CodeEditorStatusBarProps & {
|
|
2742
2779
|
workspace: UseCodeEditorWorkspaceReturn;
|
|
2743
2780
|
}) => React__default.ReactNode;
|
|
2781
|
+
/** Replace the default welcome screen rendering (shown when no file is open) */
|
|
2782
|
+
renderWelcomeScreen?: (workspace: UseCodeEditorWorkspaceReturn) => React__default.ReactNode;
|
|
2783
|
+
/** Static ReactNode that replaces the default welcome screen entirely */
|
|
2784
|
+
welcomeScreen?: React__default.ReactNode;
|
|
2785
|
+
/** Props forwarded to the default `CodeEditorWelcomeScreen` (ignored when `welcomeScreen` or `renderWelcomeScreen` is provided) */
|
|
2786
|
+
welcomeScreenProps?: CodeEditorWelcomeScreenProps;
|
|
2744
2787
|
/** Git repository information to display in the status bar */
|
|
2745
2788
|
gitInfo?: GitInfo;
|
|
2746
2789
|
/** Whether to show the status bar. @default true */
|
|
@@ -2775,4 +2818,4 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
|
|
|
2775
2818
|
*/
|
|
2776
2819
|
declare const CodeEditorWorkspace: React__default.FC<CodeEditorWorkspaceProps>;
|
|
2777
2820
|
|
|
2778
|
-
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 CodeEditorFile, CodeEditorFileTree, type CodeEditorFileTreeProps, type CodeEditorLanguage, type CodeEditorProps, CodeEditorStatusBar, type CodeEditorStatusBarItem, type CodeEditorStatusBarProps, type CodeEditorStatusBarRenderProps, type CodeEditorTab, type CodeEditorTabRenderProps, CodeEditorTabs, type CodeEditorTabsProps, CodeEditorWorkspace, type CodeEditorWorkspaceProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, type ContextMenuItem, type DataPoint, type DataSeries, DateRangePicker, type DateRangePickerProps, 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, EXTENSION_LANGUAGE_MAP, EmptyState, type EmptyStateProps, EntityHeader, type EntityHeaderProps, type FileTreeNode, type FileTreeNodeRenderProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, type GitInfo, GithubLogoIcon, IDBlock, type IDBlockProps, 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, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, type PrimaryAction, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, RoleBadge, type RoleBadgeColor, type RoleBadgeProps, type RoleBadgeSize, 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, type SummaryItem, SummaryStats, type SummaryStatsProps, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, type TimeRangeOption, TimeRangeSelect, type TimeRangeSelectProps, TimeSeriesGraph, type TimeSeriesGraphProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UseCodeEditorWorkspaceOptions, type UseCodeEditorWorkspaceReturn, type UserInfo, WORKFLOW_NODE_LABELS, WORKFLOW_NODE_SHADOW, WorkflowNode, type WorkflowNodeData, WorkflowNodeHandle, type WorkflowNodeProps, type WorkflowNodeType, WorkflowSideInspector, type WorkflowSideInspectorProps, WorkflowTimeBar, type WorkflowTimeBarProps, WorkflowTopBar, type WorkflowTopBarProps, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, contextMenuItems, detectLanguage, getFileName, robPaletteExtended, robPrimaryPalette, theme, useCodeEditorWorkspace, useIsDesktop, useIsMobile, useIsTablet, useOnboarding, workflowConnectionColors, workflowNodeColors };
|
|
2821
|
+
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 CodeEditorFile, CodeEditorFileTree, type CodeEditorFileTreeProps, type CodeEditorLanguage, type CodeEditorProps, CodeEditorStatusBar, type CodeEditorStatusBarItem, type CodeEditorStatusBarProps, type CodeEditorStatusBarRenderProps, type CodeEditorTab, type CodeEditorTabRenderProps, CodeEditorTabs, type CodeEditorTabsProps, CodeEditorWelcomeScreen, type CodeEditorWelcomeScreenProps, CodeEditorWorkspace, type CodeEditorWorkspaceProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, type ContextMenuItem, type DataPoint, type DataSeries, DateRangePicker, type DateRangePickerProps, 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, EXTENSION_LANGUAGE_MAP, EmptyState, type EmptyStateProps, EntityHeader, type EntityHeaderProps, type FileTreeNode, type FileTreeNodeRenderProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, type GitInfo, GithubLogoIcon, IDBlock, type IDBlockProps, 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, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, type PrimaryAction, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, RoleBadge, type RoleBadgeColor, type RoleBadgeProps, type RoleBadgeSize, 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, type SummaryItem, SummaryStats, type SummaryStatsProps, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, type TimeRangeOption, TimeRangeSelect, type TimeRangeSelectProps, TimeSeriesGraph, type TimeSeriesGraphProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UseCodeEditorWorkspaceOptions, type UseCodeEditorWorkspaceReturn, type UserInfo, WORKFLOW_NODE_LABELS, WORKFLOW_NODE_SHADOW, WorkflowNode, type WorkflowNodeData, WorkflowNodeHandle, type WorkflowNodeProps, type WorkflowNodeType, WorkflowSideInspector, type WorkflowSideInspectorProps, WorkflowTimeBar, type WorkflowTimeBarProps, WorkflowTopBar, type WorkflowTopBarProps, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, contextMenuItems, detectLanguage, getFileName, robPaletteExtended, robPrimaryPalette, theme, useCodeEditorWorkspace, useIsDesktop, useIsMobile, useIsTablet, useOnboarding, workflowConnectionColors, workflowNodeColors };
|
package/dist/index.d.ts
CHANGED
|
@@ -1230,6 +1230,17 @@ interface EntityHeaderProps {
|
|
|
1230
1230
|
* Main action button configuration
|
|
1231
1231
|
*/
|
|
1232
1232
|
primaryAction?: PrimaryAction;
|
|
1233
|
+
/**
|
|
1234
|
+
* Additional content rendered before the primary action button.
|
|
1235
|
+
* Accepts any ReactNode (buttons, dropdowns, etc.).
|
|
1236
|
+
*/
|
|
1237
|
+
startActions?: React__default.ReactNode;
|
|
1238
|
+
/**
|
|
1239
|
+
* Additional content rendered after the primary action button
|
|
1240
|
+
* but before the more-options icon button.
|
|
1241
|
+
* Accepts any ReactNode (buttons, dropdowns, etc.).
|
|
1242
|
+
*/
|
|
1243
|
+
endActions?: React__default.ReactNode;
|
|
1233
1244
|
/**
|
|
1234
1245
|
* Callback when ID is copied (internal copy + this callback)
|
|
1235
1246
|
*/
|
|
@@ -2710,6 +2721,32 @@ interface CodeEditorStatusBarProps {
|
|
|
2710
2721
|
*/
|
|
2711
2722
|
declare const CodeEditorStatusBar: React__default.FC<CodeEditorStatusBarProps>;
|
|
2712
2723
|
|
|
2724
|
+
interface CodeEditorWelcomeScreenProps {
|
|
2725
|
+
/** Custom logo or icon displayed in the center. Defaults to the Cere logo. */
|
|
2726
|
+
logo?: React__default.ReactNode;
|
|
2727
|
+
/**
|
|
2728
|
+
* Content rendered below the logo. Accepts any ReactNode —
|
|
2729
|
+
* shortcut hints, action buttons, descriptive text, etc.
|
|
2730
|
+
*/
|
|
2731
|
+
children?: React__default.ReactNode;
|
|
2732
|
+
/** Props forwarded to the outer container `Box`. */
|
|
2733
|
+
containerProps?: BoxProps;
|
|
2734
|
+
}
|
|
2735
|
+
/**
|
|
2736
|
+
* Default empty-state screen shown inside `CodeEditorWorkspace` when no file
|
|
2737
|
+
* is open. Renders a centered logo with an optional content slot underneath.
|
|
2738
|
+
*
|
|
2739
|
+
* @example
|
|
2740
|
+
* ```tsx
|
|
2741
|
+
* <CodeEditorWelcomeScreen>
|
|
2742
|
+
* <Typography variant="body2" color="text.secondary">
|
|
2743
|
+
* Open a file from the tree to start editing
|
|
2744
|
+
* </Typography>
|
|
2745
|
+
* </CodeEditorWelcomeScreen>
|
|
2746
|
+
* ```
|
|
2747
|
+
*/
|
|
2748
|
+
declare const CodeEditorWelcomeScreen: React__default.FC<CodeEditorWelcomeScreenProps>;
|
|
2749
|
+
|
|
2713
2750
|
interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, 'files' | 'initialOpenPaths' | 'onFileChange' | 'onValidationChange'> {
|
|
2714
2751
|
/** File tree data. When omitted the file tree panel is hidden. */
|
|
2715
2752
|
fileTree?: FileTreeNode[];
|
|
@@ -2741,6 +2778,12 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
|
|
|
2741
2778
|
renderStatusBar?: (props: CodeEditorStatusBarProps & {
|
|
2742
2779
|
workspace: UseCodeEditorWorkspaceReturn;
|
|
2743
2780
|
}) => React__default.ReactNode;
|
|
2781
|
+
/** Replace the default welcome screen rendering (shown when no file is open) */
|
|
2782
|
+
renderWelcomeScreen?: (workspace: UseCodeEditorWorkspaceReturn) => React__default.ReactNode;
|
|
2783
|
+
/** Static ReactNode that replaces the default welcome screen entirely */
|
|
2784
|
+
welcomeScreen?: React__default.ReactNode;
|
|
2785
|
+
/** Props forwarded to the default `CodeEditorWelcomeScreen` (ignored when `welcomeScreen` or `renderWelcomeScreen` is provided) */
|
|
2786
|
+
welcomeScreenProps?: CodeEditorWelcomeScreenProps;
|
|
2744
2787
|
/** Git repository information to display in the status bar */
|
|
2745
2788
|
gitInfo?: GitInfo;
|
|
2746
2789
|
/** Whether to show the status bar. @default true */
|
|
@@ -2775,4 +2818,4 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
|
|
|
2775
2818
|
*/
|
|
2776
2819
|
declare const CodeEditorWorkspace: React__default.FC<CodeEditorWorkspaceProps>;
|
|
2777
2820
|
|
|
2778
|
-
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 CodeEditorFile, CodeEditorFileTree, type CodeEditorFileTreeProps, type CodeEditorLanguage, type CodeEditorProps, CodeEditorStatusBar, type CodeEditorStatusBarItem, type CodeEditorStatusBarProps, type CodeEditorStatusBarRenderProps, type CodeEditorTab, type CodeEditorTabRenderProps, CodeEditorTabs, type CodeEditorTabsProps, CodeEditorWorkspace, type CodeEditorWorkspaceProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, type ContextMenuItem, type DataPoint, type DataSeries, DateRangePicker, type DateRangePickerProps, 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, EXTENSION_LANGUAGE_MAP, EmptyState, type EmptyStateProps, EntityHeader, type EntityHeaderProps, type FileTreeNode, type FileTreeNodeRenderProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, type GitInfo, GithubLogoIcon, IDBlock, type IDBlockProps, 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, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, type PrimaryAction, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, RoleBadge, type RoleBadgeColor, type RoleBadgeProps, type RoleBadgeSize, 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, type SummaryItem, SummaryStats, type SummaryStatsProps, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, type TimeRangeOption, TimeRangeSelect, type TimeRangeSelectProps, TimeSeriesGraph, type TimeSeriesGraphProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UseCodeEditorWorkspaceOptions, type UseCodeEditorWorkspaceReturn, type UserInfo, WORKFLOW_NODE_LABELS, WORKFLOW_NODE_SHADOW, WorkflowNode, type WorkflowNodeData, WorkflowNodeHandle, type WorkflowNodeProps, type WorkflowNodeType, WorkflowSideInspector, type WorkflowSideInspectorProps, WorkflowTimeBar, type WorkflowTimeBarProps, WorkflowTopBar, type WorkflowTopBarProps, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, contextMenuItems, detectLanguage, getFileName, robPaletteExtended, robPrimaryPalette, theme, useCodeEditorWorkspace, useIsDesktop, useIsMobile, useIsTablet, useOnboarding, workflowConnectionColors, workflowNodeColors };
|
|
2821
|
+
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 CodeEditorFile, CodeEditorFileTree, type CodeEditorFileTreeProps, type CodeEditorLanguage, type CodeEditorProps, CodeEditorStatusBar, type CodeEditorStatusBarItem, type CodeEditorStatusBarProps, type CodeEditorStatusBarRenderProps, type CodeEditorTab, type CodeEditorTabRenderProps, CodeEditorTabs, type CodeEditorTabsProps, CodeEditorWelcomeScreen, type CodeEditorWelcomeScreenProps, CodeEditorWorkspace, type CodeEditorWorkspaceProps, Collapse, type CollapseProps, ConnectionStatus, type ConnectionStatusProps, type ContextMenuItem, type DataPoint, type DataSeries, DateRangePicker, type DateRangePickerProps, 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, EXTENSION_LANGUAGE_MAP, EmptyState, type EmptyStateProps, EntityHeader, type EntityHeaderProps, type FileTreeNode, type FileTreeNodeRenderProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, type GitInfo, GithubLogoIcon, IDBlock, type IDBlockProps, 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, MetricsChart, type MetricsChartProps, type MetricsPeriod, NavigationItem, type NavigationItemProps, NavigationList, type NavigationListProps, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, type PrimaryAction, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, RoleBadge, type RoleBadgeColor, type RoleBadgeProps, type RoleBadgeSize, 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, type SummaryItem, SummaryStats, type SummaryStatsProps, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, type TimeRangeOption, TimeRangeSelect, type TimeRangeSelectProps, TimeSeriesGraph, type TimeSeriesGraphProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type UseCodeEditorWorkspaceOptions, type UseCodeEditorWorkspaceReturn, type UserInfo, WORKFLOW_NODE_LABELS, WORKFLOW_NODE_SHADOW, WorkflowNode, type WorkflowNodeData, WorkflowNodeHandle, type WorkflowNodeProps, type WorkflowNodeType, WorkflowSideInspector, type WorkflowSideInspectorProps, WorkflowTimeBar, type WorkflowTimeBarProps, WorkflowTopBar, type WorkflowTopBarProps, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, contextMenuItems, detectLanguage, getFileName, robPaletteExtended, robPrimaryPalette, theme, useCodeEditorWorkspace, useIsDesktop, useIsMobile, useIsTablet, useOnboarding, workflowConnectionColors, workflowNodeColors };
|
package/dist/index.js
CHANGED
|
@@ -63,6 +63,7 @@ __export(index_exports, {
|
|
|
63
63
|
CodeEditorFileTree: () => CodeEditorFileTree,
|
|
64
64
|
CodeEditorStatusBar: () => CodeEditorStatusBar,
|
|
65
65
|
CodeEditorTabs: () => CodeEditorTabs,
|
|
66
|
+
CodeEditorWelcomeScreen: () => CodeEditorWelcomeScreen,
|
|
66
67
|
CodeEditorWorkspace: () => CodeEditorWorkspace,
|
|
67
68
|
Collapse: () => Collapse,
|
|
68
69
|
ConnectionLineType: () => import_reactflow2.ConnectionLineType,
|
|
@@ -4991,6 +4992,8 @@ var EntityHeader = ({
|
|
|
4991
4992
|
role,
|
|
4992
4993
|
id,
|
|
4993
4994
|
primaryAction,
|
|
4995
|
+
startActions,
|
|
4996
|
+
endActions,
|
|
4994
4997
|
onCopyId,
|
|
4995
4998
|
onMoreOptions,
|
|
4996
4999
|
headingLevel = "h2",
|
|
@@ -5079,6 +5082,7 @@ var EntityHeader = ({
|
|
|
5079
5082
|
flexShrink: 0
|
|
5080
5083
|
},
|
|
5081
5084
|
children: [
|
|
5085
|
+
startActions,
|
|
5082
5086
|
primaryAction && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5083
5087
|
Button,
|
|
5084
5088
|
{
|
|
@@ -5091,6 +5095,7 @@ var EntityHeader = ({
|
|
|
5091
5095
|
children: getPrimaryActionLabel()
|
|
5092
5096
|
}
|
|
5093
5097
|
),
|
|
5098
|
+
endActions,
|
|
5094
5099
|
onMoreOptions && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5095
5100
|
import_IconButton4.default,
|
|
5096
5101
|
{
|
|
@@ -8707,14 +8712,18 @@ var configureTypeScript = (monaco) => {
|
|
|
8707
8712
|
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
8708
8713
|
allowNonTsExtensions: true,
|
|
8709
8714
|
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
8710
|
-
module: monaco.languages.typescript.ModuleKind.
|
|
8715
|
+
module: monaco.languages.typescript.ModuleKind.ESNext,
|
|
8711
8716
|
noEmit: false,
|
|
8712
8717
|
lib: ["es2020", "dom"],
|
|
8713
8718
|
noUnusedLocals: false,
|
|
8714
8719
|
noUnusedParameters: false,
|
|
8715
8720
|
noImplicitAny: false,
|
|
8716
8721
|
noImplicitReturns: false,
|
|
8717
|
-
noFallthroughCasesInSwitch: false
|
|
8722
|
+
noFallthroughCasesInSwitch: false,
|
|
8723
|
+
// Treat every file as a module so top-level declarations don't clash
|
|
8724
|
+
// across files in the workspace (prevents false "Cannot redeclare" errors).
|
|
8725
|
+
moduleDetection: 3
|
|
8726
|
+
// ts.ModuleDetectionKind.Force
|
|
8718
8727
|
});
|
|
8719
8728
|
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
|
|
8720
8729
|
noSemanticValidation: false,
|
|
@@ -9844,10 +9853,61 @@ var StatusBarItemElement = ({ item }) => {
|
|
|
9844
9853
|
return inner;
|
|
9845
9854
|
};
|
|
9846
9855
|
|
|
9847
|
-
// src/components/third-party/CodeEditorWorkspace/
|
|
9848
|
-
var import_react40 = __toESM(require("react"));
|
|
9856
|
+
// src/components/third-party/CodeEditorWorkspace/CodeEditorWelcomeScreen.tsx
|
|
9849
9857
|
var import_material77 = require("@mui/material");
|
|
9850
9858
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
9859
|
+
var CodeEditorWelcomeScreen = ({
|
|
9860
|
+
logo,
|
|
9861
|
+
children,
|
|
9862
|
+
containerProps
|
|
9863
|
+
}) => {
|
|
9864
|
+
const defaultLogo = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
9865
|
+
CereIcon,
|
|
9866
|
+
{
|
|
9867
|
+
sx: {
|
|
9868
|
+
fontSize: 80,
|
|
9869
|
+
color: "text.disabled",
|
|
9870
|
+
opacity: 0.4
|
|
9871
|
+
}
|
|
9872
|
+
}
|
|
9873
|
+
);
|
|
9874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
9875
|
+
import_material77.Box,
|
|
9876
|
+
{
|
|
9877
|
+
sx: {
|
|
9878
|
+
flex: 1,
|
|
9879
|
+
display: "flex",
|
|
9880
|
+
flexDirection: "column",
|
|
9881
|
+
alignItems: "center",
|
|
9882
|
+
justifyContent: "center",
|
|
9883
|
+
gap: 3,
|
|
9884
|
+
p: 4,
|
|
9885
|
+
userSelect: "none"
|
|
9886
|
+
},
|
|
9887
|
+
...containerProps,
|
|
9888
|
+
children: [
|
|
9889
|
+
logo !== void 0 ? logo : defaultLogo,
|
|
9890
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
9891
|
+
import_material77.Box,
|
|
9892
|
+
{
|
|
9893
|
+
sx: {
|
|
9894
|
+
display: "flex",
|
|
9895
|
+
flexDirection: "column",
|
|
9896
|
+
alignItems: "center",
|
|
9897
|
+
gap: 1
|
|
9898
|
+
},
|
|
9899
|
+
children
|
|
9900
|
+
}
|
|
9901
|
+
)
|
|
9902
|
+
]
|
|
9903
|
+
}
|
|
9904
|
+
);
|
|
9905
|
+
};
|
|
9906
|
+
|
|
9907
|
+
// src/components/third-party/CodeEditorWorkspace/CodeEditorWorkspace.tsx
|
|
9908
|
+
var import_react40 = __toESM(require("react"));
|
|
9909
|
+
var import_material78 = require("@mui/material");
|
|
9910
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
9851
9911
|
var CodeEditorWorkspace = ({
|
|
9852
9912
|
files,
|
|
9853
9913
|
initialOpenPaths,
|
|
@@ -9865,6 +9925,9 @@ var CodeEditorWorkspace = ({
|
|
|
9865
9925
|
renderFileTree,
|
|
9866
9926
|
renderEditor,
|
|
9867
9927
|
renderStatusBar,
|
|
9928
|
+
renderWelcomeScreen,
|
|
9929
|
+
welcomeScreen,
|
|
9930
|
+
welcomeScreenProps,
|
|
9868
9931
|
gitInfo,
|
|
9869
9932
|
showStatusBar = true,
|
|
9870
9933
|
statusBarItems,
|
|
@@ -9909,7 +9972,7 @@ var CodeEditorWorkspace = ({
|
|
|
9909
9972
|
onTabSelect: workspace.setActiveFile,
|
|
9910
9973
|
onTabClose: workspace.closeFile
|
|
9911
9974
|
};
|
|
9912
|
-
const tabsElement = showTabs ? renderTabs ? renderTabs({ ...tabsProps, workspace }) : /* @__PURE__ */ (0,
|
|
9975
|
+
const tabsElement = showTabs ? renderTabs ? renderTabs({ ...tabsProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CodeEditorTabs, { ...tabsProps }) : null;
|
|
9913
9976
|
const fileTreeProps = {
|
|
9914
9977
|
tree: fileTree ?? [],
|
|
9915
9978
|
selectedPath: workspace.activeFilePath,
|
|
@@ -9917,7 +9980,7 @@ var CodeEditorWorkspace = ({
|
|
|
9917
9980
|
defaultExpandedPaths,
|
|
9918
9981
|
width: fileTreeWidth
|
|
9919
9982
|
};
|
|
9920
|
-
const fileTreeElement = hasFileTree ? renderFileTree ? renderFileTree({ ...fileTreeProps, workspace }) : /* @__PURE__ */ (0,
|
|
9983
|
+
const fileTreeElement = hasFileTree ? renderFileTree ? renderFileTree({ ...fileTreeProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CodeEditorFileTree, { ...fileTreeProps }) : null;
|
|
9921
9984
|
const statusBarProps = {
|
|
9922
9985
|
gitInfo,
|
|
9923
9986
|
language: workspace.activeFile?.language,
|
|
@@ -9925,8 +9988,9 @@ var CodeEditorWorkspace = ({
|
|
|
9925
9988
|
items: statusBarItems,
|
|
9926
9989
|
onBranchClick
|
|
9927
9990
|
};
|
|
9928
|
-
const statusBarElement = showStatusBar ? renderStatusBar ? renderStatusBar({ ...statusBarProps, workspace }) : /* @__PURE__ */ (0,
|
|
9929
|
-
const
|
|
9991
|
+
const statusBarElement = showStatusBar ? renderStatusBar ? renderStatusBar({ ...statusBarProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CodeEditorStatusBar, { ...statusBarProps }) : null;
|
|
9992
|
+
const welcomeElement = renderWelcomeScreen ? renderWelcomeScreen(workspace) : welcomeScreen !== void 0 ? welcomeScreen : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CodeEditorWelcomeScreen, { ...welcomeScreenProps });
|
|
9993
|
+
const editorElement = renderEditor ? renderEditor(workspace) : workspace.activeFile ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
9930
9994
|
CodeEditor,
|
|
9931
9995
|
{
|
|
9932
9996
|
value: workspace.activeFile.value,
|
|
@@ -9944,22 +10008,9 @@ var CodeEditorWorkspace = ({
|
|
|
9944
10008
|
height: "100%",
|
|
9945
10009
|
...editorProps
|
|
9946
10010
|
}
|
|
9947
|
-
) :
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
sx: {
|
|
9951
|
-
flex: 1,
|
|
9952
|
-
display: "flex",
|
|
9953
|
-
alignItems: "center",
|
|
9954
|
-
justifyContent: "center",
|
|
9955
|
-
color: "text.secondary",
|
|
9956
|
-
fontSize: "0.875rem"
|
|
9957
|
-
},
|
|
9958
|
-
children: "Open a file to start editing"
|
|
9959
|
-
}
|
|
9960
|
-
);
|
|
9961
|
-
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
9962
|
-
import_material77.Box,
|
|
10011
|
+
) : welcomeElement;
|
|
10012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
10013
|
+
import_material78.Box,
|
|
9963
10014
|
{
|
|
9964
10015
|
sx: {
|
|
9965
10016
|
display: "flex",
|
|
@@ -9973,9 +10024,9 @@ var CodeEditorWorkspace = ({
|
|
|
9973
10024
|
...containerProps,
|
|
9974
10025
|
children: [
|
|
9975
10026
|
fileTreeElement,
|
|
9976
|
-
/* @__PURE__ */ (0,
|
|
10027
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_material78.Box, { sx: { flex: 1, display: "flex", flexDirection: "column", minWidth: 0, overflow: "hidden" }, children: [
|
|
9977
10028
|
tabsElement,
|
|
9978
|
-
/* @__PURE__ */ (0,
|
|
10029
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material78.Box, { sx: { flex: 1, overflow: "hidden" }, children: editorElement }),
|
|
9979
10030
|
statusBarElement
|
|
9980
10031
|
] })
|
|
9981
10032
|
]
|
|
@@ -10017,6 +10068,7 @@ var CodeEditorWorkspace = ({
|
|
|
10017
10068
|
CodeEditorFileTree,
|
|
10018
10069
|
CodeEditorStatusBar,
|
|
10019
10070
|
CodeEditorTabs,
|
|
10071
|
+
CodeEditorWelcomeScreen,
|
|
10020
10072
|
CodeEditorWorkspace,
|
|
10021
10073
|
Collapse,
|
|
10022
10074
|
ConnectionLineType,
|