Explore: Add multiline syntax highlighting to query field

- the non-nested query field schema did not allow for multi-line
  highlighting
- added explicit code schema and a `makeValue` function that enforces
  the nested structure
- replaced vendored prism-slate adapter with official slate-prism
  package
- renamed language to syntax
This commit is contained in:
David Kaltschmidt
2018-09-14 16:38:45 +02:00
parent 1a38c45dde
commit face5b1890
6 changed files with 73 additions and 149 deletions
+1
View File
@@ -173,6 +173,7 @@
"rxjs": "^5.4.3",
"slate": "^0.33.4",
"slate-plain-serializer": "^0.5.10",
"slate-prism": "^0.5.0",
"slate-react": "^0.12.4",
"tether": "^1.4.0",
"tether-drop": "https://github.com/torkelo/drop/tarball/master",