@pdf-viewer/react 1.4.0-rc.0 → 1.4.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/RPDefaultLayout-70dc4200.js +2914 -0
- package/dist/components/RPController.js +12 -13
- package/dist/components/RPPages.js +2 -3
- 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 +2 -3
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +2 -3
- package/dist/components/layout/toolbar/OtherTool.js +1 -1
- 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/SearchTool.js +2 -3
- package/dist/components/layout/toolbar/ZoomTool.js +2 -3
- package/dist/components/page/AnnotationLayer.js +2 -3
- package/dist/components/page/CanvasLayer.js +2 -3
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +2 -3
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +2 -3
- package/dist/components/page/TextLayer.js +2 -3
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/main.js +1 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/utils/hooks/useFileDownload.js +2 -3
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +2 -3
- package/dist/utils/hooks/usePrint.js +2 -3
- package/dist/utils/hooks/useScrollToPage.js +2 -3
- package/dist/utils/hooks/useSearch.js +2 -3
- package/dist/utils/hooks/useThumbnail.js +2 -3
- package/dist/utils/hooks/useVirtualReactWindow.js +2 -3
- package/dist/utils/smoothScrollTo.js +15 -3
- package/package.json +2 -2
- package/dist/RPDefaultLayout-ec67ce59.js +0 -2911
- package/dist/contexts/SmoothScrollContext.js +0 -13
- package/dist/types/contexts/SmoothScrollContext.d.ts +0 -10
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as c, useRef as o, useContext as s } from "react";
|
|
3
|
-
const t = c({
|
|
4
|
-
smoothScrolling: { current: !1 },
|
|
5
|
-
targetScrollPosition: { current: { left: 0, top: 0 } }
|
|
6
|
-
}), m = ({ children: r }) => {
|
|
7
|
-
const e = o(!1), l = o({ left: 0, top: 0 });
|
|
8
|
-
return /* @__PURE__ */ n(t.Provider, { value: { smoothScrolling: e, targetScrollPosition: l }, children: r });
|
|
9
|
-
}, u = () => s(t);
|
|
10
|
-
export {
|
|
11
|
-
m as SmoothScrollProvider,
|
|
12
|
-
u as useSmoothScrollContext
|
|
13
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 {};
|