@plone/volto 16.20.6 → 16.20.8

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 (61) hide show
  1. package/.changelog.draft +8 -2
  2. package/.editorconfig +0 -2
  3. package/.yarn/install-state.gz +0 -0
  4. package/CHANGELOG.md +31 -0
  5. package/locales/ca/LC_MESSAGES/volto.po +5 -0
  6. package/locales/ca.json +1 -1
  7. package/locales/de/LC_MESSAGES/volto.po +5 -0
  8. package/locales/de.json +1 -1
  9. package/locales/en/LC_MESSAGES/volto.po +5 -0
  10. package/locales/en.json +1 -1
  11. package/locales/es/LC_MESSAGES/volto.po +5 -0
  12. package/locales/es.json +1 -1
  13. package/locales/eu/LC_MESSAGES/volto.po +5 -0
  14. package/locales/eu.json +1 -1
  15. package/locales/fi/LC_MESSAGES/volto.po +5 -0
  16. package/locales/fi.json +1 -1
  17. package/locales/fr/LC_MESSAGES/volto.po +5 -0
  18. package/locales/fr.json +1 -1
  19. package/locales/it/LC_MESSAGES/volto.po +5 -0
  20. package/locales/it.json +1 -1
  21. package/locales/ja/LC_MESSAGES/volto.po +5 -0
  22. package/locales/ja.json +1 -1
  23. package/locales/nl/LC_MESSAGES/volto.po +5 -0
  24. package/locales/nl.json +1 -1
  25. package/locales/pt/LC_MESSAGES/volto.po +5 -0
  26. package/locales/pt.json +1 -1
  27. package/locales/pt_BR/LC_MESSAGES/volto.po +5 -0
  28. package/locales/pt_BR.json +1 -1
  29. package/locales/ro/LC_MESSAGES/volto.po +5 -0
  30. package/locales/ro.json +1 -1
  31. package/locales/volto.pot +6 -1
  32. package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
  33. package/locales/zh_CN.json +1 -1
  34. package/package.json +1 -1
  35. package/packages/volto-slate/build/messages/src/blocks/Table/TableBlockEdit.json +1 -1
  36. package/packages/volto-slate/build/messages/src/blocks/Text/DefaultTextBlockEditor.json +1 -1
  37. package/packages/volto-slate/build/messages/src/blocks/Text/DetachedTextBlockEditor.json +1 -1
  38. package/packages/volto-slate/build/messages/src/blocks/Text/SlashMenu.json +1 -1
  39. package/packages/volto-slate/build/messages/src/editor/plugins/AdvancedLink/index.json +1 -1
  40. package/packages/volto-slate/build/messages/src/editor/plugins/Link/index.json +1 -1
  41. package/packages/volto-slate/build/messages/src/editor/plugins/Table/index.json +1 -1
  42. package/packages/volto-slate/build/messages/src/elementEditor/messages.json +1 -1
  43. package/packages/volto-slate/build/messages/src/widgets/HtmlSlateWidget.json +1 -1
  44. package/packages/volto-slate/build/messages/src/widgets/RichTextWidgetView.json +1 -1
  45. package/packages/volto-slate/package.json +1 -1
  46. package/packages/volto-slate/src/blocks/Text/SlashMenu.jsx +4 -3
  47. package/packages/volto-slate/src/editor/deserialize.js +0 -1
  48. package/src/components/manage/BlockChooser/BlockChooser.jsx +8 -3
  49. package/src/components/manage/BlockChooser/BlockChooser.test.jsx +5 -0
  50. package/src/components/manage/Contents/Contents.jsx +2 -0
  51. package/src/components/manage/Contents/ContentsItem.jsx +6 -0
  52. package/src/components/theme/NotFound/NotFound.jsx +55 -41
  53. package/src/components/theme/View/RenderBlocks.jsx +7 -1
  54. package/src/constants/Languages.js +8 -4
  55. package/src/helpers/Api/Api.js +1 -1
  56. package/src/helpers/Html/Html.jsx +3 -1
  57. package/src/helpers/Html/Html.test.jsx +5 -0
  58. package/src/reducers/actions/actions.js +1 -1
  59. package/src/reducers/breadcrumbs/breadcrumbs.js +1 -1
  60. package/src/reducers/navigation/navigation.js +1 -1
  61. package/src/reducers/types/types.js +1 -1
