Should a PhD student be credited in supervisor’s article that is based on a book chapter by both?
Here are the relevant facts:

Copyright


The copyright of everything you create belongs to you by default (in any reasonable legislation).
In some legislations, your copyright or parts thereof may automatically be transferred to your employer upon creation.
Apart from that, any sort of copyright transfer can usually only happen due to a contract you signed, e.g., with your university, supervisor, or a publisher.
In the latter case, your co-authors (i.e., your supervisor) usually do not gain additional rights.
Publishing content to which you hold the copyright without your permission constitutes a copyright infringement.
The crucial question in case of a lawsuit will likely be what you can prove that you created.


Academic Ethics


If you creatively contributed to an article, which particularly includes conceptualising figures and writing paragraphs for a review articles, you have to be made a co-author according to academic authorship standards.
Even if Mary were the sole author of both articles involved, re-using material in the way you describe may constitute self-plagiarism.
This mostly depends on the publisher’s requirements regarding the absence of prior publication and the status of book articles in your field.
Submitting any content you created for publication without citation or similar considers a breach of academic ethics even if you are listed as an author or do not hold the copyright.


What you should do


Secure all evidence of which content you created.
Check your contracts and what has been published.
Talk to your supervisor.