@mongodb-js/compass-indexes 5.0.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,12 +4,6 @@ object-assign
4
4
  @license MIT
5
5
  */
6
6
 
7
- /*!
8
- Copyright (c) 2018 Jed Watson.
9
- Licensed under the MIT License (MIT), see
10
- http://jedwatson.github.io/classnames
11
- */
12
-
13
7
  /*! @preserve
14
8
  * numeral.js
15
9
  * version : 2.0.6
@@ -27,6 +21,36 @@ object-assign
27
21
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
28
22
  */
29
23
 
24
+ /**
25
+ * @license React
26
+ * react-is.production.min.js
27
+ *
28
+ * Copyright (c) Facebook, Inc. and its affiliates.
29
+ *
30
+ * This source code is licensed under the MIT license found in the
31
+ * LICENSE file in the root directory of this source tree.
32
+ */
33
+
34
+ /**
35
+ * @license React
36
+ * use-sync-external-store-shim.production.min.js
37
+ *
38
+ * Copyright (c) Facebook, Inc. and its affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */
43
+
44
+ /**
45
+ * @license React
46
+ * use-sync-external-store-shim/with-selector.production.min.js
47
+ *
48
+ * Copyright (c) Facebook, Inc. and its affiliates.
49
+ *
50
+ * This source code is licensed under the MIT license found in the
51
+ * LICENSE file in the root directory of this source tree.
52
+ */
53
+
30
54
  /** @license React v0.19.1
31
55
  * scheduler.production.min.js
32
56
  *
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@mongodb-js/compass-indexes",
3
3
  "productName": "Compass Indexes plugin",
4
4
  "description": "Collection index management for Compass",
5
- "version": "5.0.0",
5
+ "version": "5.1.1",
6
6
  "author": {
7
7
  "name": "MongoDB Inc",
8
8
  "email": "compass@mongodb.com"
@@ -37,7 +37,6 @@
37
37
  "compile": "npm run webpack -- --mode production",
38
38
  "prewebpack": "rimraf ./dist",
39
39
  "webpack": "webpack-compass",
40
- "start": "npm run webpack serve -- --mode development",
41
40
  "analyze": "npm run webpack -- --mode production --analyze",
42
41
  "typecheck": "tsc -p tsconfig-lint.json --noEmit",
43
42
  "eslint": "eslint",
@@ -55,48 +54,42 @@
55
54
  "reformat": "npm run prettier -- --write ."
56
55
  },
57
56
  "peerDependencies": {
58
- "@mongodb-js/compass-components": "^1.0.0",
59
- "@mongodb-js/compass-logging": "^1.0.0",
60
- "@mongodb-js/mongodb-redux-common": "^2.0.0",
57
+ "@mongodb-js/compass-components": "^1.1.1",
58
+ "@mongodb-js/compass-logging": "^1.1.0",
59
+ "@mongodb-js/mongodb-redux-common": "^2.0.1",
61
60
  "bson": "^4.4.1",
62
- "hadron-react-buttons": "^6.0.0",
63
- "hadron-react-components": "^6.0.0",
64
- "mongodb-index-model": "^4.0.0",
61
+ "mongodb-index-model": "^4.0.2",
65
62
  "react": "^16.14.0"
66
63
  },
67
64
  "devDependencies": {
68
- "@mongodb-js/eslint-config-compass": "^1.0.0",
69
- "@mongodb-js/mocha-config-compass": "^1.0.0",
65
+ "@mongodb-js/eslint-config-compass": "^1.0.1",
66
+ "@mongodb-js/mocha-config-compass": "^1.0.1",
70
67
  "@mongodb-js/prettier-config-compass": "^1.0.0",
71
- "@mongodb-js/tsconfig-compass": "^1.0.0",
72
- "@mongodb-js/webpack-config-compass": "^1.0.0",
68
+ "@mongodb-js/tsconfig-compass": "^1.0.1",
69
+ "@mongodb-js/webpack-config-compass": "^1.0.2",
73
70
  "@testing-library/react": "^12.1.4",
74
71
  "@testing-library/user-event": "^13.5.0",
75
72
  "chai": "^4.2.0",
76
- "classnames": "^2.2.6",
77
73
  "debug": "^4.2.0",
78
74
  "depcheck": "^1.4.1",
79
75
  "electron": "^15.5.7",
80
76
  "enzyme": "^3.11.0",
81
77
  "eslint": "^7.25.0",
82
- "hadron-app": "^5.0.0",
83
- "hadron-app-registry": "^9.0.0",
78
+ "hadron-app": "^5.1.1",
79
+ "hadron-app-registry": "^9.0.1",
80
+ "lodash.clonedeep": "^4.5.0",
84
81
  "lodash.contains": "^2.4.3",
85
- "lodash.isundefined": "^3.0.1",
86
- "lodash.map": "^4.6.0",
87
- "lodash.max": "^4.0.1",
88
- "lodash.pick": "^4.4.0",
89
- "lodash.pluck": "^3.1.2",
90
82
  "mocha": "^8.4.0",
83
+ "mongodb": "^4.10.0",
84
+ "mongodb-data-service": "^22.1.1",
91
85
  "mongodb-query-parser": "^2.4.6",
92
86
  "numeral": "^2.0.6",
93
87
  "nyc": "^15.1.0",
94
88
  "prop-types": "^15.7.2",
95
- "react-bootstrap": "^0.32.1",
96
89
  "react-dom": "^16.14.0",
97
- "react-redux": "^5.0.6",
98
- "react-tooltip": "^3.11.1",
99
- "redux": "^4.1.2",
90
+ "react-redux": "^8.0.2",
91
+ "react-virtualized-auto-sizer": "^1.0.6",
92
+ "redux": "^4.2.0",
100
93
  "redux-thunk": "^2.3.0",
101
94
  "rimraf": "^3.0.2",
102
95
  "semver": "^5.4.1",
@@ -104,14 +97,12 @@
104
97
  "xvfb-maybe": "^0.2.1"
105
98
  },
106
99
  "dependencies": {
107
- "@mongodb-js/compass-components": "^1.0.0",
108
- "@mongodb-js/compass-logging": "^1.0.0",
109
- "@mongodb-js/mongodb-redux-common": "^2.0.0",
100
+ "@mongodb-js/compass-components": "^1.1.1",
101
+ "@mongodb-js/compass-logging": "^1.1.0",
102
+ "@mongodb-js/mongodb-redux-common": "^2.0.1",
110
103
  "bson": "^4.4.1",
111
- "hadron-react-buttons": "^6.0.0",
112
- "hadron-react-components": "^6.0.0",
113
- "mongodb-index-model": "^4.0.0",
104
+ "mongodb-index-model": "^4.0.2",
114
105
  "react": "^16.14.0"
115
106
  },
116
- "gitHead": "a30734888ab496a07d58e26870e5e33b374e98f7"
107
+ "gitHead": "51f04a0ac45c3b51a3ffb98af390c811d1404380"
117
108
  }
package/dist/index.css DELETED
@@ -1,481 +0,0 @@
1
- .index-header-column-module-index-header-column-sort__3VPGP {
2
- display: inline-block;
3
- font-size: 13px;
4
- color: #a09f9e;
5
- }
6
- .index-header-column-module-index-header-column__3GEAv:not(.index-header-column-module-index-header-column-active__50stH) .index-header-column-module-index-header-column-sort__3VPGP {
7
- opacity: 0;
8
- }
9
- .index-header-column-module-index-header-column__3GEAv:hover:not(.index-header-column-module-index-header-column-active__50stH) .index-header-column-module-index-header-column-sort__3VPGP {
10
- display: inline-block;
11
- }
12
-
13
- .index-header-module-index-header__2e-WC {
14
- text-align: left;
15
- }
16
- .index-header-module-index-header__2e-WC th {
17
- padding: 12px 24px;
18
- }
19
-
20
- .index-definition-type-module-index-definition__HYScG {
21
- position: relative;
22
- }
23
- .index-definition-type-module-index-definition__HYScG p {
24
- margin: 0;
25
- }
26
- .index-definition-type-module-index-definition-type__2UqK3 {
27
- background: #fff;
28
- transition: all 250ms ease-out;
29
- display: inline-block;
30
- width: auto;
31
- max-width: 100%;
32
- padding: 1px 0 1px 12px;
33
- background: #ebebed;
34
- border: 1px solid #ebebed;
35
- border-radius: 20px;
36
- z-index: 3;
37
- overflow: hidden;
38
- white-space: nowrap;
39
- text-overflow: ellipsis;
40
- position: absolute;
41
- text-align: center;
42
- }
43
- .index-definition-type-module-index-definition-type__2UqK3:hover {
44
- background: #fff;
45
- border: 1px solid #a09f9e;
46
- overflow: auto;
47
- position: absolute;
48
- width: auto;
49
- box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.1);
50
- max-width: 100vw;
51
- }
52
- .index-definition-type-module-index-definition-type-pair__1oOqG {
53
- margin-right: 10px;
54
- vertical-align: bottom;
55
- }
56
- .index-definition-type-module-index-definition-type-pair-field__3ZukG {
57
- font-size: 13px;
58
- margin-right: 5px;
59
- }
60
- .index-definition-type-module-index-definition-type-pair-field__3ZukG:hover {
61
- color: #313030;
62
- }
63
- .index-definition-type-module-index-definition-type-pair-field-sort__1zNBJ {
64
- margin-left: 2px;
65
- font-size: 13px;
66
- color: #bfbfbe;
67
- }
68
- .index-definition-type-module-index-definition-type-pair-field-sort__1zNBJ:hover {
69
- color: #a09f9e;
70
- }
71
- .index-definition-type-module-index-definition-type-pair-field-type__1krqv {
72
- color: #fff;
73
- background-color: #bfbfbe;
74
- border-radius: 20px;
75
- min-width: 20px;
76
- padding: 0 8px;
77
- font-size: 11px;
78
- font-weight: bold;
79
- margin-left: 2px;
80
- }
81
- .index-definition-type-module-index-definition-type-pair-field-type__1krqv:hover {
82
- color: #a09f9e;
83
- }
84
-
85
- .name-column-module-name-column__14HwC {
86
- padding-left: 24px;
87
- padding-bottom: 15px;
88
- position: relative;
89
- width: 35%;
90
- }
91
- .name-column-module-name-column-name__3MmtO {
92
- font-size: 12px;
93
- color: #a09f9e;
94
- margin-bottom: 2px;
95
- transition: all 250ms ease-out;
96
- background: #fff;
97
- width: auto;
98
- max-width: 100%;
99
- overflow: hidden;
100
- white-space: nowrap;
101
- text-overflow: ellipsis;
102
- margin-left: 13px;
103
- padding-right: 5px;
104
- position: absolute;
105
- top: 9px;
106
- }
107
- .name-column-module-name-column-name__3MmtO:hover {
108
- overflow: auto;
109
- max-width: 100vw;
110
- text-overflow: ellipsis;
111
- }
112
-
113
- .type-column-module-type-column__3KPef {
114
- width: auto;
115
- padding-left: 24px;
116
- padding-right: 24px;
117
- }
118
- .type-column-module-type-column-property-cardinality__M1mrK {
119
- display: inline-block;
120
- text-align: center;
121
- white-space: nowrap;
122
- margin-right: 15px;
123
- cursor: default;
124
- color: #5382a8;
125
- background-color: #eaedf4;
126
- font-size: 11px;
127
- font-weight: bold;
128
- text-transform: uppercase;
129
- border-radius: 20px;
130
- padding: 3px 10px;
131
- min-width: 30px;
132
- }
133
- .type-column-module-type-column-property-hashed__2xVUB {
134
- display: inline-block;
135
- text-align: center;
136
- white-space: nowrap;
137
- margin-right: 15px;
138
- cursor: default;
139
- color: #968875;
140
- background-color: #eeeae5;
141
- font-size: 11px;
142
- font-weight: bold;
143
- text-transform: uppercase;
144
- border-radius: 20px;
145
- padding: 3px 10px;
146
- min-width: 30px;
147
- }
148
- .type-column-module-type-column-property-text__1xtE0 {
149
- display: inline-block;
150
- text-align: center;
151
- white-space: nowrap;
152
- margin-right: 15px;
153
- cursor: default;
154
- color: #947872;
155
- background-color: #f5edeb;
156
- font-size: 11px;
157
- font-weight: bold;
158
- text-transform: uppercase;
159
- border-radius: 20px;
160
- padding: 3px 10px;
161
- min-width: 30px;
162
- }
163
- .type-column-module-type-column-property-geospatial__2_ekt {
164
- display: inline-block;
165
- text-align: center;
166
- white-space: nowrap;
167
- margin-right: 15px;
168
- cursor: default;
169
- color: #548273;
170
- background-color: #e8eceb;
171
- font-size: 11px;
172
- font-weight: bold;
173
- text-transform: uppercase;
174
- border-radius: 20px;
175
- padding: 3px 10px;
176
- min-width: 30px;
177
- }
178
- .type-column-module-type-column-property-wildcard__1MTVF {
179
- display: inline-block;
180
- text-align: center;
181
- white-space: nowrap;
182
- margin-right: 15px;
183
- cursor: default;
184
- color: #548273;
185
- background-color: #e8eceb;
186
- font-size: 11px;
187
- font-weight: bold;
188
- text-transform: uppercase;
189
- border-radius: 20px;
190
- padding: 3px 10px;
191
- min-width: 30px;
192
- }
193
- .type-column-module-type-column-property-columnstore__2amO2 {
194
- display: inline-block;
195
- text-align: center;
196
- white-space: nowrap;
197
- margin-right: 15px;
198
- cursor: default;
199
- color: #548273;
200
- background-color: #e8eceb;
201
- font-size: 11px;
202
- font-weight: bold;
203
- text-transform: uppercase;
204
- border-radius: 20px;
205
- padding: 3px 10px;
206
- min-width: 30px;
207
- }
208
- .type-column-module-type-column-property-clustered___IGu8 {
209
- display: inline-block;
210
- text-align: center;
211
- white-space: nowrap;
212
- margin-right: 15px;
213
- cursor: default;
214
- color: #548273;
215
- background-color: #e8eceb;
216
- font-size: 11px;
217
- font-weight: bold;
218
- text-transform: uppercase;
219
- border-radius: 20px;
220
- padding: 3px 10px;
221
- min-width: 30px;
222
- }
223
- .type-column-module-type-column-property-regular__8bOw8 {
224
- display: inline-block;
225
- text-align: center;
226
- white-space: nowrap;
227
- margin-right: 15px;
228
- cursor: default;
229
- color: #545383;
230
- background-color: #e6e4ed;
231
- font-size: 11px;
232
- font-weight: bold;
233
- text-transform: uppercase;
234
- border-radius: 20px;
235
- padding: 3px 10px;
236
- min-width: 30px;
237
- }
238
-
239
- .size-column-module-size-column__R1MWQ {
240
- width: 10%;
241
- padding-left: 24px;
242
- padding-right: 24px;
243
- }
244
- .size-column-module-size-column-quantity__1iuon {
245
- display: inline-block;
246
- text-align: center;
247
- white-space: nowrap;
248
- color: #313030;
249
- font-size: 18px;
250
- font-weight: 200;
251
- }
252
- .size-column-module-size-column-unit__2b1Cd {
253
- display: inline-block;
254
- text-align: center;
255
- white-space: nowrap;
256
- color: #807f7f;
257
- font-size: 12px;
258
- text-transform: uppercase;
259
- margin-left: 4px;
260
- }
261
- .size-column-module-size-column-progress__3T47X {
262
- min-width: 100px;
263
- width: 80%;
264
- height: 5px;
265
- border-radius: 20px;
266
- }
267
- .size-column-module-size-column-progress-bar__3Lzyv {
268
- width: 200px;
269
- height: 5px;
270
- border-radius: 20px;
271
- background-color: #00c0ec;
272
- transition: none;
273
- }
274
-
275
- .usage-column-module-usage-column__32Zu8 {
276
- width: 20%;
277
- padding-left: 24px;
278
- padding-right: 24px;
279
- }
280
- .usage-column-module-usage-column-since__23Bns {
281
- display: inline-block;
282
- text-align: center;
283
- white-space: nowrap;
284
- font-size: 12px;
285
- color: #807f7f;
286
- margin-left: 4px;
287
- }
288
- .usage-column-module-usage-column-quantity__1Coxa {
289
- display: inline-block;
290
- text-align: center;
291
- white-space: nowrap;
292
- color: #313030;
293
- font-size: 18px;
294
- font-weight: 200;
295
- }
296
-
297
- .property-column-module-property-column__3zBVt {
298
- width: auto;
299
- padding-left: 24px;
300
- padding-right: 24px;
301
- }
302
- .property-column-module-property-column-property__4F5g_,
303
- .property-column-module-property-column-property-cardinality__o5c4W {
304
- text-align: center;
305
- white-space: nowrap;
306
- display: inline-block;
307
- cursor: default;
308
- color: #545383;
309
- background-color: #e6e4ed;
310
- font-size: 11px;
311
- font-weight: bold;
312
- text-transform: uppercase;
313
- border-radius: 20px;
314
- padding: 3px 10px;
315
- min-width: 30px;
316
- margin-right: 15px;
317
- margin-top: 1px;
318
- margin-bottom: 1px;
319
- }
320
- .property-column-module-property-column-property-cardinality__o5c4W,
321
- .property-column-module-property-column-property-cardinality-cardinality__3oFAf {
322
- display: inline-block;
323
- cursor: default;
324
- color: #5382a8;
325
- background-color: #eaedf4;
326
- font-size: 11px;
327
- font-weight: bold;
328
- text-transform: uppercase;
329
- border-radius: 20px;
330
- padding: 3px 10px;
331
- min-width: 30px;
332
- }
333
-
334
- .drop-column-module-drop-column__3jH-I {
335
- padding: 10px;
336
- margin-right: 10px;
337
- font-size: 14px;
338
- }
339
-
340
- .index-component-module-index-component__3HHs8 {
341
- height: 80px;
342
- padding-bottom: 20px;
343
- background-color: white;
344
- box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.075);
345
- }
346
-
347
- .indexes-module-indexes__17iKk {
348
- width: 100%;
349
- padding: 15px;
350
- padding-top: 0;
351
- flex-grow: 1;
352
- overflow: auto;
353
- }
354
- .indexes-module-indexes-table__1i6kv {
355
- table-layout: auto;
356
- border-collapse: separate;
357
- border-spacing: 0 3px;
358
- width: 100%;
359
- }
360
- .indexes-module-indexes-container__3xF-p {
361
- height: 100%;
362
- display: flex;
363
- flex-direction: column;
364
- flex-grow: 1;
365
- overflow: hidden;
366
- }
367
-
368
- .create-index-modal-module-create-index-modal__345zI {
369
- padding-left: 40px;
370
- padding-right: 40px;
371
- }
372
- .create-index-modal-module-create-index-modal__345zI .create-index-modal-module-modal-content__p_Ov9 {
373
- width: 75%;
374
- margin-left: auto;
375
- margin-right: auto;
376
- }
377
- .create-index-modal-module-create-index-modal__345zI .create-index-modal-module-modal-header__2uo9- {
378
- padding-bottom: 4px;
379
- }
380
- .create-index-modal-module-create-index-modal-fields__S3Mdf {
381
- margin-bottom: 10px;
382
- }
383
- .create-index-modal-module-create-index-modal-fields-description__8D6x5 {
384
- margin-bottom: 4px;
385
- }
386
- .create-index-modal-module-create-index-modal-fields__S3Mdf .create-index-modal-module-caret__3U9Pm {
387
- position: absolute;
388
- margin-top: 8px;
389
- right: 10px;
390
- }
391
- .create-index-modal-module-create-index-modal-toggle-bar__1ZTG3 {
392
- cursor: pointer;
393
- outline: none;
394
- border: none;
395
- background: none;
396
- width: fit-content;
397
- }
398
- .create-index-modal-module-create-index-modal-toggle-bar-header__20HLH {
399
- margin-top: 10px;
400
- }
401
- .create-index-modal-module-create-index-modal-toggle-bar-header-text__10pa_ {
402
- display: inline;
403
- margin-left: 4px;
404
- }
405
- .create-index-modal-module-create-index-modal-options-checkbox__H_2VJ {
406
- margin-top: 8px;
407
- cursor: pointer;
408
- display: inline-block;
409
- font-weight: normal;
410
- margin-bottom: 4px;
411
- margin-left: 10px;
412
- }
413
- .create-index-modal-module-create-index-modal-options-param__39P2Q {
414
- margin-top: 8px;
415
- cursor: pointer;
416
- display: inline-block;
417
- font-weight: normal;
418
- margin-bottom: 4px;
419
- margin-left: 10px;
420
- }
421
- .create-index-modal-module-create-index-modal-options-param-wrapper__1C2bk .form-group {
422
- display: flex;
423
- justify-content: flex-start;
424
- align-items: flex-start;
425
- }
426
- .create-index-modal-module-create-index-modal-options-param-wrapper__1C2bk p {
427
- width: 150px;
428
- text-align: right;
429
- display: inline-block;
430
- margin: 0 10px 0 0;
431
- }
432
- .create-index-modal-module-create-index-modal-options-param-wrapper__1C2bk input {
433
- width: 250px;
434
- display: inline-block;
435
- }
436
-
437
- div[id^='combobox-menu'] {
438
- z-index: 999999;
439
- }
440
- .create-index-field-module-create-index-field__3v1as {
441
- margin-bottom: 5px;
442
- display: flex;
443
- }
444
- .create-index-field-module-create-index-field-name__2a-FF {
445
- width: 260px;
446
- text-align: left;
447
- text-transform: none;
448
- padding-right: 10px;
449
- white-space: nowrap;
450
- z-index: 999999;
451
- }
452
- .create-index-field-module-create-index-field-name__2a-FF input {
453
- outline: none;
454
- width: 100%;
455
- }
456
- .create-index-field-module-create-index-field-type__2_3Gr {
457
- align-self: flex-end;
458
- width: 120px;
459
- text-align: left;
460
- text-transform: none;
461
- margin-right: 8px;
462
- }
463
- .create-index-field-module-create-index-field-type-select__20Sre {
464
- z-index: 1;
465
- }
466
- .create-index-field-module-create-index-field-type-select__20Sre button {
467
- margin-top: 0;
468
- }
469
- .create-index-field-module-create-index-field-type-select__20Sre button:focus,
470
- .create-index-field-module-create-index-field-type-select__20Sre button:focus-within {
471
- z-index: 20;
472
- }
473
- .create-index-field-module-create-index-field-button__24DNd {
474
- align-self: flex-end;
475
- margin-bottom: 3px;
476
- }
477
-
478
- .drop-index-modal-module-drop-index-modal-confirm__2v0b8 i {
479
- margin: 0px 4px 0px 2px;
480
- }
481
-