{"name":"prosemirror-dropcursor","version":"1.8.2","license":"MIT","_id":"prosemirror-dropcursor@1.8.2","maintainers":[{"name":"marijn","email":"marijn@haverbeke.berlin"}],"homepage":"https://github.com/prosemirror/prosemirror-dropcursor#readme","bugs":{"url":"https://github.com/prosemirror/prosemirror-dropcursor/issues"},"dist":{"shasum":"2ed30c4796109ddeb1cf7282372b3850528b7228","tarball":"http://registry-npm.ywwl.com/prosemirror-dropcursor/download/prosemirror-dropcursor-1.8.2.tgz","fileCount":10,"integrity":"sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==","signatures":[{"sig":"MEYCIQC8n2+Sa+PS4OetijBT9Oocc2Vpi0kEf3rbUWNhKeMZSAIhAMlfJ6axjeBVm9lYN5Ur6IJL1mFJcjf2eWobQyH0nEn+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34065,"size":9128,"noattachment":false,"key":"/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.2.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"d30d70b5cf6ab52a5cab7e619dc99b961e8939c8","scripts":{"test":"pm-runtests","prepare":"pm-buildhelper src/dropcursor.ts"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"repository":{"url":"git://github.com/prosemirror/prosemirror-dropcursor.git","type":"git"},"_npmVersion":"11.3.0","description":"Drop cursor plugin for ProseMirror","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"prosemirror-view":"^1.1.0","prosemirror-state":"^1.0.0","prosemirror-transform":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"@prosemirror/buildhelper":"^0.1.5"},"_npmOperationalInternal":{"tmp":"tmp/prosemirror-dropcursor_1.8.2_1745325751589_0.9551951587594893","host":"s3://npm-registry-packages-npm-production"},"readme":"# prosemirror-dropcursor\n\n[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://code.haverbeke.berlin/prosemirror/prosemirror-dropcursor/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**CHANGELOG**](https://code.haverbeke.berlin/prosemirror/prosemirror-dropcursor/src/branch/main/CHANGELOG.md) ]\n\nThis is a non-core example module for [ProseMirror](https://prosemirror.net).\nProseMirror is a well-behaved rich semantic content editor based on\ncontentEditable, with support for collaborative editing and custom\ndocument schemas.\n\nThis module implements a plugin that shows a drop cursor for\nProseMirror.\n\nThe [project page](https://prosemirror.net) has more information, a\nnumber of [examples](https://prosemirror.net/examples/) and the\n[documentation](https://prosemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://code.haverbeke.berlin/prosemirror/prosemirror/src/branch/main/LICENSE).\nThere's a [forum](http://discuss.prosemirror.net) for general\ndiscussion and support requests, and the\n[bug tracker](https://code.haverbeke.berlin/prosemirror/prosemirror/issues)\nis the place to report issues.\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\n## Documentation\n\n* **`dropCursor`**`(options?: interface = {}) → Plugin`\\\n   Create a plugin that, when added to a ProseMirror instance,\n   causes a decoration to show up at the drop position when something\n   is dragged over the editor.\n\n   Nodes may add a `disableDropCursor` property to their spec to\n   control the showing of a drop cursor inside them. This may be a\n   boolean or a function, which will be called with a view, a\n   position, and the DragEvent, and should return a boolean.\n\n    * **`options`**\n\n       * **`color`**`?: string`\\\n         The color of the cursor. Defaults to `black`.\n\n       * **`width`**`?: number`\\\n         The precise width of the cursor in pixels. Defaults to 1.\n\n       * **`class`**`?: string`\\\n         A CSS class name to add to the cursor element.\n","publish_time":1745325751775,"_cnpm_publish_time":1745325751775,"dist-tags":{"beta":"1.5.0-beta.1","latest":"1.8.4"}}