Skip to content

Release 0.1.4

Latest
Compare
Choose a tag to compare
@bouzidanas bouzidanas released this 14 May 13:20
· 10 commits to master since this release

NEW FEATURES

  • selected property added to response dictionary. This property will contain the portion of the code that is selected/highlighted
  • response_mode argument added to code_editor function. This argument takes a single string or an array of multiple string values. The currently accepted values are: "default", "debounce", "blur", "select".
    • "default" - the code editor only returns a response if a response command is called
    • "debounce" - the code editor returns a response when a fixed amount of time has passed after the last change made to the contents of the editor. If another change is made before the time is up, then the timer is reset and restarted. This amount of time can be set using the debounceChangePeriod prop which defaults to 250 ms.
    • "blur" - the code editor returns a response when focus leaves the editor.
    • "select" - the code editor returns a response when the text selection changes.

BUG FIXES

  • fixed issue where custom commands get removed after reruns/rerenders
  • reduced react-script related errors in build