You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: adds sharable URLs for library components/collections
* Restructures LibraryLayout so that LibraryContext can useParams() to
initialize its componentId/collectionId instead of having to parse
complicated route strings.
Initialization-from-URL can be disabled for the content pickers by
passing skipUrlUpdate to the LibraryContext -- which is needed by the
component picker.
* Clicking/selecting a ComponentCard/CollectionCard navigates to an
appropriate component/collection route given the current page.
* Adds useLibraryRoutes() hook so components can easily navigate to the
best available route without having to know the route strings or
maintain search params.
* Moves ContentType declaration to the new routes.ts to avoid circular
imports.
* Renames openInfoSidebar to openLibrarySidebar, so that openInfoSidebar
can be used to open the best sidebar for a given
library/component/collection.
0 commit comments