Releases: spicywebau/craft-neo
Releases · spicywebau/craft-neo
Neo 2.13.20
Added
- Added
benf\neo\jobs\DeleteBlocks
(thanks @engram-design)
Changed
- When deleting a Craft element, queue jobs for deleting Neo blocks owned by the element will now be generated on a per-Neo-field basis, rather than a per-Neo-block basis (thanks @engram-design)
Neo 4.0.5
Added
- Added
benf\neo\jobs\ApplyNeoPropagationMethod
Fixed
- Fixed an error that occurred when editing a Neo field if a block type had an icon path set to an empty file
- Fixed an error that occurred when editing a Neo field if a block type had an icon path set to nonexistent file
- Fixed an error that occurred when cloning a block type that hadn't had its settings rendered yet
- Fixed a bug where pasting a block type would not paste the field layout
- Fixed a bug where external Neo field block type / group sort order changes were not applied when applying project config changes
- Fixed a bug where block type field layout UIDs would change when saving the block type
- Fixed a 'There was a problem getting the parent element' error that could occur when applying Neo field propagation method changes
Neo 4.0.3
Fixed
- Fixed a bug where field layout elements of collapsed Neo blocks could be interacted with
- Fixed a "Column 'structureId' in where clause is ambiguous" error that could occur when merging canonical block changes into derivative blocks
Neo 4.0.2
Fixed
- Fixed a bug when saving an entry, where new Neo blocks could have incorrect validation errors concerning invalid child block types
Neo 4.0.1
Fixed
- Fixed a bug where validation error messages on block type settings would not display after saving the Neo field failed
Neo 4.0.0
{note} If you are a developer of a plugin or module that extends Neo functionality, check the upgrade guide.
Added
- Added the
blockTypeIconPath
plugin setting - Added the
blockTypeIconSelectMode
plugin setting - Added
benf\neo\console\controllers\BlockTypesController::actionConvertIcons()
- Added
benf\neo\enums\BlockTypeIconSelectMode
- Added
benf\neo\jobs\ResaveFieldBlockStructures
- Added
benf\neo\models\BlockType::$iconFilename
- Added
benf\neo\models\BlockType::getIconPath()
- Added
benf\neo\models\BlockType::getIconUrl()
- Added
benf\neo\services\BlockTypes::getAllIconFilenames()
- Added
benf\neo\services\BlockTypes::getIconPath()
- Added
benf\neo\services\BlockTypes::getIconUrl()
- Added
benf\neo\services\Fields::applyPropagationMethod()
Changed
- Block type and block type groups now have their sort orders stored in a per-field ordered array in the project config
- Whether a Neo block type's Top Level, Max Sibling Blocks of This Type, Child Blocks or Max Child Blocks settings have been violated is now validated server-side when saving a Neo field's contents, rather than relying on them to be enforced by client-side JavaScript
benf\neo\elements\Block::getOwner()
will now returnnull
if the block's owner no longer exists, instead of throwingyii\base\InvalidConfigException
Removed
- Removed
benf\neo\assets\FieldAsset
; usebenf\neo\assets\InputAsset
instead - Removed
benf\neo\assets\SettingsAsset::EVENT_SET_CONDITION_ELEMENT_TYPES
; usebenf\neo\services\BlockTypes::EVENT_SET_CONDITION_ELEMENT_TYPES
instead - Removed
benf\neo\controllers\Configurator::actionRenderFieldLayout()
; usebenf\neo\controllers\Configurator::actionRenderBlockType()
and access the returned array'slayoutHtml
value instead - Removed
benf\neo\services\BlockTypes::renderBlockTypeSettings()
; usebenf\neo\services\BlockTypes::renderSettings()
and access the returned array'ssettingsHtml
andsettingsJs
values instead - Removed
benf\neo\tasks\DuplicateNeoStructureTask
; usebenf\neo\jobs\SaveBlockStructures
instead - Removed the
Block.getNewId()
JavaScript method - Removed the
Block.updateMenuStates()
JavaScript method; useBlock.updateActionsMenu()
instead - Removed the
BlockType.loadFieldLayout()
JavaScript method; useBlockType.load()
instead - Removed the
BlockTypeSettings.setSortOrder()
JavaScript method - Removed the
GroupSettings.setSortOrder()
JavaScript method - Removed the
Settings.getSortOrder()
JavaScript method - Removed the
Settings.setSortOrder()
JavaScript method
Fixed
- Fixed a bug where applying a propagation method change to a Neo field would not create new block structures for the duplicated blocks
- Fixed a bug where queries for Neo blocks with a specific owner entry/category could return duplicate blocks, if the entry/category had any drafts and the duplicated blocks were owned by both the entry/category and the drafts
- Fixed an error that occurred when lazy loading a new block that requires at least two child blocks
Neo 3.9.11
Added
- Add
uid
handling for blocks when converting from serialised blocks (thanks @engram-design)
Fixed
- Fixed invalid HTML being generated for new blocks' top bar checkboxes (thanks @engram-design)
Neo 4.0.0-beta.3
Fixed
- Fixed a bug where previously existing block types' sort orders were not updated in the database when saving a Neo field
Neo 3.9.10
Fixed
- Fixed a bug when lazy loading new blocks in a slideout element editor, where the values of new blocks' fields affected by condition rules weren't being saved
Neo 4.0.0-beta.2
Fixed
- Fixed an exception that occurred when accessing a Neo field settings page, if the
blockTypeIconSelectMode
plugin setting was set to'path'
, and theblockTypeIconPath
plugin setting was set to a folder that doesn't exist