Skip to content

Releases: ui-schema/react-codemirror

code-0.4.7

03 Dec 21:07
Compare
Choose a tag to compare
  • @ui-schema/material-code > 0.4.7

Updates

  • (chore) include immutable v5 in peer dependency range

code-0.4.6 & kit-0.2.0

01 Nov 17:17
Compare
Choose a tag to 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 ESM exports
    • dual-mode with new file structure, using .cjs file extension in same folder as ESM .js

code-0.4.5 & kit-0.1.2

01 Nov 14:52
Compare
Choose a tag to 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

code-0.4.4 & kit-0.1.1

03 Oct 01:06
Compare
Choose a tag to 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 in useEditorTheme
  • fix mui useTheme imports
  • optimize hideTitle style in WidgetCode, not rendering title wrapper if nothing is inside
  • consistent showValidity in WidgetCode, 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

03 Oct 01:04
Compare
Choose a tag to 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 in useLayoutEffect to battle delays/flickers
  • 💥 moved onViewLifecycle to useCodeMirror, still available via CodeMirror props
  • add onExternalChange to CodeMirror props
  • made param containerRef optional in useCodeMirror and moved after effects

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 the editor in the actual component
  • new useExtension hook to easily update extensions in a useCallback fashion
    • fixes unnecessary editor destroy & creation (history lost, flickering etc.)

code-0.4.0

  • mui add new embed variant to useEditorTheme
  • mui add new dense option to useEditorTheme
  • 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

26 Jun 10:29
Compare
Choose a tag to 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.

org. issue