Skip to content

Commit 25eb05e

Browse files
committed
improvements + fixes, v.: 2.2.0
1 parent 5030bf7 commit 25eb05e

21 files changed

+643
-718
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ dist
119119
assets
120120
extension/web-ext-artifacts
121121
extension/manifest.json
122-
122+
doc/*.psd
123123
public

doc/logo.png

485 KB
Loading

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
78
<title>React Document Viewer</title>
89
<style>
910
html, body {

package.json

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-document-viewer",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "A React component to preview document of 'epub,mobi,pdf,xls,xlsx,docx and images', which can automatically identify file types.",
55
"main": "build/bundle.js",
66
"author": "Sergey Ko",
@@ -31,49 +31,48 @@
3131
"react-document-viewer"
3232
],
3333
"dependencies": {
34-
"@handsontable/react": "^14.5.0",
35-
"@zip.js/zip.js": "^2.7.52",
36-
"epubjs": "https://github.com/futurepress/epub.js.git",
34+
"@handsontable/react": "^14.6.1",
35+
"@zip.js/zip.js": "^2.7.53",
3736
"fflate": "^0.8.2",
3837
"foliate-js": "https://github.com/johnfactotum/foliate-js.git",
39-
"handsontable": "^14.5.0",
38+
"handsontable": "^14.6.1",
4039
"jszip": "^3.10.1",
4140
"mammoth": "^1.8.0",
42-
"pdfjs-dist": "4.5.136",
41+
"pdfjs-dist": "4.7.76",
4342
"react-icons": "^5.3.0",
4443
"xlsx": "^0.18.5"
4544
},
4645
"devDependencies": {
47-
"@tailwindcss/typography": "^0.5.14",
48-
"@types/node": "^22.2.0",
49-
"@types/react": "^18.3.3",
50-
"@types/react-dom": "^18.3.0",
51-
"@vitejs/plugin-react": "^4.3.1",
46+
"@tailwindcss/typography": "^0.5.15",
47+
"@types/node": "^22.8.6",
48+
"@types/react": "^18.3.12",
49+
"@types/react-dom": "^18.3.1",
50+
"@vitejs/plugin-react": "^4.3.3",
5251
"autoprefixer": "^10.4.20",
53-
"eslint": "^9.9.0",
52+
"eslint": "^9.13.0",
5453
"eslint-config-prettier": "^9.1.0",
55-
"eslint-plugin-react": "^7.35.0",
56-
"eslint-plugin-unused-imports": "^4.1.3",
54+
"eslint-plugin-react": "^7.37.2",
55+
"eslint-plugin-unused-imports": "^4.1.4",
5756
"html-to-react": "^1.7.0",
58-
"i18next": "^23.12.3",
57+
"i18next": "^23.16.4",
5958
"i18next-browser-languagedetector": "^8.0.0",
6059
"lodash.debounce": "^4.0.8",
61-
"postcss": "^8.4.41",
62-
"postcss-nesting": "^13.0.0",
60+
"postcss": "^8.4.47",
61+
"postcss-nesting": "^13.0.1",
6362
"prettier": "^3.3.3",
6463
"prop-types": "^15.8.1",
6564
"react": "^18.3.1",
6665
"react-dom": "^18.3.1",
67-
"react-i18next": "^15.0.1",
68-
"sass": "^1.77.8",
69-
"sass-embedded": "^1.77.8",
70-
"tailwindcss": "^3.4.10",
66+
"react-i18next": "^15.1.0",
67+
"sass": "^1.80.5",
68+
"sass-embedded": "^1.80.5",
69+
"tailwindcss": "^3.4.14",
7170
"tailwindcss-animated": "^1.1.2",
72-
"terser": "^5.34.1",
71+
"terser": "^5.36.0",
7372
"util": "^0.12.5",
74-
"vite": "^5.4.0",
75-
"vite-plugin-sass-dts": "^1.3.25",
76-
"vite-plugin-static-copy": "^1.0.6",
73+
"vite": "^5.4.10",
74+
"vite-plugin-sass-dts": "^1.3.29",
75+
"vite-plugin-static-copy": "^2.0.0",
7776
"xmldom": "^0.6.0"
7877
}
7978
}

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# react-document-viewer
1+
<p align="center">
2+
3+
![ReactDocViewer Logo](./doc/logo.png)
4+
5+
</p>
6+
7+
![React Document Viewer Version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fway5%2Freact-document-viewer%2Frefs%2Fheads%2Fdev%2Fpackage.json&query=%24.version&label=ReactDocViewer:&color=%23F86071)
28

39
### + INTRO
410

@@ -8,6 +14,7 @@ Accepted document formats:
814
- xls, xlsx
915
- pdf
1016
- epub
17+
- fb2
1118
- mobi
1219
- all images
1320

src/Definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface ViewerImageSize {
4040

4141
export interface FileDescriptor {
4242
src: string;
43-
fileName: string;
43+
name: string;
4444
defaultSize?: ViewerImageSize;
4545
}
4646

0 commit comments

Comments
 (0)