@cere/cere-design-system 0.0.33 → 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/dist/index.d.mts CHANGED
@@ -2721,6 +2721,32 @@ interface CodeEditorStatusBarProps {
2721
2721
  */
2722
2722
  declare const CodeEditorStatusBar: React__default.FC<CodeEditorStatusBarProps>;
2723
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
+
2724
2750
  interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, 'files' | 'initialOpenPaths' | 'onFileChange' | 'onValidationChange'> {
2725
2751
  /** File tree data. When omitted the file tree panel is hidden. */
2726
2752
  fileTree?: FileTreeNode[];
@@ -2752,6 +2778,12 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
2752
2778
  renderStatusBar?: (props: CodeEditorStatusBarProps & {
2753
2779
  workspace: UseCodeEditorWorkspaceReturn;
2754
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;
2755
2787
  /** Git repository information to display in the status bar */
2756
2788
  gitInfo?: GitInfo;
2757
2789
  /** Whether to show the status bar. @default true */
@@ -2786,4 +2818,4 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
2786
2818
  */
2787
2819
  declare const CodeEditorWorkspace: React__default.FC<CodeEditorWorkspaceProps>;
2788
2820
 
2789
- 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
@@ -2721,6 +2721,32 @@ interface CodeEditorStatusBarProps {
2721
2721
  */
2722
2722
  declare const CodeEditorStatusBar: React__default.FC<CodeEditorStatusBarProps>;
2723
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
+
2724
2750
  interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, 'files' | 'initialOpenPaths' | 'onFileChange' | 'onValidationChange'> {
2725
2751
  /** File tree data. When omitted the file tree panel is hidden. */
2726
2752
  fileTree?: FileTreeNode[];
@@ -2752,6 +2778,12 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
2752
2778
  renderStatusBar?: (props: CodeEditorStatusBarProps & {
2753
2779
  workspace: UseCodeEditorWorkspaceReturn;
2754
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;
2755
2787
  /** Git repository information to display in the status bar */
2756
2788
  gitInfo?: GitInfo;
2757
2789
  /** Whether to show the status bar. @default true */
@@ -2786,4 +2818,4 @@ interface CodeEditorWorkspaceProps extends Pick<UseCodeEditorWorkspaceOptions, '
2786
2818
  */
2787
2819
  declare const CodeEditorWorkspace: React__default.FC<CodeEditorWorkspaceProps>;
2788
2820
 
2789
- 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,
@@ -9852,10 +9853,61 @@ var StatusBarItemElement = ({ item }) => {
9852
9853
  return inner;
9853
9854
  };
9854
9855
 
9855
- // src/components/third-party/CodeEditorWorkspace/CodeEditorWorkspace.tsx
9856
- var import_react40 = __toESM(require("react"));
9856
+ // src/components/third-party/CodeEditorWorkspace/CodeEditorWelcomeScreen.tsx
9857
9857
  var import_material77 = require("@mui/material");
9858
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");
9859
9911
  var CodeEditorWorkspace = ({
9860
9912
  files,
9861
9913
  initialOpenPaths,
@@ -9873,6 +9925,9 @@ var CodeEditorWorkspace = ({
9873
9925
  renderFileTree,
9874
9926
  renderEditor,
9875
9927
  renderStatusBar,
9928
+ renderWelcomeScreen,
9929
+ welcomeScreen,
9930
+ welcomeScreenProps,
9876
9931
  gitInfo,
9877
9932
  showStatusBar = true,
9878
9933
  statusBarItems,
@@ -9917,7 +9972,7 @@ var CodeEditorWorkspace = ({
9917
9972
  onTabSelect: workspace.setActiveFile,
9918
9973
  onTabClose: workspace.closeFile
9919
9974
  };
9920
- const tabsElement = showTabs ? renderTabs ? renderTabs({ ...tabsProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CodeEditorTabs, { ...tabsProps }) : null;
9975
+ const tabsElement = showTabs ? renderTabs ? renderTabs({ ...tabsProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CodeEditorTabs, { ...tabsProps }) : null;
9921
9976
  const fileTreeProps = {
9922
9977
  tree: fileTree ?? [],
9923
9978
  selectedPath: workspace.activeFilePath,
@@ -9925,7 +9980,7 @@ var CodeEditorWorkspace = ({
9925
9980
  defaultExpandedPaths,
9926
9981
  width: fileTreeWidth
9927
9982
  };
9928
- const fileTreeElement = hasFileTree ? renderFileTree ? renderFileTree({ ...fileTreeProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CodeEditorFileTree, { ...fileTreeProps }) : null;
9983
+ const fileTreeElement = hasFileTree ? renderFileTree ? renderFileTree({ ...fileTreeProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CodeEditorFileTree, { ...fileTreeProps }) : null;
9929
9984
  const statusBarProps = {
9930
9985
  gitInfo,
9931
9986
  language: workspace.activeFile?.language,
@@ -9933,8 +9988,9 @@ var CodeEditorWorkspace = ({
9933
9988
  items: statusBarItems,
9934
9989
  onBranchClick
9935
9990
  };
9936
- const statusBarElement = showStatusBar ? renderStatusBar ? renderStatusBar({ ...statusBarProps, workspace }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CodeEditorStatusBar, { ...statusBarProps }) : null;
9937
- const editorElement = renderEditor ? renderEditor(workspace) : workspace.activeFile ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
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)(
9938
9994
  CodeEditor,
9939
9995
  {
9940
9996
  value: workspace.activeFile.value,
@@ -9952,22 +10008,9 @@ var CodeEditorWorkspace = ({
9952
10008
  height: "100%",
9953
10009
  ...editorProps
9954
10010
  }
9955
- ) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
9956
- import_material77.Box,
9957
- {
9958
- sx: {
9959
- flex: 1,
9960
- display: "flex",
9961
- alignItems: "center",
9962
- justifyContent: "center",
9963
- color: "text.secondary",
9964
- fontSize: "0.875rem"
9965
- },
9966
- children: "Open a file to start editing"
9967
- }
9968
- );
9969
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
9970
- import_material77.Box,
10011
+ ) : welcomeElement;
10012
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10013
+ import_material78.Box,
9971
10014
  {
9972
10015
  sx: {
9973
10016
  display: "flex",
@@ -9981,9 +10024,9 @@ var CodeEditorWorkspace = ({
9981
10024
  ...containerProps,
9982
10025
  children: [
9983
10026
  fileTreeElement,
9984
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_material77.Box, { sx: { flex: 1, display: "flex", flexDirection: "column", minWidth: 0, overflow: "hidden" }, children: [
10027
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_material78.Box, { sx: { flex: 1, display: "flex", flexDirection: "column", minWidth: 0, overflow: "hidden" }, children: [
9985
10028
  tabsElement,
9986
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_material77.Box, { sx: { flex: 1, overflow: "hidden" }, children: editorElement }),
10029
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material78.Box, { sx: { flex: 1, overflow: "hidden" }, children: editorElement }),
9987
10030
  statusBarElement
9988
10031
  ] })
9989
10032
  ]
@@ -10025,6 +10068,7 @@ var CodeEditorWorkspace = ({
10025
10068
  CodeEditorFileTree,
10026
10069
  CodeEditorStatusBar,
10027
10070
  CodeEditorTabs,
10071
+ CodeEditorWelcomeScreen,
10028
10072
  CodeEditorWorkspace,
10029
10073
  Collapse,
10030
10074
  ConnectionLineType,