Skip to content

Commit

Permalink
Version update!
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielArnould committed Nov 28, 2023
1 parent 4871a0b commit 6e7f671
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
32 changes: 26 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
# 7.0.0

- Exposed pdfScaleValue as a stateful prop
- Made all components functional based
- Updated PDF.js dependency to 3.8.162
- Added onContextMenu event listeners to Highlight components
- Fixed clamping bug / tips not being displayed correctly on ultrawide monitors
- Exposed styling on all componenets
- Added default dark grey background to PdfHighlighter
- Removed generic types for Highlight and added GhostHighlight as a public type.
- Exposed selection color styling and changed default color to blue.
- Replaced callbacks for afterSelection with selectionTip prop and onSelectionFinished events.
- Created `useHighlightUtils`, `useTipContainerUtils`, `useTipViewerUtils`, and `useSelectionUtils` hooks.
- Removed callbacks for rendering highlights in PdfHighlighter and instead replaced it with expecting a user-defined HighlightContainer which will be supplied `useHighlightUtils`
- Expoed `viewer` and `tipViewerUtils` as optionl reference callbacks in the PdfHighlighter. This allows more customisable control of displaying tips or accessing PDF.js settings
- Changed PdfLoader props to accept document parameters inside of `document`. Also added `onProgressParameters` as a variable to `beforeLoad`
- Added option to specify bounds for AreaHighlight, defaulted to the page in the example app.
- Added documentation to almost all components
- **Lots** of refactoring.

# 6.0.0

* Support for React 18 (https://github.com/agentcooper/react-pdf-highlighter/pull/232)
* Fix for `usePdfCoordinates` (https://github.com/agentcooper/react-pdf-highlighter/pull/244)
- Support for React 18 (https://github.com/agentcooper/react-pdf-highlighter/pull/232)
- Fix for `usePdfCoordinates` (https://github.com/agentcooper/react-pdf-highlighter/pull/244)

# 5.3.0

* [Added support of multi-page highlights](https://github.com/agentcooper/react-pdf-highlighter/pull/167), thanks to @jonathanbyrne!
- [Added support of multi-page highlights](https://github.com/agentcooper/react-pdf-highlighter/pull/167), thanks to @jonathanbyrne!

# 3.0.0

* Update PDF.js dependency to 2.2.228.
- Update PDF.js dependency to 2.2.228.

# 2.1.1

* Enabled hyperlinks inside the PDF document (thanks @steevn).
- Enabled hyperlinks inside the PDF document (thanks @steevn).

# 2.0.0

* Renamed `PdfAnnotator` to `PdfHighlighter` all over the code for naming consistency.
- Renamed `PdfAnnotator` to `PdfHighlighter` all over the code for naming consistency.
1 change: 0 additions & 1 deletion example/src/HighlightContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const HighlightContainer = ({
onMouseOver={(popupContent) => {
if (isSelectionInProgress()) return;

console.log("Mouse in!");
const popupTip: Tip = {
position: highlight.position,
content: popupContent,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-pdf-highlighter-extended",
"version": "6.1.0",
"version": "7.0.0",
"description": "Set of modern React components for PDF highlighting",
"author": "Daniel Arnould <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 6e7f671

Please sign in to comment.