@epam/ai-dial-ui-kit 0.5.0-rc.95 → 0.5.0-rc.97
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/dial-ui-kit.cjs.js +28 -28
- package/dist/dial-ui-kit.es.js +6557 -6516
- package/dist/src/components/FileManager/FileManager.d.ts +3 -0
- package/dist/src/components/FileManager/FileManagerContext.d.ts +2 -0
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +3 -1
- package/dist/src/models/file.d.ts +1 -0
- package/dist/src/types/file-manager.d.ts +3 -1
- package/package.json +1 -1
|
@@ -48,6 +48,7 @@ export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 's
|
|
|
48
48
|
[DialFileManagerActions.Download]?: string;
|
|
49
49
|
[DialFileManagerActions.Delete]?: string;
|
|
50
50
|
[DialFileManagerActions.Move]?: string;
|
|
51
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
export interface DeleteConfirmationOptions {
|
|
@@ -71,6 +72,7 @@ export interface GridOptions extends Omit<DialGridProps<GridRow>, 'rowData' | 'c
|
|
|
71
72
|
[DialFileManagerActions.Delete]?: string;
|
|
72
73
|
[DialFileManagerActions.Move]?: string;
|
|
73
74
|
[DialFileManagerActions.Info]?: string;
|
|
75
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
export type ToolbarOptions = Omit<DialFileManagerToolbarProps, 'areHiddenFilesVisible' | 'onToggleHiddenFiles'> & {
|
|
@@ -129,6 +131,7 @@ export interface DialFileManagerProps {
|
|
|
129
131
|
onUploadArchive?: (file: File, name: string, destinationFolder: string) => void;
|
|
130
132
|
fileMetadataPopupOptions?: FileMetadataPopupOptions;
|
|
131
133
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
134
|
+
onUnshareFile?: (file: DialFile) => void | Promise<void>;
|
|
132
135
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
133
136
|
}
|
|
134
137
|
/**
|
|
@@ -16,6 +16,7 @@ export interface FileManagerGridRow {
|
|
|
16
16
|
nodeType: DialFileNodeType;
|
|
17
17
|
extension?: string;
|
|
18
18
|
isTemporary?: boolean;
|
|
19
|
+
owner?: string;
|
|
19
20
|
}
|
|
20
21
|
export interface FileManagerContextValue {
|
|
21
22
|
className?: string;
|
|
@@ -115,6 +116,7 @@ export interface FileManagerContextValue {
|
|
|
115
116
|
openMetadataPopup: (file: DialFile) => void;
|
|
116
117
|
closeMetadataPopup: () => void;
|
|
117
118
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
119
|
+
onUnshareFile?: (file: DialFile) => void | Promise<void>;
|
|
118
120
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
119
121
|
}
|
|
120
122
|
export declare const FileManagerContext: import('react').Context<FileManagerContextValue | undefined>;
|
|
@@ -10,6 +10,7 @@ export interface UseGridContextMenuProps {
|
|
|
10
10
|
[DialFileManagerActions.Delete]?: string;
|
|
11
11
|
[DialFileManagerActions.Move]?: string;
|
|
12
12
|
[DialFileManagerActions.Info]?: string;
|
|
13
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
13
14
|
};
|
|
14
15
|
onDuplicate: (file: DialFile) => void;
|
|
15
16
|
onCopy: (file: DialFile) => void;
|
|
@@ -18,5 +19,6 @@ export interface UseGridContextMenuProps {
|
|
|
18
19
|
onRename: (filePath: string) => void;
|
|
19
20
|
onDelete: (file: DialFile, parentFolderPath: string) => void;
|
|
20
21
|
onInfo: (file: DialFile) => void;
|
|
22
|
+
onUnshare: (file: DialFile) => void;
|
|
21
23
|
}
|
|
22
|
-
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|
|
24
|
+
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|
|
@@ -10,7 +10,8 @@ export declare enum DialFileManagerActions {
|
|
|
10
10
|
Download = "download",
|
|
11
11
|
Delete = "delete",
|
|
12
12
|
Rename = "rename",
|
|
13
|
-
Info = "info"
|
|
13
|
+
Info = "info",
|
|
14
|
+
Unshare = "unshare"
|
|
14
15
|
}
|
|
15
16
|
export declare enum DialFileManagerConflictActions {
|
|
16
17
|
Replace = "replace",
|
|
@@ -35,5 +36,6 @@ export declare enum FileManagerColumnKey {
|
|
|
35
36
|
UpdatedAt = "updatedAt",
|
|
36
37
|
Size = "size",
|
|
37
38
|
Author = "author",
|
|
39
|
+
Owner = "owner",
|
|
38
40
|
Actions = "__actions"
|
|
39
41
|
}
|