Selaa lähdekoodia

Import PropTypes from prop-types

Prepare for React 16.
master
Lyubo Marinov 7 vuotta sitten
vanhempi
commit
2e2129fa44
100 muutettua tiedostoa jossa 484 lisäystä ja 392 poistoa
  1. 2
    2
      react/features/app/components/App.native.js
  2. 2
    1
      react/features/audio-level-indicator/components/AudioLevelIndicator.js
  3. 1
    1
      react/features/base/dialog/actionTypes.js
  4. 6
    5
      react/features/base/dialog/components/StatelessDialog.web.js
  5. 3
    2
      react/features/base/media/components/AbstractAudio.js
  6. 5
    4
      react/features/base/media/components/AbstractVideoTrack.js
  7. 5
    4
      react/features/base/media/components/native/Video.js
  8. 5
    4
      react/features/base/media/components/web/Video.js
  9. 3
    2
      react/features/base/media/components/web/VideoTrack.js
  10. 3
    2
      react/features/base/participants/components/Avatar.native.js
  11. 2
    1
      react/features/base/participants/components/Avatar.web.js
  12. 11
    10
      react/features/base/participants/components/ParticipantView.native.js
  13. 7
    6
      react/features/base/popover/components/Popover.web.js
  14. 6
    5
      react/features/base/react/components/AbstractContainer.js
  15. 5
    4
      react/features/base/react/components/native/Link.js
  16. 3
    2
      react/features/base/react/components/web/InlineDialogFailure.js
  17. 11
    10
      react/features/base/react/components/web/MultiSelectAutocomplete.js
  18. 2
    1
      react/features/conference/components/Conference.web.js
  19. 4
    3
      react/features/contact-list/components/ContactListItem.web.js
  20. 1
    2
      react/features/contact-list/components/ContactListPanel.web.js
  21. 2
    1
      react/features/contact-list/components/ParticipantCounter.web.js
  22. 6
    5
      react/features/desktop-picker/components/DesktopPicker.js
  23. 6
    5
      react/features/desktop-picker/components/DesktopPickerPane.js
  24. 6
    5
      react/features/desktop-picker/components/DesktopSourcePreview.js
  25. 2
    1
      react/features/device-selection/components/AudioInputPreview.js
  26. 3
    2
      react/features/device-selection/components/AudioOutputPreview.js
  27. 12
    11
      react/features/device-selection/components/DeviceSelectionDialog.js
  28. 17
    16
      react/features/device-selection/components/DeviceSelectionDialogBase.js
  29. 9
    8
      react/features/device-selection/components/DeviceSelector.web.js
  30. 3
    2
      react/features/device-selection/components/VideoInputPreview.js
  31. 3
    2
      react/features/dial-out/components/CountryIcon.js
  32. 8
    7
      react/features/dial-out/components/DialOutDialog.web.js
  33. 6
    5
      react/features/dial-out/components/DialOutNumbersForm.web.js
  34. 8
    7
      react/features/display-name/components/DisplayName.web.js
  35. 4
    3
      react/features/display-name/components/DisplayNamePrompt.web.js
  36. 4
    3
      react/features/feedback/components/FeedbackButton.web.js
  37. 7
    6
      react/features/feedback/components/FeedbackDialog.web.js
  38. 3
    2
      react/features/filmstrip/components/Filmstrip.native.js
  39. 5
    4
      react/features/filmstrip/components/Filmstrip.web.js
  40. 6
    5
      react/features/filmstrip/components/Thumbnail.js
  41. 2
    1
      react/features/filmstrip/components/web/AudioMutedIndicator.js
  42. 8
    7
      react/features/filmstrip/components/web/BaseIndicator.js
  43. 3
    2
      react/features/filmstrip/components/web/DominantSpeakerIndicator.js
  44. 2
    1
      react/features/filmstrip/components/web/ModeratorIndicator.js
  45. 3
    2
      react/features/filmstrip/components/web/RaisedHandIndicator.js
  46. 3
    1
      react/features/filmstrip/components/web/VideoMutedIndicator.js
  47. 4
    3
      react/features/invite/components/AddPasswordForm.js
  48. 6
    7
      react/features/invite/components/AddPeopleDialog.web.js
  49. 8
    7
      react/features/invite/components/DialInNumbersForm.js
  50. 5
    4
      react/features/invite/components/InviteDialog.web.js
  51. 3
    2
      react/features/invite/components/LockStatePanel.js
  52. 6
    5
      react/features/invite/components/PasswordContainer.js
  53. 6
    5
      react/features/invite/components/RemovePasswordForm.js
  54. 3
    2
      react/features/invite/components/ShareLinkForm.js
  55. 2
    1
      react/features/jwt/components/CallOverlay.js
  56. 2
    1
      react/features/large-video/components/LargeVideo.native.js
  57. 9
    8
      react/features/notifications/components/Notification.web.js
  58. 12
    11
      react/features/notifications/components/NotificationWithToggle.web.js
  59. 5
    4
      react/features/notifications/components/NotificationsContainer.web.js
  60. 5
    4
      react/features/overlay/components/AbstractPageReloadOverlay.js
  61. 5
    4
      react/features/overlay/components/FilmstripOnlyOverlayFrame.js
  62. 9
    8
      react/features/overlay/components/OverlayContainer.js
  63. 3
    2
      react/features/overlay/components/OverlayFrame.js
  64. 4
    3
      react/features/overlay/components/ReloadButton.js
  65. 7
    6
      react/features/overlay/components/ReloadTimer.js
  66. 2
    1
      react/features/overlay/components/SuspendedFilmstripOnlyOverlay.js
  67. 2
    1
      react/features/overlay/components/SuspendedOverlay.js
  68. 3
    2
      react/features/overlay/components/UserMediaPermissionsFilmstripOnlyOverlay.js
  69. 3
    2
      react/features/overlay/components/UserMediaPermissionsOverlay.js
  70. 3
    2
      react/features/presence-status/components/PresenceLabel.js
  71. 5
    4
      react/features/recording/components/RecordingLabel.web.js
  72. 5
    4
      react/features/remote-control/components/RemoteControlAuthorizationDialog.js
  73. 5
    4
      react/features/remote-video-menu/components/KickButton.js
  74. 6
    5
      react/features/remote-video-menu/components/MuteButton.js
  75. 5
    4
      react/features/remote-video-menu/components/RemoteControlButton.js
  76. 3
    2
      react/features/remote-video-menu/components/RemoteVideoMenu.js
  77. 6
    5
      react/features/remote-video-menu/components/RemoteVideoMenuButton.js
  78. 11
    10
      react/features/remote-video-menu/components/RemoteVideoMenuTriggerButton.js
  79. 3
    2
      react/features/remote-video-menu/components/VolumeSlider.js
  80. 1
    1
      react/features/room-lock/actions.js
  81. 4
    3
      react/features/room-lock/components/PasswordRequiredPrompt.native.js
  82. 4
    3
      react/features/room-lock/components/PasswordRequiredPrompt.web.js
  83. 4
    2
      react/features/room-lock/components/RoomLockPrompt.native.js
  84. 4
    2
      react/features/speaker-stats/components/SpeakerStats.js
  85. 5
    4
      react/features/speaker-stats/components/SpeakerStatsItem.js
  86. 2
    1
      react/features/speaker-stats/components/SpeakerStatsLabels.js
  87. 3
    2
      react/features/speaker-stats/components/TimeElapsed.js
  88. 8
    7
      react/features/toolbox/components/AbstractToolbarButton.js
  89. 3
    2
      react/features/toolbox/components/PrimaryToolbar.web.js
  90. 4
    3
      react/features/toolbox/components/ProfileButton.web.js
  91. 6
    5
      react/features/toolbox/components/SecondaryToolbar.web.js
  92. 5
    4
      react/features/toolbox/components/StatelessToolbar.web.js
  93. 2
    1
      react/features/toolbox/components/StatelessToolbarButton.js
  94. 6
    6
      react/features/toolbox/components/Toolbar.web.js
  95. 2
    1
      react/features/toolbox/components/ToolbarButton.native.js
  96. 6
    7
      react/features/toolbox/components/ToolbarButton.web.js
  97. 12
    11
      react/features/toolbox/components/Toolbox.native.js
  98. 7
    6
      react/features/toolbox/components/Toolbox.web.js
  99. 2
    1
      react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js
  100. 0
    0
      react/features/unsupported-browser/components/UnsupportedMobileBrowser.js

+ 2
- 2
react/features/app/components/App.native.js Näytä tiedosto

@@ -1,6 +1,6 @@
1 1
 /* global __DEV__ */
2 2
 
3
-import React from 'react';
3
+import PropTypes from 'prop-types';
4 4
 import { Linking } from 'react-native';
5 5
 
6 6
 import '../../analytics';
@@ -35,7 +35,7 @@ export class App extends AbstractApp {
35 35
          * page is rendered when the {@link App} is not at a location (URL)
36 36
          * identifying a Jitsi Meet conference/room.
37 37
          */
38
-        welcomePageEnabled: React.PropTypes.bool
38
+        welcomePageEnabled: PropTypes.bool
39 39
     };
40 40
 
41 41
     /**

+ 2
- 1
react/features/audio-level-indicator/components/AudioLevelIndicator.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -30,7 +31,7 @@ class AudioLevelIndicator extends Component {
30 31
          *
31 32
          * @type {number}
32 33
          */
33
-        audioLevel: React.PropTypes.number
34
+        audioLevel: PropTypes.number
34 35
     };
35 36
 
36 37
     /**

+ 1
- 1
react/features/base/dialog/actionTypes.js Näytä tiedosto

@@ -13,7 +13,7 @@ export const HIDE_DIALOG = Symbol('HIDE_DIALOG');
13 13
  * {
14 14
  *     type: OPEN_DIALOG,
15 15
  *     component: React.Component,
16
- *     props: React.PropTypes.object
16
+ *     props: PropTypes
17 17
  * }
18 18
  *
19 19
  */

+ 6
- 5
react/features/base/dialog/components/StatelessDialog.web.js Näytä tiedosto

@@ -1,6 +1,7 @@
1 1
 import AKButton from '@atlaskit/button';
2 2
 import AKButtonGroup from '@atlaskit/button-group';
3 3
 import ModalDialog from '@atlaskit/modal-dialog';
4
+import PropTypes from 'prop-types';
4 5
 import React, { Component } from 'react';
5 6
 
6 7
 import { translate } from '../../i18n';
@@ -34,24 +35,24 @@ class StatelessDialog extends Component {
34 35
         /**
35 36
          * This is the body of the dialog, the component children.
36 37
          */
37
-        children: React.PropTypes.node,
38
+        children: PropTypes.node,
38 39
 
39 40
         /**
40 41
          * Disables dismissing the dialog when the blanket is clicked. Enabled
41 42
          * by default.
42 43
          */
43
-        disableBlanketClickDismiss: React.PropTypes.bool,
44
+        disableBlanketClickDismiss: PropTypes.bool,
44 45
 
45 46
         /**
46 47
          * Whether the dialog is modal. This means clicking on the blanket will
47 48
          * leave the dialog open. No cancel button.
48 49
          */
49
-        isModal: React.PropTypes.bool,
50
+        isModal: PropTypes.bool,
50 51
 
51 52
         /**
52 53
          * Disables rendering of the submit button.
53 54
          */
54
-        submitDisabled: React.PropTypes.bool,
55
+        submitDisabled: PropTypes.bool,
55 56
 
56 57
         /**
57 58
          * Width of the dialog, can be:
@@ -60,7 +61,7 @@ class StatelessDialog extends Component {
60 61
          * - integer value for pixel width
61 62
          * - string value for percentage
62 63
          */
63
-        width: React.PropTypes.string
64
+        width: PropTypes.string
64 65
     };
65 66
 
66 67
     /**

+ 3
- 2
react/features/base/media/components/AbstractAudio.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -22,8 +23,8 @@ export default class AbstractAudio extends Component {
22 23
          *
23 24
          * @type {string}
24 25
          */
25
-        src: React.PropTypes.string,
26
-        stream: React.PropTypes.object
26
+        src: PropTypes.string,
27
+        stream: PropTypes.object
27 28
     };
28 29
 
29 30
     /**

+ 5
- 4
react/features/base/media/components/AbstractVideoTrack.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { trackVideoStarted } from '../../tracks';
@@ -18,18 +19,18 @@ export default class AbstractVideoTrack extends Component {
18 19
      * @static
19 20
      */
20 21
     static propTypes = {
21
-        dispatch: React.PropTypes.func,
22
+        dispatch: PropTypes.func,
22 23
 
23
-        videoTrack: React.PropTypes.object,
24
+        videoTrack: PropTypes.object,
24 25
 
25
-        waitForVideoStarted: React.PropTypes.bool,
26
+        waitForVideoStarted: PropTypes.bool,
26 27
 
27 28
         /**
28 29
          * The z-order of the Video of AbstractVideoTrack in the stacking space
29 30
          * of all Videos. For more details, refer to the zOrder property of the
30 31
          * Video class for React Native.
31 32
          */
32
-        zOrder: React.PropTypes.number
33
+        zOrder: PropTypes.number
33 34
     };
34 35
 
35 36
     /**

+ 5
- 4
react/features/base/media/components/native/Video.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { RTCView } from 'react-native-webrtc';
5 6
 
@@ -17,9 +18,9 @@ export default class Video extends Component {
17 18
      * @static
18 19
      */
19 20
     static propTypes = {
20
-        mirror: React.PropTypes.bool,
21
-        onPlaying: React.PropTypes.func,
22
-        stream: React.PropTypes.object,
21
+        mirror: PropTypes.bool,
22
+        onPlaying: PropTypes.func,
23
+        stream: PropTypes.object,
23 24
 
24 25
         /**
25 26
          * Similarly to the CSS property z-index, specifies the z-order of this
@@ -44,7 +45,7 @@ export default class Video extends Component {
44 45
          * values: 0 for the remote video(s) which appear in the background, and
45 46
          * 1 for the local video(s) which appear above the remote video(s).
46 47
          */
47
-        zOrder: React.PropTypes.number
48
+        zOrder: PropTypes.number
48 49
     };
49 50
 
50 51
     /**

+ 5
- 4
react/features/base/media/components/web/Video.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -26,23 +27,23 @@ class Video extends Component {
26 27
         /**
27 28
          * CSS classes to add to the video element.
28 29
          */
29
-        className: React.PropTypes.string,
30
+        className: PropTypes.string,
30 31
 
31 32
         /**
32 33
          * The value of the id attribute of the video. Used by the torture tests
33 34
          * to locate video elements.
34 35
          */
35
-        id: React.PropTypes.string,
36
+        id: PropTypes.string,
36 37
 
37 38
         /**
38 39
          * Optional callback to invoke once the video starts playing.
39 40
          */
40
-        onVideoPlaying: React.PropTypes.func,
41
+        onVideoPlaying: PropTypes.func,
41 42
 
42 43
         /**
43 44
          * The JitsiLocalTrack to display.
44 45
          */
45
-        videoTrack: React.PropTypes.object
46
+        videoTrack: PropTypes.object
46 47
     };
47 48
 
