fix(deps): update dependency react-to-print to v3 #1103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.14.12
->^3.0.0
Release Notes
MatthewHerbst/react-to-print (react-to-print)
v3.0.2
Compare Source
<select>
option printed. Currently the first option is printed regardless of selection statev3.0.1
Compare Source
useReactToPrint
directly to event handlers (this is primarily geared at non-typescript users who are not aware of the new v3 API that prefers the function be wrapped, by changingonClick={printFn}
toonClick={() => printFn()}
)v3.0.0
Compare Source
v3.0.0 brings API modernization, React 19 support, a smaller package size, Shadow DOM support, and improved error handling.
BREAKING CHANGES
content
renamed tocontentRef
and type changed from() => React.ReactInstance
toRefObject<Element | Text>
. The core impact here is that Class components now need to have the ref forwarded via props internally to a DOM nodeonBeforeGetContent
removed. UseonBeforePrint
, which similar toonBeforeGetContent
, now runs before the print iframe is loadedremoveAfterPrint
renamed topreserveAfterPrint
which defaults tofalse
ReactToPrint
removed. UseuseReactToPrint
PrintContextConsumer
removed. UseuseReactToPrint
trigger
removed, use the function returned byuseReactToPrint
IReactToPrintProps
renamed toUseReactToPrintOptions
useReactToPrint
exportevent?: unknown
type fromuseReactToPrint
callback.optionalContent
is now the only (optional) argumentNew
canvas
elements have not properly loadedcopyShadowRoots
, to support copyingShadowRoot
s. Thanks boehlkeBeta Versions
3.0.0-beta-3
(19 Aug 2024)3.0.0-beta-2
(19 Aug 2024)3.0.0-beta-1
(15 Jul 2024)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.