@react-pdf-kit/viewer 2.6.0-beta.2 → 2.6.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/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,74 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { useLoadPdf as
|
|
4
|
-
import { usePdfProperties as
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
setFilename: s,
|
|
60
|
-
filename: r,
|
|
61
|
-
loading: m,
|
|
62
|
-
loaderProgress: d,
|
|
63
|
-
error: f
|
|
64
|
-
}), [n, p, e, a, r, m, d, f]);
|
|
65
|
-
return /* @__PURE__ */ j(u.Provider, { value: M, children: e ? t : null });
|
|
66
|
-
}, W = () => {
|
|
67
|
-
const t = L(u);
|
|
68
|
-
return t.pdfSrc || q.error("Please use this hooks inside children component of RPDocument"), t;
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
V as DocumentProvider,
|
|
72
|
-
u as default,
|
|
73
|
-
W as useDocumentContext
|
|
1
|
+
"use client";
|
|
2
|
+
import { appConsole as e } from "../utils/appConsole.js";
|
|
3
|
+
import { useLoadPdf as t } from "../utils/hooks/useLoadPdf.js";
|
|
4
|
+
import { usePdfProperties as n } from "../utils/hooks/usePdfProperties.js";
|
|
5
|
+
import { createContext as r, useContext as i, useEffect as a, useMemo as o, useState as s } from "react";
|
|
6
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
7
|
+
//#region lib/contexts/RPDocumentContext.tsx
|
|
8
|
+
var l = r({
|
|
9
|
+
pdf: void 0,
|
|
10
|
+
pages: /* @__PURE__ */ new Map(),
|
|
11
|
+
setPdfSrc: () => {},
|
|
12
|
+
setFilename: () => {},
|
|
13
|
+
loading: !1,
|
|
14
|
+
loaderProgress: 0,
|
|
15
|
+
error: void 0
|
|
16
|
+
}), u = ({ children: e, src: r, characterMap: i, onLoadError: u, onLoaded: d, onLoadProgress: f, disableAutoFetch: p, disableStream: m, rangeChunkSize: h, withCredentials: g, httpHeaders: _, loaderImage: v }) => {
|
|
17
|
+
let [y, b] = s(r), [x, S] = s(), { pdf: C, pages: w, loading: T, loadingProgress: E, error: D } = t(y, i, {
|
|
18
|
+
onLoadError: u,
|
|
19
|
+
onLoaded: d,
|
|
20
|
+
onLoadProgress: f,
|
|
21
|
+
disableAutoFetch: p,
|
|
22
|
+
disableStream: m,
|
|
23
|
+
rangeChunkSize: h,
|
|
24
|
+
withCredentials: g,
|
|
25
|
+
httpHeaders: _,
|
|
26
|
+
loaderImage: v
|
|
27
|
+
}), O = n(y, C, x);
|
|
28
|
+
a(() => {
|
|
29
|
+
S(r?.split("/").pop()), b(r);
|
|
30
|
+
}, [r]);
|
|
31
|
+
let k = o(() => ({
|
|
32
|
+
pdf: C,
|
|
33
|
+
pages: w,
|
|
34
|
+
pdfSrc: y,
|
|
35
|
+
setPdfSrc: b,
|
|
36
|
+
pdfProperties: O,
|
|
37
|
+
setFilename: S,
|
|
38
|
+
filename: x,
|
|
39
|
+
loading: T,
|
|
40
|
+
loaderProgress: E,
|
|
41
|
+
error: D
|
|
42
|
+
}), [
|
|
43
|
+
C,
|
|
44
|
+
w,
|
|
45
|
+
y,
|
|
46
|
+
O,
|
|
47
|
+
x,
|
|
48
|
+
T,
|
|
49
|
+
E,
|
|
50
|
+
D
|
|
51
|
+
]);
|
|
52
|
+
return /* @__PURE__ */ c(l.Provider, {
|
|
53
|
+
value: k,
|
|
54
|
+
children: y ? e : null
|
|
55
|
+
});
|
|
56
|
+
}, d = () => {
|
|
57
|
+
let t = i(l);
|
|
58
|
+
return t.pdfSrc || e.error("Please use this hooks inside children component of RPDocument"), t;
|
|
74
59
|
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { u as DocumentProvider, l as default, d as useDocumentContext };
|
|
@@ -1,73 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
e.data.page,
|
|
43
|
-
e.data.canvasElem,
|
|
44
|
-
e.data.options
|
|
45
|
-
).promise.then(() => {
|
|
46
|
-
e.data.canvasElem.hidden = !1;
|
|
47
|
-
}).finally(() => {
|
|
48
|
-
e.data.onLoaded && e.data.onLoaded();
|
|
49
|
-
})), []);
|
|
50
|
-
return a(() => {
|
|
51
|
-
i && (t.changePagePriority(`^page-${i}`, 0), t.changePagePriority(`^thumbnail-${i}`, 1));
|
|
52
|
-
}, [i]), a(() => {
|
|
53
|
-
if (t.isEmpty() || m.current)
|
|
54
|
-
return;
|
|
55
|
-
const e = () => {
|
|
56
|
-
const r = t.dequeue();
|
|
57
|
-
r ? u(r).finally(() => {
|
|
58
|
-
e();
|
|
59
|
-
}) : (m.current = !1, n(t.peekAll()));
|
|
60
|
-
};
|
|
61
|
-
e();
|
|
62
|
-
}, [t, u, d]), /* @__PURE__ */ f(c.Provider, { value: t, children: o });
|
|
63
|
-
}, ne = () => {
|
|
64
|
-
const o = h(c);
|
|
65
|
-
if (!o)
|
|
66
|
-
throw new Error("RenderQueue not found");
|
|
67
|
-
return o;
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
c as RenderQueueContext,
|
|
71
|
-
me as RenderQueueProvider,
|
|
72
|
-
ne as useRenderQueue
|
|
1
|
+
import { r as e } from "../PaginationContext--n91mIJ4.js";
|
|
2
|
+
import { Queue as t } from "../utils/Queue.js";
|
|
3
|
+
import { renderPage as n } from "../utils/renderPage.js";
|
|
4
|
+
import { createContext as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
5
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/contexts/RenderQueueProvider.tsx
|
|
7
|
+
var d = r(null), f = ({ children: r }) => {
|
|
8
|
+
let a = c(!1), [f, p] = l([]), m = i((e) => {
|
|
9
|
+
p((t) => [...t, {
|
|
10
|
+
id: e.page.pageNumber.toString(),
|
|
11
|
+
data: e,
|
|
12
|
+
priority: 0
|
|
13
|
+
}]);
|
|
14
|
+
}, []), h = s(() => new t(m), [m]), { focusedPage: g } = e(), _ = i((e) => (a.current = !0, n(e.data.page, e.data.canvasElem, e.data.options).promise.then(() => {
|
|
15
|
+
e.data.canvasElem.hidden = !1;
|
|
16
|
+
}).finally(() => {
|
|
17
|
+
e.data.onLoaded && e.data.onLoaded();
|
|
18
|
+
})), []);
|
|
19
|
+
return o(() => {
|
|
20
|
+
g && (h.changePagePriority(`^page-${g}`, 0), h.changePagePriority(`^thumbnail-${g}`, 1));
|
|
21
|
+
}, [g]), o(() => {
|
|
22
|
+
if (h.isEmpty() || a.current) return;
|
|
23
|
+
let e = () => {
|
|
24
|
+
let t = h.dequeue();
|
|
25
|
+
t ? _(t).finally(() => {
|
|
26
|
+
e();
|
|
27
|
+
}) : (a.current = !1, p(h.peekAll()));
|
|
28
|
+
};
|
|
29
|
+
e();
|
|
30
|
+
}, [
|
|
31
|
+
h,
|
|
32
|
+
_,
|
|
33
|
+
f
|
|
34
|
+
]), /* @__PURE__ */ u(d.Provider, {
|
|
35
|
+
value: h,
|
|
36
|
+
children: r
|
|
37
|
+
});
|
|
38
|
+
}, p = () => {
|
|
39
|
+
let e = a(d);
|
|
40
|
+
if (!e) throw Error("RenderQueue not found");
|
|
41
|
+
return e;
|
|
73
42
|
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { d as RenderQueueContext, f as RenderQueueProvider, p as useRenderQueue };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region lib/contexts/RenderedPagesCache.tsx
|
|
4
|
+
var r = e({
|
|
5
|
+
viewports: /* @__PURE__ */ new Map(),
|
|
6
|
+
pages: /* @__PURE__ */ new Map()
|
|
7
|
+
}), i = () => t(r), a = ({ children: e }) => {
|
|
8
|
+
let t = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
9
|
+
return /* @__PURE__ */ n(r.Provider, {
|
|
10
|
+
value: {
|
|
11
|
+
viewports: t,
|
|
12
|
+
pages: i
|
|
13
|
+
},
|
|
14
|
+
children: e
|
|
15
|
+
});
|
|
14
16
|
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as RenderedPagesCacheContext, a as RenderedPagesCacheProvider, i as useRenderedPagesCache };
|
|
@@ -1,39 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
c(() => {
|
|
27
|
-
r && e(o);
|
|
28
|
-
}, [r, o]);
|
|
29
|
-
const m = f(() => ({
|
|
30
|
-
rotate: i,
|
|
31
|
-
setRotate: e
|
|
32
|
-
}), [i, e]);
|
|
33
|
-
return /* @__PURE__ */ s(n.Provider, { value: m, children: t });
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
n as RotateContext,
|
|
37
|
-
z as RotateProvider,
|
|
38
|
-
w as useRotationContext
|
|
1
|
+
import { appConsole as e } from "../utils/appConsole.js";
|
|
2
|
+
import { useDocumentContext as t } from "./RPDocumentContext.js";
|
|
3
|
+
import { useInitialStateContext as n } from "./InitialStateContext.js";
|
|
4
|
+
import { createContext as r, useContext as i, useEffect as a, useMemo as o, useState as s } from "react";
|
|
5
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/contexts/RotationContext.tsx
|
|
7
|
+
var l = r({
|
|
8
|
+
rotate: 0,
|
|
9
|
+
setRotate: () => {}
|
|
10
|
+
}), u = () => {
|
|
11
|
+
let t = i(l);
|
|
12
|
+
return t?.rotate === void 0 && e.error("Please use this hooks inside children component of RPProvider"), t;
|
|
13
|
+
}, d = ({ children: e }) => {
|
|
14
|
+
let { initialRotation: r = 0 } = n(), { pdf: i } = t(), [u, d] = s(r);
|
|
15
|
+
a(() => {
|
|
16
|
+
i && d(r);
|
|
17
|
+
}, [i, r]);
|
|
18
|
+
let f = o(() => ({
|
|
19
|
+
rotate: u,
|
|
20
|
+
setRotate: d
|
|
21
|
+
}), [u, d]);
|
|
22
|
+
return /* @__PURE__ */ c(l.Provider, {
|
|
23
|
+
value: f,
|
|
24
|
+
children: e
|
|
25
|
+
});
|
|
39
26
|
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { l as RotateContext, d as RotateProvider, u as useRotationContext };
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as c, useContext as i, useState as d } from "react";
|
|
3
|
-
import { appConsole as m } from "../utils/appConsole.js";
|
|
4
1
|
import { ScrollMode as e } from "../utils/types.js";
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import { appConsole as t } from "../utils/appConsole.js";
|
|
3
|
+
import { useInitialStateContext as n } from "./InitialStateContext.js";
|
|
4
|
+
import { createContext as r, useContext as i, useState as a } from "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/contexts/ScrollModeContext.tsx
|
|
7
|
+
var s = r({
|
|
8
|
+
scrollMode: e.VERTICAL_SCROLLING,
|
|
9
|
+
setScrollMode: () => {}
|
|
10
|
+
}), c = () => {
|
|
11
|
+
let e = i(s);
|
|
12
|
+
return e.scrollMode === void 0 && t.error("Please use this hooks inside children component of RPProvider"), e;
|
|
13
|
+
}, l = ({ children: t }) => {
|
|
14
|
+
let { initialScrollMode: r = e.VERTICAL_SCROLLING } = n(), [i, c] = a(r);
|
|
15
|
+
return /* @__PURE__ */ o(s.Provider, {
|
|
16
|
+
value: {
|
|
17
|
+
scrollMode: i,
|
|
18
|
+
setScrollMode: c
|
|
19
|
+
},
|
|
20
|
+
children: t
|
|
21
|
+
});
|
|
22
22
|
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { s as ScrollModeContext, l as ScrollModeProvider, c as useScrollModeContext };
|
|
@@ -1,97 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createContext as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
const o = x({
|
|
41
|
-
search: "",
|
|
42
|
-
setSearch: (t) => {
|
|
43
|
-
},
|
|
44
|
-
loading: !1,
|
|
45
|
-
matches: [],
|
|
46
|
-
totalMatches: 0,
|
|
47
|
-
currentMatchPosition: 0,
|
|
48
|
-
currentMatch: null,
|
|
49
|
-
nextMatch: () => {
|
|
50
|
-
},
|
|
51
|
-
prevMatch: () => {
|
|
52
|
-
},
|
|
53
|
-
searchOptions: {},
|
|
54
|
-
setSearchOptions: (t) => t,
|
|
55
|
-
setCurrentMatchPosition: (t) => t
|
|
56
|
-
}), pt = ({
|
|
57
|
-
children: t,
|
|
58
|
-
initialSearch: i
|
|
59
|
-
}) => {
|
|
60
|
-
const [r, e] = v({}), {
|
|
61
|
-
loading: p,
|
|
62
|
-
setSearch: m,
|
|
63
|
-
totalMatches: c,
|
|
64
|
-
currentMatchPosition: a,
|
|
65
|
-
currentMatch: s,
|
|
66
|
-
search: n,
|
|
67
|
-
matches: h,
|
|
68
|
-
nextMatch: u,
|
|
69
|
-
prevMatch: M,
|
|
70
|
-
setCurrentMatchPosition: l
|
|
71
|
-
} = P(r, i);
|
|
72
|
-
return /* @__PURE__ */ S(
|
|
73
|
-
o.Provider,
|
|
74
|
-
{
|
|
75
|
-
value: {
|
|
76
|
-
searchOptions: r,
|
|
77
|
-
setSearchOptions: e,
|
|
78
|
-
loading: p,
|
|
79
|
-
setSearch: m,
|
|
80
|
-
totalMatches: c,
|
|
81
|
-
currentMatchPosition: a,
|
|
82
|
-
currentMatch: s,
|
|
83
|
-
nextMatch: u,
|
|
84
|
-
prevMatch: M,
|
|
85
|
-
search: n,
|
|
86
|
-
matches: h,
|
|
87
|
-
setCurrentMatchPosition: l
|
|
88
|
-
},
|
|
89
|
-
children: t
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}, mt = () => C(o);
|
|
93
|
-
export {
|
|
94
|
-
o as SearchContext,
|
|
95
|
-
pt as SearchProvider,
|
|
96
|
-
mt as useSearchContext
|
|
97
|
-
};
|
|
1
|
+
import { useSearch as e } from "../utils/hooks/useSearch.js";
|
|
2
|
+
import { createContext as t, useContext as n, useState as r } from "react";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/contexts/SearchContext.tsx
|
|
5
|
+
var a = t({
|
|
6
|
+
search: "",
|
|
7
|
+
setSearch: (e) => {},
|
|
8
|
+
loading: !1,
|
|
9
|
+
matches: [],
|
|
10
|
+
totalMatches: 0,
|
|
11
|
+
currentMatchPosition: 0,
|
|
12
|
+
currentMatch: null,
|
|
13
|
+
nextMatch: () => {},
|
|
14
|
+
prevMatch: () => {},
|
|
15
|
+
searchOptions: {},
|
|
16
|
+
setSearchOptions: (e) => e,
|
|
17
|
+
setCurrentMatchPosition: (e) => e
|
|
18
|
+
}), o = ({ children: t, initialSearch: n }) => {
|
|
19
|
+
let [o, s] = r({}), { loading: c, setSearch: l, totalMatches: u, currentMatchPosition: d, currentMatch: f, search: p, matches: m, nextMatch: h, prevMatch: g, setCurrentMatchPosition: _ } = e(o, n);
|
|
20
|
+
return /* @__PURE__ */ i(a.Provider, {
|
|
21
|
+
value: {
|
|
22
|
+
searchOptions: o,
|
|
23
|
+
setSearchOptions: s,
|
|
24
|
+
loading: c,
|
|
25
|
+
setSearch: l,
|
|
26
|
+
totalMatches: u,
|
|
27
|
+
currentMatchPosition: d,
|
|
28
|
+
currentMatch: f,
|
|
29
|
+
nextMatch: h,
|
|
30
|
+
prevMatch: g,
|
|
31
|
+
search: p,
|
|
32
|
+
matches: m,
|
|
33
|
+
setCurrentMatchPosition: _
|
|
34
|
+
},
|
|
35
|
+
children: t
|
|
36
|
+
});
|
|
37
|
+
}, s = () => n(a);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { a as SearchContext, o as SearchProvider, s as useSearchContext };
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
t as SelectionModeContext,
|
|
22
|
-
a as SelectionModeProvider,
|
|
23
|
-
S as useSelectionModeContext
|
|
1
|
+
import { SelectionMode as e } from "../utils/types.js";
|
|
2
|
+
import { appConsole as t } from "../utils/appConsole.js";
|
|
3
|
+
import { createContext as n, useContext as r, useState as i } from "react";
|
|
4
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
|
+
//#region lib/contexts/SelectionModeContext.tsx
|
|
6
|
+
var o = n({
|
|
7
|
+
selectionMode: e.TEXT,
|
|
8
|
+
setSelectionMode: () => {}
|
|
9
|
+
}), s = () => {
|
|
10
|
+
let e = r(o);
|
|
11
|
+
return e.selectionMode === void 0 && t.error("Please use this hooks inside children component of RPProvider"), e;
|
|
12
|
+
}, c = ({ children: t, initialSelectionMode: n = e.TEXT }) => {
|
|
13
|
+
let [r, s] = i(n);
|
|
14
|
+
return /* @__PURE__ */ a(o.Provider, {
|
|
15
|
+
value: {
|
|
16
|
+
selectionMode: r,
|
|
17
|
+
setSelectionMode: s
|
|
18
|
+
},
|
|
19
|
+
children: t
|
|
20
|
+
});
|
|
24
21
|
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { o as SelectionModeContext, c as SelectionModeProvider, s as useSelectionModeContext };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
1
|
+
import { createContext as e, useContext as t, useRef as n } from "react";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
//#region lib/contexts/SmoothScrollContext.tsx
|
|
4
|
+
var i = e({
|
|
5
|
+
targetScrollPage: { current: void 0 },
|
|
6
|
+
scrollBehavior: "smooth"
|
|
7
|
+
}), a = ({ children: e, scrollBehavior: t = "smooth" }) => {
|
|
8
|
+
let a = n();
|
|
9
|
+
return /* @__PURE__ */ r(i.Provider, {
|
|
10
|
+
value: {
|
|
11
|
+
targetScrollPage: a,
|
|
12
|
+
scrollBehavior: t
|
|
13
|
+
},
|
|
14
|
+
children: e
|
|
15
|
+
});
|
|
16
|
+
}, o = () => t(i);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { a as SmoothScrollProvider, o as useSmoothScrollContext };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { createContext as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
n as useThemeContext
|
|
7
|
-
};
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
//#region lib/contexts/ThemeContext.tsx
|
|
3
|
+
var n = e({}), r = () => t(n), i = n.Provider;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as ThemeContext, i as ThemeProvider, r as useThemeContext };
|