import { defineCellType } from '../../types';
import { VideoView } from './View';
import { VideoEdit } from './Edit';
export { VideoView, VideoEdit };
export const videoCellType = defineCellType({
    type: 'video',
    ViewComponent: VideoView,
    EditComponent: VideoEdit,
    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