The createYjsPersister function creates a YjsPersister object that can persist the Store to a Yjs document.