@plone/volto 19.0.0-alpha.27 → 19.0.0-alpha.28

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 (179) hide show
  1. package/.eslintrc +0 -3
  2. package/CHANGELOG.md +44 -0
  3. package/babel.js +0 -6
  4. package/locales/af/LC_MESSAGES/volto.po +5455 -0
  5. package/locales/af.json +1 -1
  6. package/locales/ar/LC_MESSAGES/volto.po +5455 -0
  7. package/locales/ar.json +1 -1
  8. package/locales/bg/LC_MESSAGES/volto.po +5455 -0
  9. package/locales/bg.json +1 -1
  10. package/locales/bn/LC_MESSAGES/volto.po +5455 -0
  11. package/locales/bn.json +1 -1
  12. package/locales/ca/LC_MESSAGES/volto.po +396 -345
  13. package/locales/ca.json +1 -1
  14. package/locales/cs/LC_MESSAGES/volto.po +5455 -0
  15. package/locales/cs.json +1 -1
  16. package/locales/cy/LC_MESSAGES/volto.po +5455 -0
  17. package/locales/cy.json +1 -1
  18. package/locales/da/LC_MESSAGES/volto.po +5455 -0
  19. package/locales/da.json +1 -1
  20. package/locales/de/LC_MESSAGES/volto.po +60 -8
  21. package/locales/de.json +1 -1
  22. package/locales/el/LC_MESSAGES/volto.po +5455 -0
  23. package/locales/el.json +1 -1
  24. package/locales/en/LC_MESSAGES/volto.po +56 -0
  25. package/locales/en.json +1 -1
  26. package/locales/en_AU/LC_MESSAGES/volto.po +5455 -0
  27. package/locales/en_AU.json +1 -1
  28. package/locales/en_GB/LC_MESSAGES/volto.po +5455 -0
  29. package/locales/en_GB.json +1 -1
  30. package/locales/eo/LC_MESSAGES/volto.po +5455 -0
  31. package/locales/eo.json +1 -1
  32. package/locales/es/LC_MESSAGES/volto.po +165 -114
  33. package/locales/es.json +1 -1
  34. package/locales/et/LC_MESSAGES/volto.po +5455 -0
  35. package/locales/et.json +1 -1
  36. package/locales/eu/LC_MESSAGES/volto.po +248 -197
  37. package/locales/eu.json +1 -1
  38. package/locales/fa/LC_MESSAGES/volto.po +5455 -0
  39. package/locales/fa.json +1 -1
  40. package/locales/fi/LC_MESSAGES/volto.po +52 -1
  41. package/locales/fi.json +1 -1
  42. package/locales/fr/LC_MESSAGES/volto.po +51 -0
  43. package/locales/fr.json +1 -1
  44. package/locales/fu/LC_MESSAGES/volto.po +5455 -0
  45. package/locales/fu.json +1 -1
  46. package/locales/gl/LC_MESSAGES/volto.po +5456 -0
  47. package/locales/gl.json +1 -1
  48. package/locales/he/LC_MESSAGES/volto.po +5455 -0
  49. package/locales/he.json +1 -1
  50. package/locales/hi/LC_MESSAGES/volto.po +56 -0
  51. package/locales/hi.json +1 -1
  52. package/locales/hr/LC_MESSAGES/volto.po +5455 -0
  53. package/locales/hr.json +1 -1
  54. package/locales/hu/LC_MESSAGES/volto.po +5455 -0
  55. package/locales/hu.json +1 -1
  56. package/locales/hy/LC_MESSAGES/volto.po +5455 -0
  57. package/locales/hy.json +1 -1
  58. package/locales/id/LC_MESSAGES/volto.po +5455 -0
  59. package/locales/id.json +1 -1
  60. package/locales/it/LC_MESSAGES/volto.po +81 -25
  61. package/locales/it.json +1 -1
  62. package/locales/ja/LC_MESSAGES/volto.po +95 -43
  63. package/locales/ja.json +1 -1
  64. package/locales/ka/LC_MESSAGES/volto.po +5455 -0
  65. package/locales/ka.json +1 -1
  66. package/locales/kn/LC_MESSAGES/volto.po +5455 -0
  67. package/locales/kn.json +1 -1
  68. package/locales/ko/LC_MESSAGES/volto.po +5455 -0
  69. package/locales/ko.json +1 -1
  70. package/locales/lt/LC_MESSAGES/volto.po +5455 -0
  71. package/locales/lt.json +1 -1
  72. package/locales/lv/LC_MESSAGES/volto.po +5455 -0
  73. package/locales/lv.json +1 -1
  74. package/locales/mi/LC_MESSAGES/volto.po +5455 -0
  75. package/locales/mi.json +1 -1
  76. package/locales/mk/LC_MESSAGES/volto.po +5455 -0
  77. package/locales/mk.json +1 -1
  78. package/locales/my/LC_MESSAGES/volto.po +5455 -0
  79. package/locales/my.json +1 -1
  80. package/locales/nb_NO/LC_MESSAGES/volto.po +5455 -0
  81. package/locales/nb_NO.json +1 -1
  82. package/locales/nl/LC_MESSAGES/volto.po +85 -33
  83. package/locales/nl.json +1 -1
  84. package/locales/nn/LC_MESSAGES/volto.po +5455 -0
  85. package/locales/nn.json +1 -1
  86. package/locales/pl/LC_MESSAGES/volto.po +5455 -0
  87. package/locales/pl.json +1 -1
  88. package/locales/pt/LC_MESSAGES/volto.po +713 -662
  89. package/locales/pt.json +1 -1
  90. package/locales/pt_BR/LC_MESSAGES/volto.po +51 -0
  91. package/locales/pt_BR.json +1 -1
  92. package/locales/rm/LC_MESSAGES/volto.po +5455 -0
  93. package/locales/rm.json +1 -1
  94. package/locales/ro/LC_MESSAGES/volto.po +51 -0
  95. package/locales/ro.json +1 -1
  96. package/locales/ru/LC_MESSAGES/volto.po +51 -0
  97. package/locales/ru.json +1 -1
  98. package/locales/sk/LC_MESSAGES/volto.po +5455 -0
  99. package/locales/sk.json +1 -1
  100. package/locales/sl/LC_MESSAGES/volto.po +5455 -0
  101. package/locales/sl.json +1 -1
  102. package/locales/sm/LC_MESSAGES/volto.po +5455 -0
  103. package/locales/sm.json +1 -1
  104. package/locales/sq/LC_MESSAGES/volto.po +5455 -0
  105. package/locales/sq.json +1 -1
  106. package/locales/sr/LC_MESSAGES/volto.po +5455 -0
  107. package/locales/sr.json +1 -1
  108. package/locales/sr@cyrl/LC_MESSAGES/volto.po +5455 -0
  109. package/locales/sr@cyrl.json +1 -1
  110. package/locales/sr@latn/LC_MESSAGES/volto.po +5455 -0
  111. package/locales/sr@latn.json +1 -1
  112. package/locales/sv/LC_MESSAGES/volto.po +5455 -0
  113. package/locales/sv.json +1 -1
  114. package/locales/ta/LC_MESSAGES/volto.po +5456 -0
  115. package/locales/ta.json +1 -1
  116. package/locales/te/LC_MESSAGES/volto.po +5455 -0
  117. package/locales/te.json +1 -1
  118. package/locales/th/LC_MESSAGES/volto.po +5455 -0
  119. package/locales/th.json +1 -1
  120. package/locales/to/LC_MESSAGES/volto.po +5455 -0
  121. package/locales/to.json +1 -1
  122. package/locales/tr/LC_MESSAGES/volto.po +5456 -0
  123. package/locales/tr.json +1 -1
  124. package/locales/uk/LC_MESSAGES/volto.po +5455 -0
  125. package/locales/uk.json +1 -1
  126. package/locales/vi/LC_MESSAGES/volto.po +5455 -0
  127. package/locales/vi.json +1 -1
  128. package/locales/volto.pot +52 -1
  129. package/locales/zh_CN/LC_MESSAGES/volto.po +52 -0
  130. package/locales/zh_CN.json +1 -1
  131. package/locales/zh_Hant/LC_MESSAGES/volto.po +5455 -0
  132. package/locales/zh_Hant.json +1 -1
  133. package/locales/zh_Hant_HK/LC_MESSAGES/volto.po +5455 -0
  134. package/locales/zh_Hant_HK.json +1 -1
  135. package/package.json +18 -34
  136. package/razzle.config.js +2 -1
  137. package/src/actions/blockTypes/blockTypes.ts +24 -0
  138. package/src/components/manage/Add/Add.jsx +7 -6
  139. package/src/components/manage/Blocks/Title/Edit.jsx +5 -0
  140. package/src/components/manage/Controlpanels/BlockType.tsx +166 -0
  141. package/src/components/manage/Controlpanels/BlockTypes.tsx +145 -0
  142. package/src/components/manage/Controlpanels/Controlpanels.jsx +9 -0
  143. package/src/components/manage/Diff/Diff.jsx +201 -298
  144. package/src/components/manage/Multilingual/CreateTranslation.jsx +8 -5
  145. package/src/components/manage/Multilingual/ManageTranslations.jsx +1 -1
  146. package/src/components/manage/Multilingual/TranslationObject.jsx +9 -6
  147. package/src/components/manage/Preferences/PersonalPreferences.jsx +8 -5
  148. package/src/components/manage/Toolbar/Types.crash.test.jsx +48 -0
  149. package/src/components/manage/Widgets/RegistryImageWidget.jsx +1 -1
  150. package/src/config/ControlPanels.js +2 -0
  151. package/src/config/validation.ts +8 -0
  152. package/src/constants/ActionTypes.js +1 -0
  153. package/src/express-middleware/devproxy.js +3 -1
  154. package/src/helpers/Blocks/Blocks.js +6 -6
  155. package/src/helpers/FormValidation/FormValidation.test.js +31 -0
  156. package/src/helpers/FormValidation/validators.ts +21 -0
  157. package/src/helpers/MessageLabels/MessageLabels.js +5 -0
  158. package/src/middleware/api.js +7 -3
  159. package/src/reducers/blockTypes/blockTypes.js +38 -0
  160. package/src/reducers/index.js +2 -0
  161. package/src/routes.js +10 -0
  162. package/src/server.jsx +7 -5
  163. package/test-setup-globals.js +26 -0
  164. package/theme/themes/pastanaga/extras/block-types.less +17 -0
  165. package/theme/themes/pastanaga/extras/main.less +1 -0
  166. package/types/actions/blockTypes/blockTypes.d.ts +7 -0
  167. package/types/components/index.d.ts +1 -1
  168. package/types/components/manage/Controlpanels/BlockType.d.ts +7 -0
  169. package/types/components/manage/Controlpanels/BlockTypes.d.ts +7 -0
  170. package/types/components/manage/Diff/Diff.d.ts +7 -2
  171. package/types/components/manage/Toolbar/Types.crash.test.d.ts +1 -0
  172. package/types/config/ControlPanels.d.ts +1 -0
  173. package/types/constants/ActionTypes.d.ts +1 -0
  174. package/types/helpers/FormValidation/validators.d.ts +7 -0
  175. package/types/helpers/MessageLabels/MessageLabels.d.ts +100 -94
  176. package/types/reducers/blockTypes/blockTypes.d.ts +16 -0
  177. package/types/reducers/index.d.ts +2 -0
  178. package/vitest.config.mjs +84 -42
  179. package/webpack-plugins/webpack-less-plugin.js +1 -1
