@antv/t8
Version:
T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative JSON Schema syntax that can be used to describe the content of data interpretation reports.
21 lines (17 loc) • 718 B
JavaScript
;
var jsxRuntime = require('preact/jsx-runtime');
var preact = require('preact');
var compat = require('preact/compat');
var index = require('../../../plugin/index.js');
function PluginProvider(_a) {
var _b = _a.plugin, plugin = _b === void 0 ? index.presetPluginManager : _b, children = _a.children;
return jsxRuntime.jsx(PluginContext.Provider, { value: plugin, children: children });
}
var PluginContext = preact.createContext(index.presetPluginManager);
function usePluginManager() {
var pluginManager = compat.useContext(PluginContext);
return pluginManager;
}
exports.PluginProvider = PluginProvider;
exports.usePluginManager = usePluginManager;
//# sourceMappingURL=plugin.js.map