Capture the current state before making changes.
The TokenManager instance to capture state for
Clear all undo/redo history.
Get the number of redo operations available.
The number of states in the redo stack
Get the number of undo operations available.
The number of states in the undo stack
Redo the next operation.
The TokenManager instance to restore state to
Redo all operations to the most recent state.
The TokenManager instance to restore state to
Set the maximum stack size for undo/redo operations.
The maximum number of states to keep in memory
Initialize the VersionControlManager with a reference to the Vuex store.
The Vuex store instance
Undo the last operation.
The TokenManager instance to restore state to
Undo all operations back to the initial state.
The TokenManager instance to restore state to
Enhanced VersionControlManager class for managing undo/redo operations with Vuex integration.
Description
This class provides comprehensive undo/redo functionality using state snapshots, supporting both individual TokenManager operations and global store state changes.