@yogiswara/honcho-editor-ui 1.4.13 → 1.4.14
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.
|
@@ -635,12 +635,10 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
|
|
|
635
635
|
await editorRef.current?.initialize();
|
|
636
636
|
}
|
|
637
637
|
const adjustmentData = galleryImageData.editor_config?.color_adjustment;
|
|
638
|
-
console.log("2. ADJUSTMENT DATA: ", adjustmentData, galleryImageData);
|
|
638
|
+
console.log("2. ADJUSTMENT DATA: ", { ...adjustmentData }, { ...galleryImageData });
|
|
639
639
|
// set event
|
|
640
640
|
setEventId(galleryImageData.event_id);
|
|
641
641
|
console.log("3. EVENTID: ", eventId);
|
|
642
|
-
// TODO get slideshow image list
|
|
643
|
-
// set to imageList
|
|
644
642
|
const pathGallery = extractPathFromGallery(galleryImageData);
|
|
645
643
|
// load image to editor
|
|
646
644
|
console.log("4. PATH GALLERY: ", pathGallery);
|
|
@@ -147,6 +147,7 @@ export function useGallerySwipe(firebaseUid, initImageId, controller) {
|
|
|
147
147
|
// Step 3: Get complete image list by searching through pages
|
|
148
148
|
// This ensures we have navigation context for the current image
|
|
149
149
|
const allImages = await getImageListUntilFound(initImageId, gallery.event_id);
|
|
150
|
+
console.log("Print all images Id: ", allImages.map(image => image.id).join(', '));
|
|
150
151
|
setCurrentImageList(allImages);
|
|
151
152
|
// Step 4: Update tracking refs to prevent unnecessary re-initialization
|
|
152
153
|
prevFirebaseUid.current = firebaseUid;
|
|
@@ -207,7 +208,7 @@ export function useGallerySwipe(firebaseUid, initImageId, controller) {
|
|
|
207
208
|
else {
|
|
208
209
|
// Scenario 2: Navigate to next image in current list
|
|
209
210
|
const nextImage = currentImageList[currentIndex + 1];
|
|
210
|
-
console.log("[SCENARIO 2] Navigating to next image:", nextImage);
|
|
211
|
+
console.log("[SCENARIO 2] Navigating to next image:", nextImage.id);
|
|
211
212
|
setCurrentImageId(nextImage.id);
|
|
212
213
|
// Fetch complete data for the next image
|
|
213
214
|
const nextImageData = await controller.onGetImage(firebaseUid, nextImage.id);
|