@react-pdf-kit/viewer 2.0.0-beta.11 → 2.0.0-beta.12
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-54a77a7a.js → Combination-136ff99c.js} +184 -187
- package/dist/Paginate.module-4eef00aa.js +8 -0
- package/dist/RPLayout.module-b4b23e29.js +14 -0
- package/dist/RPSplitter-f6acf13b.js +71 -0
- package/dist/ToolbarLayout.module-6e339802.js +12 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/style.js +32 -30
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPDropFileZone.js +1 -1
- package/dist/components/RPPages.js +544 -497
- package/dist/components/RPProvider.js +32 -22
- package/dist/components/icons/DualPageWithCoverIcon.js +22 -0
- package/dist/components/layout/LayoutContainer.js +1 -1
- package/dist/components/layout/LayoutWrapper.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +58 -36
- package/dist/components/layout/RPLayout.js +32 -28
- package/dist/components/layout/SkipLink.js +29 -0
- package/dist/components/layout/WrapperLayout.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +32 -37
- package/dist/components/layout/sidebar/RPSplitter.js +6 -59
- package/dist/components/layout/sidebar/Thumbnail.js +57 -48
- package/dist/components/layout/sidebar/Thumbnails.js +9 -9
- package/dist/components/layout/toolbar/DarkModeTool.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +28 -28
- package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
- package/dist/components/layout/toolbar/FileDownloadTool.js +3 -3
- package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
- package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/MenuItem.js +2 -2
- package/dist/components/layout/toolbar/MenuSeparator.js +2 -2
- package/dist/components/layout/toolbar/MostPageTool.js +3 -3
- package/dist/components/layout/toolbar/OtherTool.js +43 -34
- package/dist/components/layout/toolbar/Paginate.js +53 -46
- package/dist/components/layout/toolbar/PrintTool.js +3 -3
- package/dist/components/layout/toolbar/RPMenuItem.js +2 -2
- package/dist/components/layout/toolbar/RPMoreOptions.js +45 -44
- package/dist/components/layout/toolbar/RPToolbar.js +7 -6
- package/dist/components/layout/toolbar/RPToolbarEnd.js +6 -5
- package/dist/components/layout/toolbar/RotateTool.js +3 -3
- package/dist/components/layout/toolbar/ScrollModeTool.js +37 -37
- package/dist/components/layout/toolbar/SearchCloseButton.js +1 -1
- package/dist/components/layout/toolbar/SearchResultNavigator.js +44 -24
- package/dist/components/layout/toolbar/SearchTool.js +138 -117
- package/dist/components/layout/toolbar/SelectionModeTool.js +3 -3
- package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/ToolbarCustom.js +43 -27
- package/dist/components/layout/toolbar/ToolbarDefault.js +42 -33
- package/dist/components/layout/toolbar/ToolbarLayout.js +9 -8
- package/dist/components/layout/toolbar/ViewModeTool.js +43 -34
- package/dist/components/layout/toolbar/ZoomTool.js +3 -3
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +2 -2
- package/dist/components/layout/toolbar/tools/DualPageTool.js +3 -3
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +202 -0
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +6 -6
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +5 -5
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +197 -0
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +16 -15
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/InputPageTool.js +35 -28
- package/dist/components/layout/toolbar/tools/LastPageTool.js +197 -0
- package/dist/components/layout/toolbar/tools/NextPageTool.js +9 -8
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +15 -14
- package/dist/components/layout/toolbar/tools/PrintTool.js +4 -4
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +12 -5
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +9 -9
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +18 -10
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +10 -2
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +13 -12
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +15 -14
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +75 -41
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +12 -11
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +7 -6
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +11 -11
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +22 -15
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +20 -13
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +22 -14
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +35 -19
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +21 -14
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +33 -19
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +54 -36
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +39 -23
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +52 -29
- package/dist/components/page/AnnotationLayer.js +76 -69
- package/dist/components/page/CanvasLayer.js +1 -1
- package/dist/components/page/CustomElement.js +1 -1
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/DualPageWithCover.js +131 -0
- package/dist/components/page/RPPage.js +1 -1
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/Button.js +14 -12
- package/dist/components/ui/Checkbox.js +84 -77
- package/dist/components/ui/DropDown.js +2 -2
- package/dist/components/ui/Input.js +12 -11
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/PasswordModal.js +44 -30
- 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 +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/RPDocumentContext.js +1 -1
- package/dist/contexts/RenderQueueProvider.js +1 -1
- package/dist/contexts/RotationContext.js +1 -1
- package/dist/contexts/ScrollModeContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/SelectionModeContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/contexts/ViewModeContext.js +19 -15
- package/dist/contexts/ZoomContext.js +1 -1
- package/dist/de_DE-a553b162.js +489 -0
- package/dist/{index-4baea9b5.js → index-61f59539.js} +1 -1
- package/dist/main.js +115 -99
- 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 +7 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/utils/hooks/usePinch.js +1 -1
- package/dist/utils/hooks/usePresentPage.js +45 -45
- package/dist/utils/hooks/usePrint.js +1 -1
- package/dist/utils/hooks/useRotate.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +76 -62
- package/dist/utils/hooks/useTextSelection.js +76 -0
- package/dist/utils/hooks/useThumbnail.js +1 -1
- package/dist/utils/hooks/useVirtualReactWindow.js +60 -42
- package/dist/utils/types.js +14 -13
- package/dist/utils/withRef.js +5 -5
- package/package.json +2 -3
- package/dist/Paginate.module-206a7d7d.js +0 -8
- package/dist/RPLayout.module-967bf4bc.js +0 -13
- package/dist/ToolbarLayout.module-1fee0a18.js +0 -11
- package/dist/th_TH-d627cd51.js +0 -398
package/dist/main.js
CHANGED
|
@@ -1,46 +1,52 @@
|
|
|
1
|
-
import { RPProvider as
|
|
2
|
-
import { RPPages as
|
|
3
|
-
import { RPConfig as
|
|
4
|
-
import { RPDefaultLayout as
|
|
5
|
-
import { RPLayout as
|
|
6
|
-
import { RPTheme as
|
|
7
|
-
import { useDarkModeContext as
|
|
8
|
-
import { u as
|
|
9
|
-
import { useDocumentContext as
|
|
10
|
-
import { useRotationContext as
|
|
11
|
-
import { useViewModeContext as
|
|
12
|
-
import { useDropFileZoneContext as
|
|
13
|
-
import { useFileDownload as
|
|
14
|
-
import { useOpenFileContext as
|
|
15
|
-
import { usePrintContext as
|
|
16
|
-
import { useZoomContext as
|
|
17
|
-
import { useSearchContext as
|
|
18
|
-
import { useHighlightContext as
|
|
19
|
-
import { useFullScreenContext as
|
|
20
|
-
import { usePageRotateContext as
|
|
21
|
-
import { useElementPageContext as
|
|
22
|
-
import { SearchTool as
|
|
23
|
-
import { ThemeSwitcherTool as
|
|
24
|
-
import { ThumbnailTool as
|
|
25
|
-
import { FileUploadTool as
|
|
26
|
-
import { FileDownloadTool as
|
|
27
|
-
import { PrintTool as
|
|
28
|
-
import { FullScreenTool as
|
|
29
|
-
import { PreviousPageTool as
|
|
30
|
-
import { NextPageTool as
|
|
31
|
-
import { InputPageTool as
|
|
32
|
-
import { ZoomInTool as
|
|
33
|
-
import { ZoomOutTool as
|
|
34
|
-
import { ZoomLevelTool as
|
|
35
|
-
import { DocumentPropertiesTool as
|
|
36
|
-
import { RotateClockwiseTool as
|
|
37
|
-
import { RotateCounterclockwiseTool as
|
|
38
|
-
import { RPHorizontalBar as
|
|
39
|
-
import { RPVerticalBar as
|
|
40
|
-
import { SelectionModeSwitcherTool as
|
|
41
|
-
import { SinglePageTool as
|
|
42
|
-
import { DualPageTool as
|
|
43
|
-
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";
|
|
44
50
|
import "react/jsx-runtime";
|
|
45
51
|
import "react";
|
|
46
52
|
import "./contexts/DocumentPasswordContext.js";
|
|
@@ -62,7 +68,7 @@ import "./contexts/PagesRotateContext.js";
|
|
|
62
68
|
import "./contexts/EventCallbackContext.js";
|
|
63
69
|
import "./contexts/LocalizationContext.js";
|
|
64
70
|
import "./utils/hooks/useLocalization.js";
|
|
65
|
-
import "./
|
|
71
|
+
import "./de_DE-a553b162.js";
|
|
66
72
|
import "./utils/hooks/useWatermark.js";
|
|
67
73
|
import "./contexts/LicenseContext.js";
|
|
68
74
|
import "./utils/hooks/useLicense.js";
|
|
@@ -101,6 +107,7 @@ import "./utils/withRef.js";
|
|
|
101
107
|
import "./utils/hooks/useVirtualReactWindow.js";
|
|
102
108
|
import "./utils/calculatePage.js";
|
|
103
109
|
import "./components/page/DualPage.js";
|
|
110
|
+
import "./components/page/DualPageWithCover.js";
|
|
104
111
|
import "./components/page/SinglePage.js";
|
|
105
112
|
import "./utils/hooks/useMousePressed.js";
|
|
106
113
|
import "./utils/hooks/useGrabScroll.js";
|
|
@@ -109,11 +116,12 @@ import "./utils/hooks/useDebounce.js";
|
|
|
109
116
|
import "./components/ui/PasswordModal.js";
|
|
110
117
|
import "./utils/hooks/usePresentPage.js";
|
|
111
118
|
import "./components/layout/LayoutContainer.js";
|
|
112
|
-
import "./RPLayout.module-
|
|
119
|
+
import "./RPLayout.module-b4b23e29.js";
|
|
113
120
|
import "./contexts/ThemeContext.js";
|
|
114
121
|
import "./components/layout/LayoutWrapper.js";
|
|
115
|
-
import "./utils/approximateFragtion.js";
|
|
116
122
|
import "./utils/hooks/useCopyText.js";
|
|
123
|
+
import "./utils/hooks/useTextSelection.js";
|
|
124
|
+
import "./utils/approximateFragtion.js";
|
|
117
125
|
import "./contexts/ConfigContext.js";
|
|
118
126
|
import "./utils/hooks/useLoadWorker.js";
|
|
119
127
|
import "./components/layout/toolbar/RPToolbar.js";
|
|
@@ -122,7 +130,7 @@ import "./components/layout/toolbar/Paginate.js";
|
|
|
122
130
|
import "./components/icons/ChevronUpIcon.js";
|
|
123
131
|
import "./components/ui/Button.js";
|
|
124
132
|
import "./components/ui/Input.js";
|
|
125
|
-
import "./Paginate.module-
|
|
133
|
+
import "./Paginate.module-4eef00aa.js";
|
|
126
134
|
import "./contexts/IconContext.js";
|
|
127
135
|
import "./contexts/ToolbarComponentContext.js";
|
|
128
136
|
import "./contexts/ViewportContext.js";
|
|
@@ -136,8 +144,8 @@ import "./components/layout/toolbar/RPToolbarEnd.js";
|
|
|
136
144
|
import "./components/layout/toolbar/FileUploadTool.js";
|
|
137
145
|
import "./components/icons/FileUploadDefaultIcon.js";
|
|
138
146
|
import "./components/layout/toolbar/MenuItem.js";
|
|
139
|
-
import "./index-
|
|
140
|
-
import "./Combination-
|
|
147
|
+
import "./index-61f59539.js";
|
|
148
|
+
import "./Combination-136ff99c.js";
|
|
141
149
|
import "./components/layout/toolbar/DarkModeTool.js";
|
|
142
150
|
import "./components/icons/MoonIcon.js";
|
|
143
151
|
import "./components/icons/SunIcon.js";
|
|
@@ -157,6 +165,7 @@ import "./RotateTool.module-67946714.js";
|
|
|
157
165
|
import "./utils/hooks/useRotate.js";
|
|
158
166
|
import "./components/layout/toolbar/ViewModeTool.js";
|
|
159
167
|
import "./components/icons/DualPageIcon.js";
|
|
168
|
+
import "./components/icons/DualPageWithCoverIcon.js";
|
|
160
169
|
import "./components/icons/SinglePageIcon.js";
|
|
161
170
|
import "./components/icons/CheckIcon.js";
|
|
162
171
|
import "./components/layout/toolbar/ScrollModeTool.js";
|
|
@@ -184,18 +193,19 @@ import "./utils/zoom.js";
|
|
|
184
193
|
import "./components/ui/LoadingIndicator.js";
|
|
185
194
|
import "./components/layout/sidebar/RPSidebar.js";
|
|
186
195
|
import "./components/icons/Thumbnail.js";
|
|
196
|
+
import "./RPSplitter-f6acf13b.js";
|
|
187
197
|
import "./components/layout/sidebar/Thumbnails.js";
|
|
188
198
|
import "./components/layout/sidebar/Thumbnail.js";
|
|
189
199
|
import "./utils/hooks/useInfiniteScroll.js";
|
|
190
|
-
import "./components/layout/sidebar/RPSplitter.js";
|
|
191
200
|
import "./components/layout/Container.js";
|
|
192
201
|
import "./components/layout/WrapperLayout.js";
|
|
193
202
|
import "./components/RPDropFileZone.js";
|
|
194
203
|
import "./components/icons/LightPdfIcon.js";
|
|
195
204
|
import "./components/icons/DarkPdfIcon.js";
|
|
205
|
+
import "./components/layout/SkipLink.js";
|
|
196
206
|
import "./components/layout/toolbar/ToolbarLayout.js";
|
|
197
207
|
import "./components/layout/toolbar/ToolbarDefault.js";
|
|
198
|
-
import "./ToolbarLayout.module-
|
|
208
|
+
import "./ToolbarLayout.module-6e339802.js";
|
|
199
209
|
import "./components/layout/toolbar/ToolbarCustom.js";
|
|
200
210
|
import "./utils/hooks/useDarkMode.js";
|
|
201
211
|
import "./utils/smoothScrollTo.js";
|
|
@@ -220,52 +230,58 @@ import "./components/layout/toolbar/SearchCloseButton.js";
|
|
|
220
230
|
import "./components/icons/ChevronDownIcon.js";
|
|
221
231
|
import "./components/layout/toolbar/ThumbnailTool.js";
|
|
222
232
|
export {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
vt as
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
|
271
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;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"searchButtonTooltip": "Im Dokument suchen",
|
|
3
|
+
"searchInputPlaceholder": "Zum Suchen eingeben",
|
|
4
|
+
"searchInputTooltip": "Suche",
|
|
5
|
+
"searchPrevTooltip": "Vorheriger Treffer",
|
|
6
|
+
"searchNextTooltip": "Nächster Treffer",
|
|
7
|
+
"searchCloseButtonTooltip": "Schließen",
|
|
8
|
+
"searchMatchCaseLabel": "Groß-/Kleinschreibung",
|
|
9
|
+
"searchMatchCaseTooltip": "Groß-/Kleinschreibung beachten",
|
|
10
|
+
"searchWholeWordsLabel": "Ganze Wörter",
|
|
11
|
+
"searchWholeWordsTooltip": "Exakte Wörter suchen (Groß-/Kleinschreibung ignorieren)",
|
|
12
|
+
"previousPageTooltip": "Vorherige Seite",
|
|
13
|
+
"currentPageTooltip": "Aktuelle Seite",
|
|
14
|
+
"nextPageTooltip": "Nächste Seite",
|
|
15
|
+
"zoomOutTooltip": "Verkleinern",
|
|
16
|
+
"zoomInTooltip": "Vergrößern",
|
|
17
|
+
"zoomSelectTooltip": "Zoomstufe auswählen",
|
|
18
|
+
"zoomActualSize": "Originalgröße",
|
|
19
|
+
"zoomPageFit": "Seite einpassen",
|
|
20
|
+
"zoomPageWidth": "Seitenbreite",
|
|
21
|
+
"themeEnableDarkTooltip": "Dunkles Design aktivieren",
|
|
22
|
+
"themeEnableLightTooltip": "Helles Design aktivieren",
|
|
23
|
+
"openLocalFileLabel": "Lokale Datei öffnen",
|
|
24
|
+
"openLocalFileTooltip": "Lokale Datei öffnen",
|
|
25
|
+
"downloadFileLabel": "Datei herunterladen",
|
|
26
|
+
"downloadFileTooltip": "Datei herunterladen",
|
|
27
|
+
"printLabel": "Drucken",
|
|
28
|
+
"printTooltip": "Drucken",
|
|
29
|
+
"printLoadingMessage": "Dokument wird vorbereitet",
|
|
30
|
+
"printCancelLabel": "Abbrechen",
|
|
31
|
+
"fullScreenLabel": "Vollbild",
|
|
32
|
+
"fullScreenTooltip": "Vollbild",
|
|
33
|
+
"moreOptionTooltip": "Weitere Optionen",
|
|
34
|
+
"firstPageLabel": "Erste Seite",
|
|
35
|
+
"firstPageTooltip": "Zur ersten Seite",
|
|
36
|
+
"lastPageLabel": "Letzte Seite",
|
|
37
|
+
"lastPageTooltip": "Zur letzten Seite",
|
|
38
|
+
"rotateClockwiseLabel": "Im Uhrzeigersinn drehen",
|
|
39
|
+
"rotateClockwiseTooltip": "Im Uhrzeigersinn drehen",
|
|
40
|
+
"rotateCounterclockwiseLabel": "Gegen den Uhrzeigersinn drehen",
|
|
41
|
+
"rotateCounterclockwiseTooltip": "Gegen den Uhrzeigersinn drehen",
|
|
42
|
+
"textSelectionLabel": "Textauswahl-Werkzeug",
|
|
43
|
+
"textSelectionTooltip": "Textauswahl-Werkzeug aktivieren",
|
|
44
|
+
"handToolLabel": "Hand-Werkzeug",
|
|
45
|
+
"handToolTooltip": "Hand-Werkzeug aktivieren",
|
|
46
|
+
"documentPropertiesLabel": "Dokumenteigenschaften",
|
|
47
|
+
"documentPropertiesTooltip": "Dokumenteigenschaften anzeigen",
|
|
48
|
+
"pageScrollingLabel": "Bildlauf",
|
|
49
|
+
"pageScrollingTooltip": "Seitenweises Blättern aktivieren",
|
|
50
|
+
"verticalScrollingLabel": "Vertikaler Bildlauf",
|
|
51
|
+
"verticalScrollingTooltip": "Vertikalen Bildlauf aktivieren",
|
|
52
|
+
"horizontalLabel": "Horizontaler Bildlauf",
|
|
53
|
+
"horizontalTooltip": "Horizontalen Bildlauf aktivieren",
|
|
54
|
+
"wrappedScrollingLabel": "Bildlauf mit Umbruch",
|
|
55
|
+
"wrappedScrollingTooltip": "Bildlauf mit Umbruch aktivieren",
|
|
56
|
+
"singlePageLabel": "Einzelseite",
|
|
57
|
+
"singlePageTooltip": "Einzelseitenansicht aktivieren",
|
|
58
|
+
"dualPageLabel": "Doppelseite",
|
|
59
|
+
"dualPageTooltip": "Doppelseitenansicht aktivieren",
|
|
60
|
+
"dualPageWithCoverLabel": "Doppelseite mit Deckblatt",
|
|
61
|
+
"dualPageWithCoverTooltip": "Doppelseitenansicht mit Deckblatt aktivieren",
|
|
62
|
+
"propertiesFilenameLabel": "Dateiname",
|
|
63
|
+
"propertiesFileSizeLabel": "Dateigröße",
|
|
64
|
+
"propertiesTitleLabel": "Titel",
|
|
65
|
+
"propertiesAuthorLabel": "Autor",
|
|
66
|
+
"propertiesSubjectLabel": "Thema",
|
|
67
|
+
"propertiesKeywordLabel": "Stichwörter",
|
|
68
|
+
"propertiesCreatorLabel": "Ersteller",
|
|
69
|
+
"propertiesCreateOnLabel": "Erstellt am",
|
|
70
|
+
"propertiesModifiedOnLabel": "Geändert am",
|
|
71
|
+
"propertiesPDFProducerLabel": "PDF-Produzent",
|
|
72
|
+
"propertiesPDFVersionLabel": "PDF-Version",
|
|
73
|
+
"propertiesPageCountLabel": "Seitenanzahl",
|
|
74
|
+
"thumbnailTooltip": "Miniaturansicht",
|
|
75
|
+
"passwordModalTitle": "Passwort erforderlich",
|
|
76
|
+
"passwordModalMessage": "Dieses Dokument ist passwortgeschützt. Bitte geben Sie ein Passwort ein, um die Datei zu öffnen.",
|
|
77
|
+
"passwordPlaceholder": "Passwort eingeben",
|
|
78
|
+
"passwordConfirmLabel": "Bestätigen",
|
|
79
|
+
"passwordError": "Falsches Passwort",
|
|
80
|
+
"dragDropFileMessage": "PDF-Datei hierher ziehen"
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export default _default;
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
"singlePageTooltip": "Enable single page view",
|
|
58
58
|
"dualPageLabel": "Dual Page",
|
|
59
59
|
"dualPageTooltip": "Enable dual page view",
|
|
60
|
+
"dualPageWithCoverLabel": "Dual page with cover",
|
|
61
|
+
"dualPageWithCoverTooltip": "Enable dual page view with cover",
|
|
60
62
|
"propertiesFilenameLabel": "File name",
|
|
61
63
|
"propertiesFileSizeLabel": "File size",
|
|
62
64
|
"propertiesTitleLabel": "Title",
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
"singlePageTooltip": "Visualizzazione singola",
|
|
58
58
|
"dualPageLabel": "Doppio",
|
|
59
59
|
"dualPageTooltip": "Visualizzazione doppio",
|
|
60
|
+
"dualPageWithCoverLabel": "Doppio con copertina",
|
|
61
|
+
"dualPageWithCoverTooltip": "Visualizzazione doppio con copertina",
|
|
60
62
|
"propertiesFilenameLabel": "Nome file",
|
|
61
63
|
"propertiesFileSizeLabel": "Dimensione file",
|
|
62
64
|
"propertiesTitleLabel": "Titolo",
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
"singlePageTooltip": "Ativar página única",
|
|
58
58
|
"dualPageLabel": "Página dupla",
|
|
59
59
|
"dualPageTooltip": "Ativar página dupla",
|
|
60
|
+
"dualPageWithCoverLabel": "Página dupla com capa",
|
|
61
|
+
"dualPageWithCoverTooltip": "Ativar página dupla com capa",
|
|
60
62
|
"propertiesFilenameLabel": "Nome do arquivo",
|
|
61
63
|
"propertiesFileSizeLabel": "Tamanho do arquivo",
|
|
62
64
|
"propertiesTitleLabel": "Título",
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
"singlePageTooltip": "เปิดใช้หน้าเดี่ยว",
|
|
58
58
|
"dualPageLabel": "หน้าคู่",
|
|
59
59
|
"dualPageTooltip": "เปิดใช้หน้าคู่",
|
|
60
|
+
"dualPageWithCoverLabel": "หน้าคู่พร้อมปก",
|
|
61
|
+
"dualPageWithCoverTooltip": "เปิดใช้หน้าคู่พร้อมปก",
|
|
60
62
|
"propertiesFilenameLabel": "ชื่อเอกสาร",
|
|
61
63
|
"propertiesFileSizeLabel": "ขนาดเอกสาร",
|
|
62
64
|
"propertiesTitleLabel": "ชื่อเรื่อง",
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
"singlePageTooltip": "启用单页视图",
|
|
58
58
|
"dualPageLabel": "双页面视图",
|
|
59
59
|
"dualPageTooltip": "启用双页视图",
|
|
60
|
+
"dualPageWithCoverLabel": "封面双页面视图",
|
|
61
|
+
"dualPageWithCoverTooltip": "启用封面双页视图",
|
|
60
62
|
"propertiesFilenameLabel": "文件名称",
|
|
61
63
|
"propertiesFileSizeLabel": "文件大小",
|
|
62
64
|
"propertiesTitleLabel": "标题",
|
package/dist/types/main.d.ts
CHANGED
|
@@ -41,5 +41,11 @@ export { RPVerticalBar } from './components/layout/toolbar/tools/defaults/RPVert
|
|
|
41
41
|
export { SelectionModeSwitcherTool } from './components/layout/toolbar/tools/SelectionModeSwitcherTool';
|
|
42
42
|
export { SinglePageTool } from './components/layout/toolbar/tools/SinglePageTool';
|
|
43
43
|
export { DualPageTool } from './components/layout/toolbar/tools/DualPageTool';
|
|
44
|
-
export
|
|
44
|
+
export { DualPageWithCoverTool } from './components/layout/toolbar/tools/DualPageWithCoverTool';
|
|
45
|
+
export { PageScrollingTool } from './components/layout/toolbar/tools/PageScrollingTool';
|
|
46
|
+
export { VerticalScrollingTool } from './components/layout/toolbar/tools/VerticalScrollingTool';
|
|
47
|
+
export { HorizontalScrollingTool } from './components/layout/toolbar/tools/HorizontalScrollingTool';
|
|
48
|
+
export { FirstPageTool } from './components/layout/toolbar/tools/FirstPageTool';
|
|
49
|
+
export { LastPageTool } from './components/layout/toolbar/tools/LastPageTool';
|
|
50
|
+
export type { CharacterMap, DarkModeProps, DownloadToolProps, FullScreenToolProps, Localization, MatchValue, OpenFileToolProps, PageNavigationToolProps, PageSelectionRect, PdfPage, PdfProperties, PreparePrintProgress, PrintOptions, PrintToolProps, RPConfigProps, RPThemeProps, RPProviderProps, RPDefaultLayoutProps, RPLayoutProps, RPIcons, RPSlots, SearchOptions, SetPageResult, ScrollModeInitialProps, TextHighlight, TextSelectionData, ThumbnailToolProps, ViewModeInitialProps, ZoomProps, RPHorizontalBarProps, RPHorizontalBarSlots, RPHorizontalBarIcons, RPVerticalBarProps, RPVerticalBarSlots, RPVerticalBarIcons, MatchHighlight, RectPosition, ThemeSwitcherIcons, ThemeSwitcherToolProps, ToolProps, ToolbarSection, ToolbarProps, SelectionModeSwitcherToolProps, SelectionModeSwitcherIcons } from './utils/types';
|
|
45
51
|
export { ViewMode, ScrollMode, ZoomLevel, Locales, ThemeVariables, SelectionMode } from './utils/types';
|
|
@@ -5,5 +5,14 @@ export declare function bindLayerEvents(annotatedLayer: HTMLDivElement, handler:
|
|
|
5
5
|
export declare function unbindLayerEvents(annotatedLayer: HTMLDivElement, handler: (event: Event) => void): void;
|
|
6
6
|
export declare function handleAnnotationLink(annotation: Annotation): void;
|
|
7
7
|
export declare function handleAnnotationWidget(annotation: Annotation, viewport: PageViewport, canvasMap: Map<string, HTMLCanvasElement>): void;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Fixes tabindex values greater than 0 in annotation layer elements
|
|
10
|
+
* WCAG 2.1 requires tabindex to be 0, -1, or not set (for natural tab order)
|
|
11
|
+
*/
|
|
12
|
+
export declare function fixTabIndexAccessibility(annotationLayer: HTMLDivElement): void;
|
|
13
|
+
/**
|
|
14
|
+
* Ensures all links in annotation layer have discernible names
|
|
15
|
+
* Adds aria-label to links that don't have text content or existing aria-label
|
|
16
|
+
*/
|
|
17
|
+
export declare function enhanceLinkAccessibility(annotationLayer: HTMLDivElement): void;
|
|
9
18
|
export declare function annotationEventsHandler(evt: Event, PDFDoc: PDFDocumentProxy, Annotations: Object[]): Promise<AnnotationEventPayload | undefined>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const getPageFromPosition: (rowIndex: number, columnIndex: number, totalColumns: number) => number;
|
|
2
|
-
export declare const getPositionFromPage: (page: number, totalColumns: number) => {
|
|
1
|
+
export declare const getPageFromPosition: (rowIndex: number, columnIndex: number, totalColumns: number, isDualPageWithCover?: boolean) => number;
|
|
2
|
+
export declare const getPositionFromPage: (page: number, totalColumns: number, isDualPageWithCover?: boolean) => {
|
|
3
3
|
rowIndex: number;
|
|
4
4
|
columnIndex: number;
|
|
5
5
|
};
|
|
6
6
|
export declare const getGridDimension: (pageDimension: {
|
|
7
7
|
widths: number[];
|
|
8
8
|
heights: number[];
|
|
9
|
-
}, totalColumns: number) => {
|
|
9
|
+
}, totalColumns: number, isDualPageWithCover?: boolean) => {
|
|
10
10
|
rowsHeight: number[];
|
|
11
11
|
columnsWidth: number[];
|
|
12
12
|
};
|