@internetarchive/collection-browser 1.5.3-alpha.1 → 1.7.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.
@@ -1,6 +1,6 @@
1
1
  import { LitElement, PropertyValues, TemplateResult } from 'lit';
2
2
  import type { InfiniteScrollerCellProviderInterface } from '@internetarchive/infinite-scroller';
3
- import { SearchServiceInterface, SearchType, SortDirection, SortParam } from '@internetarchive/search-service';
3
+ import { CollectionExtraInfo, SearchServiceInterface, SearchType, SortDirection, SortParam } from '@internetarchive/search-service';
4
4
  import type { SharedResizeObserverInterface, SharedResizeObserverResizeHandlerInterface } from '@internetarchive/shared-resize-observer';
5
5
  import '@internetarchive/infinite-scroller';
6
6
  import type { CollectionNameCacheInterface } from '@internetarchive/collection-name-cache';
@@ -37,6 +37,7 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
37
37
  selectedFacets?: SelectedFacets;
38
38
  showHistogramDatePicker: boolean;
39
39
  collectionPagePath: string;
40
+ collectionInfo?: CollectionExtraInfo;
40
41
  /** describes where this component is being used */
41
42
  searchContext: string;
42
43
  collectionNameCache?: CollectionNameCacheInterface;
@@ -1360,6 +1360,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1360
1360
  }
1361
1361
  this.totalResults = success.response.totalResults;
1362
1362
  if (this.withinCollection) {
1363
+ this.collectionInfo = success.response.collectionExtraInfo;
1363
1364
  // For collections, we want the UI to respect the default sort option
1364
1365
  // which can be specified in metadata, or otherwise assumed to be week:desc
1365
1366
  this.applyDefaultCollectionSort(success.response.collectionExtraInfo);
@@ -2084,6 +2085,9 @@ __decorate([
2084
2085
  __decorate([
2085
2086
  property({ type: String })
2086
2087
  ], CollectionBrowser.prototype, "collectionPagePath", void 0);
2088
+ __decorate([
2089
+ property({ type: Object })
2090
+ ], CollectionBrowser.prototype, "collectionInfo", void 0);
2087
2091
  __decorate([
2088
2092
  property({ type: String, reflect: true })
2089
2093
  ], CollectionBrowser.prototype, "searchContext", void 0);