Skip to content

@lsst-sqre/squared@0.4.0

Compare
Choose a tag to compare
@squareone-ci squareone-ci released this 19 Feb 22:54
297b8fb

Minor Changes

  • #179 b4b2fdb Thanks @jonathansick! - Moved auth URLs into Squared as a library. The getLoginUrl and getLogout URL functions compute the full URLs to the RSP's login and logout endpoints and include the ?rd query strings to return the user to current and home URL respectively.

  • #179 77274e7 Thanks @jonathansick! - Add a new PrimaryNavigation component. This component uses the Radix NavigationMenu primitive and is intended to be a comprehensive solution for the primary navigation in the header of Squareone. The earlier GafaelfawrUserMenu component in Squared also uses NavigationMenu, but as a single item. With PrimaryNavigation, the functionality of GafaelfawrUserMenu can be composed into an instance of PrimaryNavigation. Like GafaelfawrMenu, PrimaryNavigation is set up so that menus only appear after clicking on a trigger, rather than on hover. As well, PrimaryNavigation ensures the menu is proximate to the trigger (an improvement on the default NavigationMenu functionality that centers the menu below the whole navigation element.