48 49
     /**

+ 3
- 2
react/features/base/media/components/web/VideoTrack.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -36,13 +37,13 @@ class VideoTrack extends AbstractVideoTrack {
36 37
         /**
37 38
          * CSS classes to add to the video element.
38 39
          */
39
-        className: React.PropTypes.string,
40
+        className: PropTypes.string,
40 41
 
41 42
         /**
42 43
          * The value of the id attribute of the video. Used by the torture tests
43 44
          * to locate video elements.
44 45
          */
45
-        id: React.PropTypes.string
46
+        id: PropTypes.string
46 47
     };
47 48
 
48 49
     /**

+ 3
- 2
react/features/base/participants/components/Avatar.native.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { View } from 'react-native';
3 4
 
@@ -34,14 +35,14 @@ export default class Avatar extends Component {
34 35
          * The optional style to add to the {@link Avatar} in order to customize
35 36
          * its base look (and feel).
36 37
          */
37
-        style: React.PropTypes.object,
38
+        style: PropTypes.object,
38 39
 
39 40
         /**
40 41
          * The URI of the {@link Avatar}.
41 42
          *
42 43
          * @type {string}
43 44
          */
44
-        uri: React.PropTypes.string
45
+        uri: PropTypes.string
45 46
     };
46 47
 
47 48
     /**

+ 2
- 1
react/features/base/participants/components/Avatar.web.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -15,7 +16,7 @@ export default class Avatar extends Component {
15 16
          *
16 17
          * @type {string}
17 18
          */
18
-        uri: React.PropTypes.string
19
+        uri: PropTypes.string
19 20
     };
20 21
 
21 22
     /**

+ 11
- 10
react/features/base/participants/components/ParticipantView.native.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -34,7 +35,7 @@ class ParticipantView extends Component {
34 35
          *
35 36
          * @private
36 37
          */
37
-        _audioOnly: React.PropTypes.bool,
38
+        _audioOnly: PropTypes.bool,
38 39
 
39 40
         /**
40 41
          * The source (e.g. URI, URL) of the avatar image of the participant
@@ -42,7 +43,7 @@ class ParticipantView extends Component {
42 43
          *
43 44
          * @private
44 45
          */
45
-        _avatar: React.PropTypes.string,
46
+        _avatar: PropTypes.string,
46 47
 
47 48
         /**
48 49
          * The connection status of the participant. Her video will only be
@@ -51,50 +52,50 @@ class ParticipantView extends Component {
51 52
          *
52 53
          * @private
53 54
          */
54
-        _connectionStatus: React.PropTypes.string,
55
+        _connectionStatus: PropTypes.string,
55 56
 
56 57
         /**
57 58
          * The video Track of the participant with {@link #participantId}.
58 59
          */
59
-        _videoTrack: React.PropTypes.object,
60
+        _videoTrack: PropTypes.object,
60 61
 
61 62
         /**
62 63
          * The style, if any, of the avatar in addition to the default style.
63 64
          */
64
-        avatarStyle: React.PropTypes.object,
65
+        avatarStyle: PropTypes.object,
65 66
 
66 67
         /**
67 68
          * The ID of the participant (to be) depicted by ParticipantView.
68 69
          *
69 70
          * @public
70 71
          */
71
-        participantId: React.PropTypes.string,
72
+        participantId: PropTypes.string,
72 73
 
73 74
         /**
74 75
          * True if the avatar of the depicted participant is to be shown should
75 76
          * the avatar be available and the video of the participant is not to be
76 77
          * shown; otherwise, false. If undefined, defaults to true.
77 78
          */
78
-        showAvatar: React.PropTypes.bool,
79
+        showAvatar: PropTypes.bool,
79 80
 
80 81
         /**
81 82
          * True if the video of the depicted participant is to be shown should
82 83
          * the video be available. If undefined, defaults to true.
83 84
          */
84
-        showVideo: React.PropTypes.bool,
85
+        showVideo: PropTypes.bool,
85 86
 
86 87
         /**
87 88
          * The style, if any, to apply to ParticipantView in addition to its
88 89
          * default style.
89 90
          */
90
-        style: React.PropTypes.object,
91
+        style: PropTypes.object,
91 92
 
92 93
         /**
93 94
          * The z-order of the Video of ParticipantView in the stacking space of
94 95
          * all Videos. For more details, refer to the zOrder property of the
95 96
          * Video class for React Native.
96 97
          */
97
-        zOrder: React.PropTypes.number
98
+        zOrder: PropTypes.number
98 99
     };
99 100
 
100 101
     /**

+ 7
- 6
react/features/base/popover/components/Popover.web.js Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 import InlineDialog from '@atlaskit/inline-dialog';
2
+import PropTypes from 'prop-types';
2 3
 import React, { Component } from 'react';
3 4
 
4 5
 /**
@@ -52,35 +53,35 @@ class Popover extends Component {
52 53
         /**
53 54
          * A child React Element to use as the trigger for showing the dialog.
54 55
          */
55
-        children: React.PropTypes.object,
56
+        children: PropTypes.object,
56 57
 
57 58
         /**
58 59
          * Additional CSS classnames to apply to the root of the {@code Popover}
59 60
          * component.
60 61
          */
61
-        className: React.PropTypes.string,
62
+        className: PropTypes.string,
62 63
 
63 64
         /**
64 65
          * The ReactElement to display within the dialog.
65 66
          */
66
-        content: React.PropTypes.object,
67
+        content: PropTypes.object,
67 68
 
68 69
         /**
69 70
          * An id attribute to apply to the root of the {@code Popover}
70 71
          * component.
71 72
          */
72
-        id: React.PropTypes.string,
73
+        id: PropTypes.string,
73 74
 
74 75
         /**
75 76
          * Callback to invoke when the popover has opened.
76 77
          */
77
-        onPopoverOpen: React.PropTypes.func,
78
+        onPopoverOpen: PropTypes.func,
78 79
 
79 80
         /**
80 81
          * From which side of the dialog trigger the dialog should display. The
81 82
          * value will be passed to {@code InlineDialog}.
82 83
          */
83
-        position: React.PropTypes.string
84
+        position: PropTypes.string
84 85
     };
85 86
 
86 87
     /**

+ 6
- 5
react/features/base/react/components/AbstractContainer.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 /**
@@ -15,7 +16,7 @@ export default class AbstractContainer extends Component {
15 16
      * @static
16 17
      */
17 18
     static propTypes = {
18
-        children: React.PropTypes.node,
19
+        children: PropTypes.node,
19 20
 
20 21
         /**
21 22
          * The event handler/listener to be invoked when this
@@ -24,13 +25,13 @@ export default class AbstractContainer extends Component {
24 25
          * undefined, {@code touchFeedback} is considered defined as
25 26
          * {@code true}.
26 27
          */
27
-        onClick: React.PropTypes.func,
28
+        onClick: PropTypes.func,
28 29
 
29 30
         /**
30 31
          * The style (as in stylesheet) to be applied to this
31 32
          * {@code AbstractContainer}.
32 33
          */
33
-        style: React.PropTypes.object,
34
+        style: PropTypes.object,
34 35
 
35 36
         /**
36 37
          * If this instance is to provide visual feedback when touched, then
@@ -38,14 +39,14 @@ export default class AbstractContainer extends Component {
38 39
          * undefined and {@link onClick} is defined, {@code touchFeedback} is
39 40
          * considered defined as {@code true}.
40 41
          */
41
-        touchFeedback: React.PropTypes.bool,
42
+        touchFeedback: PropTypes.bool,
42 43
 
43 44
         /**
44 45
          * If this {@code AbstractContainer} is to be visible, then {@code true}
45 46
          * or {@code false} if this instance is to be hidden or not rendered at
46 47
          * all.
47 48
          */
48
-        visible: React.PropTypes.bool
49
+        visible: PropTypes.bool
49 50
     };
50 51
 
51 52
     /**

+ 5
- 4
react/features/base/react/components/native/Link.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { Linking } from 'react-native';
3 4
 
@@ -17,22 +18,22 @@ export default class Link extends Component {
17 18
         /**
18 19
          * The children to be displayed within this Link.
19 20
          */
20
-        children: React.PropTypes.node,
21
+        children: PropTypes.node,
21 22
 
22 23
         /**
23 24
          * Notifies that this Link failed to open the URL associated with it.
24 25
          */
25
-        onLinkingOpenURLRejected: React.PropTypes.func,
26
+        onLinkingOpenURLRejected: PropTypes.func,
26 27
 
27 28
         /**
28 29
          * The CSS style to be applied to this Link for the purposes of display.
29 30
          */
30
-        style: React.PropTypes.object,
31
+        style: PropTypes.object,
31 32
 
32 33
         /**
33 34
          * The URL to be opened when this Link is clicked/pressed.
34 35
          */
35
-        url: React.PropTypes.string
36
+        url: PropTypes.string
36 37
     };
37 38
 
38 39
     /**

+ 3
- 2
react/features/base/react/components/web/InlineDialogFailure.js Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 import AKButton from '@atlaskit/button';
2
+import PropTypes from 'prop-types';
2 3
 import React, { Component } from 'react';
3 4
 
4 5
 import { translate } from '../../../i18n';
@@ -18,12 +19,12 @@ class InlineDialogFailure extends Component {
18 19
         /**
19 20
          * Allows to retry the call that previously didn't succeed.
20 21
          */
21
-        onRetry: React.PropTypes.func,
22
+        onRetry: PropTypes.func,
22 23
 
23 24
         /**
24 25
          * Invoked to obtain translated strings.
25 26
          */
26
-        t: React.PropTypes.func
27
+        t: PropTypes.func
27 28
     };
28 29
 
29 30
     /**

+ 11
- 10
react/features/base/react/components/web/MultiSelectAutocomplete.js Näytä tiedosto

@@ -2,6 +2,7 @@ import { MultiSelectStateless } from '@atlaskit/multi-select';
2 2
 import AKInlineDialog from '@atlaskit/inline-dialog';
3 3
 import Spinner from '@atlaskit/spinner';
4 4
 import _debounce from 'lodash/debounce';
5
+import PropTypes from 'prop-types';
5 6
 import React, { Component } from 'react';
6 7
 
7 8
 import InlineDialogFailure from './InlineDialogFailure';
@@ -20,45 +21,45 @@ class MultiSelectAutocomplete extends Component {
20 21
         /**
21 22
          * The default value of the selected item.
22 23
          */
23
-        defaultValue: React.PropTypes.array,
24
+        defaultValue: PropTypes.array,
24 25
 
25 26
         /**
26 27
          * Indicates if the component is disabled.
27 28
          */
28
-        isDisabled: React.PropTypes.bool,
29
+        isDisabled: PropTypes.bool,
29 30
 
30 31
         /**
31 32
          * The text to show when no matches are found.
32 33
          */
33
-        noMatchesFound: React.PropTypes.string,
34
+        noMatchesFound: PropTypes.string,
34 35
 
35 36
         /**
36 37
          * The function called when the selection changes.
37 38
          */
38
-        onSelectionChange: React.PropTypes.func,
39
+        onSelectionChange: PropTypes.func,
39 40
 
40 41
         /**
41 42
          * The placeholder text of the input component.
42 43
          */
43
-        placeholder: React.PropTypes.string,
44
+        placeholder: PropTypes.string,
44 45
 
45 46
         /**
46 47
          * The service providing the search.
47 48
          */
48
-        resourceClient: React.PropTypes.shape({
49
-            makeQuery: React.PropTypes.func,
50
-            parseResults: React.PropTypes.func
49
+        resourceClient: PropTypes.shape({
50
+            makeQuery: PropTypes.func,
51
+            parseResults: PropTypes.func
51 52
         }).isRequired,
52 53
 
53 54
         /**
54 55
          * Indicates if the component should fit the container.
55 56
          */
56
-        shouldFitContainer: React.PropTypes.bool,
57
+        shouldFitContainer: PropTypes.bool,
57 58
 
58 59
         /**
59 60
          * Indicates if we should focus.
60 61
          */
61
-        shouldFocus: React.PropTypes.bool
62
+        shouldFocus: PropTypes.bool
62 63
     };
63 64
 
64 65
     /**

+ 2
- 1
react/features/conference/components/Conference.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect as reactReduxConnect } from 'react-redux';
5 6
 
@@ -27,7 +28,7 @@ class Conference extends Component {
27 28
      * @static
28 29
      */
29 30
     static propTypes = {
30
-        dispatch: React.PropTypes.func
31
+        dispatch: PropTypes.func
31 32
     };
32 33
 
33 34
     /**

+ 4
- 3
react/features/contact-list/components/ContactListItem.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* global APP */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import UIEvents from '../../../../service/UI/UIEvents';
@@ -22,18 +23,18 @@ class ContactListItem extends Component {
22 23
         /**
23 24
          * The link to the participant's avatar image.
24 25
          */
25
-        avatarURI: React.PropTypes.string,
26
+        avatarURI: PropTypes.string,
26 27
 
27 28
         /**
28 29
          * An id attribute to set on the root of {@code ContactListItem}. Used
29 30
          * by the torture tests.
30 31
          */
31
-        id: React.PropTypes.string,
32
+        id: PropTypes.string,
32 33
 
33 34
         /**
34 35
          * The participant's display name.
35 36
          */
36
-        name: React.PropTypes.string
37
+        name: PropTypes.string
37 38
     };
38 39
 
39 40
     /**

+ 1
- 2
react/features/contact-list/components/ContactListPanel.web.js Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 import Button from '@atlaskit/button';
2
+import PropTypes from 'prop-types';
2 3
 import React, { Component } from 'react';
3 4
 import { connect } from 'react-redux';
4 5
 
@@ -8,8 +9,6 @@ import { openInviteDialog } from '../../invite';
8 9
 
9 10
 import ContactListItem from './ContactListItem';
10 11
 
11
-const { PropTypes } = React;
12
-
13 12
 declare var interfaceConfig: Object;
14 13
 
15 14
 /**

+ 2
- 1
react/features/contact-list/components/ParticipantCounter.web.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -19,7 +20,7 @@ class ParticipantCounter extends Component {
19 20
         /**
20 21
          * The number of participants in the conference.
21 22
          */
22
-        _count: React.PropTypes.number
23
+        _count: PropTypes.number
23 24
     };
24 25
 
25 26
     /**

+ 6
- 5
react/features/desktop-picker/components/DesktopPicker.js Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 import Tabs from '@atlaskit/tabs';
2
+import PropTypes from 'prop-types';
2 3
 import React, { Component } from 'react';
3 4
 import { connect } from 'react-redux';
4 5
 
@@ -57,29 +58,29 @@ class DesktopPicker extends Component {
57 58
         /**
58 59
          * Used to request DesktopCapturerSources.
59 60
          */
60
-        dispatch: React.PropTypes.func,
61
+        dispatch: PropTypes.func,
61 62
 
62 63
         /**
63 64
          * The callback to be invoked when the component is closed or when
64 65
          * a DesktopCapturerSource has been chosen.
65 66
          */
66
-        onSourceChoose: React.PropTypes.func,
67
+        onSourceChoose: PropTypes.func,
67 68
 
68 69
         /**
69 70
          * An object with options related to desktop sharing.
70 71
          */
71
-        options: React.PropTypes.object,
72
+        options: PropTypes.object,
72 73
 
73 74
         /**
74 75
          * An object with arrays of DesktopCapturerSources. The key should be
75 76
          * the source type.
76 77
          */
