@internetarchive/collection-browser 3.0.2 → 3.0.4

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 (31) hide show
  1. package/dist/src/collection-browser.js +0 -1
  2. package/dist/src/collection-browser.js.map +1 -1
  3. package/dist/src/collection-facets/facet-row.js +1 -2
  4. package/dist/src/collection-facets/facet-row.js.map +1 -1
  5. package/dist/src/collection-facets.js +1 -3
  6. package/dist/src/collection-facets.js.map +1 -1
  7. package/dist/src/manage/manage-bar.js +1 -1
  8. package/dist/src/manage/manage-bar.js.map +1 -1
  9. package/dist/src/tiles/grid/collection-tile.js +2 -3
  10. package/dist/src/tiles/grid/collection-tile.js.map +1 -1
  11. package/dist/src/tiles/grid/item-tile.js +2 -2
  12. package/dist/src/tiles/grid/item-tile.js.map +1 -1
  13. package/dist/src/tiles/grid/search-tile.js +2 -3
  14. package/dist/src/tiles/grid/search-tile.js.map +1 -1
  15. package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +2 -3
  16. package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
  17. package/dist/src/tiles/list/tile-list.js +3 -13
  18. package/dist/src/tiles/list/tile-list.js.map +1 -1
  19. package/dist/test/tiles/list/tile-list.test.js +0 -13
  20. package/dist/test/tiles/list/tile-list.test.js.map +1 -1
  21. package/package.json +2 -2
  22. package/src/collection-browser.ts +0 -1
  23. package/src/collection-facets/facet-row.ts +1 -2
  24. package/src/collection-facets.ts +1 -3
  25. package/src/manage/manage-bar.ts +1 -1
  26. package/src/tiles/grid/collection-tile.ts +2 -3
  27. package/src/tiles/grid/item-tile.ts +2 -2
  28. package/src/tiles/grid/search-tile.ts +2 -3
  29. package/src/tiles/grid/styles/tile-grid-shared-styles.ts +2 -3
  30. package/src/tiles/list/tile-list.ts +3 -11
  31. package/test/tiles/list/tile-list.test.ts +0 -15
@@ -4,7 +4,7 @@ import { join } from 'lit/directives/join.js';
4
4
  import { map } from 'lit/directives/map.js';
5
5
  import { unsafeHTML } from 'lit/directives/unsafe-html.js';
6
6
  import { customElement, property, state } from 'lit/decorators.js';
7
- import { msg, str } from '@lit/localize';
7
+ import { msg } from '@lit/localize';
8
8
  import DOMPurify from 'dompurify';
9
9
 
10
10
  import type { SortParam } from '@internetarchive/search-service';
@@ -94,11 +94,7 @@ export class TileList extends BaseTileComponent {
94
94
  isCollection,
95
95
  );
96
96
 
97
- return html`<a
98
- id="image-link"
99
- title=${msg(str`View ${this.model?.title}`)}
100
- href=${href}
101
- >
97
+ return html`<a href=${href}>
102
98
  <image-block
103
99
  .model=${this.model}
104
100
  .baseImageUrl=${this.baseImageUrl}
@@ -131,11 +127,7 @@ export class TileList extends BaseTileComponent {
131
127
  // Data templates
132
128
  private get iconRightTemplate() {
133
129
  return html`
134
- <a
135
- id="icon-right"
136
- href=${this.mediatypeURL}
137
- title=${msg(str`See more: ${this.model?.mediatype}`)}
138
- >
130
+ <a id="icon-right" href=${this.mediatypeURL}>
139
131
  <tile-mediatype-icon .model=${this.model}> </tile-mediatype-icon>
140
132
  </a>
141
133
  `;
@@ -49,20 +49,6 @@ describe('List Tile', () => {
49
49
  expect(title?.getAttribute('href')).to.equal('/foo/bar');
50
50
  });
51
51
 
52
- it('should add title to image link if provided', async () => {
53
- const el = await fixture<TileList>(html`
54
- <tile-list
55
- .baseNavigationUrl=${''}
56
- .model=${{ title: 'foo', href: '/foo/bar' }}
57
- ></tile-list>
58
- `);
59
-
60
- const imageLink = el.shadowRoot?.querySelector('#image-link');
61
-
62
- expect(imageLink).to.exist;
63
- expect(imageLink?.getAttribute('title')).to.equal('View foo');
64
- });
65
-
66
52
  it('should render with creator element but not dates', async () => {
67
53
  const el = await fixture<TileList>(html`
68
54
  <tile-list .model=${{ creators: ['someone'] }}></tile-list>
@@ -338,7 +324,6 @@ describe('List Tile', () => {
338
324
  expect(mediatypeLink?.getAttribute('href')).to.equal(
339
325
  `https://archive.org/details/texts`,
340
326
  );
341
- expect(mediatypeLink?.getAttribute('title')).to.equal('See more: texts');
342
327
  });
343
328
 
344
329
  it('should render mediatype icon as link even with empty baseNavigationUrl', async () => {