@somecat/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.
package/dist/vue.d.cts ADDED
@@ -0,0 +1,107 @@
1
+ import { E as EBookReaderHandle, S as SearchOptions } from './types-Dc66KVH2.cjs';
2
+ import * as vue from 'vue';
3
+
4
+ type EBookReaderVueExposed = Pick<EBookReaderHandle, 'prevPage' | 'nextPage' | 'prevSection' | 'nextSection' | 'goTo' | 'goToFraction' | 'search' | 'cancelSearch' | 'clearSearch'>;
5
+ type EBookReaderVueProps = {
6
+ file?: File | null;
7
+ defaultFontSize?: number;
8
+ fontSize?: number;
9
+ defaultDarkMode?: boolean;
10
+ darkMode?: boolean;
11
+ enableKeyboardNav?: boolean;
12
+ defaultSearchOptions?: SearchOptions;
13
+ };
14
+
15
+ declare const EBookReaderVue: vue.DefineComponent<vue.ExtractPropTypes<{
16
+ readonly file: {
17
+ readonly type: vue.PropType<File | null>;
18
+ readonly required: false;
19
+ };
20
+ readonly defaultFontSize: {
21
+ readonly type: NumberConstructor;
22
+ readonly required: false;
23
+ readonly default: 100;
24
+ };
25
+ readonly fontSize: {
26
+ readonly type: NumberConstructor;
27
+ readonly required: false;
28
+ };
29
+ readonly defaultDarkMode: {
30
+ readonly type: BooleanConstructor;
31
+ readonly required: false;
32
+ readonly default: false;
33
+ };
34
+ readonly darkMode: {
35
+ readonly type: BooleanConstructor;
36
+ readonly required: false;
37
+ };
38
+ readonly enableKeyboardNav: {
39
+ readonly type: BooleanConstructor;
40
+ readonly required: false;
41
+ readonly default: true;
42
+ };
43
+ readonly defaultSearchOptions: {
44
+ readonly type: vue.PropType<SearchOptions>;
45
+ readonly required: false;
46
+ readonly default: () => {
47
+ matchCase: boolean;
48
+ wholeWords: boolean;
49
+ matchDiacritics: boolean;
50
+ };
51
+ };
52
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
53
+ [key: string]: any;
54
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("progress" | "ready" | "error" | "fontSizeChange" | "darkModeChange" | "update:fontSize" | "update:darkMode")[], "progress" | "ready" | "error" | "fontSizeChange" | "darkModeChange" | "update:fontSize" | "update:darkMode", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
55
+ readonly file: {
56
+ readonly type: vue.PropType<File | null>;
57
+ readonly required: false;
58
+ };
59
+ readonly defaultFontSize: {
60
+ readonly type: NumberConstructor;
61
+ readonly required: false;
62
+ readonly default: 100;
63
+ };
64
+ readonly fontSize: {
65
+ readonly type: NumberConstructor;
66
+ readonly required: false;
67
+ };
68
+ readonly defaultDarkMode: {
69
+ readonly type: BooleanConstructor;
70
+ readonly required: false;
71
+ readonly default: false;
72
+ };
73
+ readonly darkMode: {
74
+ readonly type: BooleanConstructor;
75
+ readonly required: false;
76
+ };
77
+ readonly enableKeyboardNav: {
78
+ readonly type: BooleanConstructor;
79
+ readonly required: false;
80
+ readonly default: true;
81
+ };
82
+ readonly defaultSearchOptions: {
83
+ readonly type: vue.PropType<SearchOptions>;
84
+ readonly required: false;
85
+ readonly default: () => {
86
+ matchCase: boolean;
87
+ wholeWords: boolean;
88
+ matchDiacritics: boolean;
89
+ };
90
+ };
91
+ }>> & Readonly<{
92
+ onReady?: ((...args: any[]) => any) | undefined;
93
+ onError?: ((...args: any[]) => any) | undefined;
94
+ onProgress?: ((...args: any[]) => any) | undefined;
95
+ onFontSizeChange?: ((...args: any[]) => any) | undefined;
96
+ onDarkModeChange?: ((...args: any[]) => any) | undefined;
97
+ "onUpdate:fontSize"?: ((...args: any[]) => any) | undefined;
98
+ "onUpdate:darkMode"?: ((...args: any[]) => any) | undefined;
99
+ }>, {
100
+ readonly darkMode: boolean;
101
+ readonly defaultFontSize: number;
102
+ readonly defaultDarkMode: boolean;
103
+ readonly enableKeyboardNav: boolean;
104
+ readonly defaultSearchOptions: SearchOptions;
105
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
106
+
107
+ export { EBookReaderVue, type EBookReaderVueExposed, type EBookReaderVueProps };
package/dist/vue.d.ts ADDED
@@ -0,0 +1,107 @@
1
+ import { E as EBookReaderHandle, S as SearchOptions } from './types-Dc66KVH2.js';
2
+ import * as vue from 'vue';
3
+
4
+ type EBookReaderVueExposed = Pick<EBookReaderHandle, 'prevPage' | 'nextPage' | 'prevSection' | 'nextSection' | 'goTo' | 'goToFraction' | 'search' | 'cancelSearch' | 'clearSearch'>;
5
+ type EBookReaderVueProps = {
6
+ file?: File | null;
7
+ defaultFontSize?: number;
8
+ fontSize?: number;
9
+ defaultDarkMode?: boolean;
10
+ darkMode?: boolean;
11
+ enableKeyboardNav?: boolean;
12
+ defaultSearchOptions?: SearchOptions;
13
+ };
14
+
15
+ declare const EBookReaderVue: vue.DefineComponent<vue.ExtractPropTypes<{
16
+ readonly file: {
17
+ readonly type: vue.PropType<File | null>;
18
+ readonly required: false;
19
+ };
20
+ readonly defaultFontSize: {
21
+ readonly type: NumberConstructor;
22
+ readonly required: false;
23
+ readonly default: 100;
24
+ };
25
+ readonly fontSize: {
26
+ readonly type: NumberConstructor;
27
+ readonly required: false;
28
+ };
29
+ readonly defaultDarkMode: {
30
+ readonly type: BooleanConstructor;
31
+ readonly required: false;
32
+ readonly default: false;
33
+ };
34
+ readonly darkMode: {
35
+ readonly type: BooleanConstructor;
36
+ readonly required: false;
37
+ };
38
+ readonly enableKeyboardNav: {
39
+ readonly type: BooleanConstructor;
40
+ readonly required: false;
41
+ readonly default: true;
42
+ };
43
+ readonly defaultSearchOptions: {
44
+ readonly type: vue.PropType<SearchOptions>;
45
+ readonly required: false;
46
+ readonly default: () => {
47
+ matchCase: boolean;
48
+ wholeWords: boolean;
49
+ matchDiacritics: boolean;
50
+ };
51
+ };
52
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
53
+ [key: string]: any;
54
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("progress" | "ready" | "error" | "fontSizeChange" | "darkModeChange" | "update:fontSize" | "update:darkMode")[], "progress" | "ready" | "error" | "fontSizeChange" | "darkModeChange" | "update:fontSize" | "update:darkMode", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
55
+ readonly file: {
56
+ readonly type: vue.PropType<File | null>;
57
+ readonly required: false;
58
+ };
59
+ readonly defaultFontSize: {
60
+ readonly type: NumberConstructor;
61
+ readonly required: false;
62
+ readonly default: 100;
63
+ };
64
+ readonly fontSize: {
65
+ readonly type: NumberConstructor;
66
+ readonly required: false;
67
+ };
68
+ readonly defaultDarkMode: {
69
+ readonly type: BooleanConstructor;
70
+ readonly required: false;
71
+ readonly default: false;
72
+ };
73
+ readonly darkMode: {
74
+ readonly type: BooleanConstructor;
75
+ readonly required: false;
76
+ };
77
+ readonly enableKeyboardNav: {
78
+ readonly type: BooleanConstructor;
79
+ readonly required: false;
80
+ readonly default: true;
81
+ };
82
+ readonly defaultSearchOptions: {
83
+ readonly type: vue.PropType<SearchOptions>;
84
+ readonly required: false;
85
+ readonly default: () => {
86
+ matchCase: boolean;
87
+ wholeWords: boolean;
88
+ matchDiacritics: boolean;
89
+ };
90
+ };
91
+ }>> & Readonly<{
92
+ onReady?: ((...args: any[]) => any) | undefined;
93
+ onError?: ((...args: any[]) => any) | undefined;
94
+ onProgress?: ((...args: any[]) => any) | undefined;
95
+ onFontSizeChange?: ((...args: any[]) => any) | undefined;
96
+ onDarkModeChange?: ((...args: any[]) => any) | undefined;
97
+ "onUpdate:fontSize"?: ((...args: any[]) => any) | undefined;
98
+ "onUpdate:darkMode"?: ((...args: any[]) => any) | undefined;
99
+ }>, {
100
+ readonly darkMode: boolean;
101
+ readonly defaultFontSize: number;
102
+ readonly defaultDarkMode: boolean;
103
+ readonly enableKeyboardNav: boolean;
104
+ readonly defaultSearchOptions: SearchOptions;
105
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
106
+
107
+ export { EBookReaderVue, type EBookReaderVueExposed, type EBookReaderVueProps };