@types/prosemirror-commands
Advanced tools
Comparing version 0.18.0 to 0.21.0
@@ -1,35 +0,35 @@ | ||
// Type definitions for prosemirror-commands 0.18 | ||
// Type definitions for prosemirror-commands 0.21 | ||
// Project: https://github.com/ProseMirror/prosemirror-commands | ||
// Definitions by: David Hahn <https://github.com/davidka> | ||
// Definitions by: Bradley Ayers <https://github.com/bradleyayers> | ||
// David Hahn <https://github.com/davidka> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
import { EditorState } from 'prosemirror-state'; | ||
import { Transaction } from 'prosemirror-state'; | ||
import { EditorView } from 'prosemirror-view'; | ||
import { NodeType } from 'prosemirror-model'; | ||
import { MarkType } from 'prosemirror-model'; | ||
import { ProsemirrorNode as Node } from 'prosemirror-model'; | ||
import { EditorState } from 'prosemirror-state' | ||
import { Transaction } from 'prosemirror-state' | ||
import { EditorView } from 'prosemirror-view' | ||
import { NodeType } from 'prosemirror-model' | ||
import { MarkType } from 'prosemirror-model' | ||
import { ProsemirrorNode } from 'prosemirror-model' | ||
declare module "prosemirror-commands" { | ||
export function deleteSelection(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function joinBackward(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView): boolean | ||
export function joinForward(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView): boolean | ||
export function joinUp(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function joinDown(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function lift(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function newlineInCode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function exitCode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function createParagraphNear(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function liftEmptyBlock(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function splitBlock(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function splitBlockKeepMarks(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function selectParentNode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean | ||
export function wrapIn(nodeType: NodeType, attrs?: Object): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean | ||
export function setBlockType(nodeType: NodeType, attrs?: Object): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean | ||
export function toggleMark(markType: MarkType, attrs?: Object): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean | ||
export function autoJoin(command: (state: EditorState, fn?: (tr: Transaction) => void) => boolean, isJoinable: ((before: ProsemirrorNode, after: ProsemirrorNode) => boolean) | string[]): (state: EditorState, fn?: (tr: Transaction) => void) => boolean | ||
export function chainCommands(...commands: ((p1: EditorState, fn?: (tr: Transaction) => void) => boolean)[]): (p1: EditorState, fn?: (tr: Transaction) => void) => boolean | ||
export let baseKeymap: Object; | ||
} | ||
export function deleteSelection(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function joinBackward(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView): boolean; | ||
export function joinForward(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView): boolean; | ||
export function joinUp(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function joinDown(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function lift(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function newlineInCode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function exitCode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function createParagraphNear(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function liftEmptyBlock(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function splitBlock(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function splitBlockKeepMarks(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function selectParentNode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function selectAll(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; | ||
export function wrapIn(nodeType: NodeType, attrs?: { [key: string]: any }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean; | ||
export function setBlockType(nodeType: NodeType, attrs?: { [key: string]: any }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean; | ||
export function toggleMark(markType: MarkType, attrs?: { [key: string]: any }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean; | ||
export function autoJoin(command: (state: EditorState, _1?: (tr: Transaction) => void) => boolean, | ||
isJoinable: ((before: Node, after: Node) => boolean) | string[]): (state: EditorState, _1?: (tr: Transaction) => void) => boolean; | ||
export function chainCommands(...commands: Array<(_0: EditorState, _1?: (tr: Transaction) => void) => boolean>): (_0: EditorState, _1?: (tr: Transaction) => void) => boolean; | ||
export const baseKeymap: { [key: string]: any }; |
{ | ||
"name": "@types/prosemirror-commands", | ||
"version": "0.18.0", | ||
"version": "0.21.0", | ||
"description": "TypeScript definitions for prosemirror-commands", | ||
@@ -8,2 +8,6 @@ "license": "MIT", | ||
{ | ||
"name": "Bradley Ayers", | ||
"url": "https://github.com/bradleyayers" | ||
}, | ||
{ | ||
"name": "David Hahn", | ||
@@ -25,4 +29,4 @@ "url": "https://github.com/davidka" | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "d412fcc8676031141b28d3b228fbb65ea3c61d2bbef2c12d234d55e7cc7d4a66", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "9004161185a09b18677abf98d9749f49165309d3fbba56e6ae9a5beeec4f803f", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/prosemirror-commands | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-commands | ||
Additional Details | ||
* Last updated: Thu, 09 Mar 2017 00:25:50 GMT | ||
* Last updated: Fri, 02 Jun 2017 17:06:02 GMT | ||
* Dependencies: prosemirror-state, prosemirror-view, prosemirror-model | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by David Hahn <https://github.com/davidka>. | ||
These definitions were written by Bradley Ayers <https://github.com/bradleyayers>, David Hahn <https://github.com/davidka>. |
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
5689
4
33