WA premier Mark McGowan’s text messages between Kerry Stokes and the WA Attorney General have been revealed at the trial in Clive Palmer’s defamation case, including an exchange in which the state’s leader thanks the media baron for the “marvellous front pages”.