Commit Graph
21 Commits
Author SHA1 Message Date
richardtagger 98084c0199 Update aria props, add missing insertion type (#20410)
Updated aria props to reflect 0.10.3, added DraftInsertionType
2017-10-10 12:46:45 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
czengg 5ae8f2754f add constants to exports (#20304) 2017-10-05 11:31:28 -07:00
Santiago M Vilar bae8cad188 Add editorState param to event handlers 2017-09-14 15:44:12 -03:00
Andy 0537c1fb27 Add "private": true to every package.json (#19483) 2017-08-31 08:02:56 -07:00
willisplummer 377cb9f1ff make createFromArray a static method on BlockMapBuilder class 2017-08-23 17:04:10 -04:00
Willis Plummer c855e42c9f add mergeEntityData method to ContentState class (#18553) 2017-08-02 13:06:12 -07:00
Daniel Heyman 83f69077f4 Update index.d.ts (#18412) 2017-07-26 08:36:41 -07:00
Andy af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -07:00
Willis Plummer 168bb317b1 add possibility of null return value from RichUtils.handleKeyCommand (#18277)
* add possibility of null return from RichUtils.handleKeyCommand

* more specifically, the function returns null in the overload case

* make key for RichUtils.toggleLink potentially null

* add definitions by credit
2017-07-21 09:40:00 -07:00
Roman Lysogor c71499ee1b Added DraftEditorProps props to improve mobile web behaviors when user typing 2017-07-14 17:09:19 -07:00
Michael Wu 589220d3cc Extend React.Component correctly in draft-js
The generic type Component requires two arguments.
2017-07-12 13:44:30 -04:00
Nathan Shively-Sanders 5216cd4d5b Merge pull request #17375 from mohsen1/patch-21
Export DraftEditorProps
2017-06-25 09:44:27 -07:00
Mohsen Azimi 1412dd2524 Export DraftEditorProps 2017-06-21 18:24:35 -07:00
Tanguy Krotoff ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
Tanguy Krotoff e429bee4be Remove trailing spaces 2017-06-19 12:06:41 +02:00
Yale Cason III 214653678c Update Draft-js types so that convertFromHTML example typechecks (#16542)
* Update Draft-js types so that https://github.com/facebook/draft-js/blob/master/examples/draft-0-10-0/convertFromHTML/convert.html typechecks.

* Fix bad merge

* Fix bad fix for bad merge
2017-06-05 13:41:59 -07:00
Ryan Schwers d28f34da92 [Draft-js] Support custom keyBindingFN strings
The current typings don't work for custom keyBindingFn
return values. keyBindingFn implementations may return
any string or null. TypeScript's handling of string unions is
preventing the fn type definition overloading from working
as intended. This change removes overloading and moves
the union to a type, and adds nullability to the type definition.
2017-05-16 15:10:22 -07:00
Xiang Gao 68a96ccab0 update draft-js.d.ts (#16033)
* update draft-js.d.ts

export as namespace Draft;

* fix typo
2017-04-21 10:33:00 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00