Releases: uiwjs/react-codemirror
v4.9.6
Documentation v4.9.6: https://raw.githack.com/uiwjs/react-codemirror/9a0a1b1/index.html
Comparing Changes: v4.9.5...v4.9.6
npm i @uiw/[email protected]
- 🐞 fix: fix ref issue. b6cc349 @jaywcjlove
v4.9.5
Documentation v4.9.5: https://raw.githack.com/uiwjs/react-codemirror/a41e227/index.html
Comparing Changes: v4.9.4...v4.9.5
npm i @uiw/[email protected]
- 📖 doc: Update README.md 632d4a7 @jaywcjlove
- 📖 doc(theme): Update README.md 1090717 @jaywcjlove
- 📖 doc(theme): Update README.md 3c15a40 @jaywcjlove
- 🌟 feat: add
sublime
theme. ff04528 @jaywcjlove - 🎨 style(theme): update sublime theme style. 7c4e366 @jaywcjlove
- 🌍 website: update theme editor. cadb918 @jaywcjlove
- 🐞 fix(deps): update dependency @codemirror/lang-html to ~6.1.0 (#348) 75f6c3d @renovate-bot
- 🌟 feat: add events extensions for codemirror6. 0177e08 @jaywcjlove
- 💄 chore: update workflows config. a21c6c0 @jaywcjlove
- 🎨 style(theme): update sublime theme moduleKeyword style. 2ada2c9 @jaywcjlove
- 🌍 website: update extensions. ed43763 @jaywcjlove
- 📖 doc: Update README.md 4bd42b5 @jaywcjlove
- 💄 chore: update workflows config. b7d4418 @jaywcjlove
- 💄 chore: update workflows config. da0ef7c @jaywcjlove
- 💄 chore: update workflows config. e4fe1fd @jaywcjlove
- 🌟 feat: add
abcdef
theme. 06e3121 @jaywcjlove - 💄 chore: update workflow config. 3762c1e @jaywcjlove
- 📖 doc(theme): update README.md d4360a6 @jaywcjlove
- 📖 doc(core): Update README.md e2f142c @jaywcjlove
v4.9.4
Documentation v4.9.4: https://raw.githack.com/uiwjs/react-codemirror/559dda5/index.html
Comparing Changes: v4.9.3...v4.9.4
npm i @uiw/[email protected]
- 🌟 feat: add
eclipse
theme. ebca476 @jaywcjlove - 💄 chore: update workflows config. 55eeb12 @jaywcjlove
- 🌍 website: modify theme editor style. e16eb80 @jaywcjlove
- 🌟 feat(theme): add
selectionMatch
option. 83146a2 @jaywcjlove - 🌟 feat: add
bespin
theme. 1c64437 @jaywcjlove - 🌟 feat: add
darcula
theme. 1833d4d @jaywcjlove - 🎨 style: update theme selectionMatch style. 3b71023 @jaywcjlove
- 🌍 website: update theme document. 2c32e0e @jaywcjlove
- 💄 chore: update workflows config. 58ef1ce @jaywcjlove
v4.9.3
Documentation v4.9.3: https://raw.githack.com/uiwjs/react-codemirror/d2da2ed/index.html
Comparing Changes: v4.9.2...v4.9.3
npm i @uiw/[email protected]
- 🌍 website: update example. 2cce4d6 @jaywcjlove
- 📖 doc: Improve the onUpdate docs to be a bit clearer. (#344) 5309d6a @willstott101
- 🐞 fix(core): add missing attributes to reconfigure useEffect (#346) 1175bf0 @willstott101
v4.9.2
Documentation v4.9.2: https://raw.githack.com/uiwjs/react-codemirror/8a2422f/index.html
Comparing Changes: v4.9.1...v4.9.2
npm i @uiw/[email protected]
- 💄 chore: modify homepage field in package.json f8fd518 @jaywcjlove
- 💄 chore: modify theme editor. c9766c9 @jaywcjlove
- 🐞 fix(codemirror-themes): Rename
dark
->theme
api. 8c4f9ee @jaywcjlove - 🌍 website: fix type error. 566dcfb @jaywcjlove
import { createTheme } from '@uiw/codemirror-themes';
import { tags as t } from '@lezer/highlight';
const myTheme = createTheme({
- dark: 'light',
+ theme: 'light',
settings: {
background: '#ffffff',
foreground: '#75baff',
caret: '#5d00ff',
selection: '#036dd626',
lineHighlight: '#8a91991a',
gutterBackground: '#fff',
gutterForeground: '#8a919966',
},
styles: [
{ tag: t.comment, color: '#787b8099' },
{ tag: t.variableName, color: '#0080ff' },
{ tag: t.attributeName, color: '#5c6166' },
],
});
v4.9.1
Documentation v4.9.1: https://raw.githack.com/uiwjs/react-codemirror/b0757c9/index.html
Comparing Changes: v4.9.0...v4.9.1
npm i @uiw/[email protected]
- 🌍 website: update theme editor. 3d36f48 @jaywcjlove
- 🌟 feat: add
dracula
theme. f12bd21 @jaywcjlove - 🌟 feat: add
duotone
theme. 4c8f806 @jaywcjlove - 🐞 fix(theme): fix selection issue. 19572a2 @jaywcjlove
- 🎨 style(theme-duotone): add className style. 66dcc0a @jaywcjlove
- 📖 doc: Update README.md 8c2dbda @jaywcjlove
- 💄 chore: Modify lint-staged config. a711ab4 @jaywcjlove
npm install @uiw/codemirror-theme-duotone --save
npm install @uiw/codemirror-theme-dracula --save
v4.9.0
Documentation v4.9.0: https://raw.githack.com/uiwjs/react-codemirror/4f8b8c0/index.html
Comparing Changes: v4.8.1...v4.9.0
npm i @uiw/[email protected]
- 📖 doc: Update README.md dcd3e32 @jaywcjlove
- 🌟 feat: use npm workspaces. 5ba83cf @jaywcjlove
- 💄 chore: update README.md 4789a1f @jaywcjlove
- 💄 chore: update workflows config. 743680f @jaywcjlove
- 💄 chore: modify typscript config. cb90002 @jaywcjlove
- 💄 chore: update workflows config. c220d27 @jaywcjlove
- 🌟 feat: add @uiw/codemirror-themes package. bb0ece5 @jaywcjlove
- 🐞 fix(deps): update dependency @codemirror/legacy-modes to ~6.1.0 (#340) 108618a @renovate-bot
- 📖 doc: Update README.md bb9a963 @jaywcjlove
- 💄 chore: Fix workflow errors. 167ce75 @jaywcjlove
- 🌟 feat: add codemirror-theme-okaidia. 98bcfed @jaywcjlove
- 🐞 fix(codemirror-themes): Fix export createTheme error. aba2e59 @jaywcjlove
- 💄 chore: update workflows config. 29d5840 @jaywcjlove
- 🌟 feat: Extend the basicSetup props (#316). 778df93 @jaywcjlove
- 💄 chore(deps): update dependency prettier to ~2.7.0 (#332) 7a4b33c @renovate-bot
<CodeMirror
value="console.log('hello world!');"
height="200px"
theme="dark"
basicSetup={{
+ lineNumbers: false
}}
extensions={[javascript({ jsx: true })]}
onChange={(value, viewUpdate) => {
console.log("value:", value);
}}
/>
export interface BasicSetupOptions {
lineNumbers?: boolean;
highlightActiveLineGutter?: boolean;
highlightSpecialChars?: boolean;
history?: boolean;
foldGutter?: boolean;
drawSelection?: boolean;
dropCursor?: boolean;
allowMultipleSelections?: boolean;
indentOnInput?: boolean;
syntaxHighlighting?: boolean;
bracketMatching?: boolean;
closeBrackets?: boolean;
autocompletion?: boolean;
rectangularSelection?: boolean;
crosshairCursor?: boolean;
highlightActiveLine?: boolean;
highlightSelectionMatches?: boolean;
closeBracketsKeymap?: boolean;
defaultKeymap?: boolean;
searchKeymap?: boolean;
historyKeymap?: boolean;
foldKeymap?: boolean;
completionKeymap?: boolean;
lintKeymap?: boolean;
}
v4.8.1
Documentation v4.8.1: https://raw.githack.com/uiwjs/react-codemirror/81fb88f/index.html
Comparing Changes: v4.8.0...v4.8.1
npm i @uiw/[email protected]
- 🌍 website: remove console.log abbc1ad @jaywcjlove
- 🐞 fix: fix EditorView.theme undefined. 6e371ce @jaywcjlove
v4.8.0
Documentation v4.8.0: https://raw.githack.com/uiwjs/react-codemirror/a680956/index.html
Comparing Changes: v4.7.0...v4.8.0
⚠️ Update dependency CodeMirror to v6
npm i @uiw/[email protected]
- 📖 doc: Fix Copy to Clipboard Script (#311) 95e8b1a @realabbas
- 📖 doc: replace stream-parser with language (#312) 22cc819 @shubhendusaurabh
- 💄 chore(deps): update codemirror to v6 (#326) 7e8e7d9 @renovate-bot
- 💄 chore(deps): update dependency lint-staged to v13 (#324) 2fb75d4 @renovate-bot
- 💄 chore(deps): update react monorepo to ~18.1.0 (#307) 45b18ff @renovate-bot
- 💄 chore(deps): update dependency husky to v8 (#313) 8e90032 @renovate-bot
- 💄 chore(deps): Update dependency codemirror to v6 (#327) (#88) 5cef465 @jaywcjlove
- 📖 doc: Update README.md 3830b9f @jaywcjlove
v4.7.0
Documentation v4.7.0: https://raw.githack.com/uiwjs/react-codemirror/ecb9c96/index.html
Comparing Changes: v4.6.0...v4.7.0
npm i @uiw/[email protected]
- 📖 doc: Update README.md 5098495 @jaywcjlove
- 🐞 fix(deps): update codemirror (#301) ffeebea @renovate-bot
- 💄 chore(deps): update dependency lint-staged to ~12.4.0 (#300) 32bcda4 @renovate-bot
- 💄 chore(deps): update dependency @types/react-test-renderer to v18 (#296) f57a5f6 @renovate-bot