@tutti-os/workspace-file-manager 0.0.204 → 0.0.205

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,12 +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. Those files are
47
- published through the stable
48
- `@tutti-os/workspace-file-manager/assets/workspace-*-fallback.png` subpaths so
49
- consumer bundlers can resolve them during dependency prebundling. Keep runtime
50
- imports on those public subpaths; relative `new URL("./assets/...", import.meta.url)`
51
- references from the built entry are not a supported asset contract.
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.
52
54
 
53
55
  What stays outside this package is concrete host integration: desktop preload
54
56
  calls, tuttid transport wiring, host absolute paths, import/export/upload
@@ -0,0 +1,3 @@
1
+ declare const workspaceArchiveFallbackIconUrl: string;
2
+
3
+ export { workspaceArchiveFallbackIconUrl as default };
@@ -0,0 +1,10 @@
1
+ // src/runtime-assets/workspace-archive-fallback-url.ts
2
+ var workspaceArchiveFallbackIconUrl = new URL(
3
+ "../assets/workspace-archive-fallback.png",
4
+ import.meta.url
5
+ ).href;
6
+ var workspace_archive_fallback_url_default = workspaceArchiveFallbackIconUrl;
7
+ export {
8
+ workspace_archive_fallback_url_default as default
9
+ };
10
+ //# sourceMappingURL=workspace-archive-fallback-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/runtime-assets/workspace-archive-fallback-url.ts"],"sourcesContent":["const workspaceArchiveFallbackIconUrl = new URL(\n \"../assets/workspace-archive-fallback.png\",\n import.meta.url\n).href;\n\nexport default workspaceArchiveFallbackIconUrl;\n"],"mappings":";AAAA,IAAM,kCAAkC,IAAI;AAAA,EAC1C;AAAA,EACA,YAAY;AACd,EAAE;AAEF,IAAO,yCAAQ;","names":[]}
@@ -0,0 +1,3 @@
1
+ declare const workspaceFolderFallbackIconUrl: string;
2
+
3
+ export { workspaceFolderFallbackIconUrl as default };
@@ -0,0 +1,10 @@
1
+ // src/runtime-assets/workspace-folder-fallback-url.ts
2
+ var workspaceFolderFallbackIconUrl = new URL(
3
+ "../assets/workspace-folder-fallback.png",
4
+ import.meta.url
5
+ ).href;
6
+ var workspace_folder_fallback_url_default = workspaceFolderFallbackIconUrl;
7
+ export {
8
+ workspace_folder_fallback_url_default as default
9
+ };
10
+ //# sourceMappingURL=workspace-folder-fallback-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/runtime-assets/workspace-folder-fallback-url.ts"],"sourcesContent":["const workspaceFolderFallbackIconUrl = new URL(\n \"../assets/workspace-folder-fallback.png\",\n import.meta.url\n).href;\n\nexport default workspaceFolderFallbackIconUrl;\n"],"mappings":";AAAA,IAAM,iCAAiC,IAAI;AAAA,EACzC;AAAA,EACA,YAAY;AACd,EAAE;AAEF,IAAO,wCAAQ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tutti-os/workspace-file-manager",
3
- "version": "0.0.204",
3
+ "version": "0.0.205",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -11,10 +11,14 @@
11
11
  },
12
12
  "./assets/workspace-archive-fallback.png": {
13
13
  "types": "./dist/assets/workspace-archive-fallback.png.d.ts",
14
+ "browser": "./dist/assets/workspace-archive-fallback.png",
15
+ "node": "./dist/runtime-assets/workspace-archive-fallback-url.js",
14
16
  "default": "./dist/assets/workspace-archive-fallback.png"
15
17
  },
16
18
  "./assets/workspace-folder-fallback.png": {
17
19
  "types": "./dist/assets/workspace-folder-fallback.png.d.ts",
20
+ "browser": "./dist/assets/workspace-folder-fallback.png",
21
+ "node": "./dist/runtime-assets/workspace-folder-fallback-url.js",
18
22
  "default": "./dist/assets/workspace-folder-fallback.png"
19
23
  },
20
24
  "./i18n": {
@@ -36,9 +40,9 @@
36
40
  "directory": "packages/workspace/file-manager"
37
41
  },
38
42
  "dependencies": {
39
- "@tutti-os/ui-i18n-runtime": "0.0.204",
40
- "@tutti-os/ui-system": "0.0.204",
41
- "@tutti-os/workspace-file-preview": "0.0.204"
43
+ "@tutti-os/ui-i18n-runtime": "0.0.205",
44
+ "@tutti-os/ui-system": "0.0.205",
45
+ "@tutti-os/workspace-file-preview": "0.0.205"
42
46
  },
43
47
  "devDependencies": {
44
48
  "@types/node": "^24.0.1",