diff --git a/CHANGELOG.md b/CHANGELOG.md index ca0dff029..4d305c728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,23 +8,97 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Added +- `assets_identifier` attribute for the web component (#901) +- `code` attribute overriding content of `main.py`/`index.html` in the web component (#901) + +## [0.21.2] - 2024-01-23 + +### Changed + +- Minor copy changes to HTML add file modal +- Toggle errors sent via apiCallHandler off (#890) +- Upgrade webpack-dev-server to 4.0.0 to support conditional headers +- Upgrade yarn to 3.4.1 to workaround a string-width issue + +### Fixed + +- Editor input not focussing on iPad (#898) + +## [0.21.1] - 2024-01-11 + +### Added + +- Download panel save button (#872) + +### Changed + +- Stack editor input and output panels based on container width (#869) +- Blob/URL replacement in HTMLRunner (#877) + +### Fixed + +- Boolean web component attributes (#881) +- Wrap the project bar when sidebar is wide (#869) +- Web component project bar state update delay (#869) +- Left border of the project bar (#869) +- Indentation of code block first line (#883) +- Code block 3-digit line numbers (#883) + +## [0.21.0] - 2024-01-05 + +### Added + +- Load remix functionality (#804) +- ProjectBar functionality in the web component (#799) +- WebComponent can receive style strings from host app (#811) - Quiz rendering in InstructionsPanel (#777) - Styling for the task section of the instructions (#781) - Styling for the instructions callouts (#788) - Output styles for Instructions (#790, #807) - Styling for the instructions code snippets (#795) -- Styling for the instructions code blocks (#794) +- Styling for the instructions code blocks (#794, #808) +- quizReady custom event (#812) +- Code snippet and code block syntax highlighting for HTML and CSS in the instructions (#824) +- Toast save reminder to web component (#822) +- ProgressBar and completion-handling on quizzes (#834) +- Support for multiple host styles in the web component (#863) ### Changed +- Untangle HTML runner (#876) +- Project sidebar mobile structure and default to instructions behaviour (#823) +- Auth web component from user in local storage (#852) +- Save and download panel copy (#784) - Application of styles in the web component to remove `sass-to-string` (#788) - Info panel links open in a new tab (#803) - Copy updates (#803) +- Restyling the instructions progress bar (#808) ## Fixed +- Standalone editor height (#864) +- Web component height on Firefox (#838) - Web component resizable handle errors & sidebar width (#806) - HTML projects loading in web component (#789) +- Enabled modals in the web component (#802) +- Context menu styling in the web component (#819) +- Collect web component login data (#818) +- Syntax highlighting contrast in dark mode (#824) +- Secondary button theming (#827) +- Instructions step buttons hit area (#827) +- Instructions code block line highlighting (#827) +- Instructions image widths (#827) +- Save status spacing (#827) +- Disappearing borders on tablet (#827) +- Dark mode button theming (#850) +- `` styling on Firefox (#854) +- Progress bar width on Firefox (#855) +- Instructions blocks spacing (#856) +- Font family stacking (#857) +- Save/download panel spacing (#859) +- Instructions output wrapping in Firefox (#862) +- Instructions code blocks with no line numbers (#863) +- New file button width (#865) ## [0.20.0] - 2023-11-24 diff --git a/src/components/Editor/EditorPanel/EditorPanel.jsx b/src/components/Editor/EditorPanel/EditorPanel.jsx index 57302aa47..7c2a160ce 100644 --- a/src/components/Editor/EditorPanel/EditorPanel.jsx +++ b/src/components/Editor/EditorPanel/EditorPanel.jsx @@ -71,7 +71,7 @@ const EditorPanel = ({ extension = "html", fileName = "index" }) => { useEffect(() => { const code = project.components.find( (item) => item.extension === extension && item.name === fileName, - ).content; + )?.content; const mode = getMode(); const startState = EditorState.create({ doc: code, diff --git a/src/components/ExternalFiles/ExternalFiles.jsx b/src/components/ExternalFiles/ExternalFiles.jsx index 6c6683988..acefd937a 100644 --- a/src/components/ExternalFiles/ExternalFiles.jsx +++ b/src/components/ExternalFiles/ExternalFiles.jsx @@ -6,7 +6,7 @@ const ExternalFiles = () => { return (