next-flipbook 0.10.0 → 1.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/LICENSE +192 -68
- package/README.md +30 -4
- package/dist/core/animation/curl.d.ts +139 -0
- package/dist/core/animation/curl.d.ts.map +1 -0
- package/dist/core/animation/curl.js +204 -0
- package/dist/core/animation/curl.js.map +1 -0
- package/dist/core/animation/turn.d.ts +9 -2
- package/dist/core/animation/turn.d.ts.map +1 -1
- package/dist/core/animation/turn.js +1 -0
- package/dist/core/animation/turn.js.map +1 -1
- package/dist/core/engine/FlipBookEngine.d.ts +20 -4
- package/dist/core/engine/FlipBookEngine.d.ts.map +1 -1
- package/dist/core/engine/FlipBookEngine.js +37 -5
- package/dist/core/engine/FlipBookEngine.js.map +1 -1
- package/dist/core/index.d.ts +7 -4
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +3 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/interaction/GestureRecognizer.d.ts +20 -4
- package/dist/core/interaction/GestureRecognizer.d.ts.map +1 -1
- package/dist/core/interaction/GestureRecognizer.js +33 -11
- package/dist/core/interaction/GestureRecognizer.js.map +1 -1
- package/dist/core/interaction/drag.d.ts +13 -0
- package/dist/core/interaction/drag.d.ts.map +1 -1
- package/dist/core/interaction/drag.js +20 -0
- package/dist/core/interaction/drag.js.map +1 -1
- package/dist/core/layout/sizing.d.ts +21 -7
- package/dist/core/layout/sizing.d.ts.map +1 -1
- package/dist/core/layout/sizing.js +31 -9
- package/dist/core/layout/sizing.js.map +1 -1
- package/dist/core/types.d.ts +7 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/zoom/ZoomController.d.ts +2 -0
- package/dist/core/zoom/ZoomController.d.ts.map +1 -1
- package/dist/core/zoom/ZoomController.js +9 -3
- package/dist/core/zoom/ZoomController.js.map +1 -1
- package/dist/image/index.d.ts +3 -0
- package/dist/image/index.d.ts.map +1 -1
- package/dist/image/index.js +2 -0
- package/dist/image/index.js.map +1 -1
- package/dist/image/loader.d.ts +27 -0
- package/dist/image/loader.d.ts.map +1 -1
- package/dist/image/loader.js +63 -0
- package/dist/image/loader.js.map +1 -1
- package/dist/image/nextLoader.d.ts +27 -0
- package/dist/image/nextLoader.d.ts.map +1 -0
- package/dist/image/nextLoader.js +32 -0
- package/dist/image/nextLoader.js.map +1 -0
- package/dist/image/select.d.ts +80 -0
- package/dist/image/select.d.ts.map +1 -0
- package/dist/image/select.js +84 -0
- package/dist/image/select.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/react/components/FlipBook.d.ts.map +1 -1
- package/dist/react/components/FlipBook.js +27 -13
- package/dist/react/components/FlipBook.js.map +1 -1
- package/dist/react/components/FlipBookBackgroundControl.js +1 -1
- package/dist/react/components/FlipBookBackgroundControl.js.map +1 -1
- package/dist/react/components/FlipBookBookmarks.js +2 -2
- package/dist/react/components/FlipBookBookmarks.js.map +1 -1
- package/dist/react/components/FlipBookControls.d.ts.map +1 -1
- package/dist/react/components/FlipBookControls.js +4 -2
- package/dist/react/components/FlipBookControls.js.map +1 -1
- package/dist/react/components/FlipBookPageView.d.ts +6 -1
- package/dist/react/components/FlipBookPageView.d.ts.map +1 -1
- package/dist/react/components/FlipBookPageView.js +45 -16
- package/dist/react/components/FlipBookPageView.js.map +1 -1
- package/dist/react/components/FlipBookProvider.d.ts +0 -5
- package/dist/react/components/FlipBookProvider.d.ts.map +1 -1
- package/dist/react/components/FlipBookProvider.js +21 -3
- package/dist/react/components/FlipBookProvider.js.map +1 -1
- package/dist/react/components/FlipBookSearch.js +3 -3
- package/dist/react/components/FlipBookSearch.js.map +1 -1
- package/dist/react/components/FlipBookSidePanel.d.ts.map +1 -1
- package/dist/react/components/FlipBookSidePanel.js +5 -2
- package/dist/react/components/FlipBookSidePanel.js.map +1 -1
- package/dist/react/components/FlipBookStage.d.ts.map +1 -1
- package/dist/react/components/FlipBookStage.js +304 -70
- package/dist/react/components/FlipBookStage.js.map +1 -1
- package/dist/react/components/FlipBookTOC.js +2 -2
- package/dist/react/components/FlipBookTOC.js.map +1 -1
- package/dist/react/components/FlipBookThumbnails.js +1 -1
- package/dist/react/components/FlipBookThumbnails.js.map +1 -1
- package/dist/react/components/FlipBookToolbar.d.ts.map +1 -1
- package/dist/react/components/FlipBookToolbar.js +5 -2
- package/dist/react/components/FlipBookToolbar.js.map +1 -1
- package/dist/react/components/HotspotPopover.js +1 -1
- package/dist/react/components/HotspotPopover.js.map +1 -1
- package/dist/react/components/PasswordDialog.js +2 -2
- package/dist/react/components/PasswordDialog.js.map +1 -1
- package/dist/react/components/PdfPageView.js +1 -1
- package/dist/react/components/PdfPageView.js.map +1 -1
- package/dist/react/components/Thumbnail.d.ts.map +1 -1
- package/dist/react/components/Thumbnail.js +15 -4
- package/dist/react/components/Thumbnail.js.map +1 -1
- package/dist/react/context.d.ts +10 -2
- package/dist/react/context.d.ts.map +1 -1
- package/dist/react/context.js.map +1 -1
- package/dist/react/hooks/useGestures.d.ts +7 -2
- package/dist/react/hooks/useGestures.d.ts.map +1 -1
- package/dist/react/hooks/useGestures.js +19 -7
- package/dist/react/hooks/useGestures.js.map +1 -1
- package/dist/react/hooks/usePageAspect.d.ts.map +1 -1
- package/dist/react/hooks/usePageAspect.js +9 -3
- package/dist/react/hooks/usePageAspect.js.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/styles.d.ts +21 -5
- package/dist/react/styles.d.ts.map +1 -1
- package/dist/react/styles.js +46 -10
- package/dist/react/styles.js.map +1 -1
- package/dist/react/theme.d.ts +27 -3
- package/dist/react/theme.d.ts.map +1 -1
- package/dist/react/theme.js +115 -15
- package/dist/react/theme.js.map +1 -1
- package/dist/styles.css +13 -0
- package/dist/types/index.d.ts +107 -6
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,97 +1,221 @@
|
|
|
1
|
-
|
|
1
|
+
# next-flipbook Commercial License
|
|
2
2
|
|
|
3
|
-
This
|
|
4
|
-
lawyer. It says what the author asked for: the package is not free, and one license key covers one
|
|
5
|
-
website. Whether it says that in a way that holds up in your country, and what else it needs
|
|
6
|
-
(governing law, a limit on liability that the law of your customers' countries allows, how
|
|
7
|
-
contributions to the repository are licensed), is for a lawyer to decide. Fill in the [bracketed]
|
|
8
|
-
parts. `npm run verify:release` refuses to publish a package while this banner is here.
|
|
3
|
+
This document describes a commercial, one-time-payment license for next-flipbook. It is intended to provide perpetual use of the licensed Software for one website, without recurring subscription or renewal fees.
|
|
9
4
|
|
|
10
|
-
|
|
5
|
+
The Licensor should obtain legal advice on enforceability, governing law, liability limitations, third-party licenses, contributor rights, and applicable consumer protection requirements before publishing this agreement.
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
Complete all [bracketed] sections before release.
|
|
8
|
+
|
|
9
|
+
# next-flipbook Commercial License
|
|
13
10
|
|
|
14
11
|
Copyright (c) 2026 Samith Mendis ("the Licensor"). All rights reserved.
|
|
15
12
|
|
|
16
|
-
This license applies to next-flipbook version [0.10.0] and later ("the Software"). Earlier versions
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
This license applies to next-flipbook version [0.10.0] and later ("the Software"). Earlier versions published under the MIT License remain under the MIT License for recipients who obtained them under that license.
|
|
14
|
+
|
|
15
|
+
## 1. Definitions
|
|
16
|
+
|
|
17
|
+
**"Software"** means the next-flipbook npm package, including its source code, compiled files, documentation, and associated components distributed by the Licensor.
|
|
18
|
+
|
|
19
|
+
**"License Key"** means the unique license identifier issued by the Licensor after successful payment.
|
|
20
|
+
|
|
21
|
+
**"Licensed Website"** means the website domain registered to a License Key, including its subdomains.
|
|
22
|
+
|
|
23
|
+
**"Project"** means the website or web application operated from the Licensed Website.
|
|
24
|
+
|
|
25
|
+
**"Licensee"** means the individual or legal entity that purchases and holds the License Key.
|
|
26
|
+
|
|
27
|
+
**"Development Address"** means a local or private-network address, including localhost, an address in a private range (10.x.x.x, 172.16-31.x.x, 192.168.x.x, 127.x.x.x), or a hostname ending in .local, .localhost, .test, or .internal.
|
|
28
|
+
|
|
29
|
+
## 2. License Grant
|
|
30
|
+
|
|
31
|
+
Subject to payment of the applicable one-time license fee and compliance with this agreement, the Licensor grants the Licensee a non-exclusive, non-transferable, non-sublicensable, worldwide, perpetual commercial license to:
|
|
32
|
+
|
|
33
|
+
a. Evaluate and test the Software on any Development Address without a License Key and without charge.
|
|
34
|
+
|
|
35
|
+
b. Install, configure, integrate, and use the Software in the Project associated with the Licensed Website.
|
|
36
|
+
|
|
37
|
+
c. Use the Software in production and testing environments associated with the Project.
|
|
38
|
+
|
|
39
|
+
d. Include the Software in the Project's production build and distribute the resulting compiled or bundled files to visitors of the Licensed Website as part of the Project.
|
|
40
|
+
|
|
41
|
+
e. Access and read the Software's source code for the purposes of understanding, configuring, debugging, and maintaining their own use of the Software.
|
|
42
|
+
|
|
43
|
+
The rights granted under this section remain valid for the lifetime of the purchased license and do not require periodic renewal.
|
|
44
|
+
|
|
45
|
+
## 3. One License Key, One Website
|
|
46
|
+
|
|
47
|
+
Each License Key grants production usage rights for exactly one Licensed Website and its associated Project.
|
|
48
|
+
|
|
49
|
+
The following conditions apply:
|
|
50
|
+
|
|
51
|
+
a. A License Key may not be used for multiple independent websites or projects.
|
|
52
|
+
|
|
53
|
+
b. A separate License Key must be purchased for each additional website.
|
|
54
|
+
|
|
55
|
+
c. A License Key may not be shared, sold, transferred, published, or distributed to another party for independent use.
|
|
56
|
+
|
|
57
|
+
d. Agencies, development companies, and freelancers developing websites for multiple clients must purchase a separate License Key for each client's website.
|
|
58
|
+
|
|
59
|
+
e. Multiple developers working on the same Project may use the same License Key, provided they are working on behalf of the same Licensee and for the same Licensed Website.
|
|
60
|
+
|
|
61
|
+
f. Subdomains belonging to the Licensed Website are included under the same License Key.
|
|
62
|
+
|
|
63
|
+
g. Staging, testing, and preview environments associated with the same Project are permitted, including staging subdomains. Separate independent websites and projects require separate licenses.
|
|
64
|
+
|
|
65
|
+
A License Key does not grant production usage rights for any other website owned or operated by the Licensee.
|
|
66
|
+
|
|
67
|
+
## 4. Domain Changes and License Migration
|
|
68
|
+
|
|
69
|
+
A Licensee may migrate the License Key to a replacement domain when changing the domain of the same Project.
|
|
70
|
+
|
|
71
|
+
The following conditions apply:
|
|
72
|
+
|
|
73
|
+
a. The Licensee must deactivate the previous domain before activating the replacement domain.
|
|
74
|
+
|
|
75
|
+
b. A License Key cannot be active on multiple independent production websites simultaneously.
|
|
76
|
+
|
|
77
|
+
c. Domain migration must be performed through the license management system or by contacting the Licensor if manual assistance is required.
|
|
78
|
+
|
|
79
|
+
d. Domain migration does not require purchasing another License Key when it relates to the same Project.
|
|
80
|
+
|
|
81
|
+
e. A domain migration cannot be used to transfer a License Key to another customer's independent Project.
|
|
82
|
+
|
|
83
|
+
The Licensor may request reasonable verification to prevent misuse of domain migration.
|
|
84
|
+
|
|
85
|
+
## 5. Restrictions
|
|
86
|
+
|
|
87
|
+
The Licensee may not:
|
|
88
|
+
|
|
89
|
+
a. Remove, hide, disable, modify, or circumvent the Software's license validation mechanism, watermark, or console warning.
|
|
90
|
+
|
|
91
|
+
b. Modify the Software to make an unlicensed website appear as though it has a valid License Key.
|
|
92
|
+
|
|
93
|
+
c. Sell, rent, sublicense, redistribute, publish, or otherwise make the Software available to third parties as a standalone product or competing package.
|
|
94
|
+
|
|
95
|
+
d. Redistribute the Software's source code, compiled package, or substantial portions of it as part of another npm package, template, library, or commercial product, except for the permitted distribution described in Section 2.
|
|
96
|
+
|
|
97
|
+
e. Use the Software to develop, distribute, or operate a competing flipbook library or substantially similar competing software product.
|
|
98
|
+
|
|
99
|
+
f. Use the Software in production on a website without a valid License Key.
|
|
100
|
+
|
|
101
|
+
g. Share or expose a License Key publicly or intentionally allow unauthorized third parties to use it.
|
|
102
|
+
|
|
103
|
+
These restrictions do not prohibit the normal integration and distribution of the Software as part of the licensed Project.
|
|
104
|
+
|
|
105
|
+
## 6. Lifetime License and Payment
|
|
106
|
+
|
|
107
|
+
The Software is licensed under a one-time-payment model.
|
|
108
|
+
|
|
109
|
+
a. The Licensee pays a fixed license fee determined by the Licensor at the time of purchase.
|
|
110
|
+
|
|
111
|
+
b. The payment is made once for each Licensed Website.
|
|
112
|
+
|
|
113
|
+
c. No monthly, annual, subscription, or recurring renewal fees are required.
|
|
114
|
+
|
|
115
|
+
d. After successful payment and issuance of a License Key, the license is perpetual and does not have an automatic expiration date.
|
|
116
|
+
|
|
117
|
+
e. The Licensee may continue using the licensed version of the Software indefinitely, subject to this agreement.
|
|
118
|
+
|
|
119
|
+
f. Updates and bug fixes made generally available for the licensed product are included without additional recurring fees. Any separately priced major-version upgrade must be clearly identified and disclosed before purchase.
|
|
120
|
+
|
|
121
|
+
g. The Licensee is not required to pay additional fees merely to maintain an existing valid lifetime license.
|
|
122
|
+
|
|
123
|
+
The lifetime license grants continuing usage rights. It does not guarantee that the Licensor will maintain the Software, provide technical support, host external services, or release updates indefinitely.
|
|
124
|
+
|
|
125
|
+
## 7. License Termination and Revocation
|
|
126
|
+
|
|
127
|
+
A properly purchased lifetime License Key does not expire due to the passage of time.
|
|
128
|
+
|
|
129
|
+
However, the Licensor reserves the right to suspend or revoke a License Key if:
|
|
130
|
+
|
|
131
|
+
a. The Licensee materially breaches the terms of this agreement.
|
|
132
|
+
|
|
133
|
+
b. The License Key is obtained through fraud, unauthorized payment methods, or other unlawful means.
|
|
134
|
+
|
|
135
|
+
c. A payment is reversed, charged back, or otherwise invalidated after the License Key has been issued, subject to applicable payment dispute procedures.
|
|
136
|
+
|
|
137
|
+
d. The Licensee redistributes or sublicenses the Software in violation of this agreement.
|
|
138
|
+
|
|
139
|
+
Where reasonably possible, the Licensor will provide written notice describing the violation and a reasonable opportunity to correct it before revocation.
|
|
140
|
+
|
|
141
|
+
Upon valid termination or revocation:
|
|
142
|
+
|
|
143
|
+
a. The Licensee must stop production use of the Software on the affected Licensed Website.
|
|
144
|
+
|
|
145
|
+
b. The Software may display its watermark and license warning on the affected website.
|
|
146
|
+
|
|
147
|
+
c. The Licensee must remove or replace the Software if continued licensed use is no longer authorized.
|
|
148
|
+
|
|
149
|
+
d. The Licensee may contact the Licensor to resolve a disputed suspension or revocation.
|
|
150
|
+
|
|
151
|
+
A revocation becomes technically effective when the affected website receives or installs a Software version that recognizes the revoked License Key.
|
|
152
|
+
|
|
153
|
+
Nothing in this section removes any rights that cannot legally be excluded under applicable law.
|
|
154
|
+
|
|
155
|
+
## 8. Ownership and Intellectual Property
|
|
156
|
+
|
|
157
|
+
The Software is licensed, not sold.
|
|
158
|
+
|
|
159
|
+
The Licensor retains ownership of all intellectual property rights in the Software, including its source code, architecture, design, documentation, branding, and associated materials, except for third-party components.
|
|
160
|
+
|
|
161
|
+
This agreement does not transfer ownership of the Software to the Licensee.
|
|
162
|
+
|
|
163
|
+
The Licensee receives only the rights expressly granted under this agreement.
|
|
164
|
+
|
|
165
|
+
Nothing in this agreement grants the Licensee ownership of or rights to the next-flipbook name, trademarks, logos, or branding.
|
|
166
|
+
|
|
167
|
+
## 9. Third-Party Software
|
|
168
|
+
|
|
169
|
+
The Software may include or depend on third-party libraries, frameworks, and components, including React and PDF.js.
|
|
170
|
+
|
|
171
|
+
Such third-party components remain subject to their respective licenses and copyright notices.
|
|
172
|
+
|
|
173
|
+
This commercial license does not replace, override, or modify the licensing terms of third-party software.
|
|
19
174
|
|
|
20
|
-
|
|
175
|
+
The Licensor will identify applicable third-party licenses where required.
|
|
21
176
|
|
|
22
|
-
|
|
23
|
-
"Licensed Website" is the website name a License Key names, and the subdomains of that name.
|
|
24
|
-
"Project" is the one website or web application that is served from the Licensed Website.
|
|
25
|
-
"Development Address" is a local or private-network address: localhost, an address in a private
|
|
26
|
-
range (10.x.x.x, 172.16-31.x.x, 192.168.x.x, 127.x.x.x), or a name ending in .local, .localhost,
|
|
27
|
-
.test or .internal.
|
|
177
|
+
## 10. No Warranty
|
|
28
178
|
|
|
29
|
-
|
|
179
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
|
30
180
|
|
|
31
|
-
|
|
32
|
-
Key and at no charge.
|
|
33
|
-
b. With a valid License Key for a Licensed Website, use the Software in the Project, in
|
|
34
|
-
production and in testing, and include it in the Project's build and in what the Project
|
|
35
|
-
sends to its visitors.
|
|
36
|
-
c. Read the source code, for the purpose of understanding the Software and fixing your own use of it.
|
|
181
|
+
The Licensor does not guarantee that the Software will be uninterrupted, error-free, compatible with every environment, or suitable for every particular use.
|
|
37
182
|
|
|
38
|
-
|
|
39
|
-
the License Key.
|
|
183
|
+
Nothing in this section excludes warranties or rights that cannot legally be excluded.
|
|
40
184
|
|
|
41
|
-
|
|
185
|
+
## 11. Limitation of Liability
|
|
42
186
|
|
|
43
|
-
|
|
44
|
-
License Key on any other website or in any other project, and may not give, sell, publish or
|
|
45
|
-
share it so that another party can use it. A second website, or a project for a different
|
|
46
|
-
customer, needs its own License Key. [An agency that builds sites for clients needs a License Key
|
|
47
|
-
for each client's site.]
|
|
187
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW:
|
|
48
188
|
|
|
49
|
-
|
|
189
|
+
a. The Licensor shall not be liable for indirect, incidental, special, exemplary, or consequential damages.
|
|
50
190
|
|
|
51
|
-
|
|
52
|
-
or change the Software so that a website without a valid License Key looks as if it had one.
|
|
53
|
-
b. Sell, rent, sublicense, publish, or otherwise make the Software available to others, whole or in
|
|
54
|
-
part, in source form, compiled form, or inside a package, template or library of your own,
|
|
55
|
-
except as part of the Project's own output to its visitors.
|
|
56
|
-
c. Use the Software to make a product that competes with it.
|
|
57
|
-
d. Use the Software in production on a website that has no valid License Key.
|
|
191
|
+
b. The Licensor shall not be liable for loss of profits, revenue, business opportunities, data, or business interruption arising from the use of or inability to use the Software.
|
|
58
192
|
|
|
59
|
-
|
|
193
|
+
c. The Licensor's total aggregate liability arising from or relating to this agreement shall not exceed the license fee actually paid by the Licensee for the relevant License Key.
|
|
60
194
|
|
|
61
|
-
|
|
62
|
-
Licensor may withdraw a License Key if you break this license, or if the fee for it is not paid
|
|
63
|
-
[when due]. When a License Key ends or is withdrawn, the Software shows its watermark on the
|
|
64
|
-
Licensed Website, and you must stop using the Software there in production, or obtain a new
|
|
65
|
-
License Key. A withdrawal takes effect for a website when it installs a version of the Software
|
|
66
|
-
that lists the withdrawal.
|
|
195
|
+
These limitations do not apply to liability that cannot legally be excluded or limited under applicable law.
|
|
67
196
|
|
|
68
|
-
|
|
197
|
+
## 12. Governing Law and Jurisdiction
|
|
69
198
|
|
|
70
|
-
|
|
71
|
-
give you. Nothing here gives you any right to the name "next-flipbook".
|
|
199
|
+
This agreement shall be governed by the laws of [SRI LANKA / OTHER JURISDICTION], without regard to conflict-of-law principles.
|
|
72
200
|
|
|
73
|
-
|
|
201
|
+
Any disputes arising from or relating to this agreement shall be subject to the jurisdiction of the competent courts of [COLOMBO, SRI LANKA / OTHER AGREED JURISDICTION], subject to mandatory legal protections and jurisdictional requirements.
|
|
74
202
|
|
|
75
|
-
|
|
76
|
-
license does not change those.
|
|
203
|
+
## 13. Changes to This Agreement
|
|
77
204
|
|
|
78
|
-
|
|
205
|
+
The Licensor may publish updated versions of this agreement.
|
|
79
206
|
|
|
80
|
-
|
|
81
|
-
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
207
|
+
Changes to the agreement will not automatically remove or reduce the perpetual usage rights already granted under a previously purchased License Key.
|
|
82
208
|
|
|
83
|
-
|
|
209
|
+
Any material changes affecting existing Licensees must be communicated appropriately and will be subject to applicable law.
|
|
84
210
|
|
|
85
|
-
|
|
86
|
-
ANY LOSS OF PROFIT, DATA OR BUSINESS, ARISING FROM THE SOFTWARE, AND THE LICENSOR'S TOTAL LIABILITY IS
|
|
87
|
-
LIMITED TO THE FEE YOU PAID FOR THE LICENSE KEY IN THE [12] MONTHS BEFORE THE CLAIM.
|
|
88
|
-
[A lawyer should check this against the law of the places your customers are in.]
|
|
211
|
+
## 14. Contact Information
|
|
89
212
|
|
|
90
|
-
|
|
213
|
+
For licensing questions, technical inquiries, domain migrations, and license-related support:
|
|
91
214
|
|
|
92
|
-
|
|
93
|
-
|
|
215
|
+
**Licensor:** Samith Mendis
|
|
216
|
+
**Email:** samithmendis.01@gmail.com
|
|
217
|
+
**GitHub:** https://github.com/dsamithmendis
|
|
94
218
|
|
|
95
|
-
|
|
219
|
+
---
|
|
96
220
|
|
|
97
|
-
|
|
221
|
+
Copyright (c) 2026 Samith Mendis. All rights reserved.
|
package/README.md
CHANGED
|
@@ -80,6 +80,27 @@ import "next-flipbook/styles.css";
|
|
|
80
80
|
|
|
81
81
|
The viewer draws nothing on the server. It measures its container in the browser first, so the server HTML is a small shell and there is no hydration mismatch or flash of the wrong layout.
|
|
82
82
|
|
|
83
|
+
## Your design, a page curl, a notebook, smaller images
|
|
84
|
+
|
|
85
|
+
```tsx
|
|
86
|
+
<FlipBook
|
|
87
|
+
pages={pages}
|
|
88
|
+
cover
|
|
89
|
+
// The look, in code: a built-in theme, or your own tokens.
|
|
90
|
+
theme={{ preset: "sepia", accent: "#0f766e", pageRadius: 6, bookShadow: "0 14px 30px rgba(0, 0, 0, 0.28)" }}
|
|
91
|
+
classNames={{ toolbar: "my-toolbar" }}
|
|
92
|
+
styles={{ root: { borderRadius: 16 } }}
|
|
93
|
+
// How a page moves: swung on its spine ("flat", the default) or folded from a corner.
|
|
94
|
+
flipStyle="curl"
|
|
95
|
+
// Which way pages turn: "vertical" is a notebook, bound along the top, whose pages flip upwards.
|
|
96
|
+
orientation="horizontal"
|
|
97
|
+
// Page images: the smallest file that is sharp at the size shown (Next.js optimizer here).
|
|
98
|
+
imageOptions={nextImages}
|
|
99
|
+
/>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Each has its own page: [making it look like yours](docs/customisation.md), [how a page turns](docs/flipping.md), [image pages and their size](docs/images.md). The demo has a page for each (`/design`, `/flips`, `/image-sizes`).
|
|
103
|
+
|
|
83
104
|
## Examples
|
|
84
105
|
|
|
85
106
|
```tsx
|
|
@@ -154,7 +175,8 @@ ref.current?.getCacheStats(); // what the viewer holds: cached pages, thumbnails
|
|
|
154
175
|
| --- | --- | --- |
|
|
155
176
|
| `licenseKey` | none | The key you were given for this website. Without a valid one the viewer shows a watermark and one console warning, and keeps working. `localhost` and private addresses need none. `<FlipBookLicenseProvider>` sets it for every viewer below it. See [docs/licensing.md](docs/licensing.md). |
|
|
156
177
|
| `source` | none | A PDF: URL, `File`, `Blob`, `ArrayBuffer` or `Uint8Array`. Pass `source` or `pages`, not both. Keep it referentially stable: a new value loads a new document. |
|
|
157
|
-
| `pages` | none | Strings (image URLs), `{ type: "image", src, alt?, width?, height? }`, `{ type: "custom", component? \| render? }` or `{ type: "pdf", source, page }`. |
|
|
178
|
+
| `pages` | none | Strings (image URLs), `{ type: "image", src, alt?, width?, height?, srcSet?, placeholder?, thumbnail? }`, `{ type: "custom", component? \| render? }` or `{ type: "pdf", source, page }`. |
|
|
179
|
+
| `imageOptions` | none | How image pages are sized and fetched: a `loader` for an image service, `widths`, `quality`, `maxPixelRatio`, `sharpenOnZoom`. `imageOptions={nextImages}` uses the Next.js optimizer. Pages with a `srcSet` need no service. See [docs/images.md](docs/images.md). |
|
|
158
180
|
| `pdf` | none | `workerSrc`, `renderScale`, `maxCanvasPixels`, `maxCacheBytes`, `maxTextCacheBytes`, `cleanupAfterPages`, `password`, `withCredentials`, `httpHeaders`, `maxConcurrentRenders`, `documentParams`, `loadPdfjs`. See [docs/pdf.md](docs/pdf.md). |
|
|
159
181
|
| `onPassword` | built-in dialog | `(answer, reason) => void`. Call `answer(password)` or `answer(null)` to give up. |
|
|
160
182
|
| `cacheSize` | `10` | Rendered PDF pages kept in memory. Pages that would not fit alongside the visible ones are not prefetched, so a large `preloadPages` with a small `cacheSize` cannot thrash. |
|
|
@@ -169,7 +191,11 @@ ref.current?.getCacheStats(); // what the viewer holds: cached pages, thumbnails
|
|
|
169
191
|
| `whileTurning` | `"queue"` | `"ignore"` drops navigation that arrives mid-turn. |
|
|
170
192
|
| `shadow`, `shadowIntensity` | `true`, `0.5` | Dynamic shading during turns. |
|
|
171
193
|
| `reducedMotion` | `"auto"` | Follows `prefers-reduced-motion`; page changes become instant. |
|
|
172
|
-
| `theme` | none | `"light"`
|
|
194
|
+
| `theme` | none | A built-in look (`"light"`, `"dark"`, `"sepia"`, `"midnight"`) or an object of your own: colours, page corners, a border, a shadow under the book, the crease at the spine, the font. See [docs/customisation.md](docs/customisation.md). |
|
|
195
|
+
| `classNames`, `styles` | none | A class and an inline style for each part of the viewer: `root`, `stage`, `book`, `page`, `toolbar`, `panel`, `notice`. |
|
|
196
|
+
| `flipStyle` | `"flat"` | `"flat"` swings the page on its spine; `"curl"` folds it from a corner, with the back of the paper and shadows, and follows a dragged corner. Our own implementation, no extra dependency. See [docs/flipping.md](docs/flipping.md). |
|
|
197
|
+
| `orientation` | `"horizontal"` | `"vertical"` is a notebook bound along the top: pages flip **upwards**, a double view stacks two pages, dragging up (or `ArrowDown`) goes forward. Works with both flip styles. |
|
|
198
|
+
| `toolbarPosition` | `"bottom"` | `"top"` puts the toolbar above the book. |
|
|
173
199
|
| `background`, `backgroundControl`, `backgroundColors`, `onBackgroundChange` | theme | Any CSS background, including `"transparent"`; a toolbar button with a color picker; the colors it offers; a callback. Also `setBackground()` on the ref. |
|
|
174
200
|
| `toolbar`, `navigation`, `keyboard` | `true` | The bottom bar; its previous/next/counter; arrow keys, Home, End, `+` `-` `0` zoom, `F` fullscreen, `B` bookmark. |
|
|
175
201
|
| `fullscreen` | `true` | Button and `F`. Fills the window where the browser API is missing. |
|
|
@@ -201,7 +227,7 @@ ref.current?.getCacheStats(); // what the viewer holds: cached pages, thumbnails
|
|
|
201
227
|
|
|
202
228
|
Errors arrive as `{ code, message, cause?, page? }`. Codes: `INVALID_PDF`, `PDF_NOT_FOUND`, `NETWORK_ERROR` (offline or blocked by CORS), `PASSWORD_REQUIRED`, `PDF_WORKER_FAILED`, `PAGE_RENDER_FAILED`, `IMAGE_LOAD_FAILED`, `UNSUPPORTED_SOURCE`, `INVALID_ARGUMENT`.
|
|
203
229
|
|
|
204
|
-
Every
|
|
230
|
+
Every colour can be set through CSS variables as well as the `theme` prop: `--flipbook-background`, `--flipbook-toolbar-background`, `--flipbook-toolbar-color`, `--flipbook-page-background`, `--flipbook-page-color`, `--flipbook-shadow`, `--flipbook-accent`, and `--flipbook-font`, `--flipbook-page-radius`, `--flipbook-page-border`, `--flipbook-book-filter`, `--flipbook-spine-opacity`, `--flipbook-spine-width`.
|
|
205
231
|
|
|
206
232
|
## How it stays fast
|
|
207
233
|
|
|
@@ -266,7 +292,7 @@ Only the pages near the reader are drawn and kept: the visible spread, `preloadP
|
|
|
266
292
|
| 6 | Prefetch tuning, memory bounds and cleanup, benchmarks on 100 to 1000 page PDFs, cache statistics | **Done** |
|
|
267
293
|
| 7 | ESLint, Playwright end-to-end, accessibility and visual tests, a playground, CI, release workflow | **Done**, except a docs site and the first npm publish |
|
|
268
294
|
|
|
269
|
-
Not yet in the API, on purpose: `hardPages`, `
|
|
295
|
+
Not yet in the API, on purpose: `hardPages`, `autoplay`, `sound`, plugins, annotations, OCR and a selectable text layer.
|
|
270
296
|
|
|
271
297
|
## Development
|
|
272
298
|
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { FlipBookDirection, FlipBookOrientation } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Page-curl geometry.
|
|
4
|
+
*
|
|
5
|
+
* A turning page is folded flat along a straight crease, and the folded part
|
|
6
|
+
* shows the back of the paper. Everything here is plain 2D maths with no DOM,
|
|
7
|
+
* so it is tested on its own and the renderer only has to draw what it is told.
|
|
8
|
+
*
|
|
9
|
+
* Paper coordinates: `u` runs along the turn axis from the hinge (0) to the
|
|
10
|
+
* free edge (`length`), and `v` runs across it, from 0 to `breadth`. One
|
|
11
|
+
* corner of the free edge is held (`P0`) and the fold carries it to a point
|
|
12
|
+
* `T`; the crease is the perpendicular bisector of `P0` and `T`, so folding
|
|
13
|
+
* is the reflection that swaps them. The part of the page on `P0`'s side of
|
|
14
|
+
* the crease is the flap, and it lands on `T`'s side.
|
|
15
|
+
*
|
|
16
|
+
* `T` follows a half circle from the free edge round to the mirror image of
|
|
17
|
+
* the page on the far side of the hinge, with a sideways lift that rises and
|
|
18
|
+
* falls on the way. Without a lift the crease stays parallel to the hinge and
|
|
19
|
+
* the page folds like a flat sheet; with one the crease tilts and the page
|
|
20
|
+
* peels from its corner, as paper does under a finger.
|
|
21
|
+
*/
|
|
22
|
+
export type Point2 = readonly [number, number];
|
|
23
|
+
/** An affine map in the order of CSS `matrix(a, b, c, d, e, f)`: x' = ax + cy + e, y' = bx + dy + f. */
|
|
24
|
+
export type Matrix = readonly [number, number, number, number, number, number];
|
|
25
|
+
export declare const IDENTITY: Matrix;
|
|
26
|
+
/** `multiply(m, n)` applies `n` first and `m` second. */
|
|
27
|
+
export declare function multiply(m: Matrix, n: Matrix): Matrix;
|
|
28
|
+
export declare function transformPoint(m: Matrix, p: Point2): Point2;
|
|
29
|
+
export declare function invertMatrix(m: Matrix): Matrix;
|
|
30
|
+
/** The CSS `matrix()` for a map, with numbers short enough to write into a style every frame. */
|
|
31
|
+
export declare function matrixToCss(m: Matrix): string;
|
|
32
|
+
/** A polygon as a CSS `clip-path` value. An empty polygon clips everything away. */
|
|
33
|
+
export declare function polygonToCss(points: readonly Point2[]): string;
|
|
34
|
+
/** Which end of the free edge is held: the one at `v = 0` or the one at `v = breadth`. */
|
|
35
|
+
export type CurlCorner = "start" | "end";
|
|
36
|
+
export interface CurlInput {
|
|
37
|
+
/** Size of the page along the turn axis, in pixels. */
|
|
38
|
+
length: number;
|
|
39
|
+
/** Size of the page across the turn axis, in pixels. */
|
|
40
|
+
breadth: number;
|
|
41
|
+
/** How far the page has turned, 0 (flat on its own side) to 1 (flat on the other side). */
|
|
42
|
+
fold: number;
|
|
43
|
+
corner: CurlCorner;
|
|
44
|
+
/** How far the held corner is drawn towards the middle of the page, in pixels. At least 0. */
|
|
45
|
+
lift: number;
|
|
46
|
+
}
|
|
47
|
+
export interface CurlCrease {
|
|
48
|
+
/** A point on the crease. */
|
|
49
|
+
point: Point2;
|
|
50
|
+
/** Unit vector across the crease, pointing at the lifted side. */
|
|
51
|
+
normal: Point2;
|
|
52
|
+
}
|
|
53
|
+
export interface CurlFrame {
|
|
54
|
+
/** The part of the front that still lies flat. */
|
|
55
|
+
flat: Point2[];
|
|
56
|
+
/** The part that has been lifted, drawn where it has landed. */
|
|
57
|
+
flap: Point2[];
|
|
58
|
+
/** The part of the page underneath that the lifted part has uncovered. */
|
|
59
|
+
revealed: Point2[];
|
|
60
|
+
/** Where the flap casts a shadow: the flat side of the crease, out to one page past the hinge. */
|
|
61
|
+
receiver: Point2[];
|
|
62
|
+
/** Maps a point of the paper to where the fold has put it. */
|
|
63
|
+
reflection: Matrix;
|
|
64
|
+
/** `null` while nothing has been lifted. */
|
|
65
|
+
crease: CurlCrease | null;
|
|
66
|
+
/** How far the flap reaches from the crease. */
|
|
67
|
+
flapDepth: number;
|
|
68
|
+
}
|
|
69
|
+
/** The part of a convex polygon with `keep * ((p - point) . normal) >= 0` (Sutherland-Hodgman, one edge). */
|
|
70
|
+
export declare function clipHalfPlane(polygon: readonly Point2[], point: Point2, normal: Point2, keep: 1 | -1): Point2[];
|
|
71
|
+
/** Unsigned area of a simple polygon. */
|
|
72
|
+
export declare function polygonArea(polygon: readonly Point2[]): number;
|
|
73
|
+
/**
|
|
74
|
+
* The fold of one page at one moment.
|
|
75
|
+
*
|
|
76
|
+
* `lift` is limited to `length`. Within that limit the folded corner is never
|
|
77
|
+
* further from either end of the hinge than the corner it came from, which is
|
|
78
|
+
* what a sheet that cannot stretch allows, so the hinge stays on the flat side.
|
|
79
|
+
*/
|
|
80
|
+
export declare function computeCurl(input: CurlInput): CurlFrame;
|
|
81
|
+
/**
|
|
82
|
+
* Maps paper coordinates (hinge at `u = 0`) to pixels in the leaf's box (the
|
|
83
|
+
* page's own rectangle, top left at 0, 0). The hinge is the left edge in a
|
|
84
|
+
* left-to-right book, the right edge in a right-to-left one, and the top edge
|
|
85
|
+
* when the book turns upwards.
|
|
86
|
+
*/
|
|
87
|
+
export declare function paperToBox(orientation: FlipBookOrientation, direction: FlipBookDirection, width: number): Matrix;
|
|
88
|
+
/**
|
|
89
|
+
* Maps a point of the page printed on the back of the leaf to the leaf's box
|
|
90
|
+
* as it lies flat, face down: mirrored along the turn axis, as in the flat
|
|
91
|
+
* turn, where the back face is the front rotated half a turn about the hinge.
|
|
92
|
+
*/
|
|
93
|
+
export declare function backToBox(orientation: FlipBookOrientation, width: number, height: number): Matrix;
|
|
94
|
+
export interface CurlBox {
|
|
95
|
+
flat: Point2[];
|
|
96
|
+
flap: Point2[];
|
|
97
|
+
revealed: Point2[];
|
|
98
|
+
receiver: Point2[];
|
|
99
|
+
/** Places the back page, as an element of the page's size at the box origin, where the fold has put it. */
|
|
100
|
+
flapMatrix: Matrix;
|
|
101
|
+
/** The crease in box coordinates, with the normal pointing at the lifted side. `null` while flat. */
|
|
102
|
+
crease: CurlCrease | null;
|
|
103
|
+
flapDepth: number;
|
|
104
|
+
}
|
|
105
|
+
export interface CurlBoxInput {
|
|
106
|
+
/** Page size in pixels. */
|
|
107
|
+
width: number;
|
|
108
|
+
height: number;
|
|
109
|
+
orientation: FlipBookOrientation;
|
|
110
|
+
direction: FlipBookDirection;
|
|
111
|
+
fold: number;
|
|
112
|
+
corner: CurlCorner;
|
|
113
|
+
lift: number;
|
|
114
|
+
}
|
|
115
|
+
/** One frame of the curl for a page of a given size and orientation, in the page's own pixels. */
|
|
116
|
+
export declare function computeCurlBox(input: CurlBoxInput): CurlBox;
|
|
117
|
+
export interface CurlShading {
|
|
118
|
+
/** Darkness of the shadow on the page that was uncovered, strongest at the crease. */
|
|
119
|
+
revealOpacity: number;
|
|
120
|
+
/** How far that shadow reaches from the crease, in pixels. */
|
|
121
|
+
revealLength: number;
|
|
122
|
+
/** Darkness at the crease of the lifted part, which is turned away from the light there. */
|
|
123
|
+
flapDark: number;
|
|
124
|
+
/** A faint highlight just past the crease, where the paper bends towards the light. */
|
|
125
|
+
flapLight: number;
|
|
126
|
+
/** Darkness of the shadow the lifted part casts on the page it lies on. */
|
|
127
|
+
castOpacity: number;
|
|
128
|
+
/** Softness of that shadow, in pixels. */
|
|
129
|
+
castBlur: number;
|
|
130
|
+
/** How far the shadow is pushed away from the crease, in pixels. */
|
|
131
|
+
castOffset: number;
|
|
132
|
+
}
|
|
133
|
+
/** Shadow values for a fold. `strength` is 0 for none, 1 for the strongest. */
|
|
134
|
+
export declare function computeCurlShading(input: {
|
|
135
|
+
fold: number;
|
|
136
|
+
length: number;
|
|
137
|
+
strength: number;
|
|
138
|
+
}): CurlShading;
|
|
139
|
+
//# sourceMappingURL=curl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curl.d.ts","sourceRoot":"","sources":["../../../src/core/animation/curl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAG1E;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/C,wGAAwG;AACxG,MAAM,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/E,eAAO,MAAM,QAAQ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