From 25dcb4f415e53bf9629cdff8622f59e72d317aea Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Wed, 9 Oct 2024 11:26:21 +0200 Subject: [PATCH] Release 17.20.0 --- CHANGELOG.md | 11 +++++++++++ docs/source/release-notes/index.md | 11 +++++++++++ news/6264.feature | 1 - news/6377.documentation | 1 - news/6384.feature | 1 - package.json | 2 +- packages/volto-slate/package.json | 2 +- types/hooks/index.d.ts | 1 + types/hooks/user/useUser.d.ts | 2 ++ 9 files changed, 27 insertions(+), 5 deletions(-) delete mode 100644 news/6264.feature delete mode 100644 news/6377.documentation delete mode 100644 news/6384.feature create mode 100644 types/hooks/user/useUser.d.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 685288ca1e..d38c8e2b1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,17 @@ myst: +## 17.20.0 (2024-10-09) + +### Feature + +- Pass the `user`, `navRoot`, and `contentType` objects to the `restricted` function of the block settings. @wesleybl [#6264](https://github.com/plone/volto/issues/6264) +- improve DiffField.jsx with better support for displaying HTML elements such as images @dobri1408 [#6384](https://github.com/plone/volto/issues/6384) + +### Documentation + +- Install Vale via pip, and pin to <3.0.0, allowing it to run locally and in CI without reconfiguration. @stevepiercy [#6377](https://github.com/plone/volto/issues/6377) + ## 17.19.0 (2024-10-03) ### Feature diff --git a/docs/source/release-notes/index.md b/docs/source/release-notes/index.md index 685288ca1e..d38c8e2b1f 100644 --- a/docs/source/release-notes/index.md +++ b/docs/source/release-notes/index.md @@ -17,6 +17,17 @@ myst: +## 17.20.0 (2024-10-09) + +### Feature + +- Pass the `user`, `navRoot`, and `contentType` objects to the `restricted` function of the block settings. @wesleybl [#6264](https://github.com/plone/volto/issues/6264) +- improve DiffField.jsx with better support for displaying HTML elements such as images @dobri1408 [#6384](https://github.com/plone/volto/issues/6384) + +### Documentation + +- Install Vale via pip, and pin to <3.0.0, allowing it to run locally and in CI without reconfiguration. @stevepiercy [#6377](https://github.com/plone/volto/issues/6377) + ## 17.19.0 (2024-10-03) ### Feature diff --git a/news/6264.feature b/news/6264.feature deleted file mode 100644 index 505e64c3b6..0000000000 --- a/news/6264.feature +++ /dev/null @@ -1 +0,0 @@ -Pass the `user`, `navRoot`, and `contentType` objects to the `restricted` function of the block settings. @wesleybl diff --git a/news/6377.documentation b/news/6377.documentation deleted file mode 100644 index 936d5d7937..0000000000 --- a/news/6377.documentation +++ /dev/null @@ -1 +0,0 @@ -Install Vale via pip, and pin to <3.0.0, allowing it to run locally and in CI without reconfiguration. @stevepiercy diff --git a/news/6384.feature b/news/6384.feature deleted file mode 100644 index 446af0edf9..0000000000 --- a/news/6384.feature +++ /dev/null @@ -1 +0,0 @@ -improve DiffField.jsx with better support for displaying HTML elements such as images @dobri1408 diff --git a/package.json b/package.json index b8a63527be..85dc9d77a2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ } ], "license": "MIT", - "version": "17.19.0", + "version": "17.20.0", "repository": { "type": "git", "url": "git@github.com:plone/volto.git" diff --git a/packages/volto-slate/package.json b/packages/volto-slate/package.json index 5366e905a2..28439fce7b 100644 --- a/packages/volto-slate/package.json +++ b/packages/volto-slate/package.json @@ -1,6 +1,6 @@ { "name": "@plone/volto-slate", - "version": "17.19.0", + "version": "17.20.0", "description": "Slate.js integration with Volto", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/types/hooks/index.d.ts b/types/hooks/index.d.ts index 674ee3a17f..e83d19cd68 100644 --- a/types/hooks/index.d.ts +++ b/types/hooks/index.d.ts @@ -1,2 +1,3 @@ export { default as useClipboard } from "@plone/volto/hooks/clipboard/useClipboard"; export { useClient } from "@plone/volto/hooks/client/useClient"; +export { default as useUser } from "@plone/volto/hooks/user/useUser"; diff --git a/types/hooks/user/useUser.d.ts b/types/hooks/user/useUser.d.ts new file mode 100644 index 0000000000..40d1a910b8 --- /dev/null +++ b/types/hooks/user/useUser.d.ts @@ -0,0 +1,2 @@ +export default useUser; +declare function useUser(): any;