@pdf-viewer/react 0.9.0-beta.9 → 1.0.0-rc.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.
Files changed (57) hide show
  1. package/dist/{RPDefaultLayout-c9484abe.js → RPDefaultLayout-e9ef78b9.js} +14 -14
  2. package/dist/components/RPConfig.js +318 -340
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/RPProvider.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  8. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  10. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  11. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  12. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  13. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  14. package/dist/components/layout/toolbar/MostPageTool.js +2 -2
  15. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  16. package/dist/components/layout/toolbar/Paginate.js +1 -1
  17. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  20. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  21. package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
  22. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  23. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  24. package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
  25. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  26. package/dist/components/page/AnnotationLayer.js +1 -1
  27. package/dist/components/page/CanvasLayer.js +1 -1
  28. package/dist/components/page/DualPage.js +1 -1
  29. package/dist/components/page/RPPage.js +1 -1
  30. package/dist/components/page/SinglePage.js +1 -1
  31. package/dist/components/page/TextLayer.js +1 -1
  32. package/dist/components/ui/Checkbox.js +252 -92
  33. package/dist/components/ui/DropDown.js +1 -1
  34. package/dist/components/ui/LoadingIndicator.js +1 -1
  35. package/dist/components/ui/RPTooltip.js +961 -224
  36. package/dist/contexts/PaginationContext.js +1 -1
  37. package/dist/contexts/PrintContext.js +1 -1
  38. package/dist/contexts/SearchContext.js +1 -1
  39. package/dist/contexts/ThumbnailsContext.js +1 -1
  40. package/dist/floating-ui.react-dom-e6d5fe8f.js +1327 -0
  41. package/dist/index-316854c1.js +2299 -0
  42. package/dist/index-71898eb9.js +139 -0
  43. package/dist/main.js +1 -1
  44. package/dist/types/utils/types.d.ts +1 -1
  45. package/dist/utils/hooks/useFileDownload.js +1 -1
  46. package/dist/utils/hooks/useLicense.js +1 -1
  47. package/dist/utils/hooks/usePaginate.js +1 -1
  48. package/dist/utils/hooks/usePdfProperties.js +5 -5
  49. package/dist/utils/hooks/usePrint.js +1 -1
  50. package/dist/utils/hooks/useScrollToPage.js +1 -1
  51. package/dist/utils/hooks/useSearch.js +1 -1
  52. package/dist/utils/hooks/useThumbnail.js +1 -1
  53. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  54. package/package.json +1 -1
  55. package/dist/index-1db49c1a.js +0 -1664
  56. package/dist/index-3dff3fa8.js +0 -307
  57. package/dist/index-4f17fe4d.js +0 -1657
@@ -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 { 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";
57
+ import { u as gt, a as Ne, c as xe, b as vt, d as gr, e as vr, h as _r, f as wr, F as br, D as Cr, g as Pr, G as Fe } from "./index-316854c1.js";
58
+ import { c as Tr, e as Sr, b as yr } from "./index-71898eb9.js";
59
+ import { e as Ke } from "./floating-ui.react-dom-e6d5fe8f.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.indexOf(r) !== -1)
1045
+ if (t.includes(r))
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] = gr(Ct), [Io, ae] = gn(Ct), vn = (e) => {
1925
+ var Ct = "Dialog", [gn, Zs] = Tr(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] = gr(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] = wr({
1933
+ } = e, i = V.useRef(null), l = V.useRef(null), [p = !1, h] = yr({
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(yr, { asChild: !0, container: o, children: c }) })) });
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(Pr, { 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(Cr, { as: vr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
1995
+ /* @__PURE__ */ s(gr, { 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 Pr(a);
2019
+ return _r(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 Tr(), /* @__PURE__ */ O(Ae, { children: [
2068
+ return wr(), /* @__PURE__ */ O(Ae, { children: [
2069
2069
  /* @__PURE__ */ s(
2070
- Sr,
2070
+ br,
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
- br,
2078
+ Cr,
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] = _r(Rn, {
2130
+ var Rn = "DialogTitleWarning", [js, Ln] = Sr(Rn, {
2131
2131
  contentName: ve,
2132
2132
  titleName: Tt,
2133
2133
  docsSlug: "dialog"
@@ -2169,7 +2169,7 @@ const ge = {
2169
2169
  createdOn: h,
2170
2170
  creator: f,
2171
2171
  keywords: u,
2172
- modifierOn: m,
2172
+ modifiedOn: m,
2173
2173
  pdfProducer: g,
2174
2174
  pdfVersion: _,
2175
2175
  pageCount: v