@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.
package/dist/cjs/version.js
CHANGED
|
@@ -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
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.13.0
|
|
1
|
+
export default '1.13.0';
|
package/src/workflow/explore.js
CHANGED
|
@@ -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
|
|
package/src/workflow/use-link.js
CHANGED
|
@@ -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
|
}
|