All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🏗️ Build (push) Successful in 11m52s
Build & Deploy / 🚀 Deploy (push) Successful in 14s
Build & Deploy / 🧪 QA (push) Successful in 1m15s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 6m31s
Build & Deploy / 🔔 Notify (push) Successful in 2s
- Add mintelP renderer with inline markdown link/marker support (228 broken blocks) - Add mintelTldr renderer for summary boxes - Fix iconList to display item.title instead of empty item.description - Rewire all 6 diagram block types to render via Mermaid - Remove ai property from 30 non-essential blocks (46 -> 13) - Tighten MemeCard to 5 verified templates, max 1 per article - Fix PerformanceChartBlock syntax after ai removal
45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
import { MintelBlock } from "./types";
|
|
|
|
import type { Block } from "payload";
|
|
import { lexicalEditor } from "@payloadcms/richtext-lexical";
|
|
|
|
export const RevealBlock: MintelBlock = {
|
|
slug: "mintelReveal",
|
|
labels: {
|
|
singular: "Reveal Wrap",
|
|
plural: "Reveal Wraps",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "direction",
|
|
type: "select",
|
|
options: [
|
|
{ label: "Up", value: "up" },
|
|
{ label: "Down", value: "down" },
|
|
{ label: "Left", value: "left" },
|
|
{ label: "Right", value: "right" },
|
|
],
|
|
defaultValue: "up",
|
|
admin: { description: "Wählen Sie eine Option für direction aus." },
|
|
},
|
|
{
|
|
name: "delay",
|
|
type: "number",
|
|
defaultValue: 0.1,
|
|
admin: {
|
|
description: "Tragen Sie einen numerischen Wert für delay ein.",
|
|
},
|
|
},
|
|
{
|
|
name: "content",
|
|
type: "richText",
|
|
editor: lexicalEditor({}),
|
|
required: true,
|
|
admin: { description: "Formatierter Textbereich für content." },
|
|
},
|
|
],
|
|
};
|