@plone/volto 18.2.1 → 18.2.2
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/.release-it.json +1 -1
- package/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/src/config/Blocks.jsx +9 -0
- package/src/config/index.js +4 -16
package/.release-it.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"../scripts/prepublish.js": {}
|
|
4
4
|
},
|
|
5
5
|
"hooks": {
|
|
6
|
-
"before:bump": ["pnpm i18n"
|
|
6
|
+
"before:bump": ["pnpm i18n"],
|
|
7
7
|
"after:bump": [
|
|
8
8
|
"pipx run towncrier build --draft --yes --version ${version} > .changelog.draft",
|
|
9
9
|
"pipx run towncrier build --yes --version ${version}",
|
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,12 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.2.2 (2024-12-09)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- Fixed circular import error in dev with HMR in core Blocks shadow customizations. @sneridagh [#6525](https://github.com/plone/volto/issues/6525)
|
|
25
|
+
|
|
20
26
|
## 18.2.1 (2024-12-09)
|
|
21
27
|
|
|
22
28
|
### Bugfix
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "18.2.
|
|
12
|
+
"version": "18.2.2",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"url": "^0.11.3",
|
|
237
237
|
"use-deep-compare-effect": "1.8.1",
|
|
238
238
|
"uuid": "^8.3.2",
|
|
239
|
-
"@plone/
|
|
239
|
+
"@plone/registry": "2.1.2",
|
|
240
240
|
"@plone/volto-slate": "18.0.3",
|
|
241
|
-
"@plone/
|
|
241
|
+
"@plone/scripts": "3.8.1"
|
|
242
242
|
},
|
|
243
243
|
"devDependencies": {
|
|
244
244
|
"@babel/core": "^7.0.0",
|
package/src/config/Blocks.jsx
CHANGED
|
@@ -530,6 +530,15 @@ const requiredBlocks = ['title'];
|
|
|
530
530
|
const initialBlocks = {};
|
|
531
531
|
const initialBlocksFocus = {}; //{Document:'title'}
|
|
532
532
|
|
|
533
|
+
export function installDefaultBlocks(config) {
|
|
534
|
+
config.blocks.requiredBlocks = requiredBlocks;
|
|
535
|
+
config.blocks.blocksConfig = blocksConfig;
|
|
536
|
+
config.blocks.groupBlocksOrder = groupBlocksOrder;
|
|
537
|
+
config.blocks.initialBlocks = initialBlocks;
|
|
538
|
+
config.blocks.initialBlocksFocus = initialBlocksFocus;
|
|
539
|
+
config.blocks.showEditBlocksInBabelView = false;
|
|
540
|
+
}
|
|
541
|
+
|
|
533
542
|
export {
|
|
534
543
|
groupBlocksOrder,
|
|
535
544
|
requiredBlocks,
|
package/src/config/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import ConfigRegistry from '@plone/volto/registry';
|
|
1
2
|
import { parse as parseUrl } from 'url';
|
|
2
3
|
import { defaultWidget, widgetMapping } from './Widgets';
|
|
3
4
|
import {
|
|
@@ -9,13 +10,6 @@ import {
|
|
|
9
10
|
} from './Views';
|
|
10
11
|
import { nonContentRoutes } from './NonContentRoutes';
|
|
11
12
|
import { nonContentRoutesPublic } from './NonContentRoutesPublic';
|
|
12
|
-
import {
|
|
13
|
-
groupBlocksOrder,
|
|
14
|
-
requiredBlocks,
|
|
15
|
-
blocksConfig,
|
|
16
|
-
initialBlocks,
|
|
17
|
-
initialBlocksFocus,
|
|
18
|
-
} from './Blocks';
|
|
19
13
|
import { loadables } from './Loadables';
|
|
20
14
|
import { workflowMapping } from './Workflows';
|
|
21
15
|
import slots from './slots';
|
|
@@ -31,8 +25,8 @@ import {
|
|
|
31
25
|
|
|
32
26
|
import applyAddonConfiguration, { addonsInfo } from 'load-volto-addons';
|
|
33
27
|
|
|
34
|
-
import ConfigRegistry from '@plone/volto/registry';
|
|
35
28
|
import { installDefaultComponents } from './Components';
|
|
29
|
+
import { installDefaultBlocks } from './Blocks';
|
|
36
30
|
|
|
37
31
|
import { getSiteAsyncPropExtender } from '@plone/volto/helpers/Site';
|
|
38
32
|
import { registerValidators } from './validation';
|
|
@@ -206,14 +200,7 @@ let config = {
|
|
|
206
200
|
errorViews,
|
|
207
201
|
layoutViewsNamesMapping,
|
|
208
202
|
},
|
|
209
|
-
blocks: {
|
|
210
|
-
requiredBlocks,
|
|
211
|
-
blocksConfig,
|
|
212
|
-
groupBlocksOrder,
|
|
213
|
-
initialBlocks,
|
|
214
|
-
initialBlocksFocus,
|
|
215
|
-
showEditBlocksInBabelView: false,
|
|
216
|
-
},
|
|
203
|
+
blocks: {},
|
|
217
204
|
addonRoutes: [],
|
|
218
205
|
addonReducers: {},
|
|
219
206
|
components: {},
|
|
@@ -262,5 +249,6 @@ Object.entries(slots).forEach(([slotName, components]) => {
|
|
|
262
249
|
|
|
263
250
|
registerValidators(ConfigRegistry);
|
|
264
251
|
installDefaultComponents(ConfigRegistry);
|
|
252
|
+
installDefaultBlocks(ConfigRegistry);
|
|
265
253
|
|
|
266
254
|
applyAddonConfiguration(ConfigRegistry);
|