Files
Rami BitarandClaude Opus 5 69ca137c7d Rename block .editor files to .config
Also drop the color and leftSideBarVisible overrides from PageEditor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014xjLo7mFxZXfPDCHuKX4Dz
2026-08-29 11:10:24 -04:00

29 lines
950 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { ComponentConfig } from '@reacteditor/core';
import { Text } from 'lucide-react';
import ContentSection, {
type ContentSectionProps,
} from '@/components/shopify/content-section';
const contentSectionEditor: ComponentConfig<ContentSectionProps> = {
label: 'Content section',
icon: <Text size={16} />,
category: 'content',
defaultProps: {
eyebrow: '',
heading: 'About',
body: 'Tell your store’s story here.\n\nBlank lines start a new paragraph.',
imageUrl: '',
imageAlt: '',
},
fields: {
eyebrow: { label: 'Eyebrow', type: 'text', contentEditable: true },
heading: { label: 'Heading', type: 'text', contentEditable: true },
body: { label: 'Body', type: 'textarea', contentEditable: true },
imageUrl: { label: 'Image', type: 'image' },
imageAlt: { label: 'Image alt text', type: 'text' },
},
render: (props) => <ContentSection {...props} />,
};
export default contentSectionEditor;