@plone/volto 18.30.0 → 18.30.1
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 +7 -0
- package/package.json +2 -2
- package/src/components/theme/Unauthorized/Unauthorized.jsx +5 -2
- package/src/components/theme/View/View.jsx +7 -0
- package/src/internalChecks.test.ts +10 -0
- package/types/components/theme/Unauthorized/Unauthorized.d.ts +2 -2
- package/news/7428.feat +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,13 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.30.1 (2025-12-08)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- Add classname for unauthorized page @iRohitSingh
|
|
25
|
+
- Added `prettier` as a direct dependency of Volto, since is used by HTML block, to prevent the removal from the production build. @sneridagh
|
|
26
|
+
|
|
20
27
|
## 18.30.0 (2025-12-02)
|
|
21
28
|
|
|
22
29
|
### Feature
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "18.30.
|
|
12
|
+
"version": "18.30.1",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -181,6 +181,7 @@
|
|
|
181
181
|
"object-assign": "4.1.1",
|
|
182
182
|
"prepend-http": "2",
|
|
183
183
|
"pretty-bytes": "5.3.0",
|
|
184
|
+
"prettier": "3.2.5",
|
|
184
185
|
"prismjs": "1.27.0",
|
|
185
186
|
"process": "^0.11.10",
|
|
186
187
|
"promise-file-reader": "1.0.2",
|
|
@@ -336,7 +337,6 @@
|
|
|
336
337
|
"postcss-loader": "7.0.2",
|
|
337
338
|
"postcss-overrides": "3.1.4",
|
|
338
339
|
"postcss-scss": "4.0.6",
|
|
339
|
-
"prettier": "3.2.5",
|
|
340
340
|
"razzle": "4.2.18",
|
|
341
341
|
"razzle-dev-utils": "4.2.18",
|
|
342
342
|
"razzle-plugin-scss": "4.2.18",
|
|
@@ -5,6 +5,7 @@ import { useSelector } from 'react-redux';
|
|
|
5
5
|
import { useLocation } from 'react-router-dom';
|
|
6
6
|
import { withServerErrorCode } from '@plone/volto/helpers/Utils/Utils';
|
|
7
7
|
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
8
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
8
9
|
|
|
9
10
|
const Unauthorized = () => {
|
|
10
11
|
const error_message = useSelector((state) => state.apierror?.message);
|
|
@@ -12,6 +13,7 @@ const Unauthorized = () => {
|
|
|
12
13
|
|
|
13
14
|
return (
|
|
14
15
|
<Container className="view-wrapper">
|
|
16
|
+
<BodyClass className="view-unauthorized" />
|
|
15
17
|
<h1>
|
|
16
18
|
<FormattedMessage id="Unauthorized" defaultMessage="Unauthorized" />
|
|
17
19
|
</h1>
|
|
@@ -62,5 +64,6 @@ const Unauthorized = () => {
|
|
|
62
64
|
</Container>
|
|
63
65
|
);
|
|
64
66
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
const UnauthorizedWithCode = withServerErrorCode(401)(Unauthorized);
|
|
68
|
+
UnauthorizedWithCode.displayName = 'unauthorized';
|
|
69
|
+
export default UnauthorizedWithCode;
|
|
@@ -222,6 +222,13 @@ class View extends Component {
|
|
|
222
222
|
}
|
|
223
223
|
return (
|
|
224
224
|
<div id="view">
|
|
225
|
+
<BodyClass
|
|
226
|
+
className={
|
|
227
|
+
FoundView.displayName
|
|
228
|
+
? `view-${this.cleanViewName(FoundView.displayName)}`
|
|
229
|
+
: null
|
|
230
|
+
}
|
|
231
|
+
/>
|
|
225
232
|
<FoundView {...this.props} />
|
|
226
233
|
</div>
|
|
227
234
|
);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import packageJson from '../package.json';
|
|
2
|
+
|
|
3
|
+
describe('internal checks', () => {
|
|
4
|
+
it('keeps prettier listed as a runtime dependency', () => {
|
|
5
|
+
const dependencies = packageJson.dependencies ?? {};
|
|
6
|
+
|
|
7
|
+
expect(dependencies).toHaveProperty('prettier');
|
|
8
|
+
expect(typeof dependencies.prettier).toBe('string');
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default UnauthorizedWithCode;
|
|
2
|
+
declare const UnauthorizedWithCode: (props: any) => import("react/jsx-runtime").JSX.Element;
|
package/news/7428.feat
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Add translations for eu, es, nl, ta @erral @ingovdb @TamilNeram
|