Expose `showTransformModal` and `showSortModal`
This commit is contained in:
parent
df46f721e9
commit
4293afe451
|
@ -1,5 +1,8 @@
|
|||
'use strict'
|
||||
|
||||
import { showTransformModal } from './showTransformModal'
|
||||
import { showSortModal } from './showSortModal'
|
||||
|
||||
const ace = require('./ace') // may be undefined in case of minimalist bundle
|
||||
const VanillaPicker = require('./vanilla-picker') // may be undefined in case of minimalist bundle
|
||||
const { treeModeMixins } = require('./treemode')
|
||||
|
@ -479,6 +482,10 @@ JSONEditor.ace = ace
|
|||
JSONEditor.Ajv = Ajv
|
||||
JSONEditor.VanillaPicker = VanillaPicker
|
||||
|
||||
// expose some utils (this is undocumented, unofficial)
|
||||
JSONEditor.showTransformModal = showTransformModal
|
||||
JSONEditor.showSortModal = showSortModal
|
||||
|
||||
// default export for TypeScript ES6 projects
|
||||
JSONEditor.default = JSONEditor
|
||||
|
||||
|
|
Loading…
Reference in New Issue