New Features
-
feat: allow function types for all middleware options, including
detectOverflow
, to allow derivation from state (#2359)// Options shift({mainAxis: true}); // Derived from state shift((state) => ({mainAxis: state.rects.reference.width > 10}));
Refactors
-
refactor(types): exported middleware
Options
types (#2359)- The
Options
objects now includeDetectOverflowOptions
in them, and are auto-Partial
where necessary. The types do not include the function type in them.
- The
Bug Fixes
- fix(arrow): ensure large
padding
option value does not cause incorrect centering (#2360)