react-native-simple-epub-reader 0.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.
Files changed (90) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +37 -0
  3. package/lib/module/components/GestureHandler/index.js +39 -0
  4. package/lib/module/components/GestureHandler/index.js.map +1 -0
  5. package/lib/module/components/Reader.js +207 -0
  6. package/lib/module/components/Reader.js.map +1 -0
  7. package/lib/module/constants/template.js +402 -0
  8. package/lib/module/constants/template.js.map +1 -0
  9. package/lib/module/constants/theme.js +43 -0
  10. package/lib/module/constants/theme.js.map +1 -0
  11. package/lib/module/context/ReaderContext.js +213 -0
  12. package/lib/module/context/ReaderContext.js.map +1 -0
  13. package/lib/module/context/types.js +4 -0
  14. package/lib/module/context/types.js.map +1 -0
  15. package/lib/module/helpers/downloadEpub.js +17 -0
  16. package/lib/module/helpers/downloadEpub.js.map +1 -0
  17. package/lib/module/helpers/loadScripts.js +21 -0
  18. package/lib/module/helpers/loadScripts.js.map +1 -0
  19. package/lib/module/helpers/saveTemplateToFile.js +21 -0
  20. package/lib/module/helpers/saveTemplateToFile.js.map +1 -0
  21. package/lib/module/helpers/webViewInjectFunctions.js +14 -0
  22. package/lib/module/helpers/webViewInjectFunctions.js.map +1 -0
  23. package/lib/module/hooks/useInjectWebviewVariables.js +20 -0
  24. package/lib/module/hooks/useInjectWebviewVariables.js.map +1 -0
  25. package/lib/module/hooks/useReaderState.js +117 -0
  26. package/lib/module/hooks/useReaderState.js.map +1 -0
  27. package/lib/module/index.js +6 -0
  28. package/lib/module/index.js.map +1 -0
  29. package/lib/module/package.json +1 -0
  30. package/lib/module/scripts/epub.js +14326 -0
  31. package/lib/module/scripts/epub.js.map +1 -0
  32. package/lib/module/scripts/jszip.js +6646 -0
  33. package/lib/module/scripts/jszip.js.map +1 -0
  34. package/lib/module/types/index.js +14 -0
  35. package/lib/module/types/index.js.map +1 -0
  36. package/lib/module/types/state.types.js +23 -0
  37. package/lib/module/types/state.types.js.map +1 -0
  38. package/lib/typescript/package.json +1 -0
  39. package/lib/typescript/src/components/GestureHandler/index.d.ts +5 -0
  40. package/lib/typescript/src/components/GestureHandler/index.d.ts.map +1 -0
  41. package/lib/typescript/src/components/Reader.d.ts +4 -0
  42. package/lib/typescript/src/components/Reader.d.ts.map +1 -0
  43. package/lib/typescript/src/constants/template.d.ts +3 -0
  44. package/lib/typescript/src/constants/template.d.ts.map +1 -0
  45. package/lib/typescript/src/constants/theme.d.ts +3 -0
  46. package/lib/typescript/src/constants/theme.d.ts.map +1 -0
  47. package/lib/typescript/src/context/ReaderContext.d.ts +7 -0
  48. package/lib/typescript/src/context/ReaderContext.d.ts.map +1 -0
  49. package/lib/typescript/src/context/types.d.ts +60 -0
  50. package/lib/typescript/src/context/types.d.ts.map +1 -0
  51. package/lib/typescript/src/helpers/downloadEpub.d.ts +2 -0
  52. package/lib/typescript/src/helpers/downloadEpub.d.ts.map +1 -0
  53. package/lib/typescript/src/helpers/loadScripts.d.ts +2 -0
  54. package/lib/typescript/src/helpers/loadScripts.d.ts.map +1 -0
  55. package/lib/typescript/src/helpers/saveTemplateToFile.d.ts +3 -0
  56. package/lib/typescript/src/helpers/saveTemplateToFile.d.ts.map +1 -0
  57. package/lib/typescript/src/helpers/webViewInjectFunctions.d.ts +4 -0
  58. package/lib/typescript/src/helpers/webViewInjectFunctions.d.ts.map +1 -0
  59. package/lib/typescript/src/hooks/useInjectWebviewVariables.d.ts +12 -0
  60. package/lib/typescript/src/hooks/useInjectWebviewVariables.d.ts.map +1 -0
  61. package/lib/typescript/src/hooks/useReaderState.d.ts +6 -0
  62. package/lib/typescript/src/hooks/useReaderState.d.ts.map +1 -0
  63. package/lib/typescript/src/index.d.ts +4 -0
  64. package/lib/typescript/src/index.d.ts.map +1 -0
  65. package/lib/typescript/src/scripts/epub.d.ts +3 -0
  66. package/lib/typescript/src/scripts/epub.d.ts.map +1 -0
  67. package/lib/typescript/src/scripts/jszip.d.ts +3 -0
  68. package/lib/typescript/src/scripts/jszip.d.ts.map +1 -0
  69. package/lib/typescript/src/types/index.d.ts +72 -0
  70. package/lib/typescript/src/types/index.d.ts.map +1 -0
  71. package/lib/typescript/src/types/state.types.d.ts +83 -0
  72. package/lib/typescript/src/types/state.types.d.ts.map +1 -0
  73. package/package.json +171 -0
  74. package/src/components/GestureHandler/index.tsx +63 -0
  75. package/src/components/Reader.tsx +262 -0
  76. package/src/constants/template.ts +399 -0
  77. package/src/constants/theme.ts +42 -0
  78. package/src/context/ReaderContext.tsx +265 -0
  79. package/src/context/types.ts +62 -0
  80. package/src/helpers/downloadEpub.ts +21 -0
  81. package/src/helpers/loadScripts.ts +22 -0
  82. package/src/helpers/saveTemplateToFile.ts +20 -0
  83. package/src/helpers/webViewInjectFunctions.ts +18 -0
  84. package/src/hooks/useInjectWebviewVariables.ts +51 -0
  85. package/src/hooks/useReaderState.ts +118 -0
  86. package/src/index.tsx +3 -0
  87. package/src/scripts/epub.ts +14323 -0
  88. package/src/scripts/jszip.ts +6643 -0
  89. package/src/types/index.ts +83 -0
  90. package/src/types/state.types.ts +86 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["context/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ import { File, Paths } from 'expo-file-system';
4
+ export const downloadEpub = async (url, fileName) => {
5
+ try {
6
+ const file = new File(Paths.document, fileName);
7
+ if (file.exists) {
8
+ return file.uri;
9
+ }
10
+ const downloadedFile = await File.downloadFileAsync(url, file);
11
+ return downloadedFile.uri;
12
+ } catch (error) {
13
+ console.error('Download Error:', error);
14
+ throw error;
15
+ }
16
+ };
17
+ //# sourceMappingURL=downloadEpub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["File","Paths","downloadEpub","url","fileName","file","document","exists","uri","downloadedFile","downloadFileAsync","error","console"],"sourceRoot":"../../../src","sources":["helpers/downloadEpub.ts"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AAE9C,OAAO,MAAMC,YAAY,GAAG,MAAAA,CAC1BC,GAAW,EACXC,QAAgB,KACI;EACpB,IAAI;IACF,MAAMC,IAAI,GAAG,IAAIL,IAAI,CAACC,KAAK,CAACK,QAAQ,EAAEF,QAAQ,CAAC;IAE/C,IAAIC,IAAI,CAACE,MAAM,EAAE;MACf,OAAOF,IAAI,CAACG,GAAG;IACjB;IAEA,MAAMC,cAAc,GAAG,MAAMT,IAAI,CAACU,iBAAiB,CAACP,GAAG,EAAEE,IAAI,CAAC;IAE9D,OAAOI,cAAc,CAACD,GAAG;EAC3B,CAAC,CAAC,OAAOG,KAAK,EAAE;IACdC,OAAO,CAACD,KAAK,CAAC,iBAAiB,EAAEA,KAAK,CAAC;IACvC,MAAMA,KAAK;EACb;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ import { Paths, File } from 'expo-file-system';
4
+ import jszip from "../scripts/jszip.js";
5
+ import epub from "../scripts/epub.js";
6
+ export const loadScripts = async () => {
7
+ const jszipFile = new File(Paths.document, 'jszip.min.js');
8
+ if (!jszipFile.exists) {
9
+ jszipFile.create();
10
+ jszipFile.write(jszip);
11
+ }
12
+ const epubjsFile = new File(Paths.document, 'epub.min.js');
13
+ if (!epubjsFile.exists) {
14
+ epubjsFile.create();
15
+ epubjsFile.write(epub);
16
+ }
17
+ const jszipFileUri = jszipFile.uri;
18
+ const epubjsFileUri = epubjsFile.uri;
19
+ return [`${jszipFileUri},${epubjsFileUri}`, jszipFileUri, epubjsFileUri];
20
+ };
21
+ //# sourceMappingURL=loadScripts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Paths","File","jszip","epub","loadScripts","jszipFile","document","exists","create","write","epubjsFile","jszipFileUri","uri","epubjsFileUri"],"sourceRoot":"../../../src","sources":["helpers/loadScripts.ts"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,IAAI,QAAQ,kBAAkB;AAC9C,OAAOC,KAAK,MAAM,qBAAkB;AACpC,OAAOC,IAAI,MAAM,oBAAiB;AAElC,OAAO,MAAMC,WAAW,GAAG,MAAAA,CAAA,KAAY;EACrC,MAAMC,SAAS,GAAG,IAAIJ,IAAI,CAACD,KAAK,CAACM,QAAQ,EAAE,cAAc,CAAC;EAC1D,IAAI,CAACD,SAAS,CAACE,MAAM,EAAE;IACrBF,SAAS,CAACG,MAAM,CAAC,CAAC;IAClBH,SAAS,CAACI,KAAK,CAACP,KAAK,CAAC;EACxB;EAEA,MAAMQ,UAAU,GAAG,IAAIT,IAAI,CAACD,KAAK,CAACM,QAAQ,EAAE,aAAa,CAAC;EAC1D,IAAI,CAACI,UAAU,CAACH,MAAM,EAAE;IACtBG,UAAU,CAACF,MAAM,CAAC,CAAC;IACnBE,UAAU,CAACD,KAAK,CAACN,IAAI,CAAC;EACxB;EAEA,MAAMQ,YAAY,GAAGN,SAAS,CAACO,GAAG;EAClC,MAAMC,aAAa,GAAGH,UAAU,CAACE,GAAG;EAEpC,OAAO,CAAC,GAAGD,YAAY,IAAIE,aAAa,EAAE,EAAEF,YAAY,EAAEE,aAAa,CAAC;AAC1E,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ import { File, Paths } from 'expo-file-system';
4
+ export const saveTemplateToFile = (template, fileName) => {
5
+ try {
6
+ const htmlFile = new File(Paths.document, fileName);
7
+ if (!htmlFile.exists) {
8
+ htmlFile.create();
9
+ }
10
+ htmlFile.write(template);
11
+ return htmlFile.uri;
12
+ } catch (error) {
13
+ console.error('Error saving template file:', error);
14
+ throw error;
15
+ }
16
+ };
17
+ export const checkTemplateFileExists = fileName => {
18
+ const htmlFile = new File(Paths.document, fileName);
19
+ return htmlFile.exists;
20
+ };
21
+ //# sourceMappingURL=saveTemplateToFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["File","Paths","saveTemplateToFile","template","fileName","htmlFile","document","exists","create","write","uri","error","console","checkTemplateFileExists"],"sourceRoot":"../../../src","sources":["helpers/saveTemplateToFile.ts"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AAE9C,OAAO,MAAMC,kBAAkB,GAAGA,CAACC,QAAgB,EAAEC,QAAgB,KAAK;EACxE,IAAI;IACF,MAAMC,QAAQ,GAAG,IAAIL,IAAI,CAACC,KAAK,CAACK,QAAQ,EAAEF,QAAQ,CAAC;IACnD,IAAI,CAACC,QAAQ,CAACE,MAAM,EAAE;MACpBF,QAAQ,CAACG,MAAM,CAAC,CAAC;IACnB;IACAH,QAAQ,CAACI,KAAK,CAACN,QAAQ,CAAC;IACxB,OAAOE,QAAQ,CAACK,GAAG;EACrB,CAAC,CAAC,OAAOC,KAAK,EAAE;IACdC,OAAO,CAACD,KAAK,CAAC,6BAA6B,EAAEA,KAAK,CAAC;IACnD,MAAMA,KAAK;EACb;AACF,CAAC;AAED,OAAO,MAAME,uBAAuB,GAAIT,QAAgB,IAAK;EAC3D,MAAMC,QAAQ,GAAG,IAAIL,IAAI,CAACC,KAAK,CAACK,QAAQ,EAAEF,QAAQ,CAAC;EACnD,OAAOC,QAAQ,CAACE,MAAM;AACxB,CAAC","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ export function injectJavaScript(ref, script) {
4
+ ref.current?.injectJavaScript(`
5
+ try {
6
+ ${script}
7
+ } catch (error) {
8
+ alert(error?.message);
9
+ }
10
+
11
+ true;
12
+ `);
13
+ }
14
+ //# sourceMappingURL=webViewInjectFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["injectJavaScript","ref","script","current"],"sourceRoot":"../../../src","sources":["helpers/webViewInjectFunctions.ts"],"mappings":";;AAIA,OAAO,SAASA,gBAAgBA,CAC9BC,GAA8B,EAC9BC,MAAc,EACd;EACAD,GAAG,CAACE,OAAO,EAAEH,gBAAgB,CAAC;AAChC;AACA,QAAQE,MAAM;AACd;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ import { useCallback } from 'react';
4
+ import template from "../constants/template.js";
5
+ export function useInjectWebViewVariables() {
6
+ const injectWebViewVariables = useCallback(({
7
+ jszip,
8
+ epubjs,
9
+ type,
10
+ book,
11
+ allowScriptedContent,
12
+ theme
13
+ }) => {
14
+ return template.replace(/<script id="jszip"><\/script>/, `<script src="${jszip}"></script>`).replace(/<script id="epubjs"><\/script>/, `<script src="${epubjs}"></script>`).replace(/const type = window.type;/, `const type = '${type}';`).replace(/const file = window.book;/, `const file = '${book}';`).replace(/const enableSelection = window.enable_selection;/, `const enableSelection = false;`).replace(/allowScriptedContent: allowScriptedContent/, `allowScriptedContent: ${allowScriptedContent}`).replace(/allowPopups: allowPopups/, `allowPopups: false`).replace(/const theme = window.theme;/, `const theme = ${JSON.stringify(theme)};`);
15
+ }, []);
16
+ return {
17
+ injectWebViewVariables
18
+ };
19
+ }
20
+ //# sourceMappingURL=useInjectWebviewVariables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useCallback","template","useInjectWebViewVariables","injectWebViewVariables","jszip","epubjs","type","book","allowScriptedContent","theme","replace","JSON","stringify"],"sourceRoot":"../../../src","sources":["hooks/useInjectWebviewVariables.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AAGnC,OAAOC,QAAQ,MAAM,0BAAuB;AAE5C,OAAO,SAASC,yBAAyBA,CAAA,EAAG;EAC1C,MAAMC,sBAAsB,GAAGH,WAAW,CACxC,CAAC;IACCI,KAAK;IACLC,MAAM;IACNC,IAAI;IACJC,IAAI;IACJC,oBAAoB;IACpBC;EAQF,CAAC,KAAK;IACJ,OAAOR,QAAQ,CACZS,OAAO,CACN,+BAA+B,EAC/B,gBAAgBN,KAAK,aACvB,CAAC,CACAM,OAAO,CACN,gCAAgC,EAChC,gBAAgBL,MAAM,aACxB,CAAC,CACAK,OAAO,CAAC,2BAA2B,EAAE,iBAAiBJ,IAAI,IAAI,CAAC,CAC/DI,OAAO,CAAC,2BAA2B,EAAE,iBAAiBH,IAAI,IAAI,CAAC,CAC/DG,OAAO,CACN,kDAAkD,EAClD,gCACF,CAAC,CACAA,OAAO,CACN,4CAA4C,EAC5C,yBAAyBF,oBAAoB,EAC/C,CAAC,CACAE,OAAO,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,CACzDA,OAAO,CACN,6BAA6B,EAC7B,iBAAiBC,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,GACxC,CAAC;EACL,CAAC,EACD,EACF,CAAC;EACD,OAAO;IAAEN;EAAuB,CAAC;AACnC","ignoreList":[]}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ import { defaultTheme } from "../constants/theme.js";
4
+ import { Actions } from "../types/state.types.js";
5
+ export const useReaderState = () => {
6
+ const initialState = {
7
+ theme: defaultTheme,
8
+ fontFamily: 'Helvetica',
9
+ fontSize: '9pt',
10
+ atStart: false,
11
+ atEnd: false,
12
+ key: '',
13
+ totalLocations: 0,
14
+ currentLocation: null,
15
+ meta: {
16
+ cover: '',
17
+ author: '',
18
+ title: '',
19
+ description: '',
20
+ language: '',
21
+ publisher: '',
22
+ rights: ''
23
+ },
24
+ progress: 0,
25
+ locations: [],
26
+ isLoading: true,
27
+ isRendering: true,
28
+ section: null,
29
+ flow: 'paginated'
30
+ };
31
+ function bookReducer(state, action) {
32
+ switch (action.type) {
33
+ case Actions.CHANGE_FONT_SIZE:
34
+ return {
35
+ ...state,
36
+ fontSize: action.payload
37
+ };
38
+ case Actions.SET_AT_START:
39
+ return {
40
+ ...state,
41
+ atStart: action.payload
42
+ };
43
+ case Actions.SET_AT_END:
44
+ return {
45
+ ...state,
46
+ atEnd: action.payload
47
+ };
48
+ case Actions.SET_KEY:
49
+ return {
50
+ ...state,
51
+ key: action.payload
52
+ };
53
+ case Actions.SET_TOTAL_LOCATIONS:
54
+ return {
55
+ ...state,
56
+ totalLocations: action.payload
57
+ };
58
+ case Actions.SET_CURRENT_LOCATION:
59
+ return {
60
+ ...state,
61
+ currentLocation: action.payload
62
+ };
63
+ case Actions.SET_META:
64
+ return {
65
+ ...state,
66
+ meta: action.payload
67
+ };
68
+ case Actions.SET_PROGRESS:
69
+ return {
70
+ ...state,
71
+ progress: action.payload
72
+ };
73
+ case Actions.SET_LOCATIONS:
74
+ return {
75
+ ...state,
76
+ locations: action.payload
77
+ };
78
+ case Actions.SET_IS_LOADING:
79
+ return {
80
+ ...state,
81
+ isLoading: action.payload
82
+ };
83
+ case Actions.SET_IS_RENDERING:
84
+ return {
85
+ ...state,
86
+ isRendering: action.payload
87
+ };
88
+ case Actions.SET_SECTION:
89
+ return {
90
+ ...state,
91
+ section: action.payload
92
+ };
93
+ case Actions.SET_FLOW:
94
+ return {
95
+ ...state,
96
+ flow: action.payload
97
+ };
98
+ case Actions.CHANGE_THEME:
99
+ return {
100
+ ...state,
101
+ theme: action.payload
102
+ };
103
+ case Actions.CHANGE_FONT_FAMILY:
104
+ return {
105
+ ...state,
106
+ fontFamily: action.payload
107
+ };
108
+ default:
109
+ return state;
110
+ }
111
+ }
112
+ return {
113
+ initialState,
114
+ bookReducer
115
+ };
116
+ };
117
+ //# sourceMappingURL=useReaderState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["defaultTheme","Actions","useReaderState","initialState","theme","fontFamily","fontSize","atStart","atEnd","key","totalLocations","currentLocation","meta","cover","author","title","description","language","publisher","rights","progress","locations","isLoading","isRendering","section","flow","bookReducer","state","action","type","CHANGE_FONT_SIZE","payload","SET_AT_START","SET_AT_END","SET_KEY","SET_TOTAL_LOCATIONS","SET_CURRENT_LOCATION","SET_META","SET_PROGRESS","SET_LOCATIONS","SET_IS_LOADING","SET_IS_RENDERING","SET_SECTION","SET_FLOW","CHANGE_THEME","CHANGE_FONT_FAMILY"],"sourceRoot":"../../../src","sources":["hooks/useReaderState.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,uBAAo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ACtC,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export { default as Reader } from "./components/Reader.js";
4
+ export { ReaderProvider, ReaderContext } from "./context/ReaderContext.js";
5
+ export * from "./types/index.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["default","Reader","ReaderProvider","ReaderContext"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,MAAM,QAAQ,wBAAqB;AACvD,SAASC,cAAc,EAAEC,aAAa,QAAQ,4BAAyB;AACvE,cAAc,kBAAS","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}