Skip to content

Conversation

@KevinDavilaDotCMS
Copy link
Contributor

@KevinDavilaDotCMS KevinDavilaDotCMS commented Jan 10, 2026

2026-01-11.15-03-21.mov

This PR fixes: #34259

This PR fixes: #34259

… form handling

- Updated the style editor form components to eliminate default values from the schema, ensuring that fields are initialized with null or empty values instead.
- Introduced a new utility function, , to filter out null and undefined values before sending data to the API.
- Adjusted the form builder service to handle initial values more effectively, ensuring that the form reflects the current state accurately.
- Updated unit tests to verify the new behavior of form initialization and value filtering.

This change improves the clarity of form data handling and enhances the user experience by ensuring that only meaningful values are submitted.
- Added a new section in the README.md for the Style Editor, detailing its purpose, benefits, and use cases.
- Included a Quick Start guide for installation and schema definition.
- Documented various field types supported by the Style Editor, including input, dropdown, radio, and checkbox group.
- Provided examples for defining schemas and utilizing the Style Editor in both React and vanilla JavaScript.
- Enhanced the documentation with best practices and a complete example to facilitate user understanding and implementation.

This update significantly improves the clarity and usability of the Style Editor feature for developers.
- Changed the definition of StyleEditorRadioOption to only accept StyleEditorRadioOptionObject, removing the string type option.
- This change simplifies the type handling for radio options in the style editor, ensuring consistency and reducing potential errors.

This update enhances type safety within the style editor component.
…f strings

- Modified the radio options in the style editor to use an object format, enhancing clarity and consistency.
- Updated unit tests to reflect the new structure of options, ensuring they validate the expected object format.

This change improves type safety and aligns with recent updates to the StyleEditorRadioOption type definition.
@KevinDavilaDotCMS KevinDavilaDotCMS added this pull request to the merge queue Jan 13, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jan 13, 2026
@KevinDavilaDotCMS KevinDavilaDotCMS added this pull request to the merge queue Jan 13, 2026
Merged via the queue into main with commit 0bdbea4 Jan 13, 2026
18 checks passed
@KevinDavilaDotCMS KevinDavilaDotCMS deleted the 34259-task-update-sdk-without-defaultvalues-and-update-readmes-and-examples-for-style-editor branch January 13, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[TASK] Update SDK without defaultValues and update READMEs and Examples for Style Editor

5 participants