@burdenoff/microfe-files 2026.525.2 → 2026.525.3
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/package.json +1 -1
- 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/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
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface DeleteFolderInput {
|
|
2
|
-
id: string;
|
|
3
|
-
recursive?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const useDeleteFolder: () => {
|
|
6
|
-
mutateAsync: ({ id, recursive }: DeleteFolderInput) => Promise<any>;
|
|
7
|
-
isPending: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useDeleteFolder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useDeleteFolder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,eAAe;qCAasB,iBAAiB;;;CASlE,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FileItem, FolderItem } from '../types';
|
|
2
|
-
export type DragOperation = "move" | "copy";
|
|
3
|
-
export interface DragData {
|
|
4
|
-
type: "file" | "folder";
|
|
5
|
-
item: FileItem | FolderItem;
|
|
6
|
-
operation: DragOperation;
|
|
7
|
-
}
|
|
8
|
-
export interface DropData {
|
|
9
|
-
type: "file" | "folder";
|
|
10
|
-
item: FileItem | FolderItem;
|
|
11
|
-
}
|
|
12
|
-
export interface UseDragDropOptions {
|
|
13
|
-
onMoveFile?: (fileId: string, targetFolderId: string) => Promise<void>;
|
|
14
|
-
onMoveFolder?: (folderId: string, targetFolderId: string) => Promise<void>;
|
|
15
|
-
onCopyFile?: (fileId: string, targetFolderId: string) => Promise<void>;
|
|
16
|
-
onCopyFolder?: (folderId: string, targetFolderId: string) => Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
export interface UseDragDropReturn {
|
|
19
|
-
draggedItem: DragData | null;
|
|
20
|
-
dropTarget: DropData | null;
|
|
21
|
-
isDragging: boolean;
|
|
22
|
-
isDropTargetActive: boolean;
|
|
23
|
-
startDrag: (data: DragData) => void;
|
|
24
|
-
endDrag: () => void;
|
|
25
|
-
setDropTarget: (data: DropData | null) => void;
|
|
26
|
-
handleDrop: (targetFolderId: string) => Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export declare const useDragDrop: (options?: UseDragDropOptions) => UseDragDropReturn;
|
|
29
|
-
export declare const getDragOperation: (event: React.DragEvent) => DragOperation;
|
|
30
|
-
export declare const canDropOnFolder: (draggedItem: DragData | null, targetFolder: FolderItem) => boolean;
|
|
31
|
-
//# sourceMappingURL=useDragDrop.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDragDrop.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useDragDrop.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,MA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AM,WAAW,GACtB,UAAS,kBAAuB,KAC/B,iBAqDF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,aAEzD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,aAAa,QAAQ,GAAG,IAAI,EAC5B,cAAc,UAAU,KACvB,OAUF,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook to fetch all versions for a file
|
|
3
|
-
*/
|
|
4
|
-
export declare const useFileVersions: (_fileId: string, _enabled?: boolean) => {
|
|
5
|
-
data: any;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
error: Error | null;
|
|
8
|
-
refetch: (variables?: any) => Promise<import("@apollo/client").ApolloClient.QueryResult<Types.GetFileVersionsQuery>>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Hook to create a new file version
|
|
12
|
-
*/
|
|
13
|
-
export declare const useCreateFileVersion: () => {
|
|
14
|
-
mutateAsync: (input: {
|
|
15
|
-
fileId: string;
|
|
16
|
-
versionLabel?: string;
|
|
17
|
-
changeMessage?: string;
|
|
18
|
-
isMajorVersion?: boolean;
|
|
19
|
-
}) => Promise<any>;
|
|
20
|
-
isPending: boolean;
|
|
21
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Hook to restore a previous version
|
|
25
|
-
*/
|
|
26
|
-
export declare const useRestoreFileVersion: () => {
|
|
27
|
-
mutateAsync: (input: {
|
|
28
|
-
versionId: string;
|
|
29
|
-
createNewVersion?: boolean;
|
|
30
|
-
changeMessage?: string;
|
|
31
|
-
}) => Promise<any>;
|
|
32
|
-
isPending: boolean;
|
|
33
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Hook to delete a specific version
|
|
37
|
-
*/
|
|
38
|
-
export declare const useDeleteFileVersion: () => {
|
|
39
|
-
mutateAsync: (versionId: string) => Promise<any>;
|
|
40
|
-
isPending: boolean;
|
|
41
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Hook to get download URL for a specific version
|
|
45
|
-
*/
|
|
46
|
-
export declare const useVersionDownloadUrl: (_versionId?: string, _expiresIn?: number) => {
|
|
47
|
-
data: any;
|
|
48
|
-
isLoading: boolean;
|
|
49
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
50
|
-
getDownloadUrl: (versionId?: string | undefined, expiresIn?: number | undefined) => Promise<any>;
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=useFileVersions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFileVersions.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFileVersions.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,EAAE,WAAU,OAAc;;;;;CAexE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;yBAOF;QACzB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B;;;CAUJ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;yBAOH;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;;;CAgBJ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;6BAOE,MAAM;;;CAUxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,MAAM,EACnB,aAAa,MAAM;;;;;CAqBpB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FileFilterInput, FileSortInput, PaginationInput } from '../graphql-types';
|
|
2
|
-
/**
|
|
3
|
-
* Fetch a single file by ID
|
|
4
|
-
*/
|
|
5
|
-
export declare const useFile: (fileId: string, options?: {
|
|
6
|
-
skip?: boolean;
|
|
7
|
-
}) => import("@apollo/client/react").useQuery.Result<Types.GetFileQuery, Types.GetFileQueryVariables, "empty" | "complete" | "streaming", Types.GetFileQueryVariables>;
|
|
8
|
-
/**
|
|
9
|
-
* Fetch files in a workspace with filtering, sorting, and pagination
|
|
10
|
-
*/
|
|
11
|
-
export declare const useFiles: (params: {
|
|
12
|
-
folderId?: string;
|
|
13
|
-
filter?: FileFilterInput;
|
|
14
|
-
sort?: FileSortInput;
|
|
15
|
-
pagination?: PaginationInput;
|
|
16
|
-
skip?: boolean;
|
|
17
|
-
}) => import("@apollo/client/react").useQuery.Result<Types.GetFilesQuery, Types.GetFilesQueryVariables, "empty" | "complete" | "streaming", Types.GetFilesQueryVariables>;
|
|
18
|
-
//# sourceMappingURL=useFiles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFiles.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFiles.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,EAAE,UAAU;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,qKAKnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,QAAQ;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,wKAUA,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Folder Hook
|
|
3
|
-
*
|
|
4
|
-
* Uses useGetFolderQuery to fetch a single folder by ID.
|
|
5
|
-
*/
|
|
6
|
-
export declare const useFolder: (folderId?: string) => import("@apollo/client/react").useQuery.Result<Types.GetFolderQuery, Types.GetFolderQueryVariables, "empty" | "complete" | "streaming", Types.GetFolderQueryVariables>;
|
|
7
|
-
//# sourceMappingURL=useFolder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFolder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,SAAS,GAAI,WAAW,MAAM,2KAK1C,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const useFolderPath: (folderId?: string) => import("@apollo/client/react").useQuery.Result<Types.GetFolderPathQuery, Types.GetFolderPathQueryVariables, "empty" | "complete" | "streaming", Types.GetFolderPathQueryVariables>;
|
|
2
|
-
//# sourceMappingURL=useFolderPath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFolderPath.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFolderPath.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,uLAK9C,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Folders Query Hook
|
|
3
|
-
*/
|
|
4
|
-
export declare const useFoldersQuery: (parentFolderId?: string | null, options?: {
|
|
5
|
-
skip?: boolean;
|
|
6
|
-
}) => import("@apollo/client/react").useQuery.Result<Types.GetFoldersQuery, Types.GetFoldersQueryVariables, "empty" | "complete" | "streaming", Types.GetFoldersQueryVariables>;
|
|
7
|
-
//# sourceMappingURL=useFoldersQuery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFoldersQuery.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFoldersQuery.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,eAAO,MAAM,eAAe,GAC1B,iBAAiB,MAAM,GAAG,IAAI,EAC9B,UAAU;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,8KAc7B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FileItem, FolderItem } from '../types';
|
|
2
|
-
interface UseKeyboardNavigationOptions {
|
|
3
|
-
files: FileItem[];
|
|
4
|
-
folders: FolderItem[];
|
|
5
|
-
onFilePreview?: (file: FileItem) => void;
|
|
6
|
-
onFileDelete?: (file: FileItem) => void;
|
|
7
|
-
onFolderOpen?: (folder: FolderItem) => void;
|
|
8
|
-
onFolderDelete?: (folder: FolderItem) => void;
|
|
9
|
-
activeTab: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function useKeyboardNavigation({ files, folders, onFilePreview, onFileDelete, onFolderOpen, onFolderDelete, activeTab, }: UseKeyboardNavigationOptions): {
|
|
12
|
-
focusedIndex: number;
|
|
13
|
-
setFocusedIndex: (index: number) => void;
|
|
14
|
-
getFocusedItem: () => FileItem | FolderItem | null;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=useKeyboardNavigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardNavigation.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useKeyboardNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGrD,UAAU,4BAA4B;IACpC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,SAAS,GACV,EAAE,4BAA4B;;6BAkBnB,MAAM;;EA4KjB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface MoveFileInput {
|
|
2
|
-
fileId: string;
|
|
3
|
-
targetFolderId: string | null;
|
|
4
|
-
}
|
|
5
|
-
export declare const useMoveFile: () => {
|
|
6
|
-
mutateAsync: ({ fileId, targetFolderId }: MoveFileInput) => Promise<any>;
|
|
7
|
-
isPending: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useMoveFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMoveFile.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useMoveFile.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW;8CAW4B,aAAa;;;CAchE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface MoveFolderInput {
|
|
2
|
-
folderId: string;
|
|
3
|
-
targetParentFolderId: string | null;
|
|
4
|
-
}
|
|
5
|
-
export declare const useMoveFolder: () => {
|
|
6
|
-
mutateAsync: ({ folderId, targetParentFolderId, }: MoveFolderInput) => Promise<any>;
|
|
7
|
-
isPending: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useMoveFolder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMoveFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useMoveFolder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,aAAa;uDAgBnB,eAAe;;;CAerB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface PermanentlyDeleteFileInput {
|
|
2
|
-
id: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const usePermanentlyDeleteFile: () => {
|
|
5
|
-
mutateAsync: ({ id }: PermanentlyDeleteFileInput) => Promise<any>;
|
|
6
|
-
isPending: boolean;
|
|
7
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=usePermanentlyDeleteFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePermanentlyDeleteFile.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/usePermanentlyDeleteFile.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,wBAAwB;0BAOL,0BAA0B;;;CASzD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface PermanentlyDeleteFolderInput {
|
|
2
|
-
id: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const usePermanentlyDeleteFolder: () => {
|
|
5
|
-
mutateAsync: ({ id }: PermanentlyDeleteFolderInput) => Promise<any>;
|
|
6
|
-
isPending: boolean;
|
|
7
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=usePermanentlyDeleteFolder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePermanentlyDeleteFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/usePermanentlyDeleteFolder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,0BAA0B;0BAOP,4BAA4B;;;CAS3D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FileItem, FolderItem } from '../types';
|
|
2
|
-
export declare const useRecentFiles: (options?: {
|
|
3
|
-
skip?: boolean;
|
|
4
|
-
}) => {
|
|
5
|
-
files: FileItem[];
|
|
6
|
-
folders: FolderItem[];
|
|
7
|
-
isLoading: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useRecentFiles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRecentFiles.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useRecentFiles.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,cAAc,GAAI,UAAU;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE;;;;;CAsC1D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface RenameFileInput {
|
|
2
|
-
fileId: string;
|
|
3
|
-
newName: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const useRenameFile: () => {
|
|
6
|
-
mutateAsync: ({ fileId, newName }: RenameFileInput) => Promise<any>;
|
|
7
|
-
isPending: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useRenameFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRenameFile.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useRenameFile.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa;uCAMmB,eAAe;;;CAY3D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface RenameFolderInput {
|
|
2
|
-
folderId: string;
|
|
3
|
-
newName: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const useRenameFolder: () => {
|
|
6
|
-
mutateAsync: ({ folderId, newName }: RenameFolderInput) => Promise<any>;
|
|
7
|
-
isPending: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useRenameFolder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRenameFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useRenameFolder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe;yCAMmB,iBAAiB;;;CAY/D,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface RestoreFileInput {
|
|
2
|
-
id: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const useRestoreFile: () => {
|
|
5
|
-
mutateAsync: ({ id }: RestoreFileInput) => Promise<any>;
|
|
6
|
-
isPending: boolean;
|
|
7
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=useRestoreFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRestoreFile.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useRestoreFile.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,cAAc;0BAaK,gBAAgB;;;CAS/C,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface RestoreFolderInput {
|
|
2
|
-
id: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const useRestoreFolder: () => {
|
|
5
|
-
mutateAsync: ({ id }: RestoreFolderInput) => Promise<any>;
|
|
6
|
-
isPending: boolean;
|
|
7
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=useRestoreFolder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRestoreFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useRestoreFolder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,gBAAgB;0BAaG,kBAAkB;;;CASjD,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FileItem, FolderItem } from '../types';
|
|
2
|
-
import { FileFilterInput, FolderFilterInput } from '../graphql-types';
|
|
3
|
-
export interface SearchFilters {
|
|
4
|
-
fileFilter?: FileFilterInput;
|
|
5
|
-
folderFilter?: FolderFilterInput;
|
|
6
|
-
}
|
|
7
|
-
export declare const useSearch: (query: string, enabled?: boolean, filters?: SearchFilters) => {
|
|
8
|
-
data: {
|
|
9
|
-
files: FileItem[];
|
|
10
|
-
folders: FolderItem[];
|
|
11
|
-
};
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
error: import('@apollo/client').ErrorLike | null;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useSearch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useSearch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED,eAAO,MAAM,SAAS,GACpB,OAAO,MAAM,EACb,UAAS,OAAc,EACvB,UAAU,aAAa;;eAkBoC,QAAQ,EAAE;iBACJ,UAAU,EAAE;;;;CAK9E,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FileItem, FolderItem } from '../types';
|
|
2
|
-
export declare const useStarredItems: (options?: {
|
|
3
|
-
skip?: boolean;
|
|
4
|
-
}) => {
|
|
5
|
-
files: FileItem[];
|
|
6
|
-
folders: FolderItem[];
|
|
7
|
-
isLoading: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | null;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useStarredItems.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStarredItems.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useStarredItems.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,eAAe,GAAI,UAAU;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE;WASH,QAAQ,EAAE;aACJ,UAAU,EAAE;;;CAI1E,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Toast, ToastType } from '../components/Toast';
|
|
2
|
-
export declare function useToast(): {
|
|
3
|
-
toasts: Toast[];
|
|
4
|
-
addToast: (type: ToastType, message: string, duration?: number) => string;
|
|
5
|
-
removeToast: (id: string) => void;
|
|
6
|
-
success: (message: string, duration?: number) => string;
|
|
7
|
-
error: (message: string, duration?: number) => string;
|
|
8
|
-
warning: (message: string, duration?: number) => string;
|
|
9
|
-
info: (message: string, duration?: number) => string;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=useToast.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useToast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAgB,QAAQ;;qBAIb,SAAS,WAAW,MAAM,aAAa,MAAM;sBASjB,MAAM;uBAK/B,MAAM,aAAa,MAAM;qBAMzB,MAAM,aAAa,MAAM;uBAMzB,MAAM,aAAa,MAAM;oBAMzB,MAAM,aAAa,MAAM;EAatC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface ToggleStarInput {
|
|
2
|
-
id: string;
|
|
3
|
-
type: "file" | "folder";
|
|
4
|
-
}
|
|
5
|
-
export declare const useToggleStar: () => {
|
|
6
|
-
mutateAsync: ({ id, type }: ToggleStarInput) => Promise<any>;
|
|
7
|
-
isPending: boolean;
|
|
8
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useToggleStar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToggleStar.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useToggleStar.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;CACzB;AAED,eAAO,MAAM,aAAa;gCA4BY,eAAe;;;CAgBpD,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface InitiateUploadInput {
|
|
2
|
-
fileName: string;
|
|
3
|
-
fileSize: number;
|
|
4
|
-
mimeType: string;
|
|
5
|
-
folderId?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface CompleteUploadInput {
|
|
8
|
-
sessionId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface UploadController {
|
|
11
|
-
pause: () => void;
|
|
12
|
-
isPaused: () => boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const useUploadFile: () => {
|
|
15
|
-
mutateAsync: (params: {
|
|
16
|
-
file: File;
|
|
17
|
-
folderId?: string;
|
|
18
|
-
onProgress?: (progress: number) => void;
|
|
19
|
-
}) => Promise<any>;
|
|
20
|
-
isPending: boolean;
|
|
21
|
-
error: Error | null;
|
|
22
|
-
pause: () => void;
|
|
23
|
-
isPaused: () => boolean;
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=useUploadFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadFile.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useUploadFile.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,aAAa;0BA4BW;QACjC,IAAI,EAAE,IAAI,CAAC;QACX,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;KACzC;;;;;CAmKF,CAAC"}
|
package/dist/files/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Files Microfrontend
|
|
3
|
-
*
|
|
4
|
-
* Provides comprehensive file storage, browsing, and management capabilities
|
|
5
|
-
* including file uploads, organization, sharing, versioning, and preview functionality.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* import { FilesRoot, type FilesRootProps } from '@burdenoff/micro-fe/files';
|
|
10
|
-
*
|
|
11
|
-
* function App() {
|
|
12
|
-
* const props: FilesRootProps = {
|
|
13
|
-
* basePath: '/files',
|
|
14
|
-
* navigate: (path) => router.push(path),
|
|
15
|
-
* currentUser: { id: '1', email: 'user@example.com' },
|
|
16
|
-
* workspaceId: 'ws-123',
|
|
17
|
-
* apiGatewayUrl: 'https://api.example.com',
|
|
18
|
-
* authToken: 'token',
|
|
19
|
-
* };
|
|
20
|
-
*
|
|
21
|
-
* return <FilesRoot {...props} />;
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export { FilesRoot } from './FilesRoot';
|
|
26
|
-
export type { FilesRootProps, FileSummary, FileViewMode, FileSortBy, FileSortDirection, FileItem, FolderItem, FilePermissions, FolderPermissions, UploadItem, UploadStatus, FileVersion, ShareLink, FileShare, StorageQuota, FilePreviewType, BreadcrumbItem, FileFilters, } from './types';
|
|
27
|
-
export { useFilesContext } from './providers/FilesProvider';
|
|
28
|
-
export { useFilesStore } from './store/filesStore';
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,SAAS,EACT,YAAY,EACZ,eAAe,EACf,cAAc,EACd,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserPage.d.ts","sourceRoot":"","sources":["../../../src/files/pages/BrowserPage.tsx"],"names":[],"mappings":"AAoFA;;GAEG;AACH,wBAAgB,WAAW,4CAs+D1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShareAccessPage.d.ts","sourceRoot":"","sources":["../../../src/files/pages/ShareAccessPage.tsx"],"names":[],"mappings":"AA8FA,wBAAgB,eAAe,4CAoM9B"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { FilesRootProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Context value for Files microfrontend
|
|
5
|
-
*/
|
|
6
|
-
type FilesContextValue = Omit<FilesRootProps, "children">;
|
|
7
|
-
/**
|
|
8
|
-
* Hook to access Files context
|
|
9
|
-
*/
|
|
10
|
-
export declare const useFilesContext: () => FilesContextValue;
|
|
11
|
-
/**
|
|
12
|
-
* Provider component for Files microfrontend
|
|
13
|
-
* Sets up context for child components.
|
|
14
|
-
*
|
|
15
|
-
* NOTE: Apollo client is provided by the app shell's MultiGatewayProvider.
|
|
16
|
-
* Files is a workspace-layer MFE; the shell's default ApolloProvider provides
|
|
17
|
-
* the workspace client automatically. This MFE does NOT create its own client.
|
|
18
|
-
*
|
|
19
|
-
* SECURITY FIX: Previously injected x-actor-id, x-actor-type, x-workspace-id,
|
|
20
|
-
* x-tenant-id headers from the frontend. These headers are now set by the API
|
|
21
|
-
* Gateway after token validation — frontends must NOT set them directly.
|
|
22
|
-
*/
|
|
23
|
-
export declare const FilesProvider: FC<PropsWithChildren<FilesRootProps>>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=FilesProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilesProvider.d.ts","sourceRoot":"","sources":["../../../src/files/providers/FilesProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;GAEG;AACH,KAAK,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAI1D;;GAEG;AACH,eAAO,MAAM,eAAe,yBAM3B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAW/D,CAAC"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { FileViewMode, FileSortBy, FileSortDirection, FolderItem, FileItem, UploadItem, FileFilters } from '../types';
|
|
2
|
-
interface FilesState {
|
|
3
|
-
currentFolder: FolderItem | null;
|
|
4
|
-
viewMode: FileViewMode;
|
|
5
|
-
sortBy: FileSortBy;
|
|
6
|
-
sortDirection: FileSortDirection;
|
|
7
|
-
selectedFiles: Set<string>;
|
|
8
|
-
selectedFolders: Set<string>;
|
|
9
|
-
uploadQueue: UploadItem[];
|
|
10
|
-
isUploadPanelOpen: boolean;
|
|
11
|
-
previewFile: FileItem | null;
|
|
12
|
-
isPreviewOpen: boolean;
|
|
13
|
-
filters: FileFilters;
|
|
14
|
-
breadcrumbs: Array<{
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}>;
|
|
18
|
-
isSidebarOpen: boolean;
|
|
19
|
-
isShareDialogOpen: boolean;
|
|
20
|
-
shareDialogFile: FileItem | null;
|
|
21
|
-
setCurrentFolder: (folder: FolderItem | null) => void;
|
|
22
|
-
setBreadcrumbs: (breadcrumbs: Array<{
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
}>) => void;
|
|
26
|
-
navigateToFolder: (folderId: string, folderName: string) => void;
|
|
27
|
-
navigateUp: () => void;
|
|
28
|
-
navigateToRoot: () => void;
|
|
29
|
-
setViewMode: (mode: FileViewMode) => void;
|
|
30
|
-
setSortBy: (sortBy: FileSortBy) => void;
|
|
31
|
-
toggleSortDirection: () => void;
|
|
32
|
-
selectFile: (fileId: string) => void;
|
|
33
|
-
deselectFile: (fileId: string) => void;
|
|
34
|
-
toggleFileSelection: (fileId: string) => void;
|
|
35
|
-
selectAllFiles: (fileIds: string[]) => void;
|
|
36
|
-
clearFileSelection: () => void;
|
|
37
|
-
selectFolder: (folderId: string) => void;
|
|
38
|
-
deselectFolder: (folderId: string) => void;
|
|
39
|
-
toggleFolderSelection: (folderId: string) => void;
|
|
40
|
-
selectAllFolders: (folderIds: string[]) => void;
|
|
41
|
-
clearSelection: () => void;
|
|
42
|
-
addToUploadQueue: (items: UploadItem[]) => void;
|
|
43
|
-
updateUploadItem: (id: string, updates: Partial<UploadItem>) => void;
|
|
44
|
-
removeFromUploadQueue: (id: string) => void;
|
|
45
|
-
clearUploadQueue: () => void;
|
|
46
|
-
setUploadPanelOpen: (open: boolean) => void;
|
|
47
|
-
openPreview: (file: FileItem) => void;
|
|
48
|
-
closePreview: () => void;
|
|
49
|
-
previewNextFile: (files: FileItem[]) => void;
|
|
50
|
-
previewPreviousFile: (files: FileItem[]) => void;
|
|
51
|
-
setFilters: (filters: Partial<FileFilters>) => void;
|
|
52
|
-
clearFilters: () => void;
|
|
53
|
-
toggleSidebar: () => void;
|
|
54
|
-
setSidebarOpen: (open: boolean) => void;
|
|
55
|
-
openShareDialog: (file: FileItem) => void;
|
|
56
|
-
closeShareDialog: () => void;
|
|
57
|
-
reset: () => void;
|
|
58
|
-
}
|
|
59
|
-
export declare const useFilesStore: import('zustand').UseBoundStore<Omit<Omit<import('zustand').StoreApi<FilesState>, "setState" | "devtools"> & {
|
|
60
|
-
setState(partial: FilesState | Partial<FilesState> | ((state: FilesState) => FilesState | Partial<FilesState>), replace?: false | undefined, action?: (string | {
|
|
61
|
-
[x: string]: unknown;
|
|
62
|
-
[x: number]: unknown;
|
|
63
|
-
[x: symbol]: unknown;
|
|
64
|
-
type: string;
|
|
65
|
-
}) | undefined): void;
|
|
66
|
-
setState(state: FilesState | ((state: FilesState) => FilesState), replace: true, action?: (string | {
|
|
67
|
-
[x: string]: unknown;
|
|
68
|
-
[x: number]: unknown;
|
|
69
|
-
[x: symbol]: unknown;
|
|
70
|
-
type: string;
|
|
71
|
-
}) | undefined): void;
|
|
72
|
-
devtools: {
|
|
73
|
-
cleanup: () => void;
|
|
74
|
-
};
|
|
75
|
-
}, "setState" | "persist"> & {
|
|
76
|
-
setState(partial: FilesState | Partial<FilesState> | ((state: FilesState) => FilesState | Partial<FilesState>), replace?: false | undefined, action?: (string | {
|
|
77
|
-
[x: string]: unknown;
|
|
78
|
-
[x: number]: unknown;
|
|
79
|
-
[x: symbol]: unknown;
|
|
80
|
-
type: string;
|
|
81
|
-
}) | undefined): unknown;
|
|
82
|
-
setState(state: FilesState | ((state: FilesState) => FilesState), replace: true, action?: (string | {
|
|
83
|
-
[x: string]: unknown;
|
|
84
|
-
[x: number]: unknown;
|
|
85
|
-
[x: symbol]: unknown;
|
|
86
|
-
type: string;
|
|
87
|
-
}) | undefined): unknown;
|
|
88
|
-
persist: {
|
|
89
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<FilesState, unknown, unknown>>) => void;
|
|
90
|
-
clearStorage: () => void;
|
|
91
|
-
rehydrate: () => Promise<void> | void;
|
|
92
|
-
hasHydrated: () => boolean;
|
|
93
|
-
onHydrate: (fn: (state: FilesState) => void) => () => void;
|
|
94
|
-
onFinishHydration: (fn: (state: FilesState) => void) => () => void;
|
|
95
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<FilesState, unknown, unknown>>;
|
|
96
|
-
};
|
|
97
|
-
}>;
|
|
98
|
-
export {};
|
|
99
|
-
//# sourceMappingURL=filesStore.d.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