Version management functionality for the publishing editor.
Handles version switching, creation, migration, and version-related UI state management.
Summary
Functions
Applies a version switch to the socket.
Creates a new version from a source version. Returns {:ok, socket} or {:error, socket} for use in handle_event.
Handles when a version is deleted by another editor.
Reads a specific version of a post.
With variant versioning, all versions are editable since they're independent attempts. This function always returns false - no version locking.
Functions
Applies a version switch to the socket.
Creates a new version from a source version. Returns {:ok, socket} or {:error, socket} for use in handle_event.
Handles when a version is deleted by another editor.
Reads a specific version of a post.
With variant versioning, all versions are editable since they're independent attempts. This function always returns false - no version locking.