diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f121e04..5c4c3ad2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.3.5 - 2024-02-07 + +### ✨ Introduce new features + +- Expose CodeMirrorState, for @ref access + +### 🐛 Fix a bug + +- Don't use no-cors header + +### 📝 Add or update documentation + +- Fix menu title in example project + ## 0.3.4 - 2024-02-06 ### ✨ Introduce new features diff --git a/CodeMirror6/CodeMirror6.csproj b/CodeMirror6/CodeMirror6.csproj index 209d7d83..1d9a99dd 100644 --- a/CodeMirror6/CodeMirror6.csproj +++ b/CodeMirror6/CodeMirror6.csproj @@ -9,7 +9,7 @@ GaelJ.BlazorCodeMirror6 true GaelJ.BlazorCodeMirror6 - 0.3.4 + 0.3.5 true snupkg true diff --git a/CodeMirror6/CodeMirror6Wrapper.razor.cs b/CodeMirror6/CodeMirror6Wrapper.razor.cs index 92109b80..ac7c8931 100644 --- a/CodeMirror6/CodeMirror6Wrapper.razor.cs +++ b/CodeMirror6/CodeMirror6Wrapper.razor.cs @@ -181,6 +181,12 @@ public partial class CodeMirror6Wrapper : ComponentBase /// public CMCommandDispatcher? CommandDispatcher => CodeMirror6WrapperInternalRef.CmJsInterop?.CommandDispatcher; + /// + /// State of the CodeMirror6 editor + /// + /// + public CodeMirrorState State => CodeMirror6WrapperInternalRef.State; + private CodeMirror6WrapperInternal CodeMirror6WrapperInternalRef = null!; private ErrorBoundary? ErrorBoundary; diff --git a/CodeMirror6/NodeLib/src/CmDiagrams.ts b/CodeMirror6/NodeLib/src/CmDiagrams.ts index de55d65a..d6710030 100644 --- a/CodeMirror6/NodeLib/src/CmDiagrams.ts +++ b/CodeMirror6/NodeLib/src/CmDiagrams.ts @@ -70,7 +70,6 @@ async function fetchDiagramSvg(view: EditorView, code: string, language: string, headers: { 'Content-Type': 'text/plain', 'Accept': 'image/svg+xml', - 'mode': 'no-cors', }, body: code }) diff --git a/Examples.BlazorServer/Examples.BlazorServer.csproj b/Examples.BlazorServer/Examples.BlazorServer.csproj index ed48b5ae..349259de 100644 --- a/Examples.BlazorServer/Examples.BlazorServer.csproj +++ b/Examples.BlazorServer/Examples.BlazorServer.csproj @@ -4,7 +4,7 @@ enable false enable - 0.3.4 + 0.3.5 diff --git a/Examples.BlazorServerInteractive/Examples.BlazorServerInteractive.csproj b/Examples.BlazorServerInteractive/Examples.BlazorServerInteractive.csproj index 310f32a8..d5698e85 100644 --- a/Examples.BlazorServerInteractive/Examples.BlazorServerInteractive.csproj +++ b/Examples.BlazorServerInteractive/Examples.BlazorServerInteractive.csproj @@ -4,7 +4,7 @@ enable enable false - 0.3.4 + 0.3.5 diff --git a/Examples.BlazorWasm/Examples.BlazorWasm.csproj b/Examples.BlazorWasm/Examples.BlazorWasm.csproj index d300dcc5..f8dcd7ca 100644 --- a/Examples.BlazorWasm/Examples.BlazorWasm.csproj +++ b/Examples.BlazorWasm/Examples.BlazorWasm.csproj @@ -4,7 +4,7 @@ enable enable false - 0.3.4 + 0.3.5 diff --git a/Examples.Common/Examples.Common.csproj b/Examples.Common/Examples.Common.csproj index 79e0925e..c0728ced 100644 --- a/Examples.Common/Examples.Common.csproj +++ b/Examples.Common/Examples.Common.csproj @@ -5,7 +5,7 @@ enable enable false - 0.3.4 + 0.3.5 diff --git a/Examples.Common/Shared/NavMenu.razor b/Examples.Common/Shared/NavMenu.razor index db17d8d2..94a72508 100644 --- a/Examples.Common/Shared/NavMenu.razor +++ b/Examples.Common/Shared/NavMenu.razor @@ -1,6 +1,6 @@