Browse Source

misc: drop dependency on prop-types and polyfill

tags/3152^2
Saúl Ibarra Corretgé 1 year ago
parent
commit
0b6496bf4d
7 changed files with 0 additions and 60 deletions
  1. +0
    -6
      app.js
  2. +0
    -35
      flow-typed/npm/prop-types_v15.x.x.js
  3. +0
    -1
      package.json
  4. +0
    -1
      react/features/base/dialog/components/web/StatelessDialog.js
  5. +0
    -10
      react/features/base/react/prop-types-polyfill.js
  6. +0
    -3
      react/features/settings/popup.js
  7. +0
    -4
      webpack.config.js

+ 0
- 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';

+ 0
- 35
flow-typed/npm/prop-types_v15.x.x.js 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;
}

+ 0
- 1
package.json 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",

+ 0
- 1
react/features/base/dialog/components/web/StatelessDialog.js 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';

+ 0
- 10
react/features/base/react/prop-types-polyfill.js 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 */

+ 0
- 3
react/features/settings/popup.js 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;

+ 0
- 4
webpack.config.js 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'
],


Loading…
Cancel
Save