From 4293afe451817c59a3023dcab11b3376643b0f1d Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 5 Feb 2020 10:43:19 +0100 Subject: [PATCH] Expose `showTransformModal` and `showSortModal` --- src/js/JSONEditor.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/js/JSONEditor.js b/src/js/JSONEditor.js index 305b3a3..df9523c 100644 --- a/src/js/JSONEditor.js +++ b/src/js/JSONEditor.js @@ -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