Update plugin-media

This commit is contained in:
Rami Bitar
2026-06-05 12:05:39 -04:00
parent 244832db64
commit 555dade01a
12 changed files with 15 additions and 33 deletions

View File

@@ -1,8 +1,6 @@
import { ComponentConfig } from "@reacteditor/core";
import { imageField } from "@reacteditor/plugin-media/field";
import { LayoutTemplate } from "lucide-react";
import { Hero, type HeroProps } from "@/components/hero/hero";
import { frontendAiMediaAdapter } from "@/services/media-adapter";
const heroEditor: ComponentConfig<HeroProps> = {
label: "Hero",
@@ -51,7 +49,7 @@ const heroEditor: ComponentConfig<HeroProps> = {
},
getItemSummary: (item) => item?.label || "Button",
},
imageUrl: { label: "Background image", ...imageField({ adapter: frontendAiMediaAdapter }) },
imageUrl: { label: "Background image", type: "image" },
align: {
label: "Alignment",
type: "radio",