"use strict";

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