@pdf-viewer/react 1.0.0-rc.1 → 1.0.0-rc.2
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-e9ef78b9.js → RPDefaultLayout-07939e60.js} +13 -13
- package/dist/assets/RPDropFileZone.css +1 -1
- package/dist/components/RPConfig.js +340 -318
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPDropFileZone.js +30 -27
- package/dist/components/RPPages.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/CanvasLayer.js +1 -1
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +1 -1
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/Checkbox.js +92 -252
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/RPTooltip.js +224 -961
- 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/index-1db49c1a.js +1664 -0
- package/dist/index-3dff3fa8.js +307 -0
- package/dist/index-4f17fe4d.js +1657 -0
- package/dist/main.js +1 -1
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePrint.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/dist/utils/hooks/useThumbnail.js +1 -1
- package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
- package/package.json +1 -1
- package/dist/floating-ui.react-dom-e6d5fe8f.js +0 -1327
- package/dist/index-316854c1.js +0 -2299
- package/dist/index-71898eb9.js +0 -139
|
@@ -54,9 +54,9 @@ import { FileUploadTool as Yt } from "./components/layout/toolbar/FileUploadTool
|
|
|
54
54
|
import { DarkModeTool as mr } from "./components/layout/toolbar/DarkModeTool.js";
|
|
55
55
|
import { ThreeDotIcon as fr } from "./components/icons/ThreeDotIcon.js";
|
|
56
56
|
import { UIDropDown as ft } from "./components/ui/DropDown.js";
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
57
|
+
import { c as gr, a as gt, P as Ne, b as xe, d as vt, i as vr, k as _r, u as wr } from "./index-3dff3fa8.js";
|
|
58
|
+
import { D as br, u as Ke } from "./index-4f17fe4d.js";
|
|
59
|
+
import { a as Cr, h as Pr, u as Tr, F as Sr, b as yr, G as Fe } from "./index-1db49c1a.js";
|
|
60
60
|
import { CloseIcon as Qt } from "./components/icons/CloseIcon.js";
|
|
61
61
|
import { PropertyItem as Ir } from "./components/layout/toolbar/PropertyItem.js";
|
|
62
62
|
import { useOtherToolContext as xr, OtherToolProvider as Rr } from "./contexts/OtherToolContext.js";
|
|
@@ -1042,7 +1042,7 @@ function Ot(e, t) {
|
|
|
1042
1042
|
var n = {};
|
|
1043
1043
|
for (var r in e)
|
|
1044
1044
|
if ({}.hasOwnProperty.call(e, r)) {
|
|
1045
|
-
if (t.
|
|
1045
|
+
if (t.indexOf(r) !== -1)
|
|
1046
1046
|
continue;
|
|
1047
1047
|
n[r] = e[r];
|
|
1048
1048
|
}
|
|
@@ -1922,7 +1922,7 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1922
1922
|
!p && /* @__PURE__ */ s(ee, { content: "Next page", children: /* @__PURE__ */ s(X, { onClick: r, disabled: e === t, children: /* @__PURE__ */ s(So, {}) }) })
|
|
1923
1923
|
] }) : null;
|
|
1924
1924
|
};
|
|
1925
|
-
var Ct = "Dialog", [gn, Zs] =
|
|
1925
|
+
var Ct = "Dialog", [gn, Zs] = gr(Ct), [Io, ae] = gn(Ct), vn = (e) => {
|
|
1926
1926
|
const {
|
|
1927
1927
|
__scopeDialog: t,
|
|
1928
1928
|
children: n,
|
|
@@ -1930,7 +1930,7 @@ var Ct = "Dialog", [gn, Zs] = Tr(Ct), [Io, ae] = gn(Ct), vn = (e) => {
|
|
|
1930
1930
|
defaultOpen: o,
|
|
1931
1931
|
onOpenChange: a,
|
|
1932
1932
|
modal: c = !0
|
|
1933
|
-
} = e, i = V.useRef(null), l = V.useRef(null), [p = !1, h] =
|
|
1933
|
+
} = e, i = V.useRef(null), l = V.useRef(null), [p = !1, h] = wr({
|
|
1934
1934
|
prop: r,
|
|
1935
1935
|
defaultProp: o,
|
|
1936
1936
|
onChange: a
|
|
@@ -1976,7 +1976,7 @@ var Pt = "DialogPortal", [Ro, wn] = gn(Pt, {
|
|
|
1976
1976
|
forceMount: void 0
|
|
1977
1977
|
}), bn = (e) => {
|
|
1978
1978
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = ae(Pt, t);
|
|
1979
|
-
return /* @__PURE__ */ s(Ro, { scope: t, forceMount: n, children: V.Children.map(r, (c) => /* @__PURE__ */ s(vt, { present: n || a.open, children: /* @__PURE__ */ s(
|
|
1979
|
+
return /* @__PURE__ */ s(Ro, { scope: t, forceMount: n, children: V.Children.map(r, (c) => /* @__PURE__ */ s(vt, { present: n || a.open, children: /* @__PURE__ */ s(yr, { asChild: !0, container: o, children: c }) })) });
|
|
1980
1980
|
};
|
|
1981
1981
|
bn.displayName = Pt;
|
|
1982
1982
|
var ke = "DialogOverlay", Cn = V.forwardRef(
|
|
@@ -1992,7 +1992,7 @@ var Lo = V.forwardRef(
|
|
|
1992
1992
|
return (
|
|
1993
1993
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1994
1994
|
// ie. when `Overlay` and `Content` are siblings
|
|
1995
|
-
/* @__PURE__ */ s(
|
|
1995
|
+
/* @__PURE__ */ s(Cr, { as: vr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
|
|
1996
1996
|
Ne.div,
|
|
1997
1997
|
{
|
|
1998
1998
|
"data-state": St(o.open),
|
|
@@ -2016,7 +2016,7 @@ var No = V.forwardRef(
|
|
|
2016
2016
|
return V.useEffect(() => {
|
|
2017
2017
|
const a = r.current;
|
|
2018
2018
|
if (a)
|
|
2019
|
-
return
|
|
2019
|
+
return Pr(a);
|
|
2020
2020
|
}, []), /* @__PURE__ */ s(
|
|
2021
2021
|
Tn,
|
|
2022
2022
|
{
|
|
@@ -2065,9 +2065,9 @@ var No = V.forwardRef(
|
|
|
2065
2065
|
), Tn = V.forwardRef(
|
|
2066
2066
|
(e, t) => {
|
|
2067
2067
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, i = ae(ve, n), l = V.useRef(null), p = gt(t, l);
|
|
2068
|
-
return
|
|
2068
|
+
return Tr(), /* @__PURE__ */ O(Ae, { children: [
|
|
2069
2069
|
/* @__PURE__ */ s(
|
|
2070
|
-
|
|
2070
|
+
Sr,
|
|
2071
2071
|
{
|
|
2072
2072
|
asChild: !0,
|
|
2073
2073
|
loop: !0,
|
|
@@ -2075,7 +2075,7 @@ var No = V.forwardRef(
|
|
|
2075
2075
|
onMountAutoFocus: o,
|
|
2076
2076
|
onUnmountAutoFocus: a,
|
|
2077
2077
|
children: /* @__PURE__ */ s(
|
|
2078
|
-
|
|
2078
|
+
br,
|
|
2079
2079
|
{
|
|
2080
2080
|
role: "dialog",
|
|
2081
2081
|
id: i.contentId,
|
|
@@ -2127,7 +2127,7 @@ xn.displayName = In;
|
|
|
2127
2127
|
function St(e) {
|
|
2128
2128
|
return e ? "open" : "closed";
|
|
2129
2129
|
}
|
|
2130
|
-
var Rn = "DialogTitleWarning", [js, Ln] =
|
|
2130
|
+
var Rn = "DialogTitleWarning", [js, Ln] = _r(Rn, {
|
|
2131
2131
|
contentName: ve,
|
|
2132
2132
|
titleName: Tt,
|
|
2133
2133
|
docsSlug: "dialog"
|