pdfjs-reader-core 0.2.16 → 0.3.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/LICENSE +21 -0
- package/dist/index.cjs +1187 -519
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +67 -3
- package/dist/index.d.ts +67 -3
- package/dist/index.js +1093 -428
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +19 -17
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { Component, ReactNode, ErrorInfo } from 'react';
|
|
2
|
+
import react__default, { Component, ReactNode, ErrorInfo } from 'react';
|
|
3
3
|
import { PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist';
|
|
4
4
|
import * as pdfjsDist from 'pdfjs-dist';
|
|
5
5
|
export { pdfjsDist as pdfjsLib };
|
|
@@ -326,12 +326,14 @@ interface PageDimensions {
|
|
|
326
326
|
height: number;
|
|
327
327
|
scale: number;
|
|
328
328
|
}
|
|
329
|
-
type ViewMode = 'single' | 'dual' | 'continuous';
|
|
329
|
+
type ViewMode = 'single' | 'dual' | 'continuous' | 'book';
|
|
330
330
|
type ScrollMode = 'single' | 'continuous';
|
|
331
331
|
type SidebarPanel = 'thumbnails' | 'outline' | 'search' | 'annotations' | null;
|
|
332
332
|
type Theme = 'light' | 'dark' | 'sepia';
|
|
333
333
|
/** Loading phase for the PDF document */
|
|
334
334
|
type LoadingPhase = 'initializing' | 'fetching' | 'parsing' | 'rendering';
|
|
335
|
+
/** Document loading state for progressive loading */
|
|
336
|
+
type DocumentLoadingState = 'idle' | 'initializing' | 'loading' | 'ready' | 'error';
|
|
335
337
|
/** Loading progress information */
|
|
336
338
|
interface LoadingProgress {
|
|
337
339
|
/** Current loading phase */
|
|
@@ -343,6 +345,13 @@ interface LoadingProgress {
|
|
|
343
345
|
/** Total bytes */
|
|
344
346
|
totalBytes?: number;
|
|
345
347
|
}
|
|
348
|
+
/** Streaming progress for progressive document loading */
|
|
349
|
+
interface StreamingProgress {
|
|
350
|
+
/** Bytes loaded so far */
|
|
351
|
+
loaded: number;
|
|
352
|
+
/** Total bytes (0 if unknown) */
|
|
353
|
+
total: number;
|
|
354
|
+
}
|
|
346
355
|
/** Request to scroll to a specific page */
|
|
347
356
|
interface ScrollToPageRequest {
|
|
348
357
|
page: number;
|
|
@@ -355,6 +364,9 @@ interface ViewerState {
|
|
|
355
364
|
isLoading: boolean;
|
|
356
365
|
loadingProgress: LoadingProgress | null;
|
|
357
366
|
error: Error | null;
|
|
367
|
+
documentLoadingState: DocumentLoadingState;
|
|
368
|
+
firstPageReady: boolean;
|
|
369
|
+
streamingProgress: StreamingProgress | null;
|
|
358
370
|
currentPage: number;
|
|
359
371
|
scale: number;
|
|
360
372
|
rotation: number;
|
|
@@ -372,6 +384,9 @@ interface ViewerActions {
|
|
|
372
384
|
setLoading: (loading: boolean, progress?: LoadingProgress) => void;
|
|
373
385
|
setLoadingProgress: (progress: LoadingProgress | null) => void;
|
|
374
386
|
setError: (error: Error | null) => void;
|
|
387
|
+
setDocumentLoadingState: (state: DocumentLoadingState) => void;
|
|
388
|
+
setFirstPageReady: (ready: boolean) => void;
|
|
389
|
+
setStreamingProgress: (progress: StreamingProgress | null) => void;
|
|
375
390
|
setCurrentPage: (page: number) => void;
|
|
376
391
|
goToPage: (page: number) => void;
|
|
377
392
|
nextPage: () => void;
|
|
@@ -906,6 +921,17 @@ interface DualPageContainerProps {
|
|
|
906
921
|
}
|
|
907
922
|
declare const DualPageContainer: react.NamedExoticComponent<DualPageContainerProps>;
|
|
908
923
|
|
|
924
|
+
interface BookModeContainerProps {
|
|
925
|
+
className?: string;
|
|
926
|
+
/** Flip animation duration in ms (default: 800) */
|
|
927
|
+
flippingTime?: number;
|
|
928
|
+
/** Draw page shadows during flip (default: true) */
|
|
929
|
+
drawShadow?: boolean;
|
|
930
|
+
/** Max shadow opacity 0-1 (default: 0.7) */
|
|
931
|
+
maxShadowOpacity?: number;
|
|
932
|
+
}
|
|
933
|
+
declare const BookModeContainer: react__default.NamedExoticComponent<BookModeContainerProps>;
|
|
934
|
+
|
|
909
935
|
interface PDFPageProps {
|
|
910
936
|
pageNumber: number;
|
|
911
937
|
page: PDFPageProxy | null;
|
|
@@ -1452,6 +1478,10 @@ interface PDFLoadingScreenProps {
|
|
|
1452
1478
|
documentName?: string;
|
|
1453
1479
|
/** Additional class name */
|
|
1454
1480
|
className?: string;
|
|
1481
|
+
/** Show compact inline mode for streaming progress */
|
|
1482
|
+
compact?: boolean;
|
|
1483
|
+
/** Show streaming progress (when first page is ready but background loading continues) */
|
|
1484
|
+
showStreamingProgress?: boolean;
|
|
1455
1485
|
}
|
|
1456
1486
|
/**
|
|
1457
1487
|
* Beautiful loading screen for PDF documents.
|
|
@@ -2159,6 +2189,18 @@ interface LoadDocumentOptions {
|
|
|
2159
2189
|
/** AbortSignal for cancellation */
|
|
2160
2190
|
signal?: AbortSignal;
|
|
2161
2191
|
}
|
|
2192
|
+
interface LoadDocumentWithCallbacksOptions extends LoadDocumentOptions {
|
|
2193
|
+
/** Callback when document structure is ready (XRef parsed) */
|
|
2194
|
+
onDocumentReady?: (document: PDFDocumentProxy, numPages: number) => void;
|
|
2195
|
+
/** Callback when the first page is loaded and ready to render */
|
|
2196
|
+
onFirstPageReady?: (page: PDFPageProxy) => void;
|
|
2197
|
+
}
|
|
2198
|
+
interface LoadDocumentWithCallbacksResult {
|
|
2199
|
+
/** Promise that resolves when loading is complete */
|
|
2200
|
+
promise: Promise<LoadDocumentResult>;
|
|
2201
|
+
/** Function to cancel loading */
|
|
2202
|
+
cancel: () => void;
|
|
2203
|
+
}
|
|
2162
2204
|
interface LoadDocumentResult {
|
|
2163
2205
|
document: PDFDocumentProxy;
|
|
2164
2206
|
numPages: number;
|
|
@@ -2203,6 +2245,18 @@ declare function getMetadata(document: PDFDocumentProxy): Promise<{
|
|
|
2203
2245
|
info: Object;
|
|
2204
2246
|
metadata: pdfjs_dist_types_src_display_metadata.Metadata;
|
|
2205
2247
|
}>;
|
|
2248
|
+
/**
|
|
2249
|
+
* Load a PDF document with streaming callbacks for progressive loading.
|
|
2250
|
+
*
|
|
2251
|
+
* This function provides callbacks that fire at different stages of loading:
|
|
2252
|
+
* - onDocumentReady: Fires when the document structure (XRef) is parsed
|
|
2253
|
+
* - onFirstPageReady: Fires when the first page is loaded and ready to render
|
|
2254
|
+
*
|
|
2255
|
+
* This enables showing the PDF viewer UI immediately and rendering the first
|
|
2256
|
+
* page as soon as it's available, while the rest of the document loads in
|
|
2257
|
+
* the background.
|
|
2258
|
+
*/
|
|
2259
|
+
declare function loadDocumentWithCallbacks(options: LoadDocumentWithCallbacksOptions): LoadDocumentWithCallbacksResult;
|
|
2206
2260
|
|
|
2207
2261
|
/**
|
|
2208
2262
|
* Save highlights to localStorage for a specific document.
|
|
@@ -2712,4 +2766,14 @@ declare function getRectIntersection(rectA: {
|
|
|
2712
2766
|
height: number;
|
|
2713
2767
|
} | null;
|
|
2714
2768
|
|
|
2715
|
-
|
|
2769
|
+
/**
|
|
2770
|
+
* Page turn sound effect using Web Audio API.
|
|
2771
|
+
* Synthesizes a realistic paper-turning sound without requiring external audio files.
|
|
2772
|
+
*/
|
|
2773
|
+
/**
|
|
2774
|
+
* Play a synthesized page-turn sound effect.
|
|
2775
|
+
* Uses filtered noise to simulate the sound of a paper page turning.
|
|
2776
|
+
*/
|
|
2777
|
+
declare function playPageTurnSound(volume?: number): void;
|
|
2778
|
+
|
|
2779
|
+
export { type AddNoteOptions, type AgentAPI, type AgentAPIInstance, type AgentAPIStores, type AgentActions, type AgentContext, type AgentHighlightParams, type AgentState, type AgentStore, type AgentStoreApi, type AgentToolResult, type AgentTools, type Annotation, type AnnotationActions, AnnotationLayer, type AnnotationLayerProps, type AnnotationState, type AnnotationStore, type AnnotationStoreApi, type AnnotationTool, AnnotationToolbar, type AnnotationToolbarProps, type AnnotationType, type AskAboutContext, AskAboutOverlay, type AskAboutOverlayProps, AskAboutTrigger, type AskAboutTriggerProps, BookModeContainer, type BookModeContainerProps, type Bookmark, BookmarksPanel, type BookmarksPanelProps, CanvasLayer, type CanvasLayerProps, type CharPosition, type ContextMenuItem, ContinuousScrollContainer, type ContinuousScrollContainerProps, type CoordinateHelpers, DocumentContainer, type DocumentContainerProps, type DocumentLoadingState, type DrawCircleOptions, type DrawRectOptions, type DrawingAnnotation, DrawingCanvas, type DrawingCanvasProps, type DrawingPath, DualPageContainer, type DualPageContainerProps, type ExportData, type FindTextOptions, FloatingZoomControls, type FloatingZoomControlsProps, FocusRegionLayer, type FocusRegionLayerProps, type FocusedRegion, type GoToPageOptions, type Highlight, type HighlightColor, HighlightLayer, type HighlightLayerProps, HighlightPopover, type HighlightPopoverProps, type HighlightRect, type HighlightTextOptions, HighlightsPanel, type HighlightsPanelProps, type LoadDocumentOptions, type LoadDocumentResult, type LoadDocumentWithCallbacksOptions, type LoadDocumentWithCallbacksResult, type LoadingPhase, type LoadingProgress, Minimap, type MinimapProps, MobileSidebar, type MobileSidebarProps, MobileToolbar, type MobileToolbarProps, type NoteAnnotation, type OutlineItem, OutlinePanel, type OutlinePanelProps, type PDFDocumentLoadedEvent, PDFErrorBoundary, type PDFErrorBoundaryProps, PDFLoadingScreen, type PDFLoadingScreenProps, PDFPage, type PDFPageProps, type PDFPageState, type PDFRegion, PDFThumbnailNav, type PDFThumbnailNavProps, PDFViewer, PDFViewerClient, PDFViewerContext, type PDFViewerContextValue, type PDFViewerController, type PDFViewerControllerOptions, type PDFViewerEventMap, type PDFViewerHandle, type PDFViewerProps, PDFViewerProvider, type PDFViewerProviderProps, type PageCoordinates, type PageDimensions, type PageDimensionsInfo, type Plugin, type PluginAPI, PluginManager, type PluginManagerOptions, type QuickNote, QuickNoteButton, type QuickNoteButtonProps, QuickNotePopover, type QuickNotePopoverProps, type ScrollMode, type ScrollToPageRequest, type SearchActions, type SearchAndHighlightOptions, type SearchAndHighlightResult, type SearchOptions, SearchPanel, type SearchPanelProps, type SearchResult, type SearchState, type SearchStore, type SearchStoreApi, SelectionToolbar, type SelectionToolbarProps, type ShapeAnnotation, ShapePreview, type ShapePreviewProps, ShapeRenderer, type ShapeRendererProps, type ShapeType, Sidebar, type SidebarPanel, type SidebarPanelConfig, type SidebarProps, StickyNote, type StickyNoteProps, type StoredStudentData, type StreamingProgress, type StudentActions, type StudentData, type StudentModeCallbacks, type StudentModeProps, type StudentState, type StudentStore, type StudentStoreApi, type Takeaway, TakeawaysPanel, type TakeawaysPanelProps, TextLayer, type TextLayerProps, type TextMatch, type TextSelection, type Theme, ThumbnailPanel, type ThumbnailPanelProps, Toolbar, type ToolbarItem, type ToolbarProps, type UseAgentContextOptions, type UseAgentContextReturn, type UseAnnotationsOptions, type UseAnnotationsReturn, type UseAskAboutOptions, type UseAskAboutReturn, type UseBookmarksOptions, type UseBookmarksReturn, type UseHighlightsOptions, type UseHighlightsReturn, type UsePageNavigationOptions, type UsePluginsOptions, type UsePluginsReturn, type UseQuickNotesOptions, type UseQuickNotesReturn, type UseStudentProgressOptions, type UseStudentProgressReturn, type UseTextSelectionOptions, type UseTouchGesturesOptions, type UseZoomOptions, type ViewMode, type ViewerActions, type ViewerState, type ViewerStore, type ViewerStoreApi, VirtualizedDocumentContainer, type VirtualizedDocumentContainerProps, type WithErrorBoundaryProps, applyRotation, clearHighlights, clearStudentData, cn, countTextOnPage, createAgentAPI, createAgentStore, createAnnotationStore, createPDFViewer, createPluginManager, createSearchStore, createStudentStore, createViewerStore, doRectsIntersect, downloadAnnotationsAsJSON, downloadAnnotationsAsMarkdown, downloadFile, exportAnnotationsAsJSON, exportAnnotationsAsMarkdown, exportHighlightsAsJSON, exportHighlightsAsMarkdown, extractPageText, findTextInDocument, findTextOnPage, generateDocumentId, getAllDocumentIds, getAllStudentDataDocumentIds, getMetadata, getOutline, getPage, getPageText, getPageTextContent, getPluginManager, getRectIntersection, getRotatedDimensions, getStorageStats, importHighlightsFromJSON, initializePDFJS, isPDFJSInitialized, isPointInRect, loadDocument, loadDocumentWithCallbacks, loadHighlights, loadStudentData, mergeAdjacentRects, pdfToPercent, pdfToViewport, percentToPDF, percentToViewport, playPageTurnSound, quickViewer, removeRotation, saveHighlights, saveStudentData, scaleRect, useAgentContext, useAgentStore, useAnnotationStore, useAnnotations, useAskAbout, useBookmarks, useHighlights, useIsMobile, useIsTouchDevice, usePDFViewer, usePDFViewerStores, usePageNavigation, usePlugins, useQuickNotes, useSearchStore, useStudentProgress, useStudentStore, useTextSelection, useTouchGestures, useViewerStore, useZoom, viewportToPDF, viewportToPercent, withErrorBoundary };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { Component, ReactNode, ErrorInfo } from 'react';
|
|
2
|
+
import react__default, { Component, ReactNode, ErrorInfo } from 'react';
|
|
3
3
|
import { PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist';
|
|
4
4
|
import * as pdfjsDist from 'pdfjs-dist';
|
|
5
5
|
export { pdfjsDist as pdfjsLib };
|
|
@@ -326,12 +326,14 @@ interface PageDimensions {
|
|
|
326
326
|
height: number;
|
|
327
327
|
scale: number;
|
|
328
328
|
}
|
|
329
|
-
type ViewMode = 'single' | 'dual' | 'continuous';
|
|
329
|
+
type ViewMode = 'single' | 'dual' | 'continuous' | 'book';
|
|
330
330
|
type ScrollMode = 'single' | 'continuous';
|
|
331
331
|
type SidebarPanel = 'thumbnails' | 'outline' | 'search' | 'annotations' | null;
|
|
332
332
|
type Theme = 'light' | 'dark' | 'sepia';
|
|
333
333
|
/** Loading phase for the PDF document */
|
|
334
334
|
type LoadingPhase = 'initializing' | 'fetching' | 'parsing' | 'rendering';
|
|
335
|
+
/** Document loading state for progressive loading */
|
|
336
|
+
type DocumentLoadingState = 'idle' | 'initializing' | 'loading' | 'ready' | 'error';
|
|
335
337
|
/** Loading progress information */
|
|
336
338
|
interface LoadingProgress {
|
|
337
339
|
/** Current loading phase */
|
|
@@ -343,6 +345,13 @@ interface LoadingProgress {
|
|
|
343
345
|
/** Total bytes */
|
|
344
346
|
totalBytes?: number;
|
|
345
347
|
}
|
|
348
|
+
/** Streaming progress for progressive document loading */
|
|
349
|
+
interface StreamingProgress {
|
|
350
|
+
/** Bytes loaded so far */
|
|
351
|
+
loaded: number;
|
|
352
|
+
/** Total bytes (0 if unknown) */
|
|
353
|
+
total: number;
|
|
354
|
+
}
|
|
346
355
|
/** Request to scroll to a specific page */
|
|
347
356
|
interface ScrollToPageRequest {
|
|
348
357
|
page: number;
|
|
@@ -355,6 +364,9 @@ interface ViewerState {
|
|
|
355
364
|
isLoading: boolean;
|
|
356
365
|
loadingProgress: LoadingProgress | null;
|
|
357
366
|
error: Error | null;
|
|
367
|
+
documentLoadingState: DocumentLoadingState;
|
|
368
|
+
firstPageReady: boolean;
|
|
369
|
+
streamingProgress: StreamingProgress | null;
|
|
358
370
|
currentPage: number;
|
|
359
371
|
scale: number;
|
|
360
372
|
rotation: number;
|
|
@@ -372,6 +384,9 @@ interface ViewerActions {
|
|
|
372
384
|
setLoading: (loading: boolean, progress?: LoadingProgress) => void;
|
|
373
385
|
setLoadingProgress: (progress: LoadingProgress | null) => void;
|
|
374
386
|
setError: (error: Error | null) => void;
|
|
387
|
+
setDocumentLoadingState: (state: DocumentLoadingState) => void;
|
|
388
|
+
setFirstPageReady: (ready: boolean) => void;
|
|
389
|
+
setStreamingProgress: (progress: StreamingProgress | null) => void;
|
|
375
390
|
setCurrentPage: (page: number) => void;
|
|
376
391
|
goToPage: (page: number) => void;
|
|
377
392
|
nextPage: () => void;
|
|
@@ -906,6 +921,17 @@ interface DualPageContainerProps {
|
|
|
906
921
|
}
|
|
907
922
|
declare const DualPageContainer: react.NamedExoticComponent<DualPageContainerProps>;
|
|
908
923
|
|
|
924
|
+
interface BookModeContainerProps {
|
|
925
|
+
className?: string;
|
|
926
|
+
/** Flip animation duration in ms (default: 800) */
|
|
927
|
+
flippingTime?: number;
|
|
928
|
+
/** Draw page shadows during flip (default: true) */
|
|
929
|
+
drawShadow?: boolean;
|
|
930
|
+
/** Max shadow opacity 0-1 (default: 0.7) */
|
|
931
|
+
maxShadowOpacity?: number;
|
|
932
|
+
}
|
|
933
|
+
declare const BookModeContainer: react__default.NamedExoticComponent<BookModeContainerProps>;
|
|
934
|
+
|
|
909
935
|
interface PDFPageProps {
|
|
910
936
|
pageNumber: number;
|
|
911
937
|
page: PDFPageProxy | null;
|
|
@@ -1452,6 +1478,10 @@ interface PDFLoadingScreenProps {
|
|
|
1452
1478
|
documentName?: string;
|
|
1453
1479
|
/** Additional class name */
|
|
1454
1480
|
className?: string;
|
|
1481
|
+
/** Show compact inline mode for streaming progress */
|
|
1482
|
+
compact?: boolean;
|
|
1483
|
+
/** Show streaming progress (when first page is ready but background loading continues) */
|
|
1484
|
+
showStreamingProgress?: boolean;
|
|
1455
1485
|
}
|
|
1456
1486
|
/**
|
|
1457
1487
|
* Beautiful loading screen for PDF documents.
|
|
@@ -2159,6 +2189,18 @@ interface LoadDocumentOptions {
|
|
|
2159
2189
|
/** AbortSignal for cancellation */
|
|
2160
2190
|
signal?: AbortSignal;
|
|
2161
2191
|
}
|
|
2192
|
+
interface LoadDocumentWithCallbacksOptions extends LoadDocumentOptions {
|
|
2193
|
+
/** Callback when document structure is ready (XRef parsed) */
|
|
2194
|
+
onDocumentReady?: (document: PDFDocumentProxy, numPages: number) => void;
|
|
2195
|
+
/** Callback when the first page is loaded and ready to render */
|
|
2196
|
+
onFirstPageReady?: (page: PDFPageProxy) => void;
|
|
2197
|
+
}
|
|
2198
|
+
interface LoadDocumentWithCallbacksResult {
|
|
2199
|
+
/** Promise that resolves when loading is complete */
|
|
2200
|
+
promise: Promise<LoadDocumentResult>;
|
|
2201
|
+
/** Function to cancel loading */
|
|
2202
|
+
cancel: () => void;
|
|
2203
|
+
}
|
|
2162
2204
|
interface LoadDocumentResult {
|
|
2163
2205
|
document: PDFDocumentProxy;
|
|
2164
2206
|
numPages: number;
|
|
@@ -2203,6 +2245,18 @@ declare function getMetadata(document: PDFDocumentProxy): Promise<{
|
|
|
2203
2245
|
info: Object;
|
|
2204
2246
|
metadata: pdfjs_dist_types_src_display_metadata.Metadata;
|
|
2205
2247
|
}>;
|
|
2248
|
+
/**
|
|
2249
|
+
* Load a PDF document with streaming callbacks for progressive loading.
|
|
2250
|
+
*
|
|
2251
|
+
* This function provides callbacks that fire at different stages of loading:
|
|
2252
|
+
* - onDocumentReady: Fires when the document structure (XRef) is parsed
|
|
2253
|
+
* - onFirstPageReady: Fires when the first page is loaded and ready to render
|
|
2254
|
+
*
|
|
2255
|
+
* This enables showing the PDF viewer UI immediately and rendering the first
|
|
2256
|
+
* page as soon as it's available, while the rest of the document loads in
|
|
2257
|
+
* the background.
|
|
2258
|
+
*/
|
|
2259
|
+
declare function loadDocumentWithCallbacks(options: LoadDocumentWithCallbacksOptions): LoadDocumentWithCallbacksResult;
|
|
2206
2260
|
|
|
2207
2261
|
/**
|
|
2208
2262
|
* Save highlights to localStorage for a specific document.
|
|
@@ -2712,4 +2766,14 @@ declare function getRectIntersection(rectA: {
|
|
|
2712
2766
|
height: number;
|
|
2713
2767
|
} | null;
|
|
2714
2768
|
|
|
2715
|
-
|
|
2769
|
+
/**
|
|
2770
|
+
* Page turn sound effect using Web Audio API.
|
|
2771
|
+
* Synthesizes a realistic paper-turning sound without requiring external audio files.
|
|
2772
|
+
*/
|
|
2773
|
+
/**
|
|
2774
|
+
* Play a synthesized page-turn sound effect.
|
|
2775
|
+
* Uses filtered noise to simulate the sound of a paper page turning.
|
|
2776
|
+
*/
|
|
2777
|
+
declare function playPageTurnSound(volume?: number): void;
|
|
2778
|
+
|
|
2779
|
+
export { type AddNoteOptions, type AgentAPI, type AgentAPIInstance, type AgentAPIStores, type AgentActions, type AgentContext, type AgentHighlightParams, type AgentState, type AgentStore, type AgentStoreApi, type AgentToolResult, type AgentTools, type Annotation, type AnnotationActions, AnnotationLayer, type AnnotationLayerProps, type AnnotationState, type AnnotationStore, type AnnotationStoreApi, type AnnotationTool, AnnotationToolbar, type AnnotationToolbarProps, type AnnotationType, type AskAboutContext, AskAboutOverlay, type AskAboutOverlayProps, AskAboutTrigger, type AskAboutTriggerProps, BookModeContainer, type BookModeContainerProps, type Bookmark, BookmarksPanel, type BookmarksPanelProps, CanvasLayer, type CanvasLayerProps, type CharPosition, type ContextMenuItem, ContinuousScrollContainer, type ContinuousScrollContainerProps, type CoordinateHelpers, DocumentContainer, type DocumentContainerProps, type DocumentLoadingState, type DrawCircleOptions, type DrawRectOptions, type DrawingAnnotation, DrawingCanvas, type DrawingCanvasProps, type DrawingPath, DualPageContainer, type DualPageContainerProps, type ExportData, type FindTextOptions, FloatingZoomControls, type FloatingZoomControlsProps, FocusRegionLayer, type FocusRegionLayerProps, type FocusedRegion, type GoToPageOptions, type Highlight, type HighlightColor, HighlightLayer, type HighlightLayerProps, HighlightPopover, type HighlightPopoverProps, type HighlightRect, type HighlightTextOptions, HighlightsPanel, type HighlightsPanelProps, type LoadDocumentOptions, type LoadDocumentResult, type LoadDocumentWithCallbacksOptions, type LoadDocumentWithCallbacksResult, type LoadingPhase, type LoadingProgress, Minimap, type MinimapProps, MobileSidebar, type MobileSidebarProps, MobileToolbar, type MobileToolbarProps, type NoteAnnotation, type OutlineItem, OutlinePanel, type OutlinePanelProps, type PDFDocumentLoadedEvent, PDFErrorBoundary, type PDFErrorBoundaryProps, PDFLoadingScreen, type PDFLoadingScreenProps, PDFPage, type PDFPageProps, type PDFPageState, type PDFRegion, PDFThumbnailNav, type PDFThumbnailNavProps, PDFViewer, PDFViewerClient, PDFViewerContext, type PDFViewerContextValue, type PDFViewerController, type PDFViewerControllerOptions, type PDFViewerEventMap, type PDFViewerHandle, type PDFViewerProps, PDFViewerProvider, type PDFViewerProviderProps, type PageCoordinates, type PageDimensions, type PageDimensionsInfo, type Plugin, type PluginAPI, PluginManager, type PluginManagerOptions, type QuickNote, QuickNoteButton, type QuickNoteButtonProps, QuickNotePopover, type QuickNotePopoverProps, type ScrollMode, type ScrollToPageRequest, type SearchActions, type SearchAndHighlightOptions, type SearchAndHighlightResult, type SearchOptions, SearchPanel, type SearchPanelProps, type SearchResult, type SearchState, type SearchStore, type SearchStoreApi, SelectionToolbar, type SelectionToolbarProps, type ShapeAnnotation, ShapePreview, type ShapePreviewProps, ShapeRenderer, type ShapeRendererProps, type ShapeType, Sidebar, type SidebarPanel, type SidebarPanelConfig, type SidebarProps, StickyNote, type StickyNoteProps, type StoredStudentData, type StreamingProgress, type StudentActions, type StudentData, type StudentModeCallbacks, type StudentModeProps, type StudentState, type StudentStore, type StudentStoreApi, type Takeaway, TakeawaysPanel, type TakeawaysPanelProps, TextLayer, type TextLayerProps, type TextMatch, type TextSelection, type Theme, ThumbnailPanel, type ThumbnailPanelProps, Toolbar, type ToolbarItem, type ToolbarProps, type UseAgentContextOptions, type UseAgentContextReturn, type UseAnnotationsOptions, type UseAnnotationsReturn, type UseAskAboutOptions, type UseAskAboutReturn, type UseBookmarksOptions, type UseBookmarksReturn, type UseHighlightsOptions, type UseHighlightsReturn, type UsePageNavigationOptions, type UsePluginsOptions, type UsePluginsReturn, type UseQuickNotesOptions, type UseQuickNotesReturn, type UseStudentProgressOptions, type UseStudentProgressReturn, type UseTextSelectionOptions, type UseTouchGesturesOptions, type UseZoomOptions, type ViewMode, type ViewerActions, type ViewerState, type ViewerStore, type ViewerStoreApi, VirtualizedDocumentContainer, type VirtualizedDocumentContainerProps, type WithErrorBoundaryProps, applyRotation, clearHighlights, clearStudentData, cn, countTextOnPage, createAgentAPI, createAgentStore, createAnnotationStore, createPDFViewer, createPluginManager, createSearchStore, createStudentStore, createViewerStore, doRectsIntersect, downloadAnnotationsAsJSON, downloadAnnotationsAsMarkdown, downloadFile, exportAnnotationsAsJSON, exportAnnotationsAsMarkdown, exportHighlightsAsJSON, exportHighlightsAsMarkdown, extractPageText, findTextInDocument, findTextOnPage, generateDocumentId, getAllDocumentIds, getAllStudentDataDocumentIds, getMetadata, getOutline, getPage, getPageText, getPageTextContent, getPluginManager, getRectIntersection, getRotatedDimensions, getStorageStats, importHighlightsFromJSON, initializePDFJS, isPDFJSInitialized, isPointInRect, loadDocument, loadDocumentWithCallbacks, loadHighlights, loadStudentData, mergeAdjacentRects, pdfToPercent, pdfToViewport, percentToPDF, percentToViewport, playPageTurnSound, quickViewer, removeRotation, saveHighlights, saveStudentData, scaleRect, useAgentContext, useAgentStore, useAnnotationStore, useAnnotations, useAskAbout, useBookmarks, useHighlights, useIsMobile, useIsTouchDevice, usePDFViewer, usePDFViewerStores, usePageNavigation, usePlugins, useQuickNotes, useSearchStore, useStudentProgress, useStudentStore, useTextSelection, useTouchGestures, useViewerStore, useZoom, viewportToPDF, viewportToPercent, withErrorBoundary };
|