Alex Deas
0b5403ba1d
draft-js
...
- Export DraftBlockRenderConfig & DraftBlockRenderMap
2018-10-25 12:23:35 +01:00
Pablo Varela
ce00e9b8de
Export EditorChangeType for draft-js ( #28620 )
2018-09-10 15:14:52 -07:00
Ferdy Budhidharma
6d2fc7181a
feat(react-dependents): update to TS 2.8 (part 1 of 2) ( #27743 )
...
* feat(react-dependents): update to TS 2.8
* exclude react-dom
* fix version mismatches
2018-08-03 21:01:14 +01:00
Martin Hochel
98f3e2fb2f
fix: apply new state/props type safety constraints on all dependand packages
2018-06-26 11:06:37 +02:00
Ben Gazzard
953b75640a
[draft-js] add missing entity methods to ContentState ( #25379 )
...
Added additional methods as defined here: https://draftjs.org/docs/api-reference-content-state.html#replaceentitydata
2018-05-04 14:06:08 -07:00
Nathan Shively-Sanders
06fd6882cb
Merge pull request #24418 from Dartoxian/patch-2
...
Expose the BlockMap type in draft-js
2018-03-26 12:39:25 -07:00
Ben Gazzard
0cdf91a543
Expose the BlockMap type
...
BlockMap is the return/parameter type of several draft functions.
2018-03-20 16:04:05 -04:00
Ulf Schwekendiek
822ee026b2
increase version number
2018-03-11 16:50:53 -07:00
Ulf Schwekendiek
c26e70977e
Adding missing ContentState argument to draft decorators
...
See https://github.com/facebook/draft-js/blob/master/src/model/decorators/DraftDecoratorType.js
2018-03-11 16:44:49 -07:00
Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Forbes Lindesay
8f8f6c4392
[react] Use HTMLDialogElement for the dialog node ( #23053 )
...
* [react] Use HTMLDialogElement for the dialog node
* Actually add the `open` property
* This update requires typescript 2.6
* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Arthur Ozga
1dbe090956
Merge pull request #21930 from vankarish/master
...
Fix parameters in ContentState.CreateFromBlockArray() from Draft.js
2017-12-04 17:32:04 -08:00
Polina
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-Sanders
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 Rosenwasser
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 Oleinikov
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
Andy
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
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