@eeacms/volto-slate-footnote 6.2.1 → 6.2.3
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 +14 -0
- package/Jenkinsfile +1 -1
- package/package.json +1 -1
- package/src/Blocks/Footnote/FootnotesBlockView.jsx +4 -3
- package/src/editor/render.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ 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
|
+
### [6.2.3](https://github.com/eea/volto-slate-footnote/compare/6.2.2...6.2.3) - 6 March 2024
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: Refs#265202 - footnotes hover crash [Claudia Ifrim - [`71e236d`](https://github.com/eea/volto-slate-footnote/commit/71e236df5785a0878a243658601030f3d7e670c9)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`aa335f9`](https://github.com/eea/volto-slate-footnote/commit/aa335f9eedd9d994b6fbceb57102d848dbdbae15)]
|
|
16
|
+
### [6.2.2](https://github.com/eea/volto-slate-footnote/compare/6.2.1...6.2.2) - 20 January 2024
|
|
17
|
+
|
|
18
|
+
#### :hammer_and_wrench: Others
|
|
19
|
+
|
|
20
|
+
- fix foontoes not visibile on view [Dobricean Ioan Dorian - [`7c5fb50`](https://github.com/eea/volto-slate-footnote/commit/7c5fb5087cf4e6a9c1dde37ead03e4340031cae5)]
|
|
7
21
|
### [6.2.1](https://github.com/eea/volto-slate-footnote/compare/6.2.0...6.2.1) - 18 January 2024
|
|
8
22
|
|
|
9
23
|
#### :bug: Bug Fixes
|
package/Jenkinsfile
CHANGED
|
@@ -9,7 +9,7 @@ pipeline {
|
|
|
9
9
|
environment {
|
|
10
10
|
GIT_NAME = "volto-slate-footnote"
|
|
11
11
|
NAMESPACE = "@eeacms"
|
|
12
|
-
SONARQUBE_TAGS = "volto.eea.europa.eu,biodiversity.europa.eu,www.eea.europa.eu-ims,climate-energy.eea.europa.eu,sustainability.eionet.europa.eu,forest.eea.europa.eu,clms.land.copernicus.eu,industry.eea.europa.eu,water.europa.eu-freshwater,demo-www.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,water.europa.eu-marine,climate-adapt.eea.europa.eu,climate-advisory-board.devel4cph.eea.europa.eu,climate-advisory-board.europa.eu,www.eea.europa.eu-en"
|
|
12
|
+
SONARQUBE_TAGS = "volto.eea.europa.eu,biodiversity.europa.eu,www.eea.europa.eu-ims,climate-energy.eea.europa.eu,sustainability.eionet.europa.eu,forest.eea.europa.eu,clms.land.copernicus.eu,industry.eea.europa.eu,water.europa.eu-freshwater,demo-www.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,water.europa.eu-marine,climate-adapt.eea.europa.eu,climate-advisory-board.devel4cph.eea.europa.eu,climate-advisory-board.europa.eu,www.eea.europa.eu-en,insitu-frontend.eionet.europa.eu"
|
|
13
13
|
DEPENDENCIES = ""
|
|
14
14
|
BACKEND_PROFILES = "eea.kitkat:testing"
|
|
15
15
|
BACKEND_ADDONS = ""
|
package/package.json
CHANGED
|
@@ -25,13 +25,14 @@ const FootnotesBlockView = (props) => {
|
|
|
25
25
|
|
|
26
26
|
const metadata = props.metadata ? props.metadata : properties;
|
|
27
27
|
|
|
28
|
-
const localMetadata =
|
|
28
|
+
const localMetadata = global
|
|
29
|
+
? metadata
|
|
30
|
+
: content
|
|
29
31
|
? content
|
|
30
32
|
: tabData
|
|
31
33
|
? tabData
|
|
32
|
-
: global
|
|
33
|
-
? metadata
|
|
34
34
|
: properties;
|
|
35
|
+
|
|
35
36
|
const blocks = getAllBlocksAndSlateFields(localMetadata);
|
|
36
37
|
const notesObj = makeFootnoteListOfUniqueItems(blocks);
|
|
37
38
|
let startList = 1;
|
package/src/editor/render.jsx
CHANGED
|
@@ -24,7 +24,7 @@ export const FootnoteElement = (props) => {
|
|
|
24
24
|
const { data = {} } = element;
|
|
25
25
|
const { uid, zoteroId } = data;
|
|
26
26
|
const editor = useEditorContext();
|
|
27
|
-
const ref = React.useRef(
|
|
27
|
+
const ref = React.useRef();
|
|
28
28
|
|
|
29
29
|
const initialFormData = useSelector((state) => state?.content?.data || {});
|
|
30
30
|
const blockProps = editor?.getBlockProps ? editor.getBlockProps() : null;
|