Socket
Socket
Sign inDemoInstall

@types/draft-js

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/draft-js - npm Package Compare versions

Comparing version 0.11.15 to 0.11.16

34

draft-js/index.d.ts

@@ -200,6 +200,6 @@ import * as Immutable from "immutable";

handlePastedFiles?(files: Array<Blob>): DraftHandleValue;
handlePastedFiles?(files: Blob[]): DraftHandleValue;
/** Handle dropped files */
handleDroppedFiles?(selection: SelectionState, files: Array<Blob>): DraftHandleValue;
handleDroppedFiles?(selection: SelectionState, files: Blob[]): DraftHandleValue;

@@ -468,3 +468,3 @@ /** Handle other drops to prevent default text movement/insertion behaviour */

blockKey: string;
children?: Array<React.ReactNode>;
children?: React.ReactNode[];
contentState: ContentState;

@@ -535,3 +535,3 @@ decoratedText: string;

class CompositeDraftDecorator {
constructor(decorators: Array<DraftDecorator>);
constructor(decorators: DraftDecorator[]);

@@ -594,4 +594,4 @@ getDecorations(block: ContentBlock, contentState: ContentState): Immutable.List<string>;

depth: number;
inlineStyleRanges: Array<RawDraftInlineStyleRange>;
entityRanges: Array<RawDraftEntityRange>;
inlineStyleRanges: RawDraftInlineStyleRange[];
entityRanges: RawDraftEntityRange[];
data?: { [key: string]: any } | undefined;

@@ -610,3 +610,3 @@ }

interface RawDraftContentState {
blocks: Array<RawDraftContentBlock>;
blocks: RawDraftContentBlock[];
entityMap: { [key: string]: RawDraftEntity };

@@ -619,3 +619,3 @@ }

blockRenderMap?: DraftBlockRenderMap,
): { contentBlocks: Array<ContentBlock>; entityMap: any };
): { contentBlocks: ContentBlock[]; entityMap: any };
function convertFromRawToDraftState(rawState: RawDraftContentState): ContentState;

@@ -848,3 +848,3 @@ function convertFromDraftStateToRaw(contentState: ContentState): RawDraftContentState;

class ContentState extends Record {
static createFromBlockArray(blocks: Array<ContentBlock>, entityMap?: any): ContentState;
static createFromBlockArray(blocks: ContentBlock[], entityMap?: any): ContentState;
static createFromText(text: string, delimiter?: string): ContentState;

@@ -871,3 +871,3 @@

getBlocksAsArray(): Array<ContentBlock>;
getBlocksAsArray(): ContentBlock[];
getFirstBlock(): ContentBlock;

@@ -892,8 +892,10 @@ getLastBlock(): ContentBlock;

merge(
...iterables: Immutable.Iterable<
keyof SelectionStateProperties,
SelectionStateProperties[keyof SelectionStateProperties]
>[]
...iterables: Array<
Immutable.Iterable<
keyof SelectionStateProperties,
SelectionStateProperties[keyof SelectionStateProperties]
>
>
): SelectionState;
merge(...iterables: Partial<SelectionStateProperties>[]): SelectionState;
merge(...iterables: Array<Partial<SelectionStateProperties>>): SelectionState;

@@ -961,3 +963,3 @@ serialize(): string;

class BlockMapBuilder {
static createFromArray(blocks: Array<ContentBlock>): BlockMap;
static createFromArray(blocks: ContentBlock[]): BlockMap;
}

@@ -964,0 +966,0 @@

{
"name": "@types/draft-js",
"version": "0.11.15",
"version": "0.11.16",
"description": "TypeScript definitions for draft-js",

@@ -91,4 +91,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/draft-js",

},
"typesPublisherContentHash": "87117574137c617f30049fd710353bb4b8e92faae727962562ac346d3f0d7f07",
"typesPublisherContentHash": "6c68b1d8484880a9557f93737b3dcf067071da84b683209d8e4702ff9998cbb5",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [immutable](https://npmjs.com/package/immutable)

@@ -14,0 +14,0 @@

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