UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

18 lines (17 loc) 612 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createPlugin = void 0; var _safePlugin = require("@atlaskit/editor-common/safe-plugin"); var _pluginKey = require("./plugin-key"); var _pluginState = require("./plugin-state"); var createPlugin = exports.createPlugin = function createPlugin(dispatch) { var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () { return []; }; return new _safePlugin.SafePlugin({ state: (0, _pluginState.createPluginState)(dispatch, initialState), key: _pluginKey.pluginKey }); };