import { BaseProps, BlockBaseProps, JustifyProps, } from "../../gravity-blocks/schema/validators/common.js";
export const TableBlock = {
    'table-block': {
        additionalProperties: false,
        required: ['title', 'table'],
        properties: {
            ...BlockBaseProps,
            title: {
                type: 'string',
                contentType: 'text',
            },
            table: {
                type: 'object',
                additionalProperties: false,
                required: ['content'],
                properties: {
                    ...BaseProps,
                    content: {
                        type: 'array',
                        items: {
                            type: 'array',
                            items: {
                                oneOf: [
                                    {
                                        type: 'string',
                                        contentType: 'text',
                                        optionName: 'text',
                                    },
                                    {
                                        type: 'number',
                                        contentType: 'text',
                                        optionName: 'number',
                                    },
                                ],
                            },
                        },
                    },
                    legend: {
                        type: 'array',
                        items: {
                            type: 'string',
                            contentType: 'yfm',
                        },
                    },
                    hideLegend: {
                        type: 'boolean',
                    },
                    justify: {
                        type: 'array',
                        items: JustifyProps,
                    },
                    marker: {
                        type: 'string',
                        enum: ['disk', 'tick'],
                    },
                    caption: {
                        type: 'string',
                    },
                },
            },
        },
    },
};
//# sourceMappingURL=schema.js.map
