Pārlūkot izejas kodu

Import PropTypes from prop-types

Prepare for React 16.
j8
Lyubo Marinov 7 gadus atpakaļ
vecāks
revīzija
2e2129fa44
100 mainītis faili ar 484 papildinājumiem un 392 dzēšanām
  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 Parādīt failu

1
 /* global __DEV__ */
1
 /* global __DEV__ */
2
 
2
 
3
-import React from 'react';
3
+import PropTypes from 'prop-types';
4
 import { Linking } from 'react-native';
4
 import { Linking } from 'react-native';
5
 
5
 
6
 import '../../analytics';
6
 import '../../analytics';
35
          * page is rendered when the {@link App} is not at a location (URL)
35
          * page is rendered when the {@link App} is not at a location (URL)
36
          * identifying a Jitsi Meet conference/room.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
30
          *
31
          *
31
          * @type {number}
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 Parādīt failu

13
  * {
13
  * {
14
  *     type: OPEN_DIALOG,
14
  *     type: OPEN_DIALOG,
15
  *     component: React.Component,
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 Parādīt failu

1
 import AKButton from '@atlaskit/button';
1
 import AKButton from '@atlaskit/button';
2
 import AKButtonGroup from '@atlaskit/button-group';
2
 import AKButtonGroup from '@atlaskit/button-group';
3
 import ModalDialog from '@atlaskit/modal-dialog';
3
 import ModalDialog from '@atlaskit/modal-dialog';
4
+import PropTypes from 'prop-types';
4
 import React, { Component } from 'react';
5
 import React, { Component } from 'react';
5
 
6
 
6
 import { translate } from '../../i18n';
7
 import { translate } from '../../i18n';
34
         /**
35
         /**
35
          * This is the body of the dialog, the component children.
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
          * Disables dismissing the dialog when the blanket is clicked. Enabled
41
          * Disables dismissing the dialog when the blanket is clicked. Enabled
41
          * by default.
42
          * by default.
42
          */
43
          */
43
-        disableBlanketClickDismiss: React.PropTypes.bool,
44
+        disableBlanketClickDismiss: PropTypes.bool,
44
 
45
 
45
         /**
46
         /**
46
          * Whether the dialog is modal. This means clicking on the blanket will
47
          * Whether the dialog is modal. This means clicking on the blanket will
47
          * leave the dialog open. No cancel button.
48
          * leave the dialog open. No cancel button.
48
          */
49
          */
49
-        isModal: React.PropTypes.bool,
50
+        isModal: PropTypes.bool,
50
 
51
 
51
         /**
52
         /**
52
          * Disables rendering of the submit button.
53
          * Disables rendering of the submit button.
53
          */
54
          */
54
-        submitDisabled: React.PropTypes.bool,
55
+        submitDisabled: PropTypes.bool,
55
 
56
 
56
         /**
57
         /**
57
          * Width of the dialog, can be:
58
          * Width of the dialog, can be:
60
          * - integer value for pixel width
61
          * - integer value for pixel width
61
          * - string value for percentage
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
22
          *
23
          *
23
          * @type {string}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { trackVideoStarted } from '../../tracks';
4
 import { trackVideoStarted } from '../../tracks';
18
      * @static
19
      * @static
19
      */
20
      */
20
     static propTypes = {
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
          * The z-order of the Video of AbstractVideoTrack in the stacking space
29
          * The z-order of the Video of AbstractVideoTrack in the stacking space
29
          * of all Videos. For more details, refer to the zOrder property of the
30
          * of all Videos. For more details, refer to the zOrder property of the
30
          * Video class for React Native.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { RTCView } from 'react-native-webrtc';
5
 import { RTCView } from 'react-native-webrtc';
5
 
6
 
17
      * @static
18
      * @static
18
      */
19
      */
19
     static propTypes = {
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
          * Similarly to the CSS property z-index, specifies the z-order of this
26
          * Similarly to the CSS property z-index, specifies the z-order of this
44
          * values: 0 for the remote video(s) which appear in the background, and
45
          * values: 0 for the remote video(s) which appear in the background, and
45
          * 1 for the local video(s) which appear above the remote video(s).
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
26
         /**
27
         /**
27
          * CSS classes to add to the video element.
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
          * The value of the id attribute of the video. Used by the torture tests
33
          * The value of the id attribute of the video. Used by the torture tests
33
          * to locate video elements.
34
          * to locate video elements.
34
          */
35
          */
35
-        id: React.PropTypes.string,
36
+        id: PropTypes.string,
36
 
37
 
37
         /**
38
         /**
38
          * Optional callback to invoke once the video starts playing.
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
          * The JitsiLocalTrack to display.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React from 'react';
2
 import React from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
36
         /**
37
         /**
37
          * CSS classes to add to the video element.
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
          * The value of the id attribute of the video. Used by the torture tests
43
          * The value of the id attribute of the video. Used by the torture tests
43
          * to locate video elements.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { View } from 'react-native';
3
 import { View } from 'react-native';
3
 
4
 
34
          * The optional style to add to the {@link Avatar} in order to customize
35
          * The optional style to add to the {@link Avatar} in order to customize
35
          * its base look (and feel).
36
          * its base look (and feel).
36
          */
37
          */
37
-        style: React.PropTypes.object,
38
+        style: PropTypes.object,
38
 
39
 
39
         /**
40
         /**
40
          * The URI of the {@link Avatar}.
41
          * The URI of the {@link Avatar}.
41
          *
42
          *
42
          * @type {string}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
15
          *
16
          *
16
          * @type {string}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
34
          *
35
          *
35
          * @private
36
          * @private
36
          */
37
          */
37
-        _audioOnly: React.PropTypes.bool,
38
+        _audioOnly: PropTypes.bool,
38
 
39
 
39
         /**
40
         /**
40
          * The source (e.g. URI, URL) of the avatar image of the participant
41
          * The source (e.g. URI, URL) of the avatar image of the participant
42
          *
43
          *
43
          * @private
44
          * @private
44
          */
45
          */
45
-        _avatar: React.PropTypes.string,
46
+        _avatar: PropTypes.string,
46
 
47
 
47
         /**
48
         /**
48
          * The connection status of the participant. Her video will only be
49
          * The connection status of the participant. Her video will only be
51
          *
52
          *
52
          * @private
53
          * @private
53
          */
54
          */
54
-        _connectionStatus: React.PropTypes.string,
55
+        _connectionStatus: PropTypes.string,
55
 
56
 
56
         /**
57
         /**
57
          * The video Track of the participant with {@link #participantId}.
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
          * The style, if any, of the avatar in addition to the default style.
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
          * The ID of the participant (to be) depicted by ParticipantView.
68
          * The ID of the participant (to be) depicted by ParticipantView.
68
          *
69
          *
69
          * @public
70
          * @public
70
          */
71
          */
71
-        participantId: React.PropTypes.string,
72
+        participantId: PropTypes.string,
72
 
73
 
73
         /**
74
         /**
74
          * True if the avatar of the depicted participant is to be shown should
75
          * True if the avatar of the depicted participant is to be shown should
75
          * the avatar be available and the video of the participant is not to be
76
          * the avatar be available and the video of the participant is not to be
76
          * shown; otherwise, false. If undefined, defaults to true.
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
          * True if the video of the depicted participant is to be shown should
82
          * True if the video of the depicted participant is to be shown should
82
          * the video be available. If undefined, defaults to true.
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
          * The style, if any, to apply to ParticipantView in addition to its
88
          * The style, if any, to apply to ParticipantView in addition to its
88
          * default style.
89
          * default style.
89
          */
90
          */
90
-        style: React.PropTypes.object,
91
+        style: PropTypes.object,
91
 
92
 
92
         /**
93
         /**
93
          * The z-order of the Video of ParticipantView in the stacking space of
94
          * The z-order of the Video of ParticipantView in the stacking space of
94
          * all Videos. For more details, refer to the zOrder property of the
95
          * all Videos. For more details, refer to the zOrder property of the
95
          * Video class for React Native.
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 Parādīt failu

1
 import InlineDialog from '@atlaskit/inline-dialog';
1
 import InlineDialog from '@atlaskit/inline-dialog';
2
+import PropTypes from 'prop-types';
2
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
3
 
4
 
4
 /**
5
 /**
52
         /**
53
         /**
53
          * A child React Element to use as the trigger for showing the dialog.
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
          * Additional CSS classnames to apply to the root of the {@code Popover}
59
          * Additional CSS classnames to apply to the root of the {@code Popover}
59
          * component.
60
          * component.
60
          */
61
          */
61
-        className: React.PropTypes.string,
62
+        className: PropTypes.string,
62
 
63
 
63
         /**
64
         /**
64
          * The ReactElement to display within the dialog.
65
          * The ReactElement to display within the dialog.
65
          */
66
          */
66
-        content: React.PropTypes.object,
67
+        content: PropTypes.object,
67
 
68
 
68
         /**
69
         /**
69
          * An id attribute to apply to the root of the {@code Popover}
70
          * An id attribute to apply to the root of the {@code Popover}
70
          * component.
71
          * component.
71
          */
72
          */
72
-        id: React.PropTypes.string,
73
+        id: PropTypes.string,
73
 
74
 
74
         /**
75
         /**
75
          * Callback to invoke when the popover has opened.
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
          * From which side of the dialog trigger the dialog should display. The
81
          * From which side of the dialog trigger the dialog should display. The
81
          * value will be passed to {@code InlineDialog}.
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 Parādīt failu

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

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { Linking } from 'react-native';
3
 import { Linking } from 'react-native';
3
 
4
 
17
         /**
18
         /**
18
          * The children to be displayed within this Link.
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
          * Notifies that this Link failed to open the URL associated with it.
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
          * The CSS style to be applied to this Link for the purposes of display.
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
          * The URL to be opened when this Link is clicked/pressed.
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 Parādīt failu

1
 import AKButton from '@atlaskit/button';
1
 import AKButton from '@atlaskit/button';
2
+import PropTypes from 'prop-types';
2
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
3
 
4
 
4
 import { translate } from '../../../i18n';
5
 import { translate } from '../../../i18n';
18
         /**
19
         /**
19
          * Allows to retry the call that previously didn't succeed.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

2
 import AKInlineDialog from '@atlaskit/inline-dialog';
2
 import AKInlineDialog from '@atlaskit/inline-dialog';
3
 import Spinner from '@atlaskit/spinner';
3
 import Spinner from '@atlaskit/spinner';
4
 import _debounce from 'lodash/debounce';
4
 import _debounce from 'lodash/debounce';
5
+import PropTypes from 'prop-types';
5
 import React, { Component } from 'react';
6
 import React, { Component } from 'react';
6
 
7
 
7
 import InlineDialogFailure from './InlineDialogFailure';
8
 import InlineDialogFailure from './InlineDialogFailure';
20
         /**
21
         /**
21
          * The default value of the selected item.
22
          * The default value of the selected item.
22
          */
23
          */
23
-        defaultValue: React.PropTypes.array,
24
+        defaultValue: PropTypes.array,
24
 
25
 
25
         /**
26
         /**
26
          * Indicates if the component is disabled.
27
          * Indicates if the component is disabled.
27
          */
28
          */
28
-        isDisabled: React.PropTypes.bool,
29
+        isDisabled: PropTypes.bool,
29
 
30
 
30
         /**
31
         /**
31
          * The text to show when no matches are found.
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
          * The function called when the selection changes.
37
          * The function called when the selection changes.
37
          */
38
          */
38
-        onSelectionChange: React.PropTypes.func,
39
+        onSelectionChange: PropTypes.func,
39
 
40
 
40
         /**
41
         /**
41
          * The placeholder text of the input component.
42
          * The placeholder text of the input component.
42
          */
43
          */
43
-        placeholder: React.PropTypes.string,
44
+        placeholder: PropTypes.string,
44
 
45
 
45
         /**
46
         /**
46
          * The service providing the search.
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
         }).isRequired,
52
         }).isRequired,
52
 
53
 
53
         /**
54
         /**
54
          * Indicates if the component should fit the container.
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
          * Indicates if we should focus.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect as reactReduxConnect } from 'react-redux';
5
 import { connect as reactReduxConnect } from 'react-redux';
5
 
6
 
27
      * @static
28
      * @static
28
      */
29
      */
29
     static propTypes = {
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 Parādīt failu

1
 /* global APP */
1
 /* global APP */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 import UIEvents from '../../../../service/UI/UIEvents';
6
 import UIEvents from '../../../../service/UI/UIEvents';
22
         /**
23
         /**
23
          * The link to the participant's avatar image.
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
          * An id attribute to set on the root of {@code ContactListItem}. Used
29
          * An id attribute to set on the root of {@code ContactListItem}. Used
29
          * by the torture tests.
30
          * by the torture tests.
30
          */
31
          */
31
-        id: React.PropTypes.string,
32
+        id: PropTypes.string,
32
 
33
 
33
         /**
34
         /**
34
          * The participant's display name.
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 Parādīt failu

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

+ 2
- 1
react/features/contact-list/components/ParticipantCounter.web.js Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
19
         /**
20
         /**
20
          * The number of participants in the conference.
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 Parādīt failu

1
 import Tabs from '@atlaskit/tabs';
1
 import Tabs from '@atlaskit/tabs';
2
+import PropTypes from 'prop-types';
2
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
3
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
4
 
5
 
57
         /**
58
         /**
58
          * Used to request DesktopCapturerSources.
59
          * Used to request DesktopCapturerSources.
59
          */
60
          */
60
-        dispatch: React.PropTypes.func,
61
+        dispatch: PropTypes.func,
61
 
62
 
62
         /**
63
         /**
63
          * The callback to be invoked when the component is closed or when
64
          * The callback to be invoked when the component is closed or when
64
          * a DesktopCapturerSource has been chosen.
65
          * a DesktopCapturerSource has been chosen.
65
          */
66
          */
66
-        onSourceChoose: React.PropTypes.func,
67
+        onSourceChoose: PropTypes.func,
67
 
68
 
68
         /**
69
         /**
69
          * An object with options related to desktop sharing.
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
          * An object with arrays of DesktopCapturerSources. The key should be
75
          * An object with arrays of DesktopCapturerSources. The key should be
75
          * the source type.
76
          * the source type.
76
          */
77
          */
77
-        sources: React.PropTypes.object,
78
+        sources: PropTypes.object,
78
 
79
 
79
         /**
80
         /**
80
          * Used to obtain translations.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import DesktopSourcePreview from './DesktopSourcePreview';
4
 import DesktopSourcePreview from './DesktopSourcePreview';
17
         /**
18
         /**
18
          * The handler to be invoked when a DesktopSourcePreview is clicked.
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
          * The handler to be invoked when a DesktopSourcePreview is double
24
          * The handler to be invoked when a DesktopSourcePreview is double
24
          * clicked.
25
          * clicked.
25
          */
26
          */
26
-        onDoubleClick: React.PropTypes.func,
27
+        onDoubleClick: PropTypes.func,
27
 
28
 
28
         /**
29
         /**
29
          * The id of the DesktopCapturerSource that is currently selected.
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
          * An array of DesktopCapturerSources.
35
          * An array of DesktopCapturerSources.
35
          */
36
          */
36
-        sources: React.PropTypes.array,
37
+        sources: PropTypes.array,
37
 
38
 
38
         /**
39
         /**
39
          * The source type of the DesktopCapturerSources to display.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
16
          * The callback to invoke when the component is clicked. The id of
17
          * The callback to invoke when the component is clicked. The id of
17
          * the DesktopCapturerSource will be passed in.
18
          * the DesktopCapturerSource will be passed in.
18
          */
19
          */
19
-        onClick: React.PropTypes.func,
20
+        onClick: PropTypes.func,
20
 
21
 
21
         /**
22
         /**
22
          * The callback to invoke when the component is double clicked. The id
23
          * The callback to invoke when the component is double clicked. The id
23
          * of the DesktopCapturerSource will be passed in.
24
          * of the DesktopCapturerSource will be passed in.
24
          */
25
          */
25
-        onDoubleClick: React.PropTypes.func,
26
+        onDoubleClick: PropTypes.func,
26
 
27
 
27
         /**
28
         /**
28
          * The indicator which determines whether this DesktopSourcePreview is
29
          * The indicator which determines whether this DesktopSourcePreview is
29
          * selected. If true, the 'is-selected' CSS class will be added to the
30
          * selected. If true, the 'is-selected' CSS class will be added to the
30
          * Component.
31
          * Component.
31
          */
32
          */
32
-        selected: React.PropTypes.bool,
33
+        selected: PropTypes.bool,
33
 
34
 
34
         /**
35
         /**
35
          * The DesktopCapturerSource to display.
36
          * The DesktopCapturerSource to display.
36
          */
37
          */
37
-        source: React.PropTypes.object,
38
+        source: PropTypes.object,
38
 
39
 
39
         /**
40
         /**
40
          * The source type of the DesktopCapturerSources to display.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { PureComponent } from 'react';
2
 import React, { PureComponent } from 'react';
2
 
3
 
3
 import { JitsiTrackEvents } from '../../base/lib-jitsi-meet';
4
 import { JitsiTrackEvents } from '../../base/lib-jitsi-meet';
15
         /*
16
         /*
16
          * The JitsiLocalTrack to show an audio level meter for.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate } from '../../base/i18n';
4
 import { translate } from '../../base/i18n';
19
         /**
20
         /**
20
          * The device id of the audio output device to use.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
26
          * All known audio and video devices split by type. This prop comes from
27
          * All known audio and video devices split by type. This prop comes from
27
          * the app state.
28
          * the app state.
28
          */
29
          */
29
-        _availableDevices: React.PropTypes.object,
30
+        _availableDevices: PropTypes.object,
30
 
31
 
31
         /**
32
         /**
32
          * Device id for the current audio input device. This device will be set
33
          * Device id for the current audio input device. This device will be set
33
          * as the default audio input device to preview.
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
          * Device id for the current audio output device. This device will be
39
          * Device id for the current audio output device. This device will be
39
          * set as the default audio output device to preview.
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
          * Device id for the current video input device. This device will be set
45
          * Device id for the current video input device. This device will be set
45
          * as the default video input device to preview.
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
          * Whether or not the audio selector can be interacted with. If true,
51
          * Whether or not the audio selector can be interacted with. If true,
52
          * specifically used to prevent audio device changing in Firefox, which
53
          * specifically used to prevent audio device changing in Firefox, which
53
          * currently does not work due to a browser-side regression.
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
          * True if device changing is configured to be disallowed. Selectors
59
          * True if device changing is configured to be disallowed. Selectors
59
          * will display as disabled.
60
          * will display as disabled.
60
          */
61
          */
61
-        disableDeviceChange: React.PropTypes.bool,
62
+        disableDeviceChange: PropTypes.bool,
62
 
63
 
63
         /**
64
         /**
64
          * Invoked to notify the store of app state changes.
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
          * Function that checks whether or not a new audio input source can be
70
          * Function that checks whether or not a new audio input source can be
70
          * selected.
71
          * selected.
71
          */
72
          */
72
-        hasAudioPermission: React.PropTypes.func,
73
+        hasAudioPermission: PropTypes.func,
73
 
74
 
74
         /**
75
         /**
75
          * Function that checks whether or not a new video input sources can be
76
          * Function that checks whether or not a new video input sources can be
76
          * selected.
77
          * selected.
77
          */
78
          */
78
-        hasVideoPermission: React.PropTypes.func,
79
+        hasVideoPermission: PropTypes.func,
79
 
80
 
80
         /**
81
         /**
81
          * If true, the audio meter will not display. Necessary for browsers or
82
          * If true, the audio meter will not display. Necessary for browsers or
82
          * configurations that do not support local stats to prevent a
83
          * configurations that do not support local stats to prevent a
83
          * non-responsive mic preview from displaying.
84
          * non-responsive mic preview from displaying.
84
          */
85
          */
85
-        hideAudioInputPreview: React.PropTypes.bool,
86
+        hideAudioInputPreview: PropTypes.bool,
86
 
87
 
87
         /**
88
         /**
88
          * Whether or not the audio output source selector should display. If
89
          * Whether or not the audio output source selector should display. If
90
          * rendered. This is specifically used for hiding audio output on
91
          * rendered. This is specifically used for hiding audio output on
91
          * temasys browsers which do not support such change.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { StatelessDialog } from '../../base/dialog';
4
 import { StatelessDialog } from '../../base/dialog';
25
          * All known audio and video devices split by type. This prop comes from
26
          * All known audio and video devices split by type. This prop comes from
26
          * the app state.
27
          * the app state.
27
          */
28
          */
28
-        availableDevices: React.PropTypes.object,
29
+        availableDevices: PropTypes.object,
29
 
30
 
30
         /**
31
         /**
31
          * Closes the dialog.
32
          * Closes the dialog.
32
          */
33
          */
33
-        closeModal: React.PropTypes.func,
34
+        closeModal: PropTypes.func,
34
 
35
 
35
         /**
36
         /**
36
          * Device id for the current audio input device. This device will be set
37
          * Device id for the current audio input device. This device will be set
37
          * as the default audio input device to preview.
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
          * Device id for the current audio output device. This device will be
43
          * Device id for the current audio output device. This device will be
43
          * set as the default audio output device to preview.
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
          * Device id for the current video input device. This device will be set
49
          * Device id for the current video input device. This device will be set
49
          * as the default video input device to preview.
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
          * Whether or not the audio selector can be interacted with. If true,
55
          * Whether or not the audio selector can be interacted with. If true,
56
          * specifically used to prevent audio device changing in Firefox, which
57
          * specifically used to prevent audio device changing in Firefox, which
57
          * currently does not work due to a browser-side regression.
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
          * Disables dismissing the dialog when the blanket is clicked. Enabled
63
          * Disables dismissing the dialog when the blanket is clicked. Enabled
63
          * by default.
64
          * by default.
64
          */
65
          */
65
-        disableBlanketClickDismiss: React.PropTypes.bool,
66
+        disableBlanketClickDismiss: PropTypes.bool,
66
 
67
 
67
         /**
68
         /**
68
          * True if device changing is configured to be disallowed. Selectors
69
          * True if device changing is configured to be disallowed. Selectors
69
          * will display as disabled.
70
          * will display as disabled.
70
          */
71
          */
71
-        disableDeviceChange: React.PropTypes.bool,
72
+        disableDeviceChange: PropTypes.bool,
72
 
73
 
73
         /**
74
         /**
74
          * Function that checks whether or not a new audio input source can be
75
          * Function that checks whether or not a new audio input source can be
75
          * selected.
76
          * selected.
76
          */
77
          */
77
-        hasAudioPermission: React.PropTypes.func,
78
+        hasAudioPermission: PropTypes.func,
78
 
79
 
79
         /**
80
         /**
80
          * Function that checks whether or not a new video input sources can be
81
          * Function that checks whether or not a new video input sources can be
81
          * selected.
82
          * selected.
82
          */
83
          */
83
-        hasVideoPermission: React.PropTypes.func,
84
+        hasVideoPermission: PropTypes.func,
84
 
85
 
85
         /**
86
         /**
86
          * If true, the audio meter will not display. Necessary for browsers or
87
          * If true, the audio meter will not display. Necessary for browsers or
87
          * configurations that do not support local stats to prevent a
88
          * configurations that do not support local stats to prevent a
88
          * non-responsive mic preview from displaying.
89
          * non-responsive mic preview from displaying.
89
          */
90
          */
90
-        hideAudioInputPreview: React.PropTypes.bool,
91
+        hideAudioInputPreview: PropTypes.bool,
91
 
92
 
92
         /**
93
         /**
93
          * Whether or not the audio output source selector should display. If
94
          * Whether or not the audio output source selector should display. If
95
          * rendered. This is specifically used for hiding audio output on
96
          * rendered. This is specifically used for hiding audio output on
96
          * temasys browsers which do not support such change.
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
          * Function that sets the audio input device.
102
          * Function that sets the audio input device.
102
          */
103
          */
103
-        setAudioInputDevice: React.PropTypes.func,
104
+        setAudioInputDevice: PropTypes.func,
104
 
105
 
105
         /**
106
         /**
106
          * Function that sets the audio output device.
107
          * Function that sets the audio output device.
107
          */
108
          */
108
-        setAudioOutputDevice: React.PropTypes.func,
109
+        setAudioOutputDevice: PropTypes.func,
109
 
110
 
110
         /**
111
         /**
111
          * Function that sets the video input device.
112
          * Function that sets the video input device.
112
          */
113
          */
113
-        setVideoInputDevice: React.PropTypes.func,
114
+        setVideoInputDevice: PropTypes.func,
114
 
115
 
115
         /**
116
         /**
116
          * Invoked to obtain translated strings.
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 Parādīt failu

1
 import AKDropdownMenu from '@atlaskit/dropdown-menu';
1
 import AKDropdownMenu from '@atlaskit/dropdown-menu';
2
 import ExpandIcon from '@atlaskit/icon/glyph/expand';
2
 import ExpandIcon from '@atlaskit/icon/glyph/expand';
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
20
         /**
21
         /**
21
          * MediaDeviceInfos used for display in the select element.
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
          * If false, will return a selector with no selection options.
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
          * CSS class for the icon to the left of the dropdown trigger.
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
          * If true, will render the selector disabled with a default selection.
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
          * The translation key to display as a menu label.
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
          * The callback to invoke when a selection is made.
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
          * The default device to display as selected.
52
          * The default device to display as selected.
52
          */
53
          */
53
-        selectedDeviceId: React.PropTypes.string,
54
+        selectedDeviceId: PropTypes.string,
54
 
55
 
55
         /**
56
         /**
56
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { Video } from '../../base/media';
4
 import { Video } from '../../base/media';
21
          * An error message to display instead of a preview. Displaying an error
22
          * An error message to display instead of a preview. Displaying an error
22
          * will take priority over displaying a video preview.
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
          * The JitsiLocalTrack to display.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
13
         /**
14
         /**
14
          * The css style class name.
15
          * The css style class name.
15
          */
16
          */
16
-        className: React.PropTypes.string,
17
+        className: PropTypes.string,
17
 
18
 
18
         /**
19
         /**
19
          * The 2-letter country code.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
21
         /**
22
         /**
22
          * The redux state representing the list of dial-out codes.
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
          * Property indicating if a dial number is allowed.
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
          * The function performing the cancel action.
33
          * The function performing the cancel action.
33
          */
34
          */
34
-        cancel: React.PropTypes.func,
35
+        cancel: PropTypes.func,
35
 
36
 
36
         /**
37
         /**
37
          * The function performing the phone number validity check.
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
          * The function performing the dial action.
43
          * The function performing the dial action.
43
          */
44
          */
44
-        dial: React.PropTypes.func,
45
+        dial: PropTypes.func,
45
 
46
 
46
         /**
47
         /**
47
          * Invoked to obtain translated strings.
48
          * Invoked to obtain translated strings.
48
          */
49
          */
49
-        t: React.PropTypes.func
50
+        t: PropTypes.func
50
     };
51
     };
51
 
52
 
52
     /**
53
     /**
214
  * @param {Object} state - The Redux state.
215
  * @param {Object} state - The Redux state.
215
  * @private
216
  * @private
216
  * @returns {{
217
  * @returns {{
217
- *     _isDialNumberAllowed: React.PropTypes.bool
218
+ *     _isDialNumberAllowed: boolean
218
  * }}
219
  * }}
219
  */
220
  */
220
 function _mapStateToProps(state) {
221
 function _mapStateToProps(state) {

+ 6
- 5
react/features/dial-out/components/DialOutNumbersForm.web.js Parādīt failu

1
 import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu';
1
 import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu';
2
 import AKFieldText, { FieldText } from '@atlaskit/field-text';
2
 import AKFieldText, { FieldText } from '@atlaskit/field-text';
3
 import ExpandIcon from '@atlaskit/icon/glyph/expand';
3
 import ExpandIcon from '@atlaskit/icon/glyph/expand';
4
+import PropTypes from 'prop-types';
4
 import React, { Component } from 'react';
5
 import React, { Component } from 'react';
5
 import { connect } from 'react-redux';
6
 import { connect } from 'react-redux';
6
 
7
 
40
         /**
41
         /**
41
          * The redux state representing the list of dial-out codes.
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
          * The function called on every dial input change.
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
          * Invoked to obtain translated strings.
52
          * Invoked to obtain translated strings.
52
          */
53
          */
53
-        t: React.PropTypes.func,
54
+        t: PropTypes.func,
54
 
55
 
55
         /**
56
         /**
56
          * Invoked to send an ajax request for dial-out codes.
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
  * @param {Object} state - The Redux state.
354
  * @param {Object} state - The Redux state.
354
  * @private
355
  * @private
355
  * @returns {{
356
  * @returns {{
356
- *     _dialOutCodes: React.PropTypes.object
357
+ *     _dialOutCodes: Object
357
  * }}
358
  * }}
358
  */
359
  */
359
 function _mapStateToProps(state) {
360
 function _mapStateToProps(state) {

+ 8
- 7
react/features/display-name/components/DisplayName.web.js Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
19
         /**
20
         /**
20
          * Whether or not the display name should be editable on click.
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
          * Invoked to update the participant's display name.
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
          * The participant's current display name.
31
          * The participant's current display name.
31
          */
32
          */
32
-        displayName: React.PropTypes.string,
33
+        displayName: PropTypes.string,
33
 
34
 
34
         /**
35
         /**
35
          * A string to append to the displayName, if provided.
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
          * The ID attribute to add to the component. Useful for global querying
41
          * The ID attribute to add to the component. Useful for global querying
41
          * for the component by legacy components and torture tests.
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
          * The ID of the participant whose name is being displayed.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
 import AKFieldText from '@atlaskit/field-text';
1
 import AKFieldText from '@atlaskit/field-text';
2
+import PropTypes from 'prop-types';
2
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
3
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
4
 
5
 
26
          * The current ID for the local participant. Used for setting the
27
          * The current ID for the local participant. Used for setting the
27
          * display name on the associated participant.
28
          * display name on the associated participant.
28
          */
29
          */
29
-        _localParticipantID: React.PropTypes.string,
30
+        _localParticipantID: PropTypes.string,
30
 
31
 
31
         /**
32
         /**
32
          * Invoked to update the local participant's display name.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import Tooltip from '@atlaskit/tooltip';
3
 import Tooltip from '@atlaskit/tooltip';
4
+import PropTypes from 'prop-types';
4
 import React, { Component } from 'react';
5
 import React, { Component } from 'react';
5
 import { connect } from 'react-redux';
6
 import { connect } from 'react-redux';
6
 
7
 
20
          *
21
          *
21
          * @type {JitsiConference}
22
          * @type {JitsiConference}
22
          */
23
          */
23
-        _conference: React.PropTypes.object,
24
+        _conference: PropTypes.object,
24
 
25
 
25
         /**
26
         /**
26
          * Invoked to obtain translated strings.
27
          * Invoked to obtain translated strings.
27
          */
28
          */
28
-        t: React.PropTypes.func,
29
+        t: PropTypes.func,
29
 
30
 
30
         /**
31
         /**
31
          * From which side of the button the tooltip should appear from.
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 Parādīt failu

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

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { ScrollView } from 'react-native';
5
 import { ScrollView } from 'react-native';
5
 import { connect } from 'react-redux';
6
 import { connect } from 'react-redux';
28
          * @private
29
          * @private
29
          * @type {Participant[]}
30
          * @type {Participant[]}
30
          */
31
          */
31
-        _participants: React.PropTypes.array,
32
+        _participants: PropTypes.array,
32
 
33
 
33
         /**
34
         /**
34
          * The indicator which determines whether the filmstrip is visible.
35
          * The indicator which determines whether the filmstrip is visible.
36
          * @private
37
          * @private
37
          * @type {boolean}
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import _ from 'lodash';
3
 import _ from 'lodash';
4
+import PropTypes from 'prop-types';
4
 import React, { Component } from 'react';
5
 import React, { Component } from 'react';
5
 import { connect } from 'react-redux';
6
 import { connect } from 'react-redux';
6
 
7
 
33
         /**
34
         /**
34
          * Whether or not remote videos are currently being hovered over.
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
          * Whether or not the remote videos should be visible. Will toggle
40
          * Whether or not the remote videos should be visible. Will toggle
40
          * a class for hiding the videos.
41
          * a class for hiding the videos.
41
          */
42
          */
42
-        _remoteVideosVisible: React.PropTypes.bool,
43
+        _remoteVideosVisible: PropTypes.bool,
43
 
44
 
44
         /**
45
         /**
45
          * Updates the redux store with filmstrip hover changes.
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
          * Whether or not the toolbox should be displayed within the filmstrip.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
29
      * @static
30
      * @static
30
      */
31
      */
31
     static propTypes = {
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import BaseIndicator from './BaseIndicator';
4
 import BaseIndicator from './BaseIndicator';
17
         /**
18
         /**
18
          * From which side of the indicator the tooltip should appear from.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import Tooltip from '@atlaskit/tooltip';
3
 import Tooltip from '@atlaskit/tooltip';
3
 
4
 
31
         /**
32
         /**
32
          * Additional CSS class names to set on the icon container.
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
          * The CSS classnames to set on the icon element of the component.
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
          * The font size for the icon.
43
          * The font size for the icon.
43
          */
44
          */
44
-        iconSize: React.PropTypes.string,
45
+        iconSize: PropTypes.string,
45
 
46
 
46
         /**
47
         /**
47
          * The ID attribue to set on the root element of the component.
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
          * Invoked to obtain translated strings.
53
          * Invoked to obtain translated strings.
53
          */
54
          */
54
-        t: React.PropTypes.func,
55
+        t: PropTypes.func,
55
 
56
 
56
         /**
57
         /**
57
          * The translation key to use for displaying a tooltip when hovering
58
          * The translation key to use for displaying a tooltip when hovering
58
          * over the component.
59
          * over the component.
59
          */
60
          */
60
-        tooltipKey: React.PropTypes.string,
61
+        tooltipKey: PropTypes.string,
61
 
62
 
62
         /**
63
         /**
63
          * From which side of the indicator the tooltip should appear from.
64
          * From which side of the indicator the tooltip should appear from.
64
          * Defaults to "top".
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import BaseIndicator from './BaseIndicator';
4
 import BaseIndicator from './BaseIndicator';
20
          *
21
          *
21
          * @type {number}
22
          * @type {number}
22
          */
23
          */
23
-        iconSize: React.PropTypes.number,
24
+        iconSize: PropTypes.number,
24
 
25
 
25
         /**
26
         /**
26
          * From which side of the indicator the tooltip should appear from.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import BaseIndicator from './BaseIndicator';
4
 import BaseIndicator from './BaseIndicator';
17
         /**
18
         /**
18
          * From which side of the indicator the tooltip should appear from.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import BaseIndicator from './BaseIndicator';
4
 import BaseIndicator from './BaseIndicator';
19
          *
20
          *
20
          * @type {number}
21
          * @type {number}
21
          */
22
          */
22
-        iconSize: React.PropTypes.number,
23
+        iconSize: PropTypes.number,
23
 
24
 
24
         /**
25
         /**
25
          * From which side of the indicator the tooltip should appear from.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
3
+
2
 import BaseIndicator from './BaseIndicator';
4
 import BaseIndicator from './BaseIndicator';
3
 
5
 
4
 /**
6
 /**
16
         /**
18
         /**
17
          * From which side of the indicator the tooltip should appear from.
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 Parādīt failu

1
 import Button from '@atlaskit/button';
1
 import Button from '@atlaskit/button';
2
 import { FieldText } from '@atlaskit/field-text';
2
 import { FieldText } from '@atlaskit/field-text';
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
21
          *
22
          *
22
          * @type {JitsiConference}
23
          * @type {JitsiConference}
23
          */
24
          */
24
-        conference: React.PropTypes.object,
25
+        conference: PropTypes.object,
25
 
26
 
26
         /**
27
         /**
27
          * Invoked to set a password on the conference.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

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

+ 8
- 7
react/features/invite/components/DialInNumbersForm.js Parādīt failu

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

+ 5
- 4
react/features/invite/components/InviteDialog.web.js Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
26
         /**
27
         /**
27
          * The redux store representation of the JitsiConference.
28
          * The redux store representation of the JitsiConference.
28
          */
29
          */
29
-        _conference: React.PropTypes.object,
30
+        _conference: PropTypes.object,
30
 
31
 
31
         /**
32
         /**
32
          * The url for the JitsiConference.
33
          * The url for the JitsiConference.
33
          */
34
          */
34
-        _inviteURL: React.PropTypes.string,
35
+        _inviteURL: PropTypes.string,
35
 
36
 
36
         /**
37
         /**
37
          * Whether or not the current user is a conference moderator.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate } from '../../base/i18n';
4
 import { translate } from '../../base/i18n';
15
         /**
16
         /**
16
          * Whether or not the conference is currently locked.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate } from '../../base/i18n';
4
 import { translate } from '../../base/i18n';
24
          *
25
          *
25
          * @type {JitsiConference}
26
          * @type {JitsiConference}
26
          */
27
          */
27
-        conference: React.PropTypes.object,
28
+        conference: PropTypes.object,
28
 
29
 
29
         /**
30
         /**
30
          * The value for how the conference is locked (or undefined if not
31
          * The value for how the conference is locked (or undefined if not
31
          * locked) as defined by room-lock constants.
32
          * locked) as defined by room-lock constants.
32
          */
33
          */
33
-        locked: React.PropTypes.string,
34
+        locked: PropTypes.string,
34
 
35
 
35
         /**
36
         /**
36
          * The current known password for the JitsiConference.
37
          * The current known password for the JitsiConference.
37
          */
38
          */
38
-        password: React.PropTypes.string,
39
+        password: PropTypes.string,
39
 
40
 
40
         /**
41
         /**
41
          * Whether or not the password editing components should be displayed.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
19
          *
20
          *
20
          * @type {JitsiConference}
21
          * @type {JitsiConference}
21
          */
22
          */
22
-        conference: React.PropTypes.object,
23
+        conference: PropTypes.object,
23
 
24
 
24
         /**
25
         /**
25
          * Invoked to send a password removal request.
26
          * Invoked to send a password removal request.
26
          */
27
          */
27
-        dispatch: React.PropTypes.func,
28
+        dispatch: PropTypes.func,
28
 
29
 
29
         /**
30
         /**
30
          * Whether or not the room lock, if any, was set by the local user.
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
          * The current known password for the JitsiConference.
36
          * The current known password for the JitsiConference.
36
          */
37
          */
37
-        password: React.PropTypes.string,
38
+        password: PropTypes.string,
38
 
39
 
39
         /**
40
         /**
40
          * Invoked to obtain translated strings.
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 Parādīt failu

1
 import Button from '@atlaskit/button';
1
 import Button from '@atlaskit/button';
2
 import { FieldText } from '@atlaskit/field-text';
2
 import { FieldText } from '@atlaskit/field-text';
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
20
         /**
21
         /**
21
          * Invoked to obtain translated strings.
22
          * Invoked to obtain translated strings.
22
          */
23
          */
23
-        t: React.PropTypes.func,
24
+        t: PropTypes.func,
24
 
25
 
25
         /**
26
         /**
26
          * The value to be displayed and copied into the clipboard.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
73
      * @static
74
      * @static
74
      */
75
      */
75
     static propTypes = {
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
25
          *
26
          *
26
          * @private
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 Parādīt failu

1
 import Flag from '@atlaskit/flag';
1
 import Flag from '@atlaskit/flag';
2
 import EditorInfoIcon from '@atlaskit/icon/glyph/editor/info';
2
 import EditorInfoIcon from '@atlaskit/icon/glyph/editor/info';
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
20
          * The translation key to display as the title of the notification if
21
          * The translation key to display as the title of the notification if
21
          * no title is provided.
22
          * no title is provided.
22
          */
23
          */
23
-        defaultTitleKey: React.PropTypes.string,
24
+        defaultTitleKey: PropTypes.string,
24
 
25
 
25
         /**
26
         /**
26
          * The translation arguments that may be necessary for the description.
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
          * The translation key to use as the body of the notification.
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
          * Whether or not the dismiss button should be displayed. This is passed
37
          * Whether or not the dismiss button should be displayed. This is passed
37
          * in by {@code FlagGroup}.
38
          * in by {@code FlagGroup}.
38
          */
39
          */
39
-        isDismissAllowed: React.PropTypes.bool,
40
+        isDismissAllowed: PropTypes.bool,
40
 
41
 
41
         /**
42
         /**
42
          * Callback invoked when the user clicks to dismiss the notification.
43
          * Callback invoked when the user clicks to dismiss the notification.
43
          * this is passed in by {@code FlagGroup}.
44
          * this is passed in by {@code FlagGroup}.
44
          */
45
          */
45
-        onDismissed: React.PropTypes.func,
46
+        onDismissed: PropTypes.func,
46
 
47
 
47
         /**
48
         /**
48
          * Invoked to obtain translated strings.
49
          * Invoked to obtain translated strings.
49
          */
50
          */
50
-        t: React.PropTypes.func,
51
+        t: PropTypes.func,
51
 
52
 
52
         /**
53
         /**
53
          * The text to display at the top of the notification. If not passed in,
54
          * The text to display at the top of the notification. If not passed in,
54
          * the passed in defaultTitleKey will be used.
55
          * the passed in defaultTitleKey will be used.
55
          */
56
          */
56
-        title: React.PropTypes.string,
57
+        title: PropTypes.string,
57
 
58
 
58
         /**
59
         /**
59
          * The unique identifier for the notification. Passed back by the
60
          * The unique identifier for the notification. Passed back by the
60
          * {@code Flag} component in the onDismissed callback.
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 Parādīt failu

1
 import Flag from '@atlaskit/flag';
1
 import Flag from '@atlaskit/flag';
2
 import WarningIcon from '@atlaskit/icon/glyph/warning';
2
 import WarningIcon from '@atlaskit/icon/glyph/warning';
3
 import { ToggleStateless } from '@atlaskit/toggle';
3
 import { ToggleStateless } from '@atlaskit/toggle';
4
+import PropTypes from 'prop-types';
4
 import React, { Component } from 'react';
5
 import React, { Component } from 'react';
5
 
6
 
6
 import { translate } from '../../base/i18n';
7
 import { translate } from '../../base/i18n';
21
          * Any additional text to display at the end of the notification message
22
          * Any additional text to display at the end of the notification message
22
          * body.
23
          * body.
23
          */
24
          */
24
-        additionalMessage: React.PropTypes.string,
25
+        additionalMessage: PropTypes.string,
25
 
26
 
26
         /**
27
         /**
27
          * Whether or not the dismiss button should be displayed. This is passed
28
          * Whether or not the dismiss button should be displayed. This is passed
28
          * in by {@code FlagGroup}.
29
          * in by {@code FlagGroup}.
29
          */
30
          */
30
-        isDismissAllowed: React.PropTypes.bool,
31
+        isDismissAllowed: PropTypes.bool,
31
 
32
 
32
         /**
33
         /**
33
          * The translation key to be used as the main body of the notification.
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
          * Callback invoked when the user clicks to dismiss the notification.
39
          * Callback invoked when the user clicks to dismiss the notification.
39
          * This is passed in by {@code FlagGroup}.
40
          * This is passed in by {@code FlagGroup}.
40
          */
41
          */
41
-        onDismissed: React.PropTypes.func,
42
+        onDismissed: PropTypes.func,
42
 
43
 
43
         /**
44
         /**
44
          * Optional callback to invoke when the notification is dismissed. The
45
          * Optional callback to invoke when the notification is dismissed. The
45
          * current value of the toggle element will be passed in.
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
          * Whether or not the toggle element should be displayed.
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
          * Translation key for a message to display at the top of the
56
          * Translation key for a message to display at the top of the
56
          * notification body.
57
          * notification body.
57
          */
58
          */
58
-        subtitleKey: React.PropTypes.string,
59
+        subtitleKey: PropTypes.string,
59
 
60
 
60
         /**
61
         /**
61
          * Invoked to obtain translated strings.
62
          * Invoked to obtain translated strings.
62
          */
63
          */
63
-        t: React.PropTypes.func,
64
+        t: PropTypes.func,
64
 
65
 
65
         /**
66
         /**
66
          * The translation key to be used as the title of the notification.
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
          * The translation key to be used as a label describing what setting the
72
          * The translation key to be used as a label describing what setting the
72
          * toggle will change.
73
          * toggle will change.
73
          */
74
          */
74
-        toggleLabelKey: React.PropTypes.string,
75
+        toggleLabelKey: PropTypes.string,
75
 
76
 
76
         /**
77
         /**
77
          * The unique identifier for the notification. Passed back by the
78
          * The unique identifier for the notification. Passed back by the
78
          * {@code Flag} component in the onDismissed callback.
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 Parādīt failu

1
 import { FlagGroup } from '@atlaskit/flag';
1
 import { FlagGroup } from '@atlaskit/flag';
2
+import PropTypes from 'prop-types';
2
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
3
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
4
 
5
 
22
          * The notifications to be displayed, with the first index being the
23
          * The notifications to be displayed, with the first index being the
23
          * notification at the top and the rest shown below it in order.
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
          * Whether or not notifications should be displayed at all. If not,
29
          * Whether or not notifications should be displayed at all. If not,
29
          * notifications will be dismissed immediately.
30
          * notifications will be dismissed immediately.
30
          */
31
          */
31
-        _showNotifications: React.PropTypes.bool,
32
+        _showNotifications: PropTypes.bool,
32
 
33
 
33
         /**
34
         /**
34
          * Invoked to update the redux store in order to remove notifications.
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
  * @param {Object} state - The Redux state.
169
  * @param {Object} state - The Redux state.
169
  * @private
170
  * @private
170
  * @returns {{
171
  * @returns {{
171
- *     _notifications: React.PropTypes.array
172
+ *     _notifications: Array
172
  * }}
173
  * }}
173
  */
174
  */
174
 function _mapStateToProps(state) {
175
 function _mapStateToProps(state) {

+ 5
- 4
react/features/overlay/components/AbstractPageReloadOverlay.js Parādīt failu

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

+ 5
- 4
react/features/overlay/components/FilmstripOnlyOverlayFrame.js Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
26
          *
27
          *
27
          * @private
28
          * @private
28
          */
29
          */
29
-        _avatar: React.PropTypes.string,
30
+        _avatar: PropTypes.string,
30
 
31
 
31
         /**
32
         /**
32
          * The children components to be displayed into the overlay frame for
33
          * The children components to be displayed into the overlay frame for
34
          *
35
          *
35
          * @type {ReactElement}
36
          * @type {ReactElement}
36
          */
37
          */
37
-        children: React.PropTypes.node.isRequired,
38
+        children: PropTypes.node.isRequired,
38
 
39
 
39
         /**
40
         /**
40
          * The css class name for the icon that will be displayed over the
41
          * The css class name for the icon that will be displayed over the
42
          *
43
          *
43
          * @type {string}
44
          * @type {string}
44
          */
45
          */
45
-        icon: React.PropTypes.string,
46
+        icon: PropTypes.string,
46
 
47
 
47
         /**
48
         /**
48
          * Indicates the css style of the overlay. If true, then lighter;
49
          * Indicates the css style of the overlay. If true, then lighter;
50
          *
51
          *
51
          * @type {boolean}
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 Parādīt failu

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

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 declare var interfaceConfig: Object;
4
 declare var interfaceConfig: Object;
15
         /**
16
         /**
16
          * The children components to be displayed into the overlay frame.
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
          * Indicates the css style of the overlay. If true, then lighter;
22
          * Indicates the css style of the overlay. If true, then lighter;
23
          *
24
          *
24
          * @type {boolean}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
21
          *
22
          *
22
          * @type {Function}
23
          * @type {Function}
23
          */
24
          */
24
-        _reloadNow: React.PropTypes.func,
25
+        _reloadNow: PropTypes.func,
25
 
26
 
26
         /**
27
         /**
27
          * The function to translate human-readable text.
28
          * The function to translate human-readable text.
29
          * @public
30
          * @public
30
          * @type {Function}
31
          * @type {Function}
31
          */
32
          */
32
-        t: React.PropTypes.func,
33
+        t: PropTypes.func,
33
 
34
 
34
         /**
35
         /**
35
          * The translation key for the text in the button.
36
          * The translation key for the text in the button.
36
          *
37
          *
37
          * @type {string}
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 Parādīt failu

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

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate, translateToHTML } from '../../base/i18n';
4
 import { translate, translateToHTML } from '../../base/i18n';
22
          * @public
23
          * @public
23
          * @type {Function}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate, translateToHTML } from '../../base/i18n';
4
 import { translate, translateToHTML } from '../../base/i18n';
22
          * @public
23
          * @public
23
          * @type {Function}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate, translateToHTML } from '../../base/i18n';
4
 import { translate, translateToHTML } from '../../base/i18n';
22
          * @public
23
          * @public
23
          * @type {string}
24
          * @type {string}
24
          */
25
          */
25
-        browser: React.PropTypes.string,
26
+        browser: PropTypes.string,
26
 
27
 
27
         /**
28
         /**
28
          * The function to translate human-readable text.
29
          * The function to translate human-readable text.
30
          * @public
31
          * @public
31
          * @type {Function}
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 Parādīt failu

1
 /* global interfaceConfig */
1
 /* global interfaceConfig */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 import { translate, translateToHTML } from '../../base/i18n';
6
 import { translate, translateToHTML } from '../../base/i18n';
24
          * @public
25
          * @public
25
          * @type {string}
26
          * @type {string}
26
          */
27
          */
27
-        browser: React.PropTypes.string,
28
+        browser: PropTypes.string,
28
 
29
 
29
         /**
30
         /**
30
          * The function to translate human-readable text.
31
          * The function to translate human-readable text.
32
          * @public
33
          * @public
33
          * @type {Function}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
29
          * The current present status associated with the passed in
30
          * The current present status associated with the passed in
30
          * participantID prop.
31
          * participantID prop.
31
          */
32
          */
32
-        _presence: React.PropTypes.string,
33
+        _presence: PropTypes.string,
33
 
34
 
34
         /**
35
         /**
35
          * The ID of the participant whose presence status shoul display.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
23
          * hidden. Depending on the filmstrip state, different CSS classes will
24
          * hidden. Depending on the filmstrip state, different CSS classes will
24
          * be set to allow for adjusting of {@code RecordingLabel} positioning.
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
          * An object to describe the {@code RecordingLabel} content. If no
30
          * An object to describe the {@code RecordingLabel} content. If no
35
          *     showSpinner: boolean
36
          *     showSpinner: boolean
36
          * }}
37
          * }}
37
          */
38
          */
38
-        _labelDisplayConfiguration: React.PropTypes.object,
39
+        _labelDisplayConfiguration: PropTypes.object,
39
 
40
 
40
         /**
41
         /**
41
          * Whether or not remote videos within the filmstrip are currently
42
          * Whether or not remote videos within the filmstrip are currently
43
          * visibility, CSS classes will be set to allow for adjusting of
44
          * visibility, CSS classes will be set to allow for adjusting of
44
          * {@code RecordingLabel} positioning.
45
          * {@code RecordingLabel} positioning.
45
          */
46
          */
46
-        _remoteVideosVisible: React.PropTypes.bool,
47
+        _remoteVideosVisible: PropTypes.bool,
47
 
48
 
48
         /**
49
         /**
49
          * Invoked to obtain translated string.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
26
          *
27
          *
27
          * @private
28
          * @private
28
          */
29
          */
29
-        _displayName: React.PropTypes.string,
30
+        _displayName: PropTypes.string,
30
 
31
 
31
         /**
32
         /**
32
          * Used to show/hide the dialog on cancel.
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
          * The ID of the participant who is requesting authorization for remote
38
          * The ID of the participant who is requesting authorization for remote
39
          *
40
          *
40
          * @public
41
          * @public
41
          */
42
          */
42
-        participantId: React.PropTypes.string,
43
+        participantId: PropTypes.string,
43
 
44
 
44
         /**
45
         /**
45
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
23
          * Invoked to signal the participant with the passed in participantID
24
          * Invoked to signal the participant with the passed in participantID
24
          * should be removed from the conference.
25
          * should be removed from the conference.
25
          */
26
          */
26
-        dispatch: React.PropTypes.func,
27
+        dispatch: PropTypes.func,
27
 
28
 
28
         /**
29
         /**
29
          * Callback to invoke when {@code KickButton} is clicked.
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
          * The ID of the participant linked to the onClick callback.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
 
4
 
23
          * Invoked to send a request for muting the participant with the passed
24
          * Invoked to send a request for muting the participant with the passed
24
          * in participantID.
25
          * in participantID.
25
          */
26
          */
26
-        dispatch: React.PropTypes.func,
27
+        dispatch: PropTypes.func,
27
 
28
 
28
         /**
29
         /**
29
          * Whether or not the participant is currently audio muted.
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
          * Callback to invoke when {@code MuteButton} is clicked.
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
          * The ID of the participant linked to the onClick callback.
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
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate } from '../../base/i18n';
4
 import { translate } from '../../base/i18n';
30
         /**
31
         /**
31
          * The callback to invoke when the component is clicked.
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
          * The ID of the participant linked to the onClick callback.
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
          * The current status of remote control. Should be a number listed in
42
          * The current status of remote control. Should be a number listed in
42
          * the enum REMOTE_CONTROL_MENU_STATES.
43
          * the enum REMOTE_CONTROL_MENU_STATES.
43
          */
44
          */
44
-        remoteControlState: React.PropTypes.number,
45
+        remoteControlState: PropTypes.number,
45
 
46
 
46
         /**
47
         /**
47
          * Invoked to obtain translated strings.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
16
         /**
17
         /**
17
          * The components to place as the body of the {@code RemoteVideoMenu}.
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
          * The id attribute to be added to the component's DOM for retrieval
23
          * The id attribute to be added to the component's DOM for retrieval
23
          * when querying the DOM. Not used directly by the component.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
16
          * Text to display within the component that describes the onClick
17
          * Text to display within the component that describes the onClick
17
          * action.
18
          * action.
18
          */
19
          */
19
-        buttonText: React.PropTypes.string,
20
+        buttonText: PropTypes.string,
20
 
21
 
21
         /**
22
         /**
22
          * Additional CSS classes to add to the component.
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
          * The CSS classes for the icon that will display within the component.
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
          * The id attribute to be added to the component's DOM for retrieval
33
          * The id attribute to be added to the component's DOM for retrieval
33
          * when querying the DOM. Not used directly by the component.
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
          * Callback to invoke when the component is clicked.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
4
+import { Popover } from '../../base/popover';
5
+
3
 import {
6
 import {
4
     MuteButton,
7
     MuteButton,
5
     KickButton,
8
     KickButton,
8
     VolumeSlider
11
     VolumeSlider
9
 } from './';
12
 } from './';
10
 
13
 
11
-import { Popover } from '../../base/popover';
12
-
13
 declare var $: Object;
14
 declare var $: Object;
14
 declare var interfaceConfig: Object;
15
 declare var interfaceConfig: Object;
15
 
16
 
25
          * A value between 0 and 1 indicating the volume of the participant's
26
          * A value between 0 and 1 indicating the volume of the participant's
26
          * audio element.
27
          * audio element.
27
          */
28
          */
28
-        initialVolumeValue: React.PropTypes.number,
29
+        initialVolumeValue: PropTypes.number,
29
 
30
 
30
         /**
31
         /**
31
          * Whether or not the participant is currently muted.
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
          * Whether or not the participant is a conference moderator.
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
          * Callback to invoke when the popover has been displayed.
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
          * Callback to invoke choosing to start a remote control session with
47
          * Callback to invoke choosing to start a remote control session with
47
          * the participant.
48
          * the participant.
48
          */
49
          */
49
-        onRemoteControlToggle: React.PropTypes.func,
50
+        onRemoteControlToggle: PropTypes.func,
50
 
51
 
51
         /**
52
         /**
52
          * Callback to invoke when changing the level of the participant's
53
          * Callback to invoke when changing the level of the participant's
53
          * audio element.
54
          * audio element.
54
          */
55
          */
55
-        onVolumeChange: React.PropTypes.func,
56
+        onVolumeChange: PropTypes.func,
56
 
57
 
57
         /**
58
         /**
58
          * The ID for the participant on which the remote video menu will act.
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
          * The current state of the participant's remote control session.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
25
          * first mounts. Changes will be stored in state. The value should be a
26
          * first mounts. Changes will be stored in state. The value should be a
26
          * number between 0 and 1.
27
          * number between 0 and 1.
27
          */
28
          */
28
-        initialValue: React.PropTypes.number,
29
+        initialValue: PropTypes.number,
29
 
30
 
30
         /**
31
         /**
31
          * The callback to invoke when the audio slider value changes.
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 Parādīt failu

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

+ 4
- 3
react/features/room-lock/components/PasswordRequiredPrompt.native.js Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
3
-import { Dialog } from '../../base/dialog';
4
 
4
 
5
 import { setPassword } from '../../base/conference';
5
 import { setPassword } from '../../base/conference';
6
+import { Dialog } from '../../base/dialog';
6
 
7
 
7
 /**
8
 /**
8
  * Implements a React Component which prompts the user when a password is
9
  * Implements a React Component which prompts the user when a password is
20
          *
21
          *
21
          * @type {JitsiConference}
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 Parādīt failu

1
 import AKFieldText from '@atlaskit/field-text';
1
 import AKFieldText from '@atlaskit/field-text';
2
+import PropTypes from 'prop-types';
2
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
3
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
4
 
5
 
22
          *
23
          *
23
          * @type {JitsiConference}
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { connect } from 'react-redux';
3
 import { connect } from 'react-redux';
4
+
3
 import { Dialog } from '../../base/dialog';
5
 import { Dialog } from '../../base/dialog';
4
 
6
 
5
 import { endRoomLockRequest } from '../actions';
7
 import { endRoomLockRequest } from '../actions';
20
          *
22
          *
21
          * @type {JitsiConference}
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 Parādīt failu

1
 /* global APP, interfaceConfig */
1
 /* global APP, interfaceConfig */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 import { Dialog } from '../../base/dialog';
6
 import { Dialog } from '../../base/dialog';
6
 import { translate } from '../../base/i18n';
7
 import { translate } from '../../base/i18n';
8
+
7
 import SpeakerStatsItem from './SpeakerStatsItem';
9
 import SpeakerStatsItem from './SpeakerStatsItem';
8
 import SpeakerStatsLabels from './SpeakerStatsLabels';
10
 import SpeakerStatsLabels from './SpeakerStatsLabels';
9
 
11
 
22
         /**
24
         /**
23
          * The JitsiConference from which stats will be pulled.
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
          * The function to translate human-readable text.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import TimeElapsed from './TimeElapsed';
4
 import TimeElapsed from './TimeElapsed';
17
         /**
18
         /**
18
          * The name of the participant.
19
          * The name of the participant.
19
          */
20
          */
20
-        displayName: React.PropTypes.string,
21
+        displayName: PropTypes.string,
21
 
22
 
22
         /**
23
         /**
23
          * The total milliseconds the participant has been dominant speaker.
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
          * True if the participant is no longer in the meeting.
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
          * True if the participant is currently the dominant speaker.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate } from '../../base/i18n';
4
 import { translate } from '../../base/i18n';
17
         /**
18
         /**
18
          * The function to translate human-readable text.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 import { translate } from '../../base/i18n';
4
 import { translate } from '../../base/i18n';
19
         /**
20
         /**
20
          * The function to translate human-readable text.
21
          * The function to translate human-readable text.
21
          */
22
          */
22
-        t: React.PropTypes.func,
23
+        t: PropTypes.func,
23
 
24
 
24
         /**
25
         /**
25
          * The milliseconds to be converted into a human-readable format.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 
3
 
3
 /**
4
 /**
15
         /**
16
         /**
16
          * The name of the Icon of this {@code AbstractToolbarButton}.
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
          * The style of the Icon of this {@code AbstractToolbarButton}.
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
          * On click handler.
27
          * On click handler.
27
          */
28
          */
28
-        onClick: React.PropTypes.func,
29
+        onClick: PropTypes.func,
29
 
30
 
30
         /**
31
         /**
31
          * {@code AbstractToolbarButton} styles.
32
          * {@code AbstractToolbarButton} styles.
32
          */
33
          */
33
         style:
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
          * The color underlaying the button.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
20
         /**
21
         /**
21
          * Contains toolbar buttons for primary toolbar.
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
          * Shows whether toolbox is visible.
27
          * Shows whether toolbox is visible.
27
          */
28
          */
28
-        _visible: React.PropTypes.bool
29
+        _visible: PropTypes.bool
29
     };
30
     };
30
 
31
 
31
     state: Object;
32
     state: Object;

+ 4
- 3
react/features/toolbox/components/ProfileButton.web.js Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
41
         /**
42
         /**
42
          * Whether the button support clicking or not.
43
          * Whether the button support clicking or not.
43
          */
44
          */
44
-        _unclickable: React.PropTypes.bool,
45
+        _unclickable: PropTypes.bool,
45
 
46
 
46
         /**
47
         /**
47
          * Whether the side panel is opened or not.
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
          * From which side tooltips should display. Will be re-used for
53
          * From which side tooltips should display. Will be re-used for
53
          * displaying the inline dialog for video quality adjustment.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
34
          * Application ID for callstats.io API. The {@code FeedbackButton} will
35
          * Application ID for callstats.io API. The {@code FeedbackButton} will
35
          * display if defined.
36
          * display if defined.
36
          */
37
          */
37
-        _callStatsID: React.PropTypes.string,
38
+        _callStatsID: PropTypes.string,
38
 
39
 
39
         /**
40
         /**
40
          * The indicator which determines whether the local participant is a
41
          * The indicator which determines whether the local participant is a
41
          * guest in the conference.
42
          * guest in the conference.
42
          */
43
          */
43
-        _isGuest: React.PropTypes.bool,
44
+        _isGuest: PropTypes.bool,
44
 
45
 
45
         /**
46
         /**
46
          * Handler dispatching toggle toolbar container.
47
          * Handler dispatching toggle toolbar container.
47
          */
48
          */
48
-        _onSideToolbarContainerToggled: React.PropTypes.func,
49
+        _onSideToolbarContainerToggled: PropTypes.func,
49
 
50
 
50
         /**
51
         /**
51
          * Contains map of secondary toolbar buttons.
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
          * Shows whether toolbox is visible.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 /**
6
 /**
19
         /**
20
         /**
20
          * Children of current React component.
21
          * Children of current React component.
21
          */
22
          */
22
-        children: React.PropTypes.node,
23
+        children: PropTypes.node,
23
 
24
 
24
         /**
25
         /**
25
          * Toolbar's class name.
26
          * Toolbar's class name.
26
          */
27
          */
27
-        className: React.PropTypes.string,
28
+        className: PropTypes.string,
28
 
29
 
29
         /**
30
         /**
30
          *  Handler for mouse out event.
31
          *  Handler for mouse out event.
31
          */
32
          */
32
-        onMouseOut: React.PropTypes.func,
33
+        onMouseOut: PropTypes.func,
33
 
34
 
34
         /**
35
         /**
35
          * Handler for mouse over event.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React from 'react';
4
 import React from 'react';
4
 
5
 
5
 import AbstractToolbarButton from './AbstractToolbarButton';
6
 import AbstractToolbarButton from './AbstractToolbarButton';
68
         /**
69
         /**
69
          * Object describing button.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
30
         /**
31
         /**
31
          * Children of current React component.
32
          * Children of current React component.
32
          */
33
          */
33
-        children: React.PropTypes.element,
34
+        children: PropTypes.element,
34
 
35
 
35
         /**
36
         /**
36
          * Toolbar's class name.
37
          * Toolbar's class name.
37
          */
38
          */
38
-        className: React.PropTypes.string,
39
+        className: PropTypes.string,
39
 
40
 
40
         /**
41
         /**
41
          * Used to dispatch an action when a button is clicked or on mouse
42
          * Used to dispatch an action when a button is clicked or on mouse
42
          * out/in event.
43
          * out/in event.
43
          */
44
          */
44
-        dispatch: React.PropTypes.func,
45
+        dispatch: PropTypes.func,
45
 
46
 
46
         /**
47
         /**
47
          * Map with toolbar buttons.
48
          * Map with toolbar buttons.
48
          */
49
          */
49
-        toolbarButtons: React.PropTypes.instanceOf(Map),
50
+        toolbarButtons: PropTypes.instanceOf(Map),
50
 
51
 
51
         /**
52
         /**
52
          * Indicates the position of the tooltip.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React from 'react';
2
 import React from 'react';
2
 import { TouchableHighlight } from 'react-native';
3
 import { TouchableHighlight } from 'react-native';
3
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
23
         /**
24
         /**
24
          * Indicates whether this {@code ToolbarButton} is disabled.
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 Parādīt failu

2
 
2
 
3
 import AKInlineDialog from '@atlaskit/inline-dialog';
3
 import AKInlineDialog from '@atlaskit/inline-dialog';
4
 import { Tooltip } from '@atlaskit/tooltip';
4
 import { Tooltip } from '@atlaskit/tooltip';
5
+import PropTypes from 'prop-types';
5
 import React, { Component } from 'react';
6
 import React, { Component } from 'react';
6
 
7
 
7
 import { translate } from '../../base/i18n';
8
 import { translate } from '../../base/i18n';
8
 
9
 
9
 import { isButtonEnabled } from '../functions';
10
 import { isButtonEnabled } from '../functions';
10
-
11
 import StatelessToolbarButton from './StatelessToolbarButton';
11
 import StatelessToolbarButton from './StatelessToolbarButton';
12
 
12
 
13
 declare var APP: Object;
13
 declare var APP: Object;
60
         /**
60
         /**
61
          * Object describing button.
61
          * Object describing button.
62
          */
62
          */
63
-        button: React.PropTypes.object.isRequired,
63
+        button: PropTypes.object.isRequired,
64
 
64
 
65
         /**
65
         /**
66
          * Handler for component mount.
66
          * Handler for component mount.
67
          */
67
          */
68
-        onMount: React.PropTypes.func,
68
+        onMount: PropTypes.func,
69
 
69
 
70
         /**
70
         /**
71
          * Handler for component unmount.
71
          * Handler for component unmount.
72
          */
72
          */
73
-        onUnmount: React.PropTypes.func,
73
+        onUnmount: PropTypes.func,
74
 
74
 
75
         /**
75
         /**
76
          * Translation helper function.
76
          * Translation helper function.
77
          */
77
          */
78
-        t: React.PropTypes.func,
78
+        t: PropTypes.func,
79
 
79
 
80
         /**
80
         /**
81
          * Indicates the position of the tooltip.
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 Parādīt failu

1
+import PropTypes from 'prop-types';
1
 import React, { Component } from 'react';
2
 import React, { Component } from 'react';
2
 import { View } from 'react-native';
3
 import { View } from 'react-native';
3
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
45
         /**
46
         /**
46
          * Flag showing that audio is muted.
47
          * Flag showing that audio is muted.
47
          */
48
          */
48
-        _audioMuted: React.PropTypes.bool,
49
+        _audioMuted: PropTypes.bool,
49
 
50
 
50
         /**
51
         /**
51
          * Flag showing whether the audio-only mode is in use.
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
          * Flag showing whether room is locked.
57
          * Flag showing whether room is locked.
57
          */
58
          */
58
-        _locked: React.PropTypes.bool,
59
+        _locked: PropTypes.bool,
59
 
60
 
60
         /**
61
         /**
61
          * Handler for hangup.
62
          * Handler for hangup.
62
          */
63
          */
63
-        _onHangup: React.PropTypes.func,
64
+        _onHangup: PropTypes.func,
64
 
65
 
65
         /**
66
         /**
66
          * Sets the lock i.e. password protection of the conference/room.
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
          * Begins the UI procedure to share the conference/room URL.
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
          * Toggles the audio-only flag of the conference.
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
          * Switches between the front/user-facing and back/environment-facing
82
          * Switches between the front/user-facing and back/environment-facing
82
          * cameras.
83
          * cameras.
83
          */
84
          */
84
-        _onToggleCameraFacingMode: React.PropTypes.func,
85
+        _onToggleCameraFacingMode: PropTypes.func,
85
 
86
 
86
         /**
87
         /**
87
          * Flag showing whether video is muted.
88
          * Flag showing whether video is muted.
88
          */
89
          */
89
-        _videoMuted: React.PropTypes.bool,
90
+        _videoMuted: PropTypes.bool,
90
 
91
 
91
         /**
92
         /**
92
          * Flag showing whether toolbar is visible.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 import { connect } from 'react-redux';
5
 import { connect } from 'react-redux';
5
 
6
 
31
         /**
32
         /**
32
          * Indicates if the toolbox should always be visible.
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
          * Handler dispatching setting default buttons action.
38
          * Handler dispatching setting default buttons action.
38
          */
39
          */
39
-        _setDefaultToolboxButtons: React.PropTypes.func,
40
+        _setDefaultToolboxButtons: PropTypes.func,
40
 
41
 
41
         /**
42
         /**
42
          * Handler dispatching reset always visible toolbox action.
43
          * Handler dispatching reset always visible toolbox action.
43
          */
44
          */
44
-        _setToolboxAlwaysVisible: React.PropTypes.func,
45
+        _setToolboxAlwaysVisible: PropTypes.func,
45
 
46
 
46
         /**
47
         /**
47
          * Represents conference subject.
48
          * Represents conference subject.
48
          */
49
          */
49
-        _subject: React.PropTypes.string,
50
+        _subject: PropTypes.string,
50
 
51
 
51
         /**
52
         /**
52
          * Flag showing whether to set subject slide in animation.
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
          * Property containing toolbox timeout id.
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 Parādīt failu

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
+import PropTypes from 'prop-types';
3
 import React, { Component } from 'react';
4
 import React, { Component } from 'react';
4
 
5
 
5
 import { translate } from '../../base/i18n';
6
 import { translate } from '../../base/i18n';
34
          * @public
35
          * @public
35
          * @type {Function}
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 Parādīt failu


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels

Notiek ielāde…
Atcelt
Saglabāt