sanity-io / visual-editing

https://visual-editing-studio.sanity.build
MIT License
37 stars 20 forks source link

feat(visual-editing): add `defineOverlayComponents` helper function #2124

Closed rdunk closed 2 weeks ago

rdunk commented 2 weeks ago

Adds a helper function to allow creating overlay component resolvers using a helper function:

const components = defineOverlayComponents((context) => {
  return defineOverlayComponent(SomeComponent, props)
})

Rather than mixing a type and fn for individual component definitions:

const components: OverlayComponentResolver = (context) => {
  return defineOverlayComponent(SomeComponent, props)
}
vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
live-visual-editing-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-astro ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-next-with-i18n ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-page-builder-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-remix ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
visual-editing-svelte ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:42am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **visual-editing-studio** | ⬜️ Skipped ([Inspect](https://vercel.com/sanity-sandbox/visual-editing-studio/13rXBCWFhreFQSiKLwPBct7t9crG)) | | | Nov 12, 2024 11:42am |