@plone/volto 16.0.0-alpha.30 → 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,30 @@
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
+
17
+ ## 16.0.0-alpha.31 (2022-09-12)
18
+
19
+ ### Bugfix
20
+
21
+ - Fix types menu on mobile for many types. Specific menuStyle for 'more' menu. @ksuess
22
+ - Fix types menu on desktop when menu overflows the viewport, adding scroll to it @sneridagh
23
+
24
+ ### Documentation
25
+
26
+ - Align `html_static_path` with `plone/documentation` and image path so that images render when docs build in both repos. @stevepiercy
27
+
3
28
  ## 16.0.0-alpha.30 (2022-09-07)
4
29
 
5
30
  ### Breaking
@@ -12,6 +37,7 @@
12
37
  - Added placeholder param to widget, to change default placeholder @giuliaghisini
13
38
  - Add a headline (`headline` field) to the listing block schema by default @sneridagh
14
39
  - Add scroll into view setting to slate @robgietema
40
+ - Use absolute dates instead of "x hours ago" in History view @steffenri
15
41
 
16
42
  ### Bugfix
17
43
 
@@ -396,146 +422,6 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
396
422
  - Fix field id creation in dexterity control panel to have slugified id @erral
397
423
  - Changed to get intl.locale always from state @ionlizarazu
398
424
 
399
- ### Feature
400
-
401
- - Updated Brazilian Portuguese translation @ericof
402
- - Forward `HTTP Range` headers to the backend. @mamico
403
- - Add default value to color picker, if `default` is present in the widget schema. @sneridagh
404
-
405
- ### Bugfix
406
-
407
- - fix TokenWidget choices when editing a recently created content. @giuliaghisini
408
- - Fix color picker defaults implementation #2 @sneridagh
409
-
410
- ### Internal
411
-
412
- - Update `Cypress` to version 9.6.1 @sneridagh
413
-
414
- ### Documentation
415
-
416
- - Updated simple.md @MdSahil-oss
417
- - Fix indentation in nginx configuration in simple.md @stevepiercy
418
-
419
- ## 16.0.0-alpha.3 (2022-05-16)
420
-
421
- ### Breaking
422
-
423
- - Remove `div` as default if `as` prop from `RenderBlocks`. Now the default is a `React.Fragment` instead. This could lead to CSS inconsistencies if taken this div into account, specially if used in custom add-ons without. In order to avoid them, set the `as` property always in your add-ons. @sneridagh
424
-
425
- ## 16.0.0-alpha.2 (2022-05-16)
426
-
427
- - Rename `src/components/manage/Widgets/ColorPicker.jsx` component to `src/components/manage/Widgets/ColorPickerWidget.jsx` @sneridagh
428
-
429
- ### Feature
430
-
431
- - Updated Brazilian Portuguese translation @ericof
432
- - Forward `HTTP Range` headers to the backend. @mamico
433
- - Add default value to color picker, if `default` is present in the widget schema. @sneridagh
434
- - added configurable identifier field for password reset in config.js. @giuliaghisini
435
- - Add `expandToBackendURL` helper @sneridagh
436
-
437
- ### Bugfix
438
-
439
- - fix TokenWidget choices when editing a recently created content. @giuliaghisini
440
-
441
- ### Internal
442
-
443
- ### Documentation
444
-
445
- ## 16.0.0-alpha.5 (2022-05-25)
446
-
447
- ### Bugfix
448
-
449
- - Fix regression, compound lang names (eg. `pt-BR`) no longer working @sneridagh
450
-
451
- ## 16.0.0-alpha.4 (2022-05-22)
452
-
453
- ### Breaking
454
-
455
- - Removed `date-fns` from dependencies, this was in the build because `Cypress` depended on it. After the `Cypress` upgrade it no longer depends on it. If your project still depends on it, add it as a dependency of your project. @sneridagh
456
- - Removed all usage of `date-fns` from core. @sneridagh
457
-
458
- ### Feature
459
-
460
- - Added viewableInBrowserObjects setting to use in alternative to downloadableObjects, if you want to view file in browser intstead downloading. @giuliaghisini
461
- - Disable already chosen criteria in querystring widget @kreafox
462
- - Added X-Forwarded-\* headers to superagent requests. @mamico
463
-
464
- ### Bugfix
465
-
466
- - Fix `withStylingSchemaEnhancer` enhancer mechanism @sneridagh
467
- - Add correct query parameters to the redirect @robgietema
468
- - Fix RenderBlocks: path @ksuess
469
- - Fix field id creation in dexterity control panel to have slugified id @erral
470
- - Changed to get intl.locale always from state @ionlizarazu
471
- - fixed view video list from youtube in Video block. @giuliaghisini
472
- - Fixed ICS URL in event view in seamless mode @sneridagh
473
-
474
- ### Internal
475
-
476
- - Update `Cypress` to version 9.6.1 @sneridagh
477
-
478
- ### Documentation
479
-
480
- - Updated simple.md @MdSahil-oss
481
- - Fix indentation in nginx configuration in simple.md @stevepiercy
482
-
483
- ## 16.0.0-alpha.3 (2022-05-16)
484
-
485
- ### Breaking
486
-
487
- - Remove `div` as default if `as` prop from `RenderBlocks`. Now the default is a `React.Fragment` instead. This could lead to CSS inconsistencies if taken this div into account, specially if used in custom add-ons without. In order to avoid them, set the `as` property always in your add-ons. @sneridagh
488
-
489
- ## 16.0.0-alpha.2 (2022-05-16)
490
-
491
- ### Feature
492
-
493
- - Add default widget views for all type of fields and improve the DefaultView @ionlizarazu
494
- - added configurable identifier field for password reset in config.js. @giuliaghisini
495
- - Add `expandToBackendURL` helper @sneridagh
496
-
497
- ### Bugfix
498
-
499
- - fixed view video list from youtube in Video block. @giuliaghisini
500
- - Fixed ICS URL in event view in seamless mode @sneridagh
501
-
502
- ### Internal
503
-
504
- - Reintroduce Plone 6 acceptance tests using the latests `plone.app.robotframework` 2.0.0a6 specific Volto fixture. @datakurre @ericof @sneridagh
505
- - Upgrade all tests to use `plone.app.robotframework` 2.0.0a6 @sneridagh
506
- - Upgrade Sentry to latest version because of [#3346](https://github.com/plone/volto/issues/3346) @sneridagh
507
- - Reintroduce Plone 6 acceptance tests using the latests `plone.app.robotframework` 2.0.0a6 specific Volto fixture. @datakurre @ericof @sneridagh
508
- - Upgrade all tests to use `plone.app.robotframework` 2.0.0a6 @sneridagh
509
-
510
- ### Documentation
511
-
512
- ## 16.0.0-alpha.5 (2022-05-25)
513
-
514
- ### Bugfix
515
-
516
- - Fix regression, compound lang names (eg. `pt-BR`) no longer working @sneridagh
517
-
518
- ## 16.0.0-alpha.4 (2022-05-22)
519
-
520
- ### Breaking
521
-
522
- - Removed `date-fns` from dependencies, this was in the build because `Cypress` depended on it. After the `Cypress` upgrade it no longer depends on it. If your project still depends on it, add it as a dependency of your project. @sneridagh
523
- - Removed all usage of `date-fns` from core. @sneridagh
524
-
525
- ### Feature
526
-
527
- - Added viewableInBrowserObjects setting to use in alternative to downloadableObjects, if you want to view file in browser intstead downloading. @giuliaghisini
528
- - Disable already chosen criteria in querystring widget @kreafox
529
- - Added X-Forwarded-\* headers to superagent requests. @mamico
530
-
531
- ### Bugfix
532
-
533
- - Fix `withStylingSchemaEnhancer` enhancer mechanism @sneridagh
534
- - Add correct query parameters to the redirect @robgietema
535
- - Fix RenderBlocks: path @ksuess
536
- - Fix field id creation in dexterity control panel to have slugified id @erral
537
- - Changed to get intl.locale always from state @ionlizarazu
538
-
539
425
  ### Internal
540
426
 
541
427
  - Update `Cypress` to version 9.6.1 @sneridagh
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.0.0-alpha.30",
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
  };
