# UnifiedFiler v1.9 Notes

v1.9 consolidates the planned v1.8.5, v1.8.6 and v1.9 scopes into one product ZIP.

## Preview / Metadata Enhancement

- `PreviewService` now handles Markdown, formatted JSON, browser PDF preview, image preview, sandboxed HTML preview, and text fallback.
- Existing `PackageInfoService` remains responsible for ZIP/native package preview such as `.uwpsx`, `.usldx`, `.umal`, `.umdlx`, and `.ualbx`.
- `PreviewService.renderData()` was added so Host applications can render Blob/text previews without creating a storage entry first.
- Theme CSS was extended for Markdown, JSON, PDF, HTML and image preview containers.

## Google Drive Practical Enhancement

- `GoogleDriveApiService` now supports conflict handling through `conflictMode`:
  - `rename`
  - `overwrite`
  - `skip`
  - `error`
- Uploads can use `uploadStrategy`:
  - `multipart`
  - `resumable`
  - `auto`
- `resumableThreshold` controls when `auto` switches from multipart upload to resumable upload.
- Google Workspace native files can be exported through `exportFile()`.
- Shared-drive helper methods were added:
  - `listSharedDrives()`
  - `listSharedWithMe()`
  - `listSharedDriveRoot()`
- The implementation remains browser-only: Google Identity Services + Fetch API + Drive API v3, without a proprietary backend proxy.

## Host Integration API

- `HostIntegrationService` was added for UnifiedDesktop / Office / Viewer / Editor integrations.
- `ConflictResolverService` was added for reusable save/copy/move conflict policies.
- `FileService` now exposes batch-oriented methods:
  - `copyEntries()`
  - `moveEntries()`
  - `removeEntries()`
  - `exportFile()`
- Host profiles are available for:
  - `unifiedDesktop`
  - `office`
  - `viewer`
  - `editor`

## Package Entry

`scripts/main.js` now exposes:

- `HostIntegrationService`
- `ConflictResolverService`
- enhanced `PreviewService`
- enhanced `GoogleDriveApiService`
- enhanced `GoogleDriveAdapter`

