Commit Graph
31 Commits
Author SHA1 Message Date
Arthur OzgaandGitHub 1dbe090956 Merge pull request #21930 from vankarish/master
Fix parameters in ContentState.CreateFromBlockArray() from Draft.js
2017-12-04 17:32:04 -08:00
PolinaandGitHub 3628b8552d Update index.d.ts of Draft.js typings
ContentState.CreateFromBlockArray() should have its second parameter as optional
2017-12-04 12:34:12 +07:00
Rich Tagger b0486477ad Update CharacterMetadata.applyEntity and Modifier.applyEntity
null is how removal is indicated
2017-11-30 12:48:36 -08:00
Nathan Shively-SandersandGitHub 661e7136a7 Merge pull request #21352 from unindented/draft-js
Expose RawContentState internals for draft-js 0.10
2017-11-20 13:06:52 -08:00
Daniel RosenwasserandGitHub c7ac778e97 Merge pull request #21351 from Dartoxian/fix/draft-update
Update for the new onLeftArrow, onRightArrow in draft-js 0.10.4
2017-11-09 12:23:32 -08:00
Igor OleinikovandGitHub ecabf5526f Merge pull request #20987 from pelotom/patch-10
[react] Make component constructor props non-optional
2017-11-08 13:58:44 -08:00
Ben Gazzard 89aa845de8 Update for the new onLeftArrow, onRightArrow in draft-js 0.10.4 2017-11-08 15:15:21 -05:00
Daniel Perez Alvarez eace09b77e Expose RawContentState internals 2017-11-08 11:51:19 -08:00
AndyandGitHub 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Tom Crockett 73216e2ef2 Propagate non-optional props change to dependent libraries 2017-10-24 22:04:50 -07:00
richardtaggerandWesley Wigham 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
AndyandGitHub 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
czenggandRyan Cavanaugh 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
AndyandGitHub 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 PlummerandSheetal Nandi c855e42c9f add mergeEntityData method to ContentState class (#18553) 2017-08-02 13:06:12 -07:00
Daniel HeymanandAndy 83f69077f4 Update index.d.ts (#18412) 2017-07-26 08:36:41 -07:00
AndyandGitHub af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -07:00
Willis PlummerandWesley Wigham 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 WuandMichael 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-SandersandGitHub 5216cd4d5b Merge pull request #17375 from mohsen1/patch-21
Export DraftEditorProps
2017-06-25 09:44:27 -07:00
Mohsen AzimiandGitHub 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 IIIandMohamed Hegazy 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 GaoandAndy 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