Added
- Added Craft 4 compatibility
- Added the ability to show or hide block type group dropdowns where the group only has one available block type
- Added the
defaultAlwaysShowGroupDropdowns
plugin setting (defaults totrue
) - Added the
alwaysShowDropdown
column to theneoblocktypegroups
table - Added
benf\neo\models\BlockTypeGroup::$alwaysShowDropdown
- Added
benf\neo\assets\InputAsset
- Added
benf\neo\assets\SettingsAsset
- Added
benf\neo\controllers\Configurator
- Added
benf\neo\jobs\SaveBlockStructures
Changed
- Existing Neo input field content is no longer rendered using JavaScript (other than new block buttons)
- Whether a Neo block type's max blocks setting has been exceeded is now validated server-side when saving a Neo field's contents, rather than relying on it to be enforced by client-side JavaScript
- The
neoblockstructures
table'sownerSiteId
column has been renamed tositeId
, and thebenf\neo\models\BlockStructure
class's$ownerSiteId
property has been renamed to$siteId
- The amount of animations and transitions Neo uses is now reduced if the user has requested reduced motion
- When editing a Neo field's block types, creating a new block type will show the settings tab, if the field layout tab was previously showing
- Visual improvements to the Neo block type settings
- Updated JavaScript dependencies
Deprecated
- Deprecated
benf\neo\assets\FieldAsset
; users ofEVENT_FILTER_BLOCK_TYPES
should useInputAsset
instead - Deprecated
benf\neo\tasks\DuplicateNeoStructureTask
; usebenf\neo\jobs\SaveBlockStructures
instead
Removed
- Removed Craft 3 compatibility
- Removed the unused
saveModifiedBlocksOnly
setting - Removed the unused
ownerSiteId
column from theneoblocks
table - Removed
benf\neo\Field::$localizeBlocks
; use$propagationMethod
instead - Removed
benf\neo\Field::$wasModified
- Removed
benf\neo\Plugin::$blockHasSortOrder
- Removed
benf\neo\integrations\fieldlabels\FieldLabels
- Removed
benf\neo\converters\Field
(Neo Field Converter for Schematic) - Removed
benf\neo\converters\models\BlockType
(Neo BlockType Converter for Schematic) - Removed
benf\neo\converters\models\BlockTypeGroup
(Neo BlockTypeGroup Converter for Schematic) - Removed
benf\neo\elements\Block::getModified()
; use$dirty
instead - Removed
benf\neo\elements\Block::setModified()
; use$dirty
instead - Removed
benf\neo\elements\Block::$ownerSiteId
; use$siteId
instead - Removed
benf\neo\elements\db\BlockQuery::ownerLocale()
; usesite()
orsiteId()
instead - Removed
benf\neo\elements\db\BlockQuery::ownerSite()
; usesite()
orsiteId()
instead - Removed
benf\neo\elements\db\BlockQuery::ownerSiteId()
; usesite()
orsiteId()
instead - Removed
benf\neo\elements\db\BlockQuery::$ownerSiteId
; use$siteId
instead - Removed
benf\neo\services\Blocks::getSearchKeywords()
- Removed
benf\neo\services\BlockTypes::renderTabs()
- Removed
benf\neo\services\Fields::getSupportedSiteIdsForField()
Fixed
- Fixed a bug where it was possible to create a Neo field with no block types