Skip to content

Latest commit

 

History

History
442 lines (228 loc) · 22.2 KB

CHANGELOG.md

File metadata and controls

442 lines (228 loc) · 22.2 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-beta.13 (2019-11-22)

Bug Fixes

  • Fix form.reset() not reverting array fields to initial state (#503) (43ca6a8), closes #502
  • Prevent an unnecessary re-render on Button (e39842d)
  • Standardize precedence when options and htmlProps conflict (#501) (5b8e02f)
  • Stop ignoring checked and value props passed as html props to useCheckbox (#500) (c8cb0bb), closes #465
  • Stop persisting onChange event on Checkbox (#499) (fd4a694), closes #498

BREAKING CHANGES

  • When passing a custom onChange prop to Checkbox, event.target.checked will no longer return a different value than when using the native <input type="checkbox"> element.

    Before:

    <Checkbox onChange={event => setChecked(!event.target.checked)} />

    After:

    <Checkbox onChange={event => setChecked(event.target.checked)} />

1.0.0-beta.12 (2019-11-14)

Features

  • reakit-system: Replace useCompose by useComposeOptions on createHook (#493) (50fd7df)
  • Add baseId option to useHiddenState and derivative hooks (837aa58)
  • Add baseId option to useRoverState and derivative hooks (#494) (42e9dd0)
  • Add experimental Id module (#492) (5d87e99)

1.0.0-beta.11 (2019-11-08)

Bug Fixes

  • Fix Tabbable preventing click after enabling it (#481) (6b58a34), closes #480
  • Fix Tabbable preventing space and enter keys on FormInput (3f49d6b)

1.0.0-beta.10 (2019-11-02)

Bug Fixes

  • Fix MenuItemCheckbox and MenuItemRadio not working (#473) (11b7bfa), closes #472
  • Fix Rover trying to focus itself again when it receives focus (#476) (b27194e)
  • Fix Tabbable focus behavior on Mac Safari/Firefox (#458) (8306241)
  • Stop adding type="button" on Button by default (#474) (82b7279)

1.0.0-beta.9 (2019-10-12)

Bug Fixes

  • Add a useIsomorphicEffect hook to allow proper SSR rendering (#461) (47434b2), closes #438
  • Fix PopoverArrow ignoring size prop (#455) (5f51e39), closes #454
  • Fix nested Dialogs not working with VoiceOver (#457) (208bcb6)
  • Make Menu run without menu state props (#459) (5992362)
  • Prevent scrollbar flickering when opening Dialog (#450) (d84fd10), closes #449

Features

  • Expose unstable_update() to update the popover positioning (#463) (eb4a8e5)

1.0.0-beta.8 (2019-09-25)

Bug Fixes

  • Fix MenuItem ignoring ref prop (19119ca)
  • Fix focus not going onto MenuDisclosure after closing a Menu opened with down arrow (01f83ba)
  • Replace IE11 incompatible DOM features (#443) (8837557), closes #360

Features

  • Add gutter option to usePopoverState (#442) (5e9bc21)
  • Add experimental unstable_portal prop to Tooltip (#440) (1b2d5dd)
  • Add experimental unstable_scheduleUpdate function to usePopoverState return (still undocumented) (b40a4da)

1.0.0-beta.7 (2019-09-19)

Bug Fixes

  • Fix Dialog initial focus (#433) (a0916c7)
  • Fix Dialog with tabIndex={0} not being included in the tab order (#426) (bfb1d05)
  • Fix FormSubmitButton ignoring disabled prop (#439) (bbfdfdd), closes #437

Features

BREAKING CHANGES

  • StaticMenu has been replaced by MenuBar.

    Before:

    import { useMenuState, StaticMenu } from "reakit/Menu";
    
    const menu = useMenuState();
    <StaticMenu {...menu} />;

    After:

    import { useMenuBarState, MenuBar } from "reakit/Menu";
    
    const menuBar = useMenuBarState(); // useMenuState can be used here as well
    <MenuBar {...menuBar} />;

1.0.0-beta.6 (2019-08-25)

Bug Fixes

  • Fix Checkbox event.target.checked value inside onChange event (#419) (75063fc), closes #393
  • Fix FormInput as textarea caret position when focusing (#420) (d8e7af3), closes #418
  • Fix useRoverState and its derivatives including all props in the return object (987d16e)
  • Remove erroneous React.LiHTMLAttributes type from ToolbarItemHTMLProps (0cb6e66)

Features

  • reakit-utils: Move tabbable internal module to reakit-utils package (b84acce)
  • Add new MenuArrow component (#422) (731a376)
  • Add support for HiddenDisclosure to control multiple Hidden components (#423) (bdfbd74)
  • Support nested Tabbable and Rover components (#417) (ee9623e), closes #376

1.0.0-beta.5 (2019-08-12)

Bug Fixes

  • Fix typings (29c4456)
  • Fix FormGroup and FormRadioGroup not receiving focus when Form has been submited with errors (59adc8b)
  • Fix FormSubmitButton not considering elements other than inputs as invalid fields (c4f688a)
  • Fix Hidden not setting unstable_animating to false while visible (#410) (6d5827c), closes #407
  • Fix Menu preventing default behavior when pressing ASCII keys on elements other than MenuItem (cacb978)
  • Fix Tooltip error when visible is initially set to true (#409) (c132e56), closes #408
  • Fix empty array values being filtered prematurely before useFormState's onValidate (6052829)

Features

  • Support onSubmit and onValidate functions to be updated between renders in useFormState (#411) (f576db1), closes #400

1.0.0-beta.4 (2019-06-27)

Bug Fixes

  • Always focus Rover when calling rover.{move|first|last}() (#389) (f346df4)
  • Fix missing React Hooks deps (b08b62c)

Features

  • website: Hide state hook props from docs (#390) (fdac912)
  • Add new size prop to PopoverArrow and TooltipArrow (11a6df1), closes #383

1.0.0-beta.3 (2019-06-23)

Bug Fixes

  • Add missing deps to usePopoverState effect (d44df81)
  • Make Menu work properly with unstable_animated (#386) (b96c466)
  • Remove false positive warning from Dialog (#385) (5334bd4)

Features

  • Move helpers to separate package (reakit-utils, reakit-system) (#380) (354b874)

BREAKING CHANGES

  • Utils aren't exported by reakit or reakit/utils anymore. Import them from the reakit-utils package instead.
  • System utils aren't exported by reakit or reakit/system anymore. Import them from the reakit-system package instead.
  • Provider isn't exported by reakit/utils or reakit/utils/Provider anymore. Import it from reakit or reakit/Provider instead.

1.0.0-beta.2 (2019-06-01)

Bug Fixes

  • Fix Checkbox toggling twice on space bar key on Firefox (#369) (27e9b63), closes #368
  • Remove async/await so users don't need regenerator-runtime (#365) (9c6d41a)
  • Stop adding role="button" on Button by default (574e2a9)

Features

  • Add unstable_animated option to useHiddenState and its derivatives (#370) (4ba7f61)
  • Enable conditional render on Hidden components with render props (#371) (70322c2)
  • Remove z-index and extra styles from Dialog and DialogBackdrop (#372) (5edd0d8), closes #366

BREAKING CHANGES

  • Removed extra styles from Dialog and DialogBackdrop and all their derivative components. Also removed default z-index from Tooltip. These styles have been moved to the reakit-system-bootstrap package. If you're not using this system package, you should apply the styles manually.

    Before:

    <DialogBackdrop />
    <Dialog />
    <Popover />
    <Menu />
    <Tooltip />

    After:

    <DialogBackdrop
      style={{
        position: "fixed",
        top: 0,
        right: 0,
        bottom: 0,
        left: 0,
        zIndex: 998
      }}
    />
    <Dialog style={{ zIndex: 999 }} />
    <Popover style={{ zIndex: 999 }} />
    <Menu style={{ zIndex: 999 }} />
    <Tooltip style={{ zIndex: 999 }} />

1.0.0-beta.1 (2019-05-21)

Bug Fixes

  • Avoid infinite loop when using render props composition (8256330)
  • Fix Provider not working without unstable_system prop (37862fb)
  • Stop flipping orientation on Separator (52a0e63)

Features

  • Set display: none on Hidden when its visible prop is set to false (73d6cd2)

BREAKING CHANGES

  • Separator doesn't flip its orientation anymore. If you pass orientation="vertical" it'll render aria-orientation="vertical" now.

1.0.0-beta.0 (2019-05-13)

Bug Fixes

  • Fix Tabbable erroneously preventing onMouseDown on inputs (10af438)
  • Fix nested Dialogs not closing when parent dialogs close (84d1e16)

1.0.0-alpha.4 (2019-05-12)

Bug Fixes

  • Fix Menu not correctly moving with arrow keys (3b55b85)
  • Fix PopoverArrow styles (a90d71f)
  • Fix Tabbable not responding to Enter key (24b54c3)
  • Fix arrow keys closing Dialog opened by Menu (c3fdbcd)
  • Prevent buggy scroll on focus when showing Dialog (e0a328b)
  • Remove the need of double click on MenuItem on mobile (73b920e)
  • Render VisuallyHidden as span instead of div since it could be placed in an inline element (ac24c08)

Features

  • Add state and setState props to Checkbox and Radio (5902ab1)
  • Add unstable_animated prop to Hidden (e0ff29f)
  • Add unstable_preventOverflow, unstable_boundariesElement and unstable_fixed props to usePopoverState (f0930e2)
  • Add experimental unstable_orphan prop to Dialog (d0f6b52)
  • Remove experimental KeyBinder in favor of internal createOnKeyDown util (b0adfa8)
  • Rename mergeProps util to unstable_mergeProps (9be2e14)
  • Warn when some refs aren't passed to components (92f035c)

Performance Improvements

  • Improve general performance by using React.memo on components (91f0d54)

BREAKING CHANGES

  • mergeProps util has been renamed to unstable_mergeProps and is not exported by the root package anymore. Instead, it should be imported from reakit/utils/mergeProps.
  • currentValue and setValue have been replaced by state and setState on Checkbox, Radio and all their derivative components and related hooks.
  • All the ComponentProps typings have been renamed to ComponentHTMLProps. ComponentProps is now the combination of ComponentOptions and ComponentHTMLProps.
  • placement prop is now required on MenuDisclosure.
  • placement prop is now required on Menu.

1.0.0-alpha.3 (2019-04-25)

Bug Fixes

  • Fix Checkbox not reverting indeterminate state when currentValue changes (2ee7455)
  • Fix mouseOut events triggering outside Dialog. (d814ddf)
  • Fix arrow keys not working on Menu when cursor leaves it (9f278ac)
  • Fix arrow keys on MenuItem incorrectly hiding Menu (94bd9db)
  • Fix focusing MenuItem on mouse over outside an open Dialog (aac7f3c)

Features

  • Add VisuallyHidden component (7b1d826)
  • Add experimental KeyBinder component (7eb739a)
  • Render MenuGroup as a div instead of fieldset (5d4b476)
  • Return unstable_wrap method from props hooks (f668ae4)

1.0.0-alpha.2 (2019-04-17)

Bug Fixes

  • MenuDisclosure should close the submenu when in menubar (d481674)
  • Change system's useProps order in built-in components (e679024)
  • Fix DialogDisclosure not closing Dialog on Safari when hideOnClickOutside is truthy (37865cf)
  • Fix MenuDisclosure race condition on focus/click (8a37d31)
  • Make click/focus behavior cross-browser by automatically focusing Tabbable on mouse down (54b618c)
  • Restore hasShownOnFocus state in MenuDisclosure (63228fd)

Features

  • Add use prefix automatically in useProps/useOptions (167fda1)
  • Expose unstable_useSealedState util (1540eab)
  • Remove unstable_ prefix from currentId prop (003d1ad)
  • Remove unstable_ prefix from focusable prop (965dcb7)
  • Remove unstable_ prefix from loop, move, next, previous, first, last props (501f822)
  • Remove unstable_ prefix from manual, selectedId, select props (c36413f)
  • Remove unstable_ prefix from stops, register and unregister props (061cc55)
  • Remove focus from MenuItem on mouse out (fdd1bb8)

1.0.0-alpha.1 (2019-04-09)

Bug Fixes

  • Clicking on an element inside the disclosure should hide Dialog (93072cb)

Features

  • Improve Dialog/Menu API (cf7426f)
  • Remove unstable_ prefix from many things (ec434fc)

1.0.0-alpha.0 (2019-04-02)

Note: Version bump only for package reakit