gramene-search 1.6.38 → 1.6.39

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.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 487667268
2
- 1759938527208128000
1
+ 489662848
2
+ 1759952935456037000
package/dist/index.js CHANGED
@@ -1240,6 +1240,29 @@ $af4441dd29af05df$var$grameneFilters.reactGrameneFilters = (0, $gXNCa$reduxbundl
1240
1240
  actions: actions
1241
1241
  };
1242
1242
  }
1243
+ if (queryObject.hasOwnProperty('sugg')) {
1244
+ const url = new URL(myUrl.href);
1245
+ url.search = '';
1246
+ return {
1247
+ type: 'BATCH_ACTIONS',
1248
+ actions: [
1249
+ {
1250
+ type: 'URL_UPDATED',
1251
+ payload: {
1252
+ url: url.href,
1253
+ replace: false
1254
+ }
1255
+ },
1256
+ {
1257
+ type: 'GRAMENE_SEARCH_CLEARED'
1258
+ },
1259
+ {
1260
+ type: 'GRAMENE_FILTER_ADDED',
1261
+ payload: JSON.parse(queryObject.suggestion)
1262
+ }
1263
+ ]
1264
+ };
1265
+ }
1243
1266
  if (queryObject.hasOwnProperty('suggestion')) {
1244
1267
  const url = new URL(myUrl.href);
1245
1268
  url.search = '';