@yogiswara/honcho-editor-ui 1.3.7 → 1.3.9
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/__tests__/useGallerySwipe.test.d.ts +0 -0
- package/dist/hooks/__tests__/useGallerySwipe.test.js +619 -0
- package/dist/hooks/editor/useHonchoEditor.d.ts +15 -83
- package/dist/hooks/editor/useHonchoEditor.js +362 -316
- package/dist/hooks/useAdjustmentHistory.d.ts +91 -0
- package/dist/hooks/useAdjustmentHistory.demo.d.ts +8 -0
- package/dist/hooks/useAdjustmentHistory.demo.js +106 -0
- package/dist/hooks/useAdjustmentHistory.example.d.ts +33 -0
- package/dist/hooks/useAdjustmentHistory.example.js +150 -0
- package/dist/hooks/useAdjustmentHistory.js +277 -0
- package/dist/hooks/useGallerySwipe.d.ts +36 -0
- package/dist/hooks/useGallerySwipe.example.d.ts +24 -0
- package/dist/hooks/useGallerySwipe.example.js +184 -0
- package/dist/hooks/useGallerySwipe.js +321 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +1 -0
- package/dist/utils/adjustment.d.ts +5 -0
- package/dist/utils/adjustment.js +32 -0
- package/package.json +11 -2
|
@@ -41,18 +41,24 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
41
41
|
canvasRef: import("react").MutableRefObject<HTMLCanvasElement | null>;
|
|
42
42
|
canvasContainerRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
43
43
|
fileInputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
editorStatus: string;
|
|
45
|
+
isEditorReady: boolean;
|
|
46
|
+
isImageLoaded: boolean;
|
|
47
|
+
galleryError: string | null;
|
|
48
|
+
handlePrev: () => Promise<void>;
|
|
49
|
+
handleNext: () => Promise<void>;
|
|
50
|
+
isPrevAvailable: boolean;
|
|
51
|
+
isNextAvailable: boolean;
|
|
52
|
+
handleUndo: () => void;
|
|
53
|
+
handleRedo: () => void;
|
|
54
|
+
handleRevert: () => void;
|
|
55
|
+
canUndo: boolean;
|
|
56
|
+
canRedo: boolean;
|
|
48
57
|
panelRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
49
58
|
contentRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
50
59
|
panelHeight: number;
|
|
51
60
|
handleDragStart: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
52
61
|
handleContentHeightChange: (height: number) => void;
|
|
53
|
-
editorStatus: string;
|
|
54
|
-
isEditorReady: boolean;
|
|
55
|
-
isImageLoaded: boolean;
|
|
56
62
|
isPasteAvailable: boolean;
|
|
57
63
|
isOnline: boolean;
|
|
58
64
|
isConnectionSlow: boolean;
|
|
@@ -97,9 +103,6 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
97
103
|
handleAlertClose: () => void;
|
|
98
104
|
loadImageFromId: (firebaseUid: string, imageId: string) => Promise<Gallery | undefined>;
|
|
99
105
|
loadImageFromUrl: (url: string) => Promise<void>;
|
|
100
|
-
handleRevert: () => void;
|
|
101
|
-
handleUndo: () => void;
|
|
102
|
-
handleRedo: () => void;
|
|
103
106
|
handleOpenCopyDialog: () => void;
|
|
104
107
|
handleCloseCopyDialog: () => void;
|
|
105
108
|
copyColorChecks: {
|
|
@@ -148,7 +151,6 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
148
151
|
handleToggleCopyDialogExpand: (section: "color" | "light" | "details") => void;
|
|
149
152
|
handleConfirmCopy: () => void;
|
|
150
153
|
handleCopyEdit: () => void;
|
|
151
|
-
handlePasteEdit: () => void;
|
|
152
154
|
setActivePanel: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
153
155
|
setActiveSubPanel: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
154
156
|
setHeaderMenuAnchorEl: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
|
|
@@ -185,80 +187,10 @@ export declare function useHonchoEditor(controller: Controller, initImageId: str
|
|
|
185
187
|
handleCancelWatermark: () => void;
|
|
186
188
|
toggleBulkEditing: () => void;
|
|
187
189
|
handleSelectBulkPreset: (event: SelectChangeEvent<string>) => void;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
tintScore: number;
|
|
191
|
-
setTintScore: (value: number) => void;
|
|
192
|
-
vibranceScore: number;
|
|
193
|
-
setVibranceScore: (value: number) => void;
|
|
194
|
-
saturationScore: number;
|
|
195
|
-
setSaturationScore: (value: number) => void;
|
|
196
|
-
exposureScore: number;
|
|
197
|
-
setExposureScore: (value: number) => void;
|
|
198
|
-
highlightsScore: number;
|
|
199
|
-
setHighlightsScore: (value: number) => void;
|
|
200
|
-
shadowsScore: number;
|
|
201
|
-
setShadowsScore: (value: number) => void;
|
|
202
|
-
whitesScore: number;
|
|
203
|
-
setWhitesScore: (value: number) => void;
|
|
204
|
-
blacksScore: number;
|
|
205
|
-
setBlacksScore: (value: number) => void;
|
|
206
|
-
contrastScore: number;
|
|
207
|
-
setContrastScore: (value: number) => void;
|
|
208
|
-
clarityScore: number;
|
|
209
|
-
setClarityScore: (value: number) => void;
|
|
210
|
-
sharpnessScore: number;
|
|
211
|
-
setSharpnessScore: (value: number) => void;
|
|
190
|
+
currentAdjustmentsState: AdjustmentState;
|
|
191
|
+
setCurrentAdjustmentsState: import("react").Dispatch<import("react").SetStateAction<AdjustmentState>>;
|
|
212
192
|
imageList: ImageItem[];
|
|
213
193
|
adjustmentsMap: Map<string, AdjustmentState>;
|
|
214
194
|
selectedImageIds: Set<string>;
|
|
215
195
|
handleToggleImageSelection: (imageId: string) => void;
|
|
216
|
-
handleBulkTempDecreaseMax: () => void;
|
|
217
|
-
handleBulkTempDecrease: () => void;
|
|
218
|
-
handleBulkTempIncrease: () => void;
|
|
219
|
-
handleBulkTempIncreaseMax: () => void;
|
|
220
|
-
handleBulkTintDecreaseMax: () => void;
|
|
221
|
-
handleBulkTintDecrease: () => void;
|
|
222
|
-
handleBulkTintIncrease: () => void;
|
|
223
|
-
handleBulkTintIncreaseMax: () => void;
|
|
224
|
-
handleBulkVibranceDecreaseMax: () => void;
|
|
225
|
-
handleBulkVibranceDecrease: () => void;
|
|
226
|
-
handleBulkVibranceIncrease: () => void;
|
|
227
|
-
handleBulkVibranceIncreaseMax: () => void;
|
|
228
|
-
handleBulkSaturationDecreaseMax: () => void;
|
|
229
|
-
handleBulkSaturationDecrease: () => void;
|
|
230
|
-
handleBulkSaturationIncrease: () => void;
|
|
231
|
-
handleBulkSaturationIncreaseMax: () => void;
|
|
232
|
-
handleBulkExposureDecreaseMax: () => void;
|
|
233
|
-
handleBulkExposureDecrease: () => void;
|
|
234
|
-
handleBulkExposureIncrease: () => void;
|
|
235
|
-
handleBulkExposureIncreaseMax: () => void;
|
|
236
|
-
handleBulkContrastDecreaseMax: () => void;
|
|
237
|
-
handleBulkContrastDecrease: () => void;
|
|
238
|
-
handleBulkContrastIncrease: () => void;
|
|
239
|
-
handleBulkContrastIncreaseMax: () => void;
|
|
240
|
-
handleBulkHighlightsDecreaseMax: () => void;
|
|
241
|
-
handleBulkHighlightsDecrease: () => void;
|
|
242
|
-
handleBulkHighlightsIncrease: () => void;
|
|
243
|
-
handleBulkHighlightsIncreaseMax: () => void;
|
|
244
|
-
handleBulkShadowsDecreaseMax: () => void;
|
|
245
|
-
handleBulkShadowsDecrease: () => void;
|
|
246
|
-
handleBulkShadowsIncrease: () => void;
|
|
247
|
-
handleBulkShadowsIncreaseMax: () => void;
|
|
248
|
-
handleBulkWhitesDecreaseMax: () => void;
|
|
249
|
-
handleBulkWhitesDecrease: () => void;
|
|
250
|
-
handleBulkWhitesIncrease: () => void;
|
|
251
|
-
handleBulkWhitesIncreaseMax: () => void;
|
|
252
|
-
handleBulkBlacksDecreaseMax: () => void;
|
|
253
|
-
handleBulkBlacksDecrease: () => void;
|
|
254
|
-
handleBulkBlacksIncrease: () => void;
|
|
255
|
-
handleBulkBlacksIncreaseMax: () => void;
|
|
256
|
-
handleBulkClarityDecreaseMax: () => void;
|
|
257
|
-
handleBulkClarityDecrease: () => void;
|
|
258
|
-
handleBulkClarityIncrease: () => void;
|
|
259
|
-
handleBulkClarityIncreaseMax: () => void;
|
|
260
|
-
handleBulkSharpnessDecreaseMax: () => void;
|
|
261
|
-
handleBulkSharpnessDecrease: () => void;
|
|
262
|
-
handleBulkSharpnessIncrease: () => void;
|
|
263
|
-
handleBulkSharpnessIncreaseMax: () => void;
|
|
264
196
|
};
|