Skip to content

refactor: add templates meta support #4653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 25, 2024
Merged

refactor: add templates meta support #4653

merged 4 commits into from
Dec 25, 2024

Conversation

TrySound
Copy link
Member

@TrySound TrySound commented Dec 25, 2024

Here added one more description file for components *.template.tsx.

It is decoupled from component meta to fix the issue with some templates like Sheet being treated as components though we don't have actual components with this name.

Another reason is have it separately to not include builder specific code and dependencies into CLI and published websites. Template package is defined as optional in peer dependencies meta.

In this PR migrated only Button and List as examples. There is still not support for data sources and styles.

Added support for text placeholders in children

Here added one more description file for components `*.template.tsx`.

It is decoupled from component meta to fix the issue with some
templates like Sheet being treated as components though we don't have
actual components with this name.

Another reason is have it separately to not include builder specific
code and dependencies into CLI and published websites. Template package
is defined as optional in peer dependencies meta.

In this PR migrated only Button and List as examples.
There is still not support for data sources and styles.
@TrySound TrySound requested review from kof and istarkov December 25, 2024 08:06
@TrySound TrySound merged commit a32d632 into main Dec 25, 2024
17 checks passed
@TrySound TrySound deleted the template-metas branch December 25, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants