Browse Source

misc: drop dependency on prop-types and polyfill

master
Saúl Ibarra Corretgé 6 years ago
parent
commit
0b6496bf4d

+ 0
- 6
app.js View File

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

+ 0
- 35
flow-typed/npm/prop-types_v15.x.x.js View File

@@ -1,35 +0,0 @@
1
-// flow-typed signature: d9a983bb1ac458a256c31c139047bdbb
2
-// flow-typed version: 927687984d/prop-types_v15.x.x/flow_>=v0.41.x
3
-
4
-type $npm$propTypes$ReactPropsCheckType = (
5
-  props: any,
6
-  propName: string,
7
-  componentName: string,
8
-  href?: string) => ?Error;
9
-
10
-declare module 'prop-types' {
11
-  declare var array: React$PropType$Primitive<Array<any>>;
12
-  declare var bool: React$PropType$Primitive<boolean>;
13
-  declare var func: React$PropType$Primitive<Function>;
14
-  declare var number: React$PropType$Primitive<number>;
15
-  declare var object: React$PropType$Primitive<Object>;
16
-  declare var string: React$PropType$Primitive<string>;
17
-  declare var symbol: React$PropType$Primitive<Symbol>;
18
-  declare var any: React$PropType$Primitive<any>;
19
-  declare var arrayOf: React$PropType$ArrayOf;
20
-  declare var element: React$PropType$Primitive<any>; /* TODO */
21
-  declare var instanceOf: React$PropType$InstanceOf;
22
-  declare var node: React$PropType$Primitive<any>; /* TODO */
23
-  declare var objectOf: React$PropType$ObjectOf;
24
-  declare var oneOf: React$PropType$OneOf;
25
-  declare var oneOfType: React$PropType$OneOfType;
26
-  declare var shape: React$PropType$Shape;
27
-
28
-  declare function checkPropTypes<V>(
29
-    propTypes: $Subtype<{[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType}>,
30
-    values: V,
31
-    location: string,
32
-    componentName: string,
33
-    getStack: ?(() => ?string)
34
-  ) : void;
35
-}

+ 0
- 1
package.json View File

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

+ 0
- 1
react/features/base/dialog/components/web/StatelessDialog.js View File

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

+ 0
- 10
react/features/base/react/prop-types-polyfill.js View File

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

+ 0
- 3
react/features/settings/popup.js View File

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

+ 0
- 4
webpack.config.js View File

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

Loading…
Cancel
Save