Skip to content

v2.0.0-beta.15

Pre-release
Pre-release

Choose a tag to compare

@skjnldsv skjnldsv released this 06 Oct 08:13
· 57 commits to main since this release
20aa54b

2.0.0-beta.15

Added

  • onInit() on a handler, called the first time the viewer needs its element,
    so the view and what it imports stay out of the registration script that
    runs on every page. The viewer waits for the element to be defined before
    rendering it. Tag names may now hold an underscore, for app ids like
    files_pdfviewer (#76)
  • A "Start slideshow" Files action on a selection of two files or more that
    can all be viewed (#103, nextcloud/viewer#1524)
  • Full screen and the sidebar are buttons in the header instead of entries
    in the menu (#99)
  • The files next to the one shown are preloaded: the preview a picture will
    ask for, and a video or sound's metadata. preload is given the space the
    viewer shows files in as a second argument (#100)
  • Zooming into a picture goes to its full resolution: the first zoom fetches
    the largest preview the server renders and swaps it in once decoded, and
    the zoom goes until one of its pixels is four on screen, never less than
    five times as before (#88, nextcloud/viewer#2391)
  • canCompare on a handler, and canCompare(node) for a caller deciding
    whether to offer comparing two versions. The image handler sets it (#94)
  • The elected copy of the library says so in the debug log (#83)

Fixed

  • A slideshow skipped videos that were slow to start: stepping to a file now
    waits for it to load, and the slideshow holds while it does
    (#101, nextcloud/viewer#39)
  • The image editor's text tool could not be typed in, and the arrow keys
    paged away from an unsaved edit: the modal kept the focus from the editor
    (#112, nextcloud/viewer#3335)
  • A file the caller looked up on its own was listed twice: open() finds it
    in the list by its source (#102)
  • A neighbouring file updated elsewhere kept its old name and source (#100)
  • Saving from the image editor could damage a file: it was offered on every
    image and wrote PNG over GIF, SVG, BMP or AVIF. It is back to JPEG, PNG and
    WebP, on a file that may be downloaded, not while comparing, not on a phone
    and not where non-accessible features are turned off (#89)
  • Images page through videos and sounds again, as before, and a video shows
    the picture of the same name beside it as its poster (#86)
  • Playing a video again no longer downloads it again, and its poster comes
    back once it has played (#87, nextcloud/viewer#2585)
  • A video or sound the browser cannot play says so instead of spinning
    forever, and Firefox without an audio device no longer fails every sound
    (#77, nextcloud/viewer#2930, nextcloud/viewer#542)
  • Opening the current file after an older version of it showed the old one
    (#85, nextcloud/viewer#3052)
  • Pictures in subfolders of a public share got no preview (#90)
  • Small videos were stretched to fill the viewer, and the speed label went
    back to an unlocalised value after a change of speed (#91)
  • More files are asked for whenever the last one is shown, not only stepping
    forward onto it, and deleting the open file keeps the Files URL in step
    (#92)
  • The Files sidebar, when already open as the viewer opens or restored from
    the URL, gets room made for it and follows the file shown.
    viewer:sidebar:open carries the whole node again (#93)
  • With the Files app on another copy of Vue than the elected viewer, the
    viewer offered no previous, no next and no slideshow (#93)