import { defineBlockSchema } from '@blockeditor/store';
import { FALLBACK_LANG } from './utils/consts.js';
export const CodeBlockSchema = defineBlockSchema({
    flavour: 'affine:code',
    props: internal => ({
        text: internal.Text(),
        language: FALLBACK_LANG,
    }),
    metadata: {
        version: 1,
        role: 'content',
        parent: ['affine:note', 'affine:paragraph', 'affine:list'],
        children: [],
    },
});
//# sourceMappingURL=code-model.js.map