fix(ebook-reader): load SVG images and fix progress update ID

- Add SVG image support: process <image xlink:href=...> elements
  in addition to HTML <img> tags for cover pages and embedded images
- Fix progress update: use 'id' from API response instead of
  'media_item_id' which the backend never returns for this endpoint
- Update reader context interfaces to include currentPage field
- Add debug logging for all resource keys to help troubleshoot
  image loading issues in future epubs
This commit is contained in:
2026-04-06 17:01:05 -04:00
parent b12040c63f
commit 6805d0b66d
4 changed files with 29 additions and 15 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ interface ParserCapabilities {
// ============================================================
interface ReaderMetadata {
media_item_id: string;
id: string;
title: string;
author: string;
cover_image_path: string;