@yogiswara/honcho-editor-ui 1.3.9 → 1.4.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.
- package/dist/hooks/editor/useHonchoEditor.d.ts +8 -28
- package/dist/hooks/editor/useHonchoEditor.js +159 -561
- package/dist/hooks/useAdjustmentHistory.d.ts +2 -0
- package/dist/hooks/useAdjustmentHistory.example.d.ts +5 -0
- package/dist/hooks/useAdjustmentHistory.example.js +32 -0
- package/dist/hooks/useAdjustmentHistory.js +62 -2
- package/dist/hooks/useAdjustmentHistory.syncDemo.d.ts +8 -0
- package/dist/hooks/useAdjustmentHistory.syncDemo.js +180 -0
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SelectChangeEvent } from "@mui/material";
|
|
2
1
|
import { Gallery, ResponseGalleryPaging } from '../../hooks/editor/type';
|
|
3
2
|
declare global {
|
|
4
3
|
interface Window {
|
|
@@ -44,11 +43,15 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
44
43
|
editorStatus: string;
|
|
45
44
|
isEditorReady: boolean;
|
|
46
45
|
isImageLoaded: boolean;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
handleNext: () => Promise<void>;
|
|
50
|
-
isPrevAvailable: boolean;
|
|
46
|
+
onSwipeNext: () => Promise<void>;
|
|
47
|
+
onSwipePrev: () => Promise<void>;
|
|
51
48
|
isNextAvailable: boolean;
|
|
49
|
+
isPrevAvailable: boolean;
|
|
50
|
+
isGalleryLoading: boolean;
|
|
51
|
+
galleryError: string | null;
|
|
52
|
+
galleryImageData: Gallery | null;
|
|
53
|
+
currentAdjustmentsState: AdjustmentState;
|
|
54
|
+
historyActions: import("../useAdjustmentHistory").HistoryActions;
|
|
52
55
|
handleUndo: () => void;
|
|
53
56
|
handleRedo: () => void;
|
|
54
57
|
handleRevert: () => void;
|
|
@@ -64,7 +67,6 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
64
67
|
isConnectionSlow: boolean;
|
|
65
68
|
showCopyAlert: boolean;
|
|
66
69
|
isCopyDialogOpen: boolean;
|
|
67
|
-
isPublished: boolean;
|
|
68
70
|
activePanel: string;
|
|
69
71
|
activeSubPanel: string;
|
|
70
72
|
headerMenuAnchorEl: HTMLElement | null;
|
|
@@ -78,31 +80,17 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
78
80
|
isPresetCreated: boolean;
|
|
79
81
|
selectedMobilePreset: string | null;
|
|
80
82
|
selectedDesktopPreset: string | null;
|
|
81
|
-
selectedBulkPreset: string;
|
|
82
83
|
presetMenuAnchorEl: HTMLElement | null;
|
|
83
84
|
activePresetMenuId: string | null;
|
|
84
|
-
currentAspectRatio: string;
|
|
85
|
-
currentSquareRatio: string;
|
|
86
|
-
currentWideRatio: string;
|
|
87
|
-
angelScore: number;
|
|
88
|
-
widthSizePX: number;
|
|
89
|
-
heightSizePX: number;
|
|
90
|
-
isBulkEditing: boolean;
|
|
91
|
-
selectedImages: string;
|
|
92
85
|
colorAdjustments: boolean;
|
|
93
86
|
lightAdjustments: boolean;
|
|
94
87
|
detailsAdjustments: boolean;
|
|
95
|
-
handleShowOriginal: () => void;
|
|
96
|
-
handleShowEdited: () => void;
|
|
97
88
|
handleWheelZoom: (event: React.WheelEvent) => void;
|
|
98
89
|
handleZoomAction: (action: string) => void;
|
|
99
90
|
zoomLevelText: string;
|
|
100
91
|
presets: Preset[];
|
|
101
92
|
handleScriptReady: () => Promise<void>;
|
|
102
|
-
handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
103
93
|
handleAlertClose: () => void;
|
|
104
|
-
loadImageFromId: (firebaseUid: string, imageId: string) => Promise<Gallery | undefined>;
|
|
105
|
-
loadImageFromUrl: (url: string) => Promise<void>;
|
|
106
94
|
handleOpenCopyDialog: () => void;
|
|
107
95
|
handleCloseCopyDialog: () => void;
|
|
108
96
|
copyColorChecks: {
|
|
@@ -185,12 +173,4 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
185
173
|
handleOpenWatermarkView: () => void;
|
|
186
174
|
handleSaveWatermark: () => void;
|
|
187
175
|
handleCancelWatermark: () => void;
|
|
188
|
-
toggleBulkEditing: () => void;
|
|
189
|
-
handleSelectBulkPreset: (event: SelectChangeEvent<string>) => void;
|
|
190
|
-
currentAdjustmentsState: AdjustmentState;
|
|
191
|
-
setCurrentAdjustmentsState: import("react").Dispatch<import("react").SetStateAction<AdjustmentState>>;
|
|
192
|
-
imageList: ImageItem[];
|
|
193
|
-
adjustmentsMap: Map<string, AdjustmentState>;
|
|
194
|
-
selectedImageIds: Set<string>;
|
|
195
|
-
handleToggleImageSelection: (imageId: string) => void;
|
|
196
176
|
};
|