@miso.ai/client-sdk-ui 1.13.0-beta.7 → 1.13.0

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.13.0-beta.7';
7
+ var _default = exports.default = '1.13.0';
@@ -25,6 +25,7 @@ const DEFAULT_LAYOUTS = Object.freeze(Object.assign({}, _unit.default.DEFAULT_LA
25
25
  rel: 'noopener nofollow'
26
26
  }
27
27
  }],
28
+ // TODO: should define by useLink()
28
29
  [_constants.ROLE.QUERY]: [_index2.SearchBoxLayout.type, {
29
30
  placeholder: 'Ask a question'
30
31
  }]
@@ -29,7 +29,7 @@ class UseLinkMixin {
29
29
  window.location.href = url;
30
30
  } else {
31
31
  const target = options.target || '_blank';
32
- const windowFeatures = options.windowFeatures || '';
32
+ const windowFeatures = options.windowFeatures || 'noopener';
33
33
  window.open(url, target, windowFeatures);
34
34
  }
35
35
  }
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "url": "https://github.com/MisoAI/miso-client-js-sdk/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@miso.ai/commons": "1.13.0-beta.7"
33
+ "@miso.ai/commons": "1.13.0"
34
34
  },
35
- "version": "1.13.0-beta.7"
35
+ "version": "1.13.0"
36
36
  }
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.13.0-beta.7';
1
+ export default '1.13.0';
@@ -14,7 +14,7 @@ const DEFAULT_API_OPTIONS = Object.freeze({
14
14
 
15
15
  const DEFAULT_LAYOUTS = Object.freeze({
16
16
  ...UnitWorkflow.DEFAULT_LAYOUTS,
17
- [ROLE.RELATED_QUESTIONS]: [ListLayout.type, { itemType: 'question', link: { rel: 'noopener nofollow' } }],
17
+ [ROLE.RELATED_QUESTIONS]: [ListLayout.type, { itemType: 'question', link: { rel: 'noopener nofollow' } }], // TODO: should define by useLink()
18
18
  [ROLE.QUERY]: [SearchBoxLayout.type, { placeholder: 'Ask a question' }],
19
19
  });
20
20
 
@@ -24,7 +24,7 @@ export class UseLinkMixin {
24
24
  window.location.href = url;
25
25
  } else {
26
26
  const target = options.target || '_blank';
27
- const windowFeatures = options.windowFeatures || '';
27
+ const windowFeatures = options.windowFeatures || 'noopener';
28
28
  window.open(url, target, windowFeatures);
29
29
  }
30
30
  }