Closed mathewjordan closed 1 year ago
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview
Name | Link |
---|---|
Latest commit | 308a7c99741a7edbdfff9bb4cada89bdfef1fedf |
Latest deploy log | https://app.netlify.com/sites/thumbnail-panel/deploys/6475ee2bbc480700084fa75d |
Deploy Preview | https://deploy-preview-37--thumbnail-panel.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
What does this do?
Vanilla JS
This further refines handling of Next and Previous resources internally and exposes their
id
values to consuming applications viadata-xxx
attributes on the[thumbnail-panel]
selector and ascurrent
,next
, andprevious
properties on aresourceIds
object.React
This refactors where in the app the
IIIFContentProvider
lives. Previously the Provider was a child ofThumbnailPanel
, and config props passed intoThumbnailPanel
get passed into the Provider. This PR's suggested implementation would wrap a consumer's app (or whatever part of the app benefits from knowing aboutThumbnailPanel
info) inIIIFContentProvider
, for more flexible implementations (say Nav buttons for an uncontrolled implementation).Example: