Merge branch 'master' into featured-comments

Conflicts:
	client/coral-embed-stream/src/components/Stream.js
This commit is contained in:
Chi Vinh Le
2017-07-20 01:30:22 +07:00
22 changed files with 320 additions and 77 deletions
+2
View File
@@ -1,3 +1,5 @@
export {default as withReaction} from './withReaction';
export {default as withTags} from './withTags';
export {default as withFragments} from 'coral-framework/hocs/withFragments';
export {default as excludeIf} from 'coral-framework/hocs/excludeIf';
export {default as connect} from 'coral-framework/hocs/connect';
+1 -1
View File
@@ -1,7 +1,7 @@
import React from 'react';
import get from 'lodash/get';
import uuid from 'uuid/v4';
import {connect} from 'react-redux';
import {connect} from 'plugin-api/beta/client/hocs';
import {bindActionCreators} from 'redux';
import {getDisplayName} from 'coral-framework/helpers/hoc';
import {compose, gql} from 'react-apollo';
@@ -0,0 +1 @@
export const pluginConfigSelector = (state) => state.config.pluginConfig;
+7 -1
View File
@@ -1,3 +1,9 @@
export {t, timeago} from 'coral-framework/services/i18n';
export {can} from 'coral-framework/services/perms';
export {isSlotEmpty} from 'coral-framework/helpers/plugins';
import {isSlotEmpty as ise} from 'coral-framework/helpers/plugins';
// @TODO: Deprecated.
export function isSlotEmpty(...args) {
console.warn('A plugin is using `isSlotEmpty` which has been deprecated, please port to the new API using the `IfSlotIsEmpty` and `IfSlotIsNotEmpty` components.');
return ise(...args);
}