misc: drop dependency on prop-types and polyfill

This commit is contained in:
Saúl Ibarra Corretgé 2018-12-27 16:41:43 +01:00
parent 8ac701ab74
commit 0b6496bf4d
7 changed files with 0 additions and 60 deletions

6
app.js
View File

@ -1,11 +1,5 @@
/* application specific logic */
// FIXME: remove once atlaskit work with React 16
// It seems that @atlaskit/icon is importing PropTypes from React, but it
// happens through some glyph coffee script template. It could be that more
// things are broken there (not only the icon).
import './react/features/base/react/prop-types-polyfill.js';
import 'jquery';
import 'jquery-contextmenu';
import 'jQuery-Impromptu';

View File

@ -1,35 +0,0 @@
// flow-typed signature: d9a983bb1ac458a256c31c139047bdbb
// flow-typed version: 927687984d/prop-types_v15.x.x/flow_>=v0.41.x
type $npm$propTypes$ReactPropsCheckType = (
props: any,
propName: string,
componentName: string,
href?: string) => ?Error;
declare module 'prop-types' {
declare var array: React$PropType$Primitive<Array<any>>;
declare var bool: React$PropType$Primitive<boolean>;
declare var func: React$PropType$Primitive<Function>;
declare var number: React$PropType$Primitive<number>;
declare var object: React$PropType$Primitive<Object>;
declare var string: React$PropType$Primitive<string>;
declare var symbol: React$PropType$Primitive<Symbol>;
declare var any: React$PropType$Primitive<any>;
declare var arrayOf: React$PropType$ArrayOf;
declare var element: React$PropType$Primitive<any>; /* TODO */
declare var instanceOf: React$PropType$InstanceOf;
declare var node: React$PropType$Primitive<any>; /* TODO */
declare var objectOf: React$PropType$ObjectOf;
declare var oneOf: React$PropType$OneOf;
declare var oneOfType: React$PropType$OneOfType;
declare var shape: React$PropType$Shape;
declare function checkPropTypes<V>(
propTypes: $Subtype<{[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType}>,
values: V,
location: string,
componentName: string,
getStack: ?(() => ?string)
) : void;
}

View File

@ -55,7 +55,6 @@
"moment": "2.19.4",
"moment-duration-format": "2.2.2",
"postis": "2.2.0",
"prop-types": "15.6.0",
"react": "16.6.3",
"react-dom": "16.6.3",
"react-emoji-render": "0.4.6",

View File

@ -3,7 +3,6 @@
import Button, { ButtonGroup } from '@atlaskit/button';
import Modal, { ModalFooter } from '@atlaskit/modal-dialog';
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { translate } from '../../../i18n';

View File

@ -1,10 +0,0 @@
import React from 'react';
import PropTypes from 'prop-types';
/* eslint-disable react/no-deprecated */
if (typeof React.PropTypes === 'undefined') {
React.PropTypes = PropTypes;
}
/* eslint-enable react/no-deprecated */

View File

@ -1,8 +1,5 @@
/* global JitsiMeetJS */
// FIXME: remove once atlaskit work with React 16.
import '../base/react/prop-types-polyfill.js';
import DeviceSelectionPopup from './DeviceSelectionPopup';
let deviceSelectionPopup;

View File

@ -125,10 +125,6 @@ module.exports = [
'./react/features/always-on-top/index.js',
'dial_in_info_bundle': [
// atlaskit does not support React 16 prop-types
'./react/features/base/react/prop-types-polyfill.js',
'./react/features/invite/components/dial-in-info-page'
],