@eeacms/volto-clms-theme 1.1.258 → 1.1.259
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.1.259](https://github.com/eea/volto-clms-theme/compare/1.1.258...1.1.259) - 10 October 2025
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Refs #289194 - ChatbotFloatingButton - add title. [GhitaB - [`11a68c3`](https://github.com/eea/volto-clms-theme/commit/11a68c32676c6ed73f8d2a15c333c59ddcf48496)]
|
|
12
|
+
- Refs #289194 - ChatbotFloatingButton - exclude from ask-observia page itself, also open in a new tab. [GhitaB - [`2b1ba8e`](https://github.com/eea/volto-clms-theme/commit/2b1ba8ec9e229e186699e88c269214a2070a844f)]
|
|
7
13
|
### [1.1.258](https://github.com/eea/volto-clms-theme/compare/1.1.257...1.1.258) - 10 October 2025
|
|
8
14
|
|
|
9
15
|
#### :house: Internal changes
|
package/package.json
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useLocation } from 'react-router-dom';
|
|
2
3
|
import './chatbot-floating-button.less';
|
|
3
4
|
import AssistantIcon from '@eeacms/volto-clms-theme/../theme/clms/img/assistant-icon-blue.svg';
|
|
4
5
|
|
|
5
6
|
const ChatbotFloatingButton = () => {
|
|
7
|
+
const location = useLocation();
|
|
8
|
+
|
|
9
|
+
// Disable button if URL contains "ask-observia"
|
|
10
|
+
if (location.pathname.includes('ask-observia')) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
return (
|
|
7
15
|
<a
|
|
8
16
|
href="/en/ask-observia-ai"
|
|
9
17
|
className="chatbot-floating-button"
|
|
10
18
|
aria-label="Open AI Assistant"
|
|
19
|
+
target="_blank"
|
|
20
|
+
rel="noopener noreferrer"
|
|
11
21
|
title="Your smart CLMS guide"
|
|
12
22
|
>
|
|
13
23
|
<img src={AssistantIcon} alt="AI Assistant" />
|