Adi Dahiya
097e6616f0
Add transition timeout props to React CSSTransitionGroup
2015-11-18 14:37:46 -05: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
f4e53f321c
Update react-tests.ts
2015-11-12 15:20:28 -08:00
Ryan Cavanaugh
ac7e775d98
Make HTMLProps generic; add Intrinsic Attribute types
2015-11-12 13:18:53 -08:00
Vincent Siao
c0aef45b50
[React.14] Fix typing for valueLink/checkedLink
2015-11-11 18:31:36 -08:00
James Brantly
bb72880cd3
Add custom classes support to CSSTransitionGroup
2015-11-11 08:55:17 -05:00
Vincent Siao
813f3b03db
[React.14] Add checkedLink/valueLink to HTMLAttributes for LinkedStateMixin
2015-11-10 23:43:36 -08:00
Vincent Siao
bef72125ab
[React.14] Move shallowCompare into __React.__Addons namespace
2015-11-09 18:24:49 -08:00
Vincent Siao
45d85934f1
Merge remote-tracking branch 'dt/master' into react-v14
2015-11-09 17:48:30 -08:00
Vincent Siao
84340fabfc
Merge branch 'react-v14' of github.com:jbrantly/DefinitelyTyped into react-v14
2015-11-09 17:43:58 -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
Phips Peter
cba13a3b25
Add shallow-compare addon
...
Interestingly, I do not believe that the ComponentLifecycle interface is
propagated to components that inherit from React.Component.
2015-11-05 17:56:28 -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
49f853d9dc
[React.14] Fix jsnox types and reference path in react-global-0.13.3
2015-11-05 14:56:58 -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
James Brantly
619033254c
Update tests for v0.14 and refactor how addons expose interfaces.
2015-11-05 07:01:14 -05: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
f9e6e567f4
Fix module => namespace
2015-10-14 20:55:48 -04:00
James Brantly
8eb584e9cf
Add legacy files for v0.13
2015-10-14 20:52:17 -04:00
James Brantly
6186be126a
Export types as well as variables for certain addons
2015-10-14 20:47:57 -04:00
James Brantly
f2ff7464b5
Remove cloneWithProps since it's deprecated
2015-10-14 19:41:57 -04:00
James Brantly
77b2f7e8d4
Initial React v0.14 definitions
2015-10-14 19:21:31 -04:00
Roger Chen
2ae4b96283
Change autoComplete to a string typing in React
2015-10-12 15:27:34 -07:00
ampext
49bb032dd0
fixed lost colon after onContextMenu?
2015-10-10 22:13:44 +03:00
ampext
61105c5c30
added onContextMenu attribute to react DOMAttributesBase
2015-10-10 21:40:56 +03:00
vvakame
e1171adaff
remove trailing white space
2015-10-07 02:00:27 +09:00
vvakame
f44dbb58fe
Merge branch 'react-update-for-1.6' of https://github.com/ccapndave/DefinitelyTyped into ccapndave-react-update-for-1.6
2015-10-07 01:59:41 +09:00
Masahiro Wakame
8ea82f65e3
Merge pull request #5869 from use-strict/patch-1
...
Update react.d.ts - Validate static members of React.Component
2015-10-05 22:44:28 +09:00
Ryan Cavanaugh
3b7f250dcf
Merge pull request #5893 from ccapndave/react-svg-classname
...
Added className to SVG attributes
2015-09-28 10:27:48 -07:00
Dave Keen
f03129f8fa
Fixed the React.addons.update typing to work with TS1.6's new stricter types.
2015-09-28 16:38:38 +02:00
Dave Keen
e593119aeb
Added className and id to DOMAttributes
2015-09-28 16:34:40 +02:00
Masahiro Wakame
a71dd233fe
Merge pull request #5896 from ccapndave/react-svg-strokemiterlimit
...
Added missing strokeMiterLimit to SVG attributes
2015-09-27 11:41:58 +09:00
Nathan Brown
7d0beb4825
Make a generic base version of HTMLAttributes and DOMAttributes to allow for components that pass all remaining properties to an underlying HTML element.
2015-09-19 17:28:49 -07:00
Dave Keen
16dc2cea12
Added missing strokeMiterLimit to SVG attributes
2015-09-18 12:46:18 +02:00
Ciuca, Alexandru
64cd3d9c56
Fixed react tests caused by incompatibility of aliased props generics
2015-09-17 20:11:06 +03:00
use-strict
fb94b1ef37
Update react.d.ts
...
Make React.Component (static side) compatible with React.ComponentClass. This ensures validation when we use ES6-style classes to extend from React.Component, as opposed to using React.createClass.
2015-09-17 19:37:31 +03:00
Stepan Mikhaylyuk
ed8c24df07
force update fix
...
in react we cann pass callback to forceUpdate
2015-09-11 18:11:31 +03:00
John Reilly
9c76211533
Merge pull request #5579 from jbrantly/react-reorg
...
Reorganize React definitions
2015-09-08 05:08:42 +01:00
James Brantly
e79e14a7b8
Fixup the global definitions.
...
Originally had renamed react-global.d.ts to react-namespace.d.ts. After thinking about it further I don't think a rename really benefits anyone and would just cause confusion with people trying to upgrade. Also I had missed the `.d` in the original rename. Additionally adding some tests for the global version since there were none.
2015-09-03 23:07:28 -04:00
vvakame
79ca1235f8
adhoc fix react/react-addons-tests.ts
2015-09-03 20:46:01 +09:00
James Brantly
b4fdbace3d
Fix CSSProperties indexer issue (sort of)
2015-08-29 09:48:26 -04:00
James Brantly
07c4e447f1
Reorganize React definitions
2015-08-27 22:09:55 -04:00
Daniel Rosenwasser
96281f1a1c
Merge branch 'master' into handleExtraObjectLiteralProperties
...
Conflicts:
parse/parse.d.ts
2015-08-25 10:31:49 -07:00
Basarat Syed
55465434fd
reactChidlren callbacks accept index
...
ref 10c8166043/src/isomorphic/children/ReactChildren.js (L52)
2015-08-24 17:43:21 +10:00
Daniel Rosenwasser
d333e3deb0
Add type annotation to avoid complaining about missing index signature in 'react'.
2015-08-20 16:53:36 -07:00
Daniel Rosenwasser
fb0b124b2a
Added indexer to CSS properties in 'react'.
2015-08-20 14:36:58 -07:00
Daniel Rosenwasser
d2f69d40ab
Add index signature to 'ComponentSpec' in 'react'.
2015-08-20 14:32:32 -07:00
Masahiro Wakame
7ccb1759f9
Merge pull request #5131 from benishouga/add-react-svg
...
React: Added attributes 'width' and 'height' to SVGAttributes for Rect.
2015-08-08 14:33:35 +09:00
Masahiro Wakame
c7253f4a93
Merge pull request #5133 from maglar0/master
...
React: Support for defaultValue in HTMLAttributes
2015-08-08 13:54:45 +09:00
Masahiro Wakame
c1ea194664
Merge pull request #5201 from use-strict/react-context-any
...
react - Replaced context any with {} for type safety.
2015-08-08 13:53:54 +09:00
benishouga
a117cbd73e
add svg attribute width and height for rect element. SVGAttribute inherit DOMAttributes.
2015-08-06 03:22:04 +09:00
Lars Magnusson
6d59069216
Support for defaultValue and defaultChecked in HTMLAttributes (used on input and textarea and others)
2015-08-04 20:19:03 +02:00
Ciuca, Alexandru
1a9ee560ef
react - Replaced any with {} for context
...
See https://github.com/Microsoft/TypeScript/issues/4126
2015-08-04 11:10:07 +03:00
Nathan Brown
207710d2a0
React: Include required render() function in base Component class.
...
The new TSX mode in the TypeScript compiler has the requirements that
the element class constructor produces an element instance type that is
assignable to the type JSX.ElementClass. To meet this Component<P, S>
must declare `render(): JSX.Element`. Derived classes can be more
specific.
This should resolve Microsoft/TypeScript#3928 .
2015-08-03 17:08:03 -07:00
benishouga
62bb9fd807
SVGAttributes inherit HTMLAttributes. fixed react-addons.d.ts and react-global.d.ts.
2015-08-04 00:01:32 +09:00
benishouga
8c18f7d318
add svg attribute width and height for react element.
2015-07-30 01:03:33 +09:00
vvakame
75b619ca7d
remove react/legacy
2015-07-19 17:47:26 +09:00
vvakame
31218c8035
Merge branch 'master' into tsc-1.5.0-alpha
2015-07-18 20:06:04 +09:00
Ryan Cavanaugh
bfcf082b40
Go back to old style of React typings and merge in JSX to both
2015-07-06 15:58:01 -07:00
Ryan Cavanaugh
75e849a4e0
Add Microsoft attribute URL
2015-06-23 11:30:21 -07:00
Ryan Cavanaugh
8833ceece1
Combine internal/external React .d.ts files and prepare for TS JSX support
2015-06-23 09:42:37 -07:00
vvakame
e777fd18ea
Merge branch 'master' into tsc-1.5.0-alpha
2015-06-21 14:57:48 +09:00
Basarat Ali Syed
983cd5df09
Revert "React : test for modernComponent"
2015-06-15 10:01:01 +10:00
Basarat Ali Syed
78deea6ba8
Syntax for modernComponent
...
Is this test valid @pspeter3? Regarding : 9008be2f41
2015-06-02 17:28:20 +10:00
Vincent Siao
7b47d0c977
[React] Update README (0.13.3)
2015-05-28 15:33:04 -07:00
Vincent Siao
1cc5ea01d8
[React] Update HTMLAttributes interface
...
removes `scrollLeft`, `scrollTop` (0.12.0)
adds `formAction`, `formEncType`, `formMethod`, `formTarget`, `marginHeight`, `marginWidth` (0.12.2)
adds `scoped`, `high`, `low`, `optimum`, `unselectable` (0.13.2)
2015-05-28 15:30:16 -07:00
Vincent Siao
bb793321c6
[React] change ShallowRenderer output to ReactElement
2015-05-28 14:18:58 -07:00
Vincent Siao
3ca8ceb795
[react] Make var addons into a module
...
This lets you do import aliasing (eg. `import TestUtils = React.addons.TestUtils;`)
2015-05-27 18:43:23 -07:00
Mads
2dabe041c4
whoops, syntax error
2015-05-14 18:57:45 +02:00
Mads
9a53f5ee84
UpdateSpec properties should be optional
2015-05-07 07:57:08 +02:00
vvakame
7dea7494db
Merge branch 'master' into tsc-1.5.0-alpha
2015-04-29 10:54:57 +09:00
Igor Ovsiannikov
39d3517c6f
feat(react): add DragEvent to react-addons.d.ts
2015-04-22 21:38:28 +03:00
Igor Ovsiannikov
41a0837326
feat(react): add DragEvent
2015-04-20 20:58:25 +03:00
vvakame
25407fa708
fix react/legacy/react-0.12-tests.ts compile error
2015-04-15 23:25:52 +09:00
vvakame
523dc9d483
fix react/react-tests.ts and react/react-addons-tests.ts compile error
2015-04-15 23:23:21 +09:00
Vincent Siao
b35ac04569
React 0.13.0->0.13.1 and make arguments to Component constructor optional
2015-03-18 09:46:36 -07:00
Vincent Siao
424bb99eac
Don't use DOM API interfaces for React.SVGAttributes
2015-03-14 16:15:59 -07:00
Vincent Siao
d3584fa716
Add ReactShallowRenderer types
...
See http://facebook.github.io/react/docs/test-utils.html#shallow-rendering
2015-03-14 15:29:40 -07:00
Vincent Siao
0213f7c10e
Fix state initializers in react-tests.ts ( Fixes #3855 )
2015-03-14 15:29:15 -07:00
Vincent Siao
ffedf917df
Remove beta and RC2 references from React defs
2015-03-14 15:27:46 -07:00
Phips Peter
57340eca1e
Moving React 0.13 to be the default
...
React 0.13 is now released so it should be the default type definition.
http://facebook.github.io/react/blog/2015/03/10/react-v0.13.html
2015-03-10 19:03:37 -07:00
Vincent Siao
cbe9f0b94a
Remove React.ModernXX interfaces
...
React.ModernElement -> React.ReactElement
React.ModernFactory -> React.Factory
React.ModernComponentClass -> React.ComponentClass
2015-03-10 18:36:27 -07:00
Vincent Siao
4cc6ae4122
Remove React prefix from Modern/Classic/DOM Elements
2015-03-10 18:36:27 -07:00
Vincent Siao
69a3c97655
Rename React.XXXBase types to React.XXX to simplify general typing
2015-03-10 18:36:26 -07:00
Vincent Siao
ec9b82e646
Update React v0.13.0 definitions for RC2
...
+ `React.cloneElement`
+ `React.addons.createFragment`
+ `setState(f: (prevState: S, props: P) => S, callback?: () => any)`
+ `ref: (component: T) => any`
2015-03-10 18:36:26 -07:00
Vincent Siao
70779548d5
Remove Context generics from React 0.13 defs
2015-02-24 17:29:52 -08:00
Vincent Siao
f19e070599
Add global React defs and a README
2015-02-13 18:10:28 -08:00
Vincent Siao
92c95d8c40
Take shared Props (key, ref, children) out of ReactAttributes and rename to DOMAttribtues
2015-02-12 16:19:03 -08:00
Vincent Siao
9ce634af3a
Split modules react and react/addons; exporting Component<P, S, C> class
2015-02-06 17:22:15 -08:00
Hraban Luyat
3d84b2d7f3
[react 0.13] Adapt unit tests to new classic API
...
Allows to use the API with one less type cast.
2015-01-30 14:43:26 +01:00
Hraban Luyat
f6da4b13b8
Discern new vs old style components through render
...
By overloading createElement() for the ClassicComponentClass and
creating a separate ReactClassicElement type, we can keep track of which
calls to render() should create a ClassicComponent versus a new style
Component. Useful for keeping the old API, which makes migration easier.
2015-01-30 06:09:39 +01:00
James Brantly
28cf35055a
Adding early support for React v0.13.0
2015-01-28 01:31:44 -05:00
Vincent Siao
54e4632ca7
Revert "Change most uses of ComponentClass<P> to a type that represents the class"
...
This reverts commit 7bb2b48cd2 .
Conflicts:
react/react.d.ts
2015-01-22 18:51:18 -08:00
Vincent Siao
e12488eb5c
Fix ReactType references and ReactNode types
2015-01-21 16:22:06 -08:00
Vincent Siao
8194252213
Update react.d.ts for Typescript 1.4
2015-01-21 15:51:16 -08:00
jbrantly
7bb2b48cd2
Change most uses of ComponentClass<P> to a type that represents the class
...
This more accurately reflects that createClass returns a class, not an
instance of a class. This will be more important as React v0.13 is released
which supports using ES6 classes as components.
2015-01-19 15:11:02 -05:00