@yogiswara/honcho-editor-ui 2.1.14 → 2.1.16

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.
@@ -6,7 +6,6 @@ interface PhotoProps<T> {
6
6
  width: number;
7
7
  height: number;
8
8
  key: string;
9
- photo?: T;
10
9
  }
11
10
  interface Props {
12
11
  margin?: any;
@@ -23,6 +23,7 @@ const GalleryImageItem = (props) => {
23
23
  const { photo, margin, adjustments, isSelected = false, data } = props;
24
24
  const theme = useTheme();
25
25
  const imageData = data;
26
+ console.debug("Image src", imageData.src);
26
27
  const hasAdjustments = useMemo(() => {
27
28
  if (!adjustments)
28
29
  return false;
@@ -139,16 +140,20 @@ const GalleryImageItem = (props) => {
139
140
  margin,
140
141
  props.isSelected,
141
142
  ]);
142
- return (_jsxs(Box, { id: "Box_image", sx: boxOuterSx, className: "image", children: [!props.isHiddenGallery &&
143
+ return (_jsxs(Box, { id: "Box_image", className: "image", children: [!props.isHiddenGallery &&
143
144
  (hasAdjustments && isSelected ? (_jsx(Box, { color: "primary.dark1", onClick: handleImageSelectedIconClick, sx: {
144
145
  position: "absolute",
145
- width: "19px",
146
- height: "19px",
147
- zIndex: "2",
148
- left: "5px",
149
- top: "5px",
146
+ // width: "19px",
147
+ // height: "19px",
148
+ // zIndex: "2",
149
+ // left: "5px",
150
+ // top: "5px",
150
151
  borderRadius: { xs: "50%", sm: 0 },
151
- }, className: "checkbox", children: _jsx(CustomTickIcon, {}) })) : (_jsx(Box, { color: "neutral.light2", onClick: handleImageSelectedIconClick, sx: {
152
+ }, className: "checkbox", children: _jsx(CustomTickIcon, {}) })) : (_jsx(Box
153
+ // color={"neutral.light2"}
154
+ , {
155
+ // color={"neutral.light2"}
156
+ onClick: handleImageSelectedIconClick, sx: {
152
157
  position: "absolute",
153
158
  width: "19px",
154
159
  height: "19px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "2.1.14",
3
+ "version": "2.1.16",
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",