@yogiswara/honcho-editor-ui 1.4.3 → 1.4.5

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.
@@ -5,8 +5,8 @@ interface Props {
5
5
  onZoomMenuClose: () => void;
6
6
  zoomLevelText: string;
7
7
  onZoomAction: (zoomLevel: string) => void;
8
- onShowOriginal: () => void;
9
- onShowEdited: () => void;
8
+ onShowOriginal?: () => void;
9
+ onShowEdited?: () => void;
10
10
  }
11
11
  export default function HFooter(props: Props): import("react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -2,7 +2,7 @@ interface Props {
2
2
  anchorEl: null | HTMLElement;
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
5
- isPresetSelected: boolean;
5
+ isPresetSelected?: boolean;
6
6
  onRemove: () => void;
7
7
  onRename: () => void;
8
8
  onDelete: () => void;
@@ -298,6 +298,7 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
298
298
  const file = new File([blob], filename, { type: blob.type });
299
299
  await editorRef.current.loadImageFromFile(file);
300
300
  setIsImageLoaded(true);
301
+ updateCanvasEditor();
301
302
  }
302
303
  catch (error) {
303
304
  console.error(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
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",