@yogiswara/honcho-editor-ui 2.1.20 → 2.2.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,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', WebkitOverflowScrolling: 'touch' }, 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);
@@ -142,17 +142,13 @@ const GalleryImageItem = (props) => {
142
142
  return (_jsxs(Box, { id: "Box_image", sx: boxOuterSx, className: "image", children: [!props.isHiddenGallery &&
143
143
  (hasAdjustments && isSelected ? (_jsx(Box, { color: "primary.dark1", onClick: handleImageSelectedIconClick, sx: {
144
144
  position: "absolute",
145
- // width: "19px",
146
- // height: "19px",
147
- // zIndex: "2",
148
- // left: "5px",
149
- // top: "5px",
145
+ width: "19px",
146
+ height: "19px",
147
+ zIndex: "2",
148
+ left: "5px",
149
+ top: "5px",
150
150
  borderRadius: { xs: "50%", sm: 0 },
151
- }, className: "checkbox", children: _jsx(CustomTickIcon, {}) })) : (_jsx(Box
152
- // color={"neutral.light2"}
153
- , {
154
- // color={"neutral.light2"}
155
- onClick: handleImageSelectedIconClick, sx: {
151
+ }, className: "checkbox", children: _jsx(CustomTickIcon, {}) })) : (_jsx(Box, { color: "neutral.light2", onClick: handleImageSelectedIconClick, sx: {
156
152
  position: "absolute",
157
153
  width: "19px",
158
154
  height: "19px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "2.1.20",
3
+ "version": "2.2.0",
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",