@plone/volto 18.20.0 → 19.0.0-alpha.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/.eslintrc.core.js CHANGED
@@ -34,6 +34,12 @@ if (process.env.VOLTOCONFIG) {
34
34
  message:
35
35
  "Importing directly from `lodash` is not allowed. Please use `import <helper> from 'lodash/<helper>'` instead.",
36
36
  },
37
+ {
38
+ name: 'semantic-ui-react',
39
+ importNames: ['Image'],
40
+ message:
41
+ "Don't import 'Image' from 'semantic-ui-react'. Please use @plone/volto/components/theme/Image/Image.",
42
+ },
37
43
  ],
38
44
  };
39
45
  }
package/CHANGELOG.md CHANGED
@@ -17,20 +17,11 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
- ## 18.20.0 (2025-05-12)
21
-
22
- ### Feature
23
-
24
- - Fix translations default of ContentsDeleteModal: 'linkintegrity: delete' -> 'delete' if no link to break. @ksuess [#6964](https://github.com/plone/volto/issues/6964)
25
-
26
- ### Bugfix
27
-
28
- - Improve typings in ConditionalLink component, add TS tests to catch the bad typings. @sneridagh [#7057](https://github.com/plone/volto/issues/7057)
29
-
30
- ## 18.19.0 (2025-05-08)
20
+ ## 19.0.0-alpha.1 (2025-05-16)
31
21
 
32
22
  ### Feature
33
23
 
24
+ - Volto core has migrated from Jest to Vitest as its unit test runner. @Abhishek-17h [#6326](https://github.com/plone/volto/issues/6326)
34
25
  - Refactor the UniversalLink component using typescript.
35
26
  Use union types for deciding between href or item.
36
27
  Modify tsconfig, include types located in `types` folder, otherwise d.ts files will noch be recognized in .tsx files, e.g. inside components. I need this for the `react-router-hash-link` package, that we use in the UniversalLink component. The specific file is `/types/react-router-hash-link.d.ts`.
@@ -40,110 +31,57 @@ myst:
40
31
 
41
32
  @tomschall [#6826](https://github.com/plone/volto/issues/6826)
42
33
  - `ConditionalLink` in TypeScript. @sneridagh [#6959](https://github.com/plone/volto/issues/6959)
43
-
44
- ### Internal
45
-
46
- - Fixed types of #6826 in build:types. @sneridagh
47
-
48
- ## 18.18.0 (2025-05-08)
49
-
50
- ### Feature
51
-
52
- - Enhance the `ImageInput` component to only accept image files. [@jnptk] [#6926](https://github.com/plone/volto/issues/6926)
53
-
54
- ### Bugfix
55
-
56
- - Fixed stuck states in the Image Upload Widget by resetting uploading after failed size validation and dragging after image deletion or drag events, ensuring proper functionality and user feedback. [#7045](https://github.com/plone/volto/issues/7045)
57
-
58
- ## 18.17.0 (2025-05-06)
59
-
60
- ### Feature
61
-
62
- - Added `contained` class if `isContainer` prop is passed (from containers). @sneridagh [#7043](https://github.com/plone/volto/issues/7043)
63
-
64
- ## 18.16.0 (2025-05-01)
65
-
66
- ### Feature
67
-
34
+ - Allow `object_list` widget to receive a `schemaName` prop, mapped to an utility. @sneridagh [#7007](https://github.com/plone/volto/issues/7007)
35
+ - Added current evaluated `querystring` as a parameter in expander's `querystring` key when it's a function. @sneridagh [#7012](https://github.com/plone/volto/issues/7012)
36
+ - Move `MaybeWrap` to TypeScript. @sneridagh [#7029](https://github.com/plone/volto/issues/7029)
68
37
  - Rename `vitest.config.ts` to `vitest.config.mjs` for allowing it to be loaded from add-ons. @sneridagh [#7035](https://github.com/plone/volto/issues/7035)
38
+ - Added `contained` class if `isContainer` prop is passed (from containers). @sneridagh [#7043](https://github.com/plone/volto/issues/7043)
39
+ - The `Add` component can now optionally receive `initialFormData` from the `CreateTranslation` component. This makes it possible for a custom `CreateTranslation` implementation to fully control the initial translation. @Tishasoumya-02 [#7073](https://github.com/plone/volto/issues/7073)
69
40
 
70
41
  ### Bugfix
71
42
 
43
+ - Fixed broken tests in add-ons in Volto 18.12.0. @Abhishek-17h [#6989](https://github.com/plone/volto/issues/6989)
44
+ - Add support for both Vitest and Jest in `__mocks__` folders of Volto core. Add-on tests using Jest relies on them. @Abhishek-17h [#7000](https://github.com/plone/volto/issues/7000)
72
45
  - Added missing dependency for `sgvo`. Fixed `svgo` library loading in `./vite-plugins/svg.js`. @sneridagh [#7035](https://github.com/plone/volto/issues/7035)
73
46
  - Rename `./vite-plugins/svg.js` to proper extension `vite-plugins/svg.mjs`. @sneridagh [#7035](https://github.com/plone/volto/issues/7035)
74
-
75
- ## 18.15.1 (2025-04-30)
76
-
77
- ### Internal
78
-
79
- - Rereleasing due to a new patch release (`1.4.3`) in `@plone/types`. @sneridagh
80
-
81
- ## 18.15.0 (2025-04-30)
82
-
83
- ### Feature
84
-
85
- - Move `MaybeWrap` to TypeScript. @sneridagh [#7029](https://github.com/plone/volto/issues/7029)
86
-
87
- ## 18.14.1 (2025-04-25)
88
-
89
- ### Bugfix
90
-
91
- - Add support for both Vitest and Jest in `__mocks__` folders of Volto core. Add-on tests using Jest relies on them. @Abhishek-17h [#7000](https://github.com/plone/volto/issues/7000)
92
-
93
- ## 18.14.0 (2025-04-23)
94
-
95
- ### Feature
96
-
97
- - Added current evaluated `querystring` as a parameter in expander's `querystring` key when it's a function. @sneridagh [#7012](https://github.com/plone/volto/issues/7012)
98
-
99
- ## 18.13.0 (2025-04-22)
100
-
101
- ### Feature
102
-
103
- - Allow `object_list` widget to receive a `schemaName` prop, mapped to an utility. @sneridagh [#7007](https://github.com/plone/volto/issues/7007)
104
-
105
- ## 18.12.1 (2025-04-15)
106
-
107
- ### Bugfix
108
-
109
- - Fixed broken tests in add-ons in Volto 18.12.0. @Abhishek-17h [#6989](https://github.com/plone/volto/issues/6989)
110
-
111
- ### Internal
112
-
113
- - Removes make commands in root of repository whose packages no longer exist. @wesleybl [#6975](https://github.com/plone/volto/issues/6975)
114
- - Use `Image` from `@plone/volto/components/theme/Image/Image` instead of `semantic-ui-react` in `ContentsUploadModal`. @wesleybl [#6982](https://github.com/plone/volto/issues/6982)
115
-
116
- ## 18.12.0 (2025-04-12)
117
-
118
- ### Feature
119
-
120
- - Volto core has migrated from Jest to Vitest as its unit test runner. @Abhishek-17h [#6326](https://github.com/plone/volto/issues/6326)
121
-
122
- ### Bugfix
123
-
124
- - Call `initialValue` consistently by passing `null` instead of `{}` to `blocksConfig`. @Abhishek-17h [#6952](https://github.com/plone/volto/issues/6952)
47
+ - Fixed stuck states in the Image Upload Widget by resetting uploading after failed size validation and dragging after image deletion or drag events, ensuring proper functionality and user feedback. [#7045](https://github.com/plone/volto/issues/7045)
48
+ - Improve typings in ConditionalLink component, add TS tests to catch the bad typings. @sneridagh [#7057](https://github.com/plone/volto/issues/7057)
125
49
 
126
50
  ### Internal
127
51
 
128
- - Make the Cypress `getSlateEditorAndType` and `getSlateEditorSelectorAndType` commands more robust, avoiding timeouts. @wesleybl [#6962](https://github.com/plone/volto/issues/6962)
129
- - Use `Image` from `@plone/volto/components/theme/Image/Image` instead of `semantic-ui-react`. @wesleybl [#6963](https://github.com/plone/volto/issues/6963)
130
- - Fixes Cypress "Index Text Block" test. @wesleybl [#6968](https://github.com/plone/volto/issues/6968)
131
- - Fix Cypress "Test Yearly recurrence" test. @wesleybl [#6971](https://github.com/plone/volto/issues/6971)
52
+ - Fixed types of #6826 in build:types. @sneridagh
132
53
 
133
54
  ### Documentation
134
55
 
135
- - Backport of #6953 to Volto 18. @wesleybl [#6966](https://github.com/plone/volto/issues/6966)
56
+ - Pin plone-sphinx-theme to prepare for PLIP 4097. See https://github.com/plone/Products.CMFPlone/issues/4097. @stevepiercy [#7015](https://github.com/plone/volto/issues/7015)
57
+ - Corrected Redux-related docs.
58
+ Better word wrapping in Redux-related docs.
59
+ Added link to Redux development add-on for Firefox.
60
+ @silviubogan [#7023](https://github.com/plone/volto/issues/7023)
61
+ - Updated documentation code example from Jest to Vitest in the "Bundle size optimization" chapter. @Abhishek-17h [#7024](https://github.com/plone/volto/issues/7024)
62
+ - Add version added admonition to Upgrade Guide for migrating grid blocks, and link from Upgrade Guide to Grid Block documentation. @ionlizarazu [#7027](https://github.com/plone/volto/issues/7027)
136
63
 
137
- ## 18.11.1 (2025-04-07)
64
+ ## 19.0.0-alpha.0 (2025-04-12)
138
65
 
139
- ### Bugfix
66
+ ### Breaking
140
67
 
141
- - Fixed regression on brown bag minor version of `@storybook/addon-webpack5-compiler-babel`. @sneridagh [#6930](https://github.com/plone/volto/issues/6930)
68
+ - The `getVocabulary` and `getQuerystring` actions now fetch vocabularies in
69
+ the context of the current content item, using the vocabulary URLs provided
70
+ by the backend.
71
+ Previously they were always fetched at the Plone site root.
72
+ @davisagli [#3216](https://github.com/plone/volto/issues/3216)
73
+ - Removed Semantic UI CSS declaration `overflow-x: hidden` from the `body` tag. @sneridagh [#6513](https://github.com/plone/volto/issues/6513)
74
+ - Make the title block non required. @narcis2005 [#6792](https://github.com/plone/volto/issues/6792)
75
+ - Removed support for loading config from project. @sneridagh
142
76
 
143
- ## 18.11.0 (2025-03-31)
77
+ Please see the [upgrade guide](https://6.docs.plone.org/volto/upgrade-guide/index.html)
78
+ for more information. [#6842](https://github.com/plone/volto/issues/6842)
79
+ - Fixed redirection logic which now checks for edit permission for deciding wether to redirect or render the link view @pnicolli [#6843](https://github.com/plone/volto/issues/6843)
80
+ - Removed `@plone/volto-testing`, `@plone/volto-guillotina`, `@plone/generator-volto` from the monorepo. @sneridagh [#6848](https://github.com/plone/volto/issues/6848)
144
81
 
145
82
  ### Feature
146
83
 
84
+ - Complete missing german translations. @ksuess [#6005](https://github.com/plone/volto/issues/6005)
147
85
  - Add hidden widget. @robgietema
148
86
  Add static text widget. @robgietema
149
87
  Add time widget. @robgietema
@@ -171,7 +109,6 @@ myst:
171
109
  Don't show request error multiple times when a form is validated. @robgietema
172
110
  Fix a bug where the video block schema was not used for validation. @robgietema [#6370](https://github.com/plone/volto/issues/6370)
173
111
  - Add Russian translation in Volto. @toropok [#6874](https://github.com/plone/volto/issues/6874)
174
- - Use Plone 6.1.1 final. @sneridagh
175
112
  - Enhance the `ImageInput` component to only accept image files. [@jnptk] [#6926](https://github.com/plone/volto/issues/6926)
176
113
  - Fix translations default of ContentsDeleteModal: 'linkintegrity: delete' -> 'delete' if no link to break. @ksuess [#6964](https://github.com/plone/volto/issues/6964)
177
114
  - Use Plone 6.1.1 final. @sneridagh
@@ -184,17 +121,31 @@ myst:
184
121
  - Fix error when saving content with ObjectBrowserNav open. @wesleybl [#6845](https://github.com/plone/volto/issues/6845)
185
122
  - Fix the toolbar icon for the back navigation in the contact form. @kittauri [#6852](https://github.com/plone/volto/issues/6852)
186
123
  - Check if the destination (build public directory) exists before trying to create it in AfterBuildPlugin when consolidating `public` folders from add-ons. @sneridagh [#6853](https://github.com/plone/volto/issues/6853)
187
- - Add `aria-label` for search and cancel buttons for the input on search block. @Wagner3UB [#6862](https://github.com/plone/volto/issues/6862)
124
+ - A11y: Add aria-label for search and cancel buttons for the input in the search block. @Wagner3UB [#6859](https://github.com/plone/volto/issues/6859)
188
125
  - Prevent submit form from ImageWidget. @giuliaghisini [#6879](https://github.com/plone/volto/issues/6879)
189
126
  - Fixed merge public folder from addons regression. @reebalazs @sneridagh [#6919](https://github.com/plone/volto/issues/6919)
127
+ - Fixed regression on brown bag minor version of `@storybook/addon-webpack5-compiler-babel`. @sneridagh [#6930](https://github.com/plone/volto/issues/6930)
128
+ - Call `initialValue` consistently by passing `null` instead of `{}` to `blocksConfig`. @Abhishek-17h [#6952](https://github.com/plone/volto/issues/6952)
190
129
 
191
130
  ### Internal
192
131
 
193
- - Enable documentation builds and update README.md links on branch `18.x.x`. @stevepiercy, @sneridagh [#6876](https://github.com/plone/volto/issues/6876)
132
+ - Use `Image` from `@plone/volto/components/theme/Image/Image` instead of `semantic-ui-react`. @wesleybl [#6754](https://github.com/plone/volto/issues/6754)
133
+ - Added a CI action to mark stale issues and PRs. @pnicolli [#6875](https://github.com/plone/volto/issues/6875)
134
+ - Make the Cypress `getSlateEditorAndType` and `getSlateEditorSelectorAndType` commands more robust, avoiding timeouts. @wesleybl [#6957](https://github.com/plone/volto/issues/6957)
135
+ - Fixes Cypress "Index Text Block" test. @wesleybl [#6965](https://github.com/plone/volto/issues/6965)
136
+ - Fix Cypress "Test Yearly recurrence" test. @wesleybl [#6971](https://github.com/plone/volto/issues/6971)
137
+ - Add eslint rule to avoid importing `Image` from `semantic-ui-react`. @wesleybl [#6974](https://github.com/plone/volto/issues/6974)
138
+ - Removes make commands in root of repository whose packages no longer exist. @wesleybl [#6975](https://github.com/plone/volto/issues/6975)
194
139
 
195
140
  ### Documentation
196
141
 
142
+ - Fix typo in Appextras documentation. @fredvd [#6083](https://github.com/plone/volto/issues/6083)
197
143
  - Changed `LANGUAGE` to `SITE_DEFAULT_LANGUAGE` in documentation examples to align with plone/plone-backend#170 changes. @boss6825 [#6747](https://github.com/plone/volto/issues/6747)
144
+ - Add documentation to configure editor settings to not reformat MyST `.md` files. @stevepiercy. [#6893](https://github.com/plone/volto/issues/6893)
145
+ - Revert reformatting of MyST. @stevepiercy [#6894](https://github.com/plone/volto/issues/6894)
146
+ - Move includes from `plone/documentation` to `plone/volto`. @stevepiercy [#6917](https://github.com/plone/volto/issues/6917)
147
+ - Move _hardware-requirements.md from `plone/documentation` to `plone/volto`. @stevepiercy [#6918](https://github.com/plone/volto/issues/6918)
148
+ - Remove duplicate configuration item `html_title`. @stevepiercy [#6933](https://github.com/plone/volto/issues/6933)
198
149
 
199
150
  ## 18.10.1 (2025-03-14)
200
151
 
package/README.md CHANGED
@@ -47,15 +47,12 @@ This allows the code to be shared effectively, and unifies tracking of changes a
47
47
  |---|---|
48
48
  | [`@plone/client`](https://www.npmjs.com/package/@plone/client) | [`packages/client`](https://github.com/plone/volto/tree/main/packages/client#readme) |
49
49
  | [`@plone/components`](https://www.npmjs.com/package/@plone/components) | [`packages/components`](https://github.com/plone/volto/tree/main/packages/components#readme) |
50
- | [`@plone/generator-volto`](https://www.npmjs.com/package/@plone/generator-volto) | [`packages/generator-volto`](https://github.com/plone/volto/tree/18.x.x/packages/generator-volto#readme) |
51
50
  | [`@plone/helpers`](https://www.npmjs.com/package/@plone/helpers) | [`packages/helpers`](https://github.com/plone/volto/tree/main/packages/helpers#readme) |
52
51
  | [`@plone/providers`](https://www.npmjs.com/package/@plone/providers) | [`packages/providers`](https://github.com/plone/volto/tree/main/packages/providers#readme) |
53
52
  | [`@plone/registry`](https://www.npmjs.com/package/@plone/registry) | [`packages/registry`](https://github.com/plone/volto/tree/main/packages/registry#readme) |
54
53
  | [`@plone/scripts`](https://www.npmjs.com/package/@plone/scripts) | [`packages/scripts`](https://github.com/plone/volto/tree/main/packages/scripts#readme) |
55
54
  | [`@plone/types`](https://www.npmjs.com/package/@plone/types) | [`packages/types`](https://github.com/plone/volto/tree/main/packages/types#readme) |
56
- | none | [`packages/volto-guillotina`](https://github.com/plone/volto/tree/18.x.x/packages/volto-guillotina) |
57
55
  | [`@plone/volto-slate`](https://www.npmjs.com/package/@plone/volto-slate) | [`packages/volto-slate`](https://github.com/plone/volto/tree/main/packages/volto-slate#readme) |
58
- | [`@plone/volto-testing`](https://www.npmjs.com/package/@plone/volto-testing) | [`packages/volto-testing`](https://github.com/plone/volto/tree/18.x.x/packages/volto-testing) |
59
56
 
60
57
  See also [Monorepo structure](https://6.docs.plone.org/volto/contributing/developing-core.html#monorepo-structure).
61
58