@eeacms/volto-clms-theme 1.1.274 → 1.1.276
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,17 @@ 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.276](https://github.com/eea/volto-clms-theme/compare/1.1.275...1.1.276) - 9 March 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: the service desk form return error when the user is logged in through EU Login -refs #299131 [ana-oprea - [`f58fb65`](https://github.com/eea/volto-clms-theme/commit/f58fb6529e8def103ee3831d3d8ab33fa30e668f)]
|
|
12
|
+
|
|
13
|
+
### [1.1.275](https://github.com/eea/volto-clms-theme/compare/1.1.274...1.1.275) - 2 March 2026
|
|
14
|
+
|
|
15
|
+
#### :hammer_and_wrench: Others
|
|
16
|
+
|
|
17
|
+
- Refs #295005 - In TechnicalLibraryView add case of external source content. [GhitaB - [`ccc4d65`](https://github.com/eea/volto-clms-theme/commit/ccc4d65a4a3b8d54245baed78872d0fe0977a7ae)]
|
|
7
18
|
### [1.1.274](https://github.com/eea/volto-clms-theme/compare/1.1.273...1.1.274) - 26 February 2026
|
|
8
19
|
|
|
9
20
|
#### :house: Internal changes
|
package/package.json
CHANGED
|
@@ -80,6 +80,7 @@ const View = ({ data, id, path }) => {
|
|
|
80
80
|
const [formErrors, setFormErrors] = useState([]);
|
|
81
81
|
const [csrfToken, setCsrfToken] = useState(null);
|
|
82
82
|
const submitResults = useSelector((state) => state.submitForm);
|
|
83
|
+
const userToken = useSelector((state) => state.userSession?.token);
|
|
83
84
|
const captchaToken = useRef();
|
|
84
85
|
|
|
85
86
|
const onChangeFormData = (field_id, field, value, extras) => {
|
|
@@ -87,11 +88,15 @@ const View = ({ data, id, path }) => {
|
|
|
87
88
|
};
|
|
88
89
|
|
|
89
90
|
useEffect(() => {
|
|
91
|
+
const headers = {
|
|
92
|
+
Accept: 'application/json',
|
|
93
|
+
};
|
|
94
|
+
if (userToken) {
|
|
95
|
+
headers.Authorization = `Bearer ${userToken}`;
|
|
96
|
+
}
|
|
90
97
|
fetch(`/++api++/@clms-get-csrf-token`, {
|
|
91
98
|
credentials: 'include',
|
|
92
|
-
headers
|
|
93
|
-
Accept: 'application/json',
|
|
94
|
-
},
|
|
99
|
+
headers,
|
|
95
100
|
})
|
|
96
101
|
.then((r) => {
|
|
97
102
|
if (!r.ok) throw new Error(`${r.status} ${r.statusText}`);
|
|
@@ -100,7 +105,7 @@ const View = ({ data, id, path }) => {
|
|
|
100
105
|
.then((data) => {
|
|
101
106
|
setCsrfToken(data.token);
|
|
102
107
|
});
|
|
103
|
-
}, [path]);
|
|
108
|
+
}, [path, userToken]);
|
|
104
109
|
|
|
105
110
|
useEffect(() => {
|
|
106
111
|
if (formErrors.length > 0) {
|
|
@@ -21,7 +21,19 @@ const CLMSTechnicalLibraryView = (props) => {
|
|
|
21
21
|
</div>
|
|
22
22
|
)}
|
|
23
23
|
<div className="technicallibrary-content">
|
|
24
|
-
{content.
|
|
24
|
+
{typeof content.external_source_url === 'string' &&
|
|
25
|
+
content.external_source_url.trim() !== '' ? (
|
|
26
|
+
<>
|
|
27
|
+
<p>This document is hosted externally. Access it here:</p>
|
|
28
|
+
<CclButton
|
|
29
|
+
url={content.external_source_url}
|
|
30
|
+
target="_blank"
|
|
31
|
+
rel="noreferrer"
|
|
32
|
+
>
|
|
33
|
+
Open External Source
|
|
34
|
+
</CclButton>
|
|
35
|
+
</>
|
|
36
|
+
) : content.ondemand ? (
|
|
25
37
|
<>
|
|
26
38
|
<p>
|
|
27
39
|
You are requesting an on-demand document. Please contact the{' '}
|