@plone/volto 18.1.0 → 18.1.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 CHANGED
@@ -17,6 +17,24 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 18.1.1 (2024-11-21)
21
+
22
+ ### Bugfix
23
+
24
+ - Do not break toolbar if layout id is not registered in layoutViewsNamesMapping. @cekk [#6485](https://github.com/plone/volto/issues/6485)
25
+ - Replace _all_ spaces with `-` in `BodyClass` classes, instead of with `-` or `` depending on the content type or section. @giuliaghisini [#6487](https://github.com/plone/volto/issues/6487)
26
+
27
+ ### Internal
28
+
29
+ - Update instructions to install `pipx` in `RELEASING.md`. @stevepiercy [#6496](https://github.com/plone/volto/issues/6496)
30
+
31
+ ### Documentation
32
+
33
+ - More privacy concerning youtube links and fixing link check warnings for youtube playlist links. @stevepiercy @ksuess [#4203](https://github.com/plone/volto/issues/4203)
34
+ - Remove conflicting `searchtools.js` file from documentation to allow default Sphinx search in main Plone documentation. @stevepiercy [#6482](https://github.com/plone/volto/issues/6482)
35
+ - Add support for sphinxcontrib-youtube. @stevepiercy [#6486](https://github.com/plone/volto/issues/6486)
36
+ - Refactor documentation includes to align with main documentation pattern. @stevepiercy [#6495](https://github.com/plone/volto/issues/6495)
37
+
20
38
  ## 18.1.0 (2024-11-11)
21
39
 
22
40
  ### Feature
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "18.1.0",
12
+ "version": "18.1.1",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -237,9 +237,9 @@
237
237
  "url": "^0.11.3",
238
238
  "use-deep-compare-effect": "1.8.1",
239
239
  "uuid": "^8.3.2",
240
- "@plone/registry": "2.1.2",
241
240
  "@plone/scripts": "3.8.1",
242
- "@plone/volto-slate": "18.0.1"
241
+ "@plone/volto-slate": "18.0.1",
242
+ "@plone/registry": "2.1.2"
243
243
  },
244
244
  "devDependencies": {
245
245
  "@babel/core": "^7.0.0",
@@ -123,13 +123,15 @@ const DisplaySelect = (props) => {
123
123
  ? state.content.data[getLayoutFieldname(state.content.data)]
124
124
  : '',
125
125
  );
126
+ const layoutMappingId = config.views.layoutViewsNamesMapping?.[layout];
126
127
  const [selectedOption, setselectedOption] = useState({
127
128
  value: layout,
128
- label:
129
- intl.formatMessage({
130
- id: config.views.layoutViewsNamesMapping?.[layout],
131
- defaultMessage: config.views.layoutViewsNamesMapping?.[layout],
132
- }) || layout,
129
+ label: layoutMappingId
130
+ ? intl.formatMessage({
131
+ id: layoutMappingId,
132
+ defaultMessage: layoutMappingId,
133
+ })
134
+ : layout,
133
135
  });
134
136
 
135
137
  const type = useSelector((state) =>
@@ -141,7 +141,7 @@ export class App extends Component {
141
141
  {this.props.content && this.props.content['@type'] && (
142
142
  <BodyClass
143
143
  className={`contenttype-${this.props.content['@type']
144
- .replace(' ', '-')
144
+ .replaceAll(' ', '-')
145
145
  .toLowerCase()}`}
146
146
  />
147
147
  )}
@@ -155,7 +155,7 @@ export class App extends Component {
155
155
  [`is-adding-contenttype-${decodeURIComponent(
156
156
  this.props.location?.search?.replace('?type=', ''),
157
157
  )
158
- .replace(' ', '')
158
+ .replaceAll(' ', '-')
159
159
  .toLowerCase()}`]: this.props.location?.search,
160
160
  'is-authenticated': !!this.props.token,
161
161
  'is-anonymous': !this.props.token,