77
-        sources: React.PropTypes.object,
78
+        sources: PropTypes.object,
78 79
 
79 80
         /**
80 81
          * Used to obtain translations.
81 82
          */
82
-        t: React.PropTypes.func
83
+        t: PropTypes.func
83 84
     };
84 85
 
85 86
     /**

+ 6
- 5
react/features/desktop-picker/components/DesktopPickerPane.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import DesktopSourcePreview from './DesktopSourcePreview';
@@ -17,28 +18,28 @@ class DesktopPickerPane extends Component {
17 18
         /**
18 19
          * The handler to be invoked when a DesktopSourcePreview is clicked.
19 20
          */
20
-        onClick: React.PropTypes.func,
21
+        onClick: PropTypes.func,
21 22
 
22 23
         /**
23 24
          * The handler to be invoked when a DesktopSourcePreview is double
24 25
          * clicked.
25 26
          */
26
-        onDoubleClick: React.PropTypes.func,
27
+        onDoubleClick: PropTypes.func,
27 28
 
28 29
         /**
29 30
          * The id of the DesktopCapturerSource that is currently selected.
30 31
          */
31
-        selectedSourceId: React.PropTypes.string,
32
+        selectedSourceId: PropTypes.string,
32 33
 
33 34
         /**
34 35
          * An array of DesktopCapturerSources.
35 36
          */
36
-        sources: React.PropTypes.array,
37
+        sources: PropTypes.array,
37 38
 
38 39
         /**
39 40
          * The source type of the DesktopCapturerSources to display.
40 41
          */
41
-        type: React.PropTypes.string
42
+        type: PropTypes.string
42 43
     };
43 44
 
44 45
     /**

+ 6
- 5
react/features/desktop-picker/components/DesktopSourcePreview.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -16,30 +17,30 @@ class DesktopSourcePreview extends Component {
16 17
          * The callback to invoke when the component is clicked. The id of
17 18
          * the DesktopCapturerSource will be passed in.
18 19
          */
19
-        onClick: React.PropTypes.func,
20
+        onClick: PropTypes.func,
20 21
 
21 22
         /**
22 23
          * The callback to invoke when the component is double clicked. The id
23 24
          * of the DesktopCapturerSource will be passed in.
24 25
          */
25
-        onDoubleClick: React.PropTypes.func,
26
+        onDoubleClick: PropTypes.func,
26 27
 
27 28
         /**
28 29
          * The indicator which determines whether this DesktopSourcePreview is
29 30
          * selected. If true, the 'is-selected' CSS class will be added to the
30 31
          * Component.
31 32
          */
32
-        selected: React.PropTypes.bool,
33
+        selected: PropTypes.bool,
33 34
 
34 35
         /**
35 36
          * The DesktopCapturerSource to display.
36 37
          */
37
-        source: React.PropTypes.object,
38
+        source: PropTypes.object,
38 39
 
39 40
         /**
40 41
          * The source type of the DesktopCapturerSources to display.
41 42
          */
42
-        type: React.PropTypes.string
43
+        type: PropTypes.string
43 44
     };
44 45
 
45 46
     /**

+ 2
- 1
react/features/device-selection/components/AudioInputPreview.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { PureComponent } from 'react';
2 3
 
3 4
 import { JitsiTrackEvents } from '../../base/lib-jitsi-meet';
@@ -15,7 +16,7 @@ class AudioInputPreview extends PureComponent {
15 16
         /*
16 17
          * The JitsiLocalTrack to show an audio level meter for.
17 18
          */
18
-        track: React.PropTypes.object
19
+        track: PropTypes.object
19 20
     };
20 21
 
21 22
     /**

+ 3
- 2
react/features/device-selection/components/AudioOutputPreview.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate } from '../../base/i18n';
@@ -19,12 +20,12 @@ class AudioOutputPreview extends Component {
19 20
         /**
20 21
          * The device id of the audio output device to use.
21 22
          */
22
-        deviceId: React.PropTypes.string,
23
+        deviceId: PropTypes.string,
23 24
 
24 25
         /**
25 26
          * Invoked to obtain translated strings.
26 27
          */
27
-        t: React.PropTypes.func
28
+        t: PropTypes.func
28 29
     };
29 30
 
30 31
     /**

+ 12
- 11
react/features/device-selection/components/DeviceSelectionDialog.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -26,25 +27,25 @@ class DeviceSelectionDialog extends Component {
26 27
          * All known audio and video devices split by type. This prop comes from
27 28
          * the app state.
28 29
          */
29
-        _availableDevices: React.PropTypes.object,
30
+        _availableDevices: PropTypes.object,
30 31
 
31 32
         /**
32 33
          * Device id for the current audio input device. This device will be set
33 34
          * as the default audio input device to preview.
34 35
          */
35
-        currentAudioInputId: React.PropTypes.string,
36
+        currentAudioInputId: PropTypes.string,
36 37
 
37 38
         /**
38 39
          * Device id for the current audio output device. This device will be
39 40
          * set as the default audio output device to preview.
40 41
          */
41
-        currentAudioOutputId: React.PropTypes.string,
42
+        currentAudioOutputId: PropTypes.string,
42 43
 
43 44
         /**
44 45
          * Device id for the current video input device. This device will be set
45 46
          * as the default video input device to preview.
46 47
          */
47
-        currentVideoInputId: React.PropTypes.string,
48
+        currentVideoInputId: PropTypes.string,
48 49
 
49 50
         /**
50 51
          * Whether or not the audio selector can be interacted with. If true,
@@ -52,37 +53,37 @@ class DeviceSelectionDialog extends Component {
52 53
          * specifically used to prevent audio device changing in Firefox, which
53 54
          * currently does not work due to a browser-side regression.
54 55
          */
55
-        disableAudioInputChange: React.PropTypes.bool,
56
+        disableAudioInputChange: PropTypes.bool,
56 57
 
57 58
         /**
58 59
          * True if device changing is configured to be disallowed. Selectors
59 60
          * will display as disabled.
60 61
          */
61
-        disableDeviceChange: React.PropTypes.bool,
62
+        disableDeviceChange: PropTypes.bool,
62 63
 
63 64
         /**
64 65
          * Invoked to notify the store of app state changes.
65 66
          */
66
-        dispatch: React.PropTypes.func,
67
+        dispatch: PropTypes.func,
67 68
 
68 69
         /**
69 70
          * Function that checks whether or not a new audio input source can be
70 71
          * selected.
71 72
          */
72
-        hasAudioPermission: React.PropTypes.func,
73
+        hasAudioPermission: PropTypes.func,
73 74
 
74 75
         /**
75 76
          * Function that checks whether or not a new video input sources can be
76 77
          * selected.
77 78
          */
78
-        hasVideoPermission: React.PropTypes.func,
79
+        hasVideoPermission: PropTypes.func,
79 80
 
80 81
         /**
81 82
          * If true, the audio meter will not display. Necessary for browsers or
82 83
          * configurations that do not support local stats to prevent a
83 84
          * non-responsive mic preview from displaying.
84 85
          */
85
-        hideAudioInputPreview: React.PropTypes.bool,
86
+        hideAudioInputPreview: PropTypes.bool,
86 87
 
87 88
         /**
88 89
          * Whether or not the audio output source selector should display. If
@@ -90,7 +91,7 @@ class DeviceSelectionDialog extends Component {
90 91
          * rendered. This is specifically used for hiding audio output on
91 92
          * temasys browsers which do not support such change.
92 93
          */
93
-        hideAudioOutputSelect: React.PropTypes.bool
94
+        hideAudioOutputSelect: PropTypes.bool
94 95
     };
95 96
 
96 97
     /**

+ 17
- 16
react/features/device-selection/components/DeviceSelectionDialogBase.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { StatelessDialog } from '../../base/dialog';
@@ -25,30 +26,30 @@ class DeviceSelectionDialogBase extends Component {
25 26
          * All known audio and video devices split by type. This prop comes from
26 27
          * the app state.
27 28
          */
28
-        availableDevices: React.PropTypes.object,
29
+        availableDevices: PropTypes.object,
29 30
 
30 31
         /**
31 32
          * Closes the dialog.
32 33
          */
33
-        closeModal: React.PropTypes.func,
34
+        closeModal: PropTypes.func,
34 35
 
35 36
         /**
36 37
          * Device id for the current audio input device. This device will be set
37 38
          * as the default audio input device to preview.
38 39
          */
39
-        currentAudioInputId: React.PropTypes.string,
40
+        currentAudioInputId: PropTypes.string,
40 41
 
41 42
         /**
42 43
          * Device id for the current audio output device. This device will be
43 44
          * set as the default audio output device to preview.
44 45
          */
45
-        currentAudioOutputId: React.PropTypes.string,
46
+        currentAudioOutputId: PropTypes.string,
46 47
 
47 48
         /**
48 49
          * Device id for the current video input device. This device will be set
49 50
          * as the default video input device to preview.
50 51
          */
51
-        currentVideoInputId: React.PropTypes.string,
52
+        currentVideoInputId: PropTypes.string,
52 53
 
53 54
         /**
54 55
          * Whether or not the audio selector can be interacted with. If true,
@@ -56,38 +57,38 @@ class DeviceSelectionDialogBase extends Component {
56 57
          * specifically used to prevent audio device changing in Firefox, which
57 58
          * currently does not work due to a browser-side regression.
58 59
          */
59
-        disableAudioInputChange: React.PropTypes.bool,
60
+        disableAudioInputChange: PropTypes.bool,
60 61
 
61 62
         /**
62 63
          * Disables dismissing the dialog when the blanket is clicked. Enabled
63 64
          * by default.
64 65
          */
65
-        disableBlanketClickDismiss: React.PropTypes.bool,
66
+        disableBlanketClickDismiss: PropTypes.bool,
66 67
 
67 68
         /**
68 69
          * True if device changing is configured to be disallowed. Selectors
69 70
          * will display as disabled.
70 71
          */
71
-        disableDeviceChange: React.PropTypes.bool,
72
+        disableDeviceChange: PropTypes.bool,
72 73
 
73 74
         /**
74 75
          * Function that checks whether or not a new audio input source can be
75 76
          * selected.
76 77
          */
77
-        hasAudioPermission: React.PropTypes.func,
78
+        hasAudioPermission: PropTypes.func,
78 79
 
79 80
         /**
80 81
          * Function that checks whether or not a new video input sources can be
81 82
          * selected.
82 83
          */
83
-        hasVideoPermission: React.PropTypes.func,
84
+        hasVideoPermission: PropTypes.func,
84 85
 
85 86
         /**
86 87
          * If true, the audio meter will not display. Necessary for browsers or
87 88
          * configurations that do not support local stats to prevent a
88 89
          * non-responsive mic preview from displaying.
89 90
          */
90
-        hideAudioInputPreview: React.PropTypes.bool,
91
+        hideAudioInputPreview: PropTypes.bool,
91 92
 
92 93
         /**
93 94
          * Whether or not the audio output source selector should display. If
@@ -95,27 +96,27 @@ class DeviceSelectionDialogBase extends Component {
95 96
          * rendered. This is specifically used for hiding audio output on
96 97
          * temasys browsers which do not support such change.
97 98
          */
98
-        hideAudioOutputSelect: React.PropTypes.bool,
99
+        hideAudioOutputSelect: PropTypes.bool,
99 100
 
100 101
         /**
101 102
          * Function that sets the audio input device.
102 103
          */
103
-        setAudioInputDevice: React.PropTypes.func,
104
+        setAudioInputDevice: PropTypes.func,
104 105
 
105 106
         /**
106 107
          * Function that sets the audio output device.
107 108
          */
108
-        setAudioOutputDevice: React.PropTypes.func,
109
+        setAudioOutputDevice: PropTypes.func,
109 110
 
110 111
         /**
111 112
          * Function that sets the video input device.
112 113
          */
113
-        setVideoInputDevice: React.PropTypes.func,
114
+        setVideoInputDevice: PropTypes.func,
114 115
 
115 116
         /**
116 117
          * Invoked to obtain translated strings.
117 118
          */
118
-        t: React.PropTypes.func
119
+        t: PropTypes.func
119 120
     };
120 121
 
121 122
     /**

+ 9
- 8
react/features/device-selection/components/DeviceSelector.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 import AKDropdownMenu from '@atlaskit/dropdown-menu';
2 2
 import ExpandIcon from '@atlaskit/icon/glyph/expand';
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import { translate } from '../../base/i18n';
@@ -20,42 +21,42 @@ class DeviceSelector extends Component {
20 21
         /**
21 22
          * MediaDeviceInfos used for display in the select element.
22 23
          */
23
-        devices: React.PropTypes.array,
24
+        devices: PropTypes.array,
24 25
 
25 26
         /**
26 27
          * If false, will return a selector with no selection options.
27 28
          */
28
-        hasPermission: React.PropTypes.bool,
29
+        hasPermission: PropTypes.bool,
29 30
 
30 31
         /**
31 32
          * CSS class for the icon to the left of the dropdown trigger.
32 33
          */
33
-        icon: React.PropTypes.string,
34
+        icon: PropTypes.string,
34 35
 
35 36
         /**
36 37
          * If true, will render the selector disabled with a default selection.
37 38
          */
38
-        isDisabled: React.PropTypes.bool,
39
+        isDisabled: PropTypes.bool,
39 40
 
40 41
         /**
41 42
          * The translation key to display as a menu label.
42 43
          */
43
-        label: React.PropTypes.string,
44
+        label: PropTypes.string,
44 45
 
45 46
         /**
46 47
          * The callback to invoke when a selection is made.
47 48
          */
48
-        onSelect: React.PropTypes.func,
49
+        onSelect: PropTypes.func,
49 50
 
50 51
         /**
51 52
          * The default device to display as selected.
52 53
          */
53
-        selectedDeviceId: React.PropTypes.string,
54
+        selectedDeviceId: PropTypes.string,
54 55
 
55 56
         /**
56 57
          * Invoked to obtain translated strings.
57 58
          */
58
-        t: React.PropTypes.func
59
+        t: PropTypes.func
59 60
     };
60 61
 
61 62
     /**

+ 3
- 2
react/features/device-selection/components/VideoInputPreview.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { Video } from '../../base/media';
@@ -21,12 +22,12 @@ class VideoInputPreview extends Component {
21 22
          * An error message to display instead of a preview. Displaying an error
22 23
          * will take priority over displaying a video preview.
23 24
          */
24
-        error: React.PropTypes.string,
25
+        error: PropTypes.string,
25 26
 
26 27
         /**
27 28
          * The JitsiLocalTrack to display.
28 29
          */
29
-        track: React.PropTypes.object
30
+        track: PropTypes.object
30 31
     };
31 32
 
32 33
     /**

+ 3
- 2
react/features/dial-out/components/CountryIcon.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -13,12 +14,12 @@ export default class CountryIcon extends Component {
13 14
         /**
14 15
          * The css style class name.
15 16
          */
16
-        className: React.PropTypes.string,
17
+        className: PropTypes.string,
17 18
 
18 19
         /**
19 20
          * The 2-letter country code.
20 21
          */
21
-        countryCode: React.PropTypes.string
22
+        countryCode: PropTypes.string
22 23
     };
23 24
 
