@plone/volto 14.2.0 → 14.2.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 +11 -0
- package/README.md +24 -3
- package/package.json +2 -2
- package/src/components/theme/Navigation/NavItem.jsx +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.2.1 (2022-01-12)
|
|
4
|
+
|
|
5
|
+
### Bugfix
|
|
6
|
+
|
|
7
|
+
- Fix home URL item in Navigation, which was evaluating as non-internal
|
|
8
|
+
|
|
9
|
+
### Internal
|
|
10
|
+
|
|
11
|
+
- Use plone-backend docker images for Cypress tests @sneridagh
|
|
12
|
+
- Upgrade `query-string` library so it supports Plone `:list` qs marker @sneridagh
|
|
13
|
+
|
|
3
14
|
## 14.2.0 (2022-01-04)
|
|
4
15
|
|
|
5
16
|
### Feature
|
package/README.md
CHANGED
|
@@ -76,20 +76,41 @@ follow the prompts questions, provide `myvoltoproject` as project name then, whe
|
|
|
76
76
|
|
|
77
77
|
We recommend Plone as backend of choice for Volto.
|
|
78
78
|
|
|
79
|
-
You can bootstrap a ready Docker Plone container with all the dependencies and ready for Volto use:
|
|
79
|
+
You can bootstrap a ready Docker Plone container with all the dependencies and ready for Volto use. We recommend to use the Plone docker builds based in `pip` [plone/plone-backend](https://github.com/plone/plone-backend) image:
|
|
80
80
|
|
|
81
81
|
```shell
|
|
82
|
-
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e
|
|
82
|
+
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e ADDONS="plone.restapi==8.18.0 plone.app.iterate==4.0.2 plone.rest==2.0.0a1 plone.app.vocabularies==4.3.0 plone.volto==3.1.0a7" -e PROFILES="plone.volto:default-homepage" plone/plone-backend
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
or as an alternative if you have experience with Plone and you have all the
|
|
86
|
-
dependencies installed on your system, you can use the supplied buildout in the
|
|
86
|
+
dependencies installed on your system, you can use the supplied convenience buildout in the
|
|
87
87
|
`api` folder by issuing the command:
|
|
88
88
|
|
|
89
89
|
```shell
|
|
90
90
|
make build-backend
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
+
#### Recommended Plone version
|
|
94
|
+
|
|
95
|
+
Volto is Plone 6 default UI, so it will work for all Plone 6 released versions.
|
|
96
|
+
|
|
97
|
+
For the Plone 5 series latest released version (with Python 3) and above is recommended (at the time of writing 5.2.6).
|
|
98
|
+
|
|
99
|
+
The following KGS (or above) are also recommended, for any Plone version used.
|
|
100
|
+
|
|
101
|
+
#### KGS (known good versions) for backend packages
|
|
102
|
+
|
|
103
|
+
Volto always works best with latest versions of the "Frontend stack" or at least the recommended ones (in parenthesis) which are:
|
|
104
|
+
|
|
105
|
+
- plone.restapi (8.18.0)
|
|
106
|
+
- plone.rest (2.0.0a1)
|
|
107
|
+
- plone.volto (3.1.0a7)
|
|
108
|
+
|
|
109
|
+
and the following core packages since some features require up to date versions:
|
|
110
|
+
|
|
111
|
+
- plone.app.iterate (4.0.2)
|
|
112
|
+
- plone.app.vocabularies (4.3.0)
|
|
113
|
+
|
|
93
114
|
### Start Volto
|
|
94
115
|
|
|
95
116
|
```shell
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "14.2.
|
|
12
|
+
"version": "14.2.1",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
"prismjs": "1.25.0",
|
|
343
343
|
"promise-file-reader": "1.0.2",
|
|
344
344
|
"prop-types": "15.7.2",
|
|
345
|
-
"query-string": "7.
|
|
345
|
+
"query-string": "7.1.0",
|
|
346
346
|
"razzle": "3.4.5",
|
|
347
347
|
"razzle-plugin-bundle-analyzer": "1.2.0",
|
|
348
348
|
"rc-time-picker": "3.7.3",
|
|
@@ -5,7 +5,9 @@ import config from '@plone/volto/registry';
|
|
|
5
5
|
|
|
6
6
|
const NavItem = ({ item, lang }) => {
|
|
7
7
|
const { settings } = config;
|
|
8
|
-
|
|
8
|
+
// The item.url in the root is ''
|
|
9
|
+
// TODO: make more consistent it everywhere (eg. reducers to return '/' instead of '')
|
|
10
|
+
if (isInternalURL(item.url) || item.url === '') {
|
|
9
11
|
return (
|
|
10
12
|
<NavLink
|
|
11
13
|
to={item.url === '' ? '/' : item.url}
|