Skip to content

Commit

Permalink
Release 18.0.0-alpha.48
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Oct 30, 2024
1 parent 8a60382 commit 85d339d
Show file tree
Hide file tree
Showing 16 changed files with 92 additions and 27 deletions.
21 changes: 21 additions & 0 deletions docs/source/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,27 @@ myst:

<!-- towncrier release notes start -->

## 18.0.0-alpha.48 (2024-10-30)

### Breaking

- Wrap Table of Contents block in a `nav` tag, instead of a `div` tag, for better representation improving the block accessibility. @Tishasoumya-02 @ichim-david [#6082](https://github.com/plone/volto/issues/6082)

### Feature

- Enhance the `buildStyleObjectFromData` helper. @sneridagh [#6445](https://github.com/plone/volto/issues/6445)

### Bugfix

- Fix error "Exception: No query supplied" in the listing block, when there is no criteria selected. @tedw87 [#3839](https://github.com/plone/volto/issues/3839)
- Fixed page changes not being announced to screen reader users. @JeffersonBledsoe [#5288](https://github.com/plone/volto/issues/5288)
- Fix useSelector is returned a different result when called with the same parameters in IdWidget. @iFlameing [#6449](https://github.com/plone/volto/issues/6449)
- Moved `applyBlockDefaults` one component up so the style is computed correctly. @sneridagh [#6451](https://github.com/plone/volto/issues/6451)

### Documentation

- Added upgrade guide fix for HMR. @sneridagh [#6446](https://github.com/plone/volto/issues/6446)

## 18.0.0-alpha.47 (2024-10-27)

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

<!-- towncrier release notes start -->

## 18.0.0-alpha.48 (2024-10-30)

### Breaking

- Wrap Table of Contents block in a `nav` tag, instead of a `div` tag, for better representation improving the block accessibility. @Tishasoumya-02 @ichim-david [#6082](https://github.com/plone/volto/issues/6082)

### Feature

- Enhance the `buildStyleObjectFromData` helper. @sneridagh [#6445](https://github.com/plone/volto/issues/6445)

### Bugfix

- Fix error "Exception: No query supplied" in the listing block, when there is no criteria selected. @tedw87 [#3839](https://github.com/plone/volto/issues/3839)
- Fixed page changes not being announced to screen reader users. @JeffersonBledsoe [#5288](https://github.com/plone/volto/issues/5288)
- Fix useSelector is returned a different result when called with the same parameters in IdWidget. @iFlameing [#6449](https://github.com/plone/volto/issues/6449)
- Moved `applyBlockDefaults` one component up so the style is computed correctly. @sneridagh [#6451](https://github.com/plone/volto/issues/6451)

### Documentation

- Added upgrade guide fix for HMR. @sneridagh [#6446](https://github.com/plone/volto/issues/6446)

## 18.0.0-alpha.47 (2024-10-27)

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

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.47",
"version": "18.0.0-alpha.48",
"repository": {
"type": "git",
"url": "[email protected]:plone/volto.git"
Expand Down
5 changes: 1 addition & 4 deletions packages/volto/types/components/manage/Blocks/ToC/View.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ export function getBlocksTocEntries(properties: any, tocData: any): {
tocEntries: {};
tocEntriesLayout: any[];
};
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
WrappedComponent: React.ComponentType<any>;
};
declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element;
export default _default;
import React from 'react';
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
declare const _default: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
};
export default _default;
import React from 'react';
export default View;
declare function View({ data, tocEntries }: {
data: any;
tocEntries: any;
}): import("react/jsx-runtime").JSX.Element;
declare namespace View {
namespace propTypes {
let properties: any;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
declare const _default: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
};
export default _default;
import React from 'react';
export default View;
declare function View({ data, tocEntries }: {
data: any;
tocEntries: any;
}): import("react/jsx-runtime").JSX.Element;
declare namespace View {
namespace propTypes {
let properties: any;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@ export default ToCVariations;
declare const ToCVariations: ({
id: string;
title: string;
view: import("react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
view: {
({ data, tocEntries }: {
data: any;
tocEntries: any;
}): import("react/jsx-runtime").JSX.Element;
propTypes: {
properties: any;
};
};
isDefault: boolean;
} | {
id: string;
title: string;
view: import("react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
view: {
({ data, tocEntries }: {
data: any;
tocEntries: any;
}): import("react/jsx-runtime").JSX.Element;
propTypes: {
properties: any;
};
};
isDefault?: undefined;
})[];
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export default RouteAnnouncer;
declare function RouteAnnouncer(): import("react/jsx-runtime").JSX.Element;
11 changes: 10 additions & 1 deletion packages/volto/types/helpers/Blocks/Blocks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ export function applySchemaDefaults({ data, schema, intl }: {
* @return {Object} Derived data, with the defaults extracted from the schema
*/
export function applyBlockDefaults({ data, intl, navRoot, contentType, ...rest }: any, blocksConfig: any): any;
/**
* Find a matching style by name given a style definition
*
* @function findStyleByName
* @param {Object} styleDefinitions An object with the style definitions
* @param {string} name The name of the style to find
* @return {Object} The style object of the matching name
*/
export function findStyleByName(styleDefinitions: any, name: string): any;
/**
* Check if a block is a container block
* check blocks from data as well since some add-ons use that
Expand Down Expand Up @@ -168,7 +177,7 @@ export function styleToClassName(key: any, value: any, prefix?: string): any;
export function buildStyleClassNamesFromData(obj?: {}, prefix?: string): any;
export function buildStyleClassNamesExtenders({ block, content, data, classNames, }: any): any[];
export function styleDataToStyleObject(key: any, value: any, prefix?: string): any[];
export function buildStyleObjectFromData(obj?: any, prefix?: string): any;
export function buildStyleObjectFromData(data?: any, prefix?: string): any;
export function getPreviousNextBlock({ content, block }: any): any[];
export function getBlocksHierarchy(properties: any): any;
export function findContainer(formData: object, { containerId }: {
Expand Down

0 comments on commit 85d339d

Please sign in to comment.