CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 1
Releases: ui-schema/react-codemirror
kit-1.0.0-alpha.2 & code-0.5.0-alpha.3
Compare
This release is published under the
next
tag and won't be installed automatically. To use it, specify the version when installing or updating.
@ui-schema/kit-codemirror
>1.0.0-alpha.2
@ui-schema/material-code
>0.5.0-alpha.3
Fixes for CJS compatibilty/non-strict ESM.
Assets 2
code-0.5.0-alpha.2
Compare
This release is published under the
next
tag and won't be installed automatically. To use it, specify the version when installing or updating.
@ui-schema/material-code
>0.5.0-alpha.2
Migration to 0.5.0-alpha.0 of UI-Schema core and ds-material.
No API changes for this package itself.
Assets 2
kit-1.0.0-alpha.1 & code-0.5.0-alpha.1
Compare
This release is published under the
next
tag and won't be installed automatically. To use it, specify the version when installing or updating.
@ui-schema/kit-codemirror
>1.0.0-alpha.1
@ui-schema/material-code
>0.5.0-alpha.1
kit-1.0.0-alpha.1
- adds support to
useExtension
, for using an extension or extension array directly, without a setup function - fixed react typing compatibility,
RefObject
back toMutableRefObject
code-0.5.0-alpha.1
- fixed and stabilized esm/cjs build, added conditional
exports
topackage.json
for ESM support, with.cjs
extension for CommonJS, separate/esm
folder for ESM version with.js
extension- even if switched to
exports
, it is not strict-ESM (no"type": "module"
), for compatibility with MUI5/6/7
- even if switched to
Assets 2
kit-1.0.0-alpha.0 & code-0.5.0-alpha.0
Compare
This release is published under the
next
tag and won't be installed automatically. To use it, specify the version when installing or updating.
@ui-schema/kit-codemirror
>1.0.0-alpha.0
@ui-schema/material-code
>0.5.0-alpha.0
kit-1.0.0-alpha.0
Rewritten internals, now stateless with impoved performance and reliability. New extension hook. No longer destroys editor when reconfiguring.
Check the demo folder or the base CodeMirror
component for reference on how it now works.
Documentation was moved in this repository under docs.
- made
useCodeMirror
easier to reuse, now accepting an object of options and manages the editor in a stateless approach which only guarantees that theeditorRef
is updated for anyuseLayoutEffect
/useEffect` which is defined after the hook was called. it now manages extensions in a single compartment, keeping the editors state when extensions are reconfigured - removed
effects
prop and system, instead directly modify extensions or useeditor
directly viaonViewLifecycle
,onSetup
or fromuseCodeMirror
. - reworked
useExtension
to automatically add and reconfigure an extension, now can only be used together withuseCodeMirror
, must be called directly after it CodeMirror
replaced propclassNamesContent: string[]
withclassNameContent: string
- removed
useEditorClasses
helper hook, now included inCodeMirror
- changed internal effects and state flow, for performance and reliability
- added
onSetup
prop toCodeMirror
, reactively attach event listener without extra state overhead or needing to use theuseCodeMirror
hook - added
Transaction.remote
annotation to the defaultonExternalChange
handler - added
isRemoteChange
util to check for the remote annotation
code-0.5.0-alpha.0
- compatibility with
kit-codemirror@1.0.0-alpha.0
, new min. version - additional react19 compatibility
- additional mui v6/7 compatibility
Note that the @ui-schema
core and ds-material packages do not yet support the new dependency ranges, to use it you must use npm install
with either --force
or --legacy-peer-deps
.
Assets 2
code-0.4.7
Compare
@ui-schema/material-code
>0.4.7
Updates
- (chore) include immutable v5 in peer dependency range
Assets 2
code-0.4.6 & kit-0.2.0
Compare
@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
Assets 2
code-0.4.5 & kit-0.1.2
Compare
@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
Assets 2
code-0.4.4 & kit-0.1.1
Compare
@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.
Assets 2
0.4.0 - 0.4.2
Compare
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
Assets 2
0.4.0-beta.1
Compare
@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.