Sounds like she had an impacted poo problem caused by reactive constipation - it's quite common particularly if she had a tummy upset last week - which could have been mild and passed unnoticed by you.
DON'T rush to give her a lot of soft fruit as it can cause spasms in the bowel - lots of fluids and eating normal food is good, but if she gorges on grapes etc. you could make the problem worse over the next couple of days.
Stewed apples however contain pectin which settles the bowel and encourages it to make good binded poo without causing bloating/gas.