1. 12 Feb, 2024 4 commits
  2. 09 Feb, 2024 1 commit
  3. 08 Feb, 2024 5 commits
    • Robert Knight's avatar
      Simplify `parseRange` and improve `pageRangeOverlap` API · 1d898d40
      Robert Knight authored
      Return an enum rather than `bool | null` to make it clearer what the different
      resuls mean.
      1d898d40
    • Robert Knight's avatar
      Support testing whether user is outside page range for assignment · c81a7191
      Robert Knight authored
      Extend the matching between focus filters and document segments to support
      matching page range focus filters against VitalSource chapter page ranges.
      
      In the case of VitalSource PDF books, each page is a separate segment, so this
      matching is simple. For EPUB-based books a segment can span a range of pages,
      and the `<mosaic-book>` element doesn't provide an API rather returns the page
      range directly as far as I can see. Instead we can use
      `MosaicBookElement.getPageBreaks` to get a list of the CFIs and corresponding
      labels of pages, which can then be matched against the current segment's CFI.
      
       - Add `SegmentInfo.pages` field which contains a page range for a
         segment
      
       - Support matching `SegmentInfo.pages` against focus filters in
         `segmentMatchesFocusFilters`.
      
       - Display data from `SegmentInfo.pages` in "Version" tab in sidebar
      
       - Add `getPageBreaks` API to VitalSource interfaces and use the data
         from this API to populate the `SegmentInfo.pages` field in the VS
         integration.
      
       - Extend the fake VitalSource books in the dev server to return fake page break
         information.
      c81a7191
    • Robert Knight's avatar
    • Robert Knight's avatar
      Add `pageRangesOverlap` utility · b58ceba9
      Robert Knight authored
      This will be used for testing whether an EPUB chapter's page range ovelaps a
      page range focus filter.
      b58ceba9
    • Alejandro Celaya's avatar
      00531596
  4. 06 Feb, 2024 4 commits
  5. 05 Feb, 2024 12 commits
  6. 02 Feb, 2024 2 commits
  7. 01 Feb, 2024 5 commits
  8. 31 Jan, 2024 4 commits
  9. 30 Jan, 2024 3 commits