{"action":"created","comment":{"url":"https://api.github.com/repos/getblocklab/block-lab/pulls/comments/240906106","pull_request_review_id":184042174,"id":240906106,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDkwNjEwNg==","diff_hunk":"@@ -0,0 +1,68 @@\n+import Color from 'color';\n+\n+const { __ } = wp.i18n;\n+const { BaseControl, ColorPicker, Dropdown, Tooltip } = wp.components;\n+\n+const BlockLabColorPickerControl = ( props, field, block ) => {\n+\tconst { setAttributes } = props;\n+\tconst attr = { ...props.attributes };\n+\tconst customColorPickerLabel = __( 'Custom color picker' );\n+\n+\t// Set a default color of White, if nothing is set.\n+\tattr[ field.name ] = attr[ field.name ] ? attr[ field.name ] : '#fff';\n+\n+\tconst currentColor = {\n+\t\tdisplay: 'inline-block',\n+\t\twidth: '120px',\n+\t\theight: '30px',\n+\t\tborderRadius: '5px',\n+\t}\n+\n+\treturn (\n+\t\t<BaseControl\n+\t\t\tlabel={ field.label }\n+\t\t\thelp={ field.help }\n+\t\t\tclassName=\"block-lab-color-picker\"\n+\t\t>\n+\t\t\t<span className=\"components-color-picker__alpha block-lab-color-picker__current-color\" style={ {","path":"js/blocks/controls/color-picker.js","position":27,"original_position":27,"commit_id":"7cbe1aa4fa6d333645a65ccbeb30eeb270fb403c","original_commit_id":"1ac93f2ac5e939044eff8b71dbfebcf437d2fb2c","user":{"login":"kopepasah","id":911283,"node_id":"MDQ6VXNlcjkxMTI4Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/911283?v=4","gravatar_id":"","url":"https://api.github.com/users/kopepasah","html_url":"https://github.com/kopepasah","followers_url":"https://api.github.com/users/kopepasah/followers","following_url":"https://api.github.com/users/kopepasah/following{/other_user}","gists_url":"https://api.github.com/users/kopepasah/gists{/gist_id}","starred_url":"https://api.github.com/users/kopepasah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopepasah/subscriptions","organizations_url":"https://api.github.com/users/kopepasah/orgs","repos_url":"https://api.github.com/users/kopepasah/repos","events_url":"https://api.github.com/users/kopepasah/events{/privacy}","received_events_url":"https://api.github.com/users/kopepasah/received_events","type":"User","site_admin":false},"body":"It could, but would require some adjusting non-the-less. Do you see any advantages of using the component over the current implementation?","created_at":"2018-12-12T07:35:28Z","updated_at":"2018-12-12T07:35:28Z","html_url":"https://github.com/getblocklab/block-lab/pull/201#discussion_r240906106","pull_request_url":"https://api.github.com/repos/getblocklab/block-lab/pulls/201","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/getblocklab/block-lab/pulls/comments/240906106"},"html":{"href":"https://github.com/getblocklab/block-lab/pull/201#discussion_r240906106"},"pull_request":{"href":"https://api.github.com/repos/getblocklab/block-lab/pulls/201"}},"in_reply_to_id":240818842},"pull_request":{"url":"https://api.github.com/repos/getblocklab/block-lab/pulls/201","id":237614790,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NjE0Nzkw","html_url":"https://github.com/getblocklab/block-lab/pull/201","diff_url":"https://github.com/getblocklab/block-lab/pull/201.diff","patch_url":"https://github.com/getblocklab/block-lab/pull/201.patch","issue_url":"https://api.github.com/repos/getblocklab/block-lab/issues/201","number":201,"state":"open","locked":false,"title":"Add Color Picker control.","user":{"login":"kopepasah","id":911283,"node_id":"MDQ6VXNlcjkxMTI4Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/911283?v=4","gravatar_id":"","url":"https://api.github.com/users/kopepasah","html_url":"https://github.com/kopepasah","followers_url":"https://api.github.com/users/kopepasah/followers","following_url":"https://api.github.com/users/kopepasah/following{/other_user}","gists_url":"https://api.github.com/users/kopepasah/gists{/gist_id}","starred_url":"https://api.github.com/users/kopepasah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopepasah/subscriptions","organizations_url":"https://api.github.com/users/kopepasah/orgs","repos_url":"https://api.github.com/users/kopepasah/repos","events_url":"https://api.github.com/users/kopepasah/events{/privacy}","received_events_url":"https://api.github.com/users/kopepasah/received_events","type":"User","site_admin":false},"body":"Adds a color picker control.","created_at":"2018-12-11T09:59:13Z","updated_at":"2018-12-12T07:35:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8835c3415b2aaa5dec49a5d8566be317acd9b2f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"RobStino","id":1578148,"node_id":"MDQ6VXNlcjE1NzgxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1578148?v=4","gravatar_id":"","url":"https://api.github.com/users/RobStino","html_url":"https://github.com/RobStino","followers_url":"https://api.github.com/users/RobStino/followers","following_url":"https://api.github.com/users/RobStino/following{/other_user}","gists_url":"https://api.github.com/users/RobStino/gists{/gist_id}","starred_url":"https://api.github.com/users/RobStino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobStino/subscriptions","organizations_url":"https://api.github.com/users/RobStino/orgs","repos_url":"https://api.github.com/users/RobStino/repos","events_url":"https://api.github.com/users/RobStino/events{/privacy}","received_events_url":"https://api.github.com/users/RobStino/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1044591568,"node_id":"MDU6TGFiZWwxMDQ0NTkxNTY4","url":"https://api.github.com/repos/getblocklab/block-lab/labels/control","name":"control","color":"c4afed","default":false}],"milestone":{"url":"https://api.github.com/repos/getblocklab/block-lab/milestones/4","html_url":"https://github.com/getblocklab/block-lab/milestone/4","labels_url":"https://api.github.com/repos/getblocklab/block-lab/milestones/4/labels","id":3888145,"node_id":"MDk6TWlsZXN0b25lMzg4ODE0NQ==","number":4,"title":"1.1.1","description":"","creator":{"login":"lukecarbis","id":1097667,"node_id":"MDQ6VXNlcjEwOTc2Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/1097667?v=4","gravatar_id":"","url":"https://api.github.com/users/lukecarbis","html_url":"https://github.com/lukecarbis","followers_url":"https://api.github.com/users/lukecarbis/followers","following_url":"https://api.github.com/users/lukecarbis/following{/other_user}","gists_url":"https://api.github.com/users/lukecarbis/gists{/gist_id}","starred_url":"https://api.github.com/users/lukecarbis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukecarbis/subscriptions","organizations_url":"https://api.github.com/users/lukecarbis/orgs","repos_url":"https://api.github.com/users/lukecarbis/repos","events_url":"https://api.github.com/users/lukecarbis/events{/privacy}","received_events_url":"https://api.github.com/users/lukecarbis/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2018-12-11T01:02:44Z","updated_at":"2018-12-12T00:58:49Z","due_on":"2018-12-13T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/getblocklab/block-lab/pulls/201/commits","review_comments_url":"https://api.github.com/repos/getblocklab/block-lab/pulls/201/comments","review_comment_url":"https://api.github.com/repos/getblocklab/block-lab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getblocklab/block-lab/issues/201/comments","statuses_url":"https://api.github.com/repos/getblocklab/block-lab/statuses/7cbe1aa4fa6d333645a65ccbeb30eeb270fb403c","head":{"label":"getblocklab:feature/color-picker","ref":"feature/color-picker","sha":"7cbe1aa4fa6d333645a65ccbeb30eeb270fb403c","user":{"login":"getblocklab","id":44951870,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTUxODcw","avatar_url":"https://avatars1.githubusercontent.com/u/44951870?v=4","gravatar_id":"","url":"https://api.github.com/users/getblocklab","html_url":"https://github.com/getblocklab","followers_url":"https://api.github.com/users/getblocklab/followers","following_url":"https://api.github.com/users/getblocklab/following{/other_user}","gists_url":"https://api.github.com/users/getblocklab/gists{/gist_id}","starred_url":"https://api.github.com/users/getblocklab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getblocklab/subscriptions","organizations_url":"https://api.github.com/users/getblocklab/orgs","repos_url":"https://api.github.com/users/getblocklab/repos","events_url":"https://api.github.com/users/getblocklab/events{/privacy}","received_events_url":"https://api.github.com/users/getblocklab/received_events","type":"Organization","site_admin":false},"repo":{"id":142808983,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4MDg5ODM=","name":"block-lab","full_name":"getblocklab/block-lab","private":false,"owner":{"login":"getblocklab","id":44951870,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTUxODcw","avatar_url":"https://avatars1.githubusercontent.com/u/44951870?v=4","gravatar_id":"","url":"https://api.github.com/users/getblocklab","html_url":"https://github.com/getblocklab","followers_url":"https://api.github.com/users/getblocklab/followers","following_url":"https://api.github.com/users/getblocklab/following{/other_user}","gists_url":"https://api.github.com/users/getblocklab/gists{/gist_id}","starred_url":"https://api.github.com/users/getblocklab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getblocklab/subscriptions","organizations_url":"https://api.github.com/users/getblocklab/orgs","repos_url":"https://api.github.com/users/getblocklab/repos","events_url":"https://api.github.com/users/getblocklab/events{/privacy}","received_events_url":"https://api.github.com/users/getblocklab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/getblocklab/block-lab","description":"A WordPress Admin interface and a simple templating system for building custom Gutenberg blocks.","fork":false,"url":"https://api.github.com/repos/getblocklab/block-lab","forks_url":"https://api.github.com/repos/getblocklab/block-lab/forks","keys_url":"https://api.github.com/repos/getblocklab/block-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getblocklab/block-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getblocklab/block-lab/teams","hooks_url":"https://api.github.com/repos/getblocklab/block-lab/hooks","issue_events_url":"https://api.github.com/repos/getblocklab/block-lab/issues/events{/number}","events_url":"https://api.github.com/repos/getblocklab/block-lab/events","assignees_url":"https://api.github.com/repos/getblocklab/block-lab/assignees{/user}","branches_url":"https://api.github.com/repos/getblocklab/block-lab/branches{/branch}","tags_url":"https://api.github.com/repos/getblocklab/block-lab/tags","blobs_url":"https://api.github.com/repos/getblocklab/block-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getblocklab/block-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getblocklab/block-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/getblocklab/block-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getblocklab/block-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/getblocklab/block-lab/languages","stargazers_url":"https://api.github.com/repos/getblocklab/block-lab/stargazers","contributors_url":"https://api.github.com/repos/getblocklab/block-lab/contributors","subscribers_url":"https://api.github.com/repos/getblocklab/block-lab/subscribers","subscription_url":"https://api.github.com/repos/getblocklab/block-lab/subscription","commits_url":"https://api.github.com/repos/getblocklab/block-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/getblocklab/block-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/getblocklab/block-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/getblocklab/block-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/getblocklab/block-lab/contents/{+path}","compare_url":"https://api.github.com/repos/getblocklab/block-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getblocklab/block-lab/merges","archive_url":"https://api.github.com/repos/getblocklab/block-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getblocklab/block-lab/downloads","issues_url":"https://api.github.com/repos/getblocklab/block-lab/issues{/number}","pulls_url":"https://api.github.com/repos/getblocklab/block-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/getblocklab/block-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/getblocklab/block-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getblocklab/block-lab/labels{/name}","releases_url":"https://api.github.com/repos/getblocklab/block-lab/releases{/id}","deployments_url":"https://api.github.com/repos/getblocklab/block-lab/deployments","created_at":"2018-07-30T01:19:14Z","updated_at":"2018-12-12T02:57:54Z","pushed_at":"2018-12-12T07:27:31Z","git_url":"git://github.com/getblocklab/block-lab.git","ssh_url":"git@github.com:getblocklab/block-lab.git","clone_url":"https://github.com/getblocklab/block-lab.git","svn_url":"https://github.com/getblocklab/block-lab","homepage":"https://getblocklab.com","size":2820,"stargazers_count":118,"watchers_count":118,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":10,"open_issues":30,"watchers":118,"default_branch":"develop"}},"base":{"label":"getblocklab:develop","ref":"develop","sha":"ba62c24616e288c85ad7accb09ef665a119add70","user":{"login":"getblocklab","id":44951870,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTUxODcw","avatar_url":"https://avatars1.githubusercontent.com/u/44951870?v=4","gravatar_id":"","url":"https://api.github.com/users/getblocklab","html_url":"https://github.com/getblocklab","followers_url":"https://api.github.com/users/getblocklab/followers","following_url":"https://api.github.com/users/getblocklab/following{/other_user}","gists_url":"https://api.github.com/users/getblocklab/gists{/gist_id}","starred_url":"https://api.github.com/users/getblocklab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getblocklab/subscriptions","organizations_url":"https://api.github.com/users/getblocklab/orgs","repos_url":"https://api.github.com/users/getblocklab/repos","events_url":"https://api.github.com/users/getblocklab/events{/privacy}","received_events_url":"https://api.github.com/users/getblocklab/received_events","type":"Organization","site_admin":false},"repo":{"id":142808983,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4MDg5ODM=","name":"block-lab","full_name":"getblocklab/block-lab","private":false,"owner":{"login":"getblocklab","id":44951870,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTUxODcw","avatar_url":"https://avatars1.githubusercontent.com/u/44951870?v=4","gravatar_id":"","url":"https://api.github.com/users/getblocklab","html_url":"https://github.com/getblocklab","followers_url":"https://api.github.com/users/getblocklab/followers","following_url":"https://api.github.com/users/getblocklab/following{/other_user}","gists_url":"https://api.github.com/users/getblocklab/gists{/gist_id}","starred_url":"https://api.github.com/users/getblocklab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getblocklab/subscriptions","organizations_url":"https://api.github.com/users/getblocklab/orgs","repos_url":"https://api.github.com/users/getblocklab/repos","events_url":"https://api.github.com/users/getblocklab/events{/privacy}","received_events_url":"https://api.github.com/users/getblocklab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/getblocklab/block-lab","description":"A WordPress Admin interface and a simple templating system for building custom Gutenberg blocks.","fork":false,"url":"https://api.github.com/repos/getblocklab/block-lab","forks_url":"https://api.github.com/repos/getblocklab/block-lab/forks","keys_url":"https://api.github.com/repos/getblocklab/block-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getblocklab/block-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getblocklab/block-lab/teams","hooks_url":"https://api.github.com/repos/getblocklab/block-lab/hooks","issue_events_url":"https://api.github.com/repos/getblocklab/block-lab/issues/events{/number}","events_url":"https://api.github.com/repos/getblocklab/block-lab/events","assignees_url":"https://api.github.com/repos/getblocklab/block-lab/assignees{/user}","branches_url":"https://api.github.com/repos/getblocklab/block-lab/branches{/branch}","tags_url":"https://api.github.com/repos/getblocklab/block-lab/tags","blobs_url":"https://api.github.com/repos/getblocklab/block-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getblocklab/block-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getblocklab/block-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/getblocklab/block-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getblocklab/block-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/getblocklab/block-lab/languages","stargazers_url":"https://api.github.com/repos/getblocklab/block-lab/stargazers","contributors_url":"https://api.github.com/repos/getblocklab/block-lab/contributors","subscribers_url":"https://api.github.com/repos/getblocklab/block-lab/subscribers","subscription_url":"https://api.github.com/repos/getblocklab/block-lab/subscription","commits_url":"https://api.github.com/repos/getblocklab/block-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/getblocklab/block-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/getblocklab/block-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/getblocklab/block-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/getblocklab/block-lab/contents/{+path}","compare_url":"https://api.github.com/repos/getblocklab/block-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getblocklab/block-lab/merges","archive_url":"https://api.github.com/repos/getblocklab/block-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getblocklab/block-lab/downloads","issues_url":"https://api.github.com/repos/getblocklab/block-lab/issues{/number}","pulls_url":"https://api.github.com/repos/getblocklab/block-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/getblocklab/block-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/getblocklab/block-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getblocklab/block-lab/labels{/name}","releases_url":"https://api.github.com/repos/getblocklab/block-lab/releases{/id}","deployments_url":"https://api.github.com/repos/getblocklab/block-lab/deployments","created_at":"2018-07-30T01:19:14Z","updated_at":"2018-12-12T02:57:54Z","pushed_at":"2018-12-12T07:27:31Z","git_url":"git://github.com/getblocklab/block-lab.git","ssh_url":"git@github.com:getblocklab/block-lab.git","clone_url":"https://github.com/getblocklab/block-lab.git","svn_url":"https://github.com/getblocklab/block-lab","homepage":"https://getblocklab.com","size":2820,"stargazers_count":118,"watchers_count":118,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":10,"open_issues":30,"watchers":118,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/getblocklab/block-lab/pulls/201"},"html":{"href":"https://github.com/getblocklab/block-lab/pull/201"},"issue":{"href":"https://api.github.com/repos/getblocklab/block-lab/issues/201"},"comments":{"href":"https://api.github.com/repos/getblocklab/block-lab/issues/201/comments"},"review_comments":{"href":"https://api.github.com/repos/getblocklab/block-lab/pulls/201/comments"},"review_comment":{"href":"https://api.github.com/repos/getblocklab/block-lab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getblocklab/block-lab/pulls/201/commits"},"statuses":{"href":"https://api.github.com/repos/getblocklab/block-lab/statuses/7cbe1aa4fa6d333645a65ccbeb30eeb270fb403c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kopepasah"}}