@readium/navigator 2.2.7 → 2.2.8
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/dist/ar-DyHX_uy2-DyHX_uy2-DyHX_uy2.js +7 -0
- package/dist/ar-DyHX_uy2-DyHX_uy2.js +7 -0
- package/dist/da-Dct0PS3E-Dct0PS3E-Dct0PS3E.js +7 -0
- package/dist/da-Dct0PS3E-Dct0PS3E.js +7 -0
- package/dist/fr-C5HEel98-C5HEel98-C5HEel98.js +7 -0
- package/dist/fr-C5HEel98-C5HEel98.js +7 -0
- package/dist/index.js +4330 -2342
- package/dist/index.umd.cjs +1571 -39
- package/dist/it-DFOBoXGy-DFOBoXGy-DFOBoXGy.js +7 -0
- package/dist/it-DFOBoXGy-DFOBoXGy.js +7 -0
- package/dist/pt_PT-Di3sVjze-Di3sVjze-Di3sVjze.js +7 -0
- package/dist/pt_PT-Di3sVjze-Di3sVjze.js +7 -0
- package/dist/sv-BfzAFsVN-BfzAFsVN-BfzAFsVN.js +7 -0
- package/dist/sv-BfzAFsVN-BfzAFsVN.js +7 -0
- package/package.json +1 -1
- package/src/dom/_readium_executionCleanup.js +13 -0
- package/src/dom/_readium_executionPrevention.js +65 -0
- package/src/dom/_readium_webpubExecution.js +4 -0
- package/src/epub/EpubNavigator.ts +26 -2
- package/src/epub/frame/FrameBlobBuilder.ts +37 -131
- package/src/epub/frame/FramePoolManager.ts +34 -5
- package/src/epub/fxl/FXLFramePoolManager.ts +20 -2
- package/src/helpers/minify.ts +14 -0
- package/src/index.ts +2 -1
- package/src/injection/Injectable.ts +85 -0
- package/src/injection/Injector.ts +356 -0
- package/src/injection/epubInjectables.ts +90 -0
- package/src/injection/index.ts +2 -0
- package/src/injection/webpubInjectables.ts +59 -0
- package/src/webpub/WebPubBlobBuilder.ts +19 -80
- package/src/webpub/WebPubFramePoolManager.ts +29 -4
- package/src/webpub/WebPubNavigator.ts +15 -1
- package/types/src/epub/EpubNavigator.d.ts +3 -0
- package/types/src/epub/frame/FrameBlobBuilder.d.ts +7 -4
- package/types/src/epub/frame/FramePoolManager.d.ts +3 -1
- package/types/src/epub/fxl/FXLFramePoolManager.d.ts +3 -1
- package/types/src/helpers/minify.d.ts +12 -0
- package/types/src/index.d.ts +1 -0
- package/types/src/injection/Injectable.d.ts +68 -0
- package/types/src/injection/Injector.d.ts +22 -0
- package/types/src/injection/epubInjectables.d.ts +6 -0
- package/types/src/injection/index.d.ts +2 -0
- package/types/src/injection/webpubInjectables.d.ts +5 -0
- package/types/src/webpub/WebPubBlobBuilder.d.ts +7 -3
- package/types/src/webpub/WebPubFramePoolManager.d.ts +3 -1
- package/types/src/webpub/WebPubNavigator.d.ts +3 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ModuleName } from "@readium/navigator-html-injectables";
|
|
2
2
|
import { Locator, Publication } from "@readium/shared";
|
|
3
3
|
import { WebPubFrameManager } from "./WebPubFrameManager";
|
|
4
|
+
import { Injector } from "../injection/Injector";
|
|
4
5
|
export declare class WebPubFramePoolManager {
|
|
5
6
|
private readonly container;
|
|
6
7
|
private _currentFrame;
|
|
@@ -10,9 +11,10 @@ export declare class WebPubFramePoolManager {
|
|
|
10
11
|
private readonly inprogress;
|
|
11
12
|
private pendingUpdates;
|
|
12
13
|
private currentBaseURL;
|
|
14
|
+
private readonly injector?;
|
|
13
15
|
constructor(container: HTMLElement, cssProperties?: {
|
|
14
16
|
[key: string]: string;
|
|
15
|
-
});
|
|
17
|
+
}, injector?: Injector | null);
|
|
16
18
|
destroy(): Promise<void>;
|
|
17
19
|
update(pub: Publication, locator: Locator, modules: ModuleName[]): Promise<void>;
|
|
18
20
|
setCSSProperties(properties: {
|
|
@@ -8,9 +8,11 @@ import { IWebPubPreferences, WebPubPreferences } from "./preferences/WebPubPrefe
|
|
|
8
8
|
import { IWebPubDefaults } from "./preferences/WebPubDefaults";
|
|
9
9
|
import { WebPubSettings } from "./preferences/WebPubSettings";
|
|
10
10
|
import { IPreferencesEditor } from "../preferences/PreferencesEditor";
|
|
11
|
+
import { IInjectablesConfig } from "../injection/Injectable";
|
|
11
12
|
export interface WebPubNavigatorConfiguration {
|
|
12
13
|
preferences: IWebPubPreferences;
|
|
13
14
|
defaults: IWebPubDefaults;
|
|
15
|
+
injectables?: IInjectablesConfig;
|
|
14
16
|
}
|
|
15
17
|
export interface WebPubNavigatorListeners {
|
|
16
18
|
frameLoaded: (wnd: Window) => void;
|
|
@@ -35,6 +37,7 @@ export declare class WebPubNavigator extends VisualNavigator implements Configur
|
|
|
35
37
|
private _settings;
|
|
36
38
|
private _css;
|
|
37
39
|
private _preferencesEditor;
|
|
40
|
+
private readonly _injector;
|
|
38
41
|
private webViewport;
|
|
39
42
|
constructor(container: HTMLElement, pub: Publication, listeners: WebPubNavigatorListeners, initialPosition?: Locator | undefined, configuration?: WebPubNavigatorConfiguration);
|
|
40
43
|
load(): Promise<void>;
|