react-book-reader 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/README.md +8 -10
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
  <img width=250 src="https://raw.githubusercontent.com/jinhuan138/react-book-reader/master/docs/public/logo.png" />
3
- <h1>ReactReader</h1>
3
+ <h1>ReactBookReader</h1>
4
4
  </div>
5
5
 
6
6
  <p>
@@ -17,7 +17,7 @@
17
17
 
18
18
  <div align="center">
19
19
  <h2><a href="https://jinhuan138.github.io/react-book-reader/">📖Documentation</a></h2>
20
-
20
+ </div>
21
21
 
22
22
  # Introduction
23
23
 
@@ -35,13 +35,11 @@ And in your react-component...
35
35
  ```jsx
36
36
  import { ReactReader } from 'react-book-reader'
37
37
 
38
- export default () => {
39
- return (
40
- <div style={{ height: '100vh' }}>
41
- {/* Supports EPUB, MOBI, KF8 (AZW3), FB2, CBZ, PDF */}
42
- <ReactReader url="/files/啼笑因缘.epub" />
43
- </div>
44
- )
45
- }
38
+ export default () => (
39
+ <div style={{ height: '100vh' }}>
40
+ {/* Supports EPUB, MOBI, KF8 (AZW3), FB2, CBZ, PDF */}
41
+ <ReactReader url="files/啼笑因缘.epub" />
42
+ </div>
43
+ );
46
44
  ```
47
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-book-reader",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "main": "lib/react-book-reader.cjs.js",
6
6
  "module": "lib/react-book-reader.es.js",
@@ -11,6 +11,7 @@
11
11
  "react",
12
12
  "ebook",
13
13
  "reader",
14
+ "foliate-js",
14
15
  "epub",
15
16
  "MOBI",
16
17
  "KF8",
@@ -41,7 +42,7 @@
41
42
  "eslint-plugin-react-refresh": "^0.4.6",
42
43
  "prettier": "^3.2.5",
43
44
  "react": "^18.3.1",
44
- "react-book-reader": "^1.0.1",
45
+ "react-book-reader": "^1.1.0",
45
46
  "react-dom": "^18.2.0",
46
47
  "typescript": "^5.2.2",
47
48
  "vite": "^7.3.1",