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
@@ -1,4 +1,4 @@
import type { ReaderMetadata, ReaderState } from "./reader-context";
import type { ReaderState } from "./reader-context";
type CurrentReader = import("./reader-context").CurrentReader;