@eeacms/volto-bise-policy 1.0.9 → 1.0.10

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,11 @@ 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.0.10](https://github.com/eea/volto-bise-policy/compare/1.0.9...1.0.10) - 7 June 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - add light-green contentbox + separate custom blocks [Miu Razvan - [`bd959d4`](https://github.com/eea/volto-bise-policy/commit/bd959d492e6c30f4f892bf37729b5dbe137f78dc)]
7
12
  ### [1.0.9](https://github.com/eea/volto-bise-policy/compare/1.0.8...1.0.9) - 6 June 2023
8
13
 
9
14
  #### :nail_care: Enhancements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-bise-policy",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "@eeacms/volto-bise-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -14,6 +14,15 @@ const restrictedBlocks = [
14
14
  'embed_eea_map_block',
15
15
  ];
16
16
 
17
+ const customBlocks = [
18
+ 'html',
19
+ 'countryFlag',
20
+ 'tableau_block',
21
+ 'body_classname',
22
+ 'redirect',
23
+ 'navigationBlock',
24
+ ];
25
+
17
26
  const applyConfig = (config) => {
18
27
  // Volto specific settings
19
28
  config.settings = {
@@ -120,6 +129,11 @@ const applyConfig = (config) => {
120
129
  config.blocks.blocksConfig.hero_image_left.schemaEnhancer = addStylingFieldsetSchemaEnhancer;
121
130
  }
122
131
 
132
+ config = [installBlocks, installStyles].reduce(
133
+ (acc, apply) => apply(acc),
134
+ config,
135
+ );
136
+
123
137
  // Disable some blocks
124
138
  restrictedBlocks.forEach((block) => {
125
139
  if (config.blocks.blocksConfig[block]) {
@@ -127,10 +141,18 @@ const applyConfig = (config) => {
127
141
  }
128
142
  });
129
143
 
130
- return [installBlocks, installStyles].reduce(
131
- (acc, apply) => apply(acc),
132
- config,
133
- );
144
+ // Set custom blocks
145
+ config.blocks.groupBlocksOrder = [
146
+ ...config.blocks.groupBlocksOrder,
147
+ { id: 'custom_blocks', title: 'Custom blocks' },
148
+ ];
149
+ customBlocks.forEach((block) => {
150
+ if (config.blocks.blocksConfig[block]) {
151
+ config.blocks.blocksConfig[block].group = 'custom_blocks';
152
+ }
153
+ });
154
+
155
+ return config;
134
156
  };
135
157
 
136
158
  export default applyConfig;
@@ -87,14 +87,14 @@ export default (config) => {
87
87
  config.settings.pluggableStyles = [
88
88
  ...(config.settings.pluggableStyles || []),
89
89
  {
90
- id: 'content-box-tertiary',
91
- title: 'Tertiary',
90
+ id: 'content-box-light-green',
91
+ title: 'Light green',
92
92
  previewComponent: () => (
93
- <Icon name={contentBoxSVG} size="88px" className="tertiary" />
93
+ <Icon name={contentBoxSVG} size="88px" className="light-green" />
94
94
  ),
95
95
  viewComponent: (props) => {
96
96
  return (
97
- <div className="content-box tertiary">
97
+ <div className="content-box light-green">
98
98
  <div className="content-box-inner">{props.children}</div>
99
99
  </div>
100
100
  );
@@ -272,4 +272,26 @@ p.has--clear--both:empty {
272
272
 
273
273
  .simple-data-table {
274
274
  padding: 0;
275
+ }
276
+
277
+ .content-box {
278
+ &.light-green {
279
+ background-color: @green-1;
280
+ color: @tertiaryColor;
281
+ }
282
+ }
283
+
284
+ .style-select-widget {
285
+ svg.light-green {
286
+ background-color:@green-1;
287
+ fill: @tertiaryColor !important;
288
+ }
289
+ }
290
+
291
+ #sidebar > .sidebar-container > .tabs-wrapper > .ui.menu {
292
+ flex-wrap: nowrap;
293
+ }
294
+
295
+ .ui.button.full-size-sidenav-btn {
296
+ padding: 6px !important;
275
297
  }
@@ -1,9 +1,9 @@
1
1
  @green-0: #C8FFF8;
2
- @green-1: #85FFF1;
3
- @green-2: #00F5D8;
4
- @green-3: #00CCB4;
5
- @green-4: #00A390; // @secondaryColor
6
- @green-5: #007B6C;
2
+ @green-1: #A0E5DC;
3
+ @green-2: #78CAC0;
4
+ @green-3: #50B0A4;
5
+ @green-4: #289588; // @secondaryColor
6
+ @green-5: #007B6C;
7
7
  @green-6: #005248; // @primaryColor
8
8
 
9
9
  @yellow-0: #FEF6CD;