gramene-search 2.15.3 → 2.15.5

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/dist/index.js CHANGED
@@ -1345,6 +1345,14 @@ const $af4441dd29af05df$var$handleIdList = (queryObject)=>{
1345
1345
  };
1346
1346
  $af4441dd29af05df$var$grameneFilters.reactGrameneFilters = (0, $gXNCa$reduxbundler.createSelector)('selectQueryObject', 'selectGrameneFilters', 'selectActiveGenomes', 'selectUrlObject', (queryObject, filters, genomes, myUrl)=>{
1347
1347
  if (filters.status === 'init') {
1348
+ // A shared-view link (?view=<hash>) is restored asynchronously by
1349
+ // bootViewFromUrl once the snapshot (and, for private views, the auth
1350
+ // token) has loaded. Do nothing here: clearing filters + running an
1351
+ // unfiltered search would race the restore and leave the restored filter
1352
+ // in the tree but never applied to the search (the stale unfiltered
1353
+ // result stays put). Staying 'init' means the first — and only — search
1354
+ // is the one the snapshot triggers, with the filter in place.
1355
+ if (queryObject.hasOwnProperty('view')) return;
1348
1356
  if (queryObject.filters) {
1349
1357
  const newFilters = JSON.parse(queryObject.filters);
1350
1358
  let actions = [
@@ -20681,8 +20689,12 @@ const $693dd8c7a5607c3a$var$ResultsCmp = (props)=>{
20681
20689
  }, [
20682
20690
  v.shouldScroll
20683
20691
  ]);
20684
- return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
20692
+ return(// data-tour-view lets a host app address one view's section of the
20693
+ // results column without relying on its position or header text —
20694
+ // e.g. to anchor a product tour, or mount extra content into a view.
20695
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
20685
20696
  ref: divRef,
20697
+ "data-tour-view": v.id,
20686
20698
  children: [
20687
20699
  v.show === 'on' && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("div", {
20688
20700
  style: {
@@ -20693,7 +20705,7 @@ const $693dd8c7a5607c3a$var$ResultsCmp = (props)=>{
20693
20705
  }),
20694
20706
  v.show === 'on' && /*#__PURE__*/ (0, ($parcel$interopDefault($gXNCa$react))).createElement($693dd8c7a5607c3a$var$inventory[v.id], p)
20695
20707
  ]
20696
- }, idx);
20708
+ }, idx));
20697
20709
  })
20698
20710
  }) : null;
20699
20711
  };