flipbookengine 0.5.3 → 0.6.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.
@@ -1,117 +1,117 @@
1
- # Third-Party Notices
2
-
3
- This file contains the licenses of the third-party libraries used in the FlipbookEngine project.
4
-
5
- ## Runtime Dependencies
6
-
7
- ### 1. PDF.js (pdfjs-dist)
8
- - **Website:** https://mozilla.github.io/pdf.js/
9
- - **Repository:** https://github.com/mozilla/pdf.js
10
- - **License:** Apache License 2.0
11
-
12
- ```text
13
- Copyright 2012 Mozilla Foundation
14
-
15
- Licensed under the Apache License, Version 2.0 (the "License");
16
- you may not use this file except in compliance with the License.
17
- You may obtain a copy of the License at
18
-
19
- http://www.apache.org/licenses/LICENSE-2.0
20
-
21
- Unless required by applicable law or agreed to in writing, software
22
- distributed under the License is distributed on an "AS IS" BASIS,
23
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
- See the License for the specific language governing permissions and
25
- limitations under the License.
26
- ```
27
-
28
- ---
29
-
30
- ### 2. page-flip
31
- - **Website:** https://nodlik.github.io/StPageFlip/
32
- - **Repository:** https://github.com/Nodlik/StPageFlip
33
- - **License:** MIT License
34
-
35
- ```text
36
- The MIT License (MIT)
37
- Copyright (c) 2020 Oleg
38
-
39
- Permission is hereby granted, free of charge, to any person obtaining a copy of
40
- this software and associated documentation files (the "Software"), to deal in
41
- the Software without restriction, including without limitation the rights to
42
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
43
- the Software, and to permit persons to whom the Software is furnished to do so,
44
- subject to the following conditions:
45
-
46
- The above copyright notice and this permission notice shall be included in all
47
- copies or substantial portions of the Software.
48
-
49
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
51
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
52
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
53
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
54
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55
- ```
56
-
57
- ---
58
-
59
- ### 3. @preact/signals-core
60
- - **Repository:** https://github.com/preactjs/signals
61
- - **License:** MIT License
62
-
63
- ```text
64
- The MIT License (MIT)
65
- Copyright (c) 2022-present Preact Team
66
-
67
- Permission is hereby granted, free of charge, to any person obtaining a copy of
68
- this software and associated documentation files (the "Software"), to deal in
69
- the Software without restriction, including without limitation the rights to
70
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
71
- the Software, and to permit persons to whom the Software is furnished to do so,
72
- subject to the following conditions:
73
-
74
- The above copyright notice and this permission notice shall be included in all
75
- copies or substantial portions of the Software.
76
-
77
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
78
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
79
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
80
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
81
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
82
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
83
- ```
84
-
85
- ---
86
-
87
- ### 4. @serenity-is/domwise
88
- - **Repository:** https://github.com/serenity-is/serenity
89
- - **License:** MIT License
90
-
91
- ```text
92
- The MIT License (MIT)
93
- Copyright (c) Serenity.is
94
-
95
- Permission is hereby granted, free of charge, to any person obtaining a copy of
96
- this software and associated documentation files (the "Software"), to deal in
97
- the Software without restriction, including without limitation the rights to
98
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
99
- the Software, and to permit persons to whom the Software is furnished to do so,
100
- subject to the following conditions:
101
-
102
- The above copyright notice and this permission notice shall be included in all
103
- copies or substantial portions of the Software.
104
-
105
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
106
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
107
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
108
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
109
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
110
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
111
- ```
112
-
113
- ---
114
-
115
- ## Development Dependencies
116
-
117
- Development dependencies such as `vite`, `typescript`, and their respective plugins are licensed under the MIT License. These tools are used during the build process and are not distributed as part of the compiled FlipbookEngine bundle.
1
+ # Third-Party Notices
2
+
3
+ This file contains the licenses of the third-party libraries used in the FlipbookEngine project.
4
+
5
+ ## Runtime Dependencies
6
+
7
+ ### 1. PDF.js (pdfjs-dist)
8
+ - **Website:** https://mozilla.github.io/pdf.js/
9
+ - **Repository:** https://github.com/mozilla/pdf.js
10
+ - **License:** Apache License 2.0
11
+
12
+ ```text
13
+ Copyright 2012 Mozilla Foundation
14
+
15
+ Licensed under the Apache License, Version 2.0 (the "License");
16
+ you may not use this file except in compliance with the License.
17
+ You may obtain a copy of the License at
18
+
19
+ http://www.apache.org/licenses/LICENSE-2.0
20
+
21
+ Unless required by applicable law or agreed to in writing, software
22
+ distributed under the License is distributed on an "AS IS" BASIS,
23
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ See the License for the specific language governing permissions and
25
+ limitations under the License.
26
+ ```
27
+
28
+ ---
29
+
30
+ ### 2. page-flip
31
+ - **Website:** https://nodlik.github.io/StPageFlip/
32
+ - **Repository:** https://github.com/Nodlik/StPageFlip
33
+ - **License:** MIT License
34
+
35
+ ```text
36
+ The MIT License (MIT)
37
+ Copyright (c) 2020 Oleg
38
+
39
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
40
+ this software and associated documentation files (the "Software"), to deal in
41
+ the Software without restriction, including without limitation the rights to
42
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
43
+ the Software, and to permit persons to whom the Software is furnished to do so,
44
+ subject to the following conditions:
45
+
46
+ The above copyright notice and this permission notice shall be included in all
47
+ copies or substantial portions of the Software.
48
+
49
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
51
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
52
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
53
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
54
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55
+ ```
56
+
57
+ ---
58
+
59
+ ### 3. @preact/signals-core
60
+ - **Repository:** https://github.com/preactjs/signals
61
+ - **License:** MIT License
62
+
63
+ ```text
64
+ The MIT License (MIT)
65
+ Copyright (c) 2022-present Preact Team
66
+
67
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
68
+ this software and associated documentation files (the "Software"), to deal in
69
+ the Software without restriction, including without limitation the rights to
70
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
71
+ the Software, and to permit persons to whom the Software is furnished to do so,
72
+ subject to the following conditions:
73
+
74
+ The above copyright notice and this permission notice shall be included in all
75
+ copies or substantial portions of the Software.
76
+
77
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
78
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
79
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
80
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
81
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
82
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
83
+ ```
84
+
85
+ ---
86
+
87
+ ### 4. @serenity-is/domwise
88
+ - **Repository:** https://github.com/serenity-is/serenity
89
+ - **License:** MIT License
90
+
91
+ ```text
92
+ The MIT License (MIT)
93
+ Copyright (c) Serenity.is
94
+
95
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
96
+ this software and associated documentation files (the "Software"), to deal in
97
+ the Software without restriction, including without limitation the rights to
98
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
99
+ the Software, and to permit persons to whom the Software is furnished to do so,
100
+ subject to the following conditions:
101
+
102
+ The above copyright notice and this permission notice shall be included in all
103
+ copies or substantial portions of the Software.
104
+
105
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
106
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
107
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
108
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
109
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
110
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
111
+ ```
112
+
113
+ ---
114
+
115
+ ## Development Dependencies
116
+
117
+ Development dependencies such as `vite`, `typescript`, and their respective plugins are licensed under the MIT License. These tools are used during the build process and are not distributed as part of the compiled FlipbookEngine bundle.
@@ -1,50 +1,50 @@
1
- # FlipbookEngine Trademark Policy
2
-
3
- This policy governs use of the FlipbookEngine name, logos, and brand assets.
4
-
5
- ## Covered Marks
6
-
7
- The following are treated as protected brand assets:
8
-
9
- - FlipbookEngine
10
- - FlipbookEngine logos
11
- - any official product lockups, icons, and visual identity files distributed with the project
12
-
13
- ## What the Open Source License Does Not Grant
14
-
15
- The AGPL license applies to source code, not to trademark rights.
16
-
17
- Using the FlipbookEngine code does not automatically grant permission to:
18
-
19
- - present your product as the official FlipbookEngine product
20
- - use FlipbookEngine logos in your own branding
21
- - imply sponsorship, certification, or endorsement
22
- - register confusingly similar names, domains, or product marks
23
-
24
- ## Allowed Uses
25
-
26
- Unless otherwise stated, you may:
27
-
28
- - refer to FlipbookEngine by name in factual descriptions
29
- - state that your project uses or is powered by FlipbookEngine
30
- - link to the official project and documentation
31
-
32
- ## Uses That Require Permission
33
-
34
- You must get permission before:
35
-
36
- - using official logos in a product UI or marketing page
37
- - using FlipbookEngine as part of your own product or company name
38
- - presenting your fork as the official project
39
- - using the marks in paid advertising or marketplace listings
40
-
41
- ## Open Source Attribution
42
-
43
- Attribution is appreciated in open source projects, but trademark permission is still separate from code licensing.
44
-
45
- ## Contact
46
-
47
- Trademark and brand permission inquiries:
48
-
49
- - murat.dogan@hotmail.com.tr
50
-
1
+ # FlipbookEngine Trademark Policy
2
+
3
+ This policy governs use of the FlipbookEngine name, logos, and brand assets.
4
+
5
+ ## Covered Marks
6
+
7
+ The following are treated as protected brand assets:
8
+
9
+ - FlipbookEngine
10
+ - FlipbookEngine logos
11
+ - any official product lockups, icons, and visual identity files distributed with the project
12
+
13
+ ## What the Open Source License Does Not Grant
14
+
15
+ The AGPL license applies to source code, not to trademark rights.
16
+
17
+ Using the FlipbookEngine code does not automatically grant permission to:
18
+
19
+ - present your product as the official FlipbookEngine product
20
+ - use FlipbookEngine logos in your own branding
21
+ - imply sponsorship, certification, or endorsement
22
+ - register confusingly similar names, domains, or product marks
23
+
24
+ ## Allowed Uses
25
+
26
+ Unless otherwise stated, you may:
27
+
28
+ - refer to FlipbookEngine by name in factual descriptions
29
+ - state that your project uses or is powered by FlipbookEngine
30
+ - link to the official project and documentation
31
+
32
+ ## Uses That Require Permission
33
+
34
+ You must get permission before:
35
+
36
+ - using official logos in a product UI or marketing page
37
+ - using FlipbookEngine as part of your own product or company name
38
+ - presenting your fork as the official project
39
+ - using the marks in paid advertising or marketplace listings
40
+
41
+ ## Open Source Attribution
42
+
43
+ Attribution is appreciated in open source projects, but trademark permission is still separate from code licensing.
44
+
45
+ ## Contact
46
+
47
+ Trademark and brand permission inquiries:
48
+
49
+ - murat.dogan@hotmail.com.tr
50
+
@@ -13,6 +13,7 @@ export declare class PageFlipAdapter {
13
13
  private audioUnlockHandler;
14
14
  private isLibraryFlipping;
15
15
  private autoPlayTimer;
16
+ private layoutUpdateTimer;
16
17
  constructor(bookContainer: HTMLElement, options: FlipbookEngineOptions, store: FlipbookStore);
17
18
  private unlockAudio;
18
19
  init(viewportWidth: number, viewportHeight: number): void;
@@ -0,0 +1,8 @@
1
+ import { FlipbookStore } from '../state/store';
2
+
3
+ interface TableOfContentsProps {
4
+ store: FlipbookStore;
5
+ onEntryClick: (pageIndex: number) => void;
6
+ }
7
+ export declare function TableOfContents(props: TableOfContentsProps): import('@serenity-is/domwise').JSXElement;
8
+ export {};
@@ -3,6 +3,7 @@ import { FlipbookStore } from '../state/store';
3
3
  interface ToolbarProps {
4
4
  store: FlipbookStore;
5
5
  onToggleThumbs: () => void;
6
+ onToggleToc: () => void;
6
7
  onToggleSingleMode: () => void;
7
8
  onZoomIn: () => void;
8
9
  onZoomOut: () => void;
@@ -1,7 +1,7 @@
1
1
  import { FlipbookStore } from '../state/store';
2
2
 
3
3
  /**
4
- * @license FlipbookEngine v0.2.4
4
+ * @license FlipbookEngine v0.6.0
5
5
  * Copyright (c) 2026 Murat Dogan
6
6
  *
7
7
  * This source code is dual-licensed under the AGPLv3 and a Commercial License.
@@ -23,6 +23,7 @@ export declare class LayoutManager {
23
23
  private orientationMediaQuery;
24
24
  private orientationChangeHandler;
25
25
  private unsubs;
26
+ private updateTimer;
26
27
  onResizeCallback?: () => void;
27
28
  constructor(pageViewport: {
28
29
  width: number;
@@ -34,4 +35,5 @@ export declare class LayoutManager {
34
35
  private setupOrientationMedia;
35
36
  updateBookAspectRatio(): void;
36
37
  destroy(): void;
38
+ private scheduleAspectRatioUpdate;
37
39
  }