1. 14 Sep, 2018 3 commits
    • Robert Knight's avatar
      Add missing "origin" field to test fixtures · a957a1db
      Robert Knight authored
      Without this field all the test cases still pass, but for the wrong
      reason, since the origin field is checked before other event properties.
      a957a1db
    • Robert Knight's avatar
    • Robert Knight's avatar
      Add client for making JSON-RPC calls over postMessage · b6f3ba5b
      Robert Knight authored
      We need a way for the client to request configuration from an embedding
      frame over `postMessage`.
      
      JSON-RPC is a well-known, simple and convenient format for RPC messages.
      
      There are several npm packages which claim to offer this functionality
      but at the time of writing, none appeared to be sufficiently well
      tested/supported/documented.
      
      There is an existing partial postMessage JSON-RPC server implementation in
      src/sidebar/cross-origin-rpc.js. The non-app specific parts of that will
      be moved into this module in future.
      b6f3ba5b
  2. 04 Sep, 2018 1 commit
  3. 30 Aug, 2018 1 commit
  4. 22 Aug, 2018 5 commits
  5. 21 Aug, 2018 1 commit
  6. 15 Aug, 2018 2 commits
  7. 10 Aug, 2018 11 commits
  8. 08 Aug, 2018 4 commits
  9. 02 Aug, 2018 7 commits
  10. 01 Aug, 2018 1 commit
    • Dan Siddoway's avatar
      Use a pointer cursor for highlights · 0c098fd7
      Dan Siddoway authored
      The `annotator-hl` class contains a `cursor: pointer;` rule already, but
      it only applies to mobile devices (more precisely, devices which lack a
      sufficiently accurate primary pointer, like a mouse). I simply removed
      this restriction so that the rule applies across the board.
      
      Closes: hypothesis/product-backlog#703
      0c098fd7
  11. 31 Jul, 2018 1 commit
    • Robert Knight's avatar
      Create annotation when clicking "Annotate" button label · 61199437
      Robert Knight authored
      Fix a bug where clicking on the text "Annotate", as opposed to the icon,
      of the Annotate button would result in a highlight being created.
      
      When clicking on the text, `event.target` was the "Annotate" `<span>`
      instead of the `<button>` and so the `isAnnotateCommand` test failed.
      61199437
  12. 17 Jul, 2018 2 commits
  13. 12 Jul, 2018 1 commit