You've already forked mattermost-webapp
mirror of
https://github.com/zerotier/mattermost-webapp.git
synced 2026-05-22 16:23:25 -07:00
0b76c1e11b
* Create a plugin component to override file previews * Add test cases * Code refactoring * Expost pdfjs to window to use in webpack externals in plugins * - Pass postId to ViewImageModal and use getPost to fetch post object. - Update test cases * Update plugins/registry.js Co-Authored-By: chetanyakan <chetanya.kandhari@brightscout.com>
16 lines
656 B
JavaScript
16 lines
656 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import messageHtmlToComponent from 'utils/message_html_to_component';
|
|
import {formatText} from 'utils/text_formatting.jsx';
|
|
|
|
// Common libraries exposed on window for plugins to use as Webpack externals.
|
|
window.React = require('react');
|
|
window.ReactDOM = require('react-dom');
|
|
window.Redux = require('redux');
|
|
window.ReactRedux = require('react-redux');
|
|
window.ReactBootstrap = require('react-bootstrap');
|
|
window.PostUtils = {formatText, messageHtmlToComponent};
|
|
window.PropTypes = require('prop-types');
|
|
window.PDFJS = require('pdfjs-dist');
|