Preview: index.umd.js.map
Size: 1.45 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@tiptap/extension-dropcursor/dist/index.umd.js.map
{"version":3,"file":"index.umd.js","sources":["../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<DropcursorOptions>({\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"],"names":["Extension","dropCursor"],"mappings":";;;;;;EA0BA;;;;;EAKG;AACU,QAAA,UAAU,GAAGA,cAAS,CAAC,MAAM,CAAoB;EAC5D,IAAA,IAAI,EAAE,YAAY;MAElB,UAAU,GAAA;UACR,OAAO;EACL,YAAA,KAAK,EAAE,cAAc;EACrB,YAAA,KAAK,EAAE,CAAC;EACR,YAAA,KAAK,EAAE,SAAS;WACjB;OACF;MAED,qBAAqB,GAAA;UACnB,OAAO;EACL,YAAAC,qBAAU,CAAC,IAAI,CAAC,OAAO,CAAC;WACzB;OACF;EACF,CAAA;;;;;;;;;;;"}
Directory Contents
Dirs: 0 × Files: 10