Skip to content

rooks@7.0.0-alpha.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Aug 12:58
· 894 commits to main since this release
4b8f278

Major Changes

  • 9ca2be6: useFullscreen hook rewrite
    • Before:

       const {
          element,
          exit,
          isEnabled: Boolean(document[fullscreenControls.fullscreenEnabled]),
          isFullscreen,
          //@deprecated
          onChange,
          //@deprecated
          onError,
          request,
          toggle,
        } = useFullscreen({
          onChange,
          onError,
          options,
       });
    • After

      const {
           isFullscreenAvailable,
           isFullscreenEnabled, 
           fullscreenElement, 
           enableFullscreen, 
           disableFullscreen, 
           toggleFullscreen
        } = useFullscreen({
          target?: HTMLElement, 
          onChange: () => {}, 
          onError: (error) => {}, 
          options : fullscreenoptions
       })