24 25
     /**

+ 8
- 7
react/features/dial-out/components/DialOutDialog.web.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -21,32 +22,32 @@ class DialOutDialog extends Component {
21 22
         /**
22 23
          * The redux state representing the list of dial-out codes.
23 24
          */
24
-        _dialOutCodes: React.PropTypes.array,
25
+        _dialOutCodes: PropTypes.array,
25 26
 
26 27
         /**
27 28
          * Property indicating if a dial number is allowed.
28 29
          */
29
-        _isDialNumberAllowed: React.PropTypes.bool,
30
+        _isDialNumberAllowed: PropTypes.bool,
30 31
 
31 32
         /**
32 33
          * The function performing the cancel action.
33 34
          */
34
-        cancel: React.PropTypes.func,
35
+        cancel: PropTypes.func,
35 36
 
36 37
         /**
37 38
          * The function performing the phone number validity check.
38 39
          */
39
-        checkDialNumber: React.PropTypes.func,
40
+        checkDialNumber: PropTypes.func,
40 41
 
41 42
         /**
42 43
          * The function performing the dial action.
43 44
          */
44
-        dial: React.PropTypes.func,
45
+        dial: PropTypes.func,
45 46
 
46 47
         /**
47 48
          * Invoked to obtain translated strings.
48 49
          */
49
-        t: React.PropTypes.func
50
+        t: PropTypes.func
50 51
     };
51 52
 
52 53
     /**
@@ -214,7 +215,7 @@ class DialOutDialog extends Component {
214 215
  * @param {Object} state - The Redux state.
215 216
  * @private
216 217
  * @returns {{
217
- *     _isDialNumberAllowed: React.PropTypes.bool
218
+ *     _isDialNumberAllowed: boolean
218 219
  * }}
219 220
  */
220 221
 function _mapStateToProps(state) {

+ 6
- 5
react/features/dial-out/components/DialOutNumbersForm.web.js Näytä tiedosto

@@ -1,6 +1,7 @@
1 1
 import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu';
2 2
 import AKFieldText, { FieldText } from '@atlaskit/field-text';
3 3
 import ExpandIcon from '@atlaskit/icon/glyph/expand';
4
+import PropTypes from 'prop-types';
4 5
 import React, { Component } from 'react';
5 6
 import { connect } from 'react-redux';
6 7
 
@@ -40,22 +41,22 @@ class DialOutNumbersForm extends Component {
40 41
         /**
41 42
          * The redux state representing the list of dial-out codes.
42 43
          */
43
-        _dialOutCodes: React.PropTypes.array,
44
+        _dialOutCodes: PropTypes.array,
44 45
 
45 46
         /**
46 47
          * The function called on every dial input change.
47 48
          */
48
-        onChange: React.PropTypes.func,
49
+        onChange: PropTypes.func,
49 50
 
50 51
         /**
51 52
          * Invoked to obtain translated strings.
52 53
          */
53
-        t: React.PropTypes.func,
54
+        t: PropTypes.func,
54 55
 
55 56
         /**
56 57
          * Invoked to send an ajax request for dial-out codes.
57 58
          */
58
-        updateDialOutCodes: React.PropTypes.func
59
+        updateDialOutCodes: PropTypes.func
59 60
     };
60 61
 
61 62
     /**
@@ -353,7 +354,7 @@ class DialOutNumbersForm extends Component {
353 354
  * @param {Object} state - The Redux state.
354 355
  * @private
355 356
  * @returns {{
356
- *     _dialOutCodes: React.PropTypes.object
357
+ *     _dialOutCodes: Object
357 358
  * }}
358 359
  */
359 360
 function _mapStateToProps(state) {

+ 8
- 7
react/features/display-name/components/DisplayName.web.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -19,38 +20,38 @@ class DisplayName extends Component {
19 20
         /**
20 21
          * Whether or not the display name should be editable on click.
21 22
          */
22
-        allowEditing: React.PropTypes.bool,
23
+        allowEditing: PropTypes.bool,
23 24
 
24 25
         /**
25 26
          * Invoked to update the participant's display name.
26 27
          */
27
-        dispatch: React.PropTypes.func,
28
+        dispatch: PropTypes.func,
28 29
 
29 30
         /**
30 31
          * The participant's current display name.
31 32
          */
32
-        displayName: React.PropTypes.string,
33
+        displayName: PropTypes.string,
33 34
 
34 35
         /**
35 36
          * A string to append to the displayName, if provided.
36 37
          */
37
-        displayNameSuffix: React.PropTypes.string,
38
+        displayNameSuffix: PropTypes.string,
38 39
 
39 40
         /**
40 41
          * The ID attribute to add to the component. Useful for global querying
41 42
          * for the component by legacy components and torture tests.
42 43
          */
43
-        elementID: React.PropTypes.string,
44
+        elementID: PropTypes.string,
44 45
 
45 46
         /**
46 47
          * The ID of the participant whose name is being displayed.
47 48
          */
48
-        participantID: React.PropTypes.string,
49
+        participantID: PropTypes.string,
49 50
 
50 51
         /**
51 52
          * Invoked to obtain translated strings.
52 53
          */
53
-        t: React.PropTypes.func
54
+        t: PropTypes.func
54 55
     };
55 56
 
56 57
     /**

+ 4
- 3
react/features/display-name/components/DisplayNamePrompt.web.js Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 import AKFieldText from '@atlaskit/field-text';
2
+import PropTypes from 'prop-types';
2 3
 import React, { Component } from 'react';
3 4
 import { connect } from 'react-redux';
4 5
 
@@ -26,17 +27,17 @@ class DisplayNamePrompt extends Component {
26 27
          * The current ID for the local participant. Used for setting the
27 28
          * display name on the associated participant.
28 29
          */
29
-        _localParticipantID: React.PropTypes.string,
30
+        _localParticipantID: PropTypes.string,
30 31
 
31 32
         /**
32 33
          * Invoked to update the local participant's display name.
33 34
          */
34
-        dispatch: React.PropTypes.func,
35
+        dispatch: PropTypes.func,
35 36
 
36 37
         /**
37 38
          * Invoked to obtain translated strings.
38 39
          */
39
-        t: React.PropTypes.func
40
+        t: PropTypes.func
40 41
     };
41 42
 
42 43
     /**

+ 4
- 3
react/features/feedback/components/FeedbackButton.web.js Näytä tiedosto

@@ -1,6 +1,7 @@
1 1
 /* @flow */
2 2
 
3 3
 import Tooltip from '@atlaskit/tooltip';
4
+import PropTypes from 'prop-types';
4 5
 import React, { Component } from 'react';
5 6
 import { connect } from 'react-redux';
6 7
 
@@ -20,17 +21,17 @@ class FeedbackButton extends Component {
20 21
          *
21 22
          * @type {JitsiConference}
22 23
          */
23
-        _conference: React.PropTypes.object,
24
+        _conference: PropTypes.object,
24 25
 
25 26
         /**
26 27
          * Invoked to obtain translated strings.
27 28
          */
28
-        t: React.PropTypes.func,
29
+        t: PropTypes.func,
29 30
 
30 31
         /**
31 32
          * From which side of the button the tooltip should appear from.
32 33
          */
33
-        tooltipPosition: React.PropTypes.string
34
+        tooltipPosition: PropTypes.string
34 35
     };
35 36
 
36 37
     /**

+ 7
- 6
react/features/feedback/components/FeedbackDialog.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 import StarIcon from '@atlaskit/icon/glyph/star';
2 2
 import StarFilledIcon from '@atlaskit/icon/glyph/star-filled';
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -46,13 +47,13 @@ class FeedbackDialog extends Component {
46 47
          * The cached feedback message, if any, that was set when closing a
47 48
          * previous instance of {@code FeedbackDialog}.
48 49
          */
49
-        _message: React.PropTypes.string,
50
+        _message: PropTypes.string,
50 51
 
51 52
         /**
52 53
          * The cached feedback score, if any, that was set when closing a
53 54
          * previous instance of {@code FeedbackDialog}.
54 55
          */
55
-        _score: React.PropTypes.number,
56
+        _score: PropTypes.number,
56 57
 
57 58
         /**
58 59
          * The JitsiConference that is being rated. The conference is passed in
@@ -61,22 +62,22 @@ class FeedbackDialog extends Component {
61 62
          *
62 63
          * @type {JitsiConference}
63 64
          */
64
-        conference: React.PropTypes.object,
65
+        conference: PropTypes.object,
65 66
 
66 67
         /**
67 68
          * Invoked to signal feedback submission or canceling.
68 69
          */
69
-        dispatch: React.PropTypes.func,
70
+        dispatch: PropTypes.func,
70 71
 
71 72
         /**
72 73
          * Callback invoked when {@code FeedbackDialog} is unmounted.
73 74
          */
74
-        onClose: React.PropTypes.func,
75
+        onClose: PropTypes.func,
75 76
 
76 77
         /**
77 78
          * Invoked to obtain translated strings.
78 79
          */
79
-        t: React.PropTypes.func
80
+        t: PropTypes.func
80 81
     };
81 82
 
82 83
     /**

+ 3
- 2
react/features/filmstrip/components/Filmstrip.native.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { ScrollView } from 'react-native';
5 6
 import { connect } from 'react-redux';
@@ -28,7 +29,7 @@ class Filmstrip extends Component {
28 29
          * @private
29 30
          * @type {Participant[]}
30 31
          */
31
-        _participants: React.PropTypes.array,
32
+        _participants: PropTypes.array,
32 33
 
33 34
         /**
34 35
          * The indicator which determines whether the filmstrip is visible.
@@ -36,7 +37,7 @@ class Filmstrip extends Component {
36 37
          * @private
37 38
          * @type {boolean}
38 39
          */
39
-        _visible: React.PropTypes.bool.isRequired
40
+        _visible: PropTypes.bool.isRequired
40 41
     };
41 42
 
42 43
     /**

+ 5
- 4
react/features/filmstrip/components/Filmstrip.web.js Näytä tiedosto

@@ -1,6 +1,7 @@
1 1
 /* @flow */
2 2
 
3 3
 import _ from 'lodash';
4
+import PropTypes from 'prop-types';
4 5
 import React, { Component } from 'react';
5 6
 import { connect } from 'react-redux';
6 7
 
@@ -33,23 +34,23 @@ class Filmstrip extends Component {
33 34
         /**
34 35
          * Whether or not remote videos are currently being hovered over.
35 36
          */
36
-        _hovered: React.PropTypes.bool,
37
+        _hovered: PropTypes.bool,
37 38
 
38 39
         /**
39 40
          * Whether or not the remote videos should be visible. Will toggle
40 41
          * a class for hiding the videos.
41 42
          */
42
-        _remoteVideosVisible: React.PropTypes.bool,
43
+        _remoteVideosVisible: PropTypes.bool,
43 44
 
44 45
         /**
45 46
          * Updates the redux store with filmstrip hover changes.
46 47
          */
47
-        dispatch: React.PropTypes.func,
48
+        dispatch: PropTypes.func,
48 49
 
49 50
         /**
50 51
          * Whether or not the toolbox should be displayed within the filmstrip.
51 52
          */
52
-        displayToolbox: React.PropTypes.bool
53
+        displayToolbox: PropTypes.bool
53 54
     };
54 55
 
55 56
     /**

+ 6
- 5
react/features/filmstrip/components/Thumbnail.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -29,11 +30,11 @@ class Thumbnail extends Component {
29 30
      * @static
30 31
      */
31 32
     static propTypes = {
32
-        _audioTrack: React.PropTypes.object,
33
-        _largeVideo: React.PropTypes.object,
34
-        _videoTrack: React.PropTypes.object,
35
-        dispatch: React.PropTypes.func,
36
-        participant: React.PropTypes.object
33
+        _audioTrack: PropTypes.object,
34
+        _largeVideo: PropTypes.object,
35
+        _videoTrack: PropTypes.object,
36
+        dispatch: PropTypes.func,
37
+        participant: PropTypes.object
37 38
     };
38 39
 
39 40
     /**

+ 2
- 1
react/features/filmstrip/components/web/AudioMutedIndicator.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import BaseIndicator from './BaseIndicator';
@@ -17,7 +18,7 @@ class AudioMutedIndicator extends Component {
17 18
         /**
18 19
          * From which side of the indicator the tooltip should appear from.
19 20
          */
20
-        tooltipPosition: React.PropTypes.string
21
+        tooltipPosition: PropTypes.string
21 22
     };
22 23
 
23 24
     /**

+ 8
- 7
react/features/filmstrip/components/web/BaseIndicator.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import Tooltip from '@atlaskit/tooltip';
3 4
 
@@ -31,39 +32,39 @@ class BaseIndicator extends Component {
31 32
         /**
32 33
          * Additional CSS class names to set on the icon container.
33 34
          */
34
-        className: React.PropTypes.string,
35
+        className: PropTypes.string,
35 36
 
36 37
         /**
37 38
          * The CSS classnames to set on the icon element of the component.
38 39
          */
39
-        iconClassName: React.PropTypes.string,
40
+        iconClassName: PropTypes.string,
40 41
 
41 42
         /**
42 43
          * The font size for the icon.
43 44
          */
44
-        iconSize: React.PropTypes.string,
45
+        iconSize: PropTypes.string,
45 46
 
46 47
         /**
47 48
          * The ID attribue to set on the root element of the component.
48 49
          */
49
-        id: React.PropTypes.string,
50
+        id: PropTypes.string,
50 51
 
51 52
         /**
52 53
          * Invoked to obtain translated strings.
53 54
          */
54
-        t: React.PropTypes.func,
55
+        t: PropTypes.func,
55 56
 
56 57
         /**
57 58
          * The translation key to use for displaying a tooltip when hovering
58 59
          * over the component.
59 60
          */
60
-        tooltipKey: React.PropTypes.string,
61
+        tooltipKey: PropTypes.string,
61 62
 
62 63
         /**
63 64
          * From which side of the indicator the tooltip should appear from.
64 65
          * Defaults to "top".
65 66
          */
66
-        tooltipPosition: React.PropTypes.string
67
+        tooltipPosition: PropTypes.string
67 68
     };
68 69
 
69 70
     /**

+ 3
- 2
react/features/filmstrip/components/web/DominantSpeakerIndicator.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import BaseIndicator from './BaseIndicator';
@@ -20,12 +21,12 @@ class DominantSpeakerIndicator extends Component {
20 21
          *
21 22
          * @type {number}
22 23
          */
23
-        iconSize: React.PropTypes.number,
24
+        iconSize: PropTypes.number,
24 25
 
25 26
         /**
26 27
          * From which side of the indicator the tooltip should appear from.
27 28
          */
28
-        tooltipPosition: React.PropTypes.string
29
+        tooltipPosition: PropTypes.string
29 30
     };
30 31
 
31 32
     /**

+ 2
- 1
react/features/filmstrip/components/web/ModeratorIndicator.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import BaseIndicator from './BaseIndicator';
@@ -17,7 +18,7 @@ class ModeratorIndicator extends Component {
17 18
         /**
18 19
          * From which side of the indicator the tooltip should appear from.
19 20
          */
20
-        tooltipPosition: React.PropTypes.string
21
+        tooltipPosition: PropTypes.string
21 22
     };
22 23
 
