@yogiswara/honcho-editor-ui 2.0.0 → 2.0.2
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,6 +1,6 @@
|
|
|
1
1
|
import { SelectChangeEvent } from "@mui/material";
|
|
2
|
-
import { AdjustmentState, ImageItem } from './useHonchoEditor';
|
|
3
|
-
export declare function useHonchoEditorBulk(): {
|
|
2
|
+
import { AdjustmentState, ImageItem, Controller } from './useHonchoEditor';
|
|
3
|
+
export declare function useHonchoEditorBulk(controller: Controller, initImageId: string, firebaseUid: string): {
|
|
4
4
|
isBulkEditing: boolean;
|
|
5
5
|
selectedImages: string;
|
|
6
6
|
imageList: ImageItem[];
|
|
@@ -6,7 +6,7 @@ const initialAdjustments = {
|
|
|
6
6
|
whitesScore: 0, blacksScore: 0, saturationScore: 0, contrastScore: 0, clarityScore: 0, sharpnessScore: 0,
|
|
7
7
|
};
|
|
8
8
|
const clamp = (value) => Math.max(-100, Math.min(100, value));
|
|
9
|
-
export function useHonchoEditorBulk() {
|
|
9
|
+
export function useHonchoEditorBulk(controller, initImageId, firebaseUid) {
|
|
10
10
|
const { currentState, actions: historyActions, historyInfo } = useAdjustmentHistory(initialAdjustments);
|
|
11
11
|
// State for Bulk Editing
|
|
12
12
|
const [isBulkEditing, setIsBulkEditing] = useState(false);
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { default as HWatermarkView } from './components/editor/HWatermarkView';
|
|
|
19
19
|
export { default as HModalMobile } from './components/editor/HModalMobile';
|
|
20
20
|
export { default as HPresetOptionsMenu } from './components/editor/HPresetOptionMenu';
|
|
21
21
|
export { HAlertInternetBox, HAlertCopyBox, HAlertInternetConnectionBox, HAlertPresetSave } from './components/editor/HAlertBox';
|
|
22
|
+
export { useHonchoEditorBulk } from './hooks/editor/useHonchoEditorBulk';
|
|
22
23
|
export { default as useColors } from './themes/colors';
|
|
23
24
|
export { default as useHonchoTypography } from './themes/honchoTheme';
|
|
24
25
|
export { default as useIsMobile } from './utils/isMobile';
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export { default as HWatermarkView } from './components/editor/HWatermarkView';
|
|
|
17
17
|
export { default as HModalMobile } from './components/editor/HModalMobile';
|
|
18
18
|
export { default as HPresetOptionsMenu } from './components/editor/HPresetOptionMenu';
|
|
19
19
|
export { HAlertInternetBox, HAlertCopyBox, HAlertInternetConnectionBox, HAlertPresetSave } from './components/editor/HAlertBox';
|
|
20
|
+
export { useHonchoEditorBulk } from './hooks/editor/useHonchoEditorBulk';
|
|
20
21
|
// --- Theme & Utils ---
|
|
21
22
|
export { default as useColors } from './themes/colors';
|
|
22
23
|
export { default as useHonchoTypography } from './themes/honchoTheme';
|