@plone/volto 18.2.1 → 18.2.3
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 +12 -0
- package/package.json +3 -3
- package/src/config/Blocks.jsx +9 -0
- package/src/config/Views.jsx +10 -0
- package/src/config/Widgets.jsx +5 -0
- package/src/config/index.js +10 -35
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,18 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.2.3 (2024-12-09)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- Fixed circular import error in dev with HMR in core Views and Widgets shadow customizations. @sneridagh [#6526](https://github.com/plone/volto/issues/6526)
|
|
25
|
+
|
|
26
|
+
## 18.2.2 (2024-12-09)
|
|
27
|
+
|
|
28
|
+
### Bugfix
|
|
29
|
+
|
|
30
|
+
- Fixed circular import error in dev with HMR in core Blocks shadow customizations. @sneridagh [#6525](https://github.com/plone/volto/issues/6525)
|
|
31
|
+
|
|
20
32
|
## 18.2.1 (2024-12-09)
|
|
21
33
|
|
|
22
34
|
### 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.3",
|
|
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/registry": "2.1.2",
|
|
239
240
|
"@plone/scripts": "3.8.1",
|
|
240
|
-
"@plone/volto-slate": "18.0.3"
|
|
241
|
-
"@plone/registry": "2.1.2"
|
|
241
|
+
"@plone/volto-slate": "18.0.3"
|
|
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/Views.jsx
CHANGED
|
@@ -138,3 +138,13 @@ export const layoutViewsNamesMapping = {
|
|
|
138
138
|
view: 'Default view',
|
|
139
139
|
default: 'Default view',
|
|
140
140
|
};
|
|
141
|
+
|
|
142
|
+
export function installDefaultViews(config) {
|
|
143
|
+
config.views.layoutViews = layoutViews;
|
|
144
|
+
config.views.contentTypesViews = contentTypesViews;
|
|
145
|
+
config.views.defaultView = defaultView;
|
|
146
|
+
config.views.errorViews = errorViews;
|
|
147
|
+
config.views.layoutViewsNamesMapping = layoutViewsNamesMapping;
|
|
148
|
+
|
|
149
|
+
return config;
|
|
150
|
+
}
|
package/src/config/Widgets.jsx
CHANGED
package/src/config/index.js
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
+
import ConfigRegistry from '@plone/volto/registry';
|
|
1
2
|
import { parse as parseUrl } from 'url';
|
|
2
|
-
import { defaultWidget, widgetMapping } from './Widgets';
|
|
3
|
-
import {
|
|
4
|
-
layoutViews,
|
|
5
|
-
contentTypesViews,
|
|
6
|
-
defaultView,
|
|
7
|
-
errorViews,
|
|
8
|
-
layoutViewsNamesMapping,
|
|
9
|
-
} from './Views';
|
|
10
3
|
import { nonContentRoutes } from './NonContentRoutes';
|
|
11
4
|
import { nonContentRoutesPublic } from './NonContentRoutesPublic';
|
|
12
|
-
import {
|
|
13
|
-
groupBlocksOrder,
|
|
14
|
-
requiredBlocks,
|
|
15
|
-
blocksConfig,
|
|
16
|
-
initialBlocks,
|
|
17
|
-
initialBlocksFocus,
|
|
18
|
-
} from './Blocks';
|
|
19
5
|
import { loadables } from './Loadables';
|
|
20
6
|
import { workflowMapping } from './Workflows';
|
|
21
7
|
import slots from './slots';
|
|
@@ -31,8 +17,10 @@ import {
|
|
|
31
17
|
|
|
32
18
|
import applyAddonConfiguration, { addonsInfo } from 'load-volto-addons';
|
|
33
19
|
|
|
34
|
-
import ConfigRegistry from '@plone/volto/registry';
|
|
35
20
|
import { installDefaultComponents } from './Components';
|
|
21
|
+
import { installDefaultWidgets } from './Widgets';
|
|
22
|
+
import { installDefaultViews } from './Views';
|
|
23
|
+
import { installDefaultBlocks } from './Blocks';
|
|
36
24
|
|
|
37
25
|
import { getSiteAsyncPropExtender } from '@plone/volto/helpers/Site';
|
|
38
26
|
import { registerValidators } from './validation';
|
|
@@ -195,25 +183,9 @@ let config = {
|
|
|
195
183
|
enabled: true,
|
|
196
184
|
},
|
|
197
185
|
},
|
|
198
|
-
widgets: {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
views: {
|
|
203
|
-
layoutViews,
|
|
204
|
-
contentTypesViews,
|
|
205
|
-
defaultView,
|
|
206
|
-
errorViews,
|
|
207
|
-
layoutViewsNamesMapping,
|
|
208
|
-
},
|
|
209
|
-
blocks: {
|
|
210
|
-
requiredBlocks,
|
|
211
|
-
blocksConfig,
|
|
212
|
-
groupBlocksOrder,
|
|
213
|
-
initialBlocks,
|
|
214
|
-
initialBlocksFocus,
|
|
215
|
-
showEditBlocksInBabelView: false,
|
|
216
|
-
},
|
|
186
|
+
widgets: {},
|
|
187
|
+
views: {},
|
|
188
|
+
blocks: {},
|
|
217
189
|
addonRoutes: [],
|
|
218
190
|
addonReducers: {},
|
|
219
191
|
components: {},
|
|
@@ -262,5 +234,8 @@ Object.entries(slots).forEach(([slotName, components]) => {
|
|
|
262
234
|
|
|
263
235
|
registerValidators(ConfigRegistry);
|
|
264
236
|
installDefaultComponents(ConfigRegistry);
|
|
237
|
+
installDefaultWidgets(ConfigRegistry);
|
|
238
|
+
installDefaultViews(ConfigRegistry);
|
|
239
|
+
installDefaultBlocks(ConfigRegistry);
|
|
265
240
|
|
|
266
241
|
applyAddonConfiguration(ConfigRegistry);
|