Writes the rows into this existing project instead of a new one, and gives it
the document's settings. A rollback puts its old settings back; its other rows are left alone.
OptionalmediaFiles
mediaFiles?:Record<string,File>
Media files by MediaAsset.filename. Each one is written through the
current StorageProvider so the new asset's file_path is a real token.
Assets without a file keep the document's file_path verbatim.
Writes the rows into this existing project instead of a new one, and gives it the document's settings. A rollback puts its old settings back; its other rows are left alone.