Skip to content

Conversation

@kevinchappell
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 6, 2025 03:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a framework demo switcher to the Formeo demo page, enabling users to see integration examples for different JavaScript frameworks (Vanilla JS, Angular, and React). Key changes include:

  • Added a new clear() method to the FormeoEditor class for resetting the editor state
  • Implemented a framework loader system with dynamic switching between Vanilla JS, Angular, and React demos
  • Created framework-specific demo files with code examples and interactive implementations
  • Restructured the demo HTML to support framework switching with URL query parameter support
  • Added comprehensive documentation for framework integrations and the new clear method

Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/lib/js/editor.js Added clear() method to FormeoEditor for resetting editor state
src/demo/sass/demo.scss Styling updates for framework demos, header layout, and code examples
src/demo/js/options/enhanced-config-example.js Prefixed unused parameter with underscore
src/demo/js/index.js Simplified to only import framework-loader and styles
src/demo/js/frameworks/vanilla.js Vanilla JS demo moved to framework-specific file
src/demo/js/frameworks/react.js Complete React integration demo with hooks and examples
src/demo/js/frameworks/angular.js Complete Angular integration demo with modern patterns
src/demo/js/frameworks/README.md Documentation for framework demo structure
src/demo/js/framework-loader.js Core loader for switching between framework demos
src/demo/js/actionButtons.js Moved renderFormWrap query selector inside function
src/demo/index.html Added framework selector and container for dynamic content
docs/react-integration.md React integration guide documentation
docs/editor/editor-clear-method.md Documentation for new clear() method
docs/editor/component-events.md Documentation for component event system
docs/angular-integration.md Angular integration explanation and alternatives
docs/angular-integration-example/README.md Placeholder for Angular example project

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kevinchappell kevinchappell merged commit 71fe562 into main Nov 6, 2025
2 checks passed
@kevinchappell kevinchappell deleted the chore/add-framework-examples branch November 6, 2025 03:54
@kevinchappell
Copy link
Collaborator Author

🎉 This PR is included in version 4.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants