Values returns the raw backing map. Note that you should just use this method on the locally scoped Scratch instances you obtain via newScratch, not
.Page.Scratch etc., as that will lead to concurrency issues.
The scope of the backing data is global for the given Page or Shortcode, and spans partial and shortcode includes.
Note that .Scratch from a shortcode will return the shortcode’s Scratch, which in most cases is what you want. If you want to store it in the page scoped Scratch, then use .Page.Scratch.