npm @monaco-editor/react 4.0.0
v4.0.0

latest releases: 4.7.0, 4.7.0-rc.0, 4.6.0...
4 years ago
  • package.json: update dependency (@monaco-editor/loader) version to - v1.0.0
  • hooks: create useMonaco hook
  • lib: export (named) useMonaco from the entry file
  • monaco: rename the main utility: monaco -> loader
  • Editor/Diff: rename editorDidMount to onMount
  • Editor/Diff: expose monaco instance from onMount as a second argument (first is the editor instance)
  • Editor/Diff: add beforeMount prop: function with a single argument -> monaco instance
  • Editor: add defaultModelPath prop, use it as a default model path
  • Editor: add defaultValue prop and use it during default model creation
  • Editor: add subscription (onChange prop) to listen default model content change
  • Editor: remove _isControlledMode prop
  • Diff: add originalModelPath and modifiedModelPath props, use them as model paths for original/modified models
  • ControlledEditor: remove; the Editor component, now, handles both controlled and uncontrolled modes
  • package.json: move prop-types to dependencies
  • types: fix types according to changed
  • Editor: add onValidate prop: an event emitted when the length of the model markers of the current model isn't 0

Don't miss a new react release

NewReleases is sending notifications on new releases.