react-pdf-highlighter-plus 1.0.7 → 1.1.0
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 +50 -0
- package/dist/esm/index.d.ts +558 -9
- package/dist/esm/index.js +1280 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/style/PdfHighlighter.css +15 -1
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
overflow: auto;
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: 100%;
|
|
6
|
-
background-color
|
|
6
|
+
/* background-color is now controlled via inline style for theming */
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/* Style the scrollbar */
|
|
@@ -75,3 +75,17 @@
|
|
|
75
75
|
.PdfHighlighter--area-mode .textLayer {
|
|
76
76
|
cursor: crosshair;
|
|
77
77
|
}
|
|
78
|
+
|
|
79
|
+
/* Dark mode - softer inversion for comfortable reading
|
|
80
|
+
Uses 0.9 intensity by default for a dark gray (~#1a1a1a) instead of pure black.
|
|
81
|
+
The brightness adjustment helps maintain readability.
|
|
82
|
+
Note: These are fallback values - actual intensity is controlled via inline styles
|
|
83
|
+
when darkModeInvertIntensity is customized in the theme prop. */
|
|
84
|
+
.PdfHighlighter--dark .page {
|
|
85
|
+
filter: invert(0.9) hue-rotate(180deg) brightness(1.05);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Double-invert highlights to preserve their original colors */
|
|
89
|
+
.PdfHighlighter--dark .PdfHighlighter__highlight-layer {
|
|
90
|
+
filter: invert(0.9) hue-rotate(180deg) brightness(0.95);
|
|
91
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-pdf-highlighter-plus",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "Set of modern React components for PDF highlighting",
|
|
6
6
|
"author": "Edward Ha <quocvietha08@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"clean": "rm -rf dist public node_modules package-lock.json"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
+
"pdfjs-dist": "^4.4.168",
|
|
51
52
|
"react": "^18.3.1",
|
|
52
|
-
"react-dom": "^18.3.1"
|
|
53
|
-
"pdfjs-dist": "^4.0.0"
|
|
53
|
+
"react-dom": "^18.3.1"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@radix-ui/react-collapsible": "^1.1.12",
|