@plone/volto 18.0.0-alpha.17 → 18.0.0-alpha.18

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,22 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 18.0.0-alpha.18 (2024-03-05)
21
+
22
+ ### Bugfix
23
+
24
+ - Fix translation error message. @robgietema [#5835](https://github.com/plone/volto/issues/5835)
25
+ - Pass down content, pathname and navRoot to the `SlotComponent` for convenience @sneridagh [#5841](https://github.com/plone/volto/issues/5841)
26
+ - Fix `setMetadataFocus` so it does not break if the element to be focused is not an `input` @sneridagh [#5843](https://github.com/plone/volto/issues/5843)
27
+
28
+ ### Internal
29
+
30
+ - Add new readmes to CI. @stevepiercy [#5837](https://github.com/plone/volto/issues/5837)
31
+
32
+ ### Documentation
33
+
34
+ - Fix linkcheckbroken of `README.md` at the source of the file. @stevepiercy [#5834](https://github.com/plone/volto/issues/5834)
35
+
20
36
  ## 18.0.0-alpha.17 (2024-03-05)
21
37
 
22
38
  ### Bugfix
@@ -78,7 +94,7 @@ myst:
78
94
 
79
95
  - Added Release Management Notes. @sneridagh @stevepiercy [#5358](https://github.com/plone/volto/issues/5358)
80
96
  - Delete redundant `developing-a-project.md`. @stevepiercy [#5675](https://github.com/plone/volto/issues/5675)
81
- - Removed Memori and TwinCreator websites from README.md no longer made using Volto and giving 404 error. @ichim-david [#5802](https://github.com/plone/volto/issues/5802)
97
+ - Removed Memori and TwinCreator websites from `README.md` no longer made using Volto and giving 404 error. @ichim-david [#5802](https://github.com/plone/volto/issues/5802)
82
98
 
83
99
  ## 18.0.0-alpha.13 (2024-02-22)
84
100
 
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "18.0.0-alpha.17",
12
+ "version": "18.0.0-alpha.18",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -277,7 +277,7 @@
277
277
  "react-simple-code-editor": "0.7.1",
278
278
  "react-sortable-hoc": "2.0.0",
279
279
  "react-test-renderer": "18.2.0",
280
- "react-toastify": "5.4.1",
280
+ "react-toastify": "5.5.0",
281
281
  "react-transition-group": "4.4.5",
282
282
  "react-virtualized": "9.22.3",
283
283
  "redraft": "0.10.2",
@@ -193,7 +193,7 @@ class Add extends Component {
193
193
  erroMessage = this.props.intl.formatMessage(messages.someErrors);
194
194
  }
195
195
  } else {
196
- erroMessage = error;
196
+ erroMessage = errorsList.error?.message || error;
197
197
  }
198
198
 
199
199
  this.setState({ error: error });
@@ -309,7 +309,7 @@ class Form extends Component {
309
309
  // Set focus to first input if available
310
310
  document
311
311
  .querySelector(`.field-wrapper-${this.props.metadataFieldFocus} input`)
312
- .focus();
312
+ ?.focus();
313
313
 
314
314
  // Reset focus field
315
315
  this.props.resetMetadataFocus();
@@ -44,7 +44,14 @@ const SlotRenderer = ({
44
44
  }) => {
45
45
  // ^^ Weird compilation issue for Jest tests, that forced to re-declare the type above
46
46
  const SlotComponent = component;
47
- return <SlotComponent key={name} />;
47
+ return (
48
+ <SlotComponent
49
+ key={name}
50
+ content={content}
51
+ pathname={pathname}
52
+ navRoot={navRoot}
53
+ />
54
+ );
48
55
  },
49
56
  )}
50
57
  </>