@miso.ai/client-sdk-ui 1.9.3-beta.0 → 1.9.3

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.9.3-beta.0';
7
+ var _default = exports.default = '1.9.3';
@@ -204,7 +204,7 @@ class Ask extends _base.default {
204
204
  if (this._autoQuery && this._autoQuery.updateUrl !== false) {
205
205
  const url = new URL(window.location);
206
206
  const currentQuestion = url.searchParams.get('q');
207
- if (question !== currentQuestion) {
207
+ if (question !== currentQuestion && (currentQuestion || this._autoQuery.updateUrl === true)) {
208
208
  url.searchParams.set('q', question);
209
209
  window.history.replaceState({}, '', url);
210
210
  }
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.9.3-beta.0"
29
+ "@miso.ai/commons": "1.9.3"
30
30
  },
31
- "version": "1.9.3-beta.0"
31
+ "version": "1.9.3"
32
32
  }
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.9.3-beta.0';
1
+ export default '1.9.3';
@@ -164,7 +164,7 @@ export default class Ask extends Workflow {
164
164
  if (this._autoQuery && this._autoQuery.updateUrl !== false) {
165
165
  const url = new URL(window.location);
166
166
  const currentQuestion = url.searchParams.get('q');
167
- if (question !== currentQuestion) {
167
+ if (question !== currentQuestion && (currentQuestion || this._autoQuery.updateUrl === true)) {
168
168
  url.searchParams.set('q', question);
169
169
  window.history.replaceState({}, '', url);
170
170
  }