Split model values into resolved and raw

Created on 13 December 2024, 5 months ago

Overview

In 🐛 Some components cannot be used in XB because UI prevents SDC props being named `name` Active we've identified that we need to keep the raw model values as well as the resolved values.
The resolved values are what end up in the UI for rendering the component.
The raw values are what end up in the component tree field item.
E.g. for a media image reference that might be

[
            'alt' => 'This is a random image.',
            'width' => 100,
            'height' => 100,
            'target_id' => (int) $this->mediaEntity->id(),
]

But the resolved value the page builder needs to show the preview is

[
            'src' => '/path/to/some/image.webp',
            'alt' => 'This is a random image.',
            'width' => 100,
            'height' => 100,
],

Proposed resolution

Split the component model values into raw and resolved.

User interface changes

📌 Task
Status

Active

Version

0.0

Component

Page builder

Created by

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

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