@treinetic/treinetic-epub-reader 2.0.0 → 2.0.2

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.
@@ -0,0 +1,42 @@
1
+ import { Package } from '../model/Package';
2
+ import { SpineItem } from '../model/SpineItem';
3
+ export declare class ReaderView {
4
+ container: HTMLElement;
5
+ epubPackage?: Package;
6
+ iframe?: HTMLIFrameElement;
7
+ internalWrapper: HTMLElement;
8
+ private resizeObserver;
9
+ private isSingleImageMode;
10
+ constructor(container: HTMLElement);
11
+ private onContainerResize;
12
+ openBook(epubPackage: Package): void;
13
+ openPageRight(): Promise<void>;
14
+ openPageLeft(): Promise<void>;
15
+ openSpineItem(item: SpineItem, append?: boolean): Promise<void>;
16
+ private onContainerScroll;
17
+ private loadNextChapter;
18
+ private columnGap;
19
+ private currentPageIndex;
20
+ private pageCount;
21
+ private currentSettings;
22
+ private currentBookStyles;
23
+ private frames;
24
+ private isLoadingNext;
25
+ private activeFrameObserver;
26
+ private initFrameContent;
27
+ updateSettings(settings: any): void;
28
+ private getVisibleElement;
29
+ private scrollToElement;
30
+ setBookStyles(styles: any[]): void;
31
+ private applyStylesToFrame;
32
+ private applySettingsToDoc;
33
+ private setupFrameHeightLogic;
34
+ private handleLinkClick;
35
+ private updatePagination;
36
+ private scrollToPage;
37
+ currentItem?: SpineItem;
38
+ openContentUrl(href: string): Promise<void>;
39
+ private scrollToAnchor;
40
+ private injectResources;
41
+ private resolvePath;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treinetic/treinetic-epub-reader",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "description": "A modern, lightweight, and framework-agnostic EPUB reader for the web, built with TypeScript.",
6
6
  "keywords": [
@@ -46,6 +46,7 @@
46
46
  "jsdom": "^27.3.0",
47
47
  "typescript": "^5.2.2",
48
48
  "vite": "^5.0.0",
49
+ "vite-plugin-dts": "^4.5.4",
49
50
  "vitest": "^4.0.16"
50
51
  },
51
52
  "dependencies": {