Skip to content

0.18.0

Choose a tag to compare

@cmorten cmorten released this 21 Jul 22:06
· 24 commits to main since this release

What's Changed

  • feat!: BREAKING treat navigateToWebContent same as other guidepup methods by @cmorten in #44

Details

Currently .navigateToWebContent() behaves differently to other Guidepup commands.

This is a breaking change to update the interface to start taking an options argument, to align the interface and behaviour, starting with support for the capture flag:

  • When true the full spoken phrase of the final command to place the screen reader cursor on the first item of the web content is captured in full
  • When "initial" the initial spoken phrase of the final command to place the screen reader cursor on the first item of the web content is captured
  • When false no spoken phrases are captured
// Use default capture set when the screen reader was started
await screenReader.navigateToWebContent();

// Don't capture the navigation to web content
await screenReader.navigateToWebContent({ capture: false });

// Capture the full spoken phrase for the first item in the web content
await screenReader.navigateToWebContent({ capture: true });

// Capture the initial spoken phrase for the first item in the web content
await screenReader.navigateToWebContent({ capture: "initial" });

Full Changelog: 0.17.0...0.18.0