"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Table = exports.TableCellAlign = exports.TableAttrs = exports.TableNode = exports.TableActions = exports.TableHelpers = void 0;
const tslib_1 = require("tslib");
const table_utils_1 = require("../../../table-utils/index.js");
const TableSpecs_1 = require("./TableSpecs/index.js");
const tableActions_1 = require("./actions/tableActions.js");
const TableActions = tslib_1.__importStar(require("./actions/tableActions.js"));
exports.TableActions = TableActions;
const TableHelpers = tslib_1.__importStar(require("./helpers.js"));
exports.TableHelpers = TableHelpers;
const TableCellContextPlugin_1 = require("./plugins/TableCellContextPlugin/index.js");
var const_1 = require("./const.js");
Object.defineProperty(exports, "TableNode", { enumerable: true, get: function () { return const_1.TableNode; } });
Object.defineProperty(exports, "TableAttrs", { enumerable: true, get: function () { return const_1.TableAttrs; } });
Object.defineProperty(exports, "TableCellAlign", { enumerable: true, get: function () { return const_1.CellAlign; } });
const Table = (builder) => {
    builder.use(TableSpecs_1.TableSpecs);
    builder.addKeymap(() => ({
        Tab: (0, table_utils_1.goToNextCell)('next'),
        'Shift-Tab': (0, table_utils_1.goToNextCell)('prev'),
    }));
    builder.addAction('createTable', tableActions_1.createTableAction);
    builder.addAction('deleteTable', () => tableActions_1.deleteTableAction);
    builder.addPlugin(TableCellContextPlugin_1.tableCellContextPlugin);
};
exports.Table = Table;
//# sourceMappingURL=index.js.map
