UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

23 lines 821 B
import { cmfConnect } from '@talend/react-cmf'; import * as containers from './containers'; import * as allComponents from "@talend/react-components"; import { omit } from "lodash"; const components = Object.keys(allComponents).reduce((acc, key) => { if (!acc[key] && typeof allComponents[key] === 'function') { const options = {}; if (['ActionList', 'AppSwitcher', 'Layout', 'RichLayout', 'Dialog'].includes(key)) { options.withComponentRegistry = true; } if (!allComponents[key].displayName) { allComponents[key].displayName = key; } // eslint-disable-next-line no-param-reassign acc[key] = cmfConnect(options)(allComponents[key]); } return acc; }, omit(containers, ['actionAPI'])); export default { id: 'containers', components }; //# sourceMappingURL=cmfModule.js.map