@react-pdf-kit/viewer 2.0.0-beta.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/README.md +204 -0
- package/dist/LayoutWrapper-a871c161.js +19 -0
- package/dist/RotateTool.module-03987eba.js +6 -0
- package/dist/SearchCloseButton-cbf182aa.js +33 -0
- package/dist/ToolbarLayout.module-c588d36b.js +3411 -0
- package/dist/ZoomTool.module-6c5eabbb.js +12 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/Container.css +1 -0
- package/dist/assets/DropDown.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/LayoutWrapper.css +1 -0
- package/dist/assets/LoaderIcon.css +1 -0
- package/dist/assets/MenuItem.css +1 -0
- package/dist/assets/MenuSeparator.css +1 -0
- package/dist/assets/PasswordModal.css +1 -0
- package/dist/assets/PropertyItem.css +1 -0
- package/dist/assets/RPDropFileZone.css +1 -0
- package/dist/assets/RPSplitter.css +1 -0
- package/dist/assets/RPTooltip.css +1 -0
- package/dist/assets/RotateTool.css +1 -0
- package/dist/assets/SearchCloseButton.css +1 -0
- package/dist/assets/ToolbarLayout.css +1 -0
- package/dist/assets/WrapperLayout.css +1 -0
- package/dist/assets/ZoomTool.css +1 -0
- package/dist/clsx-0c6e471a.js +22 -0
- package/dist/components/RPConfig.js +1492 -0
- package/dist/components/RPController.js +92 -0
- package/dist/components/RPDropFileZone.js +39 -0
- package/dist/components/RPPages.js +66 -0
- package/dist/components/RPProvider.js +27 -0
- package/dist/components/RPTheme.js +21 -0
- package/dist/components/icons/CheckIcon.js +22 -0
- package/dist/components/icons/ChevronDownIcon.js +23 -0
- package/dist/components/icons/ChevronUpIcon.js +22 -0
- package/dist/components/icons/ClearIcon.js +25 -0
- package/dist/components/icons/ClockwiseIcon.js +22 -0
- package/dist/components/icons/CloseIcon.js +22 -0
- package/dist/components/icons/DarkPdfIcon.js +15 -0
- package/dist/components/icons/DualPageIcon.js +22 -0
- package/dist/components/icons/FileDownloadDefaultIcon.js +23 -0
- package/dist/components/icons/FileUploadDefaultIcon.js +23 -0
- package/dist/components/icons/FullScreenIcon.js +22 -0
- package/dist/components/icons/GoToDownIcon.js +22 -0
- package/dist/components/icons/HandModeDefaultIcon.js +22 -0
- package/dist/components/icons/HorizontalScrollingIcon.js +24 -0
- package/dist/components/icons/InfoIcon.js +22 -0
- package/dist/components/icons/LightPdfIcon.js +15 -0
- package/dist/components/icons/LoaderIcon.js +17 -0
- package/dist/components/icons/MoonIcon.js +22 -0
- package/dist/components/icons/PageScrollingIcon.js +24 -0
- package/dist/components/icons/PrintDefaultIcon.js +23 -0
- package/dist/components/icons/SearchIcon.js +22 -0
- package/dist/components/icons/SinglePageIcon.js +22 -0
- package/dist/components/icons/SunIcon.js +25 -0
- package/dist/components/icons/TextSelectionDefaultIcon.js +23 -0
- package/dist/components/icons/ThreeDotIcon.js +22 -0
- package/dist/components/icons/Thumbnail.js +54 -0
- package/dist/components/icons/VerticalScrollingIcon.js +24 -0
- package/dist/components/icons/WrappedScrollingIcon.js +24 -0
- package/dist/components/icons/ZoomInIcon.js +22 -0
- package/dist/components/icons/ZoomOutIcon.js +22 -0
- package/dist/components/layout/Container.js +21 -0
- package/dist/components/layout/LayoutContainer.js +60 -0
- package/dist/components/layout/LayoutWrapper.js +6 -0
- package/dist/components/layout/RPDefaultLayout.js +16 -0
- package/dist/components/layout/RPLayout.js +107 -0
- package/dist/components/layout/WrapperLayout.js +13 -0
- package/dist/components/layout/sidebar/RPSidebar.js +15 -0
- package/dist/components/layout/sidebar/RPSplitter.js +61 -0
- package/dist/components/layout/sidebar/Thumbnail.js +59 -0
- package/dist/components/layout/sidebar/Thumbnails.js +8 -0
- package/dist/components/layout/toolbar/DarkModeTool.js +27 -0
- package/dist/components/layout/toolbar/DocumentDialog.js +59 -0
- package/dist/components/layout/toolbar/DocumentProperties.js +27 -0
- package/dist/components/layout/toolbar/FileDownloadTool.js +15 -0
- package/dist/components/layout/toolbar/FileUploadTool.js +25 -0
- package/dist/components/layout/toolbar/FullScreenTool.js +59 -0
- package/dist/components/layout/toolbar/MenuItem.js +12 -0
- package/dist/components/layout/toolbar/MenuSeparator.js +8 -0
- package/dist/components/layout/toolbar/MostPageTool.js +60 -0
- package/dist/components/layout/toolbar/OtherTool.js +24 -0
- package/dist/components/layout/toolbar/Paginate.js +19 -0
- package/dist/components/layout/toolbar/PrintTool.js +15 -0
- package/dist/components/layout/toolbar/PropertyItem.js +12 -0
- package/dist/components/layout/toolbar/RPMenuItem.js +23 -0
- package/dist/components/layout/toolbar/RPMoreOptions.js +147 -0
- package/dist/components/layout/toolbar/RPToolbar.js +10 -0
- package/dist/components/layout/toolbar/RPToolbarEnd.js +9 -0
- package/dist/components/layout/toolbar/RotateTool.js +36 -0
- package/dist/components/layout/toolbar/ScrollModeTool.js +56 -0
- package/dist/components/layout/toolbar/SearchCloseButton.js +9 -0
- package/dist/components/layout/toolbar/SearchResultNavigator.js +10 -0
- package/dist/components/layout/toolbar/SearchTool.js +61 -0
- package/dist/components/layout/toolbar/SelectionModeTool.js +40 -0
- package/dist/components/layout/toolbar/ThumbnailTool.js +17 -0
- package/dist/components/layout/toolbar/ToolbarCustom.js +95 -0
- package/dist/components/layout/toolbar/ToolbarDefault.js +97 -0
- package/dist/components/layout/toolbar/ToolbarLayout.js +10 -0
- package/dist/components/layout/toolbar/ViewModeTool.js +42 -0
- package/dist/components/layout/toolbar/ZoomTool.js +130 -0
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +28 -0
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +13 -0
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +13 -0
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +21 -0
- package/dist/components/layout/toolbar/tools/InputPageTool.js +45 -0
- package/dist/components/layout/toolbar/tools/NextPageTool.js +72 -0
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +21 -0
- package/dist/components/layout/toolbar/tools/PrintTool.js +13 -0
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +17 -0
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +25 -0
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +17 -0
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +23 -0
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +28 -0
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +65 -0
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +28 -0
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +70 -0
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +16 -0
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +16 -0
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +20 -0
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +69 -0
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +20 -0
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +78 -0
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +20 -0
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +26 -0
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +43 -0
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +30 -0
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +32 -0
- package/dist/components/page/AnnotationLayer.js +62 -0
- package/dist/components/page/CanvasLayer.js +58 -0
- package/dist/components/page/CustomElement.js +22 -0
- package/dist/components/page/DualPage.js +6 -0
- package/dist/components/page/RPPage.js +60 -0
- package/dist/components/page/SinglePage.js +6 -0
- package/dist/components/page/TextHighlightLayer.js +60 -0
- package/dist/components/page/TextLayer.js +60 -0
- package/dist/components/page/searchHighlight.js +37 -0
- package/dist/components/ui/Button.js +22 -0
- package/dist/components/ui/Checkbox.js +264 -0
- package/dist/components/ui/DropDown.js +29 -0
- package/dist/components/ui/Input.js +26 -0
- package/dist/components/ui/LoadingIndicator.js +7 -0
- package/dist/components/ui/PasswordModal.js +58 -0
- package/dist/components/ui/RPTooltip.js +568 -0
- package/dist/contexts/ConfigContext.js +13 -0
- package/dist/contexts/DarkModeContext.js +28 -0
- package/dist/contexts/DimensionPagesContext.js +42 -0
- package/dist/contexts/DocumentPasswordContext.js +40 -0
- package/dist/contexts/DownloadContext.js +21 -0
- package/dist/contexts/DropFileZoneContext.js +52 -0
- package/dist/contexts/ElementPageContext.js +76 -0
- package/dist/contexts/FileInputContext.js +39 -0
- package/dist/contexts/FullScreenContext.js +18 -0
- package/dist/contexts/GlobalCurrentPage.js +16 -0
- package/dist/contexts/HighlightContext.js +18 -0
- package/dist/contexts/IconContext.js +11 -0
- package/dist/contexts/IconToolContext.js +13 -0
- package/dist/contexts/InitialStateContext.js +13 -0
- package/dist/contexts/LayerContext.js +8 -0
- package/dist/contexts/LayoutContainerContext.js +16 -0
- package/dist/contexts/LicenseContext.js +15 -0
- package/dist/contexts/LoaderContext.js +26 -0
- package/dist/contexts/LocalizationContext.js +38 -0
- package/dist/contexts/OtherToolContext.js +18 -0
- package/dist/contexts/PageViewportContext.js +8 -0
- package/dist/contexts/PagesRotateContext.js +25 -0
- package/dist/contexts/PaginationContext.js +11 -0
- package/dist/contexts/PrintContext.js +8 -0
- package/dist/contexts/RPDocumentContext.js +51 -0
- package/dist/contexts/RenderQueueProvider.js +10 -0
- package/dist/contexts/RenderedPagesCache.js +14 -0
- package/dist/contexts/RotationContext.js +28 -0
- package/dist/contexts/ScrollModeContext.js +21 -0
- package/dist/contexts/SearchContext.js +8 -0
- package/dist/contexts/SelectionModeContext.js +23 -0
- package/dist/contexts/SmoothScrollContext.js +12 -0
- package/dist/contexts/ThemeContext.js +7 -0
- package/dist/contexts/ThumbnailsContext.js +8 -0
- package/dist/contexts/ToolComponentContext.js +52 -0
- package/dist/contexts/ToolbarComponentContext.js +48 -0
- package/dist/contexts/ViewModeContext.js +28 -0
- package/dist/contexts/ViewportContext.js +85 -0
- package/dist/contexts/VirtualGridContext.js +15 -0
- package/dist/contexts/VirtualScrollContext.js +53 -0
- package/dist/contexts/ZoomContext.js +97 -0
- package/dist/floating-ui.react-dom-6b2fe0df.js +1474 -0
- package/dist/index-35c7f4a2.js +332 -0
- package/dist/index-f563c6f0.js +1889 -0
- package/dist/main.js +86 -0
- package/dist/th_TH-d627cd51.js +398 -0
- package/dist/types/components/RPConfig.d.ts +3 -0
- package/dist/types/components/RPController.d.ts +3 -0
- package/dist/types/components/RPDropFileZone.d.ts +2 -0
- package/dist/types/components/RPPages.d.ts +2 -0
- package/dist/types/components/RPProvider.d.ts +3 -0
- package/dist/types/components/RPTheme.d.ts +3 -0
- package/dist/types/components/icons/CheckIcon.d.ts +2 -0
- package/dist/types/components/icons/ChevronDownIcon.d.ts +2 -0
- package/dist/types/components/icons/ChevronUpIcon.d.ts +2 -0
- package/dist/types/components/icons/ClearIcon.d.ts +2 -0
- package/dist/types/components/icons/ClockwiseIcon.d.ts +2 -0
- package/dist/types/components/icons/CloseIcon.d.ts +2 -0
- package/dist/types/components/icons/DarkPdfIcon.d.ts +2 -0
- package/dist/types/components/icons/DualPageIcon.d.ts +2 -0
- package/dist/types/components/icons/FileDownloadDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/FileUploadDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/FullScreenIcon.d.ts +2 -0
- package/dist/types/components/icons/GoToDownIcon.d.ts +2 -0
- package/dist/types/components/icons/HandModeDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/HorizontalScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/InfoIcon.d.ts +2 -0
- package/dist/types/components/icons/LightPdfIcon.d.ts +2 -0
- package/dist/types/components/icons/LoaderIcon.d.ts +2 -0
- package/dist/types/components/icons/MoonIcon.d.ts +2 -0
- package/dist/types/components/icons/PageScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/PrintDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/SearchIcon.d.ts +2 -0
- package/dist/types/components/icons/SinglePageIcon.d.ts +2 -0
- package/dist/types/components/icons/SunIcon.d.ts +2 -0
- package/dist/types/components/icons/TextSelectionDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/ThreeDotIcon.d.ts +2 -0
- package/dist/types/components/icons/Thumbnail.d.ts +2 -0
- package/dist/types/components/icons/VerticalScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/WrappedScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/ZoomInIcon.d.ts +2 -0
- package/dist/types/components/icons/ZoomOutIcon.d.ts +2 -0
- package/dist/types/components/layout/Container.d.ts +8 -0
- package/dist/types/components/layout/LayoutContainer.d.ts +14 -0
- package/dist/types/components/layout/LayoutWrapper.d.ts +12 -0
- package/dist/types/components/layout/RPDefaultLayout.d.ts +2 -0
- package/dist/types/components/layout/RPLayout.d.ts +3 -0
- package/dist/types/components/layout/WrapperLayout.d.ts +2 -0
- package/dist/types/components/layout/sidebar/RPSidebar.d.ts +1 -0
- package/dist/types/components/layout/sidebar/RPSplitter.d.ts +9 -0
- package/dist/types/components/layout/sidebar/Thumbnail.d.ts +11 -0
- package/dist/types/components/layout/sidebar/Thumbnails.d.ts +8 -0
- package/dist/types/components/layout/toolbar/DarkModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/DocumentDialog.d.ts +2 -0
- package/dist/types/components/layout/toolbar/DocumentProperties.d.ts +1 -0
- package/dist/types/components/layout/toolbar/FileDownloadTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/FileUploadTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/FullScreenTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/MenuItem.d.ts +6 -0
- package/dist/types/components/layout/toolbar/MenuSeparator.d.ts +1 -0
- package/dist/types/components/layout/toolbar/MostPageTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/OtherTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/Paginate.d.ts +1 -0
- package/dist/types/components/layout/toolbar/PrintTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/PropertyItem.d.ts +7 -0
- package/dist/types/components/layout/toolbar/RPMenuItem.d.ts +11 -0
- package/dist/types/components/layout/toolbar/RPMoreOptions.d.ts +3 -0
- package/dist/types/components/layout/toolbar/RPToolbar.d.ts +3 -0
- package/dist/types/components/layout/toolbar/RPToolbarEnd.d.ts +1 -0
- package/dist/types/components/layout/toolbar/RotateTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/ScrollModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/SearchCloseButton.d.ts +7 -0
- package/dist/types/components/layout/toolbar/SearchResultNavigator.d.ts +1 -0
- package/dist/types/components/layout/toolbar/SearchTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/SelectionModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/ThumbnailTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/ToolbarCustom.d.ts +3 -0
- package/dist/types/components/layout/toolbar/ToolbarDefault.d.ts +4 -0
- package/dist/types/components/layout/toolbar/ToolbarLayout.d.ts +3 -0
- package/dist/types/components/layout/toolbar/ViewModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/ZoomTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/tools/DocumentPropertiesTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FileDownloadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FileUploadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FullScreenTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/InputPageTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/tools/NextPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/PreviousPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/PrintTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/RotateClockwiseTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/RotateCounterclockwiseTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ThemeSwitcherTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ThumbnailTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ZoomInTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ZoomLevelTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ZoomOutTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/defaults/RPHorizontalBar.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/defaults/RPVerticalBar.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/DocumentProperties.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/FileDownloadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/FileUploadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/FullScreenTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/MostPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/PrintTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/RotateTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/ScrollModeTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/SelectionModeTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/ViewModeTool.d.ts +3 -0
- package/dist/types/components/page/AnnotationLayer.d.ts +6 -0
- package/dist/types/components/page/CanvasLayer.d.ts +8 -0
- package/dist/types/components/page/CustomElement.d.ts +6 -0
- package/dist/types/components/page/DualPage.d.ts +5 -0
- package/dist/types/components/page/RPPage.d.ts +7 -0
- package/dist/types/components/page/SinglePage.d.ts +5 -0
- package/dist/types/components/page/TextHighlightLayer.d.ts +10 -0
- package/dist/types/components/page/TextLayer.d.ts +6 -0
- package/dist/types/components/page/searchHighlight.d.ts +5 -0
- package/dist/types/components/ui/Button.d.ts +8 -0
- package/dist/types/components/ui/Checkbox.d.ts +9 -0
- package/dist/types/components/ui/DropDown.d.ts +10 -0
- package/dist/types/components/ui/Input.d.ts +8 -0
- package/dist/types/components/ui/LoadingIndicator.d.ts +6 -0
- package/dist/types/components/ui/PasswordModal.d.ts +3 -0
- package/dist/types/components/ui/RPTooltip.d.ts +11 -0
- package/dist/types/contexts/ConfigContext.d.ts +5 -0
- package/dist/types/contexts/DarkModeContext.d.ts +5 -0
- package/dist/types/contexts/DimensionPagesContext.d.ts +4 -0
- package/dist/types/contexts/DocumentPasswordContext.d.ts +14 -0
- package/dist/types/contexts/DownloadContext.d.ts +11 -0
- package/dist/types/contexts/DropFileZoneContext.d.ts +5 -0
- package/dist/types/contexts/ElementPageContext.d.ts +6 -0
- package/dist/types/contexts/FileInputContext.d.ts +7 -0
- package/dist/types/contexts/FullScreenContext.d.ts +7 -0
- package/dist/types/contexts/GlobalCurrentPage.d.ts +11 -0
- package/dist/types/contexts/HighlightContext.d.ts +8 -0
- package/dist/types/contexts/IconContext.d.ts +7 -0
- package/dist/types/contexts/IconToolContext.d.ts +9 -0
- package/dist/types/contexts/InitialStateContext.d.ts +5 -0
- package/dist/types/contexts/LayerContext.d.ts +5 -0
- package/dist/types/contexts/LayoutContainerContext.d.ts +12 -0
- package/dist/types/contexts/LicenseContext.d.ts +7 -0
- package/dist/types/contexts/LoaderContext.d.ts +12 -0
- package/dist/types/contexts/LocalizationContext.d.ts +5 -0
- package/dist/types/contexts/OtherToolContext.d.ts +9 -0
- package/dist/types/contexts/PageViewportContext.d.ts +4 -0
- package/dist/types/contexts/PagesRotateContext.d.ts +15 -0
- package/dist/types/contexts/PaginationContext.d.ts +5 -0
- package/dist/types/contexts/PrintContext.d.ts +7 -0
- package/dist/types/contexts/RPDocumentContext.d.ts +12 -0
- package/dist/types/contexts/RenderQueueProvider.d.ts +16 -0
- package/dist/types/contexts/RenderedPagesCache.d.ts +10 -0
- package/dist/types/contexts/RotationContext.d.ts +5 -0
- package/dist/types/contexts/ScrollModeContext.d.ts +5 -0
- package/dist/types/contexts/SearchContext.d.ts +7 -0
- package/dist/types/contexts/SelectionModeContext.d.ts +5 -0
- package/dist/types/contexts/SmoothScrollContext.d.ts +8 -0
- package/dist/types/contexts/ThemeContext.d.ts +4 -0
- package/dist/types/contexts/ThumbnailsContext.d.ts +7 -0
- package/dist/types/contexts/ToolComponentContext.d.ts +12 -0
- package/dist/types/contexts/ToolbarComponentContext.d.ts +9 -0
- package/dist/types/contexts/ViewModeContext.d.ts +5 -0
- package/dist/types/contexts/ViewportContext.d.ts +28 -0
- package/dist/types/contexts/VirtualGridContext.d.ts +9 -0
- package/dist/types/contexts/VirtualScrollContext.d.ts +30 -0
- package/dist/types/contexts/ZoomContext.d.ts +5 -0
- package/dist/types/locales/en_US.json.d.ts +81 -0
- package/dist/types/locales/it_IT.json.d.ts +81 -0
- package/dist/types/locales/pt_PT.json.d.ts +81 -0
- package/dist/types/locales/th_TH.json.d.ts +81 -0
- package/dist/types/locales/zh_CN.json.d.ts +81 -0
- package/dist/types/main.d.ts +45 -0
- package/dist/types/utils/Queue.d.ts +18 -0
- package/dist/types/utils/annotations.d.ts +9 -0
- package/dist/types/utils/appConsole.d.ts +24 -0
- package/dist/types/utils/calculatePage.d.ts +12 -0
- package/dist/types/utils/charators.d.ts +12 -0
- package/dist/types/utils/const.d.ts +3 -0
- package/dist/types/utils/constants.d.ts +5 -0
- package/dist/types/utils/convertPdfDate.d.ts +1 -0
- package/dist/types/utils/dateFormatter.d.ts +1 -0
- package/dist/types/utils/elementPagePosition.d.ts +17 -0
- package/dist/types/utils/formatFileSize.d.ts +1 -0
- package/dist/types/utils/getScrollDistance.d.ts +1 -0
- package/dist/types/utils/getThumbnailViewport.d.ts +5 -0
- package/dist/types/utils/getWordPositionInPage.d.ts +8 -0
- package/dist/types/utils/getZoomLevel.d.ts +2 -0
- package/dist/types/utils/highlight.d.ts +14 -0
- package/dist/types/utils/hooks/useDarkMode.d.ts +2 -0
- package/dist/types/utils/hooks/useDarkModeProps.d.ts +2 -0
- package/dist/types/utils/hooks/useDebounce.d.ts +1 -0
- package/dist/types/utils/hooks/useElementSize.d.ts +8 -0
- package/dist/types/utils/hooks/useFileDownload.d.ts +3 -0
- package/dist/types/utils/hooks/useFlickerSelectText.d.ts +1 -0
- package/dist/types/utils/hooks/useFullScreen.d.ts +6 -0
- package/dist/types/utils/hooks/useGrabScroll.d.ts +11 -0
- package/dist/types/utils/hooks/useHighlight.d.ts +10 -0
- package/dist/types/utils/hooks/useInfiniteScroll.d.ts +6 -0
- package/dist/types/utils/hooks/useLicense.d.ts +2 -0
- package/dist/types/utils/hooks/useLoadPdf.d.ts +11 -0
- package/dist/types/utils/hooks/useLoadWorker.d.ts +3 -0
- package/dist/types/utils/hooks/useLocalization.d.ts +10 -0
- package/dist/types/utils/hooks/useMousePressed.d.ts +7 -0
- package/dist/types/utils/hooks/usePageRotateContext.d.ts +3 -0
- package/dist/types/utils/hooks/usePaginate.d.ts +2 -0
- package/dist/types/utils/hooks/usePdfProperties.d.ts +9 -0
- package/dist/types/utils/hooks/usePinch.d.ts +1 -0
- package/dist/types/utils/hooks/usePresentPage.d.ts +1 -0
- package/dist/types/utils/hooks/usePrint.d.ts +11 -0
- package/dist/types/utils/hooks/useRequestAnimationFrame.d.ts +5 -0
- package/dist/types/utils/hooks/useResizeObserver.d.ts +6 -0
- package/dist/types/utils/hooks/useRotate.d.ts +4 -0
- package/dist/types/utils/hooks/useScrollToPage.d.ts +3 -0
- package/dist/types/utils/hooks/useSearch.d.ts +14 -0
- package/dist/types/utils/hooks/useThumbnail.d.ts +7 -0
- package/dist/types/utils/hooks/useVirtualReactWindow.d.ts +17 -0
- package/dist/types/utils/hooks/useWatermark.d.ts +1 -0
- package/dist/types/utils/link_service.d.ts +71 -0
- package/dist/types/utils/renderPage.d.ts +3 -0
- package/dist/types/utils/sanitizeExternalUrl.d.ts +1 -0
- package/dist/types/utils/smoothScrollTo.d.ts +2 -0
- package/dist/types/utils/types.d.ts +856 -0
- package/dist/types/utils/withRef.d.ts +4 -0
- package/dist/utils/Queue.js +47 -0
- package/dist/utils/annotations.js +306 -0
- package/dist/utils/appConsole.js +42 -0
- package/dist/utils/calculatePage.js +15 -0
- package/dist/utils/charators.js +48 -0
- package/dist/utils/const.js +9 -0
- package/dist/utils/constants.js +8 -0
- package/dist/utils/convertPdfDate.js +25 -0
- package/dist/utils/dateFormatter.js +7 -0
- package/dist/utils/elementPagePosition.js +11 -0
- package/dist/utils/formatFileSize.js +9 -0
- package/dist/utils/getScrollDistance.js +4 -0
- package/dist/utils/getThumbnailViewport.js +7 -0
- package/dist/utils/getWordPositionInPage.js +25 -0
- package/dist/utils/getZoomLevel.js +23 -0
- package/dist/utils/highlight.js +221 -0
- package/dist/utils/hooks/useDarkMode.js +11 -0
- package/dist/utils/hooks/useDarkModeProps.js +11 -0
- package/dist/utils/hooks/useDebounce.js +19 -0
- package/dist/utils/hooks/useElementSize.js +21 -0
- package/dist/utils/hooks/useFileDownload.js +58 -0
- package/dist/utils/hooks/useFlickerSelectText.js +25 -0
- package/dist/utils/hooks/useFullScreen.js +29 -0
- package/dist/utils/hooks/useGrabScroll.js +52 -0
- package/dist/utils/hooks/useHighlight.js +54 -0
- package/dist/utils/hooks/useInfiniteScroll.js +19 -0
- package/dist/utils/hooks/useLicense.js +110 -0
- package/dist/utils/hooks/useLoadPdf.js +77 -0
- package/dist/utils/hooks/useLoadWorker.js +13 -0
- package/dist/utils/hooks/useLocalization.js +25 -0
- package/dist/utils/hooks/useMousePressed.js +20 -0
- package/dist/utils/hooks/usePageRotateContext.js +26 -0
- package/dist/utils/hooks/usePaginate.js +60 -0
- package/dist/utils/hooks/usePdfProperties.js +37 -0
- package/dist/utils/hooks/usePinch.js +79 -0
- package/dist/utils/hooks/usePresentPage.js +60 -0
- package/dist/utils/hooks/usePrint.js +59 -0
- package/dist/utils/hooks/useRequestAnimationFrame.js +17 -0
- package/dist/utils/hooks/useResizeObserver.js +22 -0
- package/dist/utils/hooks/useRotate.js +13 -0
- package/dist/utils/hooks/useScrollToPage.js +62 -0
- package/dist/utils/hooks/useSearch.js +62 -0
- package/dist/utils/hooks/useThumbnail.js +59 -0
- package/dist/utils/hooks/useVirtualReactWindow.js +60 -0
- package/dist/utils/hooks/useWatermark.js +91 -0
- package/dist/utils/link_service.js +98 -0
- package/dist/utils/renderPage.js +17 -0
- package/dist/utils/sanitizeExternalUrl.js +16 -0
- package/dist/utils/smoothScrollTo.js +6 -0
- package/dist/utils/types.js +21 -0
- package/dist/utils/withRef.js +8 -0
- package/package.json +91 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"searchButtonTooltip": "ค้นหาในเอกสาร",
|
|
3
|
+
"searchInputPlaceholder": "กรอกคำค้นหา",
|
|
4
|
+
"searchInputTooltip": "ค้นหา",
|
|
5
|
+
"searchPrevTooltip": "ผลการค้นหาก่อนหน้า",
|
|
6
|
+
"searchNextTooltip": "ผลการค้นหาถัดไป",
|
|
7
|
+
"searchCloseButtonTooltip": "ปิด",
|
|
8
|
+
"searchMatchCaseLabel": "ข้อความที่มีคำ",
|
|
9
|
+
"searchMatchCaseTooltip": "ค้นหาข้อความที่มีการแยกตัวพิมพ์ใหญ่/พิมพ์เล็ก",
|
|
10
|
+
"searchWholeWordsLabel": "ทั้งคำ",
|
|
11
|
+
"searchWholeWordsTooltip": "ค้นหาคำที่ตรงตัวไม่มีการแยกตัวพิมพ์ใหญ่/พิมพ์เล็ก",
|
|
12
|
+
"previousPageTooltip": "หน้าก่อนหน้า",
|
|
13
|
+
"currentPageTooltip": "หน้าปัจจุบัน",
|
|
14
|
+
"nextPageTooltip": "หน้าถัดไป",
|
|
15
|
+
"zoomOutTooltip": "ย่อ",
|
|
16
|
+
"zoomInTooltip": "ขยาย",
|
|
17
|
+
"zoomSelectTooltip": "เลือกระดับซูม",
|
|
18
|
+
"zoomActualSize": "ขนาดจริง",
|
|
19
|
+
"zoomPageFit": "พอดีหน้า",
|
|
20
|
+
"zoomPageWidth": "พอดีความกว้าง",
|
|
21
|
+
"themeEnableDarkTooltip": "เปิดโหมดมืด",
|
|
22
|
+
"themeEnableLightTooltip": "เปิดโหมดสว่าง",
|
|
23
|
+
"openLocalFileLabel": "เปิดไฟล์",
|
|
24
|
+
"openLocalFileTooltip": "เปิดไฟล์",
|
|
25
|
+
"downloadFileLabel": "ดาวน์โหลดเอกสาร",
|
|
26
|
+
"downloadFileTooltip": "ดาวน์โหลดเอกสาร",
|
|
27
|
+
"printLabel": "พิมพ์",
|
|
28
|
+
"printTooltip": "พิมพ์",
|
|
29
|
+
"printLoadingMessage": "เตรียมเอกสาร",
|
|
30
|
+
"printCancelLabel": "ยกเลิก",
|
|
31
|
+
"fullScreenLabel": "เต็มจอ",
|
|
32
|
+
"fullScreenTooltip": "เต็มจอ",
|
|
33
|
+
"moreOptionTooltip": "ตัวเลือกเพิ่มเติม",
|
|
34
|
+
"firstPageLabel": "หน้าแรก",
|
|
35
|
+
"firstPageTooltip": "ไปที่หน้าแรก",
|
|
36
|
+
"lastPageLabel": "หน้าสุดท้าย",
|
|
37
|
+
"lastPageTooltip": "ไปที่หน้าสุดท้าย",
|
|
38
|
+
"rotateClockwiseLabel": "หมุนตามเข็มนาฬิกา",
|
|
39
|
+
"rotateClockwiseTooltip": "หมุนตามเข็มนาฬิกา",
|
|
40
|
+
"rotateCounterclockwiseLabel": "หมุนทวนเข็มนาฬิกา",
|
|
41
|
+
"rotateCounterclockwiseTooltip": "หมุนทวนเข็มนาฬิกา",
|
|
42
|
+
"textSelectionLabel": "เครื่องมือเลือกข้อความ",
|
|
43
|
+
"textSelectionTooltip": "เปิดใช้การเลือกข้อความ",
|
|
44
|
+
"handToolLabel": "เครื่องมือแฮนด์ทูล",
|
|
45
|
+
"handToolTooltip": "เปิดใช้แฮนด์ทูล",
|
|
46
|
+
"documentPropertiesLabel": "คุณสมบัติของเอกสาร",
|
|
47
|
+
"documentPropertiesTooltip": "ดูคุณสมบัติของเอกสาร",
|
|
48
|
+
"pageScrollingLabel": "การเลื่อนภายในหน้า",
|
|
49
|
+
"pageScrollingTooltip": "เปิดใช้การเลื่อนภายในหน้า",
|
|
50
|
+
"verticalScrollingLabel": "การเลื่อนแนวตั้ง",
|
|
51
|
+
"verticalScrollingTooltip": "เปิดใช้การเลื่อนแนวตั้ง",
|
|
52
|
+
"horizontalLabel": "การเลื่อนแนวนอน",
|
|
53
|
+
"horizontalTooltip": "เปิดใช้การเลื่อนแนวนอน",
|
|
54
|
+
"wrappedScrollingLabel": "การเลื่อนแบบแรพ",
|
|
55
|
+
"wrappedScrollingTooltip": "เปิดใช้การเลื่อนแบบแรพ",
|
|
56
|
+
"singlePageLabel": "หน้าเดี่ยว",
|
|
57
|
+
"singlePageTooltip": "เปิดใช้หน้าเดี่ยว",
|
|
58
|
+
"dualPageLabel": "หน้าคู่",
|
|
59
|
+
"dualPageTooltip": "เปิดใช้หน้าคู่",
|
|
60
|
+
"propertiesFilenameLabel": "ชื่อเอกสาร",
|
|
61
|
+
"propertiesFileSizeLabel": "ขนาดเอกสาร",
|
|
62
|
+
"propertiesTitleLabel": "ชื่อเรื่อง",
|
|
63
|
+
"propertiesAuthorLabel": "ผู้เขียน",
|
|
64
|
+
"propertiesSubjectLabel": "หัวข้อ",
|
|
65
|
+
"propertiesKeywordLabel": "คำสำคัญ",
|
|
66
|
+
"propertiesCreatorLabel": "ผู้สร้าง",
|
|
67
|
+
"propertiesCreateOnLabel": "วันที่สร้าง",
|
|
68
|
+
"propertiesModifiedOnLabel": "วันที่แก้ไข",
|
|
69
|
+
"propertiesPDFProducerLabel": "ผู้ผลิต PDF",
|
|
70
|
+
"propertiesPDFVersionLabel": "เวอร์ชัน PDF",
|
|
71
|
+
"propertiesPageCountLabel": "จำนวนหน้า",
|
|
72
|
+
"thumbnailTooltip": "ภาพย่อ",
|
|
73
|
+
"passwordModalTitle": "กรุณากรอกรหัสผ่าน",
|
|
74
|
+
"passwordModalMessage": "เอกสารนี้ได้รับการป้องกันด้วยรหัสผ่าน กรุณาใส่รหัสผ่านเพื่อเปิดไฟล์",
|
|
75
|
+
"passwordPlaceholder": "กรอกรหัสผ่าน",
|
|
76
|
+
"passwordConfirmLabel": "ส่ง",
|
|
77
|
+
"passwordError": "รหัสผ่านไม่ถูกต้อง",
|
|
78
|
+
"dragDropFileMessage": "ลากและวางไฟล์ PDF ที่นี่"
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"searchButtonTooltip": "搜索文件",
|
|
3
|
+
"searchInputPlaceholder": "输入搜索词",
|
|
4
|
+
"searchInputTooltip": "搜索",
|
|
5
|
+
"searchPrevTooltip": "上一条",
|
|
6
|
+
"searchNextTooltip": "下一条",
|
|
7
|
+
"searchCloseButtonTooltip": "关闭",
|
|
8
|
+
"searchMatchCaseLabel": "区分大小写",
|
|
9
|
+
"searchMatchCaseTooltip": "搜索区分大小写",
|
|
10
|
+
"searchWholeWordsLabel": "全字匹配",
|
|
11
|
+
"searchWholeWordsTooltip": "搜索完全匹配",
|
|
12
|
+
"previousPageTooltip": "上一页",
|
|
13
|
+
"currentPageTooltip": "当前页",
|
|
14
|
+
"nextPageTooltip": "下一页",
|
|
15
|
+
"zoomOutTooltip": "缩小",
|
|
16
|
+
"zoomInTooltip": "放大",
|
|
17
|
+
"zoomSelectTooltip": "选择缩放级别",
|
|
18
|
+
"zoomActualSize": "实际大小",
|
|
19
|
+
"zoomPageFit": "适合页面",
|
|
20
|
+
"zoomPageWidth": "页面宽度",
|
|
21
|
+
"themeEnableDarkTooltip": "切换到深色模式",
|
|
22
|
+
"themeEnableLightTooltip": "切换到浅色模式",
|
|
23
|
+
"openLocalFileLabel": "打开文件",
|
|
24
|
+
"openLocalFileTooltip": "打开文件",
|
|
25
|
+
"downloadFileLabel": "下载文件",
|
|
26
|
+
"downloadFileTooltip": "下载文件",
|
|
27
|
+
"printLabel": "打印",
|
|
28
|
+
"printTooltip": "打印",
|
|
29
|
+
"printLoadingMessage": "准备文件",
|
|
30
|
+
"printCancelLabel": "取消",
|
|
31
|
+
"fullScreenLabel": "全屏",
|
|
32
|
+
"fullScreenTooltip": "全屏",
|
|
33
|
+
"moreOptionTooltip": "更多选项",
|
|
34
|
+
"firstPageLabel": "第一页",
|
|
35
|
+
"firstPageTooltip": "跳转到第一页",
|
|
36
|
+
"lastPageLabel": "最后一页",
|
|
37
|
+
"lastPageTooltip": "跳转到最后一页",
|
|
38
|
+
"rotateClockwiseLabel": "顺时针旋转",
|
|
39
|
+
"rotateClockwiseTooltip": "顺时针旋转",
|
|
40
|
+
"rotateCounterclockwiseLabel": "逆时针旋转",
|
|
41
|
+
"rotateCounterclockwiseTooltip": "逆时针旋转",
|
|
42
|
+
"textSelectionLabel": "文本选择工具",
|
|
43
|
+
"textSelectionTooltip": "启用文本选择工具",
|
|
44
|
+
"handToolLabel": "手型工具",
|
|
45
|
+
"handToolTooltip": "启用手型工具",
|
|
46
|
+
"documentPropertiesLabel": "文件属性",
|
|
47
|
+
"documentPropertiesTooltip": "查看文件属性",
|
|
48
|
+
"pageScrollingLabel": "页面滚动",
|
|
49
|
+
"pageScrollingTooltip": "启用页面滚动",
|
|
50
|
+
"verticalScrollingLabel": "垂直滚动",
|
|
51
|
+
"verticalScrollingTooltip": "启用垂直滚动",
|
|
52
|
+
"horizontalLabel": "水平滚动",
|
|
53
|
+
"horizontalTooltip": "启用水平滚动",
|
|
54
|
+
"wrappedScrollingLabel": "环绕滚动",
|
|
55
|
+
"wrappedScrollingTooltip": "启用环绕滚动",
|
|
56
|
+
"singlePageLabel": "单页面视图",
|
|
57
|
+
"singlePageTooltip": "启用单页视图",
|
|
58
|
+
"dualPageLabel": "双页面视图",
|
|
59
|
+
"dualPageTooltip": "启用双页视图",
|
|
60
|
+
"propertiesFilenameLabel": "文件名称",
|
|
61
|
+
"propertiesFileSizeLabel": "文件大小",
|
|
62
|
+
"propertiesTitleLabel": "标题",
|
|
63
|
+
"propertiesAuthorLabel": "作者",
|
|
64
|
+
"propertiesSubjectLabel": "主题",
|
|
65
|
+
"propertiesKeywordLabel": "关键字",
|
|
66
|
+
"propertiesCreatorLabel": "创建者",
|
|
67
|
+
"propertiesCreateOnLabel": "创建于",
|
|
68
|
+
"propertiesModifiedOnLabel": "修改于",
|
|
69
|
+
"propertiesPDFProducerLabel": "PDF 制作程序 ",
|
|
70
|
+
"propertiesPDFVersionLabel": "PDF版本",
|
|
71
|
+
"propertiesPageCountLabel": "页数",
|
|
72
|
+
"thumbnailTooltip": "缩略图",
|
|
73
|
+
"passwordModalTitle": "需要密码",
|
|
74
|
+
"passwordModalMessage": "此文件受密码保护。请输入密码以打开文件。",
|
|
75
|
+
"passwordPlaceholder": "输入密码",
|
|
76
|
+
"passwordConfirmLabel": "提交",
|
|
77
|
+
"passwordError": "密码错误",
|
|
78
|
+
"dragDropFileMessage": "将PDF文件拖放到这里"
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export { RPProvider } from './components/RPProvider';
|
|
2
|
+
export { RPPages } from './components/RPPages';
|
|
3
|
+
export { RPConfig } from './components/RPConfig';
|
|
4
|
+
export { RPDefaultLayout } from './components/layout/RPDefaultLayout';
|
|
5
|
+
export { RPLayout } from './components/layout/RPLayout';
|
|
6
|
+
export { RPController } from './components/RPController';
|
|
7
|
+
export { RPTheme } from './components/RPTheme';
|
|
8
|
+
export { RPDropFileZone } from './components/RPDropFileZone';
|
|
9
|
+
export { useDarkModeContext } from './contexts/DarkModeContext';
|
|
10
|
+
export { usePaginationContext } from './contexts/PaginationContext';
|
|
11
|
+
export { useDocumentContext } from './contexts/RPDocumentContext';
|
|
12
|
+
export { useRotationContext } from './contexts/RotationContext';
|
|
13
|
+
export { useViewModeContext } from './contexts/ViewModeContext';
|
|
14
|
+
export { useDropFileZoneContext } from './contexts/DropFileZoneContext';
|
|
15
|
+
export { useFileDownload } from './utils/hooks/useFileDownload';
|
|
16
|
+
export { useOpenFileContext } from './contexts/FileInputContext';
|
|
17
|
+
export { usePrintContext } from './contexts/PrintContext';
|
|
18
|
+
export { useZoomContext } from './contexts/ZoomContext';
|
|
19
|
+
export { useSearchContext } from './contexts/SearchContext';
|
|
20
|
+
export { useHighlightContext } from './contexts/HighlightContext';
|
|
21
|
+
export { usePdfProperties } from './utils/hooks/usePdfProperties';
|
|
22
|
+
export { useFullScreenContext } from './contexts/FullScreenContext';
|
|
23
|
+
export { usePageRotateContext } from './utils/hooks/usePageRotateContext';
|
|
24
|
+
export { useElementPageContext } from './contexts/ElementPageContext';
|
|
25
|
+
export { type PDFDocumentProxy } from 'pdfjs-dist';
|
|
26
|
+
export { SearchTool } from '../lib/components/layout/toolbar/SearchTool';
|
|
27
|
+
export { ThemeSwitcherTool } from './components/layout/toolbar/tools/ThemeSwitcherTool';
|
|
28
|
+
export { ThumbnailTool } from './components/layout/toolbar/tools/ThumbnailTool';
|
|
29
|
+
export { FileUploadTool } from './components/layout/toolbar/tools/FileUploadTool';
|
|
30
|
+
export { FileDownloadTool } from './components/layout/toolbar/tools/FileDownloadTool';
|
|
31
|
+
export { PrintTool } from './components/layout/toolbar/tools/PrintTool';
|
|
32
|
+
export { FullScreenTool } from './components/layout/toolbar/tools/FullScreenTool';
|
|
33
|
+
export { PreviousPageTool } from './components/layout/toolbar/tools/PreviousPageTool';
|
|
34
|
+
export { NextPageTool } from './components/layout/toolbar/tools/NextPageTool';
|
|
35
|
+
export { InputPageTool } from './components/layout/toolbar/tools/InputPageTool';
|
|
36
|
+
export { ZoomInTool } from './components/layout/toolbar/tools/ZoomInTool';
|
|
37
|
+
export { ZoomOutTool } from './components/layout/toolbar/tools/ZoomOutTool';
|
|
38
|
+
export { ZoomLevelTool } from './components/layout/toolbar/tools/ZoomLevelTool';
|
|
39
|
+
export { DocumentPropertiesTool } from './components/layout/toolbar/tools/DocumentPropertiesTool';
|
|
40
|
+
export { RotateClockwiseTool } from './components/layout/toolbar/tools/RotateClockwiseTool';
|
|
41
|
+
export { RotateCounterclockwiseTool } from './components/layout/toolbar/tools/RotateCounterclockwiseTool';
|
|
42
|
+
export { RPHorizontalBar } from './components/layout/toolbar/tools/defaults/RPHorizontalBar';
|
|
43
|
+
export { RPVerticalBar } from './components/layout/toolbar/tools/defaults/RPVerticalBar';
|
|
44
|
+
export type { CharacterMap, DarkModeProps, DownloadToolProps, FullScreenToolProps, Localization, MatchValue, OpenFileToolProps, PageNavigationToolProps, PdfPage, PdfProperties, PreparePrintProgress, PrintToolProps, RPConfigProps, RPThemeProps, RPProviderProps, RPDefaultLayoutProps, RPLayoutProps, RPIcons, RPSlots, SearchOptions, SetPageResult, ScrollModeInitialProps, ThumbnailToolProps, ViewModeInitialProps, ZoomProps, RPHorizontalBarProps, RPHorizontalBarSlots, RPHorizontalBarIcons, RPVerticalBarProps, RPVerticalBarSlots, RPVerticalBarIcons, TextHighlight, MatchHighlight, RectPosition, ThemeSwitcherIcons, ThemeSwitcherToolProps, ToolProps, ToolbarSection, ToolbarProps } from './utils/types';
|
|
45
|
+
export { ViewMode, ScrollMode, ZoomLevel, Locales, ThemeVariables } from './utils/types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface QueueItem<T> {
|
|
2
|
+
id: string;
|
|
3
|
+
priority: number;
|
|
4
|
+
data: T;
|
|
5
|
+
}
|
|
6
|
+
export declare class Queue<T> {
|
|
7
|
+
private _items;
|
|
8
|
+
private _triggerEnqueue;
|
|
9
|
+
constructor(triggerEnqueue: (data: T) => void);
|
|
10
|
+
enqueue(id: string, data: T, priority?: number): void;
|
|
11
|
+
dequeue(): QueueItem<T> | undefined;
|
|
12
|
+
removeQueue(id: string): boolean;
|
|
13
|
+
changePagePriority(id: string | RegExp, newPriority: number): boolean;
|
|
14
|
+
peekAll(): QueueItem<T>[];
|
|
15
|
+
isEmpty(): boolean;
|
|
16
|
+
size(): number;
|
|
17
|
+
clear(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PageViewport, PDFDocumentProxy } from 'pdfjs-dist';
|
|
2
|
+
import { Annotation, AnnotationEventPayload, Destination } from './types';
|
|
3
|
+
export declare const annotationsEvents: (event: Event) => (() => void) | undefined;
|
|
4
|
+
export declare const handleClick: (event: Event, annotation: Annotation[], pdf: PDFDocumentProxy, callback: (res: Destination) => void) => void;
|
|
5
|
+
export declare function bindLayerEvents(annotatedLayer: HTMLDivElement, handler: (event: Event) => void): void;
|
|
6
|
+
export declare function unbindLayerEvents(annotatedLayer: HTMLDivElement, handler: (event: Event) => void): void;
|
|
7
|
+
export declare function handleAnnotationLink(annotation: Annotation): void;
|
|
8
|
+
export declare function handleAnnotationWidget(annotation: Annotation, viewport: PageViewport, canvasMap: Map<string, HTMLCanvasElement>): void;
|
|
9
|
+
export declare function annotationEventsHandler(evt: Event, PDFDoc: PDFDocumentProxy, Annotations: Object[]): Promise<AnnotationEventPayload | undefined>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare class Console {
|
|
2
|
+
private static instance;
|
|
3
|
+
private isProduction;
|
|
4
|
+
private constructor();
|
|
5
|
+
static getInstance(): Console;
|
|
6
|
+
/**
|
|
7
|
+
* Debug level logging - stripped in production
|
|
8
|
+
*/
|
|
9
|
+
debug(...args: any[]): void;
|
|
10
|
+
/**
|
|
11
|
+
* Info level logging - kept in production
|
|
12
|
+
*/
|
|
13
|
+
info(...args: any[]): void;
|
|
14
|
+
/**
|
|
15
|
+
* Warning level logging - kept in production
|
|
16
|
+
*/
|
|
17
|
+
warn(...args: any[]): void;
|
|
18
|
+
/**
|
|
19
|
+
* Error level logging - kept in production
|
|
20
|
+
*/
|
|
21
|
+
error(...args: any[]): void;
|
|
22
|
+
}
|
|
23
|
+
export declare const appConsole: Console;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const getPageFromPosition: (rowIndex: number, columnIndex: number, totalColumns: number) => number;
|
|
2
|
+
export declare const getPositionFromPage: (page: number, totalColumns: number) => {
|
|
3
|
+
rowIndex: number;
|
|
4
|
+
columnIndex: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const getGridDimension: (pageDimension: {
|
|
7
|
+
widths: number[];
|
|
8
|
+
heights: number[];
|
|
9
|
+
}, totalColumns: number) => {
|
|
10
|
+
rowsHeight: number[];
|
|
11
|
+
columnsWidth: number[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare enum CharacterType {
|
|
2
|
+
SPACE = 0,
|
|
3
|
+
ALPHA_LETTER = 1,
|
|
4
|
+
PUNCTUATION = 2,
|
|
5
|
+
HAN_LETTER = 3,
|
|
6
|
+
KATAKANA_LETTER = 4,
|
|
7
|
+
HIRAGANA_LETTER = 5,
|
|
8
|
+
HALF_WIDTH_KATAKANA_LETTER = 6,
|
|
9
|
+
THAI_LETTER = 7
|
|
10
|
+
}
|
|
11
|
+
export declare function getCharacterType(charCode: number): CharacterType;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertPDFDate: (input: string) => Date | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dateFormatter: (date: string) => string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Style {
|
|
2
|
+
width?: string;
|
|
3
|
+
height?: string;
|
|
4
|
+
top?: string;
|
|
5
|
+
left?: string;
|
|
6
|
+
bottom?: string;
|
|
7
|
+
right?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const elementPagePosition: ({ width, height, top, left, bottom, right }: Style) => {
|
|
10
|
+
left: string;
|
|
11
|
+
top: string;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
bottom: string;
|
|
15
|
+
right: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatFileSize(bytes: number, decimalPoint?: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getScrollDistance: (distanceList: number[], targetIndex: number) => number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RectPosition } from './types';
|
|
2
|
+
export declare const getWordPositionInPage: (pageDimension: {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}, pagesRef: HTMLDivElement, wordPosition: RectPosition, scale: number, rotation: number) => {
|
|
6
|
+
leftInPage: number;
|
|
7
|
+
topInPage: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TextContent } from 'pdfjs-dist/types/src/display/text_layer';
|
|
2
|
+
import { SearchOptions, Match, MatchHighlight } from './types';
|
|
3
|
+
export declare function findMatches(queries: (string | RegExp)[], textContent: TextContent, pageIndex: number, options: SearchOptions): Match[];
|
|
4
|
+
export declare function isMatchEntireWord(content: string, startIdx: number, length: number): boolean;
|
|
5
|
+
export declare function highlightMatches(matches: Match[], textContent: TextContent, textDivs: HTMLElement[]): {
|
|
6
|
+
element: HTMLElement;
|
|
7
|
+
index: number;
|
|
8
|
+
}[];
|
|
9
|
+
export declare function resetDivs(textContent: TextContent, textDivs: HTMLElement[]): void;
|
|
10
|
+
export declare function getHighlightOptionsWithDefaults(options?: SearchOptions): SearchOptions;
|
|
11
|
+
export declare function highlightMultipleColorMatches(matches: MatchHighlight[], textContent: TextContent, textDivs: HTMLElement[]): {
|
|
12
|
+
element: HTMLElement;
|
|
13
|
+
index: number;
|
|
14
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDebounce<T = string>(value: T, delay: number, maxWait?: number): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useFlickerSelectText: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface UseGrabScrollProps {
|
|
2
|
+
isPressed: boolean;
|
|
3
|
+
scrollSpeed?: number;
|
|
4
|
+
}
|
|
5
|
+
interface UseGrabScrollReturn {
|
|
6
|
+
initializeGrabScroll: (element: HTMLElement | null) => void;
|
|
7
|
+
scrollBehavior: 'smooth' | 'unset';
|
|
8
|
+
resetGrabState: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useGrabScroll: ({ isPressed, scrollSpeed }: UseGrabScrollProps) => UseGrabScrollReturn;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
2
|
+
import { MatchHighlight, TextHighlight } from '../types';
|
|
3
|
+
interface UseHighlight {
|
|
4
|
+
highlight: (value: TextHighlight[]) => Promise<void>;
|
|
5
|
+
highlightMatches: MatchHighlight[];
|
|
6
|
+
highlightKeywords: TextHighlight[] | undefined;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useHighlight: (pdf: PDFDocumentProxy | undefined) => UseHighlight;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api.js';
|
|
2
|
+
import { PdfPage, RPSrc, CharacterMap, LoadPDFOptions, ErrorType } from '../types';
|
|
3
|
+
export declare const useLoadPdf: (src?: RPSrc, characterMap?: CharacterMap, options?: LoadPDFOptions) => {
|
|
4
|
+
pdf: PDFDocumentProxy | undefined;
|
|
5
|
+
pages: Map<number, PdfPage>;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
error: ErrorType | undefined;
|
|
8
|
+
loadingProgress: number;
|
|
9
|
+
passwordRequired: boolean | undefined;
|
|
10
|
+
passwordError: string | undefined;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { Localization, LocalizationMap } from '../types';
|
|
3
|
+
interface LocalizationProps {
|
|
4
|
+
locale: string;
|
|
5
|
+
setLocale: Dispatch<React.SetStateAction<string>>;
|
|
6
|
+
localeMessages: Localization;
|
|
7
|
+
addLocalization: (value: LocalizationMap) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useLocalization: (initialLocal: string) => LocalizationProps;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
|
|
2
|
+
import { PdfProperties, PDFSrc } from '../types';
|
|
3
|
+
type CMapSource = {
|
|
4
|
+
url: string;
|
|
5
|
+
cMapPacked: boolean;
|
|
6
|
+
cMapUrl: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const usePdfProperties: (source: PDFSrc | CMapSource, pdf?: PDFDocumentProxy, filename?: string) => PdfProperties | undefined;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePinch: (container: HTMLDivElement | null) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePresentPage: (totalColumns: number, totalRows: number, element?: HTMLElement) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PreparePrintProgress } from '../types';
|
|
2
|
+
interface PrintHookResult {
|
|
3
|
+
print: () => Promise<void>;
|
|
4
|
+
cancel: () => void;
|
|
5
|
+
progress: PreparePrintProgress;
|
|
6
|
+
isComplete: boolean;
|
|
7
|
+
isError: boolean;
|
|
8
|
+
error: Error | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const usePrint: () => PrintHookResult;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type ResizeObserverCallback = (entries: ReadonlyArray<ResizeObserverEntry>, observer: ResizeObserver) => void;
|
|
2
|
+
declare const useResizeObserver: (element: HTMLElement | null, callback: ResizeObserverCallback) => {
|
|
3
|
+
isSupported: boolean;
|
|
4
|
+
stop: () => void;
|
|
5
|
+
};
|
|
6
|
+
export default useResizeObserver;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SearchOptions, MatchValue } from '../types';
|
|
2
|
+
export declare const useSearch: (options?: SearchOptions, initialSearch?: string) => {
|
|
3
|
+
search: string;
|
|
4
|
+
setSearch: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
matches: MatchValue[];
|
|
7
|
+
totalMatches: number;
|
|
8
|
+
currentMatchPosition: number;
|
|
9
|
+
currentMatch: MatchValue | null;
|
|
10
|
+
nextMatch: () => void;
|
|
11
|
+
prevMatch: () => void;
|
|
12
|
+
currentMatchElement: HTMLElement | null;
|
|
13
|
+
setCurrentMatchElement: import('react').Dispatch<import('react').SetStateAction<HTMLElement | null>>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const useVirtualReactWindow: () => {
|
|
2
|
+
rowCount: number;
|
|
3
|
+
rowHeight: (idx: number) => number;
|
|
4
|
+
columnCount: number;
|
|
5
|
+
columnWidth: (idx: number) => number;
|
|
6
|
+
pageDimension: import('../types').DimensionPagesContextType;
|
|
7
|
+
estimatedRowHeight: number;
|
|
8
|
+
estimatedColumnWidth: number;
|
|
9
|
+
gridDimension: {
|
|
10
|
+
rowsHeight: number[];
|
|
11
|
+
columnsWidth: number[];
|
|
12
|
+
};
|
|
13
|
+
totalDimension: {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useWatermark: (instanceId?: string) => void;
|