@yogiswara/honcho-editor-ui 2.10.4 → 2.10.6
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/components/editor/HImageEditorMobile.d.ts +0 -1
- package/dist/components/editor/HImageEditorMobile.js +1 -1
- package/dist/components/editor/HTabColorAdjustmentMobile.d.ts +1 -1
- package/dist/components/editor/HTabColorAdjustmentMobile.js +1 -1
- package/dist/components/editor/sliderComponents/useSliderEvents.js +3 -0
- package/package.json +1 -1
|
@@ -10,7 +10,6 @@ interface Props {
|
|
|
10
10
|
activeSubPanel: string;
|
|
11
11
|
setActivePanel: (tab: string) => void;
|
|
12
12
|
setActiveSubPanel: (subTab: string) => void;
|
|
13
|
-
activeTab: string;
|
|
14
13
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
15
14
|
panelRef: React.RefObject<HTMLDivElement>;
|
|
16
15
|
contentRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -31,7 +31,7 @@ export default function HImageEditorMobile(props) {
|
|
|
31
31
|
const renderPanelContent = () => {
|
|
32
32
|
switch (props.activePanel) {
|
|
33
33
|
case 'colorAdjustment':
|
|
34
|
-
return _jsx(HTabColorAdjustmentMobile, {
|
|
34
|
+
return _jsx(HTabColorAdjustmentMobile, { activeSubPanel: props.activeSubPanel, innerRef: props.innerRef, onDragStart: props.onDragStart, onDragEnd: props.onDragEnd, onExposureChange: props.onExposureChange, onContrastChange: props.onContrastChange, onHighlightsChange: props.onHighlightsChange, onShadowsChange: props.onShadowsChange, onWhitesChange: props.onWhitesChange, onBlacksChange: props.onBlacksChange, onTempChange: props.onTempChange, onTintChange: props.onTintChange, onVibranceChange: props.onVibranceChange, onSaturationChange: props.onSaturationChange, exposureScore: props.exposureScore, contrastScore: props.contrastScore, highlightsScore: props.highlightsScore, shadowScore: props.shadowScore, whiteScore: props.whiteScore, blackScore: props.blackScore, tempScore: props.tempScore, tintScore: props.tintScore, vibranceScore: props.vibranceScore, saturationScore: props.saturationScore, isBatchMode: props.isBatchMode, sharpnessScore: props.sharpnessScore, onSharpnessChange: props.onSharpnessChange, clarityScore: props.clarityScore, onClarityChange: props.onClarityChange });
|
|
35
35
|
case 'preset':
|
|
36
36
|
return _jsx(HTabPresetMobile, { ...props });
|
|
37
37
|
default:
|
|
@@ -4,5 +4,5 @@ import HSliderLightMobile from "./HSliderLightMobile";
|
|
|
4
4
|
import HSliderDetailsMobile from "./HSliderDetailsMobile";
|
|
5
5
|
import { Box } from "@mui/material";
|
|
6
6
|
export default function HTabColorAdjustmentMobile(props) {
|
|
7
|
-
return (_jsxs(Box, { ref: props.innerRef, children: [props.
|
|
7
|
+
return (_jsxs(Box, { ref: props.innerRef, children: [props.activeSubPanel === "light" && _jsx(HSliderLightMobile, { exposureScore: props.exposureScore, contrastScore: props.contrastScore, highlightsScore: props.highlightsScore, shadowScore: props.shadowScore, whiteScore: props.whiteScore, blackScore: props.blackScore, isBatchMode: props.isBatchMode, onExposureChange: props.onExposureChange, onContrastChange: props.onContrastChange, onHighlightsChange: props.onHighlightsChange, onShadowsChange: props.onShadowsChange, onWhitesChange: props.onWhitesChange, onBlacksChange: props.onBlacksChange, onDragStart: props.onDragStart, onDragEnd: props.onDragEnd }), props.activeSubPanel === "color" && _jsx(HSliderColorMobile, { tempScore: props.tempScore, tintScore: props.tintScore, vibranceScore: props.vibranceScore, saturationScore: props.saturationScore, isBatchMode: props.isBatchMode, onTempChange: props.onTempChange, onTintChange: props.onTintChange, onVibranceChange: props.onVibranceChange, onSaturationChange: props.onSaturationChange, onDragStart: props.onDragStart, onDragEnd: props.onDragEnd }), props.activeSubPanel === "details" && _jsx(HSliderDetailsMobile, { clarityScore: props.clarityScore, sharpnessScore: props.sharpnessScore, isBatchMode: props.isBatchMode, onClarityChange: props.onClarityChange, onSharpnessChange: props.onSharpnessChange, onDragStart: props.onDragStart, onDragEnd: props.onDragEnd })] }));
|
|
8
8
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useEffect, useRef } from "react";
|
|
2
2
|
export default function useSliderEvents(onDragStart, onDragEnd, isBatchMode) {
|
|
3
3
|
const sliderRef = useRef(null);
|
|
4
|
+
console.log("BATCH MODE CALLED?", isBatchMode);
|
|
5
|
+
console.log("SLIDEREVENT CALLED START!", onDragStart);
|
|
6
|
+
console.log("SLIDEREVENT CALLED END!", onDragEnd);
|
|
4
7
|
useEffect(() => {
|
|
5
8
|
const sliderElement = sliderRef.current;
|
|
6
9
|
if (!sliderElement)
|