Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 16s
Build & Deploy / 🏗️ Build (push) Failing after 6m58s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 QA (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s
- Statically declare ChatWindowProvider in payload.config.ts admin.components.providers - Regenerate importMap.js with correct component mappings - Update Dockerfile to support _at-mintel monorepo sync for local builds - Add .gitignore entries for manual build artifacts - Update blocks and collections (payload-ai integration updates) - Sync pnpm-lock.yaml
63 lines
1.5 KiB
TypeScript
63 lines
1.5 KiB
TypeScript
import { MintelBlock } from "./types";
|
|
|
|
import type { Block } from "payload";
|
|
|
|
export const ButtonBlock: MintelBlock = {
|
|
slug: "buttonBlock",
|
|
labels: {
|
|
singular: "Button Block",
|
|
plural: "Button Blocks",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "label",
|
|
type: "text",
|
|
required: true,
|
|
admin: {
|
|
components: {
|
|
afterInput: [
|
|
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
|
|
],
|
|
},
|
|
description: "Geben Sie den Text für label ein.",
|
|
},
|
|
},
|
|
{
|
|
name: "href",
|
|
type: "text",
|
|
required: true,
|
|
admin: { description: "Geben Sie den Text für href ein." },
|
|
},
|
|
{
|
|
name: "variant",
|
|
type: "select",
|
|
options: [
|
|
{ label: "Primary", value: "primary" },
|
|
{ label: "Outline", value: "outline" },
|
|
{ label: "Ghost", value: "ghost" },
|
|
],
|
|
defaultValue: "primary",
|
|
admin: { description: "Wählen Sie eine Option für variant aus." },
|
|
},
|
|
{
|
|
name: "size",
|
|
type: "select",
|
|
options: [
|
|
{ label: "Normal", value: "normal" },
|
|
{ label: "Large", value: "large" },
|
|
],
|
|
defaultValue: "normal",
|
|
admin: { description: "Wählen Sie eine Option für size aus." },
|
|
},
|
|
{
|
|
name: "showArrow",
|
|
type: "checkbox",
|
|
defaultValue: true,
|
|
admin: { description: "Wert für showArrow eingeben." },
|
|
},
|
|
],
|
|
};
|