Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-pdf/types

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf/types - npm Package Compare versions

Comparing version 2.0.9 to 2.1.0

bookmark.d.ts

12

CHANGELOG.md
# @react-pdf/types
## 2.1.0
### Minor Changes
- [#1862](https://github.com/diegomura/react-pdf/pull/1862) [`1411d16`](https://github.com/diegomura/react-pdf/commit/1411d162e04ca237bad93729695c363fdf4bdbeb) Thanks [@diegomura](https://github.com/diegomura)! - feat: bookmarks support
* [#1867](https://github.com/diegomura/react-pdf/pull/1867) [`4fadb48`](https://github.com/diegomura/react-pdf/commit/4fadb48983d7269452f89f80c7e341ece859aaee) Thanks [@diegomura](https://github.com/diegomura)! - feat: add page layout support
- [#1868](https://github.com/diegomura/react-pdf/pull/1868) [`ce8762f`](https://github.com/diegomura/react-pdf/commit/ce8762f6de5c796e69ec5a225c7f3ff9c619a960) Thanks [@diegomura](https://github.com/diegomura)! - feat: add page mode support
* [#1869](https://github.com/diegomura/react-pdf/pull/1869) [`5d2c308`](https://github.com/diegomura/react-pdf/commit/5d2c3088cf438a8abf1038b14a21117fecf59d57) Thanks [@diegomura](https://github.com/diegomura)! - feat: variable dpi
## 2.0.9

@@ -4,0 +16,0 @@

@@ -5,2 +5,3 @@ import { Style } from './style';

import { PageSize, Orientation } from './page';
import { Bookmark } from './bookmark';

@@ -12,2 +13,3 @@ interface BaseProps {

debug?: boolean;
bookmark?: Bookmark;
minPresenceAhead?: number;

@@ -38,4 +40,21 @@ }

orientation?: Orientation;
dpi?: number;
}
type PageLayout =
| 'singlePage'
| 'oneColumn'
| 'twoColumnLeft'
| 'twoColumnRight'
| 'twoPageLeft'
| 'twoPageRight';
type PageMode =
| 'useNone'
| 'useOutlines'
| 'useThumbs'
| 'fullScreen'
| 'useOC'
| 'useAttachments';
interface DocumentProps {

@@ -48,2 +67,4 @@ title?: string;

producer?: string;
pageLayout?: PageLayout;
pageMode?: PageMode;
}

@@ -50,0 +71,0 @@

2

package.json
{
"name": "@react-pdf/types",
"version": "2.0.9",
"version": "2.1.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "React-pdf TypeScript definitions",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc