Commit Graph

134 Commits

Author SHA1 Message Date
Thanabodee Charoenpiriyakij
4020976848 react: rename argument and remove trailing whitespace
`callBack` name not match the convention it should change
to `callback`
2016-06-30 17:07:02 +07:00
Mohamed Hegazy
59260ed058 Merge pull request #9258 from lijunle/patch-1
The DragEvent should inherit from MouseEvent.
2016-06-21 15:56:15 -07:00
Alex Pyzhianov
f526787747 React: add SVG flters to JSX Elements 2016-06-21 14:41:44 +03:00
Alex Pyzhianov
e3df7a21b9 react.d.ts: add <foreignObject/> to JSX (#9523) 2016-06-03 00:15:22 +09:00
Rand Scullard
e76f4c9798 react: Add animation and transition events from React 15. (#9443) 2016-06-02 23:03:09 +09:00
Roman Würsch
d4ab7731d3 WheelEvent extends MouseEvent not SyntheticEvent (#9437) 2016-06-02 21:51:06 +09:00
Jan-Pieter Zoutewelle
dc619d01b2 Added the version of React to the typing. (#9429)
* Added version to React typings

* Update react.d.ts
2016-05-26 22:46:01 +09:00
Junle Li
cc0afa7289 The DragEvent should inherit from MouseEvent.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/DragEvent
2016-05-09 21:36:11 +08:00
Long Lazuli
3a44f976ba Update React - Adds SVG <use> & <symbol> to the JSX IntrinsicElements (#9012)
* Adds SVG USE & SYMBOL to the JSX IntrinsicElements

* Reverse ReactDom changes
2016-04-23 15:59:14 +09:00
Sean Kelley
b9642fb8ac Allow specifying void for component state type parameter. (#8673)
* Allow specifying `void` for component state type parameter.

Per comments on https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8543,
the type parameter for component state was changed to `{}` from `any` for
increased type safety, but prevents specifying (non-functional) stateless
components without having empty state parameters, which seems messy. This
changes the type to `{} | void` to allow this while staying stricter than
`any`.

* Make react tests a bit more strict.

* Rename State -> ComponentState to make it a bit more explicit.
2016-04-13 00:40:40 +09:00
Masahiro Wakame
ecaf8c1c3f Merge pull request #8607 from waywardmonkeys/fix-typos
react: Fix typo in comment.
2016-03-19 14:34:54 +09:00
Bruce Mitchener
1226b59d6e react: Fix typo in comment. 2016-03-17 18:12:35 +07:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Vincent Siao
648a4b27b9 [react] add nonce and reversed to HTMLAttributes 2016-03-14 02:05:24 -07:00
Vincent Siao
1a67b639ce [react] Add ComponentElement<P, T> for instance type inference 2016-03-14 02:05:24 -07:00
Vincent Siao
5e85e146c6 [react] ReactTestUtils custom typeguards 2016-03-14 01:46:14 -07:00
Vincent Siao
1917a4122a [react] Add T param to React.DOM* types 2016-03-14 01:46:13 -07:00
Vincent Siao
92cf86a3e2 [react] Deprecate React.Props<T>; Add React.*Attributes 2016-03-14 01:46:13 -07:00
Daniel Rosenwasser
945ebfe049 Merge pull request #8284 from Asana/react-fixes
React updates (improved cloneElement & TestUtils return-type inference)
2016-03-02 14:44:48 -08:00
Vincent Siao
1c27f2429e [react] Reorganize CSSProperties; add missing properties 2016-03-01 02:21:54 -08:00
Vincent Siao
a3d2b67d36 [react] improve React.cloneElement with F-bounded polymorphism 2016-02-26 18:33:14 -08:00
Vincent Siao
60ea35043d [react] Add React.Key; React.Ref<T> types 2016-02-26 14:00:12 -08:00
glatzert
744a89c4b1 Updated interface HTMLAttributes
The explicit form of the indexer `[key: string]: string | string[] | boolean | number | EventHandler<SyntheticEvent> | CSSProperties | {__html: string};` Fails in TravisCI - so any is currently the way to go.
2016-02-25 10:28:51 +01:00
glatzert
e72758e8b7 Updated HTMLAttributes to support data- and aria- more spceifically
The HTMLAttribute was updated to Support data-* and aria-* Attributes. Since `any` is possibly to broad, the Definition allows any type used in HTMLAttributes and DOMAttributes.
2016-02-25 09:43:59 +01:00
glatzert
443f5a9e39 Updated interface HTMLAttributes
Added [key:string]: any; to HTMLAttributes to Support data- and aria- Attributes, which are unsupported currently.
2016-02-24 16:51:17 +01:00
Tom Duncalf
f407264835 Add missing hgroup element to react.d.ts 2016-02-09 11:08:09 +00:00
sjef
83b88a031c Added missing bottom property in React.CSSProperties 2016-02-05 13:14:37 +01:00
Alex Thompson
e3a7583dc3 CSSProperties missing backgroundColor 2016-01-29 10:33:36 -08:00
Masahiro Wakame
69b3c5934b Merge pull request #7123 from Asana/react-14-fix
[React] Add SFC displayName and fix onlyChild type
2016-01-29 12:38:35 +09:00
Bernie Sumption
69154f67ee Added the clipPath SVG element
Not sure when it was added, but the current version of react supports the clipPath element: http://facebook.github.io/react/docs/tags-and-attributes.html
2016-01-25 17:38:46 +00:00
Jason Jarrett
2cad4a3cff small change to force an update (testing NugetAutomation) 2016-01-21 09:27:28 -08:00
Jasper Patterson
8b2be7dbb2 Changed autoCapitalize attribute from boolean to string 2015-12-27 20:46:15 -07:00
Anton Ulyanov
fd5229673a Added min-height css property to react definitions 2015-12-24 10:12:30 +02:00
Vincent Siao
d76bfa3394 [React] Add SFC displayName and fix onlyChild type
- `StatelessComponent` is missing an optional `displayName` property
- `ReactChildren.only` always returns a `ReactElement`
- add tests for the above and `ReactTestUtils.renderIntoDocument`
2015-12-09 12:07:28 -08:00
Dave Keen
7f14ac023a strokeMiterlimit was left out of the React 0.14 typings 2015-12-07 12:28:15 +01:00
Ryan Cavanaugh
d7465b3fbe Merge branch 'master' into reactSFC 2015-12-01 14:26:53 -08:00
John Reilly
36c6ce86fb Merge pull request #6799 from adidahiya/react-css-transition-group
[React] Fix linting errors and add support for transition timeout props on CSSTransitionGroup
2015-11-25 12:01:29 +00:00
Adi Dahiya
ca5bfe76d2 Fix linting errors in react typings 2015-11-18 14:37:45 -05:00
masonicboom
1dc2fdacad Add remaining React CSS properties
These properties automatically extracted from
http://docs.webplatform.org/w/index.php?title=Special:Ask&offset=0&limit=500&q=%5B%5BCategory%3ACSS+Properties%5D%5D&p=format%3Dtemplate%2Flink%3Dnone%2Fsearchlabel%3DSee-20more-20pages...%2Ftemplate%3DSummary_Table_Body%2Fintrotemplate%3DSummary_Table_Header%2Foutrotemplate%3DSummary_Table_Footer&po=%3FPage+Title%0A%3FSummary%0A#.
See https://github.com/masonicboom/react-css-properties for extraction
methodology.

NOTE: these properties have not been individually tested.
Vendor-prefixed properties not included.

Content used under license
http://docs.webplatform.org/wiki/Template:CC-by-3.0.
2015-11-15 13:16:40 -08:00
Ryan Cavanaugh
ac7e775d98 Make HTMLProps generic; add Intrinsic Attribute types 2015-11-12 13:18:53 -08:00
Vincent Siao
813f3b03db [React.14] Add checkedLink/valueLink to HTMLAttributes for LinkedStateMixin 2015-11-10 23:43:36 -08:00
Vincent Siao
45d85934f1 Merge remote-tracking branch 'dt/master' into react-v14 2015-11-09 17:48:30 -08:00
Vincent Siao
8345d38855 [React.14] Add StatelessComponent<P> and tests
- Also add image to JSX.IntrinsicElements
- Add tests for callback and string refs
- Fix bug where Component<P, S> subclasses are required to have defaultProps
2015-11-09 17:39:55 -08:00
Vincent Siao
2ccdb76c47 [React.14] Add Composition/MediaEvents and <image> SVGFactory 2015-11-05 17:31:34 -08:00
Vincent Siao
0a6e0c30da [React.14] Update HTMLAttributes/SVGAttributes for 0.14.2 2015-11-05 16:50:52 -08:00
Vincent Siao
a43c2843cd [React.14] Add ReactInstance type (Component<any, any> | Element) 2015-11-05 11:25:16 -08:00
Vincent Siao
15eff541e0 [React.14] Update refs for DOM elements 2015-11-05 10:41:07 -08:00
Tom Hasner
bf061642b0 Write typings for React.Children.toArray and React.Children.map 2015-11-02 22:59:15 -05:00
floriantopf
a809e347c9 react-onLoad-event 2015-11-01 01:22:54 +01:00
James Brantly
77b2f7e8d4 Initial React v0.14 definitions 2015-10-14 19:21:31 -04:00