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
* Restructure LibraryLayout so that LibraryContext can (optionally)
useParams() to initialize its componentId/collectionId instead of
having to parse route strings.
This behavior can be disabled for the content pickers by passing
initializeFromUrl={false} to the LibraryContext.
* Add useLibraryRoutes() hook so components can easily navigate to the
best available route without having to know the route strings or
maintain search params.
Also moved ContentType declaration to the new routes.ts to avoid
circular imports.
* Clicking/selecting a ComponentCard/CollectionCard navigates to an
appropriate component/collection route given the current page.
* Rename openInfoSidebar to openLibrarySidebar, so that openInfoSidebar
can be used to open the best sidebar for a given
library/component/collection.
0 commit comments