Skip to content

Commit

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

<!-- towncrier release notes start -->

## 18.0.0-alpha.19 (2024-03-14)

### Breaking

- Remove legacy `text`, `table` and `hero` blocks based in `draftJS` @sneridagh [#5846](https://github.com/plone/volto/issues/5846)

### Feature

- Do not display options for Site Administrator to create, modify, or delete Manager users. @wesleybl [#5244](https://github.com/plone/volto/issues/5244)

### Bugfix

- (fix): make search block sort and facets work on edit @dobri1408 [#5262](https://github.com/plone/volto/issues/5262)
- Upgrade `@typescript-eslint` version @sneridagh [#5844](https://github.com/plone/volto/issues/5844)
- Fix the introduction of a mutable (referenced) object when assigning the default inner `blocksConfig` object for the `grid` block, pass by value instead. sneridagh [#5850](https://github.com/plone/volto/issues/5850)
- Fix other occurrences of mutable (referenced) objects when assigning the default inner `blocksConfig` object for the `grid` block, pass by value instead. sneridagh [#5859](https://github.com/plone/volto/issues/5859)

### Internal

- Upgrade versions of Cypress @sneridagh [#5845](https://github.com/plone/volto/issues/5845)

### Documentation

- Update link to cssnano documentation. @stevepiercy [#5853](https://github.com/plone/volto/issues/5853)
- Update docs for the `defaultBlockType` setting. @davisagli [#5854](https://github.com/plone/volto/issues/5854)
- The proper name is Semantic UI. @stevepiercy [#5855](https://github.com/plone/volto/issues/5855)
- Add missing nextjs install step. @gomez [#5857](https://github.com/plone/volto/issues/5857)
- Add reference to Docker installation for some Linux distributions. @stevepiercy [#5861](https://github.com/plone/volto/issues/5861)
- Fix broken link to TanStack Query. @stevepiercy [#5871](https://github.com/plone/volto/issues/5871)

## 18.0.0-alpha.18 (2024-03-05)

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

<!-- towncrier release notes start -->

## 18.0.0-alpha.19 (2024-03-14)

### Breaking

- Remove legacy `text`, `table` and `hero` blocks based in `draftJS` @sneridagh [#5846](https://github.com/plone/volto/issues/5846)

### Feature

- Do not display options for Site Administrator to create, modify, or delete Manager users. @wesleybl [#5244](https://github.com/plone/volto/issues/5244)

### Bugfix

- (fix): make search block sort and facets work on edit @dobri1408 [#5262](https://github.com/plone/volto/issues/5262)
- Upgrade `@typescript-eslint` version @sneridagh [#5844](https://github.com/plone/volto/issues/5844)
- Fix the introduction of a mutable (referenced) object when assigning the default inner `blocksConfig` object for the `grid` block, pass by value instead. sneridagh [#5850](https://github.com/plone/volto/issues/5850)
- Fix other occurrences of mutable (referenced) objects when assigning the default inner `blocksConfig` object for the `grid` block, pass by value instead. sneridagh [#5859](https://github.com/plone/volto/issues/5859)

### Internal

- Upgrade versions of Cypress @sneridagh [#5845](https://github.com/plone/volto/issues/5845)

### Documentation

- Update link to cssnano documentation. @stevepiercy [#5853](https://github.com/plone/volto/issues/5853)
- Update docs for the `defaultBlockType` setting. @davisagli [#5854](https://github.com/plone/volto/issues/5854)
- The proper name is Semantic UI. @stevepiercy [#5855](https://github.com/plone/volto/issues/5855)
- Add missing nextjs install step. @gomez [#5857](https://github.com/plone/volto/issues/5857)
- Add reference to Docker installation for some Linux distributions. @stevepiercy [#5861](https://github.com/plone/volto/issues/5861)
- Fix broken link to TanStack Query. @stevepiercy [#5871](https://github.com/plone/volto/issues/5871)

## 18.0.0-alpha.18 (2024-03-05)

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

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.18",
"version": "18.0.0-alpha.19",
"repository": {
"type": "git",
"url": "[email protected]:plone/volto.git"
Expand Down
6 changes: 0 additions & 6 deletions packages/volto/types/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,27 +135,22 @@ export { default as SchemaWidgetFieldset } from "@plone/volto/components/manage/
export { default as SelectWidget } from "@plone/volto/components/manage/Widgets/SelectWidget";
export { default as TextareaWidget } from "@plone/volto/components/manage/Widgets/TextareaWidget";
export { default as TextWidget } from "@plone/volto/components/manage/Widgets/TextWidget";
export { default as WysiwygWidget } from "@plone/volto/components/manage/Widgets/WysiwygWidget";
export { default as ObjectWidget } from "@plone/volto/components/manage/Widgets/ObjectWidget";
export { default as ObjectListWidget } from "@plone/volto/components/manage/Widgets/ObjectListWidget";
export { default as EditDefaultBlock } from "@plone/volto/components/manage/Blocks/Block/DefaultEdit";
export { default as EditDescriptionBlock } from "@plone/volto/components/manage/Blocks/Description/Edit";
export { default as EditTitleBlock } from "@plone/volto/components/manage/Blocks/Title/Edit";
export { default as EditToCBlock } from "@plone/volto/components/manage/Blocks/ToC/Edit";
export { default as EditTextBlock } from "@plone/volto/components/manage/Blocks/Text/Edit";
export { default as EditImageBlock } from "@plone/volto/components/manage/Blocks/Image/Edit";
export { default as EditListingBlock } from "@plone/volto/components/manage/Blocks/Listing/Edit";
export { default as EditVideoBlock } from "@plone/volto/components/manage/Blocks/Video/Edit";
export { default as EditBlock } from "@plone/volto/components/manage/Blocks/Block/Edit";
export { default as EditHeroImageLeftBlock } from "@plone/volto/components/manage/Blocks/HeroImageLeft/Edit";
export { default as ViewHeroImageLeftBlock } from "@plone/volto/components/manage/Blocks/HeroImageLeft/View";
export { default as EditMapBlock } from "@plone/volto/components/manage/Blocks/Maps/Edit";
export { default as EditHTMLBlock } from "@plone/volto/components/manage/Blocks/HTML/Edit";
export { default as ViewDefaultBlock } from "@plone/volto/components/manage/Blocks/Block/DefaultView";
export { default as ViewDescriptionBlock } from "@plone/volto/components/manage/Blocks/Description/View";
export { default as ViewTitleBlock } from "@plone/volto/components/manage/Blocks/Title/View";
export { default as ViewToCBlock } from "@plone/volto/components/manage/Blocks/ToC/View";
export { default as ViewTextBlock } from "@plone/volto/components/manage/Blocks/Text/View";
export { default as ViewImageBlock } from "@plone/volto/components/manage/Blocks/Image/View";
export { default as ViewListingBlock } from "@plone/volto/components/manage/Blocks/Listing/View";
export { default as ViewVideoBlock } from "@plone/volto/components/manage/Blocks/Video/View";
Expand All @@ -170,7 +165,6 @@ export { default as LeadImageSidebar } from "@plone/volto/components/manage/Bloc
export { default as Style } from "@plone/volto/components/manage/Blocks/Block/Style";
export { default as BlockSettingsSidebar } from "@plone/volto/components/manage/Blocks/Block/Settings";
export { default as BlockSettingsSchema } from "@plone/volto/components/manage/Blocks/Block/Schema";
export { default as TextSettingsSchema } from "@plone/volto/components/manage/Blocks/Text/Schema";
export { default as ImageSettingsSchema } from "@plone/volto/components/manage/Blocks/Image/LayoutSchema";
export { default as ToCSettingsSchema } from "@plone/volto/components/manage/Blocks/ToC/Schema";
export { default as MaybeWrap } from "@plone/volto/components/manage/MaybeWrap/MaybeWrap";
Expand Down
51 changes: 0 additions & 51 deletions packages/volto/types/config/Blocks.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="@plone/registry/node_modules/@plone/types/src/modules" />
export const groupBlocksOrder: {
id: string;
title: string;
Expand All @@ -9,64 +8,14 @@ export namespace blocksConfig {
namespace blocksConfig {
namespace teaser {
export { gridTeaserDisableStylingSchema as schemaEnhancer };
export let id: string;
export let title: string;
export { imagesSVG as icon };
export let group: string;
export { TeaserViewBlock as view };
export { TeaserEditBlock as edit };
export let restricted: boolean;
export let mostUsed: boolean;
export let sidebarTab: number;
export { TeaserSchema as blockSchema };
export { TeaserBlockDataAdapter as dataAdapter };
export let variations: {
id: string;
isDefault: boolean;
title: string;
template: {
(props: any): import("react/jsx-runtime").JSX.Element;
propTypes: {
data: any;
isEditMode: any;
};
};
}[];
}
namespace image {
export { gridImageDisableSizeAndPositionHandlersSchema as schemaEnhancer };
let id_1: string;
export { id_1 as id };
let title_1: string;
export { title_1 as title };
export { cameraSVG as icon };
let group_1: string;
export { group_1 as group };
export { ViewImageBlock as view };
export { EditImageBlock as edit };
export { ImageSettingsSchema as schema };
let restricted_1: boolean;
export { restricted_1 as restricted };
let mostUsed_1: boolean;
export { mostUsed_1 as mostUsed };
let sidebarTab_1: number;
export { sidebarTab_1 as sidebarTab };
export { getImageBlockSizes as getSizes };
}
}
}
}
export const initialBlocks: {};
export const initialBlocksFocus: {};
import { gridTeaserDisableStylingSchema } from '@plone/volto/components/manage/Blocks/Teaser/schema';
import imagesSVG from '@plone/volto/icons/images.svg';
import TeaserViewBlock from '@plone/volto/components/manage/Blocks/Teaser/View';
import TeaserEditBlock from '@plone/volto/components/manage/Blocks/Teaser/Edit';
import { TeaserSchema } from '@plone/volto/components/manage/Blocks/Teaser/schema';
import { TeaserBlockDataAdapter } from '@plone/volto/components/manage/Blocks/Teaser/adapter';
import { gridImageDisableSizeAndPositionHandlersSchema } from '@plone/volto/components/manage/Blocks/Image/schema';
import cameraSVG from '@plone/volto/icons/camera.svg';
import ViewImageBlock from '@plone/volto/components/manage/Blocks/Image/View';
import EditImageBlock from '@plone/volto/components/manage/Blocks/Image/Edit';
import ImageSettingsSchema from '@plone/volto/components/manage/Blocks/Image/LayoutSchema';
import { getImageBlockSizes } from '@plone/volto/components/manage/Blocks/Image/utils';
10 changes: 0 additions & 10 deletions packages/volto/types/config/Loadables.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,4 @@ export namespace loadables {
let reactDndHtml5Backend: any;
let reactBeautifulDnd: any;
let rrule: any;
let immutableLib: any;
let draftJs: any;
let draftJsLibIsSoftNewlineEvent: any;
let draftJsFilters: any;
let draftJsInlineToolbarPlugin: any;
let draftJsImportHtml: any;
let draftJsBlockBreakoutPlugin: any;
let draftJsCreateInlineStyleButton: any;
let draftJsCreateBlockStyleButton: any;
let draftJsPluginsUtils: any;
}
2 changes: 0 additions & 2 deletions packages/volto/types/config/Widgets.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export namespace widgetMapping {
export { RegistryImageWidget as site_logo };
}
export namespace widget {
export { WysiwygWidget as richtext };
export { TextareaWidget as textarea };
export { DatetimeWidget as datetime };
export { DatetimeWidget as date };
Expand Down Expand Up @@ -112,7 +111,6 @@ import QuerystringWidget from '@plone/volto/components/manage/Widgets/Querystrin
import UrlWidget from '@plone/volto/components/manage/Widgets/UrlWidget';
import IdWidget from '@plone/volto/components/manage/Widgets/IdWidget';
import RegistryImageWidget from '@plone/volto/components/manage/Widgets/RegistryImageWidget';
import WysiwygWidget from '@plone/volto/components/manage/Widgets/WysiwygWidget';
import TextareaWidget from '@plone/volto/components/manage/Widgets/TextareaWidget';
import PasswordWidget from '@plone/volto/components/manage/Widgets/PasswordWidget';
import FileWidget from '@plone/volto/components/manage/Widgets/FileWidget';
Expand Down
18 changes: 18 additions & 0 deletions packages/volto/types/helpers/User/User.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,21 @@
* @returns {boolean}
*/
export function userHasRoles(user: any, roles?: any[]): boolean;
/**
* Checks if the user is Manager.
* @method isManager
* @returns {boolean}
*/
export function isManager(user: any): boolean;
/**
* Checks if the user can assing group.
* @method canAssignGroup
* @returns {boolean}
*/
export function canAssignGroup(isManager: any, group: any): boolean;
/**
* Checks if the user can assign role.
* @method canDeleteGroup
* @returns {boolean}
*/
export function canAssignRole(isManager: any, role: any): boolean;
2 changes: 1 addition & 1 deletion packages/volto/types/helpers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export { default as langmap } from "./LanguageMap/LanguageMap";
export { default as Helmet } from "./Helmet/Helmet";
export { messages } from "./MessageLabels/MessageLabels";
export { asyncConnect } from "./AsyncConnect";
export { userHasRoles } from "./User/User";
export { useDetectClickOutside } from "./Utils/useDetectClickOutside";
export { useEvent } from "./Utils/useEvent";
export { usePrevious } from "./Utils/usePrevious";
Expand All @@ -27,4 +26,5 @@ export { getBoolean, getVocabName, getVocabFromHint, getVocabFromField, getVocab
export { default as FormValidation, validateFileUploadSize, tryParseJSON } from "./FormValidation/FormValidation";
export { difference, getColor, getInitials, safeWrapper, applyConfig, withServerErrorCode, parseDateTime, toGettextLang, normalizeLanguageName, toReactIntlLang, toLangUnderscoreRegion, toBackendLang, hasApiExpander, replaceItemOfArray, cloneDeepSchema, arrayRange, reorderArray, isInteractiveElement, slugify, normalizeString } from "@plone/volto/helpers/Utils/Utils";
export { withBlockSchemaEnhancer, withVariationSchemaEnhancer, withBlockExtensions, applySchemaEnhancer, resolveExtension, resolveBlockExtensions, addStyling, composeSchema } from "./Extensions";
export { userHasRoles, isManager, canAssignGroup, canAssignRole } from "./User/User";
export { getCurrentStateMapping, getWorkflowOptions } from "./Workflows/Workflows";

0 comments on commit 82aaa52

Please sign in to comment.