@plone/volto 14.0.0-alpha.11 → 14.0.0-alpha.12
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 +12 -0
- package/README.md +2 -2
- package/addon-registry.js +2 -2
- package/docker-compose.yml +2 -2
- package/package.json +2 -1
- package/src/helpers/FormValidation/FormValidation.js +4 -2
- package/src/helpers/FormValidation/FormValidation.test.js +1 -1
- package/src/helpers/Sitemap/Sitemap.js +1 -1
- package/src/server.jsx +7 -2
- package/src/start-client.jsx +2 -4
- package/.tx/config +0 -10
- package/cypress/screenshots/blocks-image.js/Blocks Tests -- Add image block (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/blocks-image.js/Blocks Tests -- Add image block (failed).png +0 -0
- package/cypress/screenshots/blocks-listing.js/Listing Block Tests -- Listing block - Test Criteria Location relative (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/blocks-listing.js/Listing Block Tests -- Listing block - Test Criteria Location relative (failed).png +0 -0
- package/cypress/screenshots/blocks-listing.js/Listing Block Tests -- Listing block - Test Criteria Location relative -- before each hook (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/blocks-listing.js/Listing block - Test Criteria Location relative -- after each hook (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/blocks-listing.js/Listing block - Test Criteria Location relative -- after each hook (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/blocks-listing.js/Listing block - Test Criteria Location relative -- after each hook (failed).png +0 -0
- package/cypress/screenshots/folder-contents.js/Folder Contents Tests -- Remember indexes (failed).png +0 -0
- package/cypress/screenshots/groups-controlpanel.js/Groups Control Panel Test -- Should delete a group from controlPanel (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/groups-controlpanel.js/Groups Control Panel Test -- Should delete a group from controlPanel (failed).png +0 -0
- package/cypress/screenshots/groups-controlpanel.js/Groups Control Panel Test -- Should delete a group from controlPanel -- before each hook (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/groups-controlpanel.js/Should delete a group from controlPanel -- after each hook (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/groups-controlpanel.js/Should delete a group from controlPanel -- after each hook (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/groups-controlpanel.js/Should delete a group from controlPanel -- after each hook (failed).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, I can see when a page is currently edited by another user (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, I can see when a page is currently edited by another user (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, I can see when a page is currently edited by another user (failed).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, I can unlock a locked page (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, I can unlock a locked page (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, I can unlock a locked page (failed).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, a page is locked for other users when I edit that page (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, a page is locked for other users when I edit that page (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/locking.js/Document locking -- As editor, a page is locked for other users when I edit that page (failed).png +0 -0
- package/cypress/screenshots/objectBrowser.js/Object Browser Tests -- As editor I can add the full url in search box in sidebar (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/objectBrowser.js/Object Browser Tests -- As editor I can add the full url in search box in sidebar (failed) (attempt 3).png +0 -0
- package/cypress/screenshots/objectBrowser.js/Object Browser Tests -- As editor I can add the full url in search box in sidebar (failed).png +0 -0
- package/cypress/videos/FileWidget.js.mp4 +0 -0
- package/cypress/videos/a11y.js.mp4 +0 -0
- package/cypress/videos/addons-controlpanel.js.mp4 +0 -0
- package/cypress/videos/autologin.js.mp4 +0 -0
- package/cypress/videos/blocks-copypaste.js.mp4 +0 -0
- package/cypress/videos/blocks-image.js.mp4 +0 -0
- package/cypress/videos/blocks-indexing.js.mp4 +0 -0
- package/cypress/videos/blocks-listing.js.mp4 +0 -0
- package/cypress/videos/blocks-text.js.mp4 +0 -0
- package/cypress/videos/blocks-video.js.mp4 +0 -0
- package/cypress/videos/blocks.js.mp4 +0 -0
- package/cypress/videos/comments.js.mp4 +0 -0
- package/cypress/videos/content.js.mp4 +0 -0
- package/cypress/videos/createContent.js.mp4 +0 -0
- package/cypress/videos/dexterity-controlpanel-layout.js.mp4 +0 -0
- package/cypress/videos/dexterity-controlpanel-schema.js.mp4 +0 -0
- package/cypress/videos/dexterity-controlpanel.js.mp4 +0 -0
- package/cypress/videos/folder-contents.js.mp4 +0 -0
- package/cypress/videos/groups-controlpanel.js.mp4 +0 -0
- package/cypress/videos/history.js.mp4 +0 -0
- package/cypress/videos/listing-template.js.mp4 +0 -0
- package/cypress/videos/locking.js.mp4 +0 -0
- package/cypress/videos/login.js.mp4 +0 -0
- package/cypress/videos/metadata.js.mp4 +0 -0
- package/cypress/videos/navigation.js.mp4 +0 -0
- package/cypress/videos/objectBrowser.js.mp4 +0 -0
- package/cypress/videos/recurrence-widget.js.mp4 +0 -0
- package/cypress/videos/search.js.mp4 +0 -0
- package/cypress/videos/set-registry.js.mp4 +0 -0
- package/cypress/videos/sharing.js.mp4 +0 -0
- package/cypress/videos/user-control-panel.js.mp4 +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.0.0-alpha.12 (2021-09-29)
|
|
4
|
+
|
|
5
|
+
### Bugfix
|
|
6
|
+
|
|
7
|
+
- Show correct fieldname and not internal field id in Toast error messages on Add/Edit forms @jackahl
|
|
8
|
+
- sitemap.xml.gz obeys Plone Search settings @erral
|
|
9
|
+
|
|
10
|
+
### Internal
|
|
11
|
+
|
|
12
|
+
- Use plone.volto instead of kitconcept.volto @tisto
|
|
13
|
+
- Silence customization errors, they are now behind a `RAZZLE_DEBUG_CUSTOMIZATIONS` enviroment variable @sneridagh
|
|
14
|
+
|
|
3
15
|
## 14.0.0-alpha.11 (2021-09-25)
|
|
4
16
|
|
|
5
17
|
### Internal
|
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ We recommend Plone as backend of choice for Volto.
|
|
|
79
79
|
You can bootstrap a ready Docker Plone container with all the dependencies and ready for Volto use:
|
|
80
80
|
|
|
81
81
|
```shell
|
|
82
|
-
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e ADDONS="
|
|
82
|
+
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e ADDONS="plone.volto" -e ZCML="plone.volto.cors" -e PROFILES="plone.volto:default-homepage" plone
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
or as an alternative if you have experience with Plone and you have all the
|
|
@@ -200,7 +200,7 @@ yarn
|
|
|
200
200
|
Either using a Docker image
|
|
201
201
|
|
|
202
202
|
```shell
|
|
203
|
-
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e ADDONS="
|
|
203
|
+
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e ADDONS="plone.volto" -e ZCML="plone.volto.cors" -e PROFILES="plone.volto:default-homepage" plone
|
|
204
204
|
```
|
|
205
205
|
|
|
206
206
|
or using the convenience makefile command:
|
package/addon-registry.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const glob = require('glob').sync;
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const fs = require('fs');
|
|
5
|
-
|
|
5
|
+
const debug = require('debug')('shadowing');
|
|
6
6
|
const { map } = require('lodash');
|
|
7
7
|
const { DepGraph } = require('dependency-graph');
|
|
8
8
|
|
|
@@ -322,7 +322,7 @@ class AddonConfigurationRegistry {
|
|
|
322
322
|
filename.replace(customPath, name).replace(/\.(js|jsx)$/, '')
|
|
323
323
|
] = path.resolve(filename);
|
|
324
324
|
} else {
|
|
325
|
-
|
|
325
|
+
debug(
|
|
326
326
|
`The file ${filename} doesn't exist in the ${name} (${targetPath}), unable to customize.`,
|
|
327
327
|
);
|
|
328
328
|
}
|
package/docker-compose.yml
CHANGED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "14.0.0-alpha.
|
|
12
|
+
"version": "14.0.0-alpha.12",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -273,6 +273,7 @@
|
|
|
273
273
|
"cypress": "7.3.0",
|
|
274
274
|
"cypress-axe": "0.12.2",
|
|
275
275
|
"cypress-file-upload": "5.0.7",
|
|
276
|
+
"debug": "4.3.2",
|
|
276
277
|
"dependency-graph": "0.10.0",
|
|
277
278
|
"detect-browser": "5.1.0",
|
|
278
279
|
"diff": "3.5.0",
|
|
@@ -208,8 +208,10 @@ const validateRequiredFields = (
|
|
|
208
208
|
!schema.properties[requiredField].readonly &&
|
|
209
209
|
isEmpty
|
|
210
210
|
) {
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
const requiredFieldName =
|
|
212
|
+
schema.properties[requiredField].title || requiredField;
|
|
213
|
+
errors[requiredFieldName] = [];
|
|
214
|
+
errors[requiredFieldName].push(formatMessage(messages.required));
|
|
213
215
|
}
|
|
214
216
|
});
|
|
215
217
|
|
|
@@ -21,7 +21,7 @@ export const generateSitemap = (_req) =>
|
|
|
21
21
|
new Promise((resolve) => {
|
|
22
22
|
const { settings } = config;
|
|
23
23
|
const request = superagent.get(
|
|
24
|
-
`${settings.apiPath}/@search?metadata_fields=modified&b_size=100000000`,
|
|
24
|
+
`${settings.apiPath}/@search?metadata_fields=modified&b_size=100000000&use_site_search_settings=1`,
|
|
25
25
|
);
|
|
26
26
|
request.set('Accept', 'application/json');
|
|
27
27
|
const authToken = cookie.load('auth_token');
|
package/src/server.jsx
CHANGED
|
@@ -17,6 +17,7 @@ import { ChunkExtractor, ChunkExtractorManager } from '@loadable/server';
|
|
|
17
17
|
import { createProxyMiddleware } from 'http-proxy-middleware';
|
|
18
18
|
import { resetServerContext } from 'react-beautiful-dnd';
|
|
19
19
|
import querystring from 'querystring';
|
|
20
|
+
import debug from 'debug';
|
|
20
21
|
|
|
21
22
|
import routes from '~/routes';
|
|
22
23
|
import config from '@plone/volto/registry';
|
|
@@ -50,6 +51,10 @@ if (config.settings) {
|
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
function reactIntlErrorHandler(error) {
|
|
55
|
+
debug('i18n')(error);
|
|
56
|
+
}
|
|
57
|
+
|
|
53
58
|
const supported = new locale.Locales(keys(languages), 'en');
|
|
54
59
|
|
|
55
60
|
const expressMiddleware = (config.settings.expressMiddleware || []).filter(
|
|
@@ -153,7 +158,7 @@ function setupServer(req, res, next) {
|
|
|
153
158
|
|
|
154
159
|
function errorHandler(error) {
|
|
155
160
|
const errorPage = (
|
|
156
|
-
<Provider store={store}>
|
|
161
|
+
<Provider store={store} onError={reactIntlErrorHandler}>
|
|
157
162
|
<StaticRouter context={{}} location={req.url}>
|
|
158
163
|
<ErrorPage message={error.message} />
|
|
159
164
|
</StaticRouter>
|
|
@@ -223,7 +228,7 @@ server.get('/*', (req, res) => {
|
|
|
223
228
|
resetServerContext();
|
|
224
229
|
const markup = renderToString(
|
|
225
230
|
<ChunkExtractorManager extractor={extractor}>
|
|
226
|
-
<Provider store={store}>
|
|
231
|
+
<Provider store={store} onError={reactIntlErrorHandler}>
|
|
227
232
|
<StaticRouter context={context} location={req.url}>
|
|
228
233
|
<ReduxAsyncConnect routes={routes} helpers={api} />
|
|
229
234
|
</StaticRouter>
|
package/src/start-client.jsx
CHANGED
|
@@ -7,6 +7,7 @@ import { ConnectedRouter } from 'connected-react-router';
|
|
|
7
7
|
import { createBrowserHistory } from 'history';
|
|
8
8
|
import { ReduxAsyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
9
9
|
import { loadableReady } from '@loadable/component';
|
|
10
|
+
import debug from 'debug';
|
|
10
11
|
import routes from '~/routes';
|
|
11
12
|
import config from '@plone/volto/registry';
|
|
12
13
|
import '~/theme';
|
|
@@ -22,10 +23,7 @@ export const history = createBrowserHistory();
|
|
|
22
23
|
initSentry(Sentry);
|
|
23
24
|
|
|
24
25
|
function reactIntlErrorHandler(error) {
|
|
25
|
-
|
|
26
|
-
/* eslint no-console: 0 */
|
|
27
|
-
console.info(error);
|
|
28
|
-
}
|
|
26
|
+
debug('i18n')(error);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
export default () => {
|
package/.tx/config
DELETED
package/cypress/screenshots/blocks-image.js/Blocks Tests -- Add image block (failed) (attempt 2).png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|