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.22.8 to 0.22.9

30

slate-react/index.d.ts

@@ -14,2 +14,3 @@ // Type definitions for slate-react 0.22

// Kay Delaney <https://github.com/kaydelaney>
// Brian Ingles <https://github.com/bmingles>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -105,11 +106,11 @@ // TypeScript Version: 2.8

export interface Plugin extends CorePlugin {
decorateNode?: (node: SlateNode, editor: CoreEditor, next: () => any) => any;
renderAnnotation?: (props: RenderAnnotationProps, editor: CoreEditor, next: () => any) => any;
renderBlock?: (props: RenderBlockProps, editor: CoreEditor, next: () => any) => any;
renderDecoration?: (props: RenderDecorationProps, editor: CoreEditor, next: () => any) => any;
renderDocument?: (props: RenderDocumentProps, editor: CoreEditor, next: () => any) => any;
renderEditor?: (props: EditorProps, editor: CoreEditor, next: () => any) => any;
renderInline?: (props: RenderInlineProps, editor: CoreEditor, next: () => any) => any;
renderMark?: (props: RenderMarkProps, editor: CoreEditor, next: () => any) => any;
export interface Plugin<T extends Controller = Editor> extends CorePlugin<T> {
decorateNode?: (node: SlateNode, editor: T, next: () => any) => any;
renderAnnotation?: (props: RenderAnnotationProps, editor: T, next: () => any) => any;
renderBlock?: (props: RenderBlockProps, editor: T, next: () => any) => any;
renderDecoration?: (props: RenderDecorationProps, editor: T, next: () => any) => any;
renderDocument?: (props: RenderDocumentProps, editor: T, next: () => any) => any;
renderEditor?: (props: EditorProps, editor: T, next: () => any) => any;
renderInline?: (props: RenderInlineProps, editor: T, next: () => any) => any;
renderMark?: (props: RenderMarkProps, editor: T, next: () => any) => any;

@@ -128,2 +129,3 @@ shouldNodeComponentUpdate?: (

onCompositionStart?: EventHook<React.CompositionEvent>;
onContextMenu?: EventHook<React.MouseEvent>;
onCopy?: EventHook<React.ClipboardEvent>;

@@ -145,4 +147,4 @@ onCut?: EventHook<React.ClipboardEvent>;

export type PluginOrPlugins = Plugin | Plugins;
export interface Plugins extends Array<PluginOrPlugins> {}
export type PluginOrPlugins<T extends Controller = Editor> = Plugin<T> | Plugins<T>;
export interface Plugins<T extends Controller = Editor> extends Array<PluginOrPlugins<T>> {}

@@ -155,3 +157,3 @@ export interface OnChangeParam {

export interface BasicEditorProps {
export interface BasicEditorProps<T extends Controller = Editor> {
value: Value;

@@ -163,3 +165,3 @@ autoCorrect?: boolean;

placeholder?: any;
plugins?: Plugins;
plugins?: Plugins<T>;
readOnly?: boolean;

@@ -173,3 +175,3 @@ role?: string;

export type EditorProps = BasicEditorProps & Plugin;
export type EditorProps<T extends Controller = Editor> = BasicEditorProps<T> & Plugin<T>;

@@ -176,0 +178,0 @@ export interface EditorState {

{
"name": "@types/slate-react",
"version": "0.22.8",
"version": "0.22.9",
"description": "TypeScript definitions for slate-react",

@@ -61,2 +61,7 @@ "license": "MIT",

"githubUsername": "kaydelaney"
},
{
"name": "Brian Ingles",
"url": "https://github.com/bmingles",
"githubUsername": "bmingles"
}

@@ -77,4 +82,4 @@ ],

},
"typesPublisherContentHash": "393ba13799af97da01341a7ad81b508ed63a99892a3cacf7a42e2bcfa7851406",
"typesPublisherContentHash": "11e94616e7eccc0ccb68a4da1ea2940f0ca643189f0514e5afdbdbd8a448c397",
"typeScriptVersion": "2.8"
}

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

### Additional Details
* Last updated: Mon, 18 Nov 2019 20:48:15 GMT
* Last updated: Wed, 04 Dec 2019 23:54:09 GMT
* Dependencies: [@types/slate](https://npmjs.com/package/@types/slate), [@types/immutable](https://npmjs.com/package/@types/immutable), [@types/react](https://npmjs.com/package/@types/react)

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Andy Kent (https://github.com/andykent), Jamie Talbot (https://github.com/majelbstoat), Jan Löbel (https://github.com/JanLoebel), Patrick Sachs (https://github.com/PatrickSachs), Brandon Shelton (https://github.com/YangusKhan), Irwan Fario Subastian (https://github.com/isubasti), Hanna Greaves (https://github.com/sgreav), Francesco Agnoletto (https://github.com/Kornil), Jack Allen (https://github.com/jackall3n), Benjamin Evenson (https://github.com/benjiro), and Kay Delaney (https://github.com/kaydelaney).
These definitions were written by Andy Kent (https://github.com/andykent), Jamie Talbot (https://github.com/majelbstoat), Jan Löbel (https://github.com/JanLoebel), Patrick Sachs (https://github.com/PatrickSachs), Brandon Shelton (https://github.com/YangusKhan), Irwan Fario Subastian (https://github.com/isubasti), Hanna Greaves (https://github.com/sgreav), Francesco Agnoletto (https://github.com/Kornil), Jack Allen (https://github.com/jackall3n), Benjamin Evenson (https://github.com/benjiro), Kay Delaney (https://github.com/kaydelaney), and Brian Ingles (https://github.com/bmingles).
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