Skip to content

Commit

Permalink
Release 18.0.0-alpha.42
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Jul 30, 2024
1 parent 19e0ea8 commit d056fcc
Show file tree
Hide file tree
Showing 30 changed files with 158 additions and 33 deletions.
42 changes: 42 additions & 0 deletions docs/source/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,48 @@ myst:

<!-- towncrier release notes start -->

## 18.0.0-alpha.42 (2024-07-30)

### Breaking

- Add foundations for extensible validation in forms. @sneridagh

Breaking:
`packages/volto/src/helpers/FormValidation/FormValidation.jsx` has been heavily refactored.
If you shadowed this component in your project or add-on, you should review it and update it accordingly. [#6161](https://github.com/plone/volto/issues/6161)
- Remove `react-share` library and `SocialSharing` component @sneridagh [#6162](https://github.com/plone/volto/issues/6162)
- In the widget mapping, moved the `SchemaWidget` registration from the `id` object to the `widget` object, and added the `widget` key to the `schema` object in the `properties` object for `makeSchemaList`. @sneridagh [#6189](https://github.com/plone/volto/issues/6189)

### Bugfix

- Fixed UTC problems in `RecurrenceWidget`. @giuliaghisini [#5002](https://github.com/plone/volto/issues/5002)
- Do not send sorting information in the search block if no sort_on setting is configured @erral [#5338](https://github.com/plone/volto/issues/5338)
- Fixed pagination in search results by passing `pageSize` explicitly to all search API calls. @EshaanAgg [#5464](https://github.com/plone/volto/issues/5464)
- Fix the toolbar handler color for the homepage to match its "published" state. @sabrina-bongiovanni [#6126](https://github.com/plone/volto/issues/6126)
- Allow `ImageWidget` value to be an object and use the `@id` to get the value if present.
This is useful for fields that were using the `object_browser` widget previously to set values. @ichim-david [#6156](https://github.com/plone/volto/issues/6156)
- Persist data for the `backend-docker-start` Docker container in a Docker volume named `volto-backend-data`.
This way the data is persisted between runs of the container.
You can also delete the `data` volume to start fresh.
@ichim-david [#6157](https://github.com/plone/volto/issues/6157)
- Improve CSS for the `SchemaWidget` widget. @robgietema @sneridagh [#6189](https://github.com/plone/volto/issues/6189)

### Internal

- Debounced searching for users and groups in the `User Group Membership` Control Panel. @pnicolli [#6153](https://github.com/plone/volto/issues/6153)
- Update the link in the PLIP issue template to the new Plone 6 Documentation PLIP page. @stevepiercy [#6175](https://github.com/plone/volto/issues/6175)
- Added Cypress test for field types in example content - @Tishasoumya-02 [#6217](https://github.com/plone/volto/issues/6217)

### Documentation

- Changed a few typos within documentation, README's and comments. @FritzHoing [#6109](https://github.com/plone/volto/issues/6109)
- Use relative links to ensure static files get copied during documentation build. @stevepiercy [#6174](https://github.com/plone/volto/issues/6174)
- Clean up upgrade guide for `react-share` library and `SocialSharing` component. @stevepiercy [#6175](https://github.com/plone/volto/issues/6175)
- Add references for contributing to latest and earlier versions of Volto. @stevepiercy [#6184](https://github.com/plone/volto/issues/6184)
- Improved i18n docs regarding new translated messages not being picked up by the i18n translation mechanism when added in shadowed components. @pnicolli [#6188](https://github.com/plone/volto/issues/6188)
- Add a label and minor grammar fixes to i18n documentation. @stevepiercy [#6192](https://github.com/plone/volto/issues/6192)
- Polish upgrade docs and news items for `SchemaWidget`. @stevepiercy [#6193](https://github.com/plone/volto/issues/6193)

## 18.0.0-alpha.41 (2024-07-05)

### Breaking
Expand Down
42 changes: 42 additions & 0 deletions packages/volto/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,48 @@ myst:

<!-- towncrier release notes start -->

## 18.0.0-alpha.42 (2024-07-30)

### Breaking

- Add foundations for extensible validation in forms. @sneridagh

Breaking:
`packages/volto/src/helpers/FormValidation/FormValidation.jsx` has been heavily refactored.
If you shadowed this component in your project or add-on, you should review it and update it accordingly. [#6161](https://github.com/plone/volto/issues/6161)
- Remove `react-share` library and `SocialSharing` component @sneridagh [#6162](https://github.com/plone/volto/issues/6162)
- In the widget mapping, moved the `SchemaWidget` registration from the `id` object to the `widget` object, and added the `widget` key to the `schema` object in the `properties` object for `makeSchemaList`. @sneridagh [#6189](https://github.com/plone/volto/issues/6189)

### Bugfix

- Fixed UTC problems in `RecurrenceWidget`. @giuliaghisini [#5002](https://github.com/plone/volto/issues/5002)
- Do not send sorting information in the search block if no sort_on setting is configured @erral [#5338](https://github.com/plone/volto/issues/5338)
- Fixed pagination in search results by passing `pageSize` explicitly to all search API calls. @EshaanAgg [#5464](https://github.com/plone/volto/issues/5464)
- Fix the toolbar handler color for the homepage to match its "published" state. @sabrina-bongiovanni [#6126](https://github.com/plone/volto/issues/6126)
- Allow `ImageWidget` value to be an object and use the `@id` to get the value if present.
This is useful for fields that were using the `object_browser` widget previously to set values. @ichim-david [#6156](https://github.com/plone/volto/issues/6156)
- Persist data for the `backend-docker-start` Docker container in a Docker volume named `volto-backend-data`.
This way the data is persisted between runs of the container.
You can also delete the `data` volume to start fresh.
@ichim-david [#6157](https://github.com/plone/volto/issues/6157)
- Improve CSS for the `SchemaWidget` widget. @robgietema @sneridagh [#6189](https://github.com/plone/volto/issues/6189)

### Internal

- Debounced searching for users and groups in the `User Group Membership` Control Panel. @pnicolli [#6153](https://github.com/plone/volto/issues/6153)
- Update the link in the PLIP issue template to the new Plone 6 Documentation PLIP page. @stevepiercy [#6175](https://github.com/plone/volto/issues/6175)
- Added Cypress test for field types in example content - @Tishasoumya-02 [#6217](https://github.com/plone/volto/issues/6217)

### Documentation

- Changed a few typos within documentation, README's and comments. @FritzHoing [#6109](https://github.com/plone/volto/issues/6109)
- Use relative links to ensure static files get copied during documentation build. @stevepiercy [#6174](https://github.com/plone/volto/issues/6174)
- Clean up upgrade guide for `react-share` library and `SocialSharing` component. @stevepiercy [#6175](https://github.com/plone/volto/issues/6175)
- Add references for contributing to latest and earlier versions of Volto. @stevepiercy [#6184](https://github.com/plone/volto/issues/6184)
- Improved i18n docs regarding new translated messages not being picked up by the i18n translation mechanism when added in shadowed components. @pnicolli [#6188](https://github.com/plone/volto/issues/6188)
- Add a label and minor grammar fixes to i18n documentation. @stevepiercy [#6192](https://github.com/plone/volto/issues/6192)
- Polish upgrade docs and news items for `SchemaWidget`. @stevepiercy [#6193](https://github.com/plone/volto/issues/6193)

## 18.0.0-alpha.41 (2024-07-05)

### Breaking
Expand Down
1 change: 0 additions & 1 deletion packages/volto/news/5002.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/5338.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/5464.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6109.documentation

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6126.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6153.internal

This file was deleted.

2 changes: 0 additions & 2 deletions packages/volto/news/6156.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions packages/volto/news/6157.bugfix

This file was deleted.

5 changes: 0 additions & 5 deletions packages/volto/news/6161.breaking

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6162.breaking

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6174.documentation

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6175.documentation

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6175.internal

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6184.documentation

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6188.documentation

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6189.breaking

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6189.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6192.documentation

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6193.documentation

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6217.internal

This file was deleted.

2 changes: 1 addition & 1 deletion packages/volto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"license": "MIT",
"version": "18.0.0-alpha.41",
"version": "18.0.0-alpha.42",
"repository": {
"type": "git",
"url": "[email protected]:plone/volto.git"
Expand Down
1 change: 0 additions & 1 deletion packages/volto/types/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export { default as Logout } from "@plone/volto/components/theme/Logout/Logout";
export { default as Sitemap } from "@plone/volto/components/theme/Sitemap/Sitemap";
export { default as Search } from "@plone/volto/components/theme/Search/Search";
export { default as Comments } from "@plone/volto/components/theme/Comments/Comments";
export { default as SocialSharing } from "@plone/volto/components/theme/SocialSharing/SocialSharing";
export { default as Register } from "@plone/volto/components/theme/Register/Register";
export { default as PasswordReset } from "@plone/volto/components/theme/PasswordReset/PasswordReset";
export { default as RequestPasswordReset } from "@plone/volto/components/theme/PasswordReset/RequestPasswordReset";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function Order({ items, onMoveBlock, onDeleteBlock, onSelectBlock, indentationWidth, removable, dndKitCore, dndKitSortable, dndKitUtilities, }: {
export function Order({ items, onMoveBlock, onDeleteBlock, onSelectBlock, indentationWidth, removable, dndKitCore, dndKitSortable, dndKitUtilities, errors, }: {
items?: any[];
onMoveBlock: any;
onDeleteBlock: any;
Expand All @@ -8,6 +8,7 @@ export function Order({ items, onMoveBlock, onDeleteBlock, onSelectBlock, indent
dndKitCore: any;
dndKitSortable: any;
dndKitUtilities: any;
errors: any;
}): import("react/jsx-runtime").JSX.Element;
declare const _default: any;
export default _default;
4 changes: 2 additions & 2 deletions packages/volto/types/config/Widgets.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export namespace widgetMapping {
export namespace id {
export { SchemaWidget as schema };
export { TokenWidget as subjects };
export { QuerystringWidget as query };
export { RecurrenceWidget as recurrence };
Expand Down Expand Up @@ -34,6 +33,7 @@ export namespace widgetMapping {
export { SelectAutoComplete as autocomplete };
export { ColorPickerWidget as color_picker };
export { SelectWidget as select };
export { SchemaWidget as schema };
}
export let vocabulary: {
'plone.app.vocabularies.Catalog': import("@loadable/component").LoadableComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>>;
Expand Down Expand Up @@ -98,7 +98,6 @@ export namespace widgetMapping {
}
}
export const defaultWidget: import("@loadable/component").LoadableComponent<any>;
import { SchemaWidget } from '@plone/volto/components/manage/Widgets';
import { TokenWidget } from '@plone/volto/components/manage/Widgets';
import { QuerystringWidget } from '@plone/volto/components/manage/Widgets';
import { RecurrenceWidget } from '@plone/volto/components/manage/Widgets';
Expand Down Expand Up @@ -126,6 +125,7 @@ import { SelectMetadataWidget } from '@plone/volto/components/manage/Widgets';
import { SelectAutoComplete } from '@plone/volto/components/manage/Widgets';
import { ColorPickerWidget } from '@plone/volto/components/manage/Widgets';
import { SelectWidget } from '@plone/volto/components/manage/Widgets';
import { SchemaWidget } from '@plone/volto/components/manage/Widgets';
import { CheckboxWidget } from '@plone/volto/components/manage/Widgets';
import { NumberWidget } from '@plone/volto/components/manage/Widgets';
import { getWidgetView } from '@plone/volto/helpers/Widget/widget';
Expand Down
3 changes: 3 additions & 0 deletions packages/volto/types/config/validation.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ConfigType } from '@plone/registry';
declare const registerValidators: (config: ConfigType) => void;
export { registerValidators };
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export function validationMessage(isValid: boolean, criterion: string, valueToCompare: string | number, intlFunc: Function): any;
export function tryParseJSON(requestItem: string): any;
export default FormValidation;
export function validateFileUploadSize(file: File, intlFunc: Function): boolean;
Expand Down
29 changes: 29 additions & 0 deletions packages/volto/types/helpers/FormValidation/validators.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
type MinMaxValidator = {
value: string | number;
fieldSpec: string | number;
criterion: string;
formatMessage: Function;
};
type Validator = {
value: string;
field: Record<string, any>;
formData: any;
formatMessage: Function;
};
export declare const isMaxPropertyValid: ({ value, fieldSpec, criterion, formatMessage, }: MinMaxValidator) => any;
export declare const isMinPropertyValid: ({ value, fieldSpec, criterion, formatMessage, }: MinMaxValidator) => any;
export declare const minLengthValidator: ({ value, field, formatMessage, }: Validator) => any;
export declare const maxLengthValidator: ({ value, field, formatMessage, }: Validator) => any;
export declare const urlValidator: ({ value, formatMessage }: Validator) => any;
export declare const emailValidator: ({ value, formatMessage }: Validator) => string;
export declare const isNumberValidator: ({ value, formatMessage }: Validator) => any;
export declare const minimumValidator: ({ value, field, formatMessage }: Validator) => any;
export declare const maximumValidator: ({ value, field, formatMessage }: Validator) => any;
export declare const isIntegerValidator: ({ value, formatMessage }: Validator) => any;
export declare const hasUniqueItemsValidator: ({ value, field, formatMessage, }: Validator) => any;
export declare const startEventDateRangeValidator: ({ value, field, formData, formatMessage, }: Validator) => any;
export declare const endEventDateRangeValidator: ({ value, field, formData, formatMessage, }: Validator) => any;
export declare const patternValidator: ({ value, field, formatMessage, }: Validator) => any;
export declare const maxItemsValidator: ({ value, field, formatMessage, }: Validator) => any;
export declare const minItemsValidator: ({ value, field, formatMessage, }: Validator) => any;
export {};
36 changes: 36 additions & 0 deletions packages/volto/types/helpers/MessageLabels/MessageLabels.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,4 +549,40 @@ export namespace messages {
let defaultMessage_91: string;
export { defaultMessage_91 as defaultMessage };
}
namespace blocksFieldsErrorTitle {
let id_92: string;
export { id_92 as id };
let defaultMessage_92: string;
export { defaultMessage_92 as defaultMessage };
}
namespace startEventRange {
let id_93: string;
export { id_93 as id };
let defaultMessage_93: string;
export { defaultMessage_93 as defaultMessage };
}
namespace endEventRange {
let id_94: string;
export { id_94 as id };
let defaultMessage_94: string;
export { defaultMessage_94 as defaultMessage };
}
namespace pattern {
let id_95: string;
export { id_95 as id };
let defaultMessage_95: string;
export { defaultMessage_95 as defaultMessage };
}
namespace maxItems {
let id_96: string;
export { id_96 as id };
let defaultMessage_96: string;
export { defaultMessage_96 as defaultMessage };
}
namespace minItems {
let id_97: string;
export { id_97 as id };
let defaultMessage_97: string;
export { defaultMessage_97 as defaultMessage };
}
}

0 comments on commit d056fcc

Please sign in to comment.