@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.
- package/.changelog.draft +28 -3
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +42 -0
- package/cypress/support/commands.js +17 -0
- package/locales/it/LC_MESSAGES/volto.po +1 -1
- package/locales/it.json +1 -1
- package/package.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/packages/volto-slate/src/actions/index.js +1 -1
- package/packages/volto-slate/src/blocks/Table/TableBlockEdit.jsx +21 -212
- package/packages/volto-slate/src/blocks/Table/schema.js +122 -0
- package/packages/volto-slate/src/blocks/Text/index.js +2 -2
- package/packages/volto-slate/src/editor/index.js +4 -4
- package/packages/volto-slate/src/editor/plugins/StyleMenu/utils.js +14 -5
- package/packages/volto-slate/src/editor/ui/SlateContextToolbar.jsx +2 -2
- package/packages/volto-slate/src/editor/ui/index.js +15 -15
- package/packages/volto-slate/src/index.js +2 -2
- package/packages/volto-slate/src/utils/blocks.js +7 -0
- package/packages/volto-slate/src/widgets/RichTextWidget.jsx +15 -8
- package/src/components/manage/AnchorPlugin/index.jsx +2 -2
- package/src/components/manage/AnchorPlugin/utils/EditorUtils.js +3 -1
- package/src/components/manage/Blocks/Block/Style.jsx +2 -2
- package/src/components/manage/Blocks/Listing/getAsyncData.js +7 -2
- package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +3 -4
- package/src/components/manage/Blocks/Search/components/Facets.jsx +6 -2
- package/src/components/manage/Blocks/Search/components/index.js +13 -13
- package/src/components/manage/Blocks/Search/hocs/index.js +2 -2
- package/src/components/manage/Blocks/Search/hocs/withQueryString.jsx +2 -2
- package/src/components/manage/Blocks/ToC/Schema.jsx +5 -1
- package/src/components/manage/Blocks/ToC/variations/HorizontalMenu.jsx +142 -8
- package/src/components/manage/Blocks/ToC/variations/index.js +3 -1
- package/src/components/manage/Contents/Contents.jsx +8 -6
- package/src/components/manage/UniversalLink/UniversalLink.jsx +2 -6
- package/src/components/manage/UniversalLink/UniversalLink.test.jsx +36 -0
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +1 -1
- package/src/components/theme/Login/Login.jsx +1 -1
- package/src/components/theme/View/AlbumView.jsx +9 -1
- package/src/components/theme/View/EventView.jsx +6 -2
- package/src/components/theme/View/FileView.jsx +23 -18
- package/src/components/theme/View/ImageView.jsx +37 -32
- package/src/components/theme/View/LinkView.jsx +4 -1
- package/src/components/theme/View/ListingView.jsx +33 -27
- package/src/components/theme/View/SummaryView.jsx +47 -38
- package/src/components/theme/View/TabularView.jsx +59 -53
- package/src/config/RichTextEditor/Blocks.jsx +2 -2
- package/src/config/RichTextEditor/FromHTML.jsx +2 -2
- package/src/config/RichTextEditor/Styles.jsx +1 -1
- package/src/config/index.js +1 -0
- package/src/config/server.js +2 -0
- package/src/constants/Indexes.js +3 -1
- package/src/express-middleware/devproxy.js +1 -1
- package/src/express-middleware/files.js +3 -3
- package/src/express-middleware/images.js +4 -4
- package/src/express-middleware/ok.js +16 -0
- package/src/express-middleware/robotstxt.js +1 -1
- package/src/express-middleware/sitemap.js +1 -1
- package/src/express-middleware/static.js +3 -3
- package/src/helpers/Extensions/index.js +2 -1
- package/src/helpers/Url/Url.js +22 -1
- package/src/helpers/Url/Url.test.js +41 -0
- package/src/helpers/index.js +9 -10
- package/src/middleware/index.js +2 -2
- package/src/start-server.js +2 -2
- package/theme/themes/pastanaga/extras/blocks.less +3 -1
- package/theme/themes/pastanaga/extras/main.less +2 -1
- package/theme/themes/pastanaga/extras/toc.less +29 -0
package/src/middleware/index.js
CHANGED
|
@@ -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,
|
package/src/start-server.js
CHANGED
|
@@ -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:
|
|
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: @
|
|
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
|
+
}
|