- Deleted the gcode-preview package from package.json and pnpm-lock.yaml.
- Removed references to gcode-preview in vite.config.js.
- Introduced new GCodePreview component and related files for G-code visualization.
- Added GCodeViewer components including Bed, HotEnd, and SegmentMesh for rendering.
- Implemented color modes and feature types for enhanced G-code rendering.
- Added GCodeLegend for displaying feature information and toggling visibility.
- Established GCodeScene for managing the 3D rendering context and controls.
- Changed the version of @lezer/common in package.json to a fixed version (1.5.0) for consistency.
- Updated Vite config to resolve @lezer/common directly from node_modules, ensuring compatibility with CodeMirror parsers and preventing issues with version mismatches.
- Enhanced the fcTemplateLang parser to support XML overlay across Text regions, improving EJS template handling.
- Introduced a new language support for EJS templates with XML integration, allowing for custom scriptlets and improved syntax highlighting.
- Updated CodeBlockEditor and TemplateEditor components to utilize the new fcTemplateLang for EJS language handling.
- Modified DocumentTemplate model to reflect the new language type for content.
- Added necessary grammar and parser files for fcTemplateLang, enhancing the overall template editing experience.
- Replaced static import of svgo with dynamic require to enhance compatibility with ES modules.
- Improved overall build configuration by ensuring proper loading of the SVGO plugin.
- Added new versions for several @codemirror packages, including '@codemirror/state@6.7.1', '@codemirror/view@6.39.12', '@codemirror/language@6.12.1', '@codemirror/commands@6.10.4', and '@codemirror/autocomplete@6.20.0' in both pnpm-lock.yaml and pnpm-workspace.yaml.
- Updated Vite configuration to deduplicate and optimize dependencies for @codemirror packages, ensuring better performance and compatibility.