@plone/volto 16.21.2 → 16.22.0

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.
Files changed (66) hide show
  1. package/.changelog.draft +28 -3
  2. package/.yarn/install-state.gz +0 -0
  3. package/CHANGELOG.md +42 -0
  4. package/cypress/support/commands.js +17 -0
  5. package/locales/it/LC_MESSAGES/volto.po +1 -1
  6. package/locales/it.json +1 -1
  7. package/package.json +1 -1
  8. package/packages/volto-slate/package.json +1 -1
  9. package/packages/volto-slate/src/actions/index.js +1 -1
  10. package/packages/volto-slate/src/blocks/Table/TableBlockEdit.jsx +21 -212
  11. package/packages/volto-slate/src/blocks/Table/schema.js +122 -0
  12. package/packages/volto-slate/src/blocks/Text/index.js +2 -2
  13. package/packages/volto-slate/src/editor/index.js +4 -4
  14. package/packages/volto-slate/src/editor/plugins/StyleMenu/utils.js +14 -5
  15. package/packages/volto-slate/src/editor/ui/SlateContextToolbar.jsx +2 -2
  16. package/packages/volto-slate/src/editor/ui/index.js +15 -15
  17. package/packages/volto-slate/src/index.js +2 -2
  18. package/packages/volto-slate/src/utils/blocks.js +7 -0
  19. package/packages/volto-slate/src/widgets/RichTextWidget.jsx +15 -8
  20. package/src/components/manage/AnchorPlugin/index.jsx +2 -2
  21. package/src/components/manage/AnchorPlugin/utils/EditorUtils.js +3 -1
  22. package/src/components/manage/Blocks/Block/Style.jsx +2 -2
  23. package/src/components/manage/Blocks/Listing/getAsyncData.js +7 -2
  24. package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +3 -4
  25. package/src/components/manage/Blocks/Search/components/Facets.jsx +6 -2
  26. package/src/components/manage/Blocks/Search/components/index.js +13 -13
  27. package/src/components/manage/Blocks/Search/hocs/index.js +2 -2
  28. package/src/components/manage/Blocks/Search/hocs/withQueryString.jsx +2 -2
  29. package/src/components/manage/Blocks/ToC/Schema.jsx +5 -1
  30. package/src/components/manage/Blocks/ToC/variations/HorizontalMenu.jsx +142 -8
  31. package/src/components/manage/Blocks/ToC/variations/index.js +3 -1
  32. package/src/components/manage/Contents/Contents.jsx +8 -6
  33. package/src/components/manage/UniversalLink/UniversalLink.jsx +2 -6
  34. package/src/components/manage/UniversalLink/UniversalLink.test.jsx +36 -0
  35. package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +1 -1
  36. package/src/components/theme/Login/Login.jsx +1 -1
  37. package/src/components/theme/View/AlbumView.jsx +9 -1
  38. package/src/components/theme/View/EventView.jsx +6 -2
  39. package/src/components/theme/View/FileView.jsx +23 -18
  40. package/src/components/theme/View/ImageView.jsx +37 -32
  41. package/src/components/theme/View/LinkView.jsx +4 -1
  42. package/src/components/theme/View/ListingView.jsx +33 -27
  43. package/src/components/theme/View/SummaryView.jsx +47 -38
  44. package/src/components/theme/View/TabularView.jsx +59 -53
  45. package/src/config/RichTextEditor/Blocks.jsx +2 -2
  46. package/src/config/RichTextEditor/FromHTML.jsx +2 -2
  47. package/src/config/RichTextEditor/Styles.jsx +1 -1
  48. package/src/config/index.js +1 -0
  49. package/src/config/server.js +2 -0
  50. package/src/constants/Indexes.js +3 -1
  51. package/src/express-middleware/devproxy.js +1 -1
  52. package/src/express-middleware/files.js +3 -3
  53. package/src/express-middleware/images.js +4 -4
  54. package/src/express-middleware/ok.js +16 -0
  55. package/src/express-middleware/robotstxt.js +1 -1
  56. package/src/express-middleware/sitemap.js +1 -1
  57. package/src/express-middleware/static.js +3 -3
  58. package/src/helpers/Extensions/index.js +2 -1
  59. package/src/helpers/Url/Url.js +22 -1
  60. package/src/helpers/Url/Url.test.js +41 -0
  61. package/src/helpers/index.js +9 -10
  62. package/src/middleware/index.js +2 -2
  63. package/src/start-server.js +2 -2
  64. package/theme/themes/pastanaga/extras/blocks.less +3 -1
  65. package/theme/themes/pastanaga/extras/main.less +2 -1
  66. package/theme/themes/pastanaga/extras/toc.less +29 -0
@@ -4,8 +4,8 @@
4
4
  * @example import { api } from 'middleware';
5
5
  */
6
6
 
7
- export api from '@plone/volto/middleware/api';
8
- export blacklistRoutes from './blacklistRoutes';
7
+ export { default as api } from '@plone/volto/middleware/api';
8
+ export { default as blacklistRoutes } from './blacklistRoutes';
9
9
  export {
10
10
  protectLoadStart,
11
11
  protectLoadEnd,
@@ -4,7 +4,7 @@ import http from 'http';
4
4
  import app from './server';
5
5
  import debug from 'debug';
6
6
 
7
- export default () => {
7
+ export default function server() {
8
8
  const server = http.createServer(app);
9
9
  // const host = process.env.HOST || 'localhost';
10
10
  const port = process.env.PORT || 3000;
@@ -46,4 +46,4 @@ export default () => {
46
46
  currentApp = newApp;
47
47
  });
48
48
  };
49
- };
49
+ }
@@ -477,7 +477,9 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
477
477
 
478
478
  &.new-add-block {
479
479
  bottom: -26px;
480
- left: 50%;
480
+ left: calc(
481
+ 50% - 12px
482
+ ); // This is to compensate the width of the icon and center it correctly
481
483
  padding: 0 !important;
482
484
  border: none !important;
483
485
  background: white !important;
@@ -26,7 +26,7 @@ body {
26
26
  &.has-toolbar-menu-open,
27
27
  &.has-mobile-menu-open {
28
28
  // The body scroll locker when the toolbar or the mobile menu are active in mobile.
29
- @media only screen and (max-width: @largestMobileScreen) {
29
+ @media only screen and (max-width: @largestTabletScreen) {
30
30
  overflow: hidden;
31
31
  }
32
32
  }
@@ -588,4 +588,5 @@ body.has-toolbar-collapsed .mobile-menu {
588
588
  @import 'login';
589
589
  @import 'language-selector';
590
590
  @import 'views';
591
+ @import 'toc';
591
592
  .loadUIOverrides();
@@ -0,0 +1,29 @@
1
+ .table-of-contents.horizontalMenu.sticky-toc {
2
+ position: sticky;
3
+ z-index: 1;
4
+ top: 0;
5
+ }
6
+
7
+ .table-of-contents.horizontalMenu .hidden {
8
+ z-index: -1;
9
+ pointer-events: none;
10
+ visibility: hidden;
11
+ }
12
+
13
+ .table-of-contents.horizontalMenu .hidden-dropdown {
14
+ display: none !important;
15
+ }
16
+
17
+ .table-of-contents.horizontalMenu .item.dropdown {
18
+ position: absolute !important;
19
+ right: 0;
20
+ }
21
+
22
+ .table-of-contents.horizontalMenu > .ui.menu {
23
+ position: relative;
24
+ }
25
+
26
+ .table-of-contents.horizontalMenu .item.dropdown .focused > a {
27
+ border: 2px solid black !important;
28
+ border-radius: 4px;
29
+ }