* added brace/mode/json import everywhere json mode is being used
* added brace mocks to tests
* slight refactor of imports
* remove import from es ui shared
* Reverse adding brace/mode/json import everywhere
- different approach of just adding brace/json/mode to
es_ui_shared as before with a BIG comment
* updated @kbn/ace readme
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* major wip
* major wip
* fix worker creation leak
* just copy the file over for now
* Remove xjson from static and from es_ui_shared entirely
- moved expand and collapse logic back to es_ui_shared. It has
nothing to do with ace
- refactor the useXJson hook which bundled XJsonMode with it.
This was convenient but ultimately inflates the amount of code
Kibana needs to first load up in the client. Users will need to
import XJsonMode and instantiate it when they want to use it.
Updated existing usage.
- Cleaned up Monaco namespace from es_ui_shared because of how
useXJsonMode was refactored -- no longer exporting an editor
specific instance means this code does not know about anything
to do with code editors so it is decoupled from ace and monaco.
* fix export of collapse and expand string literals
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>