package/.eslintrc CHANGED
@@ -58,9 +58,6 @@
58
58
  "extensions": [".js", ".jsx", ".ts", ".tsx", ".json"],
59
59
  },
60
60
  "node": { "extensions": [".js", ".jsx", ".ts", ".tsx", ".json"] },
61
- "babel-plugin-root-import": {
62
- "rootPathSuffix": "src",
63
- },
64
61
  },
65
62
  "import/core-modules": ["load-volto-addons"],
66
63
  "react": {
package/CHANGELOG.md CHANGED
@@ -17,6 +17,50 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 19.0.0-alpha.28 (2026-04-05)
21
+
22
+ ### Breaking
23
+
24
+ - Fork `razzle-dev-utils` into `@plone/razzle-dev-utils`. @wesleybl [#7973](https://github.com/plone/volto/issues/7973)
25
+ - Remove support for importing from the Volto root using paths starting with `~`. @davisagli
26
+
27
+ ### Feature
28
+
29
+ - Add Block Types control panel for admins to see where blocks are used. @jnptk [#7124](https://github.com/plone/volto/issues/7124)
30
+ - Added blocktypes service typings. @sneridagh
31
+ - Update translations from branch 18.x @erral
32
+
33
+ ### Bugfix
34
+
35
+ - Fixed RegistryImageWidget appending stray `}` to base64 data @mpalomacki [#7900](https://github.com/plone/volto/issues/7900)
36
+ - Add file size upload limit validator. @robgietema [#7936](https://github.com/plone/volto/issues/7936)
37
+ - First focus inside the edit page for assistive technologies @Wagner3UB [#7948](https://github.com/plone/volto/issues/7948)
38
+ - Fixed blockTypes components with correct typings. @sneridagh [#8080](https://github.com/plone/volto/issues/8080)
39
+ - Fix null port in virtual hosting path when the devproxy is used on an origin with an implicit port. @davisagli
40
+ - Fixed bug in razzle configuration and webpack-less-plugin that could generate wrong aliases and configurations for building the site. @pnicolli
41
+
42
+ ### Internal
43
+
44
+ - Refactored the `Diff` component by converting it from a class-based component to a modern functional component using React hooks. @Manik-Khajuria-5 [#7714](https://github.com/plone/volto/issues/7714)
45
+ - Run volto-slate test suite as part of the Vitest multi-project setup. @Abhishek-17h [#7892](https://github.com/plone/volto/issues/7892)
46
+ - Add defensive checks for missing languages and locale files. @pratyush07-hub [#7955](https://github.com/plone/volto/issues/7955)
47
+ - Remove the `immutable` dependency, since it is not a direct dependency. @wesleybl [#7974](https://github.com/plone/volto/issues/7974)
48
+ - Ensure unlock wait after saving working copy changes in Cypress tests. @wesleybl [#8024](https://github.com/plone/volto/issues/8024)
49
+ - Update react-dates to version 21.8.0. @wesleybl [#8027](https://github.com/plone/volto/issues/8027)
50
+ - Exclude `https://tanstack.com/` from README link check. @wesleybl [#8040](https://github.com/plone/volto/issues/8040)
51
+ - Remove volta configuration. @wesleybl [#8068](https://github.com/plone/volto/issues/8068)
52
+ - Added CI job for code-analysis workflow for checking if Volto types build cleanly. @sneridagh [#8080](https://github.com/plone/volto/issues/8080)
53
+ - Make "Block Types" control panel wider. @jnptk
54
+ - Remove unused devDependency: bundlewatch. @davisagli
55
+ - Update dependencies: webpack 5.105.4, resolve-url-loader 5.0.0. @davisagli
56
+ - Update dependency packages: http-proxy-middleware. Remove dependency packages: tmp. @davisagli
57
+ - Update dependency: jsdom 28.1.0. @davisagli
58
+ - Update dependency: lodash 4.17.23. @davisagli
59
+ - Update dependency: serialize-javascript 7.0.5. @davisagli
60
+ - Update devDependencies: wait-on 9.0.4 and start-server-and-test 2.1.5. @davisagli
61
+ - Update devDependency: less 3.13.1. @davisagli
62
+ - Use Plone 6.2.0rc1 for development. @davisagli
63
+
20
64
  ## 19.0.0-alpha.27 (2026-03-02)
21
65
 
22
66
  ### Bugfix
package/babel.js CHANGED
@@ -12,12 +12,6 @@ module.exports = function (api) {
12
12
  'lodash',
13
13
  '@babel/plugin-proposal-export-default-from', // Stage 1
14
14
  '@babel/plugin-proposal-throw-expressions', // Stage 2
15
- [
16
- 'babel-plugin-root-import', // Required for the ~ imports to work
17
- {
18
- rootPathSuffix: 'src',
19
- },
20
- ],
21
15
  [
22
16
  'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
23
17
  {