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
This commit is contained in:
co-authored by
Claude Opus 5
parent
3bc61066f0
commit
69ca137c7d
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user