How is the upsell product determined in the new pre-purchase offer code?

I see that the code in the docs for the ‘Getting started with pre-purchase product offers’ has changed. How is the product for the upsell determined now that the PRODUCT_VARIANTS_DATA object is no longer loading the product?