@yogiswara/honcho-editor-ui 2.1.19 → 2.1.21

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,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Box } from "@mui/material";
3
+ import { Box, Stack } from "@mui/material";
4
4
  import Masonry, { ResponsiveMasonry } from "react-responsive-masonry";
5
5
  import GalleryImageItem from "./ImageItem";
6
6
  const AlbumImageGallery = (props) => {
7
7
  const { imageCollection, isSelectedMode, isHiddenGallery, enableEditor, // Destructure the new prop
8
8
  onPreview, onSelectedMode, onToggleSelect, } = props;
9
9
  console.log("imageCollection: ", imageCollection);
10
- return (_jsx("section", { style: { width: '100%', maxHeight: '100%', overflowY: 'auto' }, children: _jsx(ResponsiveMasonry, { columnsCountBreakPoints: { 750: 2, 900: 4 }, children: _jsx(Masonry, { children: imageCollection.map((photo, index) => {
10
+ return (_jsx(Stack, { sx: { width: '100%', maxHeight: '100%', overflowY: 'auto' }, children: _jsx(ResponsiveMasonry, { columnsCountBreakPoints: { 750: 2, 900: 4 }, children: _jsx(Masonry, { children: imageCollection.map((photo, index) => {
11
11
  // This guard clause is still important for runtime safety.
12
12
  if (!photo.key || !photo.src) {
13
13
  console.warn("Skipping item without a key or src:", photo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",