@plone/volto 17.0.0 → 17.0.1
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 +320 -3
- package/RELEASING.md +5 -5
- package/locales/ca/LC_MESSAGES/volto.po +5 -0
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +5 -0
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +5 -0
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +5 -0
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +5 -0
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +5 -0
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +5 -0
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +5 -0
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +5 -0
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +5 -0
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +5 -0
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +5 -0
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +5 -0
- package/locales/ro.json +1 -1
- package/locales/volto.pot +6 -1
- package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
- package/locales/zh_CN.json +1 -1
- package/package.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/src/components/manage/Blocks/Video/View.test.jsx +1 -1
- package/src/components/manage/Sharing/Sharing.jsx +18 -0
- package/src/start-server.js +4 -0
- package/src/storybook.jsx +2 -2
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ test('renders a view video component with placeholder', () => {
|
|
|
40
40
|
'@type': 'video',
|
|
41
41
|
url: 'https://youtu.be/KqjeO_ekW3g',
|
|
42
42
|
preview_image:
|
|
43
|
-
'https://github.com/plone/volto/raw/
|
|
43
|
+
'https://github.com/plone/volto/raw/main/logos/volto-colorful.png',
|
|
44
44
|
}}
|
|
45
45
|
/>,
|
|
46
46
|
);
|
|
@@ -87,6 +87,10 @@ const messages = defineMessages({
|
|
|
87
87
|
id: 'Permissions have been updated successfully',
|
|
88
88
|
defaultMessage: 'Permissions have been updated successfully',
|
|
89
89
|
},
|
|
90
|
+
assignNewRoles: {
|
|
91
|
+
id: 'Assign the {role} role to {entry}',
|
|
92
|
+
defaultMessage: 'Assign the {role} role to {entry}',
|
|
93
|
+
},
|
|
90
94
|
});
|
|
91
95
|
|
|
92
96
|
/**
|
|
@@ -419,6 +423,20 @@ class SharingComponent extends Component {
|
|
|
419
423
|
)}
|
|
420
424
|
{typeof entry.roles[role.id] === 'boolean' && (
|
|
421
425
|
<Checkbox
|
|
426
|
+
name={this.props.intl.formatMessage(
|
|
427
|
+
messages.assignNewRoles,
|
|
428
|
+
{
|
|
429
|
+
entry: entry.title,
|
|
430
|
+
role: role.id,
|
|
431
|
+
},
|
|
432
|
+
)}
|
|
433
|
+
aria-label={this.props.intl.formatMessage(
|
|
434
|
+
messages.assignNewRoles,
|
|
435
|
+
{
|
|
436
|
+
entry: entry.title,
|
|
437
|
+
role: role.id,
|
|
438
|
+
},
|
|
439
|
+
)}
|
|
422
440
|
onChange={this.onChange}
|
|
423
441
|
value={`${entry.id}:${role.id}`}
|
|
424
442
|
checked={entry.roles[role.id]}
|
package/src/start-server.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/* eslint no-console: 0 */
|
|
2
|
+
import dns from 'dns';
|
|
2
3
|
import http from 'http';
|
|
3
4
|
|
|
4
5
|
import app from './server';
|
|
5
6
|
import debug from 'debug';
|
|
6
7
|
|
|
7
8
|
export default function server() {
|
|
9
|
+
// If DNS returns both ipv4 and ipv6 addresses, prefer ipv4
|
|
10
|
+
dns.setDefaultResultOrder('ipv4first');
|
|
11
|
+
|
|
8
12
|
const server = http.createServer(app);
|
|
9
13
|
// const host = process.env.HOST || 'localhost';
|
|
10
14
|
const port = process.env.PORT || 3000;
|
package/src/storybook.jsx
CHANGED
|
@@ -298,7 +298,7 @@ const initialState = () => ({
|
|
|
298
298
|
entityRanges: [],
|
|
299
299
|
inlineStyleRanges: [],
|
|
300
300
|
key: '55n44',
|
|
301
|
-
text: 'You can use this site to test Volto. It runs on the
|
|
301
|
+
text: 'You can use this site to test Volto. It runs on the main branch of Volto using latest Plone 5.2 Backend running on Python 3.',
|
|
302
302
|
type: 'unstyled',
|
|
303
303
|
},
|
|
304
304
|
],
|
|
@@ -886,7 +886,7 @@ const initialState = () => ({
|
|
|
886
886
|
entityRanges: [],
|
|
887
887
|
inlineStyleRanges: [],
|
|
888
888
|
key: '55n44',
|
|
889
|
-
text: 'You can use this site to test Volto. It runs on the
|
|
889
|
+
text: 'You can use this site to test Volto. It runs on the main branch of Volto using latest Plone 5.2 Backend running on Python 3.',
|
|
890
890
|
type: 'unstyled',
|
|
891
891
|
},
|
|
892
892
|
],
|