Sourced from react-i18next's changelog.
17.1.13
- fix(types): the
reactinit options keep their types with i18next 27. i18next 27 declaresReactOptions(the type ofi18next.init({ react })) as an empty interface and leaves its shape to react-i18next, so with react-i18next 17 thereactoptions were no longer checked andgetDefaults().useSuspensedid not compile. react-i18next now declares them itself, with exactly the types i18next 26 has: TypeScript accepts the repeated declaration on i18next 26, and on i18next 27 it fills in the empty interface. Nothing changes with i18next 26.
76c1842
17.1.134dd03fe
changelog for 17.1.132d792a4
fix(types): the react init options keep their types with i18next 27a6b635d
chore: update dependencies and examples, close the dependabot
alertscbac86f
README: drop the Locize ad image; the sponsor banner and the text saying
who ...Sourced from react-resizable-panels's releases.
4.18.1
- Fix the free space in a
Workspacetabset's tab list (returned byuseTabListFreeSpaceandgetTabListFreeSpace, reported tosubscribeToTabListFreeSpacelisteners, and set as the--tab-list-free-spacecustom property) not changing once the tab list is squeezed to 0px, e.g. beside a toolbar that doesn't shrink. It now keeps going down as the header's content overflows the header, and is updated when the header or its toolbar changes size.- Fix
Workspaceinteractions in right-to-left layouts (e.g. withindir="rtl"): dragging a tab within its tab list inserts it where it's dropped, arrow keys move focus to the tab on that side (ArrowLeftmoves to the next tab), and dropping a tab or tabset onto the left or right edge of a tabset puts it on that side of the screen. Theleftandrightregions passed tomoveTabandmoveTabsetare sides of the screen too. A tab list'sdata-overflow-startanddata-overflow-endattributes are also set correctly while it's scrolled. - #7914.18.0
- Add the
normalizeWorkspaceModelfunction, which checks and tidies a model the same way thedefaultModelprop does (e.g. removing empty tabsets and fixing selections), and returnsnullif the value isn't a model (e.g. corrupt saved data). ItsmapTaboption replaces each saved tab with the app's current version (or removes it, by returningnull), so layouts saved by older versions of an app can be restored.- Add the free space in each tabset's tab list (the space its tabs don't use; negative once they overflow), e.g. for a toolbar that moves items into an overflow menu when the header runs out of room. It's returned by the new
useTabListFreeSpacehook andgetTabListFreeSpaceimperative method, reported to listeners added with the newsubscribeToTabListFreeSpacemethod (e.g. from a toolbar rendered outside of the Workspace), and set as the tab list's--tab-list-free-spacecustom property. All of them are updated before the browser paints.- Fix
Workspacetabsets being shown at their collapsed sizes with their content still rendered (and reported as expanded byuseParentTabsetState) when the model's sizes don't fit the tabsets' minimum sizes, e.g. a model saved in a wider window, a workspace that's made narrower, orexpandTabsetshrinking a sibling below its minimum. Tabsets are now shown within their minimum and maximum sizes (rather than collapsed, when there's room), and tabsets that still have to be collapsed to fit are shown (and reported) as collapsed; the newisCollapsedToFitvalue (returned byuseParentTabsetState) tells them apart from tabsets collapsed in the model (e.g. to hide an "expand" button, since they can't be expanded until they fit). The model isn't changed, so the tabsets are shown as the model has them again once they fit.- Add
maxWidthandmaxHeighttoWorkspacetabsets (andupdateTabset), which limit how large a tabset's content area can be resized (e.g. a sidebar that can only grow so wide). Like minimum sizes, they must use absolute units. A maximum only applies if something else can take up the rest of its split (e.g. another tabset without a maximum); otherwise it's ignored, with a warning in development.- The default
Workspacetabset drag preview now shows the number of other tabs being dragged after the selected tab's title (e.g. "One (+2)"). Tabsets with one tab, and workspaces with arenderDragPrevieworrenderTabsetDragPreviewprop, show the same preview as before. - #789
Sourced from react-resizable-panels's changelog.
4.18.1
- Fix the free space in a
Workspacetab list not going down once the tab list is squeezed to 0px.- Fix
Workspaceinteractions in right-to-left layouts (dragging tabs within tab lists, arrow keys, and the left and right drop regions). - #7914.18.0
- Add
normalizeWorkspaceModel, which checks and tidies a saved model (returningnullif it isn't valid); itsmapTaboption updates saved tabs.- Add the free space in each
Workspacetab list (e.g. for an overflow menu): theuseTabListFreeSpacehook, thegetTabListFreeSpaceandsubscribeToTabListFreeSpacemethods, and the--tab-list-free-spacecustom property.- Add
maxWidthandmaxHeighttoWorkspacetabsets.- Fix
Workspacetabsets that don't fit their minimum sizes being shown collapsed with their content still rendered. They're now collapsed to fit (seeuseParentTabsetState().isCollapsedToFit) without changing the model.- The default tabset drag preview shows how many other tabs are being dragged (e.g. "One (+2)"). - #789