@tutti-os/workspace-file-manager 0.0.47 → 0.0.49
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/index.d.ts +24 -1
- package/dist/index.js +2 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -74,4 +74,27 @@ interface WorkspaceFileManagerContextMenuProps {
|
|
|
74
74
|
}
|
|
75
75
|
declare function WorkspaceFileManagerContextMenu({ busy, copy, contextMenu, contextMenuRef, openInAppBrowserIcon, positionMode, showCopyAction, showCopyPathAction, showCreateAction, showDeleteAction, showImportAction, showExportAction, showOpenInAppBrowserAction, showOpenInDefaultBrowserAction, showOpenInFileViewerAction, showOpenWithAction, showOpenWithOtherAction, showRevealInFolderAction, showRenameAction, revealInFolderLabel, openWithApplications, openWithLoading, resolveOpenWithApplicationIcon, onClose, onCreateDirectory, onCreateFile, onCopy, onCopyPath, onDelete, onExport, onOpen, onOpenInAppBrowser, onOpenInDefaultBrowser, onOpenInFileViewer, onOpenWithApplication, onOpenWithOtherApplication, onImport, onRevealInFolder, onRename }: WorkspaceFileManagerContextMenuProps): ReactElement | null;
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
declare function WorkspaceFileEntryIcon({ entry, frameClassName, iconClassName, iconUrlByCacheKey, isEnteringDirectory, loadingIconClassName, onViewportLeave, onViewportEnter }: {
|
|
78
|
+
entry: WorkspaceFileEntry;
|
|
79
|
+
frameClassName?: string;
|
|
80
|
+
iconClassName?: string;
|
|
81
|
+
iconUrlByCacheKey?: ReadonlyMap<string, string | null>;
|
|
82
|
+
isEnteringDirectory?: boolean;
|
|
83
|
+
loadingIconClassName?: string;
|
|
84
|
+
onViewportLeave?: (entry: WorkspaceFileEntry) => void;
|
|
85
|
+
onViewportEnter?: (entry: WorkspaceFileEntry) => void;
|
|
86
|
+
}): ReactElement;
|
|
87
|
+
|
|
88
|
+
type WorkspaceFileEntryIconUrlResolver = (entry: WorkspaceFileEntry) => Promise<string | null | undefined>;
|
|
89
|
+
|
|
90
|
+
declare function useWorkspaceFileEntryIconUrls(input: {
|
|
91
|
+
entries: readonly WorkspaceFileEntry[];
|
|
92
|
+
includeImageThumbnails?: boolean;
|
|
93
|
+
resolveEntryIconUrl?: WorkspaceFileEntryIconUrlResolver;
|
|
94
|
+
}): {
|
|
95
|
+
iconUrlByCacheKey: ReadonlyMap<string, string | null>;
|
|
96
|
+
reportEntryIconViewportEnter: (entry: WorkspaceFileEntry) => void;
|
|
97
|
+
reportEntryIconViewportLeave: (entry: WorkspaceFileEntry) => void;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export { WorkspaceFileEntry, WorkspaceFileEntryIcon, WorkspaceFileManager, WorkspaceFileManagerContextMenu, type WorkspaceFileManagerContextMenuProps, type WorkspaceFileManagerEntryDragMode, WorkspaceFileManagerI18nRuntime, type WorkspaceFileManagerProps, WorkspaceFileManagerSession, WorkspaceFileOpenWithApplication, useWorkspaceFileEntryIconUrls };
|
package/dist/index.js
CHANGED
|
@@ -4584,6 +4584,7 @@ function isPointInsideElement(element, clientX, clientY) {
|
|
|
4584
4584
|
return clientX >= bounds.left && clientX <= bounds.right && clientY >= bounds.top && clientY <= bounds.bottom;
|
|
4585
4585
|
}
|
|
4586
4586
|
export {
|
|
4587
|
+
WorkspaceFileEntryIcon,
|
|
4587
4588
|
WorkspaceFileManager,
|
|
4588
4589
|
WorkspaceFileManagerContextMenu,
|
|
4589
4590
|
classifyWorkspaceFilePreviewKind,
|
|
@@ -4601,6 +4602,7 @@ export {
|
|
|
4601
4602
|
resolveWorkspaceFileLocationDefaultId,
|
|
4602
4603
|
resolveWorkspaceImageMimeType,
|
|
4603
4604
|
resolveWorkspaceVideoMimeType,
|
|
4605
|
+
useWorkspaceFileEntryIconUrls,
|
|
4604
4606
|
workspaceFileManagerI18nNamespace,
|
|
4605
4607
|
workspaceFileManagerI18nResources,
|
|
4606
4608
|
workspaceFilePreviewMaxBytes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tutti-os/workspace-file-manager",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"directory": "packages/workspace/file-manager"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tutti-os/ui-i18n-runtime": "0.0.
|
|
32
|
-
"@tutti-os/ui-system": "0.0.
|
|
33
|
-
"@tutti-os/workspace-file-preview": "0.0.
|
|
31
|
+
"@tutti-os/ui-i18n-runtime": "0.0.49",
|
|
32
|
+
"@tutti-os/ui-system": "0.0.49",
|
|
33
|
+
"@tutti-os/workspace-file-preview": "0.0.49"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^24.0.1",
|