@anaralabs/lector 3.6.0 → 3.7.1
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/_tsup-dts-rollup.d.ts +7 -8
- package/dist/index.js +558 -271
- package/package.json +101 -109
|
@@ -9,7 +9,7 @@ import type { JSX as JSX_2 } from 'react';
|
|
|
9
9
|
import type { PageViewport } from 'pdfjs-dist';
|
|
10
10
|
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
11
11
|
import type { PDFPageProxy } from 'pdfjs-dist';
|
|
12
|
-
import { default as React_2 } from 'react';
|
|
12
|
+
import type { default as React_2 } from 'react';
|
|
13
13
|
import { ReactElement } from 'react';
|
|
14
14
|
import { ReactNode } from 'react';
|
|
15
15
|
import { RefAttributes } from 'react';
|
|
@@ -18,7 +18,7 @@ import type { TypedArray } from 'pdfjs-dist/types/src/display/api';
|
|
|
18
18
|
import { UseBoundStore } from 'zustand';
|
|
19
19
|
import { useFloating } from '@floating-ui/react';
|
|
20
20
|
import { useInteractions } from '@floating-ui/react';
|
|
21
|
-
import { Virtualizer } from '@tanstack/react-virtual';
|
|
21
|
+
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
22
22
|
|
|
23
23
|
declare interface Annotation {
|
|
24
24
|
id: string;
|
|
@@ -54,7 +54,7 @@ declare interface AnnotationHighlightLayerProps {
|
|
|
54
54
|
tooltipClassName?: string;
|
|
55
55
|
hoverTooltipClassName?: string;
|
|
56
56
|
highlightClassName?: string;
|
|
57
|
-
commentIconPosition?:
|
|
57
|
+
commentIconPosition?: "highlight" | "page";
|
|
58
58
|
underlineClassName?: string;
|
|
59
59
|
commentIconClassName?: string;
|
|
60
60
|
}
|
|
@@ -85,7 +85,7 @@ declare interface AnnotationLayerParams {
|
|
|
85
85
|
* See usePdfJump hook for available options.
|
|
86
86
|
* @default { behavior: "smooth", align: "start" }
|
|
87
87
|
*/
|
|
88
|
-
jumpOptions?: Parameters<ReturnType<typeof usePdfJump>[
|
|
88
|
+
jumpOptions?: Parameters<ReturnType<typeof usePdfJump>["jumpToPage"]>[1];
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
declare interface AnnotationState {
|
|
@@ -101,7 +101,7 @@ export declare const AnnotationTooltip: ({ annotation, children, renderTooltipCo
|
|
|
101
101
|
export declare type AnnotationTooltipContentProps = {
|
|
102
102
|
annotation: Annotation;
|
|
103
103
|
onClose: () => void;
|
|
104
|
-
setPosition?: (position:
|
|
104
|
+
setPosition?: (position: "top" | "bottom" | undefined) => void;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
declare interface AnnotationTooltipProps {
|
|
@@ -231,7 +231,6 @@ export declare class LinkService implements IPDFLinkService {
|
|
|
231
231
|
_currentPageNumber: number;
|
|
232
232
|
_pageNavigationCallback?: (pageNumber: number) => void;
|
|
233
233
|
get pdfDocumentProxy(): PDFDocumentProxy;
|
|
234
|
-
constructor();
|
|
235
234
|
get pagesCount(): number;
|
|
236
235
|
get page(): number;
|
|
237
236
|
set page(value: number);
|
|
@@ -244,8 +243,8 @@ export declare class LinkService implements IPDFLinkService {
|
|
|
244
243
|
executeNamedAction(): void;
|
|
245
244
|
navigateTo(dest: string | unknown[] | Promise<unknown[]>): void;
|
|
246
245
|
get rotation(): number;
|
|
247
|
-
set rotation(
|
|
248
|
-
goToPage(
|
|
246
|
+
set rotation(_value: number);
|
|
247
|
+
goToPage(_page_valuer: number): void;
|
|
249
248
|
setHash(hash: string): void;
|
|
250
249
|
executeSetOCGState(): void;
|
|
251
250
|
registerPageNavigationCallback(callback: (pageNumber: number) => void): void;
|