-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): new insert menu for arrays with filtering, type preview s…
…upport (#6853) * chore(core): add test for array field with multiple options * feat(core, types): support new, experimental array InsertMenuOptions Instead of using a `MenuButton` the "array of objects" now renders the insert menu using the `InsertMenu` from the new `@sanity/insert-menu` package. This insert menu allows more configuration in the form of `InsertMenuOptions` which are exposed on the `ArrayOptions` interface. * chore(page-building): test new array insert menu options * chore(page-building): add more placeholder block types * refactor(core): abstract InsertMenuPopover * refactor(core): replace InsertMenuPopover with useInsertMenuPopover * deps: upgrade @sanity/insert-menu * deps: upgrade @sanity/insert-menu * refactor(core): simplify popoverReducer * refactor(core): remove unneeded export * refactor(core): adjust insert-menu i18n namespace * chore(page-building): adjust insertMenu options according to adjusted API * deps: upgrade @sanity/insert-menu
- Loading branch information
1 parent
339128d
commit 203f135
Showing
12 changed files
with
2,399 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import {hero} from './hero' | ||
import {logoCarousel} from './logoCarousel' | ||
import {page} from './page' | ||
import {byTheNumbers, page, pageOneBlockType, productCombos, threeVideos} from './page' | ||
import {testimonial, testimonials} from './testimonials' | ||
|
||
export const schemaTypes = [page, hero, logoCarousel, testimonial, testimonials] | ||
export const schemaTypes = [ | ||
page, | ||
pageOneBlockType, | ||
hero, | ||
logoCarousel, | ||
testimonial, | ||
testimonials, | ||
threeVideos, | ||
productCombos, | ||
byTheNumbers, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.