Skip to content

Commit

Permalink
Merge pull request #155 from gaelj/release
Browse files Browse the repository at this point in the history
Release 0.7.3
  • Loading branch information
gaelj authored Feb 27, 2024
2 parents 658f56b + 5b586fa commit 684ac13
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 11 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 0.7.3 - 2024-02-27

### 🐛 Fix a bug

- Fix possible null ref on startup
- Replace \r\n with \n when pasting, to prevent crash in windows (#153)

### 🗑️ Deprecate code that needs to be cleaned up

- Remove useless exports (#144)

## 0.7.2 - 2024-02-25

### ✨ 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.7.2</Version>
<Version>0.7.3</Version>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
1 change: 1 addition & 0 deletions CodeMirror6/NodeLib/src/CmCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export async function cut(view: EditorView) {
export async function paste(view: EditorView): Promise<boolean> {
try {
let text = await navigator.clipboard.readText()
text = text.replace(/\r\n/g, '\n')
/*
let items = await navigator.clipboard.read()
const htmlItems = items.filter(item => item.types.includes("text/html"))
Expand Down
2 changes: 1 addition & 1 deletion CodeMirror6/NodeLib/src/CmHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const hasOverlap = (x1: number, x2: number, y1: number, y2: number) => {

export const isCursorInRange = (state: EditorState, from: number, to: number) => {
const id = getIdFromState(state)
if (!CMInstances[id].config.showMarkdownControlCharactersAroundCursor) return false
if (!CMInstances[id].config?.showMarkdownControlCharactersAroundCursor) return false
return state.selection.ranges.some((range) => {
return hasOverlap(from, to, range.from, range.to)
})
Expand Down
2 changes: 1 addition & 1 deletion CodeMirror6/NodeLib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import { createEditorWithId } from "./CmId"
import { hyperLink } from './CmHyperlink'
import { customArrowKeymap, customDeleteKeymap } from "./CmKeymap"

export { csvToMarkdownTable, getCmInstance, cut, copy, paste }
export { getCmInstance }

/**
* Initialize a new CodeMirror instance
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.7.2</Version>
<Version>0.7.3</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.7.2</Version>
<Version>0.7.3</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Sentry.AspNetCore" Version="4.1.0" />
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.7.2</Version>
<Version>0.7.3</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.7.2</Version>
<Version>0.7.3</Version>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
Expand Down
9 changes: 5 additions & 4 deletions NEW_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### ✨ Introduce new features
### 🐛 Fix a bug

- Support multiple cursors for arrow / shift / ctrl / ctrl-shift + arrow keys
- Fix possible null ref on startup
- Replace \r\n with \n when pasting, to prevent crash in windows (#153)

### 📝 Add or update documentation
### 🗑️ Deprecate code that needs to be cleaned up

- Add an example using ref
- Remove useless exports (#144)

0 comments on commit 684ac13

Please sign in to comment.