@types/prosemirror-gapcursor
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -38,4 +38,4 @@ // Type definitions for prosemirror-gapcursor 1.0 | ||
*/ | ||
allowGapCursor?: boolean; | ||
allowGapCursor?: boolean | undefined; | ||
} | ||
} |
{ | ||
"name": "@types/prosemirror-gapcursor", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "TypeScript definitions for prosemirror-gapcursor", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-gapcursor", | ||
"license": "MIT", | ||
@@ -40,4 +41,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "89989b588beed6c3e7c98f07d20f037cbfcb1cb3bf58afa878edca0b23ef8047", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "76001b7651c6c5065358e414d6561e6a864a96c772adf36476c4a42b9c7076cd", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,49 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-gapcursor. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-gapcursor/index.d.ts) | ||
````ts | ||
// Type definitions for prosemirror-gapcursor 1.0 | ||
// Project: https://github.com/ProseMirror/prosemirror-gapcursor | ||
// Definitions by: Bradley Ayers <https://github.com/bradleyayers> | ||
// David Hahn <https://github.com/davidka> | ||
// Tim Baumann <https://github.com/timjb> | ||
// Patrick Simmelbauer <https://github.com/patsimm> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import { Plugin, Selection } from 'prosemirror-state'; | ||
import { NodeSpec } from 'prosemirror-model'; | ||
/** | ||
* Gap cursor selections are represented using this class. Its | ||
* `$anchor` and `$head` properties both point at the cursor position. | ||
*/ | ||
export class GapCursor extends Selection {} | ||
/** | ||
* Create a gap cursor plugin. When enabled, this will capture clicks | ||
* near and arrow-key-motion past places that don't have a normally | ||
* selectable position nearby, and create a gap cursor selection for | ||
* them. The cursor is drawn as an element with class | ||
* `ProseMirror-gapcursor`. You can either include | ||
* `style/gapcursor.css` from the package's directory or add your own | ||
* styles to make it visible. | ||
*/ | ||
export function gapCursor(): Plugin; | ||
declare module "prosemirror-model" { | ||
interface NodeSpec { | ||
/** | ||
* By default, gap cursor are only allowed in places where the | ||
* default content node (in the schema content constraints) is a | ||
* textblock node. You can customize this by adding an `allowGapCursor` | ||
* property to your node specs — if it's true, gap cursor are allowed | ||
* everywhere in that node, if it's false they are never allowed. | ||
*/ | ||
allowGapCursor?: boolean | undefined; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 08 Mar 2021 03:08:01 GMT | ||
* Last updated: Wed, 07 Jul 2021 17:02:38 GMT | ||
* Dependencies: [@types/prosemirror-state](https://npmjs.com/package/@types/prosemirror-state), [@types/prosemirror-model](https://npmjs.com/package/@types/prosemirror-model) | ||
@@ -14,0 +58,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6950
61