@react-pdf-kit/viewer 2.8.0-beta.0 → 2.8.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -30
- package/dist/{AnnotationLayer-C6UTOVmc.js → AnnotationLayer-CyOYh0Tw.js} +2 -2
- package/dist/{Button-BNlmxWrV.js → Button-DBu3SaMk.js} +1 -1
- package/dist/CanvasLayer-CJqCJ30J.js +111 -0
- package/dist/{Checkbox-Brta-YKG.js → Checkbox-CSIEUyO8.js} +4 -4
- package/dist/{Combination-DqNkTtir.js → Combination-11kyhTGt.js} +15 -15
- package/dist/Container-BuamPhw4.js +18 -0
- package/dist/{DocumentDialog-C9G7lVTh.js → DocumentDialog-cRr9sSSH.js} +4 -4
- package/dist/{DropDown-DikL-krI.js → DropDown-CM6xEwZC.js} +2 -2
- package/dist/{Input-DjSWOjCI.js → Input-Dpo1Xfxe.js} +1 -1
- package/dist/{LoaderIcon-D9YjinGf.js → LoaderIcon-B3ddfd0D.js} +1 -1
- package/dist/{LoadingIndicator-DiWoWs4Y.js → LoadingIndicator-0E8WHnSN.js} +8 -8
- package/dist/MenuItem-lItnKNd5.js +31 -0
- package/dist/{MenuSeparator-D1H5l8Ej.js → MenuSeparator-CaFxd8b5.js} +1 -1
- package/dist/Paginate.module-DhE7N8AA.js +9 -0
- package/dist/PaginationContext-DIzsZhFd.js +194 -0
- package/dist/{PasswordModal-BIr84lGN.js → PasswordModal-CxHFn0pB.js} +13 -13
- package/dist/{RPDropFileZone-D1C3ouep.js → RPDropFileZone-Bq1bzWmO.js} +1 -1
- package/dist/RPLayout.module-BH5r8dDc.js +14 -0
- package/dist/RPPages-U8QNLlIa.js +686 -0
- package/dist/{RPTooltip-ZZoFqP7C.js → RPTooltip-QWwWh4HW.js} +127 -95
- package/dist/SearchTool.module-DY8Ucfb_.js +17 -0
- package/dist/{SkipLink-CdcjClGB.js → SkipLink-Dj83gZdk.js} +3 -3
- package/dist/{TextLayer-DWGFN9SF.js → TextLayer-D-V9kogG.js} +5 -5
- package/dist/{Thumbnail-CU1p9tZ6.js → Thumbnail-BXMk0OWF.js} +8 -8
- package/dist/{Thumbnails-VMbfTvqt.js → Thumbnails-BIuN8LZ8.js} +2 -2
- package/dist/assets/AnnotationLayer.css +1 -1
- package/dist/assets/CanvasLayer.css +1 -0
- package/dist/assets/LoadingIndicator.css +1 -1
- package/dist/assets/MenuItem.css +1 -1
- package/dist/assets/Paginate.css +1 -1
- package/dist/assets/PasswordModal.css +1 -1
- package/dist/assets/RPLayout.css +1 -1
- package/dist/assets/RPPages.css +1 -1
- package/dist/assets/SearchTool.css +1 -1
- package/dist/assets/SkipLink.css +1 -1
- package/dist/assets/TextLayer.css +1 -1
- package/dist/assets/Thumbnail.css +1 -1
- package/dist/assets/style.js +1 -1
- package/dist/{clsx-B7LyVm5O.js → clsx-DSGuh5YW.js} +1 -1
- package/dist/components/RPController.js +39 -39
- package/dist/components/RPDropFileZone.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/icons/LoaderIcon.js +1 -1
- package/dist/components/layout/Container.js +1 -1
- package/dist/components/layout/LayoutContainer.js +7 -7
- package/dist/components/layout/LayoutWrapper.js +5 -5
- package/dist/components/layout/RPDefaultLayout.js +56 -55
- package/dist/components/layout/RPLayout.js +39 -38
- package/dist/components/layout/SkipLink.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +3 -3
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/DocumentProperties.js +7 -7
- package/dist/components/layout/toolbar/FileDownloadTool.js +7 -7
- package/dist/components/layout/toolbar/FileUploadTool.js +7 -7
- package/dist/components/layout/toolbar/FullScreenTool.js +10 -9
- package/dist/components/layout/toolbar/MenuItem.js +1 -1
- package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +25 -31
- package/dist/components/layout/toolbar/OtherTool.js +6 -6
- package/dist/components/layout/toolbar/Paginate.js +20 -5
- package/dist/components/layout/toolbar/PrintTool.js +7 -7
- package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
- package/dist/components/layout/toolbar/RPMoreOptions.js +6 -6
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +12 -12
- package/dist/components/layout/toolbar/ScrollModeTool.js +18 -18
- package/dist/components/layout/toolbar/SearchCloseButton.js +3 -3
- package/dist/components/layout/toolbar/SearchResultNavigator.js +3 -3
- package/dist/components/layout/toolbar/SearchTool.js +134 -122
- package/dist/components/layout/toolbar/SelectionModeTool.js +12 -12
- package/dist/components/layout/toolbar/ThumbnailTool.js +2 -2
- package/dist/components/layout/toolbar/ToolbarCustom.js +2 -2
- package/dist/components/layout/toolbar/ToolbarDefault.js +2 -2
- package/dist/components/layout/toolbar/ViewModeTool.js +18 -18
- package/dist/components/layout/toolbar/ZoomTool.js +86 -84
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +3 -3
- package/dist/components/layout/toolbar/tools/DualPageTool.js +2 -2
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +4 -4
- package/dist/components/layout/toolbar/tools/InputPageTool.js +37 -26
- package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/NextPageTool.js +3 -3
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +3 -3
- package/dist/components/layout/toolbar/tools/PrintTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +2 -2
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +25 -23
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +6 -6
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +25 -23
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +5 -5
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +8 -8
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +4 -4
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/CanvasLayer.js +2 -48
- package/dist/components/page/DualPage.js +2 -2
- package/dist/components/page/DualPageWithCover.js +2 -2
- package/dist/components/page/RPPage.js +94 -2
- package/dist/components/page/SinglePage.js +2 -2
- package/dist/components/page/TextHighlightLayer.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/Button.js +1 -1
- package/dist/components/ui/Checkbox.js +1 -1
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/Input.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/PasswordModal.js +1 -1
- package/dist/components/ui/RPTooltip.js +1 -1
- package/dist/contexts/DimensionPagesContext.js +38 -22
- package/dist/contexts/ElementPageContext.js +46 -39
- package/dist/contexts/ElementThumbnailContext.js +1 -1
- package/dist/contexts/LoaderContext.js +1 -1
- package/dist/contexts/LocalizationContext.js +12 -6
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/RenderQueueProvider.js +26 -18
- package/dist/contexts/RenderedPagesCache.js +32 -13
- package/dist/contexts/VirtualScrollContext.js +10 -13
- package/dist/contexts/ZoomContext.js +119 -61
- package/dist/{de_DE--0LF-SJR.js → de_DE-x4Z-jQrz.js} +54 -6
- package/dist/{dist-7FA4Do6I.js → dist-B2hwhF6G.js} +7 -7
- package/dist/{dist-BRVqFn7R.js → dist-BfuBBQ14.js} +6 -6
- package/dist/{dist-C3WNMuW2.js → dist-CNbFpoT1.js} +2 -2
- package/dist/{dist-bK-AHWLF.js → dist-CgoP608h.js} +7 -7
- package/dist/{dist-CKteKPPA.js → dist-VbpVNBs6.js} +7 -7
- package/dist/icons.js +1 -1
- package/dist/{lib-BiapEtK1.js → lib-CSInlR9T.js} +142 -237
- package/dist/{main-B74-PfMa.js → main-DCzVrq0G.js} +3 -3
- package/dist/main.js +5 -5
- package/dist/style-CJtyyrJx.js +5 -0
- package/dist/types/components/page/CanvasLayer.d.ts +4 -1
- package/dist/types/components/ui/RPTooltip.d.ts +3 -2
- package/dist/types/contexts/RenderQueueProvider.d.ts +2 -0
- package/dist/types/contexts/RenderedPagesCache.d.ts +3 -0
- package/dist/types/contexts/VirtualScrollContext.d.ts +0 -3
- package/dist/types/locales/de_DE.json.d.ts +11 -2
- package/dist/types/locales/en_US.json.d.ts +11 -2
- package/dist/types/locales/it_IT.json.d.ts +11 -2
- package/dist/types/locales/pt_PT.json.d.ts +11 -2
- package/dist/types/locales/th_TH.json.d.ts +11 -2
- package/dist/types/locales/zh_CN.json.d.ts +11 -2
- package/dist/types/utils/Queue.d.ts +1 -0
- package/dist/types/utils/const.d.ts +3 -0
- package/dist/types/utils/constants.d.ts +9 -0
- package/dist/types/utils/documentLayout.d.ts +60 -0
- package/dist/types/utils/hooks/usePinch.d.ts +14 -1
- package/dist/types/utils/hooks/usePresentPage.d.ts +2 -2
- package/dist/types/utils/hooks/useZoomOrigin.d.ts +4 -0
- package/dist/types/utils/types.d.ts +25 -2
- package/dist/types/utils/zoom.d.ts +2 -0
- package/dist/utils/Queue.js +5 -0
- package/dist/utils/const.js +2 -2
- package/dist/utils/constants.js +2 -2
- package/dist/utils/documentLayout.js +141 -0
- package/dist/utils/hooks/useLicense.js +2 -2
- package/dist/utils/hooks/useLoadPdf.js +73 -63
- package/dist/utils/hooks/useLocalization.js +1 -1
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePinch.js +109 -56
- package/dist/utils/hooks/usePresentPage.js +33 -57
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +66 -67
- package/dist/utils/hooks/useZoomOrigin.js +37 -0
- package/dist/utils/renderPage.js +21 -14
- package/dist/utils/types.js +3 -3
- package/dist/utils/zoom.js +8 -2
- package/package.json +1 -1
- package/dist/Container-DTWaZzc7.js +0 -16
- package/dist/MenuItem-BJDWfzAw.js +0 -15
- package/dist/Paginate.module-B0GMw-MB.js +0 -8
- package/dist/PaginationContext-C5CJiEW-.js +0 -242
- package/dist/RPLayout.module-Vc3h4xxS.js +0 -14
- package/dist/RPPage-BsDixmqF.js +0 -91
- package/dist/RPPages-BkEFexWu.js +0 -1007
- package/dist/SearchTool.module-DUkVXfOn.js +0 -16
- package/dist/assets/RPPage.css +0 -1
- package/dist/contexts/VirtualGridContext.js +0 -18
- package/dist/style-BPQRJJJ7.js +0 -5
- package/dist/types/contexts/VirtualGridContext.d.ts +0 -9
- package/dist/types/utils/calculatePage.d.ts +0 -12
- package/dist/types/utils/hooks/useVirtualReactWindow.d.ts +0 -17
- package/dist/utils/calculatePage.js +0 -30
- package/dist/utils/hooks/useVirtualReactWindow.js +0 -86
- /package/dist/{TextHighlightLayer-BSVgBxR3.js → TextHighlightLayer-3vIZbRyL.js} +0 -0
package/dist/assets/SkipLink.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-skip-
|
|
1
|
+
._rp-skip-link_17rgz_1{z-index:10000;border:1px solid var(--rp-skip-link-border-color);border-radius:var(--rp-border-radius);background:var(--rp-skip-link-background-color);min-width:200px;min-height:36px;color:var(--rp-skip-link-color);font-size:var(--rp-skip-link-font-size);white-space:normal;text-align:center;clip:rect(0, 0, 0, 0);clip-path:inset(50%);justify-content:center;align-items:center;padding-inline:6px;font-weight:600;text-decoration:none;display:flex;position:absolute;top:6px;left:6px;overflow:hidden}._rp-skip-link_17rgz_1:focus{clip:auto;clip-path:none;overflow:visible}._rp-skip-link_17rgz_1:focus:not(:focus-visible),._rp-skip-link_17rgz_1:focus-visible{outline:1px solid var(--rp-outline-color,-webkit-focus-ring-color);outline-offset:1px}._rp-skip-link_17rgz_1:hover{background:var(--rp-skip-link-border-color);border-color:var(--rp-skip-link-border-color)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-text-
|
|
1
|
+
._rp-text-layer_7vzxr_1{color:#0000;transform:rotate(var(--rp-rotate));transform-origin:var(--rp-page-rotate-translate);z-index:1;pointer-events:auto;-webkit-user-select:text;user-select:text;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size));position:absolute;inset:0}._rp-text-layer_7vzxr_1._selecting_7vzxr_18~[data-rp$=annotationLayer] section{pointer-events:none}._rp-text-layer_7vzxr_1 br::selection{color:#0000;background-color:#0000}._rp-text-layer_7vzxr_1 :is(span,br):not(.highlight){color:#0000;white-space:pre;cursor:text;transform-origin:0 0;-webkit-user-select:text;user-select:text;position:absolute}._rp-text-layer_7vzxr_1>:not(._markedContent_7vzxr_44),._rp-text-layer_7vzxr_1 ._markedContent_7vzxr_44 span:not(._markedContent_7vzxr_44){z-index:1;--font-height:0;font-size:calc(var(--text-scale-factor) * var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}._rp-text-layer_7vzxr_1 .endOfContent{bottom:0;z-index:0;cursor:default;-webkit-user-select:none;user-select:none;display:block;position:absolute;inset:100% 0 0}._rp-text-layer_7vzxr_1._selecting_7vzxr_18 .endOfContent{top:0}._rp-text-layer-text_7vzxr_68{transform-origin:0 0;white-space:pre;line-height:1;position:absolute;overflow:hidden}@-moz-document url-prefix(){._rp-text-layer-text_7vzxr_68{overflow:visible}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-thumbnail-
|
|
1
|
+
._rp-thumbnail-wrapper_drpd8_1{margin-bottom:var(--rp-thumbnail-padding-y);cursor:pointer;flex-direction:column;align-items:center;display:flex}._rp-thumbnail-wrapper_drpd8_1:focus-visible{outline:1px solid var(--rp-outline-color,-webkit-focus-ring-color);outline-offset:-1px}._rp-thumbnail-text_drpd8_15{color:var(--rp-text-color);margin-top:8px;font-size:12px;font-weight:400}._rp-thumbnail_drpd8_1{display:flex;position:relative;box-shadow:0 2px 6px #00000026}._rp-thumbnail_drpd8_1:not(._rp-thumbnail-active_drpd8_28):not(:hover){padding:4px}._rp-thumbnail-active_drpd8_28,._rp-thumbnail_drpd8_1:hover{border:var(--rp-thumbnail-active-color) solid 4px}._rp-thumbnail-loader_drpd8_37{justify-content:center;align-items:center;display:flex}
|
package/dist/assets/style.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../style-
|
|
1
|
+
import { t as e } from "../style-CJtyyrJx.js";
|
|
2
2
|
export { e as combinedCSS };
|
|
@@ -3,53 +3,53 @@ import { InitialStateProvider as r } from "../contexts/InitialStateContext.js";
|
|
|
3
3
|
import { ScrollModeProvider as i } from "../contexts/ScrollModeContext.js";
|
|
4
4
|
import { ViewModeProvider as a } from "../contexts/ViewModeContext.js";
|
|
5
5
|
import { VirtualScrollProvider as ee } from "../contexts/VirtualScrollContext.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
6
|
+
import { LayoutContainerContext as o } from "../contexts/LayoutContainerContext.js";
|
|
7
|
+
import { RotateProvider as s } from "../contexts/RotationContext.js";
|
|
8
|
+
import { GlobalCurrentPageProvider as c } from "../contexts/GlobalCurrentPage.js";
|
|
9
|
+
import { ZoomProvider as l } from "../contexts/ZoomContext.js";
|
|
10
|
+
import { PagesRotateProvider as u } from "../contexts/PagesRotateContext.js";
|
|
11
|
+
import { DimensionPagesProvider as d } from "../contexts/DimensionPagesContext.js";
|
|
12
|
+
import { SmoothScrollProvider as f } from "../contexts/SmoothScrollContext.js";
|
|
13
|
+
import { n as p } from "../PaginationContext-DIzsZhFd.js";
|
|
14
|
+
import { DarkModeProvider as m } from "../contexts/DarkModeContext.js";
|
|
15
|
+
import { LayerProvider as h } from "../contexts/LayerContext.js";
|
|
16
|
+
import { SelectionModeProvider as g } from "../contexts/SelectionModeContext.js";
|
|
17
|
+
import { FullScreenProvider as _ } from "../contexts/FullScreenContext.js";
|
|
18
|
+
import { LocalizationProvider as v } from "../contexts/LocalizationContext.js";
|
|
19
|
+
import { FileInputProvider as y } from "../contexts/FileInputContext.js";
|
|
20
|
+
import { PrintProvider as b } from "../contexts/PrintContext.js";
|
|
21
|
+
import { DropFileZoneProvider as x } from "../contexts/DropFileZoneContext.js";
|
|
22
|
+
import { ThumbnailProvider as S } from "../contexts/ThumbnailsContext.js";
|
|
23
|
+
import { SearchProvider as C } from "../contexts/SearchContext.js";
|
|
24
|
+
import { HighlightProvider as w } from "../contexts/HighlightContext.js";
|
|
25
|
+
import { t as T } from "../useWatermark-CvAAf66v.js";
|
|
26
|
+
import { DownloadProvider as E } from "../contexts/DownloadContext.js";
|
|
27
|
+
import { ElementPageProvider as D } from "../contexts/ElementPageContext.js";
|
|
28
|
+
import { ElementThumbnailProvider as O } from "../contexts/ElementThumbnailContext.js";
|
|
29
|
+
import { RenderQueueProvider as te } from "../contexts/RenderQueueProvider.js";
|
|
30
|
+
import { RenderedPagesCacheProvider as k } from "../contexts/RenderedPagesCache.js";
|
|
31
31
|
import { useState as A } from "react";
|
|
32
32
|
import { jsx as j } from "react/jsx-runtime";
|
|
33
33
|
//#region lib/components/RPController.tsx
|
|
34
34
|
var M = (M) => {
|
|
35
35
|
let { children: N, darkMode: P = !1, onDarkModeChange: F, initialRotation: I = 0, textLayer: L = !0, initialPage: R = 1, initialViewMode: z = n.SINGLE_PAGE, initialThumbnailsVisible: B = !1, initialSearch: V, initialScale: H, initialScrollMode: U = e.VERTICAL_SCROLLING, locale: W = "en_US", localization: G, downloadFilename: K, initialSelectionMode: q = t.TEXT, interactiveForm: J = !0, scrollBehavior: Y = "smooth" } = M, [X, Z] = A(null), [Q, ne] = A(null), [$, re] = A(null);
|
|
36
|
-
return
|
|
36
|
+
return T($), /* @__PURE__ */ j(r, {
|
|
37
37
|
initialScale: H,
|
|
38
38
|
initialPage: R,
|
|
39
39
|
initialScrollMode: U,
|
|
40
40
|
initialRotation: I,
|
|
41
41
|
initialViewMode: z,
|
|
42
42
|
interactiveForm: J,
|
|
43
|
-
children: /* @__PURE__ */ j(
|
|
43
|
+
children: /* @__PURE__ */ j(f, {
|
|
44
44
|
scrollBehavior: Y,
|
|
45
|
-
children: /* @__PURE__ */ j(
|
|
45
|
+
children: /* @__PURE__ */ j(v, {
|
|
46
46
|
locale: W,
|
|
47
47
|
localization: G,
|
|
48
|
-
children: /* @__PURE__ */ j(
|
|
48
|
+
children: /* @__PURE__ */ j(ee, { children: /* @__PURE__ */ j(a, { children: /* @__PURE__ */ j(i, { children: /* @__PURE__ */ j(g, {
|
|
49
49
|
initialSelectionMode: q,
|
|
50
|
-
children: /* @__PURE__ */ j(
|
|
50
|
+
children: /* @__PURE__ */ j(s, { children: /* @__PURE__ */ j(u, { children: /* @__PURE__ */ j(h, {
|
|
51
51
|
textLayer: L,
|
|
52
|
-
children: /* @__PURE__ */ j(
|
|
52
|
+
children: /* @__PURE__ */ j(o.Provider, {
|
|
53
53
|
value: {
|
|
54
54
|
container: X,
|
|
55
55
|
contentRef: Q,
|
|
@@ -58,26 +58,26 @@ var M = (M) => {
|
|
|
58
58
|
setContentRef: ne,
|
|
59
59
|
setPagesRef: re
|
|
60
60
|
},
|
|
61
|
-
children: /* @__PURE__ */ j(
|
|
61
|
+
children: /* @__PURE__ */ j(c, { children: /* @__PURE__ */ j(l, { children: /* @__PURE__ */ j(d, { children: /* @__PURE__ */ j(p, { children: /* @__PURE__ */ j(m, {
|
|
62
62
|
darkMode: P,
|
|
63
63
|
onDarkModeChange: F,
|
|
64
|
-
children: /* @__PURE__ */ j(
|
|
64
|
+
children: /* @__PURE__ */ j(C, {
|
|
65
65
|
initialSearch: V,
|
|
66
|
-
children: /* @__PURE__ */ j(
|
|
66
|
+
children: /* @__PURE__ */ j(w, { children: /* @__PURE__ */ j(D, { children: /* @__PURE__ */ j(k, { children: /* @__PURE__ */ j(te, { children: /* @__PURE__ */ j(S, {
|
|
67
67
|
initialThumbnailsVisible: B,
|
|
68
|
-
children: /* @__PURE__ */ j(
|
|
68
|
+
children: /* @__PURE__ */ j(O, { children: /* @__PURE__ */ j(x, { children: /* @__PURE__ */ j(_, {
|
|
69
69
|
elementRef: Q,
|
|
70
|
-
children: /* @__PURE__ */ j(
|
|
70
|
+
children: /* @__PURE__ */ j(b, { children: /* @__PURE__ */ j(E, {
|
|
71
71
|
downloadFilename: K,
|
|
72
|
-
children: /* @__PURE__ */ j(
|
|
72
|
+
children: /* @__PURE__ */ j(y, { children: N })
|
|
73
73
|
}) })
|
|
74
74
|
}) }) })
|
|
75
|
-
}) }) }) })
|
|
75
|
+
}) }) }) }) })
|
|
76
76
|
})
|
|
77
77
|
}) }) }) }) })
|
|
78
78
|
})
|
|
79
79
|
}) }) })
|
|
80
|
-
}) }) }) })
|
|
80
|
+
}) }) }) })
|
|
81
81
|
})
|
|
82
82
|
})
|
|
83
83
|
});
|
|
@@ -8,7 +8,7 @@ import { LoaderProvider as a } from "../contexts/LoaderContext.js";
|
|
|
8
8
|
import { IconToolProvider as o } from "../contexts/IconToolContext.js";
|
|
9
9
|
import { OtherToolProvider as s } from "../contexts/OtherToolContext.js";
|
|
10
10
|
import { useFlickerSelectText as c } from "../utils/hooks/useFlickerSelectText.js";
|
|
11
|
-
import { t as l } from "../style-
|
|
11
|
+
import { t as l } from "../style-CJtyyrJx.js";
|
|
12
12
|
import { injectGlobalCSS as u } from "../libInjectCss.js";
|
|
13
13
|
import { injectPrintCSS as d } from "../utils/injectPrintCSS.js";
|
|
14
14
|
import { useEffect as f, useMemo as p, useRef as m } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../LoaderIcon-
|
|
1
|
+
import { t as e } from "../../LoaderIcon-B3ddfd0D.js";
|
|
2
2
|
export { e as LoaderIcon };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Container-
|
|
1
|
+
import { t as e } from "../../Container-BuamPhw4.js";
|
|
2
2
|
export { e as Container };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useDarkModeContext as e } from "../../contexts/DarkModeContext.js";
|
|
2
|
-
import { t } from "../../clsx-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { t } from "../../clsx-DSGuh5YW.js";
|
|
3
|
+
import { t as n } from "../../RPLayout.module-BH5r8dDc.js";
|
|
4
|
+
import { useThemeContext as r } from "../../contexts/ThemeContext.js";
|
|
5
|
+
import { withRef as i } from "../../utils/withRef.js";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
//#region lib/components/layout/LayoutContainer.tsx
|
|
8
|
-
var o =
|
|
9
|
-
let { children: s, toolbarRef: c, style: l, className: u, ...d } =
|
|
8
|
+
var o = i((i, o) => {
|
|
9
|
+
let { children: s, toolbarRef: c, style: l, className: u, ...d } = i, { customVariables: f, customDarkVariables: p } = r(), { darkMode: m } = e();
|
|
10
10
|
return /* @__PURE__ */ a("div", {
|
|
11
11
|
ref: o,
|
|
12
12
|
...d,
|
|
13
|
-
className: t(
|
|
13
|
+
className: t(n["rp-theme-variables"], n["rp-container"], m ? n["rp-dark-mode"] : "", u),
|
|
14
14
|
style: {
|
|
15
15
|
"--rp-toolbar-height": `${c?.clientHeight || 48}px`,
|
|
16
16
|
...f,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../../
|
|
1
|
+
import { t as e } from "../../RPLayout.module-BH5r8dDc.js";
|
|
2
|
+
import { withRef as t } from "../../utils/withRef.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/components/layout/LayoutWrapper.tsx
|
|
5
|
-
var r =
|
|
6
|
-
let { children: i, ...a } =
|
|
5
|
+
var r = t((t, r) => {
|
|
6
|
+
let { children: i, ...a } = t;
|
|
7
7
|
return /* @__PURE__ */ n("div", {
|
|
8
8
|
ref: r,
|
|
9
|
-
className:
|
|
9
|
+
className: e["rp-layout-wrapper"],
|
|
10
10
|
...a,
|
|
11
11
|
children: i
|
|
12
12
|
});
|
|
@@ -1,74 +1,75 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useDocumentContext as e } from "../../contexts/RPDocumentContext.js";
|
|
3
3
|
import { useLayoutContainer as t } from "../../contexts/LayoutContainerContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as d } from "../../
|
|
14
|
-
import { t as f } from "../../
|
|
15
|
-
import { t as p } from "../../
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
4
|
+
import { useLocalizationContext as n } from "../../contexts/LocalizationContext.js";
|
|
5
|
+
import { ToolbarComponentProvider as r } from "../../contexts/ToolbarComponentContext.js";
|
|
6
|
+
import { useLoaderContext as i } from "../../contexts/LoaderContext.js";
|
|
7
|
+
import { t as a } from "../../RPLayout.module-BH5r8dDc.js";
|
|
8
|
+
import { LayoutContainer as o } from "./LayoutContainer.js";
|
|
9
|
+
import { IconProvider as s } from "../../contexts/IconContext.js";
|
|
10
|
+
import { ViewportProvider as c } from "../../contexts/ViewportContext.js";
|
|
11
|
+
import { RPToolbar as l } from "./toolbar/RPToolbar.js";
|
|
12
|
+
import { RPSidebar as u } from "./sidebar/RPSidebar.js";
|
|
13
|
+
import { t as d } from "../../Container-BuamPhw4.js";
|
|
14
|
+
import { t as f } from "../../WrapperLayout-Dcd9l9xH.js";
|
|
15
|
+
import { t as p } from "../../RPDropFileZone-Bq1bzWmO.js";
|
|
16
|
+
import { t as m } from "../../SkipLink-Dj83gZdk.js";
|
|
17
|
+
import { forwardRef as h, useEffect as g, useState as _ } from "react";
|
|
18
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
18
19
|
//#region lib/components/layout/RPDefaultLayout.tsx
|
|
19
|
-
var
|
|
20
|
-
let { children:
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
}), [
|
|
24
|
-
toolbarRef:
|
|
25
|
-
ref:
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
mobileWidth:
|
|
28
|
-
onLayoutWidthChange:
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
-
slots:
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
-
icons:
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
-
getContainerRef:
|
|
35
|
-
style:
|
|
36
|
-
className:
|
|
20
|
+
var b = h((h, b) => {
|
|
21
|
+
let { children: x, slots: S, icons: C, style: w, className: T, mobileWidth: E, onLoaded: D, cleanupOnLoaded: O, onLayoutWidthChange: k } = h, [A, j] = _(null), { setContainer: M, setContentRef: N } = t(), { loading: P } = e(), { LoaderImageComponent: F } = i(), { localeMessages: I } = n();
|
|
22
|
+
return g(() => (D && D(), () => {
|
|
23
|
+
O && O();
|
|
24
|
+
}), [D, O]), /* @__PURE__ */ v(o, {
|
|
25
|
+
toolbarRef: A,
|
|
26
|
+
ref: b,
|
|
27
|
+
children: /* @__PURE__ */ v(c, {
|
|
28
|
+
mobileWidth: E,
|
|
29
|
+
onLayoutWidthChange: k,
|
|
30
|
+
children: /* @__PURE__ */ v(r, {
|
|
31
|
+
slots: S,
|
|
32
|
+
children: /* @__PURE__ */ v(s, {
|
|
33
|
+
icons: C,
|
|
34
|
+
children: /* @__PURE__ */ y(d, {
|
|
35
|
+
getContainerRef: M,
|
|
36
|
+
style: w,
|
|
37
|
+
className: T,
|
|
37
38
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ v(m, {
|
|
39
40
|
href: "#rp-menu",
|
|
40
|
-
label: "Skip to Menu"
|
|
41
|
+
label: I?.skipToMenuLabel ?? "Skip to Menu"
|
|
41
42
|
}),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ v(m, {
|
|
43
44
|
href: "#rp-main-content",
|
|
44
|
-
label: "Skip to Main Content"
|
|
45
|
+
label: I?.skipToMainContentLabel ?? "Skip to Main Content"
|
|
45
46
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
className:
|
|
48
|
-
children: [/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ y(f, { children: [/* @__PURE__ */ y("div", {
|
|
48
|
+
className: a["rp-layout"],
|
|
49
|
+
children: [/* @__PURE__ */ v("header", { children: /* @__PURE__ */ v("nav", {
|
|
49
50
|
id: "rp-menu",
|
|
50
51
|
role: "menu",
|
|
51
52
|
"aria-label": "PDF viewer toolbar",
|
|
52
|
-
children: /* @__PURE__ */
|
|
53
|
-
}) }), /* @__PURE__ */
|
|
54
|
-
className:
|
|
55
|
-
children: [/* @__PURE__ */
|
|
56
|
-
className:
|
|
53
|
+
children: /* @__PURE__ */ v(l, { ref: j })
|
|
54
|
+
}) }), /* @__PURE__ */ y("div", {
|
|
55
|
+
className: a["rp-content"],
|
|
56
|
+
children: [/* @__PURE__ */ v("aside", {
|
|
57
|
+
className: a["rp-sidebar"],
|
|
57
58
|
role: "complementary",
|
|
58
59
|
"aria-label": "PDF viewer sidebar",
|
|
59
|
-
children: /* @__PURE__ */
|
|
60
|
-
}), /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ v(u, {})
|
|
61
|
+
}), /* @__PURE__ */ v("main", {
|
|
61
62
|
id: "rp-main-content",
|
|
62
|
-
ref:
|
|
63
|
-
className:
|
|
63
|
+
ref: N,
|
|
64
|
+
className: a["rp-pages"],
|
|
64
65
|
role: "main",
|
|
65
66
|
"aria-label": "PDF document pages",
|
|
66
|
-
children:
|
|
67
|
+
children: x
|
|
67
68
|
})]
|
|
68
69
|
})]
|
|
69
|
-
}), /* @__PURE__ */
|
|
70
|
-
|
|
71
|
-
className:
|
|
70
|
+
}), /* @__PURE__ */ v(p, {})] }),
|
|
71
|
+
P ? /* @__PURE__ */ v("div", {
|
|
72
|
+
className: a["rp-loader"],
|
|
72
73
|
style: {
|
|
73
74
|
position: "absolute",
|
|
74
75
|
top: 0,
|
|
@@ -78,7 +79,7 @@ var y = m((m, y) => {
|
|
|
78
79
|
width: "100%",
|
|
79
80
|
height: "100%"
|
|
80
81
|
},
|
|
81
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ v("div", {
|
|
82
83
|
style: {
|
|
83
84
|
display: "flex",
|
|
84
85
|
justifyContent: "center",
|
|
@@ -86,7 +87,7 @@ var y = m((m, y) => {
|
|
|
86
87
|
height: "100%",
|
|
87
88
|
width: "100%"
|
|
88
89
|
},
|
|
89
|
-
children:
|
|
90
|
+
children: F && /* @__PURE__ */ v(F, {})
|
|
90
91
|
})
|
|
91
92
|
}) : null
|
|
92
93
|
]
|
|
@@ -97,4 +98,4 @@ var y = m((m, y) => {
|
|
|
97
98
|
});
|
|
98
99
|
});
|
|
99
100
|
//#endregion
|
|
100
|
-
export {
|
|
101
|
+
export { b as RPDefaultLayout };
|
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useDocumentContext as e } from "../../contexts/RPDocumentContext.js";
|
|
3
3
|
import { useLayoutContainer as t } from "../../contexts/LayoutContainerContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as s } from "../../
|
|
10
|
-
import { t as c } from "../../
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
4
|
+
import { useLocalizationContext as n } from "../../contexts/LocalizationContext.js";
|
|
5
|
+
import { useLoaderContext as r } from "../../contexts/LoaderContext.js";
|
|
6
|
+
import { t as i } from "../../RPLayout.module-BH5r8dDc.js";
|
|
7
|
+
import { LayoutContainer as a } from "./LayoutContainer.js";
|
|
8
|
+
import { ViewportProvider as o } from "../../contexts/ViewportContext.js";
|
|
9
|
+
import { t as s } from "../../Container-BuamPhw4.js";
|
|
10
|
+
import { t as c } from "../../WrapperLayout-Dcd9l9xH.js";
|
|
11
|
+
import { t as l } from "../../RPDropFileZone-Bq1bzWmO.js";
|
|
12
|
+
import { LayoutDropFileZoneProvider as u } from "../../contexts/LayoutDropFileZoneContext.js";
|
|
13
|
+
import { t as d } from "../../SkipLink-Dj83gZdk.js";
|
|
14
|
+
import { ToolbarLayout as f } from "./toolbar/ToolbarLayout.js";
|
|
15
|
+
import { useEffect as p } from "react";
|
|
16
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
16
17
|
//#region lib/components/layout/RPLayout.tsx
|
|
17
|
-
var
|
|
18
|
-
let { children:
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
}), [
|
|
22
|
-
value:
|
|
23
|
-
children: /* @__PURE__ */
|
|
24
|
-
mobileWidth:
|
|
25
|
-
onLayoutWidthChange:
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
getContainerRef:
|
|
28
|
-
style:
|
|
29
|
-
className:
|
|
18
|
+
var g = (g) => {
|
|
19
|
+
let { children: _, style: v, className: y, mobileWidth: b, onLoaded: x, cleanupOnLoaded: S, onLayoutWidthChange: C, toolbar: w, dropFileZone: T = !0 } = g, { setContainer: E } = t(), { loading: D } = e(), { LoaderImageComponent: O } = r(), { localeMessages: k } = n();
|
|
20
|
+
return p(() => (x && x(), () => {
|
|
21
|
+
S && S();
|
|
22
|
+
}), [x, S]), /* @__PURE__ */ m(a, { children: /* @__PURE__ */ m(u, {
|
|
23
|
+
value: T,
|
|
24
|
+
children: /* @__PURE__ */ m(o, {
|
|
25
|
+
mobileWidth: b,
|
|
26
|
+
onLayoutWidthChange: C,
|
|
27
|
+
children: /* @__PURE__ */ h(s, {
|
|
28
|
+
getContainerRef: E,
|
|
29
|
+
style: v,
|
|
30
|
+
className: y,
|
|
30
31
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ m(d, {
|
|
32
33
|
href: "#rp-menu",
|
|
33
|
-
label: "Skip to Menu"
|
|
34
|
+
label: k?.skipToMenuLabel ?? "Skip to Menu"
|
|
34
35
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ m(d, {
|
|
36
37
|
href: "#rp-main-content",
|
|
37
|
-
label: "Skip to Main Content"
|
|
38
|
+
label: k?.skipToMainContentLabel ?? "Skip to Main Content"
|
|
38
39
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
toolbar:
|
|
41
|
-
children:
|
|
42
|
-
}), /* @__PURE__ */
|
|
43
|
-
|
|
44
|
-
className:
|
|
40
|
+
/* @__PURE__ */ h(c, { children: [/* @__PURE__ */ m(f, {
|
|
41
|
+
toolbar: w,
|
|
42
|
+
children: _
|
|
43
|
+
}), /* @__PURE__ */ m(l, {})] }),
|
|
44
|
+
D ? /* @__PURE__ */ m("div", {
|
|
45
|
+
className: i["rp-loader"],
|
|
45
46
|
style: {
|
|
46
47
|
position: "absolute",
|
|
47
48
|
top: 0,
|
|
@@ -51,7 +52,7 @@ var h = (h) => {
|
|
|
51
52
|
width: "100%",
|
|
52
53
|
height: "100%"
|
|
53
54
|
},
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ m("div", {
|
|
55
56
|
style: {
|
|
56
57
|
display: "flex",
|
|
57
58
|
justifyContent: "center",
|
|
@@ -59,7 +60,7 @@ var h = (h) => {
|
|
|
59
60
|
height: "100%",
|
|
60
61
|
width: "100%"
|
|
61
62
|
},
|
|
62
|
-
children:
|
|
63
|
+
children: O && /* @__PURE__ */ m(O, {})
|
|
63
64
|
})
|
|
64
65
|
}) : null
|
|
65
66
|
]
|
|
@@ -68,4 +69,4 @@ var h = (h) => {
|
|
|
68
69
|
}) });
|
|
69
70
|
};
|
|
70
71
|
//#endregion
|
|
71
|
-
export {
|
|
72
|
+
export { g as RPLayout };
|
|
@@ -4,12 +4,12 @@ import { useLocalizationContext as e } from "../../../contexts/LocalizationConte
|
|
|
4
4
|
import { useToolbarComponentContext as t } from "../../../contexts/ToolbarComponentContext.js";
|
|
5
5
|
import { useThumbnailContext as n } from "../../../contexts/ThumbnailsContext.js";
|
|
6
6
|
import { useIconToolContext as r } from "../../../contexts/IconToolContext.js";
|
|
7
|
-
import { t as i } from "../../../Button-
|
|
7
|
+
import { t as i } from "../../../Button-DBu3SaMk.js";
|
|
8
8
|
import { useIconContext as a } from "../../../contexts/IconContext.js";
|
|
9
|
-
import { t as o } from "../../../RPTooltip-
|
|
9
|
+
import { t as o } from "../../../RPTooltip-QWwWh4HW.js";
|
|
10
10
|
import { ThumbnailIcon as s } from "../../icons/Thumbnail.js";
|
|
11
11
|
import { n as c, t as l } from "../../../RPSplitter-C63X9M8w.js";
|
|
12
|
-
import { t as u } from "../../../Thumbnails-
|
|
12
|
+
import { t as u } from "../../../Thumbnails-BIuN8LZ8.js";
|
|
13
13
|
import { useCallback as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
14
14
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
15
|
//#region lib/components/layout/sidebar/RPSidebar.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../Thumbnails-
|
|
1
|
+
import { t as e } from "../../../Thumbnails-BIuN8LZ8.js";
|
|
2
2
|
export { e as Thumbnails };
|
|
@@ -3,9 +3,9 @@ import { useLocalizationContext as t } from "../../../contexts/LocalizationConte
|
|
|
3
3
|
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
4
|
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
5
|
import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
|
|
6
|
-
import { t as a } from "../../../Button-
|
|
6
|
+
import { t as a } from "../../../Button-DBu3SaMk.js";
|
|
7
7
|
import { useIconContext as o } from "../../../contexts/IconContext.js";
|
|
8
|
-
import { t as s } from "../../../RPTooltip-
|
|
8
|
+
import { t as s } from "../../../RPTooltip-QWwWh4HW.js";
|
|
9
9
|
import { MoonIcon as c } from "../../icons/MoonIcon.js";
|
|
10
10
|
import { SunIcon as l } from "../../icons/SunIcon.js";
|
|
11
11
|
import { useCallback as u } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../DocumentDialog-
|
|
1
|
+
import { t as e } from "../../../DocumentDialog-cRr9sSSH.js";
|
|
2
2
|
export { e as DocumentDialog };
|
|
@@ -4,10 +4,10 @@ import { useToolComponentContext as n } from "../../../contexts/ToolComponentCon
|
|
|
4
4
|
import { useIconToolContext as r } from "../../../contexts/IconToolContext.js";
|
|
5
5
|
import { useOtherToolContext as i } from "../../../contexts/OtherToolContext.js";
|
|
6
6
|
import { useIconContext as a } from "../../../contexts/IconContext.js";
|
|
7
|
-
import { t as o } from "../../../RPTooltip-
|
|
8
|
-
import { t as s } from "../../../MenuItem-
|
|
7
|
+
import { t as o } from "../../../RPTooltip-QWwWh4HW.js";
|
|
8
|
+
import { t as s } from "../../../MenuItem-lItnKNd5.js";
|
|
9
9
|
import { InfoIcon as c } from "../../icons/InfoIcon.js";
|
|
10
|
-
import { t as l } from "../../../MenuSeparator-
|
|
10
|
+
import { t as l } from "../../../MenuSeparator-CaFxd8b5.js";
|
|
11
11
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
12
|
//#region lib/components/layout/toolbar/DocumentProperties.tsx
|
|
13
13
|
var p = () => {
|
|
@@ -15,11 +15,11 @@ var p = () => {
|
|
|
15
15
|
return e || t || /* @__PURE__ */ d(c, {});
|
|
16
16
|
}, m = () => {
|
|
17
17
|
let { setActiveDocumentProperties: r } = i(), { documentProperties: a = !0 } = t(), { documentProperties: c = !0, scrollModeTool: m } = n(), { localeMessages: h } = e();
|
|
18
|
-
return !a || !c ? null : /* @__PURE__ */ f(u, { children: [m && /* @__PURE__ */ d(l, {}), /* @__PURE__ */ d(
|
|
19
|
-
|
|
20
|
-
children: /* @__PURE__ */ f(
|
|
18
|
+
return !a || !c ? null : /* @__PURE__ */ f(u, { children: [m && /* @__PURE__ */ d(l, {}), /* @__PURE__ */ d(o, {
|
|
19
|
+
content: h?.documentPropertiesTooltip,
|
|
20
|
+
children: /* @__PURE__ */ f(s, {
|
|
21
21
|
className: "rp-menu-item",
|
|
22
|
-
|
|
22
|
+
onClick: () => r((e) => !e),
|
|
23
23
|
children: [/* @__PURE__ */ d("div", {
|
|
24
24
|
className: "rp-menu-item-left",
|
|
25
25
|
children: /* @__PURE__ */ d(p, {})
|