@yogiswara/honcho-editor-ui 2.1.10 → 2.1.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.
@@ -1,19 +1,18 @@
1
1
  import React from "react";
2
- import { Gallery, GallerySetup } from "../../../hooks/editor/type";
3
2
  import { AdjustmentValues } from "../../../lib/editor/honcho-editor";
4
- interface PhotoData extends GallerySetup {
3
+ import type { PhotoData as BulkPhotoData } from "../../../hooks/editor/useHonchoEditorBulk";
4
+ interface ExtendedPhotoData extends BulkPhotoData {
5
5
  adjustments?: Partial<AdjustmentValues>;
6
6
  frame?: string;
7
- originalData?: Gallery;
8
7
  }
9
8
  interface ImageGalleryProps {
10
- imageCollection: PhotoData[];
9
+ imageCollection: ExtendedPhotoData[];
11
10
  isSelectedMode: boolean;
12
11
  isHiddenGallery: boolean;
13
12
  enableEditor: boolean;
14
- onPreview: (photo: PhotoData) => () => void;
13
+ onPreview: (photo: ExtendedPhotoData) => () => void;
15
14
  onSelectedMode: () => void;
16
- onToggleSelect: (photo: PhotoData) => () => void;
15
+ onToggleSelect: (photo: ExtendedPhotoData) => () => void;
17
16
  }
18
17
  declare const AlbumImageGallery: React.FC<ImageGalleryProps>;
19
18
  export default AlbumImageGallery;
@@ -106,7 +106,6 @@ const GalleryImageItem = (props) => {
106
106
  transition: ".3s",
107
107
  "&:-webkit-transition": { transition: ".3s" },
108
108
  padding: { xs: "13px 12px", sm: "21.31px 25.56px 21.32px 27.68px" },
109
- backgroundColor: theme.palette.light["Surface-Variant-2"],
110
109
  }), [
111
110
  margin,
112
111
  commonStyle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
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",