Equation of state and composition of proto-neutron stars and merger remnants with hyperons