@tutti-os/workspace-file-manager 0.0.206 → 0.0.207

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/README.md CHANGED
@@ -43,14 +43,14 @@ drag movement.
43
43
  Hosts now provide one app-level i18n runtime and scope it into the file-manager
44
44
  namespace, rather than hand-assembling package-local message objects.
45
45
 
46
- The React surface owns its archive and folder fallback artwork. Runtime code
47
- loads the artwork through the stable
48
- `@tutti-os/workspace-file-manager/assets/workspace-*-fallback.png` subpaths.
49
- The published export maps each subpath to the PNG in browser conditions and to
50
- a JavaScript URL module in Node conditions. Browser bundlers therefore
51
- preserve asset handling during dependency prebundling, while Node-based test
52
- runners evaluate JavaScript instead of importing a `.png` file. Keep the root
53
- entry free of relative `new URL("./assets/...", import.meta.url)` references.
46
+ The React surface renders its default archive and folder fallbacks with
47
+ code-owned `@tutti-os/ui-system` SVG icon components. Keep the package root free
48
+ of fallback image imports: browser-conditioned test environments may select a
49
+ raw image export and then externalize the package for Node execution, which
50
+ cannot evaluate `.png` modules. The legacy
51
+ `@tutti-os/workspace-file-manager/assets/workspace-*-fallback.png` subpaths
52
+ remain available to browser consumers that explicitly need the artwork, but
53
+ the shared runtime does not depend on them.
54
54
 
55
55
  What stays outside this package is concrete host integration: desktop preload
56
56
  calls, tuttid transport wiring, host absolute paths, import/export/upload
package/dist/index.js CHANGED
@@ -1102,8 +1102,10 @@ import { useLayoutEffect as useLayoutEffect3, useRef as useRef4 } from "react";
1102
1102
 
1103
1103
  // src/ui/WorkspaceFileEntryIcon.tsx
1104
1104
  import {
1105
+ FileArchiveIcon,
1105
1106
  FileCodeIcon,
1106
1107
  FileTextIcon,
1108
+ FolderFilledIcon,
1107
1109
  ImageFileIcon,
1108
1110
  LoadingIcon,
1109
1111
  VideoFileIcon,
@@ -1114,12 +1116,6 @@ import {
1114
1116
  resolveWorkspaceFileExtension,
1115
1117
  resolveWorkspaceFileVisualKind
1116
1118
  } from "@tutti-os/workspace-file-preview";
1117
-
1118
- // src/workspaceFileFallbackAssets.ts
1119
- import workspaceArchiveFallbackIconUrl from "@tutti-os/workspace-file-manager/assets/workspace-archive-fallback.png";
1120
- import workspaceFolderFallbackIconUrl from "@tutti-os/workspace-file-manager/assets/workspace-folder-fallback.png";
1121
-
1122
- // src/ui/WorkspaceFileEntryIcon.tsx
1123
1119
  import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
1124
1120
  function WorkspaceFileEntryIcon({
1125
1121
  entry,
@@ -1293,32 +1289,12 @@ function vectorFallbackIconClassName(iconClassName) {
1293
1289
  function WorkspaceFolderFallbackIcon({
1294
1290
  className
1295
1291
  }) {
1296
- return /* @__PURE__ */ jsx4(
1297
- "img",
1298
- {
1299
- alt: "",
1300
- "aria-hidden": "true",
1301
- className: cn2("object-contain", className),
1302
- decoding: "async",
1303
- draggable: false,
1304
- src: workspaceFolderFallbackIconUrl
1305
- }
1306
- );
1292
+ return /* @__PURE__ */ jsx4(FolderFilledIcon, { className: vectorFallbackIconClassName(className) });
1307
1293
  }
1308
1294
  function WorkspaceArchiveFallbackIcon({
1309
1295
  className
1310
1296
  }) {
1311
- return /* @__PURE__ */ jsx4(
1312
- "img",
1313
- {
1314
- alt: "",
1315
- "aria-hidden": "true",
1316
- className: cn2("object-contain", className),
1317
- decoding: "async",
1318
- draggable: false,
1319
- src: workspaceArchiveFallbackIconUrl
1320
- }
1321
- );
1297
+ return /* @__PURE__ */ jsx4(FileArchiveIcon, { className: vectorFallbackIconClassName(className) });
1322
1298
  }
1323
1299
  function WorkspaceImageFallbackIcon({
1324
1300
  className