New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/prosemirror-commands

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/prosemirror-commands - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

98

prosemirror-commands/index.d.ts

@@ -24,11 +24,7 @@ // Type definitions for prosemirror-commands 1.0

export interface Command<S extends Schema = any> {
(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>
): boolean;
(state: EditorState<S>, dispatch?: (tr: Transaction<S>) => void, view?: EditorView<S>): boolean;
}
export interface Keymap<S extends Schema = any> {
[key: string]: Command<S>;
[key: string]: Command<S>;
}

@@ -40,4 +36,4 @@

export function deleteSelection<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -54,5 +50,5 @@ /**

export function joinBackward<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>,
): boolean;

@@ -68,5 +64,5 @@ /**

export function selectNodeBackward<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>,
): boolean;

@@ -81,5 +77,5 @@ /**

export function joinForward<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>,
): boolean;

@@ -95,5 +91,5 @@ /**

export function selectNodeForward<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
view?: EditorView<S>,
): boolean;

@@ -105,6 +101,3 @@ /**

*/
export function joinUp<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
): boolean;
export function joinUp<S extends Schema = any>(state: EditorState<S>, dispatch?: (tr: Transaction<S>) => void): boolean;
/**

@@ -115,4 +108,4 @@ * Join the selected block, or the closest ancestor of the selection

export function joinDown<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -123,6 +116,3 @@ /**

*/
export function lift<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
): boolean;
export function lift<S extends Schema = any>(state: EditorState<S>, dispatch?: (tr: Transaction<S>) => void): boolean;
/**

@@ -134,4 +124,4 @@ * If the selection is in a node whose type has a truthy

export function newlineInCode<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -144,4 +134,4 @@ /**

export function exitCode<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -153,4 +143,4 @@ /**

export function createParagraphNear<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -162,4 +152,4 @@ /**

export function liftEmptyBlock<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -171,4 +161,4 @@ /**

export function splitBlock<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -180,4 +170,4 @@ /**

export function splitBlockKeepMarks<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -189,4 +179,4 @@ /**

export function selectParentNode<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -197,4 +187,4 @@ /**

export function selectAll<S extends Schema = any>(
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void
state: EditorState<S>,
dispatch?: (tr: Transaction<S>) => void,
): boolean;

@@ -206,4 +196,4 @@ /**

export function wrapIn<S extends Schema = any>(
nodeType: NodeType<S>,
attrs?: { [key: string]: any }
nodeType: NodeType<S>,
attrs?: { [key: string]: any },
): (state: EditorState<S>, dispatch?: (tr: Transaction<S>) => void) => boolean;

@@ -215,4 +205,4 @@ /**

export function setBlockType<S extends Schema = any>(
nodeType: NodeType<S>,
attrs?: { [key: string]: any }
nodeType: NodeType<S>,
attrs?: { [key: string]: any },
): (state: EditorState<S>, dispatch?: (tr: Transaction<S>) => void) => boolean;

@@ -229,4 +219,4 @@ /**

export function toggleMark<S extends Schema = any>(
markType: MarkType<S>,
attrs?: { [key: string]: any }
markType: MarkType<S>,
attrs?: { [key: string]: any },
): (state: EditorState<S>, dispatch?: (tr: Transaction<S>) => void) => boolean;

@@ -242,4 +232,4 @@ /**

export function autoJoin<S extends Schema = any>(
command: (state: EditorState<S>, p1?: (tr: Transaction<S>) => void) => boolean,
isJoinable: ((before: ProsemirrorNode<S>, after: ProsemirrorNode<S>) => boolean) | string[]
command: (state: EditorState<S>, p1?: (tr: Transaction<S>) => void) => boolean,
isJoinable: ((before: ProsemirrorNode<S>, after: ProsemirrorNode<S>) => boolean) | string[],
): (state: EditorState<S>, p1?: (tr: Transaction<S>) => void) => boolean;

@@ -246,0 +236,0 @@ /**

{
"name": "@types/prosemirror-commands",
"version": "1.0.3",
"version": "1.0.4",
"description": "TypeScript definitions for prosemirror-commands",

@@ -46,4 +46,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "7121624e443402ae2583e2ba2ef61aedea878ebfe983de1402e260a518a94441",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "633b434092026920d3073d69711c9a168997a964351bb81b826acec04a098f0c",
"typeScriptVersion": "3.4"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 10 Jul 2020 14:09:10 GMT
* Last updated: Mon, 18 Jan 2021 15:07:05 GMT
* Dependencies: [@types/prosemirror-model](https://npmjs.com/package/@types/prosemirror-model), [@types/prosemirror-state](https://npmjs.com/package/@types/prosemirror-state), [@types/prosemirror-view](https://npmjs.com/package/@types/prosemirror-view)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc