@internetarchive/collection-browser 3.1.1-alpha-webdev6778.11 → 3.2.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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "The Internet Archive Collection Browser.",
4
4
  "license": "AGPL-3.0-only",
5
5
  "author": "Internet Archive",
6
- "version": "3.1.1-alpha-webdev6778.11",
6
+ "version": "3.2.0",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
9
9
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "@internetarchive/iaux-item-metadata": "^1.0.5",
33
33
  "@internetarchive/infinite-scroller": "^1.0.1",
34
34
  "@internetarchive/modal-manager": "^2.0.1",
35
- "@internetarchive/search-service": "2.6.1-alpha-webdev6778.8",
35
+ "@internetarchive/search-service": "^2.7.0",
36
36
  "@internetarchive/shared-resize-observer": "^0.2.0",
37
37
  "@lit/localize": "^0.12.2",
38
38
  "dompurify": "^3.2.4",
@@ -611,8 +611,10 @@ export class CollectionBrowser
611
611
  private setPlaceholderType() {
612
612
  const isInitialized = this.dataSource.queryInitialized;
613
613
  const hasQuery = !!this.baseQuery?.trim();
614
+ const hasIdentifiers = !!this.identifiers?.length;
614
615
  const isCollection = !!this.withinCollection;
615
616
  const isProfile = !!this.withinProfile;
617
+ const isSearchResults = !isCollection && !isProfile;
616
618
  const noResults =
617
619
  !this.searchResultsLoading &&
618
620
  (this.dataSource.size === 0 || !this.searchService);
@@ -622,7 +624,7 @@ export class CollectionBrowser
622
624
 
623
625
  if (!isInitialized) {
624
626
  this.placeholderType = 'empty-query';
625
- } else if (!hasQuery && !isCollection && !isProfile) {
627
+ } else if (isSearchResults && !hasQuery && !hasIdentifiers) {
626
628
  this.placeholderType = 'empty-query';
627
629
  } else if (noResults) {
628
630
  // Within a collection, no query + no results means the collection simply has no viewable items.