Version 2.13.0 - "Shuri"
NEW FEATURE: New if-completely-visible-x command for checking if an element is fully visible along its width.
NEW FEATURE: New if-completely-visible-y command for checking if an element is fully visible along its height.
NEW FEATURE: Files can now be sent via ajax in a standard HTML form using the form-submit category of commands.
NEW FEATURE: Allow @if statements to handle variables that have a syntax of $var{@data-attr}.
NEW FEATURE: Basic "intersect" event, which uses intersection observer behind the scenes. To fast track the upgrade of this command, send an email to support.
MAJOR FIX: Use of the pause command in state-changing nested loops and within @if statements was seriously busted, but all known errors have now been fixed. Please send a message to support if you find a scenario with the pause command that looks broken. It is possible that the event flow is a little bit faster now, as a couple of unnecessary bits were removed while fixing this, but we're probably talking milliseconds.
BUG FIX: Links to SPA URLs with hashes should now work as expected and trigger hash events. Eg. links like this should now trigger any popup event, or whatever actions, set up for the hash on the page: <a href="/mygallery#house">House picture</a>
.
BUG FIX: Fix to not set up duplicate window click and input events when loading new config.
BUG FIX: Fix to ajax-form commands to send checkbox values if attributes are set, and not "on".
BREAKING CHANGE: This is a possible breaking change for some scenarios, but not all. The updated if-completely-visible command now works on both height and width, as implied by the name of the command. It used to do the visibility check on only the height of an element, and ignore the width. If you need to upgrade your command because it no longer works as it did, change "if-completely-visible" to "if-completely-visible-y", and it should work again.