23 24
     /**

+ 3
- 2
react/features/filmstrip/components/web/RaisedHandIndicator.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import BaseIndicator from './BaseIndicator';
@@ -19,12 +20,12 @@ class RaisedHandIndicator extends Component {
19 20
          *
20 21
          * @type {number}
21 22
          */
22
-        iconSize: React.PropTypes.number,
23
+        iconSize: PropTypes.number,
23 24
 
24 25
         /**
25 26
          * From which side of the indicator the tooltip should appear from.
26 27
          */
27
-        tooltipPosition: React.PropTypes.string
28
+        tooltipPosition: PropTypes.string
28 29
     };
29 30
 
30 31
     /**

+ 3
- 1
react/features/filmstrip/components/web/VideoMutedIndicator.js Näytä tiedosto

@@ -1,4 +1,6 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
3
+
2 4
 import BaseIndicator from './BaseIndicator';
3 5
 
4 6
 /**
@@ -16,7 +18,7 @@ class VideoMutedIndicator extends Component {
16 18
         /**
17 19
          * From which side of the indicator the tooltip should appear from.
18 20
          */
19
-        tooltipPosition: React.PropTypes.string
21
+        tooltipPosition: PropTypes.string
20 22
     };
21 23
 
22 24
     /**

+ 4
- 3
react/features/invite/components/AddPasswordForm.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 import Button from '@atlaskit/button';
2 2
 import { FieldText } from '@atlaskit/field-text';
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -21,17 +22,17 @@ class AddPasswordForm extends Component {
21 22
          *
22 23
          * @type {JitsiConference}
23 24
          */
24
-        conference: React.PropTypes.object,
25
+        conference: PropTypes.object,
25 26
 
26 27
         /**
27 28
          * Invoked to set a password on the conference.
28 29
          */
29
-        dispatch: React.PropTypes.func,
30
+        dispatch: PropTypes.func,
30 31
 
31 32
         /**
32 33
          * Invoked to obtain translated strings.
33 34
          */
34
-        t: React.PropTypes.func
35
+        t: PropTypes.func
35 36
     };
36 37
 
37 38
     /**

+ 6
- 7
react/features/invite/components/AddPeopleDialog.web.js Näytä tiedosto

@@ -1,8 +1,9 @@
1
-import React, { Component } from 'react';
2
-import { Immutable } from 'nuclear-js';
3
-import { connect } from 'react-redux';
4 1
 import Avatar from '@atlaskit/avatar';
5 2
 import InlineMessage from '@atlaskit/inline-message';
3
+import { Immutable } from 'nuclear-js';
4
+import PropTypes from 'prop-types';
5
+import React, { Component } from 'react';
6
+import { connect } from 'react-redux';
6 7
 
7 8
 import { getInviteURL } from '../../base/connection';
8 9
 import { Dialog, hideDialog } from '../../base/dialog';
@@ -14,8 +15,6 @@ import { invitePeople, inviteRooms, searchPeople } from '../functions';
14 15
 
15 16
 declare var interfaceConfig: Object;
16 17
 
17
-const { PropTypes } = React;
18
-
19 18
 /**
20 19
  * The dialog that allows to invite people to the call.
21 20
  */
@@ -325,8 +324,8 @@ class AddPeopleDialog extends Component {
325 324
  * @param {Object} state - The Redux state.
326 325
  * @private
327 326
  * @returns {{
328
- *     _peopleSearchUrl: React.PropTypes.string,
329
- *     _jwt: React.PropTypes.string
327
+ *     _jwt: string,
328
+ *     _peopleSearchUrl: string
330 329
  * }}
331 330
  */
332 331
 function _mapStateToProps(state) {

+ 8
- 7
react/features/invite/components/DialInNumbersForm.js Näytä tiedosto

@@ -2,6 +2,7 @@ import Button from '@atlaskit/button';
2 2
 import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu';
3 3
 import { FieldText } from '@atlaskit/field-text';
4 4
 import ExpandIcon from '@atlaskit/icon/glyph/expand';
5
+import PropTypes from 'prop-types';
5 6
 import React, { Component } from 'react';
6 7
 import { connect } from 'react-redux';
7 8
 
@@ -29,28 +30,28 @@ class DialInNumbersForm extends Component {
29 30
         /**
30 31
          * The redux state representing the dial-in numbers feature.
31 32
          */
32
-        _dialIn: React.PropTypes.object,
33
+        _dialIn: PropTypes.object,
33 34
 
34 35
         /**
35 36
          * The display name of the local user.
36 37
          */
37
-        _localUserDisplayName: React.PropTypes.string,
38
+        _localUserDisplayName: PropTypes.string,
38 39
 
39 40
         /**
40 41
          * Invoked to send an ajax request for dial-in numbers.
41 42
          */
42
-        dispatch: React.PropTypes.func,
43
+        dispatch: PropTypes.func,
43 44
 
44 45
         /**
45 46
          * The URL of the conference into which this {@code DialInNumbersForm}
46 47
          * is inviting the local participant.
47 48
          */
48
-        inviteURL: React.PropTypes.string,
49
+        inviteURL: PropTypes.string,
49 50
 
50 51
         /**
51 52
          * Invoked to obtain translated strings.
52 53
          */
53
-        t: React.PropTypes.func
54
+        t: PropTypes.func
54 55
     };
55 56
 
56 57
     /**
@@ -420,8 +421,8 @@ class DialInNumbersForm extends Component {
420 421
  * @param {Object} state - The Redux state.
421 422
  * @private
422 423
  * @returns {{
423
- *     _localUserDisplayName: React.PropTypes.string,
424
- *     _dialIn: React.PropTypes.object
424
+ *     _dialIn: Object,
425
+ *     _localUserDisplayName: string
425 426
  * }}
426 427
  */
427 428
 function _mapStateToProps(state) {

+ 5
- 4
react/features/invite/components/InviteDialog.web.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -26,22 +27,22 @@ class InviteDialog extends Component {
26 27
         /**
27 28
          * The redux store representation of the JitsiConference.
28 29
          */
29
-        _conference: React.PropTypes.object,
30
+        _conference: PropTypes.object,
30 31
 
31 32
         /**
32 33
          * The url for the JitsiConference.
33 34
          */
34
-        _inviteURL: React.PropTypes.string,
35
+        _inviteURL: PropTypes.string,
35 36
 
36 37
         /**
37 38
          * Whether or not the current user is a conference moderator.
38 39
          */
39
-        _isModerator: React.PropTypes.bool,
40
+        _isModerator: PropTypes.bool,
40 41
 
41 42
         /**
42 43
          * Invoked to obtain translated strings.
43 44
          */
44
-        t: React.PropTypes.func
45
+        t: PropTypes.func
45 46
     };
46 47
 
47 48
     /**

+ 3
- 2
react/features/invite/components/LockStatePanel.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate } from '../../base/i18n';
@@ -15,12 +16,12 @@ class LockStatePanel extends Component {
15 16
         /**
16 17
          * Whether or not the conference is currently locked.
17 18
          */
18
-        locked: React.PropTypes.bool,
19
+        locked: PropTypes.bool,
19 20
 
20 21
         /**
21 22
          * Invoked to obtain translated strings.
22 23
          */
23
-        t: React.PropTypes.func
24
+        t: PropTypes.func
24 25
     };
25 26
 
26 27
     /**

+ 6
- 5
react/features/invite/components/PasswordContainer.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate } from '../../base/i18n';
@@ -24,28 +25,28 @@ class PasswordContainer extends Component {
24 25
          *
25 26
          * @type {JitsiConference}
26 27
          */
27
-        conference: React.PropTypes.object,
28
+        conference: PropTypes.object,
28 29
 
29 30
         /**
30 31
          * The value for how the conference is locked (or undefined if not
31 32
          * locked) as defined by room-lock constants.
32 33
          */
33
-        locked: React.PropTypes.string,
34
+        locked: PropTypes.string,
34 35
 
35 36
         /**
36 37
          * The current known password for the JitsiConference.
37 38
          */
38
-        password: React.PropTypes.string,
39
+        password: PropTypes.string,
39 40
 
40 41
         /**
41 42
          * Whether or not the password editing components should be displayed.
42 43
          */
43
-        showPasswordEdit: React.PropTypes.bool,
44
+        showPasswordEdit: PropTypes.bool,
44 45
 
45 46
         /**
46 47
          * Invoked to obtain translated strings.
47 48
          */
48
-        t: React.PropTypes.func
49
+        t: PropTypes.func
49 50
     };
50 51
 
51 52
     /**

+ 6
- 5
react/features/invite/components/RemovePasswordForm.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -19,27 +20,27 @@ class RemovePasswordForm extends Component {
19 20
          *
20 21
          * @type {JitsiConference}
21 22
          */
22
-        conference: React.PropTypes.object,
23
+        conference: PropTypes.object,
23 24
 
24 25
         /**
25 26
          * Invoked to send a password removal request.
26 27
          */
27
-        dispatch: React.PropTypes.func,
28
+        dispatch: PropTypes.func,
28 29
 
29 30
         /**
30 31
          * Whether or not the room lock, if any, was set by the local user.
31 32
          */
32
-        lockedLocally: React.PropTypes.bool,
33
+        lockedLocally: PropTypes.bool,
33 34
 
34 35
         /**
35 36
          * The current known password for the JitsiConference.
36 37
          */
37
-        password: React.PropTypes.string,
38
+        password: PropTypes.string,
38 39
 
39 40
         /**
40 41
          * Invoked to obtain translated strings.
41 42
          */
42
-        t: React.PropTypes.func
43
+        t: PropTypes.func
43 44
     };
44 45
 
45 46
     /**

+ 3
- 2
react/features/invite/components/ShareLinkForm.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 import Button from '@atlaskit/button';
2 2
 import { FieldText } from '@atlaskit/field-text';
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import { translate } from '../../base/i18n';
@@ -20,12 +21,12 @@ class ShareLinkForm extends Component {
20 21
         /**
21 22
          * Invoked to obtain translated strings.
22 23
          */
23
-        t: React.PropTypes.func,
24
+        t: PropTypes.func,
24 25
 
25 26
         /**
26 27
          * The value to be displayed and copied into the clipboard.
27 28
          */
28
-        toCopy: React.PropTypes.string
29
+        toCopy: PropTypes.string
29 30
     };
30 31
 
31 32
     /**

+ 2
- 1
react/features/jwt/components/CallOverlay.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -73,7 +74,7 @@ class CallOverlay extends Component {
73 74
      * @static
74 75
      */
75 76
     static propTypes = {
76
-        _callee: React.PropTypes.object
77
+        _callee: PropTypes.object
77 78
     };
78 79
 
79 80
     /**

+ 2
- 1
react/features/large-video/components/LargeVideo.native.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -25,7 +26,7 @@ class LargeVideo extends Component {
25 26
          *
26 27
          * @private
27 28
          */
28
-        _participantId: React.PropTypes.string
29
+        _participantId: PropTypes.string
29 30
     };
30 31
 
31 32
     /**

+ 9
- 8
react/features/notifications/components/Notification.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 import Flag from '@atlaskit/flag';
2 2
 import EditorInfoIcon from '@atlaskit/icon/glyph/editor/info';
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import { translate } from '../../base/i18n';
@@ -20,46 +21,46 @@ class Notification extends Component {
20 21
          * The translation key to display as the title of the notification if
21 22
          * no title is provided.
22 23
          */
23
-        defaultTitleKey: React.PropTypes.string,
24
+        defaultTitleKey: PropTypes.string,
24 25
 
25 26
         /**
26 27
          * The translation arguments that may be necessary for the description.
27 28
          */
28
-        descriptionArguments: React.PropTypes.object,
29
+        descriptionArguments: PropTypes.object,
29 30
 
30 31
         /**
31 32
          * The translation key to use as the body of the notification.
32 33
          */
33
-        descriptionKey: React.PropTypes.string,
34
+        descriptionKey: PropTypes.string,
34 35
 
35 36
         /**
36 37
          * Whether or not the dismiss button should be displayed. This is passed
37 38
          * in by {@code FlagGroup}.
38 39
          */
39
-        isDismissAllowed: React.PropTypes.bool,
40
+        isDismissAllowed: PropTypes.bool,
40 41
 
41 42
         /**
42 43
          * Callback invoked when the user clicks to dismiss the notification.
43 44
          * this is passed in by {@code FlagGroup}.
44 45
          */
45
-        onDismissed: React.PropTypes.func,
46
+        onDismissed: PropTypes.func,
46 47
 
47 48
         /**
48 49
          * Invoked to obtain translated strings.
49 50
          */
50
-        t: React.PropTypes.func,
51
+        t: PropTypes.func,
51 52
 
52 53
         /**
53 54
          * The text to display at the top of the notification. If not passed in,
54 55
          * the passed in defaultTitleKey will be used.
55 56
          */
56
-        title: React.PropTypes.string,
57
+        title: PropTypes.string,
57 58
 
58 59
         /**
59 60
          * The unique identifier for the notification. Passed back by the
60 61
          * {@code Flag} component in the onDismissed callback.
61 62
          */
62
-        uid: React.PropTypes.number
63
+        uid: PropTypes.number
63 64
     };
64 65
 
65 66
     /**

+ 12
- 11
react/features/notifications/components/NotificationWithToggle.web.js Näytä tiedosto

@@ -1,6 +1,7 @@
1 1
 import Flag from '@atlaskit/flag';
2 2
 import WarningIcon from '@atlaskit/icon/glyph/warning';
3 3
 import { ToggleStateless } from '@atlaskit/toggle';
4
+import PropTypes from 'prop-types';
4 5
 import React, { Component } from 'react';
5 6
 
6 7
 import { translate } from '../../base/i18n';
@@ -21,63 +22,63 @@ class NotificationWithToggle extends Component {
21 22
          * Any additional text to display at the end of the notification message
22 23
          * body.
23 24
          */
24
-        additionalMessage: React.PropTypes.string,
25
+        additionalMessage: PropTypes.string,
25 26
 
26 27
         /**
27 28
          * Whether or not the dismiss button should be displayed. This is passed
28 29
          * in by {@code FlagGroup}.
29 30
          */
30
-        isDismissAllowed: React.PropTypes.bool,
31
+        isDismissAllowed: PropTypes.bool,
31 32
 
32 33
         /**
33 34
          * The translation key to be used as the main body of the notification.
34 35
          */
35
-        messageKey: React.PropTypes.string,
36
+        messageKey: PropTypes.string,
36 37
 
37 38
         /**
38 39
          * Callback invoked when the user clicks to dismiss the notification.
39 40
          * This is passed in by {@code FlagGroup}.
40 41
          */
41
-        onDismissed: React.PropTypes.func,
42
+        onDismissed: PropTypes.func,
42 43
 
43 44
         /**
44 45
          * Optional callback to invoke when the notification is dismissed. The
45 46
          * current value of the toggle element will be passed in.
46 47
          */
47
-        onToggleSubmit: React.PropTypes.func,
48
+        onToggleSubmit: PropTypes.func,
48 49
 
49 50
         /**
50 51
          * Whether or not the toggle element should be displayed.
51 52
          */
52
-        showToggle: React.PropTypes.bool,
53
+        showToggle: PropTypes.bool,
53 54
 
54 55
         /**
55 56
          * Translation key for a message to display at the top of the
56 57
          * notification body.
57 58
          */
