@yogiswara/honcho-editor-ui 2.7.17 → 2.7.18

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.
@@ -539,13 +539,13 @@ export function useAdjustmentHistory(initialState, controller, firebaseUid, curr
539
539
  }, [internalOptions]);
540
540
  // History info object
541
541
  const historyInfo = useMemo(() => ({
542
- canUndo: currentIndexRef.current > 0,
543
- canRedo: currentIndexRef.current < history.length - 1,
544
- currentIndex: currentIndexRef.current,
542
+ canUndo: currentIndex > 0,
543
+ canRedo: currentIndex < history.length - 1,
544
+ currentIndex: currentIndex,
545
545
  totalStates: history.length,
546
546
  historySize: getMemoryUsage(),
547
547
  isBatchMode: batchModeRef.current
548
- }), [history.length, getMemoryUsage]);
548
+ }), [history.length, getMemoryUsage, currentIndex]);
549
549
  // Actions object - stabilized with useMemo
550
550
  const actions = useMemo(() => ({
551
551
  pushState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "2.7.17",
3
+ "version": "2.7.18",
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",