@types/prosemirror-dropcursor
Advanced tools
Comparing version 1.0.3 to 1.5.0
{ | ||
"name": "@types/prosemirror-dropcursor", | ||
"version": "1.0.3", | ||
"description": "TypeScript definitions for prosemirror-dropcursor", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-dropcursor", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Bradley Ayers", | ||
"url": "https://github.com/bradleyayers", | ||
"githubUsername": "bradleyayers" | ||
}, | ||
{ | ||
"name": "David Hahn", | ||
"url": "https://github.com/davidka", | ||
"githubUsername": "davidka" | ||
}, | ||
{ | ||
"name": "Daniil Dotsev", | ||
"url": "https://github.com/dddotsev", | ||
"githubUsername": "dddotsev" | ||
} | ||
], | ||
"version": "1.5.0", | ||
"description": "Stub TypeScript definitions entry for prosemirror-dropcursor, which provides its own types definitions", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/prosemirror-dropcursor" | ||
}, | ||
"scripts": {}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@types/prosemirror-state": "*" | ||
"prosemirror-dropcursor": "*" | ||
}, | ||
"typesPublisherContentHash": "32f564ccd7721d97ffab2d1572071d77a4e6dd1902b118b29189f7c896d7166b", | ||
"typeScriptVersion": "3.7" | ||
"deprecated": "This is a stub types definition. prosemirror-dropcursor provides its own type definitions, so you do not need this installed." | ||
} |
@@ -1,45 +0,3 @@ | ||
# Installation | ||
> `npm install --save @types/prosemirror-dropcursor` | ||
This is a stub types definition for @types/prosemirror-dropcursor (https://github.com/prosemirror/prosemirror-dropcursor#readme). | ||
# Summary | ||
This package contains type definitions for prosemirror-dropcursor (https://github.com/ProseMirror/prosemirror-dropcursor). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-dropcursor. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-dropcursor/index.d.ts) | ||
````ts | ||
// Type definitions for prosemirror-dropcursor 1.0 | ||
// Project: https://github.com/ProseMirror/prosemirror-dropcursor | ||
// Definitions by: Bradley Ayers <https://github.com/bradleyayers> | ||
// David Hahn <https://github.com/davidka> | ||
// Daniil Dotsev <https://github.com/dddotsev> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import { Plugin } from 'prosemirror-state'; | ||
/** | ||
* Create a plugin that, when added to a ProseMirror instance, | ||
* causes a decoration to show up at the drop position when something | ||
* is dragged over the editor. | ||
* | ||
* @param options These options are supported: | ||
* @param options.class A CSS class name to add to the cursor element. | ||
* @param options.color The color of the cursor. Defaults to `black`. | ||
* @param options.width The precise width of the cursor in pixels. Defaults to 1. | ||
*/ | ||
export function dropCursor(options?: { | ||
class?: string | null | undefined; | ||
color?: string | null | undefined; | ||
width?: number | null | undefined; | ||
}): Plugin; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 23 Aug 2021 20:18:30 GMT | ||
* Dependencies: [@types/prosemirror-state](https://npmjs.com/package/@types/prosemirror-state) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [Bradley Ayers](https://github.com/bradleyayers), [David Hahn](https://github.com/davidka), and [Daniil Dotsev](https://github.com/dddotsev). | ||
prosemirror-dropcursor provides its own type definitions, so you don't need @types/prosemirror-dropcursor installed! |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1855
3
0
2
1
1
3
1
1
+ Addedprosemirror-dropcursor@*
+ Addedprosemirror-dropcursor@1.8.1(transitive)
- Removed@types/prosemirror-state@*
- Removed@types/prosemirror-state@1.4.0(transitive)