@kitconcept/core 2.0.0-alpha.13 → 2.0.0-alpha.14

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.draft CHANGED
@@ -1,17 +1,8 @@
1
- ## 2.0.0-alpha.13 (2026-03-14)
2
-
3
- ### Breaking
4
-
5
- - Removed add-ons from frontend, moved to the distributions. @sneridagh
6
- - Replaced support of `@mbarde/volto-image-crop-widget` with `@plone-collective/volto-image-editor`. @sneridagh
1
+ ## 2.0.0-alpha.14 (2026-03-31)
7
2
 
8
3
  ### Feature
9
4
 
10
- - Improve UX on Export Import control panel and add missing German translations. @danalvrz
11
-
12
- ### Internal
13
-
14
- - Use Volto 19a27.
15
- See https://github.com/plone/volto/releases/tag/19.0.0-alpha.27 @sneridagh
5
+ - Moved the `kitconcept.blocks.config` inherit expander in here from the intranet distribution. @sneridagh
6
+ - Use timestamp and site title to name export file. @danalvrz
16
7
 
17
8
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,13 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 2.0.0-alpha.14 (2026-03-31)
12
+
13
+ ### Feature
14
+
15
+ - Moved the `kitconcept.blocks.config` inherit expander in here from the intranet distribution. @sneridagh
16
+ - Use timestamp and site title to name export file. @danalvrz
17
+
11
18
  ## 2.0.0-alpha.13 (2026-03-14)
12
19
 
13
20
  ### Breaking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/core",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.14",
4
4
  "description": "Core setup for kitconcept GmbH distributions built on top of Plone",
5
5
  "main": "src/index.ts",
6
6
  "license": "MIT",
@@ -22,6 +22,8 @@ import exportSVG from '../../icons/export.svg';
22
22
  import backSVG from '@plone/volto/icons/back.svg';
23
23
 
24
24
  import { defineMessages, useIntl } from 'react-intl';
25
+ import { slugify } from '@plone/volto/helpers/Utils/Utils';
26
+ import config from '@plone/volto/registry';
25
27
 
26
28
  const messages = defineMessages({
27
29
  back: {
@@ -89,6 +91,7 @@ const ContentTransfer = ({ pathname }) => {
89
91
  const isClient = useClient();
90
92
  const dispatch = useDispatch();
91
93
  const token = useSelector((state) => state.userSession.token);
94
+ const siteTitle = config.settings.publicURL;
92
95
 
93
96
  const [exporting, setExporting] = useState(false);
94
97
  const [importing, setImporting] = useState(false);
@@ -112,7 +115,8 @@ const ContentTransfer = ({ pathname }) => {
112
115
 
113
116
  const a = document.createElement('a');
114
117
  a.href = url;
115
- a.download = 'export.zip';
118
+ const timestamp = new Date().toISOString().slice(0, 16).replace(':', '-');
119
+ a.download = `${slugify(siteTitle)}_${timestamp}.zip`;
116
120
  a.click();
117
121
 
118
122
  window.URL.revokeObjectURL(url);
@@ -1,9 +1,34 @@
1
1
  import type { ConfigType } from '@plone/registry';
2
+ import type { apiExpandersType } from '@plone/types';
2
3
 
3
4
  export default function install(config: ConfigType) {
4
5
  // Language is Deutsch
5
6
  config.settings.defaultLanguage = 'de';
6
7
  config.settings.supportedLanguages = ['en', 'de'];
7
8
 
9
+ const EXPANDERS_INHERIT_BEHAVIORS = 'kitconcept.blocks.config';
10
+
11
+ // Add API expander for inheriting blocks config
12
+ config.settings.apiExpanders = [
13
+ ...config.settings.apiExpanders,
14
+ {
15
+ match: '',
16
+ GET_CONTENT: ['inherit'],
17
+ querystring: (config, querystring) => {
18
+ if (querystring['expand.inherit.behaviors']) {
19
+ return {
20
+ 'expand.inherit.behaviors': querystring[
21
+ 'expand.inherit.behaviors'
22
+ ].concat(',', EXPANDERS_INHERIT_BEHAVIORS),
23
+ };
24
+ } else {
25
+ return {
26
+ 'expand.inherit.behaviors': EXPANDERS_INHERIT_BEHAVIORS,
27
+ };
28
+ }
29
+ },
30
+ } as apiExpandersType,
31
+ ];
32
+
8
33
  return config;
9
34
  }