@yogiswara/honcho-editor-ui 1.4.13 → 1.4.15

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;
@@ -178,6 +179,7 @@ export function useGallerySwipe(firebaseUid, initImageId, controller) {
178
179
  setError(null);
179
180
  try {
180
181
  const currentIndex = getCurrentImageIndex();
182
+ console.log("Current index: ", currentIndex);
181
183
  if (currentIndex === -1) {
182
184
  throw new Error('Current image not found in list');
183
185
  }
@@ -207,7 +209,7 @@ export function useGallerySwipe(firebaseUid, initImageId, controller) {
207
209
  else {
208
210
  // Scenario 2: Navigate to next image in current list
209
211
  const nextImage = currentImageList[currentIndex + 1];
210
- console.log("[SCENARIO 2] Navigating to next image:", nextImage);
212
+ console.log("[SCENARIO 2] Navigating to next image:", nextImage.id);
211
213
  setCurrentImageId(nextImage.id);
212
214
  // Fetch complete data for the next image
213
215
  const nextImageData = await controller.onGetImage(firebaseUid, nextImage.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "1.4.13",
3
+ "version": "1.4.15",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",