From d33d3391a278bb87bdea94b2db18db9f577caea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Fern=C3=A1ndez=20de=20Alba?= Date: Thu, 5 Dec 2024 17:55:35 +0100 Subject: [PATCH 1/4] [components] Fix color picker usability (#6512) --- packages/components/news/6512.bugfix | 1 + .../components/ColorPicker/ColorPicker.stories.tsx | 13 ++++++++++++- .../src/components/ColorPicker/ColorPicker.tsx | 9 ++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 packages/components/news/6512.bugfix diff --git a/packages/components/news/6512.bugfix b/packages/components/news/6512.bugfix new file mode 100644 index 0000000000..82fc7a1f61 --- /dev/null +++ b/packages/components/news/6512.bugfix @@ -0,0 +1 @@ +Fix color picker usability. @sneridagh diff --git a/packages/components/src/components/ColorPicker/ColorPicker.stories.tsx b/packages/components/src/components/ColorPicker/ColorPicker.stories.tsx index 1f94cc3a6c..686b2dd859 100644 --- a/packages/components/src/components/ColorPicker/ColorPicker.stories.tsx +++ b/packages/components/src/components/ColorPicker/ColorPicker.stories.tsx @@ -14,11 +14,22 @@ const meta = { tags: ['autodocs'], } satisfies Meta; +const ColorPickerStory = (args: any) => { + const [color, setColor] = React.useState(args.defaultValue); + + return ( + <> + + The color is: {color.toString('hex')} + + ); +}; + export default meta; type Story = StoryObj; export const Default: Story = { - render: (args: any) => , + render: ColorPickerStory, }; Default.args = { diff --git a/packages/components/src/components/ColorPicker/ColorPicker.tsx b/packages/components/src/components/ColorPicker/ColorPicker.tsx index 4bedc19b43..f8bed1f0bd 100644 --- a/packages/components/src/components/ColorPicker/ColorPicker.tsx +++ b/packages/components/src/components/ColorPicker/ColorPicker.tsx @@ -35,7 +35,14 @@ export function ColorPicker({ label, children, ...props }: ColorPickerProps) { yChannel="brightness" /> - + { + if (e.key === 'Enter') { + e.currentTarget.blur(); + } + }} + /> )} From bb531a83a19775948d672deb9f96250a462ab6ee Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 5 Dec 2024 18:03:40 +0100 Subject: [PATCH 2/4] Release @plone/components 2.2.1 --- packages/components/CHANGELOG.md | 6 ++++++ packages/components/news/6512.bugfix | 1 - packages/components/package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 packages/components/news/6512.bugfix diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 8b6360ff57..451fc012b6 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -8,6 +8,12 @@ +## 2.2.1 (2024-12-05) + +### Bugfix + +- Fix color picker usability. @sneridagh [#6512](https://github.com/plone/volto/issues/6512) + ## 2.2.0 (2024-11-21) ### Feature diff --git a/packages/components/news/6512.bugfix b/packages/components/news/6512.bugfix deleted file mode 100644 index 82fc7a1f61..0000000000 --- a/packages/components/news/6512.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix color picker usability. @sneridagh diff --git a/packages/components/package.json b/packages/components/package.json index 18004f5337..2e45ce640a 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -8,7 +8,7 @@ } ], "license": "MIT", - "version": "2.2.0", + "version": "2.2.1", "repository": { "type": "git", "url": "http://github.com/plone/components.git" From d4f38f3d806f8a5da925f73405eb67f762e631a4 Mon Sep 17 00:00:00 2001 From: David Glick Date: Thu, 5 Dec 2024 09:19:19 -0800 Subject: [PATCH 3/4] Remove devserver settings for HMR of volto (#6511) Co-authored-by: Steve Piercy --- packages/volto/news/6511.bugfix | 1 + packages/volto/razzle.config.js | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) create mode 100644 packages/volto/news/6511.bugfix diff --git a/packages/volto/news/6511.bugfix b/packages/volto/news/6511.bugfix new file mode 100644 index 0000000000..cd5dccfb9e --- /dev/null +++ b/packages/volto/news/6511.bugfix @@ -0,0 +1 @@ +Fix warnings related to `snapshot.managedPaths` on startup. @davisagli diff --git a/packages/volto/razzle.config.js b/packages/volto/razzle.config.js index a37df657ac..5ab88cb132 100644 --- a/packages/volto/razzle.config.js +++ b/packages/volto/razzle.config.js @@ -414,15 +414,6 @@ const defaultModify = ({ ] : []; - if (config.devServer) { - config.devServer.static.watch.ignored = /node_modules\/(?!@plone\/volto)/; - config.snapshot = { - managedPaths: [ - /^(.+?[\\/]node_modules[\\/](?!(@plone[\\/]volto))(@.+?[\\/])?.+?)[\\/]/, - ], - }; - } - return config; }; From c80322612e51674cf2c56c7e1311724cb1d9671b Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 5 Dec 2024 18:28:01 +0100 Subject: [PATCH 4/4] Release 18.1.2 --- docs/source/release-notes/index.md | 17 +++++++++++++++++ packages/volto/CHANGELOG.md | 17 +++++++++++++++++ packages/volto/news/6339.internal | 1 - packages/volto/news/6499.documentation | 1 - packages/volto/news/6501.bugfix | 1 - packages/volto/news/6502.documentation | 1 - packages/volto/news/6510.internal | 1 - packages/volto/news/6511.bugfix | 1 - packages/volto/package.json | 2 +- 9 files changed, 35 insertions(+), 7 deletions(-) delete mode 100644 packages/volto/news/6339.internal delete mode 100644 packages/volto/news/6499.documentation delete mode 100644 packages/volto/news/6501.bugfix delete mode 100644 packages/volto/news/6502.documentation delete mode 100644 packages/volto/news/6510.internal delete mode 100644 packages/volto/news/6511.bugfix diff --git a/docs/source/release-notes/index.md b/docs/source/release-notes/index.md index 040f15972a..791e5af741 100644 --- a/docs/source/release-notes/index.md +++ b/docs/source/release-notes/index.md @@ -17,6 +17,23 @@ myst: +## 18.1.2 (2024-12-05) + +### Bugfix + +- Remove `not ie 11` from browserslist configuration, because it is now included in `not dead`. @stevepiercy [#6501](https://github.com/plone/volto/issues/6501) +- Fix warnings related to `snapshot.managedPaths` on startup. @davisagli [#6511](https://github.com/plone/volto/issues/6511) + +### Internal + +- Add Accessibility acceptance tests for content types. @ana-oprea @ichim-david [#6339](https://github.com/plone/volto/issues/6339) +- Fixed the `README.md` for Volto core when releasing to npm registry: copy it from the root of the monorepo on release. @sneridagh [#6510](https://github.com/plone/volto/issues/6510) + +### Documentation + +- Add new Volto trainings to tutorials. @stevepiercy [#6499](https://github.com/plone/volto/issues/6499) +- `html_use_opensearch` value must not have a trailing slash. Clean up comments. @stevepiercy [#6502](https://github.com/plone/volto/issues/6502) + ## 18.1.1 (2024-11-21) ### Bugfix diff --git a/packages/volto/CHANGELOG.md b/packages/volto/CHANGELOG.md index 040f15972a..791e5af741 100644 --- a/packages/volto/CHANGELOG.md +++ b/packages/volto/CHANGELOG.md @@ -17,6 +17,23 @@ myst: +## 18.1.2 (2024-12-05) + +### Bugfix + +- Remove `not ie 11` from browserslist configuration, because it is now included in `not dead`. @stevepiercy [#6501](https://github.com/plone/volto/issues/6501) +- Fix warnings related to `snapshot.managedPaths` on startup. @davisagli [#6511](https://github.com/plone/volto/issues/6511) + +### Internal + +- Add Accessibility acceptance tests for content types. @ana-oprea @ichim-david [#6339](https://github.com/plone/volto/issues/6339) +- Fixed the `README.md` for Volto core when releasing to npm registry: copy it from the root of the monorepo on release. @sneridagh [#6510](https://github.com/plone/volto/issues/6510) + +### Documentation + +- Add new Volto trainings to tutorials. @stevepiercy [#6499](https://github.com/plone/volto/issues/6499) +- `html_use_opensearch` value must not have a trailing slash. Clean up comments. @stevepiercy [#6502](https://github.com/plone/volto/issues/6502) + ## 18.1.1 (2024-11-21) ### Bugfix diff --git a/packages/volto/news/6339.internal b/packages/volto/news/6339.internal deleted file mode 100644 index 972df6ac4d..0000000000 --- a/packages/volto/news/6339.internal +++ /dev/null @@ -1 +0,0 @@ -Add Accessibility acceptance tests for content types. @ana-oprea @ichim-david diff --git a/packages/volto/news/6499.documentation b/packages/volto/news/6499.documentation deleted file mode 100644 index 30b4d41068..0000000000 --- a/packages/volto/news/6499.documentation +++ /dev/null @@ -1 +0,0 @@ -Add new Volto trainings to tutorials. @stevepiercy diff --git a/packages/volto/news/6501.bugfix b/packages/volto/news/6501.bugfix deleted file mode 100644 index 90818d36c8..0000000000 --- a/packages/volto/news/6501.bugfix +++ /dev/null @@ -1 +0,0 @@ -Remove `not ie 11` from browserslist configuration, because it is now included in `not dead`. @stevepiercy diff --git a/packages/volto/news/6502.documentation b/packages/volto/news/6502.documentation deleted file mode 100644 index d46a5b6816..0000000000 --- a/packages/volto/news/6502.documentation +++ /dev/null @@ -1 +0,0 @@ -`html_use_opensearch` value must not have a trailing slash. Clean up comments. @stevepiercy diff --git a/packages/volto/news/6510.internal b/packages/volto/news/6510.internal deleted file mode 100644 index 3404ee809c..0000000000 --- a/packages/volto/news/6510.internal +++ /dev/null @@ -1 +0,0 @@ -Fixed the `README.md` for Volto core when releasing to npm registry: copy it from the root of the monorepo on release. @sneridagh diff --git a/packages/volto/news/6511.bugfix b/packages/volto/news/6511.bugfix deleted file mode 100644 index cd5dccfb9e..0000000000 --- a/packages/volto/news/6511.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix warnings related to `snapshot.managedPaths` on startup. @davisagli diff --git a/packages/volto/package.json b/packages/volto/package.json index 8e002cf546..dbca426284 100644 --- a/packages/volto/package.json +++ b/packages/volto/package.json @@ -9,7 +9,7 @@ } ], "license": "MIT", - "version": "18.1.1", + "version": "18.1.2", "repository": { "type": "git", "url": "git@github.com:plone/volto.git"