@plone/volto 16.30.3 → 16.31.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.
Files changed (40) hide show
  1. package/.changelog.draft +3 -4
  2. package/.yarn/install-state.gz +0 -0
  3. package/CHANGELOG.md +14 -0
  4. package/locales/ca/LC_MESSAGES/volto.po +899 -902
  5. package/locales/de/LC_MESSAGES/volto.po +899 -900
  6. package/locales/en/LC_MESSAGES/volto.po +899 -899
  7. package/locales/en.json +1 -1
  8. package/locales/es/LC_MESSAGES/volto.po +899 -903
  9. package/locales/eu/LC_MESSAGES/volto.po +899 -899
  10. package/locales/fi/LC_MESSAGES/volto.po +899 -905
  11. package/locales/fr/LC_MESSAGES/volto.po +899 -909
  12. package/locales/it/LC_MESSAGES/volto.po +899 -899
  13. package/locales/ja/LC_MESSAGES/volto.po +899 -902
  14. package/locales/nl/LC_MESSAGES/volto.po +899 -902
  15. package/locales/pt/LC_MESSAGES/volto.po +899 -902
  16. package/locales/pt_BR/LC_MESSAGES/volto.po +899 -903
  17. package/locales/ro/LC_MESSAGES/volto.po +899 -899
  18. package/locales/volto.pot +901 -901
  19. package/locales/zh_CN/LC_MESSAGES/volto.po +899 -899
  20. package/package.json +1 -1
  21. package/packages/volto-slate/news/5779.bugfix +1 -0
  22. package/packages/volto-slate/package.json +1 -1
  23. package/packages/volto-slate/src/blocks/Table/TableBlockEdit.jsx +5 -11
  24. package/src/actions/form/form.js +19 -0
  25. package/src/actions/form/form.test.js +14 -0
  26. package/src/actions/index.js +1 -0
  27. package/src/components/manage/Add/Add.jsx +1 -0
  28. package/src/components/manage/Contents/ContentsUploadModal.jsx +31 -4
  29. package/src/components/manage/Edit/Edit.jsx +1 -0
  30. package/src/components/manage/Form/Form.jsx +92 -48
  31. package/src/config/index.js +1 -0
  32. package/src/constants/ActionTypes.js +1 -0
  33. package/src/helpers/Blocks/Blocks.js +25 -0
  34. package/src/helpers/Blocks/Blocks.test.js +37 -0
  35. package/src/helpers/Utils/usePagination.js +2 -7
  36. package/src/helpers/index.js +2 -0
  37. package/src/reducers/form/form.js +15 -3
  38. package/src/reducers/form/form.test.js +13 -1
  39. package/test-setup-config.js +1 -0
  40. package/theme/themes/pastanaga/extras/contents.less +11 -0
@@ -1,7 +1,19 @@
1
1
  import form from './form';
2
+ import { SET_FORM_DATA } from '@plone/volto/constants/ActionTypes';
2
3
 
3
4
  describe('Form reducer', () => {
4
5
  it('should return the initial state', () => {
5
- expect(form()).toEqual({});
6
+ expect(form()).toEqual({ global: {} });
7
+ });
8
+
9
+ it('should handle SET_FORM_DATA', () => {
10
+ expect(
11
+ form(undefined, {
12
+ type: SET_FORM_DATA,
13
+ data: { foo: 'bar' },
14
+ }),
15
+ ).toEqual({
16
+ global: { foo: 'bar' },
17
+ });
6
18
  });
7
19
  });
@@ -82,6 +82,7 @@ config.set('settings', {
82
82
  viewableInBrowserObjects: [],
83
83
  styleClassNameConverters,
84
84
  styleClassNameExtenders,
85
+ containerBlockTypes: [],
85
86
  });
86
87
  config.set('blocks', {
87
88
  blocksConfig: {
@@ -209,3 +209,14 @@
209
209
  align-items: center;
210
210
  margin-top: 2rem;
211
211
  }
212
+
213
+ /* Contents Upload Modal */
214
+ .contents-upload-modal {
215
+ .file-name {
216
+ width: 75%;
217
+
218
+ input {
219
+ padding: 0.67857143em 1em;
220
+ }
221
+ }
222
+ }