@internetarchive/collection-browser 4.1.0-alpha-webdev8186.1 → 4.1.0-alpha-webdev8186.2

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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(cd /c/Users/Laton/workspace/IA/iaux-collection-browser && npm test 2>&1)"
5
+ ]
6
+ }
7
+ }
@@ -14,7 +14,6 @@ import { updateSelectedFacetBucket } from './utils/facet-utils';
14
14
  import chevronIcon from './assets/img/icons/chevron';
15
15
  import { srOnlyStyle } from './styles/sr-only';
16
16
  import { sha1 } from './utils/sha1';
17
- import { log } from './utils/log';
18
17
  import '@internetarchive/elements/ia-combo-box/ia-combo-box';
19
18
  import './empty-placeholder';
20
19
  import './tiles/tile-dispatcher';
@@ -1261,7 +1260,6 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1261
1260
  * represent, such as the search query, sort option, and any filters applied.
1262
1261
  */
1263
1262
  async installDataSourceAndQueryState(dataSource, queryState) {
1264
- log('Installing data source & query state in CB:', dataSource, queryState);
1265
1263
  if (this.dataSource)
1266
1264
  this.removeController(this.dataSource);
1267
1265
  this.dataSource = dataSource;
@@ -1721,12 +1719,8 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1721
1719
  this.displayMode = restorationState.displayMode;
1722
1720
  if (!this.suppressURLSinParam && restorationState.searchType != null)
1723
1721
  this.searchType = restorationState.searchType;
1724
- this.selectedSort =
1725
- restorationState.selectedSort ??
1726
- this.defaultSortField ??
1727
- SortField.default;
1728
- this.sortDirection =
1729
- restorationState.sortDirection ?? this.defaultSortDirection ?? null;
1722
+ this.selectedSort = restorationState.selectedSort ?? SortField.default;
1723
+ this.sortDirection = restorationState.sortDirection ?? null;
1730
1724
  this.selectedTitleFilter = restorationState.selectedTitleFilter ?? null;
1731
1725
  this.selectedCreatorFilter = restorationState.selectedCreatorFilter ?? null;
1732
1726
  this.selectedFacets = restorationState.selectedFacets;