@@ -44,7 +44,13 @@ const RenderBlocks = (props) => {
44
44
  });
45
45
 
46
46
  return Block ? (
47
- <StyleWrapper key={block} {...props} id={block} data={blockData}>
47
+ <StyleWrapper
48
+ key={block}
49
+ {...props}
50
+ id={block}
51
+ block={block}
52
+ data={blockData}
53
+ >
48
54
  <Block
49
55
  id={block}
50
56
  metadata={metadata}
@@ -4,14 +4,18 @@
4
4
  */
5
5
 
6
6
  module.exports = {
7
- en: 'English',
7
+ ca: 'Català',
8
8
  de: 'Deutsch',
9
+ en: 'English',
10
+ es: 'Español',
11
+ eu: 'Euskara',
12
+ fi: 'Suomi',
13
+ fr: 'Français',
14
+ it: 'Italiano',
9
15
  nl: 'Nederlands',
10
16
  ro: 'Română',
11
17
  ja: '日本語',
12
18
  pt: 'Português',
13
19
  pt_BR: 'Português (Brasil)',
14
- es: 'Spanish',
15
- it: 'Italian',
16
- eu: 'Euskara',
20
+ zh_CN: '中文',
17
21
  };
@@ -89,7 +89,7 @@ class Api {
89
89
  checkUrl &&
90
90
  request.url &&
91
91
  request.xhr &&
92
- stripQuerystring(request.url) !==
92
+ encodeURI(stripQuerystring(request.url)) !==
93
93
  stripQuerystring(request.xhr.responseURL)
94
94
  ) {
95
95
  if (request.xhr.responseURL?.length === 0) {
@@ -97,8 +97,10 @@ class Html extends Component {
97
97
  } = this.props;
98
98
  const head = Helmet.rewind();
99
99
  const bodyClass = join(BodyClass.rewind(), ' ');
100
+ const htmlAttributes = head.htmlAttributes.toComponent();
101
+
100
102
  return (
101
- <html lang="en">
103
+ <html lang={htmlAttributes.lang}>
102
104
  <head>
103
105
  <meta charSet="utf-8" />
104
106
  {head.base.toComponent()}
@@ -20,6 +20,11 @@ jest.mock('../Helmet/Helmet', () => ({
20
20
  script: {
21
21
  toComponent: () => '',
22
22
  },
23
+ htmlAttributes: {
24
+ toComponent: () => ({
25
+ lang: 'en',
26
+ }),
27
+ },
23
28
  }),
24
29
  }));
25
30
 
@@ -46,7 +46,7 @@ export default function actions(state = initialState, action = {}) {
46
46
  'actions',
47
47
  getBaseUrl(flattenToAppURL(action.result['@id'])),
48
48
  );
49
- if (hasExpander) {
49
+ if (hasExpander && !action.subrequest) {
50
50
  return {
51
51
  ...state,
52
52
  error: null,
@@ -45,7 +45,7 @@ export default function breadcrumbs(state = initialState, action = {}) {
45
45
  'breadcrumbs',
46
46
  getBaseUrl(flattenToAppURL(action.result['@id'])),
47
47
  );
48
- if (hasExpander) {
48
+ if (hasExpander && !action.subrequest) {
49
49
  return {
50
50
  ...state,
51
51
  error: null,
@@ -60,7 +60,7 @@ export default function navigation(state = initialState, action = {}) {
60
60
  'navigation',
61
61
  getBaseUrl(flattenToAppURL(action.result['@id'])),
62
62
  );
63
- if (hasExpander) {
63
+ if (hasExpander && !action.subrequest) {
64
64
  return {
65
65
  ...state,
66
66
  error: null,
@@ -39,7 +39,7 @@ export default function types(state = initialState, action = {}) {
39
39
  'types',
40
40
  getBaseUrl(flattenToAppURL(action.result['@id'])),
41
41
  );
42
- if (hasExpander) {
42
+ if (hasExpander && !action.subrequest) {
43
43
  return {
44
44
  ...state,
45
45
  error: null,