feat: use declarative component-based configuration for content mode#5724
feat: use declarative component-based configuration for content mode#5724shreyanshkotak wants to merge 8 commits intowebstudio-is:mainfrom
Conversation
Add component-based property restrictions alongside existing tag-based restrictions, enabling editors with content-only access to modify YouTube and Vimeo URLs.
1df7faa to
6135215
Compare
|
🚀 Deployed! 📍 Preview: https://pr-5724.development.webstudio.is Note: Adding new commits will remove the |
|
Found a few more things:
|
Since we have now enabled Text content field, if the text is bound to a variable/expression - it can not be edited directly, but the editor is now able to reset the property to unbind it and change it |
Update the Time component to use the Webstudio metadata prop name `datetime` instead of React's `dateTime` input prop. The component still renders the native `dateTime` DOM attribute internally
Right, I think we need to disable reset button in content mode |
- Memoize content-mode tag → attribute map as its own computed store so it isn't rebuilt on every selection change - Drop dead reset guard in `TextContent`
|
made updates to disable reset property when bound to expression |
Description
This PR refactors content mode property restrictions to use a declarative, component-based configuration approach. Instead of maintaining hardcoded lists of editable properties in a central location, each component now declares which of its properties should be editable in content mode via the
contentMode: booleanflag in PropMeta.Content Mode Properties Added:
Steps for reproduction
urlproperty should now be visible and editableCode Review
Before requesting a review
Before merging
.envfile