Skip to content

Commit 0230017

Browse files
authored
Merge pull request #50 from ganderzz/release/1.2.0
Create release for 1.2.0
2 parents 063a599 + 9525712 commit 0230017

File tree

10 files changed

+2969
-708
lines changed

10 files changed

+2969
-708
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
"contributions": [
3636
"code"
3737
]
38+
},
39+
{
40+
"login": "ywen",
41+
"name": "Yi Wen",
42+
"avatar_url": "https://avatars2.githubusercontent.com/u/22895?v=4",
43+
"profile": "https://github.com/ywen",
44+
"contributions": [
45+
"code"
46+
]
3847
}
3948
]
4049
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![CircleCI](https://circleci.com/gh/ganderzz/react-scroll-to/tree/master.svg?style=svg)](https://circleci.com/gh/ganderzz/react-scroll-to/tree/master)
66
[![Coverage Status](https://coveralls.io/repos/github/ganderzz/react-scroll-to/badge.svg?branch=feature%2Fcreate-circi-artifact)](https://coveralls.io/github/ganderzz/react-scroll-to?branch=feature%2Fcreate-circi-artifact)
7-
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)
7+
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors)
88
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
99

1010

@@ -162,8 +162,8 @@ export default ScrollToHOC(function(props) {
162162
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
163163
164164
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
165-
| [<img src="https://avatars3.githubusercontent.com/u/5566054?v=4" width="100px;"/><br /><sub><b>Dylan Paulus</b></sub>](http://www.dylanpaulus.com)<br />[💻](https://github.com/ganderzz/react-scroll-to/commits?author=ganderzz "Code") [📖](https://github.com/ganderzz/react-scroll-to/commits?author=ganderzz "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/14035529?v=4" width="100px;"/><br /><sub><b>Anthony Ng</b></sub>](http://anthonyng.me)<br />[💻](https://github.com/ganderzz/react-scroll-to/commits?author=newyork-anthonyng "Code") [📖](https://github.com/ganderzz/react-scroll-to/commits?author=newyork-anthonyng "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/17663679?v=4" width="100px;"/><br /><sub><b>UmenR</b></sub>](https://github.com/UmenR)<br />[💻](https://github.com/ganderzz/react-scroll-to/commits?author=UmenR "Code") |
166-
| :---: | :---: | :---: |
165+
| [<img src="https://avatars3.githubusercontent.com/u/5566054?v=4" width="100px;"/><br /><sub><b>Dylan Paulus</b></sub>](http://www.dylanpaulus.com)<br />[💻](https://github.com/ganderzz/react-scroll-to/commits?author=ganderzz "Code") [📖](https://github.com/ganderzz/react-scroll-to/commits?author=ganderzz "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/14035529?v=4" width="100px;"/><br /><sub><b>Anthony Ng</b></sub>](http://anthonyng.me)<br />[💻](https://github.com/ganderzz/react-scroll-to/commits?author=newyork-anthonyng "Code") [📖](https://github.com/ganderzz/react-scroll-to/commits?author=newyork-anthonyng "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/17663679?v=4" width="100px;"/><br /><sub><b>UmenR</b></sub>](https://github.com/UmenR)<br />[💻](https://github.com/ganderzz/react-scroll-to/commits?author=UmenR "Code") | [<img src="https://avatars2.githubusercontent.com/u/22895?v=4" width="100px;"/><br /><sub><b>Yi Wen</b></sub>](https://github.com/ywen)<br />[💻](https://github.com/ganderzz/react-scroll-to/commits?author=ywen "Code") |
166+
| :---: | :---: | :---: | :---: |
167167
<!-- ALL-CONTRIBUTORS-LIST:END -->
168168
169169
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

dist/definitions/ScrollTo.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import * as React from "react";
2+
3+
interface Props {
4+
children: (
5+
handleScroll: (x: number, y: number) => void,
6+
handleScrollById: (id: string, x: number, y: number) => void
7+
) => React.ReactElement<any>;
8+
}
9+
10+
/**
11+
* ScrollTo component is a render prop that provides scrolling functionality.
12+
*
13+
* @param {Props} props
14+
*/
15+
declare function ScrollTo(props: Props): React.ReactElement<any>;
16+
export default ScrollTo;

dist/definitions/ScrollToHOC.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as React from "react";
2+
3+
interface IProps {
4+
/**
5+
* Scroll to a position in the window.
6+
*
7+
* @param {number} x The x position to scroll to
8+
* @param {number} y The Y position to scroll to
9+
*/
10+
scroll: (x: number, y: number) => void;
11+
}
12+
13+
/**
14+
* Higher order component that bind scroll functionality to a component's props.
15+
*
16+
* @param {React.ReactElement<IProps> | React.StatelessComponent<IProps>} component
17+
*
18+
* @returns {React.ReactElement<any>}
19+
*/
20+
declare function ScrollToHOC(component: React.ReactElement<IProps> | React.StatelessComponent<IProps>): (props: {}) => React.ReactElement<any>;
21+
export default ScrollToHOC;

dist/definitions/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as ScrollTo } from "./ScrollTo";
2+
export { default as ScrollToHOC } from "./ScrollToHOC";

dist/react-scroll-to.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)