"use strict";

exports.__esModule = true;
exports.imageCellType = void 0;
var _types = require("../../types");
var _View = require("./View");
exports.ImageView = _View.ImageView;
var _Edit = require("./Edit");
exports.ImageEdit = _Edit.ImageEdit;
const imageCellType = exports.imageCellType = (0, _types.defineCellType)({
  type: 'image',
  ViewComponent: _View.ImageView,
  EditComponent: _Edit.ImageEdit,
  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