@plone/volto 16.0.0-alpha.31 → 16.0.0-alpha.32

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
@@ -1,5 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## 16.0.0-alpha.32 (2022-09-14)
4
+
5
+ ### Bugfix
6
+
7
+ - Fix "cannot have two html5 backends at the same time" error @davisagli
8
+ - Reset filter in folder contents when navigating @robgietema
9
+ - Fix bug showing incorrect history after a revert action @robgietema
10
+
11
+ ### Internal
12
+
13
+ ### Documentation
14
+
15
+ Undo html_static_path configuration in `plone/documentation`, and restore image and its referenced path in `plone/volto`. @stevepiercy
16
+
3
17
  ## 16.0.0-alpha.31 (2022-09-12)
4
18
 
5
19
  ### Bugfix
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.0.0-alpha.31",
12
+ "version": "16.0.0-alpha.32",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -456,7 +456,10 @@ class Contents extends Component {
456
456
  {
457
457
  currentPage: 0,
458
458
  },
459
- () => this.fetchContents(nextProps.pathname),
459
+ () =>
460
+ this.setState({ filter: '' }, () =>
461
+ this.fetchContents(nextProps.pathname),
462
+ ),
460
463
  );
461
464
  }
462
465
  if (this.props.searchRequest.loading && nextProps.searchRequest.loaded) {
@@ -1800,14 +1803,18 @@ class Contents extends Component {
1800
1803
  }
1801
1804
  }
1802
1805
 
1806
+ let dndContext;
1807
+
1803
1808
  const DragDropConnector = (props) => {
1804
1809
  const { DragDropContext } = props.reactDnd;
1805
1810
  const HTML5Backend = props.reactDndHtml5Backend.default;
1806
1811
 
1807
- const DndConnectedContents = React.useMemo(
1808
- () => DragDropContext(HTML5Backend)(Contents),
1809
- [DragDropContext, HTML5Backend],
1810
- );
1812
+ const DndConnectedContents = React.useMemo(() => {
1813
+ if (!dndContext) {
1814
+ dndContext = DragDropContext(HTML5Backend);
1815
+ }
1816
+ return dndContext(Contents);
1817
+ }, [DragDropContext, HTML5Backend]);
1811
1818
 
1812
1819
  return <DndConnectedContents {...props} />;
1813
1820
  };
@@ -174,7 +174,7 @@ class History extends Component {
174
174
  </Table.Header>
175
175
  <Table.Body>
176
176
  {map(entries, (entry) => (
177
- <Table.Row key={entry.time}>
177
+ <Table.Row key={'version' in entry ? entry.version : -1}>
178
178
  <Table.Cell>
179
179
  {('version' in entry && entry.version > 0 && (
180
180
  <Link