Browse Source

ref(invite): remove unused nuclear-js dep (#2642)

master
virtuacoplenny 7 years ago
parent
commit
a39da15c94

+ 0
- 13
package-lock.json View File

@@ -6785,11 +6785,6 @@
6785 6785
       "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.6.2.tgz",
6786 6786
       "integrity": "sha512-pH3vDzpczdsKHdZ9xxR3O46unSjisgVx0IImay7Zz2EdhRVbCkj+nthx9OuuWEhakx9FAO+fNVGrF0rZ2oMOvw=="
6787 6787
     },
6788
-    "immutable": {
6789
-      "version": "3.8.2",
6790
-      "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.2.tgz",
6791
-      "integrity": "sha1-wkOZUUVbs5kT2vKBN28VMOEErfM="
6792
-    },
6793 6788
     "import-local": {
6794 6789
       "version": "0.1.1",
6795 6790
       "resolved": "https://registry.npmjs.org/import-local/-/import-local-0.1.1.tgz",
@@ -8644,14 +8639,6 @@
8644 8639
         "gauge": "1.2.7"
8645 8640
       }
8646 8641
     },
8647
-    "nuclear-js": {
8648
-      "version": "1.4.0",
8649
-      "resolved": "https://registry.npmjs.org/nuclear-js/-/nuclear-js-1.4.0.tgz",
8650
-      "integrity": "sha1-bJwAGwZz8K6dj4sYjE2gTtaTp74=",
8651
-      "requires": {
8652
-        "immutable": "3.8.2"
8653
-      }
8654
-    },
8655 8642
     "num2fraction": {
8656 8643
       "version": "1.2.2",
8657 8644
       "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz",

+ 0
- 1
package.json View File

@@ -49,7 +49,6 @@
49 49
     "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#0503ec4d3f175b154b1c6fd7037520ce0768fa58",
50 50
     "lodash": "4.17.4",
51 51
     "moment": "2.19.4",
52
-    "nuclear-js": "1.4.0",
53 52
     "postis": "2.2.0",
54 53
     "prop-types": "15.6.0",
55 54
     "react": "16.2.0",

+ 1
- 8
react/features/invite/components/AddPeopleDialog.web.js View File

@@ -2,7 +2,6 @@
2 2
 
3 3
 import Avatar from '@atlaskit/avatar';
4 4
 import InlineMessage from '@atlaskit/inline-message';
5
-import { Immutable } from 'nuclear-js';
6 5
 import PropTypes from 'prop-types';
7 6
 import React, { Component } from 'react';
8 7
 import { connect } from 'react-redux';
@@ -114,16 +113,10 @@ class AddPeopleDialog extends Component<*, *> {
114 113
          */
115 114
         addToCallInProgress: false,
116 115
 
117
-
118
-        // FIXME: Remove usage of Immutable. {@code MultiSelectAutocomplete}
119
-        // will default to having its internal implementation use a plain array
120
-        // if no {@link defaultValue} is passed in. As such is the case, this
121
-        // instance of Immutable.List gets overridden with an array on the first
122
-        // search.
123 116
         /**
124 117
          * The list of invite items.
125 118
          */
126
-        inviteItems: new Immutable.List()
119
+        inviteItems: []
127 120
     };
128 121
 
129 122
     /**

+ 1
- 1
react/features/invite/functions.js View File

@@ -30,7 +30,7 @@ export function invitePeopleAndChatRooms( // eslint-disable-line max-params
30 30
         inviteServiceUrl: string,
31 31
         inviteUrl: string,
32 32
         jwt: string,
33
-        inviteItems: Object): Promise<void> {
33
+        inviteItems: Array<Object>): Promise<void> {
34 34
     if (!inviteItems || inviteItems.length === 0) {
35 35
         return Promise.resolve();
36 36
     }

Loading…
Cancel
Save