@types/prosemirror-gapcursor
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -11,2 +11,3 @@ // Type definitions for prosemirror-gapcursor 1.0 | ||
import { Plugin, Selection } from 'prosemirror-state'; | ||
import { NodeSpec } from 'prosemirror-model'; | ||
@@ -28,1 +29,14 @@ /** | ||
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; | ||
} | ||
} |
{ | ||
"name": "@types/prosemirror-gapcursor", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "TypeScript definitions for prosemirror-gapcursor", | ||
@@ -37,6 +37,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/prosemirror-model": "*", | ||
"@types/prosemirror-state": "*" | ||
}, | ||
"typesPublisherContentHash": "c3c10f7a06014c20786cd78eb18a8f6685c96d3c855ce0678c89414db0f7f32b", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "89989b588beed6c3e7c98f07d20f037cbfcb1cb3bf58afa878edca0b23ef8047", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 18 Jan 2021 15:07:06 GMT | ||
* Dependencies: [@types/prosemirror-state](https://npmjs.com/package/@types/prosemirror-state) | ||
* Last updated: Mon, 08 Mar 2021 03:08:01 GMT | ||
* Dependencies: [@types/prosemirror-state](https://npmjs.com/package/@types/prosemirror-state), [@types/prosemirror-model](https://npmjs.com/package/@types/prosemirror-model) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
4966
37
2
+ Added@types/prosemirror-model@*
+ Added@types/prosemirror-model@1.17.0(transitive)