Skip to content

Commit

Permalink
Release 18.0.0-alpha.33
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Jun 6, 2024
1 parent 6539926 commit 02fb83c
Show file tree
Hide file tree
Showing 23 changed files with 191 additions and 35 deletions.
29 changes: 29 additions & 0 deletions docs/source/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,35 @@ myst:

<!-- towncrier release notes start -->

## 18.0.0-alpha.33 (2024-06-06)

### Breaking

- Fix JavaScript events association on error pages. Also remove settings `config.settings.serverConfig.extractScripts.errorPages`. Now scripts are added to error pages, regardless of whether we are in production mode or not. @wesleybl [#6048](https://github.com/plone/volto/issues/6048)
- Breaking from the original slots implementation:
Now `config.getSlots` in the configuration registry takes the argument `location` instead of `pathname`.
This allows to have more expressive conditions, and fulfill the use case of the `Add` form.
@sneridagh [#6063](https://github.com/plone/volto/issues/6063)

### Feature

- Added object browser icon view @robgietema [#5279](https://github.com/plone/volto/issues/5279)
- Refactor TextWidget. @Tishasoumya-02 [#6020](https://github.com/plone/volto/issues/6020)
- Refactor IdWidget -@Tishasoumya-02 [#6027](https://github.com/plone/volto/issues/6027)
- The `ContentTypeCondition` now supports the `Add` form, and detects when you create a content type that is set in the condition. @sneridagh
Added a new `BodyClass` helper while adding a new content type of the form `is-adding-contenttype-mycontenttype`. @sneridagh [#6063](https://github.com/plone/volto/issues/6063)
- Add support for configurable `public` directory defined per add-on. @sneridagh [#6072](https://github.com/plone/volto/issues/6072)

### Bugfix

- Fix block chooser search is not focusable when clicked on add button @iRohitSingh [#5866](https://github.com/plone/volto/issues/5866)
- Fixed skiplink links not tracking focus correctly @JeffersonBledsoe [#5959](https://github.com/plone/volto/issues/5959)
- Remove left and right padding from _Event > Edit recurrence > Repeat on_ buttons when repeating for weekly or yearly events for big fonts, preventing overflow. @sabrina-bongiovanni [#6070](https://github.com/plone/volto/issues/6070)

### Internal

- Fix test script in monorepo root @sneridagh [#6051](https://github.com/plone/volto/issues/6051)

## 18.0.0-alpha.32 (2024-05-23)

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

<!-- towncrier release notes start -->

## 18.0.0-alpha.33 (2024-06-06)

### Breaking

- Fix JavaScript events association on error pages. Also remove settings `config.settings.serverConfig.extractScripts.errorPages`. Now scripts are added to error pages, regardless of whether we are in production mode or not. @wesleybl [#6048](https://github.com/plone/volto/issues/6048)
- Breaking from the original slots implementation:
Now `config.getSlots` in the configuration registry takes the argument `location` instead of `pathname`.
This allows to have more expressive conditions, and fulfill the use case of the `Add` form.
@sneridagh [#6063](https://github.com/plone/volto/issues/6063)

### Feature

- Added object browser icon view @robgietema [#5279](https://github.com/plone/volto/issues/5279)
- Refactor TextWidget. @Tishasoumya-02 [#6020](https://github.com/plone/volto/issues/6020)
- Refactor IdWidget -@Tishasoumya-02 [#6027](https://github.com/plone/volto/issues/6027)
- The `ContentTypeCondition` now supports the `Add` form, and detects when you create a content type that is set in the condition. @sneridagh
Added a new `BodyClass` helper while adding a new content type of the form `is-adding-contenttype-mycontenttype`. @sneridagh [#6063](https://github.com/plone/volto/issues/6063)
- Add support for configurable `public` directory defined per add-on. @sneridagh [#6072](https://github.com/plone/volto/issues/6072)

### Bugfix

- Fix block chooser search is not focusable when clicked on add button @iRohitSingh [#5866](https://github.com/plone/volto/issues/5866)
- Fixed skiplink links not tracking focus correctly @JeffersonBledsoe [#5959](https://github.com/plone/volto/issues/5959)
- Remove left and right padding from _Event > Edit recurrence > Repeat on_ buttons when repeating for weekly or yearly events for big fonts, preventing overflow. @sabrina-bongiovanni [#6070](https://github.com/plone/volto/issues/6070)

### Internal

- Fix test script in monorepo root @sneridagh [#6051](https://github.com/plone/volto/issues/6051)

## 18.0.0-alpha.32 (2024-05-23)

### Feature
Expand Down
1 change: 0 additions & 1 deletion packages/volto/news/5279.feature

This file was deleted.

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

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6020.feature

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6027.feature

This file was deleted.

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

This file was deleted.

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

This file was deleted.

4 changes: 0 additions & 4 deletions packages/volto/news/6063.breaking

This file was deleted.

2 changes: 0 additions & 2 deletions packages/volto/news/6063.feature

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion packages/volto/news/6072.feature

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.32",
"version": "18.0.0-alpha.33",
"repository": {
"type": "git",
"url": "[email protected]:plone/volto.git"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
export default ObjectBrowserNav;
declare function ObjectBrowserNav({ currentSearchResults, selected, handleClickOnItem, handleDoubleClickOnItem, mode, navigateTo, isSelectable, }: {
declare function ObjectBrowserNav({ currentSearchResults, selected, handleClickOnItem, handleDoubleClickOnItem, mode, view, navigateTo, isSelectable, }: {
currentSearchResults: any;
selected: any;
handleClickOnItem: any;
handleDoubleClickOnItem: any;
mode: any;
view: any;
navigateTo: any;
isSelectable: any;
}): import("react/jsx-runtime").JSX.Element;
56 changes: 54 additions & 2 deletions packages/volto/types/components/manage/Widgets/IdWidget.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,54 @@
declare const _default: any;
export default _default;
export default IdWidget;
declare function IdWidget(props: any): import("react/jsx-runtime").JSX.Element;
declare namespace IdWidget {
namespace propTypes {
let id: any;
let title: any;
let description: any;
let required: any;
let error: any;
let value: any;
let focus: any;
let onChange: any;
let onBlur: any;
let onClick: any;
let onEdit: any;
let onDelete: any;
let icon: any;
let iconAction: any;
let minLength: any;
let maxLength: any;
let wrapped: any;
let placeholder: any;
}
namespace defaultProps {
let description_1: any;
export { description_1 as description };
let required_1: boolean;
export { required_1 as required };
let error_1: any[];
export { error_1 as error };
let value_1: any;
export { value_1 as value };
export function onChange_1(): void;
export { onChange_1 as onChange };
export function onBlur_1(): void;
export { onBlur_1 as onBlur };
export function onClick_1(): void;
export { onClick_1 as onClick };
let onEdit_1: any;
export { onEdit_1 as onEdit };
let onDelete_1: any;
export { onDelete_1 as onDelete };
let focus_1: boolean;
export { focus_1 as focus };
let icon_1: any;
export { icon_1 as icon };
let iconAction_1: any;
export { iconAction_1 as iconAction };
let minLength_1: any;
export { minLength_1 as minLength };
let maxLength_1: any;
export { maxLength_1 as maxLength };
}
}
59 changes: 54 additions & 5 deletions packages/volto/types/components/manage/Widgets/TextWidget.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
WrappedComponent: React.ComponentType<any>;
};
export default _default;
import React from 'react';
export default TextWidget;
declare function TextWidget(props: any): import("react/jsx-runtime").JSX.Element;
declare namespace TextWidget {
namespace propTypes {
let id: any;
let title: any;
let description: any;
let required: any;
let error: any;
let value: any;
let focus: any;
let onChange: any;
let onBlur: any;
let onClick: any;
let onEdit: any;
let onDelete: any;
let icon: any;
let iconAction: any;
let minLength: any;
let maxLength: any;
let wrapped: any;
let placeholder: any;
}
namespace defaultProps {
let description_1: any;
export { description_1 as description };
let required_1: boolean;
export { required_1 as required };
let error_1: any[];
export { error_1 as error };
let value_1: any;
export { value_1 as value };
export function onChange_1(): void;
export { onChange_1 as onChange };
export function onBlur_1(): void;
export { onBlur_1 as onBlur };
export function onClick_1(): void;
export { onClick_1 as onClick };
let onEdit_1: any;
export { onEdit_1 as onEdit };
let onDelete_1: any;
export { onDelete_1 as onDelete };
let focus_1: boolean;
export { focus_1 as focus };
let icon_1: any;
export { icon_1 as icon };
let iconAction_1: any;
export { iconAction_1 as iconAction };
let minLength_1: any;
export { minLength_1 as minLength };
let maxLength_1: any;
export { maxLength_1 as maxLength };
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@ declare namespace _default {
export let title: string;
export { TextWidget as component };
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
export let argTypes: {};
export namespace argTypes {
namespace description {
export let control: string;
let description_1: string;
export { description_1 as description };
}
namespace placeholder {
let control_1: string;
export { control_1 as control };
let description_2: string;
export { description_2 as description };
}
}
}
export default _default;
import TextWidget from './TextWidget';
4 changes: 2 additions & 2 deletions packages/volto/types/components/manage/Widgets/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ export declare const ButtonsWidget: import("@loadable/component").LoadableCompon
export declare const ArrayWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const CheckboxWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
export declare const FileWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
export declare const IdWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const IdWidget: import("@loadable/component").LoadableComponent<any>;
export declare const PasswordWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
export declare const QueryWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const QuerySortOnWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const QuerystringWidget: import("@loadable/component").LoadableComponent<any>;
export declare const SchemaWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const SelectWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const TextareaWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
export declare const TextWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
export declare const TextWidget: import("@loadable/component").LoadableComponent<any>;
export declare const TokenWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const WysiwygWidget: import("@loadable/component").LoadableClassComponent<any>;
export declare const UrlWidget: import("@loadable/component").LoadableClassComponent<{
Expand Down
2 changes: 1 addition & 1 deletion packages/volto/types/config/Widgets.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export namespace widgetMapping {
export { type_1 as type };
}
}
export const defaultWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
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';
Expand Down
3 changes: 0 additions & 3 deletions packages/volto/types/config/server.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ declare namespace settings {
let expressMiddleware: any[];
let criticalCssPath: string;
let readCriticalCss: any;
namespace extractScripts {
let errorPages: boolean;
}
let staticFiles: {
id: string;
match: RegExp;
Expand Down
8 changes: 5 additions & 3 deletions packages/volto/types/helpers/Slots/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { Content } from '@plone/types';
export declare function RouteCondition(path: string, exact?: boolean): ({ pathname }: {
pathname: string;
import type { Location } from 'history';
export declare function RouteCondition(path: string, exact?: boolean): ({ location }: {
location: Location;
}) => boolean;
export declare function ContentTypeCondition(contentType: string[]): ({ content }: {
export declare function ContentTypeCondition(contentType: string[]): ({ content, location }: {
content: Content;
location: Location;
}) => boolean;
2 changes: 1 addition & 1 deletion packages/volto/types/start-client.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export default function client(): void;
export const history: any;
export const history: import("history").History<unknown>;

0 comments on commit 02fb83c

Please sign in to comment.