12/21/22 Release Notes (SDK V1.1)

Optimizations to the openProduct action, and release of device.windowHeight.

  1. Added support for a passive transition type for openProduct actions through the use of the boolean field isRelatedProduct.
  • When invoking the openProduct action with the passive transition type set, the custom block will change the product on the current product detail page to the product or variant ID provided in the action without closing and reloading the product detail page
  1. Added support for a device height variable device.windowHeight for the available surface area that a block can cover on the user's device.
  • When the variable is used in a custom block, the SDK will return the height of the user's device window in pixels as an Integer
  • Window in this case is defined as the available surface area that a block can cover on the screen, such as, the height of the screen minus the height of fixed objects such as the top menu navigation bar.