@react-pdf-kit/viewer 2.0.0-beta.9 → 2.0.0-rc.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/Combination-136ff99c.js +698 -0
- package/dist/MostPageTool.module-13578ad6.js +6 -0
- package/dist/OtherTool.module-a4be5f1f.js +6 -0
- package/dist/Paginate.module-4eef00aa.js +8 -0
- package/dist/PaginationContext-9217cab4.js +201 -0
- package/dist/RPLayout.module-b4b23e29.js +14 -0
- package/dist/RPSplitter-f6acf13b.js +71 -0
- package/dist/RPToolbar.module-27d7fe77.js +10 -0
- package/dist/SearchTool.module-99f60dc7.js +16 -0
- package/dist/ToolbarLayout.module-6e339802.js +12 -0
- package/dist/ZoomTool.module-7082af8c.js +12 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/style.js +32 -30
- package/dist/components/RPController.js +81 -152
- package/dist/components/RPDropFileZone.js +1 -1
- package/dist/components/RPPages.js +1028 -122
- package/dist/components/RPProvider.js +57 -113
- package/dist/components/icons/DualPageWithCoverIcon.js +22 -0
- package/dist/components/layout/LayoutContainer.js +31 -136
- package/dist/components/layout/LayoutWrapper.js +8 -4
- package/dist/components/layout/RPDefaultLayout.js +184 -86
- package/dist/components/layout/RPLayout.js +123 -105
- package/dist/components/layout/SkipLink.js +29 -0
- package/dist/components/layout/WrapperLayout.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +79 -112
- package/dist/components/layout/sidebar/RPSplitter.js +6 -59
- package/dist/components/layout/sidebar/Thumbnail.js +130 -125
- package/dist/components/layout/sidebar/Thumbnails.js +56 -119
- package/dist/components/layout/toolbar/DarkModeTool.js +7 -5
- package/dist/components/layout/toolbar/DocumentDialog.js +305 -131
- package/dist/components/layout/toolbar/DocumentProperties.js +13 -10
- package/dist/components/layout/toolbar/FileDownloadTool.js +34 -124
- package/dist/components/layout/toolbar/FileUploadTool.js +9 -6
- package/dist/components/layout/toolbar/FullScreenTool.js +17 -14
- package/dist/components/layout/toolbar/MenuItem.js +11 -8
- package/dist/components/layout/toolbar/MenuSeparator.js +8 -5
- package/dist/components/layout/toolbar/MostPageTool.js +66 -125
- package/dist/components/layout/toolbar/OtherTool.js +171 -112
- package/dist/components/layout/toolbar/Paginate.js +121 -116
- package/dist/components/layout/toolbar/PrintTool.js +55 -123
- package/dist/components/layout/toolbar/RPMenuItem.js +14 -11
- package/dist/components/layout/toolbar/RPMoreOptions.js +102 -154
- package/dist/components/layout/toolbar/RPToolbar.js +90 -79
- package/dist/components/layout/toolbar/RPToolbarEnd.js +69 -88
- package/dist/components/layout/toolbar/RotateTool.js +13 -10
- package/dist/components/layout/toolbar/ScrollModeTool.js +42 -39
- package/dist/components/layout/toolbar/SearchCloseButton.js +24 -10
- package/dist/components/layout/toolbar/SearchResultNavigator.js +74 -105
- package/dist/components/layout/toolbar/SearchTool.js +245 -121
- package/dist/components/layout/toolbar/SelectionModeTool.js +9 -6
- package/dist/components/layout/toolbar/ThumbnailTool.js +15 -122
- package/dist/components/layout/toolbar/ToolbarCustom.js +75 -143
- package/dist/components/layout/toolbar/ToolbarDefault.js +135 -122
- package/dist/components/layout/toolbar/ToolbarLayout.js +86 -81
- package/dist/components/layout/toolbar/ViewModeTool.js +47 -35
- package/dist/components/layout/toolbar/ZoomTool.js +129 -119
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +18 -122
- package/dist/components/layout/toolbar/tools/DualPageTool.js +11 -129
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +202 -0
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +14 -123
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +10 -8
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +197 -0
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +21 -18
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/InputPageTool.js +52 -136
- package/dist/components/layout/toolbar/tools/LastPageTool.js +197 -0
- package/dist/components/layout/toolbar/tools/NextPageTool.js +39 -129
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +28 -118
- package/dist/components/layout/toolbar/tools/PrintTool.js +14 -123
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +18 -9
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +15 -13
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +24 -14
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +11 -129
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +16 -6
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +23 -131
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +21 -18
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +23 -136
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +80 -141
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +18 -15
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +98 -105
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +16 -123
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +17 -14
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +29 -127
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +31 -130
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +28 -17
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +63 -134
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +33 -131
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +41 -24
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +58 -37
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +44 -25
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +56 -30
- package/dist/components/page/AnnotationLayer.js +130 -125
- package/dist/components/page/CanvasLayer.js +57 -126
- package/dist/components/page/CustomElement.js +1 -1
- package/dist/components/page/DualPage.js +69 -110
- package/dist/components/page/DualPageWithCover.js +131 -0
- package/dist/components/page/RPPage.js +126 -123
- package/dist/components/page/SinglePage.js +59 -110
- package/dist/components/page/TextHighlightLayer.js +187 -129
- package/dist/components/page/TextLayer.js +186 -125
- package/dist/components/ui/Button.js +14 -12
- package/dist/components/ui/Checkbox.js +78 -70
- package/dist/components/ui/DropDown.js +11 -8
- package/dist/components/ui/Input.js +12 -11
- package/dist/components/ui/LoadingIndicator.js +34 -127
- package/dist/components/ui/PasswordModal.js +44 -30
- package/dist/components/ui/RPTooltip.js +121 -135
- package/dist/contexts/DimensionPagesContext.js +1 -1
- package/dist/contexts/DropFileZoneContext.js +1 -1
- package/dist/contexts/ElementPageContext.js +1 -1
- package/dist/contexts/EventCallbackContext.js +12 -8
- package/dist/contexts/FileInputContext.js +1 -1
- package/dist/contexts/HighlightContext.js +1 -1
- package/dist/contexts/LocalizationContext.js +1 -1
- package/dist/contexts/PagesRotateContext.js +1 -1
- package/dist/contexts/PaginationContext.js +15 -118
- package/dist/contexts/PrintContext.js +67 -131
- package/dist/contexts/RPDocumentContext.js +1 -1
- package/dist/contexts/RenderQueueProvider.js +48 -118
- package/dist/contexts/RotationContext.js +1 -1
- package/dist/contexts/ScrollModeContext.js +1 -1
- package/dist/contexts/SearchContext.js +66 -112
- package/dist/contexts/SelectionModeContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +32 -131
- package/dist/contexts/ViewModeContext.js +19 -15
- package/dist/contexts/ZoomContext.js +1 -1
- package/dist/de_DE-a553b162.js +489 -0
- package/dist/floating-ui.react-dom-5ec29bd6.js +1327 -0
- package/dist/index-61f59539.js +1198 -0
- package/dist/index-655864a7.js +27 -0
- package/dist/{index-c9a2990a.js → index-c0faa594.js} +64 -87
- package/dist/index-e3ee9457.js +150 -0
- package/dist/main.js +193 -130
- package/dist/types/components/icons/DualPageWithCoverIcon.d.ts +2 -0
- package/dist/types/components/layout/LayoutContainer.d.ts +1 -5
- package/dist/types/components/layout/LayoutWrapper.d.ts +1 -5
- package/dist/types/components/layout/SkipLink.d.ts +7 -0
- package/dist/types/components/layout/sidebar/Thumbnails.d.ts +1 -3
- package/dist/types/components/layout/toolbar/RPToolbar.d.ts +1 -3
- package/dist/types/components/layout/toolbar/tools/DualPageWithCoverTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FirstPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/HorizontalScrollingTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/LastPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/PageScrollingTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/VerticalScrollingTool.d.ts +3 -0
- package/dist/types/components/page/DualPageWithCover.d.ts +5 -0
- package/dist/types/components/page/RPPage.d.ts +1 -3
- package/dist/types/components/ui/Button.d.ts +1 -3
- package/dist/types/components/ui/Checkbox.d.ts +1 -0
- package/dist/types/components/ui/Input.d.ts +1 -3
- package/dist/types/components/ui/RPTooltip.d.ts +1 -3
- package/dist/types/locales/de_DE.json.d.ts +83 -0
- package/dist/types/locales/en_US.json.d.ts +2 -0
- package/dist/types/locales/it_IT.json.d.ts +2 -0
- package/dist/types/locales/pt_PT.json.d.ts +2 -0
- package/dist/types/locales/th_TH.json.d.ts +2 -0
- package/dist/types/locales/zh_CN.json.d.ts +2 -0
- package/dist/types/main.d.ts +8 -2
- package/dist/types/utils/annotations.d.ts +10 -1
- package/dist/types/utils/calculatePage.d.ts +3 -3
- package/dist/types/utils/hooks/usePresentPage.d.ts +2 -1
- package/dist/types/utils/hooks/useTextSelection.d.ts +7 -0
- package/dist/types/utils/types.d.ts +34 -3
- package/dist/types/utils/withRef.d.ts +5 -4
- package/dist/utils/annotations.js +145 -150
- package/dist/utils/calculatePage.js +17 -11
- package/dist/utils/getZoomLevel.js +9 -9
- package/dist/utils/highlight.js +139 -139
- package/dist/utils/hooks/useFileDownload.js +23 -130
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/useLoadPdf.js +1 -1
- package/dist/utils/hooks/useLocalization.js +12 -11
- package/dist/utils/hooks/usePageRotateContext.js +1 -1
- package/dist/utils/hooks/usePaginate.js +23 -126
- package/dist/utils/hooks/usePinch.js +1 -1
- package/dist/utils/hooks/usePresentPage.js +79 -129
- package/dist/utils/hooks/usePrint.js +175 -130
- package/dist/utils/hooks/useRotate.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +18 -121
- package/dist/utils/hooks/useSearch.js +149 -127
- package/dist/utils/hooks/useTextSelection.js +76 -0
- package/dist/utils/hooks/useThumbnail.js +50 -131
- package/dist/utils/hooks/useVirtualReactWindow.js +84 -128
- package/dist/utils/types.js +14 -13
- package/dist/utils/withRef.js +5 -5
- package/package.json +5 -4
- package/dist/LayoutWrapper-6224491f.js +0 -19
- package/dist/SearchCloseButton-08d57275.js +0 -33
- package/dist/ToolbarLayout.module-8d56d12b.js +0 -3560
- package/dist/floating-ui.react-dom-d22a10b4.js +0 -1474
- package/dist/index-3bf64864.js +0 -1886
- package/dist/th_TH-d627cd51.js +0 -398
package/dist/main.js
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
|
-
import { RPProvider as
|
|
2
|
-
import {
|
|
3
|
-
import { RPConfig as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
1
|
+
import { RPProvider as Dt } from "./components/RPProvider.js";
|
|
2
|
+
import { RPPages as Ft } from "./components/RPPages.js";
|
|
3
|
+
import { RPConfig as Mt } from "./components/RPConfig.js";
|
|
4
|
+
import { RPDefaultLayout as vt } from "./components/layout/RPDefaultLayout.js";
|
|
5
|
+
import { RPLayout as kt } from "./components/layout/RPLayout.js";
|
|
6
|
+
import { RPTheme as bt } from "./components/RPTheme.js";
|
|
7
|
+
import { useDarkModeContext as zt } from "./contexts/DarkModeContext.js";
|
|
8
|
+
import { u as It } from "./PaginationContext-9217cab4.js";
|
|
9
|
+
import { useDocumentContext as Et } from "./contexts/RPDocumentContext.js";
|
|
10
|
+
import { useRotationContext as Ut } from "./contexts/RotationContext.js";
|
|
11
|
+
import { useViewModeContext as jt } from "./contexts/ViewModeContext.js";
|
|
12
|
+
import { useDropFileZoneContext as At } from "./contexts/DropFileZoneContext.js";
|
|
13
|
+
import { useFileDownload as Jt } from "./utils/hooks/useFileDownload.js";
|
|
14
|
+
import { useOpenFileContext as Qt } from "./contexts/FileInputContext.js";
|
|
15
|
+
import { usePrintContext as Yt } from "./contexts/PrintContext.js";
|
|
16
|
+
import { useZoomContext as $t } from "./contexts/ZoomContext.js";
|
|
17
|
+
import { useSearchContext as rm } from "./contexts/SearchContext.js";
|
|
18
|
+
import { useHighlightContext as mm } from "./contexts/HighlightContext.js";
|
|
19
|
+
import { useFullScreenContext as im } from "./contexts/FullScreenContext.js";
|
|
20
|
+
import { usePageRotateContext as lm } from "./utils/hooks/usePageRotateContext.js";
|
|
21
|
+
import { useElementPageContext as fm } from "./contexts/ElementPageContext.js";
|
|
22
|
+
import { SearchTool as nm } from "./components/layout/toolbar/SearchTool.js";
|
|
23
|
+
import { ThemeSwitcherTool as Tm } from "./components/layout/toolbar/tools/ThemeSwitcherTool.js";
|
|
24
|
+
import { ThumbnailTool as sm } from "./components/layout/toolbar/tools/ThumbnailTool.js";
|
|
25
|
+
import { FileUploadTool as gm } from "./components/layout/toolbar/tools/FileUploadTool.js";
|
|
26
|
+
import { FileDownloadTool as Sm } from "./components/layout/toolbar/tools/FileDownloadTool.js";
|
|
27
|
+
import { PrintTool as hm } from "./components/layout/toolbar/tools/PrintTool.js";
|
|
28
|
+
import { FullScreenTool as Dm } from "./components/layout/toolbar/tools/FullScreenTool.js";
|
|
29
|
+
import { PreviousPageTool as Fm } from "./components/layout/toolbar/tools/PreviousPageTool.js";
|
|
30
|
+
import { NextPageTool as Mm } from "./components/layout/toolbar/tools/NextPageTool.js";
|
|
31
|
+
import { InputPageTool as vm } from "./components/layout/toolbar/tools/InputPageTool.js";
|
|
32
|
+
import { ZoomInTool as km } from "./components/layout/toolbar/tools/ZoomInTool.js";
|
|
33
|
+
import { ZoomOutTool as bm } from "./components/layout/toolbar/tools/ZoomOutTool.js";
|
|
34
|
+
import { ZoomLevelTool as zm } from "./components/layout/toolbar/tools/ZoomLevelTool.js";
|
|
35
|
+
import { DocumentPropertiesTool as Im } from "./components/layout/toolbar/tools/DocumentPropertiesTool.js";
|
|
36
|
+
import { RotateClockwiseTool as Em } from "./components/layout/toolbar/tools/RotateClockwiseTool.js";
|
|
37
|
+
import { RotateCounterclockwiseTool as Um } from "./components/layout/toolbar/tools/RotateCounterclockwiseTool.js";
|
|
38
|
+
import { RPHorizontalBar as jm } from "./components/layout/toolbar/tools/defaults/RPHorizontalBar.js";
|
|
39
|
+
import { RPVerticalBar as Am } from "./components/layout/toolbar/tools/defaults/RPVerticalBar.js";
|
|
40
|
+
import { SelectionModeSwitcherTool as Jm } from "./components/layout/toolbar/tools/SelectionModeSwitcherTool.js";
|
|
41
|
+
import { SinglePageTool as Qm } from "./components/layout/toolbar/tools/SinglePageTool.js";
|
|
42
|
+
import { DualPageTool as Ym } from "./components/layout/toolbar/tools/DualPageTool.js";
|
|
43
|
+
import { DualPageWithCoverTool as $m } from "./components/layout/toolbar/tools/DualPageWithCoverTool.js";
|
|
44
|
+
import { PageScrollingTool as rp } from "./components/layout/toolbar/tools/PageScrollingTool.js";
|
|
45
|
+
import { VerticalScrollingTool as mp } from "./components/layout/toolbar/tools/VerticalScrollingTool.js";
|
|
46
|
+
import { HorizontalScrollingTool as ip } from "./components/layout/toolbar/tools/HorizontalScrollingTool.js";
|
|
47
|
+
import { FirstPageTool as lp } from "./components/layout/toolbar/tools/FirstPageTool.js";
|
|
48
|
+
import { LastPageTool as fp } from "./components/layout/toolbar/tools/LastPageTool.js";
|
|
49
|
+
import { Locales as np, ScrollMode as up, SelectionMode as Tp, ThemeVariables as Pp, ViewMode as sp, ZoomLevel as cp } from "./utils/types.js";
|
|
38
50
|
import "react/jsx-runtime";
|
|
39
51
|
import "react";
|
|
40
52
|
import "./contexts/DocumentPasswordContext.js";
|
|
@@ -46,6 +58,9 @@ import "./contexts/InitialStateContext.js";
|
|
|
46
58
|
import "./contexts/VirtualScrollContext.js";
|
|
47
59
|
import "./contexts/VirtualGridContext.js";
|
|
48
60
|
import "./contexts/SelectionModeContext.js";
|
|
61
|
+
import "./contexts/ThumbnailsContext.js";
|
|
62
|
+
import "./utils/hooks/useThumbnail.js";
|
|
63
|
+
import "./utils/getThumbnailViewport.js";
|
|
49
64
|
import "./contexts/LayoutContainerContext.js";
|
|
50
65
|
import "./contexts/DimensionPagesContext.js";
|
|
51
66
|
import "./utils/constants.js";
|
|
@@ -53,12 +68,16 @@ import "./contexts/PagesRotateContext.js";
|
|
|
53
68
|
import "./contexts/EventCallbackContext.js";
|
|
54
69
|
import "./contexts/LocalizationContext.js";
|
|
55
70
|
import "./utils/hooks/useLocalization.js";
|
|
56
|
-
import "./
|
|
71
|
+
import "./de_DE-a553b162.js";
|
|
57
72
|
import "./utils/hooks/useWatermark.js";
|
|
58
73
|
import "./contexts/LicenseContext.js";
|
|
59
74
|
import "./utils/hooks/useLicense.js";
|
|
60
75
|
import "./contexts/DownloadContext.js";
|
|
61
76
|
import "./contexts/SmoothScrollContext.js";
|
|
77
|
+
import "./contexts/RenderQueueProvider.js";
|
|
78
|
+
import "./utils/Queue.js";
|
|
79
|
+
import "./utils/renderPage.js";
|
|
80
|
+
import "pdfjs-dist";
|
|
62
81
|
import "./contexts/GlobalCurrentPage.js";
|
|
63
82
|
import "./contexts/LoaderContext.js";
|
|
64
83
|
import "./components/icons/LoaderIcon.js";
|
|
@@ -70,155 +89,199 @@ import "./utils/hooks/useFlickerSelectText.js";
|
|
|
70
89
|
import "./assets/style.js";
|
|
71
90
|
import "./libInjectCss.js";
|
|
72
91
|
import "./utils/injectPrintCSS.js";
|
|
73
|
-
import "./components/
|
|
74
|
-
import "./components/
|
|
75
|
-
import "./
|
|
76
|
-
import "./components/ui/Input.js";
|
|
92
|
+
import "./components/page/RPPage.js";
|
|
93
|
+
import "./components/page/CanvasLayer.js";
|
|
94
|
+
import "./components/page/TextLayer.js";
|
|
77
95
|
import "./utils/highlight.js";
|
|
78
96
|
import "./utils/charators.js";
|
|
79
|
-
import "./
|
|
80
|
-
import "./utils/renderPage.js";
|
|
81
|
-
import "pdfjs-dist";
|
|
82
|
-
import "./contexts/ThemeContext.js";
|
|
83
|
-
import "./contexts/ConfigContext.js";
|
|
84
|
-
import "./components/icons/Thumbnail.js";
|
|
85
|
-
import "./components/layout/Container.js";
|
|
86
|
-
import "./contexts/ViewportContext.js";
|
|
87
|
-
import "./contexts/ToolbarComponentContext.js";
|
|
88
|
-
import "./components/layout/sidebar/RPSplitter.js";
|
|
89
|
-
import "./components/layout/WrapperLayout.js";
|
|
90
|
-
import "./components/RPDropFileZone.js";
|
|
91
|
-
import "./components/icons/LightPdfIcon.js";
|
|
92
|
-
import "./components/icons/DarkPdfIcon.js";
|
|
93
|
-
import "./LayoutWrapper-6224491f.js";
|
|
94
|
-
import "./SearchCloseButton-08d57275.js";
|
|
95
|
-
import "./components/ui/RPTooltip.js";
|
|
96
|
-
import "./index-c9a2990a.js";
|
|
97
|
-
import "react-dom";
|
|
98
|
-
import "./floating-ui.react-dom-d22a10b4.js";
|
|
99
|
-
import "./components/icons/CloseIcon.js";
|
|
100
|
-
import "./components/ui/Checkbox.js";
|
|
101
|
-
import "./components/icons/CheckIcon.js";
|
|
102
|
-
import "./contexts/IconContext.js";
|
|
103
|
-
import "./components/ui/DropDown.js";
|
|
104
|
-
import "./index-3bf64864.js";
|
|
105
|
-
import "./components/layout/toolbar/MenuItem.js";
|
|
106
|
-
import "./components/layout/toolbar/MenuSeparator.js";
|
|
107
|
-
import "./utils/dateFormatter.js";
|
|
108
|
-
import "./components/layout/toolbar/PropertyItem.js";
|
|
109
|
-
import "./RotateTool.module-67946714.js";
|
|
110
|
-
import "./utils/hooks/useInfiniteScroll.js";
|
|
97
|
+
import "./components/page/AnnotationLayer.js";
|
|
111
98
|
import "./utils/link_service.js";
|
|
112
99
|
import "./utils/annotations.js";
|
|
113
100
|
import "./utils/sanitizeExternalUrl.js";
|
|
101
|
+
import "./utils/dateFormatter.js";
|
|
102
|
+
import "./components/page/TextHighlightLayer.js";
|
|
114
103
|
import "./components/page/searchHighlight.js";
|
|
115
104
|
import "./utils/const.js";
|
|
116
105
|
import "./components/page/CustomElement.js";
|
|
106
|
+
import "./utils/withRef.js";
|
|
107
|
+
import "./utils/hooks/useVirtualReactWindow.js";
|
|
117
108
|
import "./utils/calculatePage.js";
|
|
109
|
+
import "./components/page/DualPage.js";
|
|
110
|
+
import "./components/page/DualPageWithCover.js";
|
|
111
|
+
import "./components/page/SinglePage.js";
|
|
118
112
|
import "./utils/hooks/useMousePressed.js";
|
|
119
113
|
import "./utils/hooks/useGrabScroll.js";
|
|
120
114
|
import "./utils/hooks/usePinch.js";
|
|
121
115
|
import "./utils/hooks/useDebounce.js";
|
|
122
116
|
import "./components/ui/PasswordModal.js";
|
|
123
|
-
import "./utils/
|
|
117
|
+
import "./utils/hooks/usePresentPage.js";
|
|
118
|
+
import "./components/layout/LayoutContainer.js";
|
|
119
|
+
import "./RPLayout.module-b4b23e29.js";
|
|
120
|
+
import "./contexts/ThemeContext.js";
|
|
121
|
+
import "./components/layout/LayoutWrapper.js";
|
|
124
122
|
import "./utils/hooks/useCopyText.js";
|
|
125
|
-
import "./utils/
|
|
126
|
-
import "./utils/
|
|
127
|
-
import "./
|
|
128
|
-
import "./utils/
|
|
123
|
+
import "./utils/hooks/useTextSelection.js";
|
|
124
|
+
import "./utils/approximateFragtion.js";
|
|
125
|
+
import "./contexts/ConfigContext.js";
|
|
126
|
+
import "./utils/hooks/useLoadWorker.js";
|
|
127
|
+
import "./components/layout/toolbar/RPToolbar.js";
|
|
128
|
+
import "./RPToolbar.module-27d7fe77.js";
|
|
129
|
+
import "./components/layout/toolbar/Paginate.js";
|
|
130
|
+
import "./components/icons/ChevronUpIcon.js";
|
|
131
|
+
import "./components/ui/Button.js";
|
|
132
|
+
import "./components/ui/Input.js";
|
|
133
|
+
import "./Paginate.module-4eef00aa.js";
|
|
134
|
+
import "./contexts/IconContext.js";
|
|
135
|
+
import "./contexts/ToolbarComponentContext.js";
|
|
136
|
+
import "./contexts/ViewportContext.js";
|
|
137
|
+
import "./components/ui/RPTooltip.js";
|
|
138
|
+
import "./index-c0faa594.js";
|
|
139
|
+
import "react-dom";
|
|
140
|
+
import "./index-e3ee9457.js";
|
|
141
|
+
import "./floating-ui.react-dom-5ec29bd6.js";
|
|
142
|
+
import "./index-655864a7.js";
|
|
143
|
+
import "./components/layout/toolbar/RPToolbarEnd.js";
|
|
129
144
|
import "./components/layout/toolbar/FileUploadTool.js";
|
|
130
145
|
import "./components/icons/FileUploadDefaultIcon.js";
|
|
146
|
+
import "./components/layout/toolbar/MenuItem.js";
|
|
147
|
+
import "./index-61f59539.js";
|
|
148
|
+
import "./Combination-136ff99c.js";
|
|
131
149
|
import "./components/layout/toolbar/DarkModeTool.js";
|
|
132
150
|
import "./components/icons/MoonIcon.js";
|
|
133
151
|
import "./components/icons/SunIcon.js";
|
|
152
|
+
import "./components/layout/toolbar/OtherTool.js";
|
|
134
153
|
import "./components/icons/ThreeDotIcon.js";
|
|
154
|
+
import "./components/ui/DropDown.js";
|
|
155
|
+
import "./components/layout/toolbar/DocumentDialog.js";
|
|
156
|
+
import "./components/icons/CloseIcon.js";
|
|
157
|
+
import "./components/layout/toolbar/PropertyItem.js";
|
|
158
|
+
import "./OtherTool.module-a4be5f1f.js";
|
|
135
159
|
import "./components/layout/toolbar/DocumentProperties.js";
|
|
136
160
|
import "./components/icons/InfoIcon.js";
|
|
161
|
+
import "./components/layout/toolbar/MenuSeparator.js";
|
|
137
162
|
import "./components/layout/toolbar/RotateTool.js";
|
|
138
163
|
import "./components/icons/ClockwiseIcon.js";
|
|
164
|
+
import "./RotateTool.module-67946714.js";
|
|
139
165
|
import "./utils/hooks/useRotate.js";
|
|
140
166
|
import "./components/layout/toolbar/ViewModeTool.js";
|
|
141
167
|
import "./components/icons/DualPageIcon.js";
|
|
168
|
+
import "./components/icons/DualPageWithCoverIcon.js";
|
|
142
169
|
import "./components/icons/SinglePageIcon.js";
|
|
170
|
+
import "./components/icons/CheckIcon.js";
|
|
143
171
|
import "./components/layout/toolbar/ScrollModeTool.js";
|
|
144
172
|
import "./components/icons/PageScrollingIcon.js";
|
|
145
173
|
import "./components/icons/VerticalScrollingIcon.js";
|
|
146
174
|
import "./components/icons/HorizontalScrollingIcon.js";
|
|
175
|
+
import "./components/layout/toolbar/FileDownloadTool.js";
|
|
147
176
|
import "./components/icons/FileDownloadDefaultIcon.js";
|
|
177
|
+
import "./components/layout/toolbar/PrintTool.js";
|
|
148
178
|
import "./components/icons/PrintDefaultIcon.js";
|
|
149
179
|
import "./components/layout/toolbar/FullScreenTool.js";
|
|
150
180
|
import "./components/icons/FullScreenIcon.js";
|
|
181
|
+
import "./components/layout/toolbar/MostPageTool.js";
|
|
151
182
|
import "./components/icons/GoToDownIcon.js";
|
|
183
|
+
import "./MostPageTool.module-13578ad6.js";
|
|
152
184
|
import "./components/layout/toolbar/SelectionModeTool.js";
|
|
153
185
|
import "./components/icons/TextSelectionDefaultIcon.js";
|
|
154
186
|
import "./components/icons/HandModeDefaultIcon.js";
|
|
187
|
+
import "./components/layout/toolbar/ZoomTool.js";
|
|
155
188
|
import "./components/icons/ZoomInIcon.js";
|
|
156
189
|
import "./components/icons/ZoomOutIcon.js";
|
|
190
|
+
import "./ZoomTool.module-7082af8c.js";
|
|
191
|
+
import "./components/layout/toolbar/tools/ZoomLevelDisplay.js";
|
|
157
192
|
import "./utils/zoom.js";
|
|
158
|
-
import "./components/
|
|
159
|
-
import "./components/
|
|
160
|
-
import "./
|
|
193
|
+
import "./components/ui/LoadingIndicator.js";
|
|
194
|
+
import "./components/layout/sidebar/RPSidebar.js";
|
|
195
|
+
import "./components/icons/Thumbnail.js";
|
|
196
|
+
import "./RPSplitter-f6acf13b.js";
|
|
197
|
+
import "./components/layout/sidebar/Thumbnails.js";
|
|
198
|
+
import "./components/layout/sidebar/Thumbnail.js";
|
|
199
|
+
import "./utils/hooks/useInfiniteScroll.js";
|
|
200
|
+
import "./components/layout/Container.js";
|
|
201
|
+
import "./components/layout/WrapperLayout.js";
|
|
202
|
+
import "./components/RPDropFileZone.js";
|
|
203
|
+
import "./components/icons/LightPdfIcon.js";
|
|
204
|
+
import "./components/icons/DarkPdfIcon.js";
|
|
205
|
+
import "./components/layout/SkipLink.js";
|
|
161
206
|
import "./components/layout/toolbar/ToolbarLayout.js";
|
|
162
207
|
import "./components/layout/toolbar/ToolbarDefault.js";
|
|
208
|
+
import "./ToolbarLayout.module-6e339802.js";
|
|
163
209
|
import "./components/layout/toolbar/ToolbarCustom.js";
|
|
164
210
|
import "./utils/hooks/useDarkMode.js";
|
|
211
|
+
import "./utils/smoothScrollTo.js";
|
|
212
|
+
import "./utils/getScrollDistance.js";
|
|
165
213
|
import "./utils/hooks/useLoadPdf.js";
|
|
166
214
|
import "./utils/hooks/usePdfProperties.js";
|
|
167
215
|
import "./utils/convertPdfDate.js";
|
|
168
216
|
import "./utils/formatFileSize.js";
|
|
217
|
+
import "./utils/hooks/usePrint.js";
|
|
169
218
|
import "./utils/getZoomLevel.js";
|
|
219
|
+
import "./utils/hooks/useSearch.js";
|
|
220
|
+
import "./utils/getWordPositionInPage.js";
|
|
170
221
|
import "./utils/hooks/useHighlight.js";
|
|
171
222
|
import "./utils/hooks/useFullScreen.js";
|
|
172
223
|
import "./utils/getElementPositionInPage.js";
|
|
224
|
+
import "./components/icons/SearchIcon.js";
|
|
225
|
+
import "./SearchTool.module-99f60dc7.js";
|
|
226
|
+
import "./components/ui/Checkbox.js";
|
|
227
|
+
import "./components/icons/ClearIcon.js";
|
|
228
|
+
import "./components/layout/toolbar/SearchResultNavigator.js";
|
|
229
|
+
import "./components/layout/toolbar/SearchCloseButton.js";
|
|
173
230
|
import "./components/icons/ChevronDownIcon.js";
|
|
174
231
|
import "./components/layout/toolbar/ThumbnailTool.js";
|
|
175
232
|
export {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
233
|
+
Im as DocumentPropertiesTool,
|
|
234
|
+
Ym as DualPageTool,
|
|
235
|
+
$m as DualPageWithCoverTool,
|
|
236
|
+
Sm as FileDownloadTool,
|
|
237
|
+
gm as FileUploadTool,
|
|
238
|
+
lp as FirstPageTool,
|
|
239
|
+
Dm as FullScreenTool,
|
|
240
|
+
ip as HorizontalScrollingTool,
|
|
241
|
+
vm as InputPageTool,
|
|
242
|
+
fp as LastPageTool,
|
|
243
|
+
np as Locales,
|
|
244
|
+
Mm as NextPageTool,
|
|
245
|
+
rp as PageScrollingTool,
|
|
246
|
+
Fm as PreviousPageTool,
|
|
247
|
+
hm as PrintTool,
|
|
248
|
+
Mt as RPConfig,
|
|
249
|
+
vt as RPDefaultLayout,
|
|
250
|
+
jm as RPHorizontalBar,
|
|
251
|
+
kt as RPLayout,
|
|
252
|
+
Ft as RPPages,
|
|
253
|
+
Dt as RPProvider,
|
|
254
|
+
bt as RPTheme,
|
|
255
|
+
Am as RPVerticalBar,
|
|
256
|
+
Em as RotateClockwiseTool,
|
|
257
|
+
Um as RotateCounterclockwiseTool,
|
|
258
|
+
up as ScrollMode,
|
|
259
|
+
nm as SearchTool,
|
|
260
|
+
Tp as SelectionMode,
|
|
261
|
+
Jm as SelectionModeSwitcherTool,
|
|
262
|
+
Qm as SinglePageTool,
|
|
263
|
+
Tm as ThemeSwitcherTool,
|
|
264
|
+
Pp as ThemeVariables,
|
|
265
|
+
sm as ThumbnailTool,
|
|
266
|
+
mp as VerticalScrollingTool,
|
|
267
|
+
sp as ViewMode,
|
|
268
|
+
km as ZoomInTool,
|
|
269
|
+
cp as ZoomLevel,
|
|
270
|
+
zm as ZoomLevelTool,
|
|
271
|
+
bm as ZoomOutTool,
|
|
272
|
+
zt as useDarkModeContext,
|
|
273
|
+
Et as useDocumentContext,
|
|
274
|
+
At as useDropFileZoneContext,
|
|
275
|
+
fm as useElementPageContext,
|
|
276
|
+
Jt as useFileDownload,
|
|
277
|
+
im as useFullScreenContext,
|
|
278
|
+
mm as useHighlightContext,
|
|
279
|
+
Qt as useOpenFileContext,
|
|
280
|
+
lm as usePageRotateContext,
|
|
281
|
+
It as usePaginationContext,
|
|
282
|
+
Yt as usePrintContext,
|
|
283
|
+
Ut as useRotationContext,
|
|
284
|
+
rm as useSearchContext,
|
|
285
|
+
jt as useViewModeContext,
|
|
286
|
+
$t as useZoomContext
|
|
224
287
|
};
|
|
@@ -6,9 +6,5 @@ interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const LayoutContainer: import('react').ForwardRefExoticComponent<Props & {
|
|
8
8
|
children?: import('react').ReactNode | undefined;
|
|
9
|
-
} & import('react').RefAttributes<HTMLDivElement
|
|
10
|
-
children?: import('react').ReactNode | undefined;
|
|
11
|
-
} & {
|
|
12
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
13
|
-
}) => import('react').ReactNode);
|
|
9
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
10
|
export {};
|
|
@@ -4,9 +4,5 @@ interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const LayoutWrapper: import('react').ForwardRefExoticComponent<Props & {
|
|
6
6
|
children?: import('react').ReactNode | undefined;
|
|
7
|
-
} & import('react').RefAttributes<HTMLDivElement
|
|
8
|
-
children?: import('react').ReactNode | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
11
|
-
}) => import('react').ReactNode);
|
|
7
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
8
|
export {};
|
|
@@ -2,7 +2,5 @@ interface Props {
|
|
|
2
2
|
show: boolean;
|
|
3
3
|
width?: number;
|
|
4
4
|
}
|
|
5
|
-
export declare const Thumbnails: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement
|
|
6
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
7
|
-
}) => import('react').ReactNode);
|
|
5
|
+
export declare const Thumbnails: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
6
|
export {};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export declare const RPToolbar: import('react').ForwardRefExoticComponent<object & import('react').RefAttributes<HTMLDivElement
|
|
2
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
3
|
-
}) => import('react').ReactNode);
|
|
1
|
+
export declare const RPToolbar: import('react').ForwardRefExoticComponent<object & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
2
|
pageNumber: number;
|
|
3
3
|
}
|
|
4
|
-
export declare const RPPage: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement
|
|
5
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
6
|
-
}) => import('react').ReactNode);
|
|
4
|
+
export declare const RPPage: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
5
|
export {};
|
|
@@ -2,7 +2,5 @@ import { ButtonHTMLAttributes, PropsWithChildren } from 'react';
|
|
|
2
2
|
interface Props extends PropsWithChildren, ButtonHTMLAttributes<{}> {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const UIButton: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLButtonElement
|
|
6
|
-
ref?: import('react').Ref<HTMLButtonElement> | undefined;
|
|
7
|
-
}) => import('react').ReactNode);
|
|
5
|
+
export declare const UIButton: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
6
|
export {};
|
|
@@ -2,7 +2,5 @@ import { InputHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
|
2
2
|
interface Props extends InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
|
|
3
3
|
icon?: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const UIInput: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement
|
|
6
|
-
ref?: import('react').Ref<HTMLInputElement> | undefined;
|
|
7
|
-
}) => ReactNode);
|
|
5
|
+
export declare const UIInput: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
|
|
8
6
|
export {};
|
|
@@ -5,7 +5,5 @@ interface TooltipProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
}
|
|
8
|
-
declare const RPTooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement
|
|
9
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
10
|
-
}) => ReactNode);
|
|
8
|
+
declare const RPTooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
9
|
export default RPTooltip;
|