@react-pdf-kit/viewer 2.6.0-beta.2 → 2.6.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/AnnotationLayer-D6BfL976.js +113 -0
- package/dist/Button-jStpvb3T.js +21 -0
- package/dist/Checkbox-Brta-YKG.js +195 -0
- package/dist/Combination-DqNkTtir.js +695 -0
- package/dist/Container-DTWaZzc7.js +16 -0
- package/dist/CustomThumbnailElement-C2quEICO.js +19 -0
- package/dist/DarkPdfIcon-B5ehd9CV.js +9 -0
- package/dist/DocumentDialog-DHAWcYIz.js +324 -0
- package/dist/DropDown-DikL-krI.js +33 -0
- package/dist/Input-Bb_-ljl1.js +31 -0
- package/dist/LightPdfIcon-DL8MYtWQ.js +9 -0
- package/dist/LoaderIcon-D9YjinGf.js +14 -0
- package/dist/LoadingIndicator-MWrbKa6X.js +45 -0
- package/dist/MenuItem-BJDWfzAw.js +15 -0
- package/dist/MenuSeparator-D1H5l8Ej.js +6 -0
- package/dist/MostPageTool.module-BRVv-sGz.js +4 -0
- package/dist/OtherTool.module-BQY9Nfqz.js +4 -0
- package/dist/Paginate.module-B0GMw-MB.js +8 -0
- package/dist/PaginationContext--n91mIJ4.js +232 -0
- package/dist/PasswordModal-BDHdSpxf.js +76 -0
- package/dist/PropertyItem-evJWWmWZ.js +18 -0
- package/dist/RPDropFileZone-BunRfzst.js +35 -0
- package/dist/RPLayout.module-Vc3h4xxS.js +14 -0
- package/dist/RPPage-BuSGUFzw.js +91 -0
- package/dist/RPPages-V5CNUXFD.js +1007 -0
- package/dist/RPSplitter-C63X9M8w.js +121 -0
- package/dist/RPToolbar.module-BwqWLviy.js +10 -0
- package/dist/RPTooltip-ZZoFqP7C.js +381 -0
- package/dist/RotateTool.module-DH5yWbvM.js +4 -0
- package/dist/SearchTool.module-DUkVXfOn.js +16 -0
- package/dist/SkipLink-Bvbn3miT.js +18 -0
- package/dist/TextHighlightLayer-BSVgBxR3.js +157 -0
- package/dist/TextLayer-DWGFN9SF.js +125 -0
- package/dist/Thumbnail-Dwo2-4Ki.js +97 -0
- package/dist/Thumbnails-ComClyJJ.js +52 -0
- package/dist/ToolbarLayout.module-Zo715dbb.js +12 -0
- package/dist/WrapperLayout-Dcd9l9xH.js +13 -0
- package/dist/ZoomTool.module-BrIPy8pO.js +11 -0
- package/dist/assets/AnnotationLayer.css +1 -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/CustomThumbnailElement.css +1 -0
- package/dist/assets/DocumentDialog.css +1 -0
- package/dist/assets/DropDown.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/LoaderIcon.css +1 -0
- package/dist/assets/LoadingIndicator.css +1 -0
- package/dist/assets/MenuItem.css +1 -0
- package/dist/assets/MenuSeparator.css +1 -0
- package/dist/assets/MostPageTool.css +1 -0
- package/dist/assets/OtherTool.css +1 -0
- package/dist/assets/Paginate.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/RPLayout.css +1 -0
- package/dist/assets/RPPage.css +1 -0
- package/dist/assets/RPPages.css +1 -0
- package/dist/assets/RPSplitter.css +1 -0
- package/dist/assets/RPToolbar.css +1 -0
- package/dist/assets/RPTooltip.css +1 -0
- package/dist/assets/RotateTool.css +1 -0
- package/dist/assets/SearchTool.css +1 -0
- package/dist/assets/SkipLink.css +1 -0
- package/dist/assets/TextHighlightLayer.css +1 -0
- package/dist/assets/TextLayer.css +1 -0
- package/dist/assets/Thumbnail.css +1 -0
- package/dist/assets/Thumbnails.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/assets/style.js +2 -77
- package/dist/chunk-C_CI6nMA.js +13 -0
- package/dist/clsx-B7LyVm5O.js +16 -0
- package/dist/components/RPConfig.js +24 -26
- package/dist/components/RPController.js +85 -135
- package/dist/components/RPDropFileZone.js +3 -61
- package/dist/components/RPPages.js +3 -1115
- package/dist/components/RPProvider.js +50 -131
- package/dist/components/RPTheme.js +20 -21
- package/dist/components/icons/CheckIcon.js +16 -22
- package/dist/components/icons/ChevronDownIcon.js +17 -23
- package/dist/components/icons/ChevronUpIcon.js +16 -22
- package/dist/components/icons/ClearIcon.js +26 -25
- package/dist/components/icons/ClockwiseIcon.js +16 -22
- package/dist/components/icons/CloseIcon.js +16 -22
- package/dist/components/icons/DarkPdfIcon.js +2 -15
- package/dist/components/icons/DualPageIcon.js +16 -22
- package/dist/components/icons/DualPageWithCoverIcon.js +16 -22
- package/dist/components/icons/FileDownloadDefaultIcon.js +20 -23
- package/dist/components/icons/FileUploadDefaultIcon.js +20 -23
- package/dist/components/icons/FullScreenIcon.js +16 -22
- package/dist/components/icons/GoToDownIcon.js +16 -22
- package/dist/components/icons/HandModeDefaultIcon.js +16 -22
- package/dist/components/icons/HorizontalScrollingIcon.js +18 -24
- package/dist/components/icons/InfoIcon.js +16 -22
- package/dist/components/icons/LightPdfIcon.js +2 -15
- package/dist/components/icons/LoaderIcon.js +2 -17
- package/dist/components/icons/MoonIcon.js +16 -22
- package/dist/components/icons/PageScrollingIcon.js +18 -24
- package/dist/components/icons/PrintDefaultIcon.js +20 -23
- package/dist/components/icons/SearchIcon.js +16 -22
- package/dist/components/icons/SinglePageIcon.js +15 -21
- package/dist/components/icons/SunIcon.js +26 -25
- package/dist/components/icons/TextSelectionDefaultIcon.js +20 -23
- package/dist/components/icons/ThreeDotIcon.js +16 -22
- package/dist/components/icons/Thumbnail.js +39 -54
- package/dist/components/icons/VerticalScrollingIcon.js +18 -24
- package/dist/components/icons/WrappedScrollingIcon.js +18 -24
- package/dist/components/icons/ZoomInIcon.js +16 -22
- package/dist/components/icons/ZoomOutIcon.js +16 -22
- package/dist/components/layout/Container.js +2 -21
- package/dist/components/layout/LayoutContainer.js +23 -34
- package/dist/components/layout/LayoutWrapper.js +14 -10
- package/dist/components/layout/RPDefaultLayout.js +99 -244
- package/dist/components/layout/RPLayout.js +70 -220
- package/dist/components/layout/SkipLink.js +3 -29
- package/dist/components/layout/WrapperLayout.js +2 -27
- package/dist/components/layout/sidebar/CustomThumbnailElement.js +2 -68
- package/dist/components/layout/sidebar/RPSidebar.js +61 -112
- package/dist/components/layout/sidebar/RPSplitter.js +2 -9
- package/dist/components/layout/sidebar/Thumbnail.js +3 -155
- package/dist/components/layout/sidebar/Thumbnails.js +2 -82
- package/dist/components/layout/toolbar/DarkModeTool.js +44 -36
- package/dist/components/layout/toolbar/DocumentDialog.js +2 -322
- package/dist/components/layout/toolbar/DocumentProperties.js +30 -39
- package/dist/components/layout/toolbar/FileDownloadTool.js +54 -50
- package/dist/components/layout/toolbar/FileUploadTool.js +54 -49
- package/dist/components/layout/toolbar/FullScreenTool.js +62 -72
- package/dist/components/layout/toolbar/MenuItem.js +2 -19
- package/dist/components/layout/toolbar/MenuSeparator.js +2 -15
- package/dist/components/layout/toolbar/MostPageTool.js +62 -81
- package/dist/components/layout/toolbar/OtherTool.js +97 -198
- package/dist/components/layout/toolbar/Paginate.js +111 -145
- package/dist/components/layout/toolbar/PrintTool.js +70 -72
- package/dist/components/layout/toolbar/PropertyItem.js +2 -12
- package/dist/components/layout/toolbar/RPMenuItem.js +22 -31
- package/dist/components/layout/toolbar/RPMoreOptions.js +140 -220
- package/dist/components/layout/toolbar/RPToolbar.js +45 -151
- package/dist/components/layout/toolbar/RPToolbarEnd.js +23 -121
- package/dist/components/layout/toolbar/RotateTool.js +49 -60
- package/dist/components/layout/toolbar/ScrollModeTool.js +79 -67
- package/dist/components/layout/toolbar/SearchCloseButton.js +23 -31
- package/dist/components/layout/toolbar/SearchResultNavigator.js +39 -100
- package/dist/components/layout/toolbar/SearchTool.js +226 -267
- package/dist/components/layout/toolbar/SelectionModeTool.js +59 -51
- package/dist/components/layout/toolbar/ThumbnailTool.js +30 -39
- package/dist/components/layout/toolbar/ToolbarCustom.js +56 -113
- package/dist/components/layout/toolbar/ToolbarDefault.js +58 -196
- package/dist/components/layout/toolbar/ToolbarLayout.js +12 -158
- package/dist/components/layout/toolbar/ViewModeTool.js +82 -62
- package/dist/components/layout/toolbar/ZoomTool.js +139 -150
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +24 -54
- package/dist/components/layout/toolbar/tools/DualPageTool.js +23 -25
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +2 -206
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +23 -35
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +23 -34
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +2 -201
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +25 -33
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/InputPageTool.js +51 -92
- package/dist/components/layout/toolbar/tools/LastPageTool.js +2 -201
- package/dist/components/layout/toolbar/tools/NextPageTool.js +32 -61
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +21 -62
- package/dist/components/layout/toolbar/tools/PrintTool.js +23 -35
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +23 -47
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +26 -47
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +29 -38
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +22 -24
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +24 -35
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +24 -46
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +29 -58
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +26 -26
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +94 -133
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +29 -58
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +60 -148
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +31 -42
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +23 -28
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +25 -52
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +25 -51
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +26 -42
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +57 -87
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +25 -52
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +44 -64
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +80 -71
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +59 -57
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +79 -66
- package/dist/components/page/AnnotationLayer.js +2 -146
- package/dist/components/page/CanvasLayer.js +47 -71
- package/dist/components/page/CustomElement.js +18 -53
- package/dist/components/page/DualPage.js +43 -98
- package/dist/components/page/DualPageWithCover.js +66 -130
- package/dist/components/page/RPPage.js +2 -143
- package/dist/components/page/SinglePage.js +27 -88
- package/dist/components/page/TextHighlightLayer.js +2 -198
- package/dist/components/page/TextLayer.js +2 -202
- package/dist/components/page/searchHighlight.js +32 -37
- package/dist/components/ui/Button.js +2 -25
- package/dist/components/ui/Checkbox.js +2 -273
- package/dist/components/ui/DropDown.js +2 -36
- package/dist/components/ui/Input.js +2 -28
- package/dist/components/ui/LoadingIndicator.js +2 -59
- package/dist/components/ui/PasswordModal.js +2 -75
- package/dist/components/ui/RPTooltip.js +2 -357
- package/dist/contexts/ConfigContext.js +13 -12
- package/dist/contexts/DarkModeContext.js +26 -27
- package/dist/contexts/DimensionPagesContext.js +49 -60
- package/dist/contexts/DocumentPasswordContext.js +37 -35
- package/dist/contexts/DownloadContext.js +13 -21
- package/dist/contexts/DropFileZoneContext.js +35 -62
- package/dist/contexts/ElementPageContext.js +114 -139
- package/dist/contexts/ElementThumbnailContext.js +132 -195
- package/dist/contexts/EventCallbackContext.js +19 -34
- package/dist/contexts/FileInputContext.js +30 -49
- package/dist/contexts/FullScreenContext.js +31 -24
- package/dist/contexts/GlobalCurrentPage.js +21 -18
- package/dist/contexts/HighlightContext.js +22 -31
- package/dist/contexts/IconContext.js +9 -11
- package/dist/contexts/IconToolContext.js +14 -11
- package/dist/contexts/InitialStateContext.js +9 -11
- package/dist/contexts/LayerContext.js +9 -8
- package/dist/contexts/LayoutContainerContext.js +12 -16
- package/dist/contexts/LayoutDropFileZoneContext.js +8 -11
- package/dist/contexts/LicenseContext.js +12 -17
- package/dist/contexts/LoaderContext.js +14 -27
- package/dist/contexts/LocalizationContext.js +22 -33
- package/dist/contexts/OtherToolContext.js +17 -17
- package/dist/contexts/PageViewportContext.js +9 -8
- package/dist/contexts/PagesRotateContext.js +42 -43
- package/dist/contexts/PaginationContext.js +2 -40
- package/dist/contexts/PrintContext.js +67 -78
- package/dist/contexts/RPDocumentContext.js +60 -73
- package/dist/contexts/RenderQueueProvider.js +43 -72
- package/dist/contexts/RenderedPagesCache.js +17 -13
- package/dist/contexts/RotationContext.js +27 -38
- package/dist/contexts/ScrollModeContext.js +22 -20
- package/dist/contexts/SearchContext.js +39 -97
- package/dist/contexts/SelectionModeContext.js +22 -23
- package/dist/contexts/SmoothScrollContext.js +18 -16
- package/dist/contexts/ThemeContext.js +5 -7
- package/dist/contexts/ThumbnailsContext.js +26 -43
- package/dist/contexts/ToolComponentContext.js +54 -51
- package/dist/contexts/ToolbarComponentContext.js +48 -47
- package/dist/contexts/ViewModeContext.js +34 -31
- package/dist/contexts/ViewportContext.js +91 -85
- package/dist/contexts/VirtualGridContext.js +17 -14
- package/dist/contexts/VirtualScrollContext.js +42 -52
- package/dist/contexts/ZoomContext.js +95 -107
- package/dist/de_DE--0LF-SJR.js +483 -0
- package/dist/dist-7FA4Do6I.js +1286 -0
- package/dist/dist-BRVqFn7R.js +144 -0
- package/dist/dist-C3WNMuW2.js +29 -0
- package/dist/dist-CKteKPPA.js +947 -0
- package/dist/dist-bK-AHWLF.js +314 -0
- package/dist/lib-BiapEtK1.js +10261 -0
- package/dist/libInjectCss.js +7 -8
- package/dist/main-CHO5p1qM.js +60 -0
- package/dist/main.js +53 -296
- package/dist/style-9n_QpMZt.js +5 -0
- package/dist/useWatermark-CvAAf66v.js +67 -0
- package/dist/utils/Queue.js +40 -46
- package/dist/utils/annotations.js +227 -261
- package/dist/utils/appConsole.js +24 -42
- package/dist/utils/approximateFragtion.js +16 -21
- package/dist/utils/calculatePage.js +29 -20
- package/dist/utils/charators.js +39 -48
- package/dist/utils/const.js +8 -11
- package/dist/utils/constants.js +4 -8
- package/dist/utils/convertPdfDate.js +20 -24
- package/dist/utils/dateFormatter.js +7 -7
- package/dist/utils/elementPagePosition.js +10 -10
- package/dist/utils/formatFileSize.js +17 -8
- package/dist/utils/getElementPositionInPage.js +44 -82
- package/dist/utils/getScrollDistance.js +4 -4
- package/dist/utils/getThumbnailViewport.js +12 -6
- package/dist/utils/getWordPositionInPage.js +24 -24
- package/dist/utils/getZoomLevel.js +16 -23
- package/dist/utils/highlight.js +195 -212
- package/dist/utils/hooks/useCopyText.js +23 -33
- package/dist/utils/hooks/useDarkMode.js +10 -10
- package/dist/utils/hooks/useDarkModeProps.js +9 -10
- package/dist/utils/hooks/useDebounce.js +22 -18
- package/dist/utils/hooks/useDropFileZone.js +13 -11
- package/dist/utils/hooks/useElementSize.js +24 -20
- package/dist/utils/hooks/useFileDownload.js +16 -33
- package/dist/utils/hooks/useFlickerSelectText.js +19 -24
- package/dist/utils/hooks/useFullScreen.js +31 -28
- package/dist/utils/hooks/useGrabScroll.js +52 -51
- package/dist/utils/hooks/useHighlight.js +92 -92
- package/dist/utils/hooks/useInfiniteScroll.js +17 -18
- package/dist/utils/hooks/useLicense.js +113 -135
- package/dist/utils/hooks/useLoadPdf.js +107 -100
- package/dist/utils/hooks/useLoadWorker.js +13 -15
- package/dist/utils/hooks/useLocalization.js +25 -25
- package/dist/utils/hooks/useMousePressed.js +25 -19
- package/dist/utils/hooks/usePageRotateContext.js +25 -41
- package/dist/utils/hooks/usePaginate.js +2 -38
- package/dist/utils/hooks/usePdfProperties.js +38 -36
- package/dist/utils/hooks/usePinch.js +65 -100
- package/dist/utils/hooks/usePresentPage.js +69 -92
- package/dist/utils/hooks/usePrint.js +167 -178
- package/dist/utils/hooks/useRequestAnimationFrame.js +16 -16
- package/dist/utils/hooks/useResizeObserver.js +18 -21
- package/dist/utils/hooks/useRotate.js +15 -27
- package/dist/utils/hooks/useScrollToPage.js +2 -38
- package/dist/utils/hooks/useSearch.js +125 -163
- package/dist/utils/hooks/useTextSelection.js +69 -75
- package/dist/utils/hooks/useThumbnail.js +42 -59
- package/dist/utils/hooks/useVirtualReactWindow.js +85 -96
- package/dist/utils/hooks/useWatermark.js +2 -78
- package/dist/utils/injectPrintCSS.js +6 -21
- package/dist/utils/link_service.js +59 -137
- package/dist/utils/renderPage.js +20 -19
- package/dist/utils/sanitizeExternalUrl.js +12 -15
- package/dist/utils/smoothScrollTo.js +8 -5
- package/dist/utils/types.js +29 -21
- package/dist/utils/withRef.js +7 -7
- package/dist/utils/zoom.js +5 -6
- package/package.json +7 -7
- package/dist/Combination-17ab8af1.js +0 -698
- package/dist/MostPageTool.module-13578ad6.js +0 -6
- package/dist/OtherTool.module-a4be5f1f.js +0 -6
- package/dist/Paginate.module-4eef00aa.js +0 -8
- package/dist/PaginationContext-87f832f2.js +0 -233
- package/dist/RPLayout.module-92fa19f7.js +0 -14
- package/dist/RPSplitter-b62772f9.js +0 -122
- package/dist/RPToolbar.module-27d7fe77.js +0 -10
- package/dist/RotateTool.module-67946714.js +0 -6
- package/dist/SearchTool.module-99f60dc7.js +0 -16
- package/dist/ToolbarLayout.module-6e339802.js +0 -12
- package/dist/ZoomTool.module-7082af8c.js +0 -12
- package/dist/assets/style.css +0 -1
- package/dist/clsx-0c6e471a.js +0 -22
- package/dist/de_DE-8145915f.js +0 -489
- package/dist/index-113053cf.js +0 -309
- package/dist/index-11f3cd64.js +0 -983
- package/dist/index-23911b43.js +0 -150
- package/dist/index-ada501c4.js +0 -27
- package/dist/index-d0f0aa9a.js +0 -1542
- package/dist/index-e04c91b1.js +0 -11671
|
@@ -1,245 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
import "../../contexts/DownloadContext.js";
|
|
99
|
-
import "./toolbar/PrintTool.js";
|
|
100
|
-
import "../icons/PrintDefaultIcon.js";
|
|
101
|
-
import "../../contexts/PrintContext.js";
|
|
102
|
-
import "../../utils/hooks/usePrint.js";
|
|
103
|
-
import "pdfjs-dist";
|
|
104
|
-
import "./toolbar/FullScreenTool.js";
|
|
105
|
-
import "../../contexts/FullScreenContext.js";
|
|
106
|
-
import "../../utils/hooks/useFullScreen.js";
|
|
107
|
-
import "../icons/FullScreenIcon.js";
|
|
108
|
-
import "./toolbar/MostPageTool.js";
|
|
109
|
-
import "../icons/GoToDownIcon.js";
|
|
110
|
-
import "../../MostPageTool.module-13578ad6.js";
|
|
111
|
-
import "./toolbar/SelectionModeTool.js";
|
|
112
|
-
import "../icons/TextSelectionDefaultIcon.js";
|
|
113
|
-
import "../icons/HandModeDefaultIcon.js";
|
|
114
|
-
import "../../contexts/SelectionModeContext.js";
|
|
115
|
-
import "./toolbar/ZoomTool.js";
|
|
116
|
-
import "../icons/ZoomInIcon.js";
|
|
117
|
-
import "../icons/ZoomOutIcon.js";
|
|
118
|
-
import "../../ZoomTool.module-7082af8c.js";
|
|
119
|
-
import "./toolbar/tools/ZoomLevelDisplay.js";
|
|
120
|
-
import "../../utils/zoom.js";
|
|
121
|
-
import "./toolbar/SearchTool.js";
|
|
122
|
-
import "../icons/SearchIcon.js";
|
|
123
|
-
import "../../SearchTool.module-99f60dc7.js";
|
|
124
|
-
import "../ui/Checkbox.js";
|
|
125
|
-
import "../icons/ClearIcon.js";
|
|
126
|
-
import "../icons/LoaderIcon.js";
|
|
127
|
-
import "../../contexts/SearchContext.js";
|
|
128
|
-
import "../../utils/hooks/useSearch.js";
|
|
129
|
-
import "../../utils/highlight.js";
|
|
130
|
-
import "../../utils/charators.js";
|
|
131
|
-
import "../../utils/getWordPositionInPage.js";
|
|
132
|
-
import "./toolbar/SearchResultNavigator.js";
|
|
133
|
-
import "./toolbar/SearchCloseButton.js";
|
|
134
|
-
import "../ui/LoadingIndicator.js";
|
|
135
|
-
import "../icons/Thumbnail.js";
|
|
136
|
-
import "../../RPSplitter-b62772f9.js";
|
|
137
|
-
import "./sidebar/Thumbnails.js";
|
|
138
|
-
import "./sidebar/Thumbnail.js";
|
|
139
|
-
import "../../contexts/RenderQueueProvider.js";
|
|
140
|
-
import "../../utils/Queue.js";
|
|
141
|
-
import "../../utils/renderPage.js";
|
|
142
|
-
import "./sidebar/CustomThumbnailElement.js";
|
|
143
|
-
import "../../contexts/ElementThumbnailContext.js";
|
|
144
|
-
import "../../contexts/LicenseContext.js";
|
|
145
|
-
import "../../utils/hooks/useLicense.js";
|
|
146
|
-
import "../../contexts/ThumbnailsContext.js";
|
|
147
|
-
import "../../utils/hooks/useThumbnail.js";
|
|
148
|
-
import "../../utils/getThumbnailViewport.js";
|
|
149
|
-
import "../../utils/const.js";
|
|
150
|
-
import "../../utils/hooks/useInfiniteScroll.js";
|
|
151
|
-
import "../../contexts/DropFileZoneContext.js";
|
|
152
|
-
import "../icons/LightPdfIcon.js";
|
|
153
|
-
import "../icons/DarkPdfIcon.js";
|
|
154
|
-
import "../../utils/hooks/useDropFileZone.js";
|
|
155
|
-
import "../../contexts/LayoutDropFileZoneContext.js";
|
|
156
|
-
import "../../utils/hooks/useLoadPdf.js";
|
|
157
|
-
import "../../contexts/ConfigContext.js";
|
|
158
|
-
import "../../utils/hooks/usePdfProperties.js";
|
|
159
|
-
import "../../utils/convertPdfDate.js";
|
|
160
|
-
import "../../utils/formatFileSize.js";
|
|
161
|
-
import "../../contexts/ThemeContext.js";
|
|
162
|
-
const Et = L((n, a) => {
|
|
163
|
-
const {
|
|
164
|
-
children: l,
|
|
165
|
-
slots: s,
|
|
166
|
-
icons: d,
|
|
167
|
-
style: c,
|
|
168
|
-
className: f,
|
|
169
|
-
mobileWidth: h,
|
|
170
|
-
onLoaded: i,
|
|
171
|
-
cleanupOnLoaded: m,
|
|
172
|
-
onLayoutWidthChange: u
|
|
173
|
-
} = n, [b, C] = P(null), { setContainer: y, setContentRef: g } = N(), { loading: v } = T(), { LoaderImageComponent: p } = W();
|
|
174
|
-
return R(() => (i && i(), () => {
|
|
175
|
-
m && m();
|
|
176
|
-
}), [i, m]), // TODO: deprecated in v2.0.0, remove later ~
|
|
177
|
-
/* @__PURE__ */ o(M, { toolbarRef: b, ref: a, children: /* @__PURE__ */ o(I, { mobileWidth: h, onLayoutWidthChange: u, children: /* @__PURE__ */ o(D, { slots: s, children: /* @__PURE__ */ o(k, { icons: d, children: /* @__PURE__ */ t(S, { getContainerRef: y, style: c, className: f, children: [
|
|
178
|
-
/* @__PURE__ */ o(e, { href: "#rp-menu", label: "Skip to Menu" }),
|
|
179
|
-
/* @__PURE__ */ o(e, { href: "#rp-main-content", label: "Skip to Main Content" }),
|
|
180
|
-
/* @__PURE__ */ t(F, { children: [
|
|
181
|
-
/* @__PURE__ */ t("div", { className: r["rp-layout"], children: [
|
|
182
|
-
/* @__PURE__ */ o("header", { children: /* @__PURE__ */ o("nav", { id: "rp-menu", role: "menu", "aria-label": "PDF viewer toolbar", children: /* @__PURE__ */ o(
|
|
183
|
-
w,
|
|
184
|
-
{
|
|
185
|
-
ref: C
|
|
186
|
-
}
|
|
187
|
-
) }) }),
|
|
188
|
-
/* @__PURE__ */ t("div", { className: r["rp-content"], children: [
|
|
189
|
-
/* @__PURE__ */ o(
|
|
190
|
-
"aside",
|
|
191
|
-
{
|
|
192
|
-
className: r["rp-sidebar"],
|
|
193
|
-
role: "complementary",
|
|
194
|
-
"aria-label": "PDF viewer sidebar",
|
|
195
|
-
children: /* @__PURE__ */ o(x, {})
|
|
196
|
-
}
|
|
197
|
-
),
|
|
198
|
-
/* @__PURE__ */ o(
|
|
199
|
-
"main",
|
|
200
|
-
{
|
|
201
|
-
id: "rp-main-content",
|
|
202
|
-
ref: g,
|
|
203
|
-
className: r["rp-pages"],
|
|
204
|
-
role: "main",
|
|
205
|
-
"aria-label": "PDF document pages",
|
|
206
|
-
children: l
|
|
207
|
-
}
|
|
208
|
-
)
|
|
209
|
-
] })
|
|
210
|
-
] }),
|
|
211
|
-
/* @__PURE__ */ o(j, {})
|
|
212
|
-
] }),
|
|
213
|
-
v ? /* @__PURE__ */ o(
|
|
214
|
-
"div",
|
|
215
|
-
{
|
|
216
|
-
className: r["rp-loader"],
|
|
217
|
-
style: {
|
|
218
|
-
position: "absolute",
|
|
219
|
-
top: 0,
|
|
220
|
-
left: 0,
|
|
221
|
-
right: 0,
|
|
222
|
-
bottom: 0,
|
|
223
|
-
width: "100%",
|
|
224
|
-
height: "100%"
|
|
225
|
-
},
|
|
226
|
-
children: /* @__PURE__ */ o(
|
|
227
|
-
"div",
|
|
228
|
-
{
|
|
229
|
-
style: {
|
|
230
|
-
display: "flex",
|
|
231
|
-
justifyContent: "center",
|
|
232
|
-
alignItems: "center",
|
|
233
|
-
height: "100%",
|
|
234
|
-
width: "100%"
|
|
235
|
-
},
|
|
236
|
-
children: p && /* @__PURE__ */ o(p, {})
|
|
237
|
-
}
|
|
238
|
-
)
|
|
239
|
-
}
|
|
240
|
-
) : null
|
|
241
|
-
] }) }) }) }) });
|
|
1
|
+
"use client";
|
|
2
|
+
import { useDocumentContext as e } from "../../contexts/RPDocumentContext.js";
|
|
3
|
+
import { useLayoutContainer as t } from "../../contexts/LayoutContainerContext.js";
|
|
4
|
+
import { ToolbarComponentProvider as n } from "../../contexts/ToolbarComponentContext.js";
|
|
5
|
+
import { useLoaderContext as r } from "../../contexts/LoaderContext.js";
|
|
6
|
+
import { t as i } from "../../RPLayout.module-Vc3h4xxS.js";
|
|
7
|
+
import { LayoutContainer as a } from "./LayoutContainer.js";
|
|
8
|
+
import { IconProvider as o } from "../../contexts/IconContext.js";
|
|
9
|
+
import { ViewportProvider as s } from "../../contexts/ViewportContext.js";
|
|
10
|
+
import { RPToolbar as c } from "./toolbar/RPToolbar.js";
|
|
11
|
+
import { RPSidebar as l } from "./sidebar/RPSidebar.js";
|
|
12
|
+
import { t as u } from "../../Container-DTWaZzc7.js";
|
|
13
|
+
import { t as d } from "../../WrapperLayout-Dcd9l9xH.js";
|
|
14
|
+
import { t as f } from "../../RPDropFileZone-BunRfzst.js";
|
|
15
|
+
import { t as p } from "../../SkipLink-Bvbn3miT.js";
|
|
16
|
+
import { forwardRef as m, useEffect as h, useState as g } from "react";
|
|
17
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
18
|
+
//#region lib/components/layout/RPDefaultLayout.tsx
|
|
19
|
+
var y = m((m, y) => {
|
|
20
|
+
let { children: b, slots: x, icons: S, style: C, className: w, mobileWidth: T, onLoaded: E, cleanupOnLoaded: D, onLayoutWidthChange: O } = m, [k, A] = g(null), { setContainer: j, setContentRef: M } = t(), { loading: N } = e(), { LoaderImageComponent: P } = r();
|
|
21
|
+
return h(() => (E && E(), () => {
|
|
22
|
+
D && D();
|
|
23
|
+
}), [E, D]), /* @__PURE__ */ _(a, {
|
|
24
|
+
toolbarRef: k,
|
|
25
|
+
ref: y,
|
|
26
|
+
children: /* @__PURE__ */ _(s, {
|
|
27
|
+
mobileWidth: T,
|
|
28
|
+
onLayoutWidthChange: O,
|
|
29
|
+
children: /* @__PURE__ */ _(n, {
|
|
30
|
+
slots: x,
|
|
31
|
+
children: /* @__PURE__ */ _(o, {
|
|
32
|
+
icons: S,
|
|
33
|
+
children: /* @__PURE__ */ v(u, {
|
|
34
|
+
getContainerRef: j,
|
|
35
|
+
style: C,
|
|
36
|
+
className: w,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ _(p, {
|
|
39
|
+
href: "#rp-menu",
|
|
40
|
+
label: "Skip to Menu"
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ _(p, {
|
|
43
|
+
href: "#rp-main-content",
|
|
44
|
+
label: "Skip to Main Content"
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ v(d, { children: [/* @__PURE__ */ v("div", {
|
|
47
|
+
className: i["rp-layout"],
|
|
48
|
+
children: [/* @__PURE__ */ _("header", { children: /* @__PURE__ */ _("nav", {
|
|
49
|
+
id: "rp-menu",
|
|
50
|
+
role: "menu",
|
|
51
|
+
"aria-label": "PDF viewer toolbar",
|
|
52
|
+
children: /* @__PURE__ */ _(c, { ref: A })
|
|
53
|
+
}) }), /* @__PURE__ */ v("div", {
|
|
54
|
+
className: i["rp-content"],
|
|
55
|
+
children: [/* @__PURE__ */ _("aside", {
|
|
56
|
+
className: i["rp-sidebar"],
|
|
57
|
+
role: "complementary",
|
|
58
|
+
"aria-label": "PDF viewer sidebar",
|
|
59
|
+
children: /* @__PURE__ */ _(l, {})
|
|
60
|
+
}), /* @__PURE__ */ _("main", {
|
|
61
|
+
id: "rp-main-content",
|
|
62
|
+
ref: M,
|
|
63
|
+
className: i["rp-pages"],
|
|
64
|
+
role: "main",
|
|
65
|
+
"aria-label": "PDF document pages",
|
|
66
|
+
children: b
|
|
67
|
+
})]
|
|
68
|
+
})]
|
|
69
|
+
}), /* @__PURE__ */ _(f, {})] }),
|
|
70
|
+
N ? /* @__PURE__ */ _("div", {
|
|
71
|
+
className: i["rp-loader"],
|
|
72
|
+
style: {
|
|
73
|
+
position: "absolute",
|
|
74
|
+
top: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
right: 0,
|
|
77
|
+
bottom: 0,
|
|
78
|
+
width: "100%",
|
|
79
|
+
height: "100%"
|
|
80
|
+
},
|
|
81
|
+
children: /* @__PURE__ */ _("div", {
|
|
82
|
+
style: {
|
|
83
|
+
display: "flex",
|
|
84
|
+
justifyContent: "center",
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
height: "100%",
|
|
87
|
+
width: "100%"
|
|
88
|
+
},
|
|
89
|
+
children: P && /* @__PURE__ */ _(P, {})
|
|
90
|
+
})
|
|
91
|
+
}) : null
|
|
92
|
+
]
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
});
|
|
242
98
|
});
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { y as RPDefaultLayout };
|
|
@@ -1,221 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { useLayoutContainer 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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
import "../../index-ada501c4.js";
|
|
70
|
-
import "../../contexts/LocalizationContext.js";
|
|
71
|
-
import "../../utils/hooks/useLocalization.js";
|
|
72
|
-
import "./toolbar/tools/defaults/RPHorizontalBar.js";
|
|
73
|
-
import "./toolbar/SearchTool.js";
|
|
74
|
-
import "../icons/SearchIcon.js";
|
|
75
|
-
import "../../SearchTool.module-99f60dc7.js";
|
|
76
|
-
import "../ui/Input.js";
|
|
77
|
-
import "../ui/Checkbox.js";
|
|
78
|
-
import "../icons/CheckIcon.js";
|
|
79
|
-
import "../icons/ClearIcon.js";
|
|
80
|
-
import "../../contexts/SearchContext.js";
|
|
81
|
-
import "../../utils/hooks/useSearch.js";
|
|
82
|
-
import "../../utils/highlight.js";
|
|
83
|
-
import "../../utils/charators.js";
|
|
84
|
-
import "../../utils/getWordPositionInPage.js";
|
|
85
|
-
import "../../contexts/IconContext.js";
|
|
86
|
-
import "../icons/InfoIcon.js";
|
|
87
|
-
import "./toolbar/SearchResultNavigator.js";
|
|
88
|
-
import "../icons/ChevronUpIcon.js";
|
|
89
|
-
import "./toolbar/SearchCloseButton.js";
|
|
90
|
-
import "../icons/CloseIcon.js";
|
|
91
|
-
import "../ui/DropDown.js";
|
|
92
|
-
import "../../index-11f3cd64.js";
|
|
93
|
-
import "../../Combination-17ab8af1.js";
|
|
94
|
-
import "./toolbar/Paginate.js";
|
|
95
|
-
import "../../Paginate.module-4eef00aa.js";
|
|
96
|
-
import "./toolbar/ZoomTool.js";
|
|
97
|
-
import "../icons/ZoomInIcon.js";
|
|
98
|
-
import "../icons/ZoomOutIcon.js";
|
|
99
|
-
import "../../ZoomTool.module-7082af8c.js";
|
|
100
|
-
import "./toolbar/MenuItem.js";
|
|
101
|
-
import "./toolbar/MenuSeparator.js";
|
|
102
|
-
import "./toolbar/tools/ZoomLevelDisplay.js";
|
|
103
|
-
import "../../utils/zoom.js";
|
|
104
|
-
import "./toolbar/RPToolbarEnd.js";
|
|
105
|
-
import "./toolbar/FileUploadTool.js";
|
|
106
|
-
import "../icons/FileUploadDefaultIcon.js";
|
|
107
|
-
import "../../contexts/FileInputContext.js";
|
|
108
|
-
import "../../contexts/DocumentPasswordContext.js";
|
|
109
|
-
import "./toolbar/DarkModeTool.js";
|
|
110
|
-
import "../icons/MoonIcon.js";
|
|
111
|
-
import "../icons/SunIcon.js";
|
|
112
|
-
import "../../contexts/DarkModeContext.js";
|
|
113
|
-
import "../../utils/hooks/useDarkMode.js";
|
|
114
|
-
import "./toolbar/OtherTool.js";
|
|
115
|
-
import "../icons/ThreeDotIcon.js";
|
|
116
|
-
import "./toolbar/DocumentDialog.js";
|
|
117
|
-
import "../../utils/dateFormatter.js";
|
|
118
|
-
import "./toolbar/PropertyItem.js";
|
|
119
|
-
import "../../contexts/OtherToolContext.js";
|
|
120
|
-
import "../../OtherTool.module-a4be5f1f.js";
|
|
121
|
-
import "./toolbar/DocumentProperties.js";
|
|
122
|
-
import "./toolbar/RotateTool.js";
|
|
123
|
-
import "../icons/ClockwiseIcon.js";
|
|
124
|
-
import "../../RotateTool.module-67946714.js";
|
|
125
|
-
import "../../utils/hooks/useRotate.js";
|
|
126
|
-
import "./toolbar/ViewModeTool.js";
|
|
127
|
-
import "../icons/DualPageIcon.js";
|
|
128
|
-
import "../icons/DualPageWithCoverIcon.js";
|
|
129
|
-
import "../icons/SinglePageIcon.js";
|
|
130
|
-
import "./toolbar/ScrollModeTool.js";
|
|
131
|
-
import "../icons/PageScrollingIcon.js";
|
|
132
|
-
import "../icons/VerticalScrollingIcon.js";
|
|
133
|
-
import "../icons/HorizontalScrollingIcon.js";
|
|
134
|
-
import "./toolbar/FileDownloadTool.js";
|
|
135
|
-
import "../icons/FileDownloadDefaultIcon.js";
|
|
136
|
-
import "../../utils/hooks/useFileDownload.js";
|
|
137
|
-
import "../../contexts/DownloadContext.js";
|
|
138
|
-
import "./toolbar/PrintTool.js";
|
|
139
|
-
import "../icons/PrintDefaultIcon.js";
|
|
140
|
-
import "../../contexts/PrintContext.js";
|
|
141
|
-
import "../../utils/hooks/usePrint.js";
|
|
142
|
-
import "./toolbar/FullScreenTool.js";
|
|
143
|
-
import "../../contexts/FullScreenContext.js";
|
|
144
|
-
import "../../utils/hooks/useFullScreen.js";
|
|
145
|
-
import "../icons/FullScreenIcon.js";
|
|
146
|
-
import "./toolbar/MostPageTool.js";
|
|
147
|
-
import "../icons/GoToDownIcon.js";
|
|
148
|
-
import "../../MostPageTool.module-13578ad6.js";
|
|
149
|
-
import "./toolbar/SelectionModeTool.js";
|
|
150
|
-
import "../icons/TextSelectionDefaultIcon.js";
|
|
151
|
-
import "../icons/HandModeDefaultIcon.js";
|
|
152
|
-
import "../../contexts/SelectionModeContext.js";
|
|
153
|
-
import "../../RPToolbar.module-27d7fe77.js";
|
|
154
|
-
import "../ui/LoadingIndicator.js";
|
|
155
|
-
import "../../RPSplitter-b62772f9.js";
|
|
156
|
-
import "./toolbar/ToolbarCustom.js";
|
|
157
|
-
import "../../contexts/DropFileZoneContext.js";
|
|
158
|
-
import "../../utils/hooks/useLoadPdf.js";
|
|
159
|
-
import "../../contexts/ConfigContext.js";
|
|
160
|
-
import "../../utils/hooks/usePdfProperties.js";
|
|
161
|
-
import "../../utils/convertPdfDate.js";
|
|
162
|
-
import "../../utils/formatFileSize.js";
|
|
163
|
-
import "../icons/LightPdfIcon.js";
|
|
164
|
-
import "../icons/DarkPdfIcon.js";
|
|
165
|
-
import "../../utils/hooks/useDropFileZone.js";
|
|
166
|
-
import "../../contexts/ThemeContext.js";
|
|
167
|
-
const Ir = (e) => {
|
|
168
|
-
const {
|
|
169
|
-
children: n,
|
|
170
|
-
style: a,
|
|
171
|
-
className: l,
|
|
172
|
-
mobileWidth: s,
|
|
173
|
-
onLoaded: t,
|
|
174
|
-
cleanupOnLoaded: r,
|
|
175
|
-
onLayoutWidthChange: d,
|
|
176
|
-
toolbar: f,
|
|
177
|
-
dropFileZone: c = !0
|
|
178
|
-
} = e, { setContainer: u } = L(), { loading: h } = v(), { LoaderImageComponent: i } = w();
|
|
179
|
-
return y(() => (t && t(), () => {
|
|
180
|
-
r && r();
|
|
181
|
-
}), [t, r]), // TODO: deprecated in v2.0.0, remove later ("LayoutContainer") ~
|
|
182
|
-
/* @__PURE__ */ o(D, { children: /* @__PURE__ */ o(P, { value: c, children: /* @__PURE__ */ o(g, { mobileWidth: s, onLayoutWidthChange: d, children: /* @__PURE__ */ m(C, { getContainerRef: u, style: a, className: l, children: [
|
|
183
|
-
/* @__PURE__ */ o(p, { href: "#rp-menu", label: "Skip to Menu" }),
|
|
184
|
-
/* @__PURE__ */ o(p, { href: "#rp-main-content", label: "Skip to Main Content" }),
|
|
185
|
-
/* @__PURE__ */ m(x, { children: [
|
|
186
|
-
/* @__PURE__ */ o(b, { toolbar: f, children: n }),
|
|
187
|
-
/* @__PURE__ */ o(k, {})
|
|
188
|
-
] }),
|
|
189
|
-
h ? /* @__PURE__ */ o(
|
|
190
|
-
"div",
|
|
191
|
-
{
|
|
192
|
-
className: j["rp-loader"],
|
|
193
|
-
style: {
|
|
194
|
-
position: "absolute",
|
|
195
|
-
top: 0,
|
|
196
|
-
left: 0,
|
|
197
|
-
right: 0,
|
|
198
|
-
bottom: 0,
|
|
199
|
-
width: "100%",
|
|
200
|
-
height: "100%"
|
|
201
|
-
},
|
|
202
|
-
children: /* @__PURE__ */ o(
|
|
203
|
-
"div",
|
|
204
|
-
{
|
|
205
|
-
style: {
|
|
206
|
-
display: "flex",
|
|
207
|
-
justifyContent: "center",
|
|
208
|
-
alignItems: "center",
|
|
209
|
-
height: "100%",
|
|
210
|
-
width: "100%"
|
|
211
|
-
},
|
|
212
|
-
children: i && /* @__PURE__ */ o(i, {})
|
|
213
|
-
}
|
|
214
|
-
)
|
|
215
|
-
}
|
|
216
|
-
) : null
|
|
217
|
-
] }) }) }) });
|
|
218
|
-
};
|
|
219
|
-
export {
|
|
220
|
-
Ir as RPLayout
|
|
1
|
+
"use client";
|
|
2
|
+
import { useDocumentContext as e } from "../../contexts/RPDocumentContext.js";
|
|
3
|
+
import { useLayoutContainer as t } from "../../contexts/LayoutContainerContext.js";
|
|
4
|
+
import { useLoaderContext as n } from "../../contexts/LoaderContext.js";
|
|
5
|
+
import { t as r } from "../../RPLayout.module-Vc3h4xxS.js";
|
|
6
|
+
import { LayoutContainer as i } from "./LayoutContainer.js";
|
|
7
|
+
import { ViewportProvider as a } from "../../contexts/ViewportContext.js";
|
|
8
|
+
import { t as o } from "../../Container-DTWaZzc7.js";
|
|
9
|
+
import { t as s } from "../../WrapperLayout-Dcd9l9xH.js";
|
|
10
|
+
import { t as c } from "../../RPDropFileZone-BunRfzst.js";
|
|
11
|
+
import { LayoutDropFileZoneProvider as l } from "../../contexts/LayoutDropFileZoneContext.js";
|
|
12
|
+
import { t as u } from "../../SkipLink-Bvbn3miT.js";
|
|
13
|
+
import { ToolbarLayout as d } from "./toolbar/ToolbarLayout.js";
|
|
14
|
+
import { useEffect as f } from "react";
|
|
15
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
16
|
+
//#region lib/components/layout/RPLayout.tsx
|
|
17
|
+
var h = (h) => {
|
|
18
|
+
let { children: g, style: _, className: v, mobileWidth: y, onLoaded: b, cleanupOnLoaded: x, onLayoutWidthChange: S, toolbar: C, dropFileZone: w = !0 } = h, { setContainer: T } = t(), { loading: E } = e(), { LoaderImageComponent: D } = n();
|
|
19
|
+
return f(() => (b && b(), () => {
|
|
20
|
+
x && x();
|
|
21
|
+
}), [b, x]), /* @__PURE__ */ p(i, { children: /* @__PURE__ */ p(l, {
|
|
22
|
+
value: w,
|
|
23
|
+
children: /* @__PURE__ */ p(a, {
|
|
24
|
+
mobileWidth: y,
|
|
25
|
+
onLayoutWidthChange: S,
|
|
26
|
+
children: /* @__PURE__ */ m(o, {
|
|
27
|
+
getContainerRef: T,
|
|
28
|
+
style: _,
|
|
29
|
+
className: v,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ p(u, {
|
|
32
|
+
href: "#rp-menu",
|
|
33
|
+
label: "Skip to Menu"
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ p(u, {
|
|
36
|
+
href: "#rp-main-content",
|
|
37
|
+
label: "Skip to Main Content"
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ m(s, { children: [/* @__PURE__ */ p(d, {
|
|
40
|
+
toolbar: C,
|
|
41
|
+
children: g
|
|
42
|
+
}), /* @__PURE__ */ p(c, {})] }),
|
|
43
|
+
E ? /* @__PURE__ */ p("div", {
|
|
44
|
+
className: r["rp-loader"],
|
|
45
|
+
style: {
|
|
46
|
+
position: "absolute",
|
|
47
|
+
top: 0,
|
|
48
|
+
left: 0,
|
|
49
|
+
right: 0,
|
|
50
|
+
bottom: 0,
|
|
51
|
+
width: "100%",
|
|
52
|
+
height: "100%"
|
|
53
|
+
},
|
|
54
|
+
children: /* @__PURE__ */ p("div", {
|
|
55
|
+
style: {
|
|
56
|
+
display: "flex",
|
|
57
|
+
justifyContent: "center",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
height: "100%",
|
|
60
|
+
width: "100%"
|
|
61
|
+
},
|
|
62
|
+
children: D && /* @__PURE__ */ p(D, {})
|
|
63
|
+
})
|
|
64
|
+
}) : null
|
|
65
|
+
]
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
}) });
|
|
221
69
|
};
|
|
70
|
+
//#endregion
|
|
71
|
+
export { h as RPLayout };
|