@yogiswara/honcho-editor-ui 1.0.17 → 1.0.19

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.
@@ -9,7 +9,7 @@ const subTabs = {
9
9
  colorAdjustment: [
10
10
  { value: "color", label: "Color", inactiveIcon: "/v1/svg/white-balance-inactive-mobile.svg", activeIcon: "/v1/svg/white-balance-active-mobile.svg" },
11
11
  { value: "light", label: "Light", inactiveIcon: "/v1/svg/light-inactive-mobile.svg", activeIcon: "/v1/svg/light-active-mobile.svg" },
12
- { value: "details", label: "Details", inactiveIcon: "/v1/svg/details-inactive-mobile.svg", activeIcon: "/v1/svg/details-active-mobile.svg" },
12
+ // { value: "details", label: "Details", inactiveIcon: "/v1/svg/details-inactive-mobile.svg", activeIcon: "/v1/svg/details-active-mobile.svg"},
13
13
  ],
14
14
  aspectRatio: [
15
15
  { value: "portrait", label: "Portrait" },
@@ -9,7 +9,7 @@ const subTabs = {
9
9
  colorAdjustment: [
10
10
  { value: "color", label: "Color", inactiveIcon: "/v1/svg/white-balance-inactive-mobile.svg", activeIcon: "/v1/svg/white-balance-active-mobile.svg" },
11
11
  { value: "light", label: "Light", inactiveIcon: "/v1/svg/light-inactive-mobile.svg", activeIcon: "/v1/svg/light-active-mobile.svg" },
12
- { value: "details", label: "Details", inactiveIcon: "/v1/svg/details-inactive-mobile.svg", activeIcon: "/v1/svg/details-active-mobile.svg" },
12
+ // { value: "details", label: "Details", inactiveIcon: "/v1/svg/details-inactive-mobile.svg", activeIcon: "/v1/svg/details-active-mobile.svg"},
13
13
  ],
14
14
  aspectRatio: [
15
15
  { value: "portrait", label: "Portrait" },
@@ -9,7 +9,7 @@ export interface Controller {
9
9
  onGetImage(firebaseUid: string, imageID: string): Promise<Gallery>;
10
10
  getImageList(firebaseUid: string): Promise<Gallery[]>;
11
11
  syncConfig(firebaseUid: string): Promise<void>;
12
- handleBack(firebaseUid: string): void;
12
+ handleBack(firebaseUid: string, imageID: string): void;
13
13
  getPresets(firebaseUid: string): Promise<Preset[]>;
14
14
  createPreset(firebaseUid: string, name: string, settings: AdjustmentState): Promise<Preset>;
15
15
  deletePreset(firebaseUid: string, presetId: string): Promise<void>;
@@ -528,8 +528,8 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
528
528
  }
529
529
  }, []);
530
530
  const handleBackCallback = useCallback(() => {
531
- controller.handleBack(firebaseUid);
532
- }, [controller]);
531
+ controller.handleBack(firebaseUid, currentImageId);
532
+ }, [controller, firebaseUid, currentImageId]);
533
533
  // MARK: - UI Handlers (Moved from page.tsx)
534
534
  // Header and Dialog Handlers
535
535
  const handleHeaderMenuClick = (event) => setHeaderMenuAnchorEl(event.currentTarget);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
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",