import { defineCellType } from '../../types';
import { DocumentView } from './View';
import { DocumentEdit } from './Edit';
export { DocumentView, DocumentEdit };
export const documentCellType = defineCellType({
    type: 'document',
    ViewComponent: DocumentView,
    EditComponent: DocumentEdit,
    serialize: (value) => value ?? '',
    clearable: true,
    showEditWhenFocused: true,
    // Returning undefined blocks all key presses from starting type-to-edit, but
    // the presence of the function sets the :typeToEdit CSS modifier which keeps
    // the selection borders visible while the cell is in edit mode (double border).
    onTypeToEdit: () => undefined,
});
//# sourceMappingURL=index.js.map