@prose-reader/core 1.234.0 → 1.236.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.
@@ -1,4 +1,4 @@
1
- import { CoreInputSettings, EnhancerLayoutInputSettings, Theme, EnhancerFontsInputSettings, Context, Spine, SpineItem, InternalNavigationEntry, InternalNavigator, ScrollNavigationController, ControlledNavigationController, Locker, UserNavigationEntry, DeprecatedViewportPosition, SpinePosition, SpineItemPosition, SpineItemsObserver, SpineItemsManager, ContextState, SettingsInterface, CoreOutputSettings, Viewport, Features, LayoutEnhancerOutput, ComputedCoreSettings, ExtraPaginationInfo, ResourcesLocator, NavigationEnhancerOutput, ZoomEnhancerOutput } from '.';
1
+ import { CoreInputSettings, EnhancerLayoutInputSettings, Theme, EnhancerFontsInputSettings, Context, Spine, SpineItem, InternalNavigationEntry, InternalNavigator, ScrollNavigationController, ControlledNavigationController, Locker, UserNavigationEntry, DeprecatedViewportPosition, SpinePosition, SpineItemPosition, SpineItemsObserver, SpineItemsManager, ContextState, SettingsInterface, CoreOutputSettings, SpineItemReference, Viewport, Features, LayoutEnhancerOutput, ComputedCoreSettings, ExtraPaginationInfo, ResourcesLocator, NavigationEnhancerOutput, ZoomEnhancerOutput } from '.';
2
2
  import { HookManager, CoreHook } from './hooks';
3
3
  import { Manifest } from '@prose-reader/shared';
4
4
  import { resolveCfi } from './cfi';
@@ -107,6 +107,10 @@ export declare const createReaderWithEnhancers: (options: Partial< CoreInputSett
107
107
  readonly state$: Observable<ObservedValueOf<Pagination>>;
108
108
  };
109
109
  settings: SettingsInterface<NonNullable< CoreInputSettings>, NonNullable< CoreOutputSettings | undefined>>;
110
+ renderHeadless: (spineItem: SpineItemReference) => Observable<{
111
+ doc: Document;
112
+ release: () => void;
113
+ } | undefined>;
110
114
  viewport: Viewport;
111
115
  element$: Observable<HTMLElement | undefined>;
112
116
  viewportState$: Observable<"free" | "busy">;
@@ -0,0 +1,2 @@
1
+ import { Report } from '@prose-reader/shared';
2
+ export declare const navigationReport: Report;
@@ -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;
package/dist/index.d.ts CHANGED
@@ -1,44 +1,45 @@
1
1
  import { createReaderWithEnhancers as createReader } from './createReaderWithEnhancer';
2
2
  export type { Manifest } from '@prose-reader/shared';
3
- export { DocumentRenderer } from './spineItem/renderer/DocumentRenderer';
4
- export { ResourceHandler } from './spineItem/resources/ResourceHandler';
5
3
  export type { Theme } from './enhancers/theme';
6
4
  export { HookManager } from './hooks/HookManager';
7
5
  export { SettingsManager } from './settings/SettingsManager';
6
+ export { DocumentRenderer } from './spineItem/renderer/DocumentRenderer';
7
+ export { ResourceHandler } from './spineItem/resources/ResourceHandler';
8
8
  export type CreateReaderOptions = Parameters<typeof createReader>[0];
9
9
  export { createReader };
10
10
  export type Reader = ReturnType<typeof createReader>;
11
- export { isHtmlElement, isHtmlTagElement } from './utils/dom';
12
- export { isShallowEqual } from './utils/objects';
13
- export { waitForSwitch } from './utils/rxjs';
14
- export { SpineItem } from './spineItem/SpineItem';
15
- export * from './utils/DestroyableClass';
16
- export * from './utils/frames';
17
- export * from './utils/rxjs';
11
+ export * from './cfi';
12
+ export * from './context/Context';
18
13
  export type { EnhancerFontsInputSettings } from './enhancers/fonts';
19
- export type { EnhancerLayoutInputSettings } from './enhancers/layout/types';
20
- export * from './pagination';
14
+ export * from './enhancers/html/enhancer';
21
15
  export * from './enhancers/layout/layoutEnhancer';
16
+ export type { EnhancerLayoutInputSettings } from './enhancers/layout/types';
22
17
  export * from './enhancers/navigation/types';
23
- export * from './enhancers/zoom/types';
24
- export * from './enhancers/types/enhancer';
25
- export * from './enhancers/html/enhancer';
26
- export * from './settings/types';
27
- export * from './settings/SettingsInterface';
28
- export * from './context/Context';
29
18
  export * from './enhancers/pagination';
19
+ export * from './enhancers/types/enhancer';
20
+ export * from './enhancers/zoom/types';
21
+ export * from './features/Features';
30
22
  export * from './hooks';
31
- export * from './navigation/InternalNavigator';
32
- export * from './navigation/Locker';
33
23
  export * from './navigation/controllers/ControlledNavigationController';
34
24
  export * from './navigation/controllers/ScrollNavigationController';
25
+ export * from './navigation/InternalNavigator';
26
+ export * from './navigation/Locker';
35
27
  export * from './navigation/types';
36
- export * from './spine/types';
37
- export * from './spine/SpineItemsManager';
28
+ export * from './pagination';
29
+ export * from './settings/SettingsInterface';
30
+ export * from './settings/types';
31
+ export * from './spine/Pages';
38
32
  export * from './spine/Spine';
33
+ export * from './spine/SpineItemsManager';
39
34
  export * from './spine/SpineItemsObserver';
40
- export * from './spine/Pages';
35
+ export * from './spine/types';
36
+ export * from './spineItem/SpineItem';
37
+ export { SpineItem } from './spineItem/SpineItem';
41
38
  export * from './spineItem/types';
42
- export * from './features/Features';
43
- export * from './cfi';
39
+ export * from './utils/DestroyableClass';
40
+ export { isHtmlElement, isHtmlTagElement } from './utils/dom';
41
+ export * from './utils/frames';
42
+ export { isShallowEqual } from './utils/objects';
43
+ export * from './utils/rxjs';
44
+ export { waitForSwitch } from './utils/rxjs';
44
45
  export * from './viewport/Viewport';