@plone/volto 18.2.2 → 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/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/src/config/Views.jsx +10 -0
- package/src/config/Widgets.jsx +5 -0
- package/src/config/index.js +6 -19
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,12 @@ 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
|
+
|
|
20
26
|
## 18.2.2 (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.3",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"use-deep-compare-effect": "1.8.1",
|
|
238
238
|
"uuid": "^8.3.2",
|
|
239
239
|
"@plone/registry": "2.1.2",
|
|
240
|
-
"@plone/
|
|
241
|
-
"@plone/
|
|
240
|
+
"@plone/scripts": "3.8.1",
|
|
241
|
+
"@plone/volto-slate": "18.0.3"
|
|
242
242
|
},
|
|
243
243
|
"devDependencies": {
|
|
244
244
|
"@babel/core": "^7.0.0",
|
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,13 +1,5 @@
|
|
|
1
1
|
import ConfigRegistry from '@plone/volto/registry';
|
|
2
2
|
import { parse as parseUrl } from 'url';
|
|
3
|
-
import { defaultWidget, widgetMapping } from './Widgets';
|
|
4
|
-
import {
|
|
5
|
-
layoutViews,
|
|
6
|
-
contentTypesViews,
|
|
7
|
-
defaultView,
|
|
8
|
-
errorViews,
|
|
9
|
-
layoutViewsNamesMapping,
|
|
10
|
-
} from './Views';
|
|
11
3
|
import { nonContentRoutes } from './NonContentRoutes';
|
|
12
4
|
import { nonContentRoutesPublic } from './NonContentRoutesPublic';
|
|
13
5
|
import { loadables } from './Loadables';
|
|
@@ -26,6 +18,8 @@ import {
|
|
|
26
18
|
import applyAddonConfiguration, { addonsInfo } from 'load-volto-addons';
|
|
27
19
|
|
|
28
20
|
import { installDefaultComponents } from './Components';
|
|
21
|
+
import { installDefaultWidgets } from './Widgets';
|
|
22
|
+
import { installDefaultViews } from './Views';
|
|
29
23
|
import { installDefaultBlocks } from './Blocks';
|
|
30
24
|
|
|
31
25
|
import { getSiteAsyncPropExtender } from '@plone/volto/helpers/Site';
|
|
@@ -189,17 +183,8 @@ let config = {
|
|
|
189
183
|
enabled: true,
|
|
190
184
|
},
|
|
191
185
|
},
|
|
192
|
-
widgets: {
|
|
193
|
-
|
|
194
|
-
default: defaultWidget,
|
|
195
|
-
},
|
|
196
|
-
views: {
|
|
197
|
-
layoutViews,
|
|
198
|
-
contentTypesViews,
|
|
199
|
-
defaultView,
|
|
200
|
-
errorViews,
|
|
201
|
-
layoutViewsNamesMapping,
|
|
202
|
-
},
|
|
186
|
+
widgets: {},
|
|
187
|
+
views: {},
|
|
203
188
|
blocks: {},
|
|
204
189
|
addonRoutes: [],
|
|
205
190
|
addonReducers: {},
|
|
@@ -249,6 +234,8 @@ Object.entries(slots).forEach(([slotName, components]) => {
|
|
|
249
234
|
|
|
250
235
|
registerValidators(ConfigRegistry);
|
|
251
236
|
installDefaultComponents(ConfigRegistry);
|
|
237
|
+
installDefaultWidgets(ConfigRegistry);
|
|
238
|
+
installDefaultViews(ConfigRegistry);
|
|
252
239
|
installDefaultBlocks(ConfigRegistry);
|
|
253
240
|
|
|
254
241
|
applyAddonConfiguration(ConfigRegistry);
|