@types/draft-js
Advanced tools
Comparing version 0.11.12 to 0.11.13
@@ -20,4 +20,4 @@ // Type definitions for Draft.js v0.11.1 | ||
import * as Immutable from 'immutable'; | ||
import * as React from 'react'; | ||
import * as Immutable from "immutable"; | ||
import * as React from "react"; | ||
@@ -246,5 +246,5 @@ type SyntheticClipboardEvent = React.ClipboardEvent<{}>; | ||
type DraftTextAlignment = 'left' | 'center' | 'right'; | ||
type DraftTextAlignment = "left" | "center" | "right"; | ||
type DraftTextDirectionality = 'LTR' | 'RTL' | 'NEUTRAL'; | ||
type DraftTextDirectionality = "LTR" | "RTL" | "NEUTRAL"; | ||
} | ||
@@ -317,20 +317,16 @@ | ||
*/ | ||
| 'undo' | ||
| 'redo' | ||
| "undo" | ||
| "redo" | ||
/** | ||
* Perform a forward deletion. | ||
*/ | ||
| 'delete' | ||
| "delete" | ||
/** | ||
* Perform a forward deletion to the next word boundary after the selection. | ||
*/ | ||
| 'delete-word' | ||
| "delete-word" | ||
/** | ||
* Perform a backward deletion. | ||
*/ | ||
| 'backspace' | ||
| "backspace" | ||
/** | ||
@@ -340,9 +336,7 @@ * Perform a backward deletion to the previous word boundary before the | ||
*/ | ||
| 'backspace-word' | ||
| "backspace-word" | ||
/** | ||
* Perform a backward deletion to the beginning of the current line. | ||
*/ | ||
| 'backspace-to-start-of-line' | ||
| "backspace-to-start-of-line" | ||
/** | ||
@@ -352,20 +346,17 @@ * Toggle styles. Commands may be intepreted to modify inline text ranges | ||
*/ | ||
| 'bold' | ||
| 'code' | ||
| 'italic' | ||
| 'strikethrough' | ||
| 'underline' | ||
| "bold" | ||
| "code" | ||
| "italic" | ||
| "strikethrough" | ||
| "underline" | ||
/** | ||
* Split a block in two. | ||
*/ | ||
| 'split-block' | ||
| "split-block" | ||
/** | ||
* Self-explanatory. | ||
*/ | ||
| 'transpose-characters' | ||
| 'move-selection-to-start-of-block' | ||
| 'move-selection-to-end-of-block' | ||
| "transpose-characters" | ||
| "move-selection-to-start-of-block" | ||
| "move-selection-to-end-of-block" | ||
/** | ||
@@ -375,4 +366,4 @@ * Commands to support the "secondary" clipboard provided by certain | ||
*/ | ||
| 'secondary-cut' | ||
| 'secondary-paste'; | ||
| "secondary-cut" | ||
| "secondary-paste"; | ||
@@ -383,3 +374,3 @@ /** | ||
*/ | ||
type DraftDragType = 'internal' | 'external'; | ||
type DraftDragType = "internal" | "external"; | ||
@@ -391,16 +382,16 @@ /** | ||
type CoreDraftBlockType = | ||
| 'header-one' | ||
| 'header-two' | ||
| 'header-three' | ||
| 'header-four' | ||
| 'header-five' | ||
| 'header-six' | ||
| 'section' | ||
| 'article' | ||
| 'unordered-list-item' | ||
| 'ordered-list-item' | ||
| 'blockquote' | ||
| 'atomic' | ||
| 'code-block' | ||
| 'unstyled'; | ||
| "header-one" | ||
| "header-two" | ||
| "header-three" | ||
| "header-four" | ||
| "header-five" | ||
| "header-six" | ||
| "section" | ||
| "article" | ||
| "unordered-list-item" | ||
| "ordered-list-item" | ||
| "blockquote" | ||
| "atomic" | ||
| "code-block" | ||
| "unstyled"; | ||
@@ -415,3 +406,3 @@ type CustomBlockType = string; | ||
*/ | ||
type DraftRemovalDirection = 'backward' | 'forward'; | ||
type DraftRemovalDirection = "backward" | "forward"; | ||
@@ -422,3 +413,3 @@ /** | ||
*/ | ||
type DraftHandleValue = 'handled' | 'not-handled'; | ||
type DraftHandleValue = "handled" | "not-handled"; | ||
@@ -429,3 +420,3 @@ /** | ||
*/ | ||
type DraftInsertionType = 'replace' | 'before' | 'after'; | ||
type DraftInsertionType = "replace" | "before" | "after"; | ||
@@ -435,3 +426,3 @@ /** | ||
*/ | ||
type DraftInlineStyleType = 'BOLD' | 'CODE' | 'ITALIC' | 'STRIKETHROUGH' | 'UNDERLINE'; | ||
type DraftInlineStyleType = "BOLD" | "CODE" | "ITALIC" | "STRIKETHROUGH" | "UNDERLINE"; | ||
@@ -469,3 +460,3 @@ /** | ||
*/ | ||
type DraftEntityMutability = 'MUTABLE' | 'IMMUTABLE' | 'SEGMENTED'; | ||
type DraftEntityMutability = "MUTABLE" | "IMMUTABLE" | "SEGMENTED"; | ||
} | ||
@@ -511,3 +502,3 @@ | ||
decoratedText: string; | ||
dir: 'ltr' | 'rtl' | undefined; | ||
dir: "ltr" | "rtl" | undefined; | ||
end: number; | ||
@@ -548,3 +539,4 @@ // Many folks mistakenly assume that there will always be an 'entityKey' | ||
) => void; | ||
component: React.Component | ||
component: | ||
| React.Component | ||
| typeof React.Component | ||
@@ -977,17 +969,17 @@ | ((props: DraftDecoratorComponentProps & P) => React.ReactNode); | ||
type EditorChangeType = | ||
| 'adjust-depth' | ||
| 'apply-entity' | ||
| 'backspace-character' | ||
| 'change-block-data' | ||
| 'change-block-type' | ||
| 'change-inline-style' | ||
| 'move-block' | ||
| 'delete-character' | ||
| 'insert-characters' | ||
| 'insert-fragment' | ||
| 'redo' | ||
| 'remove-range' | ||
| 'spellcheck-change' | ||
| 'split-block' | ||
| 'undo'; | ||
| "adjust-depth" | ||
| "apply-entity" | ||
| "backspace-character" | ||
| "change-block-data" | ||
| "change-block-type" | ||
| "change-inline-style" | ||
| "move-block" | ||
| "delete-character" | ||
| "insert-characters" | ||
| "insert-fragment" | ||
| "redo" | ||
| "remove-range" | ||
| "spellcheck-change" | ||
| "split-block" | ||
| "undo"; | ||
@@ -1222,52 +1214,52 @@ class BlockMapBuilder { | ||
export { | ||
Editor, | ||
EditorProps, | ||
EditorBlock, | ||
EditorState, | ||
EditorChangeType, | ||
EditorCommand, | ||
DraftDecoratorComponentProps, | ||
DraftDecoratorType, | ||
DraftDecorator, | ||
CompositeDecorator, | ||
Entity, | ||
EntityInstance, | ||
AtomicBlockUtils, | ||
BlockMap, | ||
BlockMapBuilder, | ||
CharacterMetadata, | ||
CompositeDecorator, | ||
ContentBlock, | ||
ContentState, | ||
SelectionState, | ||
DraftInlineStyle, | ||
BlockMap, | ||
AtomicBlockUtils, | ||
KeyBindingUtil, | ||
Modifier, | ||
RichUtils, | ||
convertFromHTML, | ||
convertFromRaw, | ||
convertToRaw, | ||
DefaultDraftBlockRenderMap, | ||
DefaultDraftInlineStyle, | ||
RawDraftInlineStyleRange, | ||
RawDraftEntityRange, | ||
RawDraftEntity, | ||
RawDraftContentBlock, | ||
RawDraftContentState, | ||
convertFromRaw, | ||
convertToRaw, | ||
convertFromHTML, | ||
genKey, | ||
getDefaultKeyBinding, | ||
getVisibleSelectionRect, | ||
DraftEditorCommand, | ||
DraftDragType, | ||
DraftBlockType, | ||
DraftBlockRenderConfig, | ||
DraftBlockRenderMap, | ||
DraftInlineStyleType, | ||
DraftBlockType, | ||
DraftComponent, | ||
DraftDecorator, | ||
DraftDecoratorComponentProps, | ||
DraftDecoratorType, | ||
DraftDragType, | ||
DraftEditorCommand, | ||
DraftEntityMutability, | ||
DraftEntityType, | ||
DraftEntityMutability, | ||
DraftRemovalDirection, | ||
DraftHandleValue, | ||
DraftInlineStyle, | ||
DraftInlineStyleType, | ||
DraftInsertionType, | ||
DraftModel, | ||
DraftRemovalDirection, | ||
DraftStyleMap, | ||
DraftModel, | ||
DraftComponent | ||
Editor, | ||
EditorBlock, | ||
EditorChangeType, | ||
EditorCommand, | ||
EditorProps, | ||
EditorState, | ||
Entity, | ||
EntityInstance, | ||
genKey, | ||
getDefaultKeyBinding, | ||
getVisibleSelectionRect, | ||
KeyBindingUtil, | ||
Modifier, | ||
RawDraftContentBlock, | ||
RawDraftContentState, | ||
RawDraftEntity, | ||
RawDraftEntityRange, | ||
RawDraftInlineStyleRange, | ||
RichUtils, | ||
SelectionState, | ||
}; |
{ | ||
"name": "@types/draft-js", | ||
"version": "0.11.12", | ||
"version": "0.11.13", | ||
"description": "TypeScript definitions for Draft.js", | ||
@@ -91,4 +91,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/draft-js", | ||
}, | ||
"typesPublisherContentHash": "f3d7e32e6cbc0b3903d6cb5ea85d9118c100b52da7907b243b835594b24f7f48", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "c494d1b79ee79d0fb4b2744472b9bebba54d891dfdba013e5ef335fa067b45de", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 08 Jun 2023 20:32:59 GMT | ||
* Last updated: Fri, 22 Sep 2023 20:29:40 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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60410
1093