@prose-reader/core 1.233.0 → 1.235.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.
@@ -6,7 +6,7 @@ export declare const resolveCfi: ({ cfi, spineItemsManager, }: {
6
6
  spineItemsManager: SpineItemsManager;
7
7
  }) => Omit<ReturnType<typeof parseCfi>, "offset"> & {
8
8
  offset?: number | undefined;
9
- node?: Node | null;
9
+ node: Node | null;
10
10
  range?: Range | null;
11
11
  spineItem?: SpineItem;
12
12
  };
@@ -44,7 +44,7 @@ export declare const createReaderWithEnhancers: (options: Partial< CoreInputSett
44
44
  offset: number;
45
45
  }, "offset"> & {
46
46
  offset?: number | undefined;
47
- node?: Node | null;
47
+ node: Node | null;
48
48
  range?: Range | null;
49
49
  spineItem?: SpineItem;
50
50
  };
@@ -1,3 +1,3 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { Reader } from '../../reader';
3
- export declare const createViewportModeHandler: (reader: Reader, viewportMode$: Observable<`normal` | `thumbnails`>) => Observable<"normal" | "thumbnails">;
3
+ export declare const createViewportModeHandler: (reader: Reader, viewportMode$: Observable<`normal` | `thumbnails`>) => Observable<0>;
@@ -0,0 +1,2 @@
1
+ import { Report } from '@prose-reader/shared';
2
+ export declare const navigationReport: Report;
@@ -10,7 +10,6 @@ export type ConsolidatedResource = ReturnType<typeof resolveCfi> & CfiLocatableR
10
10
  itemIndex?: number;
11
11
  itemPageIndex?: number;
12
12
  absolutePageIndex?: number;
13
- startNode?: Node;
14
13
  startOffset?: number;
15
14
  range?: Range | null;
16
15
  };
@@ -1,5 +1,5 @@
1
1
  import { LayoutEnhancerOutput } from '../layout/layoutEnhancer';
2
2
  import { EnhancerOutput, RootEnhancer } from '../types/enhancer';
3
3
  import { PaginationEnhancerAPI } from './types';
4
- export type { PaginationEnhancerAPI, EnhancerPaginationInto } from './types';
4
+ export type { EnhancerPaginationInto, PaginationEnhancerAPI } from './types';
5
5
  export declare const paginationEnhancer: <InheritOptions, InheritOutput extends EnhancerOutput<RootEnhancer> & LayoutEnhancerOutput, PaginationOutput extends PaginationEnhancerAPI<InheritOutput>>(next: (options: InheritOptions) => InheritOutput) => (options: InheritOptions) => PaginationOutput;
@@ -1,3 +1,3 @@
1
+ export * from './enhancer';
1
2
  export * from './ResourcesLocator';
2
3
  export * from './types';
3
- export * from './enhancer';
@@ -2,8 +2,8 @@ import { Observable } from 'rxjs';
2
2
  import { PaginationInfo } from '../../pagination/types';
3
3
  import { LayoutEnhancerOutput } from '../layout/layoutEnhancer';
4
4
  import { EnhancerOutput, RootEnhancer } from '../types/enhancer';
5
- import { ResourcesLocator } from './ResourcesLocator';
6
5
  import { ChapterInfo } from './chapters';
6
+ import { ResourcesLocator } from './ResourcesLocator';
7
7
  export type ExtraPaginationInfo = {
8
8
  beginChapterInfo: ChapterInfo | undefined;
9
9
  beginSpineItemReadingDirection: `rtl` | `ltr` | undefined;