58
-        subtitleKey: React.PropTypes.string,
59
+        subtitleKey: PropTypes.string,
59 60
 
60 61
         /**
61 62
          * Invoked to obtain translated strings.
62 63
          */
63
-        t: React.PropTypes.func,
64
+        t: PropTypes.func,
64 65
 
65 66
         /**
66 67
          * The translation key to be used as the title of the notification.
67 68
          */
68
-        titleKey: React.PropTypes.string,
69
+        titleKey: PropTypes.string,
69 70
 
70 71
         /*
71 72
          * The translation key to be used as a label describing what setting the
72 73
          * toggle will change.
73 74
          */
74
-        toggleLabelKey: React.PropTypes.string,
75
+        toggleLabelKey: PropTypes.string,
75 76
 
76 77
         /**
77 78
          * The unique identifier for the notification. Passed back by the
78 79
          * {@code Flag} component in the onDismissed callback.
79 80
          */
80
-        uid: React.PropTypes.number
81
+        uid: PropTypes.number
81 82
     };
82 83
 
83 84
     /**

+ 5
- 4
react/features/notifications/components/NotificationsContainer.web.js Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 import { FlagGroup } from '@atlaskit/flag';
2
+import PropTypes from 'prop-types';
2 3
 import React, { Component } from 'react';
3 4
 import { connect } from 'react-redux';
4 5
 
@@ -22,18 +23,18 @@ class NotificationsContainer extends Component {
22 23
          * The notifications to be displayed, with the first index being the
23 24
          * notification at the top and the rest shown below it in order.
24 25
          */
25
-        _notifications: React.PropTypes.array,
26
+        _notifications: PropTypes.array,
26 27
 
27 28
         /**
28 29
          * Whether or not notifications should be displayed at all. If not,
29 30
          * notifications will be dismissed immediately.
30 31
          */
31
-        _showNotifications: React.PropTypes.bool,
32
+        _showNotifications: PropTypes.bool,
32 33
 
33 34
         /**
34 35
          * Invoked to update the redux store in order to remove notifications.
35 36
          */
36
-        dispatch: React.PropTypes.func
37
+        dispatch: PropTypes.func
37 38
     };
38 39
 
39 40
     /**
@@ -168,7 +169,7 @@ class NotificationsContainer extends Component {
168 169
  * @param {Object} state - The Redux state.
169 170
  * @private
170 171
  * @returns {{
171
- *     _notifications: React.PropTypes.array
172
+ *     _notifications: Array
172 173
  * }}
173 174
  */
174 175
 function _mapStateToProps(state) {

+ 5
- 4
react/features/overlay/components/AbstractPageReloadOverlay.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import { randomInt } from '../../base/util';
@@ -22,7 +23,7 @@ export default class AbstractPageReloadOverlay extends Component {
22 23
      * @static
23 24
      */
24 25
     static propTypes = {
25
-        dispatch: React.PropTypes.func,
26
+        dispatch: PropTypes.func,
26 27
 
27 28
         /**
28 29
          * The indicator which determines whether the reload was caused by
@@ -31,7 +32,7 @@ export default class AbstractPageReloadOverlay extends Component {
31 32
          * @public
32 33
          * @type {boolean}
33 34
          */
34
-        isNetworkFailure: React.PropTypes.bool,
35
+        isNetworkFailure: PropTypes.bool,
35 36
 
36 37
         /**
37 38
          * The reason for the error that will cause the reload.
@@ -40,7 +41,7 @@ export default class AbstractPageReloadOverlay extends Component {
40 41
          * @public
41 42
          * @type {string}
42 43
          */
43
-        reason: React.PropTypes.string,
44
+        reason: PropTypes.string,
44 45
 
45 46
         /**
46 47
          * The function to translate human-readable text.
@@ -48,7 +49,7 @@ export default class AbstractPageReloadOverlay extends Component {
48 49
          * @public
49 50
          * @type {Function}
50 51
          */
51
-        t: React.PropTypes.func
52
+        t: PropTypes.func
52 53
     };
53 54
 
54 55
     _interval: ?number

+ 5
- 4
react/features/overlay/components/FilmstripOnlyOverlayFrame.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -26,7 +27,7 @@ class FilmstripOnlyOverlayFrame extends Component {
26 27
          *
27 28
          * @private
28 29
          */
29
-        _avatar: React.PropTypes.string,
30
+        _avatar: PropTypes.string,
30 31
 
31 32
         /**
32 33
          * The children components to be displayed into the overlay frame for
@@ -34,7 +35,7 @@ class FilmstripOnlyOverlayFrame extends Component {
34 35
          *
35 36
          * @type {ReactElement}
36 37
          */
37
-        children: React.PropTypes.node.isRequired,
38
+        children: PropTypes.node.isRequired,
38 39
 
39 40
         /**
40 41
          * The css class name for the icon that will be displayed over the
@@ -42,7 +43,7 @@ class FilmstripOnlyOverlayFrame extends Component {
42 43
          *
43 44
          * @type {string}
44 45
          */
45
-        icon: React.PropTypes.string,
46
+        icon: PropTypes.string,
46 47
 
47 48
         /**
48 49
          * Indicates the css style of the overlay. If true, then lighter;
@@ -50,7 +51,7 @@ class FilmstripOnlyOverlayFrame extends Component {
50 51
          *
51 52
          * @type {boolean}
52 53
          */
53
-        isLightOverlay: React.PropTypes.bool
54
+        isLightOverlay: PropTypes.bool
54 55
     };
55 56
 
56 57
     /**

+ 9
- 8
react/features/overlay/components/OverlayContainer.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -32,7 +33,7 @@ class OverlayContainer extends Component {
32 33
          * @private
33 34
          * @type {string}
34 35
          */
35
-        _browser: React.PropTypes.string,
36
+        _browser: PropTypes.string,
36 37
 
37 38
         /**
38 39
          * The indicator which determines whether the {@link CallOverlay} is
@@ -41,7 +42,7 @@ class OverlayContainer extends Component {
41 42
          * @private
42 43
          * @type {boolean}
43 44
          */
44
-        _callOverlayVisible: React.PropTypes.bool,
45
+        _callOverlayVisible: PropTypes.bool,
45 46
 
46 47
         /**
47 48
          * The indicator which determines whether the status of the
@@ -52,7 +53,7 @@ class OverlayContainer extends Component {
52 53
          * @private
53 54
          * @type {boolean}
54 55
          */
55
-        _connectionEstablished: React.PropTypes.bool,
56
+        _connectionEstablished: PropTypes.bool,
56 57
 
57 58
         /**
58 59
          * The indicator which determines whether a critical error for reload
@@ -63,7 +64,7 @@ class OverlayContainer extends Component {
63 64
          * @private
64 65
          * @type {boolean}
65 66
          */
66
-        _haveToReload: React.PropTypes.bool,
67
+        _haveToReload: PropTypes.bool,
67 68
 
68 69
         /**
69 70
          * The indicator which determines whether the GUM permissions prompt is
@@ -74,7 +75,7 @@ class OverlayContainer extends Component {
74 75
          * @private
75 76
          * @type {boolean}
76 77
          */
77
-        _isMediaPermissionPromptVisible: React.PropTypes.bool,
78
+        _isMediaPermissionPromptVisible: PropTypes.bool,
78 79
 
79 80
         /**
80 81
          * The indicator which determines whether the reload was caused by
@@ -85,7 +86,7 @@ class OverlayContainer extends Component {
85 86
          * @private
86 87
          * @type {boolean}
87 88
          */
88
-        _isNetworkFailure: React.PropTypes.bool,
89
+        _isNetworkFailure: PropTypes.bool,
89 90
 
90 91
         /**
91 92
          * The reason for the error that will cause the reload.
@@ -95,7 +96,7 @@ class OverlayContainer extends Component {
95 96
          * @private
96 97
          * @type {string}
97 98
          */
98
-        _reason: React.PropTypes.string,
99
+        _reason: PropTypes.string,
99 100
 
100 101
         /**
101 102
          * The indicator which determines whether the GUM permissions prompt is
@@ -106,7 +107,7 @@ class OverlayContainer extends Component {
106 107
          * @private
107 108
          * @type {string}
108 109
          */
109
-        _suspendDetected: React.PropTypes.bool
110
+        _suspendDetected: PropTypes.bool
110 111
     };
111 112
 
112 113
     /**

+ 3
- 2
react/features/overlay/components/OverlayFrame.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 declare var interfaceConfig: Object;
@@ -15,7 +16,7 @@ export default class OverlayFrame extends Component {
15 16
         /**
16 17
          * The children components to be displayed into the overlay frame.
17 18
          */
18
-        children: React.PropTypes.node.isRequired,
19
+        children: PropTypes.node.isRequired,
19 20
 
20 21
         /**
21 22
          * Indicates the css style of the overlay. If true, then lighter;
@@ -23,7 +24,7 @@ export default class OverlayFrame extends Component {
23 24
          *
24 25
          * @type {boolean}
25 26
          */
26
-        isLightOverlay: React.PropTypes.bool
27
+        isLightOverlay: PropTypes.bool
27 28
     };
28 29
 
29 30
     /**

+ 4
- 3
react/features/overlay/components/ReloadButton.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -21,7 +22,7 @@ class ReloadButton extends Component {
21 22
          *
22 23
          * @type {Function}
23 24
          */
24
-        _reloadNow: React.PropTypes.func,
25
+        _reloadNow: PropTypes.func,
25 26
 
26 27
         /**
27 28
          * The function to translate human-readable text.
@@ -29,14 +30,14 @@ class ReloadButton extends Component {
29 30
          * @public
30 31
          * @type {Function}
31 32
          */
32
-        t: React.PropTypes.func,
33
+        t: PropTypes.func,
33 34
 
34 35
         /**
35 36
          * The translation key for the text in the button.
36 37
          *
37 38
          * @type {string}
38 39
          */
39
-        textKey: React.PropTypes.string.isRequired
40
+        textKey: PropTypes.string.isRequired
40 41
     };
41 42
 
42 43
     /**

+ 7
- 6
react/features/overlay/components/ReloadTimer.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate } from '../../base/i18n';
@@ -24,7 +25,7 @@ class ReloadTimer extends Component {
24 25
          * @public
25 26
          * @type {number}
26 27
          */
27
-        end: React.PropTypes.number,
28
+        end: PropTypes.number,
28 29
 
29 30
         /**
30 31
          * The interval in sec for adding this.state.step to this.state.current.
@@ -32,13 +33,13 @@ class ReloadTimer extends Component {
32 33
          * @public
33 34
          * @type {number}
34 35
          */
35
-        interval: React.PropTypes.number,
36
+        interval: PropTypes.number,
36 37
 
37 38
         /**
38 39
          * The function that will be executed when timer finish (when
39 40
          * this.state.current === this.props.end)
40 41
          */
41
-        onFinish: React.PropTypes.func,
42
+        onFinish: PropTypes.func,
42 43
 
43 44
         /**
44 45
          * The start of the timer. The initial value for this.state.current.
@@ -46,7 +47,7 @@ class ReloadTimer extends Component {
46 47
          * @public
47 48
          * @type {number}
48 49
          */
49
-        start: React.PropTypes.number,
50
+        start: PropTypes.number,
50 51
 
51 52
         /**
52 53
          * The value which will be added to this.state.current on every step.
@@ -54,7 +55,7 @@ class ReloadTimer extends Component {
54 55
          * @public
55 56
          * @type {number}
56 57
          */
57
-        step: React.PropTypes.number,
58
+        step: PropTypes.number,
58 59
 
59 60
         /**
60 61
          * The function to translate human-readable text.
@@ -62,7 +63,7 @@ class ReloadTimer extends Component {
62 63
          * @public
63 64
          * @type {Function}
64 65
          */
65
-        t: React.PropTypes.func
66
+        t: PropTypes.func
66 67
     };
67 68
 
68 69
     /**

+ 2
- 1
react/features/overlay/components/SuspendedFilmstripOnlyOverlay.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate, translateToHTML } from '../../base/i18n';
@@ -22,7 +23,7 @@ class SuspendedFilmstripOnlyOverlay extends Component {
22 23
          * @public
23 24
          * @type {Function}
24 25
          */
25
-        t: React.PropTypes.func
26
+        t: PropTypes.func
26 27
     };
27 28
 
28 29
     /**

+ 2
- 1
react/features/overlay/components/SuspendedOverlay.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate, translateToHTML } from '../../base/i18n';
@@ -22,7 +23,7 @@ class SuspendedOverlay extends Component {
22 23
          * @public
23 24
          * @type {Function}
24 25
          */
25
-        t: React.PropTypes.func
26
+        t: PropTypes.func
26 27
     };
27 28
 
28 29
     /**

+ 3
- 2
react/features/overlay/components/UserMediaPermissionsFilmstripOnlyOverlay.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate, translateToHTML } from '../../base/i18n';
@@ -22,7 +23,7 @@ class UserMediaPermissionsFilmstripOnlyOverlay extends Component {
22 23
          * @public
23 24
          * @type {string}
24 25
          */
25
-        browser: React.PropTypes.string,
26
+        browser: PropTypes.string,
26 27
 
27 28
         /**
28 29
          * The function to translate human-readable text.
@@ -30,7 +31,7 @@ class UserMediaPermissionsFilmstripOnlyOverlay extends Component {
30 31
          * @public
31 32
          * @type {Function}
32 33
          */
33
-        t: React.PropTypes.func
34
+        t: PropTypes.func
34 35
     };
35 36
 
36 37
     /**

+ 3
- 2
react/features/overlay/components/UserMediaPermissionsOverlay.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* global interfaceConfig */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import { translate, translateToHTML } from '../../base/i18n';
@@ -24,7 +25,7 @@ class UserMediaPermissionsOverlay extends Component {
24 25
          * @public
25 26
          * @type {string}
26 27
          */
27
-        browser: React.PropTypes.string,
28
+        browser: PropTypes.string,
28 29
 
29 30
         /**
30 31
          * The function to translate human-readable text.
@@ -32,7 +33,7 @@ class UserMediaPermissionsOverlay extends Component {
32 33
          * @public
33 34
          * @type {Function}
34 35
          */
35
-        t: React.PropTypes.func
36
+        t: PropTypes.func
36 37
     };
37 38
 
38 39
     /**

+ 3
- 2
react/features/presence-status/components/PresenceLabel.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -29,12 +30,12 @@ class PresenceLabel extends Component {
29 30
          * The current present status associated with the passed in
30 31
          * participantID prop.
31 32
          */
32
-        _presence: React.PropTypes.string,
33
+        _presence: PropTypes.string,
33 34
 
34 35
         /**
35 36
          * The ID of the participant whose presence status shoul display.
36 37
          */
37
-        participantID: React.PropTypes.string
38
+        participantID: PropTypes.string
38 39
     };
39 40
 
40 41
     /**

+ 5
- 4
react/features/recording/components/RecordingLabel.web.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -23,7 +24,7 @@ class RecordingLabel extends Component {
23 24
          * hidden. Depending on the filmstrip state, different CSS classes will
24 25
          * be set to allow for adjusting of {@code RecordingLabel} positioning.
25 26
          */
