@pdf-viewer/react 1.5.0-beta.0 → 1.5.0-beta.1
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/Popover-d11ec15c.js +3061 -0
- package/dist/{RPDefaultLayout-77418ce2.js → RPDefaultLayout-13f82fd9.js} +1157 -1162
- package/dist/components/RPController.js +23 -16
- package/dist/components/RPPages.js +3 -2
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +1 -1
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +3 -2
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- 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 +4 -3
- package/dist/components/layout/toolbar/OtherTool.js +2 -2
- package/dist/components/layout/toolbar/Paginate.js +1 -1
- package/dist/components/layout/toolbar/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +1 -1
- package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
- package/dist/components/layout/toolbar/SearchTool.js +4 -3
- package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
- package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +4 -3
- package/dist/components/page/AnnotationLayer.js +3 -2
- package/dist/components/page/CanvasLayer.js +3 -2
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +3 -2
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +3 -2
- package/dist/components/page/TextLayer.js +3 -2
- package/dist/components/ui/Checkbox.js +13 -14
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/Popover.js +1 -1
- package/dist/components/ui/RPTooltip.js +328 -687
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/SmoothScrollContext.js +13 -0
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/floating-ui.react-dom-88a86594.js +1447 -0
- package/dist/index-48ca3f30.js +307 -0
- package/dist/index-4ba3ab9a.js +1877 -0
- package/dist/main.js +1 -1
- package/dist/types/contexts/SmoothScrollContext.d.ts +10 -0
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/utils/hooks/useFileDownload.js +3 -2
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/useLoadWorker.js +1 -1
- package/dist/utils/hooks/usePaginate.js +3 -2
- package/dist/utils/hooks/usePrint.js +3 -2
- package/dist/utils/hooks/useScrollToPage.js +3 -2
- package/dist/utils/hooks/useSearch.js +3 -2
- package/dist/utils/hooks/useThumbnail.js +3 -2
- package/dist/utils/hooks/useVirtualReactWindow.js +3 -2
- package/dist/utils/smoothScrollTo.js +3 -15
- package/package.json +4 -4
- package/dist/Popover-b7402893.js +0 -1445
- package/dist/component-1da194e8.js +0 -337
- package/dist/floating-ui.react-dom-15b9b819.js +0 -1310
- package/dist/index-2e540713.js +0 -23
- package/dist/index-353ec0a6.js +0 -172
- package/dist/index-5ff5dbd0.js +0 -1675
- package/dist/index-71898eb9.js +0 -139
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RPProvider as t } from "./components/RPProvider.js";
|
|
2
|
-
import { b as x, R as n, c as s, u as m, d as p, e as f } from "./RPDefaultLayout-
|
|
2
|
+
import { b as x, R as n, c as s, u as m, d as p, e as f } from "./RPDefaultLayout-13f82fd9.js";
|
|
3
3
|
import { RPConfig as a } from "./components/RPConfig.js";
|
|
4
4
|
import { RPController as l } from "./components/RPController.js";
|
|
5
5
|
import { RPTheme as P } from "./components/RPTheme.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ScrollPosition } from '../utils/types';
|
|
2
|
+
interface SmoothScrollContextType {
|
|
3
|
+
smoothScrolling: React.MutableRefObject<boolean>;
|
|
4
|
+
targetScrollPosition: React.MutableRefObject<ScrollPosition>;
|
|
5
|
+
}
|
|
6
|
+
export declare const SmoothScrollProvider: ({ children }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useSmoothScrollContext: () => SmoothScrollContextType;
|
|
10
|
+
export {};
|
|
@@ -244,7 +244,7 @@ export interface SetPageResult {
|
|
|
244
244
|
export interface PageControl {
|
|
245
245
|
focusedPage: number;
|
|
246
246
|
setFocusedPage: (page: number | string) => void;
|
|
247
|
-
goToPage: (page: number | string) =>
|
|
247
|
+
goToPage: (page: number | string) => SetPageResult;
|
|
248
248
|
totalPages: number;
|
|
249
249
|
setTotalPages: (page: number) => void;
|
|
250
250
|
nextPage: () => void;
|
|
@@ -296,7 +296,7 @@ export interface PageNavigationToolProps {
|
|
|
296
296
|
nextPage: () => void;
|
|
297
297
|
prevPage: () => void;
|
|
298
298
|
changePage: (page: number) => void;
|
|
299
|
-
goToPage: (page: number) =>
|
|
299
|
+
goToPage: (page: number) => SetPageResult;
|
|
300
300
|
}
|
|
301
301
|
export interface PreparePrintProgress {
|
|
302
302
|
loadedPages: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../contexts/RPDocumentContext.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as E } from "../../RPDefaultLayout-13f82fd9.js";
|
|
5
5
|
import "../../contexts/DarkModeContext.js";
|
|
6
6
|
import "../../contexts/RotationContext.js";
|
|
7
7
|
import "../../contexts/LayerContext.js";
|
|
@@ -21,6 +21,7 @@ import "../../contexts/DimensionPagesContext.js";
|
|
|
21
21
|
import "../../contexts/LocalizationContext.js";
|
|
22
22
|
import "../../contexts/HighlightContext.js";
|
|
23
23
|
import "../../contexts/DownloadContext.js";
|
|
24
|
+
import "../../contexts/SmoothScrollContext.js";
|
|
24
25
|
import "../../contexts/LoaderContext.js";
|
|
25
26
|
import "../../contexts/LicenseContext.js";
|
|
26
27
|
import "../../components/RPConfig.js";
|
|
@@ -28,5 +29,5 @@ import "../../contexts/ThemeContext.js";
|
|
|
28
29
|
import "../../components/RPDropFileZone.js";
|
|
29
30
|
import "../../contexts/ToolbarComponentContext.js";
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
E as useFileDownload
|
|
32
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as E, useCallback as h, useEffect as A } from "react";
|
|
2
2
|
import { appConsole as c } from "../appConsole.js";
|
|
3
|
-
const b = /* @__PURE__ */ new Date("2025-04-
|
|
3
|
+
const b = /* @__PURE__ */ new Date("2025-04-28T03:03:47.184Z"), l = "Please visit https://www.react-pdf.dev/manage-license/ to generate a new license key.", o = {
|
|
4
4
|
invalidLicense: `You are currently using without a valid license. ${l}`,
|
|
5
5
|
mismatchedDomain: `Your license key is not valid for the current domain / IP. ${l}`,
|
|
6
6
|
expired: `Your license key has expired. ${l}`,
|