@plone/volto 16.20.4 → 16.20.5
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.draft +11 -3
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +32 -13
- package/CONTRIBUTING.md +1 -1
- package/README.md +4 -4
- package/package.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/src/components/theme/Login/Login.jsx +1 -0
- package/src/helpers/Url/Url.js +8 -3
- package/src/helpers/Url/Url.test.js +14 -0
- package/theme/themes/pastanaga/extras/sidebar.less +4 -0
package/.changelog.draft
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
## 16.20.
|
|
1
|
+
## 16.20.5 (2023-05-12)
|
|
2
2
|
|
|
3
3
|
### Bugfix
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Apply suggestion from browser for password field @lord2anil [#3990](https://github.com/plone/volto/issues/3990)
|
|
6
|
+
- The tabs for the add page was unresponsive on mobile devices. Fixed this by changing flex-wrap property. @sudhanshu1309 [#4506](https://github.com/plone/volto/issues/4506)
|
|
7
|
+
- (fix):Object.normaliseMail: Cannot read properties of null @dobri1408 [#4558](https://github.com/plone/volto/issues/4558)
|
|
6
8
|
|
|
7
9
|
### Internal
|
|
8
10
|
|
|
9
|
-
-
|
|
11
|
+
- Upgrade to Plone 6.0.4 @sneridagh [#4743](https://github.com/plone/volto/issues/4743)
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
- Added documentation regarding the static middleware. @BhardwajAditya-github [#4518](https://github.com/plone/volto/issues/4518)
|
|
16
|
+
- Backport most documentation differences from `master` to `16.x.x`. @stevepiercy [#4727](https://github.com/plone/volto/issues/4727)
|
|
17
|
+
- Fix link in Volto, remove from linkcheck ignore in Documentation. @stevepiercy [#4742](https://github.com/plone/volto/issues/4742)
|
|
10
18
|
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,25 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 16.20.5 (2023-05-12)
|
|
12
|
+
|
|
13
|
+
### Bugfix
|
|
14
|
+
|
|
15
|
+
- Apply suggestion from browser for password field @lord2anil [#3990](https://github.com/plone/volto/issues/3990)
|
|
16
|
+
- The tabs for the add page was unresponsive on mobile devices. Fixed this by changing flex-wrap property. @sudhanshu1309 [#4506](https://github.com/plone/volto/issues/4506)
|
|
17
|
+
- (fix):Object.normaliseMail: Cannot read properties of null @dobri1408 [#4558](https://github.com/plone/volto/issues/4558)
|
|
18
|
+
|
|
19
|
+
### Internal
|
|
20
|
+
|
|
21
|
+
- Upgrade to Plone 6.0.4 @sneridagh [#4743](https://github.com/plone/volto/issues/4743)
|
|
22
|
+
|
|
23
|
+
### Documentation
|
|
24
|
+
|
|
25
|
+
- Added documentation regarding the static middleware. @BhardwajAditya-github [#4518](https://github.com/plone/volto/issues/4518)
|
|
26
|
+
- Backport most documentation differences from `master` to `16.x.x`. @stevepiercy [#4727](https://github.com/plone/volto/issues/4727)
|
|
27
|
+
- Fix link in Volto, remove from linkcheck ignore in Documentation. @stevepiercy [#4742](https://github.com/plone/volto/issues/4742)
|
|
28
|
+
|
|
29
|
+
|
|
11
30
|
## 16.20.4 (2023-04-20)
|
|
12
31
|
|
|
13
32
|
### Bugfix
|
|
@@ -274,7 +293,7 @@
|
|
|
274
293
|
|
|
275
294
|
### Documentation
|
|
276
295
|
|
|
277
|
-
- Complete teaser docs, add new section in `Blocks`: `Core Blocks developers notes` @sneridagh [#4461](https://github.com/plone/volto/
|
|
296
|
+
- Complete teaser docs, add new section in `Blocks`: `Core Blocks developers notes` @sneridagh [#4461](https://github.com/plone/volto/pull/4461)
|
|
278
297
|
|
|
279
298
|
|
|
280
299
|
## 16.14.0 (2023-03-03)
|
|
@@ -604,7 +623,7 @@
|
|
|
604
623
|
- Enable the use of yarn 3 in the build by default @sneridagh
|
|
605
624
|
- The `ContentsBreadcrumbs` component now renders the whole language name of the language root folder (if any) instead of just the `id` (before: `de`, now: `Deutsch`) @sneridagh
|
|
606
625
|
|
|
607
|
-
See https://6.
|
|
626
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
608
627
|
|
|
609
628
|
### Feature
|
|
610
629
|
|
|
@@ -1099,7 +1118,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
1099
1118
|
- Moved all sentry-related code from Volto to the `@plone-collective/volto-sentry` package. @tiberiuichim
|
|
1100
1119
|
- The listing block icon has been improved to avoid confusion with the normal text list. @sneridagh
|
|
1101
1120
|
|
|
1102
|
-
See https://6.
|
|
1121
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1103
1122
|
|
|
1104
1123
|
### Feature
|
|
1105
1124
|
|
|
@@ -1209,7 +1228,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
1209
1228
|
|
|
1210
1229
|
- Sentry integration is now lazy-loaded. The `sentryOptions` key from the `settings` registry becomes a callable that passes resolved sentry libraries. @tiberiuichim
|
|
1211
1230
|
|
|
1212
|
-
See https://6.
|
|
1231
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1213
1232
|
|
|
1214
1233
|
### Feature
|
|
1215
1234
|
|
|
@@ -1273,7 +1292,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
1273
1292
|
- Upgrade to Razzle 4 @davisagli
|
|
1274
1293
|
- Jest downgraded from 27 to 26 @davisagli
|
|
1275
1294
|
|
|
1276
|
-
See https://6.
|
|
1295
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1277
1296
|
|
|
1278
1297
|
### Internal
|
|
1279
1298
|
|
|
@@ -1313,7 +1332,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
1313
1332
|
### Breaking
|
|
1314
1333
|
|
|
1315
1334
|
- `react-window` no longer a Volto dependency @sneridagh
|
|
1316
|
-
See https://6.
|
|
1335
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1317
1336
|
|
|
1318
1337
|
### Bugfix
|
|
1319
1338
|
|
|
@@ -1352,7 +1371,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
1352
1371
|
### Breaking
|
|
1353
1372
|
|
|
1354
1373
|
- Move Layout constants to `config.views.layoutViewsNamesMapping`. Complete the list. i18n the list. Improve Display component. @sneridagh
|
|
1355
|
-
See https://6.
|
|
1374
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1356
1375
|
|
|
1357
1376
|
### Feature
|
|
1358
1377
|
|
|
@@ -1398,7 +1417,7 @@ Undo html_static_path configuration in `plone/documentation`, and restore image
|
|
|
1398
1417
|
### Breaking
|
|
1399
1418
|
|
|
1400
1419
|
- Main workflow change menu changed from Pastanaga UI simplification to classic Plone implementation. @sneridagh
|
|
1401
|
-
See https://6.
|
|
1420
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1402
1421
|
|
|
1403
1422
|
### Feature
|
|
1404
1423
|
|
|
@@ -1494,7 +1513,7 @@ Undo html_static_path configuration in `plone/documentation`, and restore image
|
|
|
1494
1513
|
- change password-reset url to be consistent with Plone configuration @erral
|
|
1495
1514
|
- Simplify over the existing Component Registry API. The `component` key has been flattened for simplification and now it's mapped directly to the `component` argument of `registerComponent`. @sneridagh
|
|
1496
1515
|
|
|
1497
|
-
See https://6.
|
|
1516
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1498
1517
|
|
|
1499
1518
|
### Feature
|
|
1500
1519
|
|
|
@@ -2072,14 +2091,14 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
|
|
|
2072
2091
|
### Breaking
|
|
2073
2092
|
|
|
2074
2093
|
- Upgrade `react-cookie` to the latest version. @sneridagh @robgietema
|
|
2075
|
-
See https://6.
|
|
2094
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
2076
2095
|
- Language Switcher no longer takes care of the change of the language on the Redux Store. This responsibility has been unified in the API Redux middleware @sneridagh
|
|
2077
2096
|
- Markup change in `LinkView` component.
|
|
2078
2097
|
- Rename `core-sandbox` to `coresandbox` for sake of consistency @sneridagh
|
|
2079
2098
|
- Extend the original intent and rename `RAZZLE_TESTING_ADDONS` to `ADDONS`. @sneridagh
|
|
2080
|
-
See https://6.
|
|
2099
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
2081
2100
|
- Lazyload Draft.js library. See the upgrade guide on how that impacts you, in case you have extended the rich text editor configuration @tiberiuichim @kreafox
|
|
2082
|
-
See https://6.
|
|
2101
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
2083
2102
|
- Deprecating `lang` cookie in favor of Plone official one `I18N_LANGUAGE` @sneridagh
|
|
2084
2103
|
|
|
2085
2104
|
### Feature
|
|
@@ -5025,7 +5044,7 @@ https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
|
5025
5044
|
- Added item type as a tooltip in contents @nzambello
|
|
5026
5045
|
- Added Italian translations and translated array, token and select widget. @giuliaghisini
|
|
5027
5046
|
- Added uploading image preview in FileWidget @iFlameing
|
|
5028
|
-
- Allow custom express middleware declared with `settings.expressMiddleware`. See [Custom Express middleware](https://6.
|
|
5047
|
+
- Allow custom express middleware declared with `settings.expressMiddleware`. See [Custom Express middleware](https://6.docs.plone.org/volto/recipes/express.html) @tiberiuichim
|
|
5029
5048
|
|
|
5030
5049
|
### Bugfix
|
|
5031
5050
|
|
package/CONTRIBUTING.md
CHANGED
package/README.md
CHANGED
|
@@ -181,7 +181,7 @@ Please create a new [issue](https://github.com/plone/volto/issues/new) or [pull
|
|
|
181
181
|
|
|
182
182
|
## Documentation
|
|
183
183
|
|
|
184
|
-
You can find the latest
|
|
184
|
+
You can find the latest documentation in [https://6.docs.plone.org/](https://6.docs.plone.org/volto/index.html)
|
|
185
185
|
|
|
186
186
|
## Training
|
|
187
187
|
|
|
@@ -243,7 +243,7 @@ We do not guarantee that deprecated browsers (e.g., Internet Explorer 11) are su
|
|
|
243
243
|
|
|
244
244
|
## Upgrades
|
|
245
245
|
|
|
246
|
-
You can find the upgrade guide here: https://6.
|
|
246
|
+
You can find the upgrade guide here: https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
247
247
|
|
|
248
248
|
## Volto Development
|
|
249
249
|
|
|
@@ -318,11 +318,11 @@ yarn test
|
|
|
318
318
|
|
|
319
319
|
Here you can find a guide on how acceptance testing is done in Volto:
|
|
320
320
|
|
|
321
|
-
https://6.
|
|
321
|
+
https://6.docs.plone.org/volto/developer-guidelines/acceptance-tests.html
|
|
322
322
|
|
|
323
323
|
## Translations
|
|
324
324
|
|
|
325
|
-
If you would like contribute to translate Volto into several languages, please, read the [Internationalization (i18n) guide](https://6.
|
|
325
|
+
If you would like contribute to translate Volto into several languages, please, read the [Internationalization (i18n) guide](https://6.docs.plone.org/volto/recipes/i18n.html).
|
|
326
326
|
|
|
327
327
|
## Contributors
|
|
328
328
|
|
package/package.json
CHANGED
package/src/helpers/Url/Url.js
CHANGED
|
@@ -280,14 +280,14 @@ export function isTelephone(text) {
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
export function normaliseMail(email) {
|
|
283
|
-
if (email
|
|
283
|
+
if (email?.toLowerCase()?.startsWith('mailto:')) {
|
|
284
284
|
return email;
|
|
285
285
|
}
|
|
286
286
|
return `mailto:${email}`;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
export function normalizeTelephone(tel) {
|
|
290
|
-
if (tel
|
|
290
|
+
if (tel?.toLowerCase()?.startsWith('tel:')) {
|
|
291
291
|
return tel;
|
|
292
292
|
}
|
|
293
293
|
return `tel:${tel}`;
|
|
@@ -310,12 +310,17 @@ export function checkAndNormalizeUrl(url) {
|
|
|
310
310
|
res.url = URLUtils.normalizeTelephone(url);
|
|
311
311
|
} else {
|
|
312
312
|
//url
|
|
313
|
-
if (
|
|
313
|
+
if (
|
|
314
|
+
res.url?.length >= 0 &&
|
|
315
|
+
!res.url.startsWith('/') &&
|
|
316
|
+
!res.url.startsWith('#')
|
|
317
|
+
) {
|
|
314
318
|
res.url = URLUtils.normalizeUrl(url);
|
|
315
319
|
if (!URLUtils.isUrl(res.url)) {
|
|
316
320
|
res.isValid = false;
|
|
317
321
|
}
|
|
318
322
|
}
|
|
323
|
+
if (res.url === undefined || res.url === null) res.isValid = false;
|
|
319
324
|
}
|
|
320
325
|
return res;
|
|
321
326
|
}
|
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
removeProtocol,
|
|
15
15
|
addAppURL,
|
|
16
16
|
expandToBackendURL,
|
|
17
|
+
checkAndNormalizeUrl,
|
|
18
|
+
normaliseMail,
|
|
19
|
+
normalizeTelephone,
|
|
17
20
|
} from './Url';
|
|
18
21
|
|
|
19
22
|
beforeEach(() => {
|
|
@@ -61,6 +64,17 @@ describe('Url', () => {
|
|
|
61
64
|
it('return empty string if no url is empty string', () => {
|
|
62
65
|
expect(getBaseUrl('')).toBe('');
|
|
63
66
|
});
|
|
67
|
+
it('return a null/undefined mailto adress ', () => {
|
|
68
|
+
expect(normaliseMail(null)).toBe('mailto:null');
|
|
69
|
+
expect(normaliseMail(undefined)).toBe('mailto:undefined');
|
|
70
|
+
});
|
|
71
|
+
it('return a null/undefined telephone number', () => {
|
|
72
|
+
expect(normalizeTelephone(null)).toBe('tel:null');
|
|
73
|
+
expect(normalizeTelephone(undefined)).toBe('tel:undefined');
|
|
74
|
+
});
|
|
75
|
+
it('null returns an invalid link', () => {
|
|
76
|
+
expect(checkAndNormalizeUrl(null).isValid).toBe(false);
|
|
77
|
+
});
|
|
64
78
|
});
|
|
65
79
|
|
|
66
80
|
describe('getView', () => {
|