@eeacms/volto-clms-theme 1.0.126 → 1.0.128

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,34 @@ 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.128](https://github.com/eea/volto-clms-theme/compare/1.0.127...1.0.128) - 22 September 2022
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: CLMS-1381 remove cart when deleting the user-profile [Mikel Larreategi - [`87b043d`](https://github.com/eea/volto-clms-theme/commit/87b043dee950bbaa86f1669eebbaa0938329bdc1)]
12
+ - fix: vertical and verticalFAQ tabs block now uses tab title to set the hash [Unai - [`505573c`](https://github.com/eea/volto-clms-theme/commit/505573c33d63948c4201d3b8c0038809ca479407)]
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - Revert "add agree privacy policy for register meeting" [Mikel Larreategi - [`0cb5061`](https://github.com/eea/volto-clms-theme/commit/0cb5061d40d9f299c0f35c8066d76a7f23cf4b45)]
17
+ - Revert "sort imports" [Mikel Larreategi - [`1a54e00`](https://github.com/eea/volto-clms-theme/commit/1a54e006ed3486bff9687ff2318914ec30f085c9)]
18
+ - Revert "use UniversalLink" [Mikel Larreategi - [`7dedeba`](https://github.com/eea/volto-clms-theme/commit/7dedeba760099b10b0c36b7b57a4da4758a6262d)]
19
+ - Revert "hide View in the pa viewer button for anon" [Mikel Larreategi - [`57a2d1a`](https://github.com/eea/volto-clms-theme/commit/57a2d1a8e5a79adfa45b4ee297ef82c3cbf66100)]
20
+ - Revert "disable view in the map viewer button for anon" [Mikel Larreategi - [`84759e6`](https://github.com/eea/volto-clms-theme/commit/84759e66c2fde33a6e679516f2624e83bf21bdc2)]
21
+ - Revert "fix: vertical and verticalFAQ tabs block now uses tab title to set the hash" [Mikel Larreategi - [`59cc5e5`](https://github.com/eea/volto-clms-theme/commit/59cc5e5dc0e7acb92354c0f6e9e00c65fe26ce12)]
22
+ - disable view in the map viewer button for anon [ionlizarazu - [`bb1809d`](https://github.com/eea/volto-clms-theme/commit/bb1809d66b5b8c077270ceac61143f3297350be5)]
23
+ - hide View in the pa viewer button for anon [ionlizarazu - [`6f0b29e`](https://github.com/eea/volto-clms-theme/commit/6f0b29e2731564d1ac9039b99a1566b25dae2043)]
24
+ - use UniversalLink [ionlizarazu - [`489cb6d`](https://github.com/eea/volto-clms-theme/commit/489cb6d62c02565c36845ac364b71c0299aad053)]
25
+ - sort imports [ionlizarazu - [`d33d3d8`](https://github.com/eea/volto-clms-theme/commit/d33d3d8f655c82a216a93194474de44a66ef4a95)]
26
+ - add agree privacy policy for register meeting [ionlizarazu - [`0f50bcb`](https://github.com/eea/volto-clms-theme/commit/0f50bcbe0a1d77bee6ebcdada1f2a27cc02d78ca)]
27
+ ### [1.0.127](https://github.com/eea/volto-clms-theme/compare/1.0.126...1.0.127) - 21 September 2022
28
+
29
+ #### :hammer_and_wrench: Others
30
+
31
+ - CLMS-1355 [joewdavies - [`1c87436`](https://github.com/eea/volto-clms-theme/commit/1c87436bf66badb0a5747d427e4c9f02fb7ac9a4)]
32
+ - CLMS-1356 Add margin to ccl-container pages on smaller devices [joewdavies - [`f021ef7`](https://github.com/eea/volto-clms-theme/commit/f021ef7df657707b382c488c6d88b157f11b5600)]
33
+ - CLMS-1357 [joewdavies - [`fe54fde`](https://github.com/eea/volto-clms-theme/commit/fe54fde9007bbb372e2b8c48fb97a2a0017c5cf2)]
34
+ - CLMS-1210 [joewdavies - [`b49b9fc`](https://github.com/eea/volto-clms-theme/commit/b49b9fc4f344e28b397b97a18c555cb14bde4b67)]
7
35
  ### [1.0.126](https://github.com/eea/volto-clms-theme/compare/1.0.125...1.0.126) - 20 September 2022
8
36
 
9
37
  #### :rocket: New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.126",
3
+ "version": "1.0.128",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { injectIntl } from 'react-intl';
3
+ import { FormattedMessage } from 'react-intl';
3
4
  import { useDispatch, useSelector } from 'react-redux';
4
5
  import { useHistory } from 'react-router-dom';
5
6
  import { Container } from 'semantic-ui-react';
@@ -7,9 +8,9 @@ import { Modal, Segment } from 'semantic-ui-react';
7
8
 
8
9
  import { logout } from '@plone/volto/actions';
9
10
  import CclButton from '@eeacms/volto-clms-theme/components/CclButton/CclButton';
11
+ import useCartState from '@eeacms/volto-clms-utils/cart/useCartState';
10
12
 
11
13
  import { delProfile } from '../../actions';
12
- import { FormattedMessage } from 'react-intl';
13
14
 
14
15
  /**
15
16
  * CLMSProfileView container.
@@ -26,11 +27,14 @@ export const CLMSDeleteProfileView = (props) => {
26
27
 
27
28
  const deleting = useSelector((state) => state.profile_delete.loading);
28
29
 
30
+ const { removeAllCart } = useCartState();
31
+
29
32
  function handleClick() {
30
33
  dispatch(delProfile());
31
34
  }
32
35
 
33
36
  if (isDeleted === true) {
37
+ removeAllCart();
34
38
  history.push('/');
35
39
  dispatch(logout());
36
40
  }
@@ -137,6 +137,13 @@
137
137
  }
138
138
  }
139
139
 
140
+ /* full width search bar on mobile */
141
+ @media (max-width: 500px) {
142
+ #main > div:nth-child(2) > header > div.ccl-header-tools > div > div.ccl-header-tools-container > div > form > div{
143
+ width: 100%
144
+ }
145
+ }
146
+
140
147
  .ccl-header .ccl-header-tools .ccl-header-search input {
141
148
  display: block;
142
149
  width: 100%;
@@ -725,7 +732,7 @@
725
732
 
726
733
  .ccl-header-main-menu li {
727
734
  font-size: 1.125rem;
728
- text-align: center;
735
+ /* text-align: center; */
729
736
  }
730
737
 
731
738
  /* Language */
@@ -146,6 +146,15 @@ a:hover,
146
146
 
147
147
  /* Container */
148
148
 
149
+ /* CLMS-1356 */
150
+ @media only screen and (max-width: 768px) {
151
+ .ccl-container {
152
+ width: auto!important;
153
+ margin-right: 1em!important;
154
+ margin-left: 1em!important;
155
+ }
156
+ }
157
+
149
158
  .ccl-container {
150
159
  max-width: 1400px;
151
160
  margin-right: auto;
@@ -556,6 +565,16 @@ body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
556
565
  font-size: 1.125rem;
557
566
  }
558
567
 
568
+ /* Downloads cart CLMS-1357 */
569
+ @media only screen and (max-width: 500px) {
570
+ .center.aligned.middle.aligned.two.wide.column {
571
+ padding:0px;
572
+ }
573
+ .ui.olive.segment {
574
+ padding-left: 2px;
575
+ }
576
+ }
577
+
559
578
  /* Dataset detail */
560
579
  .download-dataset-metadata {
561
580
  float: right;