Undo manager at the YDoc level and not a specific object

Hello,
According to the documentation we can use the undoManager to revert a modification on a specific object:

But is it possible to undo the last modification that was made on to the YDoc without specifying the object that needs to be reverted ?

Thank you