{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/18","id":167407094,"html_url":"https://github.com/digirati-co-uk/canvas-panel/pull/18","diff_url":"https://github.com/digirati-co-uk/canvas-panel/pull/18.diff","patch_url":"https://github.com/digirati-co-uk/canvas-panel/pull/18.patch","issue_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/18","number":18,"state":"closed","locked":false,"title":"Added ability to mark annotations as selected","user":{"login":"stephenwf","id":8266711,"avatar_url":"https://avatars1.githubusercontent.com/u/8266711?v=4","gravatar_id":"","url":"https://api.github.com/users/stephenwf","html_url":"https://github.com/stephenwf","followers_url":"https://api.github.com/users/stephenwf/followers","following_url":"https://api.github.com/users/stephenwf/following{/other_user}","gists_url":"https://api.github.com/users/stephenwf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenwf/subscriptions","organizations_url":"https://api.github.com/users/stephenwf/orgs","repos_url":"https://api.github.com/users/stephenwf/repos","events_url":"https://api.github.com/users/stephenwf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenwf/received_events","type":"User","site_admin":false},"body":"Added the ability to add modifiers to annotations that you can use to mark annotations as in a different state. The interface is:\r\n\r\n```\r\nfunction bemModifiers(annotation: Manifesto.Annotation, props) : { [string]: sting }\r\n```\r\n\r\nWhen you pass this `bemModifiers` prop to an annotation component (or HOC) the function should return modifiers as per [BEM-js](https://github.com/digirati-co-uk/bem-js).\r\n\r\nIn short:\r\n```\r\n{\r\n  'something': true,\r\n  'something-else': somebool === true,\r\n  'something-false': false,\r\n}\r\n```\r\n\r\nwhen thats passed to a component with the block name `annotation`, the following css classes will be applied:\r\n```\r\n<div class=\"annotation annotation--something annotation--something-else\" />\r\n```\r\n\r\nWhen the state changes, your BEM modifiers will be called again. Currently this is not memorised, but it should be a quick, inexpensive (and pure) function to call.\r\n\r\nThe use case currently is marking annotations in a \"selected\" state. But this could also be used to group annotations, or highlight multiple annotations. It could also change css properties based on the content of the annotation itself (motivation for example).","created_at":"2018-02-06T12:59:00Z","updated_at":"2018-02-06T13:04:35Z","closed_at":"2018-02-06T13:04:35Z","merged_at":"2018-02-06T13:04:35Z","merge_commit_sha":"80fb273f8a6bf92dffc9b82aaa3dd8f92b6dacb6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/18/commits","review_comments_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/18/comments","review_comment_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/18/comments","statuses_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/statuses/47410244f8393aa7d63e2270364c3324d3fbfc94","head":{"label":"digirati-co-uk:feature/selected-annotations","ref":"feature/selected-annotations","sha":"47410244f8393aa7d63e2270364c3324d3fbfc94","user":{"login":"digirati-co-uk","id":3778637,"avatar_url":"https://avatars3.githubusercontent.com/u/3778637?v=4","gravatar_id":"","url":"https://api.github.com/users/digirati-co-uk","html_url":"https://github.com/digirati-co-uk","followers_url":"https://api.github.com/users/digirati-co-uk/followers","following_url":"https://api.github.com/users/digirati-co-uk/following{/other_user}","gists_url":"https://api.github.com/users/digirati-co-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/digirati-co-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digirati-co-uk/subscriptions","organizations_url":"https://api.github.com/users/digirati-co-uk/orgs","repos_url":"https://api.github.com/users/digirati-co-uk/repos","events_url":"https://api.github.com/users/digirati-co-uk/events{/privacy}","received_events_url":"https://api.github.com/users/digirati-co-uk/received_events","type":"Organization","site_admin":false},"repo":{"id":117566233,"name":"canvas-panel","full_name":"digirati-co-uk/canvas-panel","owner":{"login":"digirati-co-uk","id":3778637,"avatar_url":"https://avatars3.githubusercontent.com/u/3778637?v=4","gravatar_id":"","url":"https://api.github.com/users/digirati-co-uk","html_url":"https://github.com/digirati-co-uk","followers_url":"https://api.github.com/users/digirati-co-uk/followers","following_url":"https://api.github.com/users/digirati-co-uk/following{/other_user}","gists_url":"https://api.github.com/users/digirati-co-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/digirati-co-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digirati-co-uk/subscriptions","organizations_url":"https://api.github.com/users/digirati-co-uk/orgs","repos_url":"https://api.github.com/users/digirati-co-uk/repos","events_url":"https://api.github.com/users/digirati-co-uk/events{/privacy}","received_events_url":"https://api.github.com/users/digirati-co-uk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digirati-co-uk/canvas-panel","description":"Prototype covering the specification of Canvas Panel, and supporting components for composing bespoke IIIF viewers and lightweight experiences, conforming to the IIIF Presentation 3 specification.","fork":false,"url":"https://api.github.com/repos/digirati-co-uk/canvas-panel","forks_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/forks","keys_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/teams","hooks_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/hooks","issue_events_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/events{/number}","events_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/events","assignees_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/assignees{/user}","branches_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/branches{/branch}","tags_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/tags","blobs_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/refs{/sha}","trees_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/statuses/{sha}","languages_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/languages","stargazers_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/stargazers","contributors_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/contributors","subscribers_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/subscribers","subscription_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/subscription","commits_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/commits{/sha}","git_commits_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/commits{/sha}","comments_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/comments{/number}","issue_comment_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/comments{/number}","contents_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/contents/{+path}","compare_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/merges","archive_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/downloads","issues_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues{/number}","pulls_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls{/number}","milestones_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/milestones{/number}","notifications_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/labels{/name}","releases_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/releases{/id}","deployments_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/deployments","created_at":"2018-01-15T16:03:56Z","updated_at":"2018-01-27T14:45:51Z","pushed_at":"2018-02-06T13:04:35Z","git_url":"git://github.com/digirati-co-uk/canvas-panel.git","ssh_url":"git@github.com:digirati-co-uk/canvas-panel.git","clone_url":"https://github.com/digirati-co-uk/canvas-panel.git","svn_url":"https://github.com/digirati-co-uk/canvas-panel","homepage":"https://canvas-panel.netlify.com/","size":552,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"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"},"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"digirati-co-uk:master","ref":"master","sha":"21e0b93b83448cc01a46db9f3012ed8fb8c1d988","user":{"login":"digirati-co-uk","id":3778637,"avatar_url":"https://avatars3.githubusercontent.com/u/3778637?v=4","gravatar_id":"","url":"https://api.github.com/users/digirati-co-uk","html_url":"https://github.com/digirati-co-uk","followers_url":"https://api.github.com/users/digirati-co-uk/followers","following_url":"https://api.github.com/users/digirati-co-uk/following{/other_user}","gists_url":"https://api.github.com/users/digirati-co-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/digirati-co-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digirati-co-uk/subscriptions","organizations_url":"https://api.github.com/users/digirati-co-uk/orgs","repos_url":"https://api.github.com/users/digirati-co-uk/repos","events_url":"https://api.github.com/users/digirati-co-uk/events{/privacy}","received_events_url":"https://api.github.com/users/digirati-co-uk/received_events","type":"Organization","site_admin":false},"repo":{"id":117566233,"name":"canvas-panel","full_name":"digirati-co-uk/canvas-panel","owner":{"login":"digirati-co-uk","id":3778637,"avatar_url":"https://avatars3.githubusercontent.com/u/3778637?v=4","gravatar_id":"","url":"https://api.github.com/users/digirati-co-uk","html_url":"https://github.com/digirati-co-uk","followers_url":"https://api.github.com/users/digirati-co-uk/followers","following_url":"https://api.github.com/users/digirati-co-uk/following{/other_user}","gists_url":"https://api.github.com/users/digirati-co-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/digirati-co-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digirati-co-uk/subscriptions","organizations_url":"https://api.github.com/users/digirati-co-uk/orgs","repos_url":"https://api.github.com/users/digirati-co-uk/repos","events_url":"https://api.github.com/users/digirati-co-uk/events{/privacy}","received_events_url":"https://api.github.com/users/digirati-co-uk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digirati-co-uk/canvas-panel","description":"Prototype covering the specification of Canvas Panel, and supporting components for composing bespoke IIIF viewers and lightweight experiences, conforming to the IIIF Presentation 3 specification.","fork":false,"url":"https://api.github.com/repos/digirati-co-uk/canvas-panel","forks_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/forks","keys_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/teams","hooks_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/hooks","issue_events_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/events{/number}","events_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/events","assignees_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/assignees{/user}","branches_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/branches{/branch}","tags_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/tags","blobs_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/refs{/sha}","trees_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/statuses/{sha}","languages_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/languages","stargazers_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/stargazers","contributors_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/contributors","subscribers_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/subscribers","subscription_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/subscription","commits_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/commits{/sha}","git_commits_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/git/commits{/sha}","comments_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/comments{/number}","issue_comment_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/comments{/number}","contents_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/contents/{+path}","compare_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/merges","archive_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/downloads","issues_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues{/number}","pulls_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls{/number}","milestones_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/milestones{/number}","notifications_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/labels{/name}","releases_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/releases{/id}","deployments_url":"https://api.github.com/repos/digirati-co-uk/canvas-panel/deployments","created_at":"2018-01-15T16:03:56Z","updated_at":"2018-01-27T14:45:51Z","pushed_at":"2018-02-06T13:04:35Z","git_url":"git://github.com/digirati-co-uk/canvas-panel.git","ssh_url":"git@github.com:digirati-co-uk/canvas-panel.git","clone_url":"https://github.com/digirati-co-uk/canvas-panel.git","svn_url":"https://github.com/digirati-co-uk/canvas-panel","homepage":"https://canvas-panel.netlify.com/","size":552,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"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"},"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/18"},"html":{"href":"https://github.com/digirati-co-uk/canvas-panel/pull/18"},"issue":{"href":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/18"},"comments":{"href":"https://api.github.com/repos/digirati-co-uk/canvas-panel/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digirati-co-uk/canvas-panel/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/digirati-co-uk/canvas-panel/statuses/47410244f8393aa7d63e2270364c3324d3fbfc94"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"stephenwf","id":8266711,"avatar_url":"https://avatars1.githubusercontent.com/u/8266711?v=4","gravatar_id":"","url":"https://api.github.com/users/stephenwf","html_url":"https://github.com/stephenwf","followers_url":"https://api.github.com/users/stephenwf/followers","following_url":"https://api.github.com/users/stephenwf/following{/other_user}","gists_url":"https://api.github.com/users/stephenwf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenwf/subscriptions","organizations_url":"https://api.github.com/users/stephenwf/orgs","repos_url":"https://api.github.com/users/stephenwf/repos","events_url":"https://api.github.com/users/stephenwf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenwf/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":91,"deletions":27,"changed_files":9}}
{"actor":{"display_login":"stephenwf"}}