react-motion-gallery 1.0.0 → 2.0.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.md ADDED
@@ -0,0 +1,94 @@
1
+ # React Motion Gallery License
2
+
3
+ Copyright © 2026 React Motion Gallery
4
+ All rights reserved.
5
+
6
+ ---
7
+
8
+ ## 1. Definitions
9
+
10
+ **"Software"** refers to the React Motion Gallery library, including all source code, documentation, examples, demos, Storybook content, and any associated assets provided in this repository or distributed via npm.
11
+
12
+ **"Non-Commercial Use"** means use of the Software:
13
+ - for personal projects,
14
+ - for learning, experimentation, evaluation,
15
+ - for internal tools not generating revenue,
16
+ - for open-source projects that do not generate revenue,
17
+ - for demo, prototype, or proof-of-concept purposes.
18
+
19
+ **"Commercial Use"** means use of the Software:
20
+ - in any product, service, or application that generates revenue,
21
+ - in SaaS products, paid websites, paid mobile or desktop apps,
22
+ - in client work, consulting, agency work, or freelance projects,
23
+ - in internal business software used by a for-profit entity,
24
+ - in any product or service offered in exchange for money or other consideration.
25
+
26
+ ---
27
+
28
+ ## 2. License Grant (Non-Commercial Use)
29
+
30
+ Subject to the terms of this License, permission is hereby granted to any individual or organization to use, copy, modify, and distribute the Software **for Non-Commercial Use only**, free of charge.
31
+
32
+ You may:
33
+ - view and study the source code,
34
+ - modify the Software for Non-Commercial Use,
35
+ - distribute modified versions for Non-Commercial Use,
36
+ - use the Software in personal, educational, or evaluation projects.
37
+
38
+ ---
39
+
40
+ ## 3. Commercial Use Requires a Paid License
41
+
42
+ Any **Commercial Use** of the Software **requires a valid commercial license** obtained from React Motion Gallery.
43
+
44
+ Commercial licenses can be purchased at:
45
+
46
+ 👉 **https://react-motion-gallery.com/pricing**
47
+
48
+ Without a commercial license, you **may not**:
49
+ - use the Software in revenue-generating products or services,
50
+ - include the Software in client deliverables,
51
+ - deploy the Software in production for commercial purposes.
52
+
53
+ ---
54
+
55
+ ## 4. Redistribution Restrictions
56
+
57
+ You may **not**:
58
+ - sell, sublicense, or commercially distribute the Software without a commercial license,
59
+ - remove or alter copyright notices,
60
+ - represent the Software as your own proprietary work,
61
+ - offer the Software as a competing gallery or component library.
62
+
63
+ ---
64
+
65
+ ## 5. No Warranty
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
68
+
69
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
70
+
71
+ ---
72
+
73
+ ## 6. Termination
74
+
75
+ This license is automatically terminated if you violate any of its terms.
76
+
77
+ Upon termination, you must cease all use and distribution of the Software and destroy all copies in your possession.
78
+
79
+ ---
80
+
81
+ ## 7. Contact
82
+
83
+ For commercial licensing, enterprise plans, or other inquiries, contact:
84
+
85
+ 📧 **support@react-motion-gallery.com**
86
+ 🌐 **https://react-motion-gallery.com**
87
+
88
+ ---
89
+
90
+ ## 8. Summary (Non-Legal)
91
+
92
+ - ✅ Free for personal and non-commercial use
93
+ - 💼 Paid license required for commercial or revenue-generating use
94
+ - 🔒 Source is visible, but not open source under an OSI license
package/README.md CHANGED
@@ -1 +1,46 @@
1
- # react-motion-gallery
1
+ # React Motion Gallery (RMG)
2
+
3
+ A flexible React gallery component with four layouts:
4
+
5
+ - **Slider** (default)
6
+ - **Grid**
7
+ - **Masonry**
8
+ - **Entries** (data-driven cards with media + overlays)
9
+
10
+ Includes optional **Fullscreen mode**, **Thumbnails**, customizable **controls**, and an imperative **GalleryApi** for programmatic control.
11
+
12
+ ---
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ npm i react-motion-gallery
18
+ # or
19
+ yarn add react-motion-gallery
20
+ # or
21
+ pnpm add react-motion-gallery
22
+ ```
23
+
24
+ ## Core rule: wrap every item in a div
25
+
26
+ RMG treats each direct child wrapper as an item.
27
+ That means every image/video must be inside a <div>:
28
+
29
+ ```tsx
30
+ import * as React from "react";
31
+ import { Gallery } from "react-motion-gallery";
32
+
33
+ export function WrapperRuleExample() {
34
+ return (
35
+ <Gallery>
36
+ <div>
37
+ <img src="https://picsum.photos/seed/1/900/500" alt="" />
38
+ </div>
39
+
40
+ <div>
41
+ <img src="https://picsum.photos/seed/2/900/500" alt="" />
42
+ </div>
43
+ </Gallery>
44
+ );
45
+ }
46
+ ```