@eeacms/volto-eea-website-theme 2.1.0 → 2.1.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,15 @@ 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.1](https://github.com/eea/volto-eea-website-theme/compare/2.1.0...2.1.1) - 28 May 2024
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix: wait for the draft version to be created - refs #270058 [dobri1408 - [`d32b0d7`](https://github.com/eea/volto-eea-website-theme/commit/d32b0d7d020ead173c13789936a95c6407bddcd6)]
|
12
|
+
|
13
|
+
#### :hammer_and_wrench: Others
|
14
|
+
|
15
|
+
- Fix InternalUrlWidget.jsx until merged in volto core - refs #269272 [dobri1408 - [`73c383a`](https://github.com/eea/volto-eea-website-theme/commit/73c383a4bf1cc77902601493ad4aa359581f5c2c)]
|
7
16
|
### [2.1.0](https://github.com/eea/volto-eea-website-theme/compare/2.0.2...2.1.0) - 23 May 2024
|
8
17
|
|
9
18
|
#### :hammer_and_wrench: Others
|
@@ -67,6 +76,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
67
76
|
|
68
77
|
#### :hammer_and_wrench: Others
|
69
78
|
|
79
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`adc6730`](https://github.com/eea/volto-eea-website-theme/commit/adc6730e21a37afb865b842182624401de6a29f5)]
|
70
80
|
### [1.33.1](https://github.com/eea/volto-eea-website-theme/compare/1.33.0...1.33.1) - 4 April 2024
|
71
81
|
|
72
82
|
#### :bug: Bug Fixes
|
@@ -200,6 +210,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
200
210
|
|
201
211
|
- bump version [Razvan - [`721e939`](https://github.com/eea/volto-eea-website-theme/commit/721e939d12e324b459ebfa78a2e656ee7142a3d6)]
|
202
212
|
- merge master into this branch [Razvan - [`586c8f9`](https://github.com/eea/volto-eea-website-theme/commit/586c8f910bac55a043bd8dda60e9444bd2ae1663)]
|
213
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`fd90044`](https://github.com/eea/volto-eea-website-theme/commit/fd9004442a9d1d465f7601ecdefe3e23c61e6a9c)]
|
214
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4bc3dd3`](https://github.com/eea/volto-eea-website-theme/commit/4bc3dd3ae412a66befd04b5b80fab3716c929240)]
|
203
215
|
- test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`c4dbd28`](https://github.com/eea/volto-eea-website-theme/commit/c4dbd289358205bc2d849aab7edb11ccf3b89cee)]
|
204
216
|
- fix tests [Razvan - [`042330b`](https://github.com/eea/volto-eea-website-theme/commit/042330bc97d32ffe7ba769b4f2453f71cffed706)]
|
205
217
|
- remove RemoveSchema logic [Razvan - [`08d10f8`](https://github.com/eea/volto-eea-website-theme/commit/08d10f8bf6f75478260e4e4c66d7316ba87b907a)]
|
@@ -294,6 +306,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
294
306
|
- test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
|
295
307
|
- 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
308
|
- 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)]
|
309
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
|
310
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
|
311
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
|
312
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
|
313
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
|
297
314
|
### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
|
298
315
|
|
299
316
|
#### :rocket: New Features
|
@@ -306,6 +323,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
306
323
|
|
307
324
|
#### :house: Internal changes
|
308
325
|
|
326
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
|
309
327
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
|
310
328
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
|
311
329
|
|
@@ -491,6 +509,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
491
509
|
|
492
510
|
#### :house: Internal changes
|
493
511
|
|
512
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
|
494
513
|
|
495
514
|
#### :hammer_and_wrench: Others
|
496
515
|
|
@@ -646,6 +665,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
646
665
|
|
647
666
|
#### :hammer_and_wrench: Others
|
648
667
|
|
668
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
649
669
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
650
670
|
|
651
671
|
#### :bug: Bug Fixes
|
@@ -792,6 +812,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
792
812
|
|
793
813
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
794
814
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
815
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
795
816
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
796
817
|
|
797
818
|
#### :hammer_and_wrench: Others
|
@@ -825,6 +846,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
825
846
|
|
826
847
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
827
848
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
849
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
828
850
|
- 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
851
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
830
852
|
|
@@ -834,6 +856,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
834
856
|
|
835
857
|
#### :hammer_and_wrench: Others
|
836
858
|
|
859
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
837
860
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
838
861
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
839
862
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
@@ -844,6 +867,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
844
867
|
|
845
868
|
#### :hammer_and_wrench: Others
|
846
869
|
|
870
|
+
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
847
871
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
848
872
|
|
849
873
|
#### :rocket: New Features
|
@@ -884,6 +908,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
884
908
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
885
909
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
886
910
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
911
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
887
912
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
888
913
|
|
889
914
|
#### :nail_care: Enhancements
|
@@ -931,6 +956,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
931
956
|
|
932
957
|
#### :hammer_and_wrench: Others
|
933
958
|
|
959
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
934
960
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
935
961
|
|
936
962
|
#### :hammer_and_wrench: Others
|
@@ -1198,6 +1224,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
1198
1224
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
1199
1225
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
1200
1226
|
- 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)]
|
1227
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
1201
1228
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
1202
1229
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
1203
1230
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
@@ -1239,4 +1266,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
1239
1266
|
|
1240
1267
|
#### :hammer_and_wrench: Others
|
1241
1268
|
|
1269
|
+
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
1242
1270
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/package.json
CHANGED
@@ -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 (
|
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;
|