@eeacms/volto-eea-website-policy 0.2.4 → 0.2.5

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,8 +4,18 @@ 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
+ #### [0.2.5](https://github.com/eea/volto-eea-website-policy/compare/0.2.4...0.2.5)
8
+
9
+ - Rounded card via style wrapper [`6728684`](https://github.com/eea/volto-eea-website-policy/commit/67286844b00902aa4c6b316b50be35db95c531f0)
10
+ - Revert "Rounded Card variation - refs #148723" [`0168a86`](https://github.com/eea/volto-eea-website-policy/commit/0168a86fa644a9b848e37c7f5054eb4308c36784)
11
+ - Disable Image Cards block [`3ed8dc3`](https://github.com/eea/volto-eea-website-policy/commit/3ed8dc311cad8e30a8c918ecec7b21cc99260c50)
12
+ - Rounded Card variation - refs #148723 [`4b46731`](https://github.com/eea/volto-eea-website-policy/commit/4b46731e25962bbb6e7159d0db8a9a642a95eb53)
13
+
7
14
  #### [0.2.4](https://github.com/eea/volto-eea-website-policy/compare/0.2.3...0.2.4)
8
15
 
16
+ > 13 June 2022
17
+
18
+ - Release [`#10`](https://github.com/eea/volto-eea-website-policy/pull/10)
9
19
  - Fix listing block title: Listing (Content) [`cec2760`](https://github.com/eea/volto-eea-website-policy/commit/cec276082c3fc1b5486c996c3746a6958fb3a1a9)
10
20
  - Add theme to teaser stylewrapper [`60eeb28`](https://github.com/eea/volto-eea-website-policy/commit/60eeb28b7793708c59d0af73ffb09895e8f2c87d)
11
21
  - Fix className vs class warning [`fea1603`](https://github.com/eea/volto-eea-website-policy/commit/fea1603eefd628d57640a6b94ddbbb7edfb0d841)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "@eeacms/volto-eea-website-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -40,7 +40,13 @@ const TeaserCardTemplate = (props) => {
40
40
  href={href['@id']}
41
41
  target={data.openLinkInNewTab ? '_blank' : null}
42
42
  >
43
- <div className={cx('ui fluid card', data?.styles?.theme)}>
43
+ <div
44
+ className={cx(
45
+ 'ui fluid card',
46
+ data?.styles?.theme,
47
+ data?.styles?.rounded ? 'rounded big' : '',
48
+ )}
49
+ >
44
50
  {(href.hasPreviewImage || href.image_field || image) && (
45
51
  <div className="image">
46
52
  <img
@@ -29,6 +29,14 @@ const messages = defineMessages({
29
29
  id: 'Tertiary',
30
30
  defaultMessage: 'Tertiary',
31
31
  },
32
+ Rounded: {
33
+ id: 'Rounded',
34
+ defaultMessage: 'Rounded',
35
+ },
36
+ RoundedHelp: {
37
+ id: 'Rounded Image',
38
+ defaultMessage: 'Rounded Image',
39
+ },
32
40
  });
33
41
 
34
42
  export const StylingSchema = ({ intl }) => ({
@@ -38,7 +46,7 @@ export const StylingSchema = ({ intl }) => ({
38
46
  {
39
47
  id: 'default',
40
48
  title: 'Default',
41
- fields: ['theme'],
49
+ fields: ['theme', 'rounded'],
42
50
  },
43
51
  ],
44
52
  properties: {
@@ -52,6 +60,11 @@ export const StylingSchema = ({ intl }) => ({
52
60
  ['tertiary', intl.formatMessage(messages.ThemeTertiary)],
53
61
  ],
54
62
  },
63
+ rounded: {
64
+ title: intl.formatMessage(messages.Rounded),
65
+ description: intl.formatMessage(messages.RoundedHelp),
66
+ type: 'boolean',
67
+ },
55
68
  },
56
69
  required: [],
57
70
  });
package/src/index.js CHANGED
@@ -105,6 +105,11 @@ const applyConfig = (config) => {
105
105
  );
106
106
  config.blocks.blocksConfig.item.mostUsed = true;
107
107
 
108
+ // Disable some blocks
109
+ if (config.blocks.blocksConfig.imagecards) {
110
+ config.blocks.blocksConfig.imagecards.restricted = true;
111
+ }
112
+
108
113
  // Done
109
114
  return config;
110
115
  };