@floegence/floe-webapp-core 0.36.72 → 0.36.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/file-browser/DirectoryTree.js +72 -65
- package/dist/components/file-browser/FileGridView.js +78 -72
- package/dist/components/file-browser/FileItemDecorations.d.ts +9 -0
- package/dist/components/file-browser/FileItemDecorations.js +59 -0
- package/dist/components/file-browser/FileListView.js +195 -186
- package/dist/components/file-browser/index.d.ts +1 -1
- package/dist/components/file-browser/types.d.ts +15 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -8,4 +8,4 @@ export { Breadcrumb, type BreadcrumbProps } from './Breadcrumb';
|
|
|
8
8
|
export { FileBrowserToolbar, type FileBrowserToolbarProps } from './FileBrowserToolbar';
|
|
9
9
|
export { FileBrowserDragPreview } from './DragPreview';
|
|
10
10
|
export { FolderIcon, FolderOpenIcon, SymlinkFolderIcon, SymlinkFolderOpenIcon, FileIcon, SymlinkFileIcon, BrokenSymlinkIcon, CodeFileIcon, JavaScriptFileIcon, TypeScriptFileIcon, ShellScriptFileIcon, ImageFileIcon, VideoFileIcon, AudioFileIcon, DocumentFileIcon, ConfigFileIcon, StyleFileIcon, FileItemIcon, getFileIcon, resolveFileItemIcon, } from './FileIcons';
|
|
11
|
-
export type { FileItem, FileItemIconOverride, FileItemLinkKind, FileItemLinkTargetType, FileItemLinkMeta, FileBrowserRevealClearFilter, FileBrowserRevealRequest, ViewMode, SortField, SortDirection, SortConfig, FileListColumnRatios, FileBrowserContextValue, ContextMenuActionType, ContextMenuTargetKind, ContextMenuSource, ContextMenuDirectory, ContextMenuItem, ContextMenuEvent, ContextMenuCallbacks, OptimisticUpdateType, OptimisticRemove, OptimisticUpdate, OptimisticInsert, OptimisticOperation, ReplaceSelectionOptions, ScrollPosition, } from './types';
|
|
11
|
+
export type { FileItem, FileItemIconOverride, FileItemDecoration, FileItemDecorationBadge, FileItemDecorationTone, FileItemLinkKind, FileItemLinkTargetType, FileItemLinkMeta, FileBrowserRevealClearFilter, FileBrowserRevealRequest, ViewMode, SortField, SortDirection, SortConfig, FileListColumnRatios, FileBrowserContextValue, ContextMenuActionType, ContextMenuTargetKind, ContextMenuSource, ContextMenuDirectory, ContextMenuItem, ContextMenuEvent, ContextMenuCallbacks, OptimisticUpdateType, OptimisticRemove, OptimisticUpdate, OptimisticInsert, OptimisticOperation, ReplaceSelectionOptions, ScrollPosition, } from './types';
|
|
@@ -8,6 +8,19 @@ export interface FileItemLinkMeta {
|
|
|
8
8
|
kind: FileItemLinkKind;
|
|
9
9
|
targetType: FileItemLinkTargetType;
|
|
10
10
|
}
|
|
11
|
+
export type FileItemDecorationTone = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error' | 'muted';
|
|
12
|
+
export interface FileItemDecorationBadge {
|
|
13
|
+
/** Short visible marker, for example "M" or "A". Keep this compact. */
|
|
14
|
+
label: string;
|
|
15
|
+
tone?: FileItemDecorationTone;
|
|
16
|
+
title?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface FileItemDecoration {
|
|
19
|
+
/** Optional badge rendered over the file or folder icon. */
|
|
20
|
+
badge?: FileItemDecorationBadge;
|
|
21
|
+
/** Optional tone applied to the visible item name. */
|
|
22
|
+
nameTone?: FileItemDecorationTone;
|
|
23
|
+
}
|
|
11
24
|
/**
|
|
12
25
|
* Represents a file or folder item in the browser
|
|
13
26
|
*/
|
|
@@ -23,6 +36,8 @@ export interface FileItem {
|
|
|
23
36
|
icon?: FileItemIconOverride;
|
|
24
37
|
/** Optional link metadata for rendering symbolic links distinctly from plain entries. */
|
|
25
38
|
link?: FileItemLinkMeta;
|
|
39
|
+
/** Optional visual decoration for host-specific state such as Git status. */
|
|
40
|
+
decoration?: FileItemDecoration;
|
|
26
41
|
}
|
|
27
42
|
/**
|
|
28
43
|
* View mode for the file browser main content area
|