@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.
- package/dist/createReaderWithEnhancer.d.ts +2 -8
- package/dist/enhancers/html/enhancer.d.ts +7 -1
- package/dist/enhancers/html/links.d.ts +2 -0
- package/dist/enhancers/navigation/index.d.ts +2 -1
- package/dist/enhancers/navigation/links.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +173 -151
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +172 -150
- package/dist/index.umd.cjs.map +1 -1
- package/dist/navigation/tests/SpineItemsManagerMock.d.ts +1 -1
- package/dist/navigation/tests/utils.d.ts +1 -1
- package/dist/spine/SpineItemsManager.d.ts +3 -3
- package/dist/spine/SpineLayout.d.ts +6 -26
- package/dist/spine/layout/convertViewportPositionToLayoutPosition.d.ts +2 -2
- package/dist/spine/layout/layoutItem.d.ts +2 -0
- package/dist/spine/layout/types.d.ts +11 -0
- package/dist/spineItem/SpineItem.d.ts +1 -14
- package/dist/spineItem/SpineItemLayout.d.ts +1 -7
- package/dist/utils/dom.d.ts +2 -1
- package/package.json +3 -3
- package/dist/enhancers/links.d.ts +0 -14
|
@@ -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
|
-
|
|
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
|
+
};
|
|
@@ -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
|
|
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';
|