@eeacms/volto-clms-theme 1.0.157 → 1.0.158

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,7 +4,13 @@ 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.157](https://github.com/eea/volto-clms-theme/compare/1.0.156...1.0.157) - 21 December 2022
7
+ ### [1.0.158](https://github.com/eea/volto-clms-theme/compare/1.0.157...1.0.158) - 22 December 2022
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: add b_size to the FAQ search request and remove duplicates from categories [ionlizarazu - [`94c0b19`](https://github.com/eea/volto-clms-theme/commit/94c0b19b9c990e675125b45522d15d896ee53792)]
12
+
13
+ ### [1.0.157](https://github.com/eea/volto-clms-theme/compare/1.0.156...1.0.157) - 22 December 2022
8
14
 
9
15
  #### :rocket: New Features
10
16
 
@@ -618,6 +624,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
618
624
  #### :hammer_and_wrench: Others
619
625
 
620
626
  - related products and datasets added to news and meeting views and login-plone route created [Unai - [`5704a1a`](https://github.com/eea/volto-clms-theme/commit/5704a1a766148746162b60efaf232ea90dc20cf4)]
627
+ - Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
621
628
  - sort items according to the lowercased label and put those with special meaning at the end [Mikel Larreategi - [`6410abe`](https://github.com/eea/volto-clms-theme/commit/6410abe096f60dcad54dced2026c9df9b7946d68)]
622
629
  - lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
623
630
  - footer newsletter subscription change, global search maxLength change from 8000 to 200 and /login design change [Unai - [`a09d24a`](https://github.com/eea/volto-clms-theme/commit/a09d24adbb6fa053fb2a2cc0071506b906593b42)]
@@ -768,6 +775,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
768
775
  - search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
769
776
  - language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
770
777
  - toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
778
+ - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
771
779
  ### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
772
780
 
773
781
  #### :hammer_and_wrench: Others
@@ -1672,11 +1680,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1672
1680
  #### :hammer_and_wrench: Others
1673
1681
 
1674
1682
  - replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
1683
+ - yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
1675
1684
  - add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
1676
1685
  - upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
1677
1686
  - HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
1678
1687
  - babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
1679
1688
  - prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
1689
+ - add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
1680
1690
  - Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
1681
1691
  - cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
1682
1692
  - some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.157",
3
+ "version": "1.0.158",
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",
@@ -27,6 +27,7 @@ const CclFAQBlockView = (props) => {
27
27
  searchContent(path.replace('/edit', ''), {
28
28
  fullobjects: 1,
29
29
  portal_type: 'FAQ',
30
+ b_size: 999,
30
31
  }),
31
32
  );
32
33
  }, [path, dispatch]);
@@ -38,12 +39,16 @@ const CclFAQBlockView = (props) => {
38
39
  ),
39
40
  ]
40
41
  .map((cat) => {
41
- const cat_family = cat.title.split(' » ');
42
+ const cat_family = cat.title?.split(' » ');
42
43
  if (cat_family.length > 1) {
43
44
  cat['subTab'] = true;
44
45
  }
45
46
  return cat;
46
47
  })
48
+ .filter(
49
+ (thing, index, self) =>
50
+ index === self.findIndex((t) => t.token === thing.token),
51
+ )
47
52
  .sort((a, b) => {
48
53
  if (a.title < b.title) {
49
54
  return -1;
@@ -54,11 +59,11 @@ const CclFAQBlockView = (props) => {
54
59
  })
55
60
  : [];
56
61
  categories.forEach((cat, index) => {
57
- if (cat.subTab) {
62
+ if (cat.subTab && !categories[index - 1].subTab) {
58
63
  categories[index - 1]['parent'] = true;
59
64
  }
60
65
  });
61
- const [activeIndex, setActiveIndex] = React.useState([99]);
66
+ const [activeIndex, setActiveIndex] = React.useState([0]);
62
67
  const titleIcons = config.blocks?.blocksConfig?.accordion?.titleIcons;
63
68
 
64
69
  return (
@@ -84,7 +89,7 @@ const CclFAQBlockView = (props) => {
84
89
  {search.items.map((item, item_key) => {
85
90
  return (
86
91
  item.taxonomy_faqcategories.filter((faq_cat) =>
87
- faq_cat.title.includes(cat_title),
92
+ faq_cat.title.includes(cat.title),
88
93
  ).length > 0 && (
89
94
  <Accordion fluid styled key={item_key}>
90
95
  <Accordion.Title