@burdenoff/microfe-files 2026.713.1 → 2026.715.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/config/index.d.ts +33 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/files/FilesRoot.d.ts +31 -0
- package/dist/files/FilesRoot.d.ts.map +1 -0
- package/dist/files/FilesRoutes.d.ts +12 -0
- package/dist/files/FilesRoutes.d.ts.map +1 -0
- package/dist/files/components/ActionMenu.d.ts +19 -0
- package/dist/files/components/ActionMenu.d.ts.map +1 -0
- package/dist/files/components/ConfirmDialog.d.ts +22 -0
- package/dist/files/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/files/components/ContextMenu.d.ts +15 -0
- package/dist/files/components/ContextMenu.d.ts.map +1 -0
- package/dist/files/components/CopyDialog.d.ts +12 -0
- package/dist/files/components/CopyDialog.d.ts.map +1 -0
- package/dist/files/components/EmptyState.d.ts +15 -0
- package/dist/files/components/EmptyState.d.ts.map +1 -0
- package/dist/files/components/FileBrowser.d.ts +37 -0
- package/dist/files/components/FileBrowser.d.ts.map +1 -0
- package/dist/files/components/FileCard.d.ts +30 -0
- package/dist/files/components/FileCard.d.ts.map +1 -0
- package/dist/files/components/FileInfoPanel.d.ts +9 -0
- package/dist/files/components/FileInfoPanel.d.ts.map +1 -0
- package/dist/files/components/FileListItem.d.ts +29 -0
- package/dist/files/components/FileListItem.d.ts.map +1 -0
- package/dist/files/components/FilePreviewModal.d.ts +17 -0
- package/dist/files/components/FilePreviewModal.d.ts.map +1 -0
- package/dist/files/components/FileVersionPanel.d.ts +9 -0
- package/dist/files/components/FileVersionPanel.d.ts.map +1 -0
- package/dist/files/components/FolderCard.d.ts +34 -0
- package/dist/files/components/FolderCard.d.ts.map +1 -0
- package/dist/files/components/MoveDialog.d.ts +12 -0
- package/dist/files/components/MoveDialog.d.ts.map +1 -0
- package/dist/files/components/SearchBar.d.ts +13 -0
- package/dist/files/components/SearchBar.d.ts.map +1 -0
- package/dist/files/components/ShareDialog.d.ts +24 -0
- package/dist/files/components/ShareDialog.d.ts.map +1 -0
- package/dist/files/components/StorageBanner.d.ts +12 -0
- package/dist/files/components/StorageBanner.d.ts.map +1 -0
- package/dist/files/components/TabBar.d.ts +16 -0
- package/dist/files/components/TabBar.d.ts.map +1 -0
- package/dist/files/components/Toast.d.ts +14 -0
- package/dist/files/components/Toast.d.ts.map +1 -0
- package/dist/files/components/UploadQueue.d.ts +13 -0
- package/dist/files/components/UploadQueue.d.ts.map +1 -0
- package/dist/files/components/contextMenuItems.d.ts +45 -0
- package/dist/files/components/contextMenuItems.d.ts.map +1 -0
- package/dist/files/components/viewers/AudioPlayer.d.ts +8 -0
- package/dist/files/components/viewers/AudioPlayer.d.ts.map +1 -0
- package/dist/files/components/viewers/CodeViewer.d.ts +16 -0
- package/dist/files/components/viewers/CodeViewer.d.ts.map +1 -0
- package/dist/files/components/viewers/ImageViewer.d.ts +8 -0
- package/dist/files/components/viewers/ImageViewer.d.ts.map +1 -0
- package/dist/files/components/viewers/PDFViewer.d.ts +15 -0
- package/dist/files/components/viewers/PDFViewer.d.ts.map +1 -0
- package/dist/files/components/viewers/TextViewer.d.ts +8 -0
- package/dist/files/components/viewers/TextViewer.d.ts.map +1 -0
- package/dist/files/components/viewers/VideoPlayer.d.ts +8 -0
- package/dist/files/components/viewers/VideoPlayer.d.ts.map +1 -0
- package/dist/files/graphql-types.d.ts +277 -0
- package/dist/files/graphql-types.d.ts.map +1 -0
- package/dist/files/hooks/useBatchOperations.d.ts +6 -0
- package/dist/files/hooks/useBatchOperations.d.ts.map +1 -0
- package/dist/files/hooks/useBinItems.d.ts +11 -0
- package/dist/files/hooks/useBinItems.d.ts.map +1 -0
- package/dist/files/hooks/useBrowsePage.d.ts +21 -0
- package/dist/files/hooks/useBrowsePage.d.ts.map +1 -0
- package/dist/files/hooks/useCopyFile.d.ts +14 -0
- package/dist/files/hooks/useCopyFile.d.ts.map +1 -0
- package/dist/files/hooks/useCreateFolder.d.ts +17 -0
- package/dist/files/hooks/useCreateFolder.d.ts.map +1 -0
- package/dist/files/hooks/useCreateFolderShare.d.ts +16 -0
- package/dist/files/hooks/useCreateFolderShare.d.ts.map +1 -0
- package/dist/files/hooks/useCreateShare.d.ts +16 -0
- package/dist/files/hooks/useCreateShare.d.ts.map +1 -0
- package/dist/files/hooks/useDeleteFile.d.ts +9 -0
- package/dist/files/hooks/useDeleteFile.d.ts.map +1 -0
- package/dist/files/hooks/useDeleteFolder.d.ts +10 -0
- package/dist/files/hooks/useDeleteFolder.d.ts.map +1 -0
- package/dist/files/hooks/useDragDrop.d.ts +31 -0
- package/dist/files/hooks/useDragDrop.d.ts.map +1 -0
- package/dist/files/hooks/useFileVersions.d.ts +39 -0
- package/dist/files/hooks/useFileVersions.d.ts.map +1 -0
- package/dist/files/hooks/useFoldersQuery.d.ts +7 -0
- package/dist/files/hooks/useFoldersQuery.d.ts.map +1 -0
- package/dist/files/hooks/useKeyboardNavigation.d.ts +17 -0
- package/dist/files/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/files/hooks/useMoveFile.d.ts +10 -0
- package/dist/files/hooks/useMoveFile.d.ts.map +1 -0
- package/dist/files/hooks/useMoveFolder.d.ts +10 -0
- package/dist/files/hooks/useMoveFolder.d.ts.map +1 -0
- package/dist/files/hooks/usePermanentlyDeleteFile.d.ts +9 -0
- package/dist/files/hooks/usePermanentlyDeleteFile.d.ts.map +1 -0
- package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts +9 -0
- package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts.map +1 -0
- package/dist/files/hooks/useRecentFiles.d.ts +10 -0
- package/dist/files/hooks/useRecentFiles.d.ts.map +1 -0
- package/dist/files/hooks/useRenameFile.d.ts +10 -0
- package/dist/files/hooks/useRenameFile.d.ts.map +1 -0
- package/dist/files/hooks/useRenameFolder.d.ts +10 -0
- package/dist/files/hooks/useRenameFolder.d.ts.map +1 -0
- package/dist/files/hooks/useRestoreFile.d.ts +9 -0
- package/dist/files/hooks/useRestoreFile.d.ts.map +1 -0
- package/dist/files/hooks/useRestoreFolder.d.ts +9 -0
- package/dist/files/hooks/useRestoreFolder.d.ts.map +1 -0
- package/dist/files/hooks/useSearch.d.ts +15 -0
- package/dist/files/hooks/useSearch.d.ts.map +1 -0
- package/dist/files/hooks/useStarredItems.d.ts +10 -0
- package/dist/files/hooks/useStarredItems.d.ts.map +1 -0
- package/dist/files/hooks/useStorageQuota.d.ts +11 -0
- package/dist/files/hooks/useStorageQuota.d.ts.map +1 -0
- package/dist/files/hooks/useToast.d.ts +11 -0
- package/dist/files/hooks/useToast.d.ts.map +1 -0
- package/dist/files/hooks/useToggleStar.d.ts +10 -0
- package/dist/files/hooks/useToggleStar.d.ts.map +1 -0
- package/dist/files/hooks/useUploadFile.d.ts +26 -0
- package/dist/files/hooks/useUploadFile.d.ts.map +1 -0
- package/dist/files/index.d.ts +29 -0
- package/dist/files/index.d.ts.map +1 -0
- package/dist/files/pages/BrowserPage.d.ts +5 -0
- package/dist/files/pages/BrowserPage.d.ts.map +1 -0
- package/dist/files/pages/ShareAccessPage.d.ts +2 -0
- package/dist/files/pages/ShareAccessPage.d.ts.map +1 -0
- package/dist/files/providers/FilesProvider.d.ts +25 -0
- package/dist/files/providers/FilesProvider.d.ts.map +1 -0
- package/dist/files/store/filesStore.d.ts +99 -0
- package/dist/files/store/filesStore.d.ts.map +1 -0
- package/dist/files/types.d.ts +266 -0
- package/dist/files/types.d.ts.map +1 -0
- package/dist/files/utils/events.d.ts +6 -0
- package/dist/files/utils/events.d.ts.map +1 -0
- package/dist/files/utils/i18n.d.ts +5 -0
- package/dist/files/utils/i18n.d.ts.map +1 -0
- package/dist/files/utils/index.d.ts +12 -0
- package/dist/files/utils/index.d.ts.map +1 -0
- package/dist/files/utils/quotaUtils.d.ts +2 -0
- package/dist/files/utils/quotaUtils.d.ts.map +1 -0
- package/dist/files/utils/thumbnail.d.ts +3 -0
- package/dist/files/utils/thumbnail.d.ts.map +1 -0
- package/dist/files.d.ts +2 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +22995 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2789 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +50215 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/shared/types/index.d.ts +109 -0
- package/dist/shared/types/index.d.ts.map +1 -0
- package/dist/translations/en.d.ts +315 -0
- package/dist/translations/en.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,266 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,KAAK,MAAM,IAAI,CAAC;IAE9D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,KAAK,MAAM,IAAI,CAAC;IAEvE;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAE3C;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAEjD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,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ACvB,OAAO,GACP,KAAK,GACL,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,aAAa,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
import { formatBytes, formatRelativeTime } from '@burdenoff/fe-libs/shared/utils';
|
|
3
|
+
export { isImageType, generateThumbnail } from './thumbnail';
|
|
4
|
+
export declare const formatFileSize: typeof formatBytes;
|
|
5
|
+
export declare function getFileIcon(mimeType: string): LucideIcon;
|
|
6
|
+
export declare function sortFiles<T extends {
|
|
7
|
+
name: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
size?: number;
|
|
10
|
+
}>(files: T[], sortBy: "name" | "date" | "size" | "type", direction?: "asc" | "desc"): T[];
|
|
11
|
+
export declare const formatFileDate: typeof formatRelativeTime;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAE/C,OAAO,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE7D,eAAO,MAAM,cAAc,oBAAc,CAAC;AAsC1C,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAmBxD;AAED,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,CA2BL;AAED,eAAO,MAAM,cAAc,2BAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotaUtils.d.ts","sourceRoot":"","sources":["../../../src/files/utils/quotaUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/dist/files.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-operations.d.ts","sourceRoot":"","sources":["../../src/generated/global-operations.ts"],"names":[],"mappings":""}
|