import { Extension, callOrReturn, getExtensionField } from "../../../../../@tiptap_core@2.14.0_@tiptap_pm@2.14.0/node_modules/@tiptap/core/dist/index.js";
import { gapCursor } from "../../../../../prosemirror-gapcursor@1.3.2/node_modules/prosemirror-gapcursor/dist/index.js";
const Gapcursor = Extension.create({
  name: "gapCursor",
  addProseMirrorPlugins() {
    return [
      gapCursor()
    ];
  },
  extendNodeSchema(extension) {
    var _a;
    const context = {
      name: extension.name,
      options: extension.options,
      storage: extension.storage
    };
    return {
      allowGapCursor: (_a = callOrReturn(getExtensionField(extension, "allowGapCursor", context))) !== null && _a !== void 0 ? _a : null
    };
  }
});
export {
  Gapcursor,
  Gapcursor as default
};
//# sourceMappingURL=index.js.map