@@ -15,7 +15,7 @@ import { Portal } from 'react-portal';
15
15
  import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
16
16
 
17
17
  import {
18
- FormattedRelativeDate,
18
+ FormattedDate,
19
19
  Icon as IconNext,
20
20
  Toolbar,
21
21
  } from '@plone/volto/components';
@@ -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
@@ -209,7 +209,7 @@ class History extends Component {
209
209
  </Table.Cell>
210
210
  <Table.Cell>{entry.actor.fullname}</Table.Cell>
211
211
  <Table.Cell>
212
- <FormattedRelativeDate date={entry.time} />
212
+ <FormattedDate date={entry.time} includeTime />
213
213
  </Table.Cell>
214
214
  <Table.Cell>{entry.comments}</Table.Cell>
215
215
  <Table.Cell>
@@ -273,6 +273,14 @@ class Toolbar extends Component {
273
273
  showMenu: !state.showMenu,
274
274
  menuStyle: { bottom: 0 },
275
275
  }));
276
+ } else if (selector === 'more') {
277
+ this.setState((state) => ({
278
+ showMenu: !state.showMenu,
279
+ menuStyle: {
280
+ overflow: 'visible',
281
+ top: 0,
282
+ },
283
+ }));
276
284
  } else {
277
285
  this.setState((state) => ({
278
286
  showMenu: !state.showMenu,
@@ -295,7 +295,7 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
295
295
 
296
296
  .toolbar-content {
297
297
  z-index: 3;
298
- overflow: visible;
298
+ overflow: auto;
299
299
  box-shadow: 0 1px 2px 0 #c7d5d8;
300
300
  }
301
301
 
@@ -718,6 +718,18 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
718
718
  }
719
719
  }
720
720
  }
721
+
722
+ // Reasoning: This is to allow scrolling inside the types
723
+ // You can't make this to happen in a fixed element that does not have
724
+ // fixed height, so for small viewports height, we are forcing the container
725
+ // to have a full height, then the inner container knows when
726
+ // and how to scroll.
727
+ @media only screen and (max-height: 400px) {
728
+ #toolbar .toolbar-content.show {
729
+ height: 100%;
730
+ }
731
+ }
732
+
721
733
  // Orphaned CSS
722
734
  .ui.dropdown .menu.left {
723
735
  right: 0;