gramene-search 1.2.20 → 1.2.21

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,2 +1,2 @@
1
- 12742866
2
- 1648565139043351000
1
+ 12779281
2
+ 1648566057706769000
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1032,6 +1032,7 @@ var $b8aee296158e1013$var$grameneFilters = {
1032
1032
  },
1033
1033
  selectGrameneFiltersQueryString: function selectGrameneFiltersQueryString(state) {
1034
1034
  var hasSpaces = new RegExp(/^[^\[\(].*\s/);
1035
+ var isQuery = new RegExp(/\([a-zA-Z0-9_]+:[a-zA-Z0-9_]+\s/);
1035
1036
  function getQuery(node) {
1036
1037
  var negate = node.negate ? 'NOT ' : '';
1037
1038
  if (node.hasOwnProperty('children')) // do some recursion
@@ -1040,6 +1041,7 @@ var $b8aee296158e1013$var$grameneFilters = {
1040
1041
  }).sort().join(" ".concat(node.operation, " ")), ")");
1041
1042
  else {
1042
1043
  // this node is a suggestion
1044
+ if (isQuery.test(node.fq_value)) return "".concat(negate).concat(node.fq_value);
1043
1045
  if (hasSpaces.test(node.fq_value)) return "".concat(negate).concat(node.fq_field, ":\"").concat(node.fq_value, "\"");
1044
1046
  else return "".concat(negate).concat(node.fq_field, ":").concat(node.fq_value);
1045
1047
  }
@@ -3503,7 +3505,7 @@ var $57871e966e0c4f66$var$Pathways = /*#__PURE__*/ function(_React$Component) {
3503
3505
  proxyPrefix: $57871e966e0c4f66$var$reactomeURL,
3504
3506
  //'//plantreactome.gramene.org', //'//plantreactomedev.oicr.on.ca', ////cord3084-pc7.science.oregonstate.edu', // reactomedev.oicr.on.ca
3505
3507
  placeHolder: this.holderId,
3506
- width: this.divWrapper.clientWidth - 350,
3508
+ width: this.divWrapper.clientWidth - 350 - 1,
3507
3509
  height: 500
3508
3510
  });
3509
3511
  }