Commit d78d45d1 authored by Christopher Speller's avatar Christopher Speller Committed by GitHub

Update client dependancies (#281)

* Updating most client dependancies

* Updating React
parent 46573f46
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import * as ChannelActions from 'mattermost-redux/actions/channels';
import {deletePreferences, savePreferences} from 'mattermost-redux/actions/preferences';
......
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {createDirectChannel, getChannelAndMyMember, getChannelStats, getMyChannelMember, joinChannel, viewChannel} from 'mattermost-redux/actions/channels';
import {getPostThread} from 'mattermost-redux/actions/posts';
......
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {batchActions} from 'redux-batched-actions';
import {PostTypes} from 'mattermost-redux/action_types';
......
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {TeamTypes} from 'mattermost-redux/action_types';
import {viewChannel, getChannelStats} from 'mattermost-redux/actions/channels';
......
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {getChannelAndMyMember} from 'mattermost-redux/actions/channels';
import {getClientConfig, getLicenseConfig} from 'mattermost-redux/actions/general';
......
......@@ -3,7 +3,7 @@
import $ from 'jquery';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {batchActions} from 'redux-batched-actions';
import {ChannelTypes, EmojiTypes, PostTypes, TeamTypes, UserTypes} from 'mattermost-redux/action_types';
......
......@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {Modal} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {Client4} from 'mattermost-redux/client';
import {searchProfilesNotInCurrentTeam} from 'mattermost-redux/selectors/entities/users';
......
......@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import * as GlobalActions from 'actions/global_actions.jsx';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
export default class AdminSidebarCategory extends React.Component {
static get propTypes() {
......
......@@ -5,7 +5,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {Link, browserHistory} from 'react-router/es6';
import {Link, browserHistory} from 'react-router';
export default class BlockableLink extends React.PureComponent {
static propTypes = {
......
......@@ -2,6 +2,7 @@
// See License.txt for license information.
import React from 'react';
import PropTypes from 'prop-types';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
......@@ -29,7 +30,7 @@ export default class AnnouncementBar extends React.PureComponent {
/*
* Set if the user is logged in
*/
isLoggedIn: React.PropTypes.bool.isRequired
isLoggedIn: PropTypes.bool.isRequired
}
constructor() {
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
export default class BackstageCategory extends React.Component {
static get propTypes() {
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
export default class BackstageNavbar extends React.Component {
static get propTypes() {
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
export default class BackstageSection extends React.Component {
static get propTypes() {
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
export default class BackButton extends React.PureComponent {
static defaultProps = {
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import ChannelStore from 'stores/channel_store.jsx';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {Modal} from 'react-bootstrap';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import Constants from 'utils/constants.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {verifyEmail} from 'actions/user_actions.jsx';
......
......@@ -6,7 +6,7 @@ import $ from 'jquery';
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {ErrorPageTypes} from 'utils/constants.jsx';
import * as Utils from 'utils/utils.jsx';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {formatText} from 'utils/text_formatting.jsx';
import {localizeMessage} from 'utils/utils.jsx';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {formatText} from 'utils/text_formatting.jsx';
import {localizeMessage} from 'utils/utils.jsx';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {formatText} from 'utils/text_formatting.jsx';
import {localizeMessage} from 'utils/utils.jsx';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {formatText} from 'utils/text_formatting.jsx';
import {localizeMessage} from 'utils/utils.jsx';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {formatText} from 'utils/text_formatting.jsx';
import {localizeMessage} from 'utils/utils.jsx';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {formatText} from 'utils/text_formatting.jsx';
import {localizeMessage} from 'utils/utils.jsx';
......
......@@ -4,7 +4,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import BackstageHeader from 'components/backstage/components/backstage_header.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import BackstageHeader from 'components/backstage/components/backstage_header.jsx';
import ChannelSelect from 'components/channel_select.jsx';
......
......@@ -4,7 +4,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import BackstageHeader from 'components/backstage/components/backstage_header.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import AbstractCommand from '../abstract_command.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import AbstractIncomingWebhook from 'components/integrations/components/abstract_incoming_webhook.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import AbstractOAuthApp from '../abstract_oauth_app.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import AbstractOutgoingWebhook from 'components/integrations/components/abstract_outgoing_webhook.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {browserHistory, Link} from 'react-router/es6';
import {browserHistory, Link} from 'react-router';
import IntegrationStore from 'stores/integration_store.jsx';
import UserStore from 'stores/user_store.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import LoadingScreen from 'components/loading_screen.jsx';
import ConfirmModal from 'components/confirm_modal.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import AbstractIncomingWebhook from 'components/integrations/components/abstract_incoming_webhook.jsx';
import LoadingScreen from 'components/loading_screen.jsx';
......
......@@ -4,7 +4,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {FormattedMessage} from 'react-intl';
import LoadingScreen from 'components/loading_screen.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import ConfirmModal from 'components/confirm_modal.jsx';
import AbstractOutgoingWebhook from 'components/integrations/components/abstract_outgoing_webhook.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
export default class IntegrationOption extends React.Component {
static get propTypes() {
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory, Link} from 'react-router/es6';
import {browserHistory, Link} from 'react-router';
import {Client4} from 'mattermost-redux/client';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {loadMe} from 'actions/user_actions.jsx';
......
......@@ -3,7 +3,7 @@
import React from 'react';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {activateMfa, generateMfaSecret} from 'actions/user_actions.jsx';
import UserStore from 'stores/user_store.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {emitUserLoggedOutEvent} from 'actions/global_actions.jsx';
......
......@@ -6,7 +6,7 @@ import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import {Modal} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {joinChannel, searchMoreChannels} from 'actions/channel_actions.jsx';
import ChannelStore from 'stores/channel_store.jsx';
......
......@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {Modal} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {Client4} from 'mattermost-redux/client';
import {searchProfiles, searchProfilesInCurrentTeam} from 'mattermost-redux/selectors/entities/users';
......
......@@ -6,7 +6,7 @@ import $ from 'jquery';
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import EditChannelHeaderModal from 'components/edit_channel_header_modal';
import EditChannelPurposeModal from 'components/edit_channel_purpose_modal';
......
......@@ -5,7 +5,7 @@ import $ from 'jquery';
import PropTypes from 'prop-types';
import React from 'react';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import iNoBounce from 'inobounce';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {createChannel} from 'actions/channel_actions.jsx';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -6,7 +6,7 @@ import $ from 'jquery';
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import ChannelStore from 'stores/channel_store.jsx';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {Overlay, OverlayTrigger, Popover, Tooltip} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {Client4} from 'mattermost-redux/client';
......
......@@ -6,7 +6,7 @@ import React from 'react';
import {Modal} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
export default class PostDeletedModal extends React.PureComponent {
export default class PostDeletedModal extends React.Component {
static propTypes = {
/**
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import store from 'stores/redux_store.jsx';
......
......@@ -3,7 +3,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {OverlayTrigger, Popover, Tooltip} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {openDirectChannelToUser} from 'actions/channel_actions.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
......
......@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {Modal} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import {getChannel} from 'mattermost-redux/selectors/entities/channels';
......
......@@ -6,7 +6,7 @@ import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import {FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import BrowserStore from 'stores/browser_store.jsx';
import ChannelStore from 'stores/channel_store.jsx';
......
......@@ -6,7 +6,7 @@ import React from 'react';
import {Modal, OverlayTrigger, Tooltip} from 'react-bootstrap';
import ReactDOM from 'react-dom';
import {defineMessages, FormattedMessage, injectIntl, intlShape} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import Constants from 'utils/constants.jsx';
import {cleanUpUrlable, getShortenedURL} from 'utils/url.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {addReaction, emitEmojiPosted} from 'actions/post_actions.jsx';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import {addReaction, emitEmojiPosted} from 'actions/post_actions.jsx';
import UserStore from 'stores/user_store.jsx';
......
......@@ -6,7 +6,7 @@ import $ from 'jquery';
import PropTypes from 'prop-types';
import React from 'react';
import {IntlProvider} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {browserHistory} from 'react-router';
import FastClick from 'fastclick';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedDate, FormattedMessage} from 'react-intl';
import {browserHistory, Link} from 'react-router/es6';
import {browserHistory, Link} from 'react-router';
import * as GlobalActions from 'actions/global_actions.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {OverlayTrigger, Tooltip} from 'react-bootstrap';
import {browserHistory, Link} from 'react-router/es6';
import {browserHistory, Link} from 'react-router';
import {addUserToTeamFromInvite} from 'actions/team_actions.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import * as GlobalActions from 'actions/global_actions.jsx';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -7,7 +7,7 @@ import React from 'react';
import {OverlayTrigger, Tooltip} from 'react-bootstrap';
import ReactDOM from 'react-dom';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {browserHistory, Link} from 'react-router/es6';
import {browserHistory, Link} from 'react-router';
import {savePreferences} from 'mattermost-redux/actions/preferences';
import {getChannelsByCategory} from 'mattermost-redux/selectors/entities/channels';
......
......@@ -8,7 +8,7 @@ import React from 'react';
import {Dropdown} from 'react-bootstrap';
import ReactDOM from 'react-dom';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import * as GlobalActions from 'actions/global_actions.jsx';
import TeamStore from 'stores/team_store.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {Link} from 'react-router';
import * as GlobalActions from 'actions/global_actions.jsx';
import {getFlaggedPosts} from 'actions/post_actions.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {browserHistory, Link} from 'react-router/es6';
import {browserHistory, Link} from 'react-router';
import {trackEvent} from 'actions/diagnostics_actions.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
......
......@@ -4,7 +4,7 @@
import PropTypes from 'prop-types';