@yogiswara/honcho-editor-ui 3.3.4 → 3.4.1
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/GalleryAlbum/AlbumImageGallery.d.ts +14 -7
- package/dist/components/editor/GalleryAlbum/AlbumImageGallery.js +207 -5
- package/dist/components/editor/GalleryAlbum/ImageItemComponents.d.ts +25 -0
- package/dist/components/editor/GalleryAlbum/ImageItemComponents.js +179 -0
- package/dist/components/editor/GalleryAlbum/colorsGallery.d.ts +9 -0
- package/dist/components/editor/GalleryAlbum/colorsGallery.js +9 -0
- package/dist/components/editor/GalleryAlbum/svg/Tick.d.ts +2 -0
- package/dist/components/editor/GalleryAlbum/svg/Tick.js +6 -0
- package/dist/components/editor/HBulkAccordionColorAdjustment.js +1 -2
- package/dist/components/editor/HBulkAccordionColorAdjustmentColors.js +1 -1
- package/dist/components/editor/HBulkPreset.d.ts +3 -7
- package/dist/components/editor/HBulkPreset.js +21 -22
- package/dist/components/editor/HBulkPresetMobile.d.ts +2 -2
- package/dist/components/editor/HBulkPresetMobile.js +2 -2
- package/dist/components/editor/HImageEditorBulkMobile.d.ts +2 -2
- package/dist/hooks/demo/HonchoEditorBulkDemo.d.ts +0 -3
- package/dist/hooks/demo/HonchoEditorBulkDemo.js +770 -411
- package/dist/hooks/demo/HonchoEditorSingleCleanDemo.d.ts +0 -3
- package/dist/hooks/demo/HonchoEditorSingleCleanDemo.js +882 -354
- package/dist/hooks/demo/index.d.ts +0 -2
- package/dist/hooks/demo/index.js +3 -2
- package/dist/hooks/editor/type.d.ts +15 -13
- package/dist/hooks/editor/useHonchoEditorBulk.d.ts +47 -5
- package/dist/hooks/editor/useHonchoEditorBulk.js +252 -133
- package/dist/hooks/useAdjustmentHistory.js +12 -12
- package/dist/hooks/useAdjustmentHistoryBatch.d.ts +33 -31
- package/dist/hooks/useAdjustmentHistoryBatch.js +703 -170
- package/dist/hooks/usePreset.js +12 -12
- package/dist/index.d.ts +5 -7
- package/dist/index.js +5 -4
- package/dist/services/type.d.ts +14 -0
- package/dist/utils/adjustment.d.ts +1 -1
- package/dist/utils/adjustment.js +15 -14
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/logger.js +11 -0
- package/package.json +4 -2
package/dist/hooks/demo/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
"use strict";
|
|
2
|
+
// export { HonchoEditorBulkDemo } from './HonchoEditorBulkDemo';
|
|
3
|
+
// export { HonchoEditorSingleCleanDemo } from './HonchoEditorSingleCleanDemo';
|
|
@@ -40,10 +40,10 @@ export interface Watermark {
|
|
|
40
40
|
rotate_deg: [number, "cw" | "ccw"];
|
|
41
41
|
}
|
|
42
42
|
export interface EditorConfig {
|
|
43
|
-
preset_id?: string;
|
|
44
43
|
color_adjustment: ColorAdjustment;
|
|
45
44
|
transformation_adjustment?: TransformationAdjustment[];
|
|
46
45
|
watermarks?: Watermark[];
|
|
46
|
+
preset_id?: string;
|
|
47
47
|
}
|
|
48
48
|
export interface Content {
|
|
49
49
|
key: string;
|
|
@@ -114,6 +114,7 @@ export interface CreateEditorTaskRequest {
|
|
|
114
114
|
task_id: string;
|
|
115
115
|
color_adjustment: ColorAdjustment;
|
|
116
116
|
replace_from?: string;
|
|
117
|
+
preset_id?: string;
|
|
117
118
|
}
|
|
118
119
|
export interface GetHistoryResponse {
|
|
119
120
|
current_task_id: string;
|
|
@@ -123,18 +124,19 @@ export interface GetGalleryUpdateTimestampResponse {
|
|
|
123
124
|
gallery: string[];
|
|
124
125
|
}
|
|
125
126
|
export interface AdjustmentState {
|
|
126
|
-
tempScore
|
|
127
|
-
tintScore
|
|
128
|
-
vibranceScore
|
|
129
|
-
saturationScore
|
|
130
|
-
exposureScore
|
|
131
|
-
highlightsScore
|
|
132
|
-
shadowsScore
|
|
133
|
-
whitesScore
|
|
134
|
-
blacksScore
|
|
135
|
-
contrastScore
|
|
136
|
-
clarityScore
|
|
137
|
-
sharpnessScore
|
|
127
|
+
tempScore?: number;
|
|
128
|
+
tintScore?: number;
|
|
129
|
+
vibranceScore?: number;
|
|
130
|
+
saturationScore?: number;
|
|
131
|
+
exposureScore?: number;
|
|
132
|
+
highlightsScore?: number;
|
|
133
|
+
shadowsScore?: number;
|
|
134
|
+
whitesScore?: number;
|
|
135
|
+
blacksScore?: number;
|
|
136
|
+
contrastScore?: number;
|
|
137
|
+
clarityScore?: number;
|
|
138
|
+
sharpnessScore?: number;
|
|
139
|
+
preset_id?: string;
|
|
138
140
|
}
|
|
139
141
|
export interface Preset {
|
|
140
142
|
id: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AdjustmentState, Controller, Preset } from './type';
|
|
2
|
+
import { ColorAdjustment } from '../../hooks/editor/type';
|
|
3
3
|
import { AdjustmentValues } from "../../lib/editor/honcho-editor";
|
|
4
|
+
import { GallerySetup } from "../../services/type";
|
|
4
5
|
export interface PhotoData {
|
|
5
6
|
key: string;
|
|
6
7
|
src: string;
|
|
@@ -11,6 +12,29 @@ export interface PhotoData {
|
|
|
11
12
|
isSelected: boolean;
|
|
12
13
|
adjustments?: Partial<AdjustmentValues>;
|
|
13
14
|
}
|
|
15
|
+
export interface CopyCheckboxes {
|
|
16
|
+
color: {
|
|
17
|
+
temperature: boolean;
|
|
18
|
+
tint: boolean;
|
|
19
|
+
vibrance: boolean;
|
|
20
|
+
saturation: boolean;
|
|
21
|
+
};
|
|
22
|
+
light: {
|
|
23
|
+
exposure: boolean;
|
|
24
|
+
contrast: boolean;
|
|
25
|
+
highlights: boolean;
|
|
26
|
+
shadows: boolean;
|
|
27
|
+
whites: boolean;
|
|
28
|
+
blacks: boolean;
|
|
29
|
+
};
|
|
30
|
+
details: {
|
|
31
|
+
clarity: boolean;
|
|
32
|
+
sharpness: boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Helper function to create selective adjustments based on checkboxes
|
|
37
|
+
*/
|
|
14
38
|
/**
|
|
15
39
|
* Hook for bulk photo editing with multi-image backend synchronization.
|
|
16
40
|
*
|
|
@@ -29,6 +53,7 @@ export interface PhotoData {
|
|
|
29
53
|
export declare function useHonchoEditorBulk(controller: Controller, eventID: string, firebaseUid: string): {
|
|
30
54
|
imageData: PhotoData[];
|
|
31
55
|
isLoading: boolean;
|
|
56
|
+
isLoadingMore: boolean;
|
|
32
57
|
error: string | null;
|
|
33
58
|
selectedIds: string[];
|
|
34
59
|
hasMore: boolean;
|
|
@@ -36,9 +61,11 @@ export declare function useHonchoEditorBulk(controller: Controller, eventID: str
|
|
|
36
61
|
presets: Preset[];
|
|
37
62
|
selectedBulkPreset: string;
|
|
38
63
|
activePreset: Preset | null;
|
|
39
|
-
handleSelectBulkPreset: (
|
|
64
|
+
handleSelectBulkPreset: (presetId: string) => void;
|
|
65
|
+
clearSelection: () => void;
|
|
66
|
+
selectAllImages: () => void;
|
|
40
67
|
presetActions: import("../usePreset").PresetActions;
|
|
41
|
-
handleToggleImageSelection: (imageId: string) => void
|
|
68
|
+
handleToggleImageSelection: (imageId: string) => Promise<void>;
|
|
42
69
|
handleLoadMore: () => Promise<void>;
|
|
43
70
|
handleRefresh: () => Promise<void>;
|
|
44
71
|
handleBulkTempDecreaseMax: () => void;
|
|
@@ -89,8 +116,23 @@ export declare function useHonchoEditorBulk(controller: Controller, eventID: str
|
|
|
89
116
|
handleBulkSharpnessDecrease: () => void;
|
|
90
117
|
handleBulkSharpnessIncrease: () => void;
|
|
91
118
|
handleBulkSharpnessIncreaseMax: () => void;
|
|
119
|
+
createRelativeAdjuster: (key: keyof AdjustmentState, amount: number) => () => void;
|
|
120
|
+
currentAdjustments: AdjustmentState;
|
|
92
121
|
handleUndo: () => void;
|
|
93
122
|
handleRedo: () => void;
|
|
94
123
|
handleReset: (imageIds?: string[]) => void;
|
|
95
|
-
historyInfo:
|
|
124
|
+
historyInfo: {
|
|
125
|
+
canUndo: boolean;
|
|
126
|
+
canRedo: boolean;
|
|
127
|
+
currentIndex: number;
|
|
128
|
+
totalStates: number;
|
|
129
|
+
selectedCount: number;
|
|
130
|
+
totalImages: number;
|
|
131
|
+
historySize: number;
|
|
132
|
+
};
|
|
133
|
+
updateFromSocket: (imageId: string, adjustmentTaskId: string, adjustment: ColorAdjustment, preset_id?: string) => Promise<void>;
|
|
134
|
+
adjustSelected: (delta: Partial<AdjustmentState>) => void;
|
|
135
|
+
adjustSelectedWithPreset: (presetAdjustments: AdjustmentState, presetId: string) => void;
|
|
136
|
+
adjustSelectedWithPaste: (adjustments: Partial<AdjustmentState>) => void;
|
|
137
|
+
gallerySetupData: GallerySetup[];
|
|
96
138
|
};
|