26
-        _filmstripVisible: React.PropTypes.bool,
27
+        _filmstripVisible: PropTypes.bool,
27 28
 
28 29
         /**
29 30
          * An object to describe the {@code RecordingLabel} content. If no
@@ -35,7 +36,7 @@ class RecordingLabel extends Component {
35 36
          *     showSpinner: boolean
36 37
          * }}
37 38
          */
38
-        _labelDisplayConfiguration: React.PropTypes.object,
39
+        _labelDisplayConfiguration: PropTypes.object,
39 40
 
40 41
         /**
41 42
          * Whether or not remote videos within the filmstrip are currently
@@ -43,12 +44,12 @@ class RecordingLabel extends Component {
43 44
          * visibility, CSS classes will be set to allow for adjusting of
44 45
          * {@code RecordingLabel} positioning.
45 46
          */
46
-        _remoteVideosVisible: React.PropTypes.bool,
47
+        _remoteVideosVisible: PropTypes.bool,
47 48
 
48 49
         /**
49 50
          * Invoked to obtain translated string.
50 51
          */
51
-        t: React.PropTypes.func
52
+        t: PropTypes.func
52 53
     };
53 54
 
54 55
     /**

+ 5
- 4
react/features/remote-control/components/RemoteControlAuthorizationDialog.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -26,12 +27,12 @@ class RemoteControlAuthorizationDialog extends Component {
26 27
          *
27 28
          * @private
28 29
          */
29
-        _displayName: React.PropTypes.string,
30
+        _displayName: PropTypes.string,
30 31
 
31 32
         /**
32 33
          * Used to show/hide the dialog on cancel.
33 34
          */
34
-        dispatch: React.PropTypes.func,
35
+        dispatch: PropTypes.func,
35 36
 
36 37
         /**
37 38
          * The ID of the participant who is requesting authorization for remote
@@ -39,12 +40,12 @@ class RemoteControlAuthorizationDialog extends Component {
39 40
          *
40 41
          * @public
41 42
          */
42
-        participantId: React.PropTypes.string,
43
+        participantId: PropTypes.string,
43 44
 
44 45
         /**
45 46
          * Invoked to obtain translated strings.
46 47
          */
47
-        t: React.PropTypes.func
48
+        t: PropTypes.func
48 49
     };
49 50
 
50 51
     /**

+ 5
- 4
react/features/remote-video-menu/components/KickButton.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -23,22 +24,22 @@ class KickButton extends Component {
23 24
          * Invoked to signal the participant with the passed in participantID
24 25
          * should be removed from the conference.
25 26
          */
26
-        dispatch: React.PropTypes.func,
27
+        dispatch: PropTypes.func,
27 28
 
28 29
         /**
29 30
          * Callback to invoke when {@code KickButton} is clicked.
30 31
          */
31
-        onClick: React.PropTypes.func,
32
+        onClick: PropTypes.func,
32 33
 
33 34
         /**
34 35
          * The ID of the participant linked to the onClick callback.
35 36
          */
36
-        participantID: React.PropTypes.string,
37
+        participantID: PropTypes.string,
37 38
 
38 39
         /**
39 40
          * Invoked to obtain translated strings.
40 41
          */
41
-        t: React.PropTypes.func
42
+        t: PropTypes.func
42 43
     };
43 44
 
44 45
     /**

+ 6
- 5
react/features/remote-video-menu/components/MuteButton.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3 4
 
@@ -23,27 +24,27 @@ class MuteButton extends Component {
23 24
          * Invoked to send a request for muting the participant with the passed
24 25
          * in participantID.
25 26
          */
26
-        dispatch: React.PropTypes.func,
27
+        dispatch: PropTypes.func,
27 28
 
28 29
         /**
29 30
          * Whether or not the participant is currently audio muted.
30 31
          */
31
-        isAudioMuted: React.PropTypes.bool,
32
+        isAudioMuted: PropTypes.bool,
32 33
 
33 34
         /**
34 35
          * Callback to invoke when {@code MuteButton} is clicked.
35 36
          */
36
-        onClick: React.PropTypes.func,
37
+        onClick: PropTypes.func,
37 38
 
38 39
         /**
39 40
          * The ID of the participant linked to the onClick callback.
40 41
          */
41
-        participantID: React.PropTypes.string,
42
+        participantID: PropTypes.string,
42 43
 
43 44
         /**
44 45
          * Invoked to obtain translated strings.
45 46
          */
46
-        t: React.PropTypes.func
47
+        t: PropTypes.func
47 48
     };
48 49
 
49 50
     /**

+ 5
- 4
react/features/remote-video-menu/components/RemoteControlButton.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate } from '../../base/i18n';
@@ -30,23 +31,23 @@ class RemoteControlButton extends Component {
30 31
         /**
31 32
          * The callback to invoke when the component is clicked.
32 33
          */
33
-        onClick: React.PropTypes.func,
34
+        onClick: PropTypes.func,
34 35
 
35 36
         /**
36 37
          * The ID of the participant linked to the onClick callback.
37 38
          */
38
-        participantID: React.PropTypes.string,
39
+        participantID: PropTypes.string,
39 40
 
40 41
         /**
41 42
          * The current status of remote control. Should be a number listed in
42 43
          * the enum REMOTE_CONTROL_MENU_STATES.
43 44
          */
44
-        remoteControlState: React.PropTypes.number,
45
+        remoteControlState: PropTypes.number,
45 46
 
46 47
         /**
47 48
          * Invoked to obtain translated strings.
48 49
          */
49
-        t: React.PropTypes.func
50
+        t: PropTypes.func
50 51
     };
51 52
 
52 53
     /**

+ 3
- 2
react/features/remote-video-menu/components/RemoteVideoMenu.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -16,13 +17,13 @@ export default class RemoteVideoMenu extends Component {
16 17
         /**
17 18
          * The components to place as the body of the {@code RemoteVideoMenu}.
18 19
          */
19
-        children: React.PropTypes.node,
20
+        children: PropTypes.node,
20 21
 
21 22
         /**
22 23
          * The id attribute to be added to the component's DOM for retrieval
23 24
          * when querying the DOM. Not used directly by the component.
24 25
          */
25
-        id: React.PropTypes.string
26
+        id: PropTypes.string
26 27
     };
27 28
 
28 29
     /**

+ 6
- 5
react/features/remote-video-menu/components/RemoteVideoMenuButton.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -16,28 +17,28 @@ export default class RemoteVideoMenuButton extends Component {
16 17
          * Text to display within the component that describes the onClick
17 18
          * action.
18 19
          */
19
-        buttonText: React.PropTypes.string,
20
+        buttonText: PropTypes.string,
20 21
 
21 22
         /**
22 23
          * Additional CSS classes to add to the component.
23 24
          */
24
-        displayClass: React.PropTypes.string,
25
+        displayClass: PropTypes.string,
25 26
 
26 27
         /**
27 28
          * The CSS classes for the icon that will display within the component.
28 29
          */
29
-        iconClass: React.PropTypes.string,
30
+        iconClass: PropTypes.string,
30 31
 
31 32
         /**
32 33
          * The id attribute to be added to the component's DOM for retrieval
33 34
          * when querying the DOM. Not used directly by the component.
34 35
          */
35
-        id: React.PropTypes.string,
36
+        id: PropTypes.string,
36 37
 
37 38
         /**
38 39
          * Callback to invoke when the component is clicked.
39 40
          */
40
-        onClick: React.PropTypes.func
41
+        onClick: PropTypes.func
41 42
     };
42 43
 
43 44
     /**

+ 11
- 10
react/features/remote-video-menu/components/RemoteVideoMenuTriggerButton.js Näytä tiedosto

@@ -1,5 +1,8 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
4
+import { Popover } from '../../base/popover';
5
+
3 6
 import {
4 7
     MuteButton,
5 8
     KickButton,
@@ -8,8 +11,6 @@ import {
8 11
     VolumeSlider
9 12
 } from './';
10 13
 
11
-import { Popover } from '../../base/popover';
12
-
13 14
 declare var $: Object;
14 15
 declare var interfaceConfig: Object;
15 16
 
@@ -25,44 +26,44 @@ class RemoteVideoMenuTriggerButton extends Component {
25 26
          * A value between 0 and 1 indicating the volume of the participant's
26 27
          * audio element.
27 28
          */
28
-        initialVolumeValue: React.PropTypes.number,
29
+        initialVolumeValue: PropTypes.number,
29 30
 
30 31
         /**
31 32
          * Whether or not the participant is currently muted.
32 33
          */
33
-        isAudioMuted: React.PropTypes.bool,
34
+        isAudioMuted: PropTypes.bool,
34 35
 
35 36
         /**
36 37
          * Whether or not the participant is a conference moderator.
37 38
          */
38
-        isModerator: React.PropTypes.bool,
39
+        isModerator: PropTypes.bool,
39 40
 
40 41
         /**
41 42
          * Callback to invoke when the popover has been displayed.
42 43
          */
43
-        onMenuDisplay: React.PropTypes.func,
44
+        onMenuDisplay: PropTypes.func,
44 45
 
45 46
         /**
46 47
          * Callback to invoke choosing to start a remote control session with
47 48
          * the participant.
48 49
          */
49
-        onRemoteControlToggle: React.PropTypes.func,
50
+        onRemoteControlToggle: PropTypes.func,
50 51
 
51 52
         /**
52 53
          * Callback to invoke when changing the level of the participant's
53 54
          * audio element.
54 55
          */
55
-        onVolumeChange: React.PropTypes.func,
56
+        onVolumeChange: PropTypes.func,
56 57
 
57 58
         /**
58 59
          * The ID for the participant on which the remote video menu will act.
59 60
          */
60
-        participantID: React.PropTypes.string,
61
+        participantID: PropTypes.string,
61 62
 
62 63
         /**
63 64
          * The current state of the participant's remote control session.
64 65
          */
65
-        remoteControlState: React.PropTypes.number
66
+        remoteControlState: PropTypes.number
66 67
     };
67 68
 
68 69
     /**

+ 3
- 2
react/features/remote-video-menu/components/VolumeSlider.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -25,12 +26,12 @@ class VolumeSlider extends Component {
25 26
          * first mounts. Changes will be stored in state. The value should be a
26 27
          * number between 0 and 1.
27 28
          */
28
-        initialValue: React.PropTypes.number,
29
+        initialValue: PropTypes.number,
29 30
 
30 31
         /**
31 32
          * The callback to invoke when the audio slider value changes.
32 33
          */
33
-        onChange: React.PropTypes.func
34
+        onChange: PropTypes.func
34 35
     };
35 36
 
36 37
     /**

+ 1
- 1
react/features/room-lock/actions.js Näytä tiedosto

@@ -56,7 +56,7 @@ export function endRoomLockRequest(conference, password) {
56 56
  * @returns {{
57 57
  *     type: OPEN_DIALOG,
58 58
  *     component: Component,
59
- *     props: React.PropTypes
59
+ *     props: PropTypes
60 60
  * }}
61 61
  */
62 62
 export function _showPasswordDialog(conference) {

+ 4
- 3
react/features/room-lock/components/PasswordRequiredPrompt.native.js Näytä tiedosto

@@ -1,8 +1,9 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
3
-import { Dialog } from '../../base/dialog';
4 4
 
5 5
 import { setPassword } from '../../base/conference';
6
+import { Dialog } from '../../base/dialog';
6 7
 
7 8
 /**
8 9
  * Implements a React Component which prompts the user when a password is
@@ -20,8 +21,8 @@ class PasswordRequiredPrompt extends Component {
20 21
          *
21 22
          * @type {JitsiConference}
22 23
          */
23
-        conference: React.PropTypes.object,
24
-        dispatch: React.PropTypes.func
24
+        conference: PropTypes.object,
25
+        dispatch: PropTypes.func
25 26
     };
26 27
 
27 28
     /**

+ 4
- 3
react/features/room-lock/components/PasswordRequiredPrompt.web.js Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 import AKFieldText from '@atlaskit/field-text';
2
+import PropTypes from 'prop-types';
2 3
 import React, { Component } from 'react';
3 4
 import { connect } from 'react-redux';
4 5
 
@@ -22,9 +23,9 @@ class PasswordRequiredPrompt extends Component {
22 23
          *
23 24
          * @type {JitsiConference}
24 25
          */
25
-        conference: React.PropTypes.object,
26
-        dispatch: React.PropTypes.func,
27
-        t: React.PropTypes.func
26
+        conference: PropTypes.object,
27
+        dispatch: PropTypes.func,
28
+        t: PropTypes.func
28 29
     };
29 30
 
30 31
     /**

+ 4
- 2
react/features/room-lock/components/RoomLockPrompt.native.js Näytä tiedosto

@@ -1,5 +1,7 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { connect } from 'react-redux';
4
+
3 5
 import { Dialog } from '../../base/dialog';
4 6
 
5 7
 import { endRoomLockRequest } from '../actions';
@@ -20,8 +22,8 @@ class RoomLockPrompt extends Component {
20 22
          *
21 23
          * @type {JitsiConference}
22 24
          */
23
-        conference: React.PropTypes.object,
24
-        dispatch: React.PropTypes.func
25
+        conference: PropTypes.object,
26
+        dispatch: PropTypes.func
25 27
     };
26 28
 
27 29
     /**

+ 4
- 2
react/features/speaker-stats/components/SpeakerStats.js Näytä tiedosto

@@ -1,9 +1,11 @@
1 1
 /* global APP, interfaceConfig */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import { Dialog } from '../../base/dialog';
6 7
 import { translate } from '../../base/i18n';
8
+
7 9
 import SpeakerStatsItem from './SpeakerStatsItem';
8 10
 import SpeakerStatsLabels from './SpeakerStatsLabels';
9 11
 
@@ -22,12 +24,12 @@ class SpeakerStats extends Component {
22 24
         /**
23 25
          * The JitsiConference from which stats will be pulled.
24 26
          */
25
-        conference: React.PropTypes.object,
27
+        conference: PropTypes.object,
26 28
 
27 29
         /**
28 30
          * The function to translate human-readable text.
29 31
          */
30
-        t: React.PropTypes.func
32
+        t: PropTypes.func
31 33
     };
32 34
 
33 35
     /**

+ 5
- 4
react/features/speaker-stats/components/SpeakerStatsItem.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import TimeElapsed from './TimeElapsed';
@@ -17,22 +18,22 @@ class SpeakerStatsItem extends Component {
17 18
         /**
18 19
          * The name of the participant.
19 20
          */
20
-        displayName: React.PropTypes.string,
21
+        displayName: PropTypes.string,
21 22
 
22 23
         /**
23 24
          * The total milliseconds the participant has been dominant speaker.
24 25
          */
25
-        dominantSpeakerTime: React.PropTypes.number,
26
+        dominantSpeakerTime: PropTypes.number,
26 27
 
27 28
         /**
28 29
          * True if the participant is no longer in the meeting.
29 30
          */
30
-        hasLeft: React.PropTypes.bool,
31
+        hasLeft: PropTypes.bool,
31 32
 
32 33
         /**
33 34
          * True if the participant is currently the dominant speaker.
34 35
          */
35
-        isDominantSpeaker: React.PropTypes.bool
36
+        isDominantSpeaker: PropTypes.bool
36 37
     };
37 38
 
