Releases: ui-schema/react-codemirror
Releases · ui-schema/react-codemirror
code-0.4.7
@ui-schema/material-code
>0.4.7
Updates
- (chore) include immutable v5 in peer dependency range
code-0.4.6 & kit-0.2.0
@ui-schema/material-code
>0.4.6
@ui-schema/kit-codemirror
>0.2.0
No breaking changes.
code-0.4.6
- bump peer dependency
kit-codemirror
to allow~0.2.0
additionally
kit-0.2.0
- switch to
type: "module"
with strict ESMexports
- dual-mode with new file structure, using
.cjs
file extension in same folder as ESM.js
- dual-mode with new file structure, using
code-0.4.5 & kit-0.1.2
@ui-schema/material-code
>0.4.5
@ui-schema/kit-codemirror
>0.1.2
No breaking changes.
code-0.4.5
- adds
sideEffects: false
- improve some
@mui
and@ui-schema
imports, only importing subpaths now
kit-0.1.2
- adds
sideEffects: false
code-0.4.4 & kit-0.1.1
@ui-schema/material-code
>0.4.4
@ui-schema/kit-codemirror
>0.1.1
No breaking changes.
code-0.4.4
- expand editor and highlight style config in
useEditorTheme
,useHighlightStyle
- support optional style overrides for
.cm-editor
,.cm-content
,.cm-scroller
inuseEditorTheme
- fix mui
useTheme
imports - optimize
hideTitle
style inWidgetCode
, not rendering title wrapper if nothing is inside - consistent
showValidity
inWidgetCode
,WidgetCodeSelectable
, same behaviour for title and editor
kit-0.1.1
- add generic component props to
CodeMirror
Note
Do not use @ui-schema/kit@0.1.0
and @ui-schema/material-code@0.4.3
as their builds are broken.
0.4.0 - 0.4.2
Change log for 0.4.0-0.4.2 was only in git commits, here is a summary.
code-0.4.2
- add codefold icon style
kit-0.1.0-alpha.1
💥 Breaking changes.
- for v18 strictmode the unmount/remount protection and destroying isn't possible without a state, switch back to state based
EditorView
creation, but still mounting inuseLayoutEffect
to battle delays/flickers - 💥 moved
onViewLifecycle
touseCodeMirror
, still available viaCodeMirror
props - add
onExternalChange
toCodeMirror
props - made param
containerRef
optional inuseCodeMirror
and moved aftereffects
code-0.4.1
- typing fixes
kit-0.1.0-alpha.0
💥 Breaking changes.
- 💥 streamlined EditorView creation, switched from state based to ref+memo based with optimized
useLayoutEffect
rendering- fixes flickering
- fixes painting delays
- cleanup unneeded checks & code
- easier render-flow intergration
- 💥 new
effects
prop + param (CodeMirror
/useCodeMirror
) to apply editor effects from e.g. extensions without having theeditor
in the actual component - new
useExtension
hook to easily update extensions in auseCallback
fashion- fixes unnecessary editor destroy & creation (history lost, flickering etc.)
code-0.4.0
- mui add new
embed
variant touseEditorTheme
- mui add new
dense
option touseEditorTheme
- add widget keyword
dense
- optimized colors in theme + highlighting
- now defaults to fullwidth, to be easier styleable from container component
0.4.0-beta.1
@ui-schema/material-code
>0.4.0-beta.1
@ui-schema/kit-codemirror
>0.0.1
Full recode from CodeMirror v5 to CodeMirror v6.
As CodeMirror v6 has changed a lot and a new React integration is used, the Widgets need to be rebuild completly.
To support all features of the old editor, you need to add them in your custom widgets composition, consult the docs about new widget setup, or dig into the demo code for more ideas.