@neo4j-cypher/react-codemirror
Advanced tools
Comparing version 2.0.0-next.1 to 2.0.0-next.2
# @neo4j-cypher/react-codemirror | ||
## 2.0.0-next.2 | ||
### Patch Changes | ||
- 3866e43: Editor history is now a controlled prop | ||
## 2.0.0-next.1 | ||
@@ -4,0 +10,0 @@ |
@@ -24,12 +24,7 @@ import { EditorState, Extension } from '@codemirror/state'; | ||
/** | ||
* Seed the editor history with some initial history entries | ||
* Navigateable via up/down arrow keys | ||
* The editor history navigateable via up/down arrow keys. Order newest to oldest. | ||
* Add to this list with the `onExecute` callback for REPL style history. | ||
*/ | ||
initialHistory?: string[]; | ||
history?: string[]; | ||
/** | ||
* Callback when a new history entry is added, useful for keeping track of history | ||
* outside of the editor. | ||
*/ | ||
onNewHistoryEntry?: (historyEntry: string) => void; | ||
/** | ||
* When set to `true` the editor will use the background color of the parent element. | ||
@@ -36,0 +31,0 @@ * |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "2.0.0-next.1", | ||
"version": "2.0.0-next.2", | ||
"main": "./dist/cjs/index.cjs", | ||
@@ -23,0 +23,0 @@ "module": "./dist/esm/index.mjs", |
@@ -7,3 +7,3 @@ # React Codemirror | ||
`npm install @neo4j-cypher/reactcodemirror` | ||
`npm install @neo4j-cypher/react-codemirror@next` | ||
@@ -30,4 +30,7 @@ ```tsx | ||
## Learning codemirror | ||
It can take a little time to get into the CodeMirror6 ways of thinking, Trevor Harmon has a [great blog post](https://thetrevorharmon.com/blog/learning-codemirror/) explaining the cm6 "primitives". He also has a demo on how to integrate ANTLR4 with codemirror over [here](https://github.com/thetrevorharmon/zephyr-demo). | ||
### Completion Icons | ||
We use unmodified copies of Visual Studio Code Icons from microsofts repository [here](https://github.com/microsoft/vscode-icons) licensed under creative commons. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
996404
14869
35