@prose-reader/core 1.261.0 → 1.263.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 -1
- package/dist/enhancers/navigation/navigators/panNavigator.d.ts +16 -8
- package/dist/enhancers/navigation/types.d.ts +1 -1
- package/dist/enhancers/utils.d.ts +1 -0
- package/dist/enhancers/zoom/ZoomController.d.ts +9 -8
- package/dist/enhancers/zoom/constraints.d.ts +6 -0
- package/dist/enhancers/zoom/scrollable.d.ts +1 -2
- package/dist/enhancers/zoom/types.d.ts +9 -4
- package/dist/index.js +877 -825
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +24 -24
- package/dist/index.umd.cjs.map +1 -1
- package/dist/navigation/InternalNavigator.d.ts +2 -2
- package/dist/navigation/Navigator.d.ts +1 -1
- package/dist/reader.d.ts +1 -1
- package/dist/utils/dom.d.ts +1 -1
- package/dist/utils/frames.d.ts +1 -1
- package/package.json +4 -4
|
@@ -18,7 +18,7 @@ export declare class InternalNavigator extends DestroyableClass {
|
|
|
18
18
|
protected scrollNavigationController: ScrollNavigationController;
|
|
19
19
|
protected navigationResolver: ReturnType<typeof createNavigationResolver>;
|
|
20
20
|
protected spine: Spine;
|
|
21
|
-
protected
|
|
21
|
+
protected isRestorationLocked$: Observable<boolean>;
|
|
22
22
|
navigationSubject: BehaviorSubject<InternalNavigationEntry>;
|
|
23
23
|
navigated$: Observable<{
|
|
24
24
|
position: SpinePosition | UnboundSpinePosition;
|
|
@@ -37,6 +37,6 @@ export declare class InternalNavigator extends DestroyableClass {
|
|
|
37
37
|
id: symbol;
|
|
38
38
|
}>;
|
|
39
39
|
locker: Locker;
|
|
40
|
-
constructor(settings: ReaderSettingsManager, context: Context, userNavigation$: Observable<UserNavigationEntry>, controlledNavigationController: ControlledNavigationController, scrollNavigationController: ScrollNavigationController, navigationResolver: ReturnType<typeof createNavigationResolver>, spine: Spine,
|
|
40
|
+
constructor(settings: ReaderSettingsManager, context: Context, userNavigation$: Observable<UserNavigationEntry>, controlledNavigationController: ControlledNavigationController, scrollNavigationController: ScrollNavigationController, navigationResolver: ReturnType<typeof createNavigationResolver>, spine: Spine, isRestorationLocked$: Observable<boolean>);
|
|
41
41
|
get navigation(): InternalNavigationEntry;
|
|
42
42
|
}
|
|
@@ -26,7 +26,7 @@ export declare const createNavigator: ({ spineItemsManager, context, hookManager
|
|
|
26
26
|
scrollNavigationController: ScrollNavigationController;
|
|
27
27
|
controlledNavigationController: ControlledNavigationController;
|
|
28
28
|
locker: Locker;
|
|
29
|
-
|
|
29
|
+
navigationState$: Observable<"free" | "busy">;
|
|
30
30
|
navigate: (to: UserNavigationEntry) => void;
|
|
31
31
|
lock(): () => void;
|
|
32
32
|
navigationResolver: {
|
package/dist/reader.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare const createReader: (inputSettings: CreateReaderOptions) => {
|
|
|
55
55
|
scrollNavigationController: ScrollNavigationController;
|
|
56
56
|
controlledNavigationController: ControlledNavigationController;
|
|
57
57
|
locker: Locker;
|
|
58
|
-
|
|
58
|
+
navigationState$: Observable<"free" | "busy">;
|
|
59
59
|
navigate: (to: UserNavigationEntry) => void;
|
|
60
60
|
lock(): () => void;
|
|
61
61
|
navigationResolver: {
|
package/dist/utils/dom.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export declare function hasShape<T>(obj: unknown, requiredProps: (keyof T)[], op
|
|
|
19
19
|
export declare function isHtmlElement(element: unknown): element is HTMLElement;
|
|
20
20
|
export declare function isHtmlTagElement<K extends keyof HTMLElementTagNameMap>(element: unknown, tagName: K): element is HTMLElementTagNameMap[K];
|
|
21
21
|
export declare function isHtmlRange(element: unknown): element is Range;
|
|
22
|
-
export declare const injectCSS: (doc: Document, id: string, style: string, prepend?: boolean) => void;
|
|
22
|
+
export declare const injectCSS: (doc: Document, id: string, style: string, prepend?: boolean) => () => void;
|
|
23
23
|
export declare const removeCSS: (doc: Document, id: string) => void;
|
|
24
24
|
export {};
|
package/dist/utils/frames.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
export declare const getAttributeValueFromString: (string: string, key: string) => number;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const injectCSSToFrame: (frameElement: HTMLIFrameElement, id: string, style: string, prepend?: boolean) => void;
|
|
4
4
|
export declare const removeCSS: (frameElement: HTMLIFrameElement, id: string) => void;
|
|
5
5
|
export declare const upsertCSSToFrame: (frameElement: HTMLIFrameElement | undefined, id: string, style: string, prepend?: boolean) => void;
|
|
6
6
|
export declare const getFrameViewportInfo: (frame: HTMLIFrameElement | undefined) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prose-reader/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.263.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"tsc": "tsc"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@prose-reader/cfi": "^1.
|
|
27
|
-
"@prose-reader/shared": "^1.
|
|
26
|
+
"@prose-reader/cfi": "^1.263.0",
|
|
27
|
+
"@prose-reader/shared": "^1.263.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"rxjs": "*"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "6a44587b76a0bd45298a3713d11205843b4ab2e9"
|
|
44
44
|
}
|