thegetty / quire

A multi-package repository for the Quire multiformat publishing framework
https://quire.getty.edu/
BSD 3-Clause "New" or "Revised" License
89 stars 10 forks source link

DEV-16534: WebC Figure image refactor #885

Closed anderspollack closed 8 months ago

anderspollack commented 8 months ago

This adds:

Note: Media embed links in video/audio figures are currently rendering in web output; these links should only show in print output. Image Sequences still need to be addressed as well -- see https://jira.getty.edu/browse/DEV-16542

@mphstudios I was originally planning on doing these figure image component webc refactors in isolation, but refactoring the _plugins/shortcodes/figure.js to render quire-figure.webc ended up being much simpler -- we can still use the JS components for video, audio, and table figures via @html="...". Interestingly enough, none of these actually need the quire-data JSON since we can just use our getFigure(id) filter -- I anticipate that will still be necessary / useful for refactoring the lightbox/modal.