Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Failing after 1m24s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
36 lines
842 B
TypeScript
36 lines
842 B
TypeScript
import { MintelBlock } from "./types";
|
|
|
|
import type { Block } from "payload";
|
|
|
|
export const DiagramFlowBlock: MintelBlock = {
|
|
slug: "diagramFlow",
|
|
labels: {
|
|
singular: "Diagram Flow",
|
|
plural: "Diagram Flows",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
ai: {
|
|
name: "DiagramFlow",
|
|
description:
|
|
"Mermaid flowchart diagram defining the graph structure. MUST output raw mermaid code, no quotes or HTML.",
|
|
usageExample: "graph TD\\n A[Start] --> B[End]",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "definition",
|
|
type: "textarea",
|
|
required: true,
|
|
admin: {
|
|
components: {
|
|
afterInput: [
|
|
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
|
],
|
|
},
|
|
description: "Geben Sie den mehrzeiligen Text für definition ein.",
|
|
},
|
|
},
|
|
],
|
|
};
|