Expose `showTransformModal` and `showSortModal`

This commit is contained in:
jos 2020-02-05 10:43:19 +01:00
parent df46f721e9
commit 4293afe451
1 changed files with 7 additions and 0 deletions

View File

@ -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