@eeacms/volto-eea-website-policy 1.7.3 → 1.8.0
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
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.8.0](https://github.com/eea/volto-eea-website-policy/compare/1.7.3...1.8.0) - 15 August 2023
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
10
|
+
|
|
11
|
+
- refactor: Move DataProvenance code to dedicated widget addon - refs #256379 [Alin Voinea - [`3e7b046`](https://github.com/eea/volto-eea-website-policy/commit/3e7b046f3396c9aa73757916c6f02156aa18a6c2)]
|
|
12
|
+
|
|
7
13
|
### [1.7.3](https://github.com/eea/volto-eea-website-policy/compare/1.7.2...1.7.3) - 1 August 2023
|
|
8
14
|
|
|
9
15
|
#### :house: Documentation changes
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2,8 +2,6 @@ import { runtimeConfig } from '@plone/volto/runtime_config';
|
|
|
2
2
|
import installContextNavigationBlock from '@eeacms/volto-eea-website-policy/components/Blocks/ContextNavigation';
|
|
3
3
|
import { appendGroup } from './helpers';
|
|
4
4
|
import { FrequencyOfDissemination } from '@eeacms/volto-eea-website-policy/components/Widgets/FrequencyOfDissemination';
|
|
5
|
-
import { DataProvenance } from '@eeacms/volto-eea-website-policy/components/Widgets/DataProvenance';
|
|
6
|
-
import { InstitutionalMandate } from '@eeacms/volto-eea-website-policy/components/Widgets/InstitutionalMandate';
|
|
7
5
|
|
|
8
6
|
const restrictedBlocks = [
|
|
9
7
|
'imagecards',
|
|
@@ -120,8 +118,6 @@ const applyConfig = (config) => {
|
|
|
120
118
|
});
|
|
121
119
|
|
|
122
120
|
// Custom widgets
|
|
123
|
-
config.widgets.id.data_provenance = DataProvenance;
|
|
124
|
-
config.widgets.id.institutional_mandate = InstitutionalMandate;
|
|
125
121
|
config.widgets.views.id.frequency_of_dissemination = FrequencyOfDissemination;
|
|
126
122
|
|
|
127
123
|
// Subsite
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import RichTextWidget from '@plone/volto-slate/widgets/RichTextWidget';
|
|
2
|
-
import { DataProvenance as NextDataProvenance } from '@eeacms/volto-widget-dataprovenance/components/theme/Widgets/DataProvenance';
|
|
3
|
-
|
|
4
|
-
export const DataProvenance = (props) => {
|
|
5
|
-
if (props.behavior === 'eea.coremetadata.behavior') {
|
|
6
|
-
return <NextDataProvenance {...props} />;
|
|
7
|
-
}
|
|
8
|
-
if (props.behavior === 'eea.dexterity.indicators.metadata') {
|
|
9
|
-
return <RichTextWidget {...props} />;
|
|
10
|
-
}
|
|
11
|
-
return ' Data Provenance ';
|
|
12
|
-
};
|