react-to-print
Advanced tools
Comparing version 2.7.0-beta.2 to 2.7.0
# CHANGELOG | ||
## 2.7.0 (May 1st, 2020) | ||
- FEATURE [198](https://github.com/gregnb/react-to-print/pull/198): `pageStyle` prop can now be passed as a function. Thanks [sergeyshmakov](https://github.com/sergeyshmakov) | ||
- FIX [218](https://github.com/gregnb/react-to-print/issues/218): Image duplication in Edge and IE. This should also fix [211](https://github.com/gregnb/react-to-print/issues/211) (slow performance with many images on the page). Thank you [dioscarey](https://github.com/dioscarey) for helping to get this pushed through | ||
- Fix [93](https://github.com/gregnb/react-to-print/issues/93): Check for existence of `target.contentWindow.print` | ||
- CHORE: updated an error message (see [96](https://github.com/gregnb/react-to-print/issues/96)) | ||
- CHORE: updated all `devDependencies` to latest | ||
- CHORE: slightly decreased size of the build by better using UglifyJS | ||
- CHORE: enabled TypeScript strict mode | ||
- CHORE: added a "Compatibility" section to the README. Also moved some sections around and shortened the example | ||
- CHORE: improved browser built targets based on `browserslist` best practices | ||
## 2.6.3 (March 9th, 2020) | ||
@@ -4,0 +16,0 @@ |
{ | ||
"name": "react-to-print", | ||
"version": "2.7.0-beta.2", | ||
"version": "2.7.0", | ||
"description": "Print React components in the browser", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -12,4 +12,8 @@ <div align="center"> | ||
So you've created a React component but would love to give end users the ability to print out the contents of that component. This package aims to solve that by popping up a new print window with CSS styles copied over as well. | ||
So you've created a React component and would love to give end users the ability to print out the contents of that component. This package aims to solve that by popping up a print window with CSS styles copied over as well. | ||
## Demo | ||
[![Edit react-to-print](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/rzdhd) | ||
## Compatibility | ||
@@ -19,3 +23,3 @@ | ||
## Known Incompatible Browsers | ||
### Known Incompatible Browsers | ||
@@ -26,3 +30,3 @@ - Firefox Android (does not support [`window.print`](https://developer.mozilla.org/en-US/docs/Web/API/Window/print)) | ||
- `onAfterPrint` may fire immediately (before the print dialog is closed) on newer versions of Safari where `window.print` does not block | ||
- `onAfterPrint` may fire immediately (before the print dialog is closed) on newer versions of Safari where [`window.print`](https://developer.mozilla.org/en-US/docs/Web/API/Window/print) does not block | ||
@@ -33,6 +37,2 @@ ## Install | ||
## Demo | ||
[![Edit react-to-print](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/rzdhd) | ||
## API | ||
@@ -158,3 +158,3 @@ | ||
*Note*: related to the above, `img` tags with empty `src` attributes are also invalid, and we do not attempt to load them. | ||
*Note*: related to the above, `img` tags with empty `src` attributes are also invalid, and we may not attempt to load them. | ||
@@ -161,0 +161,0 @@ ### How do you make `ComponentToPrint` show only while printing |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
31918
1