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.9 to 0.11.10

19

draft-js/index.d.ts

@@ -380,7 +380,6 @@ // Type definitions for Draft.js v0.11.1

/**
* The list of default valid block types.
* The list of [default valid block types](https://draftjs.org/docs/advanced-topics-custom-block-render-map#draft-default-block-render-map),
* according to the [`DefaultDraftBlockRenderMap`](https://github.com/facebook/draft-js/blob/main/src/model/immutable/DefaultDraftBlockRenderMap.js)
*/
type CoreDraftBlockType =
| 'unstyled'
| 'paragraph'
| 'header-one'

@@ -392,7 +391,10 @@ | 'header-two'

| 'header-six'
| 'section'
| 'article'
| 'unordered-list-item'
| 'ordered-list-item'
| 'blockquote'
| 'atomic'
| 'code-block'
| 'atomic';
| 'unstyled';

@@ -427,12 +429,7 @@ type CustomBlockType = string;

/**
* Default entity types.
* Possible entity types, like 'LINK', 'IMAGE', or custom ones.
*/
type ComposedEntityType = 'LINK' | 'TOKEN' | 'PHOTO' | 'IMAGE';
type DraftEntityType = string;
/**
* Possible entity types.
*/
type DraftEntityType = string | ComposedEntityType;
/**
* Possible "mutability" options for an entity. This refers to the behavior

@@ -439,0 +436,0 @@ * that should occur when inserting or removing characters in a text range

{
"name": "@types/draft-js",
"version": "0.11.9",
"version": "0.11.10",
"description": "TypeScript definitions for Draft.js",

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

},
"typesPublisherContentHash": "3a118496ad63936d8095d6454bad6d4164a392d7a84e637af2dc80aba005a474",
"typeScriptVersion": "3.8"
"typesPublisherContentHash": "8781a09ff6f79d058866f2237d4d8986f8c578c64e614ec096c13ea526f65fca",
"typeScriptVersion": "4.2"
}

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

### Additional Details
* Last updated: Fri, 04 Feb 2022 22:01:25 GMT
* Last updated: Mon, 05 Dec 2022 20:33:21 GMT
* Dependencies: [@types/immutable](https://npmjs.com/package/@types/immutable), [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: `Draft`

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