Commit Graph
213 Commits
Author SHA1 Message Date
heavenshell 0335027d41 Add Reac SVG attributes
- Add "colorInterpolationFilters", "filter", "in", "result", "stdDeviation",
  "type" and "values" for "feGaussianBlur" and "feColorMatrix"
- Remove trailing whitespaces
2016-10-08 15:42:07 +09:00
John ReillyandGitHub 6aff001e47 Update react.d.ts
Added myself as an author so I get notifications of PRs / updates from GitHub.
2016-09-27 09:23:13 +01:00
Arman Dezfuli-ArjomandiandMasahiro Wakame e971807506 Add strokeLinejoin prop to <svg> in react.d.ts (#11418)
* Add strokeLinejoin prop to <svg> in react.d.ts

* String literal types for strokeLinecap and strokeLinejoin
2016-09-23 21:42:21 +09:00
Stefan Dobrev 6eaf28d303 Add justifyContent to CssProperties
`justifyContent ` was missing from CssProperties and this PR adds it. More information about it [here](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content).
2016-09-20 08:51:04 +03:00
Clay Miller 327d35fb7a Remove icon from React.HTMLAttributes (fixes #10467) 2016-08-29 12:10:40 -07:00
Paul van BrenkandGitHub f9117cf5dd Merge pull request #10421 from Nitive/patch-1
Fix StatelessComponent interface
2016-08-17 13:12:27 -07:00
Ivo StratevandGitHub d72a787f0d Update react.d.ts 2016-08-17 10:06:23 +03:00
Maxim Samoilov f1c88a8096 test(react): add strictNullChecks test #10421 2016-08-17 13:26:02 +07:00
Ivo StratevandGitHub b5b1fd2826 Adding missing methods from SyntheticEvent 2016-08-13 18:38:52 +03:00
Ivo StratevandGitHub edcbaabb56 Adding missing method persist from SyntheticEvent 2016-08-05 15:55:51 +03:00
Rand Scullard 613673de36 react: Add all remaining SVG elements except deprecated ones. 2016-08-02 15:15:55 -04:00
Maxim SamoilovandGitHub c80a022263 Fix StatelessComponent interface
Props always pass to StatelessComponent even if we pass no props.
Example:

```js
function Test(props) {
  return <div>props: {JSON.stringify(props)}</div>
}

React.render(<Test />, document.body)
```
will render into `props: {}`
[jsfiddle](https://jsfiddle.net/LL25c28c/)

We need to fix this because otherwise we have error:
`Property 'propName' does not exist on type 'IntrinsicAttributes & (IMyInterface | undefined)'.`
for that code:
```js
const MyComponent: React.SFC<IMyInterface> = ({ propName }: IMyInterface) => {
  // ...
}
```
2016-08-02 20:25:07 +07:00
Mine StarksandGitHub 1fcd5cc4bd Merge pull request #10377 from Kovensky/patch-1
Add PureComponent definition (React 15.3)
2016-08-01 13:31:55 -07:00
Rand Scullard 8c0b431766 react: Add SVG elements feFuncA and textPath. 2016-07-30 11:33:20 -04:00
Diogo FrancoandGitHub 1837f78bed Add PureComponent definition (React 15.3)
Observably, it's identical to a Component, just with a default invisible shouldComponentUpdate.
2016-07-30 21:42:25 +09:00
rdelineandMohamed Hegazy 03cd162da0 Add marker to IntrinsicElements (#10173) 2016-07-19 23:04:42 -07:00
Alexey Svetliakov 6a36f6d5b6 Allow es6 import for addons-create-fragment/addons-shallow-compare 2016-07-09 06:46:14 +02:00
Ryan CavanaughandGitHub 925dbd5230 Merge pull request #8753 from jwbay/react-transition-group-props
TransitionGroup spreads HTMLAttribute props onto its component
2016-06-30 17:13:52 -07:00
Ryan CavanaughandGitHub 3fa452ae11 Merge pull request #9895 from wingyplus/rename-argument-and-remove-whitespace
react: rename argument and remove trailing whitespace
2016-06-30 11:36:51 -07:00
Thanabodee Charoenpiriyakij 9a062b06b6 react: fix duplicate statelessElement in react-tests.ts 2016-06-30 17:31:54 +07:00
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 HegazyandGitHub 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
Linda_ppandMasahiro Wakame 50b9b6c6d5 react-addons-perf: Update APIs to version 15.1.0 (#9662)
* react-addons-perf: Update APIs to version 15.1.0

https://facebook.github.io/react/docs/perf.html

* Add deprecation comment to printDOM()

* Add more exported APIs

https://github.com/facebook/react/blob/d101f68bce34a62613a3e86981266111e8950267/src/renderers/shared/ReactPerf.js#L432
2016-06-19 12:19:33 +09:00
Alex PyzhianovandMasahiro Wakame e3df7a21b9 react.d.ts: add <foreignObject/> to JSX (#9523) 2016-06-03 00:15:22 +09:00
Rand ScullardandMasahiro Wakame e76f4c9798 react: Add animation and transition events from React 15. (#9443) 2016-06-02 23:03:09 +09:00
Roman WürschandMasahiro Wakame d4ab7731d3 WheelEvent extends MouseEvent not SyntheticEvent (#9437) 2016-06-02 21:51:06 +09:00
Jan-Pieter ZoutewelleandMasahiro Wakame 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
Nicholas LydonandHoriuchi_H 08ed4e9f18 React TestUtils SyntheticEventData extends browser Event (#9000)
* SyntheticEventData extends browser Event

From https://facebook.github.io/react/docs/events.html

Your event handlers will be passed instances of SyntheticEvent, a
cross-browser wrapper around the browser's native event. It has the same
interface as the browser's native event, including stopPropagation() and
preventDefault(), except the events work identically across all
browsers.

* make react synthetic event properties optional
2016-04-27 12:56:38 +09:00
Long LazuliandMasahiro Wakame 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
Yiting Zhi 支一婷andMasahiro Wakame a3640e13de [React] exported copy event simulator for testing (#8992) 2016-04-17 23:49:49 +09:00
François GuillotandMasahiro Wakame f9b6faf87c Add missing property className. (#8965) 2016-04-17 22:41:18 +09:00
Sean KelleyandMasahiro Wakame 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
Justin Bay 7c5dbff213 TransitionGroup spreads HTMLAttribute props onto its component 2016-03-28 13:55:13 -04: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
vvakame 7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
Bruce Mitchener 1226b59d6e react: Fix typo in comment. 2016-03-17 18:12:35 +07:00
vvakame 14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09: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 6b2cbaed75 [react] update README with known problems & workarounds 2016-03-14 02:05:24 -07: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 edb41e7850 [react] better return-type inference for (scry|find)RenderedComponent(s?)WithType 2016-02-26 18:33:14 -08:00
Vincent Siao a3d2b67d36 [react] improve React.cloneElement with F-bounded polymorphism 2016-02-26 18:33:14 -08:00