@eeacms/volto-citation 2.0.0 → 2.0.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/.eslintrc.js +6 -6
- package/CHANGELOG.md +19 -1
- package/package.json +1 -1
- package/src/Citation/Citation.jsx +1 -1
- package/src/Citation/CitationSidebar.jsx +2 -2
- package/src/Citation/Edit.jsx +1 -1
package/.eslintrc.js
CHANGED
|
@@ -16,16 +16,16 @@ if (configFile) {
|
|
|
16
16
|
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const
|
|
20
|
-
const
|
|
19
|
+
const { AddonRegistry } = require('@plone/registry/addon-registry');
|
|
20
|
+
const { registry } = AddonRegistry.init(projectRootPath);
|
|
21
21
|
|
|
22
22
|
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
|
|
23
|
-
const addonAliases = Object.keys(
|
|
23
|
+
const addonAliases = Object.keys(registry.packages).map((o) => [
|
|
24
24
|
o,
|
|
25
|
-
|
|
25
|
+
registry.packages[o].modulePath,
|
|
26
26
|
]);
|
|
27
27
|
|
|
28
|
-
const addonExtenders =
|
|
28
|
+
const addonExtenders = registry.getEslintExtenders().map((m) => require(m));
|
|
29
29
|
|
|
30
30
|
const defaultConfig = {
|
|
31
31
|
extends: `${voltoPath}/.eslintrc`,
|
|
@@ -34,7 +34,7 @@ const defaultConfig = {
|
|
|
34
34
|
alias: {
|
|
35
35
|
map: [
|
|
36
36
|
['@plone/volto', '@plone/volto/src'],
|
|
37
|
-
['@plone/volto-slate', '@plone/volto
|
|
37
|
+
['@plone/volto-slate', '@plone/volto-slate/src'],
|
|
38
38
|
...addonAliases,
|
|
39
39
|
['@package', `${__dirname}/src`],
|
|
40
40
|
['@root', `${__dirname}/src`],
|
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
|
-
### [2.0.
|
|
7
|
+
### [2.0.1](https://github.com/eea/volto-citation/compare/2.0.0...2.0.1) - 8 April 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: make test [Alin V. (Claudiu) - [`1e6cdd5`](https://github.com/eea/volto-citation/commit/1e6cdd5bfbae08098c0f2acf267dc77fc088c875)]
|
|
12
|
+
|
|
13
|
+
## [2.0.0](https://github.com/eea/volto-citation/compare/1.1.0...2.0.0) - 25 March 2026
|
|
8
14
|
|
|
9
15
|
#### :rocket: New Features
|
|
10
16
|
|
|
@@ -12,6 +18,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
12
18
|
|
|
13
19
|
#### :house: Internal changes
|
|
14
20
|
|
|
21
|
+
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`58c7228`](https://github.com/eea/volto-citation/commit/58c72281a27715edad99fa39a2305bca47f420ef)]
|
|
22
|
+
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`9269b65`](https://github.com/eea/volto-citation/commit/9269b6538671d8d7ccf2b51ba0e69c241fef4a45)]
|
|
15
23
|
|
|
16
24
|
#### :hammer_and_wrench: Others
|
|
17
25
|
|
|
@@ -41,11 +49,17 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
41
49
|
|
|
42
50
|
#### :house: Internal changes
|
|
43
51
|
|
|
52
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`6571949`](https://github.com/eea/volto-citation/commit/6571949941593affae952a5e2539182c8937a89d)]
|
|
44
53
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`fe169f6`](https://github.com/eea/volto-citation/commit/fe169f675d540495272d60469024082aa5077095)]
|
|
45
54
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`79683d8`](https://github.com/eea/volto-citation/commit/79683d85b71803b96ef31b754bede458f7001c50)]
|
|
46
55
|
|
|
47
56
|
#### :hammer_and_wrench: Others
|
|
48
57
|
|
|
58
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`e5725a1`](https://github.com/eea/volto-citation/commit/e5725a1c8b9d7a5d0574a40fe785015db99ef33a)]
|
|
59
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`2196015`](https://github.com/eea/volto-citation/commit/2196015f5752129aebc5e35e0df465e070b9a09f)]
|
|
60
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`e0b9cf2`](https://github.com/eea/volto-citation/commit/e0b9cf2f1a8a20f4ab32ee357f6a1bab2637c9b1)]
|
|
61
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`dca3755`](https://github.com/eea/volto-citation/commit/dca375521c18d1d6fb64ece80ddb9a1db7f166f5)]
|
|
62
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`7100915`](https://github.com/eea/volto-citation/commit/7100915a460506b44ead3295a220c0ec9caa6279)]
|
|
49
63
|
### [0.1.4](https://github.com/eea/volto-citation/compare/0.1.3...0.1.4) - 29 September 2023
|
|
50
64
|
|
|
51
65
|
#### :house: Internal changes
|
|
@@ -60,8 +74,12 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
60
74
|
#### :hammer_and_wrench: Others
|
|
61
75
|
|
|
62
76
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`adbc1b5`](https://github.com/eea/volto-citation/commit/adbc1b5359b70e16510b764eb42c1c52778536ab)]
|
|
77
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`d8f5cd1`](https://github.com/eea/volto-citation/commit/d8f5cd1fab04c42e354af4ecd640e2f9d1202e38)]
|
|
63
78
|
- i18n: Add en [Alin Voinea - [`9100e04`](https://github.com/eea/volto-citation/commit/9100e04e4de63f607a3867eaf45161b90d0985be)]
|
|
64
79
|
- test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`766a456`](https://github.com/eea/volto-citation/commit/766a456f3ab988aa916feaae5fab9f2f894390fe)]
|
|
80
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`44b2af5`](https://github.com/eea/volto-citation/commit/44b2af58fe025442100ef0c52c45154b2d74e267)]
|
|
81
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`8f0a7e2`](https://github.com/eea/volto-citation/commit/8f0a7e2713a1a2a7ecf34bd3f7dc23e61b815283)]
|
|
82
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`c2597b9`](https://github.com/eea/volto-citation/commit/c2597b9778a2515e0b015b39a983add268f5c29a)]
|
|
65
83
|
### [0.1.3](https://github.com/eea/volto-citation/compare/0.1.2...0.1.3) - 3 August 2023
|
|
66
84
|
|
|
67
85
|
#### :house: Documentation changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import { Tab, Label, Menu } from 'semantic-ui-react';
|
|
3
3
|
import { useCopyToClipboard } from '@eeacms/volto-citation/helpers';
|
|
4
|
-
import
|
|
4
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
5
5
|
import loadable from '@loadable/component';
|
|
6
6
|
|
|
7
7
|
import copySVG from '@plone/volto/icons/copy.svg';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CitationBlockSchema } from '
|
|
3
|
-
import
|
|
2
|
+
import { CitationBlockSchema } from '@eeacms/volto-citation/schema';
|
|
3
|
+
import BlockDataForm from '@plone/volto/components/manage/Form/BlockDataForm';
|
|
4
4
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
5
|
|
|
6
6
|
const messages = defineMessages({
|
package/src/Citation/Edit.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Citation from './Citation';
|
|
3
|
-
import
|
|
3
|
+
import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal';
|
|
4
4
|
import CitationSidebar from './CitationSidebar';
|
|
5
5
|
function CitationBlockEdit(props) {
|
|
6
6
|
const { data, block, onChangeBlock, selected } = props;
|