@eeacms/volto-eea-website-theme 1.18.0 → 1.18.1

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.18.1](https://github.com/eea/volto-eea-website-theme/compare/1.18.0...1.18.1) - 26 June 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: don't break slate [Miu Razvan - [`e71afc4`](https://github.com/eea/volto-eea-website-theme/commit/e71afc4e336a12069ae196370de82bc96fc7e35c)]
12
+
7
13
  ### [1.18.0](https://github.com/eea/volto-eea-website-theme/compare/1.17.2...1.18.0) - 20 June 2023
8
14
 
9
15
  #### :rocket: New Features
@@ -22,6 +28,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
22
28
 
23
29
  #### :hammer_and_wrench: Others
24
30
 
31
+ - Release 1.18.0 #154 from eea/develop [ichim-david - [`9e47abb`](https://github.com/eea/volto-eea-website-theme/commit/9e47abb88ec371b142caf177d114ccff49a53082)]
25
32
  - Refs #254132 - Bump to 1.18.0. [GhitaB - [`51f483b`](https://github.com/eea/volto-eea-website-theme/commit/51f483b3dba6cff13471fc512d372b577991f6f4)]
26
33
  - Refs #254132 - Do not initialize actions with []. Make sure actions in footerOpts are used if set. [GhitaB - [`8c0afb5`](https://github.com/eea/volto-eea-website-theme/commit/8c0afb539b0c96928545bc9a6974a189c9e886b8)]
27
34
  - test: Fix sonarqube - Convert the conditional to a boolean to avoid leaked value [Alin Voinea - [`195eb19`](https://github.com/eea/volto-eea-website-theme/commit/195eb19b8aa40a95bca6aafc7720bdc6b8e02340)]
@@ -86,6 +93,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
86
93
 
87
94
  #### :house: Internal changes
88
95
 
96
+ - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
89
97
 
90
98
  #### :hammer_and_wrench: Others
91
99
 
@@ -241,6 +249,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
241
249
 
242
250
  #### :hammer_and_wrench: Others
243
251
 
252
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
244
253
  ### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
245
254
 
246
255
  #### :bug: Bug Fixes
@@ -387,6 +396,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
387
396
 
388
397
  - For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
389
398
  - Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
399
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
390
400
  ### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
391
401
 
392
402
  #### :hammer_and_wrench: Others
@@ -420,6 +430,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
420
430
 
421
431
  - Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
422
432
  - bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
433
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
423
434
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
424
435
  ### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
425
436
 
@@ -429,6 +440,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
429
440
 
430
441
  #### :hammer_and_wrench: Others
431
442
 
443
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
432
444
  - Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
433
445
  - Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
434
446
  ### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
@@ -439,6 +451,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
439
451
 
440
452
  #### :hammer_and_wrench: Others
441
453
 
454
+ - yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
442
455
  ### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
443
456
 
444
457
  #### :rocket: New Features
@@ -479,6 +492,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
479
492
  - Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
480
493
  - Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
481
494
  - fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
495
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
482
496
  ### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
483
497
 
484
498
  #### :nail_care: Enhancements
@@ -526,6 +540,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
526
540
 
527
541
  #### :hammer_and_wrench: Others
528
542
 
543
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
529
544
  ### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
530
545
 
531
546
  #### :hammer_and_wrench: Others
@@ -793,6 +808,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
793
808
  - Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
794
809
  - Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
795
810
  - feature(breadcrumbs): implement eea-design-system breadcrumb as Volto component #32 #7 [ichim-david - [`181af41`](https://github.com/eea/volto-eea-website-theme/commit/181af4125ce2b9ddac56dab4723cb11c26633221)]
811
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
796
812
  - use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
797
813
  - Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
798
814
  - Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
@@ -834,4 +850,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
834
850
 
835
851
  #### :hammer_and_wrench: Others
836
852
 
853
+ - yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
837
854
  - Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/slate.js CHANGED
@@ -17,6 +17,8 @@ import clearIcon from './icons/eraser.svg';
17
17
 
18
18
  const toggleBlockClassFormat = (editor, format) => {
19
19
  const levels = Array.from(Editor.levels(editor, editor.selection));
20
+ // TODO: someone fix this
21
+ if (levels.length < 2) return false;
20
22
  const [, [, path]] = levels;
21
23
  Transforms.setNodes(
22
24
  editor,
@@ -30,7 +32,9 @@ const toggleBlockClassFormat = (editor, format) => {
30
32
 
31
33
  const isBlockClassActive = (editor, format) => {
32
34
  if (!editor.selection) return false;
35
+ // TODO: someone fix this
33
36
  const levels = Array.from(Editor.levels(editor, editor.selection));
37
+ if (levels.length < 2) return false;
34
38
  const [, [node]] = levels;
35
39
  return node.styleName === format;
36
40
  };