@tutti-os/workspace-file-manager 0.0.12 → 0.0.13
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/assets/workspace-archive-fallback.png +0 -0
- package/dist/assets/workspace-folder-fallback.png +0 -0
- package/dist/assets/workspace-image-fallback.png +0 -0
- package/dist/{chunk-CSFEGRX7.js → chunk-G2T6CZ2T.js} +18 -9
- package/dist/{chunk-CSFEGRX7.js.map → chunk-G2T6CZ2T.js.map} +1 -1
- package/dist/{chunk-L6SAJEFE.js → chunk-MDBT2GS5.js} +1 -3
- package/dist/chunk-MDBT2GS5.js.map +1 -0
- package/dist/{fileKinds-CMKjSrBx.d.ts → fileKinds-DxnVJkSm.d.ts} +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{index-CppyxTLd.d.ts → index-BMBoznj4.d.ts} +0 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +98 -28
- package/dist/index.js.map +1 -1
- package/dist/services/index.d.ts +5 -4
- package/dist/services/index.js +4 -2
- package/package.json +5 -5
- package/dist/chunk-L6SAJEFE.js.map +0 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1738,14 +1738,12 @@ function createWorkspaceFileManagerService() {
|
|
|
1738
1738
|
|
|
1739
1739
|
// src/services/workspaceFileEntryIconPolicy.ts
|
|
1740
1740
|
var defaultApplicationIconExtensions = /* @__PURE__ */ new Set([
|
|
1741
|
-
"7z",
|
|
1742
1741
|
"ai",
|
|
1743
1742
|
"dmg",
|
|
1744
1743
|
"doc",
|
|
1745
1744
|
"docx",
|
|
1746
1745
|
"eps",
|
|
1747
1746
|
"fig",
|
|
1748
|
-
"gz",
|
|
1749
1747
|
"indd",
|
|
1750
1748
|
"key",
|
|
1751
1749
|
"numbers",
|
|
@@ -1753,22 +1751,26 @@ var defaultApplicationIconExtensions = /* @__PURE__ */ new Set([
|
|
|
1753
1751
|
"ods",
|
|
1754
1752
|
"odt",
|
|
1755
1753
|
"pages",
|
|
1756
|
-
"pdf",
|
|
1757
1754
|
"pkg",
|
|
1758
1755
|
"ppt",
|
|
1759
1756
|
"pptx",
|
|
1760
1757
|
"psd",
|
|
1761
|
-
"rar",
|
|
1762
1758
|
"rtf",
|
|
1763
1759
|
"sketch",
|
|
1764
|
-
"tar",
|
|
1765
|
-
"tgz",
|
|
1766
1760
|
"xd",
|
|
1767
1761
|
"xls",
|
|
1768
|
-
"xlsx"
|
|
1762
|
+
"xlsx"
|
|
1763
|
+
]);
|
|
1764
|
+
var archiveIconExtensions = /* @__PURE__ */ new Set([
|
|
1765
|
+
"7z",
|
|
1766
|
+
"gz",
|
|
1767
|
+
"rar",
|
|
1768
|
+
"tar",
|
|
1769
|
+
"tgz",
|
|
1769
1770
|
"xz",
|
|
1770
1771
|
"zip"
|
|
1771
1772
|
]);
|
|
1773
|
+
var extensionDocumentIconExtensions = /* @__PURE__ */ new Set(["pdf"]);
|
|
1772
1774
|
function shouldResolveWorkspaceFileEntryIcon(entry, options = {}) {
|
|
1773
1775
|
return options.includeImageThumbnails && shouldResolveWorkspaceFileImageThumbnail(entry) || isWorkspaceApplicationBundle(entry) || resolveWorkspaceFileDefaultApplicationIconExtension(entry) !== null;
|
|
1774
1776
|
}
|
|
@@ -1777,7 +1779,13 @@ function shouldUseWorkspaceFileExtensionDocumentIcon(entry) {
|
|
|
1777
1779
|
return false;
|
|
1778
1780
|
}
|
|
1779
1781
|
const visualKind = resolveWorkspaceFileVisualKind(entry);
|
|
1780
|
-
|
|
1782
|
+
const extension = resolveWorkspaceFileExtension(entry.name).toLowerCase();
|
|
1783
|
+
return visualKind === "code" || visualKind === "markdown" || extensionDocumentIconExtensions.has(extension) || classifyWorkspaceFilePreviewKind(entry) === "text";
|
|
1784
|
+
}
|
|
1785
|
+
function shouldUseWorkspaceFileArchiveIcon(entry) {
|
|
1786
|
+
return entry.kind === "file" && archiveIconExtensions.has(
|
|
1787
|
+
resolveWorkspaceFileExtension(entry.name).toLowerCase()
|
|
1788
|
+
);
|
|
1781
1789
|
}
|
|
1782
1790
|
function isWorkspaceApplicationBundle(entry) {
|
|
1783
1791
|
return entry.kind !== "file" && entry.name.trim().toLowerCase().endsWith(".app");
|
|
@@ -1827,8 +1835,9 @@ export {
|
|
|
1827
1835
|
createWorkspaceFileManagerService,
|
|
1828
1836
|
shouldResolveWorkspaceFileEntryIcon,
|
|
1829
1837
|
shouldUseWorkspaceFileExtensionDocumentIcon,
|
|
1838
|
+
shouldUseWorkspaceFileArchiveIcon,
|
|
1830
1839
|
isWorkspaceApplicationBundle,
|
|
1831
1840
|
resolveWorkspaceFileDefaultApplicationIconExtension,
|
|
1832
1841
|
resolveWorkspaceFileEntryIconCacheKey
|
|
1833
1842
|
};
|
|
1834
|
-
//# sourceMappingURL=chunk-
|
|
1843
|
+
//# sourceMappingURL=chunk-G2T6CZ2T.js.map
|