import { wrapIn as originalWrapIn } from "./../../pm/commands.js";
import { getNodeType } from "../helpers/get-node-type.js";
const wrapIn = (typeOrName, attributes = {}) => ({ state, dispatch }) => {
  const type = getNodeType(typeOrName, state.schema);
  return originalWrapIn(type, attributes)(state, dispatch);
};
export {
  wrapIn
};
//# sourceMappingURL=wrap-in.js.map
