The Torah or five books of Moses was dictated to Moses by Hashem. That has not changed. The prophets were written with prophecy as follows
The talmud in Bava Basrah 14b gives who wrote the actual books that the Anshei Kneses Hag'dolah compiled into the permanent books of the Navi that we have. All the other prophecies were not kept because they were not relevant past the time of their issuance.
Joshuah wrote his book. Shmuel wrote the first part of his book (until his death) and it was completed by the prophets Gad and Nassan.
Samuel wrote Megilas Rus as part of his answer to the question of whether King David was allowed to be king as a member of the tribe of Judah, because the conversion of Ruth was legitimate. This is part of kesuvim and not neviyim so it is "inspired" but not prophecy.
Similarly, the psalms were compiled by King David but the individual psalms started from Adam and continued.
Jeremiah wrote the book of Kings (using prophecy) as well as his own book and Lamentations.
King Chizkiya and his bais din wrote Yeshayah (from the prophecies given and passed down by Yeshaya) andcononizedand canonized Mishlai, Shir Hashirim, and Koheles (which had been passed down from King Solomon).
The Anshei Kneses Hagedolah (Men of the Great Assembly) canonized the prophecies of Yechezkel, and the twelve "minor prophets" as well as Daniel (from his writings) and the Megilas Esther. Ezra whote his own sefer as well as the geneology in Divrei Hayamim, which was finished by Nechemiah.
The "question" that you have about compilation misunderstands the situation. The original prophecies were written by the prophets and kept without change until they were canonized. There were no changes after the Anshei Kneses Hagedolah (at the start of the second temple era)