Introduce state management for granular styling controls (padding, radius, opacity) and enhance tooltip visual aesthetics with new gradients and refined typography.
Restricts the automatic application of default background and text colors to component-level snippets, ensuring full HTML documents retain their original styling and layout integrity.
fix: filter Tailwind script and improve content styling
- Exclude Tailwind CSS script from injected head assets to prevent conflicts
- Add default typography and font smoothing to .visual-user-content for better readability
Configure Tailwind via CDN with a custom scope selector to prevent style leakage into the main application. Restrict CSS scoping transformations to canvas renders to maintain editor stability.
Implement a helper function to rewrite custom CSS selectors, ensuring styles are constrained to the .visual-user-content container to prevent layout leakage.
refactor: remove Tailwind CDN and CSS scoping logic
Add utility to prefix imported CSS rules with `.visual-user-content` to prevent style leakage and ensure proper encapsulation within the visual editor.
feat: allow stripping HTML wrapper during ID injection
Add a configuration parameter to injectEditorIds to support cleaner rendering within the visual canvas by conditionally removing the full HTML document wrapper.
feat: add reset functionality to default template
Update layout widget cards for better visual hierarchy and consistency. Refine canvas background logic to support transparent rendering when custom container themes are applied.
Added functionality to save and restore HTML drafts via localStorage. Updated CSS to protect builder UI elements from style bleeding caused by user-injected HTML content.
Automatically convert Hugging Face Space repository URLs into the corresponding public API domain format to ensure seamless integration with the backend.
Add GitHub Actions workflow for Hugging Face deployment
Implement backend URL management in the UI, enable CORS in the Express server, and add a multi-stage Dockerfile to facilitate deployment on platforms like Hugging Face Spaces.
feat: add state for form controls and iframe management
Introduce state variables for HTML input attributes and iframe configuration to support advanced element editing and persistent scroll positioning during reloads.