38 39
     /**

+ 2
- 1
react/features/speaker-stats/components/SpeakerStatsLabels.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate } from '../../base/i18n';
@@ -17,7 +18,7 @@ class SpeakerStatsLabels extends Component {
17 18
         /**
18 19
          * The function to translate human-readable text.
19 20
          */
20
-        t: React.PropTypes.func
21
+        t: PropTypes.func
21 22
     };
22 23
 
23 24
     /**

+ 3
- 2
react/features/speaker-stats/components/TimeElapsed.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 import { translate } from '../../base/i18n';
@@ -19,12 +20,12 @@ class TimeElapsed extends Component {
19 20
         /**
20 21
          * The function to translate human-readable text.
21 22
          */
22
-        t: React.PropTypes.func,
23
+        t: PropTypes.func,
23 24
 
24 25
         /**
25 26
          * The milliseconds to be converted into a human-readable format.
26 27
          */
27
-        time: React.PropTypes.number
28
+        time: PropTypes.number
28 29
     };
29 30
 
30 31
     /**

+ 8
- 7
react/features/toolbox/components/AbstractToolbarButton.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 
3 4
 /**
@@ -15,31 +16,31 @@ export default class AbstractToolbarButton extends Component {
15 16
         /**
16 17
          * The name of the Icon of this {@code AbstractToolbarButton}.
17 18
          */
18
-        iconName: React.PropTypes.string,
19
+        iconName: PropTypes.string,
19 20
 
20 21
         /**
21 22
          * The style of the Icon of this {@code AbstractToolbarButton}.
22 23
          */
23
-        iconStyle: React.PropTypes.object,
24
+        iconStyle: PropTypes.object,
24 25
 
25 26
         /**
26 27
          * On click handler.
27 28
          */
28
-        onClick: React.PropTypes.func,
29
+        onClick: PropTypes.func,
29 30
 
30 31
         /**
31 32
          * {@code AbstractToolbarButton} styles.
32 33
          */
33 34
         style:
34
-            React.PropTypes.oneOfType([
35
-                React.PropTypes.array,
36
-                React.PropTypes.object
35
+            PropTypes.oneOfType([
36
+                PropTypes.array,
37
+                PropTypes.object
37 38
             ]),
38 39
 
39 40
         /**
40 41
          * The color underlaying the button.
41 42
          */
42
-        underlayColor: React.PropTypes.any
43
+        underlayColor: PropTypes.any
43 44
     };
44 45
 
45 46
     /**

+ 3
- 2
react/features/toolbox/components/PrimaryToolbar.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -20,12 +21,12 @@ class PrimaryToolbar extends Component {
20 21
         /**
21 22
          * Contains toolbar buttons for primary toolbar.
22 23
          */
23
-        _primaryToolbarButtons: React.PropTypes.instanceOf(Map),
24
+        _primaryToolbarButtons: PropTypes.instanceOf(Map),
24 25
 
25 26
         /**
26 27
          * Shows whether toolbox is visible.
27 28
          */
28
-        _visible: React.PropTypes.bool
29
+        _visible: PropTypes.bool
29 30
     };
30 31
 
31 32
     state: Object;

+ 4
- 3
react/features/toolbox/components/ProfileButton.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -41,18 +42,18 @@ class ProfileButton extends Component {
41 42
         /**
42 43
          * Whether the button support clicking or not.
43 44
          */
44
-        _unclickable: React.PropTypes.bool,
45
+        _unclickable: PropTypes.bool,
45 46
 
46 47
         /**
47 48
          * Whether the side panel is opened or not.
48 49
          */
49
-        toggled: React.PropTypes.bool,
50
+        toggled: PropTypes.bool,
50 51
 
51 52
         /**
52 53
          * From which side tooltips should display. Will be re-used for
53 54
          * displaying the inline dialog for video quality adjustment.
54 55
          */
55
-        tooltipPosition: React.PropTypes.string
56
+        tooltipPosition: PropTypes.string
56 57
     };
57 58
 
58 59
     /**

+ 6
- 5
react/features/toolbox/components/SecondaryToolbar.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -34,28 +35,28 @@ class SecondaryToolbar extends Component {
34 35
          * Application ID for callstats.io API. The {@code FeedbackButton} will
35 36
          * display if defined.
36 37
          */
37
-        _callStatsID: React.PropTypes.string,
38
+        _callStatsID: PropTypes.string,
38 39
 
39 40
         /**
40 41
          * The indicator which determines whether the local participant is a
41 42
          * guest in the conference.
42 43
          */
43
-        _isGuest: React.PropTypes.bool,
44
+        _isGuest: PropTypes.bool,
44 45
 
45 46
         /**
46 47
          * Handler dispatching toggle toolbar container.
47 48
          */
48
-        _onSideToolbarContainerToggled: React.PropTypes.func,
49
+        _onSideToolbarContainerToggled: PropTypes.func,
49 50
 
50 51
         /**
51 52
          * Contains map of secondary toolbar buttons.
52 53
          */
53
-        _secondaryToolbarButtons: React.PropTypes.instanceOf(Map),
54
+        _secondaryToolbarButtons: PropTypes.instanceOf(Map),
54 55
 
55 56
         /**
56 57
          * Shows whether toolbox is visible.
57 58
          */
58
-        _visible: React.PropTypes.bool
59
+        _visible: PropTypes.bool
59 60
     };
60 61
 
61 62
     /**

+ 5
- 4
react/features/toolbox/components/StatelessToolbar.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 /**
@@ -19,22 +20,22 @@ export default class StatelessToolbar extends Component {
19 20
         /**
20 21
          * Children of current React component.
21 22
          */
22
-        children: React.PropTypes.node,
23
+        children: PropTypes.node,
23 24
 
24 25
         /**
25 26
          * Toolbar's class name.
26 27
          */
27
-        className: React.PropTypes.string,
28
+        className: PropTypes.string,
28 29
 
29 30
         /**
30 31
          *  Handler for mouse out event.
31 32
          */
32
-        onMouseOut: React.PropTypes.func,
33
+        onMouseOut: PropTypes.func,
33 34
 
34 35
         /**
35 36
          * Handler for mouse over event.
36 37
          */
37
-        onMouseOver: React.PropTypes.func
38
+        onMouseOver: PropTypes.func
38 39
     };
39 40
 
40 41
     /**

+ 2
- 1
react/features/toolbox/components/StatelessToolbarButton.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React from 'react';
4 5
 
5 6
 import AbstractToolbarButton from './AbstractToolbarButton';
@@ -68,7 +69,7 @@ export default class StatelessToolbarButton extends AbstractToolbarButton {
68 69
         /**
69 70
          * Object describing button.
70 71
          */
71
-        button: React.PropTypes.object.isRequired
72
+        button: PropTypes.object.isRequired
72 73
     };
73 74
 
74 75
     /**

+ 6
- 6
react/features/toolbox/components/Toolbar.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -30,29 +31,28 @@ class Toolbar extends Component {
30 31
         /**
31 32
          * Children of current React component.
32 33
          */
33
-        children: React.PropTypes.element,
34
+        children: PropTypes.element,
34 35
 
35 36
         /**
36 37
          * Toolbar's class name.
37 38
          */
38
-        className: React.PropTypes.string,
39
+        className: PropTypes.string,
39 40
 
40 41
         /**
41 42
          * Used to dispatch an action when a button is clicked or on mouse
42 43
          * out/in event.
43 44
          */
44
-        dispatch: React.PropTypes.func,
45
+        dispatch: PropTypes.func,
45 46
 
46 47
         /**
47 48
          * Map with toolbar buttons.
48 49
          */
49
-        toolbarButtons: React.PropTypes.instanceOf(Map),
50
+        toolbarButtons: PropTypes.instanceOf(Map),
50 51
 
51 52
         /**
52 53
          * Indicates the position of the tooltip.
53 54
          */
54
-        tooltipPosition:
55
-            React.PropTypes.oneOf([ 'bottom', 'left', 'right', 'top' ])
55
+        tooltipPosition: PropTypes.oneOf([ 'bottom', 'left', 'right', 'top' ])
56 56
     };
57 57
 
58 58
     /**

+ 2
- 1
react/features/toolbox/components/ToolbarButton.native.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React from 'react';
2 3
 import { TouchableHighlight } from 'react-native';
3 4
 import { connect } from 'react-redux';
@@ -23,7 +24,7 @@ class ToolbarButton extends AbstractToolbarButton {
23 24
         /**
24 25
          * Indicates whether this {@code ToolbarButton} is disabled.
25 26
          */
26
-        disabled: React.PropTypes.bool
27
+        disabled: PropTypes.bool
27 28
     };
28 29
 
29 30
     /**

+ 6
- 7
react/features/toolbox/components/ToolbarButton.web.js Näytä tiedosto

@@ -2,12 +2,12 @@
2 2
 
3 3
 import AKInlineDialog from '@atlaskit/inline-dialog';
4 4
 import { Tooltip } from '@atlaskit/tooltip';
5
+import PropTypes from 'prop-types';
5 6
 import React, { Component } from 'react';
6 7
 
7 8
 import { translate } from '../../base/i18n';
8 9
 
9 10
 import { isButtonEnabled } from '../functions';
10
-
11 11
 import StatelessToolbarButton from './StatelessToolbarButton';
12 12
 
13 13
 declare var APP: Object;
@@ -60,28 +60,27 @@ class ToolbarButton extends Component {
60 60
         /**
61 61
          * Object describing button.
62 62
          */
63
-        button: React.PropTypes.object.isRequired,
63
+        button: PropTypes.object.isRequired,
64 64
 
65 65
         /**
66 66
          * Handler for component mount.
67 67
          */
68
-        onMount: React.PropTypes.func,
68
+        onMount: PropTypes.func,
69 69
 
70 70
         /**
71 71
          * Handler for component unmount.
72 72
          */
73
-        onUnmount: React.PropTypes.func,
73
+        onUnmount: PropTypes.func,
74 74
 
75 75
         /**
76 76
          * Translation helper function.
77 77
          */
78
-        t: React.PropTypes.func,
78
+        t: PropTypes.func,
79 79
 
80 80
         /**
81 81
          * Indicates the position of the tooltip.
82 82
          */
83
-        tooltipPosition:
84
-            React.PropTypes.oneOf([ 'bottom', 'left', 'right', 'top' ])
83
+        tooltipPosition: PropTypes.oneOf([ 'bottom', 'left', 'right', 'top' ])
85 84
     };
86 85
 
87 86
     /**

+ 12
- 11
react/features/toolbox/components/Toolbox.native.js Näytä tiedosto

@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
1 2
 import React, { Component } from 'react';
2 3
 import { View } from 'react-native';
3 4
 import { connect } from 'react-redux';
@@ -45,55 +46,55 @@ class Toolbox extends Component {
45 46
         /**
46 47
          * Flag showing that audio is muted.
47 48
          */
48
-        _audioMuted: React.PropTypes.bool,
49
+        _audioMuted: PropTypes.bool,
49 50
 
50 51
         /**
51 52
          * Flag showing whether the audio-only mode is in use.
52 53
          */
53
-        _audioOnly: React.PropTypes.bool,
54
+        _audioOnly: PropTypes.bool,
54 55
 
55 56
         /**
56 57
          * Flag showing whether room is locked.
57 58
          */
58
-        _locked: React.PropTypes.bool,
59
+        _locked: PropTypes.bool,
59 60
 
60 61
         /**
61 62
          * Handler for hangup.
62 63
          */
63
-        _onHangup: React.PropTypes.func,
64
+        _onHangup: PropTypes.func,
64 65
 
65 66
         /**
66 67
          * Sets the lock i.e. password protection of the conference/room.
67 68
          */
68
-        _onRoomLock: React.PropTypes.func,
69
+        _onRoomLock: PropTypes.func,
69 70
 
70 71
         /**
71 72
          * Begins the UI procedure to share the conference/room URL.
72 73
          */
73
-        _onShareRoom: React.PropTypes.func,
74
+        _onShareRoom: PropTypes.func,
74 75
 
75 76
         /**
76 77
          * Toggles the audio-only flag of the conference.
77 78
          */
78
-        _onToggleAudioOnly: React.PropTypes.func,
79
+        _onToggleAudioOnly: PropTypes.func,
79 80
 
80 81
         /**
81 82
          * Switches between the front/user-facing and back/environment-facing
82 83
          * cameras.
83 84
          */
84
-        _onToggleCameraFacingMode: React.PropTypes.func,
85
+        _onToggleCameraFacingMode: PropTypes.func,
85 86
 
86 87
         /**
87 88
          * Flag showing whether video is muted.
88 89
          */
89
-        _videoMuted: React.PropTypes.bool,
90
+        _videoMuted: PropTypes.bool,
90 91
 
91 92
         /**
92 93
          * Flag showing whether toolbar is visible.
93 94
          */
94
-        _visible: React.PropTypes.bool,
95
+        _visible: PropTypes.bool,
95 96
 
96
-        dispatch: React.PropTypes.func
97
+        dispatch: PropTypes.func
97 98
     };
98 99
 
99 100
     /**

+ 7
- 6
react/features/toolbox/components/Toolbox.web.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 import { connect } from 'react-redux';
5 6
 
@@ -31,32 +32,32 @@ class Toolbox extends Component {
31 32
         /**
32 33
          * Indicates if the toolbox should always be visible.
33 34
          */
34
-        _alwaysVisible: React.PropTypes.bool,
35
+        _alwaysVisible: PropTypes.bool,
35 36
 
36 37
         /**
37 38
          * Handler dispatching setting default buttons action.
38 39
          */
39
-        _setDefaultToolboxButtons: React.PropTypes.func,
40
+        _setDefaultToolboxButtons: PropTypes.func,
40 41
 
41 42
         /**
42 43
          * Handler dispatching reset always visible toolbox action.
43 44
          */
44
-        _setToolboxAlwaysVisible: React.PropTypes.func,
45
+        _setToolboxAlwaysVisible: PropTypes.func,
45 46
 
46 47
         /**
47 48
          * Represents conference subject.
48 49
          */
49
-        _subject: React.PropTypes.string,
50
+        _subject: PropTypes.string,
50 51
 
51 52
         /**
52 53
          * Flag showing whether to set subject slide in animation.
53 54
          */
54
-        _subjectSlideIn: React.PropTypes.bool,
55
+        _subjectSlideIn: PropTypes.bool,
55 56
 
56 57
         /**
57 58
          * Property containing toolbox timeout id.
58 59
          */
59
-        _timeoutID: React.PropTypes.number
60
+        _timeoutID: PropTypes.number
60 61
     };
61 62
 
62 63
     /**

+ 2
- 1
react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 /* @flow */
2 2
 
3
+import PropTypes from 'prop-types';
3 4
 import React, { Component } from 'react';
4 5
 
5 6
 import { translate } from '../../base/i18n';
@@ -34,7 +35,7 @@ class UnsupportedDesktopBrowser extends Component {
34 35
          * @public
35 36
          * @type {Function}
36 37
          */
37
-        t: React.PropTypes.func
38
+        t: PropTypes.func
38 39
     };
39 40
 
40 41
     /**

+ 0
- 0
react/features/unsupported-browser/components/UnsupportedMobileBrowser.js Näytä tiedosto


Some files were not shown because too many files changed in this diff

Loading…
Peruuta
Tallenna