diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 42f41874c..ab5033c5a 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -6,7 +6,7 @@ import isEqual from 'lodash/isEqual'; import I18n from 'coral-framework/modules/i18n/i18n'; import translations from 'coral-framework/translations'; const lang = new I18n(translations); -import {graphImporter} from 'coral-framework/helpers/importer'; +import {graphImporter} from 'coral-framework/helpers/plugins'; import {TabBar, Tab, TabContent, Spinner} from 'coral-ui'; @@ -128,7 +128,7 @@ class Embed extends Component { const pluginProps = { ...this.props, - ...boundActionCreators + actions: boundActionCreators }; return ( diff --git a/client/coral-framework/actions/index.js b/client/coral-framework/actions/index.js index be107a613..1168c9c9a 100644 --- a/client/coral-framework/actions/index.js +++ b/client/coral-framework/actions/index.js @@ -1,7 +1,7 @@ import * as authActions from './auth'; import * as assetActions from './asset'; import * as notificationActions from './notification'; -import {actionsImporter} from '../helpers/importer'; +import {actionsImporter} from '../helpers/plugins'; export default { authActions, diff --git a/client/coral-framework/components/Slot.js b/client/coral-framework/components/Slot.js index 54cb96271..0288bbc51 100644 --- a/client/coral-framework/components/Slot.js +++ b/client/coral-framework/components/Slot.js @@ -1,12 +1,12 @@ import React, {Component} from 'react'; -import {importer as injectPlugins} from 'coral-framework/helpers/importer'; +import {injectPlugins} from 'coral-framework/helpers/plugins'; class Slot extends Component { render() { - const {pluginProps: actions, ...props} = this.props; + const {pluginProps, ...props} = this.props; return (
- {injectPlugins({...props, actions})} + {injectPlugins({...props, ...pluginProps})}
); } diff --git a/client/coral-framework/helpers/importer.js b/client/coral-framework/helpers/plugins.js similarity index 98% rename from client/coral-framework/helpers/importer.js rename to client/coral-framework/helpers/plugins.js index 6e7e5b251..7a0f2e2f3 100644 --- a/client/coral-framework/helpers/importer.js +++ b/client/coral-framework/helpers/plugins.js @@ -1,6 +1,6 @@ import {client as clientPlugins} from 'pluginsConfig'; -function importer ({fill, ...props}) { +function injectPlugins ({fill, ...props}) { let context, importedFiles; @@ -142,7 +142,7 @@ function graphImporter () { } export default { - importer, + injectPlugins, actionsImporter: actionsImporter(), reducersImporter: reducersImporter(), graphImporter: graphImporter() diff --git a/client/coral-framework/reducers/index.js b/client/coral-framework/reducers/index.js index c97c13f45..e2e003f7d 100644 --- a/client/coral-framework/reducers/index.js +++ b/client/coral-framework/reducers/index.js @@ -1,7 +1,7 @@ import auth from './auth'; import user from './user'; import asset from './asset'; -import {reducersImporter} from '../helpers/importer'; +import {reducersImporter} from '../helpers/plugins'; export default { auth,