{"mappings":";oMAgCa,IAAAA,EAAaC,EAAU,OAA0B,CAC5D,KAAM,aAEN,YAAU,CACR,MAAO,CACL,MAAO,eACP,MAAO,EACP,MAAO,SAIX,uBAAqB,CACnB,MAAO,CACLC,EAAW,KAAK,OAAO,GAG5B,CAAA","names":["Dropcursor","Extension","dropCursor"],"sources":["../esm/npm/@tiptap/extension-dropcursor@2.27.3/node_modules/@tiptap/extension-dropcursor/src/dropcursor.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { dropCursor } from '@tiptap/pm/dropcursor'\n\nexport interface DropcursorOptions {\n  /**\n   * The color of the drop cursor\n   * @default 'currentColor'\n   * @example 'red'\n   */\n  color: string | undefined,\n\n  /**\n   * The width of the drop cursor\n   * @default 1\n   * @example 2\n  */\n  width: number | undefined,\n\n  /**\n   * The class of the drop cursor\n   * @default undefined\n   * @example 'drop-cursor'\n  */\n  class: string | undefined,\n}\n\n/**\n * This extension allows you to add a drop cursor to your editor.\n * A drop cursor is a line that appears when you drag and drop content\n * inbetween nodes.\n * @see https://tiptap.dev/api/extensions/dropcursor\n */\nexport const Dropcursor = Extension.create\u003cDropcursorOptions\u003e({\n  name: 'dropCursor',\n\n  addOptions() {\n    return {\n      color: 'currentColor',\n      width: 1,\n      class: undefined,\n    }\n  },\n\n  addProseMirrorPlugins() {\n    return [\n      dropCursor(this.options),\n    ]\n  },\n})\n"],"version":3}
