meta-mosaic 1.0.11 → 1.0.12

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 (2) hide show
  1. package/README.md +25 -11
  2. package/package.json +34 -4
package/README.md CHANGED
@@ -1,7 +1,12 @@
1
1
  # 🧩 MetaMosaic
2
2
 
3
3
  > A simple and responsive React component to create a mosaic grid of images — with background image, custom styles, and click dialog support.
4
- <img width="1215" height="514" alt="Screenshot 2025-11-09 at 6 42 07 PM" src="https://github.com/user-attachments/assets/fd24e2f8-df1e-4122-84b3-b7cbe1a8a8f9" />
4
+ > ![ScreenRecording2025-11-29at4 09 29PM-ezgif com-optimize (2)](https://github.com/user-attachments/assets/172c6b36-616c-42fe-ba49-c05b0fe9a223)
5
+
6
+ ![npm version](https://img.shields.io/npm/v/meta-mosaic)
7
+ ![License](https://img.shields.io/npm/l/meta-mosaic)
8
+ ![Downloads](https://img.shields.io/npm/dw/meta-mosaic)
9
+ [![React](https://img.shields.io/badge/React-17+-blue)](https://reactjs.org/)
5
10
 
6
11
  ---
7
12
 
@@ -35,7 +40,8 @@ const images = Array.from({ length: 400 }, (_, i) => ({
35
40
  title: `Image ${i + 1}`,
36
41
  }));
37
42
 
38
- const bgImage = "https://i.etsystatic.com/32237469/r/il/72bad1/4009560313/il_570xN.4009560313_q4ps.jpg";
43
+ const bgImage =
44
+ "https://i.etsystatic.com/32237469/r/il/72bad1/4009560313/il_570xN.4009560313_q4ps.jpg";
39
45
 
40
46
  function App() {
41
47
  return (
@@ -82,9 +88,6 @@ export default App;
82
88
 
83
89
  ## 💡 Example: setDialog
84
90
 
85
- <img width="1216" height="707" alt="Screenshot 2025-11-09 at 6 42 50 PM" src="https://github.com/user-attachments/assets/0a81379d-e28d-4671-a749-b881ef68519d" />
86
-
87
-
88
91
  ```jsx
89
92
  setDialog={(img) => (
90
93
  <div>
@@ -118,17 +121,28 @@ The component adjusts automatically based on screen size.
118
121
 
119
122
  #### ✨ New Features
120
123
 
121
- * Added all props: `images`, `size`, `bgImageUrl`, `gridWrapperClassName`, `gridWrapperStyle`, `bgPosition`, `width`, `height`, and `setDialog`.
122
- * Fully responsive and customizable grid.
123
- * Clickable mosaic cells with custom dialog support.
124
+ - Added all props: `images`, `size`, `bgImageUrl`, `gridWrapperClassName`, `gridWrapperStyle`, `bgPosition`, `width`, `height`, and `setDialog`.
125
+ - Fully responsive and customizable grid.
126
+ - Clickable mosaic cells with custom dialog support.
124
127
 
125
128
  ---
126
129
 
127
130
  ## 🧠 Tips
128
131
 
129
- * Use high-quality images for better visual effect.
130
- * The `bgImageUrl` should have similar aspect ratio as your grid.
131
- * Combine `gridWrapperStyle` with `className` for fine-tuned control.
132
+ - Use high-quality images for better visual effect.
133
+ - The `bgImageUrl` should have similar aspect ratio as your grid.
134
+ - Combine `gridWrapperStyle` with `className` for fine-tuned control.
135
+
136
+ ---
137
+
138
+ ## Alternatives & Comparisons
139
+
140
+ - `react-mosaic-component` - More complex, for window management
141
+ - `@tilework/mosaic` - E-commerce focused
142
+ - `react-photo-gallery` - Simpler, no dialog support
143
+ - `react-grid-gallery` - Heavy bundle, more features
144
+
145
+ **meta-mosaic** is lightweight and perfect for simple, responsive image grids with metadata.
132
146
 
133
147
  ---
134
148
 
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "meta-mosaic",
3
- "version": "1.0.11",
4
- "description": "A React component library to create interactive image mosaics with metadata popups.",
3
+ "version": "1.0.12",
4
+ "description": "A simple and responsive React component to create interactive image mosaics with metadata popups, background images, and click-to-enlarge dialogs.",
5
+ "homepage": "https://meta-mosaic-showcase.onrender.com",
5
6
  "main": "dist/index.umd.js",
6
7
  "module": "dist/index.es.js",
7
8
  "files": [
@@ -21,12 +22,41 @@
21
22
  "popup",
22
23
  "gallery",
23
24
  "photo viewer",
24
- "react library"
25
+ "react library",
26
+ "react",
27
+ "mosaic",
28
+ "gallery",
29
+ "image-gallery",
30
+ "image-grid",
31
+ "responsive-grid",
32
+ "photo-gallery",
33
+ "image-mosaic",
34
+ "popup",
35
+ "dialog",
36
+ "metadata",
37
+ "react-component",
38
+ "grid-layout",
39
+ "image-layout",
40
+ "portfolio",
41
+ "showcase",
42
+ "tiling-window",
43
+ "window-manager",
44
+ "lightbox",
45
+ "photo-viewer",
46
+ "mosaic npm",
47
+ "react image mosaic",
48
+ "react canvas mosaic"
25
49
  ],
26
50
  "author": "Arbaj Ansari",
27
51
  "license": "MIT",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "https://github.com/A-Coder02/meta-mosaic"
55
+ },
28
56
  "scripts": {
29
- "build": "vite build"
57
+ "dev": "vite",
58
+ "build": "vite build",
59
+ "preview": "vite preview"
30
60
  },
31
61
  "peerDependencies": {
32
62
  "react": "^19.0.0",