{"action":"created","comment":{"url":"https://api.github.com/repos/zamotany/react-slate/pulls/comments/196411073","pull_request_review_id":129956286,"id":196411073,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjQxMTA3Mw==","diff_hunk":"@@ -0,0 +1,40 @@\n+---\n+id: interactive-scroll-view\n+title: ScrollView \n+sidebar_label: ScrollView\n+---\n+\n+Render `children` elements in a scrollable container with fixed height, using mouse scroll events. Useful for reporters and logs display.\n+\n+## Props\n+\n+* `children: React.Element<*>` - Content to be rendered and scrolled.\n+* `height: number` - Fixed height of the visible area.\n+* `inputStream: tty$ReadStream` (default: `process.stdin`) - Input stream to capture scroll events from.\n+* `outputStream: tty$WriteStream` (default: `process.stdout`) - Output stream to enable/disable mouse reporting, hence toggling scroll events.\n+* `reportingRatio: number` (default: `0.25`) - Mouse scrolling reporting ratio, effectively controlling the speed of scroll.\n+* `inverted?: boolean` - Inverts the direction of scrolling.\n+* `style?: Style` - Object with [Style properties](./core-style-prop.md).\n+* `follow?: boolean`, - Makes `ScrollView` follow new content added at the bottom.\n+* `disabled?: boolean` - Disables scrolling when set to `true`.\n+\n+## Example\n+\n+```js\n+import React from 'react';\n+import { ScrollView } from '@react-slate/interactive';","path":"docs/interactive-scroll-view.md","position":25,"original_position":25,"commit_id":"8fe95381e971178d7f924fd6225354ec842aa9e5","original_commit_id":"8fe95381e971178d7f924fd6225354ec842aa9e5","user":{"login":"satya164","id":1174278,"node_id":"MDQ6VXNlcjExNzQyNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1174278?v=4","gravatar_id":"","url":"https://api.github.com/users/satya164","html_url":"https://github.com/satya164","followers_url":"https://api.github.com/users/satya164/followers","following_url":"https://api.github.com/users/satya164/following{/other_user}","gists_url":"https://api.github.com/users/satya164/gists{/gist_id}","starred_url":"https://api.github.com/users/satya164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satya164/subscriptions","organizations_url":"https://api.github.com/users/satya164/orgs","repos_url":"https://api.github.com/users/satya164/repos","events_url":"https://api.github.com/users/satya164/events{/privacy}","received_events_url":"https://api.github.com/users/satya164/received_events","type":"User","site_admin":false},"body":"I think `@react-slate/components` is also fine. Better not to have a separate `@react-slate/interactive` since they are still just components.","created_at":"2018-06-19T12:55:14Z","updated_at":"2018-06-19T12:55:14Z","html_url":"https://github.com/zamotany/react-slate/pull/89#discussion_r196411073","pull_request_url":"https://api.github.com/repos/zamotany/react-slate/pulls/89","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/zamotany/react-slate/pulls/comments/196411073"},"html":{"href":"https://github.com/zamotany/react-slate/pull/89#discussion_r196411073"},"pull_request":{"href":"https://api.github.com/repos/zamotany/react-slate/pulls/89"}},"in_reply_to_id":196400539},"pull_request":{"url":"https://api.github.com/repos/zamotany/react-slate/pulls/89","id":194869631,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0ODY5NjMx","html_url":"https://github.com/zamotany/react-slate/pull/89","diff_url":"https://github.com/zamotany/react-slate/pull/89.diff","patch_url":"https://github.com/zamotany/react-slate/pull/89.patch","issue_url":"https://api.github.com/repos/zamotany/react-slate/issues/89","number":89,"state":"open","locked":false,"title":"feat: ScrollView","user":{"login":"zamotany","id":17573635,"node_id":"MDQ6VXNlcjE3NTczNjM1","avatar_url":"https://avatars2.githubusercontent.com/u/17573635?v=4","gravatar_id":"","url":"https://api.github.com/users/zamotany","html_url":"https://github.com/zamotany","followers_url":"https://api.github.com/users/zamotany/followers","following_url":"https://api.github.com/users/zamotany/following{/other_user}","gists_url":"https://api.github.com/users/zamotany/gists{/gist_id}","starred_url":"https://api.github.com/users/zamotany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamotany/subscriptions","organizations_url":"https://api.github.com/users/zamotany/orgs","repos_url":"https://api.github.com/users/zamotany/repos","events_url":"https://api.github.com/users/zamotany/events{/privacy}","received_events_url":"https://api.github.com/users/zamotany/received_events","type":"User","site_admin":false},"body":"## Summary/notes\r\n\r\nAdd `ScrollView` component\r\n\r\n## Checklist\r\n\r\n* [x] I have added myself to a contributors list.\r\n* [x] I have updated docs (or there's no need to).\r\n","created_at":"2018-06-14T12:00:32Z","updated_at":"2018-06-19T12:55:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77b7845a77ef813c62daf5f4ab76814cf12958d8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"satya164","id":1174278,"node_id":"MDQ6VXNlcjExNzQyNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1174278?v=4","gravatar_id":"","url":"https://api.github.com/users/satya164","html_url":"https://github.com/satya164","followers_url":"https://api.github.com/users/satya164/followers","following_url":"https://api.github.com/users/satya164/following{/other_user}","gists_url":"https://api.github.com/users/satya164/gists{/gist_id}","starred_url":"https://api.github.com/users/satya164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satya164/subscriptions","organizations_url":"https://api.github.com/users/satya164/orgs","repos_url":"https://api.github.com/users/satya164/repos","events_url":"https://api.github.com/users/satya164/events{/privacy}","received_events_url":"https://api.github.com/users/satya164/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zamotany/react-slate/pulls/89/commits","review_comments_url":"https://api.github.com/repos/zamotany/react-slate/pulls/89/comments","review_comment_url":"https://api.github.com/repos/zamotany/react-slate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zamotany/react-slate/issues/89/comments","statuses_url":"https://api.github.com/repos/zamotany/react-slate/statuses/8fe95381e971178d7f924fd6225354ec842aa9e5","head":{"label":"zamotany:feat/ScrollableView","ref":"feat/ScrollableView","sha":"8fe95381e971178d7f924fd6225354ec842aa9e5","user":{"login":"zamotany","id":17573635,"node_id":"MDQ6VXNlcjE3NTczNjM1","avatar_url":"https://avatars2.githubusercontent.com/u/17573635?v=4","gravatar_id":"","url":"https://api.github.com/users/zamotany","html_url":"https://github.com/zamotany","followers_url":"https://api.github.com/users/zamotany/followers","following_url":"https://api.github.com/users/zamotany/following{/other_user}","gists_url":"https://api.github.com/users/zamotany/gists{/gist_id}","starred_url":"https://api.github.com/users/zamotany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamotany/subscriptions","organizations_url":"https://api.github.com/users/zamotany/orgs","repos_url":"https://api.github.com/users/zamotany/repos","events_url":"https://api.github.com/users/zamotany/events{/privacy}","received_events_url":"https://api.github.com/users/zamotany/received_events","type":"User","site_admin":false},"repo":{"id":106585305,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY1ODUzMDU=","name":"react-slate","full_name":"zamotany/react-slate","owner":{"login":"zamotany","id":17573635,"node_id":"MDQ6VXNlcjE3NTczNjM1","avatar_url":"https://avatars2.githubusercontent.com/u/17573635?v=4","gravatar_id":"","url":"https://api.github.com/users/zamotany","html_url":"https://github.com/zamotany","followers_url":"https://api.github.com/users/zamotany/followers","following_url":"https://api.github.com/users/zamotany/following{/other_user}","gists_url":"https://api.github.com/users/zamotany/gists{/gist_id}","starred_url":"https://api.github.com/users/zamotany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamotany/subscriptions","organizations_url":"https://api.github.com/users/zamotany/orgs","repos_url":"https://api.github.com/users/zamotany/repos","events_url":"https://api.github.com/users/zamotany/events{/privacy}","received_events_url":"https://api.github.com/users/zamotany/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zamotany/react-slate","description":"Render React apps to terminal","fork":false,"url":"https://api.github.com/repos/zamotany/react-slate","forks_url":"https://api.github.com/repos/zamotany/react-slate/forks","keys_url":"https://api.github.com/repos/zamotany/react-slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zamotany/react-slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zamotany/react-slate/teams","hooks_url":"https://api.github.com/repos/zamotany/react-slate/hooks","issue_events_url":"https://api.github.com/repos/zamotany/react-slate/issues/events{/number}","events_url":"https://api.github.com/repos/zamotany/react-slate/events","assignees_url":"https://api.github.com/repos/zamotany/react-slate/assignees{/user}","branches_url":"https://api.github.com/repos/zamotany/react-slate/branches{/branch}","tags_url":"https://api.github.com/repos/zamotany/react-slate/tags","blobs_url":"https://api.github.com/repos/zamotany/react-slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zamotany/react-slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zamotany/react-slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/zamotany/react-slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zamotany/react-slate/statuses/{sha}","languages_url":"https://api.github.com/repos/zamotany/react-slate/languages","stargazers_url":"https://api.github.com/repos/zamotany/react-slate/stargazers","contributors_url":"https://api.github.com/repos/zamotany/react-slate/contributors","subscribers_url":"https://api.github.com/repos/zamotany/react-slate/subscribers","subscription_url":"https://api.github.com/repos/zamotany/react-slate/subscription","commits_url":"https://api.github.com/repos/zamotany/react-slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/zamotany/react-slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/zamotany/react-slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/zamotany/react-slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/zamotany/react-slate/contents/{+path}","compare_url":"https://api.github.com/repos/zamotany/react-slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zamotany/react-slate/merges","archive_url":"https://api.github.com/repos/zamotany/react-slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zamotany/react-slate/downloads","issues_url":"https://api.github.com/repos/zamotany/react-slate/issues{/number}","pulls_url":"https://api.github.com/repos/zamotany/react-slate/pulls{/number}","milestones_url":"https://api.github.com/repos/zamotany/react-slate/milestones{/number}","notifications_url":"https://api.github.com/repos/zamotany/react-slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zamotany/react-slate/labels{/name}","releases_url":"https://api.github.com/repos/zamotany/react-slate/releases{/id}","deployments_url":"https://api.github.com/repos/zamotany/react-slate/deployments","created_at":"2017-10-11T17:16:01Z","updated_at":"2018-06-11T16:17:44Z","pushed_at":"2018-06-19T12:07:55Z","git_url":"git://github.com/zamotany/react-slate.git","ssh_url":"git@github.com:zamotany/react-slate.git","clone_url":"https://github.com/zamotany/react-slate.git","svn_url":"https://github.com/zamotany/react-slate","homepage":"http://react-slate.surge.sh/","size":1038,"stargazers_count":311,"watchers_count":311,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":9,"watchers":311,"default_branch":"master"}},"base":{"label":"zamotany:master","ref":"master","sha":"d69332ec5bdfbfc6edbca184e4bdfd8fe81ead38","user":{"login":"zamotany","id":17573635,"node_id":"MDQ6VXNlcjE3NTczNjM1","avatar_url":"https://avatars2.githubusercontent.com/u/17573635?v=4","gravatar_id":"","url":"https://api.github.com/users/zamotany","html_url":"https://github.com/zamotany","followers_url":"https://api.github.com/users/zamotany/followers","following_url":"https://api.github.com/users/zamotany/following{/other_user}","gists_url":"https://api.github.com/users/zamotany/gists{/gist_id}","starred_url":"https://api.github.com/users/zamotany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamotany/subscriptions","organizations_url":"https://api.github.com/users/zamotany/orgs","repos_url":"https://api.github.com/users/zamotany/repos","events_url":"https://api.github.com/users/zamotany/events{/privacy}","received_events_url":"https://api.github.com/users/zamotany/received_events","type":"User","site_admin":false},"repo":{"id":106585305,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY1ODUzMDU=","name":"react-slate","full_name":"zamotany/react-slate","owner":{"login":"zamotany","id":17573635,"node_id":"MDQ6VXNlcjE3NTczNjM1","avatar_url":"https://avatars2.githubusercontent.com/u/17573635?v=4","gravatar_id":"","url":"https://api.github.com/users/zamotany","html_url":"https://github.com/zamotany","followers_url":"https://api.github.com/users/zamotany/followers","following_url":"https://api.github.com/users/zamotany/following{/other_user}","gists_url":"https://api.github.com/users/zamotany/gists{/gist_id}","starred_url":"https://api.github.com/users/zamotany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamotany/subscriptions","organizations_url":"https://api.github.com/users/zamotany/orgs","repos_url":"https://api.github.com/users/zamotany/repos","events_url":"https://api.github.com/users/zamotany/events{/privacy}","received_events_url":"https://api.github.com/users/zamotany/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zamotany/react-slate","description":"Render React apps to terminal","fork":false,"url":"https://api.github.com/repos/zamotany/react-slate","forks_url":"https://api.github.com/repos/zamotany/react-slate/forks","keys_url":"https://api.github.com/repos/zamotany/react-slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zamotany/react-slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zamotany/react-slate/teams","hooks_url":"https://api.github.com/repos/zamotany/react-slate/hooks","issue_events_url":"https://api.github.com/repos/zamotany/react-slate/issues/events{/number}","events_url":"https://api.github.com/repos/zamotany/react-slate/events","assignees_url":"https://api.github.com/repos/zamotany/react-slate/assignees{/user}","branches_url":"https://api.github.com/repos/zamotany/react-slate/branches{/branch}","tags_url":"https://api.github.com/repos/zamotany/react-slate/tags","blobs_url":"https://api.github.com/repos/zamotany/react-slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zamotany/react-slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zamotany/react-slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/zamotany/react-slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zamotany/react-slate/statuses/{sha}","languages_url":"https://api.github.com/repos/zamotany/react-slate/languages","stargazers_url":"https://api.github.com/repos/zamotany/react-slate/stargazers","contributors_url":"https://api.github.com/repos/zamotany/react-slate/contributors","subscribers_url":"https://api.github.com/repos/zamotany/react-slate/subscribers","subscription_url":"https://api.github.com/repos/zamotany/react-slate/subscription","commits_url":"https://api.github.com/repos/zamotany/react-slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/zamotany/react-slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/zamotany/react-slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/zamotany/react-slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/zamotany/react-slate/contents/{+path}","compare_url":"https://api.github.com/repos/zamotany/react-slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zamotany/react-slate/merges","archive_url":"https://api.github.com/repos/zamotany/react-slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zamotany/react-slate/downloads","issues_url":"https://api.github.com/repos/zamotany/react-slate/issues{/number}","pulls_url":"https://api.github.com/repos/zamotany/react-slate/pulls{/number}","milestones_url":"https://api.github.com/repos/zamotany/react-slate/milestones{/number}","notifications_url":"https://api.github.com/repos/zamotany/react-slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zamotany/react-slate/labels{/name}","releases_url":"https://api.github.com/repos/zamotany/react-slate/releases{/id}","deployments_url":"https://api.github.com/repos/zamotany/react-slate/deployments","created_at":"2017-10-11T17:16:01Z","updated_at":"2018-06-11T16:17:44Z","pushed_at":"2018-06-19T12:07:55Z","git_url":"git://github.com/zamotany/react-slate.git","ssh_url":"git@github.com:zamotany/react-slate.git","clone_url":"https://github.com/zamotany/react-slate.git","svn_url":"https://github.com/zamotany/react-slate","homepage":"http://react-slate.surge.sh/","size":1038,"stargazers_count":311,"watchers_count":311,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":9,"watchers":311,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zamotany/react-slate/pulls/89"},"html":{"href":"https://github.com/zamotany/react-slate/pull/89"},"issue":{"href":"https://api.github.com/repos/zamotany/react-slate/issues/89"},"comments":{"href":"https://api.github.com/repos/zamotany/react-slate/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/zamotany/react-slate/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/zamotany/react-slate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zamotany/react-slate/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/zamotany/react-slate/statuses/8fe95381e971178d7f924fd6225354ec842aa9e5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"satya164"}}