@internetarchive/collection-browser 4.1.1-alpha-webdev8185.1 → 4.1.2-alpha-webdev8332.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/src/collection-browser.d.ts +18 -9
  5. package/dist/src/collection-browser.js +77 -18
  6. package/dist/src/collection-browser.js.map +1 -1
  7. package/dist/src/data-source/collection-browser-data-source.js +3 -2
  8. package/dist/src/data-source/collection-browser-data-source.js.map +1 -1
  9. package/dist/src/data-source/collection-browser-query-state.d.ts +3 -5
  10. package/dist/src/data-source/collection-browser-query-state.js.map +1 -1
  11. package/dist/src/models.d.ts +2 -27
  12. package/dist/src/models.js +0 -36
  13. package/dist/src/models.js.map +1 -1
  14. package/dist/src/restoration-state-handler.js +9 -3
  15. package/dist/src/restoration-state-handler.js.map +1 -1
  16. package/dist/src/sort-filter-bar/sort-filter-bar.d.ts +2 -2
  17. package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
  18. package/dist/src/tiles/hover/hover-pane-controller.js +2 -1
  19. package/dist/src/tiles/hover/hover-pane-controller.js.map +1 -1
  20. package/dist/src/tiles/tile-dispatcher.d.ts +6 -0
  21. package/dist/src/tiles/tile-dispatcher.js +11 -3
  22. package/dist/src/tiles/tile-dispatcher.js.map +1 -1
  23. package/dist/test/collection-browser.test.js +17 -15
  24. package/dist/test/collection-browser.test.js.map +1 -1
  25. package/dist/test/tiles/tile-dispatcher.test.js +14 -0
  26. package/dist/test/tiles/tile-dispatcher.test.js.map +1 -1
  27. package/index.ts +0 -5
  28. package/package.json +1 -1
  29. package/src/collection-browser.ts +94 -25
  30. package/src/data-source/collection-browser-data-source.ts +3 -2
  31. package/src/data-source/collection-browser-query-state.ts +3 -12
  32. package/src/models.ts +4 -53
  33. package/src/restoration-state-handler.ts +7 -3
  34. package/src/sort-filter-bar/sort-filter-bar.ts +4 -3
  35. package/src/tiles/hover/hover-pane-controller.ts +2 -1
  36. package/src/tiles/tile-dispatcher.ts +12 -3
  37. package/test/collection-browser.test.ts +17 -15
  38. package/test/tiles/tile-dispatcher.test.ts +17 -0
@@ -213,6 +213,23 @@ describe('Tile Dispatcher', () => {
213
213
  await el.updateComplete;
214
214
  expect(el.getHoverPane()).not.to.exist;
215
215
  });
216
+
217
+ it('should not show info button when hover pane is not enabled', async () => {
218
+ const el = await fixture<TileDispatcher>(html`
219
+ <tile-dispatcher
220
+ .tileDisplayMode=${'grid'}
221
+ .model=${{ mediatype: 'texts' }}
222
+ .enableHoverPane=${false}
223
+ >
224
+ </tile-dispatcher>
225
+ `);
226
+
227
+ const itemTile = el.shadowRoot?.querySelector('item-tile') as ItemTile;
228
+ expect(itemTile).to.exist;
229
+
230
+ const infoButton = itemTile.shadowRoot?.querySelector('.info-button');
231
+ expect(infoButton).to.not.exist;
232
+ });
216
233
  });
217
234
 
218
235
  describe('Accessibility', () => {