@react-pdf-kit/viewer 2.0.1-rc.2 → 2.1.0-beta.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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <a href="https://www.react-pdf-kit.dev/" target="_blank">
2
+ <a href="https://www.react-pdf.dev/" target="_blank">
3
3
  <picture>
4
4
  <source srcset="https://raw.githubusercontent.com/pdf-viewer-react/react-pdf/2308e7d88cde64bf343f1509150ebf6c91a15664/assets/img/react-pdf_cover.webp" width="100%">
5
5
  <img alt="React PDF" src="https://raw.githubusercontent.com/pdf-viewer-react/react-pdf/2308e7d88cde64bf343f1509150ebf6c91a15664/assets/img/react-pdf_cover.webp" width="100%">
@@ -9,32 +9,28 @@
9
9
 
10
10
  <br/>
11
11
  <div align="center">
12
- Works seamlessly on your React or Next.js websites. Fast, Customizable and Web Responsive PDF viewer. Save you weeks of development time.
12
+ Works seamlessly on your React.js websites. Fast, Customizable and Web Responsive PDF viewer. Save you weeks of development time.
13
13
  </div>
14
14
  <br/>
15
15
 
16
16
  <div align="center">
17
17
 
18
- [React PDF Kit Home][reactpdf] - [License](#page_facing_up-license) - [Documentation][reactpdf-docs]
18
+ [React PDF Home][reactpdf] - [License](#page_facing_up-license) - [Documentation][reactpdf-docs]
19
19
 
20
- [![NPM Version](https://img.shields.io/npm/v/%40react-pdf-kit%2Fviewer)][npm]
20
+ [![NPM Version](https://img.shields.io/npm/v/%40pdf-viewer%2Freact)][npm]
21
21
  [![Twitter](https://img.shields.io/twitter/follow/ReactPDF?label=ReactPDF&style=social)][twitter]
22
22
 
23
23
  </div>
24
24
 
25
- # :star: Why React PDF Kit
25
+ # :star: Why React PDF
26
26
 
27
- - **Save Weeks of Development Time**: React PDF Kit simplifies PDF integration with ready-to-use tools, minimizing the need for custom development and saving you valuable time.
27
+ - **Save Weeks of Development Time**: React PDF simplifies PDF integration with ready-to-use tools, minimizing the need for custom development and saving you valuable time.
28
28
  - **Tailored for React.js**: React PDF is native to React.js, ensuring smooth integration into your projects.
29
29
  - **Customizability at Its Core**: Built with flexibility in mind, allowing you to match your application’s unique style and functionality.
30
30
  - **High-Performance & Rapid Rendering**: Optimized for rendering large PDFs efficiently, React PDF delivers lightning-fast load times with features like virtual scrolling.
31
- - **Accessibility**: Designed with inclusivity in mind, React PDF Kit supports ARIA attributes, catering to diverse user bases.
32
- - **Modern Browser Compatibility**: The React PDF Viewer components seamlessly across modern browsers, eliminating compatibility headaches.
33
- - **Active Development & Support**: With regular updates and a responsive support team, React PDF Kit evolves to meet developer needs.
34
-
35
- # 📜 Background
36
-
37
- As developers ourselves, we faced many issues such as browser incompatibility and customizability while trying to render a PDF document or working with PDF libraries. Having faced issues using PDF libraries, we want the solution to be flexible for React.js developers and teams. More importantly, the technical document must be easy to use!
31
+ - **Accessibility**: Designed with inclusivity in mind, React PDF supports ARIA attributes, catering to diverse user bases.
32
+ - **Modern Browser Compatibility**: Works seamlessly across modern browsers, eliminating compatibility headaches.
33
+ - **Active Development & Support**: With regular updates and a responsive support team, React PDF evolves to meet developer needs.
38
34
 
39
35
  # 📜 Background
40
36
 
@@ -51,58 +47,35 @@ As developers ourselves, we faced many issues such as browser incompatibility an
51
47
  - 📂 **Document Management Tools**, including features like downloading and printing.
52
48
  - 👁️ **Accessibility Support** to built-in support for ARIA attributes and tooltips, catering to diverse user bases.
53
49
 
54
- For the full feature set, visit [React PDF Kit Features](https://www.react-pdf-kit.dev/features?utm_source=github&utm_medium=referral).
50
+ For the full feature set, visit [React PDF Features](https://www.react-pdf.dev/features?utm_source=github).
55
51
 
56
52
  # :zap: Quick Start Guide
57
53
 
58
- Here’s how to get started with React PDF Kit in your React.js project:
54
+ Here’s how to get started with React PDF in your React.js project:
59
55
 
60
- ## 1. Check Prerequsities
56
+ ## 1. Check Prerequisites
61
57
 
62
- Here are the basic system requirements to run the React PDF Viewer component:
58
+ Here are the basic system requirements to run the React PDF component:
63
59
 
64
60
  - React version: >= 18.0
65
- - React version: >= 19.0
66
61
 
67
- If you are working with a React framework such as Next.js (App Router and Pages Router) or Gatsby, React PDF can run smoothly as long as you are using React 18 and above.
62
+ If you are working with a React framework such as Next and Gatsby, React PDF can run smoothly as long as you are using React 18 and above.
68
63
 
69
- React PDF also works well with other React.js UI libraries such as MUI, Ant Design and Chakra UI.
64
+ React PDF viewer also works well with other React.js UI libraries such as MUI, Ant Design and Chakra UI.
70
65
 
71
- Although React PDF Kit can run on most JavaScript module bundlers, it is more vigorously tested on Vite and Webpack.
66
+ Although React PDF can run on most JavaScript module bundlers, it is more vigorously tested on Vite and Webpack.
72
67
 
73
68
  _Remark: <br/>- If using TypeScript, it requires >= TypeScript 4.6._
74
69
 
75
70
  ### Browser support
76
71
 
77
- Starting from [`@react-pdf-kit/viewer@^2.0.0`](https://www.npmjs.com/package/@react-pdf-kit/viewer), we officially support PDF.js 5 and default to PDF.js `5.4.530`.
78
-
79
- As newer PDF.js versions rely on more modern browser APIs, minimum supported browser versions have changed. Please review the compatibility details below before choosing a PDF.js version.
80
-
81
- #### Default (PDF.js 5.4.530)
82
-
83
- React PDF Kit v2.0.0 defaults to PDF.js `5.4.530`.
84
-
85
72
  | Chrome | Firefox | Edge | Safari | Safari iOS | Chrome Android |
86
73
  | ------ | ------- | ---- | ------ | ---------- | -------------- |
87
- | 126+ | 126+ | 126+ | 18.4+ | 18.4+ | 126+ |
88
-
89
- <Aside>
90
- It's currently not recommended to use a PDF.js worker version beyond `5.4.530` because it will support fewer browser versions.
91
- </Aside>
92
-
93
- #### Using PDF.js 4.10.38
94
-
95
- If you need broader browser compatibility, you can continue using PDF.js `4.10.38`, which supports:
96
-
97
- | Chrome | Firefox | Edge | Safari | Safari iOS | Chrome Android |
98
- | ------ | ------- | ---- | ------ | ---------- | -------------- |
99
- | 119+ | 115+ | 115+ | 17.4+ | 17.4+ | 126+ |
100
-
101
- To change the version of PDF.js used, refer to [Dependency Override](https://docs.react-pdf-kit.dev/usage-guide/overriding-dependency?utm_source=github&utm_medium=referral) guide.
74
+ | 115+ | 115+ | 115+ | 16.5+ | 16.5+ | 126+ |
102
75
 
103
76
  ## 2. Install the Package
104
77
 
105
- There are a few ways you can install React PDF Kit, namely `bun`, `npm`, `pnpm` or `yarn`.
78
+ There are a few ways you can install React PDF, namely `bun`, `npm`, `pnpm` or `yarn`.
106
79
 
107
80
  ### Using bun:
108
81
 
@@ -137,42 +110,50 @@ yarn add @react-pdf-kit/viewer
137
110
  pnpm add @react-pdf-kit/viewer
138
111
  ```
139
112
 
140
- For more information on how to use different package managers, please visit our [installation guide](https://docs.react-pdf-kit.dev/introduction/getting-started/#installation?utm_source=github&utm_medium=referral).
113
+ For more information on how to use different package managers, please visit our [installation guide](https://docs.react-pdf.dev/introduction/getting-started.html#installation?utm_source=github).
141
114
 
142
115
  ## 3. Import and Use the Component
143
116
 
144
117
  The following structure demonstrates how to build a React PDF viewer by importing and assembling components. This modular approach gives you the flexibility to customize the viewer as needed.
145
118
 
146
119
  ```tsx
147
- <RPConfig> {/* Configuration license and pdfjs-dist worker */}
148
- <RPTheme> {/* Theme customization (optional) */}
149
- <RPProvider> {/* Viewer context provider */}
150
- <RPLayout toolbar> {/* Provide the default toolbar structure */}
151
- <RPPages /> {/* Render the actual PDF content */}
152
- </RPLayout>
153
- </RPProvider>
154
- </RPTheme>
120
+ <RPConfig>
121
+ {' '}
122
+ {/* Configuration license and pdfjs-dist worker */}
123
+ <RPProvider>
124
+ {' '}
125
+ {/* Viewer context provider */}
126
+ <RPTheme>
127
+ {' '}
128
+ {/* Theme customization (optional) */}
129
+ <RPDefaultLayout>
130
+ {' '}
131
+ {/* Default layout container */}
132
+ <RPPages /> {/* PDF pages renderer */}
133
+ </RPDefaultLayout>
134
+ </RPTheme>
135
+ </RPProvider>
155
136
  </RPConfig>
156
137
  ```
157
138
 
158
- _Remark: For more information on each component, please refer to [Component](https://docs.react-pdf-kit.dev/components/overview?utm_source=github&utm_medium=referral)._
139
+ _Remark: For more information on each component, please refer to [Component](https://docs.react-pdf.dev/components/overview?utm_source=github)._
159
140
 
160
141
  ### Basic Usage
161
142
 
162
- The most basic usage of React PDF viewer needs four components, namely: `RPConfig`, `RPProvider`, `RPLayout`, and `RPPages`.
143
+ The most basic usage of React PDF viewer needs four components, namely: `RPConfig`, `RPProvider`, `RPDefaultLayout`, and `RPPages`.
163
144
 
164
145
  Here's how to implement a basic PDF viewer in a React application:
165
146
 
166
147
  ```jsx
167
- import { RPProvider, RPLayout, RPPages, RPConfig } from '@react-pdf-kit/viewer'
148
+ import { RPProvider, RPDefaultLayout, RPPages, RPConfig } from '@react-pdf-kit/viewer'
168
149
 
169
150
  const App = () => {
170
151
  return (
171
152
  <RPConfig>
172
153
  <RPProvider src="https://cdn.codewithmosh.com/image/upload/v1721763853/guides/web-roadmap.pdf">
173
- <RPLayout toolbar style={{ height: '660px' }}>
154
+ <RPDefaultLayout style={{ height: '660px' }}>
174
155
  <RPPages />
175
- </RPLayout>
156
+ </RPDefaultLayout>
176
157
  </RPProvider>
177
158
  </RPConfig>
178
159
  )
@@ -180,13 +161,13 @@ const App = () => {
180
161
  export default App
181
162
  ```
182
163
 
183
- The PDF viewer will automatically adjust to fit its container's dimensions. You can control the size by setting the `style` prop on `RPLayout`. For more information on using React PDF, visit our [basic usage guide](https://docs.react-pdf-kit.dev/introduction/basic-usage?utm_source=github&utm_medium=referral)
164
+ The PDF viewer will automatically adjust to fit its container's dimensions. You can control the size by setting the `style` prop on `RPDefaultLayout`. For more information on using React PDF, visit our [basic usage guide](https://docs.react-pdf.dev/introduction/basic-usage?utm_source=github)
184
165
 
185
166
  You may also check out our [Starter Toolkit](#pushpin-starter-toolkit) for examples to get you started.
186
167
 
187
168
  ### 4. Customize with Hooks and Props
188
169
 
189
- To enhance React PDF Kit further, we offer built-in hooks and props that let you fine-tune functionality, adjust appearance, and integrate custom behaviors into your application.
170
+ To enhance React PDF further, we offer built-in hooks and props that let you fine-tune functionality, adjust appearance, and integrate custom behaviors into your application.
190
171
 
191
172
  For detailed usage, refer to our [Documentation][reactpdf-docs].
192
173
 
@@ -195,31 +176,11 @@ For detailed usage, refer to our [Documentation][reactpdf-docs].
195
176
  Here are some sample projects to get started on React PDF quickly:
196
177
 
197
178
  1. [React (webpack) - JavaScript](https://github.com/react-pdf-kit/starter-rp-react-js-webpack)
198
- 2. [React (webpack) - TypeScript](https://github.com/react-pdf-kit/starter-rp-react-ts-webpack)
179
+ 2. [React (webpack) - TypeScript](https://github.com/reactpdf/pdf-viewer-react/starter-rp-react-ts-webpack)
199
180
  3. [React (vite) - JavaScript](https://github.com/react-pdf-kit/starter-rp-react-js-vite)
200
181
  4. [React (vite) - TypeScript](https://github.com/react-pdf-kit/starter-rp-react-ts-vite)
201
- 5. [React (vite) - TypeScript - Turborepo](https://github.com/react-pdf-kit/starter-rp-react-vite-ts-turborepo)
202
- 6. [Next.js - JavaScript (App Router)](https://github.com/react-pdf-kit/starter-rp-nextjs-app-router-js)
203
- 7. [Next.js - TypeScript (App Router)](https://github.com/react-pdf-kit/starter-rp-nextjs-app-router-ts)
204
- 8. [Next.js - JavaScript (Pages Router)](https://github.com/react-pdf-kit/starter-rp-nextjs-pages-router-js)
205
- 9. [Next.js - TypeScript (Pages Router)](https://github.com/react-pdf-kit/starter-rp-nextjs-pages-router-ts)
206
- 10. [Next.js - TypeScript - Turborepo](https://github.com/react-pdf-kit/starter-rp-next-ts-turborepo)
207
- 11. [Remix - JavaScript](https://github.com/react-pdf-kit/starter-rp-remix-js)
208
- 12. [Remix - TypeScript](https://github.com/react-pdf-kit/starter-rp-remix-ts)
209
- 13. [Gatsby - JavaScript](https://github.com/react-pdf-kit/starter-rp-gatsby-js)
210
- 14. [Gatsby - TypeScript](https://github.com/react-pdf-kit/starter-rp-gatsby-ts)
211
- 15. [Docusaurus - JavaScript](https://github.com/react-pdf-kit/starter-rp-docusaurus-js)
212
- 16. [Docusaurus - TypeScript](https://github.com/react-pdf-kit/starter-rp-docusaurus-ts)
213
- 17. [Electron - JavaScript](https://github.com/react-pdf-kit/starter-rp-electron-js-vite)
214
- 18. [Electron - TypeScript](https://github.com/react-pdf-kit/starter-rp-electron-ts-vite)
215
- 19. [React Router - JavaScript](https://github.com/react-pdf-kit/starter-rp-react-router-js)
216
- 20. [React Router - TypeScript](https://github.com/react-pdf-kit/starter-rp-react-router-ts)
217
- 21. [TanStack - JavaScript](https://github.com/react-pdf-kit/starter-rp-tanstack-router-js)
218
- 22. [TanStack - TypeScript](https://github.com/react-pdf-kit/starter-rp-tanstack-router-ts)
219
-
220
- # 📝 Changelog
221
-
222
- Check out our latest release [v2.0.0 (20 February 2026)](https://docs.react-pdf-kit.dev/introduction/changelog/#v200-20-february-2026?utm_source=github&utm_medium=referral)
182
+ 5. [Next - JavaScript](https://github.com/react-pdf-kit/starter-rp-next-js)
183
+ 6. [Next - TypeScript](https://github.com/react-pdf-kit/starter-rp-next-ts)
223
184
 
224
185
  # :raising_hand: Need Help?
225
186
 
@@ -227,9 +188,9 @@ We are more than happy to help you. If you have any questions, run into any erro
227
188
 
228
189
  # :page_facing_up: License
229
190
 
230
- React PDF Kit is distributed under our proprietary license. Please refer to our [License page](https://www.react-pdf-kit.dev/license-agreement?utm_source=github&utm_medium=referral) file for more details.
191
+ React PDF is distributed under our proprietary license. Please refer to our [License page](https://www.react-pdf.dev/license-agreement?utm_source=github) file for more details.
231
192
 
232
- If you would like to use React PDF commercially, please purchase a license from [our website][reactpdf] or reach out to us directly at [https://www.react-pdf-kit.dev/contact-us](https://www.react-pdf-kit.dev/contact-us?utm_source=github&utm_medium=referral).
193
+ If you would like to use React PDF commercially, please purchase a license from [our website][reactpdf] or reach out to us directly at [david@react-pdf.dev](mailto:david@react-pdf.dev).
233
194
 
234
195
  # Acknowledgement
235
196
 
@@ -237,7 +198,7 @@ If you would like to use React PDF commercially, please purchase a license from
237
198
  - [Img Shields](https://shields.io)
238
199
  - [React.js](https://reactjs.org/)
239
200
 
240
- [reactpdf]: https://www.react-pdf-kit.dev/?utm_source=github&utm_medium=referral
241
- [reactpdf-docs]: https://docs.react-pdf-kit.dev/?utm_source=github&utm_medium=referral
201
+ [reactpdf]: https://www.react-pdf.dev
202
+ [reactpdf-docs]: https://docs.react-pdf.dev
242
203
  [npm]: https://www.npmjs.com/package/@react-pdf-kit/viewer
243
204
  [twitter]: https://www.x.com/ReactPDF
@@ -1,34 +1,34 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { useState as o, useId as D, useMemo as E } from "react";
3
- import { P as F } from "../PaginationContext-9217cab4.js";
4
- import { DarkModeProvider as G } from "../contexts/DarkModeContext.js";
5
- import { ViewMode as T, ScrollMode as b, SelectionMode as k } from "../utils/types.js";
6
- import { RotateProvider as x } from "../contexts/RotationContext.js";
7
- import { LayerProvider as y } from "../contexts/LayerContext.js";
8
- import { ZoomProvider as _ } from "../contexts/ZoomContext.js";
9
- import { ViewModeProvider as z } from "../contexts/ViewModeContext.js";
10
- import { ScrollModeProvider as A } from "../contexts/ScrollModeContext.js";
11
- import { VirtualScrollProvider as N } from "../contexts/VirtualScrollContext.js";
12
- import { VirtualGridProvider as Z } from "../contexts/VirtualGridContext.js";
13
- import { SelectionModeProvider as j } from "../contexts/SelectionModeContext.js";
14
- import { InitialStateProvider as H } from "../contexts/InitialStateContext.js";
15
- import { FullScreenProvider as O } from "../contexts/FullScreenContext.js";
16
- import { FileInputProvider as Q } from "../contexts/FileInputContext.js";
17
- import { PrintProvider as U } from "../contexts/PrintContext.js";
18
- import { DropFileZoneProvider as W } from "../contexts/DropFileZoneContext.js";
19
- import { ThumbnailProvider as X } from "../contexts/ThumbnailsContext.js";
20
- import { SearchProvider as $ } from "../contexts/SearchContext.js";
21
- import { LayoutContainerContext as q } from "../contexts/LayoutContainerContext.js";
22
- import { DimensionPagesProvider as B } from "../contexts/DimensionPagesContext.js";
23
- import { LocalizationProvider as J } from "../contexts/LocalizationContext.js";
24
- import { HighlightProvider as K } from "../contexts/HighlightContext.js";
25
- import { useWatermark as Y } from "../utils/hooks/useWatermark.js";
26
- import { DownloadProvider as rr } from "../contexts/DownloadContext.js";
27
- import { SmoothScrollProvider as or } from "../contexts/SmoothScrollContext.js";
28
- import { ElementPageProvider as ir } from "../contexts/ElementPageContext.js";
29
- import { PagesRotateProvider as er } from "../contexts/PagesRotateContext.js";
30
- import { RenderQueueProvider as tr } from "../contexts/RenderQueueProvider.js";
31
- import { GlobalCurrentPageProvider as mr } from "../contexts/GlobalCurrentPage.js";
2
+ import { useState as o } from "react";
3
+ import { P as w } from "../PaginationContext-9217cab4.js";
4
+ import { DarkModeProvider as D } from "../contexts/DarkModeContext.js";
5
+ import { ViewMode as E, ScrollMode as F, SelectionMode as G } from "../utils/types.js";
6
+ import { RotateProvider as I } from "../contexts/RotationContext.js";
7
+ import { LayerProvider as T } from "../contexts/LayerContext.js";
8
+ import { ZoomProvider as b } from "../contexts/ZoomContext.js";
9
+ import { ViewModeProvider as k } from "../contexts/ViewModeContext.js";
10
+ import { ScrollModeProvider as x } from "../contexts/ScrollModeContext.js";
11
+ import { VirtualScrollProvider as y } from "../contexts/VirtualScrollContext.js";
12
+ import { VirtualGridProvider as _ } from "../contexts/VirtualGridContext.js";
13
+ import { SelectionModeProvider as z } from "../contexts/SelectionModeContext.js";
14
+ import { InitialStateProvider as A } from "../contexts/InitialStateContext.js";
15
+ import { FullScreenProvider as N } from "../contexts/FullScreenContext.js";
16
+ import { FileInputProvider as Z } from "../contexts/FileInputContext.js";
17
+ import { PrintProvider as j } from "../contexts/PrintContext.js";
18
+ import { DropFileZoneProvider as H } from "../contexts/DropFileZoneContext.js";
19
+ import { ThumbnailProvider as O } from "../contexts/ThumbnailsContext.js";
20
+ import { SearchProvider as Q } from "../contexts/SearchContext.js";
21
+ import { LayoutContainerContext as U } from "../contexts/LayoutContainerContext.js";
22
+ import { DimensionPagesProvider as W } from "../contexts/DimensionPagesContext.js";
23
+ import { LocalizationProvider as X } from "../contexts/LocalizationContext.js";
24
+ import { HighlightProvider as q } from "../contexts/HighlightContext.js";
25
+ import { useWatermark as B } from "../utils/hooks/useWatermark.js";
26
+ import { DownloadProvider as J } from "../contexts/DownloadContext.js";
27
+ import { SmoothScrollProvider as K } from "../contexts/SmoothScrollContext.js";
28
+ import { ElementPageProvider as Y } from "../contexts/ElementPageContext.js";
29
+ import { PagesRotateProvider as $ } from "../contexts/PagesRotateContext.js";
30
+ import { RenderQueueProvider as rr } from "../contexts/RenderQueueProvider.js";
31
+ import { GlobalCurrentPageProvider as or } from "../contexts/GlobalCurrentPage.js";
32
32
  import "../contexts/RPDocumentContext.js";
33
33
  import "../utils/hooks/useLoadPdf.js";
34
34
  import "pdfjs-dist";
@@ -65,60 +65,59 @@ import "../utils/const.js";
65
65
  import "../utils/getElementPositionInPage.js";
66
66
  import "../utils/Queue.js";
67
67
  import "../utils/renderPage.js";
68
- const go = (m) => {
68
+ const so = (t) => {
69
69
  const {
70
- children: n,
71
- darkMode: l = !1,
72
- onDarkModeChange: d,
73
- initialRotation: p = 0,
74
- textLayer: a = !0,
75
- initialPage: c = 1,
76
- initialViewMode: f = T.SINGLE_PAGE,
77
- initialThumbnailsVisible: P = !1,
78
- initialSearch: h,
79
- initialScale: v,
80
- initialScrollMode: s = b.VERTICAL_SCROLLING,
81
- locale: u = "en_US",
82
- localization: S,
83
- downloadFilename: M,
84
- initialSelectionMode: g = k.TEXT,
70
+ children: m,
71
+ darkMode: n = !1,
72
+ onDarkModeChange: l,
73
+ initialRotation: d = 0,
74
+ textLayer: p = !0,
75
+ initialPage: a = 1,
76
+ initialViewMode: c = E.SINGLE_PAGE,
77
+ initialThumbnailsVisible: f = !1,
78
+ initialSearch: P,
79
+ initialScale: h,
80
+ initialScrollMode: v = F.VERTICAL_SCROLLING,
81
+ locale: s = "en_US",
82
+ localization: u,
83
+ downloadFilename: S,
84
+ initialSelectionMode: M = G.TEXT,
85
85
  interactiveForm: R = !0
86
- } = m, [C, L] = o(null), [i, I] = o(null), [V, w] = o(null), e = D(), t = E(() => `rp-instance-${e.replace(/:/g, "-")}`, [e]);
87
- return Y(t), /* @__PURE__ */ r(
88
- H,
86
+ } = t, [g, C] = o(null), [i, L] = o(null), [e, V] = o(null);
87
+ return B(e), /* @__PURE__ */ r(
88
+ A,
89
89
  {
90
- instanceId: t,
91
- initialScale: v,
92
- initialPage: c,
93
- initialScrollMode: s,
94
- initialRotation: p,
95
- initialViewMode: f,
90
+ initialScale: h,
91
+ initialPage: a,
92
+ initialScrollMode: v,
93
+ initialRotation: d,
94
+ initialViewMode: c,
96
95
  interactiveForm: R,
97
- children: /* @__PURE__ */ r(or, { children: /* @__PURE__ */ r(J, { locale: u, localization: S, children: /* @__PURE__ */ r(Z, { children: /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(z, { children: /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(j, { initialSelectionMode: g, children: /* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(er, { children: /* @__PURE__ */ r(y, { textLayer: a, children: /* @__PURE__ */ r(
98
- q.Provider,
96
+ children: /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(X, { locale: s, localization: u, children: /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(z, { initialSelectionMode: M, children: /* @__PURE__ */ r(I, { children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(T, { textLayer: p, children: /* @__PURE__ */ r(
97
+ U.Provider,
99
98
  {
100
99
  value: {
101
- container: C,
100
+ container: g,
102
101
  contentRef: i,
103
- pagesRef: V,
104
- setContainer: L,
105
- setContentRef: I,
106
- setPagesRef: w
102
+ pagesRef: e,
103
+ setContainer: C,
104
+ setContentRef: L,
105
+ setPagesRef: V
107
106
  },
108
- children: /* @__PURE__ */ r(mr, { children: /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(
109
- G,
107
+ children: /* @__PURE__ */ r(or, { children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(
108
+ D,
110
109
  {
111
- darkMode: l,
112
- onDarkModeChange: d,
113
- children: /* @__PURE__ */ r($, { initialSearch: h, children: /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(ir, { children: /* @__PURE__ */ r(tr, { children: /* @__PURE__ */ r(
114
- X,
110
+ darkMode: n,
111
+ onDarkModeChange: l,
112
+ children: /* @__PURE__ */ r(Q, { initialSearch: P, children: /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ r(
113
+ O,
115
114
  {
116
- initialThumbnailsVisible: P,
117
- children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(O, { elementRef: i, children: /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r(
118
- rr,
115
+ initialThumbnailsVisible: f,
116
+ children: /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r(N, { elementRef: i, children: /* @__PURE__ */ r(j, { children: /* @__PURE__ */ r(
117
+ J,
119
118
  {
120
- downloadFilename: M,
121
- children: /* @__PURE__ */ r(Q, { children: n })
119
+ downloadFilename: S,
120
+ children: /* @__PURE__ */ r(Z, { children: m })
122
121
  }
123
122
  ) }) }) })
124
123
  }
@@ -131,5 +130,5 @@ const go = (m) => {
131
130
  );
132
131
  };
133
132
  export {
134
- go as RPController
133
+ so as RPController
135
134
  };