Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/slate-react

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/slate-react - npm Package Compare versions

Comparing version 0.20.1 to 0.20.2

278

slate-react/index.d.ts

@@ -15,3 +15,3 @@ // Type definitions for slate-react 0.20

Document,
Editor as Controller,
Editor as CoreEditor,
Mark,

@@ -26,2 +26,10 @@ Node,

Operation,
MarkProperties,
BlockProperties,
InlineProperties,
Path,
RangeProperties,
NodeProperties,
Range,
Controller
} from "slate";

@@ -39,3 +47,3 @@ import * as Immutable from "immutable";

children: React.ReactNode;
editor: Controller;
editor: CoreEditor;
mark: Mark;

@@ -51,3 +59,3 @@ marks: Immutable.Set<Mark>;

children: React.ReactNode;
editor: Controller;
editor: CoreEditor;
isFocused: boolean;

@@ -62,3 +70,3 @@ isSelected: boolean;

export interface RenderPlaceholderProps {
editor: Controller;
editor: CoreEditor;
readOnly: boolean;

@@ -69,3 +77,3 @@ }

event: Event,
editor: Controller,
editor: CoreEditor,
next: () => any

@@ -75,8 +83,8 @@ ) => any;

export interface Plugin {
decorateNode?: (node: Node, editor: Controller, next: () => any) => any;
renderEditor?: (props: EditorProps, editor: Controller, next: () => any) => any;
renderMark?: (props: RenderMarkProps, editor: Controller, next: () => any) => any;
renderNode?: (props: RenderNodeProps, editor: Controller, next: () => any) => any;
renderPlaceholder?: (props: RenderPlaceholderProps, editor: Controller, next: () => any) => any;
shouldNodeComponentUpdate?: (previousProps: RenderNodeProps, props: RenderNodeProps, editor: Controller, next: () => any) => any;
decorateNode?: (node: Node, editor: CoreEditor, next: () => any) => any;
renderEditor?: (props: EditorProps, editor: CoreEditor, next: () => any) => any;
renderMark?: (props: RenderMarkProps, editor: CoreEditor, next: () => any) => any;
renderNode?: (props: RenderNodeProps, editor: CoreEditor, next: () => any) => any;
renderPlaceholder?: (props: RenderPlaceholderProps, editor: CoreEditor, next: () => any) => any;
shouldNodeComponentUpdate?: (previousProps: RenderNodeProps, props: RenderNodeProps, editor: CoreEditor, next: () => any) => any;

@@ -128,4 +136,4 @@ onBeforeInput?: EventHook;

export class Editor extends React.Component<EditorProps, EditorState> {
controller: Controller;
export class Editor extends React.Component<EditorProps, EditorState> implements Controller {
controller: CoreEditor;
schema: Schema;

@@ -139,12 +147,238 @@ stack: Stack;

// Instance Methods
applyOperation(...args: any[]): Controller;
blur(): void;
command(...args: any[]): Controller;
focus(): void;
normalize(...args: any[]): Controller;
query(...args: any[]): Controller;
// Instance methods
resolveController(plugins: Plugin[], schema: Schema, commands: any[], queries: any[]): void;
run(...args: any[]): any;
withoutNormalizing(...args: any[]): Controller;
// Controller
addMark: CoreEditor['addMark'];
delete: CoreEditor['delete'];
deleteBackward: CoreEditor['deleteBackward'];
deleteForward: CoreEditor['deleteForward'];
insertBlock: CoreEditor['insertBlock'];
insertFragment: CoreEditor['insertFragment'];
insertInline: CoreEditor['insertInline'];
insertText: CoreEditor['insertText'];
setBlocks: CoreEditor['setBlocks'];
setInlines: CoreEditor['setInlines'];
splitBlock: CoreEditor['splitBlock'];
splitInline: CoreEditor['splitInline'];
removeMark: CoreEditor['removeMark'];
replaceMark: CoreEditor['replaceMark'];
toggleMark: CoreEditor['toggleMark'];
unwrapBlock: CoreEditor['unwrapBlock'];
unwrapInline: CoreEditor['unwrapInline'];
wrapBlock: CoreEditor['wrapBlock'];
wrapInline: CoreEditor['wrapInline'];
wrapText: CoreEditor['wrapText'];
blur: CoreEditor['blur'];
deselect: CoreEditor['deselect'];
flip: CoreEditor['flip'];
focus: CoreEditor['focus'];
moveAnchorBackward: CoreEditor['moveAnchorBackward'];
moveAnchorForward: CoreEditor['moveAnchorForward'];
moveAnchorTo: CoreEditor['moveAnchorTo'];
moveAnchorToEndOfBlock: CoreEditor['moveAnchorToEndOfBlock'];
moveAnchorToEndOfInline: CoreEditor['moveAnchorToEndOfInline'];
moveAnchorToEndOfDocument: CoreEditor['moveAnchorToEndOfDocument'];
moveAnchorToEndOfNextBlock: CoreEditor['moveAnchorToEndOfNextBlock'];
moveAnchorToEndOfNextInline: CoreEditor['moveAnchorToEndOfNextInline'];
moveAnchorToEndOfNextText: CoreEditor['moveAnchorToEndOfNextText'];
moveAnchorEndOfNode: CoreEditor['moveAnchorEndOfNode'];
moveAnchorToEndOfPreviousBlock: CoreEditor['moveAnchorToEndOfPreviousBlock'];
moveAnchorToEndOfPreviousInline: CoreEditor['moveAnchorToEndOfPreviousInline'];
moveAnchorToEndOfPreviousText: CoreEditor['moveAnchorToEndOfPreviousText'];
moveAnchorToEndOfText: CoreEditor['moveAnchorToEndOfText'];
moveAnchorToStartOfBlock: CoreEditor['moveAnchorToStartOfBlock'];
moveAnchorToStartOfDocument: CoreEditor['moveAnchorToStartOfDocument'];
moveAnchorToStartOfInline: CoreEditor['moveAnchorToStartOfInline'];
moveAnchorToStartOfNextBlock: CoreEditor['moveAnchorToStartOfNextBlock'];
moveAnchorToStartOfNextInline: CoreEditor['moveAnchorToStartOfNextInline'];
moveAnchorToStartOfNextText: CoreEditor['moveAnchorToStartOfNextText'];
moveAnchorToStartOfNode: CoreEditor['moveAnchorToStartOfNode'];
moveAnchorToStartOfPreviousBlock: CoreEditor['moveAnchorToStartOfPreviousBlock'];
moveAnchorToStartOfPreviousInline: CoreEditor['moveAnchorToStartOfPreviousInline'];
moveAnchorToStartOfPreviousText: CoreEditor['moveAnchorToStartOfPreviousText'];
moveAnchorToStartOfText: CoreEditor['moveAnchorToStartOfText'];
moveEndBackward: CoreEditor['moveEndBackward'];
moveEndForward: CoreEditor['moveEndForward'];
moveEndTo: CoreEditor['moveEndTo'];
moveEndToEndOfBlock: CoreEditor['moveEndToEndOfBlock'];
moveEndToEndOfDocument: CoreEditor['moveEndToEndOfDocument'];
moveEndToEndOfInline: CoreEditor['moveEndToEndOfInline'];
moveEndToEndOfNextBlock: CoreEditor['moveEndToEndOfNextBlock'];
moveEndToEndOfNextInline: CoreEditor['moveEndToEndOfNextInline'];
moveEndToEndOfNextText: CoreEditor['moveEndToEndOfNextText'];
moveEndToEndOfNode: CoreEditor['moveEndToEndOfNode'];
moveEndToEndOfPreviousBlock: CoreEditor['moveEndToEndOfPreviousBlock'];
moveEndToEndOfPreviousInline: CoreEditor['moveEndToEndOfPreviousInline'];
moveEndToEndOfPreviousText: CoreEditor['moveEndToEndOfPreviousText'];
moveEndToEndOfText: CoreEditor['moveEndToEndOfText'];
moveEndToStartOfBlock: CoreEditor['moveEndToStartOfBlock'];
moveEndToStartOfDocument: CoreEditor['moveEndToStartOfDocument'];
moveEndToStartOfInline: CoreEditor['moveEndToStartOfInline'];
moveEndToStartOfNextBlock: CoreEditor['moveEndToStartOfNextBlock'];
moveEndToStartOfNextInline: CoreEditor['moveEndToStartOfNextInline'];
moveEndToStartOfNextText: CoreEditor['moveEndToStartOfNextText'];
moveEndToStartOfNode: CoreEditor['moveEndToStartOfNode'];
moveEndToStartOfPreviousBlock: CoreEditor['moveEndToStartOfPreviousBlock'];
moveEndToStartOfPreviousInline: CoreEditor['moveEndToStartOfPreviousInline'];
moveEndToStartOfPreviousText: CoreEditor['moveEndToStartOfPreviousText'];
moveEndToStartOfText: CoreEditor['moveEndToStartOfText'];
moveFocusBackward: CoreEditor['moveFocusBackward'];
moveFocusForward: CoreEditor['moveFocusForward'];
moveFocusTo: CoreEditor['moveFocusTo'];
moveFocusToEndOfBlock: CoreEditor['moveFocusToEndOfBlock'];
moveFocusToEndOfDocument: CoreEditor['moveFocusToEndOfDocument'];
moveFocusToEndOfInline: CoreEditor['moveFocusToEndOfInline'];
moveFocusToEndOfNextBlock: CoreEditor['moveFocusToEndOfNextBlock'];
moveFocusToEndOfNextInline: CoreEditor['moveFocusToEndOfNextInline'];
moveFocusToEndOfNextText: CoreEditor['moveFocusToEndOfNextText'];
moveFocusToEndOfNode: CoreEditor['moveFocusToEndOfNode'];
moveFocusToEndOfPreviousBlock: CoreEditor['moveFocusToEndOfPreviousBlock'];
moveFocusToEndOfPreviousInline: CoreEditor['moveFocusToEndOfPreviousInline'];
moveFocusToEndOfPreviousText: CoreEditor['moveFocusToEndOfPreviousText'];
moveFocusToEndOfText: CoreEditor['moveFocusToEndOfText'];
moveFocusToStartOfBlock: CoreEditor['moveFocusToStartOfBlock'];
moveFocusToStartOfDocument: CoreEditor['moveFocusToStartOfDocument'];
moveFocusToStartOfInline: CoreEditor['moveFocusToStartOfInline'];
moveFocusToStartOfNextBlock: CoreEditor['moveFocusToStartOfNextBlock'];
moveFocusToStartOfNextInline: CoreEditor['moveFocusToStartOfNextInline'];
moveFocusToStartOfNextText: CoreEditor['moveFocusToStartOfNextText'];
moveFocusToStartOfNode: CoreEditor['moveFocusToStartOfNode'];
moveFocusToStartOfPreviousBlock: CoreEditor['moveFocusToStartOfPreviousBlock'];
moveFocusToStartOfPreviousInline: CoreEditor['moveFocusToStartOfPreviousInline'];
moveFocusToStartOfPreviousText: CoreEditor['moveFocusToStartOfPreviousText'];
moveFocusToStartOfText: CoreEditor['moveFocusToStartOfText'];
moveStartForward: CoreEditor['moveStartForward'];
moveStartBackward: CoreEditor['moveStartBackward'];
moveStartTo: CoreEditor['moveStartTo'];
moveStartToEndOfBlock: CoreEditor['moveStartToEndOfBlock'];
moveStartToEndOfDocument: CoreEditor['moveStartToEndOfDocument'];
moveStartToEndOfInline: CoreEditor['moveStartToEndOfInline'];
moveStartToEndOfNextBlock: CoreEditor['moveStartToEndOfNextBlock'];
moveStartToEndOfNextInline: CoreEditor['moveStartToEndOfNextInline'];
moveStartToEndOfNextText: CoreEditor['moveStartToEndOfNextText'];
moveStartToEndOfNode: CoreEditor['moveStartToEndOfNode'];
moveStartToEndOfPreviousBlock: CoreEditor['moveStartToEndOfPreviousBlock'];
moveStartToEndOfPreviousInline: CoreEditor['moveStartToEndOfPreviousInline'];
moveStartToEndOfPreviousText: CoreEditor['moveStartToEndOfPreviousText'];
moveStartToEndOfText: CoreEditor['moveStartToEndOfText'];
moveStartToStartOfBlock: CoreEditor['moveStartToStartOfBlock'];
moveStartToStartOfDocument: CoreEditor['moveStartToStartOfDocument'];
moveStartToStartOfInline: CoreEditor['moveStartToStartOfInline'];
moveStartToStartOfNextBlock: CoreEditor['moveStartToStartOfNextBlock'];
moveStartToStartOfNextInline: CoreEditor['moveStartToStartOfNextInline'];
moveStartToStartOfNextText: CoreEditor['moveStartToStartOfNextText'];
moveStartToStartOfNode: CoreEditor['moveStartToStartOfNode'];
moveStartToStartOfPreviousBlock: CoreEditor['moveStartToStartOfPreviousBlock'];
moveStartToStartOfPreviousInline: CoreEditor['moveStartToStartOfPreviousInline'];
moveStartToStartOfPreviousText: CoreEditor['moveStartToStartOfPreviousText'];
moveStartToStartOfText: CoreEditor['moveStartToStartOfText'];
moveBackward: CoreEditor['moveBackward'];
moveForward: CoreEditor['moveForward'];
moveTo: CoreEditor['moveTo'];
moveToAnchor: CoreEditor['moveToAnchor'];
moveToFocus: CoreEditor['moveToFocus'];
moveToStart: CoreEditor['moveToStart'];
moveToEnd: CoreEditor['moveToEnd'];
moveToEndOfBlock: CoreEditor['moveToEndOfBlock'];
moveToEndOfDocument: CoreEditor['moveToEndOfDocument'];
moveToEndOfInline: CoreEditor['moveToEndOfInline'];
moveToEndOfNextBlock: CoreEditor['moveToEndOfNextBlock'];
moveToEndOfNextInline: CoreEditor['moveToEndOfNextInline'];
moveToEndOfNextText: CoreEditor['moveToEndOfNextText'];
moveToEndOfNode: CoreEditor['moveToEndOfNode'];
moveToEndOfPreviousBlock: CoreEditor['moveToEndOfPreviousBlock'];
moveToEndOfPreviousInline: CoreEditor['moveToEndOfPreviousInline'];
moveToEndOfPreviousText: CoreEditor['moveToEndOfPreviousText'];
moveToEndOfText: CoreEditor['moveToEndOfText'];
moveToStartOfBlock: CoreEditor['moveToStartOfBlock'];
moveToStartOfDocument: CoreEditor['moveToStartOfDocument'];
moveToStartOfInline: CoreEditor['moveToStartOfInline'];
moveToStartOfNextBlock: CoreEditor['moveToStartOfNextBlock'];
moveToStartOfNextInline: CoreEditor['moveToStartOfNextInline'];
moveToStartOfNextText: CoreEditor['moveToStartOfNextText'];
moveToStartOfNode: CoreEditor['moveToStartOfNode'];
moveToStartOfPreviousBlock: CoreEditor['moveToStartOfPreviousBlock'];
moveToStartOfPreviousInline: CoreEditor['moveToStartOfPreviousInline'];
moveToStartOfPreviousText: CoreEditor['moveToStartOfPreviousText'];
moveToStartOfText: CoreEditor['moveToStartOfText'];
moveToRangeOfDocument: CoreEditor['moveToRangeOfDocument'];
moveToRangeOf: CoreEditor['moveToRangeOf'];
select: CoreEditor['select'];
addMarkAtRange: CoreEditor['addMarkAtRange'];
deleteAtRange: CoreEditor['deleteAtRange'];
deleteCharBackwardAtRange: CoreEditor['deleteCharBackwardAtRange'];
deleteLineBackwardAtRange: CoreEditor['deleteLineBackwardAtRange'];
deleteWordBackwardAtRange: CoreEditor['deleteWordBackwardAtRange'];
deleteBackwardAtRange: CoreEditor['deleteBackwardAtRange'];
deleteCharForwardAtRange: CoreEditor['deleteCharForwardAtRange'];
deleteLineForwardAtRange: CoreEditor['deleteLineForwardAtRange'];
deleteWordForwardAtRange: CoreEditor['deleteWordForwardAtRange'];
deleteForwardAtRange: CoreEditor['deleteForwardAtRange'];
insertBlockAtRange: CoreEditor['insertBlockAtRange'];
insertFragmentAtRange: CoreEditor['insertFragmentAtRange'];
insertInlineAtRange: CoreEditor['insertInlineAtRange'];
insertTextAtRange: CoreEditor['insertTextAtRange'];
setBlocksAtRange: CoreEditor['setBlocksAtRange'];
setInlinesAtRange: CoreEditor['setInlinesAtRange'];
splitBlockAtRange: CoreEditor['splitBlockAtRange'];
splitInlineAtRange: CoreEditor['splitInlineAtRange'];
removeMarkAtRange: CoreEditor['removeMarkAtRange'];
toggleMarkAtRange: CoreEditor['toggleMarkAtRange'];
unwrapBlockAtRange: CoreEditor['unwrapBlockAtRange'];
unwrapInlineAtRange: CoreEditor['unwrapInlineAtRange'];
wrapBlockAtRange: CoreEditor['wrapBlockAtRange'];
wrapInlineAtRange: CoreEditor['wrapInlineAtRange'];
wrapTextAtRange: CoreEditor['wrapTextAtRange'];
addMarkByKey: CoreEditor['addMarkByKey'];
addMarkByPath: CoreEditor['addMarkByPath'];
insertNodeByKey: CoreEditor['insertNodeByKey'];
insertNodeByPath: CoreEditor['insertNodeByPath'];
insertFragmentByKey: CoreEditor['insertFragmentByKey'];
insertFragmentByPath: CoreEditor['insertFragmentByPath'];
insertTextByKey: CoreEditor['insertTextByKey'];
insertTextByPath: CoreEditor['insertTextByPath'];
mergeNodeByKey: CoreEditor['mergeNodeByKey'];
mergeNodeByPath: CoreEditor['mergeNodeByPath'];
moveNodeByKey: CoreEditor['moveNodeByKey'];
moveNodeByPath: CoreEditor['moveNodeByPath'];
removeMarkByKey: CoreEditor['removeMarkByKey'];
removeMarkByPath: CoreEditor['removeMarkByPath'];
removeNodeByKey: CoreEditor['removeNodeByKey'];
removeNodeByPath: CoreEditor['removeNodeByPath'];
replaceNodeByKey: CoreEditor['replaceNodeByKey'];
replaceNodeByPath: CoreEditor['replaceNodeByPath'];
removeTextByKey: CoreEditor['removeTextByKey'];
removeTextByPath: CoreEditor['removeTextByPath'];
setMarkByKey: CoreEditor['setMarkByKey'];
setMarksByPath: CoreEditor['setMarksByPath'];
setNodeByKey: CoreEditor['setNodeByKey'];
setNodeByPath: CoreEditor['setNodeByPath'];
splitNodeByKey: CoreEditor['splitNodeByKey'];
splitNodeByPath: CoreEditor['splitNodeByPath'];
unwrapInlineByKey: CoreEditor['unwrapInlineByKey'];
unwrapInlineByPath: CoreEditor['unwrapInlineByPath'];
unwrapBlockByKey: CoreEditor['unwrapBlockByKey'];
unwrapBlockByPath: CoreEditor['unwrapBlockByPath'];
unwrapNodeByKey: CoreEditor['unwrapNodeByKey'];
unwrapNodeByPath: CoreEditor['unwrapNodeByPath'];
wrapInlineByKey: CoreEditor['wrapInlineByKey'];
wrapInlineByPath: CoreEditor['wrapInlineByPath'];
wrapBlockByKey: CoreEditor['wrapBlockByKey'];
wrapBlockByPath: CoreEditor['wrapBlockByPath'];
wrapNodeByKey: CoreEditor['wrapNodeByKey'];
wrapNodeByPath: CoreEditor['wrapNodeByPath'];
normalize: CoreEditor['normalize'];
withoutNormalizing: CoreEditor['withoutNormalizing'];
withoutSaving: CoreEditor['withoutSaving'];
withoutMerging: CoreEditor['withoutMerging'];
redo: CoreEditor['redo'];
undo: CoreEditor['undo'];
snapshotSelection: CoreEditor['snapshotSelection'];
command: CoreEditor['command'];
query: CoreEditor['query'];
registerCommand: CoreEditor['registerCommand'];
registerQuery: CoreEditor['registerQuery'];
applyOperation: CoreEditor['applyOperation'];
run: CoreEditor['run'];
}

@@ -151,0 +385,0 @@

4

slate-react/package.json
{
"name": "@types/slate-react",
"version": "0.20.1",
"version": "0.20.2",
"description": "TypeScript definitions for slate-react",

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

},
"typesPublisherContentHash": "b99e45f01b5ced89fcb09ac65365ee5f4cbd219ec913599a135b73e65d0a83bc",
"typesPublisherContentHash": "b293c42b24be3186f2881151432d6f29c9cec08028de5af3552bf072fa7c453c",
"typeScriptVersion": "2.8"
}

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

Additional Details
* Last updated: Tue, 06 Nov 2018 21:38:45 GMT
* Last updated: Tue, 20 Nov 2018 17:03:29 GMT
* Dependencies: slate, immutable, react

@@ -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