@eeacms/volto-eea-website-theme 2.1.0 → 2.1.2

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,30 @@ 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.1.2](https://github.com/eea/volto-eea-website-theme/compare/2.1.1...2.1.2) - 14 June 2024
8
+
9
+ #### :house: Internal changes
10
+
11
+ - style: Automated code fix [eea-jenkins - [`802d84b`](https://github.com/eea/volto-eea-website-theme/commit/802d84bdcca495edf59c18ff79b0827b310f555f)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Refs #269520 - import TokenWidgetEdit [Tripon Eugen - [`956141c`](https://github.com/eea/volto-eea-website-theme/commit/956141cbeafd84938742b920ba40ad599eec1b19)]
16
+ - Refs #269520 - import TokenWidgetEdit [Tripon Eugen - [`4ef7b18`](https://github.com/eea/volto-eea-website-theme/commit/4ef7b18ca0437bb664ec83e03a2c07e22e87f0e7)]
17
+ - Fix test [Tiberiu Ichim - [`e51380f`](https://github.com/eea/volto-eea-website-theme/commit/e51380f20129d44984ba4249227e24fceb857f7e)]
18
+ - Refs #269520 - other_organisation test [Tripon Eugen - [`7558b27`](https://github.com/eea/volto-eea-website-theme/commit/7558b27a9d1cd6d3480a32b296c7325c796006c9)]
19
+ - Refs #269520 - other_organisation token widget edit mode [Tripon Eugen - [`b6df127`](https://github.com/eea/volto-eea-website-theme/commit/b6df127bd91b6f55dda8f468e1107037d43752ff)]
20
+ - Refs #269520 - other_organisation token widget [Tripon Eugen - [`6fd7543`](https://github.com/eea/volto-eea-website-theme/commit/6fd7543894bd2c593a1729116befd95c82ea3c8f)]
21
+ - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`cbc36c7`](https://github.com/eea/volto-eea-website-theme/commit/cbc36c74dfcd5f7cb1013a4c673d9c02e0023766)]
22
+ ### [2.1.1](https://github.com/eea/volto-eea-website-theme/compare/2.1.0...2.1.1) - 28 May 2024
23
+
24
+ #### :bug: Bug Fixes
25
+
26
+ - fix: wait for the draft version to be created - refs #270058 [dobri1408 - [`d32b0d7`](https://github.com/eea/volto-eea-website-theme/commit/d32b0d7d020ead173c13789936a95c6407bddcd6)]
27
+
28
+ #### :hammer_and_wrench: Others
29
+
30
+ - Fix InternalUrlWidget.jsx until merged in volto core - refs #269272 [dobri1408 - [`73c383a`](https://github.com/eea/volto-eea-website-theme/commit/73c383a4bf1cc77902601493ad4aa359581f5c2c)]
7
31
  ### [2.1.0](https://github.com/eea/volto-eea-website-theme/compare/2.0.2...2.1.0) - 23 May 2024
8
32
 
9
33
  #### :hammer_and_wrench: Others
@@ -67,6 +91,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
67
91
 
68
92
  #### :hammer_and_wrench: Others
69
93
 
94
+ - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`adc6730`](https://github.com/eea/volto-eea-website-theme/commit/adc6730e21a37afb865b842182624401de6a29f5)]
70
95
  ### [1.33.1](https://github.com/eea/volto-eea-website-theme/compare/1.33.0...1.33.1) - 4 April 2024
71
96
 
72
97
  #### :bug: Bug Fixes
@@ -200,6 +225,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
200
225
 
201
226
  - bump version [Razvan - [`721e939`](https://github.com/eea/volto-eea-website-theme/commit/721e939d12e324b459ebfa78a2e656ee7142a3d6)]
202
227
  - merge master into this branch [Razvan - [`586c8f9`](https://github.com/eea/volto-eea-website-theme/commit/586c8f910bac55a043bd8dda60e9444bd2ae1663)]
228
+ - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`fd90044`](https://github.com/eea/volto-eea-website-theme/commit/fd9004442a9d1d465f7601ecdefe3e23c61e6a9c)]
229
+ - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4bc3dd3`](https://github.com/eea/volto-eea-website-theme/commit/4bc3dd3ae412a66befd04b5b80fab3716c929240)]
203
230
  - test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`c4dbd28`](https://github.com/eea/volto-eea-website-theme/commit/c4dbd289358205bc2d849aab7edb11ccf3b89cee)]
204
231
  - fix tests [Razvan - [`042330b`](https://github.com/eea/volto-eea-website-theme/commit/042330bc97d32ffe7ba769b4f2453f71cffed706)]
205
232
  - remove RemoveSchema logic [Razvan - [`08d10f8`](https://github.com/eea/volto-eea-website-theme/commit/08d10f8bf6f75478260e4e4c66d7316ba87b907a)]
@@ -294,6 +321,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
294
321
  - test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
295
322
  - test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
296
323
  - Revert "change(tests): commented out rss test since title block config is missing" [Alin Voinea - [`fb61191`](https://github.com/eea/volto-eea-website-theme/commit/fb611918d6ca380b89b594f283dcf9f685a4b294)]
324
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
325
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
326
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
327
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
328
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
297
329
  ### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
298
330
 
299
331
  #### :rocket: New Features
@@ -306,6 +338,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
306
338
 
307
339
  #### :house: Internal changes
308
340
 
341
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
309
342
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
310
343
  - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
311
344
 
@@ -491,6 +524,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
491
524
 
492
525
  #### :house: Internal changes
493
526
 
527
+ - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
494
528
 
495
529
  #### :hammer_and_wrench: Others
496
530
 
@@ -646,6 +680,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
646
680
 
647
681
  #### :hammer_and_wrench: Others
648
682
 
683
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
649
684
  ### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
650
685
 
651
686
  #### :bug: Bug Fixes
@@ -792,6 +827,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
792
827
 
793
828
  - For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
794
829
  - Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
830
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
795
831
  ### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
796
832
 
797
833
  #### :hammer_and_wrench: Others
@@ -825,6 +861,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
825
861
 
826
862
  - Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
827
863
  - bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
864
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
828
865
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
829
866
  ### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
830
867
 
@@ -834,6 +871,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
834
871
 
835
872
  #### :hammer_and_wrench: Others
836
873
 
874
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
837
875
  - Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
838
876
  - Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
839
877
  ### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
@@ -844,6 +882,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
844
882
 
845
883
  #### :hammer_and_wrench: Others
846
884
 
885
+ - yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
847
886
  ### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
848
887
 
849
888
  #### :rocket: New Features
@@ -884,6 +923,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
884
923
  - Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
885
924
  - Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
886
925
  - fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
926
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
887
927
  ### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
888
928
 
889
929
  #### :nail_care: Enhancements
@@ -931,6 +971,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
931
971
 
932
972
  #### :hammer_and_wrench: Others
933
973
 
974
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
934
975
  ### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
935
976
 
936
977
  #### :hammer_and_wrench: Others
@@ -1198,6 +1239,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1198
1239
  - Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
1199
1240
  - Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
1200
1241
  - 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)]
1242
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
1201
1243
  - use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
1202
1244
  - Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
1203
1245
  - Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
@@ -1239,4 +1281,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1239
1281
 
1240
1282
  #### :hammer_and_wrench: Others
1241
1283
 
1284
+ - yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
1242
1285
  - 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": "2.1.0",
3
+ "version": "2.1.2",
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",
@@ -0,0 +1,189 @@
1
+ /**
2
+ * UrlWidget component.
3
+ * @module components/manage/Widgets/UrlWidget
4
+ * Volto pr: https://github.com/plone/volto/pull/6036
5
+ * Remove after the pr has been merged and put in the right version
6
+ */
7
+
8
+ import React, { useState, useEffect } from 'react';
9
+ import PropTypes from 'prop-types';
10
+ import { Input, Button } from 'semantic-ui-react';
11
+ import { Icon } from '@plone/volto/components';
12
+ import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
13
+ import { isInternalURL, flattenToAppURL, URLUtils } from '@plone/volto/helpers';
14
+ import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
15
+ import clearSVG from '@plone/volto/icons/clear.svg';
16
+ import navTreeSVG from '@plone/volto/icons/nav.svg';
17
+
18
+ /** Widget to edit urls
19
+ *
20
+ * This is the default widget used for the `remoteUrl` field. You can also use
21
+ * it by declaring a field like:
22
+ *
23
+ * ```jsx
24
+ * {
25
+ * title: "URL",
26
+ * widget: 'url',
27
+ * }
28
+ * ```
29
+ */
30
+ export const InternalUrlWidget = (props) => {
31
+ const {
32
+ id,
33
+ onChange,
34
+ onBlur,
35
+ onClick,
36
+ minLength,
37
+ maxLength,
38
+ placeholder,
39
+ isDisabled,
40
+ value: propValue,
41
+ } = props;
42
+ const inputId = `field-${id}`;
43
+
44
+ const [value, setValue] = useState(flattenToAppURL(propValue));
45
+ const [isInvalid, setIsInvalid] = useState(false);
46
+
47
+ useEffect(() => {
48
+ if (propValue !== value) {
49
+ setValue(flattenToAppURL(propValue));
50
+ }
51
+ }, [propValue, value]);
52
+ /**
53
+ * Clear handler
54
+ * @method clear
55
+ * @param {Object} value Value
56
+ * @returns {undefined}
57
+ */
58
+ const clear = () => {
59
+ setValue('');
60
+ onChange(id, undefined);
61
+ };
62
+
63
+ const onChangeValue = (_value) => {
64
+ let newValue = _value;
65
+ if (newValue?.length > 0) {
66
+ if (isInvalid && URLUtils.isUrl(URLUtils.normalizeUrl(newValue))) {
67
+ setIsInvalid(false);
68
+ }
69
+
70
+ if (isInternalURL(newValue)) {
71
+ newValue = flattenToAppURL(newValue);
72
+ }
73
+ }
74
+
75
+ setValue(newValue);
76
+
77
+ newValue = isInternalURL(newValue) ? flattenToAppURL(newValue) : newValue;
78
+
79
+ if (!isInternalURL(newValue) && newValue.length > 0) {
80
+ const checkedURL = URLUtils.checkAndNormalizeUrl(newValue);
81
+ newValue = checkedURL.url;
82
+ if (!checkedURL.isValid) {
83
+ setIsInvalid(true);
84
+ }
85
+ }
86
+
87
+ onChange(id, newValue === '' ? undefined : newValue);
88
+ };
89
+
90
+ return (
91
+ <FormFieldWrapper {...props} className="url wide">
92
+ <div className="wrapper">
93
+ <Input
94
+ id={inputId}
95
+ name={id}
96
+ type="url"
97
+ value={value || ''}
98
+ disabled={isDisabled}
99
+ placeholder={placeholder}
100
+ onChange={({ target }) => onChangeValue(target.value)}
101
+ onBlur={({ target }) =>
102
+ onBlur(id, target.value === '' ? undefined : target.value)
103
+ }
104
+ onClick={() => onClick()}
105
+ minLength={minLength || null}
106
+ maxLength={maxLength || null}
107
+ error={isInvalid}
108
+ />
109
+ {value?.length > 0 ? (
110
+ <Button.Group>
111
+ <Button
112
+ basic
113
+ className="cancel"
114
+ aria-label="clearUrlBrowser"
115
+ onClick={(e) => {
116
+ e.preventDefault();
117
+ e.stopPropagation();
118
+ clear();
119
+ }}
120
+ >
121
+ <Icon name={clearSVG} size="30px" />
122
+ </Button>
123
+ </Button.Group>
124
+ ) : (
125
+ <Button.Group>
126
+ <Button
127
+ basic
128
+ icon
129
+ aria-label="openUrlBrowser"
130
+ onClick={(e) => {
131
+ e.preventDefault();
132
+ e.stopPropagation();
133
+ props.openObjectBrowser({
134
+ mode: 'link',
135
+ overlay: true,
136
+ onSelectItem: (url) => {
137
+ onChangeValue(url);
138
+ },
139
+ });
140
+ }}
141
+ >
142
+ <Icon name={navTreeSVG} size="24px" />
143
+ </Button>
144
+ </Button.Group>
145
+ )}
146
+ </div>
147
+ </FormFieldWrapper>
148
+ );
149
+ };
150
+
151
+ /**
152
+ * Property types
153
+ * @property {Object} propTypes Property types.
154
+ * @static
155
+ */
156
+ InternalUrlWidget.propTypes = {
157
+ id: PropTypes.string.isRequired,
158
+ title: PropTypes.string.isRequired,
159
+ description: PropTypes.string,
160
+ required: PropTypes.bool,
161
+ error: PropTypes.arrayOf(PropTypes.string),
162
+ value: PropTypes.string,
163
+ onChange: PropTypes.func.isRequired,
164
+ onBlur: PropTypes.func,
165
+ onClick: PropTypes.func,
166
+ minLength: PropTypes.number,
167
+ maxLength: PropTypes.number,
168
+ openObjectBrowser: PropTypes.func.isRequired,
169
+ placeholder: PropTypes.string,
170
+ };
171
+
172
+ /**
173
+ * Default properties.
174
+ * @property {Object} defaultProps Default properties.
175
+ * @static
176
+ */
177
+ InternalUrlWidget.defaultProps = {
178
+ description: null,
179
+ required: false,
180
+ error: [],
181
+ value: null,
182
+ onChange: () => {},
183
+ onBlur: () => {},
184
+ onClick: () => {},
185
+ minLength: null,
186
+ maxLength: null,
187
+ };
188
+
189
+ export default withObjectBrowser(InternalUrlWidget);
@@ -258,10 +258,14 @@ const Workflow = (props) => {
258
258
  };
259
259
 
260
260
  useEffect(() => {
261
- if (selectedOption?.value === 'createNewVersion' && workflowLoaded) {
261
+ if (
262
+ selectedOption?.value === 'createNewVersion' &&
263
+ workflowLoaded &&
264
+ loaded
265
+ ) {
262
266
  history.push(`${pathname}.1`);
263
267
  }
264
- }, [history, pathname, selectedOption?.value, workflowLoaded]);
268
+ }, [history, pathname, selectedOption?.value, workflowLoaded, loaded]);
265
269
 
266
270
  const { Placeholder } = props.reactSelect.components;
267
271
  const Select = props.reactSelect.default;
package/src/index.js CHANGED
@@ -9,6 +9,7 @@ import { TopicsWidget } from '@eeacms/volto-eea-website-theme/components/theme/W
9
9
  import CreatableSelectWidget from '@eeacms/volto-eea-website-theme/components/theme/Widgets/CreatableSelectWidget';
10
10
 
11
11
  import { Icon } from '@plone/volto/components';
12
+ import { default as TokenWidgetEdit } from '@plone/volto/components/manage/Widgets/TokenWidget';
12
13
  import { serializeNodesToText } from '@plone/volto-slate/editor/render';
13
14
  import Tag from '@eeacms/volto-eea-design-system/ui/Tag/Tag';
14
15
 
@@ -329,6 +330,7 @@ const applyConfig = (config) => {
329
330
  }
330
331
 
331
332
  // Custom Widgets
333
+ config.widgets.id.other_organisations = TokenWidgetEdit;
332
334
  config.widgets.views.id.topics = TopicsWidget;
333
335
  config.widgets.views.id.subjects = TokenWidget;
334
336
  config.widgets.views.widget.tags = TokenWidget;
package/src/index.test.js CHANGED
@@ -92,6 +92,7 @@ describe('applyConfig', () => {
92
92
  },
93
93
  },
94
94
  widget: {},
95
+ id: {},
95
96
  },
96
97
  settings: {
97
98
  eea: {
@@ -245,6 +246,7 @@ describe('applyConfig', () => {
245
246
  },
246
247
  },
247
248
  widget: {},
249
+ id: {},
248
250
  },
249
251
  settings: {
250
252
  eea: {},