@burdenoff/microfe-files 2026.525.2 → 2026.527.1
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/files/components/ActionMenu.js +3 -1
- package/dist/files/components/ActionMenu.js.map +1 -1
- package/dist/files/components/ContextMenu.js +16 -112
- package/dist/files/components/ContextMenu.js.map +1 -1
- package/dist/files/components/CopyDialog.js +8 -0
- package/dist/files/components/CopyDialog.js.map +1 -1
- package/dist/files/components/EmptyState.js +2 -0
- package/dist/files/components/EmptyState.js.map +1 -1
- package/dist/files/components/FileBrowser.js +6 -1
- package/dist/files/components/FileBrowser.js.map +1 -1
- package/dist/files/components/FileCard.js +4 -0
- package/dist/files/components/FileCard.js.map +1 -1
- package/dist/files/components/FileInfoPanel.js +2 -0
- package/dist/files/components/FileInfoPanel.js.map +1 -1
- package/dist/files/components/FileListItem.js +6 -0
- package/dist/files/components/FileListItem.js.map +1 -1
- package/dist/files/components/FilePreviewModal.js +9 -3
- package/dist/files/components/FilePreviewModal.js.map +1 -1
- package/dist/files/components/FileVersionPanel.js +5 -0
- package/dist/files/components/FileVersionPanel.js.map +1 -1
- package/dist/files/components/FolderCard.js +3 -0
- package/dist/files/components/FolderCard.js.map +1 -1
- package/dist/files/components/MoveDialog.js +8 -0
- package/dist/files/components/MoveDialog.js.map +1 -1
- package/dist/files/components/SearchBar.js +4 -0
- package/dist/files/components/SearchBar.js.map +1 -1
- package/dist/files/components/ShareDialog.js +109 -104
- package/dist/files/components/ShareDialog.js.map +1 -1
- package/dist/files/components/TabBar.js +1 -0
- package/dist/files/components/TabBar.js.map +1 -1
- package/dist/files/components/Toast.js +1 -0
- package/dist/files/components/Toast.js.map +1 -1
- package/dist/files/components/UploadQueue.js +5 -0
- package/dist/files/components/UploadQueue.js.map +1 -1
- package/dist/files/components/contextMenuItems.js +103 -0
- package/dist/files/components/contextMenuItems.js.map +1 -0
- package/dist/files/components/viewers/AudioPlayer.js +4 -1
- package/dist/files/components/viewers/AudioPlayer.js.map +1 -1
- package/dist/files/components/viewers/CodeViewer.js +2 -0
- package/dist/files/components/viewers/CodeViewer.js.map +1 -1
- package/dist/files/components/viewers/ImageViewer.js +4 -0
- package/dist/files/components/viewers/ImageViewer.js.map +1 -1
- package/dist/files/components/viewers/PDFViewer.js +2 -0
- package/dist/files/components/viewers/PDFViewer.js.map +1 -1
- package/dist/files/components/viewers/TextViewer.js +4 -2
- package/dist/files/components/viewers/TextViewer.js.map +1 -1
- package/dist/files/components/viewers/VideoPlayer.js +5 -1
- package/dist/files/components/viewers/VideoPlayer.js.map +1 -1
- package/dist/files/hooks/useBatchOperations.js.map +1 -1
- package/dist/files/hooks/useFileVersions.js.map +1 -1
- package/dist/files/pages/BrowserPage.js +18 -2
- package/dist/files/pages/BrowserPage.js.map +1 -1
- package/dist/files/pages/ShareAccessPage.js +6 -5
- package/dist/files/pages/ShareAccessPage.js.map +1 -1
- package/dist/files/utils/index.js +1 -1
- package/dist/files/utils/index.js.map +1 -1
- package/dist/files/utils/thumbnail.js.map +1 -1
- package/dist/files.js +2 -1
- package/dist/translations/en.js +259 -0
- package/dist/translations/en.js.map +1 -0
- package/package.json +1 -4
- package/dist/config/index.d.ts +0 -33
- package/dist/config/index.d.ts.map +0 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/files/FilesRoot.d.ts +0 -31
- package/dist/files/FilesRoot.d.ts.map +0 -1
- package/dist/files/FilesRoutes.d.ts +0 -12
- package/dist/files/FilesRoutes.d.ts.map +0 -1
- package/dist/files/components/ActionMenu.d.ts +0 -19
- package/dist/files/components/ActionMenu.d.ts.map +0 -1
- package/dist/files/components/ConfirmDialog.d.ts +0 -14
- package/dist/files/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/files/components/ContextMenu.d.ts +0 -59
- package/dist/files/components/ContextMenu.d.ts.map +0 -1
- package/dist/files/components/CopyDialog.d.ts +0 -12
- package/dist/files/components/CopyDialog.d.ts.map +0 -1
- package/dist/files/components/EmptyState.d.ts +0 -8
- package/dist/files/components/EmptyState.d.ts.map +0 -1
- package/dist/files/components/FileBrowser.d.ts +0 -37
- package/dist/files/components/FileBrowser.d.ts.map +0 -1
- package/dist/files/components/FileCard.d.ts +0 -30
- package/dist/files/components/FileCard.d.ts.map +0 -1
- package/dist/files/components/FileInfoPanel.d.ts +0 -9
- package/dist/files/components/FileInfoPanel.d.ts.map +0 -1
- package/dist/files/components/FileListItem.d.ts +0 -29
- package/dist/files/components/FileListItem.d.ts.map +0 -1
- package/dist/files/components/FilePreviewModal.d.ts +0 -17
- package/dist/files/components/FilePreviewModal.d.ts.map +0 -1
- package/dist/files/components/FileVersionPanel.d.ts +0 -9
- package/dist/files/components/FileVersionPanel.d.ts.map +0 -1
- package/dist/files/components/FolderCard.d.ts +0 -34
- package/dist/files/components/FolderCard.d.ts.map +0 -1
- package/dist/files/components/MoveDialog.d.ts +0 -12
- package/dist/files/components/MoveDialog.d.ts.map +0 -1
- package/dist/files/components/SearchBar.d.ts +0 -13
- package/dist/files/components/SearchBar.d.ts.map +0 -1
- package/dist/files/components/ShareDialog.d.ts +0 -24
- package/dist/files/components/ShareDialog.d.ts.map +0 -1
- package/dist/files/components/TabBar.d.ts +0 -14
- package/dist/files/components/TabBar.d.ts.map +0 -1
- package/dist/files/components/Toast.d.ts +0 -14
- package/dist/files/components/Toast.d.ts.map +0 -1
- package/dist/files/components/UploadQueue.d.ts +0 -21
- package/dist/files/components/UploadQueue.d.ts.map +0 -1
- package/dist/files/components/index.d.ts +0 -43
- package/dist/files/components/index.d.ts.map +0 -1
- package/dist/files/components/viewers/AudioPlayer.d.ts +0 -8
- package/dist/files/components/viewers/AudioPlayer.d.ts.map +0 -1
- package/dist/files/components/viewers/CodeViewer.d.ts +0 -16
- package/dist/files/components/viewers/CodeViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/ImageViewer.d.ts +0 -8
- package/dist/files/components/viewers/ImageViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/PDFViewer.d.ts +0 -15
- package/dist/files/components/viewers/PDFViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/TextViewer.d.ts +0 -8
- package/dist/files/components/viewers/TextViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/VideoPlayer.d.ts +0 -8
- package/dist/files/components/viewers/VideoPlayer.d.ts.map +0 -1
- package/dist/files/components/viewers/index.d.ts +0 -7
- package/dist/files/components/viewers/index.d.ts.map +0 -1
- package/dist/files/components/viewers/index.js +0 -6
- package/dist/files/graphql-types.d.ts +0 -317
- package/dist/files/graphql-types.d.ts.map +0 -1
- package/dist/files/hooks/useBatchOperations.d.ts +0 -32
- package/dist/files/hooks/useBatchOperations.d.ts.map +0 -1
- package/dist/files/hooks/useBinItems.d.ts +0 -11
- package/dist/files/hooks/useBinItems.d.ts.map +0 -1
- package/dist/files/hooks/useBrowsePage.d.ts +0 -18
- package/dist/files/hooks/useBrowsePage.d.ts.map +0 -1
- package/dist/files/hooks/useCopyFile.d.ts +0 -14
- package/dist/files/hooks/useCopyFile.d.ts.map +0 -1
- package/dist/files/hooks/useCreateFolder.d.ts +0 -14
- package/dist/files/hooks/useCreateFolder.d.ts.map +0 -1
- package/dist/files/hooks/useCreateFolderShare.d.ts +0 -16
- package/dist/files/hooks/useCreateFolderShare.d.ts.map +0 -1
- package/dist/files/hooks/useCreateShare.d.ts +0 -16
- package/dist/files/hooks/useCreateShare.d.ts.map +0 -1
- package/dist/files/hooks/useDeleteFile.d.ts +0 -9
- package/dist/files/hooks/useDeleteFile.d.ts.map +0 -1
- package/dist/files/hooks/useDeleteFolder.d.ts +0 -10
- package/dist/files/hooks/useDeleteFolder.d.ts.map +0 -1
- package/dist/files/hooks/useDragDrop.d.ts +0 -31
- package/dist/files/hooks/useDragDrop.d.ts.map +0 -1
- package/dist/files/hooks/useFileVersions.d.ts +0 -52
- package/dist/files/hooks/useFileVersions.d.ts.map +0 -1
- package/dist/files/hooks/useFiles.d.ts +0 -18
- package/dist/files/hooks/useFiles.d.ts.map +0 -1
- package/dist/files/hooks/useFolder.d.ts +0 -7
- package/dist/files/hooks/useFolder.d.ts.map +0 -1
- package/dist/files/hooks/useFolderPath.d.ts +0 -2
- package/dist/files/hooks/useFolderPath.d.ts.map +0 -1
- package/dist/files/hooks/useFoldersQuery.d.ts +0 -7
- package/dist/files/hooks/useFoldersQuery.d.ts.map +0 -1
- package/dist/files/hooks/useKeyboardNavigation.d.ts +0 -17
- package/dist/files/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/files/hooks/useMoveFile.d.ts +0 -10
- package/dist/files/hooks/useMoveFile.d.ts.map +0 -1
- package/dist/files/hooks/useMoveFolder.d.ts +0 -10
- package/dist/files/hooks/useMoveFolder.d.ts.map +0 -1
- package/dist/files/hooks/usePermanentlyDeleteFile.d.ts +0 -9
- package/dist/files/hooks/usePermanentlyDeleteFile.d.ts.map +0 -1
- package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts +0 -9
- package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts.map +0 -1
- package/dist/files/hooks/useRecentFiles.d.ts +0 -10
- package/dist/files/hooks/useRecentFiles.d.ts.map +0 -1
- package/dist/files/hooks/useRenameFile.d.ts +0 -10
- package/dist/files/hooks/useRenameFile.d.ts.map +0 -1
- package/dist/files/hooks/useRenameFolder.d.ts +0 -10
- package/dist/files/hooks/useRenameFolder.d.ts.map +0 -1
- package/dist/files/hooks/useRestoreFile.d.ts +0 -9
- package/dist/files/hooks/useRestoreFile.d.ts.map +0 -1
- package/dist/files/hooks/useRestoreFolder.d.ts +0 -9
- package/dist/files/hooks/useRestoreFolder.d.ts.map +0 -1
- package/dist/files/hooks/useSearch.d.ts +0 -15
- package/dist/files/hooks/useSearch.d.ts.map +0 -1
- package/dist/files/hooks/useStarredItems.d.ts +0 -10
- package/dist/files/hooks/useStarredItems.d.ts.map +0 -1
- package/dist/files/hooks/useToast.d.ts +0 -11
- package/dist/files/hooks/useToast.d.ts.map +0 -1
- package/dist/files/hooks/useToggleStar.d.ts +0 -10
- package/dist/files/hooks/useToggleStar.d.ts.map +0 -1
- package/dist/files/hooks/useUploadFile.d.ts +0 -25
- package/dist/files/hooks/useUploadFile.d.ts.map +0 -1
- package/dist/files/index.d.ts +0 -29
- package/dist/files/index.d.ts.map +0 -1
- package/dist/files/pages/BrowserPage.d.ts +0 -5
- package/dist/files/pages/BrowserPage.d.ts.map +0 -1
- package/dist/files/pages/ShareAccessPage.d.ts +0 -2
- package/dist/files/pages/ShareAccessPage.d.ts.map +0 -1
- package/dist/files/providers/FilesProvider.d.ts +0 -25
- package/dist/files/providers/FilesProvider.d.ts.map +0 -1
- package/dist/files/store/filesStore.d.ts +0 -99
- package/dist/files/store/filesStore.d.ts.map +0 -1
- package/dist/files/types.d.ts +0 -266
- package/dist/files/types.d.ts.map +0 -1
- package/dist/files/utils/events.d.ts +0 -6
- package/dist/files/utils/events.d.ts.map +0 -1
- package/dist/files/utils/i18n.d.ts +0 -5
- package/dist/files/utils/i18n.d.ts.map +0 -1
- package/dist/files/utils/index.d.ts +0 -74
- package/dist/files/utils/index.d.ts.map +0 -1
- package/dist/files/utils/thumbnail.d.ts +0 -5
- package/dist/files/utils/thumbnail.d.ts.map +0 -1
- package/dist/files.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +0 -2
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23527
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2706
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +0 -1
- package/dist/shared/types/index.d.ts +0 -101
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/translations/en.d.ts +0 -315
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
package/dist/files/types.d.ts
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { MicrofrontendRootProps, NavItem, FooterItem } from '../shared/types/index';
|
|
2
|
-
export type { NavItem, FooterItem };
|
|
3
|
-
/**
|
|
4
|
-
* Props for the FilesRoot component
|
|
5
|
-
*/
|
|
6
|
-
export interface FilesRootProps extends MicrofrontendRootProps {
|
|
7
|
-
/**
|
|
8
|
-
* Optional function to register navigation items with the shell
|
|
9
|
-
* Injected by the shell app
|
|
10
|
-
*/
|
|
11
|
-
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
12
|
-
/**
|
|
13
|
-
* Optional function to register footer items with the shell
|
|
14
|
-
* Injected by the shell app
|
|
15
|
-
*/
|
|
16
|
-
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
17
|
-
/**
|
|
18
|
-
* Optional callback when a file is selected
|
|
19
|
-
*/
|
|
20
|
-
onFileSelect?: (file: FileSummary) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Optional callback when files are uploaded
|
|
23
|
-
*/
|
|
24
|
-
onFilesUploaded?: (files: FileSummary[]) => void;
|
|
25
|
-
/**
|
|
26
|
-
* Optional storage quota limit in bytes
|
|
27
|
-
*/
|
|
28
|
-
storageQuotaBytes?: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* File summary for callbacks
|
|
32
|
-
*/
|
|
33
|
-
export interface FileSummary {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
size: number;
|
|
37
|
-
mimeType: string;
|
|
38
|
-
url: string;
|
|
39
|
-
thumbnailUrl?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* View mode for file browser
|
|
43
|
-
*/
|
|
44
|
-
export type FileViewMode = "grid" | "list" | "tree";
|
|
45
|
-
/**
|
|
46
|
-
* File sort options
|
|
47
|
-
*/
|
|
48
|
-
export type FileSortBy = "name" | "date" | "size" | "type";
|
|
49
|
-
/**
|
|
50
|
-
* File sort direction
|
|
51
|
-
*/
|
|
52
|
-
export type FileSortDirection = "asc" | "desc";
|
|
53
|
-
/**
|
|
54
|
-
* File upload status
|
|
55
|
-
*/
|
|
56
|
-
export type UploadStatus = "pending" | "uploading" | "paused" | "completed" | "failed";
|
|
57
|
-
/**
|
|
58
|
-
* File item in the browser
|
|
59
|
-
*/
|
|
60
|
-
export interface FileItem {
|
|
61
|
-
id: string;
|
|
62
|
-
name: string;
|
|
63
|
-
description?: string;
|
|
64
|
-
size: number;
|
|
65
|
-
mimeType: string;
|
|
66
|
-
extension: string;
|
|
67
|
-
url: string;
|
|
68
|
-
s3Key: string;
|
|
69
|
-
thumbnailUrl?: string;
|
|
70
|
-
versionNumber?: number;
|
|
71
|
-
workspaceId: string;
|
|
72
|
-
folderId?: string | null;
|
|
73
|
-
status?: string;
|
|
74
|
-
visibility?: string;
|
|
75
|
-
starred?: boolean;
|
|
76
|
-
createdAt: string;
|
|
77
|
-
createdBy?: {
|
|
78
|
-
id: string;
|
|
79
|
-
name: string;
|
|
80
|
-
avatar?: string;
|
|
81
|
-
};
|
|
82
|
-
createdById?: string;
|
|
83
|
-
updatedAt: string;
|
|
84
|
-
updatedBy?: {
|
|
85
|
-
id: string;
|
|
86
|
-
name: string;
|
|
87
|
-
avatar?: string;
|
|
88
|
-
};
|
|
89
|
-
tags?: string[];
|
|
90
|
-
isFavorite?: boolean;
|
|
91
|
-
isShared?: boolean;
|
|
92
|
-
downloadUrl?: string;
|
|
93
|
-
canRead?: boolean;
|
|
94
|
-
canUpdate?: boolean;
|
|
95
|
-
canWrite?: boolean;
|
|
96
|
-
canDelete?: boolean;
|
|
97
|
-
canShare?: boolean;
|
|
98
|
-
canAdmin?: boolean;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Folder item in the browser
|
|
102
|
-
*/
|
|
103
|
-
export interface FolderItem {
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
workspaceId: string;
|
|
108
|
-
parentFolderId?: string | null;
|
|
109
|
-
path?: string;
|
|
110
|
-
level?: number;
|
|
111
|
-
status?: string;
|
|
112
|
-
visibility?: string;
|
|
113
|
-
color?: string;
|
|
114
|
-
icon?: string;
|
|
115
|
-
starred?: boolean;
|
|
116
|
-
fileCount?: number;
|
|
117
|
-
filesCount?: number;
|
|
118
|
-
subfoldersCount?: number;
|
|
119
|
-
createdAt: string;
|
|
120
|
-
createdBy?: {
|
|
121
|
-
id: string;
|
|
122
|
-
name: string;
|
|
123
|
-
avatar?: string;
|
|
124
|
-
};
|
|
125
|
-
createdById?: string;
|
|
126
|
-
updatedAt: string;
|
|
127
|
-
parentId?: string;
|
|
128
|
-
subfolders?: FolderItem[];
|
|
129
|
-
canRead?: boolean;
|
|
130
|
-
canUpdate?: boolean;
|
|
131
|
-
canDelete?: boolean;
|
|
132
|
-
permissions?: FolderPermissions;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* File permissions
|
|
136
|
-
*/
|
|
137
|
-
export interface FilePermissions {
|
|
138
|
-
canRead: boolean;
|
|
139
|
-
canWrite: boolean;
|
|
140
|
-
canDelete: boolean;
|
|
141
|
-
canShare: boolean;
|
|
142
|
-
canAdmin: boolean;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Folder permissions
|
|
146
|
-
*/
|
|
147
|
-
export interface FolderPermissions {
|
|
148
|
-
canRead: boolean;
|
|
149
|
-
canWrite: boolean;
|
|
150
|
-
canDelete: boolean;
|
|
151
|
-
canShare: boolean;
|
|
152
|
-
canAdmin: boolean;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Upload item in the queue
|
|
156
|
-
*/
|
|
157
|
-
export interface UploadItem {
|
|
158
|
-
id: string;
|
|
159
|
-
file: File;
|
|
160
|
-
status: UploadStatus;
|
|
161
|
-
progress: number;
|
|
162
|
-
error?: string;
|
|
163
|
-
uploadedFileId?: string;
|
|
164
|
-
folderId?: string;
|
|
165
|
-
uploadedBytes?: number;
|
|
166
|
-
sessionId?: string;
|
|
167
|
-
uploadUrl?: string;
|
|
168
|
-
thumbnailUrl?: string;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* File version
|
|
172
|
-
*/
|
|
173
|
-
export interface FileVersion {
|
|
174
|
-
id: string;
|
|
175
|
-
fileId: string;
|
|
176
|
-
versionNumber: number;
|
|
177
|
-
size: number;
|
|
178
|
-
url: string;
|
|
179
|
-
createdAt: string;
|
|
180
|
-
createdBy: {
|
|
181
|
-
id: string;
|
|
182
|
-
name: string;
|
|
183
|
-
avatar?: string;
|
|
184
|
-
};
|
|
185
|
-
notes?: string;
|
|
186
|
-
isCurrent: boolean;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Share link
|
|
190
|
-
*/
|
|
191
|
-
export interface ShareLink {
|
|
192
|
-
id: string;
|
|
193
|
-
fileId: string;
|
|
194
|
-
token: string;
|
|
195
|
-
url: string;
|
|
196
|
-
expiresAt?: string;
|
|
197
|
-
password?: string;
|
|
198
|
-
accessCount: number;
|
|
199
|
-
maxAccessCount?: number;
|
|
200
|
-
createdAt: string;
|
|
201
|
-
createdBy: {
|
|
202
|
-
id: string;
|
|
203
|
-
name: string;
|
|
204
|
-
};
|
|
205
|
-
isActive: boolean;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* File share permissions
|
|
209
|
-
*/
|
|
210
|
-
export interface FileShare {
|
|
211
|
-
id: string;
|
|
212
|
-
fileId: string;
|
|
213
|
-
userId?: string;
|
|
214
|
-
groupId?: string;
|
|
215
|
-
email?: string;
|
|
216
|
-
permission: "view" | "comment" | "edit" | "admin";
|
|
217
|
-
expiresAt?: string;
|
|
218
|
-
createdAt: string;
|
|
219
|
-
createdBy: {
|
|
220
|
-
id: string;
|
|
221
|
-
name: string;
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Storage quota information
|
|
226
|
-
*/
|
|
227
|
-
export interface StorageQuota {
|
|
228
|
-
used: number;
|
|
229
|
-
limit: number;
|
|
230
|
-
percentage: number;
|
|
231
|
-
breakdown: {
|
|
232
|
-
images: number;
|
|
233
|
-
documents: number;
|
|
234
|
-
videos: number;
|
|
235
|
-
audio: number;
|
|
236
|
-
other: number;
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* File preview type
|
|
241
|
-
*/
|
|
242
|
-
export type FilePreviewType = "image" | "pdf" | "video" | "audio" | "code" | "text" | "unsupported";
|
|
243
|
-
/**
|
|
244
|
-
* Breadcrumb item
|
|
245
|
-
*/
|
|
246
|
-
export interface BreadcrumbItem {
|
|
247
|
-
id: string;
|
|
248
|
-
name: string;
|
|
249
|
-
path: string;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* File filters
|
|
253
|
-
*/
|
|
254
|
-
export interface FileFilters {
|
|
255
|
-
search?: string;
|
|
256
|
-
mimeType?: string[];
|
|
257
|
-
tags?: string[];
|
|
258
|
-
dateFrom?: string;
|
|
259
|
-
dateTo?: string;
|
|
260
|
-
minSize?: number;
|
|
261
|
-
maxSize?: number;
|
|
262
|
-
createdBy?: string[];
|
|
263
|
-
isFavorite?: boolean;
|
|
264
|
-
isShared?: boolean;
|
|
265
|
-
}
|
|
266
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/files/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,OAAO,EACP,UAAU,EACX,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,sBAAsB;IAC5D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE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AC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FilesRootProps } from '../types';
|
|
2
|
-
export type FilesEventName = "files.file.uploaded" | "files.file.deleted" | "files.file.restored" | "files.file.downloaded" | "files.file.starred" | "files.file.moved" | "files.file.copied" | "files.file.renamed" | "files.folder.created" | "files.folder.deleted" | "files.folder.restored" | "files.folder.starred" | "files.folder.moved" | "files.folder.renamed" | "files.share.created" | "files.share.downloaded" | "files.api.failed";
|
|
3
|
-
type FilesEventPayload = Record<string, unknown>;
|
|
4
|
-
export declare function emitFilesEvent(context: Pick<FilesRootProps, "eventBus" | "workspaceId">, name: FilesEventName, payload?: FilesEventPayload): void;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/files/utils/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,cAAc,GACtB,qBAAqB,GACrB,oBAAoB,GACpB,qBAAqB,GACrB,uBAAuB,GACvB,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,wBAAwB,GACxB,kBAAkB,CAAC;AAEvB,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjD,wBAAgB,cAAc,CAC5B,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,aAAa,CAAC,EACzD,IAAI,EAAE,cAAc,EACpB,OAAO,GAAE,iBAAsB,GAC9B,IAAI,CAmBN"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';
|
|
2
|
-
type TranslationParams = Record<string, string | number>;
|
|
3
|
-
export declare function tWithFallback(t: I18nContextValue["t"], key: string, fallback: string, params?: TranslationParams): string;
|
|
4
|
-
export {};
|
|
5
|
-
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/files/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAgBzD,wBAAgB,aAAa,CAC3B,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAOR"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
import { formatBytes, formatRelativeTime } from '@burdenoff/fe-libs/shared/utils';
|
|
3
|
-
import { FilePreviewType } from '../types';
|
|
4
|
-
export { isImageType, generateThumbnail, revokeThumbnail, revokeThumbnails, } from './thumbnail';
|
|
5
|
-
/**
|
|
6
|
-
* Format file size in bytes to human readable format
|
|
7
|
-
* Re-exports formatBytes from fe-libs for convenience
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatFileSize: typeof formatBytes;
|
|
10
|
-
/**
|
|
11
|
-
* Get file extension from filename
|
|
12
|
-
*/
|
|
13
|
-
export declare function getFileExtension(filename: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Determine file preview type from MIME type
|
|
16
|
-
*/
|
|
17
|
-
export declare function getFilePreviewType(mimeType: string): FilePreviewType;
|
|
18
|
-
/**
|
|
19
|
-
* Check if file can be previewed
|
|
20
|
-
*/
|
|
21
|
-
export declare function canPreviewFile(mimeType: string): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Get file icon component based on MIME type
|
|
24
|
-
*/
|
|
25
|
-
export declare function getFileIcon(mimeType: string): LucideIcon;
|
|
26
|
-
/**
|
|
27
|
-
* Generate unique upload ID
|
|
28
|
-
*/
|
|
29
|
-
export declare function generateUploadId(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Validate file name
|
|
32
|
-
*/
|
|
33
|
-
export declare function isValidFileName(name: string): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Sort files by various criteria
|
|
36
|
-
*/
|
|
37
|
-
export declare function sortFiles<T extends {
|
|
38
|
-
name: string;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
size?: number;
|
|
41
|
-
}>(files: T[], sortBy: "name" | "date" | "size" | "type", direction?: "asc" | "desc"): T[];
|
|
42
|
-
/**
|
|
43
|
-
* Check if file type is allowed
|
|
44
|
-
*/
|
|
45
|
-
export declare function isFileTypeAllowed(mimeType: string, allowedTypes?: string[]): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Calculate upload progress percentage
|
|
48
|
-
*/
|
|
49
|
-
export declare function calculateUploadProgress(uploadedBytes: number, totalBytes: number): number;
|
|
50
|
-
/**
|
|
51
|
-
* Format date for file display
|
|
52
|
-
* Uses shared formatRelativeTime from fe-libs
|
|
53
|
-
*/
|
|
54
|
-
export declare const formatFileDate: typeof formatRelativeTime;
|
|
55
|
-
/**
|
|
56
|
-
* Truncate filename to max length
|
|
57
|
-
*/
|
|
58
|
-
export declare function truncateFileName(name: string, maxLength?: number): string;
|
|
59
|
-
/**
|
|
60
|
-
* Check if storage quota exceeded
|
|
61
|
-
*/
|
|
62
|
-
export declare function isStorageQuotaExceeded(usedBytes: number, limitBytes: number, fileSize: number): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Generate breadcrumb path from folder navigation
|
|
65
|
-
*/
|
|
66
|
-
export declare function generateBreadcrumbs(currentFolderId: string | null, folderMap: Map<string, {
|
|
67
|
-
id: string;
|
|
68
|
-
name: string;
|
|
69
|
-
parentId?: string;
|
|
70
|
-
}>): Array<{
|
|
71
|
-
id: string;
|
|
72
|
-
name: string;
|
|
73
|
-
}>;
|
|
74
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/files/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU/C,OAAO,EACL,WAAW,EACX,kBAAkB,EAEnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,eAAO,MAAM,cAAc,oBAAc,CAAC;AAE1C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CA6BpE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAmBxD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAoBrD;AAED;;GAEG;AACH,wBAAgB,SAAS,CACvB,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAE5D,KAAK,EAAE,CAAC,EAAE,EACV,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EACzC,SAAS,GAAE,KAAK,GAAG,MAAc,GAChC,CAAC,EAAE,CA4BL;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,OAAO,CAmBT;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,MAAM,CAGR;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,2BAAqB,CAAC;AAEjD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,MAAW,GAAG,MAAM,CAc7E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,OAAO,CAET;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,eAAe,EAAE,MAAM,GAAG,IAAI,EAC9B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACtE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAiBrC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function isImageType(mimeType: string): boolean;
|
|
2
|
-
export declare function generateThumbnail(file: File, maxSize?: number): Promise<string | null>;
|
|
3
|
-
export declare function revokeThumbnail(thumbnailUrl: string): void;
|
|
4
|
-
export declare function revokeThumbnails(thumbnailUrls: (string | undefined)[]): void;
|
|
5
|
-
//# sourceMappingURL=thumbnail.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thumbnail.d.ts","sourceRoot":"","sources":["../../../src/files/utils/thumbnail.ts"],"names":[],"mappings":"AAaA,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,IAAI,EACV,OAAO,GAAE,MAA2B,GACnC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA0DxB;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAI1D;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,IAAI,CAM5E"}
|
package/dist/files.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global-operations.d.ts","sourceRoot":"","sources":["../../src/generated/global-operations.ts"],"names":[],"mappings":""}
|