Skip to content

Commit

Permalink
chore: bump new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Wells committed Mar 18, 2024
1 parent b4e9557 commit daaf17d
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 40 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# [1.3.0](https://github.com/x-orpheus/react-monaco-editor-lite/compare/v1.2.3...v1.3.0) (2024-03-18)


### Features

* support search file & search text ([#6](https://github.com/x-orpheus/react-monaco-editor-lite/issues/6)) ([b4e9557](https://github.com/x-orpheus/react-monaco-editor-lite/commit/b4e9557bc7ba636b6932aca85f532e743298bca8))



## [1.2.3](https://github.com/x-orpheus/react-monaco-editor-lite/compare/v1.0.75...v1.2.3) (2023-09-18)


Expand Down
2 changes: 1 addition & 1 deletion build/app.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-monaco-editor-lite",
"version": "1.2.4",
"version": "1.3.0",
"description": "",
"main": "dist/index.bundle.js",
"typings": "dist/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion public/docs/assets/search.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion public/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ <h2>react-monaco-editor-lite</h2></div>
</code><button>Copy</button></pre>
<a id="md:单文件编辑器" class="tsd-anchor"></a><h4><a href="#md:单文件编辑器">单文件编辑器</a></h4><pre><code class="language-js"><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">SingleEditor</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;react-monaco-editor-lite&#39;</span><span class="hl-1">;</span><br/><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">React</span><span class="hl-1">, { </span><span class="hl-0">useState</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;react&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-4">function</span><span class="hl-1"> </span><span class="hl-5">SingleIDE</span><span class="hl-1">() {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> [</span><span class="hl-6">loc</span><span class="hl-1">] = </span><span class="hl-5">useState</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">start:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">line:</span><span class="hl-1"> </span><span class="hl-12">3</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">column:</span><span class="hl-1"> </span><span class="hl-12">1</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> </span><span class="hl-0">end:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">line:</span><span class="hl-1"> </span><span class="hl-12">4</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">column:</span><span class="hl-1"> </span><span class="hl-12">1</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> [</span><span class="hl-6">value</span><span class="hl-1">, </span><span class="hl-6">setValue</span><span class="hl-1">] = </span><span class="hl-5">useState</span><span class="hl-1">(</span><span class="hl-3">`</span><br/><span class="hl-3">export function add(a, b) {</span><br/><span class="hl-3"> return a + b;</span><br/><span class="hl-3">}</span><br/><br/><span class="hl-3">export function minus(a, b) {</span><br/><span class="hl-3"> return a - b;</span><br/><span class="hl-3">}</span><br/><span class="hl-3"> `</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">onChange</span><span class="hl-1"> = (</span><span class="hl-0">v</span><span class="hl-1">) </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-5">setValue</span><span class="hl-1">(</span><span class="hl-0">v</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><br/><span class="hl-1"> </span><span class="hl-2">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-7">&lt;</span><span class="hl-8">div</span><span class="hl-1"> </span><span class="hl-9">style</span><span class="hl-1">=</span><span class="hl-4">{</span><span class="hl-10">{</span><br/><span class="hl-10"> </span><span class="hl-0">width:</span><span class="hl-10"> </span><span class="hl-3">&#39;800px&#39;</span><span class="hl-10">,</span><br/><span class="hl-10"> </span><span class="hl-0">height:</span><span class="hl-10"> </span><span class="hl-3">&#39;800px&#39;</span><span class="hl-10">,</span><br/><span class="hl-10"> }</span><span class="hl-4">}</span><span class="hl-7">&gt;</span><br/><span class="hl-1"> </span><span class="hl-7">&lt;</span><span class="hl-11">SingleEditor</span><br/><span class="hl-1"> </span><span class="hl-9">value</span><span class="hl-1">=</span><span class="hl-4">{</span><span class="hl-0">value</span><span class="hl-4">}</span><br/><span class="hl-1"> </span><span class="hl-9">onChange</span><span class="hl-1">=</span><span class="hl-4">{</span><span class="hl-0">onChange</span><span class="hl-4">}</span><br/><span class="hl-1"> </span><span class="hl-9">loc</span><span class="hl-1">=</span><span class="hl-4">{</span><span class="hl-0">loc</span><span class="hl-4">}</span><br/><span class="hl-1"> </span><span class="hl-9">options</span><span class="hl-1">=</span><span class="hl-4">{</span><span class="hl-10">{</span><br/><span class="hl-10"> }</span><span class="hl-4">}</span><span class="hl-1"> </span><span class="hl-7">/&gt;</span><br/><span class="hl-1"> </span><span class="hl-7">&lt;/</span><span class="hl-8">div</span><span class="hl-7">&gt;</span><br/><span class="hl-1"> )</span><br/><span class="hl-1">};</span><br/><br/><span class="hl-2">export</span><span class="hl-1"> </span><span class="hl-2">default</span><span class="hl-1"> </span><span class="hl-0">SingleIDE</span><span class="hl-1">;</span>
</code><button>Copy</button></pre>
<a id="md:搜索文件" class="tsd-anchor"></a><h4><a href="#md:搜索文件">搜索文件</a></h4><p>快捷键:command/ctrl + p</p>
<a id="md:搜索文本" class="tsd-anchor"></a><h4><a href="#md:搜索文本">搜索文本</a></h4><p>快捷键:shift + command/ctrl + f</p>
<a id="md:组件参数及方法" class="tsd-anchor"></a><h3><a href="#md:组件参数及方法">组件参数及方法</a></h3><p>查看此<a href="https://x-orpheus.github.io/react-monaco-editor-lite/public/docs/index.html">文档</a></p>
</div></div>
<div class="col-sidebar">
Expand Down Expand Up @@ -52,7 +54,9 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li>
<ul>
<li><a href="#md:多文件编辑器"><span>多文件编辑器</span></a></li>
<li><a href="#md:单文件编辑器"><span>单文件编辑器</span></a></li></ul></li>
<li><a href="#md:单文件编辑器"><span>单文件编辑器</span></a></li>
<li><a href="#md:搜索文件"><span>搜索文件</span></a></li>
<li><a href="#md:搜索文本"><span>搜索文本</span></a></li></ul></li>
<li><a href="#md:组件参数及方法"><span>组件参数及方法</span></a></li></ul></li></ul></li></ul></li></ul></div></details></div>
<div class="site-menu">
<nav class="tsd-navigation"><a href="index.html" class="current"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>react-<wbr/>monaco-<wbr/>editor-<wbr/>lite</span></a>
Expand Down
Loading

0 comments on commit daaf17d

Please sign in to comment.