Add media and AI plugins, refresh editor configs
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { ComponentConfig } from "@reacteditor/core";
|
||||
import { imageField } from "@reacteditor/plugin-media/field";
|
||||
import { LayoutTemplate } from "lucide-react";
|
||||
import { Hero, type HeroProps } from "@/editor/components/hero/hero";
|
||||
import { frontendAiMediaAdapter } from "@/editor/services/media-adapter";
|
||||
|
||||
export const heroEditor: ComponentConfig<HeroProps> = {
|
||||
label: "Hero",
|
||||
@@ -39,7 +41,7 @@ export const heroEditor: ComponentConfig<HeroProps> = {
|
||||
href: { label: "Link", type: "text" },
|
||||
},
|
||||
},
|
||||
imageUrl: { label: "Background image URL", type: "text" },
|
||||
imageUrl: { label: "Background image", ...imageField({ adapter: frontendAiMediaAdapter }) },
|
||||
align: {
|
||||
label: "Alignment",
|
||||
type: "radio",
|
||||
|
||||
Reference in New Issue
Block a user