@miso.ai/client-sdk-ui 1.12.7-beta.1 → 1.12.7

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.
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = '1.12.7-beta.1';
7
+ var _default = exports.default = '1.12.7';
@@ -11,6 +11,7 @@ var _constants = require("../constants.js");
11
11
  var _index2 = require("../layout/index.js");
12
12
  var _processors = require("./processors.js");
13
13
  var _index3 = require("./options/index.js");
14
+ var _useLink = require("./use-link.js");
14
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
16
  const DEFAULT_ROWS = 10;
16
17
  const DEFAULT_PAGE_LIMIT = 10;
@@ -90,6 +91,10 @@ class SearchBasedWorkflow extends _base.default {
90
91
  this._hub.update(_index.fields.query(), args);
91
92
  }
92
93
  _query(args) {
94
+ if (this._linkFn) {
95
+ this._submitToPage(args);
96
+ return;
97
+ }
93
98
  const type = _constants.REQUEST_TYPE.QUERY;
94
99
 
95
100
  // reset filters view
@@ -300,6 +305,7 @@ class SearchBasedWorkflow extends _base.default {
300
305
  }
301
306
  exports.default = SearchBasedWorkflow;
302
307
  (0, _index3.makeConfigurable)(SearchBasedWorkflow.prototype, [_constants.WORKFLOW_CONFIGURABLE.PAGINATION, _constants.WORKFLOW_CONFIGURABLE.FILTERS]);
308
+ (0, _useLink.enableUseLink)(SearchBasedWorkflow.prototype);
303
309
  Object.assign(SearchBasedWorkflow, {
304
310
  DEFAULT_API_OPTIONS,
305
311
  DEFAULT_LAYOUTS,
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/MisoAI/miso-client-js-sdk/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@miso.ai/commons": "1.12.7-beta.1"
29
+ "@miso.ai/commons": "1.12.7"
30
30
  },
31
- "version": "1.12.7-beta.1"
31
+ "version": "1.12.7"
32
32
  }
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.12.7-beta.1';
1
+ export default '1.12.7';
@@ -5,6 +5,7 @@ import { STATUS, ROLE, WORKFLOW_CONFIGURABLE, REQUEST_TYPE } from '../constants.
5
5
  import { SearchBoxLayout, ListLayout, TextLayout, FacetsLayout, SelectLayout, MoreButtonLayout } from '../layout/index.js';
6
6
  import { mappingSortData, writeKeywordsToData, retainFacetCountsInData, writeExhaustionToData, writeMisoIdAsRootMisoId, concatItemsFromMoreResponse } from './processors.js';
7
7
  import { mergeRolesOptions, autoQuery as autoQueryFn, updateQueryParametersInUrl, makeConfigurable, DEFAULT_TRACKER_OPTIONS } from './options/index.js';
8
+ import { enableUseLink } from './use-link.js';
8
9
 
9
10
  const DEFAULT_ROWS = 10;
10
11
  const DEFAULT_PAGE_LIMIT = 10;
@@ -99,6 +100,10 @@ export default class SearchBasedWorkflow extends Workflow {
99
100
  }
100
101
 
101
102
  _query(args) {
103
+ if (this._linkFn) {
104
+ this._submitToPage(args);
105
+ return;
106
+ }
102
107
  const type = REQUEST_TYPE.QUERY;
103
108
 
104
109
  // reset filters view
@@ -295,6 +300,8 @@ export default class SearchBasedWorkflow extends Workflow {
295
300
 
296
301
  makeConfigurable(SearchBasedWorkflow.prototype, [WORKFLOW_CONFIGURABLE.PAGINATION, WORKFLOW_CONFIGURABLE.FILTERS]);
297
302
 
303
+ enableUseLink(SearchBasedWorkflow.prototype);
304
+
298
305
  Object.assign(SearchBasedWorkflow, {
299
306
  DEFAULT_API_OPTIONS,
300
307
  DEFAULT_LAYOUTS,