@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.
18 lines (15 loc) • 647 B
JavaScript
import { jsx } from 'preact/jsx-runtime';
import { createContext } from 'preact';
import { useContext } from 'preact/compat';
import { presetPluginManager } from '../../../plugin/index.js';
function PluginProvider(_a) {
var _b = _a.plugin, plugin = _b === void 0 ? presetPluginManager : _b, children = _a.children;
return jsx(PluginContext.Provider, { value: plugin, children: children });
}
var PluginContext = createContext(presetPluginManager);
function usePluginManager() {
var pluginManager = useContext(PluginContext);
return pluginManager;
}
export { PluginProvider, usePluginManager };
//# sourceMappingURL=plugin.js.map