@prose-reader/core 1.325.0 → 1.327.0

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.
@@ -10,7 +10,8 @@ export type ContextState = {
10
10
  };
11
11
  export declare class Context extends ReactiveEntity<ContextState> {
12
12
  bridgeEvent: BridgeEvent;
13
- constructor(manifest: Manifest);
13
+ readonly document: Document;
14
+ constructor(manifest: Manifest, ownerDocument?: Document);
14
15
  update(newState: Partial<Omit<ContextState, "manifest">>): void;
15
16
  isRTL: () => boolean;
16
17
  get manifest(): Manifest;
@@ -8,6 +8,7 @@ import { PaginationInfo, Pagination } from './pagination';
8
8
  export declare const createReaderWithEnhancers: (options: Partial< CoreInputSettings> & {
9
9
  manifest: Manifest;
10
10
  cfi?: string;
11
+ ownerDocument?: Document;
11
12
  } & {
12
13
  theme?: Theme;
13
14
  } & Partial< EnhancerLayoutInputSettings> & Partial< EnhancerFontsInputSettings>) => Omit<Omit<Omit<{
@@ -1 +1 @@
1
- export declare const createFrameElement: () => HTMLIFrameElement;
1
+ export declare const createFrameElement: (ownerDocument: Document) => HTMLIFrameElement;
@@ -2,6 +2,8 @@ import { UserNavigationEntry } from '../../../navigation/types';
2
2
  import { Reader } from '../../../reader';
3
3
  import { SpinePosition } from '../../../spine/types';
4
4
  import { SpineItemReference } from '../../../spineItem/SpineItem';
5
+ import { getNavigationForLeftOrTopPage } from '../resolvers/getNavigationForLeftOrTopPage';
6
+ import { getNavigationForRightOrBottomPage } from '../resolvers/getNavigationForRightOrBottomPage';
5
7
  export declare class ManualNavigator {
6
8
  protected reader: Reader;
7
9
  movingLastDelta: {
@@ -15,6 +17,7 @@ export declare class ManualNavigator {
15
17
  turnLeft(): void;
16
18
  turnTop(): void;
17
19
  turnBottom(): void;
20
+ protected turnWith(getNavigationForPage: typeof getNavigationForLeftOrTopPage | typeof getNavigationForRightOrBottomPage): void;
18
21
  turnRightOrBottom(): void;
19
22
  turnLeftOrTop(): void;
20
23
  goToCfi(cfi: string, options?: {