Rename component source plugin configuration keys for clarity

Created on 18 December 2024, about 1 month ago

Overview

Block components use the key "settings" to mean "data needed to initialise the default block plugin". Further, this is stored inside another "settings" key in the component entity itself.

SDC components use the key "props" to mean "field configuration for each prop".

Both these are too simplistic and have caused confusion,

Proposed resolution

For block components rename "settings" to "default_settings", this is the configuration required to render the default version of a block component. In the future it might be necessary to allow site owners to configure the default version of the block component so the preview renders in a sensible way.

For SDCs, rename "props" to "prop_field_definitions" - while the keys are props, they are not props themselves; the values are the configuration required to build field instances that can be used to configure the props.

User interface changes

None

📌 Task
Status

Active

Version

0.0

Component

Config management

Created by

🇬🇧United Kingdom longwave UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024