@react-pdf-kit/viewer 2.7.4-rc.2 → 2.7.4
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 +15 -15
- package/dist/utils/hooks/useLicense.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ As developers ourselves, we faced many issues such as browser incompatibility an
|
|
|
51
51
|
- 📂 **Document Management Tools**, including features like downloading and printing.
|
|
52
52
|
- 👁️ **Accessibility Support** to built-in support for ARIA attributes and tooltips, catering to diverse user bases.
|
|
53
53
|
|
|
54
|
-
For the full feature set, visit [React PDF Kit Features](https://www.react-pdf-kit.dev/features
|
|
54
|
+
For the full feature set, visit [React PDF Kit Features](https://www.react-pdf-kit.dev/features).
|
|
55
55
|
|
|
56
56
|
# :zap: Quick Start Guide
|
|
57
57
|
|
|
@@ -82,13 +82,13 @@ As newer PDF.js versions rely on more modern browser APIs, minimum supported bro
|
|
|
82
82
|
|
|
83
83
|
React PDF Kit v2.0.0 defaults to PDF.js `5.4.530`.
|
|
84
84
|
|
|
85
|
-
| Configuration
|
|
86
|
-
|
|
|
87
|
-
| React PDF Kit v2
|
|
88
|
-
| [React PDF Kit v2 + Polyfills](https://www.react-pdf-kit.dev/docs/usage-guide/legacy-browser-support.html#polyfills-library
|
|
89
|
-
| [React PDF Kit v2 + Polyfills + Legacy PDF.js Worker](https://www.react-pdf-kit.dev/docs/usage-guide/legacy-browser-support.html#override-the-pdfjs-worker
|
|
85
|
+
| Configuration | Chrome | Firefox | Edge | Safari | Safari iOS | Chrome Android |
|
|
86
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------- | ---- | ------ | ---------- | -------------- |
|
|
87
|
+
| React PDF Kit v2 | 126+ | 126+ | 126+ | 18.4+ | 18.4+ | 126+ |
|
|
88
|
+
| [React PDF Kit v2 + Polyfills](https://www.react-pdf-kit.dev/docs/usage-guide/legacy-browser-support.html#polyfills-library) | 119+ | 121+ | 119+ | 18.3+ | 18.3+ | 119+ |
|
|
89
|
+
| [React PDF Kit v2 + Polyfills + Legacy PDF.js Worker](https://www.react-pdf-kit.dev/docs/usage-guide/legacy-browser-support.html#override-the-pdfjs-worker) | 101+ | 101+ | 101+ | 16.5+ | 16.5+ | 101+ |
|
|
90
90
|
|
|
91
|
-
To change the version of PDF.js used, refer to [Dependency Override](https://www.react-pdf-kit.dev/docs/usage-guide/overriding-dependency
|
|
91
|
+
To change the version of PDF.js used, refer to [Dependency Override](https://www.react-pdf-kit.dev/docs/usage-guide/overriding-dependency) guide.
|
|
92
92
|
|
|
93
93
|
## 2. Install the Package
|
|
94
94
|
|
|
@@ -127,7 +127,7 @@ yarn add @react-pdf-kit/viewer
|
|
|
127
127
|
pnpm add @react-pdf-kit/viewer
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
For more information on how to use different package managers, please visit our [installation guide](https://www.react-pdf-kit.dev/docs/introduction/getting-started/#installation
|
|
130
|
+
For more information on how to use different package managers, please visit our [installation guide](https://www.react-pdf-kit.dev/docs/introduction/getting-started/#installation).
|
|
131
131
|
|
|
132
132
|
## 3. Import and Use the Component
|
|
133
133
|
|
|
@@ -153,7 +153,7 @@ The following structure demonstrates how to build a React PDF viewer by importin
|
|
|
153
153
|
</RPConfig>
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
_Remark: For more information on each component, please refer to [Component](https://www.react-pdf-kit.dev/docs/components/overview
|
|
156
|
+
_Remark: For more information on each component, please refer to [Component](https://www.react-pdf-kit.dev/docs/components/overview)._
|
|
157
157
|
|
|
158
158
|
### Basic Usage
|
|
159
159
|
|
|
@@ -178,7 +178,7 @@ const App = () => {
|
|
|
178
178
|
export default App
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
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://www.react-pdf-kit.dev/docs/introduction/basic-usage
|
|
181
|
+
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://www.react-pdf-kit.dev/docs/introduction/basic-usage)
|
|
182
182
|
|
|
183
183
|
You may also check out our [Starter Toolkit](#pushpin-starter-toolkit) for examples to get you started.
|
|
184
184
|
|
|
@@ -228,7 +228,7 @@ Here are some sample projects to get started on React PDF quickly:
|
|
|
228
228
|
|
|
229
229
|
# 📝 Changelog
|
|
230
230
|
|
|
231
|
-
Check out our latest release [v2.7.3 (9 July 2026)](https://www.react-pdf-kit.dev/docs/introduction/changelog/#v273-9-July-2026
|
|
231
|
+
Check out our latest release [v2.7.3 (9 July 2026)](https://www.react-pdf-kit.dev/docs/introduction/changelog/#v273-9-July-2026)
|
|
232
232
|
|
|
233
233
|
# :raising_hand: Need Help?
|
|
234
234
|
|
|
@@ -236,9 +236,9 @@ We are more than happy to help you. If you have any questions, run into any erro
|
|
|
236
236
|
|
|
237
237
|
# :page_facing_up: License
|
|
238
238
|
|
|
239
|
-
React PDF Kit is distributed under our proprietary license. Please refer to our [License page](https://www.react-pdf-kit.dev/license-agreement
|
|
239
|
+
React PDF Kit is distributed under our proprietary license. Please refer to our [License page](https://www.react-pdf-kit.dev/license-agreement) file for more details.
|
|
240
240
|
|
|
241
|
-
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
|
|
241
|
+
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).
|
|
242
242
|
|
|
243
243
|
# Acknowledgement
|
|
244
244
|
|
|
@@ -247,7 +247,7 @@ If you would like to use React PDF commercially, please purchase a license from
|
|
|
247
247
|
- [Img Shields](https://shields.io)
|
|
248
248
|
- [React.js](https://reactjs.org/)
|
|
249
249
|
|
|
250
|
-
[reactpdf]: https://www.react-pdf-kit.dev
|
|
251
|
-
[reactpdf-docs]: https://www.react-pdf-kit.dev/docs
|
|
250
|
+
[reactpdf]: https://www.react-pdf-kit.dev/
|
|
251
|
+
[reactpdf-docs]: https://www.react-pdf-kit.dev/docs/
|
|
252
252
|
[npm]: https://www.npmjs.com/package/@react-pdf-kit/viewer
|
|
253
253
|
[twitter]: https://www.x.com/ReactPDF
|
|
@@ -3,7 +3,7 @@ import { LicenseType as t } from "../types.js";
|
|
|
3
3
|
import { appConsole as n } from "../appConsole.js";
|
|
4
4
|
import { useCallback as r, useEffect as i, useState as a } from "react";
|
|
5
5
|
//#region lib/utils/hooks/useLicense.ts
|
|
6
|
-
var o = /* @__PURE__ */ new Date("2026-07-
|
|
6
|
+
var o = /* @__PURE__ */ new Date("2026-07-24T10:09:07.912Z"), s = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvIokvErJ0Fctu0jduSAx\ngr+5Har/VSuZLlOunS28hnlqqA+OF1apHL7RYkjBosS15yvviYdLrVWYHpHnoY4b\nHLQ9I6YX6FMB9T/VbB4xLdVdKvfi8r49aTScl5EKuSpgpPgz2VSJTfvVGcRuth/Y\nBm7PPGYdL2l2gvKDxchmmsHFPukGki9L4JOUeIVX0GXAxabENckaEH/iC1NZhX+W\nvXnpHeHuIIKlZ16LSivXNgo6BH2Z3GFdg4G3cAaXr6qNP8fsacYNqv2SpTW1viFD\nvzcGRabN25gpJAp9/syeScefWH3OiJY1lmw88oTiJbjIoiq6AkPhfn3G9mF54nvR\nkwIDAQAB\n-----END PUBLIC KEY-----", c = "Please visit https://app.react-pdf-kit.dev to generate a new license key.", l = {
|
|
7
7
|
invalidLicense: `You are currently using without a valid license. ${c}`,
|
|
8
8
|
mismatchedDomain: `Your license key is not valid for the current domain / IP. ${c}`,
|
|
9
9
|
expired: `Your license key has expired. ${c}`,
|