@prose-reader/core 1.194.0 → 1.196.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.
@@ -138,20 +138,14 @@ export declare const createReaderWithEnhancers: (options: Partial<import('./sett
138
138
  theme$: import('rxjs').Observable<import('./enhancers/theme').Theme>;
139
139
  };
140
140
  };
141
+ } & {
142
+ links$: ReturnType<typeof import('./enhancers/html/links').handleLinks>;
141
143
  }, "load"> & import('./enhancers/navigation/types').NavigationEnhancerOutput & import('./enhancers/zoom/types').ZoomEnhancerOutput, "settings"> & {
142
144
  settings: import('./settings/SettingsInterface').SettingsInterface<import('./settings/types').CoreInputSettings & import('./enhancers/layoutEnhancer/types').InputSettings, import('./enhancers/layoutEnhancer/types').InputSettings & import('./settings/types').CoreInputSettings & import('./settings/types').ComputedCoreSettings>;
143
145
  } & {
144
146
  utils: {
145
147
  isOrIsWithinValidLink: (target: Event[`target`]) => boolean;
146
148
  };
147
- } & {
148
- $: {
149
- links$: import('rxjs').Observable<{
150
- event: `linkClicked`;
151
- data: HTMLAnchorElement;
152
- isNavigable: boolean;
153
- }>;
154
- };
155
149
  }, "settings"> & {
156
150
  settings: import('./settings/SettingsInterface').SettingsInterface<import('./settings/types').CoreInputSettings & import('./enhancers/layoutEnhancer/types').InputSettings & import('./enhancers/fonts/types').InputSettings, import('./enhancers/fonts/types').InputSettings & import('./enhancers/layoutEnhancer/types').InputSettings & import('./settings/types').CoreInputSettings & import('./settings/types').ComputedCoreSettings>;
157
151
  } & {
@@ -1,2 +1,8 @@
1
1
  import { EnhancerOptions, EnhancerOutput, RootEnhancer } from '../types/enhancer';
2
- export declare const htmlEnhancer: <InheritOptions extends EnhancerOptions<RootEnhancer>, InheritOutput extends EnhancerOutput<RootEnhancer>>(next: (options: InheritOptions) => InheritOutput) => (options: InheritOptions) => InheritOutput;
2
+ import { handleLinks } from './links';
3
+ export type HtmlEnhancerOutput = {
4
+ links$: ReturnType<typeof handleLinks>;
5
+ };
6
+ export declare const htmlEnhancer: <InheritOptions extends EnhancerOptions<RootEnhancer>, InheritOutput extends EnhancerOutput<RootEnhancer>>(next: (options: InheritOptions) => InheritOutput) => (options: InheritOptions) => InheritOutput & {
7
+ links$: ReturnType<typeof handleLinks>;
8
+ };
@@ -0,0 +1,2 @@
1
+ import { Reader } from '../../reader';
2
+ export declare const handleLinks: (reader: Reader) => import('rxjs').Observable<MouseEvent>;
@@ -1,3 +1,4 @@
1
+ import { HtmlEnhancerOutput } from '../html/enhancer';
1
2
  import { EnhancerOptions, EnhancerOutput, RootEnhancer } from '../types/enhancer';
2
3
  import { NavigationEnhancerOutput } from './types';
3
- export declare const navigationEnhancer: <InheritOptions extends EnhancerOptions<RootEnhancer>, InheritOutput extends EnhancerOutput<RootEnhancer>>(next: (options: InheritOptions) => InheritOutput) => (options: InheritOptions) => Omit<InheritOutput, "load"> & NavigationEnhancerOutput;
4
+ export declare const navigationEnhancer: <InheritOptions extends EnhancerOptions<RootEnhancer>, InheritOutput extends EnhancerOutput<RootEnhancer> & HtmlEnhancerOutput>(next: (options: InheritOptions) => InheritOutput) => (options: InheritOptions) => Omit<InheritOutput, "load"> & NavigationEnhancerOutput;
@@ -0,0 +1,4 @@
1
+ import { Reader } from '../../reader';
2
+ import { HtmlEnhancerOutput } from '../html/enhancer';
3
+ import { ManualNavigator } from './navigators/manualNavigator';
4
+ export declare const handleLinksNavigation: (reader: Reader & HtmlEnhancerOutput, manualNavigator: ManualNavigator) => import('rxjs').Observable<MouseEvent>;
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export { SettingsManager } from './settings/SettingsManager';
7
7
  export type Reader = ReturnType<typeof createReader>;
8
8
  export { createReader };
9
9
  export { Report } from './report';
10
- export { isHtmlElement } from './utils/dom';
10
+ export { isHtmlElement, isHtmlTagElement } from './utils/dom';
11
11
  export { isShallowEqual } from './utils/objects';
12
12
  export { waitForSwitch } from './utils/rxjs';
13
13
  export { SpineItem } from './spineItem/SpineItem';