Skip to content

Commit

Permalink
Merge pull request #102 from gaelj/release
Browse files Browse the repository at this point in the history
Release 0.3.5
  • Loading branch information
gaelj authored Feb 7, 2024
2 parents 2f312d6 + 162e48d commit 24bd373
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 12 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion CodeMirror6/CodeMirror6.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>GaelJ.BlazorCodeMirror6</AssemblyName>
<IsPackable>true</IsPackable>
<PackageId>GaelJ.BlazorCodeMirror6</PackageId>
<Version>0.3.4</Version>
<Version>0.3.5</Version>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
6 changes: 6 additions & 0 deletions CodeMirror6/CodeMirror6Wrapper.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ public partial class CodeMirror6Wrapper : ComponentBase
/// <returns></returns>
public CMCommandDispatcher? CommandDispatcher => CodeMirror6WrapperInternalRef.CmJsInterop?.CommandDispatcher;

/// <summary>
/// State of the CodeMirror6 editor
/// </summary>
/// <returns></returns>
public CodeMirrorState State => CodeMirror6WrapperInternalRef.State;

private CodeMirror6WrapperInternal CodeMirror6WrapperInternalRef = null!;
private ErrorBoundary? ErrorBoundary;

Expand Down
1 change: 0 additions & 1 deletion CodeMirror6/NodeLib/src/CmDiagrams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
2 changes: 1 addition & 1 deletion Examples.BlazorServer/Examples.BlazorServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>0.3.4</Version>
<Version>0.3.5</Version>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<Version>0.3.4</Version>
<Version>0.3.5</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Sentry.AspNetCore" Version="3.41.4" />
Expand Down
2 changes: 1 addition & 1 deletion Examples.BlazorWasm/Examples.BlazorWasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<Version>0.3.4</Version>
<Version>0.3.5</Version>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser-wasm" />
Expand Down
2 changes: 1 addition & 1 deletion Examples.Common/Examples.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<Version>0.3.4</Version>
<Version>0.3.5</Version>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
Expand Down
2 changes: 1 addition & 1 deletion Examples.Common/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">Examples.BlazorServer</a>
<a class="navbar-brand" href="">Examples.Blazor</a>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down
8 changes: 3 additions & 5 deletions NEW_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
### ✨ Introduce new features

- Implement clipboard commands
- Expose CodeMirrorState, for @ref access

### 🐛 Fix a bug

- Add no-cors header to diagram requests
- Hide additional content when not visible
- Make visible by default
- Don't use no-cors header

### 📝 Add or update documentation

- Add visibility toggle to example
- Fix menu title in example project

0 comments on commit 24bd373

Please sign in to comment.