@eeacms/volto-clms-theme 1.1.2 → 1.1.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 CHANGED
@@ -4,6 +4,16 @@ 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.1.3](https://github.com/eea/volto-clms-theme/compare/1.1.2...1.1.3) - 31 May 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: CLMS-2269 add new full dataset source [Mikel Larreategi - [`8788150`](https://github.com/eea/volto-clms-theme/commit/87881505dbd629af8a4b9521260cade52935fa8f)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - mail check onNlur [Unai - [`d82c262`](https://github.com/eea/volto-clms-theme/commit/d82c2629deb3cc0e5e9a8a5050efaf863c1733f2)]
16
+ - scroll to searchbox on paginate [ionlizarazu - [`7e2c880`](https://github.com/eea/volto-clms-theme/commit/7e2c8806e54761a7b2d622592696a115132a55bc)]
7
17
  ### [1.1.2](https://github.com/eea/volto-clms-theme/compare/1.1.1...1.1.2) - 30 May 2023
8
18
 
9
19
  #### :hammer_and_wrench: Others
@@ -1175,7 +1185,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1175
1185
  #### :hammer_and_wrench: Others
1176
1186
 
1177
1187
  - related products and datasets added to news and meeting views and login-plone route created [Unai - [`5704a1a`](https://github.com/eea/volto-clms-theme/commit/5704a1a766148746162b60efaf232ea90dc20cf4)]
1178
- - Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
1179
1188
  - sort items according to the lowercased label and put those with special meaning at the end [Mikel Larreategi - [`6410abe`](https://github.com/eea/volto-clms-theme/commit/6410abe096f60dcad54dced2026c9df9b7946d68)]
1180
1189
  - lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
1181
1190
  - footer newsletter subscription change, global search maxLength change from 8000 to 200 and /login design change [Unai - [`a09d24a`](https://github.com/eea/volto-clms-theme/commit/a09d24adbb6fa053fb2a2cc0071506b906593b42)]
@@ -1326,7 +1335,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1326
1335
  - search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
1327
1336
  - language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
1328
1337
  - toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
1329
- - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
1330
1338
  ### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
1331
1339
 
1332
1340
  #### :hammer_and_wrench: Others
@@ -2231,13 +2239,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2231
2239
  #### :hammer_and_wrench: Others
2232
2240
 
2233
2241
  - replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
2234
- - yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
2235
2242
  - add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
2236
2243
  - upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
2237
2244
  - HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
2238
2245
  - babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
2239
2246
  - prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
2240
- - add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
2241
2247
  - Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
2242
2248
  - cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
2243
2249
  - some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -77,6 +77,11 @@ const CclRelatedListingView = (props) => {
77
77
  sort_on = 'sortable_title';
78
78
  sort_order = 'ascending';
79
79
  }
80
+ const ref = React.useRef();
81
+
82
+ const handleScroll = (ref) => {
83
+ ref.scrollIntoView({ behavior: 'smooth' });
84
+ };
80
85
 
81
86
  React.useEffect(() => {
82
87
  if (searchSubrequests?.loaded) {
@@ -108,7 +113,7 @@ const CclRelatedListingView = (props) => {
108
113
  return (
109
114
  <>
110
115
  {searchSubrequests?.loaded && libraries.length > 0 ? (
111
- <div>
116
+ <div ref={ref}>
112
117
  {paginationSize < libraries.length && (
113
118
  <div className="block search">
114
119
  <div className="search-wrapper">
@@ -133,6 +138,7 @@ const CclRelatedListingView = (props) => {
133
138
  activePage={currentPage}
134
139
  totalPages={Math.ceil(dataList.length / paginationSize)}
135
140
  onPageChange={(e, { activePage }) => {
141
+ if (ref.current) handleScroll(ref.current);
136
142
  p_functions.setCurrentPage(activePage);
137
143
  }}
138
144
  firstItem={null}
@@ -122,6 +122,7 @@ class SubscriptionView extends Component {
122
122
  this.handleChange = this.handleChange.bind(this);
123
123
  this.onSubmit = this.onSubmit.bind(this);
124
124
  this.handleInputChange = this.handleInputChange.bind(this);
125
+ this.handleBlur = this.handleBlur.bind(this);
125
126
  this.state = {
126
127
  value: '',
127
128
  type_conf: null,
@@ -145,6 +146,9 @@ class SubscriptionView extends Component {
145
146
  this.setState({
146
147
  value: event.target.value,
147
148
  });
149
+ }
150
+
151
+ handleBlur(event) {
148
152
  const input =
149
153
  typeof window !== 'undefined' && document.getElementById('email') !== null
150
154
  ? document.getElementById('email')
@@ -336,6 +340,7 @@ class SubscriptionView extends Component {
336
340
  // required={true}
337
341
  value={this.state.value}
338
342
  onChange={this.handleChange}
343
+ onBlur={this.handleBlur}
339
344
  />
340
345
  {this.state.inputValue === false ||
341
346
  validator.isEmail(this.state.value) === false ? (
@@ -42,6 +42,7 @@ const ItemSchema = () => ({
42
42
  ['EEA', 'EEA'],
43
43
  ['LANDCOVER', 'LANDCOVER'],
44
44
  ['LEGACY', 'LEGACY'],
45
+ ['HOTSPOTS', 'HOTSPOTS'],
45
46
  ],
46
47
  },
47
48
  wekeo_choices: {
@@ -25,7 +25,7 @@ const EmailWidget = (props) => {
25
25
  id,
26
26
  value = '',
27
27
  onChange,
28
- onBlur,
28
+ // onBlur,
29
29
  onClick,
30
30
  minLength,
31
31
  placeholder,
@@ -54,8 +54,8 @@ const EmailWidget = (props) => {
54
54
  typeof window !== 'undefined' && document.getElementById(inputId) !== null
55
55
  ? document.getElementById(inputId)
56
56
  : '';
57
- // email.addEventListener('input', function (e) {
58
- React.useEffect(() => {
57
+
58
+ const handleBlur = () => {
59
59
  if (email !== '') {
60
60
  if (!validator.isEmail(email)) {
61
61
  input.setCustomValidity(intl.formatMessage(messages.invalid_email));
@@ -66,9 +66,7 @@ const EmailWidget = (props) => {
66
66
  } else {
67
67
  return;
68
68
  }
69
- // eslint-disable-next-line react-hooks/exhaustive-deps
70
- }, [email]);
71
- // });
69
+ };
72
70
 
73
71
  return (
74
72
  <FormFieldWrapper {...props} className="email">
@@ -83,9 +81,7 @@ const EmailWidget = (props) => {
83
81
  onChange={({ target }) =>
84
82
  onChange(id, target.value === '' ? undefined : target.value)
85
83
  }
86
- onBlur={({ target }) =>
87
- onBlur(id, target.value === '' ? undefined : target.value)
88
- }
84
+ onBlur={handleBlur}
89
85
  onClick={() => onClick()}
90
86
  minLength={minLength || null}
91
87
  maxLength={200}
@@ -128,6 +128,7 @@ class Footer extends Component {
128
128
  super(props);
129
129
  this.handleChange = this.handleChange.bind(this);
130
130
  this.handleInputChange = this.handleInputChange.bind(this);
131
+ this.handleBlur = this.handleBlur.bind(this);
131
132
  this.onSubmit = this.onSubmit.bind(this);
132
133
  this.state = {
133
134
  value: '',
@@ -154,6 +155,8 @@ class Footer extends Component {
154
155
  this.setState({
155
156
  value: event.target.value,
156
157
  });
158
+ }
159
+ handleBlur(event) {
157
160
  const input =
158
161
  typeof window !== 'undefined' &&
159
162
  document.getElementById('footer-email') !== null
@@ -380,6 +383,7 @@ class Footer extends Component {
380
383
  id="footer-email"
381
384
  value={this.state.value}
382
385
  onChange={this.handleChange}
386
+ onBlur={this.handleBlur}
383
387
  />
384
388
  <button
